@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,11 +0,0 @@
|
|
|
1
|
-
import type { Components, JSX } from "../types/components";
|
|
2
|
-
|
|
3
|
-
interface TttxList extends Components.TttxList, HTMLElement {}
|
|
4
|
-
export const TttxList: {
|
|
5
|
-
prototype: TttxList;
|
|
6
|
-
new (): TttxList;
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* Used to define this component and all nested components recursively.
|
|
10
|
-
*/
|
|
11
|
-
export const defineCustomElement: () => void;
|
|
@@ -1,94 +0,0 @@
|
|
|
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-icon2.js';
|
|
4
|
-
|
|
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}";
|
|
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", { 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", { 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", {
|
|
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", "tttx-icon"];
|
|
80
|
-
components.forEach(tagName => { switch (tagName) {
|
|
81
|
-
case "tttx-list":
|
|
82
|
-
if (!customElements.get(tagName)) {
|
|
83
|
-
customElements.define(tagName, TttxList);
|
|
84
|
-
}
|
|
85
|
-
break;
|
|
86
|
-
case "tttx-icon":
|
|
87
|
-
if (!customElements.get(tagName)) {
|
|
88
|
-
defineCustomElement$1();
|
|
89
|
-
}
|
|
90
|
-
break;
|
|
91
|
-
} });
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
export { TttxList as T, defineCustomElement as d };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Components, JSX } from "../types/components";
|
|
2
|
-
|
|
3
|
-
interface TttxLoadingSpinner extends Components.TttxLoadingSpinner, HTMLElement {}
|
|
4
|
-
export const TttxLoadingSpinner: {
|
|
5
|
-
prototype: TttxLoadingSpinner;
|
|
6
|
-
new (): TttxLoadingSpinner;
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* Used to define this component and all nested components recursively.
|
|
10
|
-
*/
|
|
11
|
-
export const defineCustomElement: () => void;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Components, JSX } from "../types/components";
|
|
2
|
-
|
|
3
|
-
interface TttxMultiselectBox extends Components.TttxMultiselectBox, HTMLElement {}
|
|
4
|
-
export const TttxMultiselectBox: {
|
|
5
|
-
prototype: TttxMultiselectBox;
|
|
6
|
-
new (): TttxMultiselectBox;
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* Used to define this component and all nested components recursively.
|
|
10
|
-
*/
|
|
11
|
-
export const defineCustomElement: () => void;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Components, JSX } from "../types/components";
|
|
2
|
-
|
|
3
|
-
interface TttxPercentageBar extends Components.TttxPercentageBar, HTMLElement {}
|
|
4
|
-
export const TttxPercentageBar: {
|
|
5
|
-
prototype: TttxPercentageBar;
|
|
6
|
-
new (): TttxPercentageBar;
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* Used to define this component and all nested components recursively.
|
|
10
|
-
*/
|
|
11
|
-
export const defineCustomElement: () => void;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Components, JSX } from "../types/components";
|
|
2
|
-
|
|
3
|
-
interface TttxQrcode extends Components.TttxQrcode, HTMLElement {}
|
|
4
|
-
export const TttxQrcode: {
|
|
5
|
-
prototype: TttxQrcode;
|
|
6
|
-
new (): TttxQrcode;
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* Used to define this component and all nested components recursively.
|
|
10
|
-
*/
|
|
11
|
-
export const defineCustomElement: () => void;
|
|
@@ -1,171 +0,0 @@
|
|
|
1
|
-
import { proxyCustomElement, HTMLElement, createEvent, h, Fragment, Host } from '@stencil/core/internal/client';
|
|
2
|
-
import { p as purify, d as domSanitiserOptions } from './domsanitiser.options.js';
|
|
3
|
-
import { d as defineCustomElement$2 } from './tttx-icon2.js';
|
|
4
|
-
import { d as defineCustomElement$1 } from './tttx-standalone-input2.js';
|
|
5
|
-
|
|
6
|
-
const tttxSelectBoxCss = ".material-symbols-rounded{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}:host{display:flex;gap:4px}.label{font-size:16px;font-weight:500;line-height:18.752px;color:#212121}: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{min-height:36px;box-sizing:border-box;align-items:center;gap:8px;padding:4px 8px 4px 16px;cursor:pointer;justify-content:space-between;border:1px solid #d5d5d5;display:flex;flex-direction:row}.dropdown-selector>.left-wrapper{flex:1;min-width:0}.dropdown-selector *{font-weight:400}.description{color:#757575;font-size:14px;line-height:16.408px}.description>p{margin:0}.description-dd{color:#757575;font-size:14px;line-height:16.408px}.description-dd>p{margin:0}.truncated-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#212121;font-size:16px;line-height:18.752px}.dropdown-selector-chevron{height:24px}.dropdown-selector-chevron-offset{height:24px}.dropdown-selector-chevron>tttx-icon{cursor:pointer}.dropdown-body-container{position:relative;z-index:2}.dropdown-body{position:absolute;flex-direction:column;box-shadow:0px 1px 5px #1111114D;padding-bottom:8px;border:1px solid #d5d5d5}.dropdown-options-list{display:flex;flex-direction:column;overflow-y:auto;max-height:368px}.dropdown-option{padding:6px 8px 6px 16px;cursor:pointer}.dropdown-option:hover{background-color:#1111110d}.dropdown-option:active,.dropdown-option.selected{background-color:#ebfbfc}.placeholder{color:#9e9e9e;white-space:nowrap;overflow-x:hidden;text-overflow:ellipsis}.searchbox{padding:8px 16px}.searchbox tttx-standalone-input{margin-top:-4px}.hidden{display:none}";
|
|
7
|
-
|
|
8
|
-
const TttxSelectBox = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
9
|
-
constructor() {
|
|
10
|
-
super();
|
|
11
|
-
this.__registerHost();
|
|
12
|
-
this.__attachShadow();
|
|
13
|
-
this.selectItemEvent = createEvent(this, "selectItemEvent", 3);
|
|
14
|
-
this.toggleOpen = createEvent(this, "toggleOpen", 3);
|
|
15
|
-
this.bodyOffset = {};
|
|
16
|
-
this.optionsData = null;
|
|
17
|
-
this.label = undefined;
|
|
18
|
-
this.inline = undefined;
|
|
19
|
-
this.placeholder = '';
|
|
20
|
-
this.searchEnabled = undefined;
|
|
21
|
-
this.selectedValue = undefined;
|
|
22
|
-
this.open = false;
|
|
23
|
-
this.selectedItem = undefined;
|
|
24
|
-
this.searchTerm = '';
|
|
25
|
-
}
|
|
26
|
-
async componentWillLoad() {
|
|
27
|
-
if (this.optionsData) {
|
|
28
|
-
this.setOptionsData();
|
|
29
|
-
const matchingItems = this._optionsData.filter((item) => { return item.value == this.selectedValue; });
|
|
30
|
-
this.selectedItem = (matchingItems.length > 0) ? matchingItems[0] : undefined;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
async setOptionsData() {
|
|
34
|
-
this._optionsData = typeof this.optionsData === 'string' ? JSON.parse(this.optionsData) : this.optionsData;
|
|
35
|
-
}
|
|
36
|
-
async setSelectedItem(value) {
|
|
37
|
-
if (!value)
|
|
38
|
-
return;
|
|
39
|
-
const item = this._optionsData.find(x => x.value.toLowerCase() === value.toLowerCase());
|
|
40
|
-
if (!item)
|
|
41
|
-
return;
|
|
42
|
-
this.selectedValue = item.value;
|
|
43
|
-
this.selectedItem = item;
|
|
44
|
-
}
|
|
45
|
-
handleCloseSelectBox() {
|
|
46
|
-
this.open = false;
|
|
47
|
-
}
|
|
48
|
-
handleBlur() {
|
|
49
|
-
this.open = false;
|
|
50
|
-
this.toggleOpen.emit(false);
|
|
51
|
-
}
|
|
52
|
-
onDropdownClicked() {
|
|
53
|
-
this.open = !this.open;
|
|
54
|
-
this.searchTerm = '';
|
|
55
|
-
this.calculateDropdownMenuOffset();
|
|
56
|
-
this.toggleOpen.emit(this.open);
|
|
57
|
-
}
|
|
58
|
-
onItemSelected(option) {
|
|
59
|
-
this.selectedItem = option;
|
|
60
|
-
this.selectItemEvent.emit(this.selectedItem);
|
|
61
|
-
this.handleBlur();
|
|
62
|
-
}
|
|
63
|
-
dropdownSelectorContent() {
|
|
64
|
-
let title;
|
|
65
|
-
let subtitle;
|
|
66
|
-
const chevronIcon = this.open ? 'expand_less' : 'expand_more';
|
|
67
|
-
const icon = h("tttx-icon", { icon: chevronIcon, color: "black" });
|
|
68
|
-
let chevron = h("div", { class: 'dropdown-selector-chevron' }, icon);
|
|
69
|
-
if (!this.selectedItem) {
|
|
70
|
-
title = h("div", { class: "placeholder" }, this.placeholder);
|
|
71
|
-
return h(Fragment, null, title, chevron);
|
|
72
|
-
}
|
|
73
|
-
else if (this.selectedItem.html) {
|
|
74
|
-
title = h("div", { title: this.selectedItem.label, class: "truncated-text", innerHTML: this.selectedItem.html });
|
|
75
|
-
return h(Fragment, null, title, chevron);
|
|
76
|
-
}
|
|
77
|
-
else {
|
|
78
|
-
title = h("div", { title: this.selectedItem.label, class: "truncated-text" }, this.selectedItem.label);
|
|
79
|
-
if (this.selectedItem.description) {
|
|
80
|
-
subtitle = h("div", { class: "description" }, h("p", null, this.selectedItem.description));
|
|
81
|
-
chevron = h("div", { class: 'dropdown-selector-chevron-offset' }, icon);
|
|
82
|
-
}
|
|
83
|
-
return h(Fragment, null, h("div", { class: "left-wrapper" }, title, subtitle), chevron);
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
dropdownOption(option) {
|
|
87
|
-
/* istanbul ignore next */
|
|
88
|
-
const hideOption = this.searchEnabled && option.label.toLowerCase().indexOf(this.searchTerm.toLowerCase()) === -1;
|
|
89
|
-
const selected = this.selectedItem && option.value === this.selectedItem.value;
|
|
90
|
-
if (option.html) {
|
|
91
|
-
const sanitisedHTML = purify.sanitize(option.html, domSanitiserOptions);
|
|
92
|
-
/* istanbul ignore next */
|
|
93
|
-
return (h("div", { class: `dropdown-option ${hideOption ? 'hidden' : ''} ${selected ? 'selected' : ''}`, onClick: this.onItemSelected.bind(this, option), key: option.label, innerHTML: sanitisedHTML }));
|
|
94
|
-
}
|
|
95
|
-
else if (option.description) {
|
|
96
|
-
return (h("div", { class: `dropdown-option ${hideOption ? 'hidden' : ''} ${selected ? 'selected' : ''}`, onClick: this.onItemSelected.bind(this, option), key: option.label }, option.label, h("div", { class: "description-dd" }, h("p", null, option.description))));
|
|
97
|
-
}
|
|
98
|
-
/* istanbul ignore next */
|
|
99
|
-
return (h("div", { class: `dropdown-option ${hideOption ? 'hidden' : ''} ${selected ? 'selected' : ''}`, onClick: this.onItemSelected.bind(this, option), key: option.label }, option.label));
|
|
100
|
-
}
|
|
101
|
-
/* istanbul ignore next */
|
|
102
|
-
handleSearchInput(event) {
|
|
103
|
-
const target = event.target;
|
|
104
|
-
this.searchTerm = target.value;
|
|
105
|
-
}
|
|
106
|
-
calculateDropdownMenuOffset() {
|
|
107
|
-
const dropdownSelector = this.el.shadowRoot.querySelector('.dropdown-selector');
|
|
108
|
-
const bottomPosY = this.dropdownSelector.getBoundingClientRect().bottom;
|
|
109
|
-
// (Max list height OR 31px * number of items) + 52px for search bar + 8px padding at bottom
|
|
110
|
-
let dropdownMenuMaxHeight = Math.min((368), 36 * this._optionsData.length) + 8;
|
|
111
|
-
if (this.searchEnabled)
|
|
112
|
-
dropdownMenuMaxHeight += 52;
|
|
113
|
-
const clientRectangle = dropdownSelector.getBoundingClientRect();
|
|
114
|
-
if (bottomPosY + dropdownMenuMaxHeight > window.innerHeight) {
|
|
115
|
-
this.bodyOffset = { top: `${window.innerHeight - (dropdownMenuMaxHeight + 16)}px`, position: 'fixed', width: `${dropdownSelector.offsetWidth}px`, zIndex: '10' };
|
|
116
|
-
}
|
|
117
|
-
else {
|
|
118
|
-
this.bodyOffset = { position: 'fixed', left: clientRectangle.left, top: clientRectangle.top, width: (clientRectangle.width - 2) + 'px', zIndex: '10' };
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
render() {
|
|
122
|
-
if (!this.optionsData)
|
|
123
|
-
return;
|
|
124
|
-
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", ref: (el) => this.dropdownSelector = el, onClick: this.onDropdownClicked.bind(this) }, this.dropdownSelectorContent()), this.open && (h("div", { class: "dropdown-body-container" }, h("div", { class: "dropdown-body", style: Object.assign({ width: `${this.dropdownSelector.offsetWidth}px` }, this.bodyOffset) }, this.searchEnabled &&
|
|
125
|
-
/* istanbul ignore next */
|
|
126
|
-
h("div", { class: "searchbox" }, h("tttx-standalone-input", { type: "text", label: "", required: true, showerrorbubble: false, iconleft: 'search', onInput: this.handleSearchInput.bind(this) })), h("div", { class: "dropdown-options-list" }, this._optionsData.map((option) => {
|
|
127
|
-
return this.dropdownOption(option);
|
|
128
|
-
}))))))));
|
|
129
|
-
}
|
|
130
|
-
get el() { return this; }
|
|
131
|
-
static get watchers() { return {
|
|
132
|
-
"optionsData": ["setOptionsData"]
|
|
133
|
-
}; }
|
|
134
|
-
static get style() { return tttxSelectBoxCss; }
|
|
135
|
-
}, [1, "tttx-select-box", {
|
|
136
|
-
"optionsData": [1, "options-data"],
|
|
137
|
-
"label": [1],
|
|
138
|
-
"inline": [4],
|
|
139
|
-
"placeholder": [1],
|
|
140
|
-
"searchEnabled": [4, "search-enabled"],
|
|
141
|
-
"selectedValue": [1, "selected-value"],
|
|
142
|
-
"open": [32],
|
|
143
|
-
"selectedItem": [32],
|
|
144
|
-
"searchTerm": [32],
|
|
145
|
-
"setSelectedItem": [64]
|
|
146
|
-
}, [[0, "closeSelectBox", "handleCloseSelectBox"], [0, "blur", "handleBlur"]]]);
|
|
147
|
-
function defineCustomElement() {
|
|
148
|
-
if (typeof customElements === "undefined") {
|
|
149
|
-
return;
|
|
150
|
-
}
|
|
151
|
-
const components = ["tttx-select-box", "tttx-icon", "tttx-standalone-input"];
|
|
152
|
-
components.forEach(tagName => { switch (tagName) {
|
|
153
|
-
case "tttx-select-box":
|
|
154
|
-
if (!customElements.get(tagName)) {
|
|
155
|
-
customElements.define(tagName, TttxSelectBox);
|
|
156
|
-
}
|
|
157
|
-
break;
|
|
158
|
-
case "tttx-icon":
|
|
159
|
-
if (!customElements.get(tagName)) {
|
|
160
|
-
defineCustomElement$2();
|
|
161
|
-
}
|
|
162
|
-
break;
|
|
163
|
-
case "tttx-standalone-input":
|
|
164
|
-
if (!customElements.get(tagName)) {
|
|
165
|
-
defineCustomElement$1();
|
|
166
|
-
}
|
|
167
|
-
break;
|
|
168
|
-
} });
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
export { TttxSelectBox as T, defineCustomElement as d };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Components, JSX } from "../types/components";
|
|
2
|
-
|
|
3
|
-
interface TttxSorter extends Components.TttxSorter, HTMLElement {}
|
|
4
|
-
export const TttxSorter: {
|
|
5
|
-
prototype: TttxSorter;
|
|
6
|
-
new (): TttxSorter;
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* Used to define this component and all nested components recursively.
|
|
10
|
-
*/
|
|
11
|
-
export const defineCustomElement: () => void;
|
|
@@ -1,144 +0,0 @@
|
|
|
1
|
-
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
2
|
-
import { d as defineCustomElement$1 } from './tttx-icon2.js';
|
|
3
|
-
|
|
4
|
-
const tttxSorterCss = ".material-symbols-rounded{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}.sorter-container{display:flex;flex-direction:row;position:relative;border:1px solid #d5d5d5;border-radius:4px;font-weight:400;box-sizing:border-box;height:36px;cursor:pointer;width:220px}@media (max-width: 475px){.sorter-container{width:68px}}.sorter-container .arrow-toggle-button{display:inline-flex;justify-content:center;align-items:center;flex-direction:column;background-color:white;border:none;border-bottom-left-radius:4px;border-top-left-radius:4px}@media (max-width: 475px){.sorter-container .arrow-toggle-button{padding-right:0px;padding-left:8px}}.sorter-container .arrow-toggle-button .hydrated{display:flex;justify-content:center;align-items:center;cursor:pointer}.sorter-container .arrow-toggle-button span{display:block;margin:auto;line-height:16px}.sorter-container .arrow-toggle-button .material-symbols-rounded{color:#212121}.sorter-container .dropdown-selector{display:inline-flex;position:relative;flex-grow:1}.sorter-container .dropdown-selector .dropdown-selector-button{display:inline-flex;flex-direction:row;gap:4px;padding-right:4px;align-items:center;color:#212121;width:100%}@media (max-width: 475px){.sorter-container .dropdown-selector .dropdown-selector-button .dropdown-selector-text{display:none}}.sorter-container .dropdown-selector .dropdown-selector-chevron{display:inline-flex;margin-left:auto;right:0;top:0;flex-direction:row;align-items:center;height:36px}.sorter-container .dropdown-selector .dropdown-selector-chevron .hydrated{height:24px;cursor:pointer}@media (max-width: 475px){.sorter-container .dropdown-selector .dropdown-selector-chevron{padding-right:2px}}.sorter-container .dropdown-options-list{position:absolute;top:36px;left:0;z-index:1;width:220px;line-height:21px;font-size:16px;border-radius:4px;padding-top:8px;padding-bottom:7px;box-shadow:0px 1px 5px #1111114D;box-sizing:border-box;background-color:white}@media (max-width: 475px){.sorter-container .dropdown-options-list{width:220px;padding-top:8px}}.sorter-container .dropdown-options-list .dropdown-option{padding:8px 16px;font-size:16px;line-height:21px}.sorter-container .dropdown-options-list .dropdown-option:hover,.sorter-container .dropdown-options-list .dropdown-option:focus{background-color:#ebfbfc}.sorter-container.--expanded{border-color:#1579c6}@media (max-width: 475px){.sorter-container.--expanded{border:none}}";
|
|
5
|
-
|
|
6
|
-
const TttxSorter = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
7
|
-
constructor() {
|
|
8
|
-
super();
|
|
9
|
-
this.__registerHost();
|
|
10
|
-
this.__attachShadow();
|
|
11
|
-
this.sorterChangeEvent = createEvent(this, "sorterChangeEvent", 7);
|
|
12
|
-
this.toggleSorter = createEvent(this, "toggleSorter", 7);
|
|
13
|
-
this.sorterKey = undefined;
|
|
14
|
-
this.defaultSortDirection = 'descending';
|
|
15
|
-
this.fieldOptionsData = null;
|
|
16
|
-
this.defaultOption = '';
|
|
17
|
-
this.selectedField = this.defaultOption;
|
|
18
|
-
this.sortDirection = this.defaultSortDirection;
|
|
19
|
-
this.dropdownExpand = false;
|
|
20
|
-
this.dropdownOptions = undefined;
|
|
21
|
-
}
|
|
22
|
-
handleCloseSorter() {
|
|
23
|
-
this.dropdownExpand = false;
|
|
24
|
-
}
|
|
25
|
-
emitSortEvent() {
|
|
26
|
-
this.sorterChangeEvent.emit({
|
|
27
|
-
sorterDirection: this.sortDirection,
|
|
28
|
-
sorterKey: this.sorterKey,
|
|
29
|
-
sortField: this.selectedField,
|
|
30
|
-
});
|
|
31
|
-
}
|
|
32
|
-
onSortToggleClick(event) {
|
|
33
|
-
event.preventDefault();
|
|
34
|
-
if (this.sortDirection == 'ascending') {
|
|
35
|
-
this.sortDirection = 'descending';
|
|
36
|
-
}
|
|
37
|
-
else {
|
|
38
|
-
this.sortDirection = 'ascending';
|
|
39
|
-
}
|
|
40
|
-
this.emitSortEvent();
|
|
41
|
-
}
|
|
42
|
-
onDropdownClicked() {
|
|
43
|
-
this.dropdownExpand = !this.dropdownExpand;
|
|
44
|
-
this.toggleSorter.emit(this.dropdownExpand);
|
|
45
|
-
}
|
|
46
|
-
onDropdownSelected(event) {
|
|
47
|
-
this.dropdownExpand = false;
|
|
48
|
-
const target = event.target;
|
|
49
|
-
this.selectedField = target.innerHTML;
|
|
50
|
-
this.emitSortEvent();
|
|
51
|
-
this.toggleSorter.emit(this.dropdownExpand);
|
|
52
|
-
}
|
|
53
|
-
// getOptionsList() {
|
|
54
|
-
// return this.el.shadowRoot.querySelectorAll('.dropdown-option');
|
|
55
|
-
// }
|
|
56
|
-
// /* istanbul ignore next */
|
|
57
|
-
// @Listen('keyup')
|
|
58
|
-
// handleKeyDown(ev: KeyboardEvent) {
|
|
59
|
-
// const keyboardEventValue = ev.key;
|
|
60
|
-
// if (document.activeElement.id != `sorter__${this.sorterKey}`) return;
|
|
61
|
-
// switch (keyboardEventValue) {
|
|
62
|
-
// case 'Enter':
|
|
63
|
-
// if (this._focussedElementIndex > -1) {
|
|
64
|
-
// const options = this.el.shadowRoot.querySelectorAll('.dropdown-option');
|
|
65
|
-
// this.selectedField = options[this._focussedElementIndex].innerHTML;
|
|
66
|
-
// this.emitSortEvent();
|
|
67
|
-
// }
|
|
68
|
-
// this.dropdownExpand = false;
|
|
69
|
-
// break;
|
|
70
|
-
// case 'Escape':
|
|
71
|
-
// this.dropdownExpand = false;
|
|
72
|
-
// break;
|
|
73
|
-
// case 'ArrowDown':
|
|
74
|
-
// this.dropdownExpand = true;
|
|
75
|
-
// if (this._focussedElementIndex > -1) {
|
|
76
|
-
// const options = this.getOptionsList();
|
|
77
|
-
// const currentOption = options[this._focussedElementIndex] as HTMLElement;
|
|
78
|
-
// currentOption.blur();
|
|
79
|
-
// options[this._focussedElementIndex].focus();
|
|
80
|
-
// this._focussedElementIndex + 1 < options.length ? this._focussedElementIndex++ : (this._focussedElementIndex = 0);
|
|
81
|
-
// } else {
|
|
82
|
-
// this._focussedElementIndex++;
|
|
83
|
-
// }
|
|
84
|
-
// break;
|
|
85
|
-
// case 'ArrowUp':
|
|
86
|
-
// this.dropdownExpand = true;
|
|
87
|
-
// if (this._focussedElementIndex == -1) {
|
|
88
|
-
// const options = this.getOptionsList();
|
|
89
|
-
// this._focussedElementIndex = options.length - 1;
|
|
90
|
-
// } else {
|
|
91
|
-
// const options = this.getOptionsList();
|
|
92
|
-
// const currentOption = options[this._focussedElementIndex] as HTMLElement;
|
|
93
|
-
// currentOption.blur();
|
|
94
|
-
// this._focussedElementIndex > 0 ? this._focussedElementIndex-- : (this._focussedElementIndex = options.length - 1);
|
|
95
|
-
// options[this._focussedElementIndex].focus();
|
|
96
|
-
// }
|
|
97
|
-
// break;
|
|
98
|
-
// }
|
|
99
|
-
// }
|
|
100
|
-
render() {
|
|
101
|
-
const parsedFieldOptionsData = typeof this.fieldOptionsData === 'string' ? JSON.parse(this.fieldOptionsData) : this.fieldOptionsData;
|
|
102
|
-
if (!this.fieldOptionsData)
|
|
103
|
-
return;
|
|
104
|
-
const arrowIcon = this.sortDirection == 'ascending' ? 'arrow_upward' : 'arrow_downward';
|
|
105
|
-
const chevronIcon = this.dropdownExpand ? 'expand_less' : 'expand_more';
|
|
106
|
-
const selectedOption = this.selectedField;
|
|
107
|
-
const dropdownSelectorClassNameModifier = this.dropdownExpand ? '--expanded' : '';
|
|
108
|
-
const sorterKey = `sorter__${this.sorterKey}`;
|
|
109
|
-
return (h(Host, { id: sorterKey }, h("div", { tabindex: 0, class: `sorter-container ${dropdownSelectorClassNameModifier}` }, h("button", { class: "arrow-toggle-button", type: "button", onClick: this.onSortToggleClick.bind(this) }, h("tttx-icon", { icon: arrowIcon, color: "black" })), h("div", { class: "dropdown-selector", onClick: this.onDropdownClicked.bind(this) }, h("div", { class: "dropdown-selector-button" }, h("div", { class: "dropdown-selector-text" }, selectedOption), h("div", { class: "dropdown-selector-chevron" }, h("tttx-icon", { icon: chevronIcon, color: "black" })))), this.dropdownExpand && (h("div", { class: "dropdown-options-list" }, parsedFieldOptionsData.sorterOptions.map(option => {
|
|
110
|
-
return (h("div", { class: "dropdown-option", tabIndex: -1, onClick: this.onDropdownSelected.bind(this), key: option.optionLabel }, option.optionLabel));
|
|
111
|
-
}))))));
|
|
112
|
-
}
|
|
113
|
-
get el() { return this; }
|
|
114
|
-
static get style() { return tttxSorterCss; }
|
|
115
|
-
}, [1, "tttx-sorter", {
|
|
116
|
-
"sorterKey": [1, "sorter-key"],
|
|
117
|
-
"defaultSortDirection": [1, "default-sort-direction"],
|
|
118
|
-
"fieldOptionsData": [1, "field-options-data"],
|
|
119
|
-
"defaultOption": [1, "default-option"],
|
|
120
|
-
"selectedField": [32],
|
|
121
|
-
"sortDirection": [32],
|
|
122
|
-
"dropdownExpand": [32],
|
|
123
|
-
"dropdownOptions": [32]
|
|
124
|
-
}, [[0, "closeSorter", "handleCloseSorter"]]]);
|
|
125
|
-
function defineCustomElement() {
|
|
126
|
-
if (typeof customElements === "undefined") {
|
|
127
|
-
return;
|
|
128
|
-
}
|
|
129
|
-
const components = ["tttx-sorter", "tttx-icon"];
|
|
130
|
-
components.forEach(tagName => { switch (tagName) {
|
|
131
|
-
case "tttx-sorter":
|
|
132
|
-
if (!customElements.get(tagName)) {
|
|
133
|
-
customElements.define(tagName, TttxSorter);
|
|
134
|
-
}
|
|
135
|
-
break;
|
|
136
|
-
case "tttx-icon":
|
|
137
|
-
if (!customElements.get(tagName)) {
|
|
138
|
-
defineCustomElement$1();
|
|
139
|
-
}
|
|
140
|
-
break;
|
|
141
|
-
} });
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
export { TttxSorter as T, defineCustomElement as d };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Components, JSX } from "../types/components";
|
|
2
|
-
|
|
3
|
-
interface TttxStandaloneInput extends Components.TttxStandaloneInput, HTMLElement {}
|
|
4
|
-
export const TttxStandaloneInput: {
|
|
5
|
-
prototype: TttxStandaloneInput;
|
|
6
|
-
new (): TttxStandaloneInput;
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* Used to define this component and all nested components recursively.
|
|
10
|
-
*/
|
|
11
|
-
export const defineCustomElement: () => void;
|
|
@@ -1,143 +0,0 @@
|
|
|
1
|
-
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
2
|
-
import { d as defineCustomElement$1 } from './tttx-icon2.js';
|
|
3
|
-
|
|
4
|
-
const tttxStandaloneInputCss = ".material-symbols-rounded.sc-tttx-standalone-input{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}.material-symbols-rounded.sc-tttx-standalone-input{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}label.sc-tttx-standalone-input{font-weight:500;font-size:16px;line-height:18.752px;color:#212121}label.sc-tttx-standalone-input .optional.sc-tttx-standalone-input{color:#757575;font-weight:normal}label.sc-tttx-standalone-input .outer-container.sc-tttx-standalone-input{position:relative}label.sc-tttx-standalone-input .outer-container.sc-tttx-standalone-input .left-icons.sc-tttx-standalone-input,label.sc-tttx-standalone-input .outer-container.sc-tttx-standalone-input .right-icons.sc-tttx-standalone-input{display:flex;position:absolute;height:24px;gap:8px}label.sc-tttx-standalone-input .outer-container.sc-tttx-standalone-input .left-icons.sc-tttx-standalone-input tttx-icon.sc-tttx-standalone-input,label.sc-tttx-standalone-input .outer-container.sc-tttx-standalone-input .right-icons.sc-tttx-standalone-input tttx-icon.sc-tttx-standalone-input{height:24px;width:24px}label.sc-tttx-standalone-input .outer-container.sc-tttx-standalone-input .left-icons.sc-tttx-standalone-input{left:8px}label.sc-tttx-standalone-input .outer-container.sc-tttx-standalone-input .right-icons.sc-tttx-standalone-input{right:8px}label.sc-tttx-standalone-input .outer-container.sc-tttx-standalone-input input.sc-tttx-standalone-input,label.sc-tttx-standalone-input .outer-container.sc-tttx-standalone-input textarea.sc-tttx-standalone-input{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.sc-tttx-standalone-input .outer-container.sc-tttx-standalone-input input.has-input-icon.sc-tttx-standalone-input,label.sc-tttx-standalone-input .outer-container.sc-tttx-standalone-input textarea.has-input-icon.sc-tttx-standalone-input{padding-left:40px}label.sc-tttx-standalone-input .outer-container.sc-tttx-standalone-input input.has-input-icon.has-left-icon.sc-tttx-standalone-input,label.sc-tttx-standalone-input .outer-container.sc-tttx-standalone-input textarea.has-input-icon.has-left-icon.sc-tttx-standalone-input{padding-left:72px}label.sc-tttx-standalone-input .outer-container.sc-tttx-standalone-input input.has-left-icon.sc-tttx-standalone-input,label.sc-tttx-standalone-input .outer-container.sc-tttx-standalone-input textarea.has-left-icon.sc-tttx-standalone-input{padding-left:40px}label.sc-tttx-standalone-input .outer-container.sc-tttx-standalone-input input.has-right-icon.sc-tttx-standalone-input,label.sc-tttx-standalone-input .outer-container.sc-tttx-standalone-input textarea.has-right-icon.sc-tttx-standalone-input{padding-right:40px}label.sc-tttx-standalone-input .outer-container.sc-tttx-standalone-input input.invalid.sc-tttx-standalone-input,label.sc-tttx-standalone-input .outer-container.sc-tttx-standalone-input textarea.invalid.sc-tttx-standalone-input{border:1px solid #dc0000}label.sc-tttx-standalone-input .outer-container.sc-tttx-standalone-input input.sc-tttx-standalone-input:not([type=submit]),label.sc-tttx-standalone-input .outer-container.sc-tttx-standalone-input textarea.sc-tttx-standalone-input:not([type=submit]){font-family:\"Roboto\", serif;width:100%;height:36px;font-size:16px;line-height:18.752px}label.sc-tttx-standalone-input .outer-container.sc-tttx-standalone-input input[type=radio].sc-tttx-standalone-input,label.sc-tttx-standalone-input .outer-container.sc-tttx-standalone-input textarea[type=radio].sc-tttx-standalone-input{width:20px;height:20px}label.sc-tttx-standalone-input .outer-container.sc-tttx-standalone-input input[type=date].sc-tttx-standalone-input,label.sc-tttx-standalone-input .outer-container.sc-tttx-standalone-input textarea[type=date].sc-tttx-standalone-input{background:white;display:block;min-width:calc(100% - 18px);line-height:37px}label.sc-tttx-standalone-input .outer-container.sc-tttx-standalone-input input[readonly].sc-tttx-standalone-input,label.sc-tttx-standalone-input .outer-container.sc-tttx-standalone-input textarea[readonly].sc-tttx-standalone-input{cursor:default;pointer-events:none;user-select:none;color:gray}label.sc-tttx-standalone-input .outer-container.sc-tttx-standalone-input input.sc-tttx-standalone-input:focus,label.sc-tttx-standalone-input .outer-container.sc-tttx-standalone-input textarea.sc-tttx-standalone-input:focus{border-color:#1479c6}label.sc-tttx-standalone-input .outer-container.sc-tttx-standalone-input input.sc-tttx-standalone-input:focus-visible,label.sc-tttx-standalone-input .outer-container.sc-tttx-standalone-input textarea.sc-tttx-standalone-input:focus-visible{outline:none}label.sc-tttx-standalone-input .outer-container.sc-tttx-standalone-input textarea.sc-tttx-standalone-input{padding:8px;height:auto;min-height:100px;resize:vertical}label.sc-tttx-standalone-input .outer-container.inputBlock.sc-tttx-standalone-input{display:flex;align-items:center;line-height:21px}label.sc-tttx-standalone-input .outer-container.inputBlock.sc-tttx-standalone-input .left-icons.sc-tttx-standalone-input,label.sc-tttx-standalone-input .outer-container.inputBlock.sc-tttx-standalone-input .right-icons.sc-tttx-standalone-input{margin-top:4px}label.sc-tttx-standalone-input .outer-container.inputBlock.readonly.sc-tttx-standalone-input{pointer-events:none;user-select:none;color:gray}label.sc-tttx-standalone-input .outer-container.inputBlock.radioBlock.sc-tttx-standalone-input{display:block}label.sc-tttx-standalone-input .outer-container.inputInline.sc-tttx-standalone-input{display:flex;white-space:nowrap;align-items:center;margin:0}label.sc-tttx-standalone-input .outer-container.inputInline.sc-tttx-standalone-input input.sc-tttx-standalone-input{margin-top:0}label.sc-tttx-standalone-input .secondarylabel.sc-tttx-standalone-input{color:#757575;font-size:14px;line-height:16.408px;font-weight:normal;display:flex;margin-top:4px}label.sc-tttx-standalone-input .errorBubble.sc-tttx-standalone-input{position:relative;font-size:14px;line-height:16.408px;font-weight:normal;width:100%;font-family:\"Roboto\", sans-serif;color:#dc0000;display:flex;align-content:center;align-items:center;justify-items:center;margin-top:4px}label.sc-tttx-standalone-input .errorBubble.sc-tttx-standalone-input:not(.visible){display:none}label.sc-tttx-standalone-input .errorBubble.sc-tttx-standalone-input span.sc-tttx-standalone-input{color:#dc0000;font-size:16px;margin-right:4px}.material-symbols-rounded.sc-tttx-standalone-input{font-family:\"Material Symbols Rounded\", sans-serif;font-weight:400;font-style:normal;font-size:24px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;color:#9e9e9e}.sc-tttx-standalone-input-h{display:block}";
|
|
5
|
-
|
|
6
|
-
const TttxInput = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
7
|
-
constructor() {
|
|
8
|
-
super();
|
|
9
|
-
this.__registerHost();
|
|
10
|
-
this.valueChanged = createEvent(this, "valueChanged", 7);
|
|
11
|
-
this.focusChanged = createEvent(this, "focusChanged", 7);
|
|
12
|
-
this.blurChanged = createEvent(this, "blurChanged", 7);
|
|
13
|
-
this.invalidChanged = createEvent(this, "invalidChanged", 7);
|
|
14
|
-
this.inputIconClick = createEvent(this, "inputIconClick", 7);
|
|
15
|
-
this.leftIconClick = createEvent(this, "leftIconClick", 7);
|
|
16
|
-
this.rightIconClick = createEvent(this, "rightIconClick", 7);
|
|
17
|
-
this.label = undefined;
|
|
18
|
-
this.secondarylabel = undefined;
|
|
19
|
-
this.showerrormsg = undefined;
|
|
20
|
-
this.showerrorbubble = true;
|
|
21
|
-
this.errormsg = undefined;
|
|
22
|
-
this.iconleft = undefined;
|
|
23
|
-
this.iconleftcolor = 'grey';
|
|
24
|
-
this.iconright = undefined;
|
|
25
|
-
this.iconrightcolor = 'grey';
|
|
26
|
-
this.inputicon = undefined;
|
|
27
|
-
this.inputiconcolor = 'grey';
|
|
28
|
-
this.inline = undefined;
|
|
29
|
-
this.inputautocapitalize = undefined;
|
|
30
|
-
this.inputautofocus = undefined;
|
|
31
|
-
this.inputkeyhint = undefined;
|
|
32
|
-
this.inputindex = undefined;
|
|
33
|
-
this.inputtitle = undefined;
|
|
34
|
-
this.autocomplete = undefined;
|
|
35
|
-
this.checked = undefined;
|
|
36
|
-
this.disabled = undefined;
|
|
37
|
-
this.max = undefined;
|
|
38
|
-
this.maxlength = undefined;
|
|
39
|
-
this.min = undefined;
|
|
40
|
-
this.minlength = undefined;
|
|
41
|
-
this.name = undefined;
|
|
42
|
-
this.pattern = undefined;
|
|
43
|
-
this.placeholder = undefined;
|
|
44
|
-
this.readonly = undefined;
|
|
45
|
-
this.required = undefined;
|
|
46
|
-
this.step = undefined;
|
|
47
|
-
this.type = 'text';
|
|
48
|
-
this.value = undefined;
|
|
49
|
-
}
|
|
50
|
-
handleChange(event) {
|
|
51
|
-
const target = event.target;
|
|
52
|
-
this.value = target.value;
|
|
53
|
-
this.valueChanged.emit(target.value);
|
|
54
|
-
}
|
|
55
|
-
handleFocus(event) {
|
|
56
|
-
const target = event.target;
|
|
57
|
-
this.focusChanged.emit(target.value);
|
|
58
|
-
}
|
|
59
|
-
handleBlur(event) {
|
|
60
|
-
const target = event.target;
|
|
61
|
-
this.blurChanged.emit(target.value);
|
|
62
|
-
}
|
|
63
|
-
handleInvalid(event) {
|
|
64
|
-
event.preventDefault();
|
|
65
|
-
const target = event.target;
|
|
66
|
-
this.invalidChanged.emit(target.value);
|
|
67
|
-
}
|
|
68
|
-
handleInputIconClick(event) {
|
|
69
|
-
event.preventDefault();
|
|
70
|
-
this.inputIconClick.emit();
|
|
71
|
-
}
|
|
72
|
-
handleLeftIconClick(event) {
|
|
73
|
-
event.preventDefault();
|
|
74
|
-
this.leftIconClick.emit();
|
|
75
|
-
}
|
|
76
|
-
handleRightIconClick(event) {
|
|
77
|
-
event.preventDefault();
|
|
78
|
-
this.rightIconClick.emit();
|
|
79
|
-
}
|
|
80
|
-
render() {
|
|
81
|
-
const classNames = [
|
|
82
|
-
this.showerrormsg ? 'invalid' : '',
|
|
83
|
-
this.inputicon ? 'has-input-icon' : '',
|
|
84
|
-
this.iconleft ? 'has-left-icon' : '',
|
|
85
|
-
this.iconright ? 'has-right-icon' : '',
|
|
86
|
-
].join(' ');
|
|
87
|
-
return (h(Host, null, h("label", null, this.label, !this.required ? h("span", { class: "optional" }, "\u00A0(optional)") : '', h("div", { class: ['outer-container', this.inline ? 'inputInline' : 'inputBlock'].join(' ') }, h("input", { class: classNames, autocapitalize: this.inputautocapitalize, autofocus: this.inputautofocus, enterkeyhint: this.inputkeyhint, tabindex: this.inputindex, title: this.inputtitle, autocomplete: this.autocomplete, checked: this.checked, disabled: this.disabled, max: this.max, maxlength: this.maxlength, min: this.min, minlength: this.minlength, name: this.name, pattern: this.pattern, placeholder: this.placeholder, readonly: this.readonly, required: this.required, step: this.step, type: this.type, value: this.value, onBlur: this.handleBlur.bind(this), onFocus: this.handleFocus.bind(this), onInput: this.handleChange.bind(this), onInvalid: this.handleInvalid.bind(this) }), (this.inputicon || this.iconleft) && (h("span", { class: "left-icons" }, this.inputicon && (h("tttx-icon", { class: "input-icon", icon: this.inputicon, color: this.inputiconcolor, onClick: this.handleInputIconClick.bind(this) })), this.iconleft && (h("tttx-icon", { class: "left-icon", icon: this.iconleft, color: this.iconleftcolor, onClick: this.handleLeftIconClick.bind(this) })))), this.iconright && (h("span", { class: "right-icons" }, h("tttx-icon", { class: "right-icon", icon: this.iconright, color: this.iconrightcolor, onClick: this.handleRightIconClick.bind(this) })))), this.secondarylabel && h("span", { class: "secondarylabel" }, this.secondarylabel), this.showerrorbubble && (h("span", { class: ['errorBubble', this.showerrormsg && this.errormsg ? 'visible' : ''].join(' ') }, h("span", { class: "material-symbols-rounded" }, "warning"), " ", this.errormsg)))));
|
|
88
|
-
}
|
|
89
|
-
static get style() { return tttxStandaloneInputCss; }
|
|
90
|
-
}, [2, "tttx-standalone-input", {
|
|
91
|
-
"label": [1],
|
|
92
|
-
"secondarylabel": [1],
|
|
93
|
-
"showerrormsg": [4],
|
|
94
|
-
"showerrorbubble": [4],
|
|
95
|
-
"errormsg": [1],
|
|
96
|
-
"iconleft": [1],
|
|
97
|
-
"iconleftcolor": [1],
|
|
98
|
-
"iconright": [1],
|
|
99
|
-
"iconrightcolor": [1],
|
|
100
|
-
"inputicon": [1],
|
|
101
|
-
"inputiconcolor": [1],
|
|
102
|
-
"inline": [4],
|
|
103
|
-
"inputautocapitalize": [1],
|
|
104
|
-
"inputautofocus": [4],
|
|
105
|
-
"inputkeyhint": [1],
|
|
106
|
-
"inputindex": [8],
|
|
107
|
-
"inputtitle": [1],
|
|
108
|
-
"autocomplete": [1],
|
|
109
|
-
"checked": [4],
|
|
110
|
-
"disabled": [4],
|
|
111
|
-
"max": [8],
|
|
112
|
-
"maxlength": [8],
|
|
113
|
-
"min": [8],
|
|
114
|
-
"minlength": [8],
|
|
115
|
-
"name": [1],
|
|
116
|
-
"pattern": [1],
|
|
117
|
-
"placeholder": [1],
|
|
118
|
-
"readonly": [8],
|
|
119
|
-
"required": [4],
|
|
120
|
-
"step": [8],
|
|
121
|
-
"type": [1],
|
|
122
|
-
"value": [1032]
|
|
123
|
-
}]);
|
|
124
|
-
function defineCustomElement() {
|
|
125
|
-
if (typeof customElements === "undefined") {
|
|
126
|
-
return;
|
|
127
|
-
}
|
|
128
|
-
const components = ["tttx-standalone-input", "tttx-icon"];
|
|
129
|
-
components.forEach(tagName => { switch (tagName) {
|
|
130
|
-
case "tttx-standalone-input":
|
|
131
|
-
if (!customElements.get(tagName)) {
|
|
132
|
-
customElements.define(tagName, TttxInput);
|
|
133
|
-
}
|
|
134
|
-
break;
|
|
135
|
-
case "tttx-icon":
|
|
136
|
-
if (!customElements.get(tagName)) {
|
|
137
|
-
defineCustomElement$1();
|
|
138
|
-
}
|
|
139
|
-
break;
|
|
140
|
-
} });
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
export { TttxInput as T, defineCustomElement as d };
|