@3t-transform/threeteeui 1.9.33 → 1.9.35
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_33.cjs.entry.js → tttx-button_1_9_35.cjs.entry.js} +2 -2
- package/dist/cjs/{tttx-checkbox-group-caption_1_9_33.cjs.entry.js → tttx-checkbox-group-caption_1_9_35.cjs.entry.js} +1 -1
- package/dist/cjs/{tttx-checkbox-group-heading_1_9_33.cjs.entry.js → tttx-checkbox-group-heading_1_9_35.cjs.entry.js} +1 -1
- package/dist/cjs/{tttx-checkbox-group_1_9_33.cjs.entry.js → tttx-checkbox-group_1_9_35.cjs.entry.js} +1 -1
- package/dist/cjs/{tttx-checkbox_1_9_33.cjs.entry.js → tttx-checkbox_1_9_35.cjs.entry.js} +2 -2
- package/dist/cjs/tttx-comments_1_9_35.cjs.entry.js +124 -0
- package/dist/cjs/{tttx-data-pattern_1_9_33.cjs.entry.js → tttx-data-pattern_1_9_35.cjs.entry.js} +5 -5
- package/dist/cjs/{tttx-datacard_1_9_33.cjs.entry.js → tttx-datacard_1_9_35.cjs.entry.js} +4 -4
- package/dist/cjs/{tttx-dialog-box_1_9_33.cjs.entry.js → tttx-dialog-box_1_9_35.cjs.entry.js} +4 -4
- package/dist/cjs/{tttx-dialog_1_9_33.cjs.entry.js → tttx-dialog_1_9_35.cjs.entry.js} +2 -2
- package/dist/cjs/{tttx-expander_1_9_33.cjs.entry.js → tttx-expander_1_9_35.cjs.entry.js} +2 -2
- package/dist/cjs/{tttx-filter_1_9_33_4.cjs.entry.js → tttx-filter_1_9_35_4.cjs.entry.js} +9 -9
- package/dist/cjs/{tttx-form_1_9_33.cjs.entry.js → tttx-form_1_9_35.cjs.entry.js} +2 -2
- package/dist/cjs/{tttx-graph_1_9_33.cjs.entry.js → tttx-graph_1_9_35.cjs.entry.js} +1 -1
- package/dist/cjs/{tttx-icon_1_9_33.cjs.entry.js → tttx-icon_1_9_35.cjs.entry.js} +1 -1
- package/dist/cjs/{tttx-keyvalue-block_1_9_33.cjs.entry.js → tttx-keyvalue-block_1_9_35.cjs.entry.js} +1 -1
- package/dist/cjs/{tttx-loading-spinner_1_9_33_3.cjs.entry.js → tttx-loading-spinner_1_9_35_3.cjs.entry.js} +6 -6
- package/dist/cjs/{tttx-multiselect-box_1_9_33.cjs.entry.js → tttx-multiselect-box_1_9_35.cjs.entry.js} +7 -7
- package/dist/cjs/{tttx-percentage-bar_1_9_33.cjs.entry.js → tttx-percentage-bar_1_9_35.cjs.entry.js} +2 -2
- package/dist/cjs/{tttx-qrcode_1_9_33.cjs.entry.js → tttx-qrcode_1_9_35.cjs.entry.js} +1 -1
- package/dist/cjs/{tttx-select-box_1_9_33.cjs.entry.js → tttx-select-box_1_9_35.cjs.entry.js} +6 -6
- package/dist/cjs/{tttx-table_1_9_33.cjs.entry.js → tttx-table_1_9_35.cjs.entry.js} +1 -1
- package/dist/cjs/{tttx-tabs_1_9_33.cjs.entry.js → tttx-tabs_1_9_35.cjs.entry.js} +4 -4
- package/dist/cjs/{tttx-textarea_1_9_33.cjs.entry.js → tttx-textarea_1_9_35.cjs.entry.js} +2 -2
- package/dist/cjs/{tttx-toggle_1_9_33.cjs.entry.js → tttx-toggle_1_9_35.cjs.entry.js} +1 -1
- package/dist/cjs/{tttx-tree-view_1_9_33.cjs.entry.js → tttx-tree-view_1_9_35.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.css +211 -1
- package/dist/collection/components/molecules/tttx-comments/tttx-comments.js +15 -3
- 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.css +1 -1
- 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 +3 -3
- package/dist/collection/components/molecules/tttx-tabs/tttx-tabs.stories.js +4 -4
- package/dist/collection/components/molecules/tttx-textarea/tttx-textarea.js +3 -3
- package/dist/collection/components/molecules/tttx-textarea/tttx-textarea.stories.js +1 -1
- package/dist/collection/components/molecules/tttx-toolbar/tttx-toolbar.js +1 -1
- package/dist/collection/components/molecules/tttx-toolbar/tttx-toolbar.stories.js +37 -37
- package/dist/collection/components/molecules/tttx-tree-view/tttx-tree-view.js +3 -3
- package/dist/collection/components/molecules/tttx-tree-view/tttx-tree-view.stories.js +8 -8
- package/dist/collection/components/organisms/tttx-data-pattern/tttx-data-pattern.js +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_33.d.ts → tttx-button_1_9_35.d.ts} +4 -4
- package/dist/components/{tttx-button_1_9_33.js → tttx-button_1_9_35.js} +2 -2
- package/dist/components/tttx-checkbox-group-caption_1_9_35.d.ts +11 -0
- package/dist/components/{tttx-checkbox-group-caption_1_9_33.js → tttx-checkbox-group-caption_1_9_35.js} +5 -5
- package/dist/components/tttx-checkbox-group-heading_1_9_35.d.ts +11 -0
- package/dist/components/{tttx-checkbox-group-heading_1_9_33.js → tttx-checkbox-group-heading_1_9_35.js} +5 -5
- package/dist/components/tttx-checkbox-group_1_9_35.d.ts +11 -0
- package/dist/components/{tttx-checkbox-group_1_9_33.js → tttx-checkbox-group_1_9_35.js} +5 -5
- package/dist/components/{tttx-datacard_1_9_33.d.ts → tttx-checkbox_1_9_35.d.ts} +4 -4
- package/dist/components/{tttx-checkbox_1_9_33.js → tttx-checkbox_1_9_35.js} +7 -7
- package/dist/components/{tttx-checkbox_1_9_33.d.ts → tttx-comments_1_9_35.d.ts} +4 -4
- package/dist/components/tttx-comments_1_9_35.js +151 -0
- package/dist/components/tttx-data-pattern_1_9_35.d.ts +11 -0
- package/dist/components/{tttx-data-pattern_1_9_33.js → tttx-data-pattern_1_9_35.js} +16 -16
- package/dist/components/{tttx-comments_1_9_33.d.ts → tttx-datacard_1_9_35.d.ts} +4 -4
- package/dist/components/{tttx-datacard_1_9_33.js → tttx-datacard_1_9_35.js} +10 -10
- package/dist/components/tttx-dialog-box_1_9_35.d.ts +11 -0
- package/dist/components/{tttx-dialog-box_1_9_33.js → tttx-dialog-box_1_9_35.js} +10 -10
- package/dist/components/{tttx-dialog_1_9_33.d.ts → tttx-dialog_1_9_35.d.ts} +4 -4
- package/dist/components/{tttx-dialog_1_9_33.js → tttx-dialog_1_9_35.js} +8 -8
- package/dist/components/tttx-expander_1_9_35.d.ts +11 -0
- package/dist/components/{tttx-expander_1_9_33.js → tttx-expander_1_9_35.js} +7 -7
- package/dist/components/tttx-filter.js +6 -6
- package/dist/components/{tttx-filter_1_9_33.d.ts → tttx-filter_1_9_35.d.ts} +4 -4
- package/dist/components/{tttx-filter_1_9_33.js → tttx-filter_1_9_35.js} +2 -2
- package/dist/components/{tttx-tabs_1_9_33.d.ts → tttx-form_1_9_35.d.ts} +4 -4
- package/dist/components/{tttx-form_1_9_33.js → tttx-form_1_9_35.js} +11 -11
- package/dist/components/tttx-graph.js +3 -3
- package/dist/components/{tttx-graph_1_9_33.d.ts → tttx-graph_1_9_35.d.ts} +4 -4
- package/dist/components/{tttx-graph_1_9_33.js → tttx-graph_1_9_35.js} +2 -2
- package/dist/components/tttx-icon.js +3 -3
- package/dist/components/{tttx-icon_1_9_33.d.ts → tttx-icon_1_9_35.d.ts} +4 -4
- package/dist/components/{tttx-icon_1_9_33.js → tttx-icon_1_9_35.js} +2 -2
- package/dist/components/tttx-keyvalue-block_1_9_35.d.ts +11 -0
- package/dist/components/{tttx-keyvalue-block_1_9_33.js → tttx-keyvalue-block_1_9_35.js} +5 -5
- package/dist/components/tttx-list.js +6 -6
- package/dist/components/{tttx-list_1_9_33.d.ts → tttx-list_1_9_35.d.ts} +4 -4
- package/dist/components/{tttx-list_1_9_33.js → tttx-list_1_9_35.js} +2 -2
- package/dist/components/tttx-loading-spinner.js +3 -3
- package/dist/components/tttx-loading-spinner_1_9_35.d.ts +11 -0
- package/dist/components/{tttx-loading-spinner_1_9_33.js → tttx-loading-spinner_1_9_35.js} +2 -2
- package/dist/components/tttx-multiselect-box_1_9_35.d.ts +11 -0
- package/dist/components/{tttx-multiselect-box_1_9_33.js → tttx-multiselect-box_1_9_35.js} +16 -16
- package/dist/components/tttx-percentage-bar_1_9_35.d.ts +11 -0
- package/dist/components/{tttx-percentage-bar_1_9_33.js → tttx-percentage-bar_1_9_35.js} +6 -6
- package/dist/components/{tttx-qrcode_1_9_33.d.ts → tttx-qrcode_1_9_35.d.ts} +4 -4
- package/dist/components/{tttx-qrcode_1_9_33.js → tttx-qrcode_1_9_35.js} +5 -5
- package/dist/components/tttx-select-box.js +12 -12
- package/dist/components/tttx-select-box_1_9_35.d.ts +11 -0
- package/dist/components/{tttx-select-box_1_9_33.js → tttx-select-box_1_9_35.js} +2 -2
- package/dist/components/tttx-sorter.js +5 -5
- package/dist/components/tttx-sorter_1_9_35.d.ts +11 -0
- package/dist/components/{tttx-sorter_1_9_33.js → tttx-sorter_1_9_35.js} +2 -2
- package/dist/components/tttx-standalone-input.js +6 -6
- package/dist/components/tttx-standalone-input_1_9_35.d.ts +11 -0
- package/dist/components/{tttx-standalone-input_1_9_33.js → tttx-standalone-input_1_9_35.js} +2 -2
- package/dist/components/{tttx-table_1_9_33.d.ts → tttx-table_1_9_35.d.ts} +4 -4
- package/dist/components/{tttx-table_1_9_33.js → tttx-table_1_9_35.js} +5 -5
- package/dist/components/{tttx-form_1_9_33.d.ts → tttx-tabs_1_9_35.d.ts} +4 -4
- package/dist/components/{tttx-tabs_1_9_33.js → tttx-tabs_1_9_35.js} +9 -9
- package/dist/components/tttx-tag.js +5 -5
- package/dist/components/{tttx-tag_1_9_33.d.ts → tttx-tag_1_9_35.d.ts} +4 -4
- package/dist/components/{tttx-tag_1_9_33.js → tttx-tag_1_9_35.js} +2 -2
- package/dist/components/tttx-textarea_1_9_35.d.ts +11 -0
- package/dist/components/{tttx-textarea_1_9_33.js → tttx-textarea_1_9_35.js} +6 -6
- package/dist/components/tttx-toggle_1_9_35.d.ts +11 -0
- package/dist/components/{tttx-toggle_1_9_33.js → tttx-toggle_1_9_35.js} +5 -5
- package/dist/components/tttx-toolbar.js +3 -3
- package/dist/components/tttx-toolbar_1_9_35.d.ts +11 -0
- package/dist/components/{tttx-toolbar_1_9_33.js → tttx-toolbar_1_9_35.js} +2 -2
- package/dist/components/tttx-tree-view_1_9_35.d.ts +11 -0
- package/dist/components/{tttx-tree-view_1_9_33.js → tttx-tree-view_1_9_35.js} +9 -9
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{tttx-button_1_9_33.entry.js → tttx-button_1_9_35.entry.js} +2 -2
- package/dist/esm/{tttx-checkbox-group-caption_1_9_33.entry.js → tttx-checkbox-group-caption_1_9_35.entry.js} +1 -1
- package/dist/esm/{tttx-checkbox-group-heading_1_9_33.entry.js → tttx-checkbox-group-heading_1_9_35.entry.js} +1 -1
- package/dist/esm/{tttx-checkbox-group_1_9_33.entry.js → tttx-checkbox-group_1_9_35.entry.js} +1 -1
- package/dist/esm/{tttx-checkbox_1_9_33.entry.js → tttx-checkbox_1_9_35.entry.js} +2 -2
- package/dist/esm/tttx-comments_1_9_35.entry.js +120 -0
- package/dist/esm/{tttx-data-pattern_1_9_33.entry.js → tttx-data-pattern_1_9_35.entry.js} +5 -5
- package/dist/esm/{tttx-datacard_1_9_33.entry.js → tttx-datacard_1_9_35.entry.js} +4 -4
- package/dist/esm/{tttx-dialog-box_1_9_33.entry.js → tttx-dialog-box_1_9_35.entry.js} +4 -4
- package/dist/esm/{tttx-dialog_1_9_33.entry.js → tttx-dialog_1_9_35.entry.js} +2 -2
- package/dist/esm/{tttx-expander_1_9_33.entry.js → tttx-expander_1_9_35.entry.js} +2 -2
- package/dist/esm/{tttx-filter_1_9_33_4.entry.js → tttx-filter_1_9_35_4.entry.js} +6 -6
- package/dist/esm/{tttx-form_1_9_33.entry.js → tttx-form_1_9_35.entry.js} +2 -2
- package/dist/esm/{tttx-graph_1_9_33.entry.js → tttx-graph_1_9_35.entry.js} +1 -1
- package/dist/esm/{tttx-icon_1_9_33.entry.js → tttx-icon_1_9_35.entry.js} +1 -1
- package/dist/esm/{tttx-keyvalue-block_1_9_33.entry.js → tttx-keyvalue-block_1_9_35.entry.js} +1 -1
- package/dist/esm/{tttx-loading-spinner_1_9_33_3.entry.js → tttx-loading-spinner_1_9_35_3.entry.js} +4 -4
- package/dist/esm/{tttx-multiselect-box_1_9_33.entry.js → tttx-multiselect-box_1_9_35.entry.js} +7 -7
- package/dist/esm/{tttx-percentage-bar_1_9_33.entry.js → tttx-percentage-bar_1_9_35.entry.js} +2 -2
- package/dist/esm/{tttx-qrcode_1_9_33.entry.js → tttx-qrcode_1_9_35.entry.js} +1 -1
- package/dist/esm/{tttx-select-box_1_9_33.entry.js → tttx-select-box_1_9_35.entry.js} +6 -6
- package/dist/esm/{tttx-table_1_9_33.entry.js → tttx-table_1_9_35.entry.js} +1 -1
- package/dist/esm/{tttx-tabs_1_9_33.entry.js → tttx-tabs_1_9_35.entry.js} +4 -4
- package/dist/esm/{tttx-textarea_1_9_33.entry.js → tttx-textarea_1_9_35.entry.js} +2 -2
- package/dist/esm/{tttx-toggle_1_9_33.entry.js → tttx-toggle_1_9_35.entry.js} +1 -1
- package/dist/esm/{tttx-tree-view_1_9_33.entry.js → tttx-tree-view_1_9_35.entry.js} +3 -3
- package/dist/esm/tttx.js +1 -1
- package/dist/tttx/p-09682d72.entry.js +1 -0
- 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-23f45005.entry.js +1 -1
- package/dist/tttx/{p-de6e8250.entry.js → 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-b7347352.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-comments/tttx-comments.d.ts +3 -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 +369 -369
- package/package.json +1 -1
- package/dist/cjs/tttx-comments_1_9_33.cjs.entry.js +0 -113
- package/dist/components/tttx-checkbox-group-caption_1_9_33.d.ts +0 -11
- package/dist/components/tttx-checkbox-group-heading_1_9_33.d.ts +0 -11
- package/dist/components/tttx-checkbox-group_1_9_33.d.ts +0 -11
- package/dist/components/tttx-comments_1_9_33.js +0 -139
- package/dist/components/tttx-data-pattern_1_9_33.d.ts +0 -11
- package/dist/components/tttx-dialog-box_1_9_33.d.ts +0 -11
- package/dist/components/tttx-expander_1_9_33.d.ts +0 -11
- package/dist/components/tttx-keyvalue-block_1_9_33.d.ts +0 -11
- package/dist/components/tttx-loading-spinner_1_9_33.d.ts +0 -11
- package/dist/components/tttx-multiselect-box_1_9_33.d.ts +0 -11
- package/dist/components/tttx-percentage-bar_1_9_33.d.ts +0 -11
- package/dist/components/tttx-select-box_1_9_33.d.ts +0 -11
- package/dist/components/tttx-sorter_1_9_33.d.ts +0 -11
- package/dist/components/tttx-standalone-input_1_9_33.d.ts +0 -11
- package/dist/components/tttx-textarea_1_9_33.d.ts +0 -11
- package/dist/components/tttx-toggle_1_9_33.d.ts +0 -11
- package/dist/components/tttx-toolbar_1_9_33.d.ts +0 -11
- package/dist/components/tttx-tree-view_1_9_33.d.ts +0 -11
- package/dist/esm/tttx-comments_1_9_33.entry.js +0 -109
- package/dist/tttx/p-fd94fc07.entry.js +0 -1
package/package.json
CHANGED
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
const index = require('./index-fdc30724.js');
|
|
6
|
-
|
|
7
|
-
const tttxCommentsCss = "*{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}#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}";
|
|
8
|
-
|
|
9
|
-
const TttxComments = class {
|
|
10
|
-
constructor(hostRef) {
|
|
11
|
-
index.registerInstance(this, hostRef);
|
|
12
|
-
this.commentAdded = index.createEvent(this, "commentAdded", 6);
|
|
13
|
-
this.requestFileUpload = index.createEvent(this, "requestFileUpload", 6);
|
|
14
|
-
this.requestFileDownload = index.createEvent(this, "requestFileDownload", 6);
|
|
15
|
-
this.currentuser = undefined;
|
|
16
|
-
this.comments = undefined;
|
|
17
|
-
this.disableFile = false;
|
|
18
|
-
this._comments = undefined;
|
|
19
|
-
}
|
|
20
|
-
componentWillLoad() {
|
|
21
|
-
// dynamic constructor: any props can be added later
|
|
22
|
-
this.onCommentsChange();
|
|
23
|
-
}
|
|
24
|
-
onCommentsChange() {
|
|
25
|
-
if (!this.comments) {
|
|
26
|
-
return;
|
|
27
|
-
}
|
|
28
|
-
if (typeof this.comments === 'string') {
|
|
29
|
-
this._comments = JSON.parse(this.comments);
|
|
30
|
-
}
|
|
31
|
-
else {
|
|
32
|
-
this._comments = this.comments;
|
|
33
|
-
}
|
|
34
|
-
this.scrollToBottom();
|
|
35
|
-
}
|
|
36
|
-
renderCommentBubble() {
|
|
37
|
-
var _a;
|
|
38
|
-
return (index.h(index.Fragment, null, (_a = this._comments) === null || _a === void 0 ? void 0 : _a.map((comment, index$1) => {
|
|
39
|
-
var _a;
|
|
40
|
-
const isCurrentUser = comment.createdByFullName === this.currentuser;
|
|
41
|
-
const bubbleClass = `commentBubble ${isCurrentUser ? 'right' : 'left'}`;
|
|
42
|
-
const isLastComment = index$1 === this._comments.length - 1;
|
|
43
|
-
const topComment = index$1 === 0 ? { marginTop: '10px' } : {};
|
|
44
|
-
return (index.h("div", { class: bubbleClass, key: comment.id, style: topComment }, index.h("div", { class: "bubbleHeader" }, index.h("span", { class: "commentName" }, comment.createdByFullName), ((_a = comment.metadata) === null || _a === void 0 ? void 0 : _a.contextString) && (index.h("span", { class: "commentContext" }, "(", comment.metadata.contextString, ")"))), index.h("div", { class: "bubbleText" }, this.renderCommentInner(comment)), index.h("div", { class: "bubbleFooter" }, index.h("span", { class: "commentDate" }, new Date(comment.createdAt).toLocaleString())), !isLastComment && index.h("hr", { class: "commentDivider" })));
|
|
45
|
-
})));
|
|
46
|
-
}
|
|
47
|
-
renderCommentInner(comment) {
|
|
48
|
-
if (comment.metadata && comment.metadata.type === 0) {
|
|
49
|
-
switch (comment.metadata.type) {
|
|
50
|
-
case ECommentType.FILE:
|
|
51
|
-
return this.renderFileLink(comment.metadata);
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
else {
|
|
55
|
-
return comment.text;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
renderFileLink(metadata) {
|
|
59
|
-
return index.h("button", { class: "linkButton", type: "button", value: metadata.key, onClick: this.onFileDownloadRequest.bind(this) }, metadata.filename);
|
|
60
|
-
}
|
|
61
|
-
onFormSubmit(event) {
|
|
62
|
-
event.preventDefault();
|
|
63
|
-
const fd = new FormData(event.currentTarget);
|
|
64
|
-
let text;
|
|
65
|
-
for (const data of fd.entries()) {
|
|
66
|
-
text = data[1];
|
|
67
|
-
}
|
|
68
|
-
event.currentTarget.reset();
|
|
69
|
-
const newComment = {
|
|
70
|
-
id: undefined,
|
|
71
|
-
text: text,
|
|
72
|
-
createdAt: +(new Date()),
|
|
73
|
-
createdByFullName: this.currentuser,
|
|
74
|
-
createdById: undefined
|
|
75
|
-
};
|
|
76
|
-
this._comments = [...this._comments, newComment];
|
|
77
|
-
this.commentAdded.emit(newComment);
|
|
78
|
-
this.scrollToBottom();
|
|
79
|
-
}
|
|
80
|
-
scrollToBottom() {
|
|
81
|
-
setTimeout(() => this._scrollContainer.scrollTo({ top: this._scrollContainer.scrollHeight }));
|
|
82
|
-
}
|
|
83
|
-
onFileUploadRequest() {
|
|
84
|
-
this.requestFileUpload.emit();
|
|
85
|
-
}
|
|
86
|
-
onFileDownloadRequest(event) {
|
|
87
|
-
this.requestFileDownload.emit(event.currentTarget.value);
|
|
88
|
-
}
|
|
89
|
-
async addDummyComment(text, createdByFullName) {
|
|
90
|
-
const newComment = {
|
|
91
|
-
id: undefined,
|
|
92
|
-
text: text,
|
|
93
|
-
createdAt: +(new Date()),
|
|
94
|
-
createdByFullName: createdByFullName !== null && createdByFullName !== void 0 ? createdByFullName : this.currentuser,
|
|
95
|
-
createdById: undefined
|
|
96
|
-
};
|
|
97
|
-
this._comments = [...this._comments, newComment];
|
|
98
|
-
this.scrollToBottom();
|
|
99
|
-
}
|
|
100
|
-
render() {
|
|
101
|
-
return (index.h(index.Host, null, index.h("article", { id: "comment-container" }, index.h("section", { id: "comment-bubbles-section" }, index.h("div", { id: "scroll-container", ref: el => this._scrollContainer = el }, this.renderCommentBubble())), index.h("section", { id: "input-section" }, index.h("form", { onSubmit: this.onFormSubmit.bind(this) }, index.h("fieldset", null, index.h("input", { type: "text", name: "commentText", required: true, maxlength: "5000", placeholder: "Enter comment" })), index.h("fieldset", null, !this.disableFile && (index.h("button", { id: "attach-file", type: "button", value: "File", onClick: this.onFileUploadRequest.bind(this) }, index.h("tttx-icon_1_9_33", { color: "black", icon: "attach_file" }))), index.h("input", { type: "submit", value: "Add Comment" })))))));
|
|
102
|
-
}
|
|
103
|
-
static get watchers() { return {
|
|
104
|
-
"comments": ["onCommentsChange"]
|
|
105
|
-
}; }
|
|
106
|
-
};
|
|
107
|
-
var ECommentType;
|
|
108
|
-
(function (ECommentType) {
|
|
109
|
-
ECommentType[ECommentType["FILE"] = 0] = "FILE";
|
|
110
|
-
})(ECommentType || (ECommentType = {}));
|
|
111
|
-
TttxComments.style = tttxCommentsCss;
|
|
112
|
-
|
|
113
|
-
exports.tttx_comments_1_9_33 = TttxComments;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Components, JSX } from "../types/components";
|
|
2
|
-
|
|
3
|
-
interface TttxCheckboxGroupCaption_1_9_33 extends Components.TttxCheckboxGroupCaption_1_9_33, HTMLElement {}
|
|
4
|
-
export const TttxCheckboxGroupCaption_1_9_33: {
|
|
5
|
-
prototype: TttxCheckboxGroupCaption_1_9_33;
|
|
6
|
-
new (): TttxCheckboxGroupCaption_1_9_33;
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* Used to define this component and all nested components recursively.
|
|
10
|
-
*/
|
|
11
|
-
export const defineCustomElement: () => void;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Components, JSX } from "../types/components";
|
|
2
|
-
|
|
3
|
-
interface TttxCheckboxGroupHeading_1_9_33 extends Components.TttxCheckboxGroupHeading_1_9_33, HTMLElement {}
|
|
4
|
-
export const TttxCheckboxGroupHeading_1_9_33: {
|
|
5
|
-
prototype: TttxCheckboxGroupHeading_1_9_33;
|
|
6
|
-
new (): TttxCheckboxGroupHeading_1_9_33;
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* Used to define this component and all nested components recursively.
|
|
10
|
-
*/
|
|
11
|
-
export const defineCustomElement: () => void;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Components, JSX } from "../types/components";
|
|
2
|
-
|
|
3
|
-
interface TttxCheckboxGroup_1_9_33 extends Components.TttxCheckboxGroup_1_9_33, HTMLElement {}
|
|
4
|
-
export const TttxCheckboxGroup_1_9_33: {
|
|
5
|
-
prototype: TttxCheckboxGroup_1_9_33;
|
|
6
|
-
new (): TttxCheckboxGroup_1_9_33;
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* Used to define this component and all nested components recursively.
|
|
10
|
-
*/
|
|
11
|
-
export const defineCustomElement: () => void;
|
|
@@ -1,139 +0,0 @@
|
|
|
1
|
-
import { proxyCustomElement, HTMLElement, createEvent, h, Fragment, Host } from '@stencil/core/internal/client';
|
|
2
|
-
import { d as defineCustomElement$2 } from './tttx-icon.js';
|
|
3
|
-
|
|
4
|
-
const tttxCommentsCss = "*{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}#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}";
|
|
5
|
-
|
|
6
|
-
const TttxComments = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
7
|
-
constructor() {
|
|
8
|
-
super();
|
|
9
|
-
this.__registerHost();
|
|
10
|
-
this.__attachShadow();
|
|
11
|
-
this.commentAdded = createEvent(this, "commentAdded", 6);
|
|
12
|
-
this.requestFileUpload = createEvent(this, "requestFileUpload", 6);
|
|
13
|
-
this.requestFileDownload = createEvent(this, "requestFileDownload", 6);
|
|
14
|
-
this.currentuser = undefined;
|
|
15
|
-
this.comments = undefined;
|
|
16
|
-
this.disableFile = false;
|
|
17
|
-
this._comments = undefined;
|
|
18
|
-
}
|
|
19
|
-
componentWillLoad() {
|
|
20
|
-
// dynamic constructor: any props can be added later
|
|
21
|
-
this.onCommentsChange();
|
|
22
|
-
}
|
|
23
|
-
onCommentsChange() {
|
|
24
|
-
if (!this.comments) {
|
|
25
|
-
return;
|
|
26
|
-
}
|
|
27
|
-
if (typeof this.comments === 'string') {
|
|
28
|
-
this._comments = JSON.parse(this.comments);
|
|
29
|
-
}
|
|
30
|
-
else {
|
|
31
|
-
this._comments = this.comments;
|
|
32
|
-
}
|
|
33
|
-
this.scrollToBottom();
|
|
34
|
-
}
|
|
35
|
-
renderCommentBubble() {
|
|
36
|
-
var _a;
|
|
37
|
-
return (h(Fragment, null, (_a = this._comments) === null || _a === void 0 ? void 0 : _a.map((comment, index) => {
|
|
38
|
-
var _a;
|
|
39
|
-
const isCurrentUser = comment.createdByFullName === this.currentuser;
|
|
40
|
-
const bubbleClass = `commentBubble ${isCurrentUser ? 'right' : 'left'}`;
|
|
41
|
-
const isLastComment = index === this._comments.length - 1;
|
|
42
|
-
const topComment = index === 0 ? { marginTop: '10px' } : {};
|
|
43
|
-
return (h("div", { class: bubbleClass, key: comment.id, style: topComment }, h("div", { class: "bubbleHeader" }, h("span", { class: "commentName" }, comment.createdByFullName), ((_a = comment.metadata) === null || _a === void 0 ? void 0 : _a.contextString) && (h("span", { class: "commentContext" }, "(", comment.metadata.contextString, ")"))), h("div", { class: "bubbleText" }, this.renderCommentInner(comment)), h("div", { class: "bubbleFooter" }, h("span", { class: "commentDate" }, new Date(comment.createdAt).toLocaleString())), !isLastComment && h("hr", { class: "commentDivider" })));
|
|
44
|
-
})));
|
|
45
|
-
}
|
|
46
|
-
renderCommentInner(comment) {
|
|
47
|
-
if (comment.metadata && comment.metadata.type === 0) {
|
|
48
|
-
switch (comment.metadata.type) {
|
|
49
|
-
case ECommentType.FILE:
|
|
50
|
-
return this.renderFileLink(comment.metadata);
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
else {
|
|
54
|
-
return comment.text;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
renderFileLink(metadata) {
|
|
58
|
-
return h("button", { class: "linkButton", type: "button", value: metadata.key, onClick: this.onFileDownloadRequest.bind(this) }, metadata.filename);
|
|
59
|
-
}
|
|
60
|
-
onFormSubmit(event) {
|
|
61
|
-
event.preventDefault();
|
|
62
|
-
const fd = new FormData(event.currentTarget);
|
|
63
|
-
let text;
|
|
64
|
-
for (const data of fd.entries()) {
|
|
65
|
-
text = data[1];
|
|
66
|
-
}
|
|
67
|
-
event.currentTarget.reset();
|
|
68
|
-
const newComment = {
|
|
69
|
-
id: undefined,
|
|
70
|
-
text: text,
|
|
71
|
-
createdAt: +(new Date()),
|
|
72
|
-
createdByFullName: this.currentuser,
|
|
73
|
-
createdById: undefined
|
|
74
|
-
};
|
|
75
|
-
this._comments = [...this._comments, newComment];
|
|
76
|
-
this.commentAdded.emit(newComment);
|
|
77
|
-
this.scrollToBottom();
|
|
78
|
-
}
|
|
79
|
-
scrollToBottom() {
|
|
80
|
-
setTimeout(() => this._scrollContainer.scrollTo({ top: this._scrollContainer.scrollHeight }));
|
|
81
|
-
}
|
|
82
|
-
onFileUploadRequest() {
|
|
83
|
-
this.requestFileUpload.emit();
|
|
84
|
-
}
|
|
85
|
-
onFileDownloadRequest(event) {
|
|
86
|
-
this.requestFileDownload.emit(event.currentTarget.value);
|
|
87
|
-
}
|
|
88
|
-
async addDummyComment(text, createdByFullName) {
|
|
89
|
-
const newComment = {
|
|
90
|
-
id: undefined,
|
|
91
|
-
text: text,
|
|
92
|
-
createdAt: +(new Date()),
|
|
93
|
-
createdByFullName: createdByFullName !== null && createdByFullName !== void 0 ? createdByFullName : this.currentuser,
|
|
94
|
-
createdById: undefined
|
|
95
|
-
};
|
|
96
|
-
this._comments = [...this._comments, newComment];
|
|
97
|
-
this.scrollToBottom();
|
|
98
|
-
}
|
|
99
|
-
render() {
|
|
100
|
-
return (h(Host, null, h("article", { id: "comment-container" }, h("section", { id: "comment-bubbles-section" }, h("div", { id: "scroll-container", ref: el => this._scrollContainer = el }, this.renderCommentBubble())), h("section", { id: "input-section" }, h("form", { onSubmit: this.onFormSubmit.bind(this) }, h("fieldset", null, h("input", { type: "text", name: "commentText", required: true, maxlength: "5000", placeholder: "Enter comment" })), h("fieldset", null, !this.disableFile && (h("button", { id: "attach-file", type: "button", value: "File", onClick: this.onFileUploadRequest.bind(this) }, h("tttx-icon_1_9_33", { color: "black", icon: "attach_file" }))), h("input", { type: "submit", value: "Add Comment" })))))));
|
|
101
|
-
}
|
|
102
|
-
static get watchers() { return {
|
|
103
|
-
"comments": ["onCommentsChange"]
|
|
104
|
-
}; }
|
|
105
|
-
static get style() { return tttxCommentsCss; }
|
|
106
|
-
}, [1, "tttx-comments_1_9_33", {
|
|
107
|
-
"currentuser": [1],
|
|
108
|
-
"comments": [1],
|
|
109
|
-
"disableFile": [4, "disable-file"],
|
|
110
|
-
"_comments": [32],
|
|
111
|
-
"addDummyComment": [64]
|
|
112
|
-
}]);
|
|
113
|
-
var ECommentType;
|
|
114
|
-
(function (ECommentType) {
|
|
115
|
-
ECommentType[ECommentType["FILE"] = 0] = "FILE";
|
|
116
|
-
})(ECommentType || (ECommentType = {}));
|
|
117
|
-
function defineCustomElement$1() {
|
|
118
|
-
if (typeof customElements === "undefined") {
|
|
119
|
-
return;
|
|
120
|
-
}
|
|
121
|
-
const components = ["tttx-comments_1_9_33", "tttx-icon_1_9_33"];
|
|
122
|
-
components.forEach(tagName => { switch (tagName) {
|
|
123
|
-
case "tttx-comments_1_9_33":
|
|
124
|
-
if (!customElements.get(tagName)) {
|
|
125
|
-
customElements.define(tagName, TttxComments);
|
|
126
|
-
}
|
|
127
|
-
break;
|
|
128
|
-
case "tttx-icon_1_9_33":
|
|
129
|
-
if (!customElements.get(tagName)) {
|
|
130
|
-
defineCustomElement$2();
|
|
131
|
-
}
|
|
132
|
-
break;
|
|
133
|
-
} });
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
const TttxComments_1_9_33 = TttxComments;
|
|
137
|
-
const defineCustomElement = defineCustomElement$1;
|
|
138
|
-
|
|
139
|
-
export { TttxComments_1_9_33, defineCustomElement };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Components, JSX } from "../types/components";
|
|
2
|
-
|
|
3
|
-
interface TttxDataPattern_1_9_33 extends Components.TttxDataPattern_1_9_33, HTMLElement {}
|
|
4
|
-
export const TttxDataPattern_1_9_33: {
|
|
5
|
-
prototype: TttxDataPattern_1_9_33;
|
|
6
|
-
new (): TttxDataPattern_1_9_33;
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* Used to define this component and all nested components recursively.
|
|
10
|
-
*/
|
|
11
|
-
export const defineCustomElement: () => void;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Components, JSX } from "../types/components";
|
|
2
|
-
|
|
3
|
-
interface TttxDialogBox_1_9_33 extends Components.TttxDialogBox_1_9_33, HTMLElement {}
|
|
4
|
-
export const TttxDialogBox_1_9_33: {
|
|
5
|
-
prototype: TttxDialogBox_1_9_33;
|
|
6
|
-
new (): TttxDialogBox_1_9_33;
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* Used to define this component and all nested components recursively.
|
|
10
|
-
*/
|
|
11
|
-
export const defineCustomElement: () => void;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Components, JSX } from "../types/components";
|
|
2
|
-
|
|
3
|
-
interface TttxExpander_1_9_33 extends Components.TttxExpander_1_9_33, HTMLElement {}
|
|
4
|
-
export const TttxExpander_1_9_33: {
|
|
5
|
-
prototype: TttxExpander_1_9_33;
|
|
6
|
-
new (): TttxExpander_1_9_33;
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* Used to define this component and all nested components recursively.
|
|
10
|
-
*/
|
|
11
|
-
export const defineCustomElement: () => void;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Components, JSX } from "../types/components";
|
|
2
|
-
|
|
3
|
-
interface TttxKeyvalueBlock_1_9_33 extends Components.TttxKeyvalueBlock_1_9_33, HTMLElement {}
|
|
4
|
-
export const TttxKeyvalueBlock_1_9_33: {
|
|
5
|
-
prototype: TttxKeyvalueBlock_1_9_33;
|
|
6
|
-
new (): TttxKeyvalueBlock_1_9_33;
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* Used to define this component and all nested components recursively.
|
|
10
|
-
*/
|
|
11
|
-
export const defineCustomElement: () => void;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Components, JSX } from "../types/components";
|
|
2
|
-
|
|
3
|
-
interface TttxLoadingSpinner_1_9_33 extends Components.TttxLoadingSpinner_1_9_33, HTMLElement {}
|
|
4
|
-
export const TttxLoadingSpinner_1_9_33: {
|
|
5
|
-
prototype: TttxLoadingSpinner_1_9_33;
|
|
6
|
-
new (): TttxLoadingSpinner_1_9_33;
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* Used to define this component and all nested components recursively.
|
|
10
|
-
*/
|
|
11
|
-
export const defineCustomElement: () => void;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Components, JSX } from "../types/components";
|
|
2
|
-
|
|
3
|
-
interface TttxMultiselectBox_1_9_33 extends Components.TttxMultiselectBox_1_9_33, HTMLElement {}
|
|
4
|
-
export const TttxMultiselectBox_1_9_33: {
|
|
5
|
-
prototype: TttxMultiselectBox_1_9_33;
|
|
6
|
-
new (): TttxMultiselectBox_1_9_33;
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* Used to define this component and all nested components recursively.
|
|
10
|
-
*/
|
|
11
|
-
export const defineCustomElement: () => void;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Components, JSX } from "../types/components";
|
|
2
|
-
|
|
3
|
-
interface TttxPercentageBar_1_9_33 extends Components.TttxPercentageBar_1_9_33, HTMLElement {}
|
|
4
|
-
export const TttxPercentageBar_1_9_33: {
|
|
5
|
-
prototype: TttxPercentageBar_1_9_33;
|
|
6
|
-
new (): TttxPercentageBar_1_9_33;
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* Used to define this component and all nested components recursively.
|
|
10
|
-
*/
|
|
11
|
-
export const defineCustomElement: () => void;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Components, JSX } from "../types/components";
|
|
2
|
-
|
|
3
|
-
interface TttxSelectBox_1_9_33 extends Components.TttxSelectBox_1_9_33, HTMLElement {}
|
|
4
|
-
export const TttxSelectBox_1_9_33: {
|
|
5
|
-
prototype: TttxSelectBox_1_9_33;
|
|
6
|
-
new (): TttxSelectBox_1_9_33;
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* Used to define this component and all nested components recursively.
|
|
10
|
-
*/
|
|
11
|
-
export const defineCustomElement: () => void;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Components, JSX } from "../types/components";
|
|
2
|
-
|
|
3
|
-
interface TttxSorter_1_9_33 extends Components.TttxSorter_1_9_33, HTMLElement {}
|
|
4
|
-
export const TttxSorter_1_9_33: {
|
|
5
|
-
prototype: TttxSorter_1_9_33;
|
|
6
|
-
new (): TttxSorter_1_9_33;
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* Used to define this component and all nested components recursively.
|
|
10
|
-
*/
|
|
11
|
-
export const defineCustomElement: () => void;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Components, JSX } from "../types/components";
|
|
2
|
-
|
|
3
|
-
interface TttxStandaloneInput_1_9_33 extends Components.TttxStandaloneInput_1_9_33, HTMLElement {}
|
|
4
|
-
export const TttxStandaloneInput_1_9_33: {
|
|
5
|
-
prototype: TttxStandaloneInput_1_9_33;
|
|
6
|
-
new (): TttxStandaloneInput_1_9_33;
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* Used to define this component and all nested components recursively.
|
|
10
|
-
*/
|
|
11
|
-
export const defineCustomElement: () => void;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Components, JSX } from "../types/components";
|
|
2
|
-
|
|
3
|
-
interface TttxTextarea_1_9_33 extends Components.TttxTextarea_1_9_33, HTMLElement {}
|
|
4
|
-
export const TttxTextarea_1_9_33: {
|
|
5
|
-
prototype: TttxTextarea_1_9_33;
|
|
6
|
-
new (): TttxTextarea_1_9_33;
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* Used to define this component and all nested components recursively.
|
|
10
|
-
*/
|
|
11
|
-
export const defineCustomElement: () => void;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Components, JSX } from "../types/components";
|
|
2
|
-
|
|
3
|
-
interface TttxToggle_1_9_33 extends Components.TttxToggle_1_9_33, HTMLElement {}
|
|
4
|
-
export const TttxToggle_1_9_33: {
|
|
5
|
-
prototype: TttxToggle_1_9_33;
|
|
6
|
-
new (): TttxToggle_1_9_33;
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* Used to define this component and all nested components recursively.
|
|
10
|
-
*/
|
|
11
|
-
export const defineCustomElement: () => void;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Components, JSX } from "../types/components";
|
|
2
|
-
|
|
3
|
-
interface TttxToolbar_1_9_33 extends Components.TttxToolbar_1_9_33, HTMLElement {}
|
|
4
|
-
export const TttxToolbar_1_9_33: {
|
|
5
|
-
prototype: TttxToolbar_1_9_33;
|
|
6
|
-
new (): TttxToolbar_1_9_33;
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* Used to define this component and all nested components recursively.
|
|
10
|
-
*/
|
|
11
|
-
export const defineCustomElement: () => void;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Components, JSX } from "../types/components";
|
|
2
|
-
|
|
3
|
-
interface TttxTreeView_1_9_33 extends Components.TttxTreeView_1_9_33, HTMLElement {}
|
|
4
|
-
export const TttxTreeView_1_9_33: {
|
|
5
|
-
prototype: TttxTreeView_1_9_33;
|
|
6
|
-
new (): TttxTreeView_1_9_33;
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* Used to define this component and all nested components recursively.
|
|
10
|
-
*/
|
|
11
|
-
export const defineCustomElement: () => void;
|
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, F as Fragment, H as Host } from './index-88bd2f60.js';
|
|
2
|
-
|
|
3
|
-
const tttxCommentsCss = "*{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}#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}";
|
|
4
|
-
|
|
5
|
-
const TttxComments = class {
|
|
6
|
-
constructor(hostRef) {
|
|
7
|
-
registerInstance(this, hostRef);
|
|
8
|
-
this.commentAdded = createEvent(this, "commentAdded", 6);
|
|
9
|
-
this.requestFileUpload = createEvent(this, "requestFileUpload", 6);
|
|
10
|
-
this.requestFileDownload = createEvent(this, "requestFileDownload", 6);
|
|
11
|
-
this.currentuser = undefined;
|
|
12
|
-
this.comments = undefined;
|
|
13
|
-
this.disableFile = false;
|
|
14
|
-
this._comments = undefined;
|
|
15
|
-
}
|
|
16
|
-
componentWillLoad() {
|
|
17
|
-
// dynamic constructor: any props can be added later
|
|
18
|
-
this.onCommentsChange();
|
|
19
|
-
}
|
|
20
|
-
onCommentsChange() {
|
|
21
|
-
if (!this.comments) {
|
|
22
|
-
return;
|
|
23
|
-
}
|
|
24
|
-
if (typeof this.comments === 'string') {
|
|
25
|
-
this._comments = JSON.parse(this.comments);
|
|
26
|
-
}
|
|
27
|
-
else {
|
|
28
|
-
this._comments = this.comments;
|
|
29
|
-
}
|
|
30
|
-
this.scrollToBottom();
|
|
31
|
-
}
|
|
32
|
-
renderCommentBubble() {
|
|
33
|
-
var _a;
|
|
34
|
-
return (h(Fragment, null, (_a = this._comments) === null || _a === void 0 ? void 0 : _a.map((comment, index) => {
|
|
35
|
-
var _a;
|
|
36
|
-
const isCurrentUser = comment.createdByFullName === this.currentuser;
|
|
37
|
-
const bubbleClass = `commentBubble ${isCurrentUser ? 'right' : 'left'}`;
|
|
38
|
-
const isLastComment = index === this._comments.length - 1;
|
|
39
|
-
const topComment = index === 0 ? { marginTop: '10px' } : {};
|
|
40
|
-
return (h("div", { class: bubbleClass, key: comment.id, style: topComment }, h("div", { class: "bubbleHeader" }, h("span", { class: "commentName" }, comment.createdByFullName), ((_a = comment.metadata) === null || _a === void 0 ? void 0 : _a.contextString) && (h("span", { class: "commentContext" }, "(", comment.metadata.contextString, ")"))), h("div", { class: "bubbleText" }, this.renderCommentInner(comment)), h("div", { class: "bubbleFooter" }, h("span", { class: "commentDate" }, new Date(comment.createdAt).toLocaleString())), !isLastComment && h("hr", { class: "commentDivider" })));
|
|
41
|
-
})));
|
|
42
|
-
}
|
|
43
|
-
renderCommentInner(comment) {
|
|
44
|
-
if (comment.metadata && comment.metadata.type === 0) {
|
|
45
|
-
switch (comment.metadata.type) {
|
|
46
|
-
case ECommentType.FILE:
|
|
47
|
-
return this.renderFileLink(comment.metadata);
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
else {
|
|
51
|
-
return comment.text;
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
renderFileLink(metadata) {
|
|
55
|
-
return h("button", { class: "linkButton", type: "button", value: metadata.key, onClick: this.onFileDownloadRequest.bind(this) }, metadata.filename);
|
|
56
|
-
}
|
|
57
|
-
onFormSubmit(event) {
|
|
58
|
-
event.preventDefault();
|
|
59
|
-
const fd = new FormData(event.currentTarget);
|
|
60
|
-
let text;
|
|
61
|
-
for (const data of fd.entries()) {
|
|
62
|
-
text = data[1];
|
|
63
|
-
}
|
|
64
|
-
event.currentTarget.reset();
|
|
65
|
-
const newComment = {
|
|
66
|
-
id: undefined,
|
|
67
|
-
text: text,
|
|
68
|
-
createdAt: +(new Date()),
|
|
69
|
-
createdByFullName: this.currentuser,
|
|
70
|
-
createdById: undefined
|
|
71
|
-
};
|
|
72
|
-
this._comments = [...this._comments, newComment];
|
|
73
|
-
this.commentAdded.emit(newComment);
|
|
74
|
-
this.scrollToBottom();
|
|
75
|
-
}
|
|
76
|
-
scrollToBottom() {
|
|
77
|
-
setTimeout(() => this._scrollContainer.scrollTo({ top: this._scrollContainer.scrollHeight }));
|
|
78
|
-
}
|
|
79
|
-
onFileUploadRequest() {
|
|
80
|
-
this.requestFileUpload.emit();
|
|
81
|
-
}
|
|
82
|
-
onFileDownloadRequest(event) {
|
|
83
|
-
this.requestFileDownload.emit(event.currentTarget.value);
|
|
84
|
-
}
|
|
85
|
-
async addDummyComment(text, createdByFullName) {
|
|
86
|
-
const newComment = {
|
|
87
|
-
id: undefined,
|
|
88
|
-
text: text,
|
|
89
|
-
createdAt: +(new Date()),
|
|
90
|
-
createdByFullName: createdByFullName !== null && createdByFullName !== void 0 ? createdByFullName : this.currentuser,
|
|
91
|
-
createdById: undefined
|
|
92
|
-
};
|
|
93
|
-
this._comments = [...this._comments, newComment];
|
|
94
|
-
this.scrollToBottom();
|
|
95
|
-
}
|
|
96
|
-
render() {
|
|
97
|
-
return (h(Host, null, h("article", { id: "comment-container" }, h("section", { id: "comment-bubbles-section" }, h("div", { id: "scroll-container", ref: el => this._scrollContainer = el }, this.renderCommentBubble())), h("section", { id: "input-section" }, h("form", { onSubmit: this.onFormSubmit.bind(this) }, h("fieldset", null, h("input", { type: "text", name: "commentText", required: true, maxlength: "5000", placeholder: "Enter comment" })), h("fieldset", null, !this.disableFile && (h("button", { id: "attach-file", type: "button", value: "File", onClick: this.onFileUploadRequest.bind(this) }, h("tttx-icon_1_9_33", { color: "black", icon: "attach_file" }))), h("input", { type: "submit", value: "Add Comment" })))))));
|
|
98
|
-
}
|
|
99
|
-
static get watchers() { return {
|
|
100
|
-
"comments": ["onCommentsChange"]
|
|
101
|
-
}; }
|
|
102
|
-
};
|
|
103
|
-
var ECommentType;
|
|
104
|
-
(function (ECommentType) {
|
|
105
|
-
ECommentType[ECommentType["FILE"] = 0] = "FILE";
|
|
106
|
-
})(ECommentType || (ECommentType = {}));
|
|
107
|
-
TttxComments.style = tttxCommentsCss;
|
|
108
|
-
|
|
109
|
-
export { TttxComments as tttx_comments_1_9_33 };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as e,h as i,F as n,H as o}from"./p-d490353a.js";const s=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.currentuser=void 0,this.comments=void 0,this.disableFile=!1,this._comments=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()}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:"5000",placeholder:"Enter comment"})),i("fieldset",null,!this.disableFile&&i("button",{id:"attach-file",type:"button",value:"File",onClick:this.onFileUploadRequest.bind(this)},i("tttx-icon_1_9_33",{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={})),s.style='*{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}#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}';export{s as tttx_comments_1_9_33}
|