@3t-transform/threeteeui 1.9.64 → 1.9.65
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/loader.cjs.js +1 -1
- package/dist/cjs/{tttx-action-dropdown_1_9_64.cjs.entry.js → tttx-action-dropdown_1_9_65.cjs.entry.js} +2 -2
- package/dist/cjs/tttx-button-v2_1_9_65.cjs.entry.js +121 -0
- package/dist/cjs/{tttx-button_1_9_64.cjs.entry.js → tttx-button_1_9_65.cjs.entry.js} +2 -2
- package/dist/cjs/{tttx-chart_1_9_64.cjs.entry.js → tttx-chart_1_9_65.cjs.entry.js} +3 -3
- package/dist/cjs/{tttx-checkbox-group-caption_1_9_64.cjs.entry.js → tttx-checkbox-group-caption_1_9_65.cjs.entry.js} +1 -1
- package/dist/cjs/{tttx-checkbox-group-heading_1_9_64.cjs.entry.js → tttx-checkbox-group-heading_1_9_65.cjs.entry.js} +1 -1
- package/dist/cjs/{tttx-checkbox-group_1_9_64.cjs.entry.js → tttx-checkbox-group_1_9_65.cjs.entry.js} +1 -1
- package/dist/cjs/{tttx-checkbox_1_9_64.cjs.entry.js → tttx-checkbox_1_9_65.cjs.entry.js} +2 -2
- package/dist/cjs/{tttx-comments_1_9_64.cjs.entry.js → tttx-comments_1_9_65.cjs.entry.js} +4 -4
- package/dist/cjs/{tttx-data-pattern_1_9_64.cjs.entry.js → tttx-data-pattern_1_9_65.cjs.entry.js} +5 -5
- package/dist/cjs/{tttx-datacard_1_9_64.cjs.entry.js → tttx-datacard_1_9_65.cjs.entry.js} +4 -4
- package/dist/cjs/tttx-date-range-picker.cjs.entry.js +1 -1
- package/dist/cjs/{tttx-dialog-box_1_9_64.cjs.entry.js → tttx-dialog-box_1_9_65.cjs.entry.js} +3 -3
- package/dist/cjs/{tttx-dialog_1_9_64.cjs.entry.js → tttx-dialog_1_9_65.cjs.entry.js} +2 -2
- package/dist/cjs/{tttx-expander_1_9_64.cjs.entry.js → tttx-expander_1_9_65.cjs.entry.js} +2 -2
- package/dist/cjs/{tttx-filter_1_9_64_4.cjs.entry.js → tttx-filter_1_9_65_4.cjs.entry.js} +9 -9
- package/dist/cjs/{tttx-form_1_9_64.cjs.entry.js → tttx-form_1_9_65.cjs.entry.js} +2 -2
- package/dist/cjs/{tttx-graph_1_9_64.cjs.entry.js → tttx-graph_1_9_65.cjs.entry.js} +1 -1
- package/dist/cjs/{tttx-icon_1_9_64.cjs.entry.js → tttx-icon_1_9_65.cjs.entry.js} +1 -1
- package/dist/cjs/{tttx-keyvalue-block_1_9_64.cjs.entry.js → tttx-keyvalue-block_1_9_65.cjs.entry.js} +1 -1
- package/dist/cjs/{tttx-loading-spinner_1_9_64_3.cjs.entry.js → tttx-loading-spinner_1_9_65_3.cjs.entry.js} +6 -6
- package/dist/cjs/{tttx-multiselect-box_1_9_64.cjs.entry.js → tttx-multiselect-box_1_9_65.cjs.entry.js} +7 -7
- package/dist/cjs/{tttx-percentage-bar_1_9_64.cjs.entry.js → tttx-percentage-bar_1_9_65.cjs.entry.js} +2 -2
- package/dist/cjs/{tttx-qrcode_1_9_64.cjs.entry.js → tttx-qrcode_1_9_65.cjs.entry.js} +1 -1
- package/dist/cjs/{tttx-select-box_1_9_64.cjs.entry.js → tttx-select-box_1_9_65.cjs.entry.js} +6 -6
- package/dist/cjs/{tttx-skeleton_loader_1_9_64.cjs.entry.js → tttx-skeleton_loader_1_9_65.cjs.entry.js} +1 -1
- package/dist/cjs/{tttx-table_1_9_64.cjs.entry.js → tttx-table_1_9_65.cjs.entry.js} +1 -1
- package/dist/cjs/{tttx-tabs_1_9_64.cjs.entry.js → tttx-tabs_1_9_65.cjs.entry.js} +4 -4
- package/dist/cjs/{tttx-textarea_1_9_64.cjs.entry.js → tttx-textarea_1_9_65.cjs.entry.js} +2 -2
- package/dist/cjs/{tttx-toggle_1_9_64.cjs.entry.js → tttx-toggle_1_9_65.cjs.entry.js} +1 -1
- package/dist/cjs/{tttx-tree-view_1_9_64.cjs.entry.js → tttx-tree-view_1_9_65.cjs.entry.js} +3 -3
- 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 +24 -24
- package/dist/collection/components/atoms/tttx-button-v2/tttx-button-v2.css +28 -2
- package/dist/collection/components/atoms/tttx-button-v2/tttx-button-v2.js +3 -3
- package/dist/collection/components/atoms/tttx-button-v2/tttx-button-v2.stories.js +13 -13
- 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-datacard/tttx-datacard.js +4 -4
- package/dist/collection/components/atoms/tttx-datacard/tttx-datacard.stories.js +10 -10
- 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 +2 -2
- 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-skeleton-loader/tttx-skeleton-loader.js +1 -1
- package/dist/collection/components/atoms/tttx-tag/tttx-tag.js +2 -2
- package/dist/collection/components/atoms/tttx-tag/tttx-tag.stories.js +6 -6
- package/dist/collection/components/atoms/tttx-toggle/tttx-toggle.js +1 -1
- package/dist/collection/components/atoms/tttx-toggle/tttx-toggle.stories.js +2 -2
- package/dist/collection/components/molecules/tttx-action-dropdown/tttx-action-dropdown.js +2 -2
- package/dist/collection/components/molecules/tttx-action-dropdown/tttx-action-dropdown.stories.js +1 -1
- package/dist/collection/components/molecules/tttx-chart/tttx-chart.js +3 -3
- package/dist/collection/components/molecules/tttx-chart/tttx-chart.stories.js +4 -4
- 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-comments/tttx-comments.js +4 -4
- package/dist/collection/components/molecules/tttx-comments/tttx-comments.stories.js +4 -4
- package/dist/collection/components/molecules/tttx-date-range-picker/tttx-date-range-picker.js +1 -1
- 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 +2 -2
- package/dist/collection/components/molecules/tttx-form/tttx-form.stories.js +8 -8
- package/dist/collection/components/molecules/tttx-graph/tttx-graph.js +1 -1
- package/dist/collection/components/molecules/tttx-graph/tttx-graph.stories.js +1 -1
- package/dist/collection/components/molecules/tttx-list/tttx-list.js +3 -3
- package/dist/collection/components/molecules/tttx-list/tttx-list.stories.js +47 -47
- package/dist/collection/components/molecules/tttx-multiselect-box/tttx-multiselect-box.js +7 -7
- package/dist/collection/components/molecules/tttx-multiselect-box/tttx-multiselect-box.stories.js +37 -37
- package/dist/collection/components/molecules/tttx-select-box/tttx-select-box.js +6 -6
- package/dist/collection/components/molecules/tttx-select-box/tttx-select-box.stories.js +22 -22
- 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-table/tttx-table.js +1 -1
- package/dist/collection/components/molecules/tttx-table/tttx-table.stories.js +6 -6
- 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 +1 -1
- package/dist/collection/components/organisms/tttx-data-pattern/tttx-data-pattern.js +5 -5
- package/dist/collection/components/organisms/tttx-data-pattern/tttx-data-pattern.stories.js +5 -5
- package/dist/components/index.d.ts +35 -35
- package/dist/components/index.js +35 -35
- package/dist/components/tttx-action-dropdown_1_9_65.d.ts +11 -0
- package/dist/components/{tttx-action-dropdown_1_9_64.js → tttx-action-dropdown_1_9_65.js} +7 -7
- package/dist/components/{tttx-checkbox_1_9_64.d.ts → tttx-button-v2_1_9_65.d.ts} +4 -4
- package/dist/components/tttx-button-v2_1_9_65.js +156 -0
- package/dist/components/tttx-button.js +5 -5
- package/dist/components/{tttx-dialog_1_9_64.d.ts → tttx-button_1_9_65.d.ts} +4 -4
- package/dist/components/{tttx-button_1_9_64.js → tttx-button_1_9_65.js} +2 -2
- package/dist/components/{tttx-table_1_9_64.d.ts → tttx-chart_1_9_65.d.ts} +4 -4
- package/dist/components/{tttx-chart_1_9_64.js → tttx-chart_1_9_65.js} +10 -10
- package/dist/components/tttx-checkbox-group-caption_1_9_65.d.ts +11 -0
- package/dist/components/{tttx-checkbox-group-caption_1_9_64.js → tttx-checkbox-group-caption_1_9_65.js} +5 -5
- package/dist/components/tttx-checkbox-group-heading_1_9_65.d.ts +11 -0
- package/dist/components/{tttx-checkbox-group-heading_1_9_64.js → tttx-checkbox-group-heading_1_9_65.js} +5 -5
- package/dist/components/tttx-checkbox-group_1_9_65.d.ts +11 -0
- package/dist/components/{tttx-checkbox-group_1_9_64.js → tttx-checkbox-group_1_9_65.js} +5 -5
- package/dist/components/{tttx-button-v2_1_9_64.d.ts → tttx-checkbox_1_9_65.d.ts} +4 -4
- package/dist/components/{tttx-checkbox_1_9_64.js → tttx-checkbox_1_9_65.js} +7 -7
- package/dist/components/tttx-comments_1_9_65.d.ts +11 -0
- package/dist/components/{tttx-comments_1_9_64.js → tttx-comments_1_9_65.js} +9 -9
- package/dist/components/{tttx-datacard_1_9_64.d.ts → tttx-data-pattern_1_9_65.d.ts} +4 -4
- package/dist/components/{tttx-data-pattern_1_9_64.js → tttx-data-pattern_1_9_65.js} +16 -16
- package/dist/components/tttx-datacard_1_9_65.d.ts +11 -0
- package/dist/components/{tttx-datacard_1_9_64.js → tttx-datacard_1_9_65.js} +10 -10
- package/dist/components/tttx-date-range-picker.js +3 -3
- package/dist/components/tttx-dialog-box_1_9_65.d.ts +11 -0
- package/dist/components/{tttx-dialog-box_1_9_64.js → tttx-dialog-box_1_9_65.js} +9 -9
- package/dist/components/{tttx-filter_1_9_64.d.ts → tttx-dialog_1_9_65.d.ts} +4 -4
- package/dist/components/{tttx-dialog_1_9_64.js → tttx-dialog_1_9_65.js} +8 -8
- package/dist/components/tttx-expander_1_9_65.d.ts +11 -0
- package/dist/components/{tttx-expander_1_9_64.js → tttx-expander_1_9_65.js} +7 -7
- package/dist/components/tttx-filter.js +6 -6
- package/dist/components/{tttx-button_1_9_64.d.ts → tttx-filter_1_9_65.d.ts} +4 -4
- package/dist/components/{tttx-filter_1_9_64.js → tttx-filter_1_9_65.js} +2 -2
- package/dist/components/{tttx-form_1_9_64.d.ts → tttx-form_1_9_65.d.ts} +4 -4
- package/dist/components/{tttx-form_1_9_64.js → tttx-form_1_9_65.js} +11 -11
- package/dist/components/tttx-graph.js +3 -3
- package/dist/components/{tttx-graph_1_9_64.d.ts → tttx-graph_1_9_65.d.ts} +4 -4
- package/dist/components/{tttx-graph_1_9_64.js → tttx-graph_1_9_65.js} +2 -2
- package/dist/components/tttx-icon.js +3 -3
- package/dist/components/{tttx-list_1_9_64.d.ts → tttx-icon_1_9_65.d.ts} +4 -4
- package/dist/components/{tttx-icon_1_9_64.js → tttx-icon_1_9_65.js} +2 -2
- package/dist/components/tttx-keyvalue-block_1_9_65.d.ts +11 -0
- package/dist/components/{tttx-keyvalue-block_1_9_64.js → tttx-keyvalue-block_1_9_65.js} +5 -5
- package/dist/components/tttx-list.js +6 -6
- package/dist/components/{tttx-icon_1_9_64.d.ts → tttx-list_1_9_65.d.ts} +4 -4
- package/dist/components/{tttx-list_1_9_64.js → tttx-list_1_9_65.js} +2 -2
- package/dist/components/tttx-loading-spinner.js +3 -3
- package/dist/components/tttx-loading-spinner_1_9_65.d.ts +11 -0
- package/dist/components/{tttx-loading-spinner_1_9_64.js → tttx-loading-spinner_1_9_65.js} +2 -2
- package/dist/components/tttx-multiselect-box_1_9_65.d.ts +11 -0
- package/dist/components/{tttx-multiselect-box_1_9_64.js → tttx-multiselect-box_1_9_65.js} +16 -16
- package/dist/components/tttx-percentage-bar_1_9_65.d.ts +11 -0
- package/dist/components/{tttx-percentage-bar_1_9_64.js → tttx-percentage-bar_1_9_65.js} +6 -6
- package/dist/components/{tttx-qrcode_1_9_64.d.ts → tttx-qrcode_1_9_65.d.ts} +4 -4
- package/dist/components/{tttx-qrcode_1_9_64.js → tttx-qrcode_1_9_65.js} +5 -5
- package/dist/components/tttx-select-box.js +12 -12
- package/dist/components/tttx-select-box_1_9_65.d.ts +11 -0
- package/dist/components/{tttx-select-box_1_9_64.js → tttx-select-box_1_9_65.js} +2 -2
- package/dist/components/tttx-skeleton_loader_1_9_65.d.ts +11 -0
- package/dist/components/{tttx-skeleton_loader_1_9_64.js → tttx-skeleton_loader_1_9_65.js} +5 -5
- package/dist/components/tttx-sorter.js +5 -5
- package/dist/components/tttx-sorter_1_9_65.d.ts +11 -0
- package/dist/components/{tttx-sorter_1_9_64.js → tttx-sorter_1_9_65.js} +2 -2
- package/dist/components/tttx-standalone-input.js +6 -6
- package/dist/components/tttx-standalone-input_1_9_65.d.ts +11 -0
- package/dist/components/{tttx-standalone-input_1_9_64.js → tttx-standalone-input_1_9_65.js} +2 -2
- package/dist/components/{tttx-chart_1_9_64.d.ts → tttx-table_1_9_65.d.ts} +4 -4
- package/dist/components/{tttx-table_1_9_64.js → tttx-table_1_9_65.js} +5 -5
- package/dist/components/{tttx-tabs_1_9_64.d.ts → tttx-tabs_1_9_65.d.ts} +4 -4
- package/dist/components/{tttx-tabs_1_9_64.js → tttx-tabs_1_9_65.js} +9 -9
- package/dist/components/tttx-tag.js +5 -5
- package/dist/components/{tttx-tag_1_9_64.d.ts → tttx-tag_1_9_65.d.ts} +4 -4
- package/dist/components/{tttx-tag_1_9_64.js → tttx-tag_1_9_65.js} +2 -2
- package/dist/components/tttx-textarea_1_9_65.d.ts +11 -0
- package/dist/components/{tttx-textarea_1_9_64.js → tttx-textarea_1_9_65.js} +6 -6
- package/dist/components/tttx-toggle_1_9_65.d.ts +11 -0
- package/dist/components/{tttx-toggle_1_9_64.js → tttx-toggle_1_9_65.js} +5 -5
- package/dist/components/tttx-toolbar.js +3 -3
- package/dist/components/tttx-toolbar_1_9_65.d.ts +11 -0
- package/dist/components/{tttx-toolbar_1_9_64.js → tttx-toolbar_1_9_65.js} +2 -2
- package/dist/components/tttx-tree-view_1_9_65.d.ts +11 -0
- package/dist/components/{tttx-tree-view_1_9_64.js → tttx-tree-view_1_9_65.js} +9 -9
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{tttx-action-dropdown_1_9_64.entry.js → tttx-action-dropdown_1_9_65.entry.js} +2 -2
- package/dist/esm/tttx-button-v2_1_9_65.entry.js +117 -0
- package/dist/esm/{tttx-button_1_9_64.entry.js → tttx-button_1_9_65.entry.js} +2 -2
- package/dist/esm/{tttx-chart_1_9_64.entry.js → tttx-chart_1_9_65.entry.js} +3 -3
- package/dist/esm/{tttx-checkbox-group-caption_1_9_64.entry.js → tttx-checkbox-group-caption_1_9_65.entry.js} +1 -1
- package/dist/esm/{tttx-checkbox-group-heading_1_9_64.entry.js → tttx-checkbox-group-heading_1_9_65.entry.js} +1 -1
- package/dist/esm/{tttx-checkbox-group_1_9_64.entry.js → tttx-checkbox-group_1_9_65.entry.js} +1 -1
- package/dist/esm/{tttx-checkbox_1_9_64.entry.js → tttx-checkbox_1_9_65.entry.js} +2 -2
- package/dist/esm/{tttx-comments_1_9_64.entry.js → tttx-comments_1_9_65.entry.js} +4 -4
- package/dist/esm/{tttx-data-pattern_1_9_64.entry.js → tttx-data-pattern_1_9_65.entry.js} +5 -5
- package/dist/esm/{tttx-datacard_1_9_64.entry.js → tttx-datacard_1_9_65.entry.js} +4 -4
- package/dist/esm/tttx-date-range-picker.entry.js +1 -1
- package/dist/esm/{tttx-dialog-box_1_9_64.entry.js → tttx-dialog-box_1_9_65.entry.js} +3 -3
- package/dist/esm/{tttx-dialog_1_9_64.entry.js → tttx-dialog_1_9_65.entry.js} +2 -2
- package/dist/esm/{tttx-expander_1_9_64.entry.js → tttx-expander_1_9_65.entry.js} +2 -2
- package/dist/esm/{tttx-filter_1_9_64_4.entry.js → tttx-filter_1_9_65_4.entry.js} +6 -6
- package/dist/esm/{tttx-form_1_9_64.entry.js → tttx-form_1_9_65.entry.js} +2 -2
- package/dist/esm/{tttx-graph_1_9_64.entry.js → tttx-graph_1_9_65.entry.js} +1 -1
- package/dist/esm/{tttx-icon_1_9_64.entry.js → tttx-icon_1_9_65.entry.js} +1 -1
- package/dist/esm/{tttx-keyvalue-block_1_9_64.entry.js → tttx-keyvalue-block_1_9_65.entry.js} +1 -1
- package/dist/esm/{tttx-loading-spinner_1_9_64_3.entry.js → tttx-loading-spinner_1_9_65_3.entry.js} +4 -4
- package/dist/esm/{tttx-multiselect-box_1_9_64.entry.js → tttx-multiselect-box_1_9_65.entry.js} +7 -7
- package/dist/esm/{tttx-percentage-bar_1_9_64.entry.js → tttx-percentage-bar_1_9_65.entry.js} +2 -2
- package/dist/esm/{tttx-qrcode_1_9_64.entry.js → tttx-qrcode_1_9_65.entry.js} +1 -1
- package/dist/esm/{tttx-select-box_1_9_64.entry.js → tttx-select-box_1_9_65.entry.js} +6 -6
- package/dist/esm/{tttx-skeleton_loader_1_9_64.entry.js → tttx-skeleton_loader_1_9_65.entry.js} +1 -1
- package/dist/esm/{tttx-table_1_9_64.entry.js → tttx-table_1_9_65.entry.js} +1 -1
- package/dist/esm/{tttx-tabs_1_9_64.entry.js → tttx-tabs_1_9_65.entry.js} +4 -4
- package/dist/esm/{tttx-textarea_1_9_64.entry.js → tttx-textarea_1_9_65.entry.js} +2 -2
- package/dist/esm/{tttx-toggle_1_9_64.entry.js → tttx-toggle_1_9_65.entry.js} +1 -1
- package/dist/esm/{tttx-tree-view_1_9_64.entry.js → tttx-tree-view_1_9_65.entry.js} +3 -3
- package/dist/esm/tttx.js +1 -1
- package/dist/tttx/p-04acb4f7.entry.js +1 -1
- package/dist/tttx/p-093405a5.entry.js +1 -0
- package/dist/tttx/p-1b8af0a1.entry.js +1 -1
- package/dist/tttx/p-210a3640.entry.js +1 -1
- package/dist/tttx/p-28528c3a.entry.js +1 -1
- package/dist/tttx/p-28902955.entry.js +1 -1
- package/dist/tttx/p-2a6e57b3.entry.js +1 -1
- package/dist/tttx/p-46853736.entry.js +1 -1
- package/dist/tttx/p-46933761.entry.js +1 -1
- package/dist/tttx/p-46985553.entry.js +1 -1
- package/dist/tttx/p-478169f8.entry.js +1 -1
- package/dist/tttx/p-4bc84dcf.entry.js +1 -1
- package/dist/tttx/p-4e8dee24.entry.js +1 -1
- package/dist/tttx/p-655cebb7.entry.js +1 -1
- package/dist/tttx/p-6ae828ed.entry.js +1 -1
- package/dist/tttx/p-72aa3209.entry.js +1 -1
- package/dist/tttx/p-753a802a.entry.js +1 -1
- package/dist/tttx/p-79a18842.entry.js +1 -1
- package/dist/tttx/p-8db27f20.entry.js +1 -1
- package/dist/tttx/p-92b48e8e.entry.js +1 -1
- package/dist/tttx/p-95ea704b.entry.js +1 -1
- package/dist/tttx/p-964b5e1a.entry.js +1 -1
- package/dist/tttx/p-99cee169.entry.js +1 -1
- package/dist/tttx/p-a380f600.entry.js +1 -1
- package/dist/tttx/p-ce6a69bc.entry.js +1 -1
- package/dist/tttx/p-cfc7f861.entry.js +1 -1
- package/dist/tttx/p-e0bd4daa.entry.js +1 -1
- package/dist/tttx/p-e7c92d26.entry.js +1 -1
- package/dist/tttx/p-e8d02dd3.entry.js +1 -1
- package/dist/tttx/p-eda88cd9.entry.js +1 -1
- package/dist/tttx/p-ffb09d64.entry.js +1 -1
- package/dist/tttx/tttx.esm.js +1 -1
- package/dist/types/components/molecules/tttx-select-box/tttx-select-box.d.ts +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 +419 -419
- package/package.json +1 -1
- package/dist/cjs/tttx-button-v2_1_9_64.cjs.entry.js +0 -121
- package/dist/components/tttx-action-dropdown_1_9_64.d.ts +0 -11
- package/dist/components/tttx-button-v2_1_9_64.js +0 -156
- package/dist/components/tttx-checkbox-group-caption_1_9_64.d.ts +0 -11
- package/dist/components/tttx-checkbox-group-heading_1_9_64.d.ts +0 -11
- package/dist/components/tttx-checkbox-group_1_9_64.d.ts +0 -11
- package/dist/components/tttx-comments_1_9_64.d.ts +0 -11
- package/dist/components/tttx-data-pattern_1_9_64.d.ts +0 -11
- package/dist/components/tttx-dialog-box_1_9_64.d.ts +0 -11
- package/dist/components/tttx-expander_1_9_64.d.ts +0 -11
- package/dist/components/tttx-keyvalue-block_1_9_64.d.ts +0 -11
- package/dist/components/tttx-loading-spinner_1_9_64.d.ts +0 -11
- package/dist/components/tttx-multiselect-box_1_9_64.d.ts +0 -11
- package/dist/components/tttx-percentage-bar_1_9_64.d.ts +0 -11
- package/dist/components/tttx-select-box_1_9_64.d.ts +0 -11
- package/dist/components/tttx-skeleton_loader_1_9_64.d.ts +0 -11
- package/dist/components/tttx-sorter_1_9_64.d.ts +0 -11
- package/dist/components/tttx-standalone-input_1_9_64.d.ts +0 -11
- package/dist/components/tttx-textarea_1_9_64.d.ts +0 -11
- package/dist/components/tttx-toggle_1_9_64.d.ts +0 -11
- package/dist/components/tttx-toolbar_1_9_64.d.ts +0 -11
- package/dist/components/tttx-tree-view_1_9_64.d.ts +0 -11
- package/dist/esm/tttx-button-v2_1_9_64.entry.js +0 -117
- package/dist/tttx/p-1c0db631.entry.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r,h as t,g as n}from"./p-c2a82822.js";import{c as e}from"./p-112455b1.js";var i=e((function(r){window,r.exports=function(r){var t={};function n(e){if(t[e])return t[e].exports;var i=t[e]={i:e,l:!1,exports:{}};return r[e].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=r,n.c=t,n.d=function(r,t,e){n.o(r,t)||Object.defineProperty(r,t,{enumerable:!0,get:e})},n.r=function(r){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},n.t=function(r,t){if(1&t&&(r=n(r)),8&t)return r;if(4&t&&"object"==typeof r&&r&&r.__esModule)return r;var e=Object.create(null);if(n.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:r}),2&t&&"string"!=typeof r)for(var i in r)n.d(e,i,function(t){return r[t]}.bind(null,i));return e},n.n=function(r){var t=r&&r.__esModule?function(){return r.default}:function(){return r};return n.d(t,"a",t),t},n.o=function(r,t){return Object.prototype.hasOwnProperty.call(r,t)},n.p="",n(n.s=3)}([function(r,t){Object.defineProperty(t,"__esModule",{value:!0}),t.QRMode={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},t.QRErrorCorrectLevel={L:1,M:0,Q:3,H:2},t.QRMaskPattern={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7}},function(r,t){Object.defineProperty(t,"__esModule",{value:!0}),t.QRMath={glog:function(r){if(r<1)throw new Error("glog("+r+")");return t.QRMath.LOG_TABLE[r]},gexp:function(r){for(;r<0;)r+=255;for(;r>=256;)r-=255;return t.QRMath.EXP_TABLE[r]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)};for(var n=0;n<8;n++)t.QRMath.EXP_TABLE[n]=1<<n;for(n=8;n<256;n++)t.QRMath.EXP_TABLE[n]=t.QRMath.EXP_TABLE[n-4]^t.QRMath.EXP_TABLE[n-5]^t.QRMath.EXP_TABLE[n-6]^t.QRMath.EXP_TABLE[n-8];for(n=0;n<255;n++)t.QRMath.LOG_TABLE[t.QRMath.EXP_TABLE[n]]=n},function(r,t,n){Object.defineProperty(t,"__esModule",{value:!0});var e=n(1),i=function(){function r(r,t){if(null==r.length)throw new Error(r.length+"/"+t);for(var n=0;n<r.length&&0===r[n];)n++;this.num=new Array(r.length-n+t);for(var e=0;e<r.length-n;e++)this.num[e]=r[e+n]}return r.prototype.get=function(r){return this.num[r]},r.prototype.getLength=function(){return this.num.length},r.prototype.multiply=function(t){for(var n=new Array(this.getLength()+t.getLength()-1),i=0;i<this.getLength();i++)for(var o=0;o<t.getLength();o++)n[i+o]^=e.QRMath.gexp(e.QRMath.glog(this.get(i))+e.QRMath.glog(t.get(o)));return new r(n,0)},r.prototype.mod=function(t){if(this.getLength()-t.getLength()<0)return this;for(var n=e.QRMath.glog(this.get(0))-e.QRMath.glog(t.get(0)),i=new Array(this.getLength()),o=0;o<this.getLength();o++)i[o]=this.get(o);for(o=0;o<t.getLength();o++)i[o]^=e.QRMath.gexp(e.QRMath.glog(t.get(o))+n);return new r(i,0).mod(t)},r}();t.default=i},function(r,t,n){Object.defineProperty(t,"__esModule",{value:!0});var e=n(4),i=n(5),o=n(6),s=n(7),f=n(2),u=n(0),a=n(0);t.QRErrorCorrectLevel=a.QRErrorCorrectLevel;var h=function(){function r(r,t){this.typeNumber=r,this.errorCorrectLevel=t,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}return r.prototype.addData=function(r){var t=new i.default(r);this.dataList.push(t),this.dataCache=null},r.prototype.isDark=function(r,t){if(r<0||this.moduleCount<=r||t<0||this.moduleCount<=t)throw new Error(r+","+t);return this.modules[r][t]},r.prototype.getModuleCount=function(){return this.moduleCount},r.prototype.make=function(){if(this.typeNumber<1){var r=void 0;for(r=1;r<40;r++){for(var t=s.default.getRSBlocks(r,this.errorCorrectLevel),n=new o.default,i=0,f=0;f<t.length;f++)i+=t[f].dataCount;for(f=0;f<this.dataList.length;f++){var u=this.dataList[f];n.put(u.mode,4),n.put(u.getLength(),e.QRUtil.getLengthInBits(u.mode,r)),u.write(n)}if(n.getLengthInBits()<=8*i)break}this.typeNumber=r}this.makeImpl(!1,this.getBestMaskPattern())},r.prototype.makeImpl=function(t,n){this.moduleCount=4*this.typeNumber+17,this.modules=new Array(this.moduleCount);for(var e=0;e<this.moduleCount;e++){this.modules[e]=new Array(this.moduleCount);for(var i=0;i<this.moduleCount;i++)this.modules[e][i]=null}this.setupPositionProbePattern(0,0),this.setupPositionProbePattern(this.moduleCount-7,0),this.setupPositionProbePattern(0,this.moduleCount-7),this.setupPositionAdjustPattern(),this.setupTimingPattern(),this.setupTypeInfo(t,n),this.typeNumber>=7&&this.setupTypeNumber(t),null==this.dataCache&&(this.dataCache=r.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,n)},r.prototype.setupPositionProbePattern=function(r,t){for(var n=-1;n<=7;n++)if(!(r+n<=-1||this.moduleCount<=r+n))for(var e=-1;e<=7;e++)t+e<=-1||this.moduleCount<=t+e||(this.modules[r+n][t+e]=n>=0&&n<=6&&(0===e||6===e)||e>=0&&e<=6&&(0===n||6===n)||n>=2&&n<=4&&e>=2&&e<=4)},r.prototype.getBestMaskPattern=function(){for(var r=0,t=0,n=0;n<8;n++){this.makeImpl(!0,n);var i=e.QRUtil.getLostPoint(this);(0===n||r>i)&&(r=i,t=n)}return t},r.prototype.createMovieClip=function(r,t,n){var e=r.createEmptyMovieClip(t,n);this.make();for(var i=0;i<this.modules.length;i++)for(var o=1*i,s=0;s<this.modules[i].length;s++){var f=1*s;this.modules[i][s]&&(e.beginFill(0,100),e.moveTo(f,o),e.lineTo(f+1,o),e.lineTo(f+1,o+1),e.lineTo(f,o+1),e.endFill())}return e},r.prototype.setupTimingPattern=function(){for(var r=8;r<this.moduleCount-8;r++)null==this.modules[r][6]&&(this.modules[r][6]=r%2==0);for(var t=8;t<this.moduleCount-8;t++)null==this.modules[6][t]&&(this.modules[6][t]=t%2==0)},r.prototype.setupPositionAdjustPattern=function(){for(var r=e.QRUtil.getPatternPosition(this.typeNumber),t=0;t<r.length;t++)for(var n=0;n<r.length;n++){var i=r[t],o=r[n];if(null==this.modules[i][o])for(var s=-2;s<=2;s++)for(var f=-2;f<=2;f++)this.modules[i+s][o+f]=-2===s||2===s||-2===f||2===f||0===s&&0===f}},r.prototype.setupTypeNumber=function(r){for(var t=e.QRUtil.getBCHTypeNumber(this.typeNumber),n=0;n<18;n++){var i=!r&&1==(t>>n&1);this.modules[Math.floor(n/3)][n%3+this.moduleCount-8-3]=i}for(n=0;n<18;n++)i=!r&&1==(t>>n&1),this.modules[n%3+this.moduleCount-8-3][Math.floor(n/3)]=i},r.prototype.setupTypeInfo=function(r,t){for(var n=e.QRUtil.getBCHTypeInfo(this.errorCorrectLevel<<3|t),i=0;i<15;i++){var o=!r&&1==(n>>i&1);i<6?this.modules[i][8]=o:i<8?this.modules[i+1][8]=o:this.modules[this.moduleCount-15+i][8]=o}for(i=0;i<15;i++)o=!r&&1==(n>>i&1),i<8?this.modules[8][this.moduleCount-i-1]=o:i<9?this.modules[8][15-i-1+1]=o:this.modules[8][15-i-1]=o;this.modules[this.moduleCount-8][8]=!r},r.prototype.mapData=function(r,t){for(var n=-1,i=this.moduleCount-1,o=7,s=0,f=this.moduleCount-1;f>0;f-=2)for(6===f&&f--;;){for(var u=0;u<2;u++)if(null==this.modules[i][f-u]){var a=!1;s<r.length&&(a=1==(r[s]>>>o&1)),e.QRUtil.getMask(t,i,f-u)&&(a=!a),this.modules[i][f-u]=a,-1==--o&&(s++,o=7)}if((i+=n)<0||this.moduleCount<=i){i-=n,n=-n;break}}},r.createData=function(t,n,i){for(var f=s.default.getRSBlocks(t,n),u=new o.default,a=0;a<i.length;a++){var h=i[a];u.put(h.mode,4),u.put(h.getLength(),e.QRUtil.getLengthInBits(h.mode,t)),h.write(u)}var c=0;for(a=0;a<f.length;a++)c+=f[a].dataCount;if(u.getLengthInBits()>8*c)throw new Error("code length overflow. ("+u.getLengthInBits()+">"+8*c+")");for(u.getLengthInBits()+4<=8*c&&u.put(0,4);u.getLengthInBits()%8!=0;)u.putBit(!1);for(;!(u.getLengthInBits()>=8*c||(u.put(r.PAD0,8),u.getLengthInBits()>=8*c));)u.put(r.PAD1,8);return r.createBytes(u,f)},r.createBytes=function(r,t){for(var n=0,i=0,o=0,s=new Array(t.length),u=new Array(t.length),a=0;a<t.length;a++){var h=t[a].dataCount,c=t[a].totalCount-h;i=Math.max(i,h),o=Math.max(o,c),s[a]=new Array(h);for(var v=0;v<s[a].length;v++)s[a][v]=255&r.buffer[v+n];n+=h;var l=e.QRUtil.getErrorCorrectPolynomial(c),w=new f.default(s[a],l.getLength()-1).mod(l);for(u[a]=new Array(l.getLength()-1),v=0;v<u[a].length;v++){var d=v+w.getLength()-u[a].length;u[a][v]=d>=0?w.get(d):0}}var M=0;for(v=0;v<t.length;v++)M+=t[v].totalCount;var b=new Array(M),E=0;for(v=0;v<i;v++)for(a=0;a<t.length;a++)v<s[a].length&&(b[E++]=s[a][v]);for(v=0;v<o;v++)for(a=0;a<t.length;a++)v<u[a].length&&(b[E++]=u[a][v]);return b},r.createCanvas=function(t){var n=Object.assign({width:256,height:256,correctLevel:u.QRErrorCorrectLevel.H,background:"#ffffff",foreground:"#000000"},t),e=new r(-1,n.correctLevel);e.addData(n.text),e.make();var i=document.createElement("canvas");i.width=n.width,i.height=n.height;for(var o=i.getContext("2d"),s=n.width/e.getModuleCount(),f=n.height/e.getModuleCount(),a=0;a<e.getModuleCount();a++)for(var h=0;h<e.getModuleCount();h++){o.fillStyle=e.isDark(a,h)?n.foreground:n.background;var c=Math.ceil((h+1)*s)-Math.floor(h*s),v=Math.ceil((a+1)*f)-Math.floor(a*f);o.fillRect(Math.round(h*s),Math.round(a*f),c,v)}return i},r.setCanvas=function(t,n){var e=document.getElementById(t);e.innerHTML="",e.appendChild(r.createCanvas(n))},r.PAD0=236,r.PAD1=17,r}();t.QRCode=h},function(r,t,n){Object.defineProperty(t,"__esModule",{value:!0});var e=n(0),i=n(1),o=n(2);t.QRUtil={PATTERN_POSITION_TABLE:[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],G15:1335,G18:7973,G15_MASK:21522,getBCHTypeInfo:function(r){for(var n=r<<10;t.QRUtil.getBCHDigit(n)-t.QRUtil.getBCHDigit(t.QRUtil.G15)>=0;)n^=t.QRUtil.G15<<t.QRUtil.getBCHDigit(n)-t.QRUtil.getBCHDigit(t.QRUtil.G15);return(r<<10|n)^t.QRUtil.G15_MASK},getBCHTypeNumber:function(r){for(var n=r<<12;t.QRUtil.getBCHDigit(n)-t.QRUtil.getBCHDigit(t.QRUtil.G18)>=0;)n^=t.QRUtil.G18<<t.QRUtil.getBCHDigit(n)-t.QRUtil.getBCHDigit(t.QRUtil.G18);return r<<12|n},getBCHDigit:function(r){for(var t=0;0!==r;)t++,r>>>=1;return t},getPatternPosition:function(r){return t.QRUtil.PATTERN_POSITION_TABLE[r-1]},getMask:function(r,t,n){switch(r){case e.QRMaskPattern.PATTERN000:return(t+n)%2==0;case e.QRMaskPattern.PATTERN001:return t%2==0;case e.QRMaskPattern.PATTERN010:return n%3==0;case e.QRMaskPattern.PATTERN011:return(t+n)%3==0;case e.QRMaskPattern.PATTERN100:return(Math.floor(t/2)+Math.floor(n/3))%2==0;case e.QRMaskPattern.PATTERN101:return t*n%2+t*n%3==0;case e.QRMaskPattern.PATTERN110:return(t*n%2+t*n%3)%2==0;case e.QRMaskPattern.PATTERN111:return(t*n%3+(t+n)%2)%2==0;default:throw new Error("bad maskPattern:"+r)}},getErrorCorrectPolynomial:function(r){for(var t=new o.default([1],0),n=0;n<r;n++)t=t.multiply(new o.default([1,i.QRMath.gexp(n)],0));return t},getLengthInBits:function(r,t){if(t>=1&&t<10)switch(r){case e.QRMode.MODE_NUMBER:return 10;case e.QRMode.MODE_ALPHA_NUM:return 9;case e.QRMode.MODE_8BIT_BYTE:case e.QRMode.MODE_KANJI:return 8;default:throw new Error("mode:"+r)}else if(t<27)switch(r){case e.QRMode.MODE_NUMBER:return 12;case e.QRMode.MODE_ALPHA_NUM:return 11;case e.QRMode.MODE_8BIT_BYTE:return 16;case e.QRMode.MODE_KANJI:return 10;default:throw new Error("mode:"+r)}else{if(!(t<41))throw new Error("type:"+t);switch(r){case e.QRMode.MODE_NUMBER:return 14;case e.QRMode.MODE_ALPHA_NUM:return 13;case e.QRMode.MODE_8BIT_BYTE:return 16;case e.QRMode.MODE_KANJI:return 12;default:throw new Error("mode:"+r)}}},getLostPoint:function(r){for(var t=r.getModuleCount(),n=0,e=0;e<t;e++)for(var i=0;i<t;i++){for(var o=0,s=r.isDark(e,i),f=-1;f<=1;f++)if(!(e+f<0||t<=e+f))for(var u=-1;u<=1;u++)i+u<0||t<=i+u||0===f&&0===u||s===r.isDark(e+f,i+u)&&o++;o>5&&(n+=3+o-5)}for(e=0;e<t-1;e++)for(i=0;i<t-1;i++){var a=0;r.isDark(e,i)&&a++,r.isDark(e+1,i)&&a++,r.isDark(e,i+1)&&a++,r.isDark(e+1,i+1)&&a++,0!==a&&4!==a||(n+=3)}for(e=0;e<t;e++)for(i=0;i<t-6;i++)r.isDark(e,i)&&!r.isDark(e,i+1)&&r.isDark(e,i+2)&&r.isDark(e,i+3)&&r.isDark(e,i+4)&&!r.isDark(e,i+5)&&r.isDark(e,i+6)&&(n+=40);for(i=0;i<t;i++)for(e=0;e<t-6;e++)r.isDark(e,i)&&!r.isDark(e+1,i)&&r.isDark(e+2,i)&&r.isDark(e+3,i)&&r.isDark(e+4,i)&&!r.isDark(e+5,i)&&r.isDark(e+6,i)&&(n+=40);var h=0;for(i=0;i<t;i++)for(e=0;e<t;e++)r.isDark(e,i)&&h++;return n+Math.abs(100*h/t/t-50)/5*10}}},function(r,t,n){Object.defineProperty(t,"__esModule",{value:!0});var e=n(0),i=function(){function r(r){this.mode=e.QRMode.MODE_8BIT_BYTE,this.data=r}return r.prototype.getLength=function(){return this.data.length},r.prototype.write=function(r){for(var t=0;t<this.data.length;t++)r.put(this.data.charCodeAt(t),8)},r}();t.default=i},function(r,t){Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function r(){this.buffer=[],this.length=0}return r.prototype.get=function(r){var t=Math.floor(r/8);return 1==(this.buffer[t]>>>7-r%8&1)},r.prototype.put=function(r,t){for(var n=0;n<t;n++)this.putBit(1==(r>>>t-n-1&1))},r.prototype.getLengthInBits=function(){return this.length},r.prototype.putBit=function(r){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),r&&(this.buffer[t]|=128>>>this.length%8),this.length++},r}();t.default=n},function(r,t,n){Object.defineProperty(t,"__esModule",{value:!0});var e=n(0),i=function(){function r(r,t){this.totalCount=r,this.dataCount=t}return r.getRSBlocks=function(t,n){var e=this.getRsBlockTable(t,n);if(void 0===e)throw new Error("bad rs block @ typeNumber:"+t+"/errorCorrectLevel:"+n);for(var i=e.length/3,o=[],s=0;s<i;s++)for(var f=e[3*s],u=e[3*s+1],a=e[3*s+2],h=0;h<f;h++)o.push(new r(u,a));return o},r.getRsBlockTable=function(r,t){switch(t){case e.QRErrorCorrectLevel.L:return this.RS_BLOCK_TABLE[4*(r-1)];case e.QRErrorCorrectLevel.M:return this.RS_BLOCK_TABLE[4*(r-1)+1];case e.QRErrorCorrectLevel.Q:return this.RS_BLOCK_TABLE[4*(r-1)+2];case e.QRErrorCorrectLevel.H:return this.RS_BLOCK_TABLE[4*(r-1)+3];default:return}},r.RS_BLOCK_TABLE=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],r}();t.default=i}])}));const o=class{constructor(t){r(this,t),this.link="https://example.com",this.size=258}componentDidLoad(){this.setShadowCanvas("qrcode",{width:this.size,height:this.size,correctLevel:i.QRErrorCorrectLevel.H,background:"#ffffff",foreground:"#000000",text:this.link})}setShadowCanvas(r,t){const n=this.hostElement.shadowRoot.getElementById(r);n.innerHTML="",n.appendChild(i.QRCode.createCanvas(t))}render(){return t("div",{id:"qrcode"})}get hostElement(){return n(this)}};o.style="";export{o as tttx_qrcode_1_9_64}
|
|
1
|
+
import{r,h as t,g as n}from"./p-c2a82822.js";import{c as e}from"./p-112455b1.js";var i=e((function(r){window,r.exports=function(r){var t={};function n(e){if(t[e])return t[e].exports;var i=t[e]={i:e,l:!1,exports:{}};return r[e].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=r,n.c=t,n.d=function(r,t,e){n.o(r,t)||Object.defineProperty(r,t,{enumerable:!0,get:e})},n.r=function(r){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},n.t=function(r,t){if(1&t&&(r=n(r)),8&t)return r;if(4&t&&"object"==typeof r&&r&&r.__esModule)return r;var e=Object.create(null);if(n.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:r}),2&t&&"string"!=typeof r)for(var i in r)n.d(e,i,function(t){return r[t]}.bind(null,i));return e},n.n=function(r){var t=r&&r.__esModule?function(){return r.default}:function(){return r};return n.d(t,"a",t),t},n.o=function(r,t){return Object.prototype.hasOwnProperty.call(r,t)},n.p="",n(n.s=3)}([function(r,t){Object.defineProperty(t,"__esModule",{value:!0}),t.QRMode={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},t.QRErrorCorrectLevel={L:1,M:0,Q:3,H:2},t.QRMaskPattern={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7}},function(r,t){Object.defineProperty(t,"__esModule",{value:!0}),t.QRMath={glog:function(r){if(r<1)throw new Error("glog("+r+")");return t.QRMath.LOG_TABLE[r]},gexp:function(r){for(;r<0;)r+=255;for(;r>=256;)r-=255;return t.QRMath.EXP_TABLE[r]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)};for(var n=0;n<8;n++)t.QRMath.EXP_TABLE[n]=1<<n;for(n=8;n<256;n++)t.QRMath.EXP_TABLE[n]=t.QRMath.EXP_TABLE[n-4]^t.QRMath.EXP_TABLE[n-5]^t.QRMath.EXP_TABLE[n-6]^t.QRMath.EXP_TABLE[n-8];for(n=0;n<255;n++)t.QRMath.LOG_TABLE[t.QRMath.EXP_TABLE[n]]=n},function(r,t,n){Object.defineProperty(t,"__esModule",{value:!0});var e=n(1),i=function(){function r(r,t){if(null==r.length)throw new Error(r.length+"/"+t);for(var n=0;n<r.length&&0===r[n];)n++;this.num=new Array(r.length-n+t);for(var e=0;e<r.length-n;e++)this.num[e]=r[e+n]}return r.prototype.get=function(r){return this.num[r]},r.prototype.getLength=function(){return this.num.length},r.prototype.multiply=function(t){for(var n=new Array(this.getLength()+t.getLength()-1),i=0;i<this.getLength();i++)for(var o=0;o<t.getLength();o++)n[i+o]^=e.QRMath.gexp(e.QRMath.glog(this.get(i))+e.QRMath.glog(t.get(o)));return new r(n,0)},r.prototype.mod=function(t){if(this.getLength()-t.getLength()<0)return this;for(var n=e.QRMath.glog(this.get(0))-e.QRMath.glog(t.get(0)),i=new Array(this.getLength()),o=0;o<this.getLength();o++)i[o]=this.get(o);for(o=0;o<t.getLength();o++)i[o]^=e.QRMath.gexp(e.QRMath.glog(t.get(o))+n);return new r(i,0).mod(t)},r}();t.default=i},function(r,t,n){Object.defineProperty(t,"__esModule",{value:!0});var e=n(4),i=n(5),o=n(6),s=n(7),f=n(2),u=n(0),a=n(0);t.QRErrorCorrectLevel=a.QRErrorCorrectLevel;var h=function(){function r(r,t){this.typeNumber=r,this.errorCorrectLevel=t,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}return r.prototype.addData=function(r){var t=new i.default(r);this.dataList.push(t),this.dataCache=null},r.prototype.isDark=function(r,t){if(r<0||this.moduleCount<=r||t<0||this.moduleCount<=t)throw new Error(r+","+t);return this.modules[r][t]},r.prototype.getModuleCount=function(){return this.moduleCount},r.prototype.make=function(){if(this.typeNumber<1){var r=void 0;for(r=1;r<40;r++){for(var t=s.default.getRSBlocks(r,this.errorCorrectLevel),n=new o.default,i=0,f=0;f<t.length;f++)i+=t[f].dataCount;for(f=0;f<this.dataList.length;f++){var u=this.dataList[f];n.put(u.mode,4),n.put(u.getLength(),e.QRUtil.getLengthInBits(u.mode,r)),u.write(n)}if(n.getLengthInBits()<=8*i)break}this.typeNumber=r}this.makeImpl(!1,this.getBestMaskPattern())},r.prototype.makeImpl=function(t,n){this.moduleCount=4*this.typeNumber+17,this.modules=new Array(this.moduleCount);for(var e=0;e<this.moduleCount;e++){this.modules[e]=new Array(this.moduleCount);for(var i=0;i<this.moduleCount;i++)this.modules[e][i]=null}this.setupPositionProbePattern(0,0),this.setupPositionProbePattern(this.moduleCount-7,0),this.setupPositionProbePattern(0,this.moduleCount-7),this.setupPositionAdjustPattern(),this.setupTimingPattern(),this.setupTypeInfo(t,n),this.typeNumber>=7&&this.setupTypeNumber(t),null==this.dataCache&&(this.dataCache=r.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,n)},r.prototype.setupPositionProbePattern=function(r,t){for(var n=-1;n<=7;n++)if(!(r+n<=-1||this.moduleCount<=r+n))for(var e=-1;e<=7;e++)t+e<=-1||this.moduleCount<=t+e||(this.modules[r+n][t+e]=n>=0&&n<=6&&(0===e||6===e)||e>=0&&e<=6&&(0===n||6===n)||n>=2&&n<=4&&e>=2&&e<=4)},r.prototype.getBestMaskPattern=function(){for(var r=0,t=0,n=0;n<8;n++){this.makeImpl(!0,n);var i=e.QRUtil.getLostPoint(this);(0===n||r>i)&&(r=i,t=n)}return t},r.prototype.createMovieClip=function(r,t,n){var e=r.createEmptyMovieClip(t,n);this.make();for(var i=0;i<this.modules.length;i++)for(var o=1*i,s=0;s<this.modules[i].length;s++){var f=1*s;this.modules[i][s]&&(e.beginFill(0,100),e.moveTo(f,o),e.lineTo(f+1,o),e.lineTo(f+1,o+1),e.lineTo(f,o+1),e.endFill())}return e},r.prototype.setupTimingPattern=function(){for(var r=8;r<this.moduleCount-8;r++)null==this.modules[r][6]&&(this.modules[r][6]=r%2==0);for(var t=8;t<this.moduleCount-8;t++)null==this.modules[6][t]&&(this.modules[6][t]=t%2==0)},r.prototype.setupPositionAdjustPattern=function(){for(var r=e.QRUtil.getPatternPosition(this.typeNumber),t=0;t<r.length;t++)for(var n=0;n<r.length;n++){var i=r[t],o=r[n];if(null==this.modules[i][o])for(var s=-2;s<=2;s++)for(var f=-2;f<=2;f++)this.modules[i+s][o+f]=-2===s||2===s||-2===f||2===f||0===s&&0===f}},r.prototype.setupTypeNumber=function(r){for(var t=e.QRUtil.getBCHTypeNumber(this.typeNumber),n=0;n<18;n++){var i=!r&&1==(t>>n&1);this.modules[Math.floor(n/3)][n%3+this.moduleCount-8-3]=i}for(n=0;n<18;n++)i=!r&&1==(t>>n&1),this.modules[n%3+this.moduleCount-8-3][Math.floor(n/3)]=i},r.prototype.setupTypeInfo=function(r,t){for(var n=e.QRUtil.getBCHTypeInfo(this.errorCorrectLevel<<3|t),i=0;i<15;i++){var o=!r&&1==(n>>i&1);i<6?this.modules[i][8]=o:i<8?this.modules[i+1][8]=o:this.modules[this.moduleCount-15+i][8]=o}for(i=0;i<15;i++)o=!r&&1==(n>>i&1),i<8?this.modules[8][this.moduleCount-i-1]=o:i<9?this.modules[8][15-i-1+1]=o:this.modules[8][15-i-1]=o;this.modules[this.moduleCount-8][8]=!r},r.prototype.mapData=function(r,t){for(var n=-1,i=this.moduleCount-1,o=7,s=0,f=this.moduleCount-1;f>0;f-=2)for(6===f&&f--;;){for(var u=0;u<2;u++)if(null==this.modules[i][f-u]){var a=!1;s<r.length&&(a=1==(r[s]>>>o&1)),e.QRUtil.getMask(t,i,f-u)&&(a=!a),this.modules[i][f-u]=a,-1==--o&&(s++,o=7)}if((i+=n)<0||this.moduleCount<=i){i-=n,n=-n;break}}},r.createData=function(t,n,i){for(var f=s.default.getRSBlocks(t,n),u=new o.default,a=0;a<i.length;a++){var h=i[a];u.put(h.mode,4),u.put(h.getLength(),e.QRUtil.getLengthInBits(h.mode,t)),h.write(u)}var c=0;for(a=0;a<f.length;a++)c+=f[a].dataCount;if(u.getLengthInBits()>8*c)throw new Error("code length overflow. ("+u.getLengthInBits()+">"+8*c+")");for(u.getLengthInBits()+4<=8*c&&u.put(0,4);u.getLengthInBits()%8!=0;)u.putBit(!1);for(;!(u.getLengthInBits()>=8*c||(u.put(r.PAD0,8),u.getLengthInBits()>=8*c));)u.put(r.PAD1,8);return r.createBytes(u,f)},r.createBytes=function(r,t){for(var n=0,i=0,o=0,s=new Array(t.length),u=new Array(t.length),a=0;a<t.length;a++){var h=t[a].dataCount,c=t[a].totalCount-h;i=Math.max(i,h),o=Math.max(o,c),s[a]=new Array(h);for(var v=0;v<s[a].length;v++)s[a][v]=255&r.buffer[v+n];n+=h;var l=e.QRUtil.getErrorCorrectPolynomial(c),w=new f.default(s[a],l.getLength()-1).mod(l);for(u[a]=new Array(l.getLength()-1),v=0;v<u[a].length;v++){var d=v+w.getLength()-u[a].length;u[a][v]=d>=0?w.get(d):0}}var M=0;for(v=0;v<t.length;v++)M+=t[v].totalCount;var b=new Array(M),E=0;for(v=0;v<i;v++)for(a=0;a<t.length;a++)v<s[a].length&&(b[E++]=s[a][v]);for(v=0;v<o;v++)for(a=0;a<t.length;a++)v<u[a].length&&(b[E++]=u[a][v]);return b},r.createCanvas=function(t){var n=Object.assign({width:256,height:256,correctLevel:u.QRErrorCorrectLevel.H,background:"#ffffff",foreground:"#000000"},t),e=new r(-1,n.correctLevel);e.addData(n.text),e.make();var i=document.createElement("canvas");i.width=n.width,i.height=n.height;for(var o=i.getContext("2d"),s=n.width/e.getModuleCount(),f=n.height/e.getModuleCount(),a=0;a<e.getModuleCount();a++)for(var h=0;h<e.getModuleCount();h++){o.fillStyle=e.isDark(a,h)?n.foreground:n.background;var c=Math.ceil((h+1)*s)-Math.floor(h*s),v=Math.ceil((a+1)*f)-Math.floor(a*f);o.fillRect(Math.round(h*s),Math.round(a*f),c,v)}return i},r.setCanvas=function(t,n){var e=document.getElementById(t);e.innerHTML="",e.appendChild(r.createCanvas(n))},r.PAD0=236,r.PAD1=17,r}();t.QRCode=h},function(r,t,n){Object.defineProperty(t,"__esModule",{value:!0});var e=n(0),i=n(1),o=n(2);t.QRUtil={PATTERN_POSITION_TABLE:[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],G15:1335,G18:7973,G15_MASK:21522,getBCHTypeInfo:function(r){for(var n=r<<10;t.QRUtil.getBCHDigit(n)-t.QRUtil.getBCHDigit(t.QRUtil.G15)>=0;)n^=t.QRUtil.G15<<t.QRUtil.getBCHDigit(n)-t.QRUtil.getBCHDigit(t.QRUtil.G15);return(r<<10|n)^t.QRUtil.G15_MASK},getBCHTypeNumber:function(r){for(var n=r<<12;t.QRUtil.getBCHDigit(n)-t.QRUtil.getBCHDigit(t.QRUtil.G18)>=0;)n^=t.QRUtil.G18<<t.QRUtil.getBCHDigit(n)-t.QRUtil.getBCHDigit(t.QRUtil.G18);return r<<12|n},getBCHDigit:function(r){for(var t=0;0!==r;)t++,r>>>=1;return t},getPatternPosition:function(r){return t.QRUtil.PATTERN_POSITION_TABLE[r-1]},getMask:function(r,t,n){switch(r){case e.QRMaskPattern.PATTERN000:return(t+n)%2==0;case e.QRMaskPattern.PATTERN001:return t%2==0;case e.QRMaskPattern.PATTERN010:return n%3==0;case e.QRMaskPattern.PATTERN011:return(t+n)%3==0;case e.QRMaskPattern.PATTERN100:return(Math.floor(t/2)+Math.floor(n/3))%2==0;case e.QRMaskPattern.PATTERN101:return t*n%2+t*n%3==0;case e.QRMaskPattern.PATTERN110:return(t*n%2+t*n%3)%2==0;case e.QRMaskPattern.PATTERN111:return(t*n%3+(t+n)%2)%2==0;default:throw new Error("bad maskPattern:"+r)}},getErrorCorrectPolynomial:function(r){for(var t=new o.default([1],0),n=0;n<r;n++)t=t.multiply(new o.default([1,i.QRMath.gexp(n)],0));return t},getLengthInBits:function(r,t){if(t>=1&&t<10)switch(r){case e.QRMode.MODE_NUMBER:return 10;case e.QRMode.MODE_ALPHA_NUM:return 9;case e.QRMode.MODE_8BIT_BYTE:case e.QRMode.MODE_KANJI:return 8;default:throw new Error("mode:"+r)}else if(t<27)switch(r){case e.QRMode.MODE_NUMBER:return 12;case e.QRMode.MODE_ALPHA_NUM:return 11;case e.QRMode.MODE_8BIT_BYTE:return 16;case e.QRMode.MODE_KANJI:return 10;default:throw new Error("mode:"+r)}else{if(!(t<41))throw new Error("type:"+t);switch(r){case e.QRMode.MODE_NUMBER:return 14;case e.QRMode.MODE_ALPHA_NUM:return 13;case e.QRMode.MODE_8BIT_BYTE:return 16;case e.QRMode.MODE_KANJI:return 12;default:throw new Error("mode:"+r)}}},getLostPoint:function(r){for(var t=r.getModuleCount(),n=0,e=0;e<t;e++)for(var i=0;i<t;i++){for(var o=0,s=r.isDark(e,i),f=-1;f<=1;f++)if(!(e+f<0||t<=e+f))for(var u=-1;u<=1;u++)i+u<0||t<=i+u||0===f&&0===u||s===r.isDark(e+f,i+u)&&o++;o>5&&(n+=3+o-5)}for(e=0;e<t-1;e++)for(i=0;i<t-1;i++){var a=0;r.isDark(e,i)&&a++,r.isDark(e+1,i)&&a++,r.isDark(e,i+1)&&a++,r.isDark(e+1,i+1)&&a++,0!==a&&4!==a||(n+=3)}for(e=0;e<t;e++)for(i=0;i<t-6;i++)r.isDark(e,i)&&!r.isDark(e,i+1)&&r.isDark(e,i+2)&&r.isDark(e,i+3)&&r.isDark(e,i+4)&&!r.isDark(e,i+5)&&r.isDark(e,i+6)&&(n+=40);for(i=0;i<t;i++)for(e=0;e<t-6;e++)r.isDark(e,i)&&!r.isDark(e+1,i)&&r.isDark(e+2,i)&&r.isDark(e+3,i)&&r.isDark(e+4,i)&&!r.isDark(e+5,i)&&r.isDark(e+6,i)&&(n+=40);var h=0;for(i=0;i<t;i++)for(e=0;e<t;e++)r.isDark(e,i)&&h++;return n+Math.abs(100*h/t/t-50)/5*10}}},function(r,t,n){Object.defineProperty(t,"__esModule",{value:!0});var e=n(0),i=function(){function r(r){this.mode=e.QRMode.MODE_8BIT_BYTE,this.data=r}return r.prototype.getLength=function(){return this.data.length},r.prototype.write=function(r){for(var t=0;t<this.data.length;t++)r.put(this.data.charCodeAt(t),8)},r}();t.default=i},function(r,t){Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function r(){this.buffer=[],this.length=0}return r.prototype.get=function(r){var t=Math.floor(r/8);return 1==(this.buffer[t]>>>7-r%8&1)},r.prototype.put=function(r,t){for(var n=0;n<t;n++)this.putBit(1==(r>>>t-n-1&1))},r.prototype.getLengthInBits=function(){return this.length},r.prototype.putBit=function(r){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),r&&(this.buffer[t]|=128>>>this.length%8),this.length++},r}();t.default=n},function(r,t,n){Object.defineProperty(t,"__esModule",{value:!0});var e=n(0),i=function(){function r(r,t){this.totalCount=r,this.dataCount=t}return r.getRSBlocks=function(t,n){var e=this.getRsBlockTable(t,n);if(void 0===e)throw new Error("bad rs block @ typeNumber:"+t+"/errorCorrectLevel:"+n);for(var i=e.length/3,o=[],s=0;s<i;s++)for(var f=e[3*s],u=e[3*s+1],a=e[3*s+2],h=0;h<f;h++)o.push(new r(u,a));return o},r.getRsBlockTable=function(r,t){switch(t){case e.QRErrorCorrectLevel.L:return this.RS_BLOCK_TABLE[4*(r-1)];case e.QRErrorCorrectLevel.M:return this.RS_BLOCK_TABLE[4*(r-1)+1];case e.QRErrorCorrectLevel.Q:return this.RS_BLOCK_TABLE[4*(r-1)+2];case e.QRErrorCorrectLevel.H:return this.RS_BLOCK_TABLE[4*(r-1)+3];default:return}},r.RS_BLOCK_TABLE=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],r}();t.default=i}])}));const o=class{constructor(t){r(this,t),this.link="https://example.com",this.size=258}componentDidLoad(){this.setShadowCanvas("qrcode",{width:this.size,height:this.size,correctLevel:i.QRErrorCorrectLevel.H,background:"#ffffff",foreground:"#000000",text:this.link})}setShadowCanvas(r,t){const n=this.hostElement.shadowRoot.getElementById(r);n.innerHTML="",n.appendChild(i.QRCode.createCanvas(t))}render(){return t("div",{id:"qrcode"})}get hostElement(){return n(this)}};o.style="";export{o as tttx_qrcode_1_9_65}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,c as t,h as o,H as i}from"./p-c2a82822.js";import{p as n,d as a}from"./p-55799798.js";import"./p-112455b1.js";function r(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=""}function l(e){var t,o;const i=e.target,n=i.getAttribute("data-formkey"),a=Array.from(i.parentElement.parentElement.parentElement.querySelectorAll(`[data-formkey=${n}]`));if(4===a.length){const n=a.find((e=>e.name.endsWith("starttime"))),l=a.find((e=>e.name.endsWith("endtime"))),s=a.find((e=>e.name.endsWith("startdate"))),d=a.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())?(r(l,!0,"End time cannot be the same or before the start time"),i.name.endsWith("starttime")&&this.validityCheckWrapper(e)):(l.setCustomValidity(""),r(l,!1,null),this.validityCheckWrapper(e))}}function s(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(""),r(e,!1,null)}}function d(e,t=!1){var o,i,n,a;const d=e.target;if(!d.value&&t)return;const c=d.getAttribute("data-compare-with"),u=d.parentElement.parentElement.parentElement.querySelector(`[name=${c}]`);(null===(o=d.valueAsDate)||void 0===o?void 0:o.valueOf())<(null===(i=u.valueAsDate)||void 0===i?void 0:i.valueOf())?(d.setCustomValidity(d.getAttribute("data-compare")),r(d,!0,d.getAttribute("data-compare"))):(null===(n=d.valueAsDate)||void 0===n?void 0:n.valueOf())===(null===(a=u.valueAsDate)||void 0===a?void 0:a.valueOf())?(d.setCustomValidity(""),this.validityCheckWrapper(e),l.bind(this)(e)):(s.bind(this)(e),this.validityCheckWrapper(e))}function c(e){const t=e.target,o=t.getAttribute("data-compare-to"),i=t.parentElement.parentElement.parentElement.querySelector(`[name=${o}]`);d.bind(this)({target:i},!0),this.validityCheckWrapper(e)}const u=class{constructor(o){e(this,o),this.dataSubmitted=t(this,"dataSubmitted",7),this.dataChanged=t(this,"dataChanged",7),this.searchTermChanged=t(this,"searchTermChanged",7),this.selectToggleOpen=t(this,"selectToggleOpen",7),this.template=document.createElement("template"),this.formschema=void 0,this.data=void 0}onFormSchemaChange(e){return this._formSchema="string"==typeof e?JSON.parse(e):e,this._formSchema}onDataChange(e){return this._data="string"==typeof e?JSON.parse(e):e,this._data}fieldChanged(e){const t=e.target;let o=t.value;"checkbox"===t.type&&(o=t.checked?"on":"off"),this.dataChanged.emit({name:t.name,value:o})}async submit(){this.submitButton.click()}async showLoadingSpinner(e,t){this.fieldset.querySelector(`[name=overlay-${e}]`).isLoading=t}async setSelectedItem(e,t){const o=this.fieldset.querySelector(`[name=overlay-${e}]`);await o.setSelectedItem(t)}async setSelectOptions(e,t,o){const i=this.fieldset.querySelector(`[name=${e}]`),n=this.fieldset.querySelector(`[name=overlay-${e}]`),a=new DocumentFragment;for(const e of t){const t=document.createElement("option");t.innerText=e.label,t.value=e.value,e.disabled&&(t.disabled=!0),a.appendChild(t)}i.replaceChildren(a),n.optionsData=t,o||await n.setSelectedItem(t.length>0?t[0].value:void 0)}async isValid(){const e=this.form.checkValidity();return!(this.fieldset.querySelectorAll("[custom-validation-set=true]").length||!e)}doSubmit(e){if(e.preventDefault(),this.fieldset.querySelectorAll("[custom-validation-set=true]").length)return;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,a,r,l;const s=document.createElement("select");s.setAttribute("name",e),null===(o=t.options)||void 0===o||o.forEach((e=>{this.appendOption(s,e)})),(null===(i=this._data)||void 0===i?void 0:i[e])&&s.classList.remove("placeholder");const d=document.createElement("tttx-select-box_1_9_64");d.optionsData=null===(n=t.options)||void 0===n?void 0:n.filter((e=>!e.placeholder)),d.placeholder=null===(r=null===(a=t.options)||void 0===a?void 0:a.filter((e=>e.placeholder))[0])||void 0===r?void 0:r.label,d.inline=!1,d.searchEnabled=!0,d.useExternalFiltering=t.useExternalFiltering||!1,d.style.width="100%",d.style.marginTop="6px",d.isLoading=t.isLoading||!1,d.readOnly=null!==(l=t.readOnly)&&void 0!==l&&l,d.setAttribute("name","overlay-"+e);const c=document.createDocumentFragment();return c.append(d),s.style.display="none",d.addEventListener("selectItemEvent",this.selectItemEventCallback.bind(s)),d.addEventListener("multiselectSearchUpdated",(t=>this.searchTermChanged.emit({name:e,value:t.detail,type:"SearchTermChanged"}))),d.addEventListener("toggleOpen",(t=>this.selectToggleOpen.emit({name:e,value:t.detail,type:"ToggleOpen"}))),{input:s,overlay:c}}selectItemEventCallback(e){const t=this;t.value=e.detail.value,t.onblur({target:t}),t.onchange({target:t})}appendOption(e,t){const o=document.createElement("option");o.setAttribute("value",t.value),t.placeholder&&(o.setAttribute("disabled",t.disabled?"true":""),o.setAttribute("selected",""),o.setAttribute("hidden",""),e.classList.add("placeholder")),t.label&&(o.innerHTML=n.sanitize(t.label,a)),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),t.maskedValue&&(i.onfocus=()=>{i.value===t.maskedValue&&(i.value="")},i.addEventListener("blur",(()=>{""===i.value.trim()?i.value=t.maskedValue:t.value=i.value}))),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),"none"===t.resize&&i.classList.add("resize-none"),i}createStartEndDateComponent(e,t){var o,i,n,a;const r=document.createElement("input"),l=document.createElement("input");let s,d;r.type=l.type="date",r.name=`${e}-startdate`,l.name=`${e}-enddate`,r.setAttribute("data-formkey",e),l.setAttribute("data-formkey",e),t.readonly&&(r.readOnly=!0,l.readOnly=!0),this.applyValidation(r,Object.assign({required:{message:"Please enter a start date"},dateCompare:{to:l.name}},null===(o=t.validation)||void 0===o?void 0:o.startDate)),this.applyValidation(l,Object.assign({required:{message:"Please enter an end date"},dateCompare:{with:r.name,message:"End date cannot be before the start date"}},null===(i=t.validation)||void 0===i?void 0:i.endDate)),t.includeTime&&(s=document.createElement("input"),d=document.createElement("input"),s.type=d.type="time",s.name=`${e}-starttime`,d.name=`${e}-endtime`,s.setAttribute("data-formkey",e),d.setAttribute("data-formkey",e),t.readonly&&(s.readOnly=!0,d.readOnly=!0),this.applyValidation(s,Object.assign({required:{message:"Please enter a start time"}},null===(n=t.validation)||void 0===n?void 0:n.startTime)),this.applyValidation(d,Object.assign({required:{message:"Please enter an end time"}},null===(a=t.validation)||void 0===a?void 0:a.endTime)));const c=document.createElement("label");c.innerText="Start date";const u=document.createElement("label");u.innerText="End date";const p=document.createElement("div"),h=document.createElement("div");return p.className=h.className="outer-container inputBlock",c.className=u.className="flex-label",p.append(r),s&&p.append(s),c.append(p),c.append(this.createErrorBubble()),h.append(l),d&&h.append(d),u.append(h),u.append(this.createErrorBubble()),{start:c,end:u}}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=null,i){var n;const a=document.createElement("div");let r="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&&(r+=" radioBlock"),a.className=r,e.readonly&&l.classList.add("readonly"),"checkbox"===e.type?this.appendCheckboxInput(e,t,l):(o&&a.appendChild(o),a.appendChild(t)),"checkbox"!==e.type&&l.appendChild(a),l.appendChild(i),l}createRadio(e,t){var o,i;const n=document.createDocumentFragment();for(const a of t.options){const r=document.createElement("input");r.type="radio",r.name=e,r.value=a.value,(null===(o=null==t?void 0:t.validation)||void 0===o?void 0:o.required)&&(r.setAttribute("required","required"),r.setAttribute("data-required",null!==(i=t.validation.required.message)&&void 0!==i?i:""));const l=document.createElement("span");l.innerText=a.label,n.appendChild(r),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 a=this.createErrorBubble(),l=this.createLabel(o,n.input,n.overlay,a);if(null===(e=o.validation)||void 0===e?void 0:e.invalid){const e=o.validation.invalid.message;n.input.setCustomValidity(e),r(n.input,!0,e)}this.template.content.append(l),o.disabled&&this.toggleFormField(n.input,!0)}}componentDidRender(){if(!this._formSchema)return;const e=this.template.content,t=this._formSchema.properties,o=Object.keys(t);for(const i of o)this.applyValidationFunctionsToFormElement(e,i,t);this._data&&Object.keys(this._data).length>0&&this.populateFormWithExistingData(e),this.fieldset.replaceChildren(e)}applyValidationFunctionsToFormElement(e,t,o){const i=e.querySelectorAll(`[name^=${t}]`);for(const e of i)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"===o[t].form.type&&e.classList.contains("placeholder")&&e.addEventListener("change",this.selectRemovePlaceholderCallback.bind(e)),"startenddate"===o[t].form.type&&e.hasAttribute("data-compare-with")&&(e.oninvalid=d.bind(this),e.onblur=d.bind(this)),"startenddate"===o[t].form.type&&"time"===e.type&&(e.oninvalid=l.bind(this),e.onblur=l.bind(this)),"startenddate"===o[t].form.type&&e.hasAttribute("data-compare-to")&&(e.oninvalid=c.bind(this),e.onblur=c.bind(this))}populateFormWithExistingData(e){var t;const o=Object.keys(this._data);for(const i of o){const o=e.querySelectorAll(`[name=${i}]`);for(const n of o)switch(n.type){case"checkbox":"on"===this._data[i]&&(n.checked=!0);break;case"radio":n.value===this._data[i]&&(n.checked=!0);break;case"select":case"select-one":e.querySelector(`[name=overlay-${i}]`).selectedValue=this._data[i],n.value=this._data[i];break;case"date":n.value=null===(t=this._data[i])||void 0===t?void 0:t.split("T")[0];break;default:n.value=this._data[i]}}}selectRemovePlaceholderCallback(){this.classList.remove("placeholder")}validityCheckWrapper(e){const{target:t,hasError:o,errorMessage:i}=function(e){var t,o,i,n;e.preventDefault&&e.preventDefault();const a=e.target;let r=!0,l="";switch(a.hasAttribute("custom-validation-set")||(a.value.length&&!a.value.replace(/\s/g,"").length?(l="This field cannot be left blank",a.setCustomValidity(l)):a.setCustomValidity&&a.setCustomValidity("")),!0){case a.validity.valueMissing:l=null!==(t=a.dataset.required)&&void 0!==t?t:"This field is required";break;case a.validity.patternMismatch:l=null!==(o=a.dataset.pattern)&&void 0!==o?o:"Incorrect format";break;case a.validity.badInput:l=null!==(i=a.dataset.badinput)&&void 0!==i?i:"Wrong input type";break;case a.validity.rangeOverflow||a.validity.rangeUnderflow:l=null!==(n=a.dataset.range)&&void 0!==n?n:"Invalid value";break;case a.validity.customError:l=a.validationMessage;break;default:r=!1}return{target:a,hasError:r,errorMessage:l}}(e);r(t,o,i)}assignFieldsetReference(e){this.fieldset=e}assignButtonReference(e){this.submitButton=e}async setValidationFor(e,t){const o=this.fieldset.querySelector(`[name=${e}]`);o.disabled||(o.setCustomValidity(t),o.setAttribute("custom-validation-set","true"),r(o,!0,t))}async clearValidationFor(e){const t=this.fieldset.querySelector(`[name=${e}]`);t.setCustomValidity(""),t.removeAttribute("custom-validation-set"),r(t,!1,"")}toggleFormField(e,t){e.disabled=t;let o=e.parentElement;if(o){do{"LABEL"!==o.nodeName&&(o=o.parentElement)}while(o&&"LABEL"!==o.nodeName);o&&(o.style.display=t?"none":"block")}}async disableFormField(e){const t=this.fieldset.querySelector(`[name=${e}]`);t.hasAttribute("custom-validation-set")||this.toggleFormField(t,!0)}async enableFormField(e){const t=this.fieldset.querySelector(`[name=${e}]`);this.toggleFormField(t,!1)}async setInputFieldValue(e,t){this.fieldset.querySelector(`[name=${e}]`).value=t}async setFieldReadOnlyMode(e,t){const o=this.fieldset.querySelector(`[name=${e}]`);o&&"SELECT"===o.nodeName?(this.fieldset.querySelector(`[name=overlay-${e}]`).readOnly=t,o.disabled=t):o.readOnly=t,t&&await this.clearValidationFor(e)}render(){return o(i,null,o("form",{onSubmit:this.doSubmit.bind(this),ref:e=>this.form=e},o("fieldset",{ref:this.assignFieldsetReference.bind(this)}),o("input",{type:"submit",ref:this.assignButtonReference.bind(this),style:{display:"none"}})))}static get watchers(){return{formschema:["onFormSchemaChange"],data:["onDataChange"]}}};u.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;margin-top:4px;padding:0;padding-left:16px;padding-right:16px;}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 textarea.resize-none{resize:none}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}.blackout{background:#363636;border:1px solid #363636;color:white}.blackout:active{background:#212121;border:1px solid #212121}.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}.blackout:hover{background:#212121;border:1px solid #212121}}: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}input[type=radio]~span{transform:translateY(-17%);display:inline-block;margin-left:5px}';export{u as tttx_form_1_9_64}
|
|
1
|
+
import{r as e,c as t,h as o,H as i}from"./p-c2a82822.js";import{p as n,d as a}from"./p-55799798.js";import"./p-112455b1.js";function r(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=""}function l(e){var t,o;const i=e.target,n=i.getAttribute("data-formkey"),a=Array.from(i.parentElement.parentElement.parentElement.querySelectorAll(`[data-formkey=${n}]`));if(4===a.length){const n=a.find((e=>e.name.endsWith("starttime"))),l=a.find((e=>e.name.endsWith("endtime"))),s=a.find((e=>e.name.endsWith("startdate"))),d=a.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())?(r(l,!0,"End time cannot be the same or before the start time"),i.name.endsWith("starttime")&&this.validityCheckWrapper(e)):(l.setCustomValidity(""),r(l,!1,null),this.validityCheckWrapper(e))}}function s(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(""),r(e,!1,null)}}function d(e,t=!1){var o,i,n,a;const d=e.target;if(!d.value&&t)return;const c=d.getAttribute("data-compare-with"),u=d.parentElement.parentElement.parentElement.querySelector(`[name=${c}]`);(null===(o=d.valueAsDate)||void 0===o?void 0:o.valueOf())<(null===(i=u.valueAsDate)||void 0===i?void 0:i.valueOf())?(d.setCustomValidity(d.getAttribute("data-compare")),r(d,!0,d.getAttribute("data-compare"))):(null===(n=d.valueAsDate)||void 0===n?void 0:n.valueOf())===(null===(a=u.valueAsDate)||void 0===a?void 0:a.valueOf())?(d.setCustomValidity(""),this.validityCheckWrapper(e),l.bind(this)(e)):(s.bind(this)(e),this.validityCheckWrapper(e))}function c(e){const t=e.target,o=t.getAttribute("data-compare-to"),i=t.parentElement.parentElement.parentElement.querySelector(`[name=${o}]`);d.bind(this)({target:i},!0),this.validityCheckWrapper(e)}const u=class{constructor(o){e(this,o),this.dataSubmitted=t(this,"dataSubmitted",7),this.dataChanged=t(this,"dataChanged",7),this.searchTermChanged=t(this,"searchTermChanged",7),this.selectToggleOpen=t(this,"selectToggleOpen",7),this.template=document.createElement("template"),this.formschema=void 0,this.data=void 0}onFormSchemaChange(e){return this._formSchema="string"==typeof e?JSON.parse(e):e,this._formSchema}onDataChange(e){return this._data="string"==typeof e?JSON.parse(e):e,this._data}fieldChanged(e){const t=e.target;let o=t.value;"checkbox"===t.type&&(o=t.checked?"on":"off"),this.dataChanged.emit({name:t.name,value:o})}async submit(){this.submitButton.click()}async showLoadingSpinner(e,t){this.fieldset.querySelector(`[name=overlay-${e}]`).isLoading=t}async setSelectedItem(e,t){const o=this.fieldset.querySelector(`[name=overlay-${e}]`);await o.setSelectedItem(t)}async setSelectOptions(e,t,o){const i=this.fieldset.querySelector(`[name=${e}]`),n=this.fieldset.querySelector(`[name=overlay-${e}]`),a=new DocumentFragment;for(const e of t){const t=document.createElement("option");t.innerText=e.label,t.value=e.value,e.disabled&&(t.disabled=!0),a.appendChild(t)}i.replaceChildren(a),n.optionsData=t,o||await n.setSelectedItem(t.length>0?t[0].value:void 0)}async isValid(){const e=this.form.checkValidity();return!(this.fieldset.querySelectorAll("[custom-validation-set=true]").length||!e)}doSubmit(e){if(e.preventDefault(),this.fieldset.querySelectorAll("[custom-validation-set=true]").length)return;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,a,r,l;const s=document.createElement("select");s.setAttribute("name",e),null===(o=t.options)||void 0===o||o.forEach((e=>{this.appendOption(s,e)})),(null===(i=this._data)||void 0===i?void 0:i[e])&&s.classList.remove("placeholder");const d=document.createElement("tttx-select-box_1_9_65");d.optionsData=null===(n=t.options)||void 0===n?void 0:n.filter((e=>!e.placeholder)),d.placeholder=null===(r=null===(a=t.options)||void 0===a?void 0:a.filter((e=>e.placeholder))[0])||void 0===r?void 0:r.label,d.inline=!1,d.searchEnabled=!0,d.useExternalFiltering=t.useExternalFiltering||!1,d.style.width="100%",d.style.marginTop="6px",d.isLoading=t.isLoading||!1,d.readOnly=null!==(l=t.readOnly)&&void 0!==l&&l,d.setAttribute("name","overlay-"+e);const c=document.createDocumentFragment();return c.append(d),s.style.display="none",d.addEventListener("selectItemEvent",this.selectItemEventCallback.bind(s)),d.addEventListener("multiselectSearchUpdated",(t=>this.searchTermChanged.emit({name:e,value:t.detail,type:"SearchTermChanged"}))),d.addEventListener("toggleOpen",(t=>this.selectToggleOpen.emit({name:e,value:t.detail,type:"ToggleOpen"}))),{input:s,overlay:c}}selectItemEventCallback(e){const t=this;t.value=e.detail.value,t.onblur({target:t}),t.onchange({target:t})}appendOption(e,t){const o=document.createElement("option");o.setAttribute("value",t.value),t.placeholder&&(o.setAttribute("disabled",t.disabled?"true":""),o.setAttribute("selected",""),o.setAttribute("hidden",""),e.classList.add("placeholder")),t.label&&(o.innerHTML=n.sanitize(t.label,a)),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),t.maskedValue&&(i.onfocus=()=>{i.value===t.maskedValue&&(i.value="")},i.addEventListener("blur",(()=>{""===i.value.trim()?i.value=t.maskedValue:t.value=i.value}))),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),"none"===t.resize&&i.classList.add("resize-none"),i}createStartEndDateComponent(e,t){var o,i,n,a;const r=document.createElement("input"),l=document.createElement("input");let s,d;r.type=l.type="date",r.name=`${e}-startdate`,l.name=`${e}-enddate`,r.setAttribute("data-formkey",e),l.setAttribute("data-formkey",e),t.readonly&&(r.readOnly=!0,l.readOnly=!0),this.applyValidation(r,Object.assign({required:{message:"Please enter a start date"},dateCompare:{to:l.name}},null===(o=t.validation)||void 0===o?void 0:o.startDate)),this.applyValidation(l,Object.assign({required:{message:"Please enter an end date"},dateCompare:{with:r.name,message:"End date cannot be before the start date"}},null===(i=t.validation)||void 0===i?void 0:i.endDate)),t.includeTime&&(s=document.createElement("input"),d=document.createElement("input"),s.type=d.type="time",s.name=`${e}-starttime`,d.name=`${e}-endtime`,s.setAttribute("data-formkey",e),d.setAttribute("data-formkey",e),t.readonly&&(s.readOnly=!0,d.readOnly=!0),this.applyValidation(s,Object.assign({required:{message:"Please enter a start time"}},null===(n=t.validation)||void 0===n?void 0:n.startTime)),this.applyValidation(d,Object.assign({required:{message:"Please enter an end time"}},null===(a=t.validation)||void 0===a?void 0:a.endTime)));const c=document.createElement("label");c.innerText="Start date";const u=document.createElement("label");u.innerText="End date";const p=document.createElement("div"),h=document.createElement("div");return p.className=h.className="outer-container inputBlock",c.className=u.className="flex-label",p.append(r),s&&p.append(s),c.append(p),c.append(this.createErrorBubble()),h.append(l),d&&h.append(d),u.append(h),u.append(this.createErrorBubble()),{start:c,end:u}}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=null,i){var n;const a=document.createElement("div");let r="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&&(r+=" radioBlock"),a.className=r,e.readonly&&l.classList.add("readonly"),"checkbox"===e.type?this.appendCheckboxInput(e,t,l):(o&&a.appendChild(o),a.appendChild(t)),"checkbox"!==e.type&&l.appendChild(a),l.appendChild(i),l}createRadio(e,t){var o,i;const n=document.createDocumentFragment();for(const a of t.options){const r=document.createElement("input");r.type="radio",r.name=e,r.value=a.value,(null===(o=null==t?void 0:t.validation)||void 0===o?void 0:o.required)&&(r.setAttribute("required","required"),r.setAttribute("data-required",null!==(i=t.validation.required.message)&&void 0!==i?i:""));const l=document.createElement("span");l.innerText=a.label,n.appendChild(r),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 a=this.createErrorBubble(),l=this.createLabel(o,n.input,n.overlay,a);if(null===(e=o.validation)||void 0===e?void 0:e.invalid){const e=o.validation.invalid.message;n.input.setCustomValidity(e),r(n.input,!0,e)}this.template.content.append(l),o.disabled&&this.toggleFormField(n.input,!0)}}componentDidRender(){if(!this._formSchema)return;const e=this.template.content,t=this._formSchema.properties,o=Object.keys(t);for(const i of o)this.applyValidationFunctionsToFormElement(e,i,t);this._data&&Object.keys(this._data).length>0&&this.populateFormWithExistingData(e),this.fieldset.replaceChildren(e)}applyValidationFunctionsToFormElement(e,t,o){const i=e.querySelectorAll(`[name^=${t}]`);for(const e of i)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"===o[t].form.type&&e.classList.contains("placeholder")&&e.addEventListener("change",this.selectRemovePlaceholderCallback.bind(e)),"startenddate"===o[t].form.type&&e.hasAttribute("data-compare-with")&&(e.oninvalid=d.bind(this),e.onblur=d.bind(this)),"startenddate"===o[t].form.type&&"time"===e.type&&(e.oninvalid=l.bind(this),e.onblur=l.bind(this)),"startenddate"===o[t].form.type&&e.hasAttribute("data-compare-to")&&(e.oninvalid=c.bind(this),e.onblur=c.bind(this))}populateFormWithExistingData(e){var t;const o=Object.keys(this._data);for(const i of o){const o=e.querySelectorAll(`[name=${i}]`);for(const n of o)switch(n.type){case"checkbox":"on"===this._data[i]&&(n.checked=!0);break;case"radio":n.value===this._data[i]&&(n.checked=!0);break;case"select":case"select-one":e.querySelector(`[name=overlay-${i}]`).selectedValue=this._data[i],n.value=this._data[i];break;case"date":n.value=null===(t=this._data[i])||void 0===t?void 0:t.split("T")[0];break;default:n.value=this._data[i]}}}selectRemovePlaceholderCallback(){this.classList.remove("placeholder")}validityCheckWrapper(e){const{target:t,hasError:o,errorMessage:i}=function(e){var t,o,i,n;e.preventDefault&&e.preventDefault();const a=e.target;let r=!0,l="";switch(a.hasAttribute("custom-validation-set")||(a.value.length&&!a.value.replace(/\s/g,"").length?(l="This field cannot be left blank",a.setCustomValidity(l)):a.setCustomValidity&&a.setCustomValidity("")),!0){case a.validity.valueMissing:l=null!==(t=a.dataset.required)&&void 0!==t?t:"This field is required";break;case a.validity.patternMismatch:l=null!==(o=a.dataset.pattern)&&void 0!==o?o:"Incorrect format";break;case a.validity.badInput:l=null!==(i=a.dataset.badinput)&&void 0!==i?i:"Wrong input type";break;case a.validity.rangeOverflow||a.validity.rangeUnderflow:l=null!==(n=a.dataset.range)&&void 0!==n?n:"Invalid value";break;case a.validity.customError:l=a.validationMessage;break;default:r=!1}return{target:a,hasError:r,errorMessage:l}}(e);r(t,o,i)}assignFieldsetReference(e){this.fieldset=e}assignButtonReference(e){this.submitButton=e}async setValidationFor(e,t){const o=this.fieldset.querySelector(`[name=${e}]`);o.disabled||(o.setCustomValidity(t),o.setAttribute("custom-validation-set","true"),r(o,!0,t))}async clearValidationFor(e){const t=this.fieldset.querySelector(`[name=${e}]`);t.setCustomValidity(""),t.removeAttribute("custom-validation-set"),r(t,!1,"")}toggleFormField(e,t){e.disabled=t;let o=e.parentElement;if(o){do{"LABEL"!==o.nodeName&&(o=o.parentElement)}while(o&&"LABEL"!==o.nodeName);o&&(o.style.display=t?"none":"block")}}async disableFormField(e){const t=this.fieldset.querySelector(`[name=${e}]`);t.hasAttribute("custom-validation-set")||this.toggleFormField(t,!0)}async enableFormField(e){const t=this.fieldset.querySelector(`[name=${e}]`);this.toggleFormField(t,!1)}async setInputFieldValue(e,t){this.fieldset.querySelector(`[name=${e}]`).value=t}async setFieldReadOnlyMode(e,t){const o=this.fieldset.querySelector(`[name=${e}]`);o&&"SELECT"===o.nodeName?(this.fieldset.querySelector(`[name=overlay-${e}]`).readOnly=t,o.disabled=t):o.readOnly=t,t&&await this.clearValidationFor(e)}render(){return o(i,null,o("form",{onSubmit:this.doSubmit.bind(this),ref:e=>this.form=e},o("fieldset",{ref:this.assignFieldsetReference.bind(this)}),o("input",{type:"submit",ref:this.assignButtonReference.bind(this),style:{display:"none"}})))}static get watchers(){return{formschema:["onFormSchemaChange"],data:["onDataChange"]}}};u.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;margin-top:4px;padding:0;padding-left:16px;padding-right:16px;}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 textarea.resize-none{resize:none}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}.blackout{background:#363636;border:1px solid #363636;color:white}.blackout:active{background:#212121;border:1px solid #212121}.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}.blackout:hover{background:#212121;border:1px solid #212121}}: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}input[type=radio]~span{transform:translateY(-17%);display:inline-block;margin-left:5px}';export{u as tttx_form_1_9_65}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as o,h as e}from"./p-c2a82822.js";const i=class{constructor(e){t(this,e),this.toggleSwitchEvent=o(this,"toggleSwitchEvent",3),this.initialstate=void 0,this._state=void 0}componentWillLoad(){this._state=!0===this.initialstate||"true"===this.initialstate}onChange(t){this.toggleSwitchEvent.emit({checked:t.target.checked})}render(){let t;return t=e("input",this._state?{type:"checkbox",checked:!0,onChange:this.onChange.bind(this)}:{type:"checkbox",onChange:this.onChange.bind(this)}),e("div",{id:"toggle-switch"},t,e("div",{id:"toggle-body"}))}};i.style='.material-symbols-rounded{font-variation-settings:"FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24}:host{display:inline-block}#toggle-switch{width:50px;height:30px;border-radius:30px;position:relative;box-sizing:border-box}#toggle-switch input{cursor:pointer;width:50px;height:30px;padding:0;margin:0;top:0;left:0;border:none;outline:none;opacity:0;position:absolute}#toggle-switch #toggle-body{width:50px;height:30px;border-radius:28px;position:relative;top:0;left:0;pointer-events:none;background:#9e9e9e}#toggle-switch #toggle-body::after{font-family:"Material Symbols Rounded", sans-serif;content:"\\e5ca";position:absolute;width:26px;height:26px;left:2px;top:2px;border-radius:26px;background:white;transition:all 0.1s;font-size:22px;color:#FFFFFF;justify-content:center;display:inline-flex}#toggle-switch input:checked~#toggle-body::after{color:#a2bb31;left:22px}#toggle-switch input:checked~#toggle-body{background:#a2bb31}';export{i as
|
|
1
|
+
import{r as t,c as o,h as e}from"./p-c2a82822.js";const i=class{constructor(e){t(this,e),this.toggleSwitchEvent=o(this,"toggleSwitchEvent",3),this.initialstate=void 0,this._state=void 0}componentWillLoad(){this._state=!0===this.initialstate||"true"===this.initialstate}onChange(t){this.toggleSwitchEvent.emit({checked:t.target.checked})}render(){let t;return t=e("input",this._state?{type:"checkbox",checked:!0,onChange:this.onChange.bind(this)}:{type:"checkbox",onChange:this.onChange.bind(this)}),e("div",{id:"toggle-switch"},t,e("div",{id:"toggle-body"}))}};i.style='.material-symbols-rounded{font-variation-settings:"FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24}:host{display:inline-block}#toggle-switch{width:50px;height:30px;border-radius:30px;position:relative;box-sizing:border-box}#toggle-switch input{cursor:pointer;width:50px;height:30px;padding:0;margin:0;top:0;left:0;border:none;outline:none;opacity:0;position:absolute}#toggle-switch #toggle-body{width:50px;height:30px;border-radius:28px;position:relative;top:0;left:0;pointer-events:none;background:#9e9e9e}#toggle-switch #toggle-body::after{font-family:"Material Symbols Rounded", sans-serif;content:"\\e5ca";position:absolute;width:26px;height:26px;left:2px;top:2px;border-radius:26px;background:white;transition:all 0.1s;font-size:22px;color:#FFFFFF;justify-content:center;display:inline-flex}#toggle-switch input:checked~#toggle-body::after{color:#a2bb31;left:22px}#toggle-switch input:checked~#toggle-body{background:#a2bb31}';export{i as tttx_toggle_1_9_65}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as i,H as e}from"./p-c2a82822.js";const o=class{constructor(i){t(this,i),this.cardTitle=void 0,this.leftData=void 0,this.rightData=void 0,this.rightSubtext=void 0,this.iconStyle=void 0,this.cardType=void 0,this.chartConfig=void 0,this._chartConfig=void 0,this.chartRender=void 0}chartConfigChanged(t){this._chartConfig=JSON.parse(t),this.chartRender=!0}componentDidLoad(){this.chartConfig&&(this._chartConfig=JSON.parse(this.chartConfig),this.chartRender=!0)}renderIcon(t){switch(t){case"up":return i("tttx-
|
|
1
|
+
import{r as t,h as i,H as e}from"./p-c2a82822.js";const o=class{constructor(i){t(this,i),this.cardTitle=void 0,this.leftData=void 0,this.rightData=void 0,this.rightSubtext=void 0,this.iconStyle=void 0,this.cardType=void 0,this.chartConfig=void 0,this._chartConfig=void 0,this.chartRender=void 0}chartConfigChanged(t){this._chartConfig=JSON.parse(t),this.chartRender=!0}componentDidLoad(){this.chartConfig&&(this._chartConfig=JSON.parse(this.chartConfig),this.chartRender=!0)}renderIcon(t){switch(t){case"up":return i("tttx-icon_1_9_65",{size:24,icon:"arrow_circle_up",color:"green"});case"down":return i("tttx-icon_1_9_65",{size:24,icon:"arrow_circle_down",color:"darkred"});default:return null}}render(){return i(e,null,i("div",{class:"datacard"},this.cardTitle&&i("h2",{style:{position:"relative",top:"0",left:"0",height:"40px"}},this.cardTitle),this.chartRender&&"chart"===this.cardType&&i("tttx-graph_1_9_65",{style:{position:"relative",width:"100%",height:this.cardTitle?"calc(100% - 40px)":"100%"},class:"chart","chart-data":this._chartConfig.chartData,"chart-text":this._chartConfig.chartText,"chart-type":this._chartConfig.chartType}),i("div",{style:{position:"relative",width:"100%",height:this.cardTitle?"calc(100% - 40px)":"100%"}},i("div",{class:"lower"},i("div",{class:this.rightData&&"undefined"!==this.rightData?"left":"centered"},this.leftData),this.rightData&&"undefined"!==this.rightData&&i("div",{class:"right"},i("div",{class:"flex"},i("div",{class:"righticon"},this.renderIcon(this.iconStyle)),i("div",{class:"rightdata"},this.rightData)),i("div",{class:"subtext"},this.rightSubtext))))))}static get watchers(){return{chartConfig:["chartConfigChanged"]}}};o.style='.material-symbols-rounded{font-variation-settings:"FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24}:host{display:block;width:100%;height:100%}.datacard{font-family:"Roboto", Arial, Verdana, Tahoma, sans-serif;box-sizing:border-box;width:100%;height:100%;background-color:white;border-radius:4px;padding:0px 16px 16px 16px;margin-right:16px;margin-bottom:16px}.chart{width:100%;height:100%}h2{box-sizing:border-box;margin:0;padding:16px;width:100%;font-size:18px;font-weight:500;line-height:21.09px;text-align:left;height:40px}.lower{width:100%;display:flex}.right{box-sizing:border-box;flex-grow:1;border-left:1px solid #D5D5D5;padding-left:24px;font-size:24px;font-weight:500;line-height:28.13px;text-align:left}.flex{display:flex;justify-content:flex-start}.righticon{margin-top:1px;margin-right:4px;height:24px}.left{box-sizing:border-box;flex-grow:1;font-size:40px;font-weight:500;line-height:46.88px;text-align:right;margin-right:20px;padding-left:40px}.centered{box-sizing:border-box;flex-grow:1;font-size:40px;font-weight:500;line-height:46.88px;text-align:center;margin:0;padding-left:20px}.subtext{font-size:14px;font-weight:400;line-height:16.41px;text-align:left;color:#757575}';export{o as tttx_datacard_1_9_65}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as o,h as t,H as n}from"./p-c2a82822.js";const e=class{constructor(t){o(this,t)}render(){return t(n,null,t("div",{class:"tttx-checkbox-group"},t("slot",null)))}};e.style='.material-symbols-rounded{font-variation-settings:"FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24}.tttx-checkbox-group{display:flex;flex-direction:column}.tttx-checkbox-group__caption{color:#757575;font-family:"Roboto", sans-serif;font-size:14px;font-weight:normal;line-height:18.752px;margin-bottom:4px}.tttx-checkbox-group__heading{color:#212121;font-family:"Roboto", sans-serif;font-size:16px;font-weight:500;line-height:16.408px;margin-bottom:4px}';export{e as
|
|
1
|
+
import{r as o,h as t,H as n}from"./p-c2a82822.js";const e=class{constructor(t){o(this,t)}render(){return t(n,null,t("div",{class:"tttx-checkbox-group"},t("slot",null)))}};e.style='.material-symbols-rounded{font-variation-settings:"FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24}.tttx-checkbox-group{display:flex;flex-direction:column}.tttx-checkbox-group__caption{color:#757575;font-family:"Roboto", sans-serif;font-size:14px;font-weight:normal;line-height:18.752px;margin-bottom:4px}.tttx-checkbox-group__heading{color:#212121;font-family:"Roboto", sans-serif;font-size:16px;font-weight:500;line-height:16.408px;margin-bottom:4px}';export{e as tttx_checkbox_group_1_9_65}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as o,h as t,H as e,g as i}from"./p-c2a82822.js";const r=class{constructor(t){o(this,t),this.icon=void 0,this.color="grey",this.size=24}updateIconSize(o){this.element.style.setProperty("--icon-size",o)}componentWillRender(){this.updateIconSize(this.size+"px")}render(){return this.color.startsWith("#")?t(e,null,t("span",{class:"material-symbols-rounded",style:{color:this.color}},this.icon)):t(e,null,t("span",{class:`material-symbols-rounded ${this.color}`},this.icon))}get element(){return i(this)}};r.style='.material-symbols-rounded{font-variation-settings:"FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24}.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}:host{--icon-size:24;display:inline-block;cursor:default;user-select:none}.material-symbols-rounded{font-size:var(--icon-size)}.icon-size{width:var(--icon-size);height:var(--icon-size)}.tooltip{background:#ffffff;color:#343434;font-weight:bold;padding:8px 16px;font-size:13px;border-radius:4px;box-shadow:0 0 5px 1px rgba(0, 0, 0, 0.3);display:none}.tooltip[data-show]{display:block}.arrow,.arrow::before{position:absolute;width:8px;height:8px;background:inherit}.arrow{visibility:hidden}.arrow::before{visibility:visible;content:"";transform:rotate(45deg)}.tooltip[data-popper-placement^=top]>.arrow{bottom:-4px}.tooltip[data-popper-placement^=bottom]>.arrow{top:-4px}.tooltip[data-popper-placement^=left]>.arrow{right:-4px}.tooltip[data-popper-placement^=right]>.arrow{left:-4px}.red{color:#dc0000}.darkred{color:#A20000}.orange{color:#f59500}.blue{color:#1479c6}.green{color:#a2bb31}.gray{color:#757575}.black{color:#212121}.white{color:white}';export{r as
|
|
1
|
+
import{r as o,h as t,H as e,g as i}from"./p-c2a82822.js";const r=class{constructor(t){o(this,t),this.icon=void 0,this.color="grey",this.size=24}updateIconSize(o){this.element.style.setProperty("--icon-size",o)}componentWillRender(){this.updateIconSize(this.size+"px")}render(){return this.color.startsWith("#")?t(e,null,t("span",{class:"material-symbols-rounded",style:{color:this.color}},this.icon)):t(e,null,t("span",{class:`material-symbols-rounded ${this.color}`},this.icon))}get element(){return i(this)}};r.style='.material-symbols-rounded{font-variation-settings:"FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24}.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}:host{--icon-size:24;display:inline-block;cursor:default;user-select:none}.material-symbols-rounded{font-size:var(--icon-size)}.icon-size{width:var(--icon-size);height:var(--icon-size)}.tooltip{background:#ffffff;color:#343434;font-weight:bold;padding:8px 16px;font-size:13px;border-radius:4px;box-shadow:0 0 5px 1px rgba(0, 0, 0, 0.3);display:none}.tooltip[data-show]{display:block}.arrow,.arrow::before{position:absolute;width:8px;height:8px;background:inherit}.arrow{visibility:hidden}.arrow::before{visibility:visible;content:"";transform:rotate(45deg)}.tooltip[data-popper-placement^=top]>.arrow{bottom:-4px}.tooltip[data-popper-placement^=bottom]>.arrow{top:-4px}.tooltip[data-popper-placement^=left]>.arrow{right:-4px}.tooltip[data-popper-placement^=right]>.arrow{left:-4px}.red{color:#dc0000}.darkred{color:#A20000}.orange{color:#f59500}.blue{color:#1479c6}.green{color:#a2bb31}.gray{color:#757575}.black{color:#212121}.white{color:white}';export{r as tttx_icon_1_9_65}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as a,h as o,H as i}from"./p-c2a82822.js";import{p as s,d as n}from"./p-55799798.js";import"./p-112455b1.js";const e=class{constructor(o){t(this,o),this.tabClick=a(this,"tabClick",7),this.leftNavigation=a(this,"leftNavigation",7),this.rightNavigation=a(this,"rightNavigation",7),this.tabFocus=0,this.tabsName=void 0,this.navigation=void 0,this.wide=void 0,this.tabs=void 0,this._tabs=void 0}onDataChange(){this.tabs&&(this._tabs="string"==typeof this.tabs?JSON.parse(this.tabs):[...this.tabs],this.tabFocus=this._tabs.findIndex((t=>-1!==t.tabIndex)))}componentWillLoad(){this.onDataChange()}handleTabClick(t){this.tabClick.emit({tabId:t.id})}handleLeftNavigation(){this.leftNavigation.emit()}handleRightNavigation(){this.rightNavigation.emit()}handleKeyDown(t){const a=this.tabList.getAttribute("aria-orientation"),o=a&&"vertical"===a?"ArrowUp":"ArrowLeft",i=a&&"vertical"===a?"ArrowDown":"ArrowRight",s=t.target;(null==s?void 0:s.tagName.toLowerCase().startsWith("tttx-comments"))||(t.key===o||t.key===i?(this._tabs[this.tabFocus].tabIndex=-1,t.key===o?(this.tabFocus--,this.tabFocus<0&&(this.tabFocus=this._tabs.length-1)):t.key===i&&(this.tabFocus++,this.tabFocus>=this._tabs.length&&(this.tabFocus=0)),this._tabs[this.tabFocus].tabIndex=0,this.tabList.querySelectorAll('[role="tab"]')[this.tabFocus].focus(),this._tabs=[...this._tabs]):"Space"!==t.code&&"Enter"!==t.code||this.tabClick.emit({tabId:this._tabs[this.tabFocus].id}))}generateTab(t){var a,i;const s=null!==(a=t.tabName)&&void 0!==a?a:o("tttx-
|
|
1
|
+
import{r as t,c as a,h as o,H as i}from"./p-c2a82822.js";import{p as s,d as n}from"./p-55799798.js";import"./p-112455b1.js";const e=class{constructor(o){t(this,o),this.tabClick=a(this,"tabClick",7),this.leftNavigation=a(this,"leftNavigation",7),this.rightNavigation=a(this,"rightNavigation",7),this.tabFocus=0,this.tabsName=void 0,this.navigation=void 0,this.wide=void 0,this.tabs=void 0,this._tabs=void 0}onDataChange(){this.tabs&&(this._tabs="string"==typeof this.tabs?JSON.parse(this.tabs):[...this.tabs],this.tabFocus=this._tabs.findIndex((t=>-1!==t.tabIndex)))}componentWillLoad(){this.onDataChange()}handleTabClick(t){this.tabClick.emit({tabId:t.id})}handleLeftNavigation(){this.leftNavigation.emit()}handleRightNavigation(){this.rightNavigation.emit()}handleKeyDown(t){const a=this.tabList.getAttribute("aria-orientation"),o=a&&"vertical"===a?"ArrowUp":"ArrowLeft",i=a&&"vertical"===a?"ArrowDown":"ArrowRight",s=t.target;(null==s?void 0:s.tagName.toLowerCase().startsWith("tttx-comments"))||(t.key===o||t.key===i?(this._tabs[this.tabFocus].tabIndex=-1,t.key===o?(this.tabFocus--,this.tabFocus<0&&(this.tabFocus=this._tabs.length-1)):t.key===i&&(this.tabFocus++,this.tabFocus>=this._tabs.length&&(this.tabFocus=0)),this._tabs[this.tabFocus].tabIndex=0,this.tabList.querySelectorAll('[role="tab"]')[this.tabFocus].focus(),this._tabs=[...this._tabs]):"Space"!==t.code&&"Enter"!==t.code||this.tabClick.emit({tabId:this._tabs[this.tabFocus].id}))}generateTab(t){var a,i;const s=null!==(a=t.tabName)&&void 0!==a?a:o("tttx-icon_1_9_65",{style:{pointerEvents:"none",marginTop:"-2px"},icon:t.tabIcon,color:"gray",size:null!==(i=t.tabIconSize)&&void 0!==i?i:24});return o("a",{key:t.id,id:t.id,role:"tab","aria-controls":t.controls,tabindex:t.tabIndex,"aria-selected":t.selected,onClick:()=>{this.handleTabClick(t)}},s)}renderSelectedTab(t){return"string"==typeof t.pageContent?o("article",{key:t.id,id:t.controls,role:"tabpanel",tabindex:"0","aria-labelledby":t.id,"aria-expanded":t.selected,innerHTML:s.sanitize(t.pageContent,n),hidden:!t.selected}):o("article",{key:t.id,id:t.controls,role:"tabpanel",tabindex:"0","aria-labelledby":t.id,"aria-expanded":t.selected,hidden:!t.selected},t.pageContent)}render(){if(!this.tabs||0==this.tabs.length)return;const t=this._tabs.find((t=>t.selected));return o(i,null,o("div",null,o("div",{class:"tab-bar",role:"tablist","aria-label":this.tabsName,ref:t=>this.tabList=t},this.navigation&&o("div",{class:"left-navigation",tabindex:"0",onClick:this.handleLeftNavigation.bind(this)},o("tttx-icon_1_9_65",{icon:"navigate_before",color:"black"})),o("div",{class:"tabs-container"+(this.wide?" wide":"")},this._tabs.map(this.generateTab.bind(this))),this.navigation&&o("div",{class:"right-navigation",tabindex:"0",onClick:this.handleRightNavigation.bind(this)},o("tttx-icon_1_9_65",{icon:"navigate_next",color:"black"}))),t&&this.renderSelectedTab(t)))}static get watchers(){return{tabs:["onDataChange"]}}};e.style='.material-symbols-rounded.sc-tttx-tabs_1_9_65{font-variation-settings:"FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24}.sc-tttx-tabs_1_9_65-h{display:block}.tab-bar.sc-tttx-tabs_1_9_65{display:flex;height:52px}.tab-bar.sc-tttx-tabs_1_9_65>.left-navigation.sc-tttx-tabs_1_9_65,.tab-bar.sc-tttx-tabs_1_9_65>.right-navigation.sc-tttx-tabs_1_9_65{padding:14px 8px;cursor:pointer}.tab-bar.sc-tttx-tabs_1_9_65>.left-navigation.sc-tttx-tabs_1_9_65>*.sc-tttx-tabs_1_9_65,.tab-bar.sc-tttx-tabs_1_9_65>.right-navigation.sc-tttx-tabs_1_9_65>*.sc-tttx-tabs_1_9_65{height:24px;width:24px;cursor:pointer}.tab-bar.sc-tttx-tabs_1_9_65>.tabs-container.sc-tttx-tabs_1_9_65{display:flex;border-bottom:1px solid #d5d5d5}.tab-bar.sc-tttx-tabs_1_9_65>.tabs-container.wide.sc-tttx-tabs_1_9_65{flex-grow:1}.tab-bar.sc-tttx-tabs_1_9_65>.tabs-container.sc-tttx-tabs_1_9_65>*[role=tab].sc-tttx-tabs_1_9_65{padding:18px 16px;line-height:16.408px;font-size:14px;font-weight:500;text-transform:uppercase;user-select:none;color:#757575;cursor:pointer}.tab-bar.sc-tttx-tabs_1_9_65>.tabs-container.sc-tttx-tabs_1_9_65>*[role=tab].sc-tttx-tabs_1_9_65:hover{background-color:rgba(17, 17, 17, 0.05)}.tab-bar.sc-tttx-tabs_1_9_65>.tabs-container.sc-tttx-tabs_1_9_65>*[role=tab][aria-selected].sc-tttx-tabs_1_9_65{color:#212121;cursor:default;border-bottom:3px solid #1579c6}';export{e as tttx_tabs_1_9_65}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as e}from"./p-c2a82822.js";import{C as i,D as s,L as o}from"./p-39bb618e.js";const n={id:"gaugeLabel",beforeDatasetsDraw(t){const{ctx:e}=t;e.save();const i=t.getDatasetMeta(0).data[0].x,s=t.getDatasetMeta(0).data[0].y-12;e.font="bold 20px sans-serif",e.fillStyle="rgba(0, 0, 0, 1)",e.textAlign="center",e.textBaseline="middle",e.fillText(t.config.options.gaugeText||"",i,s)}};i.register(s,o,n);const a=class{constructor(e){t(this,e),this.chartConfig=void 0,this.chartType=void 0,this.chartData=void 0,this.chartText=void 0,this.formattedData=void 0}componentDidLoad(){if(this.formattedData=JSON.parse(this.chartData),!this.chartConfig)switch(this.chartType){case"gauge":this.chartConfig=this.getGaugeConfig(),i.register(n);break;case"line":console.log("line"),this.chartConfig=this.getLineConfig(),console.log(this.chartConfig)}new i(this.canvasElement,JSON.parse(this.chartConfig))}render(){return e("div",{class:"chart-container",style:{position:"relative",height:"100%",width:"100%"}},e("canvas",{ref:t=>this.canvasElement=t}))}getLineConfig(){return console.log(this.formattedData),JSON.stringify({type:"line",data:{datasets:[{fill:!1,borderColor:"#00187C",tension:.1,data:this.formattedData}]},options:{maintainAspectRatio:!1,responsive:!0,plugins:{legend:{display:!1}},scales:{x:{type:"linear",position:"bottom"}}}})}getGaugeConfig(){this.formattedData.push(100-this.formattedData[0]);const t={type:"doughnut",data:{datasets:[{data:this.formattedData,backgroundColor:[this.getRAGColour(this.formattedData[0]),"#F0F0F0"],borderWidth:0,hoverBorderWidth:0}]},options:{maintainAspectRatio:!1,responsive:!0,rotation:270,circumference:180,cutout:"60%",gaugeText:this.chartText,plugins:{legend:{display:!1},tooltip:{enabled:!1},hover:{enabled:!1}}}};return JSON.stringify(t)}getRAGColour(t){return t<50?"#DC0000":t<100?"#F59500":100===t?"#A2BB31":"#F0F0F0"}};a.style=":host{display:block;width:100%;height:100%}.chart-container{display:flex;align-items:center;justify-content:center}.overlay-text{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);color:white;font-size:24px;font-weight:bold;text-shadow:2px 2px 4px rgba(0, 0, 0, 0.7);pointer-events:none;}";export{a as
|
|
1
|
+
import{r as t,h as e}from"./p-c2a82822.js";import{C as i,D as s,L as o}from"./p-39bb618e.js";const n={id:"gaugeLabel",beforeDatasetsDraw(t){const{ctx:e}=t;e.save();const i=t.getDatasetMeta(0).data[0].x,s=t.getDatasetMeta(0).data[0].y-12;e.font="bold 20px sans-serif",e.fillStyle="rgba(0, 0, 0, 1)",e.textAlign="center",e.textBaseline="middle",e.fillText(t.config.options.gaugeText||"",i,s)}};i.register(s,o,n);const a=class{constructor(e){t(this,e),this.chartConfig=void 0,this.chartType=void 0,this.chartData=void 0,this.chartText=void 0,this.formattedData=void 0}componentDidLoad(){if(this.formattedData=JSON.parse(this.chartData),!this.chartConfig)switch(this.chartType){case"gauge":this.chartConfig=this.getGaugeConfig(),i.register(n);break;case"line":console.log("line"),this.chartConfig=this.getLineConfig(),console.log(this.chartConfig)}new i(this.canvasElement,JSON.parse(this.chartConfig))}render(){return e("div",{class:"chart-container",style:{position:"relative",height:"100%",width:"100%"}},e("canvas",{ref:t=>this.canvasElement=t}))}getLineConfig(){return console.log(this.formattedData),JSON.stringify({type:"line",data:{datasets:[{fill:!1,borderColor:"#00187C",tension:.1,data:this.formattedData}]},options:{maintainAspectRatio:!1,responsive:!0,plugins:{legend:{display:!1}},scales:{x:{type:"linear",position:"bottom"}}}})}getGaugeConfig(){this.formattedData.push(100-this.formattedData[0]);const t={type:"doughnut",data:{datasets:[{data:this.formattedData,backgroundColor:[this.getRAGColour(this.formattedData[0]),"#F0F0F0"],borderWidth:0,hoverBorderWidth:0}]},options:{maintainAspectRatio:!1,responsive:!0,rotation:270,circumference:180,cutout:"60%",gaugeText:this.chartText,plugins:{legend:{display:!1},tooltip:{enabled:!1},hover:{enabled:!1}}}};return JSON.stringify(t)}getRAGColour(t){return t<50?"#DC0000":t<100?"#F59500":100===t?"#A2BB31":"#F0F0F0"}};a.style=":host{display:block;width:100%;height:100%}.chart-container{display:flex;align-items:center;justify-content:center}.overlay-text{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);color:white;font-size:24px;font-weight:bold;text-shadow:2px 2px 4px rgba(0, 0, 0, 0.7);pointer-events:none;}";export{a as tttx_graph_1_9_65}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as e,h as a,H as o}from"./p-c2a82822.js";const n=class{constructor(a){t(this,a),this.valueChanged=e(this,"valueChanged",7),this.focusChanged=e(this,"focusChanged",7),this.blurChanged=e(this,"blurChanged",7),this.invalidChanged=e(this,"invalidChanged",7),this.label=void 0,this.secondarylabel=void 0,this.showerrormsg=void 0,this.showerrorbubble=!0,this.errormsg=void 0,this.rows=void 0,this.textareaautofocus=void 0,this.inputkeyhint=void 0,this.inputindex=void 0,this.inputtitle=void 0,this.disabled=void 0,this.maxlength=void 0,this.name=void 0,this.placeholder=void 0,this.readonly=void 0,this.required=void 0,this.value=void 0}handleChange(t){const e=t.target;this.value=e.value,this.valueChanged.emit(e.value)}handleFocus(t){this.focusChanged.emit(t.target.value)}handleBlur(t){this.blurChanged.emit(t.target.value)}handleInvalid(t){t.preventDefault(),this.invalidChanged.emit(t.target.value)}render(){const t=[this.showerrormsg?"invalid":"",!this.label&&this.required?"no-label":""].join(" ");return a(o,null,a("label",null,this.label,this.required?"":a("span",{class:"optional"}," (optional)"),a("div",{class:"textarea-container"},a("textarea",{rows:this.rows,class:t,autofocus:this.textareaautofocus,enterkeyhint:this.inputkeyhint,tabindex:this.inputindex,title:this.inputtitle,disabled:this.disabled,maxlength:this.maxlength,name:this.name,placeholder:this.placeholder,readonly:this.readonly,required:this.required,value:this.value,onBlur:this.handleBlur.bind(this),onFocus:this.handleFocus.bind(this),onInput:this.handleChange.bind(this),onInvalid:this.handleInvalid.bind(this)}),this.secondarylabel&&a("span",{class:"secondarylabel"},this.secondarylabel),this.showerrorbubble&&a("span",{class:["errorBubble",this.showerrormsg&&this.errormsg?"visible":""].join(" ")},a("span",{class:"material-symbols-rounded validationicon"},"warning")," ",this.errormsg))))}};n.style='.material-symbols-rounded.sc-tttx-
|
|
1
|
+
import{r as t,c as e,h as a,H as o}from"./p-c2a82822.js";const n=class{constructor(a){t(this,a),this.valueChanged=e(this,"valueChanged",7),this.focusChanged=e(this,"focusChanged",7),this.blurChanged=e(this,"blurChanged",7),this.invalidChanged=e(this,"invalidChanged",7),this.label=void 0,this.secondarylabel=void 0,this.showerrormsg=void 0,this.showerrorbubble=!0,this.errormsg=void 0,this.rows=void 0,this.textareaautofocus=void 0,this.inputkeyhint=void 0,this.inputindex=void 0,this.inputtitle=void 0,this.disabled=void 0,this.maxlength=void 0,this.name=void 0,this.placeholder=void 0,this.readonly=void 0,this.required=void 0,this.value=void 0}handleChange(t){const e=t.target;this.value=e.value,this.valueChanged.emit(e.value)}handleFocus(t){this.focusChanged.emit(t.target.value)}handleBlur(t){this.blurChanged.emit(t.target.value)}handleInvalid(t){t.preventDefault(),this.invalidChanged.emit(t.target.value)}render(){const t=[this.showerrormsg?"invalid":"",!this.label&&this.required?"no-label":""].join(" ");return a(o,null,a("label",null,this.label,this.required?"":a("span",{class:"optional"}," (optional)"),a("div",{class:"textarea-container"},a("textarea",{rows:this.rows,class:t,autofocus:this.textareaautofocus,enterkeyhint:this.inputkeyhint,tabindex:this.inputindex,title:this.inputtitle,disabled:this.disabled,maxlength:this.maxlength,name:this.name,placeholder:this.placeholder,readonly:this.readonly,required:this.required,value:this.value,onBlur:this.handleBlur.bind(this),onFocus:this.handleFocus.bind(this),onInput:this.handleChange.bind(this),onInvalid:this.handleInvalid.bind(this)}),this.secondarylabel&&a("span",{class:"secondarylabel"},this.secondarylabel),this.showerrorbubble&&a("span",{class:["errorBubble",this.showerrormsg&&this.errormsg?"visible":""].join(" ")},a("span",{class:"material-symbols-rounded validationicon"},"warning")," ",this.errormsg))))}};n.style='.material-symbols-rounded.sc-tttx-textarea_1_9_65{font-variation-settings:"FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24}.sc-tttx-textarea_1_9_65-h{display:block}label.sc-tttx-textarea_1_9_65{font-weight:500;font-size:16px;line-height:18.752px;color:#212121}label.sc-tttx-textarea_1_9_65 .textarea-container.sc-tttx-textarea_1_9_65{position:relative}label.sc-tttx-textarea_1_9_65 .textarea-container.sc-tttx-textarea_1_9_65 textarea.sc-tttx-textarea_1_9_65{font-family:"Roboto", serif;box-sizing:border-box;width:100%;padding:9px 16px;font-size:16px;line-height:18.752px;border:1px solid #d5d5d5;border-radius:4px;margin-top:8px;resize:none}label.sc-tttx-textarea_1_9_65 .textarea-container.sc-tttx-textarea_1_9_65 textarea.no-label.sc-tttx-textarea_1_9_65{margin-top:0}label.sc-tttx-textarea_1_9_65 .textarea-container.sc-tttx-textarea_1_9_65 textarea.sc-tttx-textarea_1_9_65~.errorBubble.sc-tttx-textarea_1_9_65{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.sc-tttx-textarea_1_9_65 .textarea-container.sc-tttx-textarea_1_9_65 textarea.sc-tttx-textarea_1_9_65~.errorBubble.sc-tttx-textarea_1_9_65:not(.visible){display:none}label.sc-tttx-textarea_1_9_65 .textarea-container.sc-tttx-textarea_1_9_65 textarea.sc-tttx-textarea_1_9_65~.errorBubble.sc-tttx-textarea_1_9_65 span.sc-tttx-textarea_1_9_65{color:#dc0000;font-size:16px;margin-right:4px}label.sc-tttx-textarea_1_9_65 .textarea-container.sc-tttx-textarea_1_9_65 textarea.sc-tttx-textarea_1_9_65:focus{border-color:#1479c6}label.sc-tttx-textarea_1_9_65 .textarea-container.sc-tttx-textarea_1_9_65 textarea.sc-tttx-textarea_1_9_65:focus-visible{outline:none}label.sc-tttx-textarea_1_9_65 .secondarylabel.sc-tttx-textarea_1_9_65{color:#757575;font-size:14px;line-height:16.408px;font-weight:normal;display:flex;margin-top:4px}label.sc-tttx-textarea_1_9_65 .optional.sc-tttx-textarea_1_9_65{color:#757575;font-weight:normal}';export{n as tttx_textarea_1_9_65}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as o,h as i,F as e,H as s,g as n}from"./p-c2a82822.js";import{p as l,d as r}from"./p-55799798.js";import"./p-112455b1.js";const d=class{constructor(i){t(this,i),this.selectItemEvent=o(this,"selectItemEvent",7),this.toggleOpen=o(this,"toggleOpen",7),this.changesApplied=o(this,"changesApplied",7),this.searchDataChanged=o(this,"searchDataChanged",7),this.bodyOffset={},this.optionsData=null,this.label=void 0,this.inline=void 0,this.placeholder="",this.searchEnabled=void 0,this.htmlVisibleValue=void 0,this.visibleValue=void 0,this.isLoading=void 0,this.stopLocalSearch=void 0,this.readOnly=void 0,this.priorityLabel="Priority Group",this.nonPriorityLabel="Non Priority Group",this.open=!1,this.unsavedSelectedItems=[],this.searchTerm=""}handleCloseSelectBox(){this.open=!1}handleBlur(){this.open=!1,this.toggleOpen.emit(!1)}handleOptionsDataChange(){this.initializeUnsavedSelectedItems()}componentWillLoad(){this.initializeUnsavedSelectedItems()}initializeUnsavedSelectedItems(){this.unsavedSelectedItems=this.safelyCloneArray("string"==typeof this.optionsData?JSON.parse(this.optionsData):this.optionsData),this.open&&this.calculateDropdownMenuOffset()}safelyCloneArray(t){return JSON.parse(JSON.stringify(t))}onDropdownClicked(){this.readOnly||(this.open=!this.open,this.searchTerm="",this.calculateDropdownMenuOffset(),this.toggleOpen.emit(this.open))}onCancel(){this.open=!1,this.unsavedSelectedItems=this.safelyCloneArray("string"==typeof this.optionsData?JSON.parse(this.optionsData):this.optionsData),this.toggleOpen.emit(!1)}applyChanges(){this.open=!1,this.changesApplied.emit(this.safelyCloneArray(this.unsavedSelectedItems))}onItemSelected(t){const o=this.unsavedSelectedItems.findIndex((o=>o.value===t.value));this.unsavedSelectedItems[o]=Object.assign(Object.assign({},t),{selected:!t.selected}),this.unsavedSelectedItems=[...this.unsavedSelectedItems],this.selectItemEvent.emit(t)}dropdownSelectorContent(){if(!this.unsavedSelectedItems.find((t=>t.selected)))return i("div",{class:"placeholder"},this.placeholder);if(this.htmlVisibleValue){const t=l.sanitize(this.visibleValue,r);return i("div",{class:"dropdown-selector-html-content",innerHTML:t})}return i("div",null,this.visibleValue)}optionFoundInSearchTerm(t){if(this.stopLocalSearch)return!1;const o=t.label.toLowerCase(),i=this.searchTerm.toLowerCase();return!o.includes(i)}renderDropdownOptions(t){let o=!1;const s=[],n=[];for(const i of t)o=o||!0===i.prioritise,this.searchEnabled&&this.optionFoundInSearchTerm(i)||(!0!==i.prioritise?n.push(i):s.push(i));return i(e,null,o&&s.length>0&&i(e,null,i("tttx-
|
|
1
|
+
import{r as t,c as o,h as i,F as e,H as s,g as n}from"./p-c2a82822.js";import{p as l,d as r}from"./p-55799798.js";import"./p-112455b1.js";const d=class{constructor(i){t(this,i),this.selectItemEvent=o(this,"selectItemEvent",7),this.toggleOpen=o(this,"toggleOpen",7),this.changesApplied=o(this,"changesApplied",7),this.searchDataChanged=o(this,"searchDataChanged",7),this.bodyOffset={},this.optionsData=null,this.label=void 0,this.inline=void 0,this.placeholder="",this.searchEnabled=void 0,this.htmlVisibleValue=void 0,this.visibleValue=void 0,this.isLoading=void 0,this.stopLocalSearch=void 0,this.readOnly=void 0,this.priorityLabel="Priority Group",this.nonPriorityLabel="Non Priority Group",this.open=!1,this.unsavedSelectedItems=[],this.searchTerm=""}handleCloseSelectBox(){this.open=!1}handleBlur(){this.open=!1,this.toggleOpen.emit(!1)}handleOptionsDataChange(){this.initializeUnsavedSelectedItems()}componentWillLoad(){this.initializeUnsavedSelectedItems()}initializeUnsavedSelectedItems(){this.unsavedSelectedItems=this.safelyCloneArray("string"==typeof this.optionsData?JSON.parse(this.optionsData):this.optionsData),this.open&&this.calculateDropdownMenuOffset()}safelyCloneArray(t){return JSON.parse(JSON.stringify(t))}onDropdownClicked(){this.readOnly||(this.open=!this.open,this.searchTerm="",this.calculateDropdownMenuOffset(),this.toggleOpen.emit(this.open))}onCancel(){this.open=!1,this.unsavedSelectedItems=this.safelyCloneArray("string"==typeof this.optionsData?JSON.parse(this.optionsData):this.optionsData),this.toggleOpen.emit(!1)}applyChanges(){this.open=!1,this.changesApplied.emit(this.safelyCloneArray(this.unsavedSelectedItems))}onItemSelected(t){const o=this.unsavedSelectedItems.findIndex((o=>o.value===t.value));this.unsavedSelectedItems[o]=Object.assign(Object.assign({},t),{selected:!t.selected}),this.unsavedSelectedItems=[...this.unsavedSelectedItems],this.selectItemEvent.emit(t)}dropdownSelectorContent(){if(!this.unsavedSelectedItems.find((t=>t.selected)))return i("div",{class:"placeholder"},this.placeholder);if(this.htmlVisibleValue){const t=l.sanitize(this.visibleValue,r);return i("div",{class:"dropdown-selector-html-content",innerHTML:t})}return i("div",null,this.visibleValue)}optionFoundInSearchTerm(t){if(this.stopLocalSearch)return!1;const o=t.label.toLowerCase(),i=this.searchTerm.toLowerCase();return!o.includes(i)}renderDropdownOptions(t){let o=!1;const s=[],n=[];for(const i of t)o=o||!0===i.prioritise,this.searchEnabled&&this.optionFoundInSearchTerm(i)||(!0!==i.prioritise?n.push(i):s.push(i));return i(e,null,o&&s.length>0&&i(e,null,i("tttx-tag_1_9_65",{class:"priority-pill",text:this.priorityLabel,color:"#F0F0F0"}),s.map((t=>this.dropdownOption(t)))),n.length>0&&i(e,null,o&&i("tttx-tag_1_9_65",{class:"priority-pill",text:this.nonPriorityLabel,color:"#F0F0F0"}),n.map((t=>this.dropdownOption(t)))))}dropdownOption(t){const o=t.selected?"check_box":"check_box_outline_blank",e=t.selected?"blue":"grey";if(t.html){const s=l.sanitize(t.html,r);return i("div",{class:"dropdown-option "+(t.selected?"selected":""),onClick:this.onItemSelected.bind(this,t),key:t.label},i("tttx-icon_1_9_65",{icon:o,color:e,class:"checkbox-icon"}),i("div",{innerHTML:s}))}return i("div",{class:"dropdown-option "+(t.selected?"selected":""),onClick:this.onItemSelected.bind(this,t),key:t.label},i("tttx-icon_1_9_65",{icon:o,color:e,class:"checkbox-icon"}),i("div",{class:"plaintext-option"},t.label))}handleSearchInput(t){const o=t.target;this.searchTerm=o.value,this.searchDataChanged.emit({searchTerm:o.value}),this.calculateDropdownMenuOffset()}calculateDropdownMenuOffset(){const t=this.el.shadowRoot.querySelector(".dropdown-selector"),o=t.getBoundingClientRect().bottom,i=t.getBoundingClientRect();let e=Math.min(288,36*this.unsavedSelectedItems.length)+45+8;this.searchEnabled&&(e+=52),this.bodyOffset=o+e>window.innerHeight?{top:window.innerHeight-(e+16)+"px",position:"fixed",width:`${t.offsetWidth}px`,zIndex:"10"}:{position:"fixed",left:i.left,top:`${i.top}px`,width:i.width-2+"px",zIndex:"10"}}render(){if(!this.optionsData)return;const t=this.open?"expand_less":"expand_more",o=this.readOnly?"dropdown-read-only":"";return i(s,{class:this.inline?"inline":"block"},this.label&&i("div",{class:"label"},this.label),i("div",{tabindex:"0",class:"dropdown-container"},i("div",{class:["dropdown-selector",o].join(" "),onClick:this.onDropdownClicked.bind(this)},this.dropdownSelectorContent(),i("div",{class:"dropdown-selector-chevron"},i("tttx-icon_1_9_65",{icon:t,color:"black"}))),this.open&&i("div",{class:"dropdown-body-container"},i("div",{class:"dropdown-body",style:Object.assign({},this.bodyOffset)},this.searchEnabled&&i("div",{class:"searchbox"},i("tttx-standalone-input_1_9_65",{type:"text",placeholder:"Search",label:"",required:!0,showerrorbubble:!1,iconleft:"search",onInput:this.handleSearchInput.bind(this),inline:!0})),i("div",{class:"dropdown-options-list"},this.isLoading?i("tttx-loading-spinner_1_9_65",{class:"loading-style"}):this.renderDropdownOptions(this.unsavedSelectedItems)),i("div",{class:"footer"},i("tttx-button_1_9_65",{design:"primary",onClick:this.applyChanges.bind(this)},"Apply"),i("tttx-button_1_9_65",{onClick:this.onCancel.bind(this)},"Cancel"))))))}get el(){return n(this)}static get watchers(){return{optionsData:["handleOptionsDataChange"]}}};d.style='.material-symbols-rounded{font-variation-settings:"FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24}:host{display:flex;gap:4px}.label{font-size:16px;font-style:normal;font-weight:500;line-height:normal}:host(.inline) .label{padding-top:8px}:host(.block){flex-direction:column}.dropdown-container{position:relative;display:flex;flex-direction:column;width:100%}.dropdown-container:focus-visible{outline:none}.dropdown-container:focus .dropdown-selector{border:1px solid #1479c6}.dropdown-selector,.dropdown-body{display:flex;border-radius:4px;background-color:white}.dropdown-selector{align-items:center;gap:8px;padding:6px 8px 6px 16px;cursor:pointer;border:1px solid #d5d5d5}.dropdown-selector *{font-weight:400}.dropdown-selector-chevron{margin-left:auto;height:24px;align-self:flex-start}.dropdown-selector-chevron>tttx-icon{cursor:pointer}.dropdown-selector-html-content{display:flex;gap:8px;flex-wrap:wrap}.dropdown-read-only{background-color:#BDBDBD !important}.dropdown-body-container{position:relative}.dropdown-body{position:absolute;display:flex;flex-direction:column;box-shadow:0px 1px 5px #1111114D;padding-bottom:8px;border:1px solid #d5d5d5;width:100%}.dropdown-options-list{display:flex;flex-direction:column;overflow-y:auto;scrollbar-gutter:stable;max-height:288px}.dropdown-option{padding:6px 8px 6px 16px;cursor:pointer;display:flex;gap:8px}.dropdown-option .checkbox-icon{height:24px}.dropdown-option .plaintext-option{line-height:24px}.dropdown-option:hover{background-color:#1111110d}.dropdown-option:active,.dropdown-option.selected{background-color:#ebfbfc}.priority-pill{padding:6px 8px 6px 16px;display:flex;gap:8px}.placeholder{color:#9e9e9e}.searchbox{padding:8px 16px 8px 16px;height:52px;box-sizing:border-box}.searchbox tttx-standalone-input{margin-top:-4px}.hidden{display:none}.footer{display:flex;gap:8px;flex-direction:row-reverse;padding:8px 16px 0 16px;border-top:1px solid #d5d5d5}';export{d as tttx_multiselect_box_1_9_65}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as e,h as i,g as o}from"./p-c2a82822.js";import{C as n}from"./p-39bb618e.js";const s=class{constructor(i){t(this,i),this.exportCSV=e(this,"exportCSV",7),this.chartType=void 0,this.chartData=void 0,this.chartOptions=void 0,this.loading=!1,this.error=void 0,this.fallbackText="No data available",this.width="100%",this.height="auto",this.exportable=!1,this.chartInstance=void 0,this.showPngSvgExport=!1}handleUpdate(){this.renderChart()}componentDidLoad(){this.renderChart()}disconnectedCallback(){this.destroyChart()}renderChart(){var t,e;if(!this.canvasEl||!this.chartData||!this.chartType)return;this.destroyChart();const i={type:this.getChartJsType(),data:this.chartData,options:this.getChartOptions(),plugins:[]};if("doughnut"===this.chartType||"semi-gauge"===this.chartType){const o=(null===(e=null===(t=this.chartData.datasets[0])||void 0===t?void 0:t.data)||void 0===e?void 0:e.map((t=>Number(t)||0)).reduce(((t,e)=>t+e),0))||0;i.plugins.push(this.getCenterTextPlugin(o.toLocaleString()))}this.chartInstance=new n(this.canvasEl,i)}destroyChart(){this.chartInstance&&this.chartInstance.destroy()}getChartJsType(){return"semi-gauge"===this.chartType?"doughnut":this.chartType}getBaseOptions(){return{responsive:!0,maintainAspectRatio:!1,plugins:{legend:{display:!0,position:"bottom",labels:{usePointStyle:!0,pointStyle:"circle"}},tooltip:{callbacks:{label:t=>`${t.label||t.dataset.label}: ${t.formattedValue}`}}}}}getLineChartConfig(){return{plugins:{legend:{labels:{usePointStyle:!0,pointStyle:"line"}},tooltip:{callbacks:{label:t=>`${t.dataset.label}: ${t.formattedValue}%`}}},scales:{x:{grid:{color:"#e5e5e5"}},y:{beginAtZero:!0,max:100,ticks:{callback:t=>`${t}%`},grid:{color:"#e5e5e5"}}}}}getDoughnutChartConfig(){return{plugins:{legend:{labels:{pointStyle:"circle",padding:16}}},cutout:"60%"}}getCenterTextPlugin(t){return{id:"centerText",afterDatasetsDraw:e=>{const{ctx:i}=e;i.save();const o=e.getDatasetMeta(0).data[0].x;let n=e.getDatasetMeta(0).data[0].y;"semi-gauge"===this.chartType&&(n-=20),i.font="bold 20px Roboto",i.fillStyle="#111",i.textAlign="center",i.textBaseline="middle",i.fillText(t,o,n)}}}getSemiGaugeChartConfig(){return{plugins:{legend:{labels:{pointStyle:"circle",padding:16}}},rotation:-90,circumference:180,cutout:"70%"}}merge(t,e){if("object"!=typeof t||"object"!=typeof e)return e;for(const i of Object.keys(e))t[i]=e[i]instanceof Object&&i in t?this.merge(Object.assign({},t[i]),e[i]):e[i];return t}getChartOptions(){const t=this.getBaseOptions();let e={};return"line"===this.chartType?e=this.getLineChartConfig():"doughnut"===this.chartType?e=this.getDoughnutChartConfig():"semi-gauge"===this.chartType&&(e=this.getSemiGaugeChartConfig()),this.merge(this.merge(t,e),this.chartOptions||{})}exportChart(t){if(!this.chartInstance)return;const e=document.createElement("a");if(e.download=`chart-export.${t}`,"png"===t)e.href=this.chartInstance.toBase64Image("image/png");else{const t=(new XMLSerializer).serializeToString(this.canvasEl),i=new Blob([t],{type:"image/svg+xml"});e.href=URL.createObjectURL(i)}e.click()}getErrorContent(){return this.commonContent("warning","Something went wrong","We ran into an issue while trying to load this widget.","#DC0000",!0)}getNoDataContent(){return this.commonContent("ssid_chart","No data available","There is currently no data available to show performance trends.","#111")}commonContent(t,e,o,n,s=!1){return i("div",{class:"error-content"},i("tttx-
|
|
1
|
+
import{r as t,c as e,h as i,g as o}from"./p-c2a82822.js";import{C as n}from"./p-39bb618e.js";const s=class{constructor(i){t(this,i),this.exportCSV=e(this,"exportCSV",7),this.chartType=void 0,this.chartData=void 0,this.chartOptions=void 0,this.loading=!1,this.error=void 0,this.fallbackText="No data available",this.width="100%",this.height="auto",this.exportable=!1,this.chartInstance=void 0,this.showPngSvgExport=!1}handleUpdate(){this.renderChart()}componentDidLoad(){this.renderChart()}disconnectedCallback(){this.destroyChart()}renderChart(){var t,e;if(!this.canvasEl||!this.chartData||!this.chartType)return;this.destroyChart();const i={type:this.getChartJsType(),data:this.chartData,options:this.getChartOptions(),plugins:[]};if("doughnut"===this.chartType||"semi-gauge"===this.chartType){const o=(null===(e=null===(t=this.chartData.datasets[0])||void 0===t?void 0:t.data)||void 0===e?void 0:e.map((t=>Number(t)||0)).reduce(((t,e)=>t+e),0))||0;i.plugins.push(this.getCenterTextPlugin(o.toLocaleString()))}this.chartInstance=new n(this.canvasEl,i)}destroyChart(){this.chartInstance&&this.chartInstance.destroy()}getChartJsType(){return"semi-gauge"===this.chartType?"doughnut":this.chartType}getBaseOptions(){return{responsive:!0,maintainAspectRatio:!1,plugins:{legend:{display:!0,position:"bottom",labels:{usePointStyle:!0,pointStyle:"circle"}},tooltip:{callbacks:{label:t=>`${t.label||t.dataset.label}: ${t.formattedValue}`}}}}}getLineChartConfig(){return{plugins:{legend:{labels:{usePointStyle:!0,pointStyle:"line"}},tooltip:{callbacks:{label:t=>`${t.dataset.label}: ${t.formattedValue}%`}}},scales:{x:{grid:{color:"#e5e5e5"}},y:{beginAtZero:!0,max:100,ticks:{callback:t=>`${t}%`},grid:{color:"#e5e5e5"}}}}}getDoughnutChartConfig(){return{plugins:{legend:{labels:{pointStyle:"circle",padding:16}}},cutout:"60%"}}getCenterTextPlugin(t){return{id:"centerText",afterDatasetsDraw:e=>{const{ctx:i}=e;i.save();const o=e.getDatasetMeta(0).data[0].x;let n=e.getDatasetMeta(0).data[0].y;"semi-gauge"===this.chartType&&(n-=20),i.font="bold 20px Roboto",i.fillStyle="#111",i.textAlign="center",i.textBaseline="middle",i.fillText(t,o,n)}}}getSemiGaugeChartConfig(){return{plugins:{legend:{labels:{pointStyle:"circle",padding:16}}},rotation:-90,circumference:180,cutout:"70%"}}merge(t,e){if("object"!=typeof t||"object"!=typeof e)return e;for(const i of Object.keys(e))t[i]=e[i]instanceof Object&&i in t?this.merge(Object.assign({},t[i]),e[i]):e[i];return t}getChartOptions(){const t=this.getBaseOptions();let e={};return"line"===this.chartType?e=this.getLineChartConfig():"doughnut"===this.chartType?e=this.getDoughnutChartConfig():"semi-gauge"===this.chartType&&(e=this.getSemiGaugeChartConfig()),this.merge(this.merge(t,e),this.chartOptions||{})}exportChart(t){if(!this.chartInstance)return;const e=document.createElement("a");if(e.download=`chart-export.${t}`,"png"===t)e.href=this.chartInstance.toBase64Image("image/png");else{const t=(new XMLSerializer).serializeToString(this.canvasEl),i=new Blob([t],{type:"image/svg+xml"});e.href=URL.createObjectURL(i)}e.click()}getErrorContent(){return this.commonContent("warning","Something went wrong","We ran into an issue while trying to load this widget.","#DC0000",!0)}getNoDataContent(){return this.commonContent("ssid_chart","No data available","There is currently no data available to show performance trends.","#111")}commonContent(t,e,o,n,s=!1){return i("div",{class:"error-content"},i("tttx-icon_1_9_65",{icon:t,color:n,size:48}),i("span",{class:"error-heading"},e),i("span",{class:"error-message"},o),s&&i("div",{class:"error-actions"},i("tttx-button_1_9_65",{class:"reload-btn",icon:"refresh",design:"default",onClick:()=>this.renderChart()},"Reload data"),i("tttx-button_1_9_65",{class:"support-btn",icon:"help",design:"primary",onClick:()=>this.renderChart()},"Contact support")))}render(){var t,e,o;return i("div",{class:"chart-wrapper",style:{width:this.width,height:this.height}},this.loading&&i("div",{class:"chart-loading"},i("tttx-loading-spinner_1_9_65",{size:"large",color:"#2b9ab7"})),this.error&&this.getErrorContent(),!this.loading&&!this.error&&(!this.chartData||!(null===(t=this.chartData.datasets)||void 0===t?void 0:t.length))&&this.getNoDataContent(),!this.loading&&!this.error&&(null===(o=null===(e=this.chartData)||void 0===e?void 0:e.datasets)||void 0===o?void 0:o.length)>0&&i("canvas",{ref:t=>this.canvasEl=t,"aria-label":"Chart canvas",role:"img"}),this.exportable&&!this.loading&&!this.error&&i("div",{class:"export-buttons"},this.showPngSvgExport&&i("tttx-button_1_9_65",{class:"export-png",design:"primary",onClick:()=>this.exportChart("png")},"Export PNG"),this.showPngSvgExport&&i("tttx-button_1_9_65",{class:"export-svg",design:"primary",onClick:()=>this.exportChart("svg")},"Export SVG"),i("tttx-button_1_9_65",{class:"export-csv",design:"primary",onClick:()=>this.exportCSV.emit({name:this.chartType})},"Export CSV")))}get el(){return o(this)}static get watchers(){return{chartData:["handleUpdate"],chartOptions:["handleUpdate"]}}};s.style=".chart-wrapper{position:relative;width:100%;height:100%}canvas{display:block;width:100% !important;height:100% !important}.export-buttons{display:flex;gap:0.5rem;justify-content:flex-end;padding-top:0.5rem;padding-bottom:0.5rem}.chart-loading{width:100%;height:100%;align-items:center;justify-content:center;display:flex}.error-content{width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;align-self:stretch}.error-content .error-heading{color:var(--Text-Default-Default, #111);text-align:center;font-family:Roboto;font-size:14px;font-style:normal;font-weight:600;line-height:20px}.error-content .error-message{color:var(--Text-Neutral-Default, #737373);text-align:center;font-family:Roboto;font-size:14px;font-style:normal;font-weight:400;line-height:20px}.error-content .error-actions{display:flex;align-items:flex-start;gap:12px}";export{s as tttx_chart_1_9_65}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as o,h as i,F as s,H as e,g as n}from"./p-c2a82822.js";import{p as l,d}from"./p-55799798.js";import"./p-112455b1.js";const r=class{constructor(i){t(this,i),this.selectItemEvent=o(this,"selectItemEvent",3),this.toggleOpen=o(this,"toggleOpen",3),this.searchUpdated=o(this,"multiselectSearchUpdated",7),this.selectEndReachedEvent=o(this,"selectEndReached",7),this.bodyOffset={},this.closeSelectBoxHandler=()=>{this.open&&(this.open=!1)},this.optionsData=null,this.label=void 0,this.inline=void 0,this.placeholder="",this.searchEnabled=void 0,this.selectedValue=void 0,this.useExternalFiltering=void 0,this.useExternalPaginatedFiltering=void 0,this.isAllExternalDataLoaded=void 0,this.isLoading=void 0,this.readOnly=void 0,this.priorityLabel="Priority Group",this.nonPriorityLabel="Non Priority Group",this.clearable=!1,this.showErrorMsg=void 0,this.showErrorBubble=!1,this.errorMsg=void 0,this.open=!1,this.selectedItem=void 0,this.searchTerm="",this.loadingNextExternalPage=!1}async componentWillLoad(){if(this.optionsData){this.setOptionsData();const t=this._optionsData.filter((t=>t.value==this.selectedValue));this.selectedItem=t.length>0?t[0]:void 0}this._isAllExternalDataLoaded=this.isAllExternalDataLoaded}async setOptionsData(){this._optionsData="string"==typeof this.optionsData?JSON.parse(this.optionsData):this.optionsData,this.open&&this.calculateDropdownMenuOffset(),this.loadingNextExternalPage=!1}updateAllLoadedBool(){this._isAllExternalDataLoaded=this.isAllExternalDataLoaded}async setSelectedItem(t){if(!t)return this.cleanSelectedItem();const o=this._optionsData.find((o=>o.value.toLowerCase()===t.toLowerCase()));if(!o)return this.cleanSelectedItem();this.selectedValue=o.value,this.selectedItem=o}cleanSelectedItem(){this.selectedValue=void 0,this.selectedItem=void 0,this.selectItemEvent.emit(this.selectedItem)}componentDidLoad(){document.addEventListener("closeSelectBoxOnScroll",this.closeSelectBoxHandler)}componentWillUnload(){document.removeEventListener("closeSelectBoxOnScroll",this.closeSelectBoxHandler)}handleCloseSelectBox(){this.open=!1}handleBlur(){this.open=!1,this.toggleOpen.emit(!1)}onDropdownClicked(){this.readOnly||(this.open=!this.open,this.searchTerm="",this.loadingNextExternalPage=!1,this.calculateDropdownMenuOffset(),this.toggleOpen.emit(this.open))}onItemSelected(t){this.selectedItem=t,this.selectItemEvent.emit(this.selectedItem),this.handleBlur()}dropdownSelectorContent(){let t,o;const e=i("tttx-
|
|
1
|
+
import{r as t,c as o,h as i,F as s,H as e,g as n}from"./p-c2a82822.js";import{p as l,d}from"./p-55799798.js";import"./p-112455b1.js";const r=class{constructor(i){t(this,i),this.selectItemEvent=o(this,"selectItemEvent",3),this.toggleOpen=o(this,"toggleOpen",3),this.searchUpdated=o(this,"multiselectSearchUpdated",7),this.selectEndReachedEvent=o(this,"selectEndReached",7),this.bodyOffset={},this.closeSelectBoxHandler=()=>{this.open&&(this.open=!1)},this.optionsData=null,this.label=void 0,this.inline=void 0,this.placeholder="",this.searchEnabled=void 0,this.selectedValue=void 0,this.useExternalFiltering=void 0,this.useExternalPaginatedFiltering=void 0,this.isAllExternalDataLoaded=void 0,this.isLoading=void 0,this.readOnly=void 0,this.priorityLabel="Priority Group",this.nonPriorityLabel="Non Priority Group",this.clearable=!1,this.showErrorMsg=void 0,this.showErrorBubble=!1,this.errorMsg=void 0,this.open=!1,this.selectedItem=void 0,this.searchTerm="",this.loadingNextExternalPage=!1}async componentWillLoad(){if(this.optionsData){this.setOptionsData();const t=this._optionsData.filter((t=>t.value==this.selectedValue));this.selectedItem=t.length>0?t[0]:void 0}this._isAllExternalDataLoaded=this.isAllExternalDataLoaded}async setOptionsData(){this._optionsData="string"==typeof this.optionsData?JSON.parse(this.optionsData):this.optionsData,this.open&&this.calculateDropdownMenuOffset(),this.loadingNextExternalPage=!1}updateAllLoadedBool(){this._isAllExternalDataLoaded=this.isAllExternalDataLoaded}async setSelectedItem(t){if(!t)return this.cleanSelectedItem();const o=this._optionsData.find((o=>o.value.toLowerCase()===t.toLowerCase()));if(!o)return this.cleanSelectedItem();this.selectedValue=o.value,this.selectedItem=o}cleanSelectedItem(){this.selectedValue=void 0,this.selectedItem=void 0,this.selectItemEvent.emit(this.selectedItem)}componentDidLoad(){document.addEventListener("closeSelectBoxOnScroll",this.closeSelectBoxHandler)}componentWillUnload(){document.removeEventListener("closeSelectBoxOnScroll",this.closeSelectBoxHandler)}handleCloseSelectBox(){this.open=!1}handleBlur(){this.open=!1,this.toggleOpen.emit(!1)}onDropdownClicked(){this.readOnly||(this.open=!this.open,this.searchTerm="",this.loadingNextExternalPage=!1,this.calculateDropdownMenuOffset(),this.toggleOpen.emit(this.open))}onItemSelected(t){this.selectedItem=t,this.selectItemEvent.emit(this.selectedItem),this.handleBlur()}dropdownSelectorContent(){let t,o;const e=i("tttx-icon_1_9_65",{icon:this.open?"expand_less":"expand_more",color:"black"});let n=i("div",{class:"dropdown-selector-chevron"},e);return this.selectedItem?this.selectedItem.html?(t=i("div",{title:this.selectedItem.label,class:"truncated-text",innerHTML:this.selectedItem.html}),i(s,null,t,n)):(t=i("div",{title:this.selectedItem.label,class:"truncated-text"},this.selectedItem.label),this.selectedItem.description&&(o=i("div",{class:"description"},i("p",null,this.selectedItem.description)),n=i("div",{class:"dropdown-selector-chevron-offset"},e)),i(s,null,i("div",{class:"left-wrapper"},t,o),this.clearable&&!this.readOnly&&i("tttx-icon_1_9_65",{class:"input-icon",style:{paddingTop:"5px",cursor:"pointer"},icon:"close_small",onClick:this.cleanSelectedItem.bind(this)}),n)):(t=i("div",{class:"placeholder"},this.placeholder),i(s,null,t,n))}renderDropdownOptions(t){let o=!1;const e=[],n=[];for(const i of t)o=o||!0===i.prioritise,(!this.searchEnabled||this.useExternalFiltering||this.useExternalPaginatedFiltering||-1!==i.label.toLowerCase().indexOf(this.searchTerm.toLowerCase()))&&(!0!==i.prioritise?n.push(i):e.push(i));return i(s,null,o&&e.length>0&&i(s,null,i("tttx-tag_1_9_65",{class:"priority-pill",text:this.priorityLabel,color:"#F0F0F0"}),e.map((t=>this.dropdownOption(t)))),n.length>0&&i(s,null,o&&i("tttx-tag_1_9_65",{class:"priority-pill",text:this.nonPriorityLabel,color:"#F0F0F0"}),n.map((t=>this.dropdownOption(t)))))}dropdownOption(t){const o=this.selectedItem&&t.value===this.selectedItem.value;if(t.html){const s=l.sanitize(t.html,d);return i("div",{class:"dropdown-option "+(o?"selected":""),onClick:this.onItemSelected.bind(this,t),key:t.label,innerHTML:s})}return t.description?i("div",{class:"dropdown-option "+(o?"selected":""),onClick:this.onItemSelected.bind(this,t),key:t.label},t.label,i("div",{class:"description-dd"},i("p",null,t.description))):i("div",{class:"dropdown-option "+(o?"selected":""),onClick:this.onItemSelected.bind(this,t),key:t.label},t.label)}handleSearchInput(t){const o=t.target.value;(this.useExternalFiltering||this.useExternalPaginatedFiltering)&&(clearTimeout(this.searchFilterTimeout),this.searchFilterTimeout=setTimeout((t=>{this.searchUpdated.emit(t)}),500,o)),this.searchTerm=o}calculateDropdownMenuOffset(){const t=this.el.shadowRoot.querySelector(".dropdown-selector").getBoundingClientRect(),o=window.innerHeight,i=window.innerWidth;let s=Math.min(368,36*this._optionsData.length)+8;this.searchEnabled&&(s+=52);const e=o-t.bottom,n=t.top;let l,d,r;this._optionsData.length||(s=200),e>=s?(l=t.bottom+"px",d="",r=s+"px"):n>=s?(l="",d=o-t.top+"px",r=s+"px"):(l=s-n+"px",d=s-e+"px",r=s+"px"),this.bodyOffset={position:"fixed",left:Math.max(t.left,0)+"px",width:Math.min(t.width,i-t.left-16)+"px",top:l,bottom:d,maxHeight:r,zIndex:"10",overflowY:"auto"}}onSelectScroll(t){const o=t.target;this.useExternalPaginatedFiltering&&o.scrollHeight-o.scrollTop-o.offsetHeight<=5&&!this.loadingNextExternalPage&&!this._isAllExternalDataLoaded&&(this.loadingNextExternalPage=!0,clearTimeout(this.selectEndReached),this.selectEndReached=setTimeout((t=>{this.selectEndReachedEvent.emit(t)}),500,this.searchTerm))}render(){if(!this.optionsData)return;const t=this.showErrorMsg?"invalid":"",o=this.readOnly?"dropdown-read-only":"";return i(e,{class:this.inline?"inline":"block"},this.label&&i("div",{class:"label"},this.label),i("div",{tabindex:"0",class:"dropdown-container"},i("div",{class:["dropdown-selector",t,o].join(" "),ref:t=>this.dropdownSelector=t,onClick:this.onDropdownClicked.bind(this)},this.dropdownSelectorContent()),this.open&&i("div",{class:"dropdown-body-container"},i("div",{class:"dropdown-body",style:Object.assign({width:`${this.dropdownSelector.offsetWidth}px`},this.bodyOffset)},this.searchEnabled&&i("div",{class:"searchbox"},i("tttx-standalone-input_1_9_65",{type:"text",label:"",required:!0,showerrorbubble:!1,iconleft:"search",onInput:this.handleSearchInput.bind(this)})),i("div",{class:"dropdown-options-list",onScroll:this.onSelectScroll.bind(this)},!this.isLoading&&this.renderDropdownOptions(this._optionsData),(this.isLoading||this.loadingNextExternalPage)&&i("tttx-loading-spinner_1_9_65",{class:"loading-style"})))),this.showErrorBubble&&i("span",{class:["errorBubble",this.showErrorMsg&&this.errorMsg?"visible":""].join(" ")},i("tttx-icon_1_9_65",{icon:"warning",color:"#dc0000",size:16})," ",this.errorMsg)))}get el(){return n(this)}static get watchers(){return{optionsData:["setOptionsData"],isAllExternalDataLoaded:["updateAllLoadedBool"]}}};r.style='.material-symbols-rounded{font-variation-settings:"FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24}:host{display:flex;gap:4px}.label{font-size:16px;font-weight:500;line-height:18.752px;color:#212121}:host(.inline) .label{padding-top:8px}:host(.block){flex-direction:column}.dropdown-container{position:relative;display:flex;flex-direction:column;width:100%}.dropdown-container:focus-visible{outline:none}.dropdown-container:focus .dropdown-selector{border:1px solid #1479c6}.dropdown-selector,.dropdown-body{display:flex;border-radius:4px;background-color:white}.dropdown-selector{min-height:36px;box-sizing:border-box;align-items:center;gap:8px;padding:4px 8px 4px 16px;cursor:pointer;justify-content:space-between;border:1px solid #d5d5d5;display:flex;flex-direction:row}.dropdown-selector>.left-wrapper{flex:1;min-width:0}.dropdown-selector *{font-weight:400}.dropdown-selector.invalid{border:1px solid #dc0000}.priority-pill{padding:6px 8px 6px 16px}.dropdown-read-only{background-color:#BDBDBD !important}.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}.errorBubble:not(.visible){display:none}.errorBubble>*{font-size:16px;margin-right:4px;height:16px}.description{color:#757575;font-size:14px;line-height:16.408px}.description>p{margin:0}.description-dd{color:#757575;font-size:14px;line-height:16.408px}.description-dd>p{margin:0}.truncated-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#212121;font-size:16px;line-height:18.752px}.dropdown-selector-chevron{height:24px}.dropdown-selector-chevron-offset{height:24px}.dropdown-selector-chevron>tttx-icon{cursor:pointer}.dropdown-body-container{position:fixed;z-index:2}.dropdown-body{position:absolute;flex-direction:column;box-shadow:0px 1px 5px #1111114D;padding-bottom:8px;border:1px solid #d5d5d5}.dropdown-options-list{display:flex;flex-direction:column;overflow-y:auto;max-height:368px}.dropdown-option{padding:6px 8px 6px 16px;cursor:pointer}.dropdown-option:hover{background-color:#1111110d}.dropdown-option:active,.dropdown-option.selected{background-color:#ebfbfc}.placeholder{color:#9e9e9e;white-space:nowrap;overflow-x:hidden;text-overflow:ellipsis}.searchbox{padding:8px 16px}.searchbox tttx-standalone-input{margin-top:-4px}.hidden{display:none}';export{r as tttx_select_box_1_9_65}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as e,h as i,H as n}from"./p-c2a82822.js";const c=class{constructor(i){t(this,i),this.checkboxChangeEvent=e(this,"checkboxChangeEvent",3),this.checkboxId=void 0,this.label=void 0,this.inline=!1,this.indeterminate=!1,this.checked=void 0}watchIndeterminateChange(t){this.checkbox.indeterminate=t}onClick(){const{checked:t,indeterminate:e}=this;this.checkboxChangeEvent.emit({indeterminate:e,checked:t})}componentDidLoad(){this.checkbox.indeterminate=this.indeterminate}render(){const t=this.indeterminate?"indeterminate_check_box":this.checked?"check_box":"check_box_outline_blank";return i(n,null,i("label",{class:"tttx-checkbox "+(this.inline?"--inline":"")},i("input",{class:"tttx-checkbox__input",type:"checkbox",id:this.checkboxId,checked:this.checked,ref:t=>this.checkbox=t}),i("tttx-
|
|
1
|
+
import{r as t,c as e,h as i,H as n}from"./p-c2a82822.js";const c=class{constructor(i){t(this,i),this.checkboxChangeEvent=e(this,"checkboxChangeEvent",3),this.checkboxId=void 0,this.label=void 0,this.inline=!1,this.indeterminate=!1,this.checked=void 0}watchIndeterminateChange(t){this.checkbox.indeterminate=t}onClick(){const{checked:t,indeterminate:e}=this;this.checkboxChangeEvent.emit({indeterminate:e,checked:t})}componentDidLoad(){this.checkbox.indeterminate=this.indeterminate}render(){const t=this.indeterminate?"indeterminate_check_box":this.checked?"check_box":"check_box_outline_blank";return i(n,null,i("label",{class:"tttx-checkbox "+(this.inline?"--inline":"")},i("input",{class:"tttx-checkbox__input",type:"checkbox",id:this.checkboxId,checked:this.checked,ref:t=>this.checkbox=t}),i("tttx-icon_1_9_65",{color:this.checked?"blue":"grey",icon:t,onClick:this.onClick.bind(this)}),i("span",{class:"tttx-checkbox__label"},this.label)))}static get watchers(){return{indeterminate:["watchIndeterminateChange"]}}};c.style='.material-symbols-rounded{font-variation-settings:"FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24}.tttx-checkbox{padding:8px;display:flex;justify-content:flex-start;font-size:16px;align-items:center;font-weight:normal;line-height:18.752px}.tttx-checkbox tttx-icon{height:24px}.tttx-checkbox.--inline{display:inline-flex}.tttx-checkbox__input{display:none}.tttx-checkbox__label{margin-left:8px;padding-right:0;color:#212121;font-weight:normal}';export{c as tttx_checkbox_1_9_65}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as o,h as r,H as t}from"./p-c2a82822.js";const e=class{constructor(r){o(this,r),this._iconcolor="black",this.notext=void 0,this.icon=void 0,this.iconposition="left",this.iconcolor="black",this.design="default"}componentWillLoad(){this._design=this.design,["primary","default","disabled","danger","borderless","borderless-circle","blackout"].includes(this.design)||(this._design="default"),"primary"!==this._design&&"danger"!==this._design&&"blackout"!==this._design||(this.iconcolor="white")}render(){return this._iconcolor=this.iconcolor,r(t,null,r("button",{class:`button ${this._design} ${this.icon?"withicon":""} ${this.icon&&this.iconposition?"icon"+this.iconposition:""} ${this.notext?"notext":""}`},this.icon&&"left"===this.iconposition&&r("div",{class:"icon-left"},r("tttx-
|
|
1
|
+
import{r as o,h as r,H as t}from"./p-c2a82822.js";const e=class{constructor(r){o(this,r),this._iconcolor="black",this.notext=void 0,this.icon=void 0,this.iconposition="left",this.iconcolor="black",this.design="default"}componentWillLoad(){this._design=this.design,["primary","default","disabled","danger","borderless","borderless-circle","blackout"].includes(this.design)||(this._design="default"),"primary"!==this._design&&"danger"!==this._design&&"blackout"!==this._design||(this.iconcolor="white")}render(){return this._iconcolor=this.iconcolor,r(t,null,r("button",{class:`button ${this._design} ${this.icon?"withicon":""} ${this.icon&&this.iconposition?"icon"+this.iconposition:""} ${this.notext?"notext":""}`},this.icon&&"left"===this.iconposition&&r("div",{class:"icon-left"},r("tttx-icon_1_9_65",{icon:this.icon,color:this._iconcolor})),!this.notext&&r("div",{class:"button-content"},r("slot",null)),this.icon&&"right"===this.iconposition&&r("div",{class:"icon-right"},r("tttx-icon_1_9_65",{icon:this.icon,color:this._iconcolor}))))}};e.style='.material-symbols-rounded{font-variation-settings:"FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24}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}.blackout{background:#363636;border:1px solid #363636;color:white}.blackout:active{background:#212121;border:1px solid #212121}.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}.blackout:hover{background:#212121;border:1px solid #212121}}:host{display:inline-block}tttx-icon{cursor:inherit}.spacingleft{margin-left:8px}';export{e as tttx_button_1_9_65}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,c as t,h as a,H as n}from"./p-c2a82822.js";const i=class{constructor(a){e(this,a),this.dateRangeChanged=t(this,"dateRangeChanged",7),this.handleOutsideClick=e=>{this.showCalendar&&this.inputRef&&!this.inputRef.contains(e.target)&&(this.showCalendar=!1)},this.toggleCalendar=()=>{this.showCalendar=!this.showCalendar},this.handleInputClick=e=>{e.stopPropagation(),this.toggleCalendar()},this.handleClear=e=>{e.stopPropagation(),this.resetRange()},this.initialValue=void 0,this.placeholderText="dd/mm/yyyy - dd/mm/yyyy",this.showCalendar=!1,this.startDate="",this.endDate="",this.currentMonth=(new Date).getMonth(),this.currentYear=(new Date).getFullYear(),this.isSelecting=!0,this.hoverDate=""}componentDidLoad(){document.addEventListener("click",this.handleOutsideClick)}disconnectedCallback(){document.removeEventListener("click",this.handleOutsideClick)}componentWillLoad(){this.initializeRangeFromProp()}watchInitialValue(){this.initializeRangeFromProp()}initializeRangeFromProp(){let e="",t="";if("string"==typeof this.initialValue)try{const a=JSON.parse(this.initialValue);e=a.start,t=a.end}catch(e){console.error("Invalid JSON passed to initialValue")}else"object"==typeof this.initialValue&&null!==this.initialValue&&(e=this.initialValue.start,t=this.initialValue.end);e&&e.includes("/")&&(e=this.parseDDMMYYYYToISO(e)),t&&t.includes("/")&&(t=this.parseDDMMYYYYToISO(t)),e&&(this.startDate=e),t&&(this.endDate=t),(e||t)&&this.emitRangeChange(e,t)}resetRange(){this.startDate="",this.endDate="",this.isSelecting=!0,this.emitRangeChange("","")}emitRangeChange(e,t){const a=e?this.formatToDDMMYYYY(e):"",n=t?this.formatToDDMMYYYY(t):"";this.dateRangeChanged.emit({name:"customDateRange",value:{start:a,end:n}})}handleDateClick(e){const t=new Date(e);this.isSelecting?(this.startDate=e,this.endDate="",this.hoverDate="",this.emitRangeChange(this.startDate,""),this.isSelecting=!1):t>=new Date(this.startDate)?(this.endDate=e,this.emitRangeChange(this.startDate,this.endDate),this.showCalendar=!1,this.isSelecting=!0,this.hoverDate=""):(this.startDate=e,this.endDate="",this.hoverDate="",this.emitRangeChange(this.startDate,""))}changeMonth(e){"prev"===e?(this.currentMonth=0===this.currentMonth?11:this.currentMonth-1,this.currentYear=11===this.currentMonth?this.currentYear-1:this.currentYear):(this.currentMonth=11===this.currentMonth?0:this.currentMonth+1,this.currentYear=0===this.currentMonth?this.currentYear+1:this.currentYear)}formatToDDMMYYYY(e){const t=new Date(e);return`${String(t.getDate()).padStart(2,"0")}/${String(t.getMonth()+1).padStart(2,"0")}/${t.getFullYear()}`}parseDDMMYYYYToISO(e){const[t,a,n]=e.split("/");return new Date(`${n}-${a}-${t}`).toISOString().split("T")[0]}generateCalendarGrid(e,t){const a=new Date(e,t,1).getDay(),n=new Date(e,t+1,0).getDate(),i=[];for(let e=0;e<a;e++)i.push({date:null,isCurrentMonth:!1});for(let a=1;a<=n;a++){const n=new Date(e,t,a),r=n.getFullYear(),s=String(n.getMonth()+1).padStart(2,"0"),o=String(n.getDate()).padStart(2,"0");i.push({date:`${r}-${s}-${o}`,isCurrentMonth:!0})}for(;i.length<42;)i.push({date:null,isCurrentMonth:!1});return i}getMonthName(e){return new Date(2e3,e).toLocaleString("default",{month:"long"})}renderCalendar(e,t,n){const i=this.generateCalendarGrid(e,t);return a("div",{class:"calendar"},a("div",{class:"calendar-header"},a("button",{class:"nav-btn",onClick:e=>{e.stopPropagation(),this.changeMonth("prev")}},"<"),a("span",{class:"month-label"},this.getMonthName(t)," ",e),a("button",{class:"nav-btn",onClick:e=>{e.stopPropagation(),this.changeMonth("next")}},">")),a("div",{class:"calendar-grid"},["Su","Mo","Tu","We","Th","Fr","Sa"].map((e=>a("div",{class:"calendar-weekday",key:e},e))),i.map(((e,t)=>{var r;if(!e.isCurrentMonth||!e.date)return a("div",{class:"calendar-date empty",key:`empty-${t}`,onClick:e=>e.stopPropagation()});const s=e.date,o=s===this.startDate,d=s===this.endDate,l=this.startDate&&this.endDate&&new Date(s)>new Date(this.startDate)&&new Date(s)<new Date(this.endDate),h=this.startDate&&!this.endDate&&this.hoverDate&&new Date(s)>new Date(this.startDate)&&new Date(s)<=new Date(this.hoverDate),c=null===(r=i[t-1])||void 0===r?void 0:r.date,p=h&&(0===t||!c||this.startDate&&new Date(c)<new Date(this.startDate));return a("div",{class:{"calendar-date":!0,"range-start":o,"range-end":d,inrange:l,hoverrange:h,"range-hover-start":p,"range-hover-end":h&&s===this.hoverDate},onClick:e=>{e.stopPropagation(),n(s)},onMouseEnter:()=>{!this.isSelecting&&this.startDate&&(this.hoverDate=s)},onMouseLeave:()=>{this.hoverDate=""},key:s},new Date(s).getDate())}))))}render(){const e=this.startDate&&this.endDate?`${this.formatToDDMMYYYY(this.startDate)} – ${this.formatToDDMMYYYY(this.endDate)}`:this.startDate?`${this.formatToDDMMYYYY(this.startDate)} –`:this.placeholderText;return a(n,null,a("div",{class:"date-range-input",tabIndex:0,"aria-haspopup":"dialog","aria-expanded":this.showCalendar?"true":"false",ref:e=>this.inputRef=e,onClick:this.handleInputClick},a("span",{class:{"range-text":!0,"is-placeholder":!(this.startDate||this.endDate)}},e),(this.startDate||this.endDate)&&a("button",{class:"clear-btn","aria-label":"Clear",onClick:this.handleClear},"×"),a("span",{class:"calendar-icon","aria-hidden":"true"},a("tttx-
|
|
1
|
+
import{r as e,c as t,h as a,H as n}from"./p-c2a82822.js";const i=class{constructor(a){e(this,a),this.dateRangeChanged=t(this,"dateRangeChanged",7),this.handleOutsideClick=e=>{this.showCalendar&&this.inputRef&&!this.inputRef.contains(e.target)&&(this.showCalendar=!1)},this.toggleCalendar=()=>{this.showCalendar=!this.showCalendar},this.handleInputClick=e=>{e.stopPropagation(),this.toggleCalendar()},this.handleClear=e=>{e.stopPropagation(),this.resetRange()},this.initialValue=void 0,this.placeholderText="dd/mm/yyyy - dd/mm/yyyy",this.showCalendar=!1,this.startDate="",this.endDate="",this.currentMonth=(new Date).getMonth(),this.currentYear=(new Date).getFullYear(),this.isSelecting=!0,this.hoverDate=""}componentDidLoad(){document.addEventListener("click",this.handleOutsideClick)}disconnectedCallback(){document.removeEventListener("click",this.handleOutsideClick)}componentWillLoad(){this.initializeRangeFromProp()}watchInitialValue(){this.initializeRangeFromProp()}initializeRangeFromProp(){let e="",t="";if("string"==typeof this.initialValue)try{const a=JSON.parse(this.initialValue);e=a.start,t=a.end}catch(e){console.error("Invalid JSON passed to initialValue")}else"object"==typeof this.initialValue&&null!==this.initialValue&&(e=this.initialValue.start,t=this.initialValue.end);e&&e.includes("/")&&(e=this.parseDDMMYYYYToISO(e)),t&&t.includes("/")&&(t=this.parseDDMMYYYYToISO(t)),e&&(this.startDate=e),t&&(this.endDate=t),(e||t)&&this.emitRangeChange(e,t)}resetRange(){this.startDate="",this.endDate="",this.isSelecting=!0,this.emitRangeChange("","")}emitRangeChange(e,t){const a=e?this.formatToDDMMYYYY(e):"",n=t?this.formatToDDMMYYYY(t):"";this.dateRangeChanged.emit({name:"customDateRange",value:{start:a,end:n}})}handleDateClick(e){const t=new Date(e);this.isSelecting?(this.startDate=e,this.endDate="",this.hoverDate="",this.emitRangeChange(this.startDate,""),this.isSelecting=!1):t>=new Date(this.startDate)?(this.endDate=e,this.emitRangeChange(this.startDate,this.endDate),this.showCalendar=!1,this.isSelecting=!0,this.hoverDate=""):(this.startDate=e,this.endDate="",this.hoverDate="",this.emitRangeChange(this.startDate,""))}changeMonth(e){"prev"===e?(this.currentMonth=0===this.currentMonth?11:this.currentMonth-1,this.currentYear=11===this.currentMonth?this.currentYear-1:this.currentYear):(this.currentMonth=11===this.currentMonth?0:this.currentMonth+1,this.currentYear=0===this.currentMonth?this.currentYear+1:this.currentYear)}formatToDDMMYYYY(e){const t=new Date(e);return`${String(t.getDate()).padStart(2,"0")}/${String(t.getMonth()+1).padStart(2,"0")}/${t.getFullYear()}`}parseDDMMYYYYToISO(e){const[t,a,n]=e.split("/");return new Date(`${n}-${a}-${t}`).toISOString().split("T")[0]}generateCalendarGrid(e,t){const a=new Date(e,t,1).getDay(),n=new Date(e,t+1,0).getDate(),i=[];for(let e=0;e<a;e++)i.push({date:null,isCurrentMonth:!1});for(let a=1;a<=n;a++){const n=new Date(e,t,a),r=n.getFullYear(),s=String(n.getMonth()+1).padStart(2,"0"),o=String(n.getDate()).padStart(2,"0");i.push({date:`${r}-${s}-${o}`,isCurrentMonth:!0})}for(;i.length<42;)i.push({date:null,isCurrentMonth:!1});return i}getMonthName(e){return new Date(2e3,e).toLocaleString("default",{month:"long"})}renderCalendar(e,t,n){const i=this.generateCalendarGrid(e,t);return a("div",{class:"calendar"},a("div",{class:"calendar-header"},a("button",{class:"nav-btn",onClick:e=>{e.stopPropagation(),this.changeMonth("prev")}},"<"),a("span",{class:"month-label"},this.getMonthName(t)," ",e),a("button",{class:"nav-btn",onClick:e=>{e.stopPropagation(),this.changeMonth("next")}},">")),a("div",{class:"calendar-grid"},["Su","Mo","Tu","We","Th","Fr","Sa"].map((e=>a("div",{class:"calendar-weekday",key:e},e))),i.map(((e,t)=>{var r;if(!e.isCurrentMonth||!e.date)return a("div",{class:"calendar-date empty",key:`empty-${t}`,onClick:e=>e.stopPropagation()});const s=e.date,o=s===this.startDate,d=s===this.endDate,l=this.startDate&&this.endDate&&new Date(s)>new Date(this.startDate)&&new Date(s)<new Date(this.endDate),h=this.startDate&&!this.endDate&&this.hoverDate&&new Date(s)>new Date(this.startDate)&&new Date(s)<=new Date(this.hoverDate),c=null===(r=i[t-1])||void 0===r?void 0:r.date,p=h&&(0===t||!c||this.startDate&&new Date(c)<new Date(this.startDate));return a("div",{class:{"calendar-date":!0,"range-start":o,"range-end":d,inrange:l,hoverrange:h,"range-hover-start":p,"range-hover-end":h&&s===this.hoverDate},onClick:e=>{e.stopPropagation(),n(s)},onMouseEnter:()=>{!this.isSelecting&&this.startDate&&(this.hoverDate=s)},onMouseLeave:()=>{this.hoverDate=""},key:s},new Date(s).getDate())}))))}render(){const e=this.startDate&&this.endDate?`${this.formatToDDMMYYYY(this.startDate)} – ${this.formatToDDMMYYYY(this.endDate)}`:this.startDate?`${this.formatToDDMMYYYY(this.startDate)} –`:this.placeholderText;return a(n,null,a("div",{class:"date-range-input",tabIndex:0,"aria-haspopup":"dialog","aria-expanded":this.showCalendar?"true":"false",ref:e=>this.inputRef=e,onClick:this.handleInputClick},a("span",{class:{"range-text":!0,"is-placeholder":!(this.startDate||this.endDate)}},e),(this.startDate||this.endDate)&&a("button",{class:"clear-btn","aria-label":"Clear",onClick:this.handleClear},"×"),a("span",{class:"calendar-icon","aria-hidden":"true"},a("tttx-icon_1_9_65",{icon:"calendar_month"}))),this.showCalendar&&a("div",{class:"calendar-popup single"},this.renderCalendar(this.currentYear,this.currentMonth,this.handleDateClick.bind(this))))}static get watchers(){return{initialValue:["watchInitialValue"]}}};i.style=':host{display:block;position:relative;font-family:sans-serif}.date-range-input{display:inline-flex;align-items:center;justify-content:space-between;border:1px solid #ccc;padding:8px 4px;border-radius:4px;cursor:pointer;background:white;min-width:220px;width:100%;font-size:14px}.date-range-input .range-text{flex:1;color:#333;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:left;font-size:15px;padding-left:5px}.date-range-input .range-text.is-placeholder{padding-left:10px;font-size:15px;font-weight:500;color:#212121}.date-range-input .clear-btn{background:none;border:none;font-size:16px;color:#888;margin-left:8px;cursor:pointer}.date-range-input .clear-btn:hover{color:#333}.date-range-input .calendar-icon{margin-left:8px;display:flex;align-items:center;margin-right:5px}.calendar-popup{position:absolute;z-index:1000;top:calc(100% + 4px);left:0;background:white;border:1px solid #ccc;padding:8px 4px;border-radius:4px;box-shadow:0 4px 12px rgba(0, 0, 0, 0.1);width:auto;min-width:260px}.calendar-popup.single{display:flex;flex-direction:column}.calendar{display:flex;flex-direction:column;width:100%}.calendar .calendar-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:0.5em}.calendar .calendar-header .nav-btn{background:none;border:none;cursor:pointer;font-size:16px;padding:0 8px;color:#333}.calendar .calendar-header .nav-btn:hover{color:#1479c6}.calendar .calendar-header .month-label{font-weight:bold;font-size:14px;color:#333}.calendar .calendar-grid{display:grid;grid-template-columns:repeat(7, 1fr);gap:4px}.calendar .calendar-grid .calendar-weekday{font-weight:bold;text-align:center;font-size:12px;padding-bottom:4px;color:#666}.calendar .calendar-grid .calendar-date{text-align:center;padding:0.5em;border-radius:4px;font-size:14px;cursor:pointer;transition:background 0.2s ease;color:#333}.calendar .calendar-grid .calendar-date:hover{background-color:#f0f0f0}.calendar .calendar-grid .calendar-date.range-start,.calendar .calendar-grid .calendar-date.range-end,.calendar .calendar-grid .calendar-date.inrange{background-color:#1479c6;color:white;font-weight:bold}.calendar .calendar-grid .calendar-date.empty{background:transparent;cursor:default}.calendar .calendar-date.hoverrange{position:relative;z-index:1}.calendar .calendar-date.hoverrange::before{content:"";position:absolute;inset:0;border:1px dotted #bdbdbd;background-color:white;z-index:-1;pointer-events:none}.calendar .calendar-date.hoverrange.range-hover-start::before{border-top-left-radius:999px;border-bottom-left-radius:999px;left:0}.calendar .calendar-date.hoverrange.range-hover-end::before{border-top-right-radius:999px;border-bottom-right-radius:999px;right:0}.calendar .calendar-date.hoverrange:first-child{border-top-left-radius:50%;border-bottom-left-radius:50%}.calendar .calendar-date.hoverrange:last-child{border-top-right-radius:50%;border-bottom-right-radius:50%}';export{i as tttx_date_range_picker}
|