@3t-transform/threeteeui 1.9.35 → 1.9.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{tttx-button_1_9_35.cjs.entry.js → tttx-button_1_9_36.cjs.entry.js} +2 -2
- package/dist/cjs/{tttx-checkbox-group-caption_1_9_35.cjs.entry.js → tttx-checkbox-group-caption_1_9_36.cjs.entry.js} +1 -1
- package/dist/cjs/{tttx-checkbox-group-heading_1_9_35.cjs.entry.js → tttx-checkbox-group-heading_1_9_36.cjs.entry.js} +1 -1
- package/dist/cjs/{tttx-checkbox-group_1_9_35.cjs.entry.js → tttx-checkbox-group_1_9_36.cjs.entry.js} +1 -1
- package/dist/cjs/{tttx-checkbox_1_9_35.cjs.entry.js → tttx-checkbox_1_9_36.cjs.entry.js} +2 -2
- package/dist/cjs/{tttx-comments_1_9_35.cjs.entry.js → tttx-comments_1_9_36.cjs.entry.js} +2 -2
- package/dist/cjs/{tttx-data-pattern_1_9_35.cjs.entry.js → tttx-data-pattern_1_9_36.cjs.entry.js} +5 -5
- package/dist/cjs/{tttx-datacard_1_9_35.cjs.entry.js → tttx-datacard_1_9_36.cjs.entry.js} +4 -4
- package/dist/cjs/{tttx-dialog-box_1_9_35.cjs.entry.js → tttx-dialog-box_1_9_36.cjs.entry.js} +3 -3
- package/dist/cjs/{tttx-dialog_1_9_35.cjs.entry.js → tttx-dialog_1_9_36.cjs.entry.js} +2 -2
- package/dist/cjs/{tttx-expander_1_9_35.cjs.entry.js → tttx-expander_1_9_36.cjs.entry.js} +2 -2
- package/dist/cjs/{tttx-filter_1_9_35_4.cjs.entry.js → tttx-filter_1_9_36_4.cjs.entry.js} +9 -9
- package/dist/cjs/{tttx-form_1_9_35.cjs.entry.js → tttx-form_1_9_36.cjs.entry.js} +2 -2
- package/dist/cjs/{tttx-graph_1_9_35.cjs.entry.js → tttx-graph_1_9_36.cjs.entry.js} +1 -1
- package/dist/cjs/{tttx-icon_1_9_35.cjs.entry.js → tttx-icon_1_9_36.cjs.entry.js} +1 -1
- package/dist/cjs/{tttx-keyvalue-block_1_9_35.cjs.entry.js → tttx-keyvalue-block_1_9_36.cjs.entry.js} +1 -1
- package/dist/cjs/{tttx-loading-spinner_1_9_35_3.cjs.entry.js → tttx-loading-spinner_1_9_36_3.cjs.entry.js} +6 -6
- package/dist/cjs/{tttx-multiselect-box_1_9_35.cjs.entry.js → tttx-multiselect-box_1_9_36.cjs.entry.js} +7 -7
- package/dist/cjs/{tttx-percentage-bar_1_9_35.cjs.entry.js → tttx-percentage-bar_1_9_36.cjs.entry.js} +2 -2
- package/dist/cjs/{tttx-qrcode_1_9_35.cjs.entry.js → tttx-qrcode_1_9_36.cjs.entry.js} +1 -1
- package/dist/cjs/{tttx-select-box_1_9_35.cjs.entry.js → tttx-select-box_1_9_36.cjs.entry.js} +6 -6
- package/dist/cjs/{tttx-table_1_9_35.cjs.entry.js → tttx-table_1_9_36.cjs.entry.js} +1 -1
- package/dist/cjs/{tttx-tabs_1_9_35.cjs.entry.js → tttx-tabs_1_9_36.cjs.entry.js} +9 -4
- package/dist/cjs/{tttx-textarea_1_9_35.cjs.entry.js → tttx-textarea_1_9_36.cjs.entry.js} +2 -2
- package/dist/cjs/{tttx-toggle_1_9_35.cjs.entry.js → tttx-toggle_1_9_36.cjs.entry.js} +1 -1
- package/dist/cjs/{tttx-tree-view_1_9_35.cjs.entry.js → tttx-tree-view_1_9_36.cjs.entry.js} +3 -3
- package/dist/cjs/tttx.cjs.js +1 -1
- package/dist/collection/components/atoms/tttx-button/tttx-button.js +2 -2
- package/dist/collection/components/atoms/tttx-button/tttx-button.stories.js +20 -20
- package/dist/collection/components/atoms/tttx-checkbox/tttx-checkbox.js +2 -2
- package/dist/collection/components/atoms/tttx-checkbox/tttx-checkbox.stories.js +1 -1
- package/dist/collection/components/atoms/tttx-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 +1 -1
- package/dist/collection/components/atoms/tttx-percentage-bar/tttx-percentage-bar.js +1 -1
- package/dist/collection/components/atoms/tttx-percentage-bar/tttx-percentage-bar.stories.js +5 -5
- package/dist/collection/components/atoms/tttx-qrcode/tttx-qrcode.js +1 -1
- package/dist/collection/components/atoms/tttx-qrcode/tttx-qrcode.stories.js +1 -1
- package/dist/collection/components/atoms/tttx-tag/tttx-tag.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-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 +2 -2
- package/dist/collection/components/molecules/tttx-comments/tttx-comments.stories.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 +7 -7
- 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 +8 -3
- package/dist/collection/components/molecules/tttx-tabs/tttx-tabs.stories.js +4 -4
- package/dist/collection/components/molecules/tttx-textarea/tttx-textarea.js +3 -3
- package/dist/collection/components/molecules/tttx-textarea/tttx-textarea.stories.js +1 -1
- package/dist/collection/components/molecules/tttx-toolbar/tttx-toolbar.js +1 -1
- package/dist/collection/components/molecules/tttx-toolbar/tttx-toolbar.stories.js +37 -37
- package/dist/collection/components/molecules/tttx-tree-view/tttx-tree-view.js +3 -3
- package/dist/collection/components/molecules/tttx-tree-view/tttx-tree-view.stories.js +8 -8
- package/dist/collection/components/organisms/tttx-data-pattern/tttx-data-pattern.js +5 -5
- package/dist/collection/components/organisms/tttx-data-pattern/tttx-data-pattern.stories.js +5 -5
- package/dist/components/index.d.ts +31 -31
- package/dist/components/index.js +31 -31
- package/dist/components/tttx-button.js +5 -5
- package/dist/components/{tttx-button_1_9_35.d.ts → tttx-button_1_9_36.d.ts} +4 -4
- package/dist/components/{tttx-button_1_9_35.js → tttx-button_1_9_36.js} +2 -2
- package/dist/components/tttx-checkbox-group-caption_1_9_36.d.ts +11 -0
- package/dist/components/{tttx-checkbox-group-caption_1_9_35.js → tttx-checkbox-group-caption_1_9_36.js} +5 -5
- package/dist/components/tttx-checkbox-group-heading_1_9_36.d.ts +11 -0
- package/dist/components/{tttx-checkbox-group-heading_1_9_35.js → tttx-checkbox-group-heading_1_9_36.js} +5 -5
- package/dist/components/tttx-checkbox-group_1_9_36.d.ts +11 -0
- package/dist/components/{tttx-checkbox-group_1_9_35.js → tttx-checkbox-group_1_9_36.js} +5 -5
- package/dist/components/{tttx-datacard_1_9_35.d.ts → tttx-checkbox_1_9_36.d.ts} +4 -4
- package/dist/components/{tttx-checkbox_1_9_35.js → tttx-checkbox_1_9_36.js} +7 -7
- package/dist/components/{tttx-checkbox_1_9_35.d.ts → tttx-comments_1_9_36.d.ts} +4 -4
- package/dist/components/{tttx-comments_1_9_35.js → tttx-comments_1_9_36.js} +7 -7
- package/dist/components/tttx-data-pattern_1_9_36.d.ts +11 -0
- package/dist/components/{tttx-data-pattern_1_9_35.js → tttx-data-pattern_1_9_36.js} +16 -16
- package/dist/components/{tttx-comments_1_9_35.d.ts → tttx-datacard_1_9_36.d.ts} +4 -4
- package/dist/components/{tttx-datacard_1_9_35.js → tttx-datacard_1_9_36.js} +10 -10
- package/dist/components/tttx-dialog-box_1_9_36.d.ts +11 -0
- package/dist/components/{tttx-dialog-box_1_9_35.js → tttx-dialog-box_1_9_36.js} +9 -9
- package/dist/components/{tttx-dialog_1_9_35.d.ts → tttx-dialog_1_9_36.d.ts} +4 -4
- package/dist/components/{tttx-dialog_1_9_35.js → tttx-dialog_1_9_36.js} +8 -8
- package/dist/components/tttx-expander_1_9_36.d.ts +11 -0
- package/dist/components/{tttx-expander_1_9_35.js → tttx-expander_1_9_36.js} +7 -7
- package/dist/components/tttx-filter.js +6 -6
- package/dist/components/{tttx-filter_1_9_35.d.ts → tttx-filter_1_9_36.d.ts} +4 -4
- package/dist/components/{tttx-filter_1_9_35.js → tttx-filter_1_9_36.js} +2 -2
- package/dist/components/{tttx-tabs_1_9_35.d.ts → tttx-form_1_9_36.d.ts} +4 -4
- package/dist/components/{tttx-form_1_9_35.js → tttx-form_1_9_36.js} +11 -11
- package/dist/components/tttx-graph.js +3 -3
- package/dist/components/{tttx-graph_1_9_35.d.ts → tttx-graph_1_9_36.d.ts} +4 -4
- package/dist/components/{tttx-graph_1_9_35.js → tttx-graph_1_9_36.js} +2 -2
- package/dist/components/tttx-icon.js +3 -3
- package/dist/components/{tttx-icon_1_9_35.d.ts → tttx-icon_1_9_36.d.ts} +4 -4
- package/dist/components/{tttx-icon_1_9_35.js → tttx-icon_1_9_36.js} +2 -2
- package/dist/components/tttx-keyvalue-block_1_9_36.d.ts +11 -0
- package/dist/components/{tttx-keyvalue-block_1_9_35.js → tttx-keyvalue-block_1_9_36.js} +5 -5
- package/dist/components/tttx-list.js +6 -6
- package/dist/components/{tttx-list_1_9_35.d.ts → tttx-list_1_9_36.d.ts} +4 -4
- package/dist/components/{tttx-list_1_9_35.js → tttx-list_1_9_36.js} +2 -2
- package/dist/components/tttx-loading-spinner.js +3 -3
- package/dist/components/tttx-loading-spinner_1_9_36.d.ts +11 -0
- package/dist/components/{tttx-loading-spinner_1_9_35.js → tttx-loading-spinner_1_9_36.js} +2 -2
- package/dist/components/tttx-multiselect-box_1_9_36.d.ts +11 -0
- package/dist/components/{tttx-multiselect-box_1_9_35.js → tttx-multiselect-box_1_9_36.js} +16 -16
- package/dist/components/tttx-percentage-bar_1_9_36.d.ts +11 -0
- package/dist/components/{tttx-percentage-bar_1_9_35.js → tttx-percentage-bar_1_9_36.js} +6 -6
- package/dist/components/{tttx-qrcode_1_9_35.d.ts → tttx-qrcode_1_9_36.d.ts} +4 -4
- package/dist/components/{tttx-qrcode_1_9_35.js → tttx-qrcode_1_9_36.js} +5 -5
- package/dist/components/tttx-select-box.js +12 -12
- package/dist/components/tttx-select-box_1_9_36.d.ts +11 -0
- package/dist/components/{tttx-select-box_1_9_35.js → tttx-select-box_1_9_36.js} +2 -2
- package/dist/components/tttx-sorter.js +5 -5
- package/dist/components/tttx-sorter_1_9_36.d.ts +11 -0
- package/dist/components/{tttx-sorter_1_9_35.js → tttx-sorter_1_9_36.js} +2 -2
- package/dist/components/tttx-standalone-input.js +6 -6
- package/dist/components/tttx-standalone-input_1_9_36.d.ts +11 -0
- package/dist/components/{tttx-standalone-input_1_9_35.js → tttx-standalone-input_1_9_36.js} +2 -2
- package/dist/components/{tttx-table_1_9_35.d.ts → tttx-table_1_9_36.d.ts} +4 -4
- package/dist/components/{tttx-table_1_9_35.js → tttx-table_1_9_36.js} +5 -5
- package/dist/components/{tttx-form_1_9_35.d.ts → tttx-tabs_1_9_36.d.ts} +4 -4
- package/dist/components/{tttx-tabs_1_9_35.js → tttx-tabs_1_9_36.js} +14 -9
- package/dist/components/tttx-tag.js +5 -5
- package/dist/components/{tttx-tag_1_9_35.d.ts → tttx-tag_1_9_36.d.ts} +4 -4
- package/dist/components/{tttx-tag_1_9_35.js → tttx-tag_1_9_36.js} +2 -2
- package/dist/components/tttx-textarea_1_9_36.d.ts +11 -0
- package/dist/components/{tttx-textarea_1_9_35.js → tttx-textarea_1_9_36.js} +6 -6
- package/dist/components/tttx-toggle_1_9_36.d.ts +11 -0
- package/dist/components/{tttx-toggle_1_9_35.js → tttx-toggle_1_9_36.js} +5 -5
- package/dist/components/tttx-toolbar.js +3 -3
- package/dist/components/tttx-toolbar_1_9_36.d.ts +11 -0
- package/dist/components/{tttx-toolbar_1_9_35.js → tttx-toolbar_1_9_36.js} +2 -2
- package/dist/components/tttx-tree-view_1_9_36.d.ts +11 -0
- package/dist/components/{tttx-tree-view_1_9_35.js → tttx-tree-view_1_9_36.js} +9 -9
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{tttx-button_1_9_35.entry.js → tttx-button_1_9_36.entry.js} +2 -2
- package/dist/esm/{tttx-checkbox-group-caption_1_9_35.entry.js → tttx-checkbox-group-caption_1_9_36.entry.js} +1 -1
- package/dist/esm/{tttx-checkbox-group-heading_1_9_35.entry.js → tttx-checkbox-group-heading_1_9_36.entry.js} +1 -1
- package/dist/esm/{tttx-checkbox-group_1_9_35.entry.js → tttx-checkbox-group_1_9_36.entry.js} +1 -1
- package/dist/esm/{tttx-checkbox_1_9_35.entry.js → tttx-checkbox_1_9_36.entry.js} +2 -2
- package/dist/esm/{tttx-comments_1_9_35.entry.js → tttx-comments_1_9_36.entry.js} +2 -2
- package/dist/esm/{tttx-data-pattern_1_9_35.entry.js → tttx-data-pattern_1_9_36.entry.js} +5 -5
- package/dist/esm/{tttx-datacard_1_9_35.entry.js → tttx-datacard_1_9_36.entry.js} +4 -4
- package/dist/esm/{tttx-dialog-box_1_9_35.entry.js → tttx-dialog-box_1_9_36.entry.js} +3 -3
- package/dist/esm/{tttx-dialog_1_9_35.entry.js → tttx-dialog_1_9_36.entry.js} +2 -2
- package/dist/esm/{tttx-expander_1_9_35.entry.js → tttx-expander_1_9_36.entry.js} +2 -2
- package/dist/esm/{tttx-filter_1_9_35_4.entry.js → tttx-filter_1_9_36_4.entry.js} +6 -6
- package/dist/esm/{tttx-form_1_9_35.entry.js → tttx-form_1_9_36.entry.js} +2 -2
- package/dist/esm/{tttx-graph_1_9_35.entry.js → tttx-graph_1_9_36.entry.js} +1 -1
- package/dist/esm/{tttx-icon_1_9_35.entry.js → tttx-icon_1_9_36.entry.js} +1 -1
- package/dist/esm/{tttx-keyvalue-block_1_9_35.entry.js → tttx-keyvalue-block_1_9_36.entry.js} +1 -1
- package/dist/esm/{tttx-loading-spinner_1_9_35_3.entry.js → tttx-loading-spinner_1_9_36_3.entry.js} +4 -4
- package/dist/esm/{tttx-multiselect-box_1_9_35.entry.js → tttx-multiselect-box_1_9_36.entry.js} +7 -7
- package/dist/esm/{tttx-percentage-bar_1_9_35.entry.js → tttx-percentage-bar_1_9_36.entry.js} +2 -2
- package/dist/esm/{tttx-qrcode_1_9_35.entry.js → tttx-qrcode_1_9_36.entry.js} +1 -1
- package/dist/esm/{tttx-select-box_1_9_35.entry.js → tttx-select-box_1_9_36.entry.js} +6 -6
- package/dist/esm/{tttx-table_1_9_35.entry.js → tttx-table_1_9_36.entry.js} +1 -1
- package/dist/esm/{tttx-tabs_1_9_35.entry.js → tttx-tabs_1_9_36.entry.js} +9 -4
- package/dist/esm/{tttx-textarea_1_9_35.entry.js → tttx-textarea_1_9_36.entry.js} +2 -2
- package/dist/esm/{tttx-toggle_1_9_35.entry.js → tttx-toggle_1_9_36.entry.js} +1 -1
- package/dist/esm/{tttx-tree-view_1_9_35.entry.js → tttx-tree-view_1_9_36.entry.js} +3 -3
- package/dist/esm/tttx.js +1 -1
- package/dist/tttx/p-09682d72.entry.js +1 -1
- package/dist/tttx/p-0da9f04c.entry.js +1 -1
- package/dist/tttx/p-0dfda92a.entry.js +1 -1
- package/dist/tttx/p-0e515960.entry.js +1 -1
- package/dist/tttx/p-0ffbf27e.entry.js +1 -1
- package/dist/tttx/p-1e5ff5f8.entry.js +1 -1
- package/dist/tttx/p-214b438d.entry.js +1 -1
- package/dist/tttx/p-22bcb60d.entry.js +1 -0
- package/dist/tttx/p-23f45005.entry.js +1 -1
- package/dist/tttx/p-3d642e48.entry.js +1 -1
- package/dist/tttx/p-49ef7451.entry.js +1 -1
- package/dist/tttx/p-56c8c353.entry.js +1 -1
- package/dist/tttx/p-5722f326.entry.js +1 -1
- package/dist/tttx/p-59c7b049.entry.js +1 -1
- package/dist/tttx/p-63ad6fb7.entry.js +1 -1
- package/dist/tttx/p-6b1c7a21.entry.js +1 -1
- package/dist/tttx/p-74148f2a.entry.js +1 -1
- package/dist/tttx/p-79e218d0.entry.js +1 -1
- package/dist/tttx/p-9434561e.entry.js +1 -1
- package/dist/tttx/p-996a6061.entry.js +1 -1
- package/dist/tttx/p-a01e679a.entry.js +1 -1
- package/dist/tttx/p-a8e76e78.entry.js +1 -1
- package/dist/tttx/p-c170e3b8.entry.js +1 -1
- package/dist/tttx/p-c34d99d1.entry.js +1 -1
- package/dist/tttx/p-cfe412d0.entry.js +1 -1
- package/dist/tttx/p-f374e293.entry.js +1 -1
- package/dist/tttx/tttx.esm.js +1 -1
- package/dist/types/components/molecules/tttx-select-box/tttx-select-box.d.ts +1 -1
- package/dist/types/components/molecules/tttx-standalone-input/tttx-standalone-input.d.ts +2 -2
- package/dist/types/components/molecules/tttx-textarea/tttx-textarea.d.ts +2 -2
- package/dist/types/components.d.ts +369 -369
- package/package.json +1 -1
- package/dist/components/tttx-checkbox-group-caption_1_9_35.d.ts +0 -11
- package/dist/components/tttx-checkbox-group-heading_1_9_35.d.ts +0 -11
- package/dist/components/tttx-checkbox-group_1_9_35.d.ts +0 -11
- package/dist/components/tttx-data-pattern_1_9_35.d.ts +0 -11
- package/dist/components/tttx-dialog-box_1_9_35.d.ts +0 -11
- package/dist/components/tttx-expander_1_9_35.d.ts +0 -11
- package/dist/components/tttx-keyvalue-block_1_9_35.d.ts +0 -11
- package/dist/components/tttx-loading-spinner_1_9_35.d.ts +0 -11
- package/dist/components/tttx-multiselect-box_1_9_35.d.ts +0 -11
- package/dist/components/tttx-percentage-bar_1_9_35.d.ts +0 -11
- package/dist/components/tttx-select-box_1_9_35.d.ts +0 -11
- package/dist/components/tttx-sorter_1_9_35.d.ts +0 -11
- package/dist/components/tttx-standalone-input_1_9_35.d.ts +0 -11
- package/dist/components/tttx-textarea_1_9_35.d.ts +0 -11
- package/dist/components/tttx-toggle_1_9_35.d.ts +0 -11
- package/dist/components/tttx-toolbar_1_9_35.d.ts +0 -11
- package/dist/components/tttx-tree-view_1_9_35.d.ts +0 -11
- package/dist/tttx/p-b7347352.entry.js +0 -1
|
@@ -178,10 +178,10 @@ const TttxFilter = class {
|
|
|
178
178
|
const selectAllCheckboxColor = this.allSelected ? 'blue' : 'grey';
|
|
179
179
|
const buttonStyleClassNameModifier = this.getFilterButtonClassName(this.filterButtonStyle);
|
|
180
180
|
const filterKey = `filter__${this.filterKey}`;
|
|
181
|
-
return (h(Host, { id: filterKey }, h("div", { class: 'filter-container' }, h("button", { class: `filter-button ${buttonStyleClassNameModifier}`, type: 'button', onClick: this.onFilterButtonClick.bind(this) }, h("tttx-
|
|
181
|
+
return (h(Host, { id: filterKey }, h("div", { class: 'filter-container' }, h("button", { class: `filter-button ${buttonStyleClassNameModifier}`, type: 'button', onClick: this.onFilterButtonClick.bind(this) }, h("tttx-icon_1_9_36", { icon: 'filter_list', class: 'filter-icon', color: 'black' }), "Filter"), this.showPopover && (h("div", { class: `filter-popover-container ${filterPopoverContainerClassNameModifier}`, style: { width: this.popoverWidth } }, h("div", { class: 'filter-header' }, this.filterHeader), this.showSearchField ? (h("div", { class: 'search-field-container' }, h("tttx-icon_1_9_36", { icon: 'search', class: 'search-icon' }), h("input", { type: 'text', class: 'search-input', placeholder: 'Search', value: this.filterSearchTerm, onInput: this.handleFilterChange.bind(this) }))) : (''), h("div", { class: 'filter-options-container' }, this.showSelectAll ? (h("div", { class: 'filter-option', tabIndex: -1, onClick: this.onSelectAllClick.bind(this) }, h("tttx-icon_1_9_36", { icon: selectAllCheckboxIcon, color: selectAllCheckboxColor, class: 'select-all-icon' }), h("label", { class: 'filter-label' }, "Select all"))) : (''), this.displayedFilterSettings.map((option) => {
|
|
182
182
|
const checkboxIcon = this.selectedFilters.includes(option.optionText) ? 'check_box' : 'check_box_outline_blank';
|
|
183
183
|
const checkboxColor = this.selectedFilters.includes(option.optionText) ? 'blue' : 'grey';
|
|
184
|
-
return h("div", { class: 'filter-option', tabIndex: -1, onClick: () => this.onFilterOptionSelected(option.optionText), key: option.optionText }, h("tttx-
|
|
184
|
+
return h("div", { class: 'filter-option', tabIndex: -1, onClick: () => this.onFilterOptionSelected(option.optionText), key: option.optionText }, h("tttx-icon_1_9_36", { icon: checkboxIcon, color: checkboxColor, class: 'checkbox-icon' }), this.showOptionIcons && h("tttx-icon_1_9_36", { icon: option.optionIcon, color: option.optionIconColor }), h("label", { class: 'filter-label' }, option.optionText));
|
|
185
185
|
})), h("div", { class: 'filter-popover-button-container' }, h("button", { type: 'button', class: 'close-button', onClick: this.onCloseButtonClick.bind(this) }, "Close"), h("button", { type: 'button', class: 'apply-button', onClick: this.onApplyFilterButtonClick.bind(this) }, "Apply")))))));
|
|
186
186
|
}
|
|
187
187
|
get el() { return getElement(this); }
|
|
@@ -239,9 +239,9 @@ const TttxList = class {
|
|
|
239
239
|
else {
|
|
240
240
|
element = h("span", { class: "item-content" }, item.element);
|
|
241
241
|
}
|
|
242
|
-
return (h(Fragment, null, item.hasCheckbox && (h("div", { class: "checkbox" }, h("tttx-
|
|
242
|
+
return (h(Fragment, null, item.hasCheckbox && (h("div", { class: "checkbox" }, h("tttx-icon_1_9_36", { icon: item.checked ? 'check_box' : 'check_box_outline_blank', color: item.checked ? 'blue' : 'grey', onClick: event => {
|
|
243
243
|
this.onRowCheckboxHandler(event, item);
|
|
244
|
-
} }))), item.element && element, item.icon && (h("span", { class: "icons" }, h("tttx-
|
|
244
|
+
} }))), item.element && element, item.icon && (h("span", { class: "icons" }, h("tttx-icon_1_9_36", { class: "align-right", icon: item.icon, color: 'black' })))));
|
|
245
245
|
}
|
|
246
246
|
render() {
|
|
247
247
|
if (!this._data)
|
|
@@ -363,7 +363,7 @@ const TttxSorter = class {
|
|
|
363
363
|
const selectedOption = this.selectedField;
|
|
364
364
|
const dropdownSelectorClassNameModifier = this.dropdownExpand ? '--expanded' : '';
|
|
365
365
|
const sorterKey = `sorter__${this.sorterKey}`;
|
|
366
|
-
return (h(Host, { id: sorterKey }, h("div", { tabindex: 0, class: `sorter-container ${dropdownSelectorClassNameModifier}` }, h("button", { class: "arrow-toggle-button", type: "button", onClick: this.onSortToggleClick.bind(this) }, h("tttx-
|
|
366
|
+
return (h(Host, { id: sorterKey }, h("div", { tabindex: 0, class: `sorter-container ${dropdownSelectorClassNameModifier}` }, h("button", { class: "arrow-toggle-button", type: "button", onClick: this.onSortToggleClick.bind(this) }, h("tttx-icon_1_9_36", { icon: arrowIcon, color: "black" })), h("div", { class: "dropdown-selector", onClick: this.onDropdownClicked.bind(this) }, h("div", { class: "dropdown-selector-button" }, h("div", { class: "dropdown-selector-text" }, selectedOption), h("div", { class: "dropdown-selector-chevron" }, h("tttx-icon_1_9_36", { icon: chevronIcon, color: "black" })))), this.dropdownExpand && (h("div", { class: "dropdown-options-list" }, parsedFieldOptionsData.sorterOptions.map(option => {
|
|
367
367
|
return (h("div", { class: "dropdown-option", tabIndex: -1, onClick: this.onDropdownSelected.bind(this), key: option.optionLabel }, option.optionLabel));
|
|
368
368
|
}))))));
|
|
369
369
|
}
|
|
@@ -399,4 +399,4 @@ const TttxToolbar = class {
|
|
|
399
399
|
};
|
|
400
400
|
TttxToolbar.style = tttxToolbarCss;
|
|
401
401
|
|
|
402
|
-
export { TttxFilter as
|
|
402
|
+
export { TttxFilter as tttx_filter_1_9_36, TttxList as tttx_list_1_9_36, TttxSorter as tttx_sorter_1_9_36, TttxToolbar as tttx_toolbar_1_9_36 };
|
|
@@ -352,7 +352,7 @@ const TttxForm = class {
|
|
|
352
352
|
if ((_b = this._data) === null || _b === void 0 ? void 0 : _b[formKey]) {
|
|
353
353
|
select.classList.remove('placeholder');
|
|
354
354
|
}
|
|
355
|
-
const tttxSelect = document.createElement('tttx-select-
|
|
355
|
+
const tttxSelect = document.createElement('tttx-select-box_1_9_36');
|
|
356
356
|
tttxSelect.optionsData = (_c = formProperties.options) === null || _c === void 0 ? void 0 : _c.filter(o => !o.placeholder);
|
|
357
357
|
tttxSelect.placeholder = (_e = (_d = formProperties.options) === null || _d === void 0 ? void 0 : _d.filter(o => o.placeholder)[0]) === null || _e === void 0 ? void 0 : _e.label;
|
|
358
358
|
tttxSelect.inline = false;
|
|
@@ -994,4 +994,4 @@ const TttxForm = class {
|
|
|
994
994
|
};
|
|
995
995
|
TttxForm.style = tttxFormCss;
|
|
996
996
|
|
|
997
|
-
export { TttxForm as
|
|
997
|
+
export { TttxForm as tttx_form_1_9_36 };
|
|
@@ -14908,4 +14908,4 @@ const TttxGraph = class {
|
|
|
14908
14908
|
};
|
|
14909
14909
|
TttxGraph.style = tttxGraphCss;
|
|
14910
14910
|
|
|
14911
|
-
export { TttxGraph as
|
|
14911
|
+
export { TttxGraph as tttx_graph_1_9_36 };
|
package/dist/esm/{tttx-loading-spinner_1_9_35_3.entry.js → tttx-loading-spinner_1_9_36_3.entry.js}
RENAMED
|
@@ -19,7 +19,7 @@ const TttxLoadingSpinner = class {
|
|
|
19
19
|
};
|
|
20
20
|
TttxLoadingSpinner.style = tttxLoadingSpinnerCss;
|
|
21
21
|
|
|
22
|
-
const tttxStandaloneInputCss = ".material-symbols-rounded.sc-tttx-standalone-
|
|
22
|
+
const tttxStandaloneInputCss = ".material-symbols-rounded.sc-tttx-standalone-input_1_9_36{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}.material-symbols-rounded.sc-tttx-standalone-input_1_9_36{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}label.sc-tttx-standalone-input_1_9_36{font-weight:500;font-size:16px;line-height:18.752px;color:#212121}label.sc-tttx-standalone-input_1_9_36 .optional.sc-tttx-standalone-input_1_9_36{color:#757575;font-weight:normal}label.sc-tttx-standalone-input_1_9_36 .outer-container.sc-tttx-standalone-input_1_9_36{position:relative}label.sc-tttx-standalone-input_1_9_36 .outer-container.sc-tttx-standalone-input_1_9_36 .left-icons.sc-tttx-standalone-input_1_9_36,label.sc-tttx-standalone-input_1_9_36 .outer-container.sc-tttx-standalone-input_1_9_36 .right-icons.sc-tttx-standalone-input_1_9_36{display:flex;position:absolute;height:24px;gap:8px}label.sc-tttx-standalone-input_1_9_36 .outer-container.sc-tttx-standalone-input_1_9_36 .left-icons.sc-tttx-standalone-input_1_9_36 tttx-icon.sc-tttx-standalone-input_1_9_36,label.sc-tttx-standalone-input_1_9_36 .outer-container.sc-tttx-standalone-input_1_9_36 .right-icons.sc-tttx-standalone-input_1_9_36 tttx-icon.sc-tttx-standalone-input_1_9_36{height:24px;width:24px}label.sc-tttx-standalone-input_1_9_36 .outer-container.sc-tttx-standalone-input_1_9_36 .left-icons.sc-tttx-standalone-input_1_9_36{left:8px}label.sc-tttx-standalone-input_1_9_36 .outer-container.sc-tttx-standalone-input_1_9_36 .right-icons.sc-tttx-standalone-input_1_9_36{right:8px}label.sc-tttx-standalone-input_1_9_36 .outer-container.sc-tttx-standalone-input_1_9_36 input.sc-tttx-standalone-input_1_9_36,label.sc-tttx-standalone-input_1_9_36 .outer-container.sc-tttx-standalone-input_1_9_36 textarea.sc-tttx-standalone-input_1_9_36{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.sc-tttx-standalone-input_1_9_36 .outer-container.sc-tttx-standalone-input_1_9_36 input.has-input-icon.sc-tttx-standalone-input_1_9_36,label.sc-tttx-standalone-input_1_9_36 .outer-container.sc-tttx-standalone-input_1_9_36 textarea.has-input-icon.sc-tttx-standalone-input_1_9_36{padding-left:40px}label.sc-tttx-standalone-input_1_9_36 .outer-container.sc-tttx-standalone-input_1_9_36 input.has-input-icon.has-left-icon.sc-tttx-standalone-input_1_9_36,label.sc-tttx-standalone-input_1_9_36 .outer-container.sc-tttx-standalone-input_1_9_36 textarea.has-input-icon.has-left-icon.sc-tttx-standalone-input_1_9_36{padding-left:72px}label.sc-tttx-standalone-input_1_9_36 .outer-container.sc-tttx-standalone-input_1_9_36 input.has-left-icon.sc-tttx-standalone-input_1_9_36,label.sc-tttx-standalone-input_1_9_36 .outer-container.sc-tttx-standalone-input_1_9_36 textarea.has-left-icon.sc-tttx-standalone-input_1_9_36{padding-left:40px}label.sc-tttx-standalone-input_1_9_36 .outer-container.sc-tttx-standalone-input_1_9_36 input.has-right-icon.sc-tttx-standalone-input_1_9_36,label.sc-tttx-standalone-input_1_9_36 .outer-container.sc-tttx-standalone-input_1_9_36 textarea.has-right-icon.sc-tttx-standalone-input_1_9_36{padding-right:40px}label.sc-tttx-standalone-input_1_9_36 .outer-container.sc-tttx-standalone-input_1_9_36 input.invalid.sc-tttx-standalone-input_1_9_36,label.sc-tttx-standalone-input_1_9_36 .outer-container.sc-tttx-standalone-input_1_9_36 textarea.invalid.sc-tttx-standalone-input_1_9_36{border:1px solid #dc0000}label.sc-tttx-standalone-input_1_9_36 .outer-container.sc-tttx-standalone-input_1_9_36 input.sc-tttx-standalone-input_1_9_36:not([type=submit]),label.sc-tttx-standalone-input_1_9_36 .outer-container.sc-tttx-standalone-input_1_9_36 textarea.sc-tttx-standalone-input_1_9_36:not([type=submit]){font-family:\"Roboto\", serif;width:100%;height:36px;font-size:16px;line-height:18.752px}label.sc-tttx-standalone-input_1_9_36 .outer-container.sc-tttx-standalone-input_1_9_36 input[type=radio].sc-tttx-standalone-input_1_9_36,label.sc-tttx-standalone-input_1_9_36 .outer-container.sc-tttx-standalone-input_1_9_36 textarea[type=radio].sc-tttx-standalone-input_1_9_36{width:20px;height:20px}label.sc-tttx-standalone-input_1_9_36 .outer-container.sc-tttx-standalone-input_1_9_36 input[type=date].sc-tttx-standalone-input_1_9_36,label.sc-tttx-standalone-input_1_9_36 .outer-container.sc-tttx-standalone-input_1_9_36 textarea[type=date].sc-tttx-standalone-input_1_9_36{background:white;display:block;min-width:calc(100% - 18px);line-height:37px}label.sc-tttx-standalone-input_1_9_36 .outer-container.sc-tttx-standalone-input_1_9_36 input[readonly].sc-tttx-standalone-input_1_9_36,label.sc-tttx-standalone-input_1_9_36 .outer-container.sc-tttx-standalone-input_1_9_36 textarea[readonly].sc-tttx-standalone-input_1_9_36{cursor:default;pointer-events:none;user-select:none;color:gray}label.sc-tttx-standalone-input_1_9_36 .outer-container.sc-tttx-standalone-input_1_9_36 input.sc-tttx-standalone-input_1_9_36:focus,label.sc-tttx-standalone-input_1_9_36 .outer-container.sc-tttx-standalone-input_1_9_36 textarea.sc-tttx-standalone-input_1_9_36:focus{border-color:#1479c6}label.sc-tttx-standalone-input_1_9_36 .outer-container.sc-tttx-standalone-input_1_9_36 input.sc-tttx-standalone-input_1_9_36:focus-visible,label.sc-tttx-standalone-input_1_9_36 .outer-container.sc-tttx-standalone-input_1_9_36 textarea.sc-tttx-standalone-input_1_9_36:focus-visible{outline:none}label.sc-tttx-standalone-input_1_9_36 .outer-container.sc-tttx-standalone-input_1_9_36 textarea.sc-tttx-standalone-input_1_9_36{padding:8px;height:auto;min-height:100px;resize:vertical}label.sc-tttx-standalone-input_1_9_36 .outer-container.sc-tttx-standalone-input_1_9_36 textarea.resize-none.sc-tttx-standalone-input_1_9_36{resize:none}label.sc-tttx-standalone-input_1_9_36 .outer-container.inputBlock.sc-tttx-standalone-input_1_9_36{display:flex;align-items:center;line-height:21px}label.sc-tttx-standalone-input_1_9_36 .outer-container.inputBlock.sc-tttx-standalone-input_1_9_36 .left-icons.sc-tttx-standalone-input_1_9_36,label.sc-tttx-standalone-input_1_9_36 .outer-container.inputBlock.sc-tttx-standalone-input_1_9_36 .right-icons.sc-tttx-standalone-input_1_9_36{margin-top:4px}label.sc-tttx-standalone-input_1_9_36 .outer-container.inputBlock.readonly.sc-tttx-standalone-input_1_9_36{pointer-events:none;user-select:none;color:gray}label.sc-tttx-standalone-input_1_9_36 .outer-container.inputBlock.radioBlock.sc-tttx-standalone-input_1_9_36{display:block}label.sc-tttx-standalone-input_1_9_36 .outer-container.inputInline.sc-tttx-standalone-input_1_9_36{display:flex;white-space:nowrap;align-items:center;margin:0}label.sc-tttx-standalone-input_1_9_36 .outer-container.inputInline.sc-tttx-standalone-input_1_9_36 input.sc-tttx-standalone-input_1_9_36{margin-top:0}label.sc-tttx-standalone-input_1_9_36 .secondarylabel.sc-tttx-standalone-input_1_9_36{color:#757575;font-size:14px;line-height:16.408px;font-weight:normal;display:flex;margin-top:4px}label.sc-tttx-standalone-input_1_9_36 .errorBubble.sc-tttx-standalone-input_1_9_36{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.sc-tttx-standalone-input_1_9_36 .errorBubble.sc-tttx-standalone-input_1_9_36:not(.visible){display:none}label.sc-tttx-standalone-input_1_9_36 .errorBubble.sc-tttx-standalone-input_1_9_36 span.sc-tttx-standalone-input_1_9_36{color:#dc0000;font-size:16px;margin-right:4px}.material-symbols-rounded.sc-tttx-standalone-input_1_9_36{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}.sc-tttx-standalone-input_1_9_36-h{display:block}";
|
|
23
23
|
|
|
24
24
|
const TttxInput = class {
|
|
25
25
|
constructor(hostRef) {
|
|
@@ -101,7 +101,7 @@ const TttxInput = class {
|
|
|
101
101
|
this.iconleft ? 'has-left-icon' : '',
|
|
102
102
|
this.iconright ? 'has-right-icon' : '',
|
|
103
103
|
].join(' ');
|
|
104
|
-
return (h(Host, null, h("label", null, this.label, !this.required ? h("span", { class: "optional" }, "\u00A0(optional)") : '', h("div", { class: ['outer-container', this.inline ? 'inputInline' : 'inputBlock'].join(' ') }, h("input", { class: classNames, autocapitalize: this.inputautocapitalize, autofocus: this.inputautofocus, enterkeyhint: this.inputkeyhint, tabindex: this.inputindex, title: this.inputtitle, autocomplete: this.autocomplete, checked: this.checked, disabled: this.disabled, max: this.max, maxlength: this.maxlength, min: this.min, minlength: this.minlength, name: this.name, pattern: this.pattern, placeholder: this.placeholder, readonly: this.readonly, required: this.required, step: this.step, type: this.type, value: this.value, onBlur: this.handleBlur.bind(this), onFocus: this.handleFocus.bind(this), onInput: this.handleChange.bind(this), onInvalid: this.handleInvalid.bind(this) }), (this.inputicon || this.iconleft) && (h("span", { class: "left-icons" }, this.inputicon && (h("tttx-
|
|
104
|
+
return (h(Host, null, h("label", null, this.label, !this.required ? h("span", { class: "optional" }, "\u00A0(optional)") : '', h("div", { class: ['outer-container', this.inline ? 'inputInline' : 'inputBlock'].join(' ') }, h("input", { class: classNames, autocapitalize: this.inputautocapitalize, autofocus: this.inputautofocus, enterkeyhint: this.inputkeyhint, tabindex: this.inputindex, title: this.inputtitle, autocomplete: this.autocomplete, checked: this.checked, disabled: this.disabled, max: this.max, maxlength: this.maxlength, min: this.min, minlength: this.minlength, name: this.name, pattern: this.pattern, placeholder: this.placeholder, readonly: this.readonly, required: this.required, step: this.step, type: this.type, value: this.value, onBlur: this.handleBlur.bind(this), onFocus: this.handleFocus.bind(this), onInput: this.handleChange.bind(this), onInvalid: this.handleInvalid.bind(this) }), (this.inputicon || this.iconleft) && (h("span", { class: "left-icons" }, this.inputicon && (h("tttx-icon_1_9_36", { class: "input-icon", icon: this.inputicon, color: this.inputiconcolor, onClick: this.handleInputIconClick.bind(this) })), this.iconleft && (h("tttx-icon_1_9_36", { class: "left-icon", icon: this.iconleft, color: this.iconleftcolor, onClick: this.handleLeftIconClick.bind(this) })))), this.iconright && (h("span", { class: "right-icons" }, h("tttx-icon_1_9_36", { class: "right-icon", icon: this.iconright, color: this.iconrightcolor, onClick: this.handleRightIconClick.bind(this) })))), this.secondarylabel && h("span", { class: "secondarylabel" }, this.secondarylabel), this.showerrorbubble && (h("span", { class: ['errorBubble', this.showerrormsg && this.errormsg ? 'visible' : ''].join(' ') }, h("span", { class: "material-symbols-rounded" }, "warning"), " ", this.errormsg)))));
|
|
105
105
|
}
|
|
106
106
|
};
|
|
107
107
|
TttxInput.style = tttxStandaloneInputCss;
|
|
@@ -121,9 +121,9 @@ const TttxTag = class {
|
|
|
121
121
|
}
|
|
122
122
|
render() {
|
|
123
123
|
return (h(Host, null, h("div", { class: "tag", style: { 'background-color': this.color, color: this.textColor } }, this.hasIcon &&
|
|
124
|
-
h("tttx-
|
|
124
|
+
h("tttx-icon_1_9_36", { role: "icon", class: "tag_icon", "aria-label": this.text, icon: this.icon, color: this.iconColor, size: this.iconSize }), h("span", null, this.text))));
|
|
125
125
|
}
|
|
126
126
|
};
|
|
127
127
|
TttxTag.style = tttxTagCss;
|
|
128
128
|
|
|
129
|
-
export { TttxLoadingSpinner as
|
|
129
|
+
export { TttxLoadingSpinner as tttx_loading_spinner_1_9_36, TttxInput as tttx_standalone_input_1_9_36, TttxTag as tttx_tag_1_9_36 };
|
package/dist/esm/{tttx-multiselect-box_1_9_35.entry.js → tttx-multiselect-box_1_9_36.entry.js}
RENAMED
|
@@ -121,9 +121,9 @@ const TttxMultiselectBox = class {
|
|
|
121
121
|
}
|
|
122
122
|
// render priority options at the top of the dropdown list
|
|
123
123
|
return (h(Fragment, null, usingPriority && priorityOptions.length > 0 &&
|
|
124
|
-
h(Fragment, null, h("tttx-
|
|
124
|
+
h(Fragment, null, h("tttx-tag_1_9_36", { class: 'priority-pill', text: this.priorityLabel, color: "#F0F0F0" }), priorityOptions.map((option) => this.dropdownOption(option))), nonPriorityOptions.length > 0 &&
|
|
125
125
|
h(Fragment, null, usingPriority &&
|
|
126
|
-
h("tttx-
|
|
126
|
+
h("tttx-tag_1_9_36", { class: 'priority-pill', text: this.nonPriorityLabel, color: "#F0F0F0" }), nonPriorityOptions.map((option) => this.dropdownOption(option)))));
|
|
127
127
|
}
|
|
128
128
|
dropdownOption(option) {
|
|
129
129
|
// This is tested in e2e tests
|
|
@@ -134,11 +134,11 @@ const TttxMultiselectBox = class {
|
|
|
134
134
|
const sanitisedHTML = purify.sanitize(option.html, domSanitiserOptions);
|
|
135
135
|
// This is tested in e2e tests
|
|
136
136
|
/* istanbul ignore next */
|
|
137
|
-
return (h("div", { class: `dropdown-option ${option.selected ? 'selected' : ''}`, onClick: this.onItemSelected.bind(this, option), key: option.label }, h("tttx-
|
|
137
|
+
return (h("div", { class: `dropdown-option ${option.selected ? 'selected' : ''}`, onClick: this.onItemSelected.bind(this, option), key: option.label }, h("tttx-icon_1_9_36", { icon: checkboxIcon, color: checkboxColor, class: 'checkbox-icon' }), h("div", { innerHTML: sanitisedHTML })));
|
|
138
138
|
}
|
|
139
139
|
// This is tested in e2e tests
|
|
140
140
|
/* istanbul ignore next */
|
|
141
|
-
return (h("div", { class: `dropdown-option ${option.selected ? 'selected' : ''}`, onClick: this.onItemSelected.bind(this, option), key: option.label }, h("tttx-
|
|
141
|
+
return (h("div", { class: `dropdown-option ${option.selected ? 'selected' : ''}`, onClick: this.onItemSelected.bind(this, option), key: option.label }, h("tttx-icon_1_9_36", { icon: checkboxIcon, color: checkboxColor, class: 'checkbox-icon' }), h("div", { class: "plaintext-option" }, option.label)));
|
|
142
142
|
}
|
|
143
143
|
// This is tested in e2e tests
|
|
144
144
|
/* istanbul ignore next */
|
|
@@ -168,9 +168,9 @@ const TttxMultiselectBox = class {
|
|
|
168
168
|
return;
|
|
169
169
|
const chevronIcon = this.open ? 'expand_less' : 'expand_more';
|
|
170
170
|
const readOnlyClass = this.readOnly ? 'dropdown-read-only' : '';
|
|
171
|
-
return (h(Host, { class: this.inline ? 'inline' : 'block' }, this.label && h("div", { class: "label" }, this.label), h("div", { tabindex: "0", class: "dropdown-container" }, h("div", { class: ['dropdown-selector', readOnlyClass].join(' '), onClick: this.onDropdownClicked.bind(this) }, this.dropdownSelectorContent(), h("div", { class: "dropdown-selector-chevron" }, h("tttx-
|
|
171
|
+
return (h(Host, { class: this.inline ? 'inline' : 'block' }, this.label && h("div", { class: "label" }, this.label), h("div", { tabindex: "0", class: "dropdown-container" }, h("div", { class: ['dropdown-selector', readOnlyClass].join(' '), onClick: this.onDropdownClicked.bind(this) }, this.dropdownSelectorContent(), h("div", { class: "dropdown-selector-chevron" }, h("tttx-icon_1_9_36", { icon: chevronIcon, color: "black" }))), this.open && (h("div", { class: "dropdown-body-container" }, h("div", { class: "dropdown-body", style: Object.assign({}, this.bodyOffset) }, this.searchEnabled &&
|
|
172
172
|
/* istanbul ignore next */
|
|
173
|
-
h("div", { class: "searchbox" }, h("tttx-standalone-
|
|
173
|
+
h("div", { class: "searchbox" }, h("tttx-standalone-input_1_9_36", { type: "text", placeholder: 'Search', label: "", required: true, showerrorbubble: false, iconleft: 'search', onInput: this.handleSearchInput.bind(this), inline: true })), h("div", { class: "dropdown-options-list" }, this.isLoading ? (h("tttx-loading-spinner_1_9_36", { class: 'loading-style' })) : (this.renderDropdownOptions(this.unsavedSelectedItems))), h("div", { class: 'footer' }, h("tttx-button_1_9_36", { design: "primary", onClick: this.applyChanges.bind(this) }, "Apply"), h("tttx-button_1_9_36", { onClick: this.onCancel.bind(this) }, "Cancel"))))))));
|
|
174
174
|
}
|
|
175
175
|
get el() { return getElement(this); }
|
|
176
176
|
static get watchers() { return {
|
|
@@ -179,4 +179,4 @@ const TttxMultiselectBox = class {
|
|
|
179
179
|
};
|
|
180
180
|
TttxMultiselectBox.style = tttxMultiselectBoxCss;
|
|
181
181
|
|
|
182
|
-
export { TttxMultiselectBox as
|
|
182
|
+
export { TttxMultiselectBox as tttx_multiselect_box_1_9_36 };
|
package/dist/esm/{tttx-percentage-bar_1_9_35.entry.js → tttx-percentage-bar_1_9_36.entry.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host } from './index-88bd2f60.js';
|
|
2
2
|
|
|
3
|
-
const tttxPercentageBarCss = ".sc-tttx-percentage-
|
|
3
|
+
const tttxPercentageBarCss = ".sc-tttx-percentage-bar_1_9_36-h{display:block}.progress.sc-tttx-percentage-bar_1_9_36{width:100%;background-color:#dbdbdb}.progress.sc-tttx-percentage-bar_1_9_36 .bar.sc-tttx-percentage-bar_1_9_36{height:20px}";
|
|
4
4
|
|
|
5
5
|
const TttxPercentageBar = class {
|
|
6
6
|
constructor(hostRef) {
|
|
@@ -58,4 +58,4 @@ const TttxPercentageBar = class {
|
|
|
58
58
|
};
|
|
59
59
|
TttxPercentageBar.style = tttxPercentageBarCss;
|
|
60
60
|
|
|
61
|
-
export { TttxPercentageBar as
|
|
61
|
+
export { TttxPercentageBar as tttx_percentage_bar_1_9_36 };
|
|
@@ -104,7 +104,7 @@ const TttxSelectBox = class {
|
|
|
104
104
|
let title;
|
|
105
105
|
let subtitle;
|
|
106
106
|
const chevronIcon = this.open ? 'expand_less' : 'expand_more';
|
|
107
|
-
const icon = h("tttx-
|
|
107
|
+
const icon = h("tttx-icon_1_9_36", { icon: chevronIcon, color: "black" });
|
|
108
108
|
let chevron = h("div", { class: "dropdown-selector-chevron" }, icon);
|
|
109
109
|
if (!this.selectedItem) {
|
|
110
110
|
title = h("div", { class: "placeholder" }, this.placeholder);
|
|
@@ -121,7 +121,7 @@ const TttxSelectBox = class {
|
|
|
121
121
|
chevron = h("div", { class: "dropdown-selector-chevron-offset" }, icon);
|
|
122
122
|
}
|
|
123
123
|
return (h(Fragment, null, h("div", { class: "left-wrapper" }, title, subtitle), this.clearable && !this.readOnly &&
|
|
124
|
-
h("tttx-
|
|
124
|
+
h("tttx-icon_1_9_36", { class: "input-icon", style: { paddingTop: '5px', cursor: 'pointer' }, icon: 'close_small', onClick: this.cleanSelectedItem.bind(this) }), chevron));
|
|
125
125
|
}
|
|
126
126
|
}
|
|
127
127
|
renderDropdownOptions(options) {
|
|
@@ -144,9 +144,9 @@ const TttxSelectBox = class {
|
|
|
144
144
|
}
|
|
145
145
|
// render priority options at the top of the dropdown list
|
|
146
146
|
return (h(Fragment, null, usingPriority && priorityOptions.length > 0 &&
|
|
147
|
-
h(Fragment, null, h("tttx-
|
|
147
|
+
h(Fragment, null, h("tttx-tag_1_9_36", { class: 'priority-pill', text: this.priorityLabel, color: "#F0F0F0" }), priorityOptions.map((option) => this.dropdownOption(option))), nonPriorityOptions.length > 0 &&
|
|
148
148
|
h(Fragment, null, usingPriority &&
|
|
149
|
-
h("tttx-
|
|
149
|
+
h("tttx-tag_1_9_36", { class: 'priority-pill', text: this.nonPriorityLabel, color: "#F0F0F0" }), nonPriorityOptions.map((option) => this.dropdownOption(option)))));
|
|
150
150
|
}
|
|
151
151
|
dropdownOption(option) {
|
|
152
152
|
const selected = this.selectedItem && option.value === this.selectedItem.value;
|
|
@@ -233,7 +233,7 @@ const TttxSelectBox = class {
|
|
|
233
233
|
return;
|
|
234
234
|
const invalidClass = this.showErrorMsg ? 'invalid' : '';
|
|
235
235
|
const readOnlyClass = this.readOnly ? 'dropdown-read-only' : '';
|
|
236
|
-
return (h(Host, { class: this.inline ? 'inline' : 'block' }, this.label && h("div", { class: "label" }, this.label), h("div", { tabindex: "0", class: "dropdown-container" }, h("div", { class: ['dropdown-selector', invalidClass, readOnlyClass].join(' '), ref: el => (this.dropdownSelector = el), onClick: this.onDropdownClicked.bind(this) }, this.dropdownSelectorContent()), this.open && (h("div", { class: "dropdown-body-container" }, h("div", { class: "dropdown-body", style: Object.assign({ width: `${this.dropdownSelector.offsetWidth}px` }, this.bodyOffset) }, this.searchEnabled && (h("div", { class: "searchbox" }, h("tttx-standalone-
|
|
236
|
+
return (h(Host, { class: this.inline ? 'inline' : 'block' }, this.label && h("div", { class: "label" }, this.label), h("div", { tabindex: "0", class: "dropdown-container" }, h("div", { class: ['dropdown-selector', invalidClass, readOnlyClass].join(' '), ref: el => (this.dropdownSelector = el), onClick: this.onDropdownClicked.bind(this) }, this.dropdownSelectorContent()), this.open && (h("div", { class: "dropdown-body-container" }, h("div", { class: "dropdown-body", style: Object.assign({ width: `${this.dropdownSelector.offsetWidth}px` }, this.bodyOffset) }, this.searchEnabled && (h("div", { class: "searchbox" }, h("tttx-standalone-input_1_9_36", { type: "text", label: "", required: true, showerrorbubble: false, iconleft: "search", onInput: this.handleSearchInput.bind(this) }))), h("div", { class: "dropdown-options-list", onScroll: this.onSelectScroll.bind(this) }, !this.isLoading && (this.renderDropdownOptions(this._optionsData)), (this.isLoading || this.loadingNextExternalPage) && (h("tttx-loading-spinner_1_9_36", { class: 'loading-style' })))))), this.showErrorBubble && (h("span", { class: ['errorBubble', this.showErrorMsg && this.errorMsg ? 'visible' : ''].join(' ') }, h("tttx-icon_1_9_36", { icon: "warning", color: "#dc0000", size: 16 }), " ", this.errorMsg)))));
|
|
237
237
|
}
|
|
238
238
|
get el() { return getElement(this); }
|
|
239
239
|
static get watchers() { return {
|
|
@@ -243,4 +243,4 @@ const TttxSelectBox = class {
|
|
|
243
243
|
};
|
|
244
244
|
TttxSelectBox.style = tttxSelectBoxCss;
|
|
245
245
|
|
|
246
|
-
export { TttxSelectBox as
|
|
246
|
+
export { TttxSelectBox as tttx_select_box_1_9_36 };
|
|
@@ -2,7 +2,7 @@ import { r as registerInstance, c as createEvent, h, H as Host } from './index-8
|
|
|
2
2
|
import { p as purify, d as domSanitiserOptions } from './domsanitiser.options-38a67458.js';
|
|
3
3
|
import './_commonjsHelpers-9943807e.js';
|
|
4
4
|
|
|
5
|
-
const tttxTabsCss = ".material-symbols-rounded.sc-tttx-
|
|
5
|
+
const tttxTabsCss = ".material-symbols-rounded.sc-tttx-tabs_1_9_36{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}.sc-tttx-tabs_1_9_36-h{display:block}.tab-bar.sc-tttx-tabs_1_9_36{display:flex;height:52px}.tab-bar.sc-tttx-tabs_1_9_36>.left-navigation.sc-tttx-tabs_1_9_36,.tab-bar.sc-tttx-tabs_1_9_36>.right-navigation.sc-tttx-tabs_1_9_36{padding:14px 8px;cursor:pointer}.tab-bar.sc-tttx-tabs_1_9_36>.left-navigation.sc-tttx-tabs_1_9_36>*.sc-tttx-tabs_1_9_36,.tab-bar.sc-tttx-tabs_1_9_36>.right-navigation.sc-tttx-tabs_1_9_36>*.sc-tttx-tabs_1_9_36{height:24px;width:24px;cursor:pointer}.tab-bar.sc-tttx-tabs_1_9_36>.tabs-container.sc-tttx-tabs_1_9_36{display:flex;border-bottom:1px solid #d5d5d5}.tab-bar.sc-tttx-tabs_1_9_36>.tabs-container.wide.sc-tttx-tabs_1_9_36{flex-grow:1}.tab-bar.sc-tttx-tabs_1_9_36>.tabs-container.sc-tttx-tabs_1_9_36>*[role=tab].sc-tttx-tabs_1_9_36{padding:18px 16px;line-height:16.408px;font-size:14px;font-weight:500;text-transform:uppercase;user-select:none;color:#757575;cursor:pointer}.tab-bar.sc-tttx-tabs_1_9_36>.tabs-container.sc-tttx-tabs_1_9_36>*[role=tab].sc-tttx-tabs_1_9_36:hover{background-color:rgba(17, 17, 17, 0.05)}.tab-bar.sc-tttx-tabs_1_9_36>.tabs-container.sc-tttx-tabs_1_9_36>*[role=tab][aria-selected].sc-tttx-tabs_1_9_36{color:#212121;cursor:default;border-bottom:3px solid #1579c6}";
|
|
6
6
|
|
|
7
7
|
const TttxTabs = class {
|
|
8
8
|
constructor(hostRef) {
|
|
@@ -46,6 +46,11 @@ const TttxTabs = class {
|
|
|
46
46
|
const orientation = this.tabList.getAttribute('aria-orientation'); // horizontal by default
|
|
47
47
|
const previous = orientation && orientation === 'vertical' ? 'ArrowUp' : 'ArrowLeft';
|
|
48
48
|
const next = orientation && orientation === 'vertical' ? 'ArrowDown' : 'ArrowRight';
|
|
49
|
+
const target = event.target;
|
|
50
|
+
const isTyping = target === null || target === void 0 ? void 0 : target.tagName.toLowerCase().startsWith('tttx-comments'); // checking if it is comment component
|
|
51
|
+
if (isTyping) {
|
|
52
|
+
return; // Let the input handle arrow keys naturally
|
|
53
|
+
}
|
|
49
54
|
if (event.key === previous || event.key === next) {
|
|
50
55
|
// Make the previous tab deselectable
|
|
51
56
|
this._tabs[this.tabFocus].tabIndex = -1;
|
|
@@ -74,7 +79,7 @@ const TttxTabs = class {
|
|
|
74
79
|
}
|
|
75
80
|
generateTab(tab) {
|
|
76
81
|
var _a, _b;
|
|
77
|
-
const tabTitle = (_a = tab.tabName) !== null && _a !== void 0 ? _a : (h("tttx-
|
|
82
|
+
const tabTitle = (_a = tab.tabName) !== null && _a !== void 0 ? _a : (h("tttx-icon_1_9_36", { style: { pointerEvents: 'none', marginTop: '-2px' }, icon: tab.tabIcon, color: 'gray', size: (_b = tab.tabIconSize) !== null && _b !== void 0 ? _b : 24 }));
|
|
78
83
|
return (h("a", { key: tab.id, id: tab.id, role: "tab", "aria-controls": tab.controls, tabindex: tab.tabIndex, "aria-selected": tab.selected, onClick: () => {
|
|
79
84
|
this.handleTabClick(tab);
|
|
80
85
|
} }, tabTitle));
|
|
@@ -93,7 +98,7 @@ const TttxTabs = class {
|
|
|
93
98
|
return;
|
|
94
99
|
}
|
|
95
100
|
const selectedTab = this._tabs.find(tab => tab.selected);
|
|
96
|
-
return (h(Host, null, h("div", null, h("div", { class: "tab-bar", role: "tablist", "aria-label": this.tabsName, ref: el => (this.tabList = el) }, this.navigation && (h("div", { class: "left-navigation", tabindex: "0", onClick: this.handleLeftNavigation.bind(this) }, h("tttx-
|
|
101
|
+
return (h(Host, null, h("div", null, h("div", { class: "tab-bar", role: "tablist", "aria-label": this.tabsName, ref: el => (this.tabList = el) }, this.navigation && (h("div", { class: "left-navigation", tabindex: "0", onClick: this.handleLeftNavigation.bind(this) }, h("tttx-icon_1_9_36", { icon: "navigate_before", color: "black" }))), h("div", { class: 'tabs-container' + (this.wide ? ' wide' : '') }, this._tabs.map(this.generateTab.bind(this))), this.navigation && (h("div", { class: "right-navigation", tabindex: "0", onClick: this.handleRightNavigation.bind(this) }, h("tttx-icon_1_9_36", { icon: "navigate_next", color: "black" })))), selectedTab && this.renderSelectedTab(selectedTab))));
|
|
97
102
|
}
|
|
98
103
|
static get watchers() { return {
|
|
99
104
|
"tabs": ["onDataChange"]
|
|
@@ -101,4 +106,4 @@ const TttxTabs = class {
|
|
|
101
106
|
};
|
|
102
107
|
TttxTabs.style = tttxTabsCss;
|
|
103
108
|
|
|
104
|
-
export { TttxTabs as
|
|
109
|
+
export { TttxTabs as tttx_tabs_1_9_36 };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host } from './index-88bd2f60.js';
|
|
2
2
|
|
|
3
|
-
const tttxTextareaCss = ".material-symbols-rounded.sc-tttx-
|
|
3
|
+
const tttxTextareaCss = ".material-symbols-rounded.sc-tttx-textarea_1_9_36{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}.sc-tttx-textarea_1_9_36-h{display:block}label.sc-tttx-textarea_1_9_36{font-weight:500;font-size:16px;line-height:18.752px;color:#212121}label.sc-tttx-textarea_1_9_36 .textarea-container.sc-tttx-textarea_1_9_36{position:relative}label.sc-tttx-textarea_1_9_36 .textarea-container.sc-tttx-textarea_1_9_36 textarea.sc-tttx-textarea_1_9_36{font-family:\"Roboto\", serif;box-sizing:border-box;width:100%;padding:9px 16px;font-size:16px;line-height:18.752px;border:1px solid #d5d5d5;border-radius:4px;margin-top:8px;resize:none}label.sc-tttx-textarea_1_9_36 .textarea-container.sc-tttx-textarea_1_9_36 textarea.no-label.sc-tttx-textarea_1_9_36{margin-top:0}label.sc-tttx-textarea_1_9_36 .textarea-container.sc-tttx-textarea_1_9_36 textarea.sc-tttx-textarea_1_9_36~.errorBubble.sc-tttx-textarea_1_9_36{font-size:14px;line-height:16.408px;font-weight:normal;width:100%;font-family:\"Roboto\", sans-serif;color:#dc0000;display:flex;align-content:center;align-items:center;justify-items:center;margin-top:4px}label.sc-tttx-textarea_1_9_36 .textarea-container.sc-tttx-textarea_1_9_36 textarea.sc-tttx-textarea_1_9_36~.errorBubble.sc-tttx-textarea_1_9_36:not(.visible){display:none}label.sc-tttx-textarea_1_9_36 .textarea-container.sc-tttx-textarea_1_9_36 textarea.sc-tttx-textarea_1_9_36~.errorBubble.sc-tttx-textarea_1_9_36 span.sc-tttx-textarea_1_9_36{color:#dc0000;font-size:16px;margin-right:4px}label.sc-tttx-textarea_1_9_36 .textarea-container.sc-tttx-textarea_1_9_36 textarea.sc-tttx-textarea_1_9_36:focus{border-color:#1479c6}label.sc-tttx-textarea_1_9_36 .textarea-container.sc-tttx-textarea_1_9_36 textarea.sc-tttx-textarea_1_9_36:focus-visible{outline:none}label.sc-tttx-textarea_1_9_36 .secondarylabel.sc-tttx-textarea_1_9_36{color:#757575;font-size:14px;line-height:16.408px;font-weight:normal;display:flex;margin-top:4px}label.sc-tttx-textarea_1_9_36 .optional.sc-tttx-textarea_1_9_36{color:#757575;font-weight:normal}";
|
|
4
4
|
|
|
5
5
|
const TttxTextarea = class {
|
|
6
6
|
constructor(hostRef) {
|
|
@@ -52,4 +52,4 @@ const TttxTextarea = class {
|
|
|
52
52
|
};
|
|
53
53
|
TttxTextarea.style = tttxTextareaCss;
|
|
54
54
|
|
|
55
|
-
export { TttxTextarea as
|
|
55
|
+
export { TttxTextarea as tttx_textarea_1_9_36 };
|
|
@@ -102,7 +102,7 @@ const TttxTreeView = class {
|
|
|
102
102
|
if (node.hasHover) {
|
|
103
103
|
this.onClickHandler(event, node);
|
|
104
104
|
}
|
|
105
|
-
} }, h("tttx-
|
|
105
|
+
} }, h("tttx-button_1_9_36", { class: "toggleNode", design: "borderless-circle", notext: true, icon: options.expanderIcon, color: "black", onClick: event => this.toggleNode(node, event) }), this.htmlcode('treeNode', node, options.checkboxIcon, options.checkboxColor)), node.isOpen ? (h("li", null, h("ul", null, node.child.map(childNode => {
|
|
106
106
|
return this.renderNode(childNode);
|
|
107
107
|
})))) : null));
|
|
108
108
|
}
|
|
@@ -115,7 +115,7 @@ const TttxTreeView = class {
|
|
|
115
115
|
}
|
|
116
116
|
}
|
|
117
117
|
htmlcode(type, node, check_box, check_boxColor) {
|
|
118
|
-
const htmlcode = (h("div", { class: "inline-tree-item element" }, node.hasCheckbox && (h("tttx-
|
|
118
|
+
const htmlcode = (h("div", { class: "inline-tree-item element" }, node.hasCheckbox && (h("tttx-button_1_9_36", { design: "borderless-circle", notext: true, icon: check_box, iconcolor: check_boxColor, class: "padding-icon checkbox", onClick: event => this.handleCheckboxChange(node, event) })), !node.html && node.hasIcon && (h("tttx-icon_1_9_36", { icon: node.icon, color: node.iconColor, class: "padding-icon" })), !node.html && h("div", { class: type }, node.title), node.html && h("div", { class: type, innerHTML: purify.sanitize(node.html, domSanitiserOptions) })));
|
|
119
119
|
return htmlcode;
|
|
120
120
|
}
|
|
121
121
|
render() {
|
|
@@ -126,4 +126,4 @@ const TttxTreeView = class {
|
|
|
126
126
|
};
|
|
127
127
|
TttxTreeView.style = tttxTreeViewCss;
|
|
128
128
|
|
|
129
|
-
export { TttxTreeView as
|
|
129
|
+
export { TttxTreeView as tttx_tree_view_1_9_36 };
|
package/dist/esm/tttx.js
CHANGED
|
@@ -14,5 +14,5 @@ const patchBrowser = () => {
|
|
|
14
14
|
};
|
|
15
15
|
|
|
16
16
|
patchBrowser().then(options => {
|
|
17
|
-
return bootstrapLazy([["tttx-data-
|
|
17
|
+
return bootstrapLazy([["tttx-data-pattern_1_9_36",[[1,"tttx-data-pattern_1_9_36",{"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]}]]],["tttx-form_1_9_36",[[1,"tttx-form_1_9_36",{"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]}]]],["tttx-multiselect-box_1_9_36",[[1,"tttx-multiselect-box_1_9_36",{"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"]]]]],["tttx-datacard_1_9_36",[[1,"tttx-datacard_1_9_36",{"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]}]]],["tttx-dialog-box_1_9_36",[[1,"tttx-dialog-box_1_9_36",{"data":[1025],"size":[1],"open":[1028],"allowOverflow":[4,"allow-overflow"],"elementSize":[32]},[[9,"resize","handleResize"]]]]],["tttx-dialog_1_9_36",[[1,"tttx-dialog_1_9_36",{"header":[1],"type":[1],"size":[1],"open":[4],"allowOverflow":[4,"allow-overflow"],"closeEnabled":[4,"close-enabled"],"elementSize":[32]},[[9,"resize","handleResize"]]]]],["tttx-tree-view_1_9_36",[[1,"tttx-tree-view_1_9_36",{"data":[1040],"treeData":[32]}]]],["tttx-checkbox_1_9_36",[[0,"tttx-checkbox_1_9_36",{"checkboxId":[1,"checkbox-id"],"label":[1],"inline":[4],"indeterminate":[4],"checked":[4]}]]],["tttx-comments_1_9_36",[[1,"tttx-comments_1_9_36",{"currentuser":[1],"comments":[1],"disableFile":[4,"disable-file"],"_comments":[32],"showError":[32],"addDummyComment":[64]}]]],["tttx-expander_1_9_36",[[1,"tttx-expander_1_9_36",{"name":[1],"open":[4],"lefticon":[1],"lefticoncolor":[1],"isExpanded":[32]}]]],["tttx-tabs_1_9_36",[[2,"tttx-tabs_1_9_36",{"tabsName":[1,"tabs-name"],"navigation":[4],"wide":[4],"tabs":[1],"_tabs":[32]},[[0,"keydown","handleKeyDown"]]]]],["tttx-checkbox-group-caption_1_9_36",[[4,"tttx-checkbox-group-caption_1_9_36"]]],["tttx-checkbox-group-heading_1_9_36",[[4,"tttx-checkbox-group-heading_1_9_36"]]],["tttx-checkbox-group_1_9_36",[[1,"tttx-checkbox-group_1_9_36"]]],["tttx-keyvalue-block_1_9_36",[[1,"tttx-keyvalue-block_1_9_36",{"keyvalues":[1],"horizontal":[4],"spacedout":[4],"_elements":[32]}]]],["tttx-percentage-bar_1_9_36",[[2,"tttx-percentage-bar_1_9_36",{"percentage":[8],"thresholds":[1],"color":[1],"min":[1],"labelid":[1],"_percentage":[32],"_ranges":[32],"_min":[32]}]]],["tttx-qrcode_1_9_36",[[1,"tttx-qrcode_1_9_36",{"link":[1025],"size":[1026]}]]],["tttx-table_1_9_36",[[1,"tttx-table_1_9_36",{"headers":[16],"data":[8],"selectable":[4],"loading":[4],"selected":[2],"draggableHeaders":[4,"draggable-headers"],"draggedHeaderIndex":[32]}]]],["tttx-textarea_1_9_36",[[2,"tttx-textarea_1_9_36",{"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]}]]],["tttx-toggle_1_9_36",[[1,"tttx-toggle_1_9_36",{"initialstate":[8],"_state":[32]}]]],["tttx-loading-spinner_1_9_36_3",[[1,"tttx-tag_1_9_36",{"text":[1],"color":[1],"textColor":[1,"text-color"],"hasIcon":[4,"has-icon"],"icon":[1],"iconColor":[1,"icon-color"],"iconSize":[2,"icon-size"]}],[1,"tttx-loading-spinner_1_9_36",{"loadingMessage":[1028,"loading-message"],"size":[1025]}],[2,"tttx-standalone-input_1_9_36",{"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]}]]],["tttx-select-box_1_9_36",[[1,"tttx-select-box_1_9_36",{"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"]]]]],["tttx-graph_1_9_36",[[1,"tttx-graph_1_9_36",{"chartType":[1,"chart-type"],"chartData":[1,"chart-data"],"chartText":[1,"chart-text"],"chartConfig":[32],"formattedData":[32]}]]],["tttx-icon_1_9_36",[[1,"tttx-icon_1_9_36",{"icon":[1],"color":[1],"size":[1026]}]]],["tttx-filter_1_9_36_4",[[1,"tttx-filter_1_9_36",{"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_36",{"data":[1025],"name":[1],"_data":[32]}],[1,"tttx-sorter_1_9_36",{"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_36",{"border":[4],"viewSize":[32]},[[9,"resize","handleResize"]]]]],["tttx-button_1_9_36",[[1,"tttx-button_1_9_36",{"notext":[4],"icon":[1],"iconposition":[1],"iconcolor":[1025],"design":[1]}]]]], options);
|
|
18
18
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as e,h as i,F as n,H as o}from"./p-d490353a.js";const a=class{constructor(i){t(this,i),this.commentAdded=e(this,"commentAdded",6),this.requestFileUpload=e(this,"requestFileUpload",6),this.requestFileDownload=e(this,"requestFileDownload",6),this.ALLOWED_MESSAGE_LENGTH=5e3,this.currentuser=void 0,this.comments=void 0,this.disableFile=!1,this._comments=void 0,this.showError=void 0}componentWillLoad(){this.onCommentsChange()}onCommentsChange(){this.comments&&(this._comments="string"==typeof this.comments?JSON.parse(this.comments):this.comments,this.scrollToBottom())}renderCommentBubble(){var t;return i(n,null,null===(t=this._comments)||void 0===t?void 0:t.map(((t,e)=>{var n;const o=e===this._comments.length-1;return i("div",{class:"commentBubble "+(t.createdByFullName===this.currentuser?"right":"left"),key:t.id,style:0===e?{marginTop:"10px"}:{}},i("div",{class:"bubbleHeader"},i("span",{class:"commentName"},t.createdByFullName),(null===(n=t.metadata)||void 0===n?void 0:n.contextString)&&i("span",{class:"commentContext"},"(",t.metadata.contextString,")")),i("div",{class:"bubbleText"},this.renderCommentInner(t)),i("div",{class:"bubbleFooter"},i("span",{class:"commentDate"},new Date(t.createdAt).toLocaleString())),!o&&i("hr",{class:"commentDivider"}))})))}renderCommentInner(t){return t.metadata&&0===t.metadata.type?t.metadata.type===l.FILE?this.renderFileLink(t.metadata):void 0:t.text}renderFileLink(t){return 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();const n={id:void 0,text:i,createdAt:+new Date,createdByFullName:this.currentuser,createdById:void 0};this._comments=[...this._comments,n],this.commentAdded.emit(n),this.scrollToBottom()}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};this._comments=[...this._comments,i],this.scrollToBottom()}onCommentFieldChange(t){this.showError=t.target.value.length>=this.ALLOWED_MESSAGE_LENGTH}render(){return i(o,null,i("article",{id:"comment-container"},i("section",{id:"comment-bubbles-section"},i("div",{id:"scroll-container",ref:t=>this._scrollContainer=t},this.renderCommentBubble())),i("section",{id:"input-section"},i("form",{onSubmit:this.onFormSubmit.bind(this)},i("fieldset",null,i("input",{type:"text",name:"commentText",required:!0,maxlength:`${this.ALLOWED_MESSAGE_LENGTH}`,placeholder:"Enter comment",onInput:t=>this.onCommentFieldChange(t)})),this.showError&&i("span",{class:"errorBubble visible"},i("span",{class:"material-symbols-rounded"},"warning")," ",`${this.ALLOWED_MESSAGE_LENGTH} character limit is reached.`),i("fieldset",null,!this.disableFile&&i("button",{id:"attach-file",type:"button",value:"File",onClick:this.onFileUploadRequest.bind(this)},i("tttx-
|
|
1
|
+
import{r as t,c as e,h as i,F as n,H as o}from"./p-d490353a.js";const a=class{constructor(i){t(this,i),this.commentAdded=e(this,"commentAdded",6),this.requestFileUpload=e(this,"requestFileUpload",6),this.requestFileDownload=e(this,"requestFileDownload",6),this.ALLOWED_MESSAGE_LENGTH=5e3,this.currentuser=void 0,this.comments=void 0,this.disableFile=!1,this._comments=void 0,this.showError=void 0}componentWillLoad(){this.onCommentsChange()}onCommentsChange(){this.comments&&(this._comments="string"==typeof this.comments?JSON.parse(this.comments):this.comments,this.scrollToBottom())}renderCommentBubble(){var t;return i(n,null,null===(t=this._comments)||void 0===t?void 0:t.map(((t,e)=>{var n;const o=e===this._comments.length-1;return i("div",{class:"commentBubble "+(t.createdByFullName===this.currentuser?"right":"left"),key:t.id,style:0===e?{marginTop:"10px"}:{}},i("div",{class:"bubbleHeader"},i("span",{class:"commentName"},t.createdByFullName),(null===(n=t.metadata)||void 0===n?void 0:n.contextString)&&i("span",{class:"commentContext"},"(",t.metadata.contextString,")")),i("div",{class:"bubbleText"},this.renderCommentInner(t)),i("div",{class:"bubbleFooter"},i("span",{class:"commentDate"},new Date(t.createdAt).toLocaleString())),!o&&i("hr",{class:"commentDivider"}))})))}renderCommentInner(t){return t.metadata&&0===t.metadata.type?t.metadata.type===l.FILE?this.renderFileLink(t.metadata):void 0:t.text}renderFileLink(t){return 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();const n={id:void 0,text:i,createdAt:+new Date,createdByFullName:this.currentuser,createdById:void 0};this._comments=[...this._comments,n],this.commentAdded.emit(n),this.scrollToBottom()}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};this._comments=[...this._comments,i],this.scrollToBottom()}onCommentFieldChange(t){this.showError=t.target.value.length>=this.ALLOWED_MESSAGE_LENGTH}render(){return i(o,null,i("article",{id:"comment-container"},i("section",{id:"comment-bubbles-section"},i("div",{id:"scroll-container",ref:t=>this._scrollContainer=t},this.renderCommentBubble())),i("section",{id:"input-section"},i("form",{onSubmit:this.onFormSubmit.bind(this)},i("fieldset",null,i("input",{type:"text",name:"commentText",required:!0,maxlength:`${this.ALLOWED_MESSAGE_LENGTH}`,placeholder:"Enter comment",onInput:t=>this.onCommentFieldChange(t)})),this.showError&&i("span",{class:"errorBubble visible"},i("span",{class:"material-symbols-rounded"},"warning")," ",`${this.ALLOWED_MESSAGE_LENGTH} character limit is reached.`),i("fieldset",null,!this.disableFile&&i("button",{id:"attach-file",type:"button",value:"File",onClick:this.onFileUploadRequest.bind(this)},i("tttx-icon_1_9_36",{color:"black",icon:"attach_file"})),i("input",{type:"submit",value:"Add Comment"}))))))}static get watchers(){return{comments:["onCommentsChange"]}}};var l;!function(t){t[t.FILE=0]="FILE"}(l||(l={})),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}.commentBubble .bubbleHeader{display:flex;justify-content:space-between;align-items:center;margin-bottom:4px}.commentName{color:black;font-size:10pt}.commentContext{color:gray;font-size:10pt}.commentBubble .bubbleFooter{display:flex;justify-content:flex-end;padding:0 16px;font-size:9pt;color:#757575}.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}';export{a as tttx_comments_1_9_36}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as e,h as i,H as l}from"./p-d490353a.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
|
|
1
|
+
import{r as t,c as e,h as i,H as l}from"./p-d490353a.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_36}
|