2022-08-27 15:58:36 +02:00
|
|
|
import { debugData } from '../../../utils/debugData';
|
2023-02-15 13:00:09 +01:00
|
|
|
import type { InputProps } from '../../../typings';
|
2022-08-27 15:40:41 +02:00
|
|
|
|
|
|
|
|
export const debugInput = () => {
|
|
|
|
|
debugData<InputProps>([
|
2022-08-27 15:54:43 +02:00
|
|
|
{
|
2022-08-27 15:58:36 +02:00
|
|
|
action: 'openDialog',
|
2022-08-27 15:54:43 +02:00
|
|
|
data: {
|
2022-08-27 15:58:36 +02:00
|
|
|
heading: 'Police locker',
|
2022-08-27 15:54:43 +02:00
|
|
|
rows: [
|
2022-10-27 13:45:27 +02:00
|
|
|
{
|
|
|
|
|
type: 'input',
|
|
|
|
|
label: 'Locker number',
|
|
|
|
|
placeholder: '420',
|
|
|
|
|
description: 'Description that tells you what this input field does',
|
|
|
|
|
},
|
2023-01-31 12:41:42 -05:00
|
|
|
{
|
|
|
|
|
type: 'time',
|
|
|
|
|
format: '12',
|
|
|
|
|
label: 'Locker Time',
|
|
|
|
|
description: 'Description that tells you what this input field does',
|
|
|
|
|
},
|
2022-08-27 15:58:36 +02:00
|
|
|
{ type: 'checkbox', label: 'Some checkbox' },
|
|
|
|
|
{ type: 'input', label: 'Locker PIN', password: true, icon: 'lock' },
|
|
|
|
|
{ type: 'checkbox', label: 'Some other checkbox', checked: true },
|
2022-08-27 15:54:43 +02:00
|
|
|
{
|
2022-08-27 15:58:36 +02:00
|
|
|
type: 'select',
|
|
|
|
|
label: 'Locker type',
|
2022-08-27 15:54:43 +02:00
|
|
|
options: [
|
2022-08-27 15:58:36 +02:00
|
|
|
{ value: 'option1' },
|
|
|
|
|
{ value: 'option2', label: 'Option 2' },
|
|
|
|
|
{ value: 'option3', label: 'Option 3' },
|
2022-08-27 15:54:43 +02:00
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
{
|
2022-08-27 15:58:36 +02:00
|
|
|
type: 'number',
|
|
|
|
|
label: 'Number counter',
|
2022-08-27 15:54:43 +02:00
|
|
|
default: 12,
|
|
|
|
|
min: 3,
|
|
|
|
|
max: 10,
|
2022-09-08 12:00:41 +02:00
|
|
|
icon: 'receipt',
|
2022-08-27 15:54:43 +02:00
|
|
|
},
|
2022-10-27 13:45:27 +02:00
|
|
|
{
|
|
|
|
|
type: 'slider',
|
|
|
|
|
label: 'Slide bar',
|
|
|
|
|
min: 10,
|
|
|
|
|
max: 50,
|
|
|
|
|
step: 2,
|
|
|
|
|
},
|
2022-08-27 15:54:43 +02:00
|
|
|
],
|
|
|
|
|
},
|
2022-08-27 15:40:41 +02:00
|
|
|
},
|
2022-08-27 15:54:43 +02:00
|
|
|
]);
|
|
|
|
|
};
|