@3t-transform/threeteeui 0.0.21 → 0.0.23
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-bf777121.js → index-2943e8f8.js} +1 -122
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/tttx-button.cjs.entry.js +1 -1
- package/dist/cjs/tttx-icon.cjs.entry.js +1 -1
- package/dist/cjs/tttx-keyvalue-block.cjs.entry.js +8 -5
- package/dist/cjs/tttx-loading-spinner.cjs.entry.js +1 -1
- package/dist/cjs/tttx-standalone-input.cjs.entry.js +6 -4
- package/dist/cjs/tttx.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +1 -7
- package/dist/collection/components/atoms/tttx-keyvalue-block/tttx-keyvalue-block.js +7 -4
- package/dist/collection/components/molecules/tttx-standalone-input/tttx-standalone-input.js +28 -9
- package/dist/components/index.d.ts +0 -6
- package/dist/components/index.js +0 -6
- package/dist/components/tttx-button.js +54 -1
- package/dist/components/tttx-keyvalue-block.js +7 -4
- package/dist/components/tttx-loading-spinner.js +38 -1
- package/dist/components/tttx-standalone-input.js +8 -5
- package/dist/esm/{index-a05bd606.js → index-058a3cd0.js} +2 -122
- package/dist/esm/loader.js +3 -3
- package/dist/esm/tttx-button.entry.js +1 -1
- package/dist/esm/tttx-icon.entry.js +1 -1
- package/dist/esm/tttx-keyvalue-block.entry.js +8 -5
- package/dist/esm/tttx-loading-spinner.entry.js +1 -1
- package/dist/esm/tttx-standalone-input.entry.js +6 -4
- package/dist/esm/tttx.js +3 -3
- package/dist/tttx/{p-68ff0f39.entry.js → p-046868d9.entry.js} +1 -1
- package/dist/tttx/{p-93763d3c.entry.js → p-1adb2b75.entry.js} +1 -1
- package/dist/tttx/{p-a5808741.entry.js → p-495cf4b3.entry.js} +1 -1
- package/dist/tttx/p-a4d9929a.entry.js +1 -0
- package/dist/tttx/p-ad637dde.entry.js +1 -0
- package/dist/tttx/p-bbb7dbf7.js +2 -0
- package/dist/tttx/tttx.esm.js +1 -1
- package/dist/types/components/molecules/tttx-standalone-input/tttx-standalone-input.d.ts +3 -2
- package/dist/types/components.d.ts +6 -140
- package/package.json +2 -2
- package/dist/cjs/tttx-checkbox.cjs.entry.js +0 -28
- package/dist/cjs/tttx-form.cjs.entry.js +0 -374
- package/dist/cjs/tttx-input-calendar.cjs.entry.js +0 -125
- package/dist/cjs/tttx-list.cjs.entry.js +0 -198
- package/dist/cjs/tttx-popover-content.cjs.entry.js +0 -23
- package/dist/cjs/tttx-table.cjs.entry.js +0 -60
- package/dist/collection/components/atoms/tttx-popover-content/tttx-popover-content.css +0 -30
- package/dist/collection/components/atoms/tttx-popover-content/tttx-popover-content.js +0 -97
- package/dist/collection/components/atoms/tttx-popover-content/tttx-popover-content.stories.js +0 -23
- package/dist/collection/components/atoms/ttx-checkbox/tttx-checkbox.css +0 -181
- package/dist/collection/components/atoms/ttx-checkbox/tttx-checkbox.js +0 -102
- package/dist/collection/components/atoms/ttx-checkbox/tttx-checkbox.stories.js +0 -13
- package/dist/collection/components/molecules/tttx-form/tttx-form.css +0 -314
- package/dist/collection/components/molecules/tttx-form/tttx-form.js +0 -452
- package/dist/collection/components/molecules/tttx-form/tttx-form.stories.js +0 -109
- package/dist/collection/components/molecules/tttx-input-calendar/tttx-input-calendar.css +0 -93
- package/dist/collection/components/molecules/tttx-input-calendar/tttx-input-calendar.js +0 -174
- package/dist/collection/components/molecules/tttx-input-calendar/tttx-input-calendar.stories.js +0 -27
- package/dist/collection/components/molecules/tttx-list/tttx-list.css +0 -56
- package/dist/collection/components/molecules/tttx-list/tttx-list.js +0 -312
- package/dist/collection/components/molecules/tttx-list/tttx-list.stories.js +0 -37
- package/dist/collection/components/molecules/tttx-table/tttx-table.css +0 -166
- package/dist/collection/components/molecules/tttx-table/tttx-table.js +0 -174
- package/dist/collection/components/molecules/tttx-table/tttx-table.stories.js +0 -81
- package/dist/components/tttx-button2.js +0 -56
- package/dist/components/tttx-checkbox.d.ts +0 -11
- package/dist/components/tttx-checkbox.js +0 -46
- package/dist/components/tttx-form.d.ts +0 -11
- package/dist/components/tttx-form.js +0 -391
- package/dist/components/tttx-input-calendar.d.ts +0 -11
- package/dist/components/tttx-input-calendar.js +0 -157
- package/dist/components/tttx-list.d.ts +0 -11
- package/dist/components/tttx-list.js +0 -225
- package/dist/components/tttx-loading-spinner2.js +0 -40
- package/dist/components/tttx-popover-content.d.ts +0 -11
- package/dist/components/tttx-popover-content.js +0 -6
- package/dist/components/tttx-popover-content2.js +0 -39
- package/dist/components/tttx-table.d.ts +0 -11
- package/dist/components/tttx-table.js +0 -91
- package/dist/esm/tttx-checkbox.entry.js +0 -24
- package/dist/esm/tttx-form.entry.js +0 -370
- package/dist/esm/tttx-input-calendar.entry.js +0 -121
- package/dist/esm/tttx-list.entry.js +0 -194
- package/dist/esm/tttx-popover-content.entry.js +0 -19
- package/dist/esm/tttx-table.entry.js +0 -56
- package/dist/tttx/p-037d286f.entry.js +0 -1
- package/dist/tttx/p-07b134af.js +0 -2
- package/dist/tttx/p-1b63f16a.entry.js +0 -1
- package/dist/tttx/p-45afb84c.entry.js +0 -1
- package/dist/tttx/p-74061060.entry.js +0 -1
- package/dist/tttx/p-9536b8c4.entry.js +0 -1
- package/dist/tttx/p-a92ca87e.entry.js +0 -1
- package/dist/tttx/p-a96ca037.entry.js +0 -1
- package/dist/tttx/p-f579ed1e.entry.js +0 -1
- package/dist/types/components/atoms/tttx-popover-content/tttx-popover-content.d.ts +0 -7
- package/dist/types/components/atoms/tttx-popover-content/tttx-popover-content.stories.d.ts +0 -18
- package/dist/types/components/atoms/ttx-checkbox/tttx-checkbox.d.ts +0 -9
- package/dist/types/components/atoms/ttx-checkbox/tttx-checkbox.stories.d.ts +0 -6
- package/dist/types/components/molecules/tttx-form/tttx-form.d.ts +0 -134
- package/dist/types/components/molecules/tttx-form/tttx-form.stories.d.ts +0 -12
- package/dist/types/components/molecules/tttx-input-calendar/tttx-input-calendar.d.ts +0 -19
- package/dist/types/components/molecules/tttx-input-calendar/tttx-input-calendar.stories.d.ts +0 -26
- package/dist/types/components/molecules/tttx-list/tttx-list.d.ts +0 -51
- package/dist/types/components/molecules/tttx-list/tttx-list.stories.d.ts +0 -13
- package/dist/types/components/molecules/tttx-table/tttx-table.d.ts +0 -15
- package/dist/types/components/molecules/tttx-table/tttx-table.stories.d.ts +0 -21
|
@@ -1,4 +1,57 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
2
|
+
import { d as defineCustomElement$2 } from './tttx-icon2.js';
|
|
3
|
+
|
|
4
|
+
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}.spacingleft{margin-left:8px}";
|
|
5
|
+
|
|
6
|
+
const TttxButton$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
7
|
+
constructor() {
|
|
8
|
+
super();
|
|
9
|
+
this.__registerHost();
|
|
10
|
+
this.__attachShadow();
|
|
11
|
+
this._iconcolor = 'black';
|
|
12
|
+
this.notext = undefined;
|
|
13
|
+
this.icon = undefined;
|
|
14
|
+
this.iconposition = 'left';
|
|
15
|
+
this.design = 'default';
|
|
16
|
+
}
|
|
17
|
+
componentWillLoad() {
|
|
18
|
+
this._design = this.design;
|
|
19
|
+
const designs = ['primary', 'default', 'disabled', 'danger', 'borderless'];
|
|
20
|
+
if (!designs.includes(this.design)) {
|
|
21
|
+
this._design = 'default';
|
|
22
|
+
}
|
|
23
|
+
if (this._design === 'primary' || this._design === 'danger') {
|
|
24
|
+
this._iconcolor = 'white';
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
render() {
|
|
28
|
+
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 }))))));
|
|
29
|
+
}
|
|
30
|
+
static get style() { return tttxButtonCss; }
|
|
31
|
+
}, [1, "tttx-button", {
|
|
32
|
+
"notext": [4],
|
|
33
|
+
"icon": [1],
|
|
34
|
+
"iconposition": [1],
|
|
35
|
+
"design": [1]
|
|
36
|
+
}]);
|
|
37
|
+
function defineCustomElement$1() {
|
|
38
|
+
if (typeof customElements === "undefined") {
|
|
39
|
+
return;
|
|
40
|
+
}
|
|
41
|
+
const components = ["tttx-button", "tttx-icon"];
|
|
42
|
+
components.forEach(tagName => { switch (tagName) {
|
|
43
|
+
case "tttx-button":
|
|
44
|
+
if (!customElements.get(tagName)) {
|
|
45
|
+
customElements.define(tagName, TttxButton$1);
|
|
46
|
+
}
|
|
47
|
+
break;
|
|
48
|
+
case "tttx-icon":
|
|
49
|
+
if (!customElements.get(tagName)) {
|
|
50
|
+
defineCustomElement$2();
|
|
51
|
+
}
|
|
52
|
+
break;
|
|
53
|
+
} });
|
|
54
|
+
}
|
|
2
55
|
|
|
3
56
|
const TttxButton = TttxButton$1;
|
|
4
57
|
const defineCustomElement = defineCustomElement$1;
|
|
@@ -29,17 +29,20 @@ const TttxKeyvalueBlock$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLE
|
|
|
29
29
|
for (let i = 0; i < values.length; i++) {
|
|
30
30
|
const value = values[i];
|
|
31
31
|
if (this.horizontal) {
|
|
32
|
-
elements.push(h("div", null, h("dt", { class:
|
|
32
|
+
elements.push(h("div", null, h("dt", { class: 'mainTitle' }, value.title), h("dt", { class: 'subTitle' }, value.subTitle), h("dd", null, value.data)));
|
|
33
33
|
}
|
|
34
34
|
else {
|
|
35
|
-
elements.push(h("dt", { class:
|
|
36
|
-
elements.push(h("dt", { class:
|
|
35
|
+
elements.push(h("dt", { class: 'mainTitle' }, value.title));
|
|
36
|
+
elements.push(h("dt", { class: 'subTitle' }, value.subTitle));
|
|
37
37
|
elements.push(h("dd", null, value.data));
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
return elements;
|
|
41
41
|
}
|
|
42
42
|
render() {
|
|
43
|
+
if (!this.keyvalues) {
|
|
44
|
+
return;
|
|
45
|
+
}
|
|
43
46
|
let values;
|
|
44
47
|
if (typeof this.keyvalues === 'string') {
|
|
45
48
|
values = JSON.parse(this.keyvalues);
|
|
@@ -54,7 +57,7 @@ const TttxKeyvalueBlock$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLE
|
|
|
54
57
|
else {
|
|
55
58
|
elements = this.renderSingleElements(values);
|
|
56
59
|
}
|
|
57
|
-
return (h(Host, null, h("dl", { class: this.horizontal ?
|
|
60
|
+
return (h(Host, null, h("dl", { class: this.horizontal ? 'horizontal' : null }, elements)));
|
|
58
61
|
}
|
|
59
62
|
static get style() { return tttxKeyvalueBlockCss; }
|
|
60
63
|
}, [1, "tttx-keyvalue-block", {
|
|
@@ -1,4 +1,41 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
|
|
2
|
+
|
|
3
|
+
const tttxLoadingSpinnerCss = ".material-symbols-rounded{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}.spinner-container{position:absolute}.loading-box{display:flex;align-items:center;justify-content:center}.loading-text{font-size:16px;font-weight:400;padding-top:10px;text-align:center}.spinner{border:solid #1479c6;border-bottom-color:#d5d5d5;border-radius:50%;position:relative;box-sizing:border-box;animation:rotation 1s linear infinite}.spinner.small{height:20px;width:20px;border-width:4px}.spinner.large{height:60px;width:60px;border-width:8px}@keyframes rotation{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}";
|
|
4
|
+
|
|
5
|
+
const TttxLoadingSpinner$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
6
|
+
constructor() {
|
|
7
|
+
super();
|
|
8
|
+
this.__registerHost();
|
|
9
|
+
this.__attachShadow();
|
|
10
|
+
this.loadingMessage = undefined;
|
|
11
|
+
this.size = 'large';
|
|
12
|
+
}
|
|
13
|
+
renderLoadingMessage() {
|
|
14
|
+
if (!this.loadingMessage)
|
|
15
|
+
return '';
|
|
16
|
+
return h("div", { class: "loading-text" }, "Loading, please wait...");
|
|
17
|
+
}
|
|
18
|
+
render() {
|
|
19
|
+
return (h("div", { class: "spinner-container" }, h("div", { class: "loading-box" }, h("span", { class: `spinner ${this.size}` })), this.renderLoadingMessage()));
|
|
20
|
+
}
|
|
21
|
+
static get style() { return tttxLoadingSpinnerCss; }
|
|
22
|
+
}, [1, "tttx-loading-spinner", {
|
|
23
|
+
"loadingMessage": [1028, "loading-message"],
|
|
24
|
+
"size": [1025]
|
|
25
|
+
}]);
|
|
26
|
+
function defineCustomElement$1() {
|
|
27
|
+
if (typeof customElements === "undefined") {
|
|
28
|
+
return;
|
|
29
|
+
}
|
|
30
|
+
const components = ["tttx-loading-spinner"];
|
|
31
|
+
components.forEach(tagName => { switch (tagName) {
|
|
32
|
+
case "tttx-loading-spinner":
|
|
33
|
+
if (!customElements.get(tagName)) {
|
|
34
|
+
customElements.define(tagName, TttxLoadingSpinner$1);
|
|
35
|
+
}
|
|
36
|
+
break;
|
|
37
|
+
} });
|
|
38
|
+
}
|
|
2
39
|
|
|
3
40
|
const TttxLoadingSpinner = TttxLoadingSpinner$1;
|
|
4
41
|
const defineCustomElement = defineCustomElement$1;
|
|
@@ -16,10 +16,11 @@ const TttxInput = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
16
16
|
this.errormsg = undefined;
|
|
17
17
|
this.iconleft = undefined;
|
|
18
18
|
this.iconright = undefined;
|
|
19
|
-
this.
|
|
20
|
-
this.
|
|
19
|
+
this.inputAutocapitalize = undefined;
|
|
20
|
+
this.inputAutofocus = undefined;
|
|
21
21
|
this.inputKeyhint = undefined;
|
|
22
22
|
this.inputIndex = undefined;
|
|
23
|
+
this.inputTitle = undefined;
|
|
23
24
|
this.autocomplete = undefined;
|
|
24
25
|
this.checked = undefined;
|
|
25
26
|
this.disabled = undefined;
|
|
@@ -50,12 +51,13 @@ const TttxInput = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
50
51
|
this.blurChanged.emit(target.value);
|
|
51
52
|
}
|
|
52
53
|
handleInvalid(event) {
|
|
54
|
+
event.preventDefault();
|
|
53
55
|
const target = event.target;
|
|
54
56
|
this.invalidChanged.emit(target.value);
|
|
55
57
|
}
|
|
56
58
|
render() {
|
|
57
59
|
const classNames = ['standalone', this.showerrormsg ? 'invalid' : ''].join(' ');
|
|
58
|
-
return (h(Host, null, h("label", { class: '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("input", { class: classNames, autocapitalize: this.
|
|
60
|
+
return (h(Host, null, h("label", { class: '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("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" }))), h("span", { class: ['errorBubble', this.showerrormsg && this.errormsg ? 'visible' : ''].join(' ') }, h("span", { class: "material-symbols-rounded validationicon" }, "warning"), " ", this.errormsg))));
|
|
59
61
|
}
|
|
60
62
|
static get style() { return tttxStandaloneInputCss; }
|
|
61
63
|
}, [2, "tttx-standalone-input", {
|
|
@@ -64,10 +66,11 @@ const TttxInput = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
64
66
|
"errormsg": [1],
|
|
65
67
|
"iconleft": [1],
|
|
66
68
|
"iconright": [1],
|
|
67
|
-
"
|
|
68
|
-
"
|
|
69
|
+
"inputAutocapitalize": [1, "input-autocapitalize"],
|
|
70
|
+
"inputAutofocus": [4, "input-autofocus"],
|
|
69
71
|
"inputKeyhint": [1, "input-keyhint"],
|
|
70
72
|
"inputIndex": [8, "input-index"],
|
|
73
|
+
"inputTitle": [1, "input-title"],
|
|
71
74
|
"autocomplete": [1],
|
|
72
75
|
"checked": [4],
|
|
73
76
|
"disabled": [4],
|
|
@@ -171,10 +171,6 @@ const parsePropertyValue = (propValue, propType) => {
|
|
|
171
171
|
// but we'll cheat here and say that the string "false" is the boolean false
|
|
172
172
|
return propValue === 'false' ? false : propValue === '' || !!propValue;
|
|
173
173
|
}
|
|
174
|
-
if (propType & 2 /* MEMBER_FLAGS.Number */) {
|
|
175
|
-
// force it to be a number
|
|
176
|
-
return parseFloat(propValue);
|
|
177
|
-
}
|
|
178
174
|
if (propType & 1 /* MEMBER_FLAGS.String */) {
|
|
179
175
|
// could have been passed as a number or boolean
|
|
180
176
|
// but we still want it as a string
|
|
@@ -311,12 +307,6 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
311
307
|
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
312
308
|
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
313
309
|
}
|
|
314
|
-
else if (memberName === 'ref') {
|
|
315
|
-
// minifier will clean this up
|
|
316
|
-
if (newValue) {
|
|
317
|
-
newValue(elm);
|
|
318
|
-
}
|
|
319
|
-
}
|
|
320
310
|
else if ((!isProp ) &&
|
|
321
311
|
memberName[0] === 'o' &&
|
|
322
312
|
memberName[1] === 'n') {
|
|
@@ -511,7 +501,6 @@ const removeVnodes = (vnodes, startIdx, endIdx, vnode, elm) => {
|
|
|
511
501
|
for (; startIdx <= endIdx; ++startIdx) {
|
|
512
502
|
if ((vnode = vnodes[startIdx])) {
|
|
513
503
|
elm = vnode.$elm$;
|
|
514
|
-
callNodeRefs(vnode);
|
|
515
504
|
// remove the vnode's element from the dom
|
|
516
505
|
elm.remove();
|
|
517
506
|
}
|
|
@@ -764,12 +753,6 @@ const patch = (oldVNode, newVNode) => {
|
|
|
764
753
|
elm.data = text;
|
|
765
754
|
}
|
|
766
755
|
};
|
|
767
|
-
const callNodeRefs = (vNode) => {
|
|
768
|
-
{
|
|
769
|
-
vNode.$attrs$ && vNode.$attrs$.ref && vNode.$attrs$.ref(null);
|
|
770
|
-
vNode.$children$ && vNode.$children$.map(callNodeRefs);
|
|
771
|
-
}
|
|
772
|
-
};
|
|
773
756
|
/**
|
|
774
757
|
* The main entry point for Stencil's virtual DOM-based rendering engine
|
|
775
758
|
*
|
|
@@ -822,20 +805,10 @@ const dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
822
805
|
const instance = hostRef.$lazyInstance$ ;
|
|
823
806
|
let promise;
|
|
824
807
|
if (isInitialLoad) {
|
|
825
|
-
{
|
|
826
|
-
hostRef.$flags$ |= 256 /* HOST_FLAGS.isListenReady */;
|
|
827
|
-
if (hostRef.$queuedListeners$) {
|
|
828
|
-
hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
|
|
829
|
-
hostRef.$queuedListeners$ = null;
|
|
830
|
-
}
|
|
831
|
-
}
|
|
832
808
|
{
|
|
833
809
|
promise = safeCall(instance, 'componentWillLoad');
|
|
834
810
|
}
|
|
835
811
|
}
|
|
836
|
-
{
|
|
837
|
-
promise = then(promise, () => safeCall(instance, 'componentWillRender'));
|
|
838
|
-
}
|
|
839
812
|
endSchedule();
|
|
840
813
|
return then(promise, () => updateComponent(hostRef, instance, isInitialLoad));
|
|
841
814
|
};
|
|
@@ -903,20 +876,13 @@ const postUpdateComponent = (hostRef) => {
|
|
|
903
876
|
const tagName = hostRef.$cmpMeta$.$tagName$;
|
|
904
877
|
const elm = hostRef.$hostElement$;
|
|
905
878
|
const endPostUpdate = createTime('postUpdate', tagName);
|
|
906
|
-
const instance = hostRef.$lazyInstance$ ;
|
|
907
879
|
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
908
|
-
{
|
|
909
|
-
safeCall(instance, 'componentDidRender');
|
|
910
|
-
}
|
|
911
880
|
if (!(hostRef.$flags$ & 64 /* HOST_FLAGS.hasLoadedComponent */)) {
|
|
912
881
|
hostRef.$flags$ |= 64 /* HOST_FLAGS.hasLoadedComponent */;
|
|
913
882
|
{
|
|
914
883
|
// DOM WRITE!
|
|
915
884
|
addHydratedFlag(elm);
|
|
916
885
|
}
|
|
917
|
-
{
|
|
918
|
-
safeCall(instance, 'componentDidLoad');
|
|
919
|
-
}
|
|
920
886
|
endPostUpdate();
|
|
921
887
|
{
|
|
922
888
|
hostRef.$onReadyResolve$(elm);
|
|
@@ -972,7 +938,6 @@ const getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propNam
|
|
|
972
938
|
const setValue = (ref, propName, newVal, cmpMeta) => {
|
|
973
939
|
// check our new property value against our internal value
|
|
974
940
|
const hostRef = getHostRef(ref);
|
|
975
|
-
const elm = hostRef.$hostElement$ ;
|
|
976
941
|
const oldVal = hostRef.$instanceValues$.get(propName);
|
|
977
942
|
const flags = hostRef.$flags$;
|
|
978
943
|
const instance = hostRef.$lazyInstance$ ;
|
|
@@ -985,22 +950,6 @@ const setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
985
950
|
// set our new value!
|
|
986
951
|
hostRef.$instanceValues$.set(propName, newVal);
|
|
987
952
|
if (instance) {
|
|
988
|
-
// get an array of method names of watch functions to call
|
|
989
|
-
if (cmpMeta.$watchers$ && flags & 128 /* HOST_FLAGS.isWatchReady */) {
|
|
990
|
-
const watchMethods = cmpMeta.$watchers$[propName];
|
|
991
|
-
if (watchMethods) {
|
|
992
|
-
// this instance is watching for when this property changed
|
|
993
|
-
watchMethods.map((watchMethodName) => {
|
|
994
|
-
try {
|
|
995
|
-
// fire off each of the watch methods that are watching this property
|
|
996
|
-
instance[watchMethodName](newVal, oldVal, propName);
|
|
997
|
-
}
|
|
998
|
-
catch (e) {
|
|
999
|
-
consoleError(e, elm);
|
|
1000
|
-
}
|
|
1001
|
-
});
|
|
1002
|
-
}
|
|
1003
|
-
}
|
|
1004
953
|
if ((flags & (2 /* HOST_FLAGS.hasRendered */ | 16 /* HOST_FLAGS.isQueuedForUpdate */)) === 2 /* HOST_FLAGS.hasRendered */) {
|
|
1005
954
|
// looks like this value actually changed, so we've got work to do!
|
|
1006
955
|
// but only if we've already rendered, otherwise just chill out
|
|
@@ -1023,9 +972,6 @@ const setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
1023
972
|
*/
|
|
1024
973
|
const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
1025
974
|
if (cmpMeta.$members$) {
|
|
1026
|
-
if (Cstr.watchers) {
|
|
1027
|
-
cmpMeta.$watchers$ = Cstr.watchers;
|
|
1028
|
-
}
|
|
1029
975
|
// It's better to have a const than two Object.entries()
|
|
1030
976
|
const members = Object.entries(cmpMeta.$members$);
|
|
1031
977
|
const prototype = Cstr.prototype;
|
|
@@ -1130,12 +1076,6 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
|
|
|
1130
1076
|
endLoad();
|
|
1131
1077
|
}
|
|
1132
1078
|
if (!Cstr.isProxied) {
|
|
1133
|
-
// we've never proxied this Constructor before
|
|
1134
|
-
// let's add the getters/setters to its prototype before
|
|
1135
|
-
// the first time we create an instance of the implementation
|
|
1136
|
-
{
|
|
1137
|
-
cmpMeta.$watchers$ = Cstr.watchers;
|
|
1138
|
-
}
|
|
1139
1079
|
proxyComponent(Cstr, cmpMeta, 2 /* PROXY_FLAGS.proxyState */);
|
|
1140
1080
|
Cstr.isProxied = true;
|
|
1141
1081
|
}
|
|
@@ -1159,9 +1099,6 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
|
|
|
1159
1099
|
{
|
|
1160
1100
|
hostRef.$flags$ &= ~8 /* HOST_FLAGS.isConstructingInstance */;
|
|
1161
1101
|
}
|
|
1162
|
-
{
|
|
1163
|
-
hostRef.$flags$ |= 128 /* HOST_FLAGS.isWatchReady */;
|
|
1164
|
-
}
|
|
1165
1102
|
endNewInstance();
|
|
1166
1103
|
}
|
|
1167
1104
|
if (Cstr.style) {
|
|
@@ -1229,28 +1166,12 @@ const connectedCallback = (elm) => {
|
|
|
1229
1166
|
initializeComponent(elm, hostRef, cmpMeta);
|
|
1230
1167
|
}
|
|
1231
1168
|
}
|
|
1232
|
-
else {
|
|
1233
|
-
// not the first time this has connected
|
|
1234
|
-
// reattach any event listeners to the host
|
|
1235
|
-
// since they would have been removed when disconnected
|
|
1236
|
-
addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
|
|
1237
|
-
}
|
|
1238
1169
|
endConnected();
|
|
1239
1170
|
}
|
|
1240
1171
|
};
|
|
1241
1172
|
const disconnectedCallback = (elm) => {
|
|
1242
1173
|
if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {
|
|
1243
|
-
|
|
1244
|
-
const instance = hostRef.$lazyInstance$ ;
|
|
1245
|
-
{
|
|
1246
|
-
if (hostRef.$rmListeners$) {
|
|
1247
|
-
hostRef.$rmListeners$.map((rmListener) => rmListener());
|
|
1248
|
-
hostRef.$rmListeners$ = undefined;
|
|
1249
|
-
}
|
|
1250
|
-
}
|
|
1251
|
-
{
|
|
1252
|
-
safeCall(instance, 'disconnectedCallback');
|
|
1253
|
-
}
|
|
1174
|
+
getHostRef(elm);
|
|
1254
1175
|
}
|
|
1255
1176
|
};
|
|
1256
1177
|
const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
@@ -1278,12 +1199,6 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1278
1199
|
{
|
|
1279
1200
|
cmpMeta.$members$ = compactMeta[2];
|
|
1280
1201
|
}
|
|
1281
|
-
{
|
|
1282
|
-
cmpMeta.$listeners$ = compactMeta[3];
|
|
1283
|
-
}
|
|
1284
|
-
{
|
|
1285
|
-
cmpMeta.$watchers$ = {};
|
|
1286
|
-
}
|
|
1287
1202
|
const tagName = cmpMeta.$tagName$;
|
|
1288
1203
|
const HostElement = class extends HTMLElement {
|
|
1289
1204
|
// StencilLazyHost
|
|
@@ -1354,40 +1269,6 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1354
1269
|
// Fallback appLoad event
|
|
1355
1270
|
endBootstrap();
|
|
1356
1271
|
};
|
|
1357
|
-
const addHostEventListeners = (elm, hostRef, listeners, attachParentListeners) => {
|
|
1358
|
-
if (listeners) {
|
|
1359
|
-
listeners.map(([flags, name, method]) => {
|
|
1360
|
-
const target = getHostListenerTarget(elm, flags) ;
|
|
1361
|
-
const handler = hostListenerProxy(hostRef, method);
|
|
1362
|
-
const opts = hostListenerOpts(flags);
|
|
1363
|
-
plt.ael(target, name, handler, opts);
|
|
1364
|
-
(hostRef.$rmListeners$ = hostRef.$rmListeners$ || []).push(() => plt.rel(target, name, handler, opts));
|
|
1365
|
-
});
|
|
1366
|
-
}
|
|
1367
|
-
};
|
|
1368
|
-
const hostListenerProxy = (hostRef, methodName) => (ev) => {
|
|
1369
|
-
try {
|
|
1370
|
-
{
|
|
1371
|
-
if (hostRef.$flags$ & 256 /* HOST_FLAGS.isListenReady */) {
|
|
1372
|
-
// instance is ready, let's call it's member method for this event
|
|
1373
|
-
hostRef.$lazyInstance$[methodName](ev);
|
|
1374
|
-
}
|
|
1375
|
-
else {
|
|
1376
|
-
(hostRef.$queuedListeners$ = hostRef.$queuedListeners$ || []).push([methodName, ev]);
|
|
1377
|
-
}
|
|
1378
|
-
}
|
|
1379
|
-
}
|
|
1380
|
-
catch (e) {
|
|
1381
|
-
consoleError(e);
|
|
1382
|
-
}
|
|
1383
|
-
};
|
|
1384
|
-
const getHostListenerTarget = (elm, flags) => {
|
|
1385
|
-
if (flags & 4 /* LISTENER_FLAGS.TargetDocument */)
|
|
1386
|
-
return doc;
|
|
1387
|
-
return elm;
|
|
1388
|
-
};
|
|
1389
|
-
// prettier-ignore
|
|
1390
|
-
const hostListenerOpts = (flags) => (flags & 2 /* LISTENER_FLAGS.Capture */) !== 0;
|
|
1391
1272
|
/**
|
|
1392
1273
|
* Assigns the given value to the nonce property on the runtime platform object.
|
|
1393
1274
|
* During runtime, this value is used to set the nonce attribute on all dynamically created script and style tags.
|
|
@@ -1410,7 +1291,6 @@ const registerHost = (elm, cmpMeta) => {
|
|
|
1410
1291
|
elm['s-p'] = [];
|
|
1411
1292
|
elm['s-rc'] = [];
|
|
1412
1293
|
}
|
|
1413
|
-
addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
|
|
1414
1294
|
return hostRefs.set(elm, hostRef);
|
|
1415
1295
|
};
|
|
1416
1296
|
const isMemberInElement = (elm, memberName) => memberName in elm;
|
|
@@ -1502,4 +1382,4 @@ const flush = () => {
|
|
|
1502
1382
|
const nextTick = /*@__PURE__*/ (cb) => promiseResolve().then(cb);
|
|
1503
1383
|
const writeTask = /*@__PURE__*/ queueTask(queueDomWrites, true);
|
|
1504
1384
|
|
|
1505
|
-
export { Host as H, bootstrapLazy as b, createEvent as c,
|
|
1385
|
+
export { Host as H, bootstrapLazy as b, createEvent as c, 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-058a3cd0.js';
|
|
2
|
+
export { s as setNonce } from './index-058a3cd0.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-
|
|
14
|
+
return bootstrapLazy([["tttx-button",[[1,"tttx-button",{"notext":[4],"icon":[1],"iconposition":[1],"design":[1]}]]],["tttx-standalone-input",[[2,"tttx-standalone-input",{"label":[1],"showerrormsg":[4],"errormsg":[1],"iconleft":[1],"iconright":[1],"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-keyvalue-block",[[1,"tttx-keyvalue-block",{"keyvalues":[8],"horizontal":[4]}]]],["tttx-loading-spinner",[[1,"tttx-loading-spinner",{"loadingMessage":[1028,"loading-message"],"size":[1025]}]]],["tttx-icon",[[1,"tttx-icon",{"icon":[1],"color":[1]}]]]], options);
|
|
15
15
|
});
|
|
16
16
|
};
|
|
17
17
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host } from './index-
|
|
1
|
+
import { r as registerInstance, h, H as Host } from './index-058a3cd0.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}.spacingleft{margin-left:8px}";
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host } from './index-
|
|
1
|
+
import { r as registerInstance, h, H as Host } from './index-058a3cd0.js';
|
|
2
2
|
|
|
3
3
|
const tttxIconCss = ".material-symbols-rounded{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}.material-symbols-rounded{font-family:\"Material Symbols Rounded\", sans-serif;font-weight:400;font-style:normal;font-size:24px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;color:#9e9e9e}:host{display:inline-block;cursor:default;user-select:none}.icon-size{width:24px;height:24px}.tooltip{background:#ffffff;color:#343434;font-weight:bold;padding:8px 16px;font-size:13px;border-radius:4px;box-shadow:0 0 5px 1px rgba(0, 0, 0, 0.3);display:none}.tooltip[data-show]{display:block}.arrow,.arrow::before{position:absolute;width:8px;height:8px;background:inherit}.arrow{visibility:hidden}.arrow::before{visibility:visible;content:\"\";transform:rotate(45deg)}.tooltip[data-popper-placement^=top]>.arrow{bottom:-4px}.tooltip[data-popper-placement^=bottom]>.arrow{top:-4px}.tooltip[data-popper-placement^=left]>.arrow{right:-4px}.tooltip[data-popper-placement^=right]>.arrow{left:-4px}.red{color:#dc0000}.orange{color:#f59500}.blue{color:#1479c6}.green{color:#a2bb31}.gray{color:#757575}.black{color:#212121}.white{color:white}";
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host } from './index-
|
|
1
|
+
import { r as registerInstance, h, H as Host } from './index-058a3cd0.js';
|
|
2
2
|
|
|
3
3
|
const tttxKeyvalueBlockCss = ":host{display:block}dl{margin:0;padding:0;font-family:\"Roboto\", sans-serif;cursor:default}dt{font-weight:400;line-height:21px;font-size:16px}dt,dt.subTitle{color:#757575}dt.mainTitle{color:#212121}dd{margin:0;font-weight:400;font-size:16px;color:#212121;line-height:21px;margin-bottom:18px}dl.horizontal{display:flex;flex-direction:row;width:100%}dl.horizontal div{flex-grow:1}@media (max-width: 769px){dl.horizontal{flex-wrap:wrap}dl.horizontal div{width:50%}}@media (max-width: 600px){dl.horizontal div{width:100%}}";
|
|
4
4
|
|
|
@@ -27,17 +27,20 @@ const TttxKeyvalueBlock = class {
|
|
|
27
27
|
for (let i = 0; i < values.length; i++) {
|
|
28
28
|
const value = values[i];
|
|
29
29
|
if (this.horizontal) {
|
|
30
|
-
elements.push(h("div", null, h("dt", { class:
|
|
30
|
+
elements.push(h("div", null, h("dt", { class: 'mainTitle' }, value.title), h("dt", { class: 'subTitle' }, value.subTitle), h("dd", null, value.data)));
|
|
31
31
|
}
|
|
32
32
|
else {
|
|
33
|
-
elements.push(h("dt", { class:
|
|
34
|
-
elements.push(h("dt", { class:
|
|
33
|
+
elements.push(h("dt", { class: 'mainTitle' }, value.title));
|
|
34
|
+
elements.push(h("dt", { class: 'subTitle' }, value.subTitle));
|
|
35
35
|
elements.push(h("dd", null, value.data));
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
38
|
return elements;
|
|
39
39
|
}
|
|
40
40
|
render() {
|
|
41
|
+
if (!this.keyvalues) {
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
41
44
|
let values;
|
|
42
45
|
if (typeof this.keyvalues === 'string') {
|
|
43
46
|
values = JSON.parse(this.keyvalues);
|
|
@@ -52,7 +55,7 @@ const TttxKeyvalueBlock = class {
|
|
|
52
55
|
else {
|
|
53
56
|
elements = this.renderSingleElements(values);
|
|
54
57
|
}
|
|
55
|
-
return (h(Host, null, h("dl", { class: this.horizontal ?
|
|
58
|
+
return (h(Host, null, h("dl", { class: this.horizontal ? 'horizontal' : null }, elements)));
|
|
56
59
|
}
|
|
57
60
|
};
|
|
58
61
|
TttxKeyvalueBlock.style = tttxKeyvalueBlockCss;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-
|
|
1
|
+
import { r as registerInstance, h } from './index-058a3cd0.js';
|
|
2
2
|
|
|
3
3
|
const tttxLoadingSpinnerCss = ".material-symbols-rounded{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}.spinner-container{position:absolute}.loading-box{display:flex;align-items:center;justify-content:center}.loading-text{font-size:16px;font-weight:400;padding-top:10px;text-align:center}.spinner{border:solid #1479c6;border-bottom-color:#d5d5d5;border-radius:50%;position:relative;box-sizing:border-box;animation:rotation 1s linear infinite}.spinner.small{height:20px;width:20px;border-width:4px}.spinner.large{height:60px;width:60px;border-width:8px}@keyframes rotation{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}";
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, H as Host } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host } from './index-058a3cd0.js';
|
|
2
2
|
|
|
3
3
|
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;margin-right:4px}.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}.focused.sc-tttx-standalone-input{border-color:#1479c6}.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.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}input.invalid.sc-tttx-standalone-input:invalid,input.standalone.invalid.sc-tttx-standalone-input{border:1px solid #dc0000}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}.sc-tttx-standalone-input-h{display:block}";
|
|
4
4
|
|
|
@@ -14,10 +14,11 @@ const TttxInput = class {
|
|
|
14
14
|
this.errormsg = undefined;
|
|
15
15
|
this.iconleft = undefined;
|
|
16
16
|
this.iconright = undefined;
|
|
17
|
-
this.
|
|
18
|
-
this.
|
|
17
|
+
this.inputAutocapitalize = undefined;
|
|
18
|
+
this.inputAutofocus = undefined;
|
|
19
19
|
this.inputKeyhint = undefined;
|
|
20
20
|
this.inputIndex = undefined;
|
|
21
|
+
this.inputTitle = undefined;
|
|
21
22
|
this.autocomplete = undefined;
|
|
22
23
|
this.checked = undefined;
|
|
23
24
|
this.disabled = undefined;
|
|
@@ -48,12 +49,13 @@ const TttxInput = class {
|
|
|
48
49
|
this.blurChanged.emit(target.value);
|
|
49
50
|
}
|
|
50
51
|
handleInvalid(event) {
|
|
52
|
+
event.preventDefault();
|
|
51
53
|
const target = event.target;
|
|
52
54
|
this.invalidChanged.emit(target.value);
|
|
53
55
|
}
|
|
54
56
|
render() {
|
|
55
57
|
const classNames = ['standalone', this.showerrormsg ? 'invalid' : ''].join(' ');
|
|
56
|
-
return (h(Host, null, h("label", { class: '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("input", { class: classNames, autocapitalize: this.
|
|
58
|
+
return (h(Host, null, h("label", { class: '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("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" }))), h("span", { class: ['errorBubble', this.showerrormsg && this.errormsg ? 'visible' : ''].join(' ') }, h("span", { class: "material-symbols-rounded validationicon" }, "warning"), " ", this.errormsg))));
|
|
57
59
|
}
|
|
58
60
|
};
|
|
59
61
|
TttxInput.style = tttxStandaloneInputCss;
|
package/dist/esm/tttx.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-058a3cd0.js';
|
|
2
|
+
export { s as setNonce } from './index-058a3cd0.js';
|
|
3
3
|
|
|
4
4
|
/*
|
|
5
5
|
Stencil Client Patch Browser v2.22.3 | MIT Licensed | https://stenciljs.com
|
|
@@ -14,5 +14,5 @@ const patchBrowser = () => {
|
|
|
14
14
|
};
|
|
15
15
|
|
|
16
16
|
patchBrowser().then(options => {
|
|
17
|
-
return bootstrapLazy([["tttx-
|
|
17
|
+
return bootstrapLazy([["tttx-button",[[1,"tttx-button",{"notext":[4],"icon":[1],"iconposition":[1],"design":[1]}]]],["tttx-standalone-input",[[2,"tttx-standalone-input",{"label":[1],"showerrormsg":[4],"errormsg":[1],"iconleft":[1],"iconright":[1],"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-keyvalue-block",[[1,"tttx-keyvalue-block",{"keyvalues":[8],"horizontal":[4]}]]],["tttx-loading-spinner",[[1,"tttx-loading-spinner",{"loadingMessage":[1028,"loading-message"],"size":[1025]}]]],["tttx-icon",[[1,"tttx-icon",{"icon":[1],"color":[1]}]]]], options);
|
|
18
18
|
});
|
|
@@ -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-bbb7dbf7.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{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}.spacingleft{margin-left:8px}';export{i as tttx_button}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as i}from"./p-
|
|
1
|
+
import{r as t,h as i}from"./p-bbb7dbf7.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",{class:"spinner-container"},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}.spinner-container{position:absolute}.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 +1 @@
|
|
|
1
|
-
import{r as o,h as t,H as e}from"./p-
|
|
1
|
+
import{r as o,h as t,H as e}from"./p-bbb7dbf7.js";const r=class{constructor(t){o(this,t),this.icon=void 0,this.color="grey"}render(){return t(e,null,t("span",{class:`material-symbols-rounded ${this.color?this.color:""}`},this.icon))}};r.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}.orange{color:#f59500}.blue{color:#1479c6}.green{color:#a2bb31}.gray{color:#757575}.black{color:#212121}.white{color:white}';export{r as tttx_icon}
|