@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
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
2
2
|
import { p as purify, d as domSanitiserOptions } from './domsanitiser.options.js';
|
|
3
|
-
import { d as defineCustomElement$4 } from './tttx-
|
|
4
|
-
import { d as defineCustomElement$3 } from './tttx-select-
|
|
5
|
-
import { d as defineCustomElement$2 } from './tttx-standalone-
|
|
3
|
+
import { d as defineCustomElement$4 } from './tttx-icon.js';
|
|
4
|
+
import { d as defineCustomElement$3 } from './tttx-select-box.js';
|
|
5
|
+
import { d as defineCustomElement$2 } from './tttx-standalone-input.js';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Validates the input field on focusout event by checking its validity state,
|
|
@@ -131,7 +131,7 @@ function setErrorState(target, hasError, errorMessage, parent = undefined) {
|
|
|
131
131
|
|
|
132
132
|
const tttxFormCss = ".material-symbols-rounded{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}.material-symbols-rounded{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}label{font-weight:500;font-size:16px;line-height:18.752px;color:#212121}label .optional{color:#757575;font-weight:normal}label .outer-container{position:relative}label .outer-container .left-icons,label .outer-container .right-icons{display:flex;position:absolute;height:24px;gap:8px}label .outer-container .left-icons tttx-icon,label .outer-container .right-icons tttx-icon{height:24px;width:24px}label .outer-container .left-icons{left:8px}label .outer-container .right-icons{right:8px}label .outer-container input,label .outer-container textarea{color:#212121;box-sizing:border-box;border:1px solid #d5d5d5;border-radius:4px;padding:0;padding-left:16px;padding-right:16px;margin-top:4px;}label .outer-container input.has-input-icon,label .outer-container textarea.has-input-icon{padding-left:40px}label .outer-container input.has-input-icon.has-left-icon,label .outer-container textarea.has-input-icon.has-left-icon{padding-left:72px}label .outer-container input.has-left-icon,label .outer-container textarea.has-left-icon{padding-left:40px}label .outer-container input.has-right-icon,label .outer-container textarea.has-right-icon{padding-right:40px}label .outer-container input.invalid,label .outer-container textarea.invalid{border:1px solid #dc0000}label .outer-container input:not([type=submit]),label .outer-container textarea:not([type=submit]){font-family:\"Roboto\", serif;width:100%;height:36px;font-size:16px;line-height:18.752px}label .outer-container input[type=radio],label .outer-container textarea[type=radio]{width:20px;height:20px}label .outer-container input[type=date],label .outer-container textarea[type=date]{background:white;display:block;min-width:calc(100% - 18px);line-height:37px}label .outer-container input[readonly],label .outer-container textarea[readonly]{cursor:default;pointer-events:none;user-select:none;color:gray}label .outer-container input:focus,label .outer-container textarea:focus{border-color:#1479c6}label .outer-container input:focus-visible,label .outer-container textarea:focus-visible{outline:none}label .outer-container textarea{padding:8px;height:auto;min-height:100px;resize:vertical}label .outer-container.inputBlock{display:flex;align-items:center;line-height:21px}label .outer-container.inputBlock .left-icons,label .outer-container.inputBlock .right-icons{margin-top:4px}label .outer-container.inputBlock.readonly{pointer-events:none;user-select:none;color:gray}label .outer-container.inputBlock.radioBlock{display:block}label .outer-container.inputInline{display:flex;white-space:nowrap;align-items:center;margin:0}label .outer-container.inputInline input{margin-top:0}label .secondarylabel{color:#757575;font-size:14px;line-height:16.408px;font-weight:normal;display:flex;margin-top:4px}label .errorBubble{position:relative;font-size:14px;line-height:16.408px;font-weight:normal;width:100%;font-family:\"Roboto\", sans-serif;color:#dc0000;display:flex;align-content:center;align-items:center;justify-items:center;margin-top:4px}label .errorBubble:not(.visible){display:none}label .errorBubble span{color:#dc0000;font-size:16px;margin-right:4px}.material-symbols-rounded{font-family:\"Material Symbols Rounded\", sans-serif;font-weight:400;font-style:normal;font-size:24px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;color:#9e9e9e}button{cursor:pointer}.button{font-family:Roboto, serif;box-sizing:border-box;height:36px;min-width:36px;padding:0;margin:0;background:transparent;color:#212121;border:1px solid #c8c8c8;border-radius:4px;text-transform:uppercase;display:flex;justify-content:left;align-items:center;font-size:14px;font-weight:500}.button-content{display:block;padding:0 16px}.icon-left,.icon-right{margin-top:4px}.iconleft{padding-left:8px}.iconleft .button-content{padding-left:4px}.iconright{padding-right:8px}.iconright .button-content{padding-right:4px}.notext{padding:0 6px}.button:active{background:rgba(17, 17, 17, 0.2);border:1px solid #d5d5d5}.primary{background:#1479c6;border:1px solid #1479c6;color:white}.primary:active{background:#1464a2;border:1px solid #1464a2}.borderless{background:transparent;border:none;color:#212121}.borderless:active{background:rgba(17, 17, 17, 0.2);border:none}.borderless-circle{background:transparent;border:none;color:#212121;border-radius:50%}.borderless-circle:active{border:none}.borderless-circle:focus{border-color:transparent}.danger{background:#dc0000;border:1px solid #dc0000;color:white}.danger:active{background:#b00000;border:1px solid #b00000}.disabled{background:#aeaeae;border:none;color:#4c4c4c;cursor:not-allowed}.disabled:active{background:#aeaeae;border:none;color:#4c4c4c;cursor:not-allowed}@media (hover: hover){.button:hover{background:rgba(17, 17, 17, 0.1);border:1px solid #d5d5d5}.primary:hover{background:#146eb3;border:1px solid #146eb3}.borderless:hover{background:rgba(17, 17, 17, 0.1);border:none}.borderless-circle:hover{background:rgba(17, 17, 17, 0.1);border:none}.danger:hover{background:#c60000;border:1px solid #c60000}.disabled:hover{background:#aeaeae;border:none;color:#4c4c4c;cursor:not-allowed}}:host{display:block}fieldset{margin:0;padding:0;border:none}label{display:block;position:relative;margin-bottom:16px}.inlineLabel{font-weight:400;display:inline-block;vertical-align:top;padding-top:4px}input[type=checkbox]{width:18px;height:18px}input~label{font-weight:400}select{font-family:\"Roboto\", serif;box-sizing:border-box;width:100%;height:36px;padding:0 16px;font-size:16px;border:1px solid #d5d5d5;border-radius:4px;margin-top:4px}.placeholder{color:#9e9e9e}.placeholder option{color:initial}select.invalid:invalid{border:1px solid #dc0000}select~.errorBubble{position:relative;font-size:14px;font-weight:normal;width:100%;font-family:\"Roboto\", sans-serif;color:#dc0000;display:flex;align-content:center;align-items:center;justify-items:center}select~.errorBubble:not(.visible){visibility:hidden}select~.errorBubble span{color:#dc0000;font-size:16px;margin-right:4px;height:16px}select.invalid:invalid~.errorBubble{position:relative;font-size:14px;font-weight:normal;width:100%;font-family:\"Roboto\", sans-serif;color:#dc0000;visibility:visible}select:focus{border-color:#1479c6}select:focus-visible{outline:none}.button{padding:0 16px}.footer{display:flex;gap:16px;flex-direction:row-reverse}label.flex-label{display:flex;flex-direction:column;width:346px;box-sizing:border-box}label>.outer-container>input[type=date]{min-width:0;width:200px}label.flex-label input[type=time]{min-width:auto;text-align:center;width:130px;margin-left:16px}label>.outer-container>input[type=date],label.flex-label input[type=time]{line-height:36px}";
|
|
133
133
|
|
|
134
|
-
const TttxForm
|
|
134
|
+
const TttxForm = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
135
135
|
constructor() {
|
|
136
136
|
super();
|
|
137
137
|
this.__registerHost();
|
|
@@ -212,12 +212,6 @@ const TttxForm$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
212
212
|
*
|
|
213
213
|
* @param {SubmitEvent} event - The event object for the form submission.
|
|
214
214
|
* @returns {void}
|
|
215
|
-
*
|
|
216
|
-
* @example
|
|
217
|
-
* const form = document.getElementById('myForm');
|
|
218
|
-
* form.addEventListener('submit', (event) => {
|
|
219
|
-
* doSubmit(event);
|
|
220
|
-
* });
|
|
221
215
|
*/
|
|
222
216
|
doSubmit(event) {
|
|
223
217
|
// prevent the form from submitting normally
|
|
@@ -270,7 +264,7 @@ const TttxForm$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
270
264
|
});
|
|
271
265
|
if ((_a = this._data) === null || _a === void 0 ? void 0 : _a[formKey])
|
|
272
266
|
select.classList.remove('placeholder');
|
|
273
|
-
const tttxSelect = document.createElement('tttx-select-
|
|
267
|
+
const tttxSelect = document.createElement('tttx-select-box_1_0_0');
|
|
274
268
|
tttxSelect.optionsData = (_b = formProperties.options) === null || _b === void 0 ? void 0 : _b.filter(o => !o.placeholder);
|
|
275
269
|
tttxSelect.placeholder = (_d = (_c = formProperties.options) === null || _c === void 0 ? void 0 : _c.filter(o => o.placeholder)[0]) === null || _d === void 0 ? void 0 : _d.label;
|
|
276
270
|
tttxSelect.inline = false;
|
|
@@ -806,7 +800,7 @@ const TttxForm$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
806
800
|
"data": ["onDataChange"]
|
|
807
801
|
}; }
|
|
808
802
|
static get style() { return tttxFormCss; }
|
|
809
|
-
}, [1, "tttx-
|
|
803
|
+
}, [1, "tttx-form_1_0_0", {
|
|
810
804
|
"formschema": [1025],
|
|
811
805
|
"data": [1032],
|
|
812
806
|
"submit": [64],
|
|
@@ -816,24 +810,24 @@ function defineCustomElement$1() {
|
|
|
816
810
|
if (typeof customElements === "undefined") {
|
|
817
811
|
return;
|
|
818
812
|
}
|
|
819
|
-
const components = ["tttx-
|
|
813
|
+
const components = ["tttx-form_1_0_0", "tttx-icon_1_0_0", "tttx-select-box_1_0_0", "tttx-standalone-input_1_0_0"];
|
|
820
814
|
components.forEach(tagName => { switch (tagName) {
|
|
821
|
-
case "tttx-
|
|
815
|
+
case "tttx-form_1_0_0":
|
|
822
816
|
if (!customElements.get(tagName)) {
|
|
823
|
-
customElements.define(tagName, TttxForm
|
|
817
|
+
customElements.define(tagName, TttxForm);
|
|
824
818
|
}
|
|
825
819
|
break;
|
|
826
|
-
case "tttx-
|
|
820
|
+
case "tttx-icon_1_0_0":
|
|
827
821
|
if (!customElements.get(tagName)) {
|
|
828
822
|
defineCustomElement$4();
|
|
829
823
|
}
|
|
830
824
|
break;
|
|
831
|
-
case "tttx-select-
|
|
825
|
+
case "tttx-select-box_1_0_0":
|
|
832
826
|
if (!customElements.get(tagName)) {
|
|
833
827
|
defineCustomElement$3();
|
|
834
828
|
}
|
|
835
829
|
break;
|
|
836
|
-
case "tttx-standalone-
|
|
830
|
+
case "tttx-standalone-input_1_0_0":
|
|
837
831
|
if (!customElements.get(tagName)) {
|
|
838
832
|
defineCustomElement$2();
|
|
839
833
|
}
|
|
@@ -841,7 +835,7 @@ function defineCustomElement$1() {
|
|
|
841
835
|
} });
|
|
842
836
|
}
|
|
843
837
|
|
|
844
|
-
const
|
|
838
|
+
const TttxForm_1_0_0 = TttxForm;
|
|
845
839
|
const defineCustomElement = defineCustomElement$1;
|
|
846
840
|
|
|
847
|
-
export {
|
|
841
|
+
export { TttxForm_1_0_0, defineCustomElement };
|
|
@@ -1,6 +1,40 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
2
2
|
|
|
3
|
-
const
|
|
4
|
-
const defineCustomElement = defineCustomElement$1;
|
|
3
|
+
const tttxIconCss = ".material-symbols-rounded{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}.material-symbols-rounded{font-family:\"Material Symbols Rounded\", sans-serif;font-weight:400;font-style:normal;font-size:24px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;color:#9e9e9e}:host{display:inline-block;cursor:default;user-select:none}.icon-size{width:24px;height:24px}.tooltip{background:#ffffff;color:#343434;font-weight:bold;padding:8px 16px;font-size:13px;border-radius:4px;box-shadow:0 0 5px 1px rgba(0, 0, 0, 0.3);display:none}.tooltip[data-show]{display:block}.arrow,.arrow::before{position:absolute;width:8px;height:8px;background:inherit}.arrow{visibility:hidden}.arrow::before{visibility:visible;content:\"\";transform:rotate(45deg)}.tooltip[data-popper-placement^=top]>.arrow{bottom:-4px}.tooltip[data-popper-placement^=bottom]>.arrow{top:-4px}.tooltip[data-popper-placement^=left]>.arrow{right:-4px}.tooltip[data-popper-placement^=right]>.arrow{left:-4px}.red{color:#dc0000}.darkred{color:#A20000}.orange{color:#f59500}.blue{color:#1479c6}.green{color:#a2bb31}.gray{color:#757575}.black{color:#212121}.white{color:white}";
|
|
5
4
|
|
|
6
|
-
|
|
5
|
+
const TttxIcon = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
6
|
+
constructor() {
|
|
7
|
+
super();
|
|
8
|
+
this.__registerHost();
|
|
9
|
+
this.__attachShadow();
|
|
10
|
+
this.icon = undefined;
|
|
11
|
+
this.color = 'grey';
|
|
12
|
+
}
|
|
13
|
+
render() {
|
|
14
|
+
if (this.color.startsWith('#')) {
|
|
15
|
+
return (h(Host, null, h("span", { class: 'material-symbols-rounded', style: { color: this.color } }, this.icon)));
|
|
16
|
+
}
|
|
17
|
+
else {
|
|
18
|
+
return (h(Host, null, h("span", { class: `material-symbols-rounded ${this.color}` }, this.icon)));
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
static get style() { return tttxIconCss; }
|
|
22
|
+
}, [1, "tttx-icon_1_0_0", {
|
|
23
|
+
"icon": [1],
|
|
24
|
+
"color": [1]
|
|
25
|
+
}]);
|
|
26
|
+
function defineCustomElement() {
|
|
27
|
+
if (typeof customElements === "undefined") {
|
|
28
|
+
return;
|
|
29
|
+
}
|
|
30
|
+
const components = ["tttx-icon_1_0_0"];
|
|
31
|
+
components.forEach(tagName => { switch (tagName) {
|
|
32
|
+
case "tttx-icon_1_0_0":
|
|
33
|
+
if (!customElements.get(tagName)) {
|
|
34
|
+
customElements.define(tagName, TttxIcon);
|
|
35
|
+
}
|
|
36
|
+
break;
|
|
37
|
+
} });
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export { TttxIcon as T, defineCustomElement as d };
|
|
@@ -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 TttxIcon_1_0_0 extends Components.TttxIcon_1_0_0, HTMLElement {}
|
|
4
|
+
export const TttxIcon_1_0_0: {
|
|
5
|
+
prototype: TttxIcon_1_0_0;
|
|
6
|
+
new (): TttxIcon_1_0_0;
|
|
7
7
|
};
|
|
8
8
|
/**
|
|
9
9
|
* Used to define this component and all nested components recursively.
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface TttxKeyvalueBlock_1_0_0 extends Components.TttxKeyvalueBlock_1_0_0, HTMLElement {}
|
|
4
|
+
export const TttxKeyvalueBlock_1_0_0: {
|
|
5
|
+
prototype: TttxKeyvalueBlock_1_0_0;
|
|
6
|
+
new (): TttxKeyvalueBlock_1_0_0;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -2,7 +2,7 @@ import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal
|
|
|
2
2
|
|
|
3
3
|
const tttxKeyvalueBlockCss = ":host{display:block}dl{margin:0;padding:0;font-family:\"Roboto\", sans-serif;cursor:default}dt{font-weight:400;font-size:16px;margin-bottom:4px}dt,dt.subTitle{color:#757575}dt.mainTitle{color:#212121}dt,dd{overflow-wrap:anywhere}dd{margin:0;font-weight:400;font-size:16px;color:#212121}dd:not(:last-child){margin-bottom:16px}dl.spacedout,dl.horizontal{display:flex;flex-direction:row;width:100%}dl.spacedout{justify-content:space-between}dl.horizontal div{flex-grow:1}@media (max-width: 769px){dl.horizontal{flex-wrap:wrap}dl.horizontal div{width:50%;max-width:50% !important}}@media (max-width: 600px){dl.horizontal div{width:100%;max-width:100% !important}}";
|
|
4
4
|
|
|
5
|
-
const TttxKeyvalueBlock
|
|
5
|
+
const TttxKeyvalueBlock = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
6
6
|
constructor() {
|
|
7
7
|
super();
|
|
8
8
|
this.__registerHost();
|
|
@@ -65,7 +65,7 @@ const TttxKeyvalueBlock$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLE
|
|
|
65
65
|
return (h(Host, null, h("dl", { class: [this.horizontal ? 'horizontal' : undefined, this.spacedout ? ' spacedout' : undefined].join(' ').trim() }, this._elements)));
|
|
66
66
|
}
|
|
67
67
|
static get style() { return tttxKeyvalueBlockCss; }
|
|
68
|
-
}, [1, "tttx-keyvalue-
|
|
68
|
+
}, [1, "tttx-keyvalue-block_1_0_0", {
|
|
69
69
|
"keyvalues": [1],
|
|
70
70
|
"horizontal": [4],
|
|
71
71
|
"spacedout": [4],
|
|
@@ -75,17 +75,17 @@ function defineCustomElement$1() {
|
|
|
75
75
|
if (typeof customElements === "undefined") {
|
|
76
76
|
return;
|
|
77
77
|
}
|
|
78
|
-
const components = ["tttx-keyvalue-
|
|
78
|
+
const components = ["tttx-keyvalue-block_1_0_0"];
|
|
79
79
|
components.forEach(tagName => { switch (tagName) {
|
|
80
|
-
case "tttx-keyvalue-
|
|
80
|
+
case "tttx-keyvalue-block_1_0_0":
|
|
81
81
|
if (!customElements.get(tagName)) {
|
|
82
|
-
customElements.define(tagName, TttxKeyvalueBlock
|
|
82
|
+
customElements.define(tagName, TttxKeyvalueBlock);
|
|
83
83
|
}
|
|
84
84
|
break;
|
|
85
85
|
} });
|
|
86
86
|
}
|
|
87
87
|
|
|
88
|
-
const
|
|
88
|
+
const TttxKeyvalueBlock_1_0_0 = TttxKeyvalueBlock;
|
|
89
89
|
const defineCustomElement = defineCustomElement$1;
|
|
90
90
|
|
|
91
|
-
export {
|
|
91
|
+
export { TttxKeyvalueBlock_1_0_0, defineCustomElement };
|
|
@@ -1,6 +1,94 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { proxyCustomElement, HTMLElement, createEvent, h, Fragment } from '@stencil/core/internal/client';
|
|
2
|
+
import { p as purify, d as domSanitiserOptions } from './domsanitiser.options.js';
|
|
3
|
+
import { d as defineCustomElement$1 } from './tttx-icon.js';
|
|
2
4
|
|
|
3
|
-
const
|
|
4
|
-
const defineCustomElement = defineCustomElement$1;
|
|
5
|
+
const tttxListCss = ".material-symbols-rounded{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}.material-symbols-rounded{font-family:\"Material Symbols Rounded\", sans-serif;font-weight:400;font-style:normal;font-size:24px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;color:#9e9e9e}:host{display:flex;flex-direction:column}.list{margin:0;padding:0}li{display:flex;align-items:flex-start}li.item{list-style:none;margin:0;padding:8px;border-bottom:1px solid #d5d5d5;min-height:36px}li.item:first-of-type{border-top:1px solid #d5d5d5}li.item.clickable:hover{cursor:pointer}li.item.toggleable:hover{cursor:pointer}li.item.active{background-color:rgba(17, 17, 17, 0.1)}li.item.active:hover{background-color:rgba(17, 17, 17, 0.15)}li.item.selected{background-color:#ebfbfc}li.item.selected:hover{background-color:#e0f8f9}li.item.selected.active{background-color:#ccf3f6}li.item.selected.active:hover{background-color:#bff0f3}li.item .icons{display:flex;justify-content:flex-end;flex-grow:1;align-items:center;height:36px}li.item .icons tttx-icon:hover{cursor:pointer}li.item .icons *{display:flex}li.item:hover{background-color:rgba(17, 17, 17, 0.05)}.align-right{margin-left:auto}.item-content{display:flex;align-items:center;flex-grow:2;min-height:36px}.checkbox{padding:6px;margin-left:-8px}";
|
|
5
6
|
|
|
6
|
-
|
|
7
|
+
const TttxList = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
8
|
+
constructor() {
|
|
9
|
+
super();
|
|
10
|
+
this.__registerHost();
|
|
11
|
+
this.__attachShadow();
|
|
12
|
+
this.rowClick = createEvent(this, "listRowClick", 7);
|
|
13
|
+
this.rowCheckboxClick = createEvent(this, "listRowCheckboxClick", 7);
|
|
14
|
+
this.data = undefined;
|
|
15
|
+
this._data = undefined;
|
|
16
|
+
this.name = undefined;
|
|
17
|
+
}
|
|
18
|
+
onDataChange() {
|
|
19
|
+
if (!this.data) {
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
22
|
+
if (typeof this.data === 'string') {
|
|
23
|
+
this._data = JSON.parse(this.data);
|
|
24
|
+
}
|
|
25
|
+
else {
|
|
26
|
+
this._data = [...this.data];
|
|
27
|
+
}
|
|
28
|
+
for (const data of this._data) {
|
|
29
|
+
if (data.hasCheckbox && data.checked === undefined) {
|
|
30
|
+
data.checked = false;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
componentWillLoad() {
|
|
35
|
+
// dynamic constructor: any props can be added later
|
|
36
|
+
this.onDataChange();
|
|
37
|
+
}
|
|
38
|
+
onRowCheckboxHandler(event, item) {
|
|
39
|
+
event.stopPropagation();
|
|
40
|
+
if (!item.rowData)
|
|
41
|
+
return;
|
|
42
|
+
this.rowCheckboxClick.emit({ key: item.key, name: this.name, data: item.rowData });
|
|
43
|
+
}
|
|
44
|
+
onRowClickHandler(item) {
|
|
45
|
+
if ((!item.clickable && !item.toggleable) || !item.rowData)
|
|
46
|
+
return;
|
|
47
|
+
this.rowClick.emit({ key: item.key, name: this.name, data: item.rowData });
|
|
48
|
+
}
|
|
49
|
+
renderListItem(item) {
|
|
50
|
+
const cleanHTML = purify.sanitize(item.element, domSanitiserOptions);
|
|
51
|
+
return (h(Fragment, null, item.hasCheckbox && (h("div", { class: "checkbox" }, h("tttx-icon_1_0_0", { icon: item.checked ? 'check_box' : 'check_box_outline_blank', color: item.checked ? 'blue' : 'grey', onClick: event => {
|
|
52
|
+
this.onRowCheckboxHandler(event, item);
|
|
53
|
+
} }))), item.element && h("span", { class: "item-content", innerHTML: cleanHTML }), item.icon && (h("span", { class: "icons" }, h("tttx-icon_1_0_0", { class: "align-right", icon: item.icon, color: 'black' })))));
|
|
54
|
+
}
|
|
55
|
+
render() {
|
|
56
|
+
if (!this._data)
|
|
57
|
+
return;
|
|
58
|
+
return (h("ul", { class: "list" }, this._data.map((item) => (h("li", { key: item.key, class: 'item' +
|
|
59
|
+
(item.clickable ? ' clickable' : '') +
|
|
60
|
+
(item.toggleable ? ' toggleable' : '') +
|
|
61
|
+
(item.checked ? ' selected' : '') +
|
|
62
|
+
(item.active ? ' active' : ''), onClick: () => {
|
|
63
|
+
this.onRowClickHandler(item);
|
|
64
|
+
} }, this.renderListItem(item))))));
|
|
65
|
+
}
|
|
66
|
+
static get watchers() { return {
|
|
67
|
+
"data": ["onDataChange"]
|
|
68
|
+
}; }
|
|
69
|
+
static get style() { return tttxListCss; }
|
|
70
|
+
}, [1, "tttx-list_1_0_0", {
|
|
71
|
+
"data": [1025],
|
|
72
|
+
"name": [1],
|
|
73
|
+
"_data": [32]
|
|
74
|
+
}]);
|
|
75
|
+
function defineCustomElement() {
|
|
76
|
+
if (typeof customElements === "undefined") {
|
|
77
|
+
return;
|
|
78
|
+
}
|
|
79
|
+
const components = ["tttx-list_1_0_0", "tttx-icon_1_0_0"];
|
|
80
|
+
components.forEach(tagName => { switch (tagName) {
|
|
81
|
+
case "tttx-list_1_0_0":
|
|
82
|
+
if (!customElements.get(tagName)) {
|
|
83
|
+
customElements.define(tagName, TttxList);
|
|
84
|
+
}
|
|
85
|
+
break;
|
|
86
|
+
case "tttx-icon_1_0_0":
|
|
87
|
+
if (!customElements.get(tagName)) {
|
|
88
|
+
defineCustomElement$1();
|
|
89
|
+
}
|
|
90
|
+
break;
|
|
91
|
+
} });
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export { TttxList as T, defineCustomElement as d };
|
|
@@ -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 TttxList_1_0_0 extends Components.TttxList_1_0_0, HTMLElement {}
|
|
4
|
+
export const TttxList_1_0_0: {
|
|
5
|
+
prototype: TttxList_1_0_0;
|
|
6
|
+
new (): TttxList_1_0_0;
|
|
7
7
|
};
|
|
8
8
|
/**
|
|
9
9
|
* Used to define this component and all nested components recursively.
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface TttxLoadingSpinner_1_0_0 extends Components.TttxLoadingSpinner_1_0_0, HTMLElement {}
|
|
4
|
+
export const TttxLoadingSpinner_1_0_0: {
|
|
5
|
+
prototype: TttxLoadingSpinner_1_0_0;
|
|
6
|
+
new (): TttxLoadingSpinner_1_0_0;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -2,7 +2,7 @@ import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/clien
|
|
|
2
2
|
|
|
3
3
|
const tttxLoadingSpinnerCss = ".material-symbols-rounded{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}.loading-box{display:flex;align-items:center;justify-content:center}.loading-text{font-size:16px;font-weight:400;padding-top:10px;text-align:center}.spinner{border:solid #1479c6;border-bottom-color:#d5d5d5;border-radius:50%;position:relative;box-sizing:border-box;animation:rotation 1s linear infinite}.spinner.small{height:20px;width:20px;border-width:4px}.spinner.large{height:60px;width:60px;border-width:8px}@keyframes rotation{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}";
|
|
4
4
|
|
|
5
|
-
const TttxLoadingSpinner
|
|
5
|
+
const TttxLoadingSpinner = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
6
6
|
constructor() {
|
|
7
7
|
super();
|
|
8
8
|
this.__registerHost();
|
|
@@ -19,7 +19,7 @@ const TttxLoadingSpinner$1 = /*@__PURE__*/ proxyCustomElement(class extends HTML
|
|
|
19
19
|
return (h("div", null, h("div", { class: "loading-box" }, h("span", { class: `spinner ${this.size}` })), this.renderLoadingMessage()));
|
|
20
20
|
}
|
|
21
21
|
static get style() { return tttxLoadingSpinnerCss; }
|
|
22
|
-
}, [1, "tttx-loading-
|
|
22
|
+
}, [1, "tttx-loading-spinner_1_0_0", {
|
|
23
23
|
"loadingMessage": [1028, "loading-message"],
|
|
24
24
|
"size": [1025]
|
|
25
25
|
}]);
|
|
@@ -27,17 +27,17 @@ function defineCustomElement$1() {
|
|
|
27
27
|
if (typeof customElements === "undefined") {
|
|
28
28
|
return;
|
|
29
29
|
}
|
|
30
|
-
const components = ["tttx-loading-
|
|
30
|
+
const components = ["tttx-loading-spinner_1_0_0"];
|
|
31
31
|
components.forEach(tagName => { switch (tagName) {
|
|
32
|
-
case "tttx-loading-
|
|
32
|
+
case "tttx-loading-spinner_1_0_0":
|
|
33
33
|
if (!customElements.get(tagName)) {
|
|
34
|
-
customElements.define(tagName, TttxLoadingSpinner
|
|
34
|
+
customElements.define(tagName, TttxLoadingSpinner);
|
|
35
35
|
}
|
|
36
36
|
break;
|
|
37
37
|
} });
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
const
|
|
40
|
+
const TttxLoadingSpinner_1_0_0 = TttxLoadingSpinner;
|
|
41
41
|
const defineCustomElement = defineCustomElement$1;
|
|
42
42
|
|
|
43
|
-
export {
|
|
43
|
+
export { TttxLoadingSpinner_1_0_0, defineCustomElement };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface TttxMultiselectBox_1_0_0 extends Components.TttxMultiselectBox_1_0_0, HTMLElement {}
|
|
4
|
+
export const TttxMultiselectBox_1_0_0: {
|
|
5
|
+
prototype: TttxMultiselectBox_1_0_0;
|
|
6
|
+
new (): TttxMultiselectBox_1_0_0;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
2
2
|
import { p as purify, d as domSanitiserOptions } from './domsanitiser.options.js';
|
|
3
|
-
import { d as defineCustomElement$4 } from './tttx-
|
|
4
|
-
import { d as defineCustomElement$3 } from './tttx-
|
|
5
|
-
import { d as defineCustomElement$2 } from './tttx-standalone-
|
|
3
|
+
import { d as defineCustomElement$4 } from './tttx-button.js';
|
|
4
|
+
import { d as defineCustomElement$3 } from './tttx-icon.js';
|
|
5
|
+
import { d as defineCustomElement$2 } from './tttx-standalone-input.js';
|
|
6
6
|
|
|
7
7
|
const tttxMultiselectBoxCss = ".material-symbols-rounded{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}:host{display:flex;gap:4px}.label{font-size:16px;font-style:normal;font-weight:500;line-height:normal}:host(.inline) .label{padding-top:8px}:host(.block){flex-direction:column}.dropdown-container{position:relative;display:flex;flex-direction:column;width:100%}.dropdown-container:focus-visible{outline:none}.dropdown-container:focus .dropdown-selector{border:1px solid #1479c6}.dropdown-selector,.dropdown-body{display:flex;border-radius:4px;background-color:white}.dropdown-selector{align-items:center;gap:8px;padding:6px 8px 6px 16px;cursor:pointer;border:1px solid #d5d5d5}.dropdown-selector *{font-weight:400}.dropdown-selector-chevron{margin-left:auto;height:24px;align-self:flex-start}.dropdown-selector-chevron>tttx-icon{cursor:pointer}.dropdown-selector-html-content{display:flex;gap:8px;flex-wrap:wrap}.dropdown-body-container{position:relative}.dropdown-body{position:absolute;display:flex;flex-direction:column;box-shadow:0px 1px 5px #1111114D;padding-bottom:8px;border:1px solid #d5d5d5;width:100%}.dropdown-options-list{display:flex;flex-direction:column;overflow-y:auto;scrollbar-gutter:stable;max-height:288px}.dropdown-option{padding:6px 8px 6px 16px;cursor:pointer;display:flex;gap:8px}.dropdown-option .checkbox-icon{height:24px}.dropdown-option .plaintext-option{line-height:24px}.dropdown-option:hover{background-color:#1111110d}.dropdown-option:active,.dropdown-option.selected{background-color:#ebfbfc}.placeholder{color:#9e9e9e}.searchbox{padding:8px 16px 8px 16px;height:52px;box-sizing:border-box}.searchbox tttx-standalone-input{margin-top:-4px}.hidden{display:none}.footer{display:flex;gap:8px;flex-direction:row-reverse;padding:8px 16px 0 16px;border-top:1px solid #d5d5d5}";
|
|
8
8
|
|
|
9
|
-
const TttxMultiselectBox
|
|
9
|
+
const TttxMultiselectBox = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
10
10
|
constructor() {
|
|
11
11
|
super();
|
|
12
12
|
this.__registerHost();
|
|
@@ -88,11 +88,11 @@ const TttxMultiselectBox$1 = /*@__PURE__*/ proxyCustomElement(class extends HTML
|
|
|
88
88
|
const sanitisedHTML = purify.sanitize(option.html, domSanitiserOptions);
|
|
89
89
|
// This is tested in e2e tests
|
|
90
90
|
/* istanbul ignore next */
|
|
91
|
-
return (h("div", { class: `dropdown-option ${hideOption ? 'hidden' : ''} ${option.selected ? 'selected' : ''}`, onClick: this.onItemSelected.bind(this, option), key: option.label }, h("tttx-
|
|
91
|
+
return (h("div", { class: `dropdown-option ${hideOption ? 'hidden' : ''} ${option.selected ? 'selected' : ''}`, onClick: this.onItemSelected.bind(this, option), key: option.label }, h("tttx-icon_1_0_0", { icon: checkboxIcon, color: checkboxColor, class: 'checkbox-icon' }), h("div", { innerHTML: sanitisedHTML })));
|
|
92
92
|
}
|
|
93
93
|
// This is tested in e2e tests
|
|
94
94
|
/* istanbul ignore next */
|
|
95
|
-
return (h("div", { class: `dropdown-option ${hideOption ? 'hidden' : ''} ${option.selected ? 'selected' : ''}`, onClick: this.onItemSelected.bind(this, option), key: option.label }, h("tttx-
|
|
95
|
+
return (h("div", { class: `dropdown-option ${hideOption ? 'hidden' : ''} ${option.selected ? 'selected' : ''}`, onClick: this.onItemSelected.bind(this, option), key: option.label }, h("tttx-icon_1_0_0", { icon: checkboxIcon, color: checkboxColor, class: 'checkbox-icon' }), h("div", { class: "plaintext-option" }, option.label)));
|
|
96
96
|
}
|
|
97
97
|
// This is tested in e2e tests
|
|
98
98
|
/* istanbul ignore next */
|
|
@@ -124,18 +124,18 @@ const TttxMultiselectBox$1 = /*@__PURE__*/ proxyCustomElement(class extends HTML
|
|
|
124
124
|
if (!this.unsavedSelectedItems)
|
|
125
125
|
this.unsavedSelectedItems = this.safelyCloneArray(this._optionsData);
|
|
126
126
|
const chevronIcon = this.open ? 'expand_less' : 'expand_more';
|
|
127
|
-
return (h(Host, { class: this.inline ? 'inline' : 'block' }, this.label && h("div", { class: "label" }, this.label), h("div", { tabindex: "0", class: "dropdown-container" }, h("div", { class: "dropdown-selector", onClick: this.onDropdownClicked.bind(this) }, this.dropdownSelectorContent(), h("div", { class: "dropdown-selector-chevron" }, h("tttx-
|
|
127
|
+
return (h(Host, { class: this.inline ? 'inline' : 'block' }, this.label && h("div", { class: "label" }, this.label), h("div", { tabindex: "0", class: "dropdown-container" }, h("div", { class: "dropdown-selector", onClick: this.onDropdownClicked.bind(this) }, this.dropdownSelectorContent(), h("div", { class: "dropdown-selector-chevron" }, h("tttx-icon_1_0_0", { icon: chevronIcon, color: "black" }))), this.open && (h("div", { class: "dropdown-body-container" }, h("div", { class: "dropdown-body", style: Object.assign({}, this.bodyOffset) }, this.searchEnabled &&
|
|
128
128
|
/* istanbul ignore next */
|
|
129
|
-
h("div", { class: "searchbox" }, h("tttx-standalone-
|
|
129
|
+
h("div", { class: "searchbox" }, h("tttx-standalone-input_1_0_0", { type: "text", placeholder: 'Search', label: "", required: true, showerrorbubble: false, iconleft: 'search', onInput: this.handleSearchInput.bind(this), inline: true })), h("div", { class: "dropdown-options-list" }, this.unsavedSelectedItems.map((option) => {
|
|
130
130
|
return this.dropdownOption(option);
|
|
131
|
-
})), h("div", { class: 'footer' }, h("tttx-
|
|
131
|
+
})), h("div", { class: 'footer' }, h("tttx-button_1_0_0", { design: "primary", onClick: this.applyChanges.bind(this) }, "Apply"), h("tttx-button_1_0_0", { onClick: this.onCancel.bind(this) }, "Cancel"))))))));
|
|
132
132
|
}
|
|
133
133
|
get el() { return this; }
|
|
134
134
|
static get watchers() { return {
|
|
135
135
|
"optionsData": ["handleOptionsDataChange"]
|
|
136
136
|
}; }
|
|
137
137
|
static get style() { return tttxMultiselectBoxCss; }
|
|
138
|
-
}, [1, "tttx-multiselect-
|
|
138
|
+
}, [1, "tttx-multiselect-box_1_0_0", {
|
|
139
139
|
"optionsData": [1, "options-data"],
|
|
140
140
|
"label": [1],
|
|
141
141
|
"inline": [4],
|
|
@@ -151,24 +151,24 @@ function defineCustomElement$1() {
|
|
|
151
151
|
if (typeof customElements === "undefined") {
|
|
152
152
|
return;
|
|
153
153
|
}
|
|
154
|
-
const components = ["tttx-multiselect-
|
|
154
|
+
const components = ["tttx-multiselect-box_1_0_0", "tttx-button_1_0_0", "tttx-icon_1_0_0", "tttx-standalone-input_1_0_0"];
|
|
155
155
|
components.forEach(tagName => { switch (tagName) {
|
|
156
|
-
case "tttx-multiselect-
|
|
156
|
+
case "tttx-multiselect-box_1_0_0":
|
|
157
157
|
if (!customElements.get(tagName)) {
|
|
158
|
-
customElements.define(tagName, TttxMultiselectBox
|
|
158
|
+
customElements.define(tagName, TttxMultiselectBox);
|
|
159
159
|
}
|
|
160
160
|
break;
|
|
161
|
-
case "tttx-
|
|
161
|
+
case "tttx-button_1_0_0":
|
|
162
162
|
if (!customElements.get(tagName)) {
|
|
163
163
|
defineCustomElement$4();
|
|
164
164
|
}
|
|
165
165
|
break;
|
|
166
|
-
case "tttx-
|
|
166
|
+
case "tttx-icon_1_0_0":
|
|
167
167
|
if (!customElements.get(tagName)) {
|
|
168
168
|
defineCustomElement$3();
|
|
169
169
|
}
|
|
170
170
|
break;
|
|
171
|
-
case "tttx-standalone-
|
|
171
|
+
case "tttx-standalone-input_1_0_0":
|
|
172
172
|
if (!customElements.get(tagName)) {
|
|
173
173
|
defineCustomElement$2();
|
|
174
174
|
}
|
|
@@ -176,7 +176,7 @@ function defineCustomElement$1() {
|
|
|
176
176
|
} });
|
|
177
177
|
}
|
|
178
178
|
|
|
179
|
-
const
|
|
179
|
+
const TttxMultiselectBox_1_0_0 = TttxMultiselectBox;
|
|
180
180
|
const defineCustomElement = defineCustomElement$1;
|
|
181
181
|
|
|
182
|
-
export {
|
|
182
|
+
export { TttxMultiselectBox_1_0_0, defineCustomElement };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface TttxPercentageBar_1_0_0 extends Components.TttxPercentageBar_1_0_0, HTMLElement {}
|
|
4
|
+
export const TttxPercentageBar_1_0_0: {
|
|
5
|
+
prototype: TttxPercentageBar_1_0_0;
|
|
6
|
+
new (): TttxPercentageBar_1_0_0;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
2
2
|
|
|
3
|
-
const tttxPercentageBarCss = ".sc-tttx-percentage-
|
|
3
|
+
const tttxPercentageBarCss = ".sc-tttx-percentage-bar_1_0_0-h{display:block}.progress.sc-tttx-percentage-bar_1_0_0{width:100%;background-color:#dbdbdb}.progress.sc-tttx-percentage-bar_1_0_0 .bar.sc-tttx-percentage-bar_1_0_0{height:20px}";
|
|
4
4
|
|
|
5
|
-
const TttxPercentageBar
|
|
5
|
+
const TttxPercentageBar = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
6
6
|
constructor() {
|
|
7
7
|
super();
|
|
8
8
|
this.__registerHost();
|
|
@@ -57,7 +57,7 @@ const TttxPercentageBar$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLE
|
|
|
57
57
|
return (h(Host, null, h("div", { class: "progress" }, h("div", { class: "bar", style: { 'background-color': this.getColour(), 'width': `${this.getWidth()}%` }, role: "progressbar", "aria-valuemin": this._min, "aria-valuemax": "100", "aria-valuenow": this._percentage, "aria-labelledby": this.labelid }))));
|
|
58
58
|
}
|
|
59
59
|
static get style() { return tttxPercentageBarCss; }
|
|
60
|
-
}, [2, "tttx-percentage-
|
|
60
|
+
}, [2, "tttx-percentage-bar_1_0_0", {
|
|
61
61
|
"percentage": [8],
|
|
62
62
|
"thresholds": [1],
|
|
63
63
|
"color": [1],
|
|
@@ -71,17 +71,17 @@ function defineCustomElement$1() {
|
|
|
71
71
|
if (typeof customElements === "undefined") {
|
|
72
72
|
return;
|
|
73
73
|
}
|
|
74
|
-
const components = ["tttx-percentage-
|
|
74
|
+
const components = ["tttx-percentage-bar_1_0_0"];
|
|
75
75
|
components.forEach(tagName => { switch (tagName) {
|
|
76
|
-
case "tttx-percentage-
|
|
76
|
+
case "tttx-percentage-bar_1_0_0":
|
|
77
77
|
if (!customElements.get(tagName)) {
|
|
78
|
-
customElements.define(tagName, TttxPercentageBar
|
|
78
|
+
customElements.define(tagName, TttxPercentageBar);
|
|
79
79
|
}
|
|
80
80
|
break;
|
|
81
81
|
} });
|
|
82
82
|
}
|
|
83
83
|
|
|
84
|
-
const
|
|
84
|
+
const TttxPercentageBar_1_0_0 = TttxPercentageBar;
|
|
85
85
|
const defineCustomElement = defineCustomElement$1;
|
|
86
86
|
|
|
87
|
-
export {
|
|
87
|
+
export { TttxPercentageBar_1_0_0, defineCustomElement };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface TttxQrcode_1_0_0 extends Components.TttxQrcode_1_0_0, HTMLElement {}
|
|
4
|
+
export const TttxQrcode_1_0_0: {
|
|
5
|
+
prototype: TttxQrcode_1_0_0;
|
|
6
|
+
new (): TttxQrcode_1_0_0;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -36,7 +36,7 @@ const TttxQrCode = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
36
36
|
}
|
|
37
37
|
get hostElement() { return this; }
|
|
38
38
|
static get style() { return tttxQrcodeCss; }
|
|
39
|
-
}, [1, "tttx-
|
|
39
|
+
}, [1, "tttx-qrcode_1_0_0", {
|
|
40
40
|
"link": [1025],
|
|
41
41
|
"size": [1026]
|
|
42
42
|
}]);
|
|
@@ -44,9 +44,9 @@ function defineCustomElement$1() {
|
|
|
44
44
|
if (typeof customElements === "undefined") {
|
|
45
45
|
return;
|
|
46
46
|
}
|
|
47
|
-
const components = ["tttx-
|
|
47
|
+
const components = ["tttx-qrcode_1_0_0"];
|
|
48
48
|
components.forEach(tagName => { switch (tagName) {
|
|
49
|
-
case "tttx-
|
|
49
|
+
case "tttx-qrcode_1_0_0":
|
|
50
50
|
if (!customElements.get(tagName)) {
|
|
51
51
|
customElements.define(tagName, TttxQrCode);
|
|
52
52
|
}
|
|
@@ -54,7 +54,7 @@ function defineCustomElement$1() {
|
|
|
54
54
|
} });
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
-
const
|
|
57
|
+
const TttxQrcode_1_0_0 = TttxQrCode;
|
|
58
58
|
const defineCustomElement = defineCustomElement$1;
|
|
59
59
|
|
|
60
|
-
export {
|
|
60
|
+
export { TttxQrcode_1_0_0, defineCustomElement };
|