@3t-transform/threeteeui 1.0.1 → 1.0.3
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.
- package/dist/cjs/{domsanitiser.options-32e670aa.js → domsanitiser.options-55ce2d65.js} +220 -383
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{tttx-button_1_0_1.cjs.entry.js → tttx-button_1_0_3.cjs.entry.js} +2 -2
- package/dist/cjs/{tttx-checkbox-group-caption_1_0_1.cjs.entry.js → tttx-checkbox-group-caption_1_0_3.cjs.entry.js} +1 -1
- package/dist/cjs/{tttx-checkbox-group-heading_1_0_1.cjs.entry.js → tttx-checkbox-group-heading_1_0_3.cjs.entry.js} +1 -1
- package/dist/cjs/{tttx-checkbox-group_1_0_1.cjs.entry.js → tttx-checkbox-group_1_0_3.cjs.entry.js} +1 -1
- package/dist/cjs/{tttx-checkbox_1_0_1.cjs.entry.js → tttx-checkbox_1_0_3.cjs.entry.js} +2 -2
- package/dist/cjs/{tttx-data-pattern_1_0_1.cjs.entry.js → tttx-data-pattern_1_0_3.cjs.entry.js} +2 -2
- package/dist/cjs/{tttx-dialog-box_1_0_1.cjs.entry.js → tttx-dialog-box_1_0_3.cjs.entry.js} +4 -4
- package/dist/cjs/{tttx-dialog_1_0_1.cjs.entry.js → tttx-dialog_1_0_3.cjs.entry.js} +2 -2
- package/dist/cjs/{tttx-expander_1_0_1.cjs.entry.js → tttx-expander_1_0_3.cjs.entry.js} +2 -2
- package/dist/cjs/{tttx-filter_1_0_1_4.cjs.entry.js → tttx-filter_1_0_3_4.cjs.entry.js} +10 -10
- package/dist/cjs/{tttx-form_1_0_1.cjs.entry.js → tttx-form_1_0_3.cjs.entry.js} +9 -5
- package/dist/cjs/{tttx-icon_1_0_1.cjs.entry.js → tttx-icon_1_0_3.cjs.entry.js} +1 -1
- package/dist/cjs/{tttx-keyvalue-block_1_0_1.cjs.entry.js → tttx-keyvalue-block_1_0_3.cjs.entry.js} +1 -1
- package/dist/cjs/{tttx-loading-spinner_1_0_1.cjs.entry.js → tttx-loading-spinner_1_0_3.cjs.entry.js} +1 -1
- package/dist/cjs/{tttx-multiselect-box_1_0_1.cjs.entry.js → tttx-multiselect-box_1_0_3.cjs.entry.js} +7 -7
- package/dist/cjs/{tttx-percentage-bar_1_0_1.cjs.entry.js → tttx-percentage-bar_1_0_3.cjs.entry.js} +2 -2
- package/dist/cjs/{tttx-qrcode_1_0_1.cjs.entry.js → tttx-qrcode_1_0_3.cjs.entry.js} +1 -1
- package/dist/cjs/{tttx-select-box_1_0_1.cjs.entry.js → tttx-select-box_1_0_3.cjs.entry.js} +4 -4
- package/dist/cjs/tttx-standalone-input_1_0_3.cjs.entry.js +94 -0
- package/dist/cjs/{tttx-tabs_1_0_1.cjs.entry.js → tttx-tabs_1_0_3.cjs.entry.js} +5 -5
- package/dist/cjs/{tttx-tag_1_0_1.cjs.entry.js → tttx-tag_1_0_3.cjs.entry.js} +2 -2
- package/dist/cjs/{tttx-textarea_1_0_1.cjs.entry.js → tttx-textarea_1_0_3.cjs.entry.js} +2 -2
- package/dist/cjs/{tttx-tree-view_1_0_1.cjs.entry.js → tttx-tree-view_1_0_3.cjs.entry.js} +4 -4
- package/dist/cjs/tttx.cjs.js +1 -1
- package/dist/collection/components/atoms/tttx-button/tttx-button.js +2 -2
- package/dist/collection/components/atoms/tttx-button/tttx-button.stories.js +20 -20
- package/dist/collection/components/atoms/tttx-checkbox/tttx-checkbox.js +2 -2
- package/dist/collection/components/atoms/tttx-checkbox/tttx-checkbox.stories.js +1 -1
- package/dist/collection/components/atoms/tttx-icon/tttx-icon.js +1 -1
- package/dist/collection/components/atoms/tttx-icon/tttx-icon.stories.js +1 -1
- package/dist/collection/components/atoms/tttx-keyvalue-block/tttx-keyvalue-block.js +1 -1
- package/dist/collection/components/atoms/tttx-keyvalue-block/tttx-keyvalue-block.stories.js +6 -6
- package/dist/collection/components/atoms/tttx-loading-spinner/tttx-loading-spinner.js +1 -1
- package/dist/collection/components/atoms/tttx-loading-spinner/tttx-loading-spinner.stories.js +1 -1
- package/dist/collection/components/atoms/tttx-percentage-bar/tttx-percentage-bar.js +1 -1
- package/dist/collection/components/atoms/tttx-percentage-bar/tttx-percentage-bar.stories.js +5 -5
- package/dist/collection/components/atoms/tttx-qrcode/tttx-qrcode.js +1 -1
- package/dist/collection/components/atoms/tttx-qrcode/tttx-qrcode.stories.js +1 -1
- package/dist/collection/components/atoms/tttx-tag/tttx-tag.css +1 -0
- package/dist/collection/components/atoms/tttx-tag/tttx-tag.js +1 -1
- package/dist/collection/components/atoms/tttx-tag/tttx-tag.stories.js +6 -6
- package/dist/collection/components/molecules/tttx-checkbox-group/components/tttx-checkbox-group-caption.js +1 -1
- package/dist/collection/components/molecules/tttx-checkbox-group/components/tttx-checkbox-group-heading.js +1 -1
- package/dist/collection/components/molecules/tttx-checkbox-group/tttx-checkbox-group.js +1 -1
- package/dist/collection/components/molecules/tttx-checkbox-group/tttx-checkbox-group.stories.js +10 -10
- package/dist/collection/components/molecules/tttx-dialog/tttx-dialog.js +2 -2
- package/dist/collection/components/molecules/tttx-dialog/tttx-dialog.stories.js +6 -6
- package/dist/collection/components/molecules/tttx-dialog-box/tttx-dialog-box.js +3 -3
- package/dist/collection/components/molecules/tttx-dialog-box/tttx-dialog-box.stories.js +24 -24
- package/dist/collection/components/molecules/tttx-expander/tttx-expander.js +2 -2
- package/dist/collection/components/molecules/tttx-expander/tttx-expander.stories.js +9 -9
- package/dist/collection/components/molecules/tttx-filter/tttx-filter.js +3 -3
- package/dist/collection/components/molecules/tttx-filter/tttx-filter.stories.js +2 -2
- package/dist/collection/components/molecules/tttx-form/tttx-form.js +8 -4
- package/dist/collection/components/molecules/tttx-form/tttx-form.stories.js +5 -5
- package/dist/collection/components/molecules/tttx-list/tttx-list.js +3 -3
- package/dist/collection/components/molecules/tttx-list/tttx-list.stories.js +46 -46
- package/dist/collection/components/molecules/tttx-multiselect-box/tttx-multiselect-box.js +6 -6
- package/dist/collection/components/molecules/tttx-multiselect-box/tttx-multiselect-box.stories.js +33 -33
- package/dist/collection/components/molecules/tttx-select-box/tttx-select-box.js +3 -3
- package/dist/collection/components/molecules/tttx-select-box/tttx-select-box.stories.js +16 -16
- package/dist/collection/components/molecules/tttx-sorter/tttx-sorter.js +2 -2
- package/dist/collection/components/molecules/tttx-sorter/tttx-sorter.stories.js +1 -1
- package/dist/collection/components/molecules/tttx-standalone-input/tttx-standalone-input.js +4 -4
- package/dist/collection/components/molecules/tttx-standalone-input/tttx-standalone-input.stories.js +1 -1
- package/dist/collection/components/molecules/tttx-tabs/tttx-tabs.js +3 -3
- package/dist/collection/components/molecules/tttx-tabs/tttx-tabs.stories.js +4 -4
- package/dist/collection/components/molecules/tttx-textarea/tttx-textarea.js +3 -3
- package/dist/collection/components/molecules/tttx-textarea/tttx-textarea.stories.js +1 -1
- package/dist/collection/components/molecules/tttx-toolbar/tttx-toolbar.js +1 -1
- package/dist/collection/components/molecules/tttx-toolbar/tttx-toolbar.stories.js +37 -37
- package/dist/collection/components/molecules/tttx-tree-view/tttx-tree-view.js +3 -3
- package/dist/collection/components/molecules/tttx-tree-view/tttx-tree-view.stories.js +8 -8
- package/dist/collection/components/organisms/tttx-data-pattern/tttx-data-pattern.js +2 -2
- package/dist/collection/components/organisms/tttx-data-pattern/tttx-data-pattern.stories.js +5 -5
- package/dist/components/domsanitiser.options.js +220 -383
- package/dist/components/index.d.ts +26 -26
- package/dist/components/index.js +26 -26
- package/dist/components/tttx-button.js +5 -5
- package/dist/components/{tttx-button_1_0_1.d.ts → tttx-button_1_0_3.d.ts} +4 -4
- package/dist/components/{tttx-button_1_0_1.js → tttx-button_1_0_3.js} +2 -2
- package/dist/components/tttx-checkbox-group-caption_1_0_3.d.ts +11 -0
- package/dist/components/{tttx-checkbox-group-caption_1_0_1.js → tttx-checkbox-group-caption_1_0_3.js} +5 -5
- package/dist/components/tttx-checkbox-group-heading_1_0_3.d.ts +11 -0
- package/dist/components/{tttx-checkbox-group-heading_1_0_1.js → tttx-checkbox-group-heading_1_0_3.js} +5 -5
- package/dist/components/tttx-checkbox-group_1_0_3.d.ts +11 -0
- package/dist/components/{tttx-checkbox-group_1_0_1.js → tttx-checkbox-group_1_0_3.js} +5 -5
- package/dist/components/{tttx-expander_1_0_1.d.ts → tttx-checkbox_1_0_3.d.ts} +4 -4
- package/dist/components/{tttx-checkbox_1_0_1.js → tttx-checkbox_1_0_3.js} +7 -7
- package/dist/components/tttx-data-pattern_1_0_3.d.ts +11 -0
- package/dist/components/{tttx-data-pattern_1_0_1.js → tttx-data-pattern_1_0_3.js} +13 -13
- package/dist/components/{tttx-dialog-box_1_0_1.d.ts → tttx-dialog-box_1_0_3.d.ts} +4 -4
- package/dist/components/{tttx-dialog-box_1_0_1.js → tttx-dialog-box_1_0_3.js} +9 -9
- package/dist/components/{tttx-filter_1_0_1.d.ts → tttx-dialog_1_0_3.d.ts} +4 -4
- package/dist/components/{tttx-dialog_1_0_1.js → tttx-dialog_1_0_3.js} +8 -8
- package/dist/components/{tttx-checkbox_1_0_1.d.ts → tttx-expander_1_0_3.d.ts} +4 -4
- package/dist/components/{tttx-expander_1_0_1.js → tttx-expander_1_0_3.js} +7 -7
- package/dist/components/tttx-filter.js +6 -6
- package/dist/components/{tttx-qrcode_1_0_1.d.ts → tttx-filter_1_0_3.d.ts} +4 -4
- package/dist/components/{tttx-filter_1_0_1.js → tttx-filter_1_0_3.js} +2 -2
- package/dist/components/{tttx-icon_1_0_1.d.ts → tttx-form_1_0_3.d.ts} +4 -4
- package/dist/components/{tttx-form_1_0_1.js → tttx-form_1_0_3.js} +15 -11
- package/dist/components/tttx-icon.js +3 -3
- package/dist/components/{tttx-list_1_0_1.d.ts → tttx-icon_1_0_3.d.ts} +4 -4
- package/dist/components/{tttx-icon_1_0_1.js → tttx-icon_1_0_3.js} +2 -2
- package/dist/components/tttx-keyvalue-block_1_0_3.d.ts +11 -0
- package/dist/components/{tttx-keyvalue-block_1_0_1.js → tttx-keyvalue-block_1_0_3.js} +5 -5
- package/dist/components/tttx-list.js +6 -6
- package/dist/components/{tttx-form_1_0_1.d.ts → tttx-list_1_0_3.d.ts} +4 -4
- package/dist/components/{tttx-list_1_0_1.js → tttx-list_1_0_3.js} +2 -2
- package/dist/components/tttx-loading-spinner_1_0_3.d.ts +11 -0
- package/dist/components/{tttx-loading-spinner_1_0_1.js → tttx-loading-spinner_1_0_3.js} +5 -5
- package/dist/components/tttx-multiselect-box_1_0_3.d.ts +11 -0
- package/dist/components/{tttx-multiselect-box_1_0_1.js → tttx-multiselect-box_1_0_3.js} +13 -13
- package/dist/components/tttx-percentage-bar_1_0_3.d.ts +11 -0
- package/dist/components/{tttx-percentage-bar_1_0_1.js → tttx-percentage-bar_1_0_3.js} +6 -6
- package/dist/components/{tttx-dialog_1_0_1.d.ts → tttx-qrcode_1_0_3.d.ts} +4 -4
- package/dist/components/{tttx-qrcode_1_0_1.js → tttx-qrcode_1_0_3.js} +5 -5
- package/dist/components/tttx-select-box.js +7 -7
- package/dist/components/tttx-select-box_1_0_3.d.ts +11 -0
- package/dist/components/{tttx-select-box_1_0_1.js → tttx-select-box_1_0_3.js} +2 -2
- package/dist/components/tttx-sorter.js +5 -5
- package/dist/components/tttx-sorter_1_0_3.d.ts +11 -0
- package/dist/components/{tttx-sorter_1_0_1.js → tttx-sorter_1_0_3.js} +2 -2
- package/dist/components/tttx-standalone-input.js +6 -6
- package/dist/components/tttx-standalone-input_1_0_3.d.ts +11 -0
- package/dist/components/{tttx-standalone-input_1_0_1.js → tttx-standalone-input_1_0_3.js} +2 -2
- package/dist/components/{tttx-tabs_1_0_1.d.ts → tttx-tabs_1_0_3.d.ts} +4 -4
- package/dist/components/{tttx-tabs_1_0_1.js → tttx-tabs_1_0_3.js} +9 -9
- package/dist/components/{tttx-tag_1_0_1.d.ts → tttx-tag_1_0_3.d.ts} +4 -4
- package/dist/components/{tttx-tag_1_0_1.js → tttx-tag_1_0_3.js} +6 -6
- package/dist/components/tttx-textarea_1_0_3.d.ts +11 -0
- package/dist/components/{tttx-textarea_1_0_1.js → tttx-textarea_1_0_3.js} +6 -6
- package/dist/components/tttx-toolbar.js +3 -3
- package/dist/components/{tttx-toolbar_1_0_1.d.ts → tttx-toolbar_1_0_3.d.ts} +4 -4
- package/dist/components/{tttx-toolbar_1_0_1.js → tttx-toolbar_1_0_3.js} +2 -2
- package/dist/components/tttx-tree-view_1_0_3.d.ts +11 -0
- package/dist/components/{tttx-tree-view_1_0_1.js → tttx-tree-view_1_0_3.js} +9 -9
- package/dist/esm/{domsanitiser.options-68752a19.js → domsanitiser.options-38a67458.js} +220 -383
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{tttx-button_1_0_1.entry.js → tttx-button_1_0_3.entry.js} +2 -2
- package/dist/esm/{tttx-checkbox-group-caption_1_0_1.entry.js → tttx-checkbox-group-caption_1_0_3.entry.js} +1 -1
- package/dist/esm/{tttx-checkbox-group-heading_1_0_1.entry.js → tttx-checkbox-group-heading_1_0_3.entry.js} +1 -1
- package/dist/esm/{tttx-checkbox-group_1_0_1.entry.js → tttx-checkbox-group_1_0_3.entry.js} +1 -1
- package/dist/esm/{tttx-checkbox_1_0_1.entry.js → tttx-checkbox_1_0_3.entry.js} +2 -2
- package/dist/esm/{tttx-data-pattern_1_0_1.entry.js → tttx-data-pattern_1_0_3.entry.js} +2 -2
- package/dist/esm/{tttx-dialog-box_1_0_1.entry.js → tttx-dialog-box_1_0_3.entry.js} +4 -4
- package/dist/esm/{tttx-dialog_1_0_1.entry.js → tttx-dialog_1_0_3.entry.js} +2 -2
- package/dist/esm/{tttx-expander_1_0_1.entry.js → tttx-expander_1_0_3.entry.js} +2 -2
- package/dist/esm/{tttx-filter_1_0_1_4.entry.js → tttx-filter_1_0_3_4.entry.js} +7 -7
- package/dist/esm/{tttx-form_1_0_1.entry.js → tttx-form_1_0_3.entry.js} +9 -5
- package/dist/esm/{tttx-icon_1_0_1.entry.js → tttx-icon_1_0_3.entry.js} +1 -1
- package/dist/esm/{tttx-keyvalue-block_1_0_1.entry.js → tttx-keyvalue-block_1_0_3.entry.js} +1 -1
- package/dist/esm/{tttx-loading-spinner_1_0_1.entry.js → tttx-loading-spinner_1_0_3.entry.js} +1 -1
- package/dist/esm/{tttx-multiselect-box_1_0_1.entry.js → tttx-multiselect-box_1_0_3.entry.js} +7 -7
- package/dist/esm/{tttx-percentage-bar_1_0_1.entry.js → tttx-percentage-bar_1_0_3.entry.js} +2 -2
- package/dist/esm/{tttx-qrcode_1_0_1.entry.js → tttx-qrcode_1_0_3.entry.js} +1 -1
- package/dist/esm/{tttx-select-box_1_0_1.entry.js → tttx-select-box_1_0_3.entry.js} +4 -4
- package/dist/esm/tttx-standalone-input_1_0_3.entry.js +90 -0
- package/dist/esm/{tttx-tabs_1_0_1.entry.js → tttx-tabs_1_0_3.entry.js} +5 -5
- package/dist/esm/{tttx-tag_1_0_1.entry.js → tttx-tag_1_0_3.entry.js} +2 -2
- package/dist/esm/{tttx-textarea_1_0_1.entry.js → tttx-textarea_1_0_3.entry.js} +2 -2
- package/dist/esm/{tttx-tree-view_1_0_1.entry.js → tttx-tree-view_1_0_3.entry.js} +4 -4
- package/dist/esm/tttx.js +1 -1
- package/dist/tttx/p-0e515960.entry.js +1 -1
- package/dist/tttx/{p-1f6cb3c3.entry.js → p-1c2a50d3.entry.js} +1 -1
- package/dist/tttx/p-1e5ff5f8.entry.js +1 -1
- package/dist/tttx/p-23f45005.entry.js +1 -1
- package/dist/tttx/p-34be6c6d.entry.js +1 -0
- package/dist/tttx/p-55799798.js +3 -0
- package/dist/tttx/p-56c8c353.entry.js +1 -1
- package/dist/tttx/p-59c7b049.entry.js +1 -1
- package/dist/tttx/{p-7a7fb9b3.entry.js → p-5d2706b1.entry.js} +1 -1
- package/dist/tttx/p-63ad6fb7.entry.js +1 -1
- package/dist/tttx/p-796f699a.entry.js +1 -1
- package/dist/tttx/{p-6704ac94.entry.js → p-81aaafa0.entry.js} +1 -1
- package/dist/tttx/p-87481935.entry.js +1 -1
- package/dist/tttx/{p-05c242f0.entry.js → p-884f37d3.entry.js} +1 -1
- package/dist/tttx/p-9434561e.entry.js +1 -1
- package/dist/tttx/{p-5b3e1fae.entry.js → p-983d63ff.entry.js} +1 -1
- package/dist/tttx/p-a01e679a.entry.js +1 -1
- package/dist/tttx/p-a8e76e78.entry.js +1 -1
- package/dist/tttx/p-c170e3b8.entry.js +1 -1
- package/dist/tttx/{p-6abfd043.entry.js → p-c8589436.entry.js} +1 -1
- package/dist/tttx/p-ee358ce4.entry.js +1 -1
- package/dist/tttx/p-f374e293.entry.js +1 -1
- package/dist/tttx/{p-72ede7d8.entry.js → p-f4db1cf2.entry.js} +1 -1
- package/dist/tttx/p-fe967031.entry.js +1 -1
- package/dist/tttx/tttx.esm.js +1 -1
- package/dist/types/components/molecules/tttx-standalone-input/tttx-standalone-input.d.ts +2 -2
- package/dist/types/components/molecules/tttx-textarea/tttx-textarea.d.ts +2 -2
- package/dist/types/components.d.ts +304 -304
- package/package.json +1 -1
- package/readme.md +40 -62
- package/dist/cjs/tttx-standalone-input_1_0_1.cjs.entry.js +0 -94
- package/dist/components/tttx-checkbox-group-caption_1_0_1.d.ts +0 -11
- package/dist/components/tttx-checkbox-group-heading_1_0_1.d.ts +0 -11
- package/dist/components/tttx-checkbox-group_1_0_1.d.ts +0 -11
- package/dist/components/tttx-data-pattern_1_0_1.d.ts +0 -11
- package/dist/components/tttx-keyvalue-block_1_0_1.d.ts +0 -11
- package/dist/components/tttx-loading-spinner_1_0_1.d.ts +0 -11
- package/dist/components/tttx-multiselect-box_1_0_1.d.ts +0 -11
- package/dist/components/tttx-percentage-bar_1_0_1.d.ts +0 -11
- package/dist/components/tttx-select-box_1_0_1.d.ts +0 -11
- package/dist/components/tttx-sorter_1_0_1.d.ts +0 -11
- package/dist/components/tttx-standalone-input_1_0_1.d.ts +0 -11
- package/dist/components/tttx-textarea_1_0_1.d.ts +0 -11
- package/dist/components/tttx-tree-view_1_0_1.d.ts +0 -11
- package/dist/esm/tttx-standalone-input_1_0_1.entry.js +0 -90
- package/dist/tttx/p-88ee2406.js +0 -3
- package/dist/tttx/p-c3d6914a.entry.js +0 -1
- package/dist/types/components/atoms/tttx-checkbox/tttx-checkbox.stories.d.ts +0 -47
- package/dist/types/components/molecules/tttx-dialog/tttx-dialog.stories.d.ts +0 -42
- package/dist/types/components/molecules/tttx-expander/tttx-expander.stories.d.ts +0 -27
- package/dist/types/components/molecules/tttx-filter/tttx-filter.stories.d.ts +0 -76
- package/dist/types/components/molecules/tttx-form/tttx-form.stories.d.ts +0 -468
- package/dist/types/components/molecules/tttx-list/tttx-list.stories.d.ts +0 -15
- package/dist/types/components/molecules/tttx-multiselect-box/tttx-multiselect-box.stories.d.ts +0 -15
- package/dist/types/components/molecules/tttx-sorter/tttx-sorter.stories.d.ts +0 -30
- package/dist/types/components/molecules/tttx-standalone-input/tttx-standalone-input.stories.d.ts +0 -150
- package/dist/types/components/molecules/tttx-tabs/tttx-tabs.stories.d.ts +0 -13
- package/dist/types/components/molecules/tttx-tree-view/tttx-tree-view.stories.d.ts +0 -21
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e,c as t,h as o,H as i}from"./p-d490353a.js";import{p as n,d as r}from"./p-88ee2406.js";import"./p-112455b1.js";function a(e,t,o,i){let n;if(n=void 0!==i?i.querySelector(".errorBubble"):"label"===e.parentElement.nodeName.toLowerCase()?e.parentElement.querySelector(".errorBubble"):e.parentElement.parentElement.querySelector(".errorBubble"),n)if(t){e.classList.add("invalid"),n.classList.add("visible");const t=document.createElement("span");t.className="material-symbols-rounded",t.textContent="warning",n.innerHTML="",n.append(t),n.append(o)}else n.classList.remove("visible"),e.classList.remove("invalid"),n.innerHTML=""}const l=class{constructor(o){e(this,o),this.dataSubmitted=t(this,"dataSubmitted",7),this.dataChanged=t(this,"dataChanged",7),this.template=document.createElement("template"),this.formschema=void 0,this.data=void 0}onFormSchemaChange(e){if(!this.data&&this.form&&this._formSchema){const e=new FormData(this.form);this._data=Object.fromEntries(Object.keys(this._formSchema.properties).map((t=>[t,e.get(t)])))}this._formSchema="string"==typeof e?JSON.parse(e):e}onDataChange(e){this._data="string"==typeof e?JSON.parse(e):e}fieldChanged(e){this.dataChanged.emit({name:e.target.name,value:e.target.value})}async submit(){this.submitButton.click()}async setSelectOptions(e,t){const o=this.fieldset.querySelector(`[name=${e}]`),i=this.fieldset.querySelector(`[name=overlay-${e}]`),n=new DocumentFragment;for(const e of t){const t=document.createElement("option");t.innerText=e.label,t.value=e.value,n.appendChild(t)}o.replaceChildren(n),i.optionsData=t,await i.setSelectedItem(t[0].value)}doSubmit(e){e.preventDefault();const t=new FormData(e.target),o=this._formSchema.properties;for(const e of Object.keys(o))"checkbox"!==o[e].form.type||t.has(e)||t.append(e,"off");this.dataSubmitted.emit(t)}componentWillLoad(){this.onFormSchemaChange(this.formschema),this.data&&this.onDataChange(this.data)}componentWillRender(){this.template=document.createElement("template"),this.populateFormFromSchema()}createSelect(e,t){var o,i,n,r;const a=document.createElement("select");a.setAttribute("name",e),t.options.forEach((e=>{this.appendOption(a,e)})),(null===(o=this._data)||void 0===o?void 0:o[e])&&a.classList.remove("placeholder");const l=document.createElement("tttx-select-box_1_0_1");l.optionsData=null===(i=t.options)||void 0===i?void 0:i.filter((e=>!e.placeholder)),l.placeholder=null===(r=null===(n=t.options)||void 0===n?void 0:n.filter((e=>e.placeholder))[0])||void 0===r?void 0:r.label,l.inline=!1,l.searchEnabled=!0,l.style.width="100%",l.style.marginTop="6px",l.setAttribute("name","overlay-"+e);const s=document.createDocumentFragment();return s.append(l),a.style.display="none",l.addEventListener("selectItemEvent",(function(e){a.value=e.detail.value,a.onblur({target:a}),a.onchange({target:a})})),{input:a,overlay:s}}appendOption(e,t){const o=document.createElement("option");o.setAttribute("value",t.value),t.placeholder&&(o.setAttribute("disabled",""),o.setAttribute("selected",""),o.setAttribute("hidden",""),e.classList.add("placeholder")),t.label&&(o.innerHTML=n.sanitize(t.label,r)),e.appendChild(o)}createInput(e,t){var o;const i=document.createElement("input");return i.type=t.type,i.name=e,i.placeholder=null!==(o=t.placeholder)&&void 0!==o?o:"",i.autocomplete="off",i.autocapitalize="off",t.readonly&&(i.readOnly=!0),i}createTextArea(e,t){var o;const i=document.createElement("textarea");return i.name=e,i.placeholder=null!==(o=t.placeholder)&&void 0!==o?o:"",i.autocomplete="off",i.autocapitalize="off",t.readonly&&(i.readOnly=!0),i}createStartEndDateComponent(e,t){const o=document.createElement("input"),i=document.createElement("input");let n,r;o.type=i.type="date",o.name=`${e}-startdate`,i.name=`${e}-enddate`,o.setAttribute("data-formkey",e),i.setAttribute("data-formkey",e),t.readonly&&(o.readOnly=!0,i.readOnly=!0),this.applyValidation(o,{required:{message:"Please enter a start date"},dateCompare:{to:i.name}}),this.applyValidation(i,{required:{message:"Please enter an end date"},dateCompare:{with:o.name,message:"End date cannot be before the start date"}}),t.includeTime&&(n=document.createElement("input"),r=document.createElement("input"),n.type=r.type="time",n.name=`${e}-starttime`,r.name=`${e}-endtime`,n.setAttribute("data-formkey",e),r.setAttribute("data-formkey",e),t.readonly&&(n.readOnly=!0,r.readOnly=!0),this.applyValidation(n,{required:{message:"Please enter a start time"}}),this.applyValidation(r,{required:{message:"Please enter an end time"}}));const a=document.createElement("label");a.innerText="Start date";const l=document.createElement("label");l.innerText="End date";const s=document.createElement("div"),d=document.createElement("div");return s.className=d.className="outer-container inputBlock",a.className=l.className="flex-label",s.append(o),n&&s.append(n),a.append(s),a.append(this.createErrorBubble()),d.append(i),r&&d.append(r),l.append(d),l.append(this.createErrorBubble()),{start:a,end:l}}applyValidation(e,t){var o,i;t.required&&(e.setAttribute("required",""),e.setAttribute("data-required",null!==(o=t.required.message)&&void 0!==o?o:"")),t.pattern&&(e.setAttribute("pattern",t.pattern.pattern),e.setAttribute("data-pattern",null!==(i=t.pattern.message)&&void 0!==i?i:"")),t.badInput&&e.setAttribute("data-badinput",t.badInput.message),t.minmax&&(e.setAttribute("min",t.minmax.min),e.setAttribute("max",t.minmax.max),e.setAttribute("data-range",t.minmax.message)),t.maxlength&&e.setAttribute("maxlength",t.maxlength),t.dateCompare&&(t.dateCompare.message&&t.dateCompare.with&&(e.setAttribute("data-compare",t.dateCompare.message),e.setAttribute("data-compare-with",t.dateCompare.with)),t.dateCompare.to&&e.setAttribute("data-compare-to",t.dateCompare.to))}createErrorBubble(){const e=document.createElement("div");return e.className="errorBubble",e}appendCheckboxInput(e,t,o){if(e.label){const e=document.createElement("br");o.appendChild(e)}if(o.appendChild(t),!e.inlineLabel)return;const i=document.createElement("span");i.className="inlineLabel",i.textContent=e.inlineLabel,o.appendChild(i)}createLabel(e,t,o,i){var n;const r=document.createElement("div");let a="outer-container inputBlock";const l=document.createElement("label");if(l.innerText=e.label,!(null===(n=e.validation)||void 0===n?void 0:n.required)&&e.label){const e=document.createElement("span");e.className="optional",e.innerHTML=" (optional)",l.appendChild(e)}return"radio"===e.type&&(a+=" radioBlock"),r.className=a,e.readonly&&l.classList.add("readonly"),"checkbox"===e.type?this.appendCheckboxInput(e,t,l):(o&&r.appendChild(o),r.appendChild(t)),"checkbox"!==e.type&&l.appendChild(r),l.appendChild(i),l}createRadio(e,t){var o,i;const n=new DocumentFragment;for(const r of t.options){const a=document.createElement("input");a.type="radio",a.name=e,a.value=r.value,(null===(o=null==t?void 0:t.validation)||void 0===o?void 0:o.required)&&(a.setAttribute("required","required"),a.setAttribute("data-required",null!==(i=t.validation.required.message)&&void 0!==i?i:""));const l=document.createElement("span");l.innerText=r.label,n.appendChild(a),n.appendChild(l),n.appendChild(document.createElement("br"))}return n}populateFormFromSchema(){var e;if(!this._formSchema)return;const t=this._formSchema.properties,o=Object.keys(t);for(const i of o){const o=t[i].form;if("startenddate"===o.type){const{start:e,end:t}=this.createStartEndDateComponent(i,o);this.template.content.append(e),this.template.content.append(t);continue}let n={};switch(o.type){case"select":n=this.createSelect(i,o);break;case"radio":n.input=this.createRadio(i,o);break;case"textarea":n.input=this.createTextArea(i,o);break;default:n.input=this.createInput(i,o)}o.validation&&"radio"!==o.type&&this.applyValidation(n.input,o.validation);const r=this.createErrorBubble(),l=this.createLabel(o,n.input,n.overlay,r);if(null===(e=o.validation)||void 0===e?void 0:e.invalid){const e=o.validation.invalid.message;n.input.setCustomValidity(e),a(n.input,!0,e)}this.template.content.append(l)}}componentDidRender(){if(!this._formSchema)return;const e=this.template.content,t=this._formSchema.properties,o=Object.keys(t);for(const i of o){const o=e.querySelectorAll(`[name^=${i}]`);for(const e of o)e.oninvalid=this.validityCheckWrapper.bind(this),e.onblur=this.validityCheckWrapper.bind(this),e.onkeyup=this.fieldChanged.bind(this),e.onchange=this.fieldChanged.bind(this),"select"===t[i].form.type&&e.classList.contains("placeholder")&&e.addEventListener("change",(()=>{e.classList.remove("placeholder")})),"startenddate"===t[i].form.type&&e.hasAttribute("data-compare-with")&&(e.oninvalid=this.endDateComparisonValidator.bind(this),e.onblur=this.endDateComparisonValidator.bind(this)),"startenddate"===t[i].form.type&&"time"===e.type&&(e.oninvalid=this.startEndTimeComparitor.bind(this),e.onblur=this.startEndTimeComparitor.bind(this)),"startenddate"===t[i].form.type&&e.hasAttribute("data-compare-to")&&(e.oninvalid=this.startDateComparisonValidator.bind(this),e.onblur=this.startDateComparisonValidator.bind(this))}if(this._data&&Object.keys(this._data).length>0){const t=Object.keys(this._data);for(const o of t){const t=e.querySelectorAll(`[name=${o}]`);for(const i of t)switch(i.type){case"checkbox":"on"===this._data[o]&&(i.checked=!0);break;case"radio":i.value===this._data[o]&&(i.checked=!0);break;case"select":case"select-one":e.querySelector(`[name=overlay-${o}]`).selectedValue=this._data[o],i.value=this._data[o];break;default:i.value=this._data[o]}}}this.fieldset.replaceChildren(e)}startEndTimeComparitor(e){var t,o;const i=e.target,n=i.getAttribute("data-formkey"),r=Array.from(i.parentElement.parentElement.parentElement.querySelectorAll(`[data-formkey=${n}]`));if(4===r.length){const n=r.find((e=>e.name.endsWith("starttime"))),l=r.find((e=>e.name.endsWith("endtime"))),s=r.find((e=>e.name.endsWith("startdate"))),d=r.find((e=>e.name.endsWith("enddate")));n.valueAsNumber>=l.valueAsNumber&&(null===(t=s.valueAsDate)||void 0===t?void 0:t.valueOf())===(null===(o=d.valueAsDate)||void 0===o?void 0:o.valueOf())?(a(l,!0,"End time cannot be the same or before the start time"),i.name.endsWith("starttime")&&this.validityCheckWrapper(e)):(l.setCustomValidity(""),a(l,!1,null),this.validityCheckWrapper(e))}}clearTimeComparitor(e){const t=e.target,o=t.getAttribute("data-formkey"),i=Array.from(t.parentElement.parentElement.parentElement.querySelectorAll(`[type=time][data-formkey=${o}]`));if(i.length){const e=i.find((e=>e.name.endsWith("endtime")));e.setCustomValidity(""),a(e,!1,null)}}startDateComparisonValidator(e){const t=e.target,o=t.getAttribute("data-compare-to"),i=t.parentElement.parentElement.parentElement.querySelector(`[name=${o}]`);this.endDateComparisonValidator({target:i},!0),this.validityCheckWrapper(e)}endDateComparisonValidator(e,t=!1){var o,i,n,r;const l=e.target;if(!l.value&&t)return;const s=l.getAttribute("data-compare-with"),d=l.parentElement.parentElement.parentElement.querySelector(`[name=${s}]`);(null===(o=l.valueAsDate)||void 0===o?void 0:o.valueOf())<(null===(i=d.valueAsDate)||void 0===i?void 0:i.valueOf())?(l.setCustomValidity(l.getAttribute("data-compare")),a(l,!0,l.getAttribute("data-compare"))):(null===(n=l.valueAsDate)||void 0===n?void 0:n.valueOf())===(null===(r=d.valueAsDate)||void 0===r?void 0:r.valueOf())?(l.setCustomValidity(""),this.validityCheckWrapper(e),this.startEndTimeComparitor(e)):(this.clearTimeComparitor(e),this.validityCheckWrapper(e))}validityCheckWrapper(e){const{target:t,hasError:o,errorMessage:i}=function(e){var t,o,i,n;e.preventDefault&&e.preventDefault();const r=e.target;let a=!0,l="";switch(r.value.length&&!r.value.replace(/\s/g,"").length?(l="This field cannot be left blank",r.setCustomValidity(l)):(l="",r.setCustomValidity&&r.setCustomValidity("")),!0){case r.validity.valueMissing:l=null!==(t=r.dataset.required)&&void 0!==t?t:"This field is required";break;case r.validity.patternMismatch:l=null!==(o=r.dataset.pattern)&&void 0!==o?o:"Incorrect format";break;case r.validity.badInput:l=null!==(i=r.dataset.badinput)&&void 0!==i?i:"Wrong input type";break;case r.validity.rangeOverflow||r.validity.rangeUnderflow:l=null!==(n=r.dataset.range)&&void 0!==n?n:"Invalid value";break;case r.validity.customError:l=r.validationMessage;break;default:a=!1}return{target:r,hasError:a,errorMessage:l}}(e);a(t,o,i)}render(){return o(i,null,o("form",{ref:e=>this.form=e,onSubmit:this.doSubmit.bind(this)},o("fieldset",{ref:e=>this.fieldset=e}),o("input",{type:"submit",ref:e=>this.submitButton=e,style:{display:"none"}})))}static get watchers(){return{formschema:["onFormSchemaChange"],data:["onDataChange"]}}};l.style='.material-symbols-rounded{font-variation-settings:"FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24}.material-symbols-rounded{font-variation-settings:"FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24}label{font-weight:500;font-size:16px;line-height:18.752px;color:#212121}label .optional{color:#757575;font-weight:normal}label .outer-container{position:relative}label .outer-container .left-icons,label .outer-container .right-icons{display:flex;position:absolute;height:24px;gap:8px}label .outer-container .left-icons tttx-icon,label .outer-container .right-icons tttx-icon{height:24px;width:24px}label .outer-container .left-icons{left:8px}label .outer-container .right-icons{right:8px}label .outer-container input,label .outer-container textarea{color:#212121;box-sizing:border-box;border:1px solid #d5d5d5;border-radius:4px;padding:0;padding-left:16px;padding-right:16px;margin-top:4px;}label .outer-container input.has-input-icon,label .outer-container textarea.has-input-icon{padding-left:40px}label .outer-container input.has-input-icon.has-left-icon,label .outer-container textarea.has-input-icon.has-left-icon{padding-left:72px}label .outer-container input.has-left-icon,label .outer-container textarea.has-left-icon{padding-left:40px}label .outer-container input.has-right-icon,label .outer-container textarea.has-right-icon{padding-right:40px}label .outer-container input.invalid,label .outer-container textarea.invalid{border:1px solid #dc0000}label .outer-container input:not([type=submit]),label .outer-container textarea:not([type=submit]){font-family:"Roboto", serif;width:100%;height:36px;font-size:16px;line-height:18.752px}label .outer-container input[type=radio],label .outer-container textarea[type=radio]{width:20px;height:20px}label .outer-container input[type=date],label .outer-container textarea[type=date]{background:white;display:block;min-width:calc(100% - 18px);line-height:37px}label .outer-container input[readonly],label .outer-container textarea[readonly]{cursor:default;pointer-events:none;user-select:none;color:gray}label .outer-container input:focus,label .outer-container textarea:focus{border-color:#1479c6}label .outer-container input:focus-visible,label .outer-container textarea:focus-visible{outline:none}label .outer-container textarea{padding:8px;height:auto;min-height:100px;resize:vertical}label .outer-container.inputBlock{display:flex;align-items:center;line-height:21px}label .outer-container.inputBlock .left-icons,label .outer-container.inputBlock .right-icons{margin-top:4px}label .outer-container.inputBlock.readonly{pointer-events:none;user-select:none;color:gray}label .outer-container.inputBlock.radioBlock{display:block}label .outer-container.inputInline{display:flex;white-space:nowrap;align-items:center;margin:0}label .outer-container.inputInline input{margin-top:0}label .secondarylabel{color:#757575;font-size:14px;line-height:16.408px;font-weight:normal;display:flex;margin-top:4px}label .errorBubble{position:relative;font-size:14px;line-height:16.408px;font-weight:normal;width:100%;font-family:"Roboto", sans-serif;color:#dc0000;display:flex;align-content:center;align-items:center;justify-items:center;margin-top:4px}label .errorBubble:not(.visible){display:none}label .errorBubble span{color:#dc0000;font-size:16px;margin-right:4px}.material-symbols-rounded{font-family:"Material Symbols Rounded", sans-serif;font-weight:400;font-style:normal;font-size:24px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;color:#9e9e9e}button{cursor:pointer}.button{font-family:Roboto, serif;box-sizing:border-box;height:36px;min-width:36px;padding:0;margin:0;background:transparent;color:#212121;border:1px solid #c8c8c8;border-radius:4px;text-transform:uppercase;display:flex;justify-content:left;align-items:center;font-size:14px;font-weight:500}.button-content{display:block;padding:0 16px}.icon-left,.icon-right{margin-top:4px}.iconleft{padding-left:8px}.iconleft .button-content{padding-left:4px}.iconright{padding-right:8px}.iconright .button-content{padding-right:4px}.notext{padding:0 6px}.button:active{background:rgba(17, 17, 17, 0.2);border:1px solid #d5d5d5}.primary{background:#1479c6;border:1px solid #1479c6;color:white}.primary:active{background:#1464a2;border:1px solid #1464a2}.borderless{background:transparent;border:none;color:#212121}.borderless:active{background:rgba(17, 17, 17, 0.2);border:none}.borderless-circle{background:transparent;border:none;color:#212121;border-radius:50%}.borderless-circle:active{border:none}.borderless-circle:focus{border-color:transparent}.danger{background:#dc0000;border:1px solid #dc0000;color:white}.danger:active{background:#b00000;border:1px solid #b00000}.disabled{background:#aeaeae;border:none;color:#4c4c4c;cursor:not-allowed}.disabled:active{background:#aeaeae;border:none;color:#4c4c4c;cursor:not-allowed}@media (hover: hover){.button:hover{background:rgba(17, 17, 17, 0.1);border:1px solid #d5d5d5}.primary:hover{background:#146eb3;border:1px solid #146eb3}.borderless:hover{background:rgba(17, 17, 17, 0.1);border:none}.borderless-circle:hover{background:rgba(17, 17, 17, 0.1);border:none}.danger:hover{background:#c60000;border:1px solid #c60000}.disabled:hover{background:#aeaeae;border:none;color:#4c4c4c;cursor:not-allowed}}:host{display:block}fieldset{margin:0;padding:0;border:none}label{display:block;position:relative;margin-bottom:16px}.inlineLabel{font-weight:400;display:inline-block;vertical-align:top;padding-top:4px}input[type=checkbox]{width:18px;height:18px}input~label{font-weight:400}select{font-family:"Roboto", serif;box-sizing:border-box;width:100%;height:36px;padding:0 16px;font-size:16px;border:1px solid #d5d5d5;border-radius:4px;margin-top:4px}.placeholder{color:#9e9e9e}.placeholder option{color:initial}select.invalid:invalid{border:1px solid #dc0000}select~.errorBubble{position:relative;font-size:14px;font-weight:normal;width:100%;font-family:"Roboto", sans-serif;color:#dc0000;display:flex;align-content:center;align-items:center;justify-items:center}select~.errorBubble:not(.visible){visibility:hidden}select~.errorBubble span{color:#dc0000;font-size:16px;margin-right:4px;height:16px}select.invalid:invalid~.errorBubble{position:relative;font-size:14px;font-weight:normal;width:100%;font-family:"Roboto", sans-serif;color:#dc0000;visibility:visible}select:focus{border-color:#1479c6}select:focus-visible{outline:none}.button{padding:0 16px}.footer{display:flex;gap:16px;flex-direction:row-reverse}label.flex-label{display:flex;flex-direction:column;width:346px;box-sizing:border-box}label>.outer-container>input[type=date]{min-width:0;width:200px}label.flex-label input[type=time]{min-width:auto;text-align:center;width:130px;margin-left:16px}label>.outer-container>input[type=date],label.flex-label input[type=time]{line-height:36px}';export{l as tttx_form_1_0_1}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
title: string;
|
|
3
|
-
component: string;
|
|
4
|
-
argTypes: {
|
|
5
|
-
checkboxId: {
|
|
6
|
-
control: {
|
|
7
|
-
type: string;
|
|
8
|
-
};
|
|
9
|
-
default: string;
|
|
10
|
-
};
|
|
11
|
-
label: {
|
|
12
|
-
control: {
|
|
13
|
-
type: string;
|
|
14
|
-
};
|
|
15
|
-
default: string;
|
|
16
|
-
};
|
|
17
|
-
inline: {
|
|
18
|
-
control: {
|
|
19
|
-
type: string;
|
|
20
|
-
};
|
|
21
|
-
default: boolean;
|
|
22
|
-
};
|
|
23
|
-
indeterminate: {
|
|
24
|
-
control: {
|
|
25
|
-
type: string;
|
|
26
|
-
};
|
|
27
|
-
default: boolean;
|
|
28
|
-
};
|
|
29
|
-
checked: {
|
|
30
|
-
control: {
|
|
31
|
-
type: string;
|
|
32
|
-
};
|
|
33
|
-
default: boolean;
|
|
34
|
-
};
|
|
35
|
-
};
|
|
36
|
-
parameters: {
|
|
37
|
-
actions: {
|
|
38
|
-
handles: string[];
|
|
39
|
-
};
|
|
40
|
-
};
|
|
41
|
-
decorators: (<T extends import("@storybook/types").Renderer>(storyFn: import("@storybook/types").PartialStoryFn<T, import("@storybook/types").Args>) => T["storyResult"])[];
|
|
42
|
-
};
|
|
43
|
-
export default _default;
|
|
44
|
-
export declare const Checkbox: any;
|
|
45
|
-
export declare const InlineCheckbox: any;
|
|
46
|
-
export declare const CheckedCheckbox: any;
|
|
47
|
-
export declare const IndeterminateCheckbox: any;
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
title: string;
|
|
3
|
-
component: string;
|
|
4
|
-
argTypes: {
|
|
5
|
-
header: {
|
|
6
|
-
control: {
|
|
7
|
-
type: string;
|
|
8
|
-
};
|
|
9
|
-
};
|
|
10
|
-
type: {
|
|
11
|
-
control: {
|
|
12
|
-
type: string;
|
|
13
|
-
};
|
|
14
|
-
options: string[];
|
|
15
|
-
};
|
|
16
|
-
size: {
|
|
17
|
-
control: {
|
|
18
|
-
type: string;
|
|
19
|
-
};
|
|
20
|
-
options: string[];
|
|
21
|
-
};
|
|
22
|
-
closeEnabled: {
|
|
23
|
-
control: {
|
|
24
|
-
type: string;
|
|
25
|
-
};
|
|
26
|
-
};
|
|
27
|
-
};
|
|
28
|
-
parameters: {
|
|
29
|
-
actions: {
|
|
30
|
-
handles: string[];
|
|
31
|
-
};
|
|
32
|
-
docs: {
|
|
33
|
-
description: {
|
|
34
|
-
component: string;
|
|
35
|
-
};
|
|
36
|
-
};
|
|
37
|
-
};
|
|
38
|
-
decorators: (<T extends import("@storybook/types").Renderer>(storyFn: import("@storybook/types").PartialStoryFn<T, import("@storybook/types").Args>) => T["storyResult"])[];
|
|
39
|
-
};
|
|
40
|
-
export default _default;
|
|
41
|
-
export declare const Default: any;
|
|
42
|
-
export declare const WithoutFooter: any;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
title: string;
|
|
3
|
-
component: string;
|
|
4
|
-
argTypes: {
|
|
5
|
-
lefticon: {
|
|
6
|
-
control: {
|
|
7
|
-
type: string;
|
|
8
|
-
};
|
|
9
|
-
options: string[];
|
|
10
|
-
};
|
|
11
|
-
lefticoncolor: {
|
|
12
|
-
control: {
|
|
13
|
-
type: string;
|
|
14
|
-
};
|
|
15
|
-
options: string[];
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
parameters: {
|
|
19
|
-
actions: {
|
|
20
|
-
handles: string[];
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
decorators: (<T extends import("@storybook/types").Renderer>(storyFn: import("@storybook/types").PartialStoryFn<T, import("@storybook/types").Args>) => T["storyResult"])[];
|
|
24
|
-
};
|
|
25
|
-
export default _default;
|
|
26
|
-
export declare const ExpanderBookings: any;
|
|
27
|
-
export declare const ExpanderTags: any;
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
title: string;
|
|
3
|
-
component: string;
|
|
4
|
-
argTypes: {
|
|
5
|
-
filterOptions: {
|
|
6
|
-
control: {
|
|
7
|
-
type: string;
|
|
8
|
-
};
|
|
9
|
-
};
|
|
10
|
-
filterButtonStyle: {
|
|
11
|
-
table: {
|
|
12
|
-
defaultValue: {
|
|
13
|
-
summary: string;
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
control: {
|
|
17
|
-
type: string;
|
|
18
|
-
};
|
|
19
|
-
options: string[];
|
|
20
|
-
};
|
|
21
|
-
showSearchField: {
|
|
22
|
-
table: {
|
|
23
|
-
defaultValue: {
|
|
24
|
-
summary: boolean;
|
|
25
|
-
};
|
|
26
|
-
};
|
|
27
|
-
control: {
|
|
28
|
-
type: string;
|
|
29
|
-
};
|
|
30
|
-
};
|
|
31
|
-
showSelectAll: {
|
|
32
|
-
table: {
|
|
33
|
-
defaultValue: {
|
|
34
|
-
summary: boolean;
|
|
35
|
-
};
|
|
36
|
-
};
|
|
37
|
-
control: {
|
|
38
|
-
type: string;
|
|
39
|
-
};
|
|
40
|
-
};
|
|
41
|
-
showOptionIcons: {
|
|
42
|
-
table: {
|
|
43
|
-
defaultValue: {
|
|
44
|
-
summary: boolean;
|
|
45
|
-
};
|
|
46
|
-
};
|
|
47
|
-
control: {
|
|
48
|
-
type: string;
|
|
49
|
-
};
|
|
50
|
-
};
|
|
51
|
-
filterHeader: {
|
|
52
|
-
control: {
|
|
53
|
-
type: string;
|
|
54
|
-
};
|
|
55
|
-
};
|
|
56
|
-
popoverWidth: {
|
|
57
|
-
control: {
|
|
58
|
-
type: string;
|
|
59
|
-
};
|
|
60
|
-
};
|
|
61
|
-
};
|
|
62
|
-
parameters: {
|
|
63
|
-
actions: {
|
|
64
|
-
handles: string[];
|
|
65
|
-
};
|
|
66
|
-
};
|
|
67
|
-
decorators: (<T extends import("@storybook/types").Renderer>(storyFn: import("@storybook/types").PartialStoryFn<T, import("@storybook/types").Args>) => T["storyResult"])[];
|
|
68
|
-
};
|
|
69
|
-
export default _default;
|
|
70
|
-
export declare const Default: any;
|
|
71
|
-
export declare const CustomFilterOptions: any;
|
|
72
|
-
export declare const DefaultFilterOptions: any;
|
|
73
|
-
export declare const EverythingDefaultFilterOptions: any;
|
|
74
|
-
export declare const ListFilterWithoutSearchField: any;
|
|
75
|
-
export declare const TableIconWithoutOptionIconsOrSelectAll: any;
|
|
76
|
-
export declare const WithCustomWidth: any;
|
|
@@ -1,468 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
title: string;
|
|
3
|
-
component: string;
|
|
4
|
-
parameters: {
|
|
5
|
-
actions: {
|
|
6
|
-
handles: string[];
|
|
7
|
-
};
|
|
8
|
-
};
|
|
9
|
-
decorators: (<T extends import("@storybook/types").Renderer>(storyFn: import("@storybook/types").PartialStoryFn<T, import("@storybook/types").Args>) => T["storyResult"])[];
|
|
10
|
-
};
|
|
11
|
-
export default _default;
|
|
12
|
-
export declare const SingleFormItem: {
|
|
13
|
-
(args: any): string;
|
|
14
|
-
args: {
|
|
15
|
-
formSchema: {
|
|
16
|
-
properties: {
|
|
17
|
-
input: {
|
|
18
|
-
type: string;
|
|
19
|
-
format: string;
|
|
20
|
-
form: {
|
|
21
|
-
type: string;
|
|
22
|
-
label: string;
|
|
23
|
-
validation: {
|
|
24
|
-
invalid: {
|
|
25
|
-
message: string;
|
|
26
|
-
};
|
|
27
|
-
required: {
|
|
28
|
-
message: string;
|
|
29
|
-
};
|
|
30
|
-
};
|
|
31
|
-
};
|
|
32
|
-
};
|
|
33
|
-
};
|
|
34
|
-
};
|
|
35
|
-
};
|
|
36
|
-
};
|
|
37
|
-
export declare const StartAndEndDateWithoutTime: {
|
|
38
|
-
(args: any): string;
|
|
39
|
-
args: {
|
|
40
|
-
formSchema: {
|
|
41
|
-
properties: {
|
|
42
|
-
startend: {
|
|
43
|
-
type: string;
|
|
44
|
-
format: string;
|
|
45
|
-
form: {
|
|
46
|
-
type: string;
|
|
47
|
-
includeTime: boolean;
|
|
48
|
-
};
|
|
49
|
-
};
|
|
50
|
-
};
|
|
51
|
-
};
|
|
52
|
-
};
|
|
53
|
-
};
|
|
54
|
-
export declare const ExampleFormFromJSON: {
|
|
55
|
-
(args: any): string;
|
|
56
|
-
args: {
|
|
57
|
-
formSchema: {
|
|
58
|
-
properties: {
|
|
59
|
-
title: {
|
|
60
|
-
type: string;
|
|
61
|
-
format: string;
|
|
62
|
-
form: {
|
|
63
|
-
type: string;
|
|
64
|
-
placeholder: string;
|
|
65
|
-
label: string;
|
|
66
|
-
};
|
|
67
|
-
};
|
|
68
|
-
forename: {
|
|
69
|
-
type: string;
|
|
70
|
-
format: string;
|
|
71
|
-
form: {
|
|
72
|
-
type: string;
|
|
73
|
-
placeholder: string;
|
|
74
|
-
label: string;
|
|
75
|
-
validation: {
|
|
76
|
-
required: {
|
|
77
|
-
message: string;
|
|
78
|
-
};
|
|
79
|
-
};
|
|
80
|
-
};
|
|
81
|
-
};
|
|
82
|
-
surname: {
|
|
83
|
-
type: string;
|
|
84
|
-
format: string;
|
|
85
|
-
form: {
|
|
86
|
-
type: string;
|
|
87
|
-
placeholder: string;
|
|
88
|
-
label: string;
|
|
89
|
-
validation: {
|
|
90
|
-
required: {
|
|
91
|
-
message: string;
|
|
92
|
-
};
|
|
93
|
-
};
|
|
94
|
-
};
|
|
95
|
-
};
|
|
96
|
-
postcode: {
|
|
97
|
-
type: string;
|
|
98
|
-
format: string;
|
|
99
|
-
form: {
|
|
100
|
-
type: string;
|
|
101
|
-
placeholder: string;
|
|
102
|
-
label: string;
|
|
103
|
-
validation: {
|
|
104
|
-
required: {
|
|
105
|
-
message: string;
|
|
106
|
-
};
|
|
107
|
-
pattern: {
|
|
108
|
-
pattern: string;
|
|
109
|
-
message: string;
|
|
110
|
-
};
|
|
111
|
-
maxlength: number;
|
|
112
|
-
};
|
|
113
|
-
};
|
|
114
|
-
};
|
|
115
|
-
age: {
|
|
116
|
-
type: string;
|
|
117
|
-
format: string;
|
|
118
|
-
form: {
|
|
119
|
-
type: string;
|
|
120
|
-
placeholder: string;
|
|
121
|
-
label: string;
|
|
122
|
-
validation: {
|
|
123
|
-
required: {
|
|
124
|
-
message: string;
|
|
125
|
-
};
|
|
126
|
-
badInput: {
|
|
127
|
-
message: string;
|
|
128
|
-
};
|
|
129
|
-
};
|
|
130
|
-
};
|
|
131
|
-
};
|
|
132
|
-
dob: {
|
|
133
|
-
type: string;
|
|
134
|
-
format: string;
|
|
135
|
-
form: {
|
|
136
|
-
type: string;
|
|
137
|
-
placeholder: string;
|
|
138
|
-
label: string;
|
|
139
|
-
validation: {
|
|
140
|
-
required: {
|
|
141
|
-
message: string;
|
|
142
|
-
};
|
|
143
|
-
minmax: {
|
|
144
|
-
min: string;
|
|
145
|
-
max: string;
|
|
146
|
-
message: string;
|
|
147
|
-
};
|
|
148
|
-
};
|
|
149
|
-
};
|
|
150
|
-
};
|
|
151
|
-
dropdown: {
|
|
152
|
-
form: {
|
|
153
|
-
type: string;
|
|
154
|
-
blankDefault: boolean;
|
|
155
|
-
label: string;
|
|
156
|
-
options: ({
|
|
157
|
-
label: string;
|
|
158
|
-
value: string;
|
|
159
|
-
placeholder: boolean;
|
|
160
|
-
} | {
|
|
161
|
-
label: string;
|
|
162
|
-
value: string;
|
|
163
|
-
placeholder?: undefined;
|
|
164
|
-
})[];
|
|
165
|
-
validation: {
|
|
166
|
-
required: {
|
|
167
|
-
message: string;
|
|
168
|
-
};
|
|
169
|
-
};
|
|
170
|
-
};
|
|
171
|
-
};
|
|
172
|
-
startend: {
|
|
173
|
-
type: string;
|
|
174
|
-
format: string;
|
|
175
|
-
form: {
|
|
176
|
-
type: string;
|
|
177
|
-
includeTime: boolean;
|
|
178
|
-
};
|
|
179
|
-
};
|
|
180
|
-
expiration: {
|
|
181
|
-
type: string;
|
|
182
|
-
form: {
|
|
183
|
-
type: string;
|
|
184
|
-
label: string;
|
|
185
|
-
options: {
|
|
186
|
-
label: string;
|
|
187
|
-
value: string;
|
|
188
|
-
}[];
|
|
189
|
-
validation: {
|
|
190
|
-
required: {
|
|
191
|
-
message: string;
|
|
192
|
-
};
|
|
193
|
-
};
|
|
194
|
-
};
|
|
195
|
-
};
|
|
196
|
-
permissions: {
|
|
197
|
-
form: {
|
|
198
|
-
type: string;
|
|
199
|
-
label: string;
|
|
200
|
-
inlineLabel: string;
|
|
201
|
-
validation: {
|
|
202
|
-
required: {
|
|
203
|
-
message: string;
|
|
204
|
-
};
|
|
205
|
-
};
|
|
206
|
-
};
|
|
207
|
-
};
|
|
208
|
-
notes: {
|
|
209
|
-
form: {
|
|
210
|
-
type: string;
|
|
211
|
-
label: string;
|
|
212
|
-
placeholder: string;
|
|
213
|
-
validation: {
|
|
214
|
-
maxlength: number;
|
|
215
|
-
};
|
|
216
|
-
};
|
|
217
|
-
};
|
|
218
|
-
};
|
|
219
|
-
};
|
|
220
|
-
};
|
|
221
|
-
};
|
|
222
|
-
export declare const PrePopulateForm: {
|
|
223
|
-
(args: any): string;
|
|
224
|
-
args: {
|
|
225
|
-
data: {
|
|
226
|
-
title: string;
|
|
227
|
-
forename: string;
|
|
228
|
-
surname: string;
|
|
229
|
-
postcode: string;
|
|
230
|
-
age: string;
|
|
231
|
-
dob: string;
|
|
232
|
-
dropdown: string;
|
|
233
|
-
permissions: string;
|
|
234
|
-
expiration: string;
|
|
235
|
-
'startend-startdate': string;
|
|
236
|
-
'startend-starttime': string;
|
|
237
|
-
'startend-enddate': string;
|
|
238
|
-
'startend-endtime': string;
|
|
239
|
-
notes: string;
|
|
240
|
-
};
|
|
241
|
-
formSchema: {
|
|
242
|
-
properties: {
|
|
243
|
-
title: {
|
|
244
|
-
type: string;
|
|
245
|
-
format: string;
|
|
246
|
-
form: {
|
|
247
|
-
type: string;
|
|
248
|
-
placeholder: string;
|
|
249
|
-
label: string;
|
|
250
|
-
};
|
|
251
|
-
};
|
|
252
|
-
forename: {
|
|
253
|
-
type: string;
|
|
254
|
-
format: string;
|
|
255
|
-
form: {
|
|
256
|
-
type: string;
|
|
257
|
-
placeholder: string;
|
|
258
|
-
label: string;
|
|
259
|
-
validation: {
|
|
260
|
-
required: {
|
|
261
|
-
message: string;
|
|
262
|
-
};
|
|
263
|
-
};
|
|
264
|
-
};
|
|
265
|
-
};
|
|
266
|
-
surname: {
|
|
267
|
-
type: string;
|
|
268
|
-
format: string;
|
|
269
|
-
form: {
|
|
270
|
-
type: string;
|
|
271
|
-
placeholder: string;
|
|
272
|
-
label: string;
|
|
273
|
-
validation: {
|
|
274
|
-
required: {
|
|
275
|
-
message: string;
|
|
276
|
-
};
|
|
277
|
-
};
|
|
278
|
-
};
|
|
279
|
-
};
|
|
280
|
-
postcode: {
|
|
281
|
-
type: string;
|
|
282
|
-
format: string;
|
|
283
|
-
form: {
|
|
284
|
-
type: string;
|
|
285
|
-
placeholder: string;
|
|
286
|
-
label: string;
|
|
287
|
-
validation: {
|
|
288
|
-
required: {
|
|
289
|
-
message: string;
|
|
290
|
-
};
|
|
291
|
-
pattern: {
|
|
292
|
-
pattern: string;
|
|
293
|
-
message: string;
|
|
294
|
-
};
|
|
295
|
-
maxlength: number;
|
|
296
|
-
};
|
|
297
|
-
};
|
|
298
|
-
};
|
|
299
|
-
age: {
|
|
300
|
-
type: string;
|
|
301
|
-
format: string;
|
|
302
|
-
form: {
|
|
303
|
-
type: string;
|
|
304
|
-
placeholder: string;
|
|
305
|
-
label: string;
|
|
306
|
-
readonly: boolean;
|
|
307
|
-
validation: {
|
|
308
|
-
required: {
|
|
309
|
-
message: string;
|
|
310
|
-
};
|
|
311
|
-
badInput: {
|
|
312
|
-
message: string;
|
|
313
|
-
};
|
|
314
|
-
};
|
|
315
|
-
};
|
|
316
|
-
};
|
|
317
|
-
dob: {
|
|
318
|
-
type: string;
|
|
319
|
-
format: string;
|
|
320
|
-
form: {
|
|
321
|
-
type: string;
|
|
322
|
-
placeholder: string;
|
|
323
|
-
label: string;
|
|
324
|
-
readonly: boolean;
|
|
325
|
-
validation: {
|
|
326
|
-
required: {
|
|
327
|
-
message: string;
|
|
328
|
-
};
|
|
329
|
-
minmax: {
|
|
330
|
-
min: string;
|
|
331
|
-
max: string;
|
|
332
|
-
message: string;
|
|
333
|
-
};
|
|
334
|
-
};
|
|
335
|
-
};
|
|
336
|
-
};
|
|
337
|
-
dropdown: {
|
|
338
|
-
form: {
|
|
339
|
-
type: string;
|
|
340
|
-
blankDefault: boolean;
|
|
341
|
-
label: string;
|
|
342
|
-
options: ({
|
|
343
|
-
label: string;
|
|
344
|
-
value: string;
|
|
345
|
-
placeholder: boolean;
|
|
346
|
-
} | {
|
|
347
|
-
label: string;
|
|
348
|
-
value: string;
|
|
349
|
-
placeholder?: undefined;
|
|
350
|
-
})[];
|
|
351
|
-
validation: {
|
|
352
|
-
required: {
|
|
353
|
-
message: string;
|
|
354
|
-
};
|
|
355
|
-
};
|
|
356
|
-
};
|
|
357
|
-
};
|
|
358
|
-
startend: {
|
|
359
|
-
type: string;
|
|
360
|
-
format: string;
|
|
361
|
-
form: {
|
|
362
|
-
type: string;
|
|
363
|
-
includeTime: boolean;
|
|
364
|
-
};
|
|
365
|
-
};
|
|
366
|
-
expiration: {
|
|
367
|
-
type: string;
|
|
368
|
-
form: {
|
|
369
|
-
type: string;
|
|
370
|
-
label: string;
|
|
371
|
-
options: {
|
|
372
|
-
label: string;
|
|
373
|
-
value: string;
|
|
374
|
-
}[];
|
|
375
|
-
validation: {
|
|
376
|
-
required: {
|
|
377
|
-
message: string;
|
|
378
|
-
};
|
|
379
|
-
};
|
|
380
|
-
};
|
|
381
|
-
};
|
|
382
|
-
permissions: {
|
|
383
|
-
form: {
|
|
384
|
-
type: string;
|
|
385
|
-
label: string;
|
|
386
|
-
inlineLabel: string;
|
|
387
|
-
validation: {
|
|
388
|
-
required: {
|
|
389
|
-
message: string;
|
|
390
|
-
};
|
|
391
|
-
};
|
|
392
|
-
};
|
|
393
|
-
};
|
|
394
|
-
notes: {
|
|
395
|
-
form: {
|
|
396
|
-
type: string;
|
|
397
|
-
label: string;
|
|
398
|
-
placeholder: string;
|
|
399
|
-
validation: {
|
|
400
|
-
required: {
|
|
401
|
-
message: string;
|
|
402
|
-
};
|
|
403
|
-
maxlength: number;
|
|
404
|
-
};
|
|
405
|
-
};
|
|
406
|
-
};
|
|
407
|
-
};
|
|
408
|
-
};
|
|
409
|
-
};
|
|
410
|
-
};
|
|
411
|
-
export declare const FormWithRadio: {
|
|
412
|
-
(args: any): string;
|
|
413
|
-
args: {
|
|
414
|
-
formSchema: {
|
|
415
|
-
properties: {
|
|
416
|
-
name: {
|
|
417
|
-
type: string;
|
|
418
|
-
format: string;
|
|
419
|
-
form: {
|
|
420
|
-
type: string;
|
|
421
|
-
placeholder: string;
|
|
422
|
-
label: string;
|
|
423
|
-
validation: {
|
|
424
|
-
required: {
|
|
425
|
-
message: string;
|
|
426
|
-
};
|
|
427
|
-
};
|
|
428
|
-
};
|
|
429
|
-
};
|
|
430
|
-
requiresEvidence: {
|
|
431
|
-
type: string;
|
|
432
|
-
form: {
|
|
433
|
-
type: string;
|
|
434
|
-
label: string;
|
|
435
|
-
inlineLabel: string;
|
|
436
|
-
};
|
|
437
|
-
};
|
|
438
|
-
validity: {
|
|
439
|
-
type: string;
|
|
440
|
-
form: {
|
|
441
|
-
type: string;
|
|
442
|
-
label: string;
|
|
443
|
-
options: {
|
|
444
|
-
label: string;
|
|
445
|
-
value: string;
|
|
446
|
-
}[];
|
|
447
|
-
validation: {
|
|
448
|
-
required: {
|
|
449
|
-
message: string;
|
|
450
|
-
};
|
|
451
|
-
};
|
|
452
|
-
};
|
|
453
|
-
};
|
|
454
|
-
option2: {
|
|
455
|
-
type: string;
|
|
456
|
-
form: {
|
|
457
|
-
type: string;
|
|
458
|
-
label: string;
|
|
459
|
-
options: {
|
|
460
|
-
label: string;
|
|
461
|
-
value: string;
|
|
462
|
-
}[];
|
|
463
|
-
};
|
|
464
|
-
};
|
|
465
|
-
};
|
|
466
|
-
};
|
|
467
|
-
};
|
|
468
|
-
};
|