@3t-transform/threeteeui 0.1.42 → 0.1.44
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/{domsanitiser.options-277161b9.js → domsanitiser.options-975e3317.js} +12 -12
- package/dist/cjs/{index-76f14107.js → index-2ea393bb.js} +146 -3
- package/dist/cjs/loader.cjs.js +4 -19
- package/dist/cjs/tttx-button.cjs.entry.js +24 -24
- package/dist/cjs/tttx-dialog-box.cjs.entry.js +80 -0
- package/dist/cjs/tttx-filter.cjs.entry.js +177 -159
- package/dist/cjs/tttx-form.cjs.entry.js +458 -458
- package/dist/cjs/tttx-icon.cjs.entry.js +11 -11
- package/dist/cjs/tttx-keyvalue-block.cjs.entry.js +59 -59
- package/dist/cjs/tttx-list.cjs.entry.js +32 -32
- package/dist/cjs/tttx-loading-spinner.cjs.entry.js +16 -16
- package/dist/cjs/tttx-sorter.cjs.entry.js +102 -102
- package/dist/cjs/tttx-standalone-input.cjs.entry.js +79 -79
- package/dist/cjs/tttx-toolbar.cjs.entry.js +10 -10
- package/dist/cjs/tttx.cjs.js +9 -117
- package/dist/collection/collection-manifest.json +3 -2
- package/dist/collection/components/atoms/tttx-button/tttx-button.js +110 -110
- package/dist/collection/components/atoms/tttx-button/tttx-button.stories.js +14 -14
- package/dist/collection/components/atoms/tttx-icon/tttx-icon.js +62 -62
- package/dist/collection/components/atoms/tttx-icon/tttx-icon.stories.js +22 -22
- package/dist/collection/components/atoms/tttx-keyvalue-block/tttx-keyvalue-block.js +109 -109
- package/dist/collection/components/atoms/tttx-keyvalue-block/tttx-keyvalue-block.stories.js +38 -38
- package/dist/collection/components/atoms/tttx-loading-spinner/tttx-loading-spinner.js +67 -67
- package/dist/collection/components/atoms/tttx-loading-spinner/tttx-loading-spinner.stories.js +17 -17
- package/dist/collection/components/molecules/tttx-dialog-box/tttx-dialog-box.css +146 -0
- package/dist/collection/components/molecules/tttx-dialog-box/tttx-dialog-box.js +172 -0
- package/dist/collection/components/molecules/tttx-dialog-box/tttx-dialog-box.stories.js +380 -0
- package/dist/collection/components/molecules/tttx-filter/tttx-filter.js +369 -334
- package/dist/collection/components/molecules/tttx-filter/tttx-filter.stories.js +73 -62
- package/dist/collection/components/molecules/tttx-form/lib/setErrorState.js +37 -37
- package/dist/collection/components/molecules/tttx-form/lib/validityCheck.js +61 -61
- package/dist/collection/components/molecules/tttx-form/tttx-form.js +479 -479
- package/dist/collection/components/molecules/tttx-form/tttx-form.stories.js +272 -272
- package/dist/collection/components/molecules/tttx-list/tttx-list.js +105 -105
- package/dist/collection/components/molecules/tttx-list/tttx-list.stories.js +43 -43
- package/dist/collection/components/molecules/tttx-sorter/tttx-sorter.js +224 -224
- package/dist/collection/components/molecules/tttx-sorter/tttx-sorter.stories.js +42 -42
- package/dist/collection/components/molecules/tttx-standalone-input/tttx-standalone-input.js +759 -759
- package/dist/collection/components/molecules/tttx-standalone-input/tttx-standalone-input.stories.js +172 -172
- package/dist/collection/components/molecules/tttx-toolbar/tttx-toolbar.js +44 -44
- package/dist/collection/components/molecules/tttx-toolbar/tttx-toolbar.stories.js +14 -14
- package/dist/collection/components/palette.stories.js +7 -7
- package/dist/collection/docs/gettingstarted-developer.stories.js +5 -5
- package/dist/collection/icons.js +2838 -2838
- package/dist/collection/index.js +1 -1
- package/dist/collection/shared/domsanitiser.options.js +14 -14
- package/dist/components/domsanitiser.options.js +15 -45
- package/dist/components/index.d.ts +10 -0
- package/dist/components/index.js +2 -5
- package/dist/components/tttx-button.js +1 -54
- package/dist/{tttx/tttx-button.entry.js → components/tttx-button2.js} +52 -26
- package/dist/components/tttx-dialog-box.d.ts +11 -0
- package/dist/components/tttx-dialog-box.js +110 -0
- package/dist/components/tttx-filter.js +210 -191
- package/dist/components/tttx-form.js +475 -475
- package/dist/components/tttx-icon2.js +28 -28
- package/dist/components/tttx-keyvalue-block.js +76 -76
- package/dist/components/tttx-list.js +53 -53
- package/dist/components/tttx-loading-spinner.js +33 -33
- package/dist/components/tttx-sorter.js +130 -130
- package/dist/components/tttx-standalone-input.js +130 -130
- package/dist/components/tttx-toolbar.js +26 -26
- package/dist/esm/{domsanitiser.options-cc420431.js → domsanitiser.options-3c7ded83.js} +12 -12
- package/dist/esm/{index-9cde46a5.js → index-018a3e54.js} +146 -4
- package/dist/esm/loader.js +4 -19
- package/dist/esm/polyfills/core-js.js +0 -0
- package/dist/esm/polyfills/css-shim.js +1 -1
- package/dist/esm/polyfills/dom.js +0 -0
- package/dist/esm/polyfills/es5-html-element.js +0 -0
- package/dist/esm/polyfills/index.js +0 -0
- package/dist/esm/polyfills/system.js +0 -0
- package/dist/esm/tttx-button.entry.js +24 -24
- package/dist/esm/tttx-dialog-box.entry.js +76 -0
- package/dist/esm/tttx-filter.entry.js +177 -159
- package/dist/esm/tttx-form.entry.js +458 -458
- package/dist/esm/tttx-icon.entry.js +11 -11
- package/dist/esm/tttx-keyvalue-block.entry.js +59 -59
- package/dist/esm/tttx-list.entry.js +32 -32
- package/dist/esm/tttx-loading-spinner.entry.js +16 -16
- package/dist/esm/tttx-sorter.entry.js +102 -102
- package/dist/esm/tttx-standalone-input.entry.js +79 -79
- package/dist/esm/tttx-toolbar.entry.js +10 -10
- package/dist/esm/tttx.js +6 -117
- package/dist/tttx/index.esm.js +0 -1
- package/dist/tttx/{p-e53c7f9d.entry.js → p-01863bf1.entry.js} +1 -1
- package/dist/tttx/{p-4e637d50.entry.js → p-0ed6f369.entry.js} +1 -1
- package/dist/tttx/p-2dd43e97.entry.js +1 -0
- package/dist/tttx/{p-aef96333.entry.js → p-2e135be9.entry.js} +1 -1
- package/dist/tttx/p-350ddb03.js +3 -0
- package/dist/tttx/{p-d2f1aa8e.entry.js → p-48b15a3d.entry.js} +1 -1
- package/dist/tttx/{p-561224f5.entry.js → p-5e91cf1c.entry.js} +1 -1
- package/dist/tttx/p-71c244bd.js +2 -0
- package/dist/tttx/{p-dc2a37b0.entry.js → p-7bba2014.entry.js} +1 -1
- package/dist/tttx/p-d075a2c0.entry.js +1 -0
- package/dist/tttx/{p-bd1edaed.entry.js → p-deec335c.entry.js} +1 -1
- package/dist/tttx/{p-9f1e9cc1.entry.js → p-e061910d.entry.js} +1 -1
- package/dist/tttx/{p-f885f17a.entry.js → p-f247a7bc.entry.js} +1 -1
- package/dist/tttx/tttx.esm.js +1 -129
- package/dist/types/components/atoms/tttx-button/tttx-button.d.ts +10 -10
- package/dist/types/components/atoms/tttx-button/tttx-button.stories.d.ts +10 -10
- package/dist/types/components/atoms/tttx-icon/tttx-icon.d.ts +5 -5
- package/dist/types/components/atoms/tttx-icon/tttx-icon.stories.d.ts +20 -20
- package/dist/types/components/atoms/tttx-keyvalue-block/tttx-keyvalue-block.d.ts +7 -7
- package/dist/types/components/atoms/tttx-keyvalue-block/tttx-keyvalue-block.stories.d.ts +9 -9
- package/dist/types/components/atoms/tttx-loading-spinner/tttx-loading-spinner.d.ts +6 -6
- package/dist/types/components/atoms/tttx-loading-spinner/tttx-loading-spinner.stories.d.ts +17 -17
- package/dist/types/components/molecules/tttx-dialog-box/interfaces.d.ts +25 -0
- package/dist/types/components/molecules/tttx-dialog-box/tttx-dialog-box.d.ts +18 -0
- package/dist/types/components/molecules/tttx-dialog-box/tttx-dialog-box.stories.d.ts +23 -0
- package/dist/types/components/molecules/tttx-filter/tttx-filter.d.ts +41 -39
- package/dist/types/components/molecules/tttx-filter/tttx-filter.stories.d.ts +70 -68
- package/dist/types/components/molecules/tttx-form/lib/setErrorState.d.ts +13 -13
- package/dist/types/components/molecules/tttx-form/lib/validityCheck.d.ts +17 -17
- package/dist/types/components/molecules/tttx-form/tttx-form.d.ts +133 -133
- package/dist/types/components/molecules/tttx-form/tttx-form.stories.d.ts +278 -278
- package/dist/types/components/molecules/tttx-list/tttx-list.d.ts +11 -11
- package/dist/types/components/molecules/tttx-list/tttx-list.stories.d.ts +14 -14
- package/dist/types/components/molecules/tttx-sorter/tttx-sorter.d.ts +19 -19
- package/dist/types/components/molecules/tttx-sorter/tttx-sorter.stories.d.ts +30 -30
- package/dist/types/components/molecules/tttx-standalone-input/tttx-standalone-input.d.ts +69 -69
- package/dist/types/components/molecules/tttx-standalone-input/tttx-standalone-input.stories.d.ts +143 -143
- package/dist/types/components/molecules/tttx-toolbar/tttx-toolbar.d.ts +4 -4
- package/dist/types/components/molecules/tttx-toolbar/tttx-toolbar.stories.d.ts +13 -13
- package/dist/types/components/palette.stories.d.ts +6 -6
- package/dist/types/components.d.ts +26 -0
- package/dist/types/docs/gettingstarted-developer.stories.d.ts +5 -5
- package/dist/types/icons.d.ts +2 -2
- package/dist/types/index.d.ts +1 -1
- package/dist/types/shared/domsanitiser.options.d.ts +10 -10
- package/dist/types/stencil-public-runtime.d.ts +59 -3
- package/loader/index.d.ts +9 -0
- package/package.json +2 -2
- package/dist/cjs/app-globals-3a1e7e63.js +0 -5
- package/dist/cjs/css-shim-211819bc.js +0 -6
- package/dist/cjs/dom-9deb26c8.js +0 -75
- package/dist/cjs/domsanitiser.options-3f1501b5.js +0 -1697
- package/dist/cjs/index-39a867c5.js +0 -3298
- package/dist/cjs/shadow-css-bf3843d2.js +0 -389
- package/dist/esm/app-globals-0f993ce5.js +0 -3
- package/dist/esm/css-shim-9d54a2f2.js +0 -4
- package/dist/esm/dom-6be6f662.js +0 -73
- package/dist/esm/domsanitiser.options-6f2878c8.js +0 -1694
- package/dist/esm/index-e3e64631.js +0 -3262
- package/dist/esm/shadow-css-ed4599f8.js +0 -387
- package/dist/tttx/app-globals-0f993ce5.js +0 -3
- package/dist/tttx/css-shim-9d54a2f2.js +0 -4
- package/dist/tttx/dom-6be6f662.js +0 -73
- package/dist/tttx/domsanitiser.options-6f2878c8.js +0 -1694
- package/dist/tttx/index-e3e64631.js +0 -3262
- package/dist/tttx/p-3b1be372.entry.js +0 -1
- package/dist/tttx/p-b4290a5b.js +0 -3
- package/dist/tttx/p-d0ff9ad0.entry.js +0 -1
- package/dist/tttx/p-db059a69.js +0 -2
- package/dist/tttx/shadow-css-ed4599f8.js +0 -387
- package/dist/tttx/tttx-filter.entry.js +0 -165
- package/dist/tttx/tttx-form.entry.js +0 -468
- package/dist/tttx/tttx-icon.entry.js +0 -17
- package/dist/tttx/tttx-keyvalue-block.entry.js +0 -65
- package/dist/tttx/tttx-list.entry.js +0 -38
- package/dist/tttx/tttx-loading-spinner.entry.js +0 -22
- package/dist/tttx/tttx-sorter.entry.js +0 -108
- package/dist/tttx/tttx-standalone-input.entry.js +0 -85
- package/dist/tttx/tttx-toolbar.entry.js +0 -16
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as i,h as e}from"./p-
|
|
1
|
+
import{r as t,c as i,h as e}from"./p-71c244bd.js";import{p as s,d as n}from"./p-350ddb03.js";const o=class{constructor(e){t(this,e),this.rowClick=i(this,"listRowClick",7),this.data=void 0,this.name=void 0}onRowClickHandler(t){t.clickable&&t.rowData&&this.rowClick.emit({name:this.name,data:t.rowData})}renderListItem(t){const i=s.sanitize(t.element,n);return e("li",{class:"item "+(t.clickable?"clickable":""),onClick:()=>{this.onRowClickHandler(t)}},t.element&&e("span",{class:"item-content",innerHTML:i}),t.icon&&e("tttx-icon",{class:"align-right ",icon:t.icon}))}render(){if(this.data)return this._data="string"==typeof this.data?JSON.parse(this.data):this.data,e("ul",{class:"list"},this._data.map((t=>this.renderListItem(t))))}};o.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:flex;flex-direction:column}.list{margin:0;padding:0}.item{list-style:none;margin:0;padding:8px;border-bottom:1px solid #d5d5d5;min-height:36px;display:flex;align-items:center}.item:first-of-type{border-top:1px solid #d5d5d5}.item.clickable:hover{cursor:pointer}.item.clickable:active{background-color:#e6e6e6}.align-right{margin-left:auto}.item-content{display:flex;align-items:center}';export{o as tttx_list}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as o,c as i,h as t}from"./p-71c244bd.js";import{p as d,d as l}from"./p-350ddb03.js";const a=class{constructor(t){o(this,t),this.closeButtonClick=i(this,"closeButtonClick",6),this.buttonClick=i(this,"buttonClick",7),this.data=void 0,this.size="regular",this.elementSize=void 0}handleResize(){this.elementSize=window.innerWidth<698?"mobile":this.size}onCloseClickHandler(){this.closeButtonClick.emit({close:!0})}onButtonClickHandler(o){this.buttonClick.emit({buttonNumber:o,buttonClicked:!0})}renderHeader(o){const i=o.title,d=!!o.hasClose;return t("div",{class:"dialog-box-header"},!!o.hasIcon&&t("tttx-icon",{class:"dialog-box-icon",icon:o.iconName,color:o.iconColor}),t("h3",{class:"dialog-box-title"},i),d&&t("div",{class:"dialog-box-align-right close-button",onClick:()=>this.onCloseClickHandler()},t("tttx-icon",{class:"dialog-box-icon-close dialog-box-clickable",icon:"close",color:"black"})))}renderContent(o){if(o.isCustomHtml){const i=d.sanitize(o.customHtml,l);return t("div",{class:"dialog-box-body"},t("div",{innerHTML:i}))}return t("div",{class:"dialog-box-body"},t("span",{class:"dialog-box-content"},o.contentText))}renderFooter(o){const i=o.buttons,d=i.length>0,l=i.length>1,a="mobile"===this.elementSize;return t("div",{class:"dialog-box-footer"},t("div",{class:"dialog-box-align-right"},3==i.length&&t("tttx-button",{class:"dialog-box-spacing-button",onClick:()=>this.onButtonClickHandler(3),design:i[2].type,notext:a,icon:i[2].icon},!a&&i[2].name),l&&t("tttx-button",{class:"dialog-box-spacing-button",onClick:()=>this.onButtonClickHandler(2),design:i[1].type,icon:i[1].icon},i[1].name),d&&t("tttx-button",{onClick:()=>this.onButtonClickHandler(1),design:i[0].type,icon:i[0].icon},i[0].name)))}componentWillLoad(){this.elementSize=window.innerWidth<698?"mobile":this.size}render(){if(this.data)return this._data="string"==typeof this.data?JSON.parse(this.data):this.data,t("div",{class:`dialog-box ${this.elementSize}`},t("div",{class:`dialog-box-padding dialog-box-header-box ${this._data.type||""}`},this.renderHeader(this._data.header)),t("div",{class:"dialog-box-padding dialog-box-body-box"},this.renderContent(this._data.body)),t("div",{class:"dialog-box-padding dialog-box-footer-box"},this.renderFooter(this._data.footer)))}};a.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}h3{margin-block-start:0em;margin-block-end:0em}.dialog-box{background-color:#ffffff;display:flex;flex-direction:column;border:1px solid #d5d5d5;border-radius:4px;box-shadow:0px 1px 5px #1111114d}.dialog-box.small{width:400px;min-height:200px;max-height:500px}.dialog-box.regular{width:600px;min-height:200px;max-height:500px}.dialog-box.large{width:900px;min-height:200px;max-height:500px}.dialog-box.mobile{max-width:424px;max-height:510px}.dialog-box-clickable{cursor:pointer}.dialog-box-padding{padding:8px 16px}.dialog-box-align-right{margin-left:auto;display:flex}.dialog-box-header-box{border-bottom:1px solid #d5d5d5;display:flex;flex-direction:row;height:36px}.dialog-box-header{display:flex;align-items:center;width:100%}.dialog-box-title{font-size:18;font-weight:600;font-family:"Roboto", serif}.dialog-box-icon{padding-right:8px;width:24px;height:24px}.dialog-box-icon-close{margin-left:auto;padding-top:3px;width:24px;height:24px}.dialog-box-content{font-size:16;font-weight:400;font-family:"Roboto", serif}.dialog-box-body-box{padding:16px}.dialog-box-footer-box{display:flex;flex-direction:row;margin-top:auto;border-top:1px solid #d5d5d5;height:36px}.dialog-box-footer{display:flex;align-items:center;width:100%}.dialog-box-spacing-button{margin-right:8px}.dialog-box-header-box.info{border-bottom:1px solid #1479c6}.dialog-box-header-box.success{border-bottom:1px solid #a2bb31}.dialog-box-header-box.warning{border-bottom:1px solid #f59500}.dialog-box-header-box.critical{border-bottom:1px solid #dc0000}';export{a as tttx_dialog_box}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as o,h as t,H as r}from"./p-
|
|
1
|
+
import{r as o,h as t,H as r}from"./p-71c244bd.js";const i=class{constructor(t){o(this,t),this._iconcolor="black",this.notext=void 0,this.icon=void 0,this.iconposition="left",this.design="default"}componentWillLoad(){this._design=this.design,["primary","default","disabled","danger","borderless"].includes(this.design)||(this._design="default"),"primary"!==this._design&&"danger"!==this._design||(this._iconcolor="white")}render(){return t(r,null,t("button",{class:`button ${this._design} ${this.icon?"withicon":""} ${this.icon&&this.iconposition?"icon"+this.iconposition:""} ${this.notext?"notext":""}`},this.icon&&"left"===this.iconposition&&t("div",{class:"icon-left"},t("tttx-icon",{icon:this.icon,color:this._iconcolor})),!this.notext&&t("div",{class:"button-content"},t("slot",null)),this.icon&&"right"===this.iconposition&&t("div",{class:"icon-right"},t("tttx-icon",{icon:this.icon,color:this._iconcolor}))))}};i.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:400}.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:hover{background:rgba(17, 17, 17, 0.1);border:1px solid #D5D5D5}.button:active{background:rgba(17, 17, 17, 0.2);border:1px solid #D5D5D5}.primary{background:#1479c6;border:1px solid #1479c6;color:white}.primary:hover{background:#146EB3;border:1px solid #146EB3}.primary:active{background:#1464A2;border:1px solid #1464A2}.borderless{background:transparent;border:none;color:#212121}.borderless:hover{background:rgba(17, 17, 17, 0.1);border:none}.borderless:active{background:rgba(17, 17, 17, 0.2);border:none}.danger{background:#DC0000;border:1px solid #DC0000;color:white}.danger:hover{background:#C60000;border:1px solid #C60000}.danger:active{background:#B00000;border:1px solid #B00000}.disabled{background:#aeaeae;border:none;color:#4c4c4c;cursor:not-allowed}.disabled:hover{background:#aeaeae;border:none;color:#4c4c4c;cursor:not-allowed}.disabled:active{background:#aeaeae;border:none;color:#4c4c4c;cursor:not-allowed}:host{display:inline-block}tttx-icon{cursor:inherit}.spacingleft{margin-left:8px}';export{i as tttx_button}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as o,h as t,H as r}from"./p-
|
|
1
|
+
import{r as o,h as t,H as r}from"./p-71c244bd.js";const e=class{constructor(t){o(this,t),this.icon=void 0,this.color="grey"}render(){return t(r,null,t("span",{class:`material-symbols-rounded ${this.color?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 +1 @@
|
|
|
1
|
-
import{r as o,c as t,h as r,H as e,g as i}from"./p-
|
|
1
|
+
import{r as o,c as t,h as r,H as e,g as i}from"./p-71c244bd.js";const n=class{constructor(r){o(this,r),this.sorterChangeEvent=t(this,"sorterChangeEvent",7),this.sorterKey=void 0,this.defaultSortDirection="descending",this.fieldOptionsData=null,this.defaultOption="",this.selectedField=this.defaultOption,this.sortDirection=this.defaultSortDirection,this.dropdownExpand=!1,this.dropdownOptions=void 0}emitSortEvent(){this.sorterChangeEvent.emit({sorterDirection:this.sortDirection,sorterKey:this.sorterKey,sortField:this.selectedField})}onSortToggleClick(o){o.preventDefault(),this.sortDirection="ascending"==this.sortDirection?"descending":"ascending",this.emitSortEvent()}onDropdownClicked(){this.dropdownExpand=!this.dropdownExpand}onDropdownSelected(o){this.dropdownExpand=!1,this.selectedField=o.target.innerHTML,this.emitSortEvent()}render(){const o="string"==typeof this.fieldOptionsData?JSON.parse(this.fieldOptionsData):this.fieldOptionsData;if(!this.fieldOptionsData)return;const t="ascending"==this.sortDirection?"arrow_upward":"arrow_downward",i=this.dropdownExpand?"expand_less":"expand_more",n=this.selectedField;return r(e,{id:`sorter__${this.sorterKey}`},r("div",{tabindex:0,class:"sorter-container "+(this.dropdownExpand?"--expanded":"")},r("button",{class:"arrow-toggle-button",type:"button",onClick:this.onSortToggleClick.bind(this)},r("tttx-icon",{icon:t,color:"black"})),r("div",{class:"dropdown-selector",onClick:this.onDropdownClicked.bind(this)},r("div",{class:"dropdown-selector-button"},r("div",{class:"dropdown-selector-text"},n),r("div",{class:"dropdown-selector-chevron"},r("tttx-icon",{icon:i,color:"black"})))),this.dropdownExpand&&r("div",{class:"dropdown-options-list"},o.sorterOptions.map((o=>r("div",{class:"dropdown-option",tabIndex:-1,onClick:this.onDropdownSelected.bind(this),key:o.optionLabel},o.optionLabel))))))}get el(){return i(this)}};n.style='.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}@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}.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}@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:100%;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:#e7f1f9}.sorter-container.--expanded{border-color:#1579c6}@media (max-width: 475px){.sorter-container.--expanded{border:none}}';export{n as tttx_sorter}
|
package/dist/tttx/tttx.esm.js
CHANGED
|
@@ -1,129 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
3
|
-
|
|
4
|
-
/*
|
|
5
|
-
Stencil Client Patch Browser v2.20.0 | MIT Licensed | https://stenciljs.com
|
|
6
|
-
*/
|
|
7
|
-
const getDynamicImportFunction = (namespace) => `__sc_import_${namespace.replace(/\s|-/g, '_')}`;
|
|
8
|
-
const patchBrowser = () => {
|
|
9
|
-
// NOTE!! This fn cannot use async/await!
|
|
10
|
-
if (BUILD.isDev && !BUILD.isTesting) {
|
|
11
|
-
consoleDevInfo('Running in development mode.');
|
|
12
|
-
}
|
|
13
|
-
if (BUILD.cssVarShim) {
|
|
14
|
-
// shim css vars
|
|
15
|
-
plt.$cssShim$ = win.__cssshim;
|
|
16
|
-
}
|
|
17
|
-
if (BUILD.cloneNodeFix) {
|
|
18
|
-
// opted-in to polyfill cloneNode() for slot polyfilled components
|
|
19
|
-
patchCloneNodeFix(H.prototype);
|
|
20
|
-
}
|
|
21
|
-
if (BUILD.profile && !performance.mark) {
|
|
22
|
-
// not all browsers support performance.mark/measure (Safari 10)
|
|
23
|
-
// because the mark/measure APIs are designed to write entries to a buffer in the browser that does not exist,
|
|
24
|
-
// simply stub the implementations out.
|
|
25
|
-
// TODO(STENCIL-323): Remove this patch when support for older browsers is removed (breaking)
|
|
26
|
-
// @ts-ignore
|
|
27
|
-
performance.mark = performance.measure = () => {
|
|
28
|
-
/*noop*/
|
|
29
|
-
};
|
|
30
|
-
performance.getEntriesByName = () => [];
|
|
31
|
-
}
|
|
32
|
-
// @ts-ignore
|
|
33
|
-
const scriptElm = BUILD.scriptDataOpts || BUILD.safari10 || BUILD.dynamicImportShim
|
|
34
|
-
? Array.from(doc.querySelectorAll('script')).find((s) => new RegExp(`\/${NAMESPACE}(\\.esm)?\\.js($|\\?|#)`).test(s.src) ||
|
|
35
|
-
s.getAttribute('data-stencil-namespace') === NAMESPACE)
|
|
36
|
-
: null;
|
|
37
|
-
const importMeta = import.meta.url;
|
|
38
|
-
const opts = BUILD.scriptDataOpts ? scriptElm['data-opts'] || {} : {};
|
|
39
|
-
if (BUILD.safari10 && 'onbeforeload' in scriptElm && !history.scrollRestoration /* IS_ESM_BUILD */) {
|
|
40
|
-
// Safari < v11 support: This IF is true if it's Safari below v11.
|
|
41
|
-
// This fn cannot use async/await since Safari didn't support it until v11,
|
|
42
|
-
// however, Safari 10 did support modules. Safari 10 also didn't support "nomodule",
|
|
43
|
-
// so both the ESM file and nomodule file would get downloaded. Only Safari
|
|
44
|
-
// has 'onbeforeload' in the script, and "history.scrollRestoration" was added
|
|
45
|
-
// to Safari in v11. Return a noop then() so the async/await ESM code doesn't continue.
|
|
46
|
-
// IS_ESM_BUILD is replaced at build time so this check doesn't happen in systemjs builds.
|
|
47
|
-
return {
|
|
48
|
-
then() {
|
|
49
|
-
/* promise noop */
|
|
50
|
-
},
|
|
51
|
-
};
|
|
52
|
-
}
|
|
53
|
-
if (!BUILD.safari10 && importMeta !== '') {
|
|
54
|
-
opts.resourcesUrl = new URL('.', importMeta).href;
|
|
55
|
-
}
|
|
56
|
-
else if (BUILD.dynamicImportShim || BUILD.safari10) {
|
|
57
|
-
opts.resourcesUrl = new URL('.', new URL(scriptElm.getAttribute('data-resources-url') || scriptElm.src, win.location.href)).href;
|
|
58
|
-
if (BUILD.dynamicImportShim) {
|
|
59
|
-
patchDynamicImport(opts.resourcesUrl, scriptElm);
|
|
60
|
-
}
|
|
61
|
-
if (BUILD.dynamicImportShim && !win.customElements) {
|
|
62
|
-
// module support, but no custom elements support (Old Edge)
|
|
63
|
-
// @ts-ignore
|
|
64
|
-
return import(/* webpackChunkName: "polyfills-dom" */ './dom-6be6f662.js').then(() => opts);
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
return promiseResolve(opts);
|
|
68
|
-
};
|
|
69
|
-
const patchDynamicImport = (base, orgScriptElm) => {
|
|
70
|
-
const importFunctionName = getDynamicImportFunction(NAMESPACE);
|
|
71
|
-
try {
|
|
72
|
-
// test if this browser supports dynamic imports
|
|
73
|
-
// There is a caching issue in V8, that breaks using import() in Function
|
|
74
|
-
// By generating a random string, we can workaround it
|
|
75
|
-
// Check https://bugs.chromium.org/p/chromium/issues/detail?id=990810 for more info
|
|
76
|
-
win[importFunctionName] = new Function('w', `return import(w);//${Math.random()}`);
|
|
77
|
-
}
|
|
78
|
-
catch (e) {
|
|
79
|
-
// this shim is specifically for browsers that do support "esm" imports
|
|
80
|
-
// however, they do NOT support "dynamic" imports
|
|
81
|
-
// basically this code is for old Edge, v18 and below
|
|
82
|
-
const moduleMap = new Map();
|
|
83
|
-
win[importFunctionName] = (src) => {
|
|
84
|
-
const url = new URL(src, base).href;
|
|
85
|
-
let mod = moduleMap.get(url);
|
|
86
|
-
if (!mod) {
|
|
87
|
-
const script = doc.createElement('script');
|
|
88
|
-
script.type = 'module';
|
|
89
|
-
script.crossOrigin = orgScriptElm.crossOrigin;
|
|
90
|
-
script.src = URL.createObjectURL(new Blob([`import * as m from '${url}'; window.${importFunctionName}.m = m;`], {
|
|
91
|
-
type: 'application/javascript',
|
|
92
|
-
}));
|
|
93
|
-
mod = new Promise((resolve) => {
|
|
94
|
-
script.onload = () => {
|
|
95
|
-
resolve(win[importFunctionName].m);
|
|
96
|
-
script.remove();
|
|
97
|
-
};
|
|
98
|
-
});
|
|
99
|
-
moduleMap.set(url, mod);
|
|
100
|
-
doc.head.appendChild(script);
|
|
101
|
-
}
|
|
102
|
-
return mod;
|
|
103
|
-
};
|
|
104
|
-
}
|
|
105
|
-
};
|
|
106
|
-
const patchCloneNodeFix = (HTMLElementPrototype) => {
|
|
107
|
-
const nativeCloneNodeFn = HTMLElementPrototype.cloneNode;
|
|
108
|
-
HTMLElementPrototype.cloneNode = function (deep) {
|
|
109
|
-
if (this.nodeName === 'TEMPLATE') {
|
|
110
|
-
return nativeCloneNodeFn.call(this, deep);
|
|
111
|
-
}
|
|
112
|
-
const clonedNode = nativeCloneNodeFn.call(this, false);
|
|
113
|
-
const srcChildNodes = this.childNodes;
|
|
114
|
-
if (deep) {
|
|
115
|
-
for (let i = 0; i < srcChildNodes.length; i++) {
|
|
116
|
-
// Node.ATTRIBUTE_NODE === 2, and checking because IE11
|
|
117
|
-
if (srcChildNodes[i].nodeType !== 2) {
|
|
118
|
-
clonedNode.appendChild(srcChildNodes[i].cloneNode(true));
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
return clonedNode;
|
|
123
|
-
};
|
|
124
|
-
};
|
|
125
|
-
|
|
126
|
-
patchBrowser().then(options => {
|
|
127
|
-
globalScripts();
|
|
128
|
-
return bootstrapLazy([["tttx-icon",[[1,"tttx-icon",{"icon":[1],"color":[1]}]]],["tttx-button",[[1,"tttx-button",{"notext":[4],"icon":[1],"iconposition":[1],"design":[1]}]]],["tttx-filter",[[1,"tttx-filter",{"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"],"showPopover":[32],"displayedFilterSettings":[32],"selectedFilters":[32],"filterSearchTerm":[32],"allSelected":[32]}]]],["tttx-list",[[1,"tttx-list",{"data":[1025],"name":[1]}]]],["tttx-sorter",[[1,"tttx-sorter",{"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]}]]],["tttx-standalone-input",[[2,"tttx-standalone-input",{"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]}]]],["tttx-form",[[1,"tttx-form",{"formschema":[1032],"data":[1032],"submit":[64]}]]],["tttx-keyvalue-block",[[1,"tttx-keyvalue-block",{"keyvalues":[8],"horizontal":[4]}]]],["tttx-loading-spinner",[[1,"tttx-loading-spinner",{"loadingMessage":[1028,"loading-message"],"size":[1025]}]]],["tttx-toolbar",[[1,"tttx-toolbar",{"border":[4]}]]]], options);
|
|
129
|
-
});
|
|
1
|
+
import{p as t,b as e}from"./p-71c244bd.js";export{s as setNonce}from"./p-71c244bd.js";(()=>{const e=import.meta.url,o={};return""!==e&&(o.resourcesUrl=new URL(".",e).href),t(o)})().then((t=>e([["p-d075a2c0",[[1,"tttx-dialog-box",{data:[1025],size:[1],elementSize:[32]},[[9,"resize","handleResize"]]]]],["p-2dd43e97",[[1,"tttx-filter",{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"],showPopover:[32],displayedFilterSettings:[32],selectedFilters:[32],filterSearchTerm:[32],allSelected:[32]}]]],["p-7bba2014",[[1,"tttx-list",{data:[1025],name:[1]}]]],["p-f247a7bc",[[1,"tttx-sorter",{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]}]]],["p-5e91cf1c",[[2,"tttx-standalone-input",{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-0ed6f369",[[1,"tttx-form",{formschema:[1032],data:[1032],submit:[64]}]]],["p-2e135be9",[[1,"tttx-keyvalue-block",{keyvalues:[8],horizontal:[4]}]]],["p-01863bf1",[[1,"tttx-loading-spinner",{loadingMessage:[1028,"loading-message"],size:[1025]}]]],["p-48b15a3d",[[1,"tttx-toolbar",{border:[4]}]]],["p-e061910d",[[1,"tttx-icon",{icon:[1],color:[1]}]]],["p-deec335c",[[1,"tttx-button",{notext:[4],icon:[1],iconposition:[1],design:[1]}]]]],t)));
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export declare class TttxButton {
|
|
2
|
-
notext: boolean;
|
|
3
|
-
icon: string;
|
|
4
|
-
iconposition: 'left' | 'right';
|
|
5
|
-
design: string;
|
|
6
|
-
_design: string;
|
|
7
|
-
_iconcolor: string;
|
|
8
|
-
componentWillLoad(): void;
|
|
9
|
-
render(): any;
|
|
10
|
-
}
|
|
1
|
+
export declare class TttxButton {
|
|
2
|
+
notext: boolean;
|
|
3
|
+
icon: string;
|
|
4
|
+
iconposition: 'left' | 'right';
|
|
5
|
+
design: string;
|
|
6
|
+
_design: string;
|
|
7
|
+
_iconcolor: string;
|
|
8
|
+
componentWillLoad(): void;
|
|
9
|
+
render(): any;
|
|
10
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
title: string;
|
|
3
|
-
component: string;
|
|
4
|
-
};
|
|
5
|
-
export default _default;
|
|
6
|
-
export declare const Primary: any;
|
|
7
|
-
export declare const Default: any;
|
|
8
|
-
export declare const Borderless: any;
|
|
9
|
-
export declare const Danger: any;
|
|
10
|
-
export declare const Disabled: any;
|
|
1
|
+
declare const _default: {
|
|
2
|
+
title: string;
|
|
3
|
+
component: string;
|
|
4
|
+
};
|
|
5
|
+
export default _default;
|
|
6
|
+
export declare const Primary: any;
|
|
7
|
+
export declare const Default: any;
|
|
8
|
+
export declare const Borderless: any;
|
|
9
|
+
export declare const Danger: any;
|
|
10
|
+
export declare const Disabled: any;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export declare class TttxIcon {
|
|
2
|
-
icon: string;
|
|
3
|
-
color: string;
|
|
4
|
-
render(): any;
|
|
5
|
-
}
|
|
1
|
+
export declare class TttxIcon {
|
|
2
|
+
icon: string;
|
|
3
|
+
color: string;
|
|
4
|
+
render(): any;
|
|
5
|
+
}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
title: string;
|
|
3
|
-
component: string;
|
|
4
|
-
argTypes: {
|
|
5
|
-
icon: {
|
|
6
|
-
control: {
|
|
7
|
-
type: string;
|
|
8
|
-
};
|
|
9
|
-
options: string[];
|
|
10
|
-
};
|
|
11
|
-
color: {
|
|
12
|
-
control: {
|
|
13
|
-
type: string;
|
|
14
|
-
};
|
|
15
|
-
options: string[];
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
};
|
|
19
|
-
export default _default;
|
|
20
|
-
export declare const Icon: any;
|
|
1
|
+
declare const _default: {
|
|
2
|
+
title: string;
|
|
3
|
+
component: string;
|
|
4
|
+
argTypes: {
|
|
5
|
+
icon: {
|
|
6
|
+
control: {
|
|
7
|
+
type: string;
|
|
8
|
+
};
|
|
9
|
+
options: string[];
|
|
10
|
+
};
|
|
11
|
+
color: {
|
|
12
|
+
control: {
|
|
13
|
+
type: string;
|
|
14
|
+
};
|
|
15
|
+
options: string[];
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
export default _default;
|
|
20
|
+
export declare const Icon: any;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export declare class TttxKeyvalueBlock {
|
|
2
|
-
keyvalues: any | any[] | string;
|
|
3
|
-
horizontal: boolean;
|
|
4
|
-
private renderSingleElements;
|
|
5
|
-
private renderArrayElements;
|
|
6
|
-
render(): any;
|
|
7
|
-
}
|
|
1
|
+
export declare class TttxKeyvalueBlock {
|
|
2
|
+
keyvalues: any | any[] | string;
|
|
3
|
+
horizontal: boolean;
|
|
4
|
+
private renderSingleElements;
|
|
5
|
+
private renderArrayElements;
|
|
6
|
+
render(): any;
|
|
7
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
title: string;
|
|
3
|
-
component: string;
|
|
4
|
-
};
|
|
5
|
-
export default _default;
|
|
6
|
-
export declare const KeyValueBlock: () => string;
|
|
7
|
-
export declare const KeyValueSubtitleBlock: () => string;
|
|
8
|
-
export declare const HorizontalKeyValueBlock: () => string;
|
|
9
|
-
export declare const HorizontalKeyValueSubtitleBlock: () => string;
|
|
1
|
+
declare const _default: {
|
|
2
|
+
title: string;
|
|
3
|
+
component: string;
|
|
4
|
+
};
|
|
5
|
+
export default _default;
|
|
6
|
+
export declare const KeyValueBlock: () => string;
|
|
7
|
+
export declare const KeyValueSubtitleBlock: () => string;
|
|
8
|
+
export declare const HorizontalKeyValueBlock: () => string;
|
|
9
|
+
export declare const HorizontalKeyValueSubtitleBlock: () => string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export declare class TttxLoadingSpinner {
|
|
2
|
-
loadingMessage: boolean;
|
|
3
|
-
size: 'small' | 'large';
|
|
4
|
-
renderLoadingMessage(): any;
|
|
5
|
-
render(): any;
|
|
6
|
-
}
|
|
1
|
+
export declare class TttxLoadingSpinner {
|
|
2
|
+
loadingMessage: boolean;
|
|
3
|
+
size: 'small' | 'large';
|
|
4
|
+
renderLoadingMessage(): any;
|
|
5
|
+
render(): any;
|
|
6
|
+
}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
title: string;
|
|
3
|
-
component: string;
|
|
4
|
-
argTypes: {
|
|
5
|
-
loadingMessage: {
|
|
6
|
-
control: string;
|
|
7
|
-
};
|
|
8
|
-
size: {
|
|
9
|
-
control: {
|
|
10
|
-
type: string;
|
|
11
|
-
};
|
|
12
|
-
options: string[];
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
export default _default;
|
|
17
|
-
export declare const Example: (args: any) => string;
|
|
1
|
+
declare const _default: {
|
|
2
|
+
title: string;
|
|
3
|
+
component: string;
|
|
4
|
+
argTypes: {
|
|
5
|
+
loadingMessage: {
|
|
6
|
+
control: string;
|
|
7
|
+
};
|
|
8
|
+
size: {
|
|
9
|
+
control: {
|
|
10
|
+
type: string;
|
|
11
|
+
};
|
|
12
|
+
options: string[];
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
export default _default;
|
|
17
|
+
export declare const Example: (args: any) => string;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export interface DialogItems {
|
|
2
|
+
type: string;
|
|
3
|
+
header: {
|
|
4
|
+
title: string;
|
|
5
|
+
hasIcon: boolean;
|
|
6
|
+
iconName: string;
|
|
7
|
+
iconColor: string;
|
|
8
|
+
hasClose: boolean;
|
|
9
|
+
}
|
|
10
|
+
body: {
|
|
11
|
+
isCustomHtml: boolean;
|
|
12
|
+
customHtml: string;
|
|
13
|
+
contentText: string;
|
|
14
|
+
}
|
|
15
|
+
footer: {
|
|
16
|
+
buttons: DialogButtons[];
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export interface DialogButtons {
|
|
21
|
+
name: string;
|
|
22
|
+
icon: string;
|
|
23
|
+
type: string;
|
|
24
|
+
width: string;
|
|
25
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { EventEmitter } from '../../../stencil-public-runtime';
|
|
2
|
+
import { DialogItems } from './interfaces';
|
|
3
|
+
export declare class TttxDialogBox {
|
|
4
|
+
data: string | DialogItems;
|
|
5
|
+
size: 'regular' | 'mobile' | 'large' | 'small';
|
|
6
|
+
elementSize: 'regular' | 'mobile' | 'large' | 'small';
|
|
7
|
+
private _data;
|
|
8
|
+
closeButtonClick: EventEmitter;
|
|
9
|
+
buttonClick: EventEmitter;
|
|
10
|
+
handleResize(): void;
|
|
11
|
+
onCloseClickHandler(): void;
|
|
12
|
+
onButtonClickHandler(index: number): void;
|
|
13
|
+
renderHeader(header: any): any;
|
|
14
|
+
renderContent(content: any): any;
|
|
15
|
+
renderFooter(footer: any): any;
|
|
16
|
+
componentWillLoad(): void;
|
|
17
|
+
render(): any;
|
|
18
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
title: string;
|
|
3
|
+
component: string;
|
|
4
|
+
parameters: {
|
|
5
|
+
docs: {
|
|
6
|
+
description: {
|
|
7
|
+
component: string;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
export default _default;
|
|
13
|
+
export declare const Default: any;
|
|
14
|
+
export declare const Mobile: any;
|
|
15
|
+
export declare const Small: any;
|
|
16
|
+
export declare const Large: any;
|
|
17
|
+
export declare const closeDisabled: any;
|
|
18
|
+
export declare const Icon: any;
|
|
19
|
+
export declare const Info: any;
|
|
20
|
+
export declare const Success: any;
|
|
21
|
+
export declare const Warning: any;
|
|
22
|
+
export declare const Critical: any;
|
|
23
|
+
export declare const CustomHTML: any;
|
|
@@ -1,39 +1,41 @@
|
|
|
1
|
-
import { EventEmitter } from '../../../stencil-public-runtime';
|
|
2
|
-
export interface FilterSettings {
|
|
3
|
-
optionIcon: string;
|
|
4
|
-
optionIconColor: string;
|
|
5
|
-
optionText: string;
|
|
6
|
-
}
|
|
7
|
-
export interface FilterChangeEvent {
|
|
8
|
-
selectedFilters: string[];
|
|
9
|
-
filterKey: string;
|
|
10
|
-
allSelected: boolean;
|
|
11
|
-
}
|
|
12
|
-
export declare class TttxFilter {
|
|
13
|
-
filterKey: string;
|
|
14
|
-
filterOptions: string | FilterSettings[];
|
|
15
|
-
showSelectAll: boolean;
|
|
16
|
-
showSearchField: boolean;
|
|
17
|
-
showOptionIcons: boolean;
|
|
18
|
-
filterButtonStyle: 'list filter' | 'list icon' | 'table icon';
|
|
19
|
-
filterHeader: string;
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
1
|
+
import { EventEmitter } from '../../../stencil-public-runtime';
|
|
2
|
+
export interface FilterSettings {
|
|
3
|
+
optionIcon: string;
|
|
4
|
+
optionIconColor: string;
|
|
5
|
+
optionText: string;
|
|
6
|
+
}
|
|
7
|
+
export interface FilterChangeEvent {
|
|
8
|
+
selectedFilters: string[];
|
|
9
|
+
filterKey: string;
|
|
10
|
+
allSelected: boolean;
|
|
11
|
+
}
|
|
12
|
+
export declare class TttxFilter {
|
|
13
|
+
filterKey: string;
|
|
14
|
+
filterOptions: string | FilterSettings[];
|
|
15
|
+
showSelectAll: boolean;
|
|
16
|
+
showSearchField: boolean;
|
|
17
|
+
showOptionIcons: boolean;
|
|
18
|
+
filterButtonStyle: 'list filter' | 'list icon' | 'table icon';
|
|
19
|
+
filterHeader: string;
|
|
20
|
+
defaultFilterOptions: string[] | string;
|
|
21
|
+
showPopover: boolean;
|
|
22
|
+
displayedFilterSettings: FilterSettings[];
|
|
23
|
+
selectedFilters: string[];
|
|
24
|
+
filterSearchTerm: string;
|
|
25
|
+
allSelected: boolean;
|
|
26
|
+
filterChangeEvent: EventEmitter<FilterChangeEvent>;
|
|
27
|
+
el: any;
|
|
28
|
+
emitFilterEvent(): void;
|
|
29
|
+
onFilterButtonClick(): void;
|
|
30
|
+
onCloseButtonClick(): void;
|
|
31
|
+
onApplyFilterButtonClick(): void;
|
|
32
|
+
onFilterOptionSelected(selectedOption: string): void;
|
|
33
|
+
componentWillLoad(): void;
|
|
34
|
+
togglePopover(): void;
|
|
35
|
+
handleFilterChange(event: Event | InputEvent): void;
|
|
36
|
+
onSelectAllClick(): void;
|
|
37
|
+
getFilterButtonClassName(buttonStyle: string): "" | "--table-icon" | "--list-icon";
|
|
38
|
+
parseFilterOptions(): any;
|
|
39
|
+
parseDefaultFilterOptions(): any;
|
|
40
|
+
render(): any;
|
|
41
|
+
}
|