@3t-transform/threeteeui 0.0.19 → 0.0.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/tttx-keyvalue-block.cjs.entry.js +1 -1
- package/dist/cjs/tttx-standalone-input.cjs.entry.js +8 -80
- package/dist/cjs/tttx.cjs.js +1 -1
- package/dist/collection/components/atoms/tttx-keyvalue-block/tttx-keyvalue-block.css +1 -1
- package/dist/collection/components/molecules/tttx-standalone-input/tttx-standalone-input.js +55 -90
- package/dist/components/tttx-keyvalue-block.js +1 -1
- package/dist/components/tttx-standalone-input.js +10 -81
- package/dist/esm/loader.js +1 -1
- package/dist/esm/tttx-keyvalue-block.entry.js +1 -1
- package/dist/esm/tttx-standalone-input.entry.js +8 -80
- package/dist/esm/tttx.js +1 -1
- package/dist/tttx/p-08790243.entry.js +1 -0
- package/dist/tttx/{p-224213ae.entry.js → p-9536b8c4.entry.js} +1 -1
- package/dist/tttx/tttx.esm.js +1 -1
- package/dist/types/components/molecules/tttx-standalone-input/tttx-standalone-input.d.ts +11 -1
- package/dist/types/components.d.ts +13 -0
- package/package.json +1 -1
- package/dist/tttx/p-e3cc75bb.entry.js +0 -1
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -14,7 +14,7 @@ const patchEsm = () => {
|
|
|
14
14
|
const defineCustomElements = (win, options) => {
|
|
15
15
|
if (typeof window === 'undefined') return Promise.resolve();
|
|
16
16
|
return patchEsm().then(() => {
|
|
17
|
-
return index.bootstrapLazy([["tttx-input-calendar.cjs",[[1,"tttx-input-calendar",{"months":[4],"years":[4],"showCalendar":[32],"selectedYear":[32],"selectedMonth":[32]}]]],["tttx-table.cjs",[[1,"tttx-table",{"headers":[16],"data":[16],"loading":[4],"selected":[2]},[[4,"keydown","handleKeyDown"]]]]],["tttx-list.cjs",[[1,"tttx-list",{"name":[1],"selectable":[4],"items":[32],"selectedIds":[32],"loading":[32],"lastPage":[32]},[[4,"listPageLoad","listLoadHandler"],[4,"listClearDataCache","listClearDataCacheHandler"],[4,"listActionSelectedEvent","listActionSelectedEventHandler"]]]]],["tttx-standalone-input.cjs",[[2,"tttx-standalone-input",{"label":[1],"showerrormsg":[4],"errormsg":[1],"iconleft":[1],"iconright":[1],"autocapitalize":[1],"
|
|
17
|
+
return index.bootstrapLazy([["tttx-input-calendar.cjs",[[1,"tttx-input-calendar",{"months":[4],"years":[4],"showCalendar":[32],"selectedYear":[32],"selectedMonth":[32]}]]],["tttx-table.cjs",[[1,"tttx-table",{"headers":[16],"data":[16],"loading":[4],"selected":[2]},[[4,"keydown","handleKeyDown"]]]]],["tttx-list.cjs",[[1,"tttx-list",{"name":[1],"selectable":[4],"items":[32],"selectedIds":[32],"loading":[32],"lastPage":[32]},[[4,"listPageLoad","listLoadHandler"],[4,"listClearDataCache","listClearDataCacheHandler"],[4,"listActionSelectedEvent","listActionSelectedEventHandler"]]]]],["tttx-standalone-input.cjs",[[2,"tttx-standalone-input",{"label":[1],"showerrormsg":[4],"errormsg":[1],"iconleft":[1],"iconright":[1],"autocapitalize":[1],"autofocus":[4],"inputIndex":[8,"input-index"],"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-checkbox.cjs",[[1,"tttx-checkbox",{"value":[4],"label":[1],"required":[4]}]]],["tttx-form.cjs",[[1,"tttx-form",{"formschema":[8],"submitValue":[8,"submit-value"]}]]],["tttx-keyvalue-block.cjs",[[1,"tttx-keyvalue-block",{"keyvalues":[8],"horizontal":[4]}]]],["tttx-button.cjs",[[1,"tttx-button",{"notext":[4],"icon":[1],"iconposition":[1],"design":[1]}]]],["tttx-loading-spinner.cjs",[[1,"tttx-loading-spinner",{"loadingMessage":[1028,"loading-message"],"size":[1025]}]]],["tttx-popover-content.cjs",[[1,"tttx-popover-content",{"header":[1],"body":[1],"linkcontext":[1],"linktext":[1]}]]],["tttx-icon.cjs",[[1,"tttx-icon",{"icon":[1],"color":[1]}]]]], options);
|
|
18
18
|
});
|
|
19
19
|
};
|
|
20
20
|
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-bf777121.js');
|
|
6
6
|
|
|
7
|
-
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:
|
|
7
|
+
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%}}";
|
|
8
8
|
|
|
9
9
|
const TttxKeyvalueBlock = class {
|
|
10
10
|
constructor(hostRef) {
|
|
@@ -12,14 +12,16 @@ const TttxInput = class {
|
|
|
12
12
|
this.valueChanged = index.createEvent(this, "valueChanged", 7);
|
|
13
13
|
this.focusChanged = index.createEvent(this, "focusChanged", 7);
|
|
14
14
|
this.blurChanged = index.createEvent(this, "blurChanged", 7);
|
|
15
|
+
this.invalidChanged = index.createEvent(this, "invalidChanged", 7);
|
|
15
16
|
this.label = undefined;
|
|
16
17
|
this.showerrormsg = undefined;
|
|
17
18
|
this.errormsg = undefined;
|
|
18
19
|
this.iconleft = undefined;
|
|
19
20
|
this.iconright = undefined;
|
|
20
21
|
this.autocapitalize = undefined;
|
|
21
|
-
this.autocomplete = undefined;
|
|
22
22
|
this.autofocus = undefined;
|
|
23
|
+
this.inputIndex = undefined;
|
|
24
|
+
this.autocomplete = undefined;
|
|
23
25
|
this.checked = undefined;
|
|
24
26
|
this.disabled = undefined;
|
|
25
27
|
this.max = undefined;
|
|
@@ -48,87 +50,13 @@ const TttxInput = class {
|
|
|
48
50
|
const target = event.target;
|
|
49
51
|
this.blurChanged.emit(target.value);
|
|
50
52
|
}
|
|
53
|
+
handleInvalid(event) {
|
|
54
|
+
const target = event.target;
|
|
55
|
+
this.invalidChanged.emit(target.value);
|
|
56
|
+
}
|
|
51
57
|
render() {
|
|
52
58
|
const classNames = ['standalone', this.showerrormsg ? 'invalid' : ''].join(' ');
|
|
53
|
-
return (index.h(index.Host, null, index.h("label", { class: 'inputBlock' }, this.label, !this.required ? index.h("span", { class: "optional" }, "\u00A0(optional)") : '', this.iconleft && (index.h("div", { class: "icon-left" }, index.h("tttx-icon", { icon: this.iconleft, color: "grey" }))), index.h("input", { class: classNames, autocapitalize: this.
|
|
54
|
-
this.type === 'search' ||
|
|
55
|
-
this.type === 'url' ||
|
|
56
|
-
this.type === 'tel' ||
|
|
57
|
-
this.type === 'email' ||
|
|
58
|
-
this.type === 'password' ||
|
|
59
|
-
this.type === 'datepickers' ||
|
|
60
|
-
this.type === 'range' ||
|
|
61
|
-
this.type === 'color'
|
|
62
|
-
? this.autocomplete
|
|
63
|
-
: null, checked: this.type === 'checkbox' || this.type === 'radio' ? this.checked : null, disabled: !this.required ? this.disabled : null, max: this.type === 'date' ||
|
|
64
|
-
this.type === 'month' ||
|
|
65
|
-
this.type === 'week' ||
|
|
66
|
-
this.type === 'time' ||
|
|
67
|
-
this.type === 'datetime-local' ||
|
|
68
|
-
this.type === 'number' ||
|
|
69
|
-
this.type === 'range'
|
|
70
|
-
? this.max
|
|
71
|
-
: null, maxlength: this.maxlength, min: this.type === 'date' ||
|
|
72
|
-
this.type === 'month' ||
|
|
73
|
-
this.type === 'week' ||
|
|
74
|
-
this.type === 'time' ||
|
|
75
|
-
this.type === 'datetime-local' ||
|
|
76
|
-
this.type === 'number' ||
|
|
77
|
-
this.type === 'range'
|
|
78
|
-
? this.min
|
|
79
|
-
: null, minlength: this.minlength, name: this.name, pattern: this.type === 'text' ||
|
|
80
|
-
this.type === 'date' ||
|
|
81
|
-
this.type === 'search' ||
|
|
82
|
-
this.type === 'url' ||
|
|
83
|
-
this.type === 'tel' ||
|
|
84
|
-
this.type === 'email' ||
|
|
85
|
-
this.type === 'password'
|
|
86
|
-
? this.pattern
|
|
87
|
-
: null, placeholder: this.type === 'text' ||
|
|
88
|
-
this.type === 'tel' ||
|
|
89
|
-
this.type === 'email' ||
|
|
90
|
-
this.type === 'url' ||
|
|
91
|
-
this.type === 'password' ||
|
|
92
|
-
this.type === 'search'
|
|
93
|
-
? this.placeholder
|
|
94
|
-
: null, readonly: this.type === 'text' ||
|
|
95
|
-
this.type === 'search' ||
|
|
96
|
-
this.type === 'url' ||
|
|
97
|
-
this.type === 'tel' ||
|
|
98
|
-
this.type === 'email' ||
|
|
99
|
-
this.type === 'password' ||
|
|
100
|
-
this.type === 'date' ||
|
|
101
|
-
this.type === 'month' ||
|
|
102
|
-
this.type === 'week' ||
|
|
103
|
-
this.type === 'time' ||
|
|
104
|
-
this.type === 'datetime-local' ||
|
|
105
|
-
this.type === 'number'
|
|
106
|
-
? this.readonly
|
|
107
|
-
: null, required: this.type === 'text' ||
|
|
108
|
-
this.type === 'search' ||
|
|
109
|
-
this.type === 'url' ||
|
|
110
|
-
this.type === 'tel' ||
|
|
111
|
-
this.type === 'email' ||
|
|
112
|
-
this.type === 'password' ||
|
|
113
|
-
this.type === 'date' ||
|
|
114
|
-
this.type === 'month' ||
|
|
115
|
-
this.type === 'week' ||
|
|
116
|
-
this.type === 'time' ||
|
|
117
|
-
this.type === 'datetime-local' ||
|
|
118
|
-
this.type === 'number' ||
|
|
119
|
-
this.type === 'checkbox' ||
|
|
120
|
-
this.type === 'radio' ||
|
|
121
|
-
this.type === 'file'
|
|
122
|
-
? this.required
|
|
123
|
-
: null, step: this.type === 'date' ||
|
|
124
|
-
this.type === 'month' ||
|
|
125
|
-
this.type === 'week' ||
|
|
126
|
-
this.type === 'time' ||
|
|
127
|
-
this.type === 'datetime-local' ||
|
|
128
|
-
this.type === 'number' ||
|
|
129
|
-
this.type === 'range'
|
|
130
|
-
? this.step
|
|
131
|
-
: null, type: this.type, value: this.value, onBlur: this.handleBlur.bind(this), onFocus: this.handleFocus.bind(this), onInput: this.handleChange.bind(this) }), this.iconright && (index.h("div", { class: "icon-right" }, index.h("tttx-icon", { icon: this.iconright, color: "grey" }))), index.h("span", { class: ['errorBubble', this.showerrormsg && this.errormsg ? 'visible' : ''].join(' ') }, index.h("span", { class: "material-symbols-rounded validationicon" }, "warning"), " ", this.errormsg))));
|
|
59
|
+
return (index.h(index.Host, null, index.h("label", { class: 'inputBlock' }, this.label, !this.required ? index.h("span", { class: "optional" }, "\u00A0(optional)") : '', this.iconleft && (index.h("div", { class: "icon-left" }, index.h("tttx-icon", { icon: this.iconleft, color: "grey" }))), index.h("input", { class: classNames, autocapitalize: this.autocapitalize, autofocus: this.autofocus, tabindex: this.inputIndex, 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 && (index.h("div", { class: "icon-right" }, index.h("tttx-icon", { icon: this.iconright, color: "grey" }))), index.h("span", { class: ['errorBubble', this.showerrormsg && this.errormsg ? 'visible' : ''].join(' ') }, index.h("span", { class: "material-symbols-rounded validationicon" }, "warning"), " ", this.errormsg))));
|
|
132
60
|
}
|
|
133
61
|
};
|
|
134
62
|
TttxInput.style = tttxStandaloneInputCss;
|
package/dist/cjs/tttx.cjs.js
CHANGED
|
@@ -17,7 +17,7 @@ const patchBrowser = () => {
|
|
|
17
17
|
};
|
|
18
18
|
|
|
19
19
|
patchBrowser().then(options => {
|
|
20
|
-
return index.bootstrapLazy([["tttx-input-calendar.cjs",[[1,"tttx-input-calendar",{"months":[4],"years":[4],"showCalendar":[32],"selectedYear":[32],"selectedMonth":[32]}]]],["tttx-table.cjs",[[1,"tttx-table",{"headers":[16],"data":[16],"loading":[4],"selected":[2]},[[4,"keydown","handleKeyDown"]]]]],["tttx-list.cjs",[[1,"tttx-list",{"name":[1],"selectable":[4],"items":[32],"selectedIds":[32],"loading":[32],"lastPage":[32]},[[4,"listPageLoad","listLoadHandler"],[4,"listClearDataCache","listClearDataCacheHandler"],[4,"listActionSelectedEvent","listActionSelectedEventHandler"]]]]],["tttx-standalone-input.cjs",[[2,"tttx-standalone-input",{"label":[1],"showerrormsg":[4],"errormsg":[1],"iconleft":[1],"iconright":[1],"autocapitalize":[1],"
|
|
20
|
+
return index.bootstrapLazy([["tttx-input-calendar.cjs",[[1,"tttx-input-calendar",{"months":[4],"years":[4],"showCalendar":[32],"selectedYear":[32],"selectedMonth":[32]}]]],["tttx-table.cjs",[[1,"tttx-table",{"headers":[16],"data":[16],"loading":[4],"selected":[2]},[[4,"keydown","handleKeyDown"]]]]],["tttx-list.cjs",[[1,"tttx-list",{"name":[1],"selectable":[4],"items":[32],"selectedIds":[32],"loading":[32],"lastPage":[32]},[[4,"listPageLoad","listLoadHandler"],[4,"listClearDataCache","listClearDataCacheHandler"],[4,"listActionSelectedEvent","listActionSelectedEventHandler"]]]]],["tttx-standalone-input.cjs",[[2,"tttx-standalone-input",{"label":[1],"showerrormsg":[4],"errormsg":[1],"iconleft":[1],"iconright":[1],"autocapitalize":[1],"autofocus":[4],"inputIndex":[8,"input-index"],"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-checkbox.cjs",[[1,"tttx-checkbox",{"value":[4],"label":[1],"required":[4]}]]],["tttx-form.cjs",[[1,"tttx-form",{"formschema":[8],"submitValue":[8,"submit-value"]}]]],["tttx-keyvalue-block.cjs",[[1,"tttx-keyvalue-block",{"keyvalues":[8],"horizontal":[4]}]]],["tttx-button.cjs",[[1,"tttx-button",{"notext":[4],"icon":[1],"iconposition":[1],"design":[1]}]]],["tttx-loading-spinner.cjs",[[1,"tttx-loading-spinner",{"loadingMessage":[1028,"loading-message"],"size":[1025]}]]],["tttx-popover-content.cjs",[[1,"tttx-popover-content",{"header":[1],"body":[1],"linkcontext":[1],"linktext":[1]}]]],["tttx-icon.cjs",[[1,"tttx-icon",{"icon":[1],"color":[1]}]]]], options);
|
|
21
21
|
});
|
|
22
22
|
|
|
23
23
|
exports.setNonce = index.setNonce;
|
|
@@ -8,8 +8,9 @@ export class TttxInput {
|
|
|
8
8
|
this.iconleft = undefined;
|
|
9
9
|
this.iconright = undefined;
|
|
10
10
|
this.autocapitalize = undefined;
|
|
11
|
-
this.autocomplete = undefined;
|
|
12
11
|
this.autofocus = undefined;
|
|
12
|
+
this.inputIndex = undefined;
|
|
13
|
+
this.autocomplete = undefined;
|
|
13
14
|
this.checked = undefined;
|
|
14
15
|
this.disabled = undefined;
|
|
15
16
|
this.max = undefined;
|
|
@@ -38,87 +39,13 @@ export class TttxInput {
|
|
|
38
39
|
const target = event.target;
|
|
39
40
|
this.blurChanged.emit(target.value);
|
|
40
41
|
}
|
|
42
|
+
handleInvalid(event) {
|
|
43
|
+
const target = event.target;
|
|
44
|
+
this.invalidChanged.emit(target.value);
|
|
45
|
+
}
|
|
41
46
|
render() {
|
|
42
47
|
const classNames = ['standalone', this.showerrormsg ? 'invalid' : ''].join(' ');
|
|
43
|
-
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.
|
|
44
|
-
this.type === 'search' ||
|
|
45
|
-
this.type === 'url' ||
|
|
46
|
-
this.type === 'tel' ||
|
|
47
|
-
this.type === 'email' ||
|
|
48
|
-
this.type === 'password' ||
|
|
49
|
-
this.type === 'datepickers' ||
|
|
50
|
-
this.type === 'range' ||
|
|
51
|
-
this.type === 'color'
|
|
52
|
-
? this.autocomplete
|
|
53
|
-
: null, checked: this.type === 'checkbox' || this.type === 'radio' ? this.checked : null, disabled: !this.required ? this.disabled : null, max: this.type === 'date' ||
|
|
54
|
-
this.type === 'month' ||
|
|
55
|
-
this.type === 'week' ||
|
|
56
|
-
this.type === 'time' ||
|
|
57
|
-
this.type === 'datetime-local' ||
|
|
58
|
-
this.type === 'number' ||
|
|
59
|
-
this.type === 'range'
|
|
60
|
-
? this.max
|
|
61
|
-
: null, maxlength: this.maxlength, min: this.type === 'date' ||
|
|
62
|
-
this.type === 'month' ||
|
|
63
|
-
this.type === 'week' ||
|
|
64
|
-
this.type === 'time' ||
|
|
65
|
-
this.type === 'datetime-local' ||
|
|
66
|
-
this.type === 'number' ||
|
|
67
|
-
this.type === 'range'
|
|
68
|
-
? this.min
|
|
69
|
-
: null, minlength: this.minlength, name: this.name, pattern: this.type === 'text' ||
|
|
70
|
-
this.type === 'date' ||
|
|
71
|
-
this.type === 'search' ||
|
|
72
|
-
this.type === 'url' ||
|
|
73
|
-
this.type === 'tel' ||
|
|
74
|
-
this.type === 'email' ||
|
|
75
|
-
this.type === 'password'
|
|
76
|
-
? this.pattern
|
|
77
|
-
: null, placeholder: this.type === 'text' ||
|
|
78
|
-
this.type === 'tel' ||
|
|
79
|
-
this.type === 'email' ||
|
|
80
|
-
this.type === 'url' ||
|
|
81
|
-
this.type === 'password' ||
|
|
82
|
-
this.type === 'search'
|
|
83
|
-
? this.placeholder
|
|
84
|
-
: null, readonly: this.type === 'text' ||
|
|
85
|
-
this.type === 'search' ||
|
|
86
|
-
this.type === 'url' ||
|
|
87
|
-
this.type === 'tel' ||
|
|
88
|
-
this.type === 'email' ||
|
|
89
|
-
this.type === 'password' ||
|
|
90
|
-
this.type === 'date' ||
|
|
91
|
-
this.type === 'month' ||
|
|
92
|
-
this.type === 'week' ||
|
|
93
|
-
this.type === 'time' ||
|
|
94
|
-
this.type === 'datetime-local' ||
|
|
95
|
-
this.type === 'number'
|
|
96
|
-
? this.readonly
|
|
97
|
-
: null, required: this.type === 'text' ||
|
|
98
|
-
this.type === 'search' ||
|
|
99
|
-
this.type === 'url' ||
|
|
100
|
-
this.type === 'tel' ||
|
|
101
|
-
this.type === 'email' ||
|
|
102
|
-
this.type === 'password' ||
|
|
103
|
-
this.type === 'date' ||
|
|
104
|
-
this.type === 'month' ||
|
|
105
|
-
this.type === 'week' ||
|
|
106
|
-
this.type === 'time' ||
|
|
107
|
-
this.type === 'datetime-local' ||
|
|
108
|
-
this.type === 'number' ||
|
|
109
|
-
this.type === 'checkbox' ||
|
|
110
|
-
this.type === 'radio' ||
|
|
111
|
-
this.type === 'file'
|
|
112
|
-
? this.required
|
|
113
|
-
: null, step: this.type === 'date' ||
|
|
114
|
-
this.type === 'month' ||
|
|
115
|
-
this.type === 'week' ||
|
|
116
|
-
this.type === 'time' ||
|
|
117
|
-
this.type === 'datetime-local' ||
|
|
118
|
-
this.type === 'number' ||
|
|
119
|
-
this.type === 'range'
|
|
120
|
-
? this.step
|
|
121
|
-
: null, type: this.type, value: this.value, onBlur: this.handleBlur.bind(this), onFocus: this.handleFocus.bind(this), onInput: this.handleChange.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))));
|
|
48
|
+
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.autocapitalize, autofocus: this.autofocus, tabindex: this.inputIndex, 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))));
|
|
122
49
|
}
|
|
123
50
|
static get is() { return "tttx-standalone-input"; }
|
|
124
51
|
static get encapsulation() { return "scoped"; }
|
|
@@ -236,12 +163,12 @@ export class TttxInput {
|
|
|
236
163
|
"attribute": "autocapitalize",
|
|
237
164
|
"reflect": false
|
|
238
165
|
},
|
|
239
|
-
"
|
|
240
|
-
"type": "
|
|
166
|
+
"autofocus": {
|
|
167
|
+
"type": "boolean",
|
|
241
168
|
"mutable": false,
|
|
242
169
|
"complexType": {
|
|
243
|
-
"original": "
|
|
244
|
-
"resolved": "
|
|
170
|
+
"original": "boolean",
|
|
171
|
+
"resolved": "boolean",
|
|
245
172
|
"references": {}
|
|
246
173
|
},
|
|
247
174
|
"required": false,
|
|
@@ -250,15 +177,38 @@ export class TttxInput {
|
|
|
250
177
|
"tags": [],
|
|
251
178
|
"text": ""
|
|
252
179
|
},
|
|
253
|
-
"attribute": "
|
|
180
|
+
"attribute": "autofocus",
|
|
254
181
|
"reflect": false
|
|
255
182
|
},
|
|
256
|
-
"
|
|
257
|
-
"type": "
|
|
183
|
+
"inputIndex": {
|
|
184
|
+
"type": "any",
|
|
258
185
|
"mutable": false,
|
|
259
186
|
"complexType": {
|
|
260
|
-
"original": "
|
|
261
|
-
"resolved": "
|
|
187
|
+
"original": "string | number",
|
|
188
|
+
"resolved": "number | string",
|
|
189
|
+
"references": {}
|
|
190
|
+
},
|
|
191
|
+
"required": false,
|
|
192
|
+
"optional": false,
|
|
193
|
+
"docs": {
|
|
194
|
+
"tags": [{
|
|
195
|
+
"name": "example",
|
|
196
|
+
"text": "<caption>In HTML (like `index.html`)</caption>\n<tttx-standalone-input input-index=\"1\" />"
|
|
197
|
+
}, {
|
|
198
|
+
"name": "example",
|
|
199
|
+
"text": "<caption>In TSX files</caption>\n<tttx-standalone-input inputIndex={1} />"
|
|
200
|
+
}],
|
|
201
|
+
"text": "tabindex - Allows the HTML elements to be focusable"
|
|
202
|
+
},
|
|
203
|
+
"attribute": "input-index",
|
|
204
|
+
"reflect": false
|
|
205
|
+
},
|
|
206
|
+
"autocomplete": {
|
|
207
|
+
"type": "string",
|
|
208
|
+
"mutable": false,
|
|
209
|
+
"complexType": {
|
|
210
|
+
"original": "'off' | 'on'",
|
|
211
|
+
"resolved": "\"off\" | \"on\"",
|
|
262
212
|
"references": {}
|
|
263
213
|
},
|
|
264
214
|
"required": false,
|
|
@@ -267,7 +217,7 @@ export class TttxInput {
|
|
|
267
217
|
"tags": [],
|
|
268
218
|
"text": ""
|
|
269
219
|
},
|
|
270
|
-
"attribute": "
|
|
220
|
+
"attribute": "autocomplete",
|
|
271
221
|
"reflect": false
|
|
272
222
|
},
|
|
273
223
|
"checked": {
|
|
@@ -565,6 +515,21 @@ export class TttxInput {
|
|
|
565
515
|
"resolved": "string",
|
|
566
516
|
"references": {}
|
|
567
517
|
}
|
|
518
|
+
}, {
|
|
519
|
+
"method": "invalidChanged",
|
|
520
|
+
"name": "invalidChanged",
|
|
521
|
+
"bubbles": true,
|
|
522
|
+
"cancelable": true,
|
|
523
|
+
"composed": true,
|
|
524
|
+
"docs": {
|
|
525
|
+
"tags": [],
|
|
526
|
+
"text": ""
|
|
527
|
+
},
|
|
528
|
+
"complexType": {
|
|
529
|
+
"original": "string",
|
|
530
|
+
"resolved": "string",
|
|
531
|
+
"references": {}
|
|
532
|
+
}
|
|
568
533
|
}];
|
|
569
534
|
}
|
|
570
535
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
2
2
|
|
|
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:
|
|
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
|
|
|
5
5
|
const TttxKeyvalueBlock$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
6
6
|
constructor() {
|
|
@@ -10,14 +10,16 @@ const TttxInput = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
10
10
|
this.valueChanged = createEvent(this, "valueChanged", 7);
|
|
11
11
|
this.focusChanged = createEvent(this, "focusChanged", 7);
|
|
12
12
|
this.blurChanged = createEvent(this, "blurChanged", 7);
|
|
13
|
+
this.invalidChanged = createEvent(this, "invalidChanged", 7);
|
|
13
14
|
this.label = undefined;
|
|
14
15
|
this.showerrormsg = undefined;
|
|
15
16
|
this.errormsg = undefined;
|
|
16
17
|
this.iconleft = undefined;
|
|
17
18
|
this.iconright = undefined;
|
|
18
19
|
this.autocapitalize = undefined;
|
|
19
|
-
this.autocomplete = undefined;
|
|
20
20
|
this.autofocus = undefined;
|
|
21
|
+
this.inputIndex = undefined;
|
|
22
|
+
this.autocomplete = undefined;
|
|
21
23
|
this.checked = undefined;
|
|
22
24
|
this.disabled = undefined;
|
|
23
25
|
this.max = undefined;
|
|
@@ -46,87 +48,13 @@ const TttxInput = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
46
48
|
const target = event.target;
|
|
47
49
|
this.blurChanged.emit(target.value);
|
|
48
50
|
}
|
|
51
|
+
handleInvalid(event) {
|
|
52
|
+
const target = event.target;
|
|
53
|
+
this.invalidChanged.emit(target.value);
|
|
54
|
+
}
|
|
49
55
|
render() {
|
|
50
56
|
const classNames = ['standalone', this.showerrormsg ? 'invalid' : ''].join(' ');
|
|
51
|
-
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.
|
|
52
|
-
this.type === 'search' ||
|
|
53
|
-
this.type === 'url' ||
|
|
54
|
-
this.type === 'tel' ||
|
|
55
|
-
this.type === 'email' ||
|
|
56
|
-
this.type === 'password' ||
|
|
57
|
-
this.type === 'datepickers' ||
|
|
58
|
-
this.type === 'range' ||
|
|
59
|
-
this.type === 'color'
|
|
60
|
-
? this.autocomplete
|
|
61
|
-
: null, checked: this.type === 'checkbox' || this.type === 'radio' ? this.checked : null, disabled: !this.required ? this.disabled : null, max: this.type === 'date' ||
|
|
62
|
-
this.type === 'month' ||
|
|
63
|
-
this.type === 'week' ||
|
|
64
|
-
this.type === 'time' ||
|
|
65
|
-
this.type === 'datetime-local' ||
|
|
66
|
-
this.type === 'number' ||
|
|
67
|
-
this.type === 'range'
|
|
68
|
-
? this.max
|
|
69
|
-
: null, maxlength: this.maxlength, min: this.type === 'date' ||
|
|
70
|
-
this.type === 'month' ||
|
|
71
|
-
this.type === 'week' ||
|
|
72
|
-
this.type === 'time' ||
|
|
73
|
-
this.type === 'datetime-local' ||
|
|
74
|
-
this.type === 'number' ||
|
|
75
|
-
this.type === 'range'
|
|
76
|
-
? this.min
|
|
77
|
-
: null, minlength: this.minlength, name: this.name, pattern: this.type === 'text' ||
|
|
78
|
-
this.type === 'date' ||
|
|
79
|
-
this.type === 'search' ||
|
|
80
|
-
this.type === 'url' ||
|
|
81
|
-
this.type === 'tel' ||
|
|
82
|
-
this.type === 'email' ||
|
|
83
|
-
this.type === 'password'
|
|
84
|
-
? this.pattern
|
|
85
|
-
: null, placeholder: this.type === 'text' ||
|
|
86
|
-
this.type === 'tel' ||
|
|
87
|
-
this.type === 'email' ||
|
|
88
|
-
this.type === 'url' ||
|
|
89
|
-
this.type === 'password' ||
|
|
90
|
-
this.type === 'search'
|
|
91
|
-
? this.placeholder
|
|
92
|
-
: null, readonly: this.type === 'text' ||
|
|
93
|
-
this.type === 'search' ||
|
|
94
|
-
this.type === 'url' ||
|
|
95
|
-
this.type === 'tel' ||
|
|
96
|
-
this.type === 'email' ||
|
|
97
|
-
this.type === 'password' ||
|
|
98
|
-
this.type === 'date' ||
|
|
99
|
-
this.type === 'month' ||
|
|
100
|
-
this.type === 'week' ||
|
|
101
|
-
this.type === 'time' ||
|
|
102
|
-
this.type === 'datetime-local' ||
|
|
103
|
-
this.type === 'number'
|
|
104
|
-
? this.readonly
|
|
105
|
-
: null, required: this.type === 'text' ||
|
|
106
|
-
this.type === 'search' ||
|
|
107
|
-
this.type === 'url' ||
|
|
108
|
-
this.type === 'tel' ||
|
|
109
|
-
this.type === 'email' ||
|
|
110
|
-
this.type === 'password' ||
|
|
111
|
-
this.type === 'date' ||
|
|
112
|
-
this.type === 'month' ||
|
|
113
|
-
this.type === 'week' ||
|
|
114
|
-
this.type === 'time' ||
|
|
115
|
-
this.type === 'datetime-local' ||
|
|
116
|
-
this.type === 'number' ||
|
|
117
|
-
this.type === 'checkbox' ||
|
|
118
|
-
this.type === 'radio' ||
|
|
119
|
-
this.type === 'file'
|
|
120
|
-
? this.required
|
|
121
|
-
: null, step: this.type === 'date' ||
|
|
122
|
-
this.type === 'month' ||
|
|
123
|
-
this.type === 'week' ||
|
|
124
|
-
this.type === 'time' ||
|
|
125
|
-
this.type === 'datetime-local' ||
|
|
126
|
-
this.type === 'number' ||
|
|
127
|
-
this.type === 'range'
|
|
128
|
-
? this.step
|
|
129
|
-
: null, type: this.type, value: this.value, onBlur: this.handleBlur.bind(this), onFocus: this.handleFocus.bind(this), onInput: this.handleChange.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
|
+
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.autocapitalize, autofocus: this.autofocus, tabindex: this.inputIndex, 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))));
|
|
130
58
|
}
|
|
131
59
|
static get style() { return tttxStandaloneInputCss; }
|
|
132
60
|
}, [2, "tttx-standalone-input", {
|
|
@@ -136,8 +64,9 @@ const TttxInput = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
136
64
|
"iconleft": [1],
|
|
137
65
|
"iconright": [1],
|
|
138
66
|
"autocapitalize": [1],
|
|
139
|
-
"autocomplete": [1],
|
|
140
67
|
"autofocus": [4],
|
|
68
|
+
"inputIndex": [8, "input-index"],
|
|
69
|
+
"autocomplete": [1],
|
|
141
70
|
"checked": [4],
|
|
142
71
|
"disabled": [4],
|
|
143
72
|
"max": [8],
|
package/dist/esm/loader.js
CHANGED
|
@@ -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-input-calendar",[[1,"tttx-input-calendar",{"months":[4],"years":[4],"showCalendar":[32],"selectedYear":[32],"selectedMonth":[32]}]]],["tttx-table",[[1,"tttx-table",{"headers":[16],"data":[16],"loading":[4],"selected":[2]},[[4,"keydown","handleKeyDown"]]]]],["tttx-list",[[1,"tttx-list",{"name":[1],"selectable":[4],"items":[32],"selectedIds":[32],"loading":[32],"lastPage":[32]},[[4,"listPageLoad","listLoadHandler"],[4,"listClearDataCache","listClearDataCacheHandler"],[4,"listActionSelectedEvent","listActionSelectedEventHandler"]]]]],["tttx-standalone-input",[[2,"tttx-standalone-input",{"label":[1],"showerrormsg":[4],"errormsg":[1],"iconleft":[1],"iconright":[1],"autocapitalize":[1],"
|
|
14
|
+
return bootstrapLazy([["tttx-input-calendar",[[1,"tttx-input-calendar",{"months":[4],"years":[4],"showCalendar":[32],"selectedYear":[32],"selectedMonth":[32]}]]],["tttx-table",[[1,"tttx-table",{"headers":[16],"data":[16],"loading":[4],"selected":[2]},[[4,"keydown","handleKeyDown"]]]]],["tttx-list",[[1,"tttx-list",{"name":[1],"selectable":[4],"items":[32],"selectedIds":[32],"loading":[32],"lastPage":[32]},[[4,"listPageLoad","listLoadHandler"],[4,"listClearDataCache","listClearDataCacheHandler"],[4,"listActionSelectedEvent","listActionSelectedEventHandler"]]]]],["tttx-standalone-input",[[2,"tttx-standalone-input",{"label":[1],"showerrormsg":[4],"errormsg":[1],"iconleft":[1],"iconright":[1],"autocapitalize":[1],"autofocus":[4],"inputIndex":[8,"input-index"],"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-checkbox",[[1,"tttx-checkbox",{"value":[4],"label":[1],"required":[4]}]]],["tttx-form",[[1,"tttx-form",{"formschema":[8],"submitValue":[8,"submit-value"]}]]],["tttx-keyvalue-block",[[1,"tttx-keyvalue-block",{"keyvalues":[8],"horizontal":[4]}]]],["tttx-button",[[1,"tttx-button",{"notext":[4],"icon":[1],"iconposition":[1],"design":[1]}]]],["tttx-loading-spinner",[[1,"tttx-loading-spinner",{"loadingMessage":[1028,"loading-message"],"size":[1025]}]]],["tttx-popover-content",[[1,"tttx-popover-content",{"header":[1],"body":[1],"linkcontext":[1],"linktext":[1]}]]],["tttx-icon",[[1,"tttx-icon",{"icon":[1],"color":[1]}]]]], options);
|
|
15
15
|
});
|
|
16
16
|
};
|
|
17
17
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host } from './index-a05bd606.js';
|
|
2
2
|
|
|
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:
|
|
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
|
|
|
5
5
|
const TttxKeyvalueBlock = class {
|
|
6
6
|
constructor(hostRef) {
|
|
@@ -8,14 +8,16 @@ const TttxInput = class {
|
|
|
8
8
|
this.valueChanged = createEvent(this, "valueChanged", 7);
|
|
9
9
|
this.focusChanged = createEvent(this, "focusChanged", 7);
|
|
10
10
|
this.blurChanged = createEvent(this, "blurChanged", 7);
|
|
11
|
+
this.invalidChanged = createEvent(this, "invalidChanged", 7);
|
|
11
12
|
this.label = undefined;
|
|
12
13
|
this.showerrormsg = undefined;
|
|
13
14
|
this.errormsg = undefined;
|
|
14
15
|
this.iconleft = undefined;
|
|
15
16
|
this.iconright = undefined;
|
|
16
17
|
this.autocapitalize = undefined;
|
|
17
|
-
this.autocomplete = undefined;
|
|
18
18
|
this.autofocus = undefined;
|
|
19
|
+
this.inputIndex = undefined;
|
|
20
|
+
this.autocomplete = undefined;
|
|
19
21
|
this.checked = undefined;
|
|
20
22
|
this.disabled = undefined;
|
|
21
23
|
this.max = undefined;
|
|
@@ -44,87 +46,13 @@ const TttxInput = class {
|
|
|
44
46
|
const target = event.target;
|
|
45
47
|
this.blurChanged.emit(target.value);
|
|
46
48
|
}
|
|
49
|
+
handleInvalid(event) {
|
|
50
|
+
const target = event.target;
|
|
51
|
+
this.invalidChanged.emit(target.value);
|
|
52
|
+
}
|
|
47
53
|
render() {
|
|
48
54
|
const classNames = ['standalone', this.showerrormsg ? 'invalid' : ''].join(' ');
|
|
49
|
-
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.
|
|
50
|
-
this.type === 'search' ||
|
|
51
|
-
this.type === 'url' ||
|
|
52
|
-
this.type === 'tel' ||
|
|
53
|
-
this.type === 'email' ||
|
|
54
|
-
this.type === 'password' ||
|
|
55
|
-
this.type === 'datepickers' ||
|
|
56
|
-
this.type === 'range' ||
|
|
57
|
-
this.type === 'color'
|
|
58
|
-
? this.autocomplete
|
|
59
|
-
: null, checked: this.type === 'checkbox' || this.type === 'radio' ? this.checked : null, disabled: !this.required ? this.disabled : null, max: this.type === 'date' ||
|
|
60
|
-
this.type === 'month' ||
|
|
61
|
-
this.type === 'week' ||
|
|
62
|
-
this.type === 'time' ||
|
|
63
|
-
this.type === 'datetime-local' ||
|
|
64
|
-
this.type === 'number' ||
|
|
65
|
-
this.type === 'range'
|
|
66
|
-
? this.max
|
|
67
|
-
: null, maxlength: this.maxlength, min: this.type === 'date' ||
|
|
68
|
-
this.type === 'month' ||
|
|
69
|
-
this.type === 'week' ||
|
|
70
|
-
this.type === 'time' ||
|
|
71
|
-
this.type === 'datetime-local' ||
|
|
72
|
-
this.type === 'number' ||
|
|
73
|
-
this.type === 'range'
|
|
74
|
-
? this.min
|
|
75
|
-
: null, minlength: this.minlength, name: this.name, pattern: this.type === 'text' ||
|
|
76
|
-
this.type === 'date' ||
|
|
77
|
-
this.type === 'search' ||
|
|
78
|
-
this.type === 'url' ||
|
|
79
|
-
this.type === 'tel' ||
|
|
80
|
-
this.type === 'email' ||
|
|
81
|
-
this.type === 'password'
|
|
82
|
-
? this.pattern
|
|
83
|
-
: null, placeholder: this.type === 'text' ||
|
|
84
|
-
this.type === 'tel' ||
|
|
85
|
-
this.type === 'email' ||
|
|
86
|
-
this.type === 'url' ||
|
|
87
|
-
this.type === 'password' ||
|
|
88
|
-
this.type === 'search'
|
|
89
|
-
? this.placeholder
|
|
90
|
-
: null, readonly: this.type === 'text' ||
|
|
91
|
-
this.type === 'search' ||
|
|
92
|
-
this.type === 'url' ||
|
|
93
|
-
this.type === 'tel' ||
|
|
94
|
-
this.type === 'email' ||
|
|
95
|
-
this.type === 'password' ||
|
|
96
|
-
this.type === 'date' ||
|
|
97
|
-
this.type === 'month' ||
|
|
98
|
-
this.type === 'week' ||
|
|
99
|
-
this.type === 'time' ||
|
|
100
|
-
this.type === 'datetime-local' ||
|
|
101
|
-
this.type === 'number'
|
|
102
|
-
? this.readonly
|
|
103
|
-
: null, required: this.type === 'text' ||
|
|
104
|
-
this.type === 'search' ||
|
|
105
|
-
this.type === 'url' ||
|
|
106
|
-
this.type === 'tel' ||
|
|
107
|
-
this.type === 'email' ||
|
|
108
|
-
this.type === 'password' ||
|
|
109
|
-
this.type === 'date' ||
|
|
110
|
-
this.type === 'month' ||
|
|
111
|
-
this.type === 'week' ||
|
|
112
|
-
this.type === 'time' ||
|
|
113
|
-
this.type === 'datetime-local' ||
|
|
114
|
-
this.type === 'number' ||
|
|
115
|
-
this.type === 'checkbox' ||
|
|
116
|
-
this.type === 'radio' ||
|
|
117
|
-
this.type === 'file'
|
|
118
|
-
? this.required
|
|
119
|
-
: null, step: this.type === 'date' ||
|
|
120
|
-
this.type === 'month' ||
|
|
121
|
-
this.type === 'week' ||
|
|
122
|
-
this.type === 'time' ||
|
|
123
|
-
this.type === 'datetime-local' ||
|
|
124
|
-
this.type === 'number' ||
|
|
125
|
-
this.type === 'range'
|
|
126
|
-
? this.step
|
|
127
|
-
: null, type: this.type, value: this.value, onBlur: this.handleBlur.bind(this), onFocus: this.handleFocus.bind(this), onInput: this.handleChange.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))));
|
|
55
|
+
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.autocapitalize, autofocus: this.autofocus, tabindex: this.inputIndex, 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))));
|
|
128
56
|
}
|
|
129
57
|
};
|
|
130
58
|
TttxInput.style = tttxStandaloneInputCss;
|
package/dist/esm/tttx.js
CHANGED
|
@@ -14,5 +14,5 @@ const patchBrowser = () => {
|
|
|
14
14
|
};
|
|
15
15
|
|
|
16
16
|
patchBrowser().then(options => {
|
|
17
|
-
return bootstrapLazy([["tttx-input-calendar",[[1,"tttx-input-calendar",{"months":[4],"years":[4],"showCalendar":[32],"selectedYear":[32],"selectedMonth":[32]}]]],["tttx-table",[[1,"tttx-table",{"headers":[16],"data":[16],"loading":[4],"selected":[2]},[[4,"keydown","handleKeyDown"]]]]],["tttx-list",[[1,"tttx-list",{"name":[1],"selectable":[4],"items":[32],"selectedIds":[32],"loading":[32],"lastPage":[32]},[[4,"listPageLoad","listLoadHandler"],[4,"listClearDataCache","listClearDataCacheHandler"],[4,"listActionSelectedEvent","listActionSelectedEventHandler"]]]]],["tttx-standalone-input",[[2,"tttx-standalone-input",{"label":[1],"showerrormsg":[4],"errormsg":[1],"iconleft":[1],"iconright":[1],"autocapitalize":[1],"
|
|
17
|
+
return bootstrapLazy([["tttx-input-calendar",[[1,"tttx-input-calendar",{"months":[4],"years":[4],"showCalendar":[32],"selectedYear":[32],"selectedMonth":[32]}]]],["tttx-table",[[1,"tttx-table",{"headers":[16],"data":[16],"loading":[4],"selected":[2]},[[4,"keydown","handleKeyDown"]]]]],["tttx-list",[[1,"tttx-list",{"name":[1],"selectable":[4],"items":[32],"selectedIds":[32],"loading":[32],"lastPage":[32]},[[4,"listPageLoad","listLoadHandler"],[4,"listClearDataCache","listClearDataCacheHandler"],[4,"listActionSelectedEvent","listActionSelectedEventHandler"]]]]],["tttx-standalone-input",[[2,"tttx-standalone-input",{"label":[1],"showerrormsg":[4],"errormsg":[1],"iconleft":[1],"iconright":[1],"autocapitalize":[1],"autofocus":[4],"inputIndex":[8,"input-index"],"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-checkbox",[[1,"tttx-checkbox",{"value":[4],"label":[1],"required":[4]}]]],["tttx-form",[[1,"tttx-form",{"formschema":[8],"submitValue":[8,"submit-value"]}]]],["tttx-keyvalue-block",[[1,"tttx-keyvalue-block",{"keyvalues":[8],"horizontal":[4]}]]],["tttx-button",[[1,"tttx-button",{"notext":[4],"icon":[1],"iconposition":[1],"design":[1]}]]],["tttx-loading-spinner",[[1,"tttx-loading-spinner",{"loadingMessage":[1028,"loading-message"],"size":[1025]}]]],["tttx-popover-content",[[1,"tttx-popover-content",{"header":[1],"body":[1],"linkcontext":[1],"linktext":[1]}]]],["tttx-icon",[[1,"tttx-icon",{"icon":[1],"color":[1]}]]]], options);
|
|
18
18
|
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as i,h as n,H as s}from"./p-07b134af.js";const o=class{constructor(n){t(this,n),this.valueChanged=i(this,"valueChanged",7),this.focusChanged=i(this,"focusChanged",7),this.blurChanged=i(this,"blurChanged",7),this.invalidChanged=i(this,"invalidChanged",7),this.label=void 0,this.showerrormsg=void 0,this.errormsg=void 0,this.iconleft=void 0,this.iconright=void 0,this.autocapitalize=void 0,this.autofocus=void 0,this.inputIndex=void 0,this.autocomplete=void 0,this.checked=void 0,this.disabled=void 0,this.max=void 0,this.maxlength=void 0,this.min=void 0,this.minlength=void 0,this.name=void 0,this.pattern=void 0,this.placeholder=void 0,this.readonly=void 0,this.required=void 0,this.step=void 0,this.type="text",this.value=void 0}handleChange(t){const i=t.target;this.value=i.value,this.valueChanged.emit(i.value)}handleFocus(t){this.focusChanged.emit(t.target.value)}handleBlur(t){this.blurChanged.emit(t.target.value)}handleInvalid(t){this.invalidChanged.emit(t.target.value)}render(){const t=["standalone",this.showerrormsg?"invalid":""].join(" ");return n(s,null,n("label",{class:"inputBlock"},this.label,this.required?"":n("span",{class:"optional"}," (optional)"),this.iconleft&&n("div",{class:"icon-left"},n("tttx-icon",{icon:this.iconleft,color:"grey"})),n("input",{class:t,autocapitalize:this.autocapitalize,autofocus:this.autofocus,tabindex:this.inputIndex,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&&n("div",{class:"icon-right"},n("tttx-icon",{icon:this.iconright,color:"grey"})),n("span",{class:["errorBubble",this.showerrormsg&&this.errormsg?"visible":""].join(" ")},n("span",{class:"material-symbols-rounded validationicon"},"warning")," ",this.errormsg)))}};o.style='.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}';export{o as tttx_standalone_input}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as l,H as i}from"./p-07b134af.js";const d=class{constructor(l){t(this,l),this.keyvalues=void 0,this.horizontal=void 0}renderSingleElements(t){const i=Object.keys(t),d=[];for(let o=0;o<i.length;o++)this.horizontal?d.push(l("div",null,l("dt",null,i[o]),l("dd",null,t[i[o]]))):(d.push(l("dt",null,i[o])),d.push(l("dd",null,t[i[o]])));return d}renderArrayElements(t){const i=[];for(let d=0;d<t.length;d++){const o=t[d];this.horizontal?i.push(l("div",null,l("dt",{class:"mainTitle"},o.title),l("dt",{class:"subTitle"},o.subTitle),l("dd",null,o.data))):(i.push(l("dt",{class:"mainTitle"},o.title)),i.push(l("dt",{class:"subTitle"},o.subTitle)),i.push(l("dd",null,o.data)))}return i}render(){let t,d;return t="string"==typeof this.keyvalues?JSON.parse(this.keyvalues):this.keyvalues,d=Array.isArray(t)?this.renderArrayElements(t):this.renderSingleElements(t),l(i,null,l("dl",{class:this.horizontal?"horizontal":null},d))}};d.style=':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:
|
|
1
|
+
import{r as t,h as l,H as i}from"./p-07b134af.js";const d=class{constructor(l){t(this,l),this.keyvalues=void 0,this.horizontal=void 0}renderSingleElements(t){const i=Object.keys(t),d=[];for(let o=0;o<i.length;o++)this.horizontal?d.push(l("div",null,l("dt",null,i[o]),l("dd",null,t[i[o]]))):(d.push(l("dt",null,i[o])),d.push(l("dd",null,t[i[o]])));return d}renderArrayElements(t){const i=[];for(let d=0;d<t.length;d++){const o=t[d];this.horizontal?i.push(l("div",null,l("dt",{class:"mainTitle"},o.title),l("dt",{class:"subTitle"},o.subTitle),l("dd",null,o.data))):(i.push(l("dt",{class:"mainTitle"},o.title)),i.push(l("dt",{class:"subTitle"},o.subTitle)),i.push(l("dd",null,o.data)))}return i}render(){let t,d;return t="string"==typeof this.keyvalues?JSON.parse(this.keyvalues):this.keyvalues,d=Array.isArray(t)?this.renderArrayElements(t):this.renderSingleElements(t),l(i,null,l("dl",{class:this.horizontal?"horizontal":null},d))}};d.style=':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%}}';export{d as tttx_keyvalue_block}
|
package/dist/tttx/tttx.esm.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,b as t}from"./p-07b134af.js";export{s as setNonce}from"./p-07b134af.js";(()=>{const t=import.meta.url,a={};return""!==t&&(a.resourcesUrl=new URL(".",t).href),e(a)})().then((e=>t([["p-45afb84c",[[1,"tttx-input-calendar",{months:[4],years:[4],showCalendar:[32],selectedYear:[32],selectedMonth:[32]}]]],["p-a96ca037",[[1,"tttx-table",{headers:[16],data:[16],loading:[4],selected:[2]},[[4,"keydown","handleKeyDown"]]]]],["p-a92ca87e",[[1,"tttx-list",{name:[1],selectable:[4],items:[32],selectedIds:[32],loading:[32],lastPage:[32]},[[4,"listPageLoad","listLoadHandler"],[4,"listClearDataCache","listClearDataCacheHandler"],[4,"listActionSelectedEvent","listActionSelectedEventHandler"]]]]],["p-
|
|
1
|
+
import{p as e,b as t}from"./p-07b134af.js";export{s as setNonce}from"./p-07b134af.js";(()=>{const t=import.meta.url,a={};return""!==t&&(a.resourcesUrl=new URL(".",t).href),e(a)})().then((e=>t([["p-45afb84c",[[1,"tttx-input-calendar",{months:[4],years:[4],showCalendar:[32],selectedYear:[32],selectedMonth:[32]}]]],["p-a96ca037",[[1,"tttx-table",{headers:[16],data:[16],loading:[4],selected:[2]},[[4,"keydown","handleKeyDown"]]]]],["p-a92ca87e",[[1,"tttx-list",{name:[1],selectable:[4],items:[32],selectedIds:[32],loading:[32],lastPage:[32]},[[4,"listPageLoad","listLoadHandler"],[4,"listClearDataCache","listClearDataCacheHandler"],[4,"listActionSelectedEvent","listActionSelectedEventHandler"]]]]],["p-08790243",[[2,"tttx-standalone-input",{label:[1],showerrormsg:[4],errormsg:[1],iconleft:[1],iconright:[1],autocapitalize:[1],autofocus:[4],inputIndex:[8,"input-index"],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-f579ed1e",[[1,"tttx-checkbox",{value:[4],label:[1],required:[4]}]]],["p-1b63f16a",[[1,"tttx-form",{formschema:[8],submitValue:[8,"submit-value"]}]]],["p-9536b8c4",[[1,"tttx-keyvalue-block",{keyvalues:[8],horizontal:[4]}]]],["p-68ff0f39",[[1,"tttx-button",{notext:[4],icon:[1],iconposition:[1],design:[1]}]]],["p-93763d3c",[[1,"tttx-loading-spinner",{loadingMessage:[1028,"loading-message"],size:[1025]}]]],["p-037d286f",[[1,"tttx-popover-content",{header:[1],body:[1],linkcontext:[1],linktext:[1]}]]],["p-a5808741",[[1,"tttx-icon",{icon:[1],color:[1]}]]]],e)));
|
|
@@ -12,8 +12,16 @@ export declare class TttxInput {
|
|
|
12
12
|
iconleft: string;
|
|
13
13
|
iconright: string;
|
|
14
14
|
autocapitalize: string;
|
|
15
|
-
autocomplete: 'off' | 'on';
|
|
16
15
|
autofocus: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* tabindex - Allows the HTML elements to be focusable
|
|
18
|
+
* @example <caption>In HTML (like `index.html`)</caption>
|
|
19
|
+
* <tttx-standalone-input input-index="1" />
|
|
20
|
+
* @example <caption>In TSX files</caption>
|
|
21
|
+
* <tttx-standalone-input inputIndex={1} />
|
|
22
|
+
*/
|
|
23
|
+
inputIndex: string | number;
|
|
24
|
+
autocomplete: 'off' | 'on';
|
|
17
25
|
checked: boolean;
|
|
18
26
|
disabled: boolean;
|
|
19
27
|
max: MinMaxDates | number;
|
|
@@ -34,5 +42,7 @@ export declare class TttxInput {
|
|
|
34
42
|
handleFocus(event: Event | InputEvent): void;
|
|
35
43
|
blurChanged: EventEmitter<string>;
|
|
36
44
|
handleBlur(event: Event | InputEvent): void;
|
|
45
|
+
invalidChanged: EventEmitter<string>;
|
|
46
|
+
handleInvalid(event: Event | InputEvent): void;
|
|
37
47
|
render(): any;
|
|
38
48
|
}
|
|
@@ -57,6 +57,12 @@ export namespace Components {
|
|
|
57
57
|
"errormsg": string;
|
|
58
58
|
"iconleft": string;
|
|
59
59
|
"iconright": string;
|
|
60
|
+
/**
|
|
61
|
+
* tabindex - Allows the HTML elements to be focusable
|
|
62
|
+
* @example <caption>In HTML (like `index.html`)</caption> <tttx-standalone-input input-index="1" />
|
|
63
|
+
* @example <caption>In TSX files</caption> <tttx-standalone-input inputIndex={1} />
|
|
64
|
+
*/
|
|
65
|
+
"inputIndex": string | number;
|
|
60
66
|
"label": string;
|
|
61
67
|
"max": MinMaxDates | number;
|
|
62
68
|
"maxlength": string | number;
|
|
@@ -237,6 +243,12 @@ declare namespace LocalJSX {
|
|
|
237
243
|
"errormsg"?: string;
|
|
238
244
|
"iconleft"?: string;
|
|
239
245
|
"iconright"?: string;
|
|
246
|
+
/**
|
|
247
|
+
* tabindex - Allows the HTML elements to be focusable
|
|
248
|
+
* @example <caption>In HTML (like `index.html`)</caption> <tttx-standalone-input input-index="1" />
|
|
249
|
+
* @example <caption>In TSX files</caption> <tttx-standalone-input inputIndex={1} />
|
|
250
|
+
*/
|
|
251
|
+
"inputIndex"?: string | number;
|
|
240
252
|
"label"?: string;
|
|
241
253
|
"max"?: MinMaxDates | number;
|
|
242
254
|
"maxlength"?: string | number;
|
|
@@ -245,6 +257,7 @@ declare namespace LocalJSX {
|
|
|
245
257
|
"name"?: string;
|
|
246
258
|
"onBlurChanged"?: (event: TttxStandaloneInputCustomEvent<string>) => void;
|
|
247
259
|
"onFocusChanged"?: (event: TttxStandaloneInputCustomEvent<string>) => void;
|
|
260
|
+
"onInvalidChanged"?: (event: TttxStandaloneInputCustomEvent<string>) => void;
|
|
248
261
|
"onValueChanged"?: (event: TttxStandaloneInputCustomEvent<string>) => void;
|
|
249
262
|
"pattern"?: string;
|
|
250
263
|
"placeholder"?: string;
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as i,h as s,H as n}from"./p-07b134af.js";const e=class{constructor(s){t(this,s),this.valueChanged=i(this,"valueChanged",7),this.focusChanged=i(this,"focusChanged",7),this.blurChanged=i(this,"blurChanged",7),this.label=void 0,this.showerrormsg=void 0,this.errormsg=void 0,this.iconleft=void 0,this.iconright=void 0,this.autocapitalize=void 0,this.autocomplete=void 0,this.autofocus=void 0,this.checked=void 0,this.disabled=void 0,this.max=void 0,this.maxlength=void 0,this.min=void 0,this.minlength=void 0,this.name=void 0,this.pattern=void 0,this.placeholder=void 0,this.readonly=void 0,this.required=void 0,this.step=void 0,this.type="text",this.value=void 0}handleChange(t){const i=t.target;this.value=i.value,this.valueChanged.emit(i.value)}handleFocus(t){this.focusChanged.emit(t.target.value)}handleBlur(t){this.blurChanged.emit(t.target.value)}render(){const t=["standalone",this.showerrormsg?"invalid":""].join(" ");return s(n,null,s("label",{class:"inputBlock"},this.label,this.required?"":s("span",{class:"optional"}," (optional)"),this.iconleft&&s("div",{class:"icon-left"},s("tttx-icon",{icon:this.iconleft,color:"grey"})),s("input",{class:t,autocapitalize:"url"===this.type||"email"===this.type||"password"===this.type?this.autocapitalize:null,autofocus:this.autofocus,autocomplete:"text"===this.type||"search"===this.type||"url"===this.type||"tel"===this.type||"email"===this.type||"password"===this.type||"datepickers"===this.type||"range"===this.type||"color"===this.type?this.autocomplete:null,checked:"checkbox"===this.type||"radio"===this.type?this.checked:null,disabled:this.required?null:this.disabled,max:"date"===this.type||"month"===this.type||"week"===this.type||"time"===this.type||"datetime-local"===this.type||"number"===this.type||"range"===this.type?this.max:null,maxlength:this.maxlength,min:"date"===this.type||"month"===this.type||"week"===this.type||"time"===this.type||"datetime-local"===this.type||"number"===this.type||"range"===this.type?this.min:null,minlength:this.minlength,name:this.name,pattern:"text"===this.type||"date"===this.type||"search"===this.type||"url"===this.type||"tel"===this.type||"email"===this.type||"password"===this.type?this.pattern:null,placeholder:"text"===this.type||"tel"===this.type||"email"===this.type||"url"===this.type||"password"===this.type||"search"===this.type?this.placeholder:null,readonly:"text"===this.type||"search"===this.type||"url"===this.type||"tel"===this.type||"email"===this.type||"password"===this.type||"date"===this.type||"month"===this.type||"week"===this.type||"time"===this.type||"datetime-local"===this.type||"number"===this.type?this.readonly:null,required:"text"===this.type||"search"===this.type||"url"===this.type||"tel"===this.type||"email"===this.type||"password"===this.type||"date"===this.type||"month"===this.type||"week"===this.type||"time"===this.type||"datetime-local"===this.type||"number"===this.type||"checkbox"===this.type||"radio"===this.type||"file"===this.type?this.required:null,step:"date"===this.type||"month"===this.type||"week"===this.type||"time"===this.type||"datetime-local"===this.type||"number"===this.type||"range"===this.type?this.step:null,type:this.type,value:this.value,onBlur:this.handleBlur.bind(this),onFocus:this.handleFocus.bind(this),onInput:this.handleChange.bind(this)}),this.iconright&&s("div",{class:"icon-right"},s("tttx-icon",{icon:this.iconright,color:"grey"})),s("span",{class:["errorBubble",this.showerrormsg&&this.errormsg?"visible":""].join(" ")},s("span",{class:"material-symbols-rounded validationicon"},"warning")," ",this.errormsg)))}};e.style='.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}';export{e as tttx_standalone_input}
|