dynamic-mui 1.0.41 → 1.0.43

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2300 +0,0 @@
1
- (window.webpackJsonp = window.webpackJsonp || []).push([
2
- [0],
3
- {
4
- 1059(e, t, a) {
5
- const i = { react: a(0) };
6
- const r = a(78).default.bind(null, i);
7
- const n = a(79).default.bind(
8
- null,
9
- "const React$0 = require('react');\nconst React = React$0.default || (React$0['React'] || React$0);",
10
- r,
11
- );
12
- e.exports = [
13
- {
14
- type: 'markdown',
15
- content:
16
- 'Build dynamic forms using Material UI\n\n## Installation\n\n`npm install @mui/material @emotion/react @emotion/styled`\n`npm install dynamic-mui --save`\n\n\\##Usage',
17
- },
18
- {
19
- type: 'code',
20
- content:
21
- "`import { FormGenerator } from 'dynamic-mui/dist-modules/components/FormGenerator'`;\n\nexport default function DynamicForm() {\n return (\n <FormGenerator\n data={[\n {\n type: 'textfield',\n props: {\n MuiAttributes: { placeholder: 'Standard', fullWidth: true, variant: 'standard' },\n },\n layout: {\n row: 1,\n xs: 4,\n sm: 4,\n },\n },\n ]}\n guid=\"Testing\"\n library={MUI}\n />\n );\n} ",
22
- settings: {},
23
- evalInContext: n,
24
- },
25
- ];
26
- },
27
- 1063(e, t, a) {
28
- e.exports = {
29
- doclets: {},
30
- displayName: 'CheckBox',
31
- description: 'Playground Component\n',
32
- methods: [],
33
- props: [
34
- {
35
- type: { name: 'objectOf', value: { name: 'object' } },
36
- required: !1,
37
- description: 'Attributes for Checkbox',
38
- defaultValue: { value: '{}', computed: !1 },
39
- tags: {},
40
- name: 'attributes',
41
- },
42
- {
43
- type: { name: 'func' },
44
- required: !1,
45
- description: 'Function',
46
- defaultValue: { value: 'null', computed: !1 },
47
- tags: {},
48
- name: 'onChange',
49
- },
50
- ],
51
- tags: {},
52
- examples: a(1064),
53
- };
54
- },
55
- 1064(e, t, a) {
56
- const i = {
57
- '../../FormGenerator': a(86),
58
- '../../../data/checkbox': a(1147),
59
- react: a(0),
60
- './checkbox.js': a(195),
61
- };
62
- const r = a(78).default.bind(null, i);
63
- const n = a(79).default.bind(
64
- null,
65
- "const React$0 = require('react');\nconst React = React$0.default || (React$0['React'] || React$0);\nconst Playground$0 = require('./playground.js');\nconst Playground = Playground$0.default || (Playground$0['Playground'] || Playground$0);",
66
- r,
67
- );
68
- e.exports = [
69
- {
70
- type: 'markdown',
71
- content:
72
- 'Checkboxes can be used to turn an option on or off.\n\nIf you have multiple options appearing in a list, you can preserve space by using checkboxes instead of on/off switches. If you have a single option, avoid using a checkbox and use an on/off switch instead.\n\nBasic checkboxes',
73
- },
74
- {
75
- type: 'code',
76
- content:
77
- 'import {FormGenerator} from "../../FormGenerator";\nimport {checkBox} from \'../../../data/checkbox\';\n\n<FormGenerator data={checkBox} guid="checkbox"/>',
78
- settings: {},
79
- evalInContext: n,
80
- },
81
- { type: 'markdown', content: 'Label, Color & Size' },
82
- {
83
- type: 'code',
84
- content:
85
- 'import {FormGenerator} from "../../FormGenerator";\nimport {checkBoxCustom} from \'../../../data/checkbox\';\n\n<FormGenerator data={checkBoxCustom} guid="checkbox"/>',
86
- settings: {},
87
- evalInContext: n,
88
- },
89
- ];
90
- },
91
- 1147(e, t, a) {
92
- a.r(t), a.d(t, 'checkBox', () => i), a.d(t, 'checkBoxCustom', () => r);
93
- const i = [
94
- {
95
- type: 'checkbox',
96
- props: {
97
- id: 'defaultChecked',
98
- MuiAttributes: { defaultChecked: !0 },
99
- MuiFCLAttributes: { label: '' },
100
- },
101
- layout: { row: 1, xs: 3, sm: 3 },
102
- },
103
- {
104
- type: 'checkbox',
105
- props: { id: 'simple', MuiAttributes: {}, MuiFCLAttributes: { label: '' } },
106
- layout: { row: 1, xs: 3, sm: 3 },
107
- },
108
- {
109
- type: 'checkbox',
110
- props: {
111
- id: 'disabled',
112
- MuiAttributes: { disabled: !0 },
113
- MuiFCLAttributes: { label: '' },
114
- },
115
- layout: { row: 1, xs: 3, sm: 3 },
116
- },
117
- {
118
- type: 'checkbox',
119
- props: {
120
- id: 'disabledchecked',
121
- MuiAttributes: { disabled: !0, checked: !0 },
122
- MuiFCLAttributes: { label: '' },
123
- },
124
- layout: { row: 1, xs: 3, sm: 3 },
125
- },
126
- ];
127
- const r = [
128
- {
129
- type: 'checkbox',
130
- props: {
131
- id: 'label',
132
- MuiAttributes: { defaultChecked: !0 },
133
- MuiFCLAttributes: { label: 'Label' },
134
- },
135
- layout: { row: 1, xs: 3, sm: 3 },
136
- },
137
- {
138
- type: 'checkbox',
139
- props: {
140
- id: 'labelsmall',
141
- MuiAttributes: { size: 'small', defaultChecked: !0, color: 'secondary' },
142
- MuiFCLAttributes: { label: 'Label' },
143
- },
144
- layout: { row: 1, xs: 3, sm: 3 },
145
- },
146
- {
147
- type: 'checkbox',
148
- props: {
149
- id: 'labelcolordefault',
150
- MuiAttributes: { defaultChecked: !0, color: 'default' },
151
- MuiFCLAttributes: { label: 'Label' },
152
- },
153
- layout: { row: 1, xs: 3, sm: 3 },
154
- },
155
- {
156
- type: 'checkbox',
157
- props: {
158
- id: 'labelcolorgreen',
159
- MuiAttributes: {
160
- defaultChecked: !0,
161
- sx: { color: 'green', '&.Mui-checked': { color: 'green' } },
162
- },
163
- MuiFCLAttributes: { label: 'Label' },
164
- },
165
- layout: { row: 1, xs: 3, sm: 3 },
166
- },
167
- ];
168
- },
169
- 1148(e, t, a) {
170
- e.exports = {
171
- doclets: {},
172
- displayName: 'DataTable',
173
- description: '',
174
- methods: [],
175
- props: [
176
- {
177
- type: { name: 'objectOf', value: { name: 'object' } },
178
- required: !1,
179
- description: 'Attributes for TextField',
180
- defaultValue: { value: '{}', computed: !1 },
181
- tags: {},
182
- name: 'attributes',
183
- },
184
- ],
185
- examples: a(1149),
186
- };
187
- },
188
- 1149(e, t, a) {
189
- const i = {
190
- '../../FormGenerator': a(86),
191
- '../../../data/dataTable': a(1150),
192
- react: a(0),
193
- './datatable.js': a(197),
194
- };
195
- const r = a(78).default.bind(null, i);
196
- const n = a(79).default.bind(
197
- null,
198
- "const React$0 = require('react');\nconst React = React$0.default || (React$0['React'] || React$0);\nconst DataTable$0 = require('./datatable.js');\nconst DataTable = DataTable$0.default || (DataTable$0['DataTable'] || DataTable$0);",
199
- r,
200
- );
201
- e.exports = [
202
- { type: 'markdown', content: 'Basic component:' },
203
- {
204
- type: 'code',
205
- content:
206
- 'import {FormGenerator} from "../../FormGenerator";\nimport {basicTable} from \'../../../data/dataTable\';\n\n<FormGenerator data={basicTable} guid="dataTable"/>',
207
- settings: {},
208
- evalInContext: n,
209
- },
210
- ];
211
- },
212
- 1150(e, t, a) {
213
- a.r(t), a.d(t, 'basicTable', () => i), a.d(t, 'denseTable', () => r);
214
- const i = [
215
- {
216
- type: 'datatable',
217
- props: {
218
- id: 'datatable',
219
- container: { style: { height: 400, width: '100%' } },
220
- MuiAttributes: {
221
- rows: [
222
- { id: 1, lastName: 'Snow', firstName: 'Jon', age: 35 },
223
- { id: 2, lastName: 'Lannister', firstName: 'Cersei', age: 42 },
224
- { id: 3, lastName: 'Lannister', firstName: 'Jaime', age: 45 },
225
- { id: 4, lastName: 'Stark', firstName: 'Arya', age: 16 },
226
- { id: 5, lastName: 'Targaryen', firstName: 'Daenerys', age: null },
227
- { id: 6, lastName: 'Melisandre', firstName: '', age: 150 },
228
- { id: 7, lastName: 'Clifford', firstName: 'Ferrara', age: 44 },
229
- { id: 8, lastName: 'Frances', firstName: 'Rossini', age: 36 },
230
- { id: 9, lastName: 'Roxie', firstName: 'Harvey', age: 65 },
231
- ],
232
- columns: [
233
- { field: 'id', headerName: 'ID', width: 70 },
234
- { field: 'firstName', headerName: 'First name', width: 130 },
235
- { field: 'lastName', headerName: 'Last name', width: 130 },
236
- { field: 'age', headerName: 'Age', type: 'number', width: 90 },
237
- ],
238
- },
239
- },
240
- layout: { xs: 12, sm: 12, md: 12 },
241
- },
242
- ];
243
- const r = [];
244
- },
245
- 1151(e, t, a) {
246
- e.exports = {
247
- doclets: {},
248
- displayName: 'DateTime',
249
- description: '',
250
- methods: [],
251
- props: [
252
- {
253
- type: { name: 'objectOf', value: { name: 'object' } },
254
- required: !1,
255
- description: 'Attributes for DateTime',
256
- defaultValue: { value: '{}', computed: !1 },
257
- tags: {},
258
- name: 'attributes',
259
- },
260
- {
261
- type: { name: 'func' },
262
- required: !1,
263
- description: 'Function',
264
- defaultValue: { value: 'null', computed: !1 },
265
- tags: {},
266
- name: 'onChange',
267
- },
268
- ],
269
- examples: a(1152),
270
- };
271
- },
272
- 1152(e, t, a) {
273
- const i = {
274
- '../../FormGenerator': a(86),
275
- '../../../data/dateTime': a(265),
276
- react: a(0),
277
- './datetime.js': a(198),
278
- };
279
- const r = a(78).default.bind(null, i);
280
- const n = a(79).default.bind(
281
- null,
282
- "const React$0 = require('react');\nconst React = React$0.default || (React$0['React'] || React$0);\nconst DateTime$0 = require('./datetime.js');\nconst DateTime = DateTime$0.default || (DateTime$0['DateTime'] || DateTime$0);",
283
- r,
284
- );
285
- e.exports = [
286
- { type: 'markdown', content: 'Date pickers let the user select a date\n\nBasic usage' },
287
- {
288
- type: 'code',
289
- content:
290
- 'import {FormGenerator} from "../../FormGenerator";\nimport {mui} from \'../../../data/dateTime\';\n\n<FormGenerator data={mui} guid="datetime"/>',
291
- settings: {},
292
- evalInContext: n,
293
- },
294
- { type: 'markdown', content: 'Responsiveness' },
295
- {
296
- type: 'code',
297
- content:
298
- 'import {FormGenerator} from "../../FormGenerator";\nimport {responsiveness} from \'../../../data/dateTime\';\n\n<FormGenerator data={responsiveness} guid="datetimeResponsiveness"/>',
299
- settings: {},
300
- evalInContext: n,
301
- },
302
- ];
303
- },
304
- 1153(e, t, a) {
305
- e.exports = {
306
- doclets: {},
307
- displayName: 'DateTimePicker',
308
- description: '',
309
- methods: [],
310
- props: [
311
- {
312
- type: { name: 'objectOf', value: { name: 'object' } },
313
- required: !1,
314
- description: 'Attributes for DateTimePicker',
315
- defaultValue: { value: '{}', computed: !1 },
316
- tags: {},
317
- name: 'attributes',
318
- },
319
- {
320
- type: { name: 'func' },
321
- required: !1,
322
- description: 'Function',
323
- defaultValue: { value: 'null', computed: !1 },
324
- tags: {},
325
- name: 'onChange',
326
- },
327
- ],
328
- examples: a(1154),
329
- };
330
- },
331
- 1154(e, t, a) {
332
- const i = {
333
- '../../FormGenerator': a(86),
334
- '../../../data/dateTime': a(265),
335
- react: a(0),
336
- './datetimepicker.js': a(199),
337
- };
338
- const r = a(78).default.bind(null, i);
339
- const n = a(79).default.bind(
340
- null,
341
- "const React$0 = require('react');\nconst React = React$0.default || (React$0['React'] || React$0);\nconst DateTimePicker$0 = require('./datetimepicker.js');\nconst DateTimePicker = DateTimePicker$0.default || (DateTimePicker$0['DateTimePicker'] || DateTimePicker$0);",
342
- r,
343
- );
344
- e.exports = [
345
- { type: 'markdown', content: 'Date pickers let the user select a date\n\nBasic usage' },
346
- {
347
- type: 'code',
348
- content:
349
- 'import {FormGenerator} from "../../FormGenerator";\nimport {dateTimePicker} from \'../../../data/dateTime\';\n\n<FormGenerator data={dateTimePicker} guid="datetimePicker"/>',
350
- settings: {},
351
- evalInContext: n,
352
- },
353
- ];
354
- },
355
- 1155(e, t, a) {
356
- e.exports = {
357
- doclets: {},
358
- displayName: 'Radio',
359
- description: 'Radio Component\n',
360
- methods: [],
361
- props: [
362
- {
363
- type: { name: 'objectOf', value: { name: 'object' } },
364
- required: !1,
365
- description: 'Attributes for Radio',
366
- defaultValue: { value: '{}', computed: !1 },
367
- tags: {},
368
- name: 'attributes',
369
- },
370
- {
371
- type: { name: 'func' },
372
- required: !1,
373
- description: 'Function',
374
- defaultValue: { value: 'null', computed: !1 },
375
- tags: {},
376
- name: 'onChange',
377
- },
378
- ],
379
- tags: {},
380
- examples: a(1156),
381
- };
382
- },
383
- 1156(e, t, a) {
384
- const i = {
385
- '../../FormGenerator': a(86),
386
- '../../../data/radio': a(1157),
387
- react: a(0),
388
- './radio.js': a(204),
389
- };
390
- const r = a(78).default.bind(null, i);
391
- const n = a(79).default.bind(
392
- null,
393
- "const React$0 = require('react');\nconst React = React$0.default || (React$0['React'] || React$0);\nconst Radio$0 = require('./radio.js');\nconst Radio = Radio$0.default || (Radio$0['Radio'] || Radio$0);",
394
- r,
395
- );
396
- e.exports = [
397
- {
398
- type: 'markdown',
399
- content:
400
- 'RadioGroup is a helpful wrapper used to group Radio components that provides an easier API, and proper keyboard accessibility to the group.\n\nBasic Radio',
401
- },
402
- {
403
- type: 'code',
404
- content:
405
- 'import {FormGenerator} from "../../FormGenerator";\nimport {radioData} from \'../../../data/radio\';\n\n<FormGenerator data={radioData} guid="radio" patch={{}}/>',
406
- settings: {},
407
- evalInContext: n,
408
- },
409
- ];
410
- },
411
- 1157(e, t, a) {
412
- a.r(t), a.d(t, 'radioData', () => i), a.d(t, 'customRadioData', () => r);
413
- const i = [
414
- {
415
- id: 'staggerpenaltytype',
416
- type: 'radio',
417
- props: {
418
- id: 'staggerpenaltytype',
419
- value: 'Apply penalty now',
420
- MuiAttributes: {},
421
- MuiFLabelIcon: {
422
- icon: 'person',
423
- MuiFLabelIconAttributes: { sx: { mr: 1, color: 'rgba(0, 0, 0, 0.6)' } },
424
- },
425
- MuiFLabel: 'Account',
426
- MuiFCLAttributes: {},
427
- MuiFCLabels: ['Apply penalty now', 'Apply penalty after due date'],
428
- MuiRGAttributes: { row: !0 },
429
- },
430
- layout: { row: 4, xs: 9, sm: 9 },
431
- },
432
- ];
433
- const r = [];
434
- },
435
- 1158(e, t, a) {
436
- e.exports = {
437
- doclets: {},
438
- displayName: 'Select',
439
- description: '',
440
- methods: [],
441
- props: [
442
- {
443
- type: { name: 'objectOf', value: { name: 'object' } },
444
- required: !1,
445
- description: 'Attributes for Select',
446
- defaultValue: { value: '{}', computed: !1 },
447
- tags: {},
448
- name: 'attributes',
449
- },
450
- {
451
- type: { name: 'func' },
452
- required: !1,
453
- description: 'Function',
454
- defaultValue: { value: 'null', computed: !1 },
455
- tags: {},
456
- name: 'onChange',
457
- },
458
- ],
459
- examples: a(1159),
460
- };
461
- },
462
- 1159(e, t, a) {
463
- const i = {
464
- '../../FormGenerator': a(86),
465
- '../../../data/select': a(1160),
466
- react: a(0),
467
- './select.js': a(201),
468
- };
469
- const r = a(78).default.bind(null, i);
470
- const n = a(79).default.bind(
471
- null,
472
- "const React$0 = require('react');\nconst React = React$0.default || (React$0['React'] || React$0);\nconst Select$0 = require('./select.js');\nconst Select = Select$0.default || (Select$0['Select'] || Select$0);",
473
- r,
474
- );
475
- e.exports = [
476
- { type: 'markdown', content: 'Date pickers let the user select a date\n\nBasic usage' },
477
- {
478
- type: 'code',
479
- content:
480
- 'import {FormGenerator} from "../../FormGenerator";\nimport {select} from \'../../../data/select\';\n\n<FormGenerator data={select} guid="selectbasic" patch={{simpleselect:\'ocean\'}}/>',
481
- settings: {},
482
- evalInContext: n,
483
- },
484
- { type: 'markdown', content: 'MultiSelect usage' },
485
- {
486
- type: 'code',
487
- content:
488
- 'import {FormGenerator} from "../../FormGenerator";\nimport {multiSelect} from \'../../../data/select\';\n\n<FormGenerator data={multiSelect} guid="multiselect"/>',
489
- settings: {},
490
- evalInContext: n,
491
- },
492
- ];
493
- },
494
- 1160(e, t, a) {
495
- a.r(t), a.d(t, 'select', () => r), a.d(t, 'multiSelect', () => n);
496
- const i = [
497
- { value: 'ocean', label: 'Ocean', color: '#00B8D9' },
498
- { value: 'blue', label: 'Blue', color: '#0052CC', disabled: !0 },
499
- { value: 'purple', label: 'Purple', color: '#5243AA' },
500
- { value: 'red', label: 'Red', color: '#FF5630' },
501
- { value: 'orange', label: 'Orange', color: '#FF8B00' },
502
- { value: 'yellow', label: 'Yellow', color: '#FFC400' },
503
- { value: 'green', label: 'Green', color: '#36B37E' },
504
- { value: 'forest', label: 'Forest', color: '#00875A' },
505
- { value: 'slate', label: 'Slate', color: '#253858' },
506
- { value: 'silver', label: 'Silver', color: '#666666' },
507
- ];
508
- const r = [
509
- {
510
- type: 'select',
511
- props: {
512
- id: 'simpleselect',
513
- MuiAttributes: {},
514
- options: i,
515
- MuiBoxAttributes: { label: 'Colors' },
516
- InputProps: { MuiInputAdornment: {}, position: 'start', icon: 'account_circle' },
517
- },
518
- layout: { row: 1, xs: 12, sm: 12 },
519
- },
520
- ];
521
- const n = [
522
- {
523
- type: 'select',
524
- props: {
525
- id: 'multiselect',
526
- MuiAttributes: { multiple: !0, disableCloseOnSelect: !0 },
527
- options: i,
528
- MuiBoxAttributes: { label: 'Colors' },
529
- },
530
- layout: { row: 1, xs: 12, sm: 12 },
531
- },
532
- ];
533
- },
534
- 1161(e, t, a) {
535
- e.exports = {
536
- doclets: {},
537
- displayName: 'Switch',
538
- description: 'Switch Component\n',
539
- methods: [],
540
- props: [
541
- {
542
- type: { name: 'objectOf', value: { name: 'object' } },
543
- required: !1,
544
- description: 'Attributes for Switch',
545
- defaultValue: { value: '{}', computed: !1 },
546
- tags: {},
547
- name: 'attributes',
548
- },
549
- {
550
- type: { name: 'func' },
551
- required: !1,
552
- description: 'Function',
553
- defaultValue: { value: 'null', computed: !1 },
554
- tags: {},
555
- name: 'onChange',
556
- },
557
- ],
558
- tags: {},
559
- examples: a(1162),
560
- };
561
- },
562
- 1162(e, t, a) {
563
- const i = {
564
- '../../FormGenerator': a(86),
565
- '../../../data/switch': a(1163),
566
- react: a(0),
567
- './switch.js': a(203),
568
- };
569
- const r = a(78).default.bind(null, i);
570
- const n = a(79).default.bind(
571
- null,
572
- "const React$0 = require('react');\nconst React = React$0.default || (React$0['React'] || React$0);\nconst Switch$0 = require('./switch.js');\nconst Switch = Switch$0.default || (Switch$0['Switch'] || Switch$0);",
573
- r,
574
- );
575
- e.exports = [
576
- {
577
- type: 'markdown',
578
- content: 'Switches toggle the state of a single setting on or off.\n\nBasic switches',
579
- },
580
- {
581
- type: 'code',
582
- content:
583
- 'import {FormGenerator} from "../../FormGenerator";\nimport {switchData} from \'../../../data/switch\';\n\n<FormGenerator data={switchData} guid="switch"/>',
584
- settings: {},
585
- evalInContext: n,
586
- },
587
- { type: 'markdown', content: 'Label, Color & Size' },
588
- {
589
- type: 'code',
590
- content:
591
- 'import {FormGenerator} from "../../FormGenerator";\nimport {switchCustom} from \'../../../data/switch\';\n\n<FormGenerator data={switchCustom} guid="switchcolor"/>',
592
- settings: {},
593
- evalInContext: n,
594
- },
595
- ];
596
- },
597
- 1163(e, t, a) {
598
- a.r(t), a.d(t, 'switchData', () => i), a.d(t, 'switchCustom', () => r);
599
- const i = [
600
- {
601
- type: 'switch',
602
- props: {
603
- id: 'switchdefault',
604
- MuiAttributes: { defaultChecked: !0 },
605
- MuiFCLAttributes: { label: '' },
606
- },
607
- layout: { row: 1, xs: 3, sm: 3 },
608
- },
609
- {
610
- type: 'switch',
611
- props: { id: 'switch', MuiAttributes: {}, MuiFCLAttributes: { label: '' } },
612
- layout: { row: 1, xs: 3, sm: 3 },
613
- },
614
- {
615
- type: 'switch',
616
- props: {
617
- id: 'switchdisabled',
618
- MuiAttributes: { disabled: !0 },
619
- MuiFCLAttributes: { label: '' },
620
- },
621
- layout: { row: 1, xs: 3, sm: 3 },
622
- },
623
- {
624
- type: 'switch',
625
- props: {
626
- id: 'switchdisabledchecked',
627
- MuiAttributes: { disabled: !0, checked: !0 },
628
- MuiFCLAttributes: { label: '' },
629
- },
630
- layout: { row: 1, xs: 3, sm: 3 },
631
- },
632
- ];
633
- const r = [
634
- {
635
- type: 'switch',
636
- props: {
637
- id: 'switchlabel',
638
- MuiAttributes: { defaultChecked: !0 },
639
- MuiFCLAttributes: { label: 'Label' },
640
- },
641
- layout: { row: 1, xs: 4, sm: 4 },
642
- },
643
- {
644
- type: 'switch',
645
- props: {
646
- id: 'switchlabelsmall',
647
- MuiAttributes: { size: 'small', defaultChecked: !0, color: 'secondary' },
648
- MuiFCLAttributes: { label: 'Label' },
649
- },
650
- layout: { row: 1, xs: 4, sm: 4 },
651
- },
652
- {
653
- type: 'switch',
654
- props: {
655
- id: 'switchlabelcolor',
656
- value: !0,
657
- MuiAttributes: { color: 'default' },
658
- MuiFCLAttributes: { label: 'Label' },
659
- },
660
- layout: { row: 1, xs: 4, sm: 4 },
661
- },
662
- ];
663
- },
664
- 1164(e, t, a) {
665
- e.exports = {
666
- doclets: {},
667
- displayName: 'TextField',
668
- description: '',
669
- methods: [],
670
- props: [
671
- {
672
- type: { name: 'objectOf', value: { name: 'object' } },
673
- required: !1,
674
- description: 'Attributes for TextField',
675
- defaultValue: { value: '{}', computed: !1 },
676
- tags: {},
677
- name: 'attributes',
678
- },
679
- {
680
- type: { name: 'func' },
681
- required: !1,
682
- description: 'Function',
683
- defaultValue: { value: 'null', computed: !1 },
684
- tags: {},
685
- name: 'onChange',
686
- },
687
- {
688
- type: { name: 'objectOf', value: { name: 'array' } },
689
- required: !1,
690
- description: 'Rules to be used',
691
- defaultValue: { value: '{}', computed: !1 },
692
- tags: {},
693
- name: 'rules',
694
- },
695
- ],
696
- examples: a(1165),
697
- };
698
- },
699
- 1165(e, t, a) {
700
- const i = {
701
- '../../FormGenerator': a(86),
702
- '../../../data/textfield': a(1166),
703
- 'react-json-tree': a(1223),
704
- react: a(0),
705
- './textfield.js': a(205),
706
- };
707
- const r = a(78).default.bind(null, i);
708
- const n = a(79).default.bind(
709
- null,
710
- "const React$0 = require('react');\nconst React = React$0.default || (React$0['React'] || React$0);\nconst TextField$0 = require('./textfield.js');\nconst TextField = TextField$0.default || (TextField$0['TextField'] || TextField$0);",
711
- r,
712
- );
713
- e.exports = [
714
- {
715
- type: 'markdown',
716
- content:
717
- 'The TextField wrapper component is a complete form control including a label, input and help text.\n\nIt supports standard, outlined and filled styling',
718
- },
719
- {
720
- type: 'code',
721
- content:
722
- 'import {FormGenerator} from "../../FormGenerator";\nimport {mui} from \'../../../data/textfield\';\n\n<FormGenerator data={mui} guid="textfield"/>',
723
- settings: {},
724
- evalInContext: n,
725
- },
726
- {
727
- type: 'code',
728
- content:
729
- "import {mui} from '../../../data/textfield';\nimport JSONTree from 'react-json-tree';\n\n<JSONTree data={mui} />",
730
- settings: {},
731
- evalInContext: n,
732
- },
733
- { type: 'markdown', content: 'Validation:' },
734
- {
735
- type: 'code',
736
- content:
737
- 'import {FormGenerator} from "../../FormGenerator";\nimport {validation} from \'../../../data/textfield\';\n\n<FormGenerator data={validation} guid="textfield"/>',
738
- settings: {},
739
- evalInContext: n,
740
- },
741
- {
742
- type: 'code',
743
- content:
744
- "import {validation} from '../../../data/textfield';\nimport JSONTree from 'react-json-tree';\n\n<JSONTree data={validation} />",
745
- settings: {},
746
- evalInContext: n,
747
- },
748
- { type: 'markdown', content: 'InputAdornment:' },
749
- {
750
- type: 'code',
751
- content:
752
- 'import {FormGenerator} from "../../FormGenerator";\nimport {inputAdornment} from \'../../../data/textfield\';\n\n<FormGenerator data={inputAdornment} patch={{firstname:\'dinakaran\'}} guid="textfieldinput"/>',
753
- settings: {},
754
- evalInContext: n,
755
- },
756
- {
757
- type: 'code',
758
- content:
759
- "import {sizesAndLayout} from '../../../data/textfield';\nimport JSONTree from 'react-json-tree';\n\n<JSONTree data={sizesAndLayout} />",
760
- settings: {},
761
- evalInContext: n,
762
- },
763
- { type: 'markdown', content: 'Sizes & Layout:' },
764
- {
765
- type: 'code',
766
- content:
767
- 'import {FormGenerator} from "../../FormGenerator";\nimport {sizesAndLayout} from \'../../../data/textfield\';\n\n<FormGenerator data={sizesAndLayout} guid="textfieldsize"/>',
768
- settings: {},
769
- evalInContext: n,
770
- },
771
- ];
772
- },
773
- 1166(e, t, a) {
774
- a.r(t),
775
- a.d(t, 'mui', () => i),
776
- a.d(t, 'validation', () => r),
777
- a.d(t, 'inputAdornment', () => n),
778
- a.d(t, 'sizesAndLayout', () => s);
779
- const i = [
780
- {
781
- type: 'textfield',
782
- props: {
783
- MuiAttributes: { placeholder: 'Standard', fullWidth: !0, variant: 'standard' },
784
- },
785
- layout: { row: 1, xs: 4, sm: 4 },
786
- },
787
- {
788
- type: 'textfield',
789
- props: { MuiAttributes: { placeholder: 'Filled', fullWidth: !0, variant: 'filled' } },
790
- layout: { row: 1, xs: 4, sm: 4 },
791
- },
792
- {
793
- type: 'textfield',
794
- props: {
795
- MuiAttributes: { placeholder: 'Outlined', fullWidth: !0, variant: 'outlined' },
796
- },
797
- layout: { row: 1, xs: 4, sm: 4 },
798
- },
799
- ];
800
- const r = [
801
- {
802
- type: 'textfield',
803
- props: { MuiAttributes: { label: 'Mandatory', fullWidth: !0, variant: 'outlined' } },
804
- layout: { row: 1, xs: 3, sm: 3 },
805
- rules: {
806
- validation: [{ rule: 'mandatory', message: 'Please enter your first name.' }],
807
- },
808
- },
809
- {
810
- id: 'password',
811
- type: 'textfield',
812
- layout: { row: 1, xs: 3, sm: 3 },
813
- props: {
814
- id: 'password',
815
- MuiAttributes: { type: 'password', fullWidth: !0, label: 'Password' },
816
- },
817
- },
818
- {
819
- id: 'number',
820
- type: 'textfield',
821
- layout: { row: 1, xs: 3, sm: 3 },
822
- props: {
823
- id: 'number',
824
- MuiAttributes: { type: 'number', fullWidth: !0, label: 'Number' },
825
- },
826
- },
827
- {
828
- id: 'currency',
829
- type: 'textfield',
830
- layout: { row: 1, xs: 3, sm: 3 },
831
- props: {
832
- id: 'currency',
833
- MuiAttributes: { fullWidth: !0, label: 'Currency', name: 'Currency' },
834
- format: '$0,0.00',
835
- },
836
- },
837
- ];
838
- const n = [
839
- {
840
- id: 'firstname',
841
- type: 'textfield',
842
- props: {
843
- id: 'firstname',
844
- MuiAttributes: {
845
- fullWidth: !0,
846
- InputLabelProps: { shrink: !0 },
847
- margin: 'normal',
848
- label: 'First Name',
849
- },
850
- InputProps: { MuiInputAdornment: {}, position: 'start', icon: 'account_circle' },
851
- },
852
- rules: {
853
- validation: [{ rule: 'mandatory', message: 'Please enter your first name.' }],
854
- },
855
- layout: { row: 1, xs: 6, sm: 6 },
856
- },
857
- {
858
- id: 'textfieldoutlined',
859
- type: 'textfield',
860
- props: {
861
- id: 'textfieldoutlined',
862
- MuiAttributes: {
863
- fullWidth: !0,
864
- InputLabelProps: { shrink: !0 },
865
- margin: 'normal',
866
- helperText: 'Weight',
867
- label: 'First Name',
868
- },
869
- InputProps: { MuiInputAdornment: { position: 'end' }, position: 'end', text: 'KG' },
870
- },
871
- layout: { row: 1, xs: 6, sm: 6 },
872
- },
873
- ];
874
- const s = [
875
- {
876
- id: 'textfieldoutlined',
877
- type: 'textfield',
878
- props: {
879
- id: 'textfieldoutlined',
880
- MuiAttributes: { fullWidth: !0, size: 'small', label: 'Small' },
881
- },
882
- layout: { row: 1, xs: 4, sm: 4 },
883
- },
884
- {
885
- id: 'textfieldoutlined',
886
- type: 'textfield',
887
- props: { id: 'textfieldoutlined', MuiAttributes: { fullWidth: !0, label: 'Normal' } },
888
- layout: { row: 1, xs: 4, sm: 4 },
889
- },
890
- {
891
- id: 'textfieldoutlined',
892
- type: 'textfield',
893
- props: {
894
- id: 'textfieldoutlined',
895
- MuiAttributes: { fullWidth: !0, label: 'Disabled', disabled: !0 },
896
- },
897
- layout: { row: 1, xs: 4, sm: 4 },
898
- },
899
- {
900
- id: 'textfieldoutlined',
901
- type: 'textfield',
902
- props: {
903
- id: 'textfieldoutlined',
904
- MuiAttributes: { fullWidth: !0, label: 'Fullwidth' },
905
- },
906
- layout: { row: 1, xs: 12, sm: 12 },
907
- },
908
- ];
909
- },
910
- 1218(e, t, a) {
911
- e.exports = {
912
- doclets: {},
913
- displayName: 'TimePicker',
914
- description: '',
915
- methods: [],
916
- props: [
917
- {
918
- type: { name: 'objectOf', value: { name: 'object' } },
919
- required: !1,
920
- description: 'Attributes for TimePicker',
921
- defaultValue: { value: '{}', computed: !1 },
922
- tags: {},
923
- name: 'attributes',
924
- },
925
- {
926
- type: { name: 'func' },
927
- required: !1,
928
- description: 'Function',
929
- defaultValue: { value: 'null', computed: !1 },
930
- tags: {},
931
- name: 'onChange',
932
- },
933
- ],
934
- examples: a(1219),
935
- };
936
- },
937
- 1219(e, t, a) {
938
- const i = {
939
- '../../FormGenerator': a(86),
940
- '../../../data/dateTime': a(265),
941
- react: a(0),
942
- './timepicker.js': a(200),
943
- };
944
- const r = a(78).default.bind(null, i);
945
- const n = a(79).default.bind(
946
- null,
947
- "const React$0 = require('react');\nconst React = React$0.default || (React$0['React'] || React$0);\nconst TimePicker$0 = require('./timepicker.js');\nconst TimePicker = TimePicker$0.default || (TimePicker$0['TimePicker'] || TimePicker$0);",
948
- r,
949
- );
950
- e.exports = [
951
- { type: 'markdown', content: 'Date pickers let the user select a date\n\nBasic usage' },
952
- {
953
- type: 'code',
954
- content:
955
- 'import {FormGenerator} from "../../FormGenerator";\nimport {timePicker} from \'../../../data/dateTime\';\n\n<FormGenerator data={timePicker} guid="timepicker"/>',
956
- settings: {},
957
- evalInContext: n,
958
- },
959
- ];
960
- },
961
- 1220(e, t, a) {
962
- e.exports = {
963
- doclets: {},
964
- displayName: 'Typography',
965
- description: 'Typography Component\n',
966
- methods: [],
967
- props: [
968
- {
969
- type: { name: 'objectOf', value: { name: 'object' } },
970
- required: !1,
971
- description: 'Attributes for Typography',
972
- defaultValue: { value: '{}', computed: !1 },
973
- tags: {},
974
- name: 'attributes',
975
- },
976
- ],
977
- tags: {},
978
- examples: a(1221),
979
- };
980
- },
981
- 1221(e, t, a) {
982
- const i = { '../../FormGenerator': a(86), react: a(0), './typography.js': a(196) };
983
- const r = a(78).default.bind(null, i);
984
- const n = a(79).default.bind(
985
- null,
986
- "const React$0 = require('react');\nconst React = React$0.default || (React$0['React'] || React$0);\nconst Typography$0 = require('./typography.js');\nconst Typography = Typography$0.default || (Typography$0['Typography'] || Typography$0);",
987
- r,
988
- );
989
- e.exports = [
990
- { type: 'markdown', content: 'Basic component:' },
991
- {
992
- type: 'code',
993
- content:
994
- 'import {FormGenerator} from "../../FormGenerator";\n\n<FormGenerator data={[{\n type: \'typography\',\n props: {\n text: \'Hi\'\n },\n layout: {\n xs:12, sm:6, md:12\n }\n}]} guid="typography"/>',
995
- settings: {},
996
- evalInContext: n,
997
- },
998
- { type: 'markdown', content: 'Component styled:' },
999
- {
1000
- type: 'code',
1001
- content:
1002
- "import {FormGenerator} from \"../../FormGenerator\";\n\n<FormGenerator data={[{\n type: 'typography',\n props: {\n text: 'Styled with color',\n MuiAttributes: {\n color: 'secondary',\n variant: 'h6',\n component: \"h2\", gutterBottom: true,\n sx: { m: 1 }\n },\n MuiIcon:{\n icon:'person',\n MuiIconAttributes:{\n color: 'secondary',\n sx: { mt: 1.5 }\n }\n }\n },\n layout: {\n xs:12, sm:6, md:12\n }\n}]} guid=\"typography\"/>",
1003
- settings: {},
1004
- evalInContext: n,
1005
- },
1006
- ];
1007
- },
1008
- 195(e, t, a) {
1009
- a.r(t), a.d(t, 'default', () => CheckBox);
1010
- const i = a(0);
1011
- const r = a.n(i);
1012
- const n = a(412);
1013
- const s = a(283);
1014
- const o = a(3);
1015
- function CheckBox(e) {
1016
- const { attributes: t, onChange: a } = e;
1017
- const { MuiAttributes: i = {}, MuiFCLAttributes: c = {}, id: l = '' } = t;
1018
- const [u, p] = r.a.useState(i.defaultChecked || (t == null ? void 0 : t.value) || !1);
1019
- return Object(o.jsx)(s.a, {
1020
- ...c,
1021
- control: Object(o.jsx)(n.a, {
1022
- checked: u,
1023
- onChange: (e) => {
1024
- p(e.target.checked), a({ id: l, value: e.target.checked });
1025
- },
1026
- ...i,
1027
- inputProps: { 'aria-label': 'controlled' },
1028
- }),
1029
- });
1030
- }
1031
- CheckBox.defaultProps = { attributes: {}, onChange: null };
1032
- },
1033
- 196(e, t, a) {
1034
- a.r(t), a.d(t, 'default', () => Typography);
1035
- a(0);
1036
- const i = a(284);
1037
- const r = a(413);
1038
- const n = a(285);
1039
- const s = a(3);
1040
- function Typography(e) {
1041
- const { attributes: t } = e;
1042
- const { MuiAttributes: a = {}, text: o = '', MuiIcon: c = {} } = t;
1043
- return c && c.icon
1044
- ? Object(s.jsxs)(r.a, {
1045
- sx: { display: 'flex', width: '100%' },
1046
- children: [
1047
- Object(s.jsx)(n.a, { ...c.MuiIconAttributes, children: c.icon }, c.icon),
1048
- Object(s.jsx)(i.a, { ...a, children: o }),
1049
- ],
1050
- })
1051
- : Object(s.jsx)(i.a, { ...a, children: o });
1052
- }
1053
- Typography.defaultProps = { attributes: {} };
1054
- },
1055
- 197(e, t, a) {
1056
- a.r(t), a.d(t, 'default', () => DataTable);
1057
- a(0);
1058
- const i = a(1234);
1059
- const r = a(3);
1060
- function DataTable(e) {
1061
- const { attributes: t } = e;
1062
- const { MuiAttributes: a = {}, container: n = {} } = t;
1063
- return Object(r.jsx)('div', { ...n, children: Object(r.jsx)(i.a, { ...a }) });
1064
- }
1065
- DataTable.defaultProps = { attributes: {} };
1066
- },
1067
- 198(e, t, a) {
1068
- a.r(t), a.d(t, 'default', () => DateTime);
1069
- const i = a(0);
1070
- const r = a.n(i);
1071
- const n = a(227);
1072
- const s = a(281);
1073
- const o = a(164);
1074
- const c = a(40);
1075
- const l = a(74);
1076
- const u = a(3);
1077
- function DateTime(e) {
1078
- const { attributes: t, onChange: a } = e;
1079
- const {
1080
- MuiAttributes: i = {},
1081
- name: p = 'DatePicker',
1082
- id: d = '',
1083
- MuiTextAttributes: m,
1084
- } = t;
1085
- const [j, y] = r.a.useState(
1086
- t != null && t.value ? new Date(t == null ? void 0 : t.value) : new Date(),
1087
- );
1088
- Object(l.a)(() => {
1089
- t != null && t.value && y(new Date(t == null ? void 0 : t.value));
1090
- }, [t == null ? void 0 : t.value]);
1091
- const b = Object(c.a)(p);
1092
- return Object(u.jsx)(o.a, {
1093
- dateAdapter: s.a,
1094
- children: Object(u.jsx)(b, {
1095
- value: j,
1096
- onChange: (e) => {
1097
- y(e), a({ id: d, value: e });
1098
- },
1099
- ...i,
1100
- renderInput: (e) => Object(u.jsx)(n.a, { ...e, ...m }),
1101
- }),
1102
- });
1103
- }
1104
- DateTime.defaultProps = { attributes: {}, onChange: null };
1105
- },
1106
- 199(e, t, a) {
1107
- a.r(t), a.d(t, 'default', () => DateTimePicker);
1108
- const i = a(0);
1109
- const r = a.n(i);
1110
- const n = a(227);
1111
- const s = a(281);
1112
- const o = a(164);
1113
- const c = a(40);
1114
- const l = a(74);
1115
- const u = a(3);
1116
- function DateTimePicker(e) {
1117
- const { attributes: t, onChange: a } = e;
1118
- const {
1119
- MuiAttributes: i = {},
1120
- name: p = 'DateTimePicker',
1121
- id: d = '',
1122
- MuiTextAttributes: m,
1123
- } = t;
1124
- const [j, y] = r.a.useState(
1125
- t != null && t.value ? new Date(t == null ? void 0 : t.value) : new Date(),
1126
- );
1127
- Object(l.a)(() => {
1128
- t != null && t.value && y(new Date(t == null ? void 0 : t.value));
1129
- }, [t == null ? void 0 : t.value]);
1130
- const b = Object(c.a)(p);
1131
- return Object(u.jsx)(o.a, {
1132
- dateAdapter: s.a,
1133
- children: Object(u.jsx)(b, {
1134
- value: j,
1135
- onChange: (e) => {
1136
- y(e), a({ id: d, value: e });
1137
- },
1138
- ...i,
1139
- renderInput: (e) => Object(u.jsx)(n.a, { ...e, ...m }),
1140
- }),
1141
- });
1142
- }
1143
- DateTimePicker.defaultProps = { attributes: {}, onChange: null };
1144
- },
1145
- 200(e, t, a) {
1146
- a.r(t), a.d(t, 'default', () => TimePicker);
1147
- const i = a(0);
1148
- const r = a.n(i);
1149
- const n = a(227);
1150
- const s = a(281);
1151
- const o = a(164);
1152
- const c = a(40);
1153
- const l = a(74);
1154
- const u = a(3);
1155
- function TimePicker(e) {
1156
- const { attributes: t, onChange: a } = e;
1157
- const {
1158
- MuiAttributes: i = {},
1159
- name: p = 'TimePicker',
1160
- id: d = '',
1161
- MuiTextAttributes: m,
1162
- } = t;
1163
- const [j, y] = r.a.useState(
1164
- t != null && t.value ? new Date(t == null ? void 0 : t.value) : new Date(),
1165
- );
1166
- Object(l.a)(() => {
1167
- t != null && t.value && y(new Date(t == null ? void 0 : t.value));
1168
- }, [t == null ? void 0 : t.value]);
1169
- const b = Object(c.a)(p);
1170
- return Object(u.jsx)(o.a, {
1171
- dateAdapter: s.a,
1172
- children: Object(u.jsx)(b, {
1173
- value: j,
1174
- onChange: (e) => {
1175
- y(e), a({ id: d, value: e });
1176
- },
1177
- ...i,
1178
- renderInput: (e) => Object(u.jsx)(n.a, { ...e, ...m }),
1179
- }),
1180
- });
1181
- }
1182
- TimePicker.defaultProps = { attributes: {}, onChange: null };
1183
- },
1184
- 201(e, t, a) {
1185
- a.r(t), a.d(t, 'default', () => Select);
1186
- const i = a(0);
1187
- const r = a.n(i);
1188
- const n = a(412);
1189
- const s = a(227);
1190
- const o = a(1237);
1191
- const c = a(400);
1192
- const l = a.n(c);
1193
- const u = a(401);
1194
- const p = a.n(u);
1195
- const d = a(40);
1196
- const m = a(3);
1197
- const j = Object(m.jsx)(l.a, { fontSize: 'small' });
1198
- const y = Object(m.jsx)(p.a, { fontSize: 'small' });
1199
- const getValue = function () {
1200
- const e = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : '';
1201
- return (arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : []).find((t) => {
1202
- const { value: a } = t;
1203
- return e === a;
1204
- });
1205
- };
1206
- function Select(e) {
1207
- const { attributes: t, onChange: a } = e;
1208
- const {
1209
- MuiAttributes: c = {},
1210
- options: l = [],
1211
- MuiBoxAttributes: u = {},
1212
- id: p = '',
1213
- InputProps: b = {},
1214
- } = t;
1215
- const [h, f] = r.a.useState(
1216
- (t == null ? void 0 : t.value) && getValue(l, t == null ? void 0 : t.value),
1217
- );
1218
- const x = Object(i.useCallback)((e, t) => {
1219
- if ((f(t), t)) {
1220
- const e = c.multiple
1221
- ? (t || []).map(
1222
- (e) =>
1223
- (e == null ? void 0 : e.title) ||
1224
- (e == null ? void 0 : e.label) ||
1225
- (e == null ? void 0 : e.value),
1226
- )
1227
- : (t == null ? void 0 : t.title) ||
1228
- (t == null ? void 0 : t.label) ||
1229
- (t == null ? void 0 : t.value);
1230
- a({ id: p, value: e, option: t });
1231
- } else a({ id: p, value: '', options: t });
1232
- }, []);
1233
- return Object(m.jsx)(o.a, {
1234
- ...(c.multiple &&
1235
- (c.renderOption = function (e) {
1236
- const t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {};
1237
- const { selected: a } = arguments.length > 2 ? arguments[2] : void 0;
1238
- return Object(m.jsxs)('li', {
1239
- ...e,
1240
- children: [
1241
- Object(m.jsx)(n.a, {
1242
- icon: j,
1243
- checkedIcon: y,
1244
- style: { marginRight: 8 },
1245
- checked: a,
1246
- sx: Object(d.b)(t.color || ''),
1247
- }),
1248
- t.title || t.label || t.value,
1249
- ],
1250
- });
1251
- }),
1252
- c),
1253
- disablePortal: !0,
1254
- options: l,
1255
- value: h,
1256
- onChange: x,
1257
- renderInput: (e) =>
1258
- Object(m.jsx)(s.a, {
1259
- ...e,
1260
- ...u,
1261
- inputProps: { ...e.inputProps, autoComplete: 'new-password' },
1262
- InputProps: { ...e.InputProps, ...Object(d.e)(b) },
1263
- }),
1264
- });
1265
- }
1266
- Select.defaultProps = { attributes: {}, onChange: null };
1267
- },
1268
- 203(e, t, a) {
1269
- a.r(t), a.d(t, 'default', () => Switch);
1270
- const i = a(0);
1271
- const r = a.n(i);
1272
- const n = a(411);
1273
- const s = a(283);
1274
- const o = a(8);
1275
- const c = a(147);
1276
- const l = a(74);
1277
- const u = a(3);
1278
- const p = Object(o.a)((e) => {
1279
- const { color: t, ...a } = e;
1280
- return Object(u.jsx)(n.a, { ...a });
1281
- })((e) => {
1282
- const { theme: t } = e;
1283
- return {
1284
- '& .MuiSwitch-switchBase.Mui-checked': {
1285
- color: (e) => e.color || 'green',
1286
- '&:hover': {
1287
- backgroundColor: (e) =>
1288
- Object(c.a)(e.color || 'green', t.palette.action.hoverOpacity),
1289
- },
1290
- },
1291
- '& .MuiSwitch-switchBase.Mui-checked + .MuiSwitch-track': {
1292
- backgroundColor: (e) => e.color || 'green',
1293
- },
1294
- };
1295
- });
1296
- function Switch(e) {
1297
- const { attributes: t, onChange: a } = e;
1298
- const { MuiAttributes: o = {}, MuiFCLAttributes: c = {}, color: d = '', id: m = '' } = t;
1299
- const [j, y] = r.a.useState(!1);
1300
- Object(i.useEffect)(() => {
1301
- (t.value || o.defaultValue) && y(t.value || o.defaultValue);
1302
- }, []),
1303
- Object(l.a)(() => {
1304
- y(t.value);
1305
- }, [t.value]);
1306
- const b = d ? p : n.a;
1307
- return Object(u.jsx)(s.a, {
1308
- ...c,
1309
- control: Object(u.jsx)(b, {
1310
- checked: j,
1311
- onChange: (e) => {
1312
- y(e.target.checked), a({ id: m, value: e.target.checked });
1313
- },
1314
- ...o,
1315
- inputProps: { 'aria-label': 'controlled' },
1316
- }),
1317
- });
1318
- }
1319
- Switch.defaultProps = { attributes: {}, onChange: null };
1320
- },
1321
- 204(e, t, a) {
1322
- a.r(t), a.d(t, 'default', () => Radio);
1323
- const i = a(0);
1324
- const r = a.n(i);
1325
- const n = a(1236);
1326
- const s = a(413);
1327
- const o = a(1240);
1328
- const c = a(283);
1329
- const l = a(1241);
1330
- const u = a(406);
1331
- const p = a(285);
1332
- const d = a(74);
1333
- const m = a(3);
1334
- function Radio(e) {
1335
- const { attributes: t, onChange: a } = e;
1336
- const {
1337
- MuiAttributes: j = {},
1338
- MuiFCLAttributes: y = {},
1339
- MuiRGAttributes: b = {},
1340
- id: h = '',
1341
- MuiFLAttributes: f = {},
1342
- MuiFCLabels: x = [],
1343
- MuiFLabel: S = '',
1344
- MuiFLabelIcon: _ = {},
1345
- } = t;
1346
- const [g, v] = r.a.useState('');
1347
- Object(i.useEffect)(() => {
1348
- (t.value || j.defaultValue) && v(t.value || j.defaultValue);
1349
- }, []),
1350
- Object(d.a)(() => {
1351
- v(t.value);
1352
- }, [t.value]);
1353
- const C = Object(i.useMemo)(
1354
- () =>
1355
- _ && _.icon
1356
- ? Object(m.jsxs)(s.a, {
1357
- sx: { display: 'flex', width: '100%' },
1358
- children: [
1359
- _ &&
1360
- _.icon &&
1361
- Object(m.jsx)(
1362
- p.a,
1363
- { ..._.MuiFLabelIconAttributes, children: _.icon },
1364
- _.icon,
1365
- ),
1366
- Object(m.jsx)(u.a, { ...f, id: 'radio-buttons-group-label', children: S }),
1367
- ],
1368
- })
1369
- : Object(m.jsx)(u.a, { ...f, id: 'radio-buttons-group-label', children: S }),
1370
- [],
1371
- );
1372
- return Object(m.jsxs)(l.a, {
1373
- children: [
1374
- S && C,
1375
- Object(m.jsx)(o.a, {
1376
- 'aria-labelledby': 'radio-buttons-group-label',
1377
- name: 'radio-buttons-group',
1378
- ...b,
1379
- value: g,
1380
- onChange: (e) => {
1381
- v(e.target.value), a({ id: h, value: e.target.value });
1382
- },
1383
- children: x.map((e) =>
1384
- Object(m.jsx)(c.a, {
1385
- ...y,
1386
- value: e,
1387
- control: Object(m.jsx)(n.a, { ...j }),
1388
- label: e,
1389
- }),
1390
- ),
1391
- }),
1392
- ],
1393
- });
1394
- }
1395
- Radio.defaultProps = { attributes: {}, onChange: null };
1396
- },
1397
- 205(e, t, a) {
1398
- a.r(t), a.d(t, 'default', () => textfield_TextField);
1399
- const i = a(0);
1400
- const r = a.n(i);
1401
- const n = a(210);
1402
- const s = a.n(n);
1403
- const o = a(227);
1404
- const c = a(40);
1405
- const l = a(30);
1406
- const u = a.n(l);
1407
- const p = {
1408
- email: (e, t) => u.a.isEmail(e, t),
1409
- equals: (e, t) => u.a.equals(e, t),
1410
- mandatory: (e) => !u.a.isEmpty(e),
1411
- mandatoryselect: (e) => e.length > 0,
1412
- mobile: (e, t) => u.a.isMobilePhone(e, t),
1413
- lowercase: (e) => u.a.isLowercase(e),
1414
- uppercase: (e) => u.a.isUppercase(e),
1415
- length: (e, t) => u.a.isLength(e, t),
1416
- url: (e, t) => u.a.isURL(e, t),
1417
- creditcard: (e) => u.a.isCreditCard(e),
1418
- currency: (e, t) => u.a.isCurrency(e, t),
1419
- date: (e) => u.a.isDate(e),
1420
- boolean: (e) => u.a.isBoolean(e),
1421
- alphanumeric(e, t) {
1422
- u.a.isAlphanumeric(e, t);
1423
- },
1424
- contains: (e, t) => u.a.contains(e, t),
1425
- FQDN: (e, t) => u.a.isFQDN(e, t),
1426
- float: (e, t) => u.a.isFloat(e, t),
1427
- ip: (e, t) => u.a.isIP(e, t),
1428
- ISBN: (e, t) => u.a.isISBN(e, t),
1429
- MACAddress: (e) => u.a.isMACAddress(e),
1430
- MD5: (e) => u.a.isMD5(e),
1431
- numeric: (e) => u.a.isNumeric(e),
1432
- UUID: (e, t) => u.a.isUUID(e, t),
1433
- matches: (e, t) => u.a.matches(e, t),
1434
- int: (e, t) => u.a.isInt(e, t),
1435
- hexcolor: (e) => u.a.isHexColor(e),
1436
- dataURI: (e) => u.a.isDataURI(e),
1437
- decimal: (e) => u.a.isDecimal(e),
1438
- alpha: (e, t) => u.a.isAlpha(e, t),
1439
- negative: (e) => s()(e).value() > -1,
1440
- };
1441
- const d = a(3);
1442
- function textfield_TextField(e) {
1443
- const { attributes: t, rules: a = {}, onChange: i } = e;
1444
- const { MuiAttributes: n = {}, InputProps: l = {}, format: u = '', id: m = '' } = t;
1445
- const [j, y] = r.a.useState({
1446
- value: t.value || '',
1447
- helperText: n.helperText || '',
1448
- error: !1,
1449
- });
1450
- const validate = (e) => {
1451
- let t = !1;
1452
- const { validation: i } = a;
1453
- if (i)
1454
- for (let a = 0; a < i.length; a += 1) {
1455
- const r = i[a];
1456
- if (((t = p[r.rule](e, r.value)), !t)) return { isValid: !1, message: r.message };
1457
- }
1458
- return { isValid: !0, message: '' };
1459
- };
1460
- return Object(d.jsx)(o.a, {
1461
- fullWidth: !0,
1462
- ...n,
1463
- InputProps: Object(c.e)(l),
1464
- onChange() {
1465
- for (var e = arguments.length, t = new Array(e), a = 0; a < e; a++) t[a] = arguments[a];
1466
- const { value: i } = t[0].target;
1467
- const r = validate(i);
1468
- y({ value: i, helperText: r.message, error: !r.isValid });
1469
- },
1470
- onBlur() {
1471
- for (var e = arguments.length, t = new Array(e), a = 0; a < e; a++) t[a] = arguments[a];
1472
- const { value: r } = t[0].target;
1473
- const n = ((o = r), u ? s()(o).format(u) : o);
1474
- let o;
1475
- const c = validate(n);
1476
- y({ value: n, helperText: c.message, error: !c.isValid }),
1477
- typeof i === 'function' && i({ id: m, value: n });
1478
- },
1479
- onFocus: () => {},
1480
- value: j.value,
1481
- error: j.error,
1482
- helperText: j.helperText,
1483
- });
1484
- }
1485
- textfield_TextField.defaultProps = { attributes: {}, rules: {}, onChange: null };
1486
- },
1487
- 265(e, t, a) {
1488
- a.r(t),
1489
- a.d(t, 'mui', () => i),
1490
- a.d(t, 'responsiveness', () => r),
1491
- a.d(t, 'dateRange', () => n),
1492
- a.d(t, 'dateTimePicker', () => s),
1493
- a.d(t, 'timePicker', () => o);
1494
- const i = [
1495
- {
1496
- type: 'datetime',
1497
- props: {
1498
- id: 'datetime',
1499
- MuiAttributes: {
1500
- placeholder: 'Standard',
1501
- variant: 'standard',
1502
- fullWidth: !0,
1503
- sx: { width: '100%' },
1504
- },
1505
- value: '12/09/2023',
1506
- },
1507
- layout: { row: 1, xs: 4, sm: 4 },
1508
- },
1509
- ];
1510
- const r = [
1511
- {
1512
- type: 'datetime',
1513
- props: {
1514
- id: 'datetimemobile',
1515
- MuiAttributes: { label: 'For mobile', fullWidth: !0, variant: 'standard' },
1516
- name: 'MobileDatePicker',
1517
- },
1518
- layout: { row: 1, xs: 4, sm: 4 },
1519
- },
1520
- {
1521
- type: 'datetime',
1522
- props: {
1523
- id: 'datetimestandard',
1524
- MuiAttributes: { label: 'For desktop', fullWidth: !0, variant: 'standard' },
1525
- name: 'DesktopDatePicker',
1526
- },
1527
- layout: { row: 1, xs: 4, sm: 4 },
1528
- },
1529
- {
1530
- type: 'datetime',
1531
- props: {
1532
- id: 'datetimeresponsive',
1533
- MuiAttributes: {
1534
- label: 'Responsive',
1535
- fullWidth: !0,
1536
- variant: 'standard',
1537
- disableFuture: !0,
1538
- openTo: 'year',
1539
- views: ['year', 'month', 'day'],
1540
- },
1541
- },
1542
- layout: { row: 1, xs: 4, sm: 4 },
1543
- },
1544
- ];
1545
- const n = [
1546
- {
1547
- type: 'daterangepicker',
1548
- props: {
1549
- id: 'daterangepicker',
1550
- MuiAttributes: {
1551
- fullWidth: !0,
1552
- variant: 'standard',
1553
- startText: 'Check-in',
1554
- endText: 'Check-out',
1555
- },
1556
- },
1557
- layout: { row: 1, xs: 12, sm: 12 },
1558
- },
1559
- ];
1560
- const s = [
1561
- {
1562
- type: 'datetimepicker',
1563
- props: {
1564
- id: 'datetimepicker',
1565
- MuiAttributes: { label: 'Standard', fullWidth: !0, variant: 'standard' },
1566
- },
1567
- layout: { row: 1, xs: 12, sm: 12 },
1568
- },
1569
- ];
1570
- const o = [
1571
- {
1572
- type: 'timepicker',
1573
- props: {
1574
- id: 'timepicker',
1575
- MuiAttributes: { label: 'Standard', fullWidth: !0, variant: 'standard' },
1576
- },
1577
- layout: { row: 1, xs: 12, sm: 12 },
1578
- },
1579
- ];
1580
- },
1581
- 40(e, t, a) {
1582
- a.d(t, 'd', () => generateLayout),
1583
- a.d(t, 'e', () => getInputProps),
1584
- a.d(t, 'c', () => generateKey),
1585
- a.d(t, 'f', () => updatePatchData),
1586
- a.d(t, 'a', () => DateComponent),
1587
- a.d(t, 'b', () => checkboxSX);
1588
- const i = a(99);
1589
- const r = a(82);
1590
- const n = a.n(r);
1591
- const s = a(417);
1592
- const o = a(285);
1593
- const c = a(404);
1594
- const l = a(407);
1595
- const u = a(1230);
1596
- const p = a(408);
1597
- const d = a(414);
1598
- const m = a(1231);
1599
- const j = a(410);
1600
- const y = a(409);
1601
- const b = a(1232);
1602
- const h = (a(0), a(3));
1603
- function generateLayout(e) {
1604
- const t = { wrows: [], worows: [] };
1605
- const a = Object(i.clone)(e);
1606
- t.worows = Object(i.remove)(a, (e) => void 0 === (e.layout ? e.layout.row : e.layout));
1607
- const r = Object(i.map)(a, 'layout.row');
1608
- const n = Object(i.uniq)(r);
1609
- const s = Object(i.sortBy)(n);
1610
- return (
1611
- Object(i.each)(s, (e) => {
1612
- const r = [];
1613
- Object(i.each)(a, (t) => {
1614
- t.layout && t.layout.row === e && r.push(t);
1615
- }),
1616
- t.wrows.push(r);
1617
- }),
1618
- t
1619
- );
1620
- }
1621
- function getInputProps(e) {
1622
- if (!n()(e)) {
1623
- const {
1624
- MuiInputAdornment: t = {},
1625
- position: a = 'start',
1626
- icon: i,
1627
- text: r,
1628
- textstyle: c = {},
1629
- } = e;
1630
- return {
1631
- [''.concat(a, 'Adornment')]: Object(h.jsxs)(s.a, {
1632
- ...t,
1633
- children: [
1634
- i && Object(h.jsx)(o.a, { children: i }),
1635
- n()(c) ? r || '' : Object(h.jsx)('div', { style: c, children: r || '' }),
1636
- ],
1637
- }),
1638
- };
1639
- }
1640
- return {};
1641
- }
1642
- const generateKey = function () {
1643
- const e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : '';
1644
- const t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : 0;
1645
- const a = Math.random().toString(36).substr(2, 9);
1646
- const i = new Date().toLocaleTimeString('en').trim();
1647
- return ''.concat(e, '_').concat(t, '_').concat(a, '_').concat(i);
1648
- };
1649
- const updatePatchData = (e, t, a, r) => {
1650
- r[a] = t;
1651
- const n = Object.assign([], e);
1652
- return Object(i.map)(n, (e) => {
1653
- let t;
1654
- const i = { ...e };
1655
- const n =
1656
- (i == null ? void 0 : i.id) ||
1657
- (i == null || (t = i.props) === null || void 0 === t ? void 0 : t.id);
1658
- return n && r[a][n] && (i.props.value = r[a][n] || ''), i;
1659
- });
1660
- };
1661
- const DateComponent = (e) =>
1662
- e === 'MobileDatePicker'
1663
- ? c.a
1664
- : e === 'DesktopDatePicker'
1665
- ? l.a
1666
- : e === 'DateTimePicker'
1667
- ? u.a
1668
- : e === 'MobileDateTimePicker'
1669
- ? p.a
1670
- : e === 'DesktopDateTimePicker'
1671
- ? d.a
1672
- : e === 'TimePicker'
1673
- ? m.a
1674
- : e === 'MobileTimePicker'
1675
- ? j.a
1676
- : e === 'DesktopTimePicker'
1677
- ? y.a
1678
- : b.a;
1679
- const checkboxSX = (e) => (e ? { color: e, '&.Mui-checked': { color: e } } : {});
1680
- },
1681
- 452(e, t, a) {
1682
- e.exports = a(1222);
1683
- },
1684
- 647(e, t, a) {
1685
- const i = {
1686
- './Binary_Property/ASCII.js': 648,
1687
- './Binary_Property/ASCII_Hex_Digit.js': 649,
1688
- './Binary_Property/Alphabetic.js': 650,
1689
- './Binary_Property/Any.js': 651,
1690
- './Binary_Property/Assigned.js': 652,
1691
- './Binary_Property/Bidi_Control.js': 653,
1692
- './Binary_Property/Bidi_Mirrored.js': 654,
1693
- './Binary_Property/Case_Ignorable.js': 655,
1694
- './Binary_Property/Cased.js': 656,
1695
- './Binary_Property/Changes_When_Casefolded.js': 657,
1696
- './Binary_Property/Changes_When_Casemapped.js': 658,
1697
- './Binary_Property/Changes_When_Lowercased.js': 659,
1698
- './Binary_Property/Changes_When_NFKC_Casefolded.js': 660,
1699
- './Binary_Property/Changes_When_Titlecased.js': 661,
1700
- './Binary_Property/Changes_When_Uppercased.js': 662,
1701
- './Binary_Property/Dash.js': 663,
1702
- './Binary_Property/Default_Ignorable_Code_Point.js': 664,
1703
- './Binary_Property/Deprecated.js': 665,
1704
- './Binary_Property/Diacritic.js': 666,
1705
- './Binary_Property/Emoji.js': 667,
1706
- './Binary_Property/Emoji_Component.js': 668,
1707
- './Binary_Property/Emoji_Modifier.js': 669,
1708
- './Binary_Property/Emoji_Modifier_Base.js': 670,
1709
- './Binary_Property/Emoji_Presentation.js': 671,
1710
- './Binary_Property/Extended_Pictographic.js': 672,
1711
- './Binary_Property/Extender.js': 673,
1712
- './Binary_Property/Grapheme_Base.js': 674,
1713
- './Binary_Property/Grapheme_Extend.js': 675,
1714
- './Binary_Property/Hex_Digit.js': 676,
1715
- './Binary_Property/IDS_Binary_Operator.js': 677,
1716
- './Binary_Property/IDS_Trinary_Operator.js': 678,
1717
- './Binary_Property/ID_Continue.js': 679,
1718
- './Binary_Property/ID_Start.js': 680,
1719
- './Binary_Property/Ideographic.js': 681,
1720
- './Binary_Property/Join_Control.js': 682,
1721
- './Binary_Property/Logical_Order_Exception.js': 683,
1722
- './Binary_Property/Lowercase.js': 684,
1723
- './Binary_Property/Math.js': 685,
1724
- './Binary_Property/Noncharacter_Code_Point.js': 686,
1725
- './Binary_Property/Pattern_Syntax.js': 687,
1726
- './Binary_Property/Pattern_White_Space.js': 688,
1727
- './Binary_Property/Quotation_Mark.js': 689,
1728
- './Binary_Property/Radical.js': 690,
1729
- './Binary_Property/Regional_Indicator.js': 691,
1730
- './Binary_Property/Sentence_Terminal.js': 692,
1731
- './Binary_Property/Soft_Dotted.js': 693,
1732
- './Binary_Property/Terminal_Punctuation.js': 694,
1733
- './Binary_Property/Unified_Ideograph.js': 695,
1734
- './Binary_Property/Uppercase.js': 696,
1735
- './Binary_Property/Variation_Selector.js': 697,
1736
- './Binary_Property/White_Space.js': 698,
1737
- './Binary_Property/XID_Continue.js': 699,
1738
- './Binary_Property/XID_Start.js': 700,
1739
- './General_Category/Cased_Letter.js': 701,
1740
- './General_Category/Close_Punctuation.js': 702,
1741
- './General_Category/Connector_Punctuation.js': 703,
1742
- './General_Category/Control.js': 704,
1743
- './General_Category/Currency_Symbol.js': 705,
1744
- './General_Category/Dash_Punctuation.js': 706,
1745
- './General_Category/Decimal_Number.js': 707,
1746
- './General_Category/Enclosing_Mark.js': 708,
1747
- './General_Category/Final_Punctuation.js': 709,
1748
- './General_Category/Format.js': 710,
1749
- './General_Category/Initial_Punctuation.js': 711,
1750
- './General_Category/Letter.js': 712,
1751
- './General_Category/Letter_Number.js': 713,
1752
- './General_Category/Line_Separator.js': 714,
1753
- './General_Category/Lowercase_Letter.js': 715,
1754
- './General_Category/Mark.js': 716,
1755
- './General_Category/Math_Symbol.js': 717,
1756
- './General_Category/Modifier_Letter.js': 718,
1757
- './General_Category/Modifier_Symbol.js': 719,
1758
- './General_Category/Nonspacing_Mark.js': 720,
1759
- './General_Category/Number.js': 721,
1760
- './General_Category/Open_Punctuation.js': 722,
1761
- './General_Category/Other.js': 723,
1762
- './General_Category/Other_Letter.js': 724,
1763
- './General_Category/Other_Number.js': 725,
1764
- './General_Category/Other_Punctuation.js': 726,
1765
- './General_Category/Other_Symbol.js': 727,
1766
- './General_Category/Paragraph_Separator.js': 728,
1767
- './General_Category/Private_Use.js': 729,
1768
- './General_Category/Punctuation.js': 730,
1769
- './General_Category/Separator.js': 731,
1770
- './General_Category/Space_Separator.js': 732,
1771
- './General_Category/Spacing_Mark.js': 733,
1772
- './General_Category/Surrogate.js': 734,
1773
- './General_Category/Symbol.js': 735,
1774
- './General_Category/Titlecase_Letter.js': 736,
1775
- './General_Category/Unassigned.js': 737,
1776
- './General_Category/Uppercase_Letter.js': 738,
1777
- './Script/Adlam.js': 739,
1778
- './Script/Ahom.js': 740,
1779
- './Script/Anatolian_Hieroglyphs.js': 741,
1780
- './Script/Arabic.js': 742,
1781
- './Script/Armenian.js': 743,
1782
- './Script/Avestan.js': 744,
1783
- './Script/Balinese.js': 745,
1784
- './Script/Bamum.js': 746,
1785
- './Script/Bassa_Vah.js': 747,
1786
- './Script/Batak.js': 748,
1787
- './Script/Bengali.js': 749,
1788
- './Script/Bhaiksuki.js': 750,
1789
- './Script/Bopomofo.js': 751,
1790
- './Script/Brahmi.js': 752,
1791
- './Script/Braille.js': 753,
1792
- './Script/Buginese.js': 754,
1793
- './Script/Buhid.js': 755,
1794
- './Script/Canadian_Aboriginal.js': 756,
1795
- './Script/Carian.js': 757,
1796
- './Script/Caucasian_Albanian.js': 758,
1797
- './Script/Chakma.js': 759,
1798
- './Script/Cham.js': 760,
1799
- './Script/Cherokee.js': 761,
1800
- './Script/Chorasmian.js': 762,
1801
- './Script/Common.js': 763,
1802
- './Script/Coptic.js': 764,
1803
- './Script/Cuneiform.js': 765,
1804
- './Script/Cypriot.js': 766,
1805
- './Script/Cyrillic.js': 767,
1806
- './Script/Deseret.js': 768,
1807
- './Script/Devanagari.js': 769,
1808
- './Script/Dives_Akuru.js': 770,
1809
- './Script/Dogra.js': 771,
1810
- './Script/Duployan.js': 772,
1811
- './Script/Egyptian_Hieroglyphs.js': 773,
1812
- './Script/Elbasan.js': 774,
1813
- './Script/Elymaic.js': 775,
1814
- './Script/Ethiopic.js': 776,
1815
- './Script/Georgian.js': 777,
1816
- './Script/Glagolitic.js': 778,
1817
- './Script/Gothic.js': 779,
1818
- './Script/Grantha.js': 780,
1819
- './Script/Greek.js': 781,
1820
- './Script/Gujarati.js': 782,
1821
- './Script/Gunjala_Gondi.js': 783,
1822
- './Script/Gurmukhi.js': 784,
1823
- './Script/Han.js': 785,
1824
- './Script/Hangul.js': 786,
1825
- './Script/Hanifi_Rohingya.js': 787,
1826
- './Script/Hanunoo.js': 788,
1827
- './Script/Hatran.js': 789,
1828
- './Script/Hebrew.js': 790,
1829
- './Script/Hiragana.js': 791,
1830
- './Script/Imperial_Aramaic.js': 792,
1831
- './Script/Inherited.js': 793,
1832
- './Script/Inscriptional_Pahlavi.js': 794,
1833
- './Script/Inscriptional_Parthian.js': 795,
1834
- './Script/Javanese.js': 796,
1835
- './Script/Kaithi.js': 797,
1836
- './Script/Kannada.js': 798,
1837
- './Script/Katakana.js': 799,
1838
- './Script/Kayah_Li.js': 800,
1839
- './Script/Kharoshthi.js': 801,
1840
- './Script/Khitan_Small_Script.js': 802,
1841
- './Script/Khmer.js': 803,
1842
- './Script/Khojki.js': 804,
1843
- './Script/Khudawadi.js': 805,
1844
- './Script/Lao.js': 806,
1845
- './Script/Latin.js': 807,
1846
- './Script/Lepcha.js': 808,
1847
- './Script/Limbu.js': 809,
1848
- './Script/Linear_A.js': 810,
1849
- './Script/Linear_B.js': 811,
1850
- './Script/Lisu.js': 812,
1851
- './Script/Lycian.js': 813,
1852
- './Script/Lydian.js': 814,
1853
- './Script/Mahajani.js': 815,
1854
- './Script/Makasar.js': 816,
1855
- './Script/Malayalam.js': 817,
1856
- './Script/Mandaic.js': 818,
1857
- './Script/Manichaean.js': 819,
1858
- './Script/Marchen.js': 820,
1859
- './Script/Masaram_Gondi.js': 821,
1860
- './Script/Medefaidrin.js': 822,
1861
- './Script/Meetei_Mayek.js': 823,
1862
- './Script/Mende_Kikakui.js': 824,
1863
- './Script/Meroitic_Cursive.js': 825,
1864
- './Script/Meroitic_Hieroglyphs.js': 826,
1865
- './Script/Miao.js': 827,
1866
- './Script/Modi.js': 828,
1867
- './Script/Mongolian.js': 829,
1868
- './Script/Mro.js': 830,
1869
- './Script/Multani.js': 831,
1870
- './Script/Myanmar.js': 832,
1871
- './Script/Nabataean.js': 833,
1872
- './Script/Nandinagari.js': 834,
1873
- './Script/New_Tai_Lue.js': 835,
1874
- './Script/Newa.js': 836,
1875
- './Script/Nko.js': 837,
1876
- './Script/Nushu.js': 838,
1877
- './Script/Nyiakeng_Puachue_Hmong.js': 839,
1878
- './Script/Ogham.js': 840,
1879
- './Script/Ol_Chiki.js': 841,
1880
- './Script/Old_Hungarian.js': 842,
1881
- './Script/Old_Italic.js': 843,
1882
- './Script/Old_North_Arabian.js': 844,
1883
- './Script/Old_Permic.js': 845,
1884
- './Script/Old_Persian.js': 846,
1885
- './Script/Old_Sogdian.js': 847,
1886
- './Script/Old_South_Arabian.js': 848,
1887
- './Script/Old_Turkic.js': 849,
1888
- './Script/Oriya.js': 850,
1889
- './Script/Osage.js': 851,
1890
- './Script/Osmanya.js': 852,
1891
- './Script/Pahawh_Hmong.js': 853,
1892
- './Script/Palmyrene.js': 854,
1893
- './Script/Pau_Cin_Hau.js': 855,
1894
- './Script/Phags_Pa.js': 856,
1895
- './Script/Phoenician.js': 857,
1896
- './Script/Psalter_Pahlavi.js': 858,
1897
- './Script/Rejang.js': 859,
1898
- './Script/Runic.js': 860,
1899
- './Script/Samaritan.js': 861,
1900
- './Script/Saurashtra.js': 862,
1901
- './Script/Sharada.js': 863,
1902
- './Script/Shavian.js': 864,
1903
- './Script/Siddham.js': 865,
1904
- './Script/SignWriting.js': 866,
1905
- './Script/Sinhala.js': 867,
1906
- './Script/Sogdian.js': 868,
1907
- './Script/Sora_Sompeng.js': 869,
1908
- './Script/Soyombo.js': 870,
1909
- './Script/Sundanese.js': 871,
1910
- './Script/Syloti_Nagri.js': 872,
1911
- './Script/Syriac.js': 873,
1912
- './Script/Tagalog.js': 874,
1913
- './Script/Tagbanwa.js': 875,
1914
- './Script/Tai_Le.js': 876,
1915
- './Script/Tai_Tham.js': 877,
1916
- './Script/Tai_Viet.js': 878,
1917
- './Script/Takri.js': 879,
1918
- './Script/Tamil.js': 880,
1919
- './Script/Tangut.js': 881,
1920
- './Script/Telugu.js': 882,
1921
- './Script/Thaana.js': 883,
1922
- './Script/Thai.js': 884,
1923
- './Script/Tibetan.js': 885,
1924
- './Script/Tifinagh.js': 886,
1925
- './Script/Tirhuta.js': 887,
1926
- './Script/Ugaritic.js': 888,
1927
- './Script/Vai.js': 889,
1928
- './Script/Wancho.js': 890,
1929
- './Script/Warang_Citi.js': 891,
1930
- './Script/Yezidi.js': 892,
1931
- './Script/Yi.js': 893,
1932
- './Script/Zanabazar_Square.js': 894,
1933
- './Script_Extensions/Adlam.js': 895,
1934
- './Script_Extensions/Ahom.js': 896,
1935
- './Script_Extensions/Anatolian_Hieroglyphs.js': 897,
1936
- './Script_Extensions/Arabic.js': 898,
1937
- './Script_Extensions/Armenian.js': 899,
1938
- './Script_Extensions/Avestan.js': 900,
1939
- './Script_Extensions/Balinese.js': 901,
1940
- './Script_Extensions/Bamum.js': 902,
1941
- './Script_Extensions/Bassa_Vah.js': 903,
1942
- './Script_Extensions/Batak.js': 904,
1943
- './Script_Extensions/Bengali.js': 905,
1944
- './Script_Extensions/Bhaiksuki.js': 906,
1945
- './Script_Extensions/Bopomofo.js': 907,
1946
- './Script_Extensions/Brahmi.js': 908,
1947
- './Script_Extensions/Braille.js': 909,
1948
- './Script_Extensions/Buginese.js': 910,
1949
- './Script_Extensions/Buhid.js': 911,
1950
- './Script_Extensions/Canadian_Aboriginal.js': 912,
1951
- './Script_Extensions/Carian.js': 913,
1952
- './Script_Extensions/Caucasian_Albanian.js': 914,
1953
- './Script_Extensions/Chakma.js': 915,
1954
- './Script_Extensions/Cham.js': 916,
1955
- './Script_Extensions/Cherokee.js': 917,
1956
- './Script_Extensions/Chorasmian.js': 918,
1957
- './Script_Extensions/Common.js': 919,
1958
- './Script_Extensions/Coptic.js': 920,
1959
- './Script_Extensions/Cuneiform.js': 921,
1960
- './Script_Extensions/Cypriot.js': 922,
1961
- './Script_Extensions/Cyrillic.js': 923,
1962
- './Script_Extensions/Deseret.js': 924,
1963
- './Script_Extensions/Devanagari.js': 925,
1964
- './Script_Extensions/Dives_Akuru.js': 926,
1965
- './Script_Extensions/Dogra.js': 927,
1966
- './Script_Extensions/Duployan.js': 928,
1967
- './Script_Extensions/Egyptian_Hieroglyphs.js': 929,
1968
- './Script_Extensions/Elbasan.js': 930,
1969
- './Script_Extensions/Elymaic.js': 931,
1970
- './Script_Extensions/Ethiopic.js': 932,
1971
- './Script_Extensions/Georgian.js': 933,
1972
- './Script_Extensions/Glagolitic.js': 934,
1973
- './Script_Extensions/Gothic.js': 935,
1974
- './Script_Extensions/Grantha.js': 936,
1975
- './Script_Extensions/Greek.js': 937,
1976
- './Script_Extensions/Gujarati.js': 938,
1977
- './Script_Extensions/Gunjala_Gondi.js': 939,
1978
- './Script_Extensions/Gurmukhi.js': 940,
1979
- './Script_Extensions/Han.js': 941,
1980
- './Script_Extensions/Hangul.js': 942,
1981
- './Script_Extensions/Hanifi_Rohingya.js': 943,
1982
- './Script_Extensions/Hanunoo.js': 944,
1983
- './Script_Extensions/Hatran.js': 945,
1984
- './Script_Extensions/Hebrew.js': 946,
1985
- './Script_Extensions/Hiragana.js': 947,
1986
- './Script_Extensions/Imperial_Aramaic.js': 948,
1987
- './Script_Extensions/Inherited.js': 949,
1988
- './Script_Extensions/Inscriptional_Pahlavi.js': 950,
1989
- './Script_Extensions/Inscriptional_Parthian.js': 951,
1990
- './Script_Extensions/Javanese.js': 952,
1991
- './Script_Extensions/Kaithi.js': 953,
1992
- './Script_Extensions/Kannada.js': 954,
1993
- './Script_Extensions/Katakana.js': 955,
1994
- './Script_Extensions/Kayah_Li.js': 956,
1995
- './Script_Extensions/Kharoshthi.js': 957,
1996
- './Script_Extensions/Khitan_Small_Script.js': 958,
1997
- './Script_Extensions/Khmer.js': 959,
1998
- './Script_Extensions/Khojki.js': 960,
1999
- './Script_Extensions/Khudawadi.js': 961,
2000
- './Script_Extensions/Lao.js': 962,
2001
- './Script_Extensions/Latin.js': 963,
2002
- './Script_Extensions/Lepcha.js': 964,
2003
- './Script_Extensions/Limbu.js': 965,
2004
- './Script_Extensions/Linear_A.js': 966,
2005
- './Script_Extensions/Linear_B.js': 967,
2006
- './Script_Extensions/Lisu.js': 968,
2007
- './Script_Extensions/Lycian.js': 969,
2008
- './Script_Extensions/Lydian.js': 970,
2009
- './Script_Extensions/Mahajani.js': 971,
2010
- './Script_Extensions/Makasar.js': 972,
2011
- './Script_Extensions/Malayalam.js': 973,
2012
- './Script_Extensions/Mandaic.js': 974,
2013
- './Script_Extensions/Manichaean.js': 975,
2014
- './Script_Extensions/Marchen.js': 976,
2015
- './Script_Extensions/Masaram_Gondi.js': 977,
2016
- './Script_Extensions/Medefaidrin.js': 978,
2017
- './Script_Extensions/Meetei_Mayek.js': 979,
2018
- './Script_Extensions/Mende_Kikakui.js': 980,
2019
- './Script_Extensions/Meroitic_Cursive.js': 981,
2020
- './Script_Extensions/Meroitic_Hieroglyphs.js': 982,
2021
- './Script_Extensions/Miao.js': 983,
2022
- './Script_Extensions/Modi.js': 984,
2023
- './Script_Extensions/Mongolian.js': 985,
2024
- './Script_Extensions/Mro.js': 986,
2025
- './Script_Extensions/Multani.js': 987,
2026
- './Script_Extensions/Myanmar.js': 988,
2027
- './Script_Extensions/Nabataean.js': 989,
2028
- './Script_Extensions/Nandinagari.js': 990,
2029
- './Script_Extensions/New_Tai_Lue.js': 991,
2030
- './Script_Extensions/Newa.js': 992,
2031
- './Script_Extensions/Nko.js': 993,
2032
- './Script_Extensions/Nushu.js': 994,
2033
- './Script_Extensions/Nyiakeng_Puachue_Hmong.js': 995,
2034
- './Script_Extensions/Ogham.js': 996,
2035
- './Script_Extensions/Ol_Chiki.js': 997,
2036
- './Script_Extensions/Old_Hungarian.js': 998,
2037
- './Script_Extensions/Old_Italic.js': 999,
2038
- './Script_Extensions/Old_North_Arabian.js': 1e3,
2039
- './Script_Extensions/Old_Permic.js': 1001,
2040
- './Script_Extensions/Old_Persian.js': 1002,
2041
- './Script_Extensions/Old_Sogdian.js': 1003,
2042
- './Script_Extensions/Old_South_Arabian.js': 1004,
2043
- './Script_Extensions/Old_Turkic.js': 1005,
2044
- './Script_Extensions/Oriya.js': 1006,
2045
- './Script_Extensions/Osage.js': 1007,
2046
- './Script_Extensions/Osmanya.js': 1008,
2047
- './Script_Extensions/Pahawh_Hmong.js': 1009,
2048
- './Script_Extensions/Palmyrene.js': 1010,
2049
- './Script_Extensions/Pau_Cin_Hau.js': 1011,
2050
- './Script_Extensions/Phags_Pa.js': 1012,
2051
- './Script_Extensions/Phoenician.js': 1013,
2052
- './Script_Extensions/Psalter_Pahlavi.js': 1014,
2053
- './Script_Extensions/Rejang.js': 1015,
2054
- './Script_Extensions/Runic.js': 1016,
2055
- './Script_Extensions/Samaritan.js': 1017,
2056
- './Script_Extensions/Saurashtra.js': 1018,
2057
- './Script_Extensions/Sharada.js': 1019,
2058
- './Script_Extensions/Shavian.js': 1020,
2059
- './Script_Extensions/Siddham.js': 1021,
2060
- './Script_Extensions/SignWriting.js': 1022,
2061
- './Script_Extensions/Sinhala.js': 1023,
2062
- './Script_Extensions/Sogdian.js': 1024,
2063
- './Script_Extensions/Sora_Sompeng.js': 1025,
2064
- './Script_Extensions/Soyombo.js': 1026,
2065
- './Script_Extensions/Sundanese.js': 1027,
2066
- './Script_Extensions/Syloti_Nagri.js': 1028,
2067
- './Script_Extensions/Syriac.js': 1029,
2068
- './Script_Extensions/Tagalog.js': 1030,
2069
- './Script_Extensions/Tagbanwa.js': 1031,
2070
- './Script_Extensions/Tai_Le.js': 1032,
2071
- './Script_Extensions/Tai_Tham.js': 1033,
2072
- './Script_Extensions/Tai_Viet.js': 1034,
2073
- './Script_Extensions/Takri.js': 1035,
2074
- './Script_Extensions/Tamil.js': 1036,
2075
- './Script_Extensions/Tangut.js': 1037,
2076
- './Script_Extensions/Telugu.js': 1038,
2077
- './Script_Extensions/Thaana.js': 1039,
2078
- './Script_Extensions/Thai.js': 1040,
2079
- './Script_Extensions/Tibetan.js': 1041,
2080
- './Script_Extensions/Tifinagh.js': 1042,
2081
- './Script_Extensions/Tirhuta.js': 1043,
2082
- './Script_Extensions/Ugaritic.js': 1044,
2083
- './Script_Extensions/Vai.js': 1045,
2084
- './Script_Extensions/Wancho.js': 1046,
2085
- './Script_Extensions/Warang_Citi.js': 1047,
2086
- './Script_Extensions/Yezidi.js': 1048,
2087
- './Script_Extensions/Yi.js': 1049,
2088
- './Script_Extensions/Zanabazar_Square.js': 1050,
2089
- './index.js': 1051,
2090
- './unicode-version.js': 1052,
2091
- };
2092
- function webpackContext(e) {
2093
- const t = webpackContextResolve(e);
2094
- return a(t);
2095
- }
2096
- function webpackContextResolve(e) {
2097
- if (!a.o(i, e)) {
2098
- const t = new Error(`Cannot find module '${e}'`);
2099
- throw ((t.code = 'MODULE_NOT_FOUND'), t);
2100
- }
2101
- return i[e];
2102
- }
2103
- (webpackContext.keys = function webpackContextKeys() {
2104
- return Object.keys(i);
2105
- }),
2106
- (webpackContext.resolve = webpackContextResolve),
2107
- (e.exports = webpackContext),
2108
- (webpackContext.id = 647);
2109
- },
2110
- 74(e, t, a) {
2111
- a.d(t, 'a', () => useUpdateEffect);
2112
- const i = a(0);
2113
- function useIsFirstRender() {
2114
- const e = Object(i.useRef)(!0);
2115
- return e.current ? ((e.current = !1), !0) : e.current;
2116
- }
2117
- function useUpdateEffect(e, t) {
2118
- const a = useIsFirstRender();
2119
- Object(i.useEffect)(() => {
2120
- if (!a) return e();
2121
- }, t);
2122
- }
2123
- },
2124
- 86(e, t, a) {
2125
- a.r(t),
2126
- a.d(t, 'FormData', () => FormData),
2127
- a.d(t, 'ClearFormData', () => ClearFormData),
2128
- a.d(t, 'FormGenerator', () => FormGenerator);
2129
- const i = a(0);
2130
- const r = a.n(i);
2131
- const n = a(1327);
2132
- const s = a(82);
2133
- const o = a.n(s);
2134
- const c = {
2135
- textfield: { type: 'TextField', map: 'TextField' },
2136
- typography: { type: 'Typography', map: 'Typography' },
2137
- datatable: { type: 'Table', map: 'Table' },
2138
- datetime: { type: 'DateTime', map: 'DateTime' },
2139
- daterangepicker: { type: 'DateRangePicker', map: 'DateRangePicker' },
2140
- datetimepicker: { type: 'DateTimePicker', map: 'DateTimePicker' },
2141
- timepicker: { type: 'TimePicker', map: 'TimePicker' },
2142
- select: { type: 'Select', map: 'Select' },
2143
- checkbox: { type: 'CheckBox', map: 'CheckBox' },
2144
- switch: { type: 'Switch', map: 'Switch' },
2145
- radio: { type: 'Radio', map: 'Radio' },
2146
- };
2147
- const l = a(196);
2148
- const u = a(205);
2149
- const p = a(197);
2150
- const d = a(198);
2151
- const m = a(199);
2152
- const j = a(200);
2153
- const y = a(201);
2154
- const b = a(195);
2155
- const h = a(203);
2156
- const f = a(204);
2157
- const x = {
2158
- Typography: l.default,
2159
- TextField: u.default,
2160
- Table: p.default,
2161
- DateTime: d.default,
2162
- DateTimePicker: m.default,
2163
- TimePicker: j.default,
2164
- Select: y.default,
2165
- CheckBox: b.default,
2166
- Switch: h.default,
2167
- Radio: f.default,
2168
- };
2169
- const S = a(3);
2170
- function DynamicComponent(e) {
2171
- const { map: t } = e;
2172
- const a = x[t];
2173
- return Object(S.jsx)(a, { ...e });
2174
- }
2175
- const _ = a(40);
2176
- const g = a(74);
2177
- const v = { MUI: { map: c } };
2178
- const C = {};
2179
- const FormData = (e) => (e ? C[e] : C);
2180
- const ClearFormData = (e) => {
2181
- const t = Object.keys(C);
2182
- e ? delete C[e] : t.forEach((e) => delete C[e]);
2183
- };
2184
- function FormGenerator(e) {
2185
- const {
2186
- data: t = [],
2187
- patch: a = {},
2188
- guid: s,
2189
- formRef: c,
2190
- onSubmit: l,
2191
- onChange: u,
2192
- MuiGridAttributes: p = { spacing: 2 },
2193
- } = e;
2194
- const [d, m] = Object(i.useState)(a);
2195
- const j = v.MUI;
2196
- const y = Object(i.useMemo)(() => Object(_.d)(Object(_.f)(t, d, s, C)), [d, t, s]);
2197
- Object(i.useEffect)(() => {
2198
- o()(C[s]) && (C[s] = a);
2199
- }, []),
2200
- Object(g.a)(() => {
2201
- m({ ...a });
2202
- }, [a]);
2203
- const b = Object(i.useCallback)((e) => {
2204
- const { id: t, value: a, option: i } = e;
2205
- (C[s][t] = a), typeof u === 'function' && u({ id: t, value: a, option: i });
2206
- }, []);
2207
- const h = Object(i.useCallback)((e, t, a) => {
2208
- typeof e === 'function' && e(C, null, t, a);
2209
- }, []);
2210
- const renderDynamicComponent = (e, t) => {
2211
- const {
2212
- type: a = '',
2213
- style: i = {},
2214
- className: r = '',
2215
- visible: s = !1,
2216
- rules: o = {},
2217
- } = e;
2218
- const c = e.props || {};
2219
- const l = e.layout || {};
2220
- const u = j.map[a] || {};
2221
- const { options: p = {} } = u;
2222
- return Object(S.jsx)(
2223
- n.a,
2224
- {
2225
- item: !0,
2226
- style: i,
2227
- ...l,
2228
- className: ''.concat(r, ' ').concat(s ? 'show' : 'hidden'),
2229
- children: Object(S.jsx)(
2230
- DynamicComponent,
2231
- {
2232
- map: u.map,
2233
- option: p.type || '',
2234
- control: e,
2235
- attributes: c,
2236
- rules: o,
2237
- onChange: b,
2238
- },
2239
- Object(_.c)('dynamic-comp', t),
2240
- ),
2241
- },
2242
- Object(_.c)('layout-comp', t),
2243
- );
2244
- };
2245
- return Object(S.jsxs)(S.Fragment, {
2246
- children: [
2247
- Object(S.jsx)(
2248
- n.a,
2249
- {
2250
- container: !0,
2251
- ...p,
2252
- children: y.wrows.map((e, t) =>
2253
- Object(S.jsx)(
2254
- r.a.Fragment,
2255
- { children: e.map(renderDynamicComponent) },
2256
- Object(_.c)('row', t),
2257
- ),
2258
- ),
2259
- },
2260
- Object(_.c)('layout-grid'),
2261
- ),
2262
- y.worows.map((e, t) =>
2263
- Object(S.jsx)(
2264
- 'div',
2265
- {
2266
- style: e.style || {},
2267
- className: ''
2268
- .concat(e.className || '', ' ')
2269
- .concat(e.visible ? 'show' : 'hidden'),
2270
- children: renderDynamicComponent(e, t),
2271
- },
2272
- Object(_.c)('layout-comp', t),
2273
- ),
2274
- ),
2275
- Object(S.jsx)('button', {
2276
- 'aria-label': 'button',
2277
- type: 'button',
2278
- ref: c,
2279
- onClick: () => h(l, t, s),
2280
- style: { display: 'none' },
2281
- }),
2282
- ],
2283
- });
2284
- }
2285
- FormGenerator.defaultProps = {
2286
- patch: {},
2287
- formRef: {},
2288
- onSubmit: null,
2289
- onChange: null,
2290
- MuiGridAttributes: { spacing: 2 },
2291
- };
2292
- t.default = {
2293
- FormGenerator,
2294
- FormData,
2295
- ClearFormData,
2296
- };
2297
- },
2298
- },
2299
- [[452, 1, 2]],
2300
- ]);