@3t-transform/threeteeui 0.2.121 → 1.0.0
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.cjs.entry.js → tttx-button_localcomponent.cjs.entry.js} +2 -2
- package/dist/cjs/{tttx-checkbox-group-caption.cjs.entry.js → tttx-checkbox-group-caption_localcomponent.cjs.entry.js} +1 -1
- package/dist/cjs/{tttx-checkbox-group-heading.cjs.entry.js → tttx-checkbox-group-heading_localcomponent.cjs.entry.js} +1 -1
- package/dist/cjs/{tttx-checkbox-group.cjs.entry.js → tttx-checkbox-group_localcomponent.cjs.entry.js} +1 -1
- package/dist/cjs/{tttx-checkbox.cjs.entry.js → tttx-checkbox_localcomponent.cjs.entry.js} +2 -2
- package/dist/cjs/tttx-data-pattern_localcomponent.cjs.entry.js +23 -0
- package/dist/cjs/{tttx-dialog-box.cjs.entry.js → tttx-dialog-box_localcomponent.cjs.entry.js} +3 -3
- package/dist/cjs/{tttx-dialog.cjs.entry.js → tttx-dialog_localcomponent.cjs.entry.js} +2 -2
- package/dist/cjs/{tttx-expander.cjs.entry.js → tttx-expander_localcomponent.cjs.entry.js} +2 -2
- package/dist/cjs/{tttx-filter_4.cjs.entry.js → tttx-filter_localcomponent_4.cjs.entry.js} +9 -9
- package/dist/cjs/{tttx-form.cjs.entry.js → tttx-form_localcomponent.cjs.entry.js} +2 -8
- package/dist/cjs/{tttx-icon.cjs.entry.js → tttx-icon_localcomponent.cjs.entry.js} +1 -1
- package/dist/cjs/{tttx-keyvalue-block.cjs.entry.js → tttx-keyvalue-block_localcomponent.cjs.entry.js} +1 -1
- package/dist/cjs/{tttx-loading-spinner.cjs.entry.js → tttx-loading-spinner_localcomponent.cjs.entry.js} +1 -1
- package/dist/cjs/{tttx-multiselect-box.cjs.entry.js → tttx-multiselect-box_localcomponent.cjs.entry.js} +6 -6
- package/dist/cjs/{tttx-percentage-bar.cjs.entry.js → tttx-percentage-bar_localcomponent.cjs.entry.js} +2 -2
- package/dist/cjs/{tttx-qrcode.cjs.entry.js → tttx-qrcode_localcomponent.cjs.entry.js} +1 -1
- package/dist/cjs/{tttx-select-box.cjs.entry.js → tttx-select-box_localcomponent.cjs.entry.js} +3 -3
- package/dist/cjs/tttx-standalone-input_localcomponent.cjs.entry.js +94 -0
- package/dist/cjs/{tttx-tabs.cjs.entry.js → tttx-tabs_localcomponent.cjs.entry.js} +4 -4
- package/dist/cjs/{tttx-tag.cjs.entry.js → tttx-tag_localcomponent.cjs.entry.js} +1 -1
- package/dist/cjs/{tttx-textarea.cjs.entry.js → tttx-textarea_localcomponent.cjs.entry.js} +2 -2
- package/dist/cjs/{tttx-tree-view.cjs.entry.js → tttx-tree-view_localcomponent.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-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 +1 -1
- package/dist/collection/components/atoms/tttx-tag/tttx-tag.stories.js +6 -6
- package/dist/collection/components/molecules/tttx-checkbox-group/components/tttx-checkbox-group-caption.js +1 -1
- package/dist/collection/components/molecules/tttx-checkbox-group/components/tttx-checkbox-group-heading.js +1 -1
- package/dist/collection/components/molecules/tttx-checkbox-group/tttx-checkbox-group.js +1 -1
- package/dist/collection/components/molecules/tttx-checkbox-group/tttx-checkbox-group.stories.js +10 -10
- package/dist/collection/components/molecules/tttx-dialog/tttx-dialog.js +2 -2
- package/dist/collection/components/molecules/tttx-dialog/tttx-dialog.stories.js +6 -6
- package/dist/collection/components/molecules/tttx-dialog-box/tttx-dialog-box.js +3 -3
- package/dist/collection/components/molecules/tttx-dialog-box/tttx-dialog-box.stories.js +24 -24
- package/dist/collection/components/molecules/tttx-expander/tttx-expander.js +2 -2
- package/dist/collection/components/molecules/tttx-expander/tttx-expander.stories.js +9 -9
- package/dist/collection/components/molecules/tttx-filter/tttx-filter.js +3 -3
- package/dist/collection/components/molecules/tttx-filter/tttx-filter.stories.js +2 -2
- package/dist/collection/components/molecules/tttx-form/tttx-form.js +2 -14
- package/dist/collection/components/molecules/tttx-form/tttx-form.stories.js +5 -5
- package/dist/collection/components/molecules/tttx-list/tttx-list.js +3 -3
- package/dist/collection/components/molecules/tttx-list/tttx-list.stories.js +46 -46
- package/dist/collection/components/molecules/tttx-multiselect-box/tttx-multiselect-box.js +6 -6
- package/dist/collection/components/molecules/tttx-multiselect-box/tttx-multiselect-box.stories.js +33 -33
- package/dist/collection/components/molecules/tttx-select-box/tttx-select-box.js +3 -3
- package/dist/collection/components/molecules/tttx-select-box/tttx-select-box.stories.js +16 -16
- package/dist/collection/components/molecules/tttx-sorter/tttx-sorter.js +2 -2
- package/dist/collection/components/molecules/tttx-sorter/tttx-sorter.stories.js +1 -1
- package/dist/collection/components/molecules/tttx-standalone-input/tttx-standalone-input.js +4 -4
- package/dist/collection/components/molecules/tttx-standalone-input/tttx-standalone-input.stories.js +1 -1
- package/dist/collection/components/molecules/tttx-tabs/tttx-tabs.js +3 -3
- package/dist/collection/components/molecules/tttx-tabs/tttx-tabs.stories.js +4 -4
- package/dist/collection/components/molecules/tttx-textarea/tttx-textarea.js +3 -3
- package/dist/collection/components/molecules/tttx-textarea/tttx-textarea.stories.js +1 -1
- package/dist/collection/components/molecules/tttx-toolbar/tttx-toolbar.js +1 -1
- package/dist/collection/components/molecules/tttx-toolbar/tttx-toolbar.stories.js +37 -37
- package/dist/collection/components/molecules/tttx-tree-view/tttx-tree-view.js +3 -3
- package/dist/collection/components/molecules/tttx-tree-view/tttx-tree-view.stories.js +8 -8
- package/dist/collection/components/organisms/tttx-data-pattern/tttx-data-pattern.js +2 -2
- package/dist/collection/components/organisms/tttx-data-pattern/tttx-data-pattern.stories.js +5 -5
- package/dist/components/index.d.ts +26 -26
- package/dist/components/index.js +26 -26
- package/dist/components/tttx-button.js +57 -4
- package/dist/components/{tttx-data-pattern.d.ts → tttx-button_localcomponent.d.ts} +4 -4
- package/dist/components/tttx-button_localcomponent.js +6 -0
- package/dist/components/tttx-checkbox-group-caption_localcomponent.d.ts +11 -0
- package/dist/components/{tttx-checkbox-group-caption.js → tttx-checkbox-group-caption_localcomponent.js} +7 -7
- package/dist/components/tttx-checkbox-group-heading_localcomponent.d.ts +11 -0
- package/dist/components/{tttx-checkbox-group-heading.js → tttx-checkbox-group-heading_localcomponent.js} +7 -7
- package/dist/components/tttx-checkbox-group_localcomponent.d.ts +11 -0
- package/dist/components/{tttx-checkbox-group.js → tttx-checkbox-group_localcomponent.js} +7 -7
- package/dist/components/{tttx-checkbox-group.d.ts → tttx-checkbox_localcomponent.d.ts} +4 -4
- package/dist/components/{tttx-checkbox.js → tttx-checkbox_localcomponent.js} +10 -10
- package/dist/components/tttx-data-pattern_localcomponent.d.ts +11 -0
- package/dist/components/tttx-data-pattern_localcomponent.js +84 -0
- package/dist/components/tttx-dialog-box_localcomponent.d.ts +11 -0
- package/dist/components/{tttx-dialog-box.js → tttx-dialog-box_localcomponent.js} +13 -13
- package/dist/components/tttx-dialog_localcomponent.d.ts +11 -0
- package/dist/components/{tttx-dialog.js → tttx-dialog_localcomponent.js} +12 -12
- package/dist/components/tttx-expander_localcomponent.d.ts +11 -0
- package/dist/components/{tttx-expander.js → tttx-expander_localcomponent.js} +10 -10
- package/dist/components/tttx-filter.js +223 -4
- package/dist/components/tttx-filter_localcomponent.d.ts +11 -0
- package/dist/components/tttx-filter_localcomponent.js +6 -0
- package/dist/components/{tttx-button.d.ts → tttx-form_localcomponent.d.ts} +4 -4
- package/dist/components/{tttx-form.js → tttx-form_localcomponent.js} +14 -20
- package/dist/components/tttx-icon.js +38 -4
- package/dist/components/{tttx-checkbox.d.ts → tttx-icon_localcomponent.d.ts} +4 -4
- package/dist/components/tttx-icon_localcomponent.js +6 -0
- package/dist/components/tttx-keyvalue-block_localcomponent.d.ts +11 -0
- package/dist/components/{tttx-keyvalue-block.js → tttx-keyvalue-block_localcomponent.js} +7 -7
- package/dist/components/tttx-list.js +92 -4
- package/dist/components/{tttx-dialog.d.ts → tttx-list_localcomponent.d.ts} +4 -4
- package/dist/components/tttx-list_localcomponent.js +6 -0
- package/dist/components/tttx-loading-spinner_localcomponent.d.ts +11 -0
- package/dist/components/{tttx-loading-spinner.js → tttx-loading-spinner_localcomponent.js} +7 -7
- package/dist/components/tttx-multiselect-box_localcomponent.d.ts +11 -0
- package/dist/components/{tttx-multiselect-box.js → tttx-multiselect-box_localcomponent.js} +18 -18
- package/dist/components/tttx-percentage-bar_localcomponent.d.ts +11 -0
- package/dist/components/{tttx-percentage-bar.js → tttx-percentage-bar_localcomponent.js} +8 -8
- package/dist/components/tttx-qrcode_localcomponent.d.ts +11 -0
- package/dist/components/{tttx-qrcode.js → tttx-qrcode_localcomponent.js} +5 -5
- package/dist/components/tttx-select-box.js +169 -4
- package/dist/components/tttx-select-box_localcomponent.d.ts +11 -0
- package/dist/components/tttx-select-box_localcomponent.js +6 -0
- package/dist/components/tttx-sorter.js +142 -4
- package/dist/components/tttx-sorter_localcomponent.d.ts +11 -0
- package/dist/components/tttx-sorter_localcomponent.js +6 -0
- package/dist/components/tttx-standalone-input.js +141 -4
- package/dist/components/tttx-standalone-input_localcomponent.d.ts +11 -0
- package/dist/components/tttx-standalone-input_localcomponent.js +6 -0
- package/dist/components/{tttx-dialog-box.d.ts → tttx-tabs_localcomponent.d.ts} +4 -4
- package/dist/components/{tttx-tabs.js → tttx-tabs_localcomponent.js} +12 -12
- package/dist/components/{tttx-select-box.d.ts → tttx-tag_localcomponent.d.ts} +4 -4
- package/dist/components/{tttx-tag.js → tttx-tag_localcomponent.js} +7 -7
- package/dist/components/tttx-textarea_localcomponent.d.ts +11 -0
- package/dist/components/{tttx-textarea.js → tttx-textarea_localcomponent.js} +8 -8
- package/dist/components/tttx-toolbar.js +47 -4
- package/dist/components/{tttx-keyvalue-block.d.ts → tttx-toolbar_localcomponent.d.ts} +4 -4
- package/dist/components/tttx-toolbar_localcomponent.js +6 -0
- package/dist/components/tttx-tree-view_localcomponent.d.ts +11 -0
- package/dist/components/{tttx-tree-view.js → tttx-tree-view_localcomponent.js} +13 -13
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{tttx-button.entry.js → tttx-button_localcomponent.entry.js} +2 -2
- package/dist/esm/{tttx-checkbox-group-caption.entry.js → tttx-checkbox-group-caption_localcomponent.entry.js} +1 -1
- package/dist/esm/{tttx-checkbox-group-heading.entry.js → tttx-checkbox-group-heading_localcomponent.entry.js} +1 -1
- package/dist/esm/{tttx-checkbox-group.entry.js → tttx-checkbox-group_localcomponent.entry.js} +1 -1
- package/dist/esm/{tttx-checkbox.entry.js → tttx-checkbox_localcomponent.entry.js} +2 -2
- package/dist/esm/tttx-data-pattern_localcomponent.entry.js +19 -0
- package/dist/esm/{tttx-dialog-box.entry.js → tttx-dialog-box_localcomponent.entry.js} +3 -3
- package/dist/esm/{tttx-dialog.entry.js → tttx-dialog_localcomponent.entry.js} +2 -2
- package/dist/esm/{tttx-expander.entry.js → tttx-expander_localcomponent.entry.js} +2 -2
- package/dist/esm/{tttx-filter_4.entry.js → tttx-filter_localcomponent_4.entry.js} +6 -6
- package/dist/esm/{tttx-form.entry.js → tttx-form_localcomponent.entry.js} +2 -8
- package/dist/esm/{tttx-icon.entry.js → tttx-icon_localcomponent.entry.js} +1 -1
- package/dist/esm/{tttx-keyvalue-block.entry.js → tttx-keyvalue-block_localcomponent.entry.js} +1 -1
- package/dist/esm/{tttx-loading-spinner.entry.js → tttx-loading-spinner_localcomponent.entry.js} +1 -1
- package/dist/esm/{tttx-multiselect-box.entry.js → tttx-multiselect-box_localcomponent.entry.js} +6 -6
- package/dist/esm/{tttx-percentage-bar.entry.js → tttx-percentage-bar_localcomponent.entry.js} +2 -2
- package/dist/esm/{tttx-qrcode.entry.js → tttx-qrcode_localcomponent.entry.js} +1 -1
- package/dist/esm/{tttx-select-box.entry.js → tttx-select-box_localcomponent.entry.js} +3 -3
- package/dist/esm/tttx-standalone-input_localcomponent.entry.js +90 -0
- package/dist/esm/{tttx-tabs.entry.js → tttx-tabs_localcomponent.entry.js} +4 -4
- package/dist/esm/{tttx-tag.entry.js → tttx-tag_localcomponent.entry.js} +1 -1
- package/dist/esm/{tttx-textarea.entry.js → tttx-textarea_localcomponent.entry.js} +2 -2
- package/dist/esm/{tttx-tree-view.entry.js → tttx-tree-view_localcomponent.entry.js} +3 -3
- package/dist/esm/tttx.js +1 -1
- package/dist/tttx/{p-54cedeca.entry.js → p-05c242f0.entry.js} +1 -1
- package/dist/tttx/{p-bf48f423.entry.js → p-0e515960.entry.js} +1 -1
- package/dist/tttx/{p-02017641.entry.js → p-1e5ff5f8.entry.js} +1 -1
- package/dist/tttx/p-1f6cb3c3.entry.js +1 -0
- package/dist/tttx/p-23f45005.entry.js +1 -0
- package/dist/tttx/p-56c8c353.entry.js +1 -0
- package/dist/tttx/{p-065ad72e.entry.js → p-59c7b049.entry.js} +1 -1
- package/dist/tttx/p-5b3e1fae.entry.js +1 -0
- package/dist/tttx/p-63ad6fb7.entry.js +1 -0
- package/dist/tttx/p-6704ac94.entry.js +1 -0
- package/dist/tttx/p-6abfd043.entry.js +1 -0
- package/dist/tttx/p-72ede7d8.entry.js +1 -0
- package/dist/tttx/{p-06a0f85e.entry.js → p-796f699a.entry.js} +1 -1
- package/dist/tttx/p-7a7fb9b3.entry.js +1 -0
- package/dist/tttx/{p-30da2278.entry.js → p-87481935.entry.js} +1 -1
- package/dist/tttx/{p-d59980ee.entry.js → p-9434561e.entry.js} +1 -1
- package/dist/tttx/{p-866047c1.entry.js → p-a01e679a.entry.js} +1 -1
- package/dist/tttx/p-a8e76e78.entry.js +1 -0
- package/dist/tttx/{p-bdee8c29.entry.js → p-c170e3b8.entry.js} +1 -1
- package/dist/tttx/p-c3d6914a.entry.js +1 -0
- package/dist/tttx/p-ee358ce4.entry.js +1 -0
- package/dist/tttx/{p-e0ed9a93.entry.js → p-f374e293.entry.js} +1 -1
- package/dist/tttx/p-fe967031.entry.js +1 -0
- package/dist/tttx/tttx.esm.js +1 -1
- package/dist/types/components/molecules/tttx-form/tttx-form.d.ts +0 -6
- 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 +318 -318
- package/package.json +3 -2
- package/dist/cjs/tttx-data-pattern.cjs.entry.js +0 -23
- package/dist/cjs/tttx-standalone-input.cjs.entry.js +0 -94
- package/dist/components/tttx-button2.js +0 -59
- package/dist/components/tttx-checkbox-group-caption.d.ts +0 -11
- package/dist/components/tttx-checkbox-group-heading.d.ts +0 -11
- package/dist/components/tttx-data-pattern.js +0 -84
- package/dist/components/tttx-expander.d.ts +0 -11
- package/dist/components/tttx-filter.d.ts +0 -11
- package/dist/components/tttx-filter2.js +0 -225
- package/dist/components/tttx-form.d.ts +0 -11
- package/dist/components/tttx-icon.d.ts +0 -11
- package/dist/components/tttx-icon2.js +0 -40
- package/dist/components/tttx-list.d.ts +0 -11
- package/dist/components/tttx-list2.js +0 -94
- package/dist/components/tttx-loading-spinner.d.ts +0 -11
- package/dist/components/tttx-multiselect-box.d.ts +0 -11
- package/dist/components/tttx-percentage-bar.d.ts +0 -11
- package/dist/components/tttx-qrcode.d.ts +0 -11
- package/dist/components/tttx-select-box2.js +0 -171
- package/dist/components/tttx-sorter.d.ts +0 -11
- package/dist/components/tttx-sorter2.js +0 -144
- package/dist/components/tttx-standalone-input.d.ts +0 -11
- package/dist/components/tttx-standalone-input2.js +0 -143
- package/dist/components/tttx-tabs.d.ts +0 -11
- package/dist/components/tttx-tag.d.ts +0 -11
- package/dist/components/tttx-textarea.d.ts +0 -11
- package/dist/components/tttx-toolbar.d.ts +0 -11
- package/dist/components/tttx-toolbar2.js +0 -49
- package/dist/components/tttx-tree-view.d.ts +0 -11
- package/dist/esm/tttx-data-pattern.entry.js +0 -19
- package/dist/esm/tttx-standalone-input.entry.js +0 -90
- package/dist/tttx/p-0a1a9da5.entry.js +0 -1
- package/dist/tttx/p-0bd3d6cd.entry.js +0 -1
- package/dist/tttx/p-0d962a44.entry.js +0 -1
- package/dist/tttx/p-1ecf24cc.entry.js +0 -1
- package/dist/tttx/p-2f46fcbc.entry.js +0 -1
- package/dist/tttx/p-36f0dc1d.entry.js +0 -1
- package/dist/tttx/p-4e2bc070.entry.js +0 -1
- package/dist/tttx/p-706901da.entry.js +0 -1
- package/dist/tttx/p-71a8ab3d.entry.js +0 -1
- package/dist/tttx/p-872cd825.entry.js +0 -1
- package/dist/tttx/p-8fd1d664.entry.js +0 -1
- package/dist/tttx/p-c45c095c.entry.js +0 -1
- package/dist/tttx/p-d21cec88.entry.js +0 -1
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
2
|
+
import { d as defineCustomElement$8 } from './tttx-button.js';
|
|
3
|
+
import { d as defineCustomElement$7 } from './tttx-filter.js';
|
|
4
|
+
import { d as defineCustomElement$6 } from './tttx-icon.js';
|
|
5
|
+
import { d as defineCustomElement$5 } from './tttx-list.js';
|
|
6
|
+
import { d as defineCustomElement$4 } from './tttx-sorter.js';
|
|
7
|
+
import { d as defineCustomElement$3 } from './tttx-standalone-input.js';
|
|
8
|
+
import { d as defineCustomElement$2 } from './tttx-toolbar.js';
|
|
9
|
+
|
|
10
|
+
const tttxDataPatternCss = ":host{display:block}";
|
|
11
|
+
|
|
12
|
+
const TttxDataPattern = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
13
|
+
constructor() {
|
|
14
|
+
super();
|
|
15
|
+
this.__registerHost();
|
|
16
|
+
this.__attachShadow();
|
|
17
|
+
this.data = undefined;
|
|
18
|
+
this.sorteroptions = undefined;
|
|
19
|
+
this.filteroptions = undefined;
|
|
20
|
+
this.filterheader = 'Filter';
|
|
21
|
+
}
|
|
22
|
+
render() {
|
|
23
|
+
return (h(Host, null, h("div", { class: "container" }, h("tttx-toolbar_1_0_0", { border: true }, h("span", { slot: "before" }, h("tttx-sorter_1_0_0", { sorterKey: "data-pattern-list", fieldOptionsData: this.sorteroptions, defaultOption: "Sort by" }), h("tttx-filter_1_0_0", { "filter-options": JSON.stringify(this.filteroptions), showSelectAll: false, "show-option-icons": true, "filter-header": this.filterheader, "filter-key": "data-pattern-list" })), h("span", { slot: "after" }, h("tttx-standalone-input_1_0_0", { class: "qualifications-filter", showerrorbubble: false, inputicon: "search", inline: true, required: true, placeholder: "Search", type: "text", maxlength: 30 }))), h("tttx-toolbar_1_0_0", { border: false }, h("span", { slot: "before" }, h("tttx-button_1_0_0", { design: "primary", icon: "add" }, "Add"))), h("tttx-list_1_0_0", { data: this.data }))));
|
|
24
|
+
}
|
|
25
|
+
static get style() { return tttxDataPatternCss; }
|
|
26
|
+
}, [1, "tttx-data-pattern_1_0_0", {
|
|
27
|
+
"data": [1],
|
|
28
|
+
"sorteroptions": [1],
|
|
29
|
+
"filteroptions": [1],
|
|
30
|
+
"filterheader": [1]
|
|
31
|
+
}]);
|
|
32
|
+
function defineCustomElement$1() {
|
|
33
|
+
if (typeof customElements === "undefined") {
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
36
|
+
const components = ["tttx-data-pattern_1_0_0", "tttx-button_1_0_0", "tttx-filter_1_0_0", "tttx-icon_1_0_0", "tttx-list_1_0_0", "tttx-sorter_1_0_0", "tttx-standalone-input_1_0_0", "tttx-toolbar_1_0_0"];
|
|
37
|
+
components.forEach(tagName => { switch (tagName) {
|
|
38
|
+
case "tttx-data-pattern_1_0_0":
|
|
39
|
+
if (!customElements.get(tagName)) {
|
|
40
|
+
customElements.define(tagName, TttxDataPattern);
|
|
41
|
+
}
|
|
42
|
+
break;
|
|
43
|
+
case "tttx-button_1_0_0":
|
|
44
|
+
if (!customElements.get(tagName)) {
|
|
45
|
+
defineCustomElement$8();
|
|
46
|
+
}
|
|
47
|
+
break;
|
|
48
|
+
case "tttx-filter_1_0_0":
|
|
49
|
+
if (!customElements.get(tagName)) {
|
|
50
|
+
defineCustomElement$7();
|
|
51
|
+
}
|
|
52
|
+
break;
|
|
53
|
+
case "tttx-icon_1_0_0":
|
|
54
|
+
if (!customElements.get(tagName)) {
|
|
55
|
+
defineCustomElement$6();
|
|
56
|
+
}
|
|
57
|
+
break;
|
|
58
|
+
case "tttx-list_1_0_0":
|
|
59
|
+
if (!customElements.get(tagName)) {
|
|
60
|
+
defineCustomElement$5();
|
|
61
|
+
}
|
|
62
|
+
break;
|
|
63
|
+
case "tttx-sorter_1_0_0":
|
|
64
|
+
if (!customElements.get(tagName)) {
|
|
65
|
+
defineCustomElement$4();
|
|
66
|
+
}
|
|
67
|
+
break;
|
|
68
|
+
case "tttx-standalone-input_1_0_0":
|
|
69
|
+
if (!customElements.get(tagName)) {
|
|
70
|
+
defineCustomElement$3();
|
|
71
|
+
}
|
|
72
|
+
break;
|
|
73
|
+
case "tttx-toolbar_1_0_0":
|
|
74
|
+
if (!customElements.get(tagName)) {
|
|
75
|
+
defineCustomElement$2();
|
|
76
|
+
}
|
|
77
|
+
break;
|
|
78
|
+
} });
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
const TttxDataPattern_1_0_0 = TttxDataPattern;
|
|
82
|
+
const defineCustomElement = defineCustomElement$1;
|
|
83
|
+
|
|
84
|
+
export { TttxDataPattern_1_0_0, defineCustomElement };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface TttxDialogBox_1_0_0 extends Components.TttxDialogBox_1_0_0, HTMLElement {}
|
|
4
|
+
export const TttxDialogBox_1_0_0: {
|
|
5
|
+
prototype: TttxDialogBox_1_0_0;
|
|
6
|
+
new (): TttxDialogBox_1_0_0;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
|
|
2
2
|
import { p as purify, d as domSanitiserOptions } from './domsanitiser.options.js';
|
|
3
|
-
import { d as defineCustomElement$3 } from './tttx-
|
|
4
|
-
import { d as defineCustomElement$2 } from './tttx-
|
|
3
|
+
import { d as defineCustomElement$3 } from './tttx-button.js';
|
|
4
|
+
import { d as defineCustomElement$2 } from './tttx-icon.js';
|
|
5
5
|
|
|
6
6
|
const tttxDialogBoxCss = ".material-symbols-rounded{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}.material-symbols-rounded{font-family:\"Material Symbols Rounded\", sans-serif;font-weight:400;font-style:normal;font-size:24px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;color:#9e9e9e}h3{margin-block-start:0em;margin-block-end:0em}.dialog-box{background-color:#ffffff;border:1px solid #d5d5d5;border-radius:4px;box-shadow:0px 1px 5px #1111114d;padding:0}.overflow-visible{overflow-y:auto}.overflow-hidden{overflow:hidden}dialog::backdrop{background-color:#75757580}.dialog-box.small{width:400px;min-height:200px}.dialog-box.regular{width:600px;min-height:200px}.dialog-box.large{width:900px;min-height:200px}.dialog-box.mobile{max-width:424px;width:calc(100vw - 20px)}.dialog-box-clickable{cursor:pointer}.contents{display:flex;flex-direction:column;min-height:inherit}.dialog-box-padding{padding:8px 16px}.dialog-box-align-right{margin-left:auto;display:flex}.dialog-box-header-box{border-bottom:1px solid #d5d5d5;display:flex;flex-direction:row;height:36px;position:sticky;top:0;background:white;z-index:2}.dialog-box-header{display:flex;align-items:center;width:100%}.dialog-box-title{font-size:18;font-weight:500;font-family:\"Roboto\", serif}.dialog-box-icon{padding-right:8px;width:24px;height:24px}.dialog-box-icon-close{margin-left:auto;padding-top:3px;width:24px;height:24px}.dialog-box-content{font-size:16;font-weight:400;font-family:\"Roboto\", serif}.dialog-box-body{text-overflow:ellipsis}.dialog-box-body-box{padding:16px}.dialog-box-footer-box{display:flex;flex-direction:row;margin-top:auto;border-top:1px solid #d5d5d5;height:36px;position:sticky;bottom:0;background:white}.dialog-box-footer{display:flex;align-items:center;width:100%}.dialog-box-spacing-button{margin-right:8px}.dialog-box-header-box.info{border-bottom:1px solid #1479c6}.dialog-box-header-box.success{border-bottom:1px solid #a2bb31}.dialog-box-header-box.warning{border-bottom:1px solid #f59500}.dialog-box-header-box.critical{border-bottom:1px solid #dc0000}";
|
|
7
7
|
|
|
8
|
-
const TttxDialogBox
|
|
8
|
+
const TttxDialogBox = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
9
9
|
constructor() {
|
|
10
10
|
super();
|
|
11
11
|
this.__registerHost();
|
|
@@ -55,7 +55,7 @@ const TttxDialogBox$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
|
|
|
55
55
|
const iconColor = header.iconColor;
|
|
56
56
|
const iconEnabled = header.hasIcon ? true : false;
|
|
57
57
|
const closeEnabled = header.hasClose ? true : false;
|
|
58
|
-
return (h("div", { class: "dialog-box-header" }, iconEnabled && h("tttx-
|
|
58
|
+
return (h("div", { class: "dialog-box-header" }, iconEnabled && h("tttx-icon_1_0_0", { class: "dialog-box-icon", icon: iconName, color: iconColor }), h("h3", { class: "dialog-box-title" }, title), closeEnabled && (h("div", { class: "dialog-box-align-right close-button", onClick: () => this.onCloseClickHandler() }, h("tttx-icon_1_0_0", { class: "dialog-box-icon-close dialog-box-clickable", icon: "close", color: "black" })))));
|
|
59
59
|
}
|
|
60
60
|
renderContent(content) {
|
|
61
61
|
if (content.isCustomHtml) {
|
|
@@ -72,7 +72,7 @@ const TttxDialogBox$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
|
|
|
72
72
|
const button2Enabled = button.length > 1;
|
|
73
73
|
const button3Enabled = button.length == 3;
|
|
74
74
|
const isMobile = this.elementSize === 'mobile';
|
|
75
|
-
return (h("div", { class: "dialog-box-footer" }, h("div", { class: "dialog-box-align-right" }, button3Enabled && (h("tttx-
|
|
75
|
+
return (h("div", { class: "dialog-box-footer" }, h("div", { class: "dialog-box-align-right" }, button3Enabled && (h("tttx-button_1_0_0", { class: "dialog-box-spacing-button", onClick: () => this.onButtonClickHandler(3), design: button[2].type, notext: isMobile, icon: button[2].icon }, !isMobile && button[2].name)), button2Enabled && (h("tttx-button_1_0_0", { class: "dialog-box-spacing-button", onClick: () => this.onButtonClickHandler(2), design: button[1].type, icon: button[1].icon }, button[1].name)), button1Enabled && (h("tttx-button_1_0_0", { onClick: () => this.onButtonClickHandler(1), design: button[0].type, icon: button[0].icon }, button[0].name)))));
|
|
76
76
|
}
|
|
77
77
|
componentWillLoad() {
|
|
78
78
|
if (window.innerWidth < 698) {
|
|
@@ -95,7 +95,7 @@ const TttxDialogBox$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
|
|
|
95
95
|
}
|
|
96
96
|
get el() { return this; }
|
|
97
97
|
static get style() { return tttxDialogBoxCss; }
|
|
98
|
-
}, [1, "tttx-dialog-
|
|
98
|
+
}, [1, "tttx-dialog-box_1_0_0", {
|
|
99
99
|
"data": [1025],
|
|
100
100
|
"size": [1],
|
|
101
101
|
"open": [1028],
|
|
@@ -106,19 +106,19 @@ function defineCustomElement$1() {
|
|
|
106
106
|
if (typeof customElements === "undefined") {
|
|
107
107
|
return;
|
|
108
108
|
}
|
|
109
|
-
const components = ["tttx-dialog-
|
|
109
|
+
const components = ["tttx-dialog-box_1_0_0", "tttx-button_1_0_0", "tttx-icon_1_0_0"];
|
|
110
110
|
components.forEach(tagName => { switch (tagName) {
|
|
111
|
-
case "tttx-dialog-
|
|
111
|
+
case "tttx-dialog-box_1_0_0":
|
|
112
112
|
if (!customElements.get(tagName)) {
|
|
113
|
-
customElements.define(tagName, TttxDialogBox
|
|
113
|
+
customElements.define(tagName, TttxDialogBox);
|
|
114
114
|
}
|
|
115
115
|
break;
|
|
116
|
-
case "tttx-
|
|
116
|
+
case "tttx-button_1_0_0":
|
|
117
117
|
if (!customElements.get(tagName)) {
|
|
118
118
|
defineCustomElement$3();
|
|
119
119
|
}
|
|
120
120
|
break;
|
|
121
|
-
case "tttx-
|
|
121
|
+
case "tttx-icon_1_0_0":
|
|
122
122
|
if (!customElements.get(tagName)) {
|
|
123
123
|
defineCustomElement$2();
|
|
124
124
|
}
|
|
@@ -126,7 +126,7 @@ function defineCustomElement$1() {
|
|
|
126
126
|
} });
|
|
127
127
|
}
|
|
128
128
|
|
|
129
|
-
const
|
|
129
|
+
const TttxDialogBox_1_0_0 = TttxDialogBox;
|
|
130
130
|
const defineCustomElement = defineCustomElement$1;
|
|
131
131
|
|
|
132
|
-
export {
|
|
132
|
+
export { TttxDialogBox_1_0_0, defineCustomElement };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface TttxDialog_1_0_0 extends Components.TttxDialog_1_0_0, HTMLElement {}
|
|
4
|
+
export const TttxDialog_1_0_0: {
|
|
5
|
+
prototype: TttxDialog_1_0_0;
|
|
6
|
+
new (): TttxDialog_1_0_0;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
|
|
2
|
-
import { d as defineCustomElement$3 } from './tttx-
|
|
3
|
-
import { d as defineCustomElement$2 } from './tttx-
|
|
2
|
+
import { d as defineCustomElement$3 } from './tttx-button.js';
|
|
3
|
+
import { d as defineCustomElement$2 } from './tttx-icon.js';
|
|
4
4
|
|
|
5
5
|
const ICON_TYPES = {
|
|
6
6
|
critical: { iconName: 'report', iconColor: 'red' },
|
|
@@ -11,7 +11,7 @@ const ICON_TYPES = {
|
|
|
11
11
|
|
|
12
12
|
const tttxDialogCss = ".material-symbols-rounded{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}.material-symbols-rounded{font-family:\"Material Symbols Rounded\", sans-serif;font-weight:400;font-style:normal;font-size:24px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;color:#9e9e9e}h3{margin-block-start:0em;margin-block-end:0em}.dialog-box{background-color:#ffffff;border:1px solid #d5d5d5;border-radius:4px;box-shadow:0px 1px 5px #1111114d;padding:0}.dialog-box.small{width:400px;min-height:200px}.dialog-box.regular{width:600px;min-height:200px}.dialog-box.large{width:900px;min-height:200px}.dialog-box.mobile{max-width:424px;width:calc(100vw - 20px)}.overflow-visible{overflow-y:auto}.overflow-hidden{overflow:hidden}dialog::backdrop{background-color:#75757580}.clickable{cursor:pointer}.contents{display:flex;flex-direction:column;min-height:inherit}.padding{padding:8px 16px}.align-right{margin-left:auto;display:flex}.header{border-bottom:1px solid #d5d5d5;display:flex;flex-direction:row;align-items:center;height:36px;position:sticky;top:0;background:white;z-index:2}.title{font-size:18;font-weight:500;font-family:\"Roboto\", serif;text-overflow:ellipsis;overflow-x:hidden;white-space:nowrap}.icon{padding-right:8px;width:24px;height:24px}.icon-close{width:24px;height:24px}.body-content{font-size:16;font-weight:400;font-family:\"Roboto\", serif}.body{text-overflow:ellipsis;padding:16px}.footer{display:flex;flex-direction:row;margin-top:auto;border-top:1px solid #d5d5d5;height:36px;position:sticky;background:white;bottom:0}::slotted([slot=buttons]){display:flex;gap:8px}.header.info{border-bottom:1px solid #1479c6}.header.success{border-bottom:1px solid #a2bb31}.header.warning{border-bottom:1px solid #f59500}.header.critical{border-bottom:1px solid #dc0000}";
|
|
13
13
|
|
|
14
|
-
const TttxDialog
|
|
14
|
+
const TttxDialog = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
15
15
|
constructor() {
|
|
16
16
|
super();
|
|
17
17
|
this.__registerHost();
|
|
@@ -50,7 +50,7 @@ const TttxDialog$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
|
50
50
|
renderHeader() {
|
|
51
51
|
const iconEnabled = typeof this.type !== 'undefined';
|
|
52
52
|
const { iconName, iconColor } = this.headerIconDetails(iconEnabled);
|
|
53
|
-
return (h("div", { class: `padding header ${this.type || ''}` }, iconEnabled && h("tttx-
|
|
53
|
+
return (h("div", { class: `padding header ${this.type || ''}` }, iconEnabled && h("tttx-icon_1_0_0", { class: "icon", icon: iconName, color: iconColor }), h("h3", { class: "title", title: this.header }, this.header), this.closeEnabled && (h("tttx-button_1_0_0", { class: "align-right close-button", design: "borderless-circle", icon: "close", color: "black", notext: true, onClick: () => this.onCloseClickHandler() }))));
|
|
54
54
|
}
|
|
55
55
|
body() {
|
|
56
56
|
return (h("div", { class: `body ${!this.allowOverflow ? 'overflow-hidden' : ''}` }, h("span", { class: "body-content" }, h("slot", null))));
|
|
@@ -76,7 +76,7 @@ const TttxDialog$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
|
76
76
|
}
|
|
77
77
|
get el() { return this; }
|
|
78
78
|
static get style() { return tttxDialogCss; }
|
|
79
|
-
}, [1, "tttx-
|
|
79
|
+
}, [1, "tttx-dialog_1_0_0", {
|
|
80
80
|
"header": [1],
|
|
81
81
|
"type": [1],
|
|
82
82
|
"size": [1],
|
|
@@ -89,19 +89,19 @@ function defineCustomElement$1() {
|
|
|
89
89
|
if (typeof customElements === "undefined") {
|
|
90
90
|
return;
|
|
91
91
|
}
|
|
92
|
-
const components = ["tttx-
|
|
92
|
+
const components = ["tttx-dialog_1_0_0", "tttx-button_1_0_0", "tttx-icon_1_0_0"];
|
|
93
93
|
components.forEach(tagName => { switch (tagName) {
|
|
94
|
-
case "tttx-
|
|
94
|
+
case "tttx-dialog_1_0_0":
|
|
95
95
|
if (!customElements.get(tagName)) {
|
|
96
|
-
customElements.define(tagName, TttxDialog
|
|
96
|
+
customElements.define(tagName, TttxDialog);
|
|
97
97
|
}
|
|
98
98
|
break;
|
|
99
|
-
case "tttx-
|
|
99
|
+
case "tttx-button_1_0_0":
|
|
100
100
|
if (!customElements.get(tagName)) {
|
|
101
101
|
defineCustomElement$3();
|
|
102
102
|
}
|
|
103
103
|
break;
|
|
104
|
-
case "tttx-
|
|
104
|
+
case "tttx-icon_1_0_0":
|
|
105
105
|
if (!customElements.get(tagName)) {
|
|
106
106
|
defineCustomElement$2();
|
|
107
107
|
}
|
|
@@ -109,7 +109,7 @@ function defineCustomElement$1() {
|
|
|
109
109
|
} });
|
|
110
110
|
}
|
|
111
111
|
|
|
112
|
-
const
|
|
112
|
+
const TttxDialog_1_0_0 = TttxDialog;
|
|
113
113
|
const defineCustomElement = defineCustomElement$1;
|
|
114
114
|
|
|
115
|
-
export {
|
|
115
|
+
export { TttxDialog_1_0_0, defineCustomElement };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface TttxExpander_1_0_0 extends Components.TttxExpander_1_0_0, HTMLElement {}
|
|
4
|
+
export const TttxExpander_1_0_0: {
|
|
5
|
+
prototype: TttxExpander_1_0_0;
|
|
6
|
+
new (): TttxExpander_1_0_0;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
2
|
-
import { d as defineCustomElement$2 } from './tttx-
|
|
2
|
+
import { d as defineCustomElement$2 } from './tttx-icon.js';
|
|
3
3
|
|
|
4
4
|
const tttxExpanderCss = ".material-symbols-rounded{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}:host{display:block}.expander{border-bottom:1px solid #d5d5d5}.expander[open] .panel .open{display:initial}.expander[open] .panel .closed{display:none}.expander:not([open]) .panel .open{display:none}.expander:not([open]) .panel .closed{display:initial}.expander .panel{display:flex;gap:4px;height:36px;align-items:center;justify-content:space-between;cursor:pointer;user-select:none}.expander .panel .panel-frame{display:flex;gap:4px;height:36px;align-items:center}.expander .panel .panel-frame .name{font-size:16px;font-weight:500;color:#212121}.expander .panel .left-icons,.expander .panel .expand-button{display:flex;height:36px;width:36px;align-items:center;justify-content:center}.expander .panel .left-icons>tttx-icon,.expander .panel .expand-button>tttx-icon{height:24px;cursor:inherit}.expander .content{margin-top:8px;margin-bottom:8px}";
|
|
5
5
|
|
|
6
|
-
const TttxExpander
|
|
6
|
+
const TttxExpander = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
7
7
|
constructor() {
|
|
8
8
|
super();
|
|
9
9
|
this.__registerHost();
|
|
@@ -29,10 +29,10 @@ const TttxExpander$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElemen
|
|
|
29
29
|
this.toggleExpander.emit({ open: this.isExpanded, name: this.name });
|
|
30
30
|
}
|
|
31
31
|
render() {
|
|
32
|
-
return (h(Host, null, h("details", { class: "expander", open: this.open, "aria-owns": "expanderContent", "aria-expanded": `${this.isExpanded}`, onClick: this.handleExpand.bind(this), ref: el => (this.expander = el) }, h("summary", { class: "panel" }, h("span", { class: "panel-frame" }, this.lefticon && (h("span", { class: "left-icons" }, h("tttx-
|
|
32
|
+
return (h(Host, null, h("details", { class: "expander", open: this.open, "aria-owns": "expanderContent", "aria-expanded": `${this.isExpanded}`, onClick: this.handleExpand.bind(this), ref: el => (this.expander = el) }, h("summary", { class: "panel" }, h("span", { class: "panel-frame" }, this.lefticon && (h("span", { class: "left-icons" }, h("tttx-icon_1_0_0", { icon: this.lefticon, color: this.lefticoncolor }))), h("span", { class: "name" }, this.name)), h("span", { class: "expand-button" }, h("tttx-icon_1_0_0", { class: "open", icon: "expand_more", color: "black" }), h("tttx-icon_1_0_0", { class: "closed", icon: "chevron_right", color: "black" }))), h("div", { id: "expanderContent", class: "content", tabindex: "0" }, h("slot", null)))));
|
|
33
33
|
}
|
|
34
34
|
static get style() { return tttxExpanderCss; }
|
|
35
|
-
}, [1, "tttx-
|
|
35
|
+
}, [1, "tttx-expander_1_0_0", {
|
|
36
36
|
"name": [1],
|
|
37
37
|
"open": [4],
|
|
38
38
|
"lefticon": [1],
|
|
@@ -43,14 +43,14 @@ function defineCustomElement$1() {
|
|
|
43
43
|
if (typeof customElements === "undefined") {
|
|
44
44
|
return;
|
|
45
45
|
}
|
|
46
|
-
const components = ["tttx-
|
|
46
|
+
const components = ["tttx-expander_1_0_0", "tttx-icon_1_0_0"];
|
|
47
47
|
components.forEach(tagName => { switch (tagName) {
|
|
48
|
-
case "tttx-
|
|
48
|
+
case "tttx-expander_1_0_0":
|
|
49
49
|
if (!customElements.get(tagName)) {
|
|
50
|
-
customElements.define(tagName, TttxExpander
|
|
50
|
+
customElements.define(tagName, TttxExpander);
|
|
51
51
|
}
|
|
52
52
|
break;
|
|
53
|
-
case "tttx-
|
|
53
|
+
case "tttx-icon_1_0_0":
|
|
54
54
|
if (!customElements.get(tagName)) {
|
|
55
55
|
defineCustomElement$2();
|
|
56
56
|
}
|
|
@@ -58,7 +58,7 @@ function defineCustomElement$1() {
|
|
|
58
58
|
} });
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
-
const
|
|
61
|
+
const TttxExpander_1_0_0 = TttxExpander;
|
|
62
62
|
const defineCustomElement = defineCustomElement$1;
|
|
63
63
|
|
|
64
|
-
export {
|
|
64
|
+
export { TttxExpander_1_0_0, defineCustomElement };
|
|
@@ -1,6 +1,225 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
2
|
+
import { d as defineCustomElement$1 } from './tttx-icon.js';
|
|
2
3
|
|
|
3
|
-
const
|
|
4
|
-
const defineCustomElement = defineCustomElement$1;
|
|
4
|
+
const tttxFilterCss = ".material-symbols-rounded{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}.material-symbols-rounded{font-family:\"Material Symbols Rounded\", sans-serif;font-weight:400;font-style:normal;font-size:24px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;color:#9e9e9e}.filter-container{background-color:white;position:relative}.filter-container .filter-button{display:inline-flex;justify-content:center;align-items:center;font-size:14px;font-weight:400;font-family:\"Roboto\", serif;text-transform:uppercase;color:#212121;border:1px solid #d5d5d5;border-radius:4px;background:transparent;height:36px;width:95px;margin:0;padding-right:16px;cursor:pointer}@media (max-width: 475px){.filter-container .filter-button{padding-left:4px}}.filter-container .filter-button .filter-icon{padding-left:8px;padding-right:4px}.filter-container .filter-button.--list-icon{font-size:0;width:36px;height:36px;padding:0}.filter-container .filter-button.--list-icon .filter-icon{padding:0}.filter-container .filter-button.--list-icon:hover{background:#e3e3e3}.filter-container .filter-button.--table-icon{font-size:0;width:36px;height:36px;padding:0;border:none}.filter-container .filter-button.--table-icon .filter-icon{padding:0;width:24px;height:24px}.filter-container .filter-button.--table-icon:hover{background:#e3e3e3;border-radius:50%;width:36px;height:36px}.filter-container .filter-button:hover{background:#e3e3e3}.filter-container .filter-popover-container{display:flex;flex-direction:column;gap:8px;border-radius:4px;box-shadow:0px 1px 5px #1111114D;position:absolute;top:36px;left:0px;background-color:white;padding:8px 16px}.filter-container .filter-popover-container .filter-header{color:#757575;text-transform:uppercase;font-size:14px;font-weight:500;font-family:\"Roboto\", serif;padding-top:4px;padding-bottom:5px}.filter-container .filter-popover-container .filter-options-container{display:flex;flex-direction:column;gap:4px;border-top:1px solid #d5d5d5;border-bottom:1px solid #d5d5d5;padding-bottom:8px}.filter-container .filter-popover-container .filter-option{display:flex;flex-direction:row;align-items:center;min-height:36px;padding-left:8px}.filter-container .filter-popover-container .filter-option .select-all-icon{padding-right:6px}.filter-container .filter-popover-container .filter-option .checkbox-icon{padding-right:8px}.filter-container .filter-popover-container .filter-option .filter-label{padding-left:8px;padding-bottom:3px;font-size:16px;font-weight:500;font-family:\"Roboto\", serif}.filter-container .filter-popover-container .filter-option:first-child{padding-top:8px}.filter-container .filter-popover-container .filter-popover-button-container{display:flex;justify-content:flex-end;align-items:center}.filter-container .filter-popover-container .filter-popover-button-container .close-button{height:36px;width:74px;background-color:white;border:1px solid #d5d5d5;border-radius:4px;text-transform:uppercase;margin-right:8px;font-size:14px;font-weight:400;font-family:\"Roboto\", serif;color:#212121}.filter-container .filter-popover-container .filter-popover-button-container .apply-button{height:36px;width:73px;background-color:#1479c6;color:white;border-radius:4px;border:none;text-transform:uppercase;font-size:14px;font-weight:400;font-family:\"Roboto\", serif}.filter-container .filter-popover-container.--with-search-field .filter-header{border-bottom:1px solid #d5d5d5}.filter-container .filter-popover-container.--with-search-field .search-field-container{position:relative;color:#d5d5d5;height:36px}.filter-container .filter-popover-container.--with-search-field .search-field-container .search-icon{position:absolute;top:6px;left:8px}.filter-container .filter-popover-container.--with-search-field .search-field-container .search-input{padding-left:36px;border:1px solid #d5d5d5;border-radius:4px;height:36px;width:100%;font-size:16px;font-family:\"Roboto\", serif;font-weight:500;box-sizing:border-box}.filter-container .filter-popover-container.--with-search-field .search-field-container .search-input:focus-visible,.filter-container .filter-popover-container.--with-search-field .search-field-container .search-input:focus{outline:none;border:1px solid #1479c6}.filter-container .filter-popover-container.--with-search-field .search-field-container .search-input::placeholder{color:#9e9e9e;font-size:16px;font-family:\"Roboto\", serif;font-weight:500}";
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
const TttxFilter = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
7
|
+
constructor() {
|
|
8
|
+
super();
|
|
9
|
+
this.__registerHost();
|
|
10
|
+
this.__attachShadow();
|
|
11
|
+
this.filterChangeEvent = createEvent(this, "filterChangeEvent", 7);
|
|
12
|
+
this.toggleFilter = createEvent(this, "toggleFilter", 7);
|
|
13
|
+
this.filterKey = undefined;
|
|
14
|
+
this.filterOptions = [
|
|
15
|
+
{ optionIcon: 'cancel', optionIconColor: 'darkred', optionText: 'Expired' },
|
|
16
|
+
{ optionIcon: 'warning', optionIconColor: 'orange', optionText: 'Expiring soon' },
|
|
17
|
+
{ optionIcon: 'check_circle', optionIconColor: 'green', optionText: 'Active' },
|
|
18
|
+
];
|
|
19
|
+
this.showSelectAll = true;
|
|
20
|
+
this.showSearchField = false;
|
|
21
|
+
this.showOptionIcons = true;
|
|
22
|
+
this.filterButtonStyle = 'list filter';
|
|
23
|
+
this.filterHeader = 'Qualification status';
|
|
24
|
+
this.defaultFilterOptions = undefined;
|
|
25
|
+
this.popoverWidth = '193px';
|
|
26
|
+
this.showPopover = false;
|
|
27
|
+
this.displayedFilterSettings = undefined;
|
|
28
|
+
this.selectedFilters = undefined;
|
|
29
|
+
this.filterSearchTerm = '';
|
|
30
|
+
this.allSelected = undefined;
|
|
31
|
+
}
|
|
32
|
+
handleCloseFilter() {
|
|
33
|
+
this.showPopover = false;
|
|
34
|
+
}
|
|
35
|
+
emitFilterEvent() {
|
|
36
|
+
this.filterChangeEvent.emit({
|
|
37
|
+
selectedFilters: this.selectedFilters,
|
|
38
|
+
filterKey: this.filterKey,
|
|
39
|
+
allSelected: this.allSelected,
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
onFilterButtonClick() {
|
|
43
|
+
this.togglePopover();
|
|
44
|
+
}
|
|
45
|
+
onCloseButtonClick() {
|
|
46
|
+
this.togglePopover();
|
|
47
|
+
}
|
|
48
|
+
onApplyFilterButtonClick() {
|
|
49
|
+
this.emitFilterEvent();
|
|
50
|
+
this.togglePopover();
|
|
51
|
+
}
|
|
52
|
+
onFilterOptionSelected(selectedOption) {
|
|
53
|
+
this.allSelected = false;
|
|
54
|
+
if (this.selectedFilters.includes(selectedOption)) {
|
|
55
|
+
this.selectedFilters = this.selectedFilters.filter((filter) => filter != selectedOption);
|
|
56
|
+
}
|
|
57
|
+
else {
|
|
58
|
+
this.selectedFilters = [...this.selectedFilters, selectedOption];
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
componentWillLoad() {
|
|
62
|
+
this.displayedFilterSettings = this.parseFilterOptions();
|
|
63
|
+
if (this.defaultFilterOptions !== undefined) {
|
|
64
|
+
const parsedDefaultFilterOptions = this.parseDefaultFilterOptions();
|
|
65
|
+
this.selectedFilters = parsedDefaultFilterOptions;
|
|
66
|
+
let allSelected = true;
|
|
67
|
+
this.parseFilterOptions().map(filterOption => {
|
|
68
|
+
if (!this.selectedFilters.includes(filterOption.optionText)) {
|
|
69
|
+
allSelected = false;
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
this.allSelected = allSelected;
|
|
73
|
+
}
|
|
74
|
+
else {
|
|
75
|
+
this.allSelected = true;
|
|
76
|
+
this.selectedFilters = this.displayedFilterSettings.map((filterOption) => filterOption.optionText);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
togglePopover() {
|
|
80
|
+
this.showPopover = !this.showPopover;
|
|
81
|
+
this.toggleFilter.emit(this.showPopover);
|
|
82
|
+
// if(!this.showPopover) {
|
|
83
|
+
// // this._focussedElementIndex = -1;
|
|
84
|
+
// }
|
|
85
|
+
}
|
|
86
|
+
// Commented out keyboard interaction for now
|
|
87
|
+
// @Listen('keyup')
|
|
88
|
+
// handleKeyUp(event: KeyboardEvent) {
|
|
89
|
+
// const keyboardEventValue = event.key;
|
|
90
|
+
// if (document.activeElement.id != `filter__${this.filterKey}`) return;
|
|
91
|
+
// if (event.key == " " || event.code == "Space" || event.keyCode == 32) {
|
|
92
|
+
// if (this._focussedElementIndex == 0) {
|
|
93
|
+
// this.onSelectAllClick()
|
|
94
|
+
// } else {
|
|
95
|
+
// const options = this.el.shadowRoot.querySelectorAll('.filter-option') as HTMLElement[];
|
|
96
|
+
// this.onFilterOptionSelected(options[this._focussedElementIndex].textContent)
|
|
97
|
+
// }
|
|
98
|
+
// return;
|
|
99
|
+
// }
|
|
100
|
+
// switch (keyboardEventValue) {
|
|
101
|
+
// case 'Enter':
|
|
102
|
+
// if(!this.showPopover) {
|
|
103
|
+
// this.showPopover=true
|
|
104
|
+
// } else {
|
|
105
|
+
// this.emitFilterEvent()
|
|
106
|
+
// }
|
|
107
|
+
// break;
|
|
108
|
+
// case 'Escape':
|
|
109
|
+
// this.showPopover = false;
|
|
110
|
+
// this._focussedElementIndex = -1;
|
|
111
|
+
// break;
|
|
112
|
+
// case 'ArrowDown':
|
|
113
|
+
// this.showPopover = true;
|
|
114
|
+
// if (this._focussedElementIndex == -1) {
|
|
115
|
+
// this._focussedElementIndex = 0;
|
|
116
|
+
// } else {
|
|
117
|
+
// const options = this.el.shadowRoot.querySelectorAll('.filter-option') as HTMLElement[];
|
|
118
|
+
// const currentOption = options[this._focussedElementIndex] as HTMLElement;
|
|
119
|
+
// currentOption.blur();
|
|
120
|
+
// // options[this._focussedElementIndex].focus();
|
|
121
|
+
// this._focussedElementIndex + 1 < options.length ? this._focussedElementIndex++ : (this._focussedElementIndex = 0);
|
|
122
|
+
// }
|
|
123
|
+
// break;
|
|
124
|
+
// case 'ArrowUp':
|
|
125
|
+
// if (this._focussedElementIndex == -1) {
|
|
126
|
+
// this.showPopover = true;
|
|
127
|
+
// this._focussedElementIndex = 0;
|
|
128
|
+
// } else {
|
|
129
|
+
// const options = this.el.shadowRoot.querySelectorAll('.filter-option') as HTMLElement[];
|
|
130
|
+
// const currentOption = options[this._focussedElementIndex] as HTMLElement;
|
|
131
|
+
// currentOption.blur();
|
|
132
|
+
// // options[this._focussedElementIndex].focus();
|
|
133
|
+
// this._focussedElementIndex > 0 ? this._focussedElementIndex-- : (this._focussedElementIndex = options.length - 1);
|
|
134
|
+
// }
|
|
135
|
+
// break;
|
|
136
|
+
// }
|
|
137
|
+
// }
|
|
138
|
+
handleFilterChange(event) {
|
|
139
|
+
const target = event.target;
|
|
140
|
+
this.filterSearchTerm = target.value;
|
|
141
|
+
const filteredResults = this.parseFilterOptions().filter((filterOption) => {
|
|
142
|
+
const lowercaseOption = filterOption.optionText.toLowerCase();
|
|
143
|
+
const filterTerm = this.filterSearchTerm.toLowerCase();
|
|
144
|
+
return lowercaseOption.includes(filterTerm);
|
|
145
|
+
});
|
|
146
|
+
this.displayedFilterSettings = filteredResults;
|
|
147
|
+
}
|
|
148
|
+
onSelectAllClick() {
|
|
149
|
+
this.allSelected = !this.allSelected;
|
|
150
|
+
if (this.allSelected) {
|
|
151
|
+
this.displayedFilterSettings.forEach((filterSetting) => { this.selectedFilters = [...this.selectedFilters, filterSetting.optionText]; });
|
|
152
|
+
}
|
|
153
|
+
else {
|
|
154
|
+
this.selectedFilters = [];
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
getFilterButtonClassName(buttonStyle) {
|
|
158
|
+
switch (buttonStyle) {
|
|
159
|
+
case 'table icon': {
|
|
160
|
+
return '--table-icon';
|
|
161
|
+
}
|
|
162
|
+
case 'list icon': {
|
|
163
|
+
return '--list-icon';
|
|
164
|
+
}
|
|
165
|
+
default: {
|
|
166
|
+
return '';
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
parseFilterOptions() {
|
|
171
|
+
return typeof this.filterOptions === 'string' ? JSON.parse(this.filterOptions) : this.filterOptions;
|
|
172
|
+
}
|
|
173
|
+
parseDefaultFilterOptions() {
|
|
174
|
+
return typeof this.defaultFilterOptions === 'string' ? JSON.parse(this.defaultFilterOptions) : this.defaultFilterOptions;
|
|
175
|
+
}
|
|
176
|
+
render() {
|
|
177
|
+
const filterPopoverContainerClassNameModifier = this.showSearchField ? '--with-search-field' : '';
|
|
178
|
+
const selectAllCheckboxIcon = this.allSelected ? 'check_box' : 'check_box_outline_blank';
|
|
179
|
+
const selectAllCheckboxColor = this.allSelected ? 'blue' : 'grey';
|
|
180
|
+
const buttonStyleClassNameModifier = this.getFilterButtonClassName(this.filterButtonStyle);
|
|
181
|
+
const filterKey = `filter__${this.filterKey}`;
|
|
182
|
+
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_0_0", { 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_0_0", { 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_0_0", { icon: selectAllCheckboxIcon, color: selectAllCheckboxColor, class: 'select-all-icon' }), h("label", { class: 'filter-label' }, "Select all"))) : (''), this.displayedFilterSettings.map((option) => {
|
|
183
|
+
const checkboxIcon = this.selectedFilters.includes(option.optionText) ? 'check_box' : 'check_box_outline_blank';
|
|
184
|
+
const checkboxColor = this.selectedFilters.includes(option.optionText) ? 'blue' : 'grey';
|
|
185
|
+
return h("div", { class: 'filter-option', tabIndex: -1, onClick: () => this.onFilterOptionSelected(option.optionText), key: option.optionText }, h("tttx-icon_1_0_0", { icon: checkboxIcon, color: checkboxColor, class: 'checkbox-icon' }), this.showOptionIcons && h("tttx-icon_1_0_0", { icon: option.optionIcon, color: option.optionIconColor }), h("label", { class: 'filter-label' }, option.optionText));
|
|
186
|
+
})), 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")))))));
|
|
187
|
+
}
|
|
188
|
+
get el() { return this; }
|
|
189
|
+
static get style() { return tttxFilterCss; }
|
|
190
|
+
}, [1, "tttx-filter_1_0_0", {
|
|
191
|
+
"filterKey": [1, "filter-key"],
|
|
192
|
+
"filterOptions": [1, "filter-options"],
|
|
193
|
+
"showSelectAll": [4, "show-select-all"],
|
|
194
|
+
"showSearchField": [4, "show-search-field"],
|
|
195
|
+
"showOptionIcons": [4, "show-option-icons"],
|
|
196
|
+
"filterButtonStyle": [1, "filter-button-style"],
|
|
197
|
+
"filterHeader": [1, "filter-header"],
|
|
198
|
+
"defaultFilterOptions": [1, "default-filter-options"],
|
|
199
|
+
"popoverWidth": [1, "popover-width"],
|
|
200
|
+
"showPopover": [32],
|
|
201
|
+
"displayedFilterSettings": [32],
|
|
202
|
+
"selectedFilters": [32],
|
|
203
|
+
"filterSearchTerm": [32],
|
|
204
|
+
"allSelected": [32]
|
|
205
|
+
}, [[0, "closeFilter", "handleCloseFilter"]]]);
|
|
206
|
+
function defineCustomElement() {
|
|
207
|
+
if (typeof customElements === "undefined") {
|
|
208
|
+
return;
|
|
209
|
+
}
|
|
210
|
+
const components = ["tttx-filter_1_0_0", "tttx-icon_1_0_0"];
|
|
211
|
+
components.forEach(tagName => { switch (tagName) {
|
|
212
|
+
case "tttx-filter_1_0_0":
|
|
213
|
+
if (!customElements.get(tagName)) {
|
|
214
|
+
customElements.define(tagName, TttxFilter);
|
|
215
|
+
}
|
|
216
|
+
break;
|
|
217
|
+
case "tttx-icon_1_0_0":
|
|
218
|
+
if (!customElements.get(tagName)) {
|
|
219
|
+
defineCustomElement$1();
|
|
220
|
+
}
|
|
221
|
+
break;
|
|
222
|
+
} });
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
export { TttxFilter as T, defineCustomElement as d };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface TttxFilter_1_0_0 extends Components.TttxFilter_1_0_0, HTMLElement {}
|
|
4
|
+
export const TttxFilter_1_0_0: {
|
|
5
|
+
prototype: TttxFilter_1_0_0;
|
|
6
|
+
new (): TttxFilter_1_0_0;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { Components, JSX } from "../types/components";
|
|
2
2
|
|
|
3
|
-
interface
|
|
4
|
-
export const
|
|
5
|
-
prototype:
|
|
6
|
-
new ():
|
|
3
|
+
interface TttxForm_1_0_0 extends Components.TttxForm_1_0_0, HTMLElement {}
|
|
4
|
+
export const TttxForm_1_0_0: {
|
|
5
|
+
prototype: TttxForm_1_0_0;
|
|
6
|
+
new (): TttxForm_1_0_0;
|
|
7
7
|
};
|
|
8
8
|
/**
|
|
9
9
|
* Used to define this component and all nested components recursively.
|