@3t-transform/threeteeui 1.9.62 → 1.9.64
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/{esm/tttx-graph_1_9_62.entry.js → cjs/auto-1fd7408f.js} +4 -130
- package/dist/cjs/{index-ec367fa3.js → index-1249dc08.js} +12 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{tttx-action-dropdown_1_9_62.cjs.entry.js → tttx-action-dropdown_1_9_64.cjs.entry.js} +3 -3
- package/dist/cjs/tttx-button-v2_1_9_64.cjs.entry.js +121 -0
- package/dist/cjs/{tttx-button_1_9_62.cjs.entry.js → tttx-button_1_9_64.cjs.entry.js} +3 -3
- package/dist/cjs/tttx-chart_1_9_64.cjs.entry.js +203 -0
- package/dist/cjs/{tttx-checkbox-group-caption_1_9_62.cjs.entry.js → tttx-checkbox-group-caption_1_9_64.cjs.entry.js} +2 -2
- package/dist/cjs/{tttx-checkbox-group-heading_1_9_62.cjs.entry.js → tttx-checkbox-group-heading_1_9_64.cjs.entry.js} +2 -2
- package/dist/cjs/{tttx-checkbox-group_1_9_62.cjs.entry.js → tttx-checkbox-group_1_9_64.cjs.entry.js} +2 -2
- package/dist/cjs/{tttx-checkbox_1_9_62.cjs.entry.js → tttx-checkbox_1_9_64.cjs.entry.js} +3 -3
- package/dist/cjs/{tttx-comments_1_9_62.cjs.entry.js → tttx-comments_1_9_64.cjs.entry.js} +5 -5
- package/dist/cjs/{tttx-data-pattern_1_9_62.cjs.entry.js → tttx-data-pattern_1_9_64.cjs.entry.js} +6 -6
- package/dist/cjs/{tttx-datacard_1_9_62.cjs.entry.js → tttx-datacard_1_9_64.cjs.entry.js} +5 -5
- package/dist/cjs/tttx-date-range-picker.cjs.entry.js +2 -2
- package/dist/cjs/{tttx-dialog-box_1_9_62.cjs.entry.js → tttx-dialog-box_1_9_64.cjs.entry.js} +4 -4
- package/dist/cjs/{tttx-dialog_1_9_62.cjs.entry.js → tttx-dialog_1_9_64.cjs.entry.js} +3 -3
- package/dist/cjs/{tttx-expander_1_9_62.cjs.entry.js → tttx-expander_1_9_64.cjs.entry.js} +3 -3
- package/dist/cjs/{tttx-filter_1_9_62_4.cjs.entry.js → tttx-filter_1_9_64_4.cjs.entry.js} +10 -10
- package/dist/cjs/{tttx-form_1_9_62.cjs.entry.js → tttx-form_1_9_64.cjs.entry.js} +3 -3
- package/dist/cjs/tttx-graph_1_9_64.cjs.entry.js +136 -0
- package/dist/cjs/{tttx-icon_1_9_62.cjs.entry.js → tttx-icon_1_9_64.cjs.entry.js} +2 -2
- package/dist/cjs/{tttx-keyvalue-block_1_9_62.cjs.entry.js → tttx-keyvalue-block_1_9_64.cjs.entry.js} +2 -2
- package/dist/cjs/{tttx-loading-spinner_1_9_62_3.cjs.entry.js → tttx-loading-spinner_1_9_64_3.cjs.entry.js} +7 -7
- package/dist/cjs/{tttx-multiselect-box_1_9_62.cjs.entry.js → tttx-multiselect-box_1_9_64.cjs.entry.js} +8 -8
- package/dist/cjs/{tttx-percentage-bar_1_9_62.cjs.entry.js → tttx-percentage-bar_1_9_64.cjs.entry.js} +3 -3
- package/dist/cjs/{tttx-qrcode_1_9_62.cjs.entry.js → tttx-qrcode_1_9_64.cjs.entry.js} +2 -2
- package/dist/cjs/{tttx-select-box_1_9_62.cjs.entry.js → tttx-select-box_1_9_64.cjs.entry.js} +7 -7
- package/dist/cjs/{tttx-skeleton_loader_1_9_62.cjs.entry.js → tttx-skeleton_loader_1_9_64.cjs.entry.js} +2 -2
- package/dist/cjs/{tttx-table_1_9_62.cjs.entry.js → tttx-table_1_9_64.cjs.entry.js} +2 -2
- package/dist/cjs/{tttx-tabs_1_9_62.cjs.entry.js → tttx-tabs_1_9_64.cjs.entry.js} +5 -5
- package/dist/cjs/{tttx-textarea_1_9_62.cjs.entry.js → tttx-textarea_1_9_64.cjs.entry.js} +3 -3
- package/dist/cjs/{tttx-toggle_1_9_62.cjs.entry.js → tttx-toggle_1_9_64.cjs.entry.js} +2 -2
- package/dist/cjs/{tttx-tree-view_1_9_62.cjs.entry.js → tttx-tree-view_1_9_64.cjs.entry.js} +4 -4
- package/dist/cjs/tttx.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +2 -0
- 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 +286 -0
- package/dist/collection/components/atoms/tttx-button-v2/tttx-button-v2.js +386 -0
- package/dist/collection/components/atoms/tttx-button-v2/tttx-button-v2.stories.js +197 -0
- 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.css +61 -0
- package/dist/collection/components/molecules/tttx-chart/tttx-chart.js +383 -0
- package/dist/collection/components/molecules/tttx-chart/tttx-chart.stories.js +112 -0
- 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/{cjs/tttx-graph_1_9_62.cjs.entry.js → components/auto.js} +1 -135
- package/dist/components/index.d.ts +35 -33
- package/dist/components/index.js +35 -33
- package/dist/components/tttx-action-dropdown_1_9_64.d.ts +11 -0
- package/dist/components/{tttx-action-dropdown_1_9_62.js → tttx-action-dropdown_1_9_64.js} +7 -7
- package/dist/components/{tttx-comments_1_9_62.d.ts → tttx-button-v2_1_9_64.d.ts} +4 -4
- package/dist/components/tttx-button-v2_1_9_64.js +156 -0
- package/dist/components/tttx-button.js +5 -5
- package/dist/components/{tttx-dialog_1_9_62.d.ts → tttx-button_1_9_64.d.ts} +4 -4
- package/dist/components/{tttx-button_1_9_62.js → tttx-button_1_9_64.js} +2 -2
- package/dist/components/{tttx-graph_1_9_62.d.ts → tttx-chart_1_9_64.d.ts} +4 -4
- package/dist/components/tttx-chart_1_9_64.js +247 -0
- package/dist/components/tttx-checkbox-group-caption_1_9_64.d.ts +11 -0
- package/dist/components/{tttx-checkbox-group-caption_1_9_62.js → tttx-checkbox-group-caption_1_9_64.js} +5 -5
- package/dist/components/tttx-checkbox-group-heading_1_9_64.d.ts +11 -0
- package/dist/components/{tttx-checkbox-group-heading_1_9_62.js → tttx-checkbox-group-heading_1_9_64.js} +5 -5
- package/dist/components/tttx-checkbox-group_1_9_64.d.ts +11 -0
- package/dist/components/{tttx-checkbox-group_1_9_62.js → tttx-checkbox-group_1_9_64.js} +5 -5
- package/dist/components/{tttx-datacard_1_9_62.d.ts → tttx-checkbox_1_9_64.d.ts} +4 -4
- package/dist/components/{tttx-checkbox_1_9_62.js → tttx-checkbox_1_9_64.js} +7 -7
- package/dist/components/{tttx-checkbox_1_9_62.d.ts → tttx-comments_1_9_64.d.ts} +4 -4
- package/dist/components/{tttx-comments_1_9_62.js → tttx-comments_1_9_64.js} +9 -9
- package/dist/components/tttx-data-pattern_1_9_64.d.ts +11 -0
- package/dist/components/{tttx-data-pattern_1_9_62.js → tttx-data-pattern_1_9_64.js} +16 -16
- package/dist/components/tttx-datacard_1_9_64.d.ts +11 -0
- package/dist/components/{tttx-datacard_1_9_62.js → tttx-datacard_1_9_64.js} +10 -10
- package/dist/components/tttx-date-range-picker.js +3 -3
- package/dist/components/tttx-dialog-box_1_9_64.d.ts +11 -0
- package/dist/components/{tttx-dialog-box_1_9_62.js → tttx-dialog-box_1_9_64.js} +9 -9
- package/dist/components/{tttx-button_1_9_62.d.ts → tttx-dialog_1_9_64.d.ts} +4 -4
- package/dist/components/{tttx-dialog_1_9_62.js → tttx-dialog_1_9_64.js} +8 -8
- package/dist/components/tttx-expander_1_9_64.d.ts +11 -0
- package/dist/components/{tttx-expander_1_9_62.js → tttx-expander_1_9_64.js} +7 -7
- package/dist/components/tttx-filter.js +6 -6
- package/dist/components/{tttx-filter_1_9_62.d.ts → tttx-filter_1_9_64.d.ts} +4 -4
- package/dist/components/{tttx-filter_1_9_62.js → tttx-filter_1_9_64.js} +2 -2
- package/dist/components/{tttx-tabs_1_9_62.d.ts → tttx-form_1_9_64.d.ts} +4 -4
- package/dist/components/{tttx-form_1_9_62.js → tttx-form_1_9_64.js} +11 -11
- package/dist/components/tttx-graph.js +4 -14783
- package/dist/components/{tttx-table_1_9_62.d.ts → tttx-graph_1_9_64.d.ts} +4 -4
- package/dist/components/{tttx-graph_1_9_62.js → tttx-graph_1_9_64.js} +2 -2
- package/dist/components/tttx-icon.js +3 -3
- package/dist/components/{tttx-icon_1_9_62.d.ts → tttx-icon_1_9_64.d.ts} +4 -4
- package/dist/components/{tttx-icon_1_9_62.js → tttx-icon_1_9_64.js} +2 -2
- package/dist/components/tttx-keyvalue-block_1_9_64.d.ts +11 -0
- package/dist/components/{tttx-keyvalue-block_1_9_62.js → tttx-keyvalue-block_1_9_64.js} +5 -5
- package/dist/components/tttx-list.js +6 -6
- package/dist/components/{tttx-list_1_9_62.d.ts → tttx-list_1_9_64.d.ts} +4 -4
- package/dist/components/{tttx-list_1_9_62.js → tttx-list_1_9_64.js} +2 -2
- package/dist/components/tttx-loading-spinner.js +3 -3
- package/dist/components/tttx-loading-spinner_1_9_64.d.ts +11 -0
- package/dist/components/{tttx-loading-spinner_1_9_62.js → tttx-loading-spinner_1_9_64.js} +2 -2
- package/dist/components/tttx-multiselect-box_1_9_64.d.ts +11 -0
- package/dist/components/{tttx-multiselect-box_1_9_62.js → tttx-multiselect-box_1_9_64.js} +16 -16
- package/dist/components/tttx-percentage-bar_1_9_64.d.ts +11 -0
- package/dist/components/{tttx-percentage-bar_1_9_62.js → tttx-percentage-bar_1_9_64.js} +6 -6
- package/dist/components/{tttx-qrcode_1_9_62.d.ts → tttx-qrcode_1_9_64.d.ts} +4 -4
- package/dist/components/{tttx-qrcode_1_9_62.js → tttx-qrcode_1_9_64.js} +5 -5
- package/dist/components/tttx-select-box.js +12 -12
- package/dist/components/tttx-select-box_1_9_64.d.ts +11 -0
- package/dist/components/{tttx-select-box_1_9_62.js → tttx-select-box_1_9_64.js} +2 -2
- package/dist/components/tttx-skeleton_loader_1_9_64.d.ts +11 -0
- package/dist/components/{tttx-skeleton_loader_1_9_62.js → tttx-skeleton_loader_1_9_64.js} +5 -5
- package/dist/components/tttx-sorter.js +5 -5
- package/dist/components/tttx-sorter_1_9_64.d.ts +11 -0
- package/dist/components/{tttx-sorter_1_9_62.js → tttx-sorter_1_9_64.js} +2 -2
- package/dist/components/tttx-standalone-input.js +6 -6
- package/dist/components/tttx-standalone-input_1_9_64.d.ts +11 -0
- package/dist/components/{tttx-standalone-input_1_9_62.js → tttx-standalone-input_1_9_64.js} +2 -2
- package/dist/components/tttx-table_1_9_64.d.ts +11 -0
- package/dist/components/{tttx-table_1_9_62.js → tttx-table_1_9_64.js} +5 -5
- package/dist/components/{tttx-form_1_9_62.d.ts → tttx-tabs_1_9_64.d.ts} +4 -4
- package/dist/components/{tttx-tabs_1_9_62.js → tttx-tabs_1_9_64.js} +9 -9
- package/dist/components/tttx-tag.js +5 -5
- package/dist/components/{tttx-tag_1_9_62.d.ts → tttx-tag_1_9_64.d.ts} +4 -4
- package/dist/components/{tttx-tag_1_9_62.js → tttx-tag_1_9_64.js} +2 -2
- package/dist/components/tttx-textarea_1_9_64.d.ts +11 -0
- package/dist/components/{tttx-textarea_1_9_62.js → tttx-textarea_1_9_64.js} +6 -6
- package/dist/components/tttx-toggle_1_9_64.d.ts +11 -0
- package/dist/components/{tttx-toggle_1_9_62.js → tttx-toggle_1_9_64.js} +5 -5
- package/dist/components/tttx-toolbar.js +3 -3
- package/dist/components/tttx-toolbar_1_9_64.d.ts +11 -0
- package/dist/components/{tttx-toolbar_1_9_62.js → tttx-toolbar_1_9_64.js} +2 -2
- package/dist/components/tttx-tree-view_1_9_64.d.ts +11 -0
- package/dist/components/{tttx-tree-view_1_9_62.js → tttx-tree-view_1_9_64.js} +9 -9
- package/dist/esm/auto-c6e6ac5c.js +14781 -0
- package/dist/esm/{index-3d473f8b.js → index-6b9af9c9.js} +12 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{tttx-action-dropdown_1_9_62.entry.js → tttx-action-dropdown_1_9_64.entry.js} +3 -3
- package/dist/esm/tttx-button-v2_1_9_64.entry.js +117 -0
- package/dist/esm/{tttx-button_1_9_62.entry.js → tttx-button_1_9_64.entry.js} +3 -3
- package/dist/esm/tttx-chart_1_9_64.entry.js +199 -0
- package/dist/esm/{tttx-checkbox-group-caption_1_9_62.entry.js → tttx-checkbox-group-caption_1_9_64.entry.js} +2 -2
- package/dist/esm/{tttx-checkbox-group-heading_1_9_62.entry.js → tttx-checkbox-group-heading_1_9_64.entry.js} +2 -2
- package/dist/esm/{tttx-checkbox-group_1_9_62.entry.js → tttx-checkbox-group_1_9_64.entry.js} +2 -2
- package/dist/esm/{tttx-checkbox_1_9_62.entry.js → tttx-checkbox_1_9_64.entry.js} +3 -3
- package/dist/esm/{tttx-comments_1_9_62.entry.js → tttx-comments_1_9_64.entry.js} +5 -5
- package/dist/esm/{tttx-data-pattern_1_9_62.entry.js → tttx-data-pattern_1_9_64.entry.js} +6 -6
- package/dist/esm/{tttx-datacard_1_9_62.entry.js → tttx-datacard_1_9_64.entry.js} +5 -5
- package/dist/esm/tttx-date-range-picker.entry.js +2 -2
- package/dist/esm/{tttx-dialog-box_1_9_62.entry.js → tttx-dialog-box_1_9_64.entry.js} +4 -4
- package/dist/esm/{tttx-dialog_1_9_62.entry.js → tttx-dialog_1_9_64.entry.js} +3 -3
- package/dist/esm/{tttx-expander_1_9_62.entry.js → tttx-expander_1_9_64.entry.js} +3 -3
- package/dist/esm/{tttx-filter_1_9_62_4.entry.js → tttx-filter_1_9_64_4.entry.js} +7 -7
- package/dist/esm/{tttx-form_1_9_62.entry.js → tttx-form_1_9_64.entry.js} +3 -3
- package/dist/esm/tttx-graph_1_9_64.entry.js +132 -0
- package/dist/esm/{tttx-icon_1_9_62.entry.js → tttx-icon_1_9_64.entry.js} +2 -2
- package/dist/esm/{tttx-keyvalue-block_1_9_62.entry.js → tttx-keyvalue-block_1_9_64.entry.js} +2 -2
- package/dist/esm/{tttx-loading-spinner_1_9_62_3.entry.js → tttx-loading-spinner_1_9_64_3.entry.js} +5 -5
- package/dist/esm/{tttx-multiselect-box_1_9_62.entry.js → tttx-multiselect-box_1_9_64.entry.js} +8 -8
- package/dist/esm/{tttx-percentage-bar_1_9_62.entry.js → tttx-percentage-bar_1_9_64.entry.js} +3 -3
- package/dist/esm/{tttx-qrcode_1_9_62.entry.js → tttx-qrcode_1_9_64.entry.js} +2 -2
- package/dist/esm/{tttx-select-box_1_9_62.entry.js → tttx-select-box_1_9_64.entry.js} +7 -7
- package/dist/esm/{tttx-skeleton_loader_1_9_62.entry.js → tttx-skeleton_loader_1_9_64.entry.js} +2 -2
- package/dist/esm/{tttx-table_1_9_62.entry.js → tttx-table_1_9_64.entry.js} +2 -2
- package/dist/esm/{tttx-tabs_1_9_62.entry.js → tttx-tabs_1_9_64.entry.js} +5 -5
- package/dist/esm/{tttx-textarea_1_9_62.entry.js → tttx-textarea_1_9_64.entry.js} +3 -3
- package/dist/esm/{tttx-toggle_1_9_62.entry.js → tttx-toggle_1_9_64.entry.js} +2 -2
- package/dist/esm/{tttx-tree-view_1_9_62.entry.js → tttx-tree-view_1_9_64.entry.js} +4 -4
- package/dist/esm/tttx.js +3 -3
- package/dist/tttx/{p-477b66de.entry.js → p-04acb4f7.entry.js} +1 -1
- package/dist/tttx/{p-f1e945ba.entry.js → p-1b8af0a1.entry.js} +1 -1
- package/dist/tttx/p-1c0db631.entry.js +1 -0
- package/dist/tttx/{p-b44ddcb7.entry.js → p-210a3640.entry.js} +1 -1
- package/dist/tttx/{p-7bfa4e1e.entry.js → p-28528c3a.entry.js} +1 -1
- package/dist/tttx/{p-1814eb61.entry.js → p-28902955.entry.js} +1 -1
- package/dist/tttx/{p-bc8c1d08.entry.js → p-2a6e57b3.entry.js} +1 -1
- package/dist/tttx/p-39bb618e.js +19 -0
- package/dist/tttx/{p-d62c8ed2.entry.js → p-46853736.entry.js} +1 -1
- package/dist/tttx/{p-a800aa5d.entry.js → p-46933761.entry.js} +1 -1
- package/dist/tttx/{p-a1ba99fb.entry.js → p-46985553.entry.js} +1 -1
- package/dist/tttx/{p-cb3b393b.entry.js → p-478169f8.entry.js} +1 -1
- package/dist/tttx/{p-b4b5e1e1.entry.js → p-4bc84dcf.entry.js} +1 -1
- package/dist/tttx/{p-54060e46.entry.js → p-4e8dee24.entry.js} +1 -1
- package/dist/tttx/p-655cebb7.entry.js +1 -0
- package/dist/tttx/{p-2636cba4.entry.js → p-6ae828ed.entry.js} +1 -1
- package/dist/tttx/{p-24eef142.entry.js → p-72aa3209.entry.js} +1 -1
- package/dist/tttx/p-753a802a.entry.js +1 -0
- package/dist/tttx/{p-13d3d63c.entry.js → p-79a18842.entry.js} +1 -1
- package/dist/tttx/{p-218f3309.entry.js → p-8db27f20.entry.js} +1 -1
- package/dist/tttx/{p-972b7449.entry.js → p-92b48e8e.entry.js} +1 -1
- package/dist/tttx/{p-8be90d8a.entry.js → p-95ea704b.entry.js} +1 -1
- package/dist/tttx/{p-edf27c73.entry.js → p-964b5e1a.entry.js} +1 -1
- package/dist/tttx/{p-e84965f0.entry.js → p-99cee169.entry.js} +1 -1
- package/dist/tttx/{p-a474dc05.entry.js → p-a380f600.entry.js} +1 -1
- package/dist/tttx/{p-2b0fc913.js → p-c2a82822.js} +1 -1
- package/dist/tttx/{p-fac3056d.entry.js → p-ce6a69bc.entry.js} +1 -1
- package/dist/tttx/{p-61af5028.entry.js → p-cfc7f861.entry.js} +1 -1
- package/dist/tttx/{p-19294325.entry.js → p-e0bd4daa.entry.js} +1 -1
- package/dist/tttx/{p-67f75171.entry.js → p-e7c92d26.entry.js} +1 -1
- package/dist/tttx/{p-acb9e007.entry.js → p-e8d02dd3.entry.js} +1 -1
- package/dist/tttx/{p-5f35edd8.entry.js → p-eda88cd9.entry.js} +1 -1
- package/dist/tttx/{p-7c7e8951.entry.js → p-ffb09d64.entry.js} +1 -1
- package/dist/tttx/tttx.esm.js +1 -1
- package/dist/types/components/atoms/tttx-button-v2/tttx-button-v2.d.ts +32 -0
- package/dist/types/components/atoms/tttx-button-v2/tttx-button-v2.stories.d.ts +64 -0
- package/dist/types/components/molecules/tttx-chart/tttx-chart.d.ts +42 -0
- package/dist/types/components/molecules/tttx-chart/tttx-chart.stories.d.ts +11 -0
- 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 +490 -395
- package/package.json +1 -1
- package/dist/components/tttx-action-dropdown_1_9_62.d.ts +0 -11
- package/dist/components/tttx-checkbox-group-caption_1_9_62.d.ts +0 -11
- package/dist/components/tttx-checkbox-group-heading_1_9_62.d.ts +0 -11
- package/dist/components/tttx-checkbox-group_1_9_62.d.ts +0 -11
- package/dist/components/tttx-data-pattern_1_9_62.d.ts +0 -11
- package/dist/components/tttx-dialog-box_1_9_62.d.ts +0 -11
- package/dist/components/tttx-expander_1_9_62.d.ts +0 -11
- package/dist/components/tttx-keyvalue-block_1_9_62.d.ts +0 -11
- package/dist/components/tttx-loading-spinner_1_9_62.d.ts +0 -11
- package/dist/components/tttx-multiselect-box_1_9_62.d.ts +0 -11
- package/dist/components/tttx-percentage-bar_1_9_62.d.ts +0 -11
- package/dist/components/tttx-select-box_1_9_62.d.ts +0 -11
- package/dist/components/tttx-skeleton_loader_1_9_62.d.ts +0 -11
- package/dist/components/tttx-sorter_1_9_62.d.ts +0 -11
- package/dist/components/tttx-standalone-input_1_9_62.d.ts +0 -11
- package/dist/components/tttx-textarea_1_9_62.d.ts +0 -11
- package/dist/components/tttx-toggle_1_9_62.d.ts +0 -11
- package/dist/components/tttx-toolbar_1_9_62.d.ts +0 -11
- package/dist/components/tttx-tree-view_1_9_62.d.ts +0 -11
- package/dist/tttx/p-bbecd0d9.entry.js +0 -19
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
let e,t,n,l=!1,o=!1,s=!1,i=!1;const r=e=>{const t=new URL(e,pe.t);return t.origin!==$e.location.origin?t.href:t.pathname},c="http://www.w3.org/1999/xlink",f={},u=e=>"object"==(e=typeof e)||"function"===e;function a(e){var t,n,l;return null!==(l=null===(n=null===(t=e.head)||void 0===t?void 0:t.querySelector('meta[name="csp-nonce"]'))||void 0===n?void 0:n.getAttribute("content"))&&void 0!==l?l:void 0}const d=(e,t,...n)=>{let l=null,o=null,s=null,i=!1,r=!1;const c=[],f=t=>{for(let n=0;n<t.length;n++)l=t[n],Array.isArray(l)?f(l):null!=l&&"boolean"!=typeof l&&((i="function"!=typeof e&&!u(l))&&(l+=""),i&&r?c[c.length-1].l+=l:c.push(i?$(null,l):l),r=i)};if(f(n),t){t.key&&(o=t.key),t.name&&(s=t.name);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}if("function"==typeof e)return e(null===t?{}:t,c,p);const a=$(e,null);return a.o=t,c.length>0&&(a.i=c),a.u=o,a.$=s,a},$=(e,t)=>({m:0,p:e,l:t,h:null,i:null,o:null,u:null,$:null}),m={},p={forEach:(e,t)=>e.map(y).forEach(t),map:(e,t)=>e.map(y).map(t).map(h)},y=e=>({vattrs:e.o,vchildren:e.i,vkey:e.u,vname:e.$,vtag:e.p,vtext:e.l}),h=e=>{if("function"==typeof e.vtag){const t=Object.assign({},e.vattrs);return e.vkey&&(t.key=e.vkey),e.vname&&(t.name=e.vname),d(e.vtag,t,...e.vchildren||[])}const t=$(e.vtag,e.vtext);return t.o=e.vattrs,t.i=e.vchildren,t.u=e.vkey,t.$=e.vname,t},b=e=>se(e).v,v=(e,t,n)=>{const l=b(e);return{emit:e=>w(l,t,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:e})}},w=(e,t,n)=>{const l=pe.ce(t,n);return e.dispatchEvent(l),l},k=new WeakMap,g=e=>"sc-"+e.k,S=(e,t,n,l,o,s)=>{if(n!==l){let i=ce(e,t),r=t.toLowerCase();if("class"===t){const t=e.classList,o=M(n),s=M(l);t.remove(...o.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!o.includes(e))))}else if("style"===t){for(const t in n)l&&null!=l[t]||(t.includes("-")?e.style.removeProperty(t):e.style[t]="");for(const t in l)n&&l[t]===n[t]||(t.includes("-")?e.style.setProperty(t,l[t]):e.style[t]=l[t])}else if("key"===t);else if("ref"===t)l&&l(e);else if(i||"o"!==t[0]||"n"!==t[1]){const f=u(l);if((i||f&&null!==l)&&!o)try{if(e.tagName.includes("-"))e[t]=l;else{const o=null==l?"":l;"list"===t?i=!1:null!=n&&e[t]==o||(e[t]=o)}}catch(e){}let a=!1;r!==(r=r.replace(/^xlink\:?/,""))&&(t=r,a=!0),null==l||!1===l?!1===l&&""!==e.getAttribute(t)||(a?e.removeAttributeNS(c,t):e.removeAttribute(t)):(!i||4&s||o)&&!f&&(l=!0===l?"":l,a?e.setAttributeNS(c,t,l):e.setAttribute(t,l))}else t="-"===t[2]?t.slice(3):ce($e,r)?r.slice(2):r[2]+t.slice(3),n&&pe.rel(e,t,n,!1),l&&pe.ael(e,t,l,!1)}},j=/\s/,M=e=>e?e.split(j):[],O=(e,t,n,l)=>{const o=11===t.h.nodeType&&t.h.host?t.h.host:t.h,s=e&&e.o||f,i=t.o||f;for(l in s)l in i||S(o,l,s[l],void 0,n,t.m);for(l in i)S(o,l,s[l],i[l],n,t.m)},R=(o,i,r,c)=>{const f=i.i[r];let u,a,d,$=0;if(l||(s=!0,"slot"===f.p&&(e&&c.classList.add(e+"-s"),f.m|=f.i?2:1)),null!==f.l)u=f.h=me.createTextNode(f.l);else if(1&f.m)u=f.h=me.createTextNode("");else if(u=f.h=me.createElement(2&f.m?"slot-fb":f.p),O(null,f,!1),null!=e&&u["s-si"]!==e&&u.classList.add(u["s-si"]=e),f.i)for($=0;$<f.i.length;++$)a=R(o,f,$,u),a&&u.appendChild(a);return u["s-hn"]=n,3&f.m&&(u["s-sr"]=!0,u["s-cr"]=t,u["s-sn"]=f.$||"",d=o&&o.i&&o.i[r],d&&d.p===f.p&&o.h&&x(o.h,!1)),u},x=(e,t)=>{pe.m|=1;const l=e.childNodes;for(let e=l.length-1;e>=0;e--){const o=l[e];o["s-hn"]!==n&&o["s-ol"]&&(E(o).insertBefore(o,T(o)),o["s-ol"].remove(),o["s-ol"]=void 0,s=!0),t&&x(o,t)}pe.m&=-2},C=(e,t,l,o,s,i)=>{let r,c=e["s-cr"]&&e["s-cr"].parentNode||e;for(c.shadowRoot&&c.tagName===n&&(c=c.shadowRoot);s<=i;++s)o[s]&&(r=R(null,l,s,e),r&&(o[s].h=r,c.insertBefore(r,T(t))))},L=(e,t,n,l,s)=>{for(;t<=n;++t)(l=e[t])&&(s=l.h,D(l),o=!0,s["s-ol"]?s["s-ol"].remove():x(s,!0),s.remove())},P=(e,t)=>e.p===t.p&&("slot"===e.p?e.$===t.$:e.u===t.u),T=e=>e&&e["s-ol"]||e,E=e=>(e["s-ol"]?e["s-ol"]:e).parentNode,N=(e,t)=>{const n=t.h=e.h,l=e.i,o=t.i,s=t.l;let i;null===s?("slot"===t.p||O(e,t,!1),null!==l&&null!==o?((e,t,n,l)=>{let o,s,i=0,r=0,c=0,f=0,u=t.length-1,a=t[0],d=t[u],$=l.length-1,m=l[0],p=l[$];for(;i<=u&&r<=$;)if(null==a)a=t[++i];else if(null==d)d=t[--u];else if(null==m)m=l[++r];else if(null==p)p=l[--$];else if(P(a,m))N(a,m),a=t[++i],m=l[++r];else if(P(d,p))N(d,p),d=t[--u],p=l[--$];else if(P(a,p))"slot"!==a.p&&"slot"!==p.p||x(a.h.parentNode,!1),N(a,p),e.insertBefore(a.h,d.h.nextSibling),a=t[++i],p=l[--$];else if(P(d,m))"slot"!==a.p&&"slot"!==p.p||x(d.h.parentNode,!1),N(d,m),e.insertBefore(d.h,a.h),d=t[--u],m=l[++r];else{for(c=-1,f=i;f<=u;++f)if(t[f]&&null!==t[f].u&&t[f].u===m.u){c=f;break}c>=0?(s=t[c],s.p!==m.p?o=R(t&&t[r],n,c,e):(N(s,m),t[c]=void 0,o=s.h),m=l[++r]):(o=R(t&&t[r],n,r,e),m=l[++r]),o&&E(a.h).insertBefore(o,T(a.h))}i>u?C(e,null==l[$+1]?null:l[$+1].h,n,l,r,$):r>$&&L(t,i,u)})(n,l,t,o):null!==o?(null!==e.l&&(n.textContent=""),C(n,null,t,o,0,o.length-1)):null!==l&&L(l,0,l.length-1)):(i=n["s-cr"])?i.parentNode.textContent=s:e.l!==s&&(n.data=s)},W=e=>{const t=e.childNodes;let n,l,o,s,i,r;for(l=0,o=t.length;l<o;l++)if(n=t[l],1===n.nodeType){if(n["s-sr"])for(i=n["s-sn"],n.hidden=!1,s=0;s<o;s++)if(r=t[s].nodeType,t[s]["s-hn"]!==n["s-hn"]||""!==i){if(1===r&&i===t[s].getAttribute("slot")){n.hidden=!0;break}}else if(1===r||3===r&&""!==t[s].textContent.trim()){n.hidden=!0;break}W(n)}},F=[],U=e=>{let t,n,l,s,i,r,c=0;const f=e.childNodes,u=f.length;for(;c<u;c++){if(t=f[c],t["s-sr"]&&(n=t["s-cr"])&&n.parentNode)for(l=n.parentNode.childNodes,s=t["s-sn"],r=l.length-1;r>=0;r--)n=l[r],n["s-cn"]||n["s-nr"]||n["s-hn"]===t["s-hn"]||(A(n,s)?(i=F.find((e=>e.g===n)),o=!0,n["s-sn"]=n["s-sn"]||s,i?i.S=t:F.push({S:t,g:n}),n["s-sr"]&&F.map((e=>{A(e.g,n["s-sn"])&&(i=F.find((e=>e.g===n)),i&&!e.S&&(e.S=i.S))}))):F.some((e=>e.g===n))||F.push({g:n}));1===t.nodeType&&U(t)}},A=(e,t)=>1===e.nodeType?null===e.getAttribute("slot")&&""===t||e.getAttribute("slot")===t:e["s-sn"]===t||""===t,D=e=>{e.o&&e.o.ref&&e.o.ref(null),e.i&&e.i.map(D)},H=(e,t)=>{t&&!e.j&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.j=t)))},q=(e,t)=>{if(e.m|=16,!(4&e.m))return H(e,e.M),je((()=>V(e,t)));e.m|=512},V=(e,t)=>{const n=e.O;let l;return t&&(e.m|=256,e.R&&(e.R.map((([e,t])=>I(n,e,t))),e.R=null),l=I(n,"componentWillLoad")),l=J(l,(()=>I(n,"componentWillRender"))),J(l,(()=>_(e,n,t)))},_=async(e,t,n)=>{const l=e.v,o=l["s-rc"];n&&(e=>{const t=e.C,n=e.v,l=t.m,o=((e,t)=>{var n;let l=g(t);const o=de.get(l);if(e=11===e.nodeType?e:me,o)if("string"==typeof o){let t,s=k.get(e=e.head||e);if(s||k.set(e,s=new Set),!s.has(l)){{t=me.createElement("style"),t.innerHTML=o;const l=null!==(n=pe.L)&&void 0!==n?n:a(me);null!=l&&t.setAttribute("nonce",l),e.insertBefore(t,e.querySelector("link"))}s&&s.add(l)}}else e.adoptedStyleSheets.includes(o)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,o]);return l})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&l&&(n["s-sc"]=o,n.classList.add(o+"-h"),2&l&&n.classList.add(o+"-s"))})(e);z(e,t),o&&(o.map((e=>e())),l["s-rc"]=void 0);{const t=l["s-p"],n=()=>B(e);0===t.length?n():(Promise.all(t).then(n),e.m|=4,t.length=0)}},z=(i,r)=>{try{r=r.render(),i.m&=-17,i.m|=2,((i,r)=>{const c=i.v,f=i.C,u=i.P||$(null,null),a=(e=>e&&e.p===m)(r)?r:d(null,null,r);if(n=c.tagName,a.p=null,a.m|=4,i.P=a,a.h=u.h=c.shadowRoot||c,e=c["s-sc"],t=c["s-cr"],l=0!=(1&f.m),o=!1,N(u,a),pe.m|=1,s){let e,t,n,l,o,s;U(a.h);let i=0;for(;i<F.length;i++)e=F[i],t=e.g,t["s-ol"]||(n=me.createTextNode(""),n["s-nr"]=t,t.parentNode.insertBefore(t["s-ol"]=n,t));for(i=0;i<F.length;i++)if(e=F[i],t=e.g,e.S){for(l=e.S.parentNode,o=e.S.nextSibling,n=t["s-ol"];n=n.previousSibling;)if(s=n["s-nr"],s&&s["s-sn"]===t["s-sn"]&&l===s.parentNode&&(s=s.nextSibling,!s||!s["s-nr"])){o=s;break}(!o&&l!==t.parentNode||t.nextSibling!==o)&&t!==o&&(!t["s-hn"]&&t["s-ol"]&&(t["s-hn"]=t["s-ol"].parentNode.nodeName),l.insertBefore(t,o))}else 1===t.nodeType&&(t.hidden=!0)}o&&W(a.h),pe.m&=-2,F.length=0})(i,r)}catch(e){fe(e,i.v)}return null},B=e=>{const t=e.v,n=e.O,l=e.M;I(n,"componentDidRender"),64&e.m||(e.m|=64,K(t),I(n,"componentDidLoad"),e.T(t),l||G()),e.N(t),e.j&&(e.j(),e.j=void 0),512&e.m&&Se((()=>q(e,!1))),e.m&=-517},G=()=>{K(me.documentElement),Se((()=>w($e,"appload",{detail:{namespace:"tttx"}})))},I=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){fe(e)}},J=(e,t)=>e&&e.then?e.then(t):t(),K=e=>e.classList.add("hydrated"),Q=(e,t,n)=>{if(t.W){e.watchers&&(t.F=e.watchers);const l=Object.entries(t.W),o=e.prototype;if(l.map((([e,[l]])=>{31&l||2&n&&32&l?Object.defineProperty(o,e,{get(){return((e,t)=>se(this).U.get(t))(0,e)},set(n){((e,t,n,l)=>{const o=se(e),s=o.v,i=o.U.get(t),r=o.m,c=o.O;if(n=((e,t)=>null==e||u(e)?e:4&t?"false"!==e&&(""===e||!!e):2&t?parseFloat(e):1&t?e+"":e)(n,l.W[t][0]),(!(8&r)||void 0===i)&&n!==i&&(!Number.isNaN(i)||!Number.isNaN(n))&&(o.U.set(t,n),c)){if(l.F&&128&r){const e=l.F[t];e&&e.map((e=>{try{c[e](n,i,t)}catch(e){fe(e,s)}}))}2==(18&r)&&q(o,!1)}})(this,e,n,t)},configurable:!0,enumerable:!0}):1&n&&64&l&&Object.defineProperty(o,e,{value(...t){const n=se(this);return n.A.then((()=>n.O[e](...t)))}})})),1&n){const t=new Map;o.attributeChangedCallback=function(e,n,l){pe.jmp((()=>{const n=t.get(e);if(this.hasOwnProperty(n))l=this[n],delete this[n];else if(o.hasOwnProperty(n)&&"number"==typeof this[n]&&this[n]==l)return;this[n]=(null!==l||"boolean"!=typeof this[n])&&l}))},e.observedAttributes=l.filter((([e,t])=>15&t[0])).map((([e,n])=>{const l=n[1]||e;return t.set(l,e),l}))}}return e},X=(e,t={})=>{var n;const l=[],o=t.exclude||[],s=$e.customElements,i=me.head,r=i.querySelector("meta[charset]"),c=me.createElement("style"),f=[];let u,d=!0;Object.assign(pe,t),pe.t=new URL(t.resourcesUrl||"./",me.baseURI).href,e.map((e=>{e[1].map((n=>{const i={m:n[0],k:n[1],W:n[2],D:n[3]};i.W=n[2],i.D=n[3],i.F={};const r=t.transformTagName?t.transformTagName(i.k):i.k,c=class extends HTMLElement{constructor(e){super(e),re(e=this,i),1&i.m&&e.attachShadow({mode:"open"})}connectedCallback(){u&&(clearTimeout(u),u=null),d?f.push(this):pe.jmp((()=>(e=>{if(0==(1&pe.m)){const t=se(e),n=t.C,l=()=>{};if(1&t.m)Z(e,t,n.D);else{t.m|=1,12&n.m&&(e=>{const t=e["s-cr"]=me.createComment("");t["s-cn"]=!0,e.insertBefore(t,e.firstChild)})(e);{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){H(t,t.M=n);break}}n.W&&Object.entries(n.W).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n,l,o)=>{if(0==(32&t.m)){{if(t.m|=32,(o=ae(n)).then){const e=()=>{};o=await o,e()}o.isProxied||(n.F=o.watchers,Q(o,n,2),o.isProxied=!0);const e=()=>{};t.m|=8;try{new o(t)}catch(e){fe(e)}t.m&=-9,t.m|=128,e()}if(o.style){let e=o.style;const t=g(n);if(!de.has(t)){const l=()=>{};((e,t,n)=>{let l=de.get(e);he&&n?(l=l||new CSSStyleSheet,"string"==typeof l?l=t:l.replaceSync(t)):l=t,de.set(e,l)})(t,e,!!(1&n.m)),l()}}}const s=t.M,i=()=>q(t,!0);s&&s["s-rc"]?s["s-rc"].push(i):i()})(0,t,n)}l()}})(this)))}disconnectedCallback(){pe.jmp((()=>(()=>{if(0==(1&pe.m)){const e=se(this),t=e.O;e.H&&(e.H.map((e=>e())),e.H=void 0),I(t,"disconnectedCallback")}})()))}componentOnReady(){return se(this).q}};i.V=e[0],o.includes(r)||s.get(r)||(l.push(r),s.define(r,Q(c,i,1)))}))}));{c.innerHTML=l+"{visibility:hidden}.hydrated{visibility:inherit}",c.setAttribute("data-styles","");const e=null!==(n=pe.L)&&void 0!==n?n:a(me);null!=e&&c.setAttribute("nonce",e),i.insertBefore(c,r?r.nextSibling:i.firstChild)}d=!1,f.length?f.map((e=>e.connectedCallback())):pe.jmp((()=>u=setTimeout(G,30)))},Y=(e,t)=>t,Z=(e,t,n)=>{n&&n.map((([n,l,o])=>{const s=te(e,n),i=ee(t,o),r=ne(n);pe.ael(s,l,i,r),(t.H=t.H||[]).push((()=>pe.rel(s,l,i,r)))}))},ee=(e,t)=>n=>{try{256&e.m?e.O[t](n):(e.R=e.R||[]).push([t,n])}catch(e){fe(e)}},te=(e,t)=>8&t?$e:e,ne=e=>0!=(2&e),le=e=>pe.L=e,oe=new WeakMap,se=e=>oe.get(e),ie=(e,t)=>oe.set(t.O=e,t),re=(e,t)=>{const n={m:0,v:e,C:t,U:new Map};return n.A=new Promise((e=>n.N=e)),n.q=new Promise((e=>n.T=e)),e["s-p"]=[],e["s-rc"]=[],Z(e,n,t.D),oe.set(e,n)},ce=(e,t)=>t in e,fe=(e,t)=>(0,console.error)(e,t),ue=new Map,ae=e=>{const t=e.k.replace(/-/g,"_"),n=e.V,l=ue.get(n);return l?l[t]:import(`./${n}.entry.js`).then((e=>(ue.set(n,e),e[t])),fe)
|
|
1
|
+
let e,t,n,l=!1,o=!1,s=!1,i=!1;const r=e=>{const t=new URL(e,pe.t);return t.origin!==$e.location.origin?t.href:t.pathname},c="http://www.w3.org/1999/xlink",f={},u=e=>"object"==(e=typeof e)||"function"===e;function a(e){var t,n,l;return null!==(l=null===(n=null===(t=e.head)||void 0===t?void 0:t.querySelector('meta[name="csp-nonce"]'))||void 0===n?void 0:n.getAttribute("content"))&&void 0!==l?l:void 0}const d=(e,t,...n)=>{let l=null,o=null,s=null,i=!1,r=!1;const c=[],f=t=>{for(let n=0;n<t.length;n++)l=t[n],Array.isArray(l)?f(l):null!=l&&"boolean"!=typeof l&&((i="function"!=typeof e&&!u(l))&&(l+=""),i&&r?c[c.length-1].l+=l:c.push(i?$(null,l):l),r=i)};if(f(n),t){t.key&&(o=t.key),t.name&&(s=t.name);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}if("function"==typeof e)return e(null===t?{}:t,c,p);const a=$(e,null);return a.o=t,c.length>0&&(a.i=c),a.u=o,a.$=s,a},$=(e,t)=>({m:0,p:e,l:t,h:null,i:null,o:null,u:null,$:null}),m={},p={forEach:(e,t)=>e.map(y).forEach(t),map:(e,t)=>e.map(y).map(t).map(h)},y=e=>({vattrs:e.o,vchildren:e.i,vkey:e.u,vname:e.$,vtag:e.p,vtext:e.l}),h=e=>{if("function"==typeof e.vtag){const t=Object.assign({},e.vattrs);return e.vkey&&(t.key=e.vkey),e.vname&&(t.name=e.vname),d(e.vtag,t,...e.vchildren||[])}const t=$(e.vtag,e.vtext);return t.o=e.vattrs,t.i=e.vchildren,t.u=e.vkey,t.$=e.vname,t},b=e=>se(e).v,v=(e,t,n)=>{const l=b(e);return{emit:e=>w(l,t,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:e})}},w=(e,t,n)=>{const l=pe.ce(t,n);return e.dispatchEvent(l),l},k=new WeakMap,g=e=>"sc-"+e.k,S=(e,t,n,l,o,s)=>{if(n!==l){let i=ce(e,t),r=t.toLowerCase();if("class"===t){const t=e.classList,o=M(n),s=M(l);t.remove(...o.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!o.includes(e))))}else if("style"===t){for(const t in n)l&&null!=l[t]||(t.includes("-")?e.style.removeProperty(t):e.style[t]="");for(const t in l)n&&l[t]===n[t]||(t.includes("-")?e.style.setProperty(t,l[t]):e.style[t]=l[t])}else if("key"===t);else if("ref"===t)l&&l(e);else if(i||"o"!==t[0]||"n"!==t[1]){const f=u(l);if((i||f&&null!==l)&&!o)try{if(e.tagName.includes("-"))e[t]=l;else{const o=null==l?"":l;"list"===t?i=!1:null!=n&&e[t]==o||(e[t]=o)}}catch(e){}let a=!1;r!==(r=r.replace(/^xlink\:?/,""))&&(t=r,a=!0),null==l||!1===l?!1===l&&""!==e.getAttribute(t)||(a?e.removeAttributeNS(c,t):e.removeAttribute(t)):(!i||4&s||o)&&!f&&(l=!0===l?"":l,a?e.setAttributeNS(c,t,l):e.setAttribute(t,l))}else t="-"===t[2]?t.slice(3):ce($e,r)?r.slice(2):r[2]+t.slice(3),n&&pe.rel(e,t,n,!1),l&&pe.ael(e,t,l,!1)}},j=/\s/,M=e=>e?e.split(j):[],O=(e,t,n,l)=>{const o=11===t.h.nodeType&&t.h.host?t.h.host:t.h,s=e&&e.o||f,i=t.o||f;for(l in s)l in i||S(o,l,s[l],void 0,n,t.m);for(l in i)S(o,l,s[l],i[l],n,t.m)},R=(o,i,r,c)=>{const f=i.i[r];let u,a,d,$=0;if(l||(s=!0,"slot"===f.p&&(e&&c.classList.add(e+"-s"),f.m|=f.i?2:1)),null!==f.l)u=f.h=me.createTextNode(f.l);else if(1&f.m)u=f.h=me.createTextNode("");else if(u=f.h=me.createElement(2&f.m?"slot-fb":f.p),O(null,f,!1),null!=e&&u["s-si"]!==e&&u.classList.add(u["s-si"]=e),f.i)for($=0;$<f.i.length;++$)a=R(o,f,$,u),a&&u.appendChild(a);return u["s-hn"]=n,3&f.m&&(u["s-sr"]=!0,u["s-cr"]=t,u["s-sn"]=f.$||"",d=o&&o.i&&o.i[r],d&&d.p===f.p&&o.h&&x(o.h,!1)),u},x=(e,t)=>{pe.m|=1;const l=e.childNodes;for(let e=l.length-1;e>=0;e--){const o=l[e];o["s-hn"]!==n&&o["s-ol"]&&(E(o).insertBefore(o,T(o)),o["s-ol"].remove(),o["s-ol"]=void 0,s=!0),t&&x(o,t)}pe.m&=-2},C=(e,t,l,o,s,i)=>{let r,c=e["s-cr"]&&e["s-cr"].parentNode||e;for(c.shadowRoot&&c.tagName===n&&(c=c.shadowRoot);s<=i;++s)o[s]&&(r=R(null,l,s,e),r&&(o[s].h=r,c.insertBefore(r,T(t))))},L=(e,t,n,l,s)=>{for(;t<=n;++t)(l=e[t])&&(s=l.h,D(l),o=!0,s["s-ol"]?s["s-ol"].remove():x(s,!0),s.remove())},P=(e,t)=>e.p===t.p&&("slot"===e.p?e.$===t.$:e.u===t.u),T=e=>e&&e["s-ol"]||e,E=e=>(e["s-ol"]?e["s-ol"]:e).parentNode,N=(e,t)=>{const n=t.h=e.h,l=e.i,o=t.i,s=t.l;let i;null===s?("slot"===t.p||O(e,t,!1),null!==l&&null!==o?((e,t,n,l)=>{let o,s,i=0,r=0,c=0,f=0,u=t.length-1,a=t[0],d=t[u],$=l.length-1,m=l[0],p=l[$];for(;i<=u&&r<=$;)if(null==a)a=t[++i];else if(null==d)d=t[--u];else if(null==m)m=l[++r];else if(null==p)p=l[--$];else if(P(a,m))N(a,m),a=t[++i],m=l[++r];else if(P(d,p))N(d,p),d=t[--u],p=l[--$];else if(P(a,p))"slot"!==a.p&&"slot"!==p.p||x(a.h.parentNode,!1),N(a,p),e.insertBefore(a.h,d.h.nextSibling),a=t[++i],p=l[--$];else if(P(d,m))"slot"!==a.p&&"slot"!==p.p||x(d.h.parentNode,!1),N(d,m),e.insertBefore(d.h,a.h),d=t[--u],m=l[++r];else{for(c=-1,f=i;f<=u;++f)if(t[f]&&null!==t[f].u&&t[f].u===m.u){c=f;break}c>=0?(s=t[c],s.p!==m.p?o=R(t&&t[r],n,c,e):(N(s,m),t[c]=void 0,o=s.h),m=l[++r]):(o=R(t&&t[r],n,r,e),m=l[++r]),o&&E(a.h).insertBefore(o,T(a.h))}i>u?C(e,null==l[$+1]?null:l[$+1].h,n,l,r,$):r>$&&L(t,i,u)})(n,l,t,o):null!==o?(null!==e.l&&(n.textContent=""),C(n,null,t,o,0,o.length-1)):null!==l&&L(l,0,l.length-1)):(i=n["s-cr"])?i.parentNode.textContent=s:e.l!==s&&(n.data=s)},W=e=>{const t=e.childNodes;let n,l,o,s,i,r;for(l=0,o=t.length;l<o;l++)if(n=t[l],1===n.nodeType){if(n["s-sr"])for(i=n["s-sn"],n.hidden=!1,s=0;s<o;s++)if(r=t[s].nodeType,t[s]["s-hn"]!==n["s-hn"]||""!==i){if(1===r&&i===t[s].getAttribute("slot")){n.hidden=!0;break}}else if(1===r||3===r&&""!==t[s].textContent.trim()){n.hidden=!0;break}W(n)}},F=[],U=e=>{let t,n,l,s,i,r,c=0;const f=e.childNodes,u=f.length;for(;c<u;c++){if(t=f[c],t["s-sr"]&&(n=t["s-cr"])&&n.parentNode)for(l=n.parentNode.childNodes,s=t["s-sn"],r=l.length-1;r>=0;r--)n=l[r],n["s-cn"]||n["s-nr"]||n["s-hn"]===t["s-hn"]||(A(n,s)?(i=F.find((e=>e.g===n)),o=!0,n["s-sn"]=n["s-sn"]||s,i?i.S=t:F.push({S:t,g:n}),n["s-sr"]&&F.map((e=>{A(e.g,n["s-sn"])&&(i=F.find((e=>e.g===n)),i&&!e.S&&(e.S=i.S))}))):F.some((e=>e.g===n))||F.push({g:n}));1===t.nodeType&&U(t)}},A=(e,t)=>1===e.nodeType?null===e.getAttribute("slot")&&""===t||e.getAttribute("slot")===t:e["s-sn"]===t||""===t,D=e=>{e.o&&e.o.ref&&e.o.ref(null),e.i&&e.i.map(D)},H=(e,t)=>{t&&!e.j&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.j=t)))},q=(e,t)=>{if(e.m|=16,!(4&e.m))return H(e,e.M),je((()=>V(e,t)));e.m|=512},V=(e,t)=>{const n=e.O;let l;return t&&(e.m|=256,e.R&&(e.R.map((([e,t])=>I(n,e,t))),e.R=null),l=I(n,"componentWillLoad")),l=J(l,(()=>I(n,"componentWillRender"))),J(l,(()=>_(e,n,t)))},_=async(e,t,n)=>{const l=e.v,o=l["s-rc"];n&&(e=>{const t=e.C,n=e.v,l=t.m,o=((e,t)=>{var n;let l=g(t);const o=de.get(l);if(e=11===e.nodeType?e:me,o)if("string"==typeof o){let t,s=k.get(e=e.head||e);if(s||k.set(e,s=new Set),!s.has(l)){{t=me.createElement("style"),t.innerHTML=o;const l=null!==(n=pe.L)&&void 0!==n?n:a(me);null!=l&&t.setAttribute("nonce",l),e.insertBefore(t,e.querySelector("link"))}s&&s.add(l)}}else e.adoptedStyleSheets.includes(o)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,o]);return l})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&l&&(n["s-sc"]=o,n.classList.add(o+"-h"),2&l&&n.classList.add(o+"-s"))})(e);z(e,t),o&&(o.map((e=>e())),l["s-rc"]=void 0);{const t=l["s-p"],n=()=>B(e);0===t.length?n():(Promise.all(t).then(n),e.m|=4,t.length=0)}},z=(i,r)=>{try{r=r.render(),i.m&=-17,i.m|=2,((i,r)=>{const c=i.v,f=i.C,u=i.P||$(null,null),a=(e=>e&&e.p===m)(r)?r:d(null,null,r);if(n=c.tagName,f.T&&(a.o=a.o||{},f.T.map((([e,t])=>a.o[t]=c[e]))),a.p=null,a.m|=4,i.P=a,a.h=u.h=c.shadowRoot||c,e=c["s-sc"],t=c["s-cr"],l=0!=(1&f.m),o=!1,N(u,a),pe.m|=1,s){let e,t,n,l,o,s;U(a.h);let i=0;for(;i<F.length;i++)e=F[i],t=e.g,t["s-ol"]||(n=me.createTextNode(""),n["s-nr"]=t,t.parentNode.insertBefore(t["s-ol"]=n,t));for(i=0;i<F.length;i++)if(e=F[i],t=e.g,e.S){for(l=e.S.parentNode,o=e.S.nextSibling,n=t["s-ol"];n=n.previousSibling;)if(s=n["s-nr"],s&&s["s-sn"]===t["s-sn"]&&l===s.parentNode&&(s=s.nextSibling,!s||!s["s-nr"])){o=s;break}(!o&&l!==t.parentNode||t.nextSibling!==o)&&t!==o&&(!t["s-hn"]&&t["s-ol"]&&(t["s-hn"]=t["s-ol"].parentNode.nodeName),l.insertBefore(t,o))}else 1===t.nodeType&&(t.hidden=!0)}o&&W(a.h),pe.m&=-2,F.length=0})(i,r)}catch(e){fe(e,i.v)}return null},B=e=>{const t=e.v,n=e.O,l=e.M;I(n,"componentDidRender"),64&e.m||(e.m|=64,K(t),I(n,"componentDidLoad"),e.N(t),l||G()),e.W(t),e.j&&(e.j(),e.j=void 0),512&e.m&&Se((()=>q(e,!1))),e.m&=-517},G=()=>{K(me.documentElement),Se((()=>w($e,"appload",{detail:{namespace:"tttx"}})))},I=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){fe(e)}},J=(e,t)=>e&&e.then?e.then(t):t(),K=e=>e.classList.add("hydrated"),Q=(e,t,n)=>{if(t.F){e.watchers&&(t.U=e.watchers);const l=Object.entries(t.F),o=e.prototype;if(l.map((([e,[l]])=>{31&l||2&n&&32&l?Object.defineProperty(o,e,{get(){return((e,t)=>se(this).A.get(t))(0,e)},set(n){((e,t,n,l)=>{const o=se(e),s=o.v,i=o.A.get(t),r=o.m,c=o.O;if(n=((e,t)=>null==e||u(e)?e:4&t?"false"!==e&&(""===e||!!e):2&t?parseFloat(e):1&t?e+"":e)(n,l.F[t][0]),(!(8&r)||void 0===i)&&n!==i&&(!Number.isNaN(i)||!Number.isNaN(n))&&(o.A.set(t,n),c)){if(l.U&&128&r){const e=l.U[t];e&&e.map((e=>{try{c[e](n,i,t)}catch(e){fe(e,s)}}))}2==(18&r)&&q(o,!1)}})(this,e,n,t)},configurable:!0,enumerable:!0}):1&n&&64&l&&Object.defineProperty(o,e,{value(...t){const n=se(this);return n.D.then((()=>n.O[e](...t)))}})})),1&n){const n=new Map;o.attributeChangedCallback=function(e,t,l){pe.jmp((()=>{const t=n.get(e);if(this.hasOwnProperty(t))l=this[t],delete this[t];else if(o.hasOwnProperty(t)&&"number"==typeof this[t]&&this[t]==l)return;this[t]=(null!==l||"boolean"!=typeof this[t])&&l}))},e.observedAttributes=l.filter((([e,t])=>15&t[0])).map((([e,l])=>{const o=l[1]||e;return n.set(o,e),512&l[0]&&t.T.push([e,o]),o}))}}return e},X=(e,t={})=>{var n;const l=[],o=t.exclude||[],s=$e.customElements,i=me.head,r=i.querySelector("meta[charset]"),c=me.createElement("style"),f=[];let u,d=!0;Object.assign(pe,t),pe.t=new URL(t.resourcesUrl||"./",me.baseURI).href,e.map((e=>{e[1].map((n=>{const i={m:n[0],k:n[1],F:n[2],H:n[3]};i.F=n[2],i.H=n[3],i.T=[],i.U={};const r=t.transformTagName?t.transformTagName(i.k):i.k,c=class extends HTMLElement{constructor(e){super(e),re(e=this,i),1&i.m&&e.attachShadow({mode:"open"})}connectedCallback(){u&&(clearTimeout(u),u=null),d?f.push(this):pe.jmp((()=>(e=>{if(0==(1&pe.m)){const t=se(e),n=t.C,l=()=>{};if(1&t.m)Z(e,t,n.H);else{t.m|=1,12&n.m&&(e=>{const t=e["s-cr"]=me.createComment("");t["s-cn"]=!0,e.insertBefore(t,e.firstChild)})(e);{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){H(t,t.M=n);break}}n.F&&Object.entries(n.F).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n,l,o)=>{if(0==(32&t.m)){{if(t.m|=32,(o=ae(n)).then){const e=()=>{};o=await o,e()}o.isProxied||(n.U=o.watchers,Q(o,n,2),o.isProxied=!0);const e=()=>{};t.m|=8;try{new o(t)}catch(e){fe(e)}t.m&=-9,t.m|=128,e()}if(o.style){let e=o.style;const t=g(n);if(!de.has(t)){const l=()=>{};((e,t,n)=>{let l=de.get(e);he&&n?(l=l||new CSSStyleSheet,"string"==typeof l?l=t:l.replaceSync(t)):l=t,de.set(e,l)})(t,e,!!(1&n.m)),l()}}}const s=t.M,i=()=>q(t,!0);s&&s["s-rc"]?s["s-rc"].push(i):i()})(0,t,n)}l()}})(this)))}disconnectedCallback(){pe.jmp((()=>(()=>{if(0==(1&pe.m)){const e=se(this),t=e.O;e.q&&(e.q.map((e=>e())),e.q=void 0),I(t,"disconnectedCallback")}})()))}componentOnReady(){return se(this).V}};i._=e[0],o.includes(r)||s.get(r)||(l.push(r),s.define(r,Q(c,i,1)))}))}));{c.innerHTML=l+"{visibility:hidden}.hydrated{visibility:inherit}",c.setAttribute("data-styles","");const e=null!==(n=pe.L)&&void 0!==n?n:a(me);null!=e&&c.setAttribute("nonce",e),i.insertBefore(c,r?r.nextSibling:i.firstChild)}d=!1,f.length?f.map((e=>e.connectedCallback())):pe.jmp((()=>u=setTimeout(G,30)))},Y=(e,t)=>t,Z=(e,t,n)=>{n&&n.map((([n,l,o])=>{const s=te(e,n),i=ee(t,o),r=ne(n);pe.ael(s,l,i,r),(t.q=t.q||[]).push((()=>pe.rel(s,l,i,r)))}))},ee=(e,t)=>n=>{try{256&e.m?e.O[t](n):(e.R=e.R||[]).push([t,n])}catch(e){fe(e)}},te=(e,t)=>4&t?me:8&t?$e:e,ne=e=>0!=(2&e),le=e=>pe.L=e,oe=new WeakMap,se=e=>oe.get(e),ie=(e,t)=>oe.set(t.O=e,t),re=(e,t)=>{const n={m:0,v:e,C:t,A:new Map};return n.D=new Promise((e=>n.W=e)),n.V=new Promise((e=>n.N=e)),e["s-p"]=[],e["s-rc"]=[],Z(e,n,t.H),oe.set(e,n)},ce=(e,t)=>t in e,fe=(e,t)=>(0,console.error)(e,t),ue=new Map,ae=e=>{const t=e.k.replace(/-/g,"_"),n=e._,l=ue.get(n);return l?l[t]:import(`./${n}.entry.js`).then((e=>(ue.set(n,e),e[t])),fe)
|
|
2
2
|
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/},de=new Map,$e="undefined"!=typeof window?window:{},me=$e.document||{head:{}},pe={m:0,t:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,l)=>e.addEventListener(t,n,l),rel:(e,t,n,l)=>e.removeEventListener(t,n,l),ce:(e,t)=>new CustomEvent(e,t)},ye=e=>Promise.resolve(e),he=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),be=[],ve=[],we=(e,t)=>n=>{e.push(n),i||(i=!0,t&&4&pe.m?Se(ge):pe.raf(ge))},ke=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){fe(e)}e.length=0},ge=()=>{ke(be),ke(ve),(i=be.length>0)&&pe.raf(ge)},Se=e=>ye().then(e),je=we(ve,!0);export{Y as F,m as H,r as a,X as b,v as c,b as g,d as h,ye as p,ie as r,le as s}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as e,h as i,F as n,H as o}from"./p-2b0fc913.js";const a=class{constructor(i){t(this,i),this.commentAdded=e(this,"commentAdded",6),this.commentEdited=e(this,"commentEdited",6),this.requestCommentRemoval=e(this,"requestCommentRemoval",6),this.requestFileUpload=e(this,"requestFileUpload",6),this.requestFileDownload=e(this,"requestFileDownload",6),this.blurChanged=e(this,"commentFocusOut",7),this.isFileComment=t=>{var e;return(null===(e=t.metadata)||void 0===e?void 0:e.type)===l.FILE},this.isUnread=t=>t.createdByFullName!==this.currentuser&&(!t.userLastViewed||t.createdAt>t.userLastViewed),this.currentuser=void 0,this.comments=void 0,this.disableFile=!1,this.messageLimit=1e3,this.inputBoxHeight=90,this.placeholder="Enter Comment",this.saveButtonText="Add Comment",this.value=void 0,this.allowEditing=!1,this.readonly=!1,this._comments=void 0,this.showError=void 0,this._saveButtonText=void 0,this.editingComment=void 0}componentWillLoad(){this.onCommentsChange(),this._saveButtonText=this.saveButtonText}onCommentsChange(){this.comments&&(this._comments="string"==typeof this.comments?JSON.parse(this.comments):this.comments,this.editingComment&&this._comments.find((t=>t.id===this.editingComment.id)).isDeleted&&this.onFinishEdit(),this.scrollToBottom())}renderCommentBubble(){var t,e;const o=(null===(t=this._comments)||void 0===t?void 0:t.length)>0&&this.isUnread(this._comments[0]);let a=!1,l=null;return o&&(l=i("div",{class:"unread-comment-divider"},i("hr",{class:"unread-comment-divider-line"}),i("span",{class:"unread-comments-text"},"New Unread Comments"),i("hr",{class:"unread-comment-divider-line"}))),i(n,null,null===(e=this._comments)||void 0===e?void 0:e.map(((t,e)=>{var s;const c=t.createdByFullName===this.currentuser,d="commentBubble "+(c?"right":"left"),p=e===this._comments.length-1,h=0===e?{marginTop:"10px"}:{},m=!p&&this.isUnread(this._comments[e+1]),u=0===e;let b=null;return p||!m||a||o&&0===e||(b=i("div",{class:"unread-comment-divider"},i("hr",{class:"unread-comment-divider-line"}),i("span",{class:"unread-comments-text"},"New Unread Comments"),i("hr",{class:"unread-comment-divider-line"}))),a=a||m,[i("div",{class:d,style:h},u&&l,i("div",{class:"bubbleHeader"},i("div",{class:"bubble-header-inner"},i("span",{class:"commentName"},t.createdByFullName),this.isUnread(t)&&i("tttx-icon_1_9_62",{class:"unread-symbol",icon:"error",color:"blue",style:{height:"18px"},size:18})),(null===(s=t.metadata)||void 0===s?void 0:s.contextString)&&i("span",{class:"commentContext"},"(",t.metadata.contextString,")")),i("div",{class:"bubbleText "+(t.isDeleted?"deleted-comment":"")},this.renderCommentInner(t)),i("div",{class:"bubbleFooter"},!this.readonly&&this.allowEditing&&c&&!t.isDeleted&&!!t.id&&i("div",null,!this.isFileComment(t)&&i(n,null,i("span",{class:"clickable",onClick:this.onEdit.bind(this,t)},"Edit")," | "),i("span",{class:"clickable",onClick:this.onRemove.bind(this,t)},"Remove")),i("span",{class:"comment-date"},!!t.lastUpdatedAt&&!t.isDeleted&&`Edited ${new Date(t.lastUpdatedAt).toLocaleString(void 0,r)}`,!!t.lastUpdatedAt&&t.isDeleted&&`Removed ${new Date(t.lastUpdatedAt).toLocaleString(void 0,r)}`,!t.lastUpdatedAt&&`${new Date(t.createdAt).toLocaleString(void 0,r)}`)),!b&&!p&&i("hr",{class:"commentDivider"}),b)]})))}renderCommentInner(t){return t.isDeleted?this.isFileComment(t)?"File removed.":"Comment removed.":this.isFileComment(t)?this.renderFileLink(t.metadata):t.text}renderFileLink(t){return i("div",{class:"file-link-container"},i("tttx-icon_1_9_62",{icon:"attach_file",color:"black",style:{height:"20px"},size:20}),i("button",{class:"linkButton",type:"button",value:t.key,onClick:this.onFileDownloadRequest.bind(this)},t.filename))}onFormSubmit(t){t.preventDefault();const e=new FormData(t.currentTarget);let i;for(const t of e.entries())i=t[1];t.currentTarget.reset(),this.editingComment?this.editComment(i):this.createComment(i),this.scrollToBottom()}createComment(t){const e={id:void 0,text:t,createdAt:+new Date,createdByFullName:this.currentuser,createdById:void 0,isDeleted:!1};this._comments=[...this._comments,e],this.commentAdded.emit(e)}editComment(t){const e=this._comments.findIndex((t=>t.id===this.editingComment.id));this._comments[e]=Object.assign(Object.assign({},this._comments[e]),{text:t,lastUpdatedAt:+new Date,updatedByFullName:this.currentuser,updatedById:void 0}),this._comments=[...this._comments],this.commentEdited.emit(this._comments[e]),this.onFinishEdit()}scrollToBottom(){setTimeout((()=>this._scrollContainer.scrollTo({top:this._scrollContainer.scrollHeight})))}onFileUploadRequest(){this.requestFileUpload.emit()}onFileDownloadRequest(t){this.requestFileDownload.emit(t.currentTarget.value)}async addDummyComment(t,e){const i={id:void 0,text:t,createdAt:+new Date,createdByFullName:null!=e?e:this.currentuser,createdById:void 0,isDeleted:!1};this._comments=[...this._comments,i],this.scrollToBottom()}onCommentFieldChange(t){this.showError=t.target.value.length>=this.messageLimit}handleBlur(t){this.editingComment||this.blurChanged.emit(t.target.value)}onEdit(t){this.editingComment=t,this.textInput.value=this.editingComment.text,this._saveButtonText="Update comment",this.scrollToBottom()}onFinishEdit(){this.editingComment=void 0,this.textInput.value="",this._saveButtonText=this.saveButtonText}onRemove(t){t=Object.assign(Object.assign({},t),{lastUpdatedAt:+new Date,updatedByFullName:this.currentuser,updatedById:void 0}),this.requestCommentRemoval.emit(t)}render(){return i(o,null,i("article",{id:"comment-container"},(!Array.isArray(this._comments)||0===this._comments.length)&&i("div",{class:"no-comments"},i("tttx-icon_1_9_62",{class:"mt-s",icon:"chat_bubble_outline",color:"grey"}),i("span",null,"No comments have been added")),i("section",{id:"comment-bubbles-section"},i("div",{id:"scroll-container",ref:t=>this._scrollContainer=t},this.renderCommentBubble())),i("section",{id:"input-section"},!this.readonly&&i("form",{onSubmit:this.onFormSubmit.bind(this)},this.editingComment&&i("div",{class:"cancel-edit-container"},i("span",{class:"cancel-edit-button clickable",onClick:this.onFinishEdit.bind(this)},"x")),i("fieldset",null,i("textarea",{ref:t=>this.textInput=t,name:"commentText",required:!0,maxlength:`${this.messageLimit}`,placeholder:this.placeholder,onInput:t=>this.onCommentFieldChange(t),style:{"--textarea-max-height":`${this.inputBoxHeight}px`},class:"comment-textarea",value:this.value,onBlur:this.handleBlur.bind(this)})),this.showError&&i("span",{class:"errorBubble visible"},i("span",{class:"material-symbols-rounded"},"warning")," ",`${this.messageLimit} character limit is reached.`),i("fieldset",null,this.editingComment&&i("span",{class:"editing-sub-text"},"Editing comment"),!this.disableFile&&i("button",{id:"attach-file",class:"flex-right-align clickable",type:"button",value:"File",onClick:this.onFileUploadRequest.bind(this)},i("tttx-icon_1_9_62",{color:"black",icon:"attach_file"})),i("input",{class:(this.disableFile?"flex-right-align ":"")+"clickable",style:{width:"fit-content"},type:"submit",value:this._saveButtonText}))))))}static get watchers(){return{comments:["onCommentsChange"]}}};var l;!function(t){t[t.FILE=0]="FILE"}(l||(l={}));const r={hour12:!1,year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"numeric"};a.style='.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}*{font-family:"Roboto", sans-serif}#comment-container{display:flex;height:100%;flex-direction:column}#comment-bubbles-section{display:flex;height:100%;flex-direction:column;justify-content:end;margin-bottom:8px;padding-bottom:8px;overflow:hidden}#input-section,#input-section form{display:flex;flex-direction:column;padding:0px 1px}#scroll-container{display:flex;overflow-y:auto;max-height:100%;width:100%;align-items:end;flex-direction:column}.commentBubble{display:flex;flex-direction:column;margin-bottom:8px;width:100%}.commentBubble>.bubbleText{background:#f0f0f0;border-radius:4px;padding:8px 12px;margin-bottom:4px;margin-top:10px;font-size:11pt;white-space:wrap}.commentBubble>span{color:#757575;font-size:10pt;margin:2px 16px}.commentBubble.right>span{text-align:right}.commentBubble.left>span{text-align:left}input{border:1px solid #dddddd;border-radius:4px;padding:8px 16px;font-size:11pt}input[type=text]{flex-grow:1}input[type=submit]{text-transform:uppercase;background:white;font-size:10pt;margin-top:8px;width:132px;display:flex;align-self:end}input[type=submit]:hover,input[type=submit]:active{background:#dddddd}button#attach-file{text-transform:uppercase;background:white;font-size:10pt;margin-top:8px;align-self:end;border:1px solid #dddddd;border-radius:4px;width:34px;height:34px;display:flex;flex-direction:column;justify-content:center;margin-right:8px}button#attach-file:hover,button#attach-file:active{background:#dddddd}button#attach-file *{margin-top:3px}fieldset{border:none;padding:0;margin:0;display:flex;flex-direction:row;justify-content:end}button.linkButton{border:none;background:transparent;color:#3680bd;cursor:pointer;padding:0;margin-left:5px;font-size:11pt}.file-link-container{display:flex;align-items:center}.commentBubble .bubbleHeader{display:flex;justify-content:space-between}.commentName{color:black;font-size:10pt}.commentContext{color:gray;font-size:10pt}.commentBubble .bubbleFooter{display:flex;padding:0 10px;font-size:9pt;color:#757575}.comment-date{margin-left:auto}.editing-sub-text{margin-top:5px;font-size:9pt;color:#757575}.flex-right-align{margin-left:auto}.cancel-edit-container{position:relative;width:100%;display:flex;justify-content:end}.cancel-edit-button{color:whitesmoke;background-color:#aaaaaa;border-radius:10px;height:20px;width:20px;text-align:center;position:absolute;margin-top:11px;margin-right:18px}.clickable,.clickable>*{cursor:pointer}.deleted-comment{background:white !important;color:gray;border:1px solid lightgray}.commentDivider{border:none;border-top:1px solid #ccc;margin:10px 0}.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 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}.comment-textarea{resize:vertical;height:var(--textarea-max-height, 90px);width:100%;padding:10px 35px 10px 12px;box-sizing:border-box;border:1px solid #ccc;border-radius:6px;font-size:14px;line-height:1.4;font-family:"Roboto", sans-serif}.no-comments{display:flex;flex-direction:row;align-items:center;justify-content:start;color:#757575;font-size:14px;gap:4px;font-family:"Roboto", sans-serif;margin-top:20px}.mt-s{margin-top:4px}.bubble-header-inner{display:flex}.unread-symbol{margin-left:5px}.unread-comment-divider{display:flex;margin:10px 0}.unread-comments-text{font-size:10pt;margin:0px 10px;white-space:nowrap;color:#757575}.unread-comment-divider-line{border:none;border-top:1px solid #ccc;width:100%}';export{a as tttx_comments_1_9_62}
|
|
1
|
+
import{r as t,c as e,h as i,F as n,H as o}from"./p-c2a82822.js";const a=class{constructor(i){t(this,i),this.commentAdded=e(this,"commentAdded",6),this.commentEdited=e(this,"commentEdited",6),this.requestCommentRemoval=e(this,"requestCommentRemoval",6),this.requestFileUpload=e(this,"requestFileUpload",6),this.requestFileDownload=e(this,"requestFileDownload",6),this.blurChanged=e(this,"commentFocusOut",7),this.isFileComment=t=>{var e;return(null===(e=t.metadata)||void 0===e?void 0:e.type)===l.FILE},this.isUnread=t=>t.createdByFullName!==this.currentuser&&(!t.userLastViewed||t.createdAt>t.userLastViewed),this.currentuser=void 0,this.comments=void 0,this.disableFile=!1,this.messageLimit=1e3,this.inputBoxHeight=90,this.placeholder="Enter Comment",this.saveButtonText="Add Comment",this.value=void 0,this.allowEditing=!1,this.readonly=!1,this._comments=void 0,this.showError=void 0,this._saveButtonText=void 0,this.editingComment=void 0}componentWillLoad(){this.onCommentsChange(),this._saveButtonText=this.saveButtonText}onCommentsChange(){this.comments&&(this._comments="string"==typeof this.comments?JSON.parse(this.comments):this.comments,this.editingComment&&this._comments.find((t=>t.id===this.editingComment.id)).isDeleted&&this.onFinishEdit(),this.scrollToBottom())}renderCommentBubble(){var t,e;const o=(null===(t=this._comments)||void 0===t?void 0:t.length)>0&&this.isUnread(this._comments[0]);let a=!1,l=null;return o&&(l=i("div",{class:"unread-comment-divider"},i("hr",{class:"unread-comment-divider-line"}),i("span",{class:"unread-comments-text"},"New Unread Comments"),i("hr",{class:"unread-comment-divider-line"}))),i(n,null,null===(e=this._comments)||void 0===e?void 0:e.map(((t,e)=>{var s;const c=t.createdByFullName===this.currentuser,d="commentBubble "+(c?"right":"left"),p=e===this._comments.length-1,h=0===e?{marginTop:"10px"}:{},m=!p&&this.isUnread(this._comments[e+1]),u=0===e;let b=null;return p||!m||a||o&&0===e||(b=i("div",{class:"unread-comment-divider"},i("hr",{class:"unread-comment-divider-line"}),i("span",{class:"unread-comments-text"},"New Unread Comments"),i("hr",{class:"unread-comment-divider-line"}))),a=a||m,[i("div",{class:d,style:h},u&&l,i("div",{class:"bubbleHeader"},i("div",{class:"bubble-header-inner"},i("span",{class:"commentName"},t.createdByFullName),this.isUnread(t)&&i("tttx-icon_1_9_64",{class:"unread-symbol",icon:"error",color:"blue",style:{height:"18px"},size:18})),(null===(s=t.metadata)||void 0===s?void 0:s.contextString)&&i("span",{class:"commentContext"},"(",t.metadata.contextString,")")),i("div",{class:"bubbleText "+(t.isDeleted?"deleted-comment":"")},this.renderCommentInner(t)),i("div",{class:"bubbleFooter"},!this.readonly&&this.allowEditing&&c&&!t.isDeleted&&!!t.id&&i("div",null,!this.isFileComment(t)&&i(n,null,i("span",{class:"clickable",onClick:this.onEdit.bind(this,t)},"Edit")," | "),i("span",{class:"clickable",onClick:this.onRemove.bind(this,t)},"Remove")),i("span",{class:"comment-date"},!!t.lastUpdatedAt&&!t.isDeleted&&`Edited ${new Date(t.lastUpdatedAt).toLocaleString(void 0,r)}`,!!t.lastUpdatedAt&&t.isDeleted&&`Removed ${new Date(t.lastUpdatedAt).toLocaleString(void 0,r)}`,!t.lastUpdatedAt&&`${new Date(t.createdAt).toLocaleString(void 0,r)}`)),!b&&!p&&i("hr",{class:"commentDivider"}),b)]})))}renderCommentInner(t){return t.isDeleted?this.isFileComment(t)?"File removed.":"Comment removed.":this.isFileComment(t)?this.renderFileLink(t.metadata):t.text}renderFileLink(t){return i("div",{class:"file-link-container"},i("tttx-icon_1_9_64",{icon:"attach_file",color:"black",style:{height:"20px"},size:20}),i("button",{class:"linkButton",type:"button",value:t.key,onClick:this.onFileDownloadRequest.bind(this)},t.filename))}onFormSubmit(t){t.preventDefault();const e=new FormData(t.currentTarget);let i;for(const t of e.entries())i=t[1];t.currentTarget.reset(),this.editingComment?this.editComment(i):this.createComment(i),this.scrollToBottom()}createComment(t){const e={id:void 0,text:t,createdAt:+new Date,createdByFullName:this.currentuser,createdById:void 0,isDeleted:!1};this._comments=[...this._comments,e],this.commentAdded.emit(e)}editComment(t){const e=this._comments.findIndex((t=>t.id===this.editingComment.id));this._comments[e]=Object.assign(Object.assign({},this._comments[e]),{text:t,lastUpdatedAt:+new Date,updatedByFullName:this.currentuser,updatedById:void 0}),this._comments=[...this._comments],this.commentEdited.emit(this._comments[e]),this.onFinishEdit()}scrollToBottom(){setTimeout((()=>this._scrollContainer.scrollTo({top:this._scrollContainer.scrollHeight})))}onFileUploadRequest(){this.requestFileUpload.emit()}onFileDownloadRequest(t){this.requestFileDownload.emit(t.currentTarget.value)}async addDummyComment(t,e){const i={id:void 0,text:t,createdAt:+new Date,createdByFullName:null!=e?e:this.currentuser,createdById:void 0,isDeleted:!1};this._comments=[...this._comments,i],this.scrollToBottom()}onCommentFieldChange(t){this.showError=t.target.value.length>=this.messageLimit}handleBlur(t){this.editingComment||this.blurChanged.emit(t.target.value)}onEdit(t){this.editingComment=t,this.textInput.value=this.editingComment.text,this._saveButtonText="Update comment",this.scrollToBottom()}onFinishEdit(){this.editingComment=void 0,this.textInput.value="",this._saveButtonText=this.saveButtonText}onRemove(t){t=Object.assign(Object.assign({},t),{lastUpdatedAt:+new Date,updatedByFullName:this.currentuser,updatedById:void 0}),this.requestCommentRemoval.emit(t)}render(){return i(o,null,i("article",{id:"comment-container"},(!Array.isArray(this._comments)||0===this._comments.length)&&i("div",{class:"no-comments"},i("tttx-icon_1_9_64",{class:"mt-s",icon:"chat_bubble_outline",color:"grey"}),i("span",null,"No comments have been added")),i("section",{id:"comment-bubbles-section"},i("div",{id:"scroll-container",ref:t=>this._scrollContainer=t},this.renderCommentBubble())),i("section",{id:"input-section"},!this.readonly&&i("form",{onSubmit:this.onFormSubmit.bind(this)},this.editingComment&&i("div",{class:"cancel-edit-container"},i("span",{class:"cancel-edit-button clickable",onClick:this.onFinishEdit.bind(this)},"x")),i("fieldset",null,i("textarea",{ref:t=>this.textInput=t,name:"commentText",required:!0,maxlength:`${this.messageLimit}`,placeholder:this.placeholder,onInput:t=>this.onCommentFieldChange(t),style:{"--textarea-max-height":`${this.inputBoxHeight}px`},class:"comment-textarea",value:this.value,onBlur:this.handleBlur.bind(this)})),this.showError&&i("span",{class:"errorBubble visible"},i("span",{class:"material-symbols-rounded"},"warning")," ",`${this.messageLimit} character limit is reached.`),i("fieldset",null,this.editingComment&&i("span",{class:"editing-sub-text"},"Editing comment"),!this.disableFile&&i("button",{id:"attach-file",class:"flex-right-align clickable",type:"button",value:"File",onClick:this.onFileUploadRequest.bind(this)},i("tttx-icon_1_9_64",{color:"black",icon:"attach_file"})),i("input",{class:(this.disableFile?"flex-right-align ":"")+"clickable",style:{width:"fit-content"},type:"submit",value:this._saveButtonText}))))))}static get watchers(){return{comments:["onCommentsChange"]}}};var l;!function(t){t[t.FILE=0]="FILE"}(l||(l={}));const r={hour12:!1,year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"numeric"};a.style='.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}*{font-family:"Roboto", sans-serif}#comment-container{display:flex;height:100%;flex-direction:column}#comment-bubbles-section{display:flex;height:100%;flex-direction:column;justify-content:end;margin-bottom:8px;padding-bottom:8px;overflow:hidden}#input-section,#input-section form{display:flex;flex-direction:column;padding:0px 1px}#scroll-container{display:flex;overflow-y:auto;max-height:100%;width:100%;align-items:end;flex-direction:column}.commentBubble{display:flex;flex-direction:column;margin-bottom:8px;width:100%}.commentBubble>.bubbleText{background:#f0f0f0;border-radius:4px;padding:8px 12px;margin-bottom:4px;margin-top:10px;font-size:11pt;white-space:wrap}.commentBubble>span{color:#757575;font-size:10pt;margin:2px 16px}.commentBubble.right>span{text-align:right}.commentBubble.left>span{text-align:left}input{border:1px solid #dddddd;border-radius:4px;padding:8px 16px;font-size:11pt}input[type=text]{flex-grow:1}input[type=submit]{text-transform:uppercase;background:white;font-size:10pt;margin-top:8px;width:132px;display:flex;align-self:end}input[type=submit]:hover,input[type=submit]:active{background:#dddddd}button#attach-file{text-transform:uppercase;background:white;font-size:10pt;margin-top:8px;align-self:end;border:1px solid #dddddd;border-radius:4px;width:34px;height:34px;display:flex;flex-direction:column;justify-content:center;margin-right:8px}button#attach-file:hover,button#attach-file:active{background:#dddddd}button#attach-file *{margin-top:3px}fieldset{border:none;padding:0;margin:0;display:flex;flex-direction:row;justify-content:end}button.linkButton{border:none;background:transparent;color:#3680bd;cursor:pointer;padding:0;margin-left:5px;font-size:11pt}.file-link-container{display:flex;align-items:center}.commentBubble .bubbleHeader{display:flex;justify-content:space-between}.commentName{color:black;font-size:10pt}.commentContext{color:gray;font-size:10pt}.commentBubble .bubbleFooter{display:flex;padding:0 10px;font-size:9pt;color:#757575}.comment-date{margin-left:auto}.editing-sub-text{margin-top:5px;font-size:9pt;color:#757575}.flex-right-align{margin-left:auto}.cancel-edit-container{position:relative;width:100%;display:flex;justify-content:end}.cancel-edit-button{color:whitesmoke;background-color:#aaaaaa;border-radius:10px;height:20px;width:20px;text-align:center;position:absolute;margin-top:11px;margin-right:18px}.clickable,.clickable>*{cursor:pointer}.deleted-comment{background:white !important;color:gray;border:1px solid lightgray}.commentDivider{border:none;border-top:1px solid #ccc;margin:10px 0}.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 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}.comment-textarea{resize:vertical;height:var(--textarea-max-height, 90px);width:100%;padding:10px 35px 10px 12px;box-sizing:border-box;border:1px solid #ccc;border-radius:6px;font-size:14px;line-height:1.4;font-family:"Roboto", sans-serif}.no-comments{display:flex;flex-direction:row;align-items:center;justify-content:start;color:#757575;font-size:14px;gap:4px;font-family:"Roboto", sans-serif;margin-top:20px}.mt-s{margin-top:4px}.bubble-header-inner{display:flex}.unread-symbol{margin-left:5px}.unread-comment-divider{display:flex;margin:10px 0}.unread-comments-text{font-size:10pt;margin:0px 10px;white-space:nowrap;color:#757575}.unread-comment-divider-line{border:none;border-top:1px solid #ccc;width:100%}';export{a as tttx_comments_1_9_64}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as i,H as o}from"./p-
|
|
1
|
+
import{r as t,h as i,H as o}from"./p-c2a82822.js";const d=class{constructor(i){t(this,i),this.keyvalues=void 0,this.horizontal=void 0,this.spacedout=void 0,this._elements=void 0}renderSingleElements(t){const o=Object.keys(t),d=[],l=(100/o.length).toString()+"%";for(const s of o)this.horizontal||this.spacedout?d.push(i("div",{style:{maxWidth:l}},i("dt",null,s),i("dd",null,t[s]))):(d.push(i("dt",null,s)),d.push(i("dd",null,t[s])));return d}renderArrayElements(t){const o=[],d=(100/t.length).toString()+"%";for(const l of t){const t=l;this.horizontal||this.spacedout?o.push(i("div",{style:{maxWidth:d}},i("dt",{class:"mainTitle"},t.title),i("dt",{class:"subTitle"},t.subTitle),i("dd",null,t.data))):(o.push(i("dt",{class:"mainTitle"},t.title)),o.push(i("dt",{class:"subTitle"},t.subTitle)),o.push(i("dd",null,t.data)))}return o}componentWillRender(){if(!this.keyvalues)return;let t;t="string"==typeof this.keyvalues?JSON.parse(this.keyvalues):this.keyvalues,this._elements=Array.isArray(t)?this.renderArrayElements(t):this.renderSingleElements(t)}render(){return i(o,null,i("dl",{class:[this.horizontal?"horizontal":void 0,this.spacedout?" spacedout":void 0].join(" ").trim()},this._elements))}};d.style=':host{display:block}dl{margin:0;padding:0;font-family:"Roboto", sans-serif;cursor:default}dt{font-weight:400;font-size:16px;margin-bottom:4px}dt,dt.subTitle{color:#757575}dt.mainTitle{color:#212121}dt,dd{overflow-wrap:anywhere}dd{margin:0;font-weight:400;font-size:16px;color:#212121}dd:not(:last-child){margin-bottom:16px}dl.spacedout,dl.horizontal{display:flex;flex-direction:row;width:100%}dl.spacedout{justify-content:space-between}dl.horizontal div{flex-grow:1}@media (max-width: 769px){dl.horizontal{flex-wrap:wrap}dl.horizontal div{width:50%;max-width:50% !important}}@media (max-width: 600px){dl.horizontal div{width:100%;max-width:100% !important}}';export{d as tttx_keyvalue_block_1_9_64}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,c as n,h as t,H as a}from"./p-
|
|
1
|
+
import{r as e,c as n,h as t,H as a}from"./p-c2a82822.js";const o=class{constructor(t){e(this,t),this.toggleExpander=n(this,"toggleExpander",7),this.name=void 0,this.open=!1,this.lefticon=void 0,this.lefticoncolor=void 0,this.isExpanded=!1}componentWillRender(){this.isExpanded=this.open}handleExpand(){this.isExpanded=null===this.expander.getAttribute("open"),this.toggleExpander.emit({open:this.isExpanded,name:this.name})}render(){return t(a,null,t("details",{class:"expander",open:this.open,"aria-owns":"expanderContent","aria-expanded":`${this.isExpanded}`,onClick:this.handleExpand.bind(this),ref:e=>this.expander=e},t("summary",{class:"panel"},t("span",{class:"panel-frame"},this.lefticon&&t("span",{class:"left-icons"},t("tttx-icon_1_9_64",{icon:this.lefticon,color:this.lefticoncolor})),t("span",{class:"name"},this.name)),t("span",{class:"expand-button"},t("tttx-icon_1_9_64",{class:"open",icon:"expand_more",color:"black"}),t("tttx-icon_1_9_64",{class:"closed",icon:"chevron_right",color:"black"}))),t("div",{id:"expanderContent",class:"content",tabindex:"0"},t("slot",null))))}};o.style='.material-symbols-rounded{font-variation-settings:"FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24}:host{display:block}.expander{border-bottom:1px solid #d5d5d5}.expander[open] .panel .open{display:initial}.expander[open] .panel .closed{display:none}.expander:not([open]) .panel .open{display:none}.expander:not([open]) .panel .closed{display:initial}.expander .panel{display:flex;gap:4px;height:36px;align-items:center;justify-content:space-between;cursor:pointer;user-select:none}.expander .panel .panel-frame{display:flex;gap:4px;height:36px;align-items:center}.expander .panel .panel-frame .name{font-size:16px;font-weight:500;color:#212121}.expander .panel .left-icons,.expander .panel .expand-button{display:flex;height:36px;width:36px;align-items:center;justify-content:center}.expander .panel .left-icons>tttx-icon,.expander .panel .expand-button>tttx-icon{height:24px;cursor:inherit}.expander .content{margin-top:8px;margin-bottom:8px}';export{o as tttx_expander_1_9_64}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as i,h as e,H as o,g as n,F as r}from"./p-2b0fc913.js";import{p as s,d as l}from"./p-55799798.js";import"./p-112455b1.js";const a=class{constructor(e){t(this,e),this.filterChangeEvent=i(this,"filterChangeEvent",7),this.toggleFilter=i(this,"toggleFilter",7),this.filterKey=void 0,this.filterOptions=[{optionIcon:"cancel",optionIconColor:"darkred",optionText:"Expired"},{optionIcon:"warning",optionIconColor:"orange",optionText:"Expiring soon"},{optionIcon:"check_circle",optionIconColor:"green",optionText:"Active"}],this.showSelectAll=!0,this.showSearchField=!1,this.showOptionIcons=!0,this.filterButtonStyle="list filter",this.filterHeader="Qualification status",this.defaultFilterOptions=void 0,this.popoverWidth="193px",this.showPopover=!1,this.displayedFilterSettings=void 0,this.selectedFilters=void 0,this.filterSearchTerm="",this.allSelected=void 0}handleCloseFilter(){this.showPopover=!1}emitFilterEvent(){this.filterChangeEvent.emit({selectedFilters:this.selectedFilters,filterKey:this.filterKey,allSelected:this.allSelected})}onFilterButtonClick(){this.togglePopover()}onCloseButtonClick(){this.togglePopover()}onApplyFilterButtonClick(){this.emitFilterEvent(),this.togglePopover()}onFilterOptionSelected(t){this.allSelected=!1,this.selectedFilters=this.selectedFilters.includes(t)?this.selectedFilters.filter((i=>i!=t)):[...this.selectedFilters,t]}componentWillLoad(){if(this.displayedFilterSettings=this.parseFilterOptions(),void 0!==this.defaultFilterOptions){const t=this.parseDefaultFilterOptions();this.selectedFilters=t;let i=!0;this.parseFilterOptions().map((t=>{this.selectedFilters.includes(t.optionText)||(i=!1)})),this.allSelected=i}else this.allSelected=!0,this.selectedFilters=this.displayedFilterSettings.map((t=>t.optionText))}togglePopover(){this.showPopover=!this.showPopover,this.toggleFilter.emit(this.showPopover)}handleFilterChange(t){this.filterSearchTerm=t.target.value;const i=this.parseFilterOptions().filter((t=>{const i=t.optionText.toLowerCase(),e=this.filterSearchTerm.toLowerCase();return i.includes(e)}));this.displayedFilterSettings=i}onSelectAllClick(){this.allSelected=!this.allSelected,this.allSelected?this.displayedFilterSettings.forEach((t=>{this.selectedFilters=[...this.selectedFilters,t.optionText]})):this.selectedFilters=[]}getFilterButtonClassName(t){switch(t){case"table icon":return"--table-icon";case"list icon":return"--list-icon";default:return""}}parseFilterOptions(){return"string"==typeof this.filterOptions?JSON.parse(this.filterOptions):this.filterOptions}parseDefaultFilterOptions(){return"string"==typeof this.defaultFilterOptions?JSON.parse(this.defaultFilterOptions):this.defaultFilterOptions}render(){const t=this.showSearchField?"--with-search-field":"",i=this.allSelected?"check_box":"check_box_outline_blank",n=this.allSelected?"blue":"grey",r=this.getFilterButtonClassName(this.filterButtonStyle);return e(o,{id:`filter__${this.filterKey}`},e("div",{class:"filter-container"},e("button",{class:`filter-button ${r}`,type:"button",onClick:this.onFilterButtonClick.bind(this)},e("tttx-icon_1_9_62",{icon:"filter_list",class:"filter-icon",color:"black"}),"Filter"),this.showPopover&&e("div",{class:`filter-popover-container ${t}`,style:{width:this.popoverWidth}},e("div",{class:"filter-header"},this.filterHeader),this.showSearchField?e("div",{class:"search-field-container"},e("tttx-icon_1_9_62",{icon:"search",class:"search-icon"}),e("input",{type:"text",class:"search-input",placeholder:"Search",value:this.filterSearchTerm,onInput:this.handleFilterChange.bind(this)})):"",e("div",{class:"filter-options-container"},this.showSelectAll?e("div",{class:"filter-option",tabIndex:-1,onClick:this.onSelectAllClick.bind(this)},e("tttx-icon_1_9_62",{icon:i,color:n,class:"select-all-icon"}),e("label",{class:"filter-label"},"Select all")):"",this.displayedFilterSettings.map((t=>{const i=this.selectedFilters.includes(t.optionText)?"check_box":"check_box_outline_blank",o=this.selectedFilters.includes(t.optionText)?"blue":"grey";return e("div",{class:"filter-option",tabIndex:-1,onClick:()=>this.onFilterOptionSelected(t.optionText),key:t.optionText},e("tttx-icon_1_9_62",{icon:i,color:o,class:"checkbox-icon"}),this.showOptionIcons&&e("tttx-icon_1_9_62",{icon:t.optionIcon,color:t.optionIconColor}),e("label",{class:"filter-label"},t.optionText))}))),e("div",{class:"filter-popover-button-container"},e("button",{type:"button",class:"close-button",onClick:this.onCloseButtonClick.bind(this)},"Close"),e("button",{type:"button",class:"apply-button",onClick:this.onApplyFilterButtonClick.bind(this)},"Apply")))))}get el(){return n(this)}};a.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}.filter-container{background-color:white;position:relative}.filter-container .filter-button{display:inline-flex;justify-content:center;align-items:center;font-size:14px;font-weight:400;font-family:"Roboto", serif;text-transform:uppercase;color:#212121;border:1px solid #d5d5d5;border-radius:4px;background:transparent;height:36px;width:95px;margin:0;padding-right:16px;cursor:pointer}@media (max-width: 475px){.filter-container .filter-button{padding-left:4px}}.filter-container .filter-button .filter-icon{padding-left:8px;padding-right:4px}.filter-container .filter-button.--list-icon{font-size:0;width:36px;height:36px;padding:0}.filter-container .filter-button.--list-icon .filter-icon{padding:0}.filter-container .filter-button.--list-icon:hover{background:#e3e3e3}.filter-container .filter-button.--table-icon{font-size:0;width:36px;height:36px;padding:0;border:none}.filter-container .filter-button.--table-icon .filter-icon{padding:0;width:24px;height:24px}.filter-container .filter-button.--table-icon:hover{background:#e3e3e3;border-radius:50%;width:36px;height:36px}.filter-container .filter-button:hover{background:#e3e3e3}.filter-container .filter-popover-container{display:flex;flex-direction:column;gap:8px;border-radius:4px;box-shadow:0px 1px 5px #1111114D;position:absolute;top:36px;left:0px;background-color:white;padding:8px 16px}.filter-container .filter-popover-container .filter-header{color:#757575;text-transform:uppercase;font-size:14px;font-weight:500;font-family:"Roboto", serif;padding-top:4px;padding-bottom:5px}.filter-container .filter-popover-container .filter-options-container{display:flex;flex-direction:column;gap:4px;border-top:1px solid #d5d5d5;border-bottom:1px solid #d5d5d5;padding-bottom:8px}.filter-container .filter-popover-container .filter-option{display:flex;flex-direction:row;align-items:center;min-height:36px;padding-left:8px}.filter-container .filter-popover-container .filter-option .select-all-icon{padding-right:6px}.filter-container .filter-popover-container .filter-option .checkbox-icon{padding-right:8px}.filter-container .filter-popover-container .filter-option .filter-label{padding-left:8px;padding-bottom:3px;font-size:16px;font-weight:500;font-family:"Roboto", serif}.filter-container .filter-popover-container .filter-option:first-child{padding-top:8px}.filter-container .filter-popover-container .filter-popover-button-container{display:flex;justify-content:flex-end;align-items:center}.filter-container .filter-popover-container .filter-popover-button-container .close-button{height:36px;width:74px;background-color:white;border:1px solid #d5d5d5;border-radius:4px;text-transform:uppercase;margin-right:8px;font-size:14px;font-weight:400;font-family:"Roboto", serif;color:#212121}.filter-container .filter-popover-container .filter-popover-button-container .apply-button{height:36px;width:73px;background-color:#1479c6;color:white;border-radius:4px;border:none;text-transform:uppercase;font-size:14px;font-weight:400;font-family:"Roboto", serif}.filter-container .filter-popover-container.--with-search-field .filter-header{border-bottom:1px solid #d5d5d5}.filter-container .filter-popover-container.--with-search-field .search-field-container{position:relative;color:#d5d5d5;height:36px}.filter-container .filter-popover-container.--with-search-field .search-field-container .search-icon{position:absolute;top:6px;left:8px}.filter-container .filter-popover-container.--with-search-field .search-field-container .search-input{padding-left:36px;border:1px solid #d5d5d5;border-radius:4px;height:36px;width:100%;font-size:16px;font-family:"Roboto", serif;font-weight:500;box-sizing:border-box}.filter-container .filter-popover-container.--with-search-field .search-field-container .search-input:focus-visible,.filter-container .filter-popover-container.--with-search-field .search-field-container .search-input:focus{outline:none;border:1px solid #1479c6}.filter-container .filter-popover-container.--with-search-field .search-field-container .search-input::placeholder{color:#9e9e9e;font-size:16px;font-family:"Roboto", serif;font-weight:500}';const c=class{constructor(e){t(this,e),this.rowClick=i(this,"listRowClick",7),this.rowCheckboxClick=i(this,"listRowCheckboxClick",7),this.data=void 0,this._data=void 0,this.name=void 0}onDataChange(){if(this.data){this._data="string"==typeof this.data?JSON.parse(this.data):[...this.data];for(const t of this._data)t.hasCheckbox&&void 0===t.checked&&(t.checked=!1)}}componentWillLoad(){this.onDataChange()}onRowCheckboxHandler(t,i){t.stopPropagation(),i.rowData&&this.rowCheckboxClick.emit({key:i.key,name:this.name,data:i.rowData})}onRowClickHandler(t){(t.clickable||t.toggleable)&&t.rowData&&this.rowClick.emit({key:t.key,name:this.name,data:t.rowData})}renderListItem(t){let i;if("string"==typeof t.element){const o=s.sanitize(t.element,l);i=e("span",{class:"item-content",innerHTML:o})}else i=e("span",{class:"item-content"},t.element);return e(r,null,t.hasCheckbox&&e("div",{class:"checkbox"},e("tttx-icon_1_9_62",{icon:t.checked?"check_box":"check_box_outline_blank",color:t.checked?"blue":"grey",onClick:i=>{this.onRowCheckboxHandler(i,t)}})),t.element&&i,t.icon&&e("span",{class:"icons"},e("tttx-icon_1_9_62",{class:"align-right",icon:t.icon,color:"black"})))}render(){if(this._data)return e("ul",{class:"list"},this._data.map((t=>e("li",{key:t.key,class:"item"+(t.clickable?" clickable":"")+(t.toggleable?" toggleable":"")+(t.checked?" selected":"")+(t.active?" active":""),onClick:()=>{this.onRowClickHandler(t)}},this.renderListItem(t)))))}static get watchers(){return{data:["onDataChange"]}}};c.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{display:flex;flex-direction:column}.list{margin:0;padding:0}li{display:flex;align-items:flex-start;width:100%}li.item{list-style:none;margin:0;padding:8px;border-bottom:1px solid #d5d5d5;min-height:36px;box-sizing:border-box;width:100%}li.item:first-of-type{border-top:1px solid #d5d5d5}li.item.clickable:hover{cursor:pointer}li.item.toggleable:hover{cursor:pointer}li.item.active{background-color:rgba(17, 17, 17, 0.1)}li.item.active:hover{background-color:rgba(17, 17, 17, 0.15)}li.item.selected{background-color:#ebfbfc}li.item.selected:hover{background-color:#e0f8f9}li.item.selected.active{background-color:#ccf3f6}li.item.selected.active:hover{background-color:#bff0f3}li.item .icons{display:flex;justify-content:flex-end;align-items:center;height:36px}li.item .icons tttx-icon:hover{cursor:pointer}li.item .icons *{display:flex}li.item:hover{background-color:rgba(17, 17, 17, 0.05)}.align-right{margin-left:auto}.item-content{display:flex;align-items:center;width:100%;min-height:36px}.checkbox{padding:6px;margin-left:-8px}';const d=class{constructor(e){t(this,e),this.sorterChangeEvent=i(this,"sorterChangeEvent",7),this.toggleSorter=i(this,"toggleSorter",7),this.sorterKey=void 0,this.defaultSortDirection="descending",this.fieldOptionsData=null,this.defaultOption="",this.selectedField=this.defaultOption,this.sortDirection=this.defaultSortDirection,this.dropdownExpand=!1,this.dropdownOptions=void 0}handleCloseSorter(){this.dropdownExpand=!1}emitSortEvent(){this.sorterChangeEvent.emit({sorterDirection:this.sortDirection,sorterKey:this.sorterKey,sortField:this.selectedField})}onSortToggleClick(t){t.preventDefault(),this.sortDirection="ascending"==this.sortDirection?"descending":"ascending",this.emitSortEvent()}onDropdownClicked(){this.dropdownExpand=!this.dropdownExpand,this.toggleSorter.emit(this.dropdownExpand)}onDropdownSelected(t){this.dropdownExpand=!1,this.selectedField=t.target.innerHTML,this.emitSortEvent(),this.toggleSorter.emit(this.dropdownExpand)}render(){const t="string"==typeof this.fieldOptionsData?JSON.parse(this.fieldOptionsData):this.fieldOptionsData;if(!this.fieldOptionsData)return;const i="ascending"==this.sortDirection?"arrow_upward":"arrow_downward",n=this.dropdownExpand?"expand_less":"expand_more",r=this.selectedField;return e(o,{id:`sorter__${this.sorterKey}`},e("div",{tabindex:0,class:"sorter-container "+(this.dropdownExpand?"--expanded":"")},e("button",{class:"arrow-toggle-button",type:"button",onClick:this.onSortToggleClick.bind(this)},e("tttx-icon_1_9_62",{icon:i,color:"black"})),e("div",{class:"dropdown-selector",onClick:this.onDropdownClicked.bind(this)},e("div",{class:"dropdown-selector-button"},e("div",{class:"dropdown-selector-text"},r),e("div",{class:"dropdown-selector-chevron"},e("tttx-icon_1_9_62",{icon:n,color:"black"})))),this.dropdownExpand&&e("div",{class:"dropdown-options-list"},t.sorterOptions.map((t=>e("div",{class:"dropdown-option",tabIndex:-1,onClick:this.onDropdownSelected.bind(this),key:t.optionLabel},t.optionLabel))))))}get el(){return n(this)}};d.style='.material-symbols-rounded{font-variation-settings:"FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24}.sorter-container{display:flex;flex-direction:row;position:relative;border:1px solid #d5d5d5;border-radius:4px;font-weight:400;box-sizing:border-box;height:36px;cursor:pointer;width:220px}@media (max-width: 475px){.sorter-container{width:68px}}.sorter-container .arrow-toggle-button{display:inline-flex;justify-content:center;align-items:center;flex-direction:column;background-color:white;border:none;border-bottom-left-radius:4px;border-top-left-radius:4px}@media (max-width: 475px){.sorter-container .arrow-toggle-button{padding-right:0px;padding-left:8px}}.sorter-container .arrow-toggle-button .hydrated{display:flex;justify-content:center;align-items:center;cursor:pointer}.sorter-container .arrow-toggle-button span{display:block;margin:auto;line-height:16px}.sorter-container .arrow-toggle-button .material-symbols-rounded{color:#212121}.sorter-container .dropdown-selector{display:inline-flex;position:relative;flex-grow:1}.sorter-container .dropdown-selector .dropdown-selector-button{display:inline-flex;flex-direction:row;gap:4px;padding-right:4px;align-items:center;color:#212121;width:100%}@media (max-width: 475px){.sorter-container .dropdown-selector .dropdown-selector-button .dropdown-selector-text{display:none}}.sorter-container .dropdown-selector .dropdown-selector-chevron{display:inline-flex;margin-left:auto;right:0;top:0;flex-direction:row;align-items:center;height:36px}.sorter-container .dropdown-selector .dropdown-selector-chevron .hydrated{height:24px;cursor:pointer}@media (max-width: 475px){.sorter-container .dropdown-selector .dropdown-selector-chevron{padding-right:2px}}.sorter-container .dropdown-options-list{position:absolute;top:36px;left:0;z-index:1;width:220px;line-height:21px;font-size:16px;border-radius:4px;padding-top:8px;padding-bottom:7px;box-shadow:0px 1px 5px #1111114D;box-sizing:border-box;background-color:white}@media (max-width: 475px){.sorter-container .dropdown-options-list{width:220px;padding-top:8px}}.sorter-container .dropdown-options-list .dropdown-option{padding:8px 16px;font-size:16px;line-height:21px}.sorter-container .dropdown-options-list .dropdown-option:hover,.sorter-container .dropdown-options-list .dropdown-option:focus{background-color:#ebfbfc}.sorter-container.--expanded{border-color:#1579c6}@media (max-width: 475px){.sorter-container.--expanded{border:none}}';const p=class{constructor(i){t(this,i),this.border=!0,this.viewSize=void 0}handleResize(){this.setViewSize()}async componentWillLoad(){this.setViewSize()}setViewSize(){this.viewSize=window.innerWidth<698?"mobile":"desktop"}render(){return e(o,null,e("div",{class:`container ${this.border?"bordered":""} ${this.viewSize}`},e("slot",{name:"before"}),e("slot",{name:"center"}),e("slot",{name:"after"})))}};p.style=".container{display:flex;align-items:flex-end;row-gap:8px;padding:8px 0;flex-wrap:wrap}.container.bordered{border-bottom:1px solid #d5d5d5}.desktop ::slotted([slot=before]){flex:1 1 0px}.desktop ::slotted([slot=center]){flex:0 1 fit-content}.desktop ::slotted([slot=after]){flex:1 1 0px}::slotted([slot=before]){display:flex;align-items:flex-end;flex-wrap:wrap;gap:8px}::slotted([slot=center]){display:flex;justify-content:center;align-items:flex-end;flex-wrap:wrap;gap:8px}::slotted([slot=after]){display:flex;justify-content:end;align-items:flex-end;flex-wrap:wrap;gap:8px}";export{a as tttx_filter_1_9_62,c as tttx_list_1_9_62,d as tttx_sorter_1_9_62,p as tttx_toolbar_1_9_62}
|
|
1
|
+
import{r as t,c as i,h as e,H as o,g as n,F as r}from"./p-c2a82822.js";import{p as s,d as l}from"./p-55799798.js";import"./p-112455b1.js";const a=class{constructor(e){t(this,e),this.filterChangeEvent=i(this,"filterChangeEvent",7),this.toggleFilter=i(this,"toggleFilter",7),this.filterKey=void 0,this.filterOptions=[{optionIcon:"cancel",optionIconColor:"darkred",optionText:"Expired"},{optionIcon:"warning",optionIconColor:"orange",optionText:"Expiring soon"},{optionIcon:"check_circle",optionIconColor:"green",optionText:"Active"}],this.showSelectAll=!0,this.showSearchField=!1,this.showOptionIcons=!0,this.filterButtonStyle="list filter",this.filterHeader="Qualification status",this.defaultFilterOptions=void 0,this.popoverWidth="193px",this.showPopover=!1,this.displayedFilterSettings=void 0,this.selectedFilters=void 0,this.filterSearchTerm="",this.allSelected=void 0}handleCloseFilter(){this.showPopover=!1}emitFilterEvent(){this.filterChangeEvent.emit({selectedFilters:this.selectedFilters,filterKey:this.filterKey,allSelected:this.allSelected})}onFilterButtonClick(){this.togglePopover()}onCloseButtonClick(){this.togglePopover()}onApplyFilterButtonClick(){this.emitFilterEvent(),this.togglePopover()}onFilterOptionSelected(t){this.allSelected=!1,this.selectedFilters=this.selectedFilters.includes(t)?this.selectedFilters.filter((i=>i!=t)):[...this.selectedFilters,t]}componentWillLoad(){if(this.displayedFilterSettings=this.parseFilterOptions(),void 0!==this.defaultFilterOptions){const t=this.parseDefaultFilterOptions();this.selectedFilters=t;let i=!0;this.parseFilterOptions().map((t=>{this.selectedFilters.includes(t.optionText)||(i=!1)})),this.allSelected=i}else this.allSelected=!0,this.selectedFilters=this.displayedFilterSettings.map((t=>t.optionText))}togglePopover(){this.showPopover=!this.showPopover,this.toggleFilter.emit(this.showPopover)}handleFilterChange(t){this.filterSearchTerm=t.target.value;const i=this.parseFilterOptions().filter((t=>{const i=t.optionText.toLowerCase(),e=this.filterSearchTerm.toLowerCase();return i.includes(e)}));this.displayedFilterSettings=i}onSelectAllClick(){this.allSelected=!this.allSelected,this.allSelected?this.displayedFilterSettings.forEach((t=>{this.selectedFilters=[...this.selectedFilters,t.optionText]})):this.selectedFilters=[]}getFilterButtonClassName(t){switch(t){case"table icon":return"--table-icon";case"list icon":return"--list-icon";default:return""}}parseFilterOptions(){return"string"==typeof this.filterOptions?JSON.parse(this.filterOptions):this.filterOptions}parseDefaultFilterOptions(){return"string"==typeof this.defaultFilterOptions?JSON.parse(this.defaultFilterOptions):this.defaultFilterOptions}render(){const t=this.showSearchField?"--with-search-field":"",i=this.allSelected?"check_box":"check_box_outline_blank",n=this.allSelected?"blue":"grey",r=this.getFilterButtonClassName(this.filterButtonStyle);return e(o,{id:`filter__${this.filterKey}`},e("div",{class:"filter-container"},e("button",{class:`filter-button ${r}`,type:"button",onClick:this.onFilterButtonClick.bind(this)},e("tttx-icon_1_9_64",{icon:"filter_list",class:"filter-icon",color:"black"}),"Filter"),this.showPopover&&e("div",{class:`filter-popover-container ${t}`,style:{width:this.popoverWidth}},e("div",{class:"filter-header"},this.filterHeader),this.showSearchField?e("div",{class:"search-field-container"},e("tttx-icon_1_9_64",{icon:"search",class:"search-icon"}),e("input",{type:"text",class:"search-input",placeholder:"Search",value:this.filterSearchTerm,onInput:this.handleFilterChange.bind(this)})):"",e("div",{class:"filter-options-container"},this.showSelectAll?e("div",{class:"filter-option",tabIndex:-1,onClick:this.onSelectAllClick.bind(this)},e("tttx-icon_1_9_64",{icon:i,color:n,class:"select-all-icon"}),e("label",{class:"filter-label"},"Select all")):"",this.displayedFilterSettings.map((t=>{const i=this.selectedFilters.includes(t.optionText)?"check_box":"check_box_outline_blank",o=this.selectedFilters.includes(t.optionText)?"blue":"grey";return e("div",{class:"filter-option",tabIndex:-1,onClick:()=>this.onFilterOptionSelected(t.optionText),key:t.optionText},e("tttx-icon_1_9_64",{icon:i,color:o,class:"checkbox-icon"}),this.showOptionIcons&&e("tttx-icon_1_9_64",{icon:t.optionIcon,color:t.optionIconColor}),e("label",{class:"filter-label"},t.optionText))}))),e("div",{class:"filter-popover-button-container"},e("button",{type:"button",class:"close-button",onClick:this.onCloseButtonClick.bind(this)},"Close"),e("button",{type:"button",class:"apply-button",onClick:this.onApplyFilterButtonClick.bind(this)},"Apply")))))}get el(){return n(this)}};a.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}.filter-container{background-color:white;position:relative}.filter-container .filter-button{display:inline-flex;justify-content:center;align-items:center;font-size:14px;font-weight:400;font-family:"Roboto", serif;text-transform:uppercase;color:#212121;border:1px solid #d5d5d5;border-radius:4px;background:transparent;height:36px;width:95px;margin:0;padding-right:16px;cursor:pointer}@media (max-width: 475px){.filter-container .filter-button{padding-left:4px}}.filter-container .filter-button .filter-icon{padding-left:8px;padding-right:4px}.filter-container .filter-button.--list-icon{font-size:0;width:36px;height:36px;padding:0}.filter-container .filter-button.--list-icon .filter-icon{padding:0}.filter-container .filter-button.--list-icon:hover{background:#e3e3e3}.filter-container .filter-button.--table-icon{font-size:0;width:36px;height:36px;padding:0;border:none}.filter-container .filter-button.--table-icon .filter-icon{padding:0;width:24px;height:24px}.filter-container .filter-button.--table-icon:hover{background:#e3e3e3;border-radius:50%;width:36px;height:36px}.filter-container .filter-button:hover{background:#e3e3e3}.filter-container .filter-popover-container{display:flex;flex-direction:column;gap:8px;border-radius:4px;box-shadow:0px 1px 5px #1111114D;position:absolute;top:36px;left:0px;background-color:white;padding:8px 16px}.filter-container .filter-popover-container .filter-header{color:#757575;text-transform:uppercase;font-size:14px;font-weight:500;font-family:"Roboto", serif;padding-top:4px;padding-bottom:5px}.filter-container .filter-popover-container .filter-options-container{display:flex;flex-direction:column;gap:4px;border-top:1px solid #d5d5d5;border-bottom:1px solid #d5d5d5;padding-bottom:8px}.filter-container .filter-popover-container .filter-option{display:flex;flex-direction:row;align-items:center;min-height:36px;padding-left:8px}.filter-container .filter-popover-container .filter-option .select-all-icon{padding-right:6px}.filter-container .filter-popover-container .filter-option .checkbox-icon{padding-right:8px}.filter-container .filter-popover-container .filter-option .filter-label{padding-left:8px;padding-bottom:3px;font-size:16px;font-weight:500;font-family:"Roboto", serif}.filter-container .filter-popover-container .filter-option:first-child{padding-top:8px}.filter-container .filter-popover-container .filter-popover-button-container{display:flex;justify-content:flex-end;align-items:center}.filter-container .filter-popover-container .filter-popover-button-container .close-button{height:36px;width:74px;background-color:white;border:1px solid #d5d5d5;border-radius:4px;text-transform:uppercase;margin-right:8px;font-size:14px;font-weight:400;font-family:"Roboto", serif;color:#212121}.filter-container .filter-popover-container .filter-popover-button-container .apply-button{height:36px;width:73px;background-color:#1479c6;color:white;border-radius:4px;border:none;text-transform:uppercase;font-size:14px;font-weight:400;font-family:"Roboto", serif}.filter-container .filter-popover-container.--with-search-field .filter-header{border-bottom:1px solid #d5d5d5}.filter-container .filter-popover-container.--with-search-field .search-field-container{position:relative;color:#d5d5d5;height:36px}.filter-container .filter-popover-container.--with-search-field .search-field-container .search-icon{position:absolute;top:6px;left:8px}.filter-container .filter-popover-container.--with-search-field .search-field-container .search-input{padding-left:36px;border:1px solid #d5d5d5;border-radius:4px;height:36px;width:100%;font-size:16px;font-family:"Roboto", serif;font-weight:500;box-sizing:border-box}.filter-container .filter-popover-container.--with-search-field .search-field-container .search-input:focus-visible,.filter-container .filter-popover-container.--with-search-field .search-field-container .search-input:focus{outline:none;border:1px solid #1479c6}.filter-container .filter-popover-container.--with-search-field .search-field-container .search-input::placeholder{color:#9e9e9e;font-size:16px;font-family:"Roboto", serif;font-weight:500}';const c=class{constructor(e){t(this,e),this.rowClick=i(this,"listRowClick",7),this.rowCheckboxClick=i(this,"listRowCheckboxClick",7),this.data=void 0,this._data=void 0,this.name=void 0}onDataChange(){if(this.data){this._data="string"==typeof this.data?JSON.parse(this.data):[...this.data];for(const t of this._data)t.hasCheckbox&&void 0===t.checked&&(t.checked=!1)}}componentWillLoad(){this.onDataChange()}onRowCheckboxHandler(t,i){t.stopPropagation(),i.rowData&&this.rowCheckboxClick.emit({key:i.key,name:this.name,data:i.rowData})}onRowClickHandler(t){(t.clickable||t.toggleable)&&t.rowData&&this.rowClick.emit({key:t.key,name:this.name,data:t.rowData})}renderListItem(t){let i;if("string"==typeof t.element){const o=s.sanitize(t.element,l);i=e("span",{class:"item-content",innerHTML:o})}else i=e("span",{class:"item-content"},t.element);return e(r,null,t.hasCheckbox&&e("div",{class:"checkbox"},e("tttx-icon_1_9_64",{icon:t.checked?"check_box":"check_box_outline_blank",color:t.checked?"blue":"grey",onClick:i=>{this.onRowCheckboxHandler(i,t)}})),t.element&&i,t.icon&&e("span",{class:"icons"},e("tttx-icon_1_9_64",{class:"align-right",icon:t.icon,color:"black"})))}render(){if(this._data)return e("ul",{class:"list"},this._data.map((t=>e("li",{key:t.key,class:"item"+(t.clickable?" clickable":"")+(t.toggleable?" toggleable":"")+(t.checked?" selected":"")+(t.active?" active":""),onClick:()=>{this.onRowClickHandler(t)}},this.renderListItem(t)))))}static get watchers(){return{data:["onDataChange"]}}};c.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{display:flex;flex-direction:column}.list{margin:0;padding:0}li{display:flex;align-items:flex-start;width:100%}li.item{list-style:none;margin:0;padding:8px;border-bottom:1px solid #d5d5d5;min-height:36px;box-sizing:border-box;width:100%}li.item:first-of-type{border-top:1px solid #d5d5d5}li.item.clickable:hover{cursor:pointer}li.item.toggleable:hover{cursor:pointer}li.item.active{background-color:rgba(17, 17, 17, 0.1)}li.item.active:hover{background-color:rgba(17, 17, 17, 0.15)}li.item.selected{background-color:#ebfbfc}li.item.selected:hover{background-color:#e0f8f9}li.item.selected.active{background-color:#ccf3f6}li.item.selected.active:hover{background-color:#bff0f3}li.item .icons{display:flex;justify-content:flex-end;align-items:center;height:36px}li.item .icons tttx-icon:hover{cursor:pointer}li.item .icons *{display:flex}li.item:hover{background-color:rgba(17, 17, 17, 0.05)}.align-right{margin-left:auto}.item-content{display:flex;align-items:center;width:100%;min-height:36px}.checkbox{padding:6px;margin-left:-8px}';const d=class{constructor(e){t(this,e),this.sorterChangeEvent=i(this,"sorterChangeEvent",7),this.toggleSorter=i(this,"toggleSorter",7),this.sorterKey=void 0,this.defaultSortDirection="descending",this.fieldOptionsData=null,this.defaultOption="",this.selectedField=this.defaultOption,this.sortDirection=this.defaultSortDirection,this.dropdownExpand=!1,this.dropdownOptions=void 0}handleCloseSorter(){this.dropdownExpand=!1}emitSortEvent(){this.sorterChangeEvent.emit({sorterDirection:this.sortDirection,sorterKey:this.sorterKey,sortField:this.selectedField})}onSortToggleClick(t){t.preventDefault(),this.sortDirection="ascending"==this.sortDirection?"descending":"ascending",this.emitSortEvent()}onDropdownClicked(){this.dropdownExpand=!this.dropdownExpand,this.toggleSorter.emit(this.dropdownExpand)}onDropdownSelected(t){this.dropdownExpand=!1,this.selectedField=t.target.innerHTML,this.emitSortEvent(),this.toggleSorter.emit(this.dropdownExpand)}render(){const t="string"==typeof this.fieldOptionsData?JSON.parse(this.fieldOptionsData):this.fieldOptionsData;if(!this.fieldOptionsData)return;const i="ascending"==this.sortDirection?"arrow_upward":"arrow_downward",n=this.dropdownExpand?"expand_less":"expand_more",r=this.selectedField;return e(o,{id:`sorter__${this.sorterKey}`},e("div",{tabindex:0,class:"sorter-container "+(this.dropdownExpand?"--expanded":"")},e("button",{class:"arrow-toggle-button",type:"button",onClick:this.onSortToggleClick.bind(this)},e("tttx-icon_1_9_64",{icon:i,color:"black"})),e("div",{class:"dropdown-selector",onClick:this.onDropdownClicked.bind(this)},e("div",{class:"dropdown-selector-button"},e("div",{class:"dropdown-selector-text"},r),e("div",{class:"dropdown-selector-chevron"},e("tttx-icon_1_9_64",{icon:n,color:"black"})))),this.dropdownExpand&&e("div",{class:"dropdown-options-list"},t.sorterOptions.map((t=>e("div",{class:"dropdown-option",tabIndex:-1,onClick:this.onDropdownSelected.bind(this),key:t.optionLabel},t.optionLabel))))))}get el(){return n(this)}};d.style='.material-symbols-rounded{font-variation-settings:"FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24}.sorter-container{display:flex;flex-direction:row;position:relative;border:1px solid #d5d5d5;border-radius:4px;font-weight:400;box-sizing:border-box;height:36px;cursor:pointer;width:220px}@media (max-width: 475px){.sorter-container{width:68px}}.sorter-container .arrow-toggle-button{display:inline-flex;justify-content:center;align-items:center;flex-direction:column;background-color:white;border:none;border-bottom-left-radius:4px;border-top-left-radius:4px}@media (max-width: 475px){.sorter-container .arrow-toggle-button{padding-right:0px;padding-left:8px}}.sorter-container .arrow-toggle-button .hydrated{display:flex;justify-content:center;align-items:center;cursor:pointer}.sorter-container .arrow-toggle-button span{display:block;margin:auto;line-height:16px}.sorter-container .arrow-toggle-button .material-symbols-rounded{color:#212121}.sorter-container .dropdown-selector{display:inline-flex;position:relative;flex-grow:1}.sorter-container .dropdown-selector .dropdown-selector-button{display:inline-flex;flex-direction:row;gap:4px;padding-right:4px;align-items:center;color:#212121;width:100%}@media (max-width: 475px){.sorter-container .dropdown-selector .dropdown-selector-button .dropdown-selector-text{display:none}}.sorter-container .dropdown-selector .dropdown-selector-chevron{display:inline-flex;margin-left:auto;right:0;top:0;flex-direction:row;align-items:center;height:36px}.sorter-container .dropdown-selector .dropdown-selector-chevron .hydrated{height:24px;cursor:pointer}@media (max-width: 475px){.sorter-container .dropdown-selector .dropdown-selector-chevron{padding-right:2px}}.sorter-container .dropdown-options-list{position:absolute;top:36px;left:0;z-index:1;width:220px;line-height:21px;font-size:16px;border-radius:4px;padding-top:8px;padding-bottom:7px;box-shadow:0px 1px 5px #1111114D;box-sizing:border-box;background-color:white}@media (max-width: 475px){.sorter-container .dropdown-options-list{width:220px;padding-top:8px}}.sorter-container .dropdown-options-list .dropdown-option{padding:8px 16px;font-size:16px;line-height:21px}.sorter-container .dropdown-options-list .dropdown-option:hover,.sorter-container .dropdown-options-list .dropdown-option:focus{background-color:#ebfbfc}.sorter-container.--expanded{border-color:#1579c6}@media (max-width: 475px){.sorter-container.--expanded{border:none}}';const p=class{constructor(i){t(this,i),this.border=!0,this.viewSize=void 0}handleResize(){this.setViewSize()}async componentWillLoad(){this.setViewSize()}setViewSize(){this.viewSize=window.innerWidth<698?"mobile":"desktop"}render(){return e(o,null,e("div",{class:`container ${this.border?"bordered":""} ${this.viewSize}`},e("slot",{name:"before"}),e("slot",{name:"center"}),e("slot",{name:"after"})))}};p.style=".container{display:flex;align-items:flex-end;row-gap:8px;padding:8px 0;flex-wrap:wrap}.container.bordered{border-bottom:1px solid #d5d5d5}.desktop ::slotted([slot=before]){flex:1 1 0px}.desktop ::slotted([slot=center]){flex:0 1 fit-content}.desktop ::slotted([slot=after]){flex:1 1 0px}::slotted([slot=before]){display:flex;align-items:flex-end;flex-wrap:wrap;gap:8px}::slotted([slot=center]){display:flex;justify-content:center;align-items:flex-end;flex-wrap:wrap;gap:8px}::slotted([slot=after]){display:flex;justify-content:end;align-items:flex-end;flex-wrap:wrap;gap:8px}";export{a as tttx_filter_1_9_64,c as tttx_list_1_9_64,d as tttx_sorter_1_9_64,p as tttx_toolbar_1_9_64}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,h as t,H as i}from"./p-
|
|
1
|
+
import{r as e,h as t,H as i}from"./p-c2a82822.js";const s=class{constructor(t){e(this,t),this.width="100%",this.height="1rem",this.borderRadius="4px",this.color="#e0e0e0",this.variant="text",this.animation="pulse",this.count=1,this.direction="vertical",this.gap="8px",this.customClass=""}getSkeletonStyle(){return{width:this.width,height:this.height,backgroundColor:this.color,borderRadius:"circle"===this.variant?"50%":this.borderRadius}}render(){const e=this.getSkeletonStyle(),s=Array.from({length:this.count});return t(i,null,t("div",{class:`skeleton-wrapper ${this.direction} ${this.customClass}`,style:{gap:this.gap,width:"100%"}},s.map(((i,s)=>t("div",{key:s,class:`skeleton ${this.animation} ${this.variant}`,style:e})))))}};s.style=':host{display:block}.skeleton-wrapper{display:flex}.skeleton-wrapper.vertical{flex-direction:column}.skeleton-wrapper.horizontal{flex-direction:row;align-items:center;flex-wrap:wrap}.skeleton{display:inline-block;background-color:#D5D5D5;position:relative;overflow:hidden;flex-shrink:0}.skeleton.text{border-radius:4px}.skeleton.rect{border-radius:4px}.skeleton.circle{border-radius:50%}.skeleton.pulse{animation:pulse 1.5s infinite ease-in-out}.skeleton.wave::after{content:"";position:absolute;top:0;left:-150px;height:100%;width:150px;background:linear-gradient(90deg, transparent, white, transparent);animation:wave 1.6s infinite}@keyframes pulse{0%{opacity:1}50%{opacity:0.4}100%{opacity:1}}@keyframes wave{0%{left:-150px}100%{left:100%}}';export{s as tttx_skeleton_loader_1_9_64}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as e,h as i,H as l}from"./p-
|
|
1
|
+
import{r as t,c as e,h as i,H as l}from"./p-c2a82822.js";import{p as s,d as o}from"./p-55799798.js";import"./p-112455b1.js";const h=class{constructor(i){t(this,i),this.rowClicked=e(this,"rowClicked",7),this.headerClicked=e(this,"headerClicked",7),this.headerOrderChanged=e(this,"headerOrderChanged",7),this.headers=[],this.data=[],this.selectable=!1,this.loading=!1,this.selected=-1,this.draggableHeaders=!1,this.draggedHeaderIndex=null}rowClickedHandler(t){this.rowClicked.emit(t),this.selectable&&(this.selected=this.data.findIndex((e=>e===t)))}headerClickedHandler(t){this.headerClicked.emit(t)}handleDragStart(t){this.draggedHeaderIndex=t}handleDragOver(t){t.preventDefault()}handleDrop(t){if(null!==this.draggedHeaderIndex&&this.draggedHeaderIndex!==t){const e=[...this.headers],i=e[this.draggedHeaderIndex];e.splice(this.draggedHeaderIndex,1),e.splice(t,0,i),console.log("newOrder",e),this.headerOrderChanged.emit(e.map((t=>t.key)))}this.draggedHeaderIndex=null}render(){return i(l,null,i("div",{style:{width:"100%",overflowX:"auto"}},i("table",null,i("colgroup",null,this.headers&&this.headers.map((t=>i("col",{style:{width:t.width?`${t.width}`:"auto"}})))),i("thead",null,i("tr",null,this.loading?[1,2,3].map((t=>i("th",{key:"skeleton-header-"+t},i("div",{class:"skeleton"})))):this.headers&&this.headers.map(((t,e)=>i("th",{key:"header-"+t.key,class:"header-typography",onClick:()=>this.headerClickedHandler(t),innerHTML:s.sanitize(t.label,o),draggable:this.draggableHeaders,onDragStart:this.draggableHeaders?()=>this.handleDragStart(e):void 0,onDragOver:this.draggableHeaders?t=>this.handleDragOver(t):void 0,onDrop:this.draggableHeaders?()=>this.handleDrop(e):void 0}))))),i("tbody",null,this.loading?[1,2,3].map((t=>i("tr",{key:"skeleton-row-"+t},[1,2,3].map((t=>i("td",{key:"skeleton-cell-"+t},i("div",{class:"skeleton"}))))))):Object.keys(this.data).map(((t,e)=>i("tr",{key:"row-"+e,class:(this.selectable?"clickable":"")+(e===this.selected&&this.selectable?" selected":""),onClick:()=>this.rowClickedHandler(this.data[t])},this.headers.map((e=>i("td",{key:"cell-"+e.key,class:"cell-typography"},i("div",{class:"cell-spacing",innerHTML:s.sanitize(this.data[t][e.key],o)})))))))))))}};h.style='.material-symbols-rounded{font-variation-settings:"FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24}.skeleton{animation:skeleton-loading 1s linear infinite alternate;border-radius:4px;width:100%}@keyframes skeleton-loading{0%{background-color:#c2cfd6}100%{background-color:#f0f3f5}}:host{display:block}table{width:100%;border-collapse:collapse;table-layout:fixed;box-sizing:border-box;min-width:600px}thead tr{height:52px;background-color:#f0f0f0}thead tr td{text-align:left;padding-left:8px 16px;min-width:40px}tbody tr{height:52px}tr{border-bottom:1px solid #d5d5d5}.selected{background-color:#ebfbfc}td,th{text-align:left;padding:8px 16px;min-width:40px}.cell-spacing{display:flex;align-items:left}.skeleton{height:24px;display:block}.header-typography,.cell-typography{font-family:"Roboto", sans-serif;font-size:16px;font-style:normal;line-height:normal}.header-typography{font-weight:500;color:#757575}.cell-typography{font-weight:normal;color:#212121}.clickable{cursor:pointer}';export{h as tttx_table_1_9_64}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,c as t,a as i,h as n,F as o,g as r}from"./p-
|
|
1
|
+
import{r as e,c as t,a as i,h as n,F as o,g as r}from"./p-c2a82822.js";import{p as l,d as s}from"./p-55799798.js";import"./p-112455b1.js";const d=class{constructor(n){e(this,n),this.clickEvent=t(this,"clickEvent",7),this.expandNode=t(this,"expandNode",7),this.checkboxChange=t(this,"checkboxChange",7),this.moveNode=t(this,"moveNode",7),this.dragIcon=i("assets/img/drag-icon.svg"),this.dragGhost={el:null},this.createGhostImage=e=>{const t=document.createElement("div");return t.textContent=e,Object.assign(t.style,{position:"absolute",top:"-9999px",left:"-9999px",padding:"6px 20px",background:"white",border:"1px solid #ccc",fontSize:"14px",pointerEvents:"none"}),document.body.appendChild(t),setTimeout((()=>document.body.removeChild(t)),0),t},this.handleDragStart=(e,t,i,n)=>{if(!e.dataTransfer)return;this.draggedNodeParentId=n;const o=JSON.stringify({parentId:n,index:i,node:t});e.dataTransfer.setData("text/plain",o);const r=this.createGhostImage(t.title);this.dragGhost.el=r,e.dataTransfer.setDragImage(r,0,0)},this.handleDragDrop=(e,t,i,n)=>{var o;e.preventDefault();const r=null===(o=e.dataTransfer)||void 0===o?void 0:o.getData("text/plain");if(!r)return;const{parentId:l,index:s,node:d}=JSON.parse(r);if(t.id===d.id||l!==n)return;const a=[...this.treeData],c=this.findNodeById(a,n),h=[...c.child],[m]=h.splice(s,1);h.splice(i,0,m),c.child=h,this.treeData=a,this.draggedNodeParentId=void 0,this.dragGhost.el&&(this.dragGhost.el.remove(),this.dragGhost.el=null),this.moveNode.emit(this.treeData)},this.handleDragOver=(e,t)=>{e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=this.draggedNodeParentId===t?"move":"none")},this.data=void 0,this.treeData=void 0}componentWillRender(){this.data&&(this.treeData="string"==typeof this.data?JSON.parse(this.data):this.data)}onClickHandler(e,t){e.stopPropagation(),this.clickEvent.emit(t)}toggleNode(e,t){t.stopPropagation(),e.isOpen=!e.isOpen,this.treeData=[...this.treeData],this.expandNode.emit({node:e,treeViewData:this.treeData})}handleCheckboxChange(e,t){t.stopPropagation(),e.checked=!e.checked,this.updateChildrenCheckStatus(e),this.updateParentCheckStatus(),this.treeData=[...this.treeData],this.checkboxChange.emit(this.treeData)}updateChildrenCheckStatus(e){e.child&&e.child.forEach((t=>{t.hasCheckbox&&void 0!==t.checked&&(t.checked=e.checked),this.updateChildrenCheckStatus(t)}))}updateParentCheckStatus(e,t){if(void 0===e)return void this.treeData.forEach((e=>this.updateParentCheckStatus(e,e.child)));let i=[];return t&&t.length>0&&(i=t.map((e=>this.updateParentCheckStatus(e,e.child))).flat(1),i.some((e=>e))&&(e.checked=!0),i.every((e=>!e))&&(e.checked=!1)),[...i,e.checked]}treeConfigs(e){let t,i;return e.checked?(t="check_box",i="blue"):(t="check_box_outline_blank",i="grey"),{checkboxColor:i,checkboxIcon:t,rowHoverActive:e.hasHover?"rowHover":"",expanderIcon:e.isOpen?"arrow_drop_down":"arrow_right",selectedActive:e.selectable&&e.selected?"rowSelected":""}}findNodeById(e,t){for(const i of e){if(i.id===t)return i;if(i.child){const e=this.findNodeById(i.child,t);if(e)return e}}}renderNode(e,t,i){var r,l;const s=this.treeConfigs(e);return e.child?n(o,null,n("li",Object.assign({"data-id":e.id,draggable:null!==(r=e.draggable)&&void 0!==r&&r},e.draggable?{onDragOver:e=>this.handleDragOver(e,i)}:{},e.draggable?{onDrop:n=>this.handleDragDrop(n,e,t,i)}:{},{class:`inline-tree-item element-row tree-node ${s.rowHoverActive} ${s.selectedActive}`,onClick:t=>{e.hasHover&&this.onClickHandler(t,e)}}),n("tttx-button_1_9_64",{class:"toggleNode",design:"borderless-circle",notext:!0,icon:s.expanderIcon,color:"black",onClick:t=>this.toggleNode(e,t)}),this.htmlcode("treeNode",e,s.checkboxIcon,s.checkboxColor,t,i)),e.isOpen?n("li",null,n("ul",null,e.child.map(((t,i)=>this.renderNode(t,i,e.id))))):null):n("li",Object.assign({"data-id":e.id,draggable:null!==(l=e.draggable)&&void 0!==l&&l},e.draggable?{onDragOver:e=>this.handleDragOver(e,i)}:{},e.draggable?{onDrop:n=>this.handleDragDrop(n,e,t,i)}:{},{class:`inline-tree-item element-row ${s.rowHoverActive} ${s.selectedActive}`,onClick:t=>{e.hasHover&&this.onClickHandler(t,e)}}),this.htmlcode("treeLeaf",e,s.checkboxIcon,s.checkboxColor,t,i))}htmlcode(e,t,i,o,r,d){return n("div",{class:"inline-tree-item element"},t.draggable&&n("img",{src:this.dragIcon,alt:"drag",class:"drag-handle",draggable:!0,onDragStart:e=>this.handleDragStart(e,t,r,d)}),t.hasCheckbox&&n("tttx-button_1_9_64",{design:"borderless-circle",notext:!0,icon:i,iconcolor:o,class:"padding-icon checkbox",onClick:e=>this.handleCheckboxChange(t,e)}),!t.html&&t.hasIcon&&n("tttx-icon_1_9_64",{icon:t.icon,color:t.iconColor,class:"padding-icon"}),!t.html&&n("div",{class:e},t.title),t.html&&n("div",{class:e,innerHTML:l.sanitize(t.html,s)}))}render(){if(this.data)return n("div",{class:"tree-view-element"},n("ul",null,this.treeData.map(((e,t)=>this.renderNode(e,t)))))}get el(){return r(this)}};d.style='.material-symbols-rounded{font-variation-settings:"FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24}.tree-view-element>ul{margin:0;padding:0}.tree-view-element>* ul{padding:0 0 0 36px}.tree-view-element ul li{list-style-type:none}.tree-view-element ul li.inline-tree-item{display:flex;align-items:center}.tree-view-element ul li.inline-tree-item .element{display:flex;flex-flow:row nowrap;justify-content:flex-start;align-items:center;width:100%;padding-left:8px}.tree-view-element ul li.inline-tree-item .element .padding-icon{padding:6px;height:24px;width:24px;display:flex;align-items:center;justify-content:center}@media (hover: hover){.tree-view-element ul li.inline-tree-item.element-row.rowHover:hover{cursor:pointer}.tree-view-element ul li.inline-tree-item.element-row.rowHover:hover::before{content:"";position:absolute;left:-50%;top:0;bottom:0;right:0;pointer-events:none}.tree-view-element ul li.inline-tree-item.element-row.rowHover:not(.rowSelected):hover::before{background-color:rgba(17, 17, 17, 0.05)}.tree-view-element ul li.inline-tree-item.element-row.rowHover.rowSelected:hover::before{background-color:rgba(17, 17, 17, 0.15)}}.tree-view-element ul li.inline-tree-item.element-row{min-height:36px;font-family:"Roboto", serif;font-size:16px;padding:8px 0px;position:relative}.tree-view-element ul li.inline-tree-item.element-row::before{content:"";position:absolute;left:-50%;bottom:0;right:0;border-bottom:1px solid #d5d5d5;pointer-events:none}.tree-view-element ul li.inline-tree-item.element-row.rowSelected::before{content:"";position:absolute;left:-50%;top:0;bottom:0;right:0;background-color:rgba(17, 17, 17, 0.1);pointer-events:none}.tree-view-element ul li.inline-tree-item.element-row.tree-node::before{background-color:#fafafa;height:51px;z-index:1}.tree-view-element ul li.inline-tree-item.element-row.tree-node *{z-index:2}.tree-view-element ul li.inline-tree-item.element-row .treeNode{width:100%;font-weight:500;color:#212121}.tree-view-element ul li.inline-tree-item.element-row .treeLeaf{width:100%;font-weight:400}.tree-view-element ul li.inline-tree-item.element-row .drag-handle{margin-right:10px}.tree-view-element ul li.inline-tree-item.element-row .drop-not-allowed{border-color:red;border-style:dashed;cursor:not-allowed;opacity:0.7}';export{d as tttx_tree_view_1_9_64}
|
package/dist/tttx/tttx.esm.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,b as t}from"./p-
|
|
1
|
+
import{p as e,b as t}from"./p-c2a82822.js";export{s as setNonce}from"./p-c2a82822.js";(()=>{const t=import.meta.url,o={};return""!==t&&(o.resourcesUrl=new URL(".",t).href),e(o)})().then((e=>t([["p-28902955",[[1,"tttx-data-pattern_1_9_64",{data:[1],sorterOptions:[1,"sorter-options"],filterOptions:[1,"filter-options"],filterHeader:[1,"filter-header"],defaultSortOption:[1,"default-sort-option"],searchplaceholder:[1],addbuttonlabel:[1],addbutton:[4]}]]],["p-46853736",[[1,"tttx-form_1_9_64",{formschema:[1025],data:[1032],submit:[64],showLoadingSpinner:[64],setSelectedItem:[64],setSelectOptions:[64],isValid:[64],setValidationFor:[64],clearValidationFor:[64],disableFormField:[64],enableFormField:[64],setInputFieldValue:[64],setFieldReadOnlyMode:[64]}]]],["p-72aa3209",[[1,"tttx-multiselect-box_1_9_64",{optionsData:[1,"options-data"],label:[1],inline:[4],placeholder:[1],searchEnabled:[4,"search-enabled"],htmlVisibleValue:[4,"html-visible-value"],visibleValue:[1,"visible-value"],isLoading:[4,"is-loading"],stopLocalSearch:[4,"stop-local-search"],readOnly:[4,"read-only"],priorityLabel:[1,"priority-label"],nonPriorityLabel:[1,"non-priority-label"],open:[32],unsavedSelectedItems:[32],searchTerm:[32]},[[0,"closeSelectBox","handleCloseSelectBox"],[0,"blur","handleBlur"]]]]],["p-753a802a",[[1,"tttx-chart_1_9_64",{chartType:[1,"chart-type"],chartData:[16],chartOptions:[16],loading:[4],error:[4],fallbackText:[1,"fallback-text"],width:[1],height:[1],exportable:[32],chartInstance:[32],showPngSvgExport:[32]}]]],["p-46985553",[[1,"tttx-datacard_1_9_64",{cardTitle:[1,"card-title"],leftData:[1,"left-data"],rightData:[1,"right-data"],rightSubtext:[1,"right-subtext"],iconStyle:[1,"icon-style"],cardType:[1,"card-type"],chartConfig:[1,"chart-config"],_chartConfig:[32],chartRender:[32]}]]],["p-1b8af0a1",[[1,"tttx-dialog-box_1_9_64",{data:[1025],size:[1],open:[1028],allowOverflow:[4,"allow-overflow"],elementSize:[32]},[[9,"resize","handleResize"]]]]],["p-28528c3a",[[1,"tttx-dialog_1_9_64",{header:[1],type:[1],size:[1],open:[4],allowOverflow:[4,"allow-overflow"],closeEnabled:[4,"close-enabled"],elementSize:[32]},[[9,"resize","handleResize"]]]]],["p-ffb09d64",[[1,"tttx-tree-view_1_9_64",{data:[1040],treeData:[32]}]]],["p-99cee169",[[1,"tttx-action-dropdown_1_9_64",{actionKey:[1,"action-key"],icon:[1],fieldOptionsData:[1,"field-options-data"],defaultOption:[1,"default-option"],isIconVisible:[4,"is-icon-visible"],selectedField:[32],dropdownExpand:[32],dropdownOptions:[32]},[[0,"closeActionDropdown","handleCloseActionDropdown"]]]]],["p-1c0db631",[[1,"tttx-button-v2_1_9_64",{notext:[4],icon:[1],label:[1],iconcolor:[1025],iconposition:[1],iconStart:[1,"icon-start"],iconEnd:[1,"icon-end"],design:[1],disabled:[516],type:[1],href:[1],options:[1],size:[1],dropdownOpen:[32]},[[4,"click","handleClickOutside"]]]]],["p-8db27f20",[[0,"tttx-checkbox_1_9_64",{checkboxId:[1,"checkbox-id"],label:[1],inline:[4],indeterminate:[4],checked:[4]}]]],["p-ce6a69bc",[[1,"tttx-comments_1_9_64",{currentuser:[1],comments:[1],disableFile:[4,"disable-file"],messageLimit:[2,"message-limit"],inputBoxHeight:[2,"input-box-height"],placeholder:[1],saveButtonText:[1,"save-button-text"],value:[1],allowEditing:[4,"allow-editing"],readonly:[4],_comments:[32],showError:[32],_saveButtonText:[32],editingComment:[32],addDummyComment:[64]}]]],["p-95ea704b",[[1,"tttx-date-range-picker",{initialValue:[16],placeholderText:[1,"placeholder-text"],showCalendar:[32],startDate:[32],endDate:[32],currentMonth:[32],currentYear:[32],isSelecting:[32],hoverDate:[32]}]]],["p-e0bd4daa",[[1,"tttx-expander_1_9_64",{name:[1],open:[4],lefticon:[1],lefticoncolor:[1],isExpanded:[32]}]]],["p-4e8dee24",[[2,"tttx-tabs_1_9_64",{tabsName:[1,"tabs-name"],navigation:[4],wide:[4],tabs:[1],_tabs:[32]},[[0,"keydown","handleKeyDown"]]]]],["p-04acb4f7",[[4,"tttx-checkbox-group-caption_1_9_64"]]],["p-a380f600",[[4,"tttx-checkbox-group-heading_1_9_64"]]],["p-478169f8",[[1,"tttx-checkbox-group_1_9_64"]]],["p-cfc7f861",[[1,"tttx-keyvalue-block_1_9_64",{keyvalues:[1],horizontal:[4],spacedout:[4],_elements:[32]}]]],["p-210a3640",[[2,"tttx-percentage-bar_1_9_64",{percentage:[8],thresholds:[1],color:[1],min:[1],labelid:[1],_percentage:[32],_ranges:[32],_min:[32]}]]],["p-2a6e57b3",[[1,"tttx-qrcode_1_9_64",{link:[1025],size:[1026]}]]],["p-e8d02dd3",[[1,"tttx-skeleton_loader_1_9_64",{width:[1],height:[1],borderRadius:[1,"border-radius"],color:[1],variant:[1],animation:[1],count:[2],direction:[1],gap:[1],customClass:[1,"custom-class"]}]]],["p-eda88cd9",[[1,"tttx-table_1_9_64",{headers:[16],data:[8],selectable:[4],loading:[4],selected:[2],draggableHeaders:[4,"draggable-headers"],draggedHeaderIndex:[32]}]]],["p-6ae828ed",[[2,"tttx-textarea_1_9_64",{label:[1],secondarylabel:[1],showerrormsg:[4],showerrorbubble:[4],errormsg:[1],rows:[2],textareaautofocus:[4],inputkeyhint:[1],inputindex:[8],inputtitle:[1],disabled:[4],maxlength:[8],name:[1],placeholder:[1],readonly:[8],required:[4],value:[1032]}]]],["p-46933761",[[1,"tttx-toggle_1_9_64",{initialstate:[8],_state:[32]}]]],["p-964b5e1a",[[1,"tttx-tag_1_9_64",{text:[1],color:[1],textColor:[1,"text-color"],hasIcon:[4,"has-icon"],icon:[1],iconColor:[1,"icon-color"],iconSize:[2,"icon-size"]}],[2,"tttx-standalone-input_1_9_64",{label:[1],secondarylabel:[1],showerrormsg:[4],showerrorbubble:[4],errormsg:[1],iconleft:[1],iconleftcolor:[1],iconright:[1],iconrightcolor:[1],inputicon:[1],inputiconcolor:[1],inline:[4],inputautocapitalize:[1],inputautofocus:[4],inputkeyhint:[1],inputindex:[8],inputtitle:[1],autocomplete:[1],checked:[4],disabled:[4],max:[8],maxlength:[8],min:[8],minlength:[8],name:[1],pattern:[1],placeholder:[1],readonly:[8],required:[4],step:[8],type:[1],value:[1032]}],[1,"tttx-loading-spinner_1_9_64",{loadingMessage:[4,"loading-message"],size:[1],color:[1],message:[1],customMessageSchema:[16],timeElapsed:[32]}]]],["p-79a18842",[[1,"tttx-select-box_1_9_64",{optionsData:[1,"options-data"],label:[1],inline:[4],placeholder:[1],searchEnabled:[4,"search-enabled"],selectedValue:[1,"selected-value"],useExternalFiltering:[4,"use-external-filtering"],useExternalPaginatedFiltering:[4,"use-external-paginated-filtering"],isAllExternalDataLoaded:[4,"is-all-external-data-loaded"],isLoading:[4,"is-loading"],readOnly:[4,"read-only"],priorityLabel:[1,"priority-label"],nonPriorityLabel:[1,"non-priority-label"],clearable:[4],showErrorMsg:[4,"show-error-msg"],showErrorBubble:[4,"show-error-bubble"],errorMsg:[1,"error-msg"],open:[32],selectedItem:[32],searchTerm:[32],loadingNextExternalPage:[32],setSelectedItem:[64]},[[0,"closeSelectBox","handleCloseSelectBox"],[0,"blur","handleBlur"]]]]],["p-655cebb7",[[1,"tttx-graph_1_9_64",{chartType:[1,"chart-type"],chartData:[1,"chart-data"],chartText:[1,"chart-text"],chartConfig:[32],formattedData:[32]}]]],["p-4bc84dcf",[[1,"tttx-icon_1_9_64",{icon:[1],color:[1],size:[1026]}]]],["p-e7c92d26",[[1,"tttx-filter_1_9_64",{filterKey:[1,"filter-key"],filterOptions:[1,"filter-options"],showSelectAll:[4,"show-select-all"],showSearchField:[4,"show-search-field"],showOptionIcons:[4,"show-option-icons"],filterButtonStyle:[1,"filter-button-style"],filterHeader:[1,"filter-header"],defaultFilterOptions:[1,"default-filter-options"],popoverWidth:[1,"popover-width"],showPopover:[32],displayedFilterSettings:[32],selectedFilters:[32],filterSearchTerm:[32],allSelected:[32]},[[0,"closeFilter","handleCloseFilter"]]],[1,"tttx-list_1_9_64",{data:[1025],name:[1],_data:[32]}],[1,"tttx-sorter_1_9_64",{sorterKey:[1,"sorter-key"],defaultSortDirection:[1,"default-sort-direction"],fieldOptionsData:[1,"field-options-data"],defaultOption:[1,"default-option"],selectedField:[32],sortDirection:[32],dropdownExpand:[32],dropdownOptions:[32]},[[0,"closeSorter","handleCloseSorter"]]],[1,"tttx-toolbar_1_9_64",{border:[4],viewSize:[32]},[[9,"resize","handleResize"]]]]],["p-92b48e8e",[[1,"tttx-button_1_9_64",{notext:[4],icon:[1],iconposition:[1],iconcolor:[1025],design:[1]}]]]],e)));
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { EventEmitter } from '../../../stencil-public-runtime';
|
|
2
|
+
export declare class TttxButton {
|
|
3
|
+
notext: boolean;
|
|
4
|
+
icon?: string;
|
|
5
|
+
label?: string;
|
|
6
|
+
iconcolor: string;
|
|
7
|
+
iconposition: 'left' | 'right';
|
|
8
|
+
iconStart?: string;
|
|
9
|
+
iconEnd?: string;
|
|
10
|
+
design: 'primary' | 'secondary' | 'default' | 'disabled' | 'danger' | 'light' | 'success' | 'warning' | 'transparent';
|
|
11
|
+
disabled: boolean;
|
|
12
|
+
type?: 'button' | 'dropdown';
|
|
13
|
+
href?: string;
|
|
14
|
+
options?: string | {
|
|
15
|
+
label: string;
|
|
16
|
+
icon?: string;
|
|
17
|
+
}[];
|
|
18
|
+
size: 'S' | 'M' | 'L';
|
|
19
|
+
dropdownOpen: boolean;
|
|
20
|
+
buttonDropdownChange: EventEmitter<string>;
|
|
21
|
+
host: HTMLElement;
|
|
22
|
+
private get isDisabled();
|
|
23
|
+
private get parsedOptions();
|
|
24
|
+
private get iconSize();
|
|
25
|
+
componentWillLoad(): void;
|
|
26
|
+
handleClickOutside(event: MouseEvent): void;
|
|
27
|
+
private toggleDropdown;
|
|
28
|
+
private handleDropdownItemClick;
|
|
29
|
+
private renderButtonContent;
|
|
30
|
+
private renderDropdownList;
|
|
31
|
+
render(): any;
|
|
32
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
title: string;
|
|
3
|
+
component: string;
|
|
4
|
+
argTypes: {
|
|
5
|
+
showIconStart: {
|
|
6
|
+
control: string;
|
|
7
|
+
description: string;
|
|
8
|
+
};
|
|
9
|
+
iconStart: {
|
|
10
|
+
control: string;
|
|
11
|
+
description: string;
|
|
12
|
+
};
|
|
13
|
+
showIconEnd: {
|
|
14
|
+
control: string;
|
|
15
|
+
description: string;
|
|
16
|
+
};
|
|
17
|
+
iconEnd: {
|
|
18
|
+
control: string;
|
|
19
|
+
description: string;
|
|
20
|
+
};
|
|
21
|
+
label: {
|
|
22
|
+
control: string;
|
|
23
|
+
};
|
|
24
|
+
design: {
|
|
25
|
+
control: {
|
|
26
|
+
type: string;
|
|
27
|
+
};
|
|
28
|
+
options: string[];
|
|
29
|
+
};
|
|
30
|
+
size: {
|
|
31
|
+
control: {
|
|
32
|
+
type: string;
|
|
33
|
+
};
|
|
34
|
+
options: string[];
|
|
35
|
+
defaultValue: string;
|
|
36
|
+
description: string;
|
|
37
|
+
};
|
|
38
|
+
notext: {
|
|
39
|
+
control: string;
|
|
40
|
+
};
|
|
41
|
+
disabled: {
|
|
42
|
+
control: string;
|
|
43
|
+
};
|
|
44
|
+
type: {
|
|
45
|
+
control: {
|
|
46
|
+
type: string;
|
|
47
|
+
};
|
|
48
|
+
options: string[];
|
|
49
|
+
};
|
|
50
|
+
options: {
|
|
51
|
+
control: string;
|
|
52
|
+
description: string;
|
|
53
|
+
defaultValue: any[];
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
export default _default;
|
|
58
|
+
export declare const Primary: any;
|
|
59
|
+
export declare const Secondary: any;
|
|
60
|
+
export declare const Danger: any;
|
|
61
|
+
export declare const Success: any;
|
|
62
|
+
export declare const Warning: any;
|
|
63
|
+
export declare const Light: any;
|
|
64
|
+
export declare const Transparent: any;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import Chart from 'chart.js/auto';
|
|
2
|
+
import type { ChartType, ChartData, ChartOptions } from 'chart.js';
|
|
3
|
+
import { EventEmitter } from '../../../stencil-public-runtime';
|
|
4
|
+
export declare class TttxChart {
|
|
5
|
+
el: HTMLElement;
|
|
6
|
+
chartType: 'line' | 'doughnut' | 'semi-gauge';
|
|
7
|
+
chartData: ChartData;
|
|
8
|
+
chartOptions?: ChartOptions;
|
|
9
|
+
loading?: boolean;
|
|
10
|
+
error?: boolean;
|
|
11
|
+
fallbackText?: string;
|
|
12
|
+
width: string;
|
|
13
|
+
height: string;
|
|
14
|
+
exportable: boolean;
|
|
15
|
+
chartInstance: Chart;
|
|
16
|
+
showPngSvgExport: boolean;
|
|
17
|
+
canvasEl: HTMLCanvasElement;
|
|
18
|
+
exportCSV: EventEmitter<{
|
|
19
|
+
name: string;
|
|
20
|
+
}>;
|
|
21
|
+
handleUpdate(): void;
|
|
22
|
+
componentDidLoad(): void;
|
|
23
|
+
disconnectedCallback(): void;
|
|
24
|
+
renderChart(): void;
|
|
25
|
+
destroyChart(): void;
|
|
26
|
+
getChartJsType(): ChartType;
|
|
27
|
+
getBaseOptions(): ChartOptions;
|
|
28
|
+
getLineChartConfig(): ChartOptions;
|
|
29
|
+
getDoughnutChartConfig(): ChartOptions;
|
|
30
|
+
getCenterTextPlugin(value: string): {
|
|
31
|
+
id: string;
|
|
32
|
+
afterDatasetsDraw: (chart: any) => void;
|
|
33
|
+
};
|
|
34
|
+
getSemiGaugeChartConfig(): ChartOptions;
|
|
35
|
+
merge(target: any, source: any): any;
|
|
36
|
+
getChartOptions(): ChartOptions;
|
|
37
|
+
exportChart(format: 'png' | 'svg'): void;
|
|
38
|
+
getErrorContent(): any;
|
|
39
|
+
getNoDataContent(): any;
|
|
40
|
+
commonContent(iconName: string, heading: string, message: string, iconColor: string, showActions?: boolean): any;
|
|
41
|
+
render(): any;
|
|
42
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
title: string;
|
|
3
|
+
component: string;
|
|
4
|
+
parameters: {
|
|
5
|
+
layout: string;
|
|
6
|
+
};
|
|
7
|
+
};
|
|
8
|
+
export default _default;
|
|
9
|
+
export declare const LineChart: any;
|
|
10
|
+
export declare const DonutChart: any;
|
|
11
|
+
export declare const SemiGaugeChart: any;
|
|
@@ -27,7 +27,7 @@ export declare class TttxSelectBox {
|
|
|
27
27
|
private dropdownSelector;
|
|
28
28
|
private bodyOffset;
|
|
29
29
|
private searchFilterTimeout;
|
|
30
|
-
el:
|
|
30
|
+
el: HTMLTttxSelectBox_1_9_64Element;
|
|
31
31
|
componentWillLoad(): Promise<void>;
|
|
32
32
|
setOptionsData(): Promise<void>;
|
|
33
33
|
updateAllLoadedBool(): void;
|
|
@@ -30,9 +30,9 @@ export declare class TttxInput {
|
|
|
30
30
|
/**
|
|
31
31
|
* tabindex - Allows the HTML elements to be focusable
|
|
32
32
|
* @example <caption>In HTML (like `index.html`)</caption>
|
|
33
|
-
* <tttx-standalone-
|
|
33
|
+
* <tttx-standalone-input_1_9_64 input-index="1" />
|
|
34
34
|
* @example <caption>In TSX files</caption>
|
|
35
|
-
* <tttx-standalone-
|
|
35
|
+
* <tttx-standalone-input_1_9_64 inputindex={1} />
|
|
36
36
|
*/
|
|
37
37
|
inputindex: string | number;
|
|
38
38
|
inputtitle: string;
|
|
@@ -17,9 +17,9 @@ export declare class TttxTextarea {
|
|
|
17
17
|
/**
|
|
18
18
|
* tabindex - Allows the HTML elements to be focusable
|
|
19
19
|
* @example <caption>In HTML (like `index.html`)</caption>
|
|
20
|
-
* <tttx-
|
|
20
|
+
* <tttx-textarea_1_9_64 input-index="1" />
|
|
21
21
|
* @example <caption>In TSX files</caption>
|
|
22
|
-
* <tttx-
|
|
22
|
+
* <tttx-textarea_1_9_64 inputindex={1} />
|
|
23
23
|
*/
|
|
24
24
|
inputindex: string | number;
|
|
25
25
|
inputtitle: string;
|