@3t-transform/threeteeui 0.2.121 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{tttx-button.cjs.entry.js → tttx-button_localcomponent.cjs.entry.js} +2 -2
- package/dist/cjs/{tttx-checkbox-group-caption.cjs.entry.js → tttx-checkbox-group-caption_localcomponent.cjs.entry.js} +1 -1
- package/dist/cjs/{tttx-checkbox-group-heading.cjs.entry.js → tttx-checkbox-group-heading_localcomponent.cjs.entry.js} +1 -1
- package/dist/cjs/{tttx-checkbox-group.cjs.entry.js → tttx-checkbox-group_localcomponent.cjs.entry.js} +1 -1
- package/dist/cjs/{tttx-checkbox.cjs.entry.js → tttx-checkbox_localcomponent.cjs.entry.js} +2 -2
- package/dist/cjs/tttx-data-pattern_localcomponent.cjs.entry.js +23 -0
- package/dist/cjs/{tttx-dialog-box.cjs.entry.js → tttx-dialog-box_localcomponent.cjs.entry.js} +3 -3
- package/dist/cjs/{tttx-dialog.cjs.entry.js → tttx-dialog_localcomponent.cjs.entry.js} +2 -2
- package/dist/cjs/{tttx-expander.cjs.entry.js → tttx-expander_localcomponent.cjs.entry.js} +2 -2
- package/dist/cjs/{tttx-filter_4.cjs.entry.js → tttx-filter_localcomponent_4.cjs.entry.js} +9 -9
- package/dist/cjs/{tttx-form.cjs.entry.js → tttx-form_localcomponent.cjs.entry.js} +2 -8
- package/dist/cjs/{tttx-icon.cjs.entry.js → tttx-icon_localcomponent.cjs.entry.js} +1 -1
- package/dist/cjs/{tttx-keyvalue-block.cjs.entry.js → tttx-keyvalue-block_localcomponent.cjs.entry.js} +1 -1
- package/dist/cjs/{tttx-loading-spinner.cjs.entry.js → tttx-loading-spinner_localcomponent.cjs.entry.js} +1 -1
- package/dist/cjs/{tttx-multiselect-box.cjs.entry.js → tttx-multiselect-box_localcomponent.cjs.entry.js} +6 -6
- package/dist/cjs/{tttx-percentage-bar.cjs.entry.js → tttx-percentage-bar_localcomponent.cjs.entry.js} +2 -2
- package/dist/cjs/{tttx-qrcode.cjs.entry.js → tttx-qrcode_localcomponent.cjs.entry.js} +1 -1
- package/dist/cjs/{tttx-select-box.cjs.entry.js → tttx-select-box_localcomponent.cjs.entry.js} +3 -3
- package/dist/cjs/tttx-standalone-input_localcomponent.cjs.entry.js +94 -0
- package/dist/cjs/{tttx-tabs.cjs.entry.js → tttx-tabs_localcomponent.cjs.entry.js} +4 -4
- package/dist/cjs/{tttx-tag.cjs.entry.js → tttx-tag_localcomponent.cjs.entry.js} +1 -1
- package/dist/cjs/{tttx-textarea.cjs.entry.js → tttx-textarea_localcomponent.cjs.entry.js} +2 -2
- package/dist/cjs/{tttx-tree-view.cjs.entry.js → tttx-tree-view_localcomponent.cjs.entry.js} +3 -3
- package/dist/cjs/tttx.cjs.js +1 -1
- package/dist/collection/components/atoms/tttx-button/tttx-button.js +2 -2
- package/dist/collection/components/atoms/tttx-button/tttx-button.stories.js +20 -20
- package/dist/collection/components/atoms/tttx-checkbox/tttx-checkbox.js +2 -2
- package/dist/collection/components/atoms/tttx-checkbox/tttx-checkbox.stories.js +1 -1
- package/dist/collection/components/atoms/tttx-icon/tttx-icon.js +1 -1
- package/dist/collection/components/atoms/tttx-icon/tttx-icon.stories.js +1 -1
- package/dist/collection/components/atoms/tttx-keyvalue-block/tttx-keyvalue-block.js +1 -1
- package/dist/collection/components/atoms/tttx-keyvalue-block/tttx-keyvalue-block.stories.js +6 -6
- package/dist/collection/components/atoms/tttx-loading-spinner/tttx-loading-spinner.js +1 -1
- package/dist/collection/components/atoms/tttx-loading-spinner/tttx-loading-spinner.stories.js +1 -1
- package/dist/collection/components/atoms/tttx-percentage-bar/tttx-percentage-bar.js +1 -1
- package/dist/collection/components/atoms/tttx-percentage-bar/tttx-percentage-bar.stories.js +5 -5
- package/dist/collection/components/atoms/tttx-qrcode/tttx-qrcode.js +1 -1
- package/dist/collection/components/atoms/tttx-qrcode/tttx-qrcode.stories.js +1 -1
- package/dist/collection/components/atoms/tttx-tag/tttx-tag.js +1 -1
- package/dist/collection/components/atoms/tttx-tag/tttx-tag.stories.js +6 -6
- package/dist/collection/components/molecules/tttx-checkbox-group/components/tttx-checkbox-group-caption.js +1 -1
- package/dist/collection/components/molecules/tttx-checkbox-group/components/tttx-checkbox-group-heading.js +1 -1
- package/dist/collection/components/molecules/tttx-checkbox-group/tttx-checkbox-group.js +1 -1
- package/dist/collection/components/molecules/tttx-checkbox-group/tttx-checkbox-group.stories.js +10 -10
- package/dist/collection/components/molecules/tttx-dialog/tttx-dialog.js +2 -2
- package/dist/collection/components/molecules/tttx-dialog/tttx-dialog.stories.js +6 -6
- package/dist/collection/components/molecules/tttx-dialog-box/tttx-dialog-box.js +3 -3
- package/dist/collection/components/molecules/tttx-dialog-box/tttx-dialog-box.stories.js +24 -24
- package/dist/collection/components/molecules/tttx-expander/tttx-expander.js +2 -2
- package/dist/collection/components/molecules/tttx-expander/tttx-expander.stories.js +9 -9
- package/dist/collection/components/molecules/tttx-filter/tttx-filter.js +3 -3
- package/dist/collection/components/molecules/tttx-filter/tttx-filter.stories.js +2 -2
- package/dist/collection/components/molecules/tttx-form/tttx-form.js +2 -14
- package/dist/collection/components/molecules/tttx-form/tttx-form.stories.js +5 -5
- package/dist/collection/components/molecules/tttx-list/tttx-list.js +3 -3
- package/dist/collection/components/molecules/tttx-list/tttx-list.stories.js +46 -46
- package/dist/collection/components/molecules/tttx-multiselect-box/tttx-multiselect-box.js +6 -6
- package/dist/collection/components/molecules/tttx-multiselect-box/tttx-multiselect-box.stories.js +33 -33
- package/dist/collection/components/molecules/tttx-select-box/tttx-select-box.js +3 -3
- package/dist/collection/components/molecules/tttx-select-box/tttx-select-box.stories.js +16 -16
- package/dist/collection/components/molecules/tttx-sorter/tttx-sorter.js +2 -2
- package/dist/collection/components/molecules/tttx-sorter/tttx-sorter.stories.js +1 -1
- package/dist/collection/components/molecules/tttx-standalone-input/tttx-standalone-input.js +4 -4
- package/dist/collection/components/molecules/tttx-standalone-input/tttx-standalone-input.stories.js +1 -1
- package/dist/collection/components/molecules/tttx-tabs/tttx-tabs.js +3 -3
- package/dist/collection/components/molecules/tttx-tabs/tttx-tabs.stories.js +4 -4
- package/dist/collection/components/molecules/tttx-textarea/tttx-textarea.js +3 -3
- package/dist/collection/components/molecules/tttx-textarea/tttx-textarea.stories.js +1 -1
- package/dist/collection/components/molecules/tttx-toolbar/tttx-toolbar.js +1 -1
- package/dist/collection/components/molecules/tttx-toolbar/tttx-toolbar.stories.js +37 -37
- package/dist/collection/components/molecules/tttx-tree-view/tttx-tree-view.js +3 -3
- package/dist/collection/components/molecules/tttx-tree-view/tttx-tree-view.stories.js +8 -8
- package/dist/collection/components/organisms/tttx-data-pattern/tttx-data-pattern.js +2 -2
- package/dist/collection/components/organisms/tttx-data-pattern/tttx-data-pattern.stories.js +5 -5
- package/dist/components/index.d.ts +26 -26
- package/dist/components/index.js +26 -26
- package/dist/components/tttx-button.js +57 -4
- package/dist/components/{tttx-data-pattern.d.ts → tttx-button_localcomponent.d.ts} +4 -4
- package/dist/components/tttx-button_localcomponent.js +6 -0
- package/dist/components/tttx-checkbox-group-caption_localcomponent.d.ts +11 -0
- package/dist/components/{tttx-checkbox-group-caption.js → tttx-checkbox-group-caption_localcomponent.js} +7 -7
- package/dist/components/tttx-checkbox-group-heading_localcomponent.d.ts +11 -0
- package/dist/components/{tttx-checkbox-group-heading.js → tttx-checkbox-group-heading_localcomponent.js} +7 -7
- package/dist/components/tttx-checkbox-group_localcomponent.d.ts +11 -0
- package/dist/components/{tttx-checkbox-group.js → tttx-checkbox-group_localcomponent.js} +7 -7
- package/dist/components/{tttx-checkbox-group.d.ts → tttx-checkbox_localcomponent.d.ts} +4 -4
- package/dist/components/{tttx-checkbox.js → tttx-checkbox_localcomponent.js} +10 -10
- package/dist/components/tttx-data-pattern_localcomponent.d.ts +11 -0
- package/dist/components/tttx-data-pattern_localcomponent.js +84 -0
- package/dist/components/tttx-dialog-box_localcomponent.d.ts +11 -0
- package/dist/components/{tttx-dialog-box.js → tttx-dialog-box_localcomponent.js} +13 -13
- package/dist/components/tttx-dialog_localcomponent.d.ts +11 -0
- package/dist/components/{tttx-dialog.js → tttx-dialog_localcomponent.js} +12 -12
- package/dist/components/tttx-expander_localcomponent.d.ts +11 -0
- package/dist/components/{tttx-expander.js → tttx-expander_localcomponent.js} +10 -10
- package/dist/components/tttx-filter.js +223 -4
- package/dist/components/tttx-filter_localcomponent.d.ts +11 -0
- package/dist/components/tttx-filter_localcomponent.js +6 -0
- package/dist/components/{tttx-button.d.ts → tttx-form_localcomponent.d.ts} +4 -4
- package/dist/components/{tttx-form.js → tttx-form_localcomponent.js} +14 -20
- package/dist/components/tttx-icon.js +38 -4
- package/dist/components/{tttx-checkbox.d.ts → tttx-icon_localcomponent.d.ts} +4 -4
- package/dist/components/tttx-icon_localcomponent.js +6 -0
- package/dist/components/tttx-keyvalue-block_localcomponent.d.ts +11 -0
- package/dist/components/{tttx-keyvalue-block.js → tttx-keyvalue-block_localcomponent.js} +7 -7
- package/dist/components/tttx-list.js +92 -4
- package/dist/components/{tttx-dialog.d.ts → tttx-list_localcomponent.d.ts} +4 -4
- package/dist/components/tttx-list_localcomponent.js +6 -0
- package/dist/components/tttx-loading-spinner_localcomponent.d.ts +11 -0
- package/dist/components/{tttx-loading-spinner.js → tttx-loading-spinner_localcomponent.js} +7 -7
- package/dist/components/tttx-multiselect-box_localcomponent.d.ts +11 -0
- package/dist/components/{tttx-multiselect-box.js → tttx-multiselect-box_localcomponent.js} +18 -18
- package/dist/components/tttx-percentage-bar_localcomponent.d.ts +11 -0
- package/dist/components/{tttx-percentage-bar.js → tttx-percentage-bar_localcomponent.js} +8 -8
- package/dist/components/tttx-qrcode_localcomponent.d.ts +11 -0
- package/dist/components/{tttx-qrcode.js → tttx-qrcode_localcomponent.js} +5 -5
- package/dist/components/tttx-select-box.js +169 -4
- package/dist/components/tttx-select-box_localcomponent.d.ts +11 -0
- package/dist/components/tttx-select-box_localcomponent.js +6 -0
- package/dist/components/tttx-sorter.js +142 -4
- package/dist/components/tttx-sorter_localcomponent.d.ts +11 -0
- package/dist/components/tttx-sorter_localcomponent.js +6 -0
- package/dist/components/tttx-standalone-input.js +141 -4
- package/dist/components/tttx-standalone-input_localcomponent.d.ts +11 -0
- package/dist/components/tttx-standalone-input_localcomponent.js +6 -0
- package/dist/components/{tttx-dialog-box.d.ts → tttx-tabs_localcomponent.d.ts} +4 -4
- package/dist/components/{tttx-tabs.js → tttx-tabs_localcomponent.js} +12 -12
- package/dist/components/{tttx-select-box.d.ts → tttx-tag_localcomponent.d.ts} +4 -4
- package/dist/components/{tttx-tag.js → tttx-tag_localcomponent.js} +7 -7
- package/dist/components/tttx-textarea_localcomponent.d.ts +11 -0
- package/dist/components/{tttx-textarea.js → tttx-textarea_localcomponent.js} +8 -8
- package/dist/components/tttx-toolbar.js +47 -4
- package/dist/components/{tttx-keyvalue-block.d.ts → tttx-toolbar_localcomponent.d.ts} +4 -4
- package/dist/components/tttx-toolbar_localcomponent.js +6 -0
- package/dist/components/tttx-tree-view_localcomponent.d.ts +11 -0
- package/dist/components/{tttx-tree-view.js → tttx-tree-view_localcomponent.js} +13 -13
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{tttx-button.entry.js → tttx-button_localcomponent.entry.js} +2 -2
- package/dist/esm/{tttx-checkbox-group-caption.entry.js → tttx-checkbox-group-caption_localcomponent.entry.js} +1 -1
- package/dist/esm/{tttx-checkbox-group-heading.entry.js → tttx-checkbox-group-heading_localcomponent.entry.js} +1 -1
- package/dist/esm/{tttx-checkbox-group.entry.js → tttx-checkbox-group_localcomponent.entry.js} +1 -1
- package/dist/esm/{tttx-checkbox.entry.js → tttx-checkbox_localcomponent.entry.js} +2 -2
- package/dist/esm/tttx-data-pattern_localcomponent.entry.js +19 -0
- package/dist/esm/{tttx-dialog-box.entry.js → tttx-dialog-box_localcomponent.entry.js} +3 -3
- package/dist/esm/{tttx-dialog.entry.js → tttx-dialog_localcomponent.entry.js} +2 -2
- package/dist/esm/{tttx-expander.entry.js → tttx-expander_localcomponent.entry.js} +2 -2
- package/dist/esm/{tttx-filter_4.entry.js → tttx-filter_localcomponent_4.entry.js} +6 -6
- package/dist/esm/{tttx-form.entry.js → tttx-form_localcomponent.entry.js} +2 -8
- package/dist/esm/{tttx-icon.entry.js → tttx-icon_localcomponent.entry.js} +1 -1
- package/dist/esm/{tttx-keyvalue-block.entry.js → tttx-keyvalue-block_localcomponent.entry.js} +1 -1
- package/dist/esm/{tttx-loading-spinner.entry.js → tttx-loading-spinner_localcomponent.entry.js} +1 -1
- package/dist/esm/{tttx-multiselect-box.entry.js → tttx-multiselect-box_localcomponent.entry.js} +6 -6
- package/dist/esm/{tttx-percentage-bar.entry.js → tttx-percentage-bar_localcomponent.entry.js} +2 -2
- package/dist/esm/{tttx-qrcode.entry.js → tttx-qrcode_localcomponent.entry.js} +1 -1
- package/dist/esm/{tttx-select-box.entry.js → tttx-select-box_localcomponent.entry.js} +3 -3
- package/dist/esm/tttx-standalone-input_localcomponent.entry.js +90 -0
- package/dist/esm/{tttx-tabs.entry.js → tttx-tabs_localcomponent.entry.js} +4 -4
- package/dist/esm/{tttx-tag.entry.js → tttx-tag_localcomponent.entry.js} +1 -1
- package/dist/esm/{tttx-textarea.entry.js → tttx-textarea_localcomponent.entry.js} +2 -2
- package/dist/esm/{tttx-tree-view.entry.js → tttx-tree-view_localcomponent.entry.js} +3 -3
- package/dist/esm/tttx.js +1 -1
- package/dist/tttx/{p-54cedeca.entry.js → p-05c242f0.entry.js} +1 -1
- package/dist/tttx/{p-bf48f423.entry.js → p-0e515960.entry.js} +1 -1
- package/dist/tttx/{p-02017641.entry.js → p-1e5ff5f8.entry.js} +1 -1
- package/dist/tttx/p-1f6cb3c3.entry.js +1 -0
- package/dist/tttx/p-23f45005.entry.js +1 -0
- package/dist/tttx/p-56c8c353.entry.js +1 -0
- package/dist/tttx/{p-065ad72e.entry.js → p-59c7b049.entry.js} +1 -1
- package/dist/tttx/p-5b3e1fae.entry.js +1 -0
- package/dist/tttx/p-63ad6fb7.entry.js +1 -0
- package/dist/tttx/p-6704ac94.entry.js +1 -0
- package/dist/tttx/p-6abfd043.entry.js +1 -0
- package/dist/tttx/p-72ede7d8.entry.js +1 -0
- package/dist/tttx/{p-06a0f85e.entry.js → p-796f699a.entry.js} +1 -1
- package/dist/tttx/p-7a7fb9b3.entry.js +1 -0
- package/dist/tttx/{p-30da2278.entry.js → p-87481935.entry.js} +1 -1
- package/dist/tttx/{p-d59980ee.entry.js → p-9434561e.entry.js} +1 -1
- package/dist/tttx/{p-866047c1.entry.js → p-a01e679a.entry.js} +1 -1
- package/dist/tttx/p-a8e76e78.entry.js +1 -0
- package/dist/tttx/{p-bdee8c29.entry.js → p-c170e3b8.entry.js} +1 -1
- package/dist/tttx/p-c3d6914a.entry.js +1 -0
- package/dist/tttx/p-ee358ce4.entry.js +1 -0
- package/dist/tttx/{p-e0ed9a93.entry.js → p-f374e293.entry.js} +1 -1
- package/dist/tttx/p-fe967031.entry.js +1 -0
- package/dist/tttx/tttx.esm.js +1 -1
- package/dist/types/components/molecules/tttx-form/tttx-form.d.ts +0 -6
- package/dist/types/components/molecules/tttx-standalone-input/tttx-standalone-input.d.ts +2 -2
- package/dist/types/components/molecules/tttx-textarea/tttx-textarea.d.ts +2 -2
- package/dist/types/components.d.ts +318 -318
- package/package.json +3 -2
- package/dist/cjs/tttx-data-pattern.cjs.entry.js +0 -23
- package/dist/cjs/tttx-standalone-input.cjs.entry.js +0 -94
- package/dist/components/tttx-button2.js +0 -59
- package/dist/components/tttx-checkbox-group-caption.d.ts +0 -11
- package/dist/components/tttx-checkbox-group-heading.d.ts +0 -11
- package/dist/components/tttx-data-pattern.js +0 -84
- package/dist/components/tttx-expander.d.ts +0 -11
- package/dist/components/tttx-filter.d.ts +0 -11
- package/dist/components/tttx-filter2.js +0 -225
- package/dist/components/tttx-form.d.ts +0 -11
- package/dist/components/tttx-icon.d.ts +0 -11
- package/dist/components/tttx-icon2.js +0 -40
- package/dist/components/tttx-list.d.ts +0 -11
- package/dist/components/tttx-list2.js +0 -94
- package/dist/components/tttx-loading-spinner.d.ts +0 -11
- package/dist/components/tttx-multiselect-box.d.ts +0 -11
- package/dist/components/tttx-percentage-bar.d.ts +0 -11
- package/dist/components/tttx-qrcode.d.ts +0 -11
- package/dist/components/tttx-select-box2.js +0 -171
- package/dist/components/tttx-sorter.d.ts +0 -11
- package/dist/components/tttx-sorter2.js +0 -144
- package/dist/components/tttx-standalone-input.d.ts +0 -11
- package/dist/components/tttx-standalone-input2.js +0 -143
- package/dist/components/tttx-tabs.d.ts +0 -11
- package/dist/components/tttx-tag.d.ts +0 -11
- package/dist/components/tttx-textarea.d.ts +0 -11
- package/dist/components/tttx-toolbar.d.ts +0 -11
- package/dist/components/tttx-toolbar2.js +0 -49
- package/dist/components/tttx-tree-view.d.ts +0 -11
- package/dist/esm/tttx-data-pattern.entry.js +0 -19
- package/dist/esm/tttx-standalone-input.entry.js +0 -90
- package/dist/tttx/p-0a1a9da5.entry.js +0 -1
- package/dist/tttx/p-0bd3d6cd.entry.js +0 -1
- package/dist/tttx/p-0d962a44.entry.js +0 -1
- package/dist/tttx/p-1ecf24cc.entry.js +0 -1
- package/dist/tttx/p-2f46fcbc.entry.js +0 -1
- package/dist/tttx/p-36f0dc1d.entry.js +0 -1
- package/dist/tttx/p-4e2bc070.entry.js +0 -1
- package/dist/tttx/p-706901da.entry.js +0 -1
- package/dist/tttx/p-71a8ab3d.entry.js +0 -1
- package/dist/tttx/p-872cd825.entry.js +0 -1
- package/dist/tttx/p-8fd1d664.entry.js +0 -1
- package/dist/tttx/p-c45c095c.entry.js +0 -1
- package/dist/tttx/p-d21cec88.entry.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as o,c as t,h as i,H as e,g as s}from"./p-d490353a.js";import{p as n,d}from"./p-88ee2406.js";import"./p-112455b1.js";const l=class{constructor(i){o(this,i),this.selectItemEvent=t(this,"selectItemEvent",7),this.toggleOpen=t(this,"toggleOpen",7),this.changesApplied=t(this,"changesApplied",7),this.bodyOffset={},this.optionsData=null,this.label=void 0,this.inline=void 0,this.placeholder="",this.searchEnabled=void 0,this.htmlVisibleValue=void 0,this.visibleValue=void 0,this.open=!1,this.unsavedSelectedItems=void 0,this.searchTerm=""}handleCloseSelectBox(){this.open=!1}handleBlur(){this.open=!1,this.toggleOpen.emit(!1)}handleOptionsDataChange(){this.unsavedSelectedItems="string"==typeof this.optionsData?JSON.parse(this.optionsData):this.optionsData}safelyCloneArray(o){return JSON.parse(JSON.stringify(o))}onDropdownClicked(){this.open=!this.open,this.searchTerm="",this.calculateDropdownMenuOffset(),this.toggleOpen.emit(this.open)}onCancel(){this.open=!1,this.unsavedSelectedItems=this.safelyCloneArray(this._optionsData),this.toggleOpen.emit(!1)}applyChanges(){this.open=!1,this.changesApplied.emit(this.safelyCloneArray(this.unsavedSelectedItems))}onItemSelected(o){const t=this.unsavedSelectedItems.findIndex((t=>t.value===o.value));this.unsavedSelectedItems[t]=Object.assign(Object.assign({},o),{selected:!o.selected}),this.unsavedSelectedItems=[...this.unsavedSelectedItems],this.selectItemEvent.emit(o)}dropdownSelectorContent(){if(!this._optionsData.find((o=>o.selected)))return i("div",{class:"placeholder"},this.placeholder);if(this.htmlVisibleValue){const o=n.sanitize(this.visibleValue,d);return i("div",{class:"dropdown-selector-html-content",innerHTML:o})}return i("div",null,this.visibleValue)}optionFoundInSearchTerm(o){return-1===o.label.toLowerCase().indexOf(this.searchTerm.toLowerCase())}dropdownOption(o){const t=this.searchEnabled&&this.optionFoundInSearchTerm(o),e=o.selected?"check_box":"check_box_outline_blank",s=o.selected?"blue":"grey";if(o.html){const l=n.sanitize(o.html,d);return i("div",{class:`dropdown-option ${t?"hidden":""} ${o.selected?"selected":""}`,onClick:this.onItemSelected.bind(this,o),key:o.label},i("tttx-icon_1_0_0",{icon:e,color:s,class:"checkbox-icon"}),i("div",{innerHTML:l}))}return i("div",{class:`dropdown-option ${t?"hidden":""} ${o.selected?"selected":""}`,onClick:this.onItemSelected.bind(this,o),key:o.label},i("tttx-icon_1_0_0",{icon:e,color:s,class:"checkbox-icon"}),i("div",{class:"plaintext-option"},o.label))}handleSearchInput(o){this.searchTerm=o.target.value}calculateDropdownMenuOffset(){const o=this.el.shadowRoot.querySelector(".dropdown-selector"),t=o.getBoundingClientRect().bottom,i=o.getBoundingClientRect();let e=Math.min(288,36*this._optionsData.length)+45+8;this.searchEnabled&&(e+=52),this.bodyOffset=t+e>window.innerHeight?{top:window.innerHeight-(e+16)+"px",position:"fixed",width:`${o.offsetWidth}px`,zIndex:"10"}:{position:"fixed",left:i.left,top:i.top,width:i.width-2+"px",zIndex:"10"}}render(){if(!this.optionsData)return;this._optionsData="string"==typeof this.optionsData?JSON.parse(this.optionsData):this.optionsData,this.unsavedSelectedItems||(this.unsavedSelectedItems=this.safelyCloneArray(this._optionsData));const o=this.open?"expand_less":"expand_more";return i(e,{class:this.inline?"inline":"block"},this.label&&i("div",{class:"label"},this.label),i("div",{tabindex:"0",class:"dropdown-container"},i("div",{class:"dropdown-selector",onClick:this.onDropdownClicked.bind(this)},this.dropdownSelectorContent(),i("div",{class:"dropdown-selector-chevron"},i("tttx-icon_1_0_0",{icon:o,color:"black"}))),this.open&&i("div",{class:"dropdown-body-container"},i("div",{class:"dropdown-body",style:Object.assign({},this.bodyOffset)},this.searchEnabled&&i("div",{class:"searchbox"},i("tttx-standalone-input_1_0_0",{type:"text",placeholder:"Search",label:"",required:!0,showerrorbubble:!1,iconleft:"search",onInput:this.handleSearchInput.bind(this),inline:!0})),i("div",{class:"dropdown-options-list"},this.unsavedSelectedItems.map((o=>this.dropdownOption(o)))),i("div",{class:"footer"},i("tttx-button_1_0_0",{design:"primary",onClick:this.applyChanges.bind(this)},"Apply"),i("tttx-button_1_0_0",{onClick:this.onCancel.bind(this)},"Cancel"))))))}get el(){return s(this)}static get watchers(){return{optionsData:["handleOptionsDataChange"]}}};l.style='.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}';export{l as tttx_multiselect_box_1_0_0}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as i}from"./p-d490353a.js";const e=class{constructor(i){t(this,i),this.loadingMessage=void 0,this.size="large"}renderLoadingMessage(){return this.loadingMessage?i("div",{class:"loading-text"},"Loading, please wait..."):""}render(){return i("div",null,i("div",{class:"loading-box"},i("span",{class:`spinner ${this.size}`})),this.renderLoadingMessage())}};e.style='.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)}}';export{e as
|
|
1
|
+
import{r as t,h as i}from"./p-d490353a.js";const e=class{constructor(i){t(this,i),this.loadingMessage=void 0,this.size="large"}renderLoadingMessage(){return this.loadingMessage?i("div",{class:"loading-text"},"Loading, please wait..."):""}render(){return i("div",null,i("div",{class:"loading-box"},i("span",{class:`spinner ${this.size}`})),this.renderLoadingMessage())}};e.style='.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)}}';export{e as tttx_loading_spinner_1_0_0}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as a,h as o,H as s}from"./p-d490353a.js";import{p as i,d as n}from"./p-88ee2406.js";import"./p-112455b1.js";const c=class{constructor(o){t(this,o),this.tabClick=a(this,"tabClick",7),this.leftNavigation=a(this,"leftNavigation",7),this.rightNavigation=a(this,"rightNavigation",7),this.tabFocus=0,this.tabsName=void 0,this.navigation=void 0,this.wide=void 0,this.tabs=void 0,this._tabs=void 0}onDataChange(){this.tabs&&(this._tabs="string"==typeof this.tabs?JSON.parse(this.tabs):[...this.tabs],this.tabFocus=this._tabs.findIndex((t=>-1!==t.tabIndex)))}componentWillLoad(){this.onDataChange()}handleTabClick(t){this.tabClick.emit({tabId:t.id})}handleLeftNavigation(){this.leftNavigation.emit()}handleRightNavigation(){this.rightNavigation.emit()}handleKeyDown(t){const a=this.tabList.getAttribute("aria-orientation"),o=a&&"vertical"===a?"ArrowUp":"ArrowLeft",s=a&&"vertical"===a?"ArrowDown":"ArrowRight";t.key===o||t.key===s?(this._tabs[this.tabFocus].tabIndex=-1,t.key===o?(this.tabFocus--,this.tabFocus<0&&(this.tabFocus=this._tabs.length-1)):t.key===s&&(this.tabFocus++,this.tabFocus>=this._tabs.length&&(this.tabFocus=0)),this._tabs[this.tabFocus].tabIndex=0,this.tabList.querySelectorAll('[role="tab"]')[this.tabFocus].focus(),this._tabs=[...this._tabs]):"Space"!==t.code&&"Enter"!==t.code||this.tabClick.emit({tabId:this._tabs[this.tabFocus].id})}render(){if(!this.tabs||0==this.tabs.length)return;const t=this._tabs.find((t=>t.selected));return o(s,null,o("div",null,o("div",{class:"tab-bar",role:"tablist","aria-label":this.tabsName,ref:t=>this.tabList=t},this.navigation&&o("div",{class:"left-navigation",tabindex:"0",onClick:this.handleLeftNavigation.bind(this)},o("tttx-icon_1_0_0",{icon:"navigate_before",color:"black"})),o("div",{class:"tabs-container"+(this.wide?" wide":"")},this._tabs.map((t=>o("a",{key:t.id,id:t.id,role:"tab","aria-controls":t.controls,tabindex:t.tabIndex,"aria-selected":t.selected,onClick:()=>{this.handleTabClick(t)}},t.tabName)))),this.navigation&&o("div",{class:"right-navigation",tabindex:"0",onClick:this.handleRightNavigation.bind(this)},o("tttx-icon_1_0_0",{icon:"navigate_next",color:"black"}))),t&&o("article",{key:t.id,id:t.controls,role:"tabpanel",tabindex:"0","aria-labelledby":t.id,"aria-expanded":t.selected,innerHTML:i.sanitize(t.pageContent,n),hidden:!t.selected})))}static get watchers(){return{tabs:["onDataChange"]}}};c.style='.material-symbols-rounded.sc-tttx-tabs_1_0_0{font-variation-settings:"FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24}.sc-tttx-tabs_1_0_0-h{display:block}.tab-bar.sc-tttx-tabs_1_0_0{display:flex;height:52px}.tab-bar.sc-tttx-tabs_1_0_0>.left-navigation.sc-tttx-tabs_1_0_0,.tab-bar.sc-tttx-tabs_1_0_0>.right-navigation.sc-tttx-tabs_1_0_0{padding:14px 8px;cursor:pointer}.tab-bar.sc-tttx-tabs_1_0_0>.left-navigation.sc-tttx-tabs_1_0_0>*.sc-tttx-tabs_1_0_0,.tab-bar.sc-tttx-tabs_1_0_0>.right-navigation.sc-tttx-tabs_1_0_0>*.sc-tttx-tabs_1_0_0{height:24px;width:24px;cursor:pointer}.tab-bar.sc-tttx-tabs_1_0_0>.tabs-container.sc-tttx-tabs_1_0_0{display:flex;border-bottom:1px solid #d5d5d5}.tab-bar.sc-tttx-tabs_1_0_0>.tabs-container.wide.sc-tttx-tabs_1_0_0{flex-grow:1}.tab-bar.sc-tttx-tabs_1_0_0>.tabs-container.sc-tttx-tabs_1_0_0>*[role=tab].sc-tttx-tabs_1_0_0{padding:18px 16px;line-height:16.408px;font-size:14px;font-weight:500;text-transform:uppercase;user-select:none;color:#757575;cursor:pointer}.tab-bar.sc-tttx-tabs_1_0_0>.tabs-container.sc-tttx-tabs_1_0_0>*[role=tab].sc-tttx-tabs_1_0_0:hover{background-color:rgba(17, 17, 17, 0.05)}.tab-bar.sc-tttx-tabs_1_0_0>.tabs-container.sc-tttx-tabs_1_0_0>*[role=tab][aria-selected].sc-tttx-tabs_1_0_0{color:#212121;cursor:default;border-bottom:3px solid #1579c6}';export{c as tttx_tabs_1_0_0}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as o,h as t,H as r}from"./p-d490353a.js";const e=class{constructor(t){o(this,t),this.icon=void 0,this.color="grey"}render(){return this.color.startsWith("#")?t(r,null,t("span",{class:"material-symbols-rounded",style:{color:this.color}},this.icon)):t(r,null,t("span",{class:`material-symbols-rounded ${this.color}`},this.icon))}};e.style='.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}';export{e as
|
|
1
|
+
import{r as o,h as t,H as r}from"./p-d490353a.js";const e=class{constructor(t){o(this,t),this.icon=void 0,this.color="grey"}render(){return this.color.startsWith("#")?t(r,null,t("span",{class:"material-symbols-rounded",style:{color:this.color}},this.icon)):t(r,null,t("span",{class:`material-symbols-rounded ${this.color}`},this.icon))}};e.style='.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}';export{e as tttx_icon_1_0_0}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as
|
|
1
|
+
import{r as o,h as t,H as n}from"./p-d490353a.js";const e=class{constructor(t){o(this,t)}render(){return t(n,null,t("div",{class:"tttx-checkbox-group"},t("slot",null)))}};e.style='.material-symbols-rounded{font-variation-settings:"FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24}.tttx-checkbox-group{display:flex;flex-direction:column}.tttx-checkbox-group__caption{color:#757575;font-family:"Roboto", sans-serif;font-size:14px;font-weight:normal;line-height:18.752px;margin-bottom:4px}.tttx-checkbox-group__heading{color:#212121;font-family:"Roboto", sans-serif;font-size:16px;font-weight:500;line-height:16.408px;margin-bottom:4px}';export{e as tttx_checkbox_group_1_0_0}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as
|
|
1
|
+
import{r as o,h as t,H as n}from"./p-d490353a.js";const i=class{constructor(t){o(this,t)}render(){return t(n,null,t("div",{class:"tttx-checkbox-group__caption"},t("slot",null)))}};i.style='.material-symbols-rounded{font-variation-settings:"FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24}.tttx-checkbox-group{display:flex;flex-direction:column}.tttx-checkbox-group__caption{color:#757575;font-family:"Roboto", sans-serif;font-size:14px;font-weight:normal;line-height:18.752px;margin-bottom:4px}.tttx-checkbox-group__heading{color:#212121;font-family:"Roboto", sans-serif;font-size:16px;font-weight:500;line-height:16.408px;margin-bottom:4px}';export{i as tttx_checkbox_group_caption_1_0_0}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as o,h as r,H as t}from"./p-d490353a.js";const e=class{constructor(r){o(this,r),this._iconcolor="black",this.notext=void 0,this.icon=void 0,this.iconposition="left",this.iconcolor="black",this.design="default"}componentWillLoad(){this._design=this.design,["primary","default","disabled","danger","borderless","borderless-circle"].includes(this.design)||(this._design="default"),"primary"!==this._design&&"danger"!==this._design||(this.iconcolor="white")}render(){return this._iconcolor=this.iconcolor,r(t,null,r("button",{class:`button ${this._design} ${this.icon?"withicon":""} ${this.icon&&this.iconposition?"icon"+this.iconposition:""} ${this.notext?"notext":""}`},this.icon&&"left"===this.iconposition&&r("div",{class:"icon-left"},r("tttx-icon_1_0_0",{icon:this.icon,color:this._iconcolor})),!this.notext&&r("div",{class:"button-content"},r("slot",null)),this.icon&&"right"===this.iconposition&&r("div",{class:"icon-right"},r("tttx-icon_1_0_0",{icon:this.icon,color:this._iconcolor}))))}};e.style='.material-symbols-rounded{font-variation-settings:"FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24}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:inline-block}tttx-icon{cursor:inherit}.spacingleft{margin-left:8px}';export{e as tttx_button_1_0_0}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as s,H as i}from"./p-d490353a.js";const r=class{constructor(s){t(this,s),this.percentage=void 0,this.thresholds=void 0,this.color="#d5d5d5",this.min="1",this.labelid=void 0,this._percentage=void 0,this._ranges=void 0,this._min=void 0}componentWillRender(){let t;if(this._percentage="string"==typeof this.percentage?parseInt(this.percentage):this.percentage,this.thresholds){t="string"==typeof this.thresholds?JSON.parse(this.thresholds):this.thresholds,this._ranges=[{range:[0],color:t[0].color}];for(const[s,i]of t.entries())this._ranges[this._ranges.length-1].range.push(i.threshold),this._ranges[this._ranges.length-1].color=i.color,s<t.length-1&&this._ranges.push({range:[i.threshold],color:void 0})}this._min=parseInt(this.min)}getColour(){return this._ranges&&0!==this._ranges.length?this._ranges.find((t=>this._percentage>=t.range[0]&&this._percentage<=t.range[1])).color:this.color}getWidth(){return Math.min(Math.max(this._percentage,Math.min(this._min,100)),100)}render(){return s(i,null,s("div",{class:"progress"},s("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})))}};r.style=".sc-tttx-percentage-
|
|
1
|
+
import{r as t,h as s,H as i}from"./p-d490353a.js";const r=class{constructor(s){t(this,s),this.percentage=void 0,this.thresholds=void 0,this.color="#d5d5d5",this.min="1",this.labelid=void 0,this._percentage=void 0,this._ranges=void 0,this._min=void 0}componentWillRender(){let t;if(this._percentage="string"==typeof this.percentage?parseInt(this.percentage):this.percentage,this.thresholds){t="string"==typeof this.thresholds?JSON.parse(this.thresholds):this.thresholds,this._ranges=[{range:[0],color:t[0].color}];for(const[s,i]of t.entries())this._ranges[this._ranges.length-1].range.push(i.threshold),this._ranges[this._ranges.length-1].color=i.color,s<t.length-1&&this._ranges.push({range:[i.threshold],color:void 0})}this._min=parseInt(this.min)}getColour(){return this._ranges&&0!==this._ranges.length?this._ranges.find((t=>this._percentage>=t.range[0]&&this._percentage<=t.range[1])).color:this.color}getWidth(){return Math.min(Math.max(this._percentage,Math.min(this._min,100)),100)}render(){return s(i,null,s("div",{class:"progress"},s("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})))}};r.style=".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}";export{r as tttx_percentage_bar_1_0_0}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e,c as t,h as o,H as i}from"./p-d490353a.js";import{p as n,d as r}from"./p-88ee2406.js";import"./p-112455b1.js";function a(e,t,o,i){let n;if(n=void 0!==i?i.querySelector(".errorBubble"):"label"===e.parentElement.nodeName.toLowerCase()?e.parentElement.querySelector(".errorBubble"):e.parentElement.parentElement.querySelector(".errorBubble"),n)if(t){e.classList.add("invalid"),n.classList.add("visible");const t=document.createElement("span");t.className="material-symbols-rounded",t.textContent="warning",n.innerHTML="",n.append(t),n.append(o)}else n.classList.remove("visible"),e.classList.remove("invalid"),n.innerHTML=""}const l=class{constructor(o){e(this,o),this.dataSubmitted=t(this,"dataSubmitted",7),this.dataChanged=t(this,"dataChanged",7),this.template=document.createElement("template"),this.formschema=void 0,this.data=void 0}onFormSchemaChange(e){if(!this.data&&this.form&&this._formSchema){const e=new FormData(this.form);this._data=Object.fromEntries(Object.keys(this._formSchema.properties).map((t=>[t,e.get(t)])))}this._formSchema="string"==typeof e?JSON.parse(e):e}onDataChange(e){this._data="string"==typeof e?JSON.parse(e):e}fieldChanged(e){this.dataChanged.emit({name:e.target.name,value:e.target.value})}async submit(){this.submitButton.click()}async setSelectOptions(e,t){const o=this.fieldset.querySelector(`[name=${e}]`),i=this.fieldset.querySelector(`[name=overlay-${e}]`),n=new DocumentFragment;for(const e of t){const t=document.createElement("option");t.innerText=e.label,t.value=e.value,n.appendChild(t)}o.replaceChildren(n),i.optionsData=t,await i.setSelectedItem(t[0].value)}doSubmit(e){e.preventDefault();const t=new FormData(e.target),o=this._formSchema.properties;for(const e of Object.keys(o))"checkbox"!==o[e].form.type||t.has(e)||t.append(e,"off");this.dataSubmitted.emit(t)}componentWillLoad(){this.onFormSchemaChange(this.formschema),this.data&&this.onDataChange(this.data)}componentWillRender(){this.template=document.createElement("template"),this.populateFormFromSchema()}createSelect(e,t){var o,i,n,r;const a=document.createElement("select");a.setAttribute("name",e),t.options.forEach((e=>{this.appendOption(a,e)})),(null===(o=this._data)||void 0===o?void 0:o[e])&&a.classList.remove("placeholder");const l=document.createElement("tttx-select-box_1_0_0");l.optionsData=null===(i=t.options)||void 0===i?void 0:i.filter((e=>!e.placeholder)),l.placeholder=null===(r=null===(n=t.options)||void 0===n?void 0:n.filter((e=>e.placeholder))[0])||void 0===r?void 0:r.label,l.inline=!1,l.searchEnabled=!0,l.style.width="100%",l.style.marginTop="6px",l.setAttribute("name","overlay-"+e);const s=document.createDocumentFragment();return s.append(l),a.style.display="none",l.addEventListener("selectItemEvent",(function(e){a.value=e.detail.value,a.onblur({target:a}),a.onchange({target:a})})),{input:a,overlay:s}}appendOption(e,t){const o=document.createElement("option");o.setAttribute("value",t.value),t.placeholder&&(o.setAttribute("disabled",""),o.setAttribute("selected",""),o.setAttribute("hidden",""),e.classList.add("placeholder")),t.label&&(o.innerHTML=n.sanitize(t.label,r)),e.appendChild(o)}createInput(e,t){var o;const i=document.createElement("input");return i.type=t.type,i.name=e,i.placeholder=null!==(o=t.placeholder)&&void 0!==o?o:"",i.autocomplete="off",i.autocapitalize="off",t.readonly&&(i.readOnly=!0),i}createTextArea(e,t){var o;const i=document.createElement("textarea");return i.name=e,i.placeholder=null!==(o=t.placeholder)&&void 0!==o?o:"",i.autocomplete="off",i.autocapitalize="off",t.readonly&&(i.readOnly=!0),i}createStartEndDateComponent(e,t){const o=document.createElement("input"),i=document.createElement("input");let n,r;o.type=i.type="date",o.name=`${e}-startdate`,i.name=`${e}-enddate`,o.setAttribute("data-formkey",e),i.setAttribute("data-formkey",e),t.readonly&&(o.readOnly=!0,i.readOnly=!0),this.applyValidation(o,{required:{message:"Please enter a start date"},dateCompare:{to:i.name}}),this.applyValidation(i,{required:{message:"Please enter an end date"},dateCompare:{with:o.name,message:"End date cannot be before the start date"}}),t.includeTime&&(n=document.createElement("input"),r=document.createElement("input"),n.type=r.type="time",n.name=`${e}-starttime`,r.name=`${e}-endtime`,n.setAttribute("data-formkey",e),r.setAttribute("data-formkey",e),t.readonly&&(n.readOnly=!0,r.readOnly=!0),this.applyValidation(n,{required:{message:"Please enter a start time"}}),this.applyValidation(r,{required:{message:"Please enter an end time"}}));const a=document.createElement("label");a.innerText="Start date";const l=document.createElement("label");l.innerText="End date";const s=document.createElement("div"),d=document.createElement("div");return s.className=d.className="outer-container inputBlock",a.className=l.className="flex-label",s.append(o),n&&s.append(n),a.append(s),a.append(this.createErrorBubble()),d.append(i),r&&d.append(r),l.append(d),l.append(this.createErrorBubble()),{start:a,end:l}}applyValidation(e,t){var o,i;t.required&&(e.setAttribute("required",""),e.setAttribute("data-required",null!==(o=t.required.message)&&void 0!==o?o:"")),t.pattern&&(e.setAttribute("pattern",t.pattern.pattern),e.setAttribute("data-pattern",null!==(i=t.pattern.message)&&void 0!==i?i:"")),t.badInput&&e.setAttribute("data-badinput",t.badInput.message),t.minmax&&(e.setAttribute("min",t.minmax.min),e.setAttribute("max",t.minmax.max),e.setAttribute("data-range",t.minmax.message)),t.maxlength&&e.setAttribute("maxlength",t.maxlength),t.dateCompare&&(t.dateCompare.message&&t.dateCompare.with&&(e.setAttribute("data-compare",t.dateCompare.message),e.setAttribute("data-compare-with",t.dateCompare.with)),t.dateCompare.to&&e.setAttribute("data-compare-to",t.dateCompare.to))}createErrorBubble(){const e=document.createElement("div");return e.className="errorBubble",e}appendCheckboxInput(e,t,o){if(e.label){const e=document.createElement("br");o.appendChild(e)}if(o.appendChild(t),!e.inlineLabel)return;const i=document.createElement("span");i.className="inlineLabel",i.textContent=e.inlineLabel,o.appendChild(i)}createLabel(e,t,o,i){var n;const r=document.createElement("div");let a="outer-container inputBlock";const l=document.createElement("label");if(l.innerText=e.label,!(null===(n=e.validation)||void 0===n?void 0:n.required)&&e.label){const e=document.createElement("span");e.className="optional",e.innerHTML=" (optional)",l.appendChild(e)}return"radio"===e.type&&(a+=" radioBlock"),r.className=a,e.readonly&&l.classList.add("readonly"),"checkbox"===e.type?this.appendCheckboxInput(e,t,l):(o&&r.appendChild(o),r.appendChild(t)),"checkbox"!==e.type&&l.appendChild(r),l.appendChild(i),l}createRadio(e,t){var o,i;const n=new DocumentFragment;for(const r of t.options){const a=document.createElement("input");a.type="radio",a.name=e,a.value=r.value,(null===(o=null==t?void 0:t.validation)||void 0===o?void 0:o.required)&&(a.setAttribute("required","required"),a.setAttribute("data-required",null!==(i=t.validation.required.message)&&void 0!==i?i:""));const l=document.createElement("span");l.innerText=r.label,n.appendChild(a),n.appendChild(l),n.appendChild(document.createElement("br"))}return n}populateFormFromSchema(){var e;if(!this._formSchema)return;const t=this._formSchema.properties,o=Object.keys(t);for(const i of o){const o=t[i].form;if("startenddate"===o.type){const{start:e,end:t}=this.createStartEndDateComponent(i,o);this.template.content.append(e),this.template.content.append(t);continue}let n={};switch(o.type){case"select":n=this.createSelect(i,o);break;case"radio":n.input=this.createRadio(i,o);break;case"textarea":n.input=this.createTextArea(i,o);break;default:n.input=this.createInput(i,o)}o.validation&&"radio"!==o.type&&this.applyValidation(n.input,o.validation);const r=this.createErrorBubble(),l=this.createLabel(o,n.input,n.overlay,r);if(null===(e=o.validation)||void 0===e?void 0:e.invalid){const e=o.validation.invalid.message;n.input.setCustomValidity(e),a(n.input,!0,e)}this.template.content.append(l)}}componentDidRender(){if(!this._formSchema)return;const e=this.template.content,t=this._formSchema.properties,o=Object.keys(t);for(const i of o){const o=e.querySelectorAll(`[name^=${i}]`);for(const e of o)e.oninvalid=this.validityCheckWrapper.bind(this),e.onblur=this.validityCheckWrapper.bind(this),e.onkeyup=this.fieldChanged.bind(this),e.onchange=this.fieldChanged.bind(this),"select"===t[i].form.type&&e.classList.contains("placeholder")&&e.addEventListener("change",(()=>{e.classList.remove("placeholder")})),"startenddate"===t[i].form.type&&e.hasAttribute("data-compare-with")&&(e.oninvalid=this.endDateComparisonValidator.bind(this),e.onblur=this.endDateComparisonValidator.bind(this)),"startenddate"===t[i].form.type&&"time"===e.type&&(e.oninvalid=this.startEndTimeComparitor.bind(this),e.onblur=this.startEndTimeComparitor.bind(this)),"startenddate"===t[i].form.type&&e.hasAttribute("data-compare-to")&&(e.oninvalid=this.startDateComparisonValidator.bind(this),e.onblur=this.startDateComparisonValidator.bind(this))}if(this._data&&Object.keys(this._data).length>0){const t=Object.keys(this._data);for(const o of t){const t=e.querySelectorAll(`[name=${o}]`);for(const i of t)switch(i.type){case"checkbox":"on"===this._data[o]&&(i.checked=!0);break;case"radio":i.value===this._data[o]&&(i.checked=!0);break;case"select":case"select-one":e.querySelector(`[name=overlay-${o}]`).selectedValue=this._data[o],i.value=this._data[o];break;default:i.value=this._data[o]}}}this.fieldset.replaceChildren(e)}startEndTimeComparitor(e){var t,o;const i=e.target,n=i.getAttribute("data-formkey"),r=Array.from(i.parentElement.parentElement.parentElement.querySelectorAll(`[data-formkey=${n}]`));if(4===r.length){const n=r.find((e=>e.name.endsWith("starttime"))),l=r.find((e=>e.name.endsWith("endtime"))),s=r.find((e=>e.name.endsWith("startdate"))),d=r.find((e=>e.name.endsWith("enddate")));n.valueAsNumber>=l.valueAsNumber&&(null===(t=s.valueAsDate)||void 0===t?void 0:t.valueOf())===(null===(o=d.valueAsDate)||void 0===o?void 0:o.valueOf())?(a(l,!0,"End time cannot be the same or before the start time"),i.name.endsWith("starttime")&&this.validityCheckWrapper(e)):(l.setCustomValidity(""),a(l,!1,null),this.validityCheckWrapper(e))}}clearTimeComparitor(e){const t=e.target,o=t.getAttribute("data-formkey"),i=Array.from(t.parentElement.parentElement.parentElement.querySelectorAll(`[type=time][data-formkey=${o}]`));if(i.length){const e=i.find((e=>e.name.endsWith("endtime")));e.setCustomValidity(""),a(e,!1,null)}}startDateComparisonValidator(e){const t=e.target,o=t.getAttribute("data-compare-to"),i=t.parentElement.parentElement.parentElement.querySelector(`[name=${o}]`);this.endDateComparisonValidator({target:i},!0),this.validityCheckWrapper(e)}endDateComparisonValidator(e,t=!1){var o,i,n,r;const l=e.target;if(!l.value&&t)return;const s=l.getAttribute("data-compare-with"),d=l.parentElement.parentElement.parentElement.querySelector(`[name=${s}]`);(null===(o=l.valueAsDate)||void 0===o?void 0:o.valueOf())<(null===(i=d.valueAsDate)||void 0===i?void 0:i.valueOf())?(l.setCustomValidity(l.getAttribute("data-compare")),a(l,!0,l.getAttribute("data-compare"))):(null===(n=l.valueAsDate)||void 0===n?void 0:n.valueOf())===(null===(r=d.valueAsDate)||void 0===r?void 0:r.valueOf())?(l.setCustomValidity(""),this.validityCheckWrapper(e),this.startEndTimeComparitor(e)):(this.clearTimeComparitor(e),this.validityCheckWrapper(e))}validityCheckWrapper(e){const{target:t,hasError:o,errorMessage:i}=function(e){var t,o,i,n;e.preventDefault&&e.preventDefault();const r=e.target;let a=!0,l="";switch(r.value.length&&!r.value.replace(/\s/g,"").length?(l="This field cannot be left blank",r.setCustomValidity(l)):(l="",r.setCustomValidity&&r.setCustomValidity("")),!0){case r.validity.valueMissing:l=null!==(t=r.dataset.required)&&void 0!==t?t:"This field is required";break;case r.validity.patternMismatch:l=null!==(o=r.dataset.pattern)&&void 0!==o?o:"Incorrect format";break;case r.validity.badInput:l=null!==(i=r.dataset.badinput)&&void 0!==i?i:"Wrong input type";break;case r.validity.rangeOverflow||r.validity.rangeUnderflow:l=null!==(n=r.dataset.range)&&void 0!==n?n:"Invalid value";break;case r.validity.customError:l=r.validationMessage;break;default:a=!1}return{target:r,hasError:a,errorMessage:l}}(e);a(t,o,i)}render(){return o(i,null,o("form",{ref:e=>this.form=e,onSubmit:this.doSubmit.bind(this)},o("fieldset",{ref:e=>this.fieldset=e}),o("input",{type:"submit",ref:e=>this.submitButton=e,style:{display:"none"}})))}static get watchers(){return{formschema:["onFormSchemaChange"],data:["onDataChange"]}}};l.style='.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}';export{l as tttx_form_1_0_0}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,h as o,H as e}from"./p-d490353a.js";const l=class{constructor(o){t(this,o),this.data=void 0,this.sorteroptions=void 0,this.filteroptions=void 0,this.filterheader="Filter"}render(){return o(e,null,o("div",{class:"container"},o("tttx-toolbar_1_0_0",{border:!0},o("span",{slot:"before"},o("tttx-sorter_1_0_0",{sorterKey:"data-pattern-list",fieldOptionsData:this.sorteroptions,defaultOption:"Sort by"}),o("tttx-filter_1_0_0",{"filter-options":JSON.stringify(this.filteroptions),showSelectAll:!1,"show-option-icons":!0,"filter-header":this.filterheader,"filter-key":"data-pattern-list"})),o("span",{slot:"after"},o("tttx-standalone-input_1_0_0",{class:"qualifications-filter",showerrorbubble:!1,inputicon:"search",inline:!0,required:!0,placeholder:"Search",type:"text",maxlength:30}))),o("tttx-toolbar_1_0_0",{border:!1},o("span",{slot:"before"},o("tttx-button_1_0_0",{design:"primary",icon:"add"},"Add"))),o("tttx-list_1_0_0",{data:this.data})))}};l.style=":host{display:block}";export{l as tttx_data_pattern_1_0_0}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as i,H as
|
|
1
|
+
import{r as t,h as i,H as o}from"./p-d490353a.js";const d=class{constructor(i){t(this,i),this.keyvalues=void 0,this.horizontal=void 0,this.spacedout=void 0,this._elements=void 0}renderSingleElements(t){const o=Object.keys(t),d=[],l=(100/o.length).toString()+"%";for(const s of o)this.horizontal||this.spacedout?d.push(i("div",{style:{maxWidth:l}},i("dt",null,s),i("dd",null,t[s]))):(d.push(i("dt",null,s)),d.push(i("dd",null,t[s])));return d}renderArrayElements(t){const o=[],d=(100/t.length).toString()+"%";for(const l of t){const t=l;this.horizontal||this.spacedout?o.push(i("div",{style:{maxWidth:d}},i("dt",{class:"mainTitle"},t.title),i("dt",{class:"subTitle"},t.subTitle),i("dd",null,t.data))):(o.push(i("dt",{class:"mainTitle"},t.title)),o.push(i("dt",{class:"subTitle"},t.subTitle)),o.push(i("dd",null,t.data)))}return o}componentWillRender(){if(!this.keyvalues)return;let t;t="string"==typeof this.keyvalues?JSON.parse(this.keyvalues):this.keyvalues,this._elements=Array.isArray(t)?this.renderArrayElements(t):this.renderSingleElements(t)}render(){return i(o,null,i("dl",{class:[this.horizontal?"horizontal":void 0,this.spacedout?" spacedout":void 0].join(" ").trim()},this._elements))}};d.style=':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}}';export{d as tttx_keyvalue_block_1_0_0}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as n,h as o,H as a}from"./p-d490353a.js";const l=class{constructor(o){t(this,o),this.valueChanged=n(this,"valueChanged",7),this.focusChanged=n(this,"focusChanged",7),this.blurChanged=n(this,"blurChanged",7),this.invalidChanged=n(this,"invalidChanged",7),this.inputIconClick=n(this,"inputIconClick",7),this.leftIconClick=n(this,"leftIconClick",7),this.rightIconClick=n(this,"rightIconClick",7),this.label=void 0,this.secondarylabel=void 0,this.showerrormsg=void 0,this.showerrorbubble=!0,this.errormsg=void 0,this.iconleft=void 0,this.iconleftcolor="grey",this.iconright=void 0,this.iconrightcolor="grey",this.inputicon=void 0,this.inputiconcolor="grey",this.inline=void 0,this.inputautocapitalize=void 0,this.inputautofocus=void 0,this.inputkeyhint=void 0,this.inputindex=void 0,this.inputtitle=void 0,this.autocomplete=void 0,this.checked=void 0,this.disabled=void 0,this.max=void 0,this.maxlength=void 0,this.min=void 0,this.minlength=void 0,this.name=void 0,this.pattern=void 0,this.placeholder=void 0,this.readonly=void 0,this.required=void 0,this.step=void 0,this.type="text",this.value=void 0}handleChange(t){const n=t.target;this.value=n.value,this.valueChanged.emit(n.value)}handleFocus(t){this.focusChanged.emit(t.target.value)}handleBlur(t){this.blurChanged.emit(t.target.value)}handleInvalid(t){t.preventDefault(),this.invalidChanged.emit(t.target.value)}handleInputIconClick(t){t.preventDefault(),this.inputIconClick.emit()}handleLeftIconClick(t){t.preventDefault(),this.leftIconClick.emit()}handleRightIconClick(t){t.preventDefault(),this.rightIconClick.emit()}render(){const t=[this.showerrormsg?"invalid":"",this.inputicon?"has-input-icon":"",this.iconleft?"has-left-icon":"",this.iconright?"has-right-icon":""].join(" ");return o(a,null,o("label",null,this.label,this.required?"":o("span",{class:"optional"}," (optional)"),o("div",{class:["outer-container",this.inline?"inputInline":"inputBlock"].join(" ")},o("input",{class:t,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)&&o("span",{class:"left-icons"},this.inputicon&&o("tttx-icon_1_0_0",{class:"input-icon",icon:this.inputicon,color:this.inputiconcolor,onClick:this.handleInputIconClick.bind(this)}),this.iconleft&&o("tttx-icon_1_0_0",{class:"left-icon",icon:this.iconleft,color:this.iconleftcolor,onClick:this.handleLeftIconClick.bind(this)})),this.iconright&&o("span",{class:"right-icons"},o("tttx-icon_1_0_0",{class:"right-icon",icon:this.iconright,color:this.iconrightcolor,onClick:this.handleRightIconClick.bind(this)}))),this.secondarylabel&&o("span",{class:"secondarylabel"},this.secondarylabel),this.showerrorbubble&&o("span",{class:["errorBubble",this.showerrormsg&&this.errormsg?"visible":""].join(" ")},o("span",{class:"material-symbols-rounded"},"warning")," ",this.errormsg)))}};l.style='.material-symbols-rounded.sc-tttx-standalone-input_1_0_0{font-variation-settings:"FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24}.material-symbols-rounded.sc-tttx-standalone-input_1_0_0{font-variation-settings:"FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24}label.sc-tttx-standalone-input_1_0_0{font-weight:500;font-size:16px;line-height:18.752px;color:#212121}label.sc-tttx-standalone-input_1_0_0 .optional.sc-tttx-standalone-input_1_0_0{color:#757575;font-weight:normal}label.sc-tttx-standalone-input_1_0_0 .outer-container.sc-tttx-standalone-input_1_0_0{position:relative}label.sc-tttx-standalone-input_1_0_0 .outer-container.sc-tttx-standalone-input_1_0_0 .left-icons.sc-tttx-standalone-input_1_0_0,label.sc-tttx-standalone-input_1_0_0 .outer-container.sc-tttx-standalone-input_1_0_0 .right-icons.sc-tttx-standalone-input_1_0_0{display:flex;position:absolute;height:24px;gap:8px}label.sc-tttx-standalone-input_1_0_0 .outer-container.sc-tttx-standalone-input_1_0_0 .left-icons.sc-tttx-standalone-input_1_0_0 tttx-icon.sc-tttx-standalone-input_1_0_0,label.sc-tttx-standalone-input_1_0_0 .outer-container.sc-tttx-standalone-input_1_0_0 .right-icons.sc-tttx-standalone-input_1_0_0 tttx-icon.sc-tttx-standalone-input_1_0_0{height:24px;width:24px}label.sc-tttx-standalone-input_1_0_0 .outer-container.sc-tttx-standalone-input_1_0_0 .left-icons.sc-tttx-standalone-input_1_0_0{left:8px}label.sc-tttx-standalone-input_1_0_0 .outer-container.sc-tttx-standalone-input_1_0_0 .right-icons.sc-tttx-standalone-input_1_0_0{right:8px}label.sc-tttx-standalone-input_1_0_0 .outer-container.sc-tttx-standalone-input_1_0_0 input.sc-tttx-standalone-input_1_0_0,label.sc-tttx-standalone-input_1_0_0 .outer-container.sc-tttx-standalone-input_1_0_0 textarea.sc-tttx-standalone-input_1_0_0{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_1_0_0 .outer-container.sc-tttx-standalone-input_1_0_0 input.has-input-icon.sc-tttx-standalone-input_1_0_0,label.sc-tttx-standalone-input_1_0_0 .outer-container.sc-tttx-standalone-input_1_0_0 textarea.has-input-icon.sc-tttx-standalone-input_1_0_0{padding-left:40px}label.sc-tttx-standalone-input_1_0_0 .outer-container.sc-tttx-standalone-input_1_0_0 input.has-input-icon.has-left-icon.sc-tttx-standalone-input_1_0_0,label.sc-tttx-standalone-input_1_0_0 .outer-container.sc-tttx-standalone-input_1_0_0 textarea.has-input-icon.has-left-icon.sc-tttx-standalone-input_1_0_0{padding-left:72px}label.sc-tttx-standalone-input_1_0_0 .outer-container.sc-tttx-standalone-input_1_0_0 input.has-left-icon.sc-tttx-standalone-input_1_0_0,label.sc-tttx-standalone-input_1_0_0 .outer-container.sc-tttx-standalone-input_1_0_0 textarea.has-left-icon.sc-tttx-standalone-input_1_0_0{padding-left:40px}label.sc-tttx-standalone-input_1_0_0 .outer-container.sc-tttx-standalone-input_1_0_0 input.has-right-icon.sc-tttx-standalone-input_1_0_0,label.sc-tttx-standalone-input_1_0_0 .outer-container.sc-tttx-standalone-input_1_0_0 textarea.has-right-icon.sc-tttx-standalone-input_1_0_0{padding-right:40px}label.sc-tttx-standalone-input_1_0_0 .outer-container.sc-tttx-standalone-input_1_0_0 input.invalid.sc-tttx-standalone-input_1_0_0,label.sc-tttx-standalone-input_1_0_0 .outer-container.sc-tttx-standalone-input_1_0_0 textarea.invalid.sc-tttx-standalone-input_1_0_0{border:1px solid #dc0000}label.sc-tttx-standalone-input_1_0_0 .outer-container.sc-tttx-standalone-input_1_0_0 input.sc-tttx-standalone-input_1_0_0:not([type=submit]),label.sc-tttx-standalone-input_1_0_0 .outer-container.sc-tttx-standalone-input_1_0_0 textarea.sc-tttx-standalone-input_1_0_0:not([type=submit]){font-family:"Roboto", serif;width:100%;height:36px;font-size:16px;line-height:18.752px}label.sc-tttx-standalone-input_1_0_0 .outer-container.sc-tttx-standalone-input_1_0_0 input[type=radio].sc-tttx-standalone-input_1_0_0,label.sc-tttx-standalone-input_1_0_0 .outer-container.sc-tttx-standalone-input_1_0_0 textarea[type=radio].sc-tttx-standalone-input_1_0_0{width:20px;height:20px}label.sc-tttx-standalone-input_1_0_0 .outer-container.sc-tttx-standalone-input_1_0_0 input[type=date].sc-tttx-standalone-input_1_0_0,label.sc-tttx-standalone-input_1_0_0 .outer-container.sc-tttx-standalone-input_1_0_0 textarea[type=date].sc-tttx-standalone-input_1_0_0{background:white;display:block;min-width:calc(100% - 18px);line-height:37px}label.sc-tttx-standalone-input_1_0_0 .outer-container.sc-tttx-standalone-input_1_0_0 input[readonly].sc-tttx-standalone-input_1_0_0,label.sc-tttx-standalone-input_1_0_0 .outer-container.sc-tttx-standalone-input_1_0_0 textarea[readonly].sc-tttx-standalone-input_1_0_0{cursor:default;pointer-events:none;user-select:none;color:gray}label.sc-tttx-standalone-input_1_0_0 .outer-container.sc-tttx-standalone-input_1_0_0 input.sc-tttx-standalone-input_1_0_0:focus,label.sc-tttx-standalone-input_1_0_0 .outer-container.sc-tttx-standalone-input_1_0_0 textarea.sc-tttx-standalone-input_1_0_0:focus{border-color:#1479c6}label.sc-tttx-standalone-input_1_0_0 .outer-container.sc-tttx-standalone-input_1_0_0 input.sc-tttx-standalone-input_1_0_0:focus-visible,label.sc-tttx-standalone-input_1_0_0 .outer-container.sc-tttx-standalone-input_1_0_0 textarea.sc-tttx-standalone-input_1_0_0:focus-visible{outline:none}label.sc-tttx-standalone-input_1_0_0 .outer-container.sc-tttx-standalone-input_1_0_0 textarea.sc-tttx-standalone-input_1_0_0{padding:8px;height:auto;min-height:100px;resize:vertical}label.sc-tttx-standalone-input_1_0_0 .outer-container.inputBlock.sc-tttx-standalone-input_1_0_0{display:flex;align-items:center;line-height:21px}label.sc-tttx-standalone-input_1_0_0 .outer-container.inputBlock.sc-tttx-standalone-input_1_0_0 .left-icons.sc-tttx-standalone-input_1_0_0,label.sc-tttx-standalone-input_1_0_0 .outer-container.inputBlock.sc-tttx-standalone-input_1_0_0 .right-icons.sc-tttx-standalone-input_1_0_0{margin-top:4px}label.sc-tttx-standalone-input_1_0_0 .outer-container.inputBlock.readonly.sc-tttx-standalone-input_1_0_0{pointer-events:none;user-select:none;color:gray}label.sc-tttx-standalone-input_1_0_0 .outer-container.inputBlock.radioBlock.sc-tttx-standalone-input_1_0_0{display:block}label.sc-tttx-standalone-input_1_0_0 .outer-container.inputInline.sc-tttx-standalone-input_1_0_0{display:flex;white-space:nowrap;align-items:center;margin:0}label.sc-tttx-standalone-input_1_0_0 .outer-container.inputInline.sc-tttx-standalone-input_1_0_0 input.sc-tttx-standalone-input_1_0_0{margin-top:0}label.sc-tttx-standalone-input_1_0_0 .secondarylabel.sc-tttx-standalone-input_1_0_0{color:#757575;font-size:14px;line-height:16.408px;font-weight:normal;display:flex;margin-top:4px}label.sc-tttx-standalone-input_1_0_0 .errorBubble.sc-tttx-standalone-input_1_0_0{position:relative;font-size:14px;line-height:16.408px;font-weight:normal;width:100%;font-family:"Roboto", sans-serif;color:#dc0000;display:flex;align-content:center;align-items:center;justify-items:center;margin-top:4px}label.sc-tttx-standalone-input_1_0_0 .errorBubble.sc-tttx-standalone-input_1_0_0:not(.visible){display:none}label.sc-tttx-standalone-input_1_0_0 .errorBubble.sc-tttx-standalone-input_1_0_0 span.sc-tttx-standalone-input_1_0_0{color:#dc0000;font-size:16px;margin-right:4px}.material-symbols-rounded.sc-tttx-standalone-input_1_0_0{font-family:"Material Symbols Rounded", sans-serif;font-weight:400;font-style:normal;font-size:24px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;color:#9e9e9e}.sc-tttx-standalone-input_1_0_0-h{display:block}';export{l as tttx_standalone_input_1_0_0}
|
package/dist/tttx/tttx.esm.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,b as t}from"./p-d490353a.js";export{s as setNonce}from"./p-d490353a.js";(()=>{const t=import.meta.url,o={};return""!==t&&(o.resourcesUrl=new URL(".",t).href),e(o)})().then((e=>t([["p-
|
|
1
|
+
import{p as e,b as t}from"./p-d490353a.js";export{s as setNonce}from"./p-d490353a.js";(()=>{const t=import.meta.url,o={};return""!==t&&(o.resourcesUrl=new URL(".",t).href),e(o)})().then((e=>t([["p-ee358ce4",[[1,"tttx-data-pattern_1_0_0",{data:[1],sorteroptions:[1],filteroptions:[1],filterheader:[1]}]]],["p-c3d6914a",[[1,"tttx-form_1_0_0",{formschema:[1025],data:[1032],submit:[64],setSelectOptions:[64]}]]],["p-72ede7d8",[[1,"tttx-multiselect-box_1_0_0",{optionsData:[1,"options-data"],label:[1],inline:[4],placeholder:[1],searchEnabled:[4,"search-enabled"],htmlVisibleValue:[4,"html-visible-value"],visibleValue:[1,"visible-value"],open:[32],unsavedSelectedItems:[32],searchTerm:[32]},[[0,"closeSelectBox","handleCloseSelectBox"],[0,"blur","handleBlur"]]]]],["p-5b3e1fae",[[1,"tttx-dialog-box_1_0_0",{data:[1025],size:[1],open:[1028],allowOverflow:[4,"allow-overflow"],elementSize:[32]},[[9,"resize","handleResize"]]]]],["p-23f45005",[[1,"tttx-dialog_1_0_0",{header:[1],type:[1],size:[1],open:[4],allowOverflow:[4,"allow-overflow"],closeEnabled:[4,"close-enabled"],elementSize:[32]},[[9,"resize","handleResize"]]]]],["p-1f6cb3c3",[[1,"tttx-tree-view_1_0_0",{data:[1040],firstSelected:[1028,"first-selected"],treeData:[32],selectedId:[32]}]]],["p-59c7b049",[[0,"tttx-checkbox_1_0_0",{checkboxId:[1,"checkbox-id"],label:[1],inline:[4],indeterminate:[4],checked:[4]}]]],["p-63ad6fb7",[[1,"tttx-expander_1_0_0",{name:[1],open:[4],lefticon:[1],lefticoncolor:[1],isExpanded:[32]}]]],["p-7a7fb9b3",[[2,"tttx-tabs_1_0_0",{tabsName:[1,"tabs-name"],navigation:[4],wide:[4],tabs:[1],_tabs:[32]},[[0,"keydown","handleKeyDown"]]]]],["p-a01e679a",[[4,"tttx-checkbox-group-caption_1_0_0"]]],["p-1e5ff5f8",[[4,"tttx-checkbox-group-heading_1_0_0"]]],["p-9434561e",[[1,"tttx-checkbox-group_1_0_0"]]],["p-f374e293",[[1,"tttx-keyvalue-block_1_0_0",{keyvalues:[1],horizontal:[4],spacedout:[4],_elements:[32]}]]],["p-796f699a",[[1,"tttx-loading-spinner_1_0_0",{loadingMessage:[1028,"loading-message"],size:[1025]}]]],["p-c170e3b8",[[2,"tttx-percentage-bar_1_0_0",{percentage:[8],thresholds:[1],color:[1],min:[1],labelid:[1],_percentage:[32],_ranges:[32],_min:[32]}]]],["p-0e515960",[[1,"tttx-qrcode_1_0_0",{link:[1025],size:[1026]}]]],["p-05c242f0",[[1,"tttx-tag_1_0_0",{text:[1],color:[1],textColor:[1,"text-color"]}]]],["p-56c8c353",[[2,"tttx-textarea_1_0_0",{label:[1],secondarylabel:[1],showerrormsg:[4],showerrorbubble:[4],errormsg:[1],rows:[2],textareaautofocus:[4],inputkeyhint:[1],inputindex:[8],inputtitle:[1],disabled:[4],maxlength:[8],name:[1],placeholder:[1],readonly:[8],required:[4],value:[1032]}]]],["p-87481935",[[1,"tttx-icon_1_0_0",{icon:[1],color:[1]}]]],["p-fe967031",[[2,"tttx-standalone-input_1_0_0",{label:[1],secondarylabel:[1],showerrormsg:[4],showerrorbubble:[4],errormsg:[1],iconleft:[1],iconleftcolor:[1],iconright:[1],iconrightcolor:[1],inputicon:[1],inputiconcolor:[1],inline:[4],inputautocapitalize:[1],inputautofocus:[4],inputkeyhint:[1],inputindex:[8],inputtitle:[1],autocomplete:[1],checked:[4],disabled:[4],max:[8],maxlength:[8],min:[8],minlength:[8],name:[1],pattern:[1],placeholder:[1],readonly:[8],required:[4],step:[8],type:[1],value:[1032]}]]],["p-6704ac94",[[1,"tttx-select-box_1_0_0",{optionsData:[1,"options-data"],label:[1],inline:[4],placeholder:[1],searchEnabled:[4,"search-enabled"],selectedValue:[1,"selected-value"],open:[32],selectedItem:[32],searchTerm:[32],setSelectedItem:[64]},[[0,"closeSelectBox","handleCloseSelectBox"],[0,"blur","handleBlur"]]]]],["p-6abfd043",[[1,"tttx-filter_1_0_0",{filterKey:[1,"filter-key"],filterOptions:[1,"filter-options"],showSelectAll:[4,"show-select-all"],showSearchField:[4,"show-search-field"],showOptionIcons:[4,"show-option-icons"],filterButtonStyle:[1,"filter-button-style"],filterHeader:[1,"filter-header"],defaultFilterOptions:[1,"default-filter-options"],popoverWidth:[1,"popover-width"],showPopover:[32],displayedFilterSettings:[32],selectedFilters:[32],filterSearchTerm:[32],allSelected:[32]},[[0,"closeFilter","handleCloseFilter"]]],[1,"tttx-list_1_0_0",{data:[1025],name:[1],_data:[32]}],[1,"tttx-sorter_1_0_0",{sorterKey:[1,"sorter-key"],defaultSortDirection:[1,"default-sort-direction"],fieldOptionsData:[1,"field-options-data"],defaultOption:[1,"default-option"],selectedField:[32],sortDirection:[32],dropdownExpand:[32],dropdownOptions:[32]},[[0,"closeSorter","handleCloseSorter"]]],[1,"tttx-toolbar_1_0_0",{border:[4],viewSize:[32]},[[9,"resize","handleResize"]]]]],["p-a8e76e78",[[1,"tttx-button_1_0_0",{notext:[4],icon:[1],iconposition:[1],iconcolor:[1025],design:[1]}]]]],e)));
|
|
@@ -39,12 +39,6 @@ export declare class TttxForm {
|
|
|
39
39
|
*
|
|
40
40
|
* @param {SubmitEvent} event - The event object for the form submission.
|
|
41
41
|
* @returns {void}
|
|
42
|
-
*
|
|
43
|
-
* @example
|
|
44
|
-
* const form = document.getElementById('myForm');
|
|
45
|
-
* form.addEventListener('submit', (event) => {
|
|
46
|
-
* doSubmit(event);
|
|
47
|
-
* });
|
|
48
42
|
*/
|
|
49
43
|
doSubmit(event: SubmitEvent): void;
|
|
50
44
|
componentWillLoad(): void;
|
|
@@ -30,9 +30,9 @@ export declare class TttxInput {
|
|
|
30
30
|
/**
|
|
31
31
|
* tabindex - Allows the HTML elements to be focusable
|
|
32
32
|
* @example <caption>In HTML (like `index.html`)</caption>
|
|
33
|
-
* <tttx-standalone-
|
|
33
|
+
* <tttx-standalone-input_1_0_0 input-index="1" />
|
|
34
34
|
* @example <caption>In TSX files</caption>
|
|
35
|
-
* <tttx-standalone-
|
|
35
|
+
* <tttx-standalone-input_1_0_0 inputindex={1} />
|
|
36
36
|
*/
|
|
37
37
|
inputindex: string | number;
|
|
38
38
|
inputtitle: string;
|
|
@@ -17,9 +17,9 @@ export declare class TttxTextarea {
|
|
|
17
17
|
/**
|
|
18
18
|
* tabindex - Allows the HTML elements to be focusable
|
|
19
19
|
* @example <caption>In HTML (like `index.html`)</caption>
|
|
20
|
-
* <tttx-
|
|
20
|
+
* <tttx-textarea_1_0_0 input-index="1" />
|
|
21
21
|
* @example <caption>In TSX files</caption>
|
|
22
|
-
* <tttx-
|
|
22
|
+
* <tttx-textarea_1_0_0 inputindex={1} />
|
|
23
23
|
*/
|
|
24
24
|
inputindex: string | number;
|
|
25
25
|
inputtitle: string;
|