@3t-transform/threeteeui 0.1.8 → 0.1.19
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/{index-8ba406f6.js → index-b8a62ede.js} +80 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/tttx-button.cjs.entry.js +24 -24
- package/dist/cjs/tttx-filter.cjs.entry.js +162 -0
- package/dist/cjs/tttx-form.cjs.entry.js +363 -363
- package/dist/cjs/tttx-icon.cjs.entry.js +11 -11
- package/dist/cjs/tttx-keyvalue-block.cjs.entry.js +62 -58
- package/dist/cjs/tttx-list.cjs.entry.js +43 -43
- package/dist/cjs/tttx-loading-spinner.cjs.entry.js +16 -16
- package/dist/cjs/tttx-standalone-input.cjs.entry.js +60 -60
- package/dist/cjs/tttx-toolbar.cjs.entry.js +10 -10
- package/dist/cjs/tttx.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +1 -0
- 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.css +6 -0
- package/dist/collection/components/atoms/tttx-keyvalue-block/tttx-keyvalue-block.js +111 -107
- 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-filter/tttx-filter.css +215 -0
- package/dist/collection/components/molecules/tttx-filter/tttx-filter.js +325 -0
- package/dist/collection/components/molecules/tttx-filter/tttx-filter.stories.js +118 -0
- package/dist/collection/components/molecules/tttx-form/lib/setErrorState.js +35 -35
- package/dist/collection/components/molecules/tttx-form/lib/validityCheck.js +58 -58
- package/dist/collection/components/molecules/tttx-form/tttx-form.js +364 -364
- package/dist/collection/components/molecules/tttx-form/tttx-form.stories.js +127 -127
- 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-standalone-input/tttx-standalone-input.js +627 -627
- package/dist/collection/components/molecules/tttx-standalone-input/tttx-standalone-input.stories.js +157 -157
- 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/index.d.ts +1 -0
- package/dist/components/index.js +1 -0
- package/dist/components/tttx-button.js +48 -48
- package/dist/components/tttx-filter.d.ts +11 -0
- package/dist/components/tttx-filter.js +195 -0
- package/dist/components/tttx-form.js +380 -380
- package/dist/components/tttx-icon2.js +28 -28
- package/dist/components/tttx-keyvalue-block.js +79 -75
- package/dist/components/tttx-list.js +65 -65
- package/dist/components/tttx-loading-spinner.js +33 -33
- package/dist/components/tttx-standalone-input.js +107 -107
- package/dist/components/tttx-toolbar.js +26 -26
- package/dist/esm/{index-5f9b72ff.js → index-e888a5f4.js} +80 -2
- package/dist/esm/loader.js +3 -3
- package/dist/esm/polyfills/core-js.js +0 -0
- 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-filter.entry.js +158 -0
- package/dist/esm/tttx-form.entry.js +363 -363
- package/dist/esm/tttx-icon.entry.js +11 -11
- package/dist/esm/tttx-keyvalue-block.entry.js +62 -58
- package/dist/esm/tttx-list.entry.js +43 -43
- package/dist/esm/tttx-loading-spinner.entry.js +16 -16
- package/dist/esm/tttx-standalone-input.entry.js +60 -60
- package/dist/esm/tttx-toolbar.entry.js +10 -10
- package/dist/esm/tttx.js +3 -3
- package/dist/tttx/{p-405219b2.entry.js → p-01f4628e.entry.js} +1 -1
- package/dist/tttx/{p-435c62b3.entry.js → p-043f9b8a.entry.js} +1 -1
- package/dist/tttx/{p-9cff9c64.entry.js → p-34052e38.entry.js} +1 -1
- package/dist/tttx/p-41f5b296.entry.js +1 -0
- package/dist/tttx/{p-0342cc46.entry.js → p-4cf3e1e0.entry.js} +1 -1
- package/dist/tttx/{p-1290dcd7.entry.js → p-6dff6b5a.entry.js} +1 -1
- package/dist/tttx/p-6f535da9.entry.js +1 -0
- package/dist/tttx/{p-adf35f58.entry.js → p-96bbf1ed.entry.js} +1 -1
- package/dist/tttx/{p-4ecc9e8b.entry.js → p-b3a03986.entry.js} +1 -1
- package/dist/tttx/p-f764ffc4.js +2 -0
- package/dist/tttx/tttx.esm.js +1 -1
- 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-filter/tttx-filter.d.ts +37 -0
- package/dist/types/components/molecules/tttx-filter/tttx-filter.stories.d.ts +43 -0
- 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 +114 -114
- package/dist/types/components/molecules/tttx-form/tttx-form.stories.d.ts +13 -13
- 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-standalone-input/tttx-standalone-input.d.ts +56 -56
- package/dist/types/components/molecules/tttx-standalone-input/tttx-standalone-input.stories.d.ts +123 -123
- 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 +33 -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/package.json +1 -1
- package/dist/tttx/p-1b394414.entry.js +0 -1
- package/dist/tttx/p-c4b803fc.js +0 -2
|
@@ -3,113 +3,113 @@ import { d as defineCustomElement$2 } from './tttx-icon2.js';
|
|
|
3
3
|
|
|
4
4
|
const tttxStandaloneInputCss = ".material-symbols-rounded.sc-tttx-standalone-input{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}.material-symbols-rounded.sc-tttx-standalone-input{font-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}.icon-left.sc-tttx-standalone-input,.icon-right.sc-tttx-standalone-input{flex-basis:24px}.icon-left.sc-tttx-standalone-input span.sc-tttx-standalone-input,.icon-right.sc-tttx-standalone-input span.sc-tttx-standalone-input{font-size:24px;line-height:24px;text-align:center;display:block;width:24px;height:24px;margin-top:4px}.icon-left.sc-tttx-standalone-input span.sc-tttx-standalone-input{margin-left:4px}.icon-right.sc-tttx-standalone-input span.sc-tttx-standalone-input{margin-right:4px}.icon-right.sc-tttx-standalone-input{margin-top:5px}.icon-left.sc-tttx-standalone-input{margin-top:5px;margin-left:4px}.iconleft.sc-tttx-standalone-input .input.sc-tttx-standalone-input{padding-left:4px}.iconright.sc-tttx-standalone-input .input.sc-tttx-standalone-input{padding-right:4px}.input-icon.sc-tttx-standalone-input{position:absolute;margin-top:9px;margin-left:4px}.errormsg.sc-tttx-standalone-input{display:flex;justify-content:center;align-items:center;float:left;margin-bottom:16px;box-sizing:border-box;background-color:transparent;height:26px;font-size:14px;border-radius:none;z-index:2;color:#dc0000}.errormsg.sc-tttx-standalone-input .validationicon.sc-tttx-standalone-input{width:16px;height:16px;font-size:16px;margin-right:4px;vertical-align:middle;color:#dc0000}.danger.sc-tttx-standalone-input{color:#dc0000}.optional.sc-tttx-standalone-input{color:#757575;font-weight:normal}label.inputBlock.sc-tttx-standalone-input{display:block;position:relative;line-height:21px}label.inputInline.sc-tttx-standalone-input{display:flex;white-space:nowrap;align-items:center}label.inputInline.sc-tttx-standalone-input .input-container.sc-tttx-standalone-input{margin:0 4px;width:100%;display:flex;align-items:center;gap:4px;position:relative}label.sc-tttx-standalone-input{font-weight:500;font-size:16px}input.sc-tttx-standalone-input:not([type=submit]){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}input[type=date].sc-tttx-standalone-input{background:white;display:block;min-width:calc(100% - 18px);line-height:37px}@media (max-width: 600px){input[type=date].sc-tttx-standalone-input{padding-top:6px}}input.invalid.sc-tttx-standalone-input:invalid,input.standalone.invalid.sc-tttx-standalone-input{border:1px solid #dc0000}.input-icon.sc-tttx-standalone-input~input.sc-tttx-standalone-input{padding:0 32px}input.sc-tttx-standalone-input~.errorBubble.sc-tttx-standalone-input{min-height:27px;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}input.sc-tttx-standalone-input~.errorBubble.sc-tttx-standalone-input:not(.visible){visibility:hidden}input.sc-tttx-standalone-input~.errorBubble.sc-tttx-standalone-input span.sc-tttx-standalone-input{color:#dc0000;font-size:16px;margin-right:4px;height:16px}input.invalid.sc-tttx-standalone-input:invalid~.errorBubble.sc-tttx-standalone-input{position:relative;font-size:14px;font-weight:normal;width:100%;font-family:\"Roboto\", sans-serif;color:#dc0000;visibility:visible}input.sc-tttx-standalone-input:focus{border-color:#1479c6}input.sc-tttx-standalone-input:focus-visible{outline:none}.sc-tttx-standalone-input-h{display:block}";
|
|
5
5
|
|
|
6
|
-
const TttxInput = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
7
|
-
constructor() {
|
|
8
|
-
super();
|
|
9
|
-
this.__registerHost();
|
|
10
|
-
this.valueChanged = createEvent(this, "valueChanged", 7);
|
|
11
|
-
this.focusChanged = createEvent(this, "focusChanged", 7);
|
|
12
|
-
this.blurChanged = createEvent(this, "blurChanged", 7);
|
|
13
|
-
this.invalidChanged = createEvent(this, "invalidChanged", 7);
|
|
14
|
-
this.label = undefined;
|
|
15
|
-
this.showerrormsg = undefined;
|
|
16
|
-
this.showerrorbubble = true;
|
|
17
|
-
this.errormsg = undefined;
|
|
18
|
-
this.iconleft = undefined;
|
|
19
|
-
this.iconright = undefined;
|
|
20
|
-
this.inputicon = undefined;
|
|
21
|
-
this.inline = undefined;
|
|
22
|
-
this.inputAutocapitalize = undefined;
|
|
23
|
-
this.inputAutofocus = undefined;
|
|
24
|
-
this.inputKeyhint = undefined;
|
|
25
|
-
this.inputIndex = undefined;
|
|
26
|
-
this.inputTitle = undefined;
|
|
27
|
-
this.autocomplete = undefined;
|
|
28
|
-
this.checked = undefined;
|
|
29
|
-
this.disabled = undefined;
|
|
30
|
-
this.max = undefined;
|
|
31
|
-
this.maxlength = undefined;
|
|
32
|
-
this.min = undefined;
|
|
33
|
-
this.minlength = undefined;
|
|
34
|
-
this.name = undefined;
|
|
35
|
-
this.pattern = undefined;
|
|
36
|
-
this.placeholder = undefined;
|
|
37
|
-
this.readonly = undefined;
|
|
38
|
-
this.required = undefined;
|
|
39
|
-
this.step = undefined;
|
|
40
|
-
this.type = 'text';
|
|
41
|
-
this.value = undefined;
|
|
42
|
-
}
|
|
43
|
-
handleChange(event) {
|
|
44
|
-
const target = event.target;
|
|
45
|
-
this.value = target.value;
|
|
46
|
-
this.valueChanged.emit(target.value);
|
|
47
|
-
}
|
|
48
|
-
handleFocus(event) {
|
|
49
|
-
const target = event.target;
|
|
50
|
-
this.focusChanged.emit(target.value);
|
|
51
|
-
}
|
|
52
|
-
handleBlur(event) {
|
|
53
|
-
const target = event.target;
|
|
54
|
-
this.blurChanged.emit(target.value);
|
|
55
|
-
}
|
|
56
|
-
handleInvalid(event) {
|
|
57
|
-
event.preventDefault();
|
|
58
|
-
const target = event.target;
|
|
59
|
-
this.invalidChanged.emit(target.value);
|
|
60
|
-
}
|
|
61
|
-
render() {
|
|
62
|
-
const classNames = ['standalone', this.showerrormsg ? 'invalid' : ''].join(' ');
|
|
63
|
-
return (h(Host, null, h("label", { class: this.inline ? 'inputInline' : 'inputBlock' }, this.label, !this.required ? h("span", { class: "optional" }, "\u00A0(optional)") : '', this.iconleft && (h("div", { class: "icon-left" }, h("tttx-icon", { icon: this.iconleft, color: "grey" }))), h("div", { class: "input-container" }, this.inputicon && (h("tttx-icon", { class: "input-icon", icon: this.inputicon, color: "grey" })), h("input", { class: classNames, autocapitalize: this.inputAutocapitalize, autofocus: this.inputAutofocus, enterkeyhint: this.inputKeyhint, tabindex: this.inputIndex, title: this.inputTitle, autocomplete: this.autocomplete, checked: this.checked, disabled: this.disabled, max: this.max, maxlength: this.maxlength, min: this.min, minlength: this.minlength, name: this.name, pattern: this.pattern, placeholder: this.placeholder, readonly: this.readonly, required: this.required, step: this.step, type: this.type, value: this.value, onBlur: this.handleBlur.bind(this), onFocus: this.handleFocus.bind(this), onInput: this.handleChange.bind(this), onInvalid: this.handleInvalid.bind(this) }), this.iconright && (h("div", { class: "icon-right" }, h("tttx-icon", { icon: this.iconright, color: "grey" }))), this.showerrorbubble && (h("span", { class: ['errorBubble', this.showerrormsg && this.errormsg ? 'visible' : ''].join(' ') }, h("span", { class: "material-symbols-rounded validationicon" }, "warning"), " ", this.errormsg))))));
|
|
64
|
-
}
|
|
65
|
-
static get style() { return tttxStandaloneInputCss; }
|
|
66
|
-
}, [2, "tttx-standalone-input", {
|
|
67
|
-
"label": [1],
|
|
68
|
-
"showerrormsg": [4],
|
|
69
|
-
"showerrorbubble": [4],
|
|
70
|
-
"errormsg": [1],
|
|
71
|
-
"iconleft": [1],
|
|
72
|
-
"iconright": [1],
|
|
73
|
-
"inputicon": [1],
|
|
74
|
-
"inline": [4],
|
|
75
|
-
"inputAutocapitalize": [1, "input-autocapitalize"],
|
|
76
|
-
"inputAutofocus": [4, "input-autofocus"],
|
|
77
|
-
"inputKeyhint": [1, "input-keyhint"],
|
|
78
|
-
"inputIndex": [8, "input-index"],
|
|
79
|
-
"inputTitle": [1, "input-title"],
|
|
80
|
-
"autocomplete": [1],
|
|
81
|
-
"checked": [4],
|
|
82
|
-
"disabled": [4],
|
|
83
|
-
"max": [8],
|
|
84
|
-
"maxlength": [8],
|
|
85
|
-
"min": [8],
|
|
86
|
-
"minlength": [8],
|
|
87
|
-
"name": [1],
|
|
88
|
-
"pattern": [1],
|
|
89
|
-
"placeholder": [1],
|
|
90
|
-
"readonly": [8],
|
|
91
|
-
"required": [4],
|
|
92
|
-
"step": [8],
|
|
93
|
-
"type": [1],
|
|
94
|
-
"value": [1032]
|
|
95
|
-
}]);
|
|
96
|
-
function defineCustomElement$1() {
|
|
97
|
-
if (typeof customElements === "undefined") {
|
|
98
|
-
return;
|
|
99
|
-
}
|
|
100
|
-
const components = ["tttx-standalone-input", "tttx-icon"];
|
|
101
|
-
components.forEach(tagName => { switch (tagName) {
|
|
102
|
-
case "tttx-standalone-input":
|
|
103
|
-
if (!customElements.get(tagName)) {
|
|
104
|
-
customElements.define(tagName, TttxInput);
|
|
105
|
-
}
|
|
106
|
-
break;
|
|
107
|
-
case "tttx-icon":
|
|
108
|
-
if (!customElements.get(tagName)) {
|
|
109
|
-
defineCustomElement$2();
|
|
110
|
-
}
|
|
111
|
-
break;
|
|
112
|
-
} });
|
|
6
|
+
const TttxInput = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
7
|
+
constructor() {
|
|
8
|
+
super();
|
|
9
|
+
this.__registerHost();
|
|
10
|
+
this.valueChanged = createEvent(this, "valueChanged", 7);
|
|
11
|
+
this.focusChanged = createEvent(this, "focusChanged", 7);
|
|
12
|
+
this.blurChanged = createEvent(this, "blurChanged", 7);
|
|
13
|
+
this.invalidChanged = createEvent(this, "invalidChanged", 7);
|
|
14
|
+
this.label = undefined;
|
|
15
|
+
this.showerrormsg = undefined;
|
|
16
|
+
this.showerrorbubble = true;
|
|
17
|
+
this.errormsg = undefined;
|
|
18
|
+
this.iconleft = undefined;
|
|
19
|
+
this.iconright = undefined;
|
|
20
|
+
this.inputicon = undefined;
|
|
21
|
+
this.inline = undefined;
|
|
22
|
+
this.inputAutocapitalize = undefined;
|
|
23
|
+
this.inputAutofocus = undefined;
|
|
24
|
+
this.inputKeyhint = undefined;
|
|
25
|
+
this.inputIndex = undefined;
|
|
26
|
+
this.inputTitle = undefined;
|
|
27
|
+
this.autocomplete = undefined;
|
|
28
|
+
this.checked = undefined;
|
|
29
|
+
this.disabled = undefined;
|
|
30
|
+
this.max = undefined;
|
|
31
|
+
this.maxlength = undefined;
|
|
32
|
+
this.min = undefined;
|
|
33
|
+
this.minlength = undefined;
|
|
34
|
+
this.name = undefined;
|
|
35
|
+
this.pattern = undefined;
|
|
36
|
+
this.placeholder = undefined;
|
|
37
|
+
this.readonly = undefined;
|
|
38
|
+
this.required = undefined;
|
|
39
|
+
this.step = undefined;
|
|
40
|
+
this.type = 'text';
|
|
41
|
+
this.value = undefined;
|
|
42
|
+
}
|
|
43
|
+
handleChange(event) {
|
|
44
|
+
const target = event.target;
|
|
45
|
+
this.value = target.value;
|
|
46
|
+
this.valueChanged.emit(target.value);
|
|
47
|
+
}
|
|
48
|
+
handleFocus(event) {
|
|
49
|
+
const target = event.target;
|
|
50
|
+
this.focusChanged.emit(target.value);
|
|
51
|
+
}
|
|
52
|
+
handleBlur(event) {
|
|
53
|
+
const target = event.target;
|
|
54
|
+
this.blurChanged.emit(target.value);
|
|
55
|
+
}
|
|
56
|
+
handleInvalid(event) {
|
|
57
|
+
event.preventDefault();
|
|
58
|
+
const target = event.target;
|
|
59
|
+
this.invalidChanged.emit(target.value);
|
|
60
|
+
}
|
|
61
|
+
render() {
|
|
62
|
+
const classNames = ['standalone', this.showerrormsg ? 'invalid' : ''].join(' ');
|
|
63
|
+
return (h(Host, null, h("label", { class: this.inline ? 'inputInline' : 'inputBlock' }, this.label, !this.required ? h("span", { class: "optional" }, "\u00A0(optional)") : '', this.iconleft && (h("div", { class: "icon-left" }, h("tttx-icon", { icon: this.iconleft, color: "grey" }))), h("div", { class: "input-container" }, this.inputicon && (h("tttx-icon", { class: "input-icon", icon: this.inputicon, color: "grey" })), h("input", { class: classNames, autocapitalize: this.inputAutocapitalize, autofocus: this.inputAutofocus, enterkeyhint: this.inputKeyhint, tabindex: this.inputIndex, title: this.inputTitle, autocomplete: this.autocomplete, checked: this.checked, disabled: this.disabled, max: this.max, maxlength: this.maxlength, min: this.min, minlength: this.minlength, name: this.name, pattern: this.pattern, placeholder: this.placeholder, readonly: this.readonly, required: this.required, step: this.step, type: this.type, value: this.value, onBlur: this.handleBlur.bind(this), onFocus: this.handleFocus.bind(this), onInput: this.handleChange.bind(this), onInvalid: this.handleInvalid.bind(this) }), this.iconright && (h("div", { class: "icon-right" }, h("tttx-icon", { icon: this.iconright, color: "grey" }))), this.showerrorbubble && (h("span", { class: ['errorBubble', this.showerrormsg && this.errormsg ? 'visible' : ''].join(' ') }, h("span", { class: "material-symbols-rounded validationicon" }, "warning"), " ", this.errormsg))))));
|
|
64
|
+
}
|
|
65
|
+
static get style() { return tttxStandaloneInputCss; }
|
|
66
|
+
}, [2, "tttx-standalone-input", {
|
|
67
|
+
"label": [1],
|
|
68
|
+
"showerrormsg": [4],
|
|
69
|
+
"showerrorbubble": [4],
|
|
70
|
+
"errormsg": [1],
|
|
71
|
+
"iconleft": [1],
|
|
72
|
+
"iconright": [1],
|
|
73
|
+
"inputicon": [1],
|
|
74
|
+
"inline": [4],
|
|
75
|
+
"inputAutocapitalize": [1, "input-autocapitalize"],
|
|
76
|
+
"inputAutofocus": [4, "input-autofocus"],
|
|
77
|
+
"inputKeyhint": [1, "input-keyhint"],
|
|
78
|
+
"inputIndex": [8, "input-index"],
|
|
79
|
+
"inputTitle": [1, "input-title"],
|
|
80
|
+
"autocomplete": [1],
|
|
81
|
+
"checked": [4],
|
|
82
|
+
"disabled": [4],
|
|
83
|
+
"max": [8],
|
|
84
|
+
"maxlength": [8],
|
|
85
|
+
"min": [8],
|
|
86
|
+
"minlength": [8],
|
|
87
|
+
"name": [1],
|
|
88
|
+
"pattern": [1],
|
|
89
|
+
"placeholder": [1],
|
|
90
|
+
"readonly": [8],
|
|
91
|
+
"required": [4],
|
|
92
|
+
"step": [8],
|
|
93
|
+
"type": [1],
|
|
94
|
+
"value": [1032]
|
|
95
|
+
}]);
|
|
96
|
+
function defineCustomElement$1() {
|
|
97
|
+
if (typeof customElements === "undefined") {
|
|
98
|
+
return;
|
|
99
|
+
}
|
|
100
|
+
const components = ["tttx-standalone-input", "tttx-icon"];
|
|
101
|
+
components.forEach(tagName => { switch (tagName) {
|
|
102
|
+
case "tttx-standalone-input":
|
|
103
|
+
if (!customElements.get(tagName)) {
|
|
104
|
+
customElements.define(tagName, TttxInput);
|
|
105
|
+
}
|
|
106
|
+
break;
|
|
107
|
+
case "tttx-icon":
|
|
108
|
+
if (!customElements.get(tagName)) {
|
|
109
|
+
defineCustomElement$2();
|
|
110
|
+
}
|
|
111
|
+
break;
|
|
112
|
+
} });
|
|
113
113
|
}
|
|
114
114
|
|
|
115
115
|
const TttxStandaloneInput = TttxInput;
|
|
@@ -2,32 +2,32 @@ import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal
|
|
|
2
2
|
|
|
3
3
|
const tttxToolbarCss = ":host{height:36px;display:flex;padding:8px 0;gap:8px}:host(.bordered){border-bottom:1px solid #d5d5d5}slot[name=before]{display:flex;flex:1 1 0px;gap:8px}slot[name=center]{display:flex;justify-content:center;flex:1 1 0px;gap:8px}slot[name=after]{display:flex;justify-content:end;flex:1 1 0px;gap:8px}";
|
|
4
4
|
|
|
5
|
-
const TttxToolbar$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
6
|
-
constructor() {
|
|
7
|
-
super();
|
|
8
|
-
this.__registerHost();
|
|
9
|
-
this.__attachShadow();
|
|
10
|
-
this.border = true;
|
|
11
|
-
}
|
|
12
|
-
render() {
|
|
13
|
-
return (h(Host, { class: this.border ? 'bordered' : '' }, h("slot", { name: 'before' }), h("slot", { name: 'center' }), h("slot", { name: 'after' })));
|
|
14
|
-
}
|
|
15
|
-
static get style() { return tttxToolbarCss; }
|
|
16
|
-
}, [1, "tttx-toolbar", {
|
|
17
|
-
"border": [4]
|
|
18
|
-
}]);
|
|
19
|
-
function defineCustomElement$1() {
|
|
20
|
-
if (typeof customElements === "undefined") {
|
|
21
|
-
return;
|
|
22
|
-
}
|
|
23
|
-
const components = ["tttx-toolbar"];
|
|
24
|
-
components.forEach(tagName => { switch (tagName) {
|
|
25
|
-
case "tttx-toolbar":
|
|
26
|
-
if (!customElements.get(tagName)) {
|
|
27
|
-
customElements.define(tagName, TttxToolbar$1);
|
|
28
|
-
}
|
|
29
|
-
break;
|
|
30
|
-
} });
|
|
5
|
+
const TttxToolbar$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
6
|
+
constructor() {
|
|
7
|
+
super();
|
|
8
|
+
this.__registerHost();
|
|
9
|
+
this.__attachShadow();
|
|
10
|
+
this.border = true;
|
|
11
|
+
}
|
|
12
|
+
render() {
|
|
13
|
+
return (h(Host, { class: this.border ? 'bordered' : '' }, h("slot", { name: 'before' }), h("slot", { name: 'center' }), h("slot", { name: 'after' })));
|
|
14
|
+
}
|
|
15
|
+
static get style() { return tttxToolbarCss; }
|
|
16
|
+
}, [1, "tttx-toolbar", {
|
|
17
|
+
"border": [4]
|
|
18
|
+
}]);
|
|
19
|
+
function defineCustomElement$1() {
|
|
20
|
+
if (typeof customElements === "undefined") {
|
|
21
|
+
return;
|
|
22
|
+
}
|
|
23
|
+
const components = ["tttx-toolbar"];
|
|
24
|
+
components.forEach(tagName => { switch (tagName) {
|
|
25
|
+
case "tttx-toolbar":
|
|
26
|
+
if (!customElements.get(tagName)) {
|
|
27
|
+
customElements.define(tagName, TttxToolbar$1);
|
|
28
|
+
}
|
|
29
|
+
break;
|
|
30
|
+
} });
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
const TttxToolbar = TttxToolbar$1;
|
|
@@ -65,6 +65,7 @@ function queryNonceMetaTagContent(doc) {
|
|
|
65
65
|
// export function h(nodeName: string | d.FunctionalComponent, vnodeData: d.PropsType, ...children: d.ChildType[]): d.VNode;
|
|
66
66
|
const h = (nodeName, vnodeData, ...children) => {
|
|
67
67
|
let child = null;
|
|
68
|
+
let key = null;
|
|
68
69
|
let simple = false;
|
|
69
70
|
let lastSimple = false;
|
|
70
71
|
const vNodeChildren = [];
|
|
@@ -92,6 +93,10 @@ const h = (nodeName, vnodeData, ...children) => {
|
|
|
92
93
|
};
|
|
93
94
|
walk(children);
|
|
94
95
|
if (vnodeData) {
|
|
96
|
+
// normalize class / classname attributes
|
|
97
|
+
if (vnodeData.key) {
|
|
98
|
+
key = vnodeData.key;
|
|
99
|
+
}
|
|
95
100
|
{
|
|
96
101
|
const classData = vnodeData.className || vnodeData.class;
|
|
97
102
|
if (classData) {
|
|
@@ -109,6 +114,9 @@ const h = (nodeName, vnodeData, ...children) => {
|
|
|
109
114
|
if (vNodeChildren.length > 0) {
|
|
110
115
|
vnode.$children$ = vNodeChildren;
|
|
111
116
|
}
|
|
117
|
+
{
|
|
118
|
+
vnode.$key$ = key;
|
|
119
|
+
}
|
|
112
120
|
return vnode;
|
|
113
121
|
};
|
|
114
122
|
/**
|
|
@@ -130,6 +138,9 @@ const newVNode = (tag, text) => {
|
|
|
130
138
|
{
|
|
131
139
|
vnode.$attrs$ = null;
|
|
132
140
|
}
|
|
141
|
+
{
|
|
142
|
+
vnode.$key$ = null;
|
|
143
|
+
}
|
|
133
144
|
return vnode;
|
|
134
145
|
};
|
|
135
146
|
const Host = {};
|
|
@@ -307,6 +318,33 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
307
318
|
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
308
319
|
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
309
320
|
}
|
|
321
|
+
else if (memberName === 'style') {
|
|
322
|
+
// update style attribute, css properties and values
|
|
323
|
+
{
|
|
324
|
+
for (const prop in oldValue) {
|
|
325
|
+
if (!newValue || newValue[prop] == null) {
|
|
326
|
+
if (prop.includes('-')) {
|
|
327
|
+
elm.style.removeProperty(prop);
|
|
328
|
+
}
|
|
329
|
+
else {
|
|
330
|
+
elm.style[prop] = '';
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
for (const prop in newValue) {
|
|
336
|
+
if (!oldValue || newValue[prop] !== oldValue[prop]) {
|
|
337
|
+
if (prop.includes('-')) {
|
|
338
|
+
elm.style.setProperty(prop, newValue[prop]);
|
|
339
|
+
}
|
|
340
|
+
else {
|
|
341
|
+
elm.style[prop] = newValue[prop];
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
else if (memberName === 'key')
|
|
347
|
+
;
|
|
310
348
|
else if (memberName === 'ref') {
|
|
311
349
|
// minifier will clean this up
|
|
312
350
|
if (newValue) {
|
|
@@ -584,6 +622,8 @@ const removeVnodes = (vnodes, startIdx, endIdx, vnode, elm) => {
|
|
|
584
622
|
const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
|
|
585
623
|
let oldStartIdx = 0;
|
|
586
624
|
let newStartIdx = 0;
|
|
625
|
+
let idxInOld = 0;
|
|
626
|
+
let i = 0;
|
|
587
627
|
let oldEndIdx = oldCh.length - 1;
|
|
588
628
|
let oldStartVnode = oldCh[0];
|
|
589
629
|
let oldEndVnode = oldCh[oldEndIdx];
|
|
@@ -591,6 +631,7 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
|
|
|
591
631
|
let newStartVnode = newCh[0];
|
|
592
632
|
let newEndVnode = newCh[newEndIdx];
|
|
593
633
|
let node;
|
|
634
|
+
let elmToMove;
|
|
594
635
|
while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {
|
|
595
636
|
if (oldStartVnode == null) {
|
|
596
637
|
// VNode might have been moved left
|
|
@@ -657,7 +698,41 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
|
|
|
657
698
|
newStartVnode = newCh[++newStartIdx];
|
|
658
699
|
}
|
|
659
700
|
else {
|
|
701
|
+
// Here we do some checks to match up old and new nodes based on the
|
|
702
|
+
// `$key$` attribute, which is set by putting a `key="my-key"` attribute
|
|
703
|
+
// in the JSX for a DOM element in the implementation of a Stencil
|
|
704
|
+
// component.
|
|
705
|
+
//
|
|
706
|
+
// First we check to see if there are any nodes in the array of old
|
|
707
|
+
// children which have the same key as the first node in the new
|
|
708
|
+
// children.
|
|
709
|
+
idxInOld = -1;
|
|
660
710
|
{
|
|
711
|
+
for (i = oldStartIdx; i <= oldEndIdx; ++i) {
|
|
712
|
+
if (oldCh[i] && oldCh[i].$key$ !== null && oldCh[i].$key$ === newStartVnode.$key$) {
|
|
713
|
+
idxInOld = i;
|
|
714
|
+
break;
|
|
715
|
+
}
|
|
716
|
+
}
|
|
717
|
+
}
|
|
718
|
+
if (idxInOld >= 0) {
|
|
719
|
+
// We found a node in the old children which matches up with the first
|
|
720
|
+
// node in the new children! So let's deal with that
|
|
721
|
+
elmToMove = oldCh[idxInOld];
|
|
722
|
+
if (elmToMove.$tag$ !== newStartVnode.$tag$) {
|
|
723
|
+
// the tag doesn't match so we'll need a new DOM element
|
|
724
|
+
node = createElm(oldCh && oldCh[newStartIdx], newVNode, idxInOld);
|
|
725
|
+
}
|
|
726
|
+
else {
|
|
727
|
+
patch(elmToMove, newStartVnode);
|
|
728
|
+
// invalidate the matching old node so that we won't try to update it
|
|
729
|
+
// again later on
|
|
730
|
+
oldCh[idxInOld] = undefined;
|
|
731
|
+
node = elmToMove.$elm$;
|
|
732
|
+
}
|
|
733
|
+
newStartVnode = newCh[++newStartIdx];
|
|
734
|
+
}
|
|
735
|
+
else {
|
|
661
736
|
// We either didn't find an element in the old children that matches
|
|
662
737
|
// the key of the first new child OR the build is not using `key`
|
|
663
738
|
// attributes at all. In either case we need to create a new element
|
|
@@ -706,7 +781,10 @@ const isSameVnode = (leftVNode, rightVNode) => {
|
|
|
706
781
|
// compare if two vnode to see if they're "technically" the same
|
|
707
782
|
// need to have the same element tag, and same key to be the same
|
|
708
783
|
if (leftVNode.$tag$ === rightVNode.$tag$) {
|
|
709
|
-
|
|
784
|
+
// this will be set if components in the build have `key` attrs set on them
|
|
785
|
+
{
|
|
786
|
+
return leftVNode.$key$ === rightVNode.$key$;
|
|
787
|
+
}
|
|
710
788
|
}
|
|
711
789
|
return false;
|
|
712
790
|
};
|
|
@@ -1436,4 +1514,4 @@ const flush = () => {
|
|
|
1436
1514
|
const nextTick = /*@__PURE__*/ (cb) => promiseResolve().then(cb);
|
|
1437
1515
|
const writeTask = /*@__PURE__*/ queueTask(queueDomWrites, true);
|
|
1438
1516
|
|
|
1439
|
-
export { Host as H, bootstrapLazy as b, createEvent as c, h, promiseResolve as p, registerInstance as r, setNonce as s };
|
|
1517
|
+
export { Host as H, bootstrapLazy as b, createEvent as c, getElement as g, h, promiseResolve as p, registerInstance as r, setNonce as s };
|
package/dist/esm/loader.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { p as promiseResolve, b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { p as promiseResolve, b as bootstrapLazy } from './index-e888a5f4.js';
|
|
2
|
+
export { s as setNonce } from './index-e888a5f4.js';
|
|
3
3
|
|
|
4
4
|
/*
|
|
5
5
|
Stencil Client Patch Esm v2.22.3 | MIT Licensed | https://stenciljs.com
|
|
@@ -11,7 +11,7 @@ const patchEsm = () => {
|
|
|
11
11
|
const defineCustomElements = (win, options) => {
|
|
12
12
|
if (typeof window === 'undefined') return Promise.resolve();
|
|
13
13
|
return patchEsm().then(() => {
|
|
14
|
-
return bootstrapLazy([["tttx-button",[[1,"tttx-button",{"notext":[4],"icon":[1],"iconposition":[1],"design":[1]}]]],["tttx-list",[[1,"tttx-list",{"data":[1025],"name":[1]}]]],["tttx-standalone-input",[[2,"tttx-standalone-input",{"label":[1],"showerrormsg":[4],"showerrorbubble":[4],"errormsg":[1],"iconleft":[1],"iconright":[1],"inputicon":[1],"inline":[4],"inputAutocapitalize":[1,"input-autocapitalize"],"inputAutofocus":[4,"input-autofocus"],"inputKeyhint":[1,"input-keyhint"],"inputIndex":[8,"input-index"],"inputTitle":[1,"input-title"],"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],"submitValue":[1032,"submit-value"]}]]],["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]}]]],["tttx-icon",[[1,"tttx-icon",{"icon":[1],"color":[1]}]]]], options);
|
|
14
|
+
return bootstrapLazy([["tttx-button",[[1,"tttx-button",{"notext":[4],"icon":[1],"iconposition":[1],"design":[1]}]]],["tttx-filter",[[1,"tttx-filter",{"filterKey":[1,"filter-key"],"filterOptions":[16],"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],"selectedFilters":[32],"filterSearchTerm":[32],"displayedFilterSettings":[32],"allSelected":[32]}]]],["tttx-list",[[1,"tttx-list",{"data":[1025],"name":[1]}]]],["tttx-standalone-input",[[2,"tttx-standalone-input",{"label":[1],"showerrormsg":[4],"showerrorbubble":[4],"errormsg":[1],"iconleft":[1],"iconright":[1],"inputicon":[1],"inline":[4],"inputAutocapitalize":[1,"input-autocapitalize"],"inputAutofocus":[4,"input-autofocus"],"inputKeyhint":[1,"input-keyhint"],"inputIndex":[8,"input-index"],"inputTitle":[1,"input-title"],"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],"submitValue":[1032,"submit-value"]}]]],["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]}]]],["tttx-icon",[[1,"tttx-icon",{"icon":[1],"color":[1]}]]]], options);
|
|
15
15
|
});
|
|
16
16
|
};
|
|
17
17
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host } from './index-
|
|
1
|
+
import { r as registerInstance, h, H as Host } from './index-e888a5f4.js';
|
|
2
2
|
|
|
3
3
|
const tttxButtonCss = ".material-symbols-rounded{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}.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}button{cursor:pointer}tttx-icon{cursor:inherit}.spacingleft{margin-left:8px}";
|
|
4
4
|
|
|
5
|
-
const TttxButton = class {
|
|
6
|
-
constructor(hostRef) {
|
|
7
|
-
registerInstance(this, hostRef);
|
|
8
|
-
this._iconcolor = 'black';
|
|
9
|
-
this.notext = undefined;
|
|
10
|
-
this.icon = undefined;
|
|
11
|
-
this.iconposition = 'left';
|
|
12
|
-
this.design = 'default';
|
|
13
|
-
}
|
|
14
|
-
componentWillLoad() {
|
|
15
|
-
this._design = this.design;
|
|
16
|
-
const designs = ['primary', 'default', 'disabled', 'danger', 'borderless'];
|
|
17
|
-
if (!designs.includes(this.design)) {
|
|
18
|
-
this._design = 'default';
|
|
19
|
-
}
|
|
20
|
-
if (this._design === 'primary' || this._design === 'danger') {
|
|
21
|
-
this._iconcolor = 'white';
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
render() {
|
|
25
|
-
return (h(Host, null, h("button", { class: `button ${this._design} ${this.icon ? 'withicon' : ''} ${this.icon && this.iconposition ? 'icon' + this.iconposition : ''} ${this.notext ? 'notext' : ''}` }, this.icon && this.iconposition === 'left' && (h("div", { class: "icon-left" }, h("tttx-icon", { icon: this.icon, color: this._iconcolor }))), !this.notext && h("div", { class: "button-content" }, h("slot", null)), this.icon && this.iconposition === 'right' && (h("div", { class: "icon-right" }, h("tttx-icon", { icon: this.icon, color: this._iconcolor }))))));
|
|
26
|
-
}
|
|
27
|
-
};
|
|
5
|
+
const TttxButton = class {
|
|
6
|
+
constructor(hostRef) {
|
|
7
|
+
registerInstance(this, hostRef);
|
|
8
|
+
this._iconcolor = 'black';
|
|
9
|
+
this.notext = undefined;
|
|
10
|
+
this.icon = undefined;
|
|
11
|
+
this.iconposition = 'left';
|
|
12
|
+
this.design = 'default';
|
|
13
|
+
}
|
|
14
|
+
componentWillLoad() {
|
|
15
|
+
this._design = this.design;
|
|
16
|
+
const designs = ['primary', 'default', 'disabled', 'danger', 'borderless'];
|
|
17
|
+
if (!designs.includes(this.design)) {
|
|
18
|
+
this._design = 'default';
|
|
19
|
+
}
|
|
20
|
+
if (this._design === 'primary' || this._design === 'danger') {
|
|
21
|
+
this._iconcolor = 'white';
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
render() {
|
|
25
|
+
return (h(Host, null, h("button", { class: `button ${this._design} ${this.icon ? 'withicon' : ''} ${this.icon && this.iconposition ? 'icon' + this.iconposition : ''} ${this.notext ? 'notext' : ''}` }, this.icon && this.iconposition === 'left' && (h("div", { class: "icon-left" }, h("tttx-icon", { icon: this.icon, color: this._iconcolor }))), !this.notext && h("div", { class: "button-content" }, h("slot", null)), this.icon && this.iconposition === 'right' && (h("div", { class: "icon-right" }, h("tttx-icon", { icon: this.icon, color: this._iconcolor }))))));
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
28
|
TttxButton.style = tttxButtonCss;
|
|
29
29
|
|
|
30
30
|
export { TttxButton as tttx_button };
|