2022-08-27 15:40:41 +02:00
|
|
|
import { debugData } from "../../../utils/debugData";
|
2022-08-27 15:54:43 +02:00
|
|
|
import { InputProps } from "../../dialog/InputDialog";
|
2022-08-27 15:40:41 +02:00
|
|
|
|
|
|
|
|
export const debugInput = () => {
|
|
|
|
|
debugData<InputProps>([
|
2022-08-27 15:54:43 +02:00
|
|
|
{
|
|
|
|
|
action: "openDialog",
|
|
|
|
|
data: {
|
|
|
|
|
heading: "Police locker",
|
|
|
|
|
rows: [
|
|
|
|
|
{ type: "input", label: "Locker number", placeholder: "420" },
|
|
|
|
|
{ type: "checkbox", label: "Some checkbox" },
|
|
|
|
|
{ type: "input", label: "Locker PIN", password: true, icon: "lock" },
|
|
|
|
|
{ type: "checkbox", label: "Some other checkbox", checked: true },
|
|
|
|
|
{
|
|
|
|
|
type: "select",
|
|
|
|
|
label: "Locker type",
|
|
|
|
|
options: [
|
|
|
|
|
{ value: "option1" },
|
|
|
|
|
{ value: "option2", label: "Option 2" },
|
|
|
|
|
{ value: "option3", label: "Option 3" },
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
type: "number",
|
|
|
|
|
label: "Number counter",
|
|
|
|
|
default: 12,
|
|
|
|
|
min: 3,
|
|
|
|
|
max: 10,
|
|
|
|
|
},
|
|
|
|
|
{ type: "slider", label: "Slide bar", min: 10, max: 50, step: 2 },
|
|
|
|
|
],
|
|
|
|
|
},
|
2022-08-27 15:40:41 +02:00
|
|
|
},
|
2022-08-27 15:54:43 +02:00
|
|
|
]);
|
|
|
|
|
};
|