@3t-transform/threeteeui 0.0.19 → 0.0.21

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.
@@ -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],"autocomplete":[1],"autofocus":[4],"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);
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],"inputKeyhint":[1,"input-keyhint"],"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: 1025px){dl.horizontal{flex-wrap:wrap}dl.horizontal div{width:50%}}@media (max-width: 600px){dl.horizontal div{width:100%}}";
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,17 @@ 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.inputKeyhint = undefined;
24
+ this.inputIndex = undefined;
25
+ this.autocomplete = undefined;
23
26
  this.checked = undefined;
24
27
  this.disabled = undefined;
25
28
  this.max = undefined;
@@ -48,87 +51,13 @@ const TttxInput = class {
48
51
  const target = event.target;
49
52
  this.blurChanged.emit(target.value);
50
53
  }
54
+ handleInvalid(event) {
55
+ const target = event.target;
56
+ this.invalidChanged.emit(target.value);
57
+ }
51
58
  render() {
52
59
  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.type === 'url' || this.type === 'email' || this.type === 'password' ? this.autocapitalize : null, autofocus: this.autofocus, autocomplete: this.type === 'text' ||
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))));
60
+ 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, enterkeyhint: this.inputKeyhint, 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
61
  }
133
62
  };
134
63
  TttxInput.style = tttxStandaloneInputCss;
@@ -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],"autocomplete":[1],"autofocus":[4],"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);
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],"inputKeyhint":[1,"input-keyhint"],"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;
@@ -42,7 +42,7 @@ dl.horizontal div {
42
42
  flex-grow: 1;
43
43
  }
44
44
 
45
- @media (max-width: 1025px) {
45
+ @media (max-width: 769px) {
46
46
  dl.horizontal {
47
47
  flex-wrap: wrap;
48
48
  }
@@ -8,8 +8,10 @@ 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.inputKeyhint = undefined;
13
+ this.inputIndex = undefined;
14
+ this.autocomplete = undefined;
13
15
  this.checked = undefined;
14
16
  this.disabled = undefined;
15
17
  this.max = undefined;
@@ -38,87 +40,13 @@ export class TttxInput {
38
40
  const target = event.target;
39
41
  this.blurChanged.emit(target.value);
40
42
  }
43
+ handleInvalid(event) {
44
+ const target = event.target;
45
+ this.invalidChanged.emit(target.value);
46
+ }
41
47
  render() {
42
48
  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.type === 'url' || this.type === 'email' || this.type === 'password' ? this.autocapitalize : null, autofocus: this.autofocus, autocomplete: this.type === 'text' ||
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))));
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.autocapitalize, autofocus: this.autofocus, enterkeyhint: this.inputKeyhint, 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
50
  }
123
51
  static get is() { return "tttx-standalone-input"; }
124
52
  static get encapsulation() { return "scoped"; }
@@ -236,12 +164,12 @@ export class TttxInput {
236
164
  "attribute": "autocapitalize",
237
165
  "reflect": false
238
166
  },
239
- "autocomplete": {
240
- "type": "string",
167
+ "autofocus": {
168
+ "type": "boolean",
241
169
  "mutable": false,
242
170
  "complexType": {
243
- "original": "'off' | 'on'",
244
- "resolved": "\"off\" | \"on\"",
171
+ "original": "boolean",
172
+ "resolved": "boolean",
245
173
  "references": {}
246
174
  },
247
175
  "required": false,
@@ -250,15 +178,55 @@ export class TttxInput {
250
178
  "tags": [],
251
179
  "text": ""
252
180
  },
253
- "attribute": "autocomplete",
181
+ "attribute": "autofocus",
254
182
  "reflect": false
255
183
  },
256
- "autofocus": {
257
- "type": "boolean",
184
+ "inputKeyhint": {
185
+ "type": "string",
258
186
  "mutable": false,
259
187
  "complexType": {
260
- "original": "boolean",
261
- "resolved": "boolean",
188
+ "original": "'enter' | 'done' | 'go' | 'next' | 'previous' | 'search' | 'send'",
189
+ "resolved": "\"done\" | \"enter\" | \"go\" | \"next\" | \"previous\" | \"search\" | \"send\"",
190
+ "references": {}
191
+ },
192
+ "required": false,
193
+ "optional": false,
194
+ "docs": {
195
+ "tags": [],
196
+ "text": "Defines what action to present for the enter key on virtual keyboards"
197
+ },
198
+ "attribute": "input-keyhint",
199
+ "reflect": false
200
+ },
201
+ "inputIndex": {
202
+ "type": "any",
203
+ "mutable": false,
204
+ "complexType": {
205
+ "original": "string | number",
206
+ "resolved": "number | string",
207
+ "references": {}
208
+ },
209
+ "required": false,
210
+ "optional": false,
211
+ "docs": {
212
+ "tags": [{
213
+ "name": "example",
214
+ "text": "<caption>In HTML (like `index.html`)</caption>\n<tttx-standalone-input input-index=\"1\" />"
215
+ }, {
216
+ "name": "example",
217
+ "text": "<caption>In TSX files</caption>\n<tttx-standalone-input inputIndex={1} />"
218
+ }],
219
+ "text": "tabindex - Allows the HTML elements to be focusable"
220
+ },
221
+ "attribute": "input-index",
222
+ "reflect": false
223
+ },
224
+ "autocomplete": {
225
+ "type": "string",
226
+ "mutable": false,
227
+ "complexType": {
228
+ "original": "'off' | 'on'",
229
+ "resolved": "\"off\" | \"on\"",
262
230
  "references": {}
263
231
  },
264
232
  "required": false,
@@ -267,7 +235,7 @@ export class TttxInput {
267
235
  "tags": [],
268
236
  "text": ""
269
237
  },
270
- "attribute": "autofocus",
238
+ "attribute": "autocomplete",
271
239
  "reflect": false
272
240
  },
273
241
  "checked": {
@@ -565,6 +533,21 @@ export class TttxInput {
565
533
  "resolved": "string",
566
534
  "references": {}
567
535
  }
536
+ }, {
537
+ "method": "invalidChanged",
538
+ "name": "invalidChanged",
539
+ "bubbles": true,
540
+ "cancelable": true,
541
+ "composed": true,
542
+ "docs": {
543
+ "tags": [],
544
+ "text": ""
545
+ },
546
+ "complexType": {
547
+ "original": "string",
548
+ "resolved": "string",
549
+ "references": {}
550
+ }
568
551
  }];
569
552
  }
570
553
  }
@@ -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: 1025px){dl.horizontal{flex-wrap:wrap}dl.horizontal div{width:50%}}@media (max-width: 600px){dl.horizontal div{width:100%}}";
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,17 @@ 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.inputKeyhint = undefined;
22
+ this.inputIndex = undefined;
23
+ this.autocomplete = undefined;
21
24
  this.checked = undefined;
22
25
  this.disabled = undefined;
23
26
  this.max = undefined;
@@ -46,87 +49,13 @@ const TttxInput = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
46
49
  const target = event.target;
47
50
  this.blurChanged.emit(target.value);
48
51
  }
52
+ handleInvalid(event) {
53
+ const target = event.target;
54
+ this.invalidChanged.emit(target.value);
55
+ }
49
56
  render() {
50
57
  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.type === 'url' || this.type === 'email' || this.type === 'password' ? this.autocapitalize : null, autofocus: this.autofocus, autocomplete: this.type === 'text' ||
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))));
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.autocapitalize, autofocus: this.autofocus, enterkeyhint: this.inputKeyhint, 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
59
  }
131
60
  static get style() { return tttxStandaloneInputCss; }
132
61
  }, [2, "tttx-standalone-input", {
@@ -136,8 +65,10 @@ const TttxInput = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
136
65
  "iconleft": [1],
137
66
  "iconright": [1],
138
67
  "autocapitalize": [1],
139
- "autocomplete": [1],
140
68
  "autofocus": [4],
69
+ "inputKeyhint": [1, "input-keyhint"],
70
+ "inputIndex": [8, "input-index"],
71
+ "autocomplete": [1],
141
72
  "checked": [4],
142
73
  "disabled": [4],
143
74
  "max": [8],
@@ -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],"autocomplete":[1],"autofocus":[4],"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);
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],"inputKeyhint":[1,"input-keyhint"],"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: 1025px){dl.horizontal{flex-wrap:wrap}dl.horizontal div{width:50%}}@media (max-width: 600px){dl.horizontal div{width:100%}}";
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,17 @@ 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.inputKeyhint = undefined;
20
+ this.inputIndex = undefined;
21
+ this.autocomplete = undefined;
19
22
  this.checked = undefined;
20
23
  this.disabled = undefined;
21
24
  this.max = undefined;
@@ -44,87 +47,13 @@ const TttxInput = class {
44
47
  const target = event.target;
45
48
  this.blurChanged.emit(target.value);
46
49
  }
50
+ handleInvalid(event) {
51
+ const target = event.target;
52
+ this.invalidChanged.emit(target.value);
53
+ }
47
54
  render() {
48
55
  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.type === 'url' || this.type === 'email' || this.type === 'password' ? this.autocapitalize : null, autofocus: this.autofocus, autocomplete: this.type === 'text' ||
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))));
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.autocapitalize, autofocus: this.autofocus, enterkeyhint: this.inputKeyhint, 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
57
  }
129
58
  };
130
59
  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],"autocomplete":[1],"autofocus":[4],"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);
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],"inputKeyhint":[1,"input-keyhint"],"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.inputKeyhint=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,enterkeyhint:this.inputKeyhint,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: 1025px){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}
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}
@@ -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-e3cc75bb",[[2,"tttx-standalone-input",{label:[1],showerrormsg:[4],errormsg:[1],iconleft:[1],iconright:[1],autocapitalize:[1],autocomplete:[1],autofocus:[4],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-224213ae",[[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)));
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-74061060",[[2,"tttx-standalone-input",{label:[1],showerrormsg:[4],errormsg:[1],iconleft:[1],iconright:[1],autocapitalize:[1],autofocus:[4],inputKeyhint:[1,"input-keyhint"],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,20 @@ 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
+ * Defines what action to present for the enter key on virtual keyboards
18
+ */
19
+ inputKeyhint: 'enter' | 'done' | 'go' | 'next' | 'previous' | 'search' | 'send';
20
+ /**
21
+ * tabindex - Allows the HTML elements to be focusable
22
+ * @example <caption>In HTML (like `index.html`)</caption>
23
+ * <tttx-standalone-input input-index="1" />
24
+ * @example <caption>In TSX files</caption>
25
+ * <tttx-standalone-input inputIndex={1} />
26
+ */
27
+ inputIndex: string | number;
28
+ autocomplete: 'off' | 'on';
17
29
  checked: boolean;
18
30
  disabled: boolean;
19
31
  max: MinMaxDates | number;
@@ -34,5 +46,7 @@ export declare class TttxInput {
34
46
  handleFocus(event: Event | InputEvent): void;
35
47
  blurChanged: EventEmitter<string>;
36
48
  handleBlur(event: Event | InputEvent): void;
49
+ invalidChanged: EventEmitter<string>;
50
+ handleInvalid(event: Event | InputEvent): void;
37
51
  render(): any;
38
52
  }
@@ -57,6 +57,16 @@ 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;
66
+ /**
67
+ * Defines what action to present for the enter key on virtual keyboards
68
+ */
69
+ "inputKeyhint": 'enter' | 'done' | 'go' | 'next' | 'previous' | 'search' | 'send';
60
70
  "label": string;
61
71
  "max": MinMaxDates | number;
62
72
  "maxlength": string | number;
@@ -237,6 +247,16 @@ declare namespace LocalJSX {
237
247
  "errormsg"?: string;
238
248
  "iconleft"?: string;
239
249
  "iconright"?: string;
250
+ /**
251
+ * tabindex - Allows the HTML elements to be focusable
252
+ * @example <caption>In HTML (like `index.html`)</caption> <tttx-standalone-input input-index="1" />
253
+ * @example <caption>In TSX files</caption> <tttx-standalone-input inputIndex={1} />
254
+ */
255
+ "inputIndex"?: string | number;
256
+ /**
257
+ * Defines what action to present for the enter key on virtual keyboards
258
+ */
259
+ "inputKeyhint"?: 'enter' | 'done' | 'go' | 'next' | 'previous' | 'search' | 'send';
240
260
  "label"?: string;
241
261
  "max"?: MinMaxDates | number;
242
262
  "maxlength"?: string | number;
@@ -245,6 +265,7 @@ declare namespace LocalJSX {
245
265
  "name"?: string;
246
266
  "onBlurChanged"?: (event: TttxStandaloneInputCustomEvent<string>) => void;
247
267
  "onFocusChanged"?: (event: TttxStandaloneInputCustomEvent<string>) => void;
268
+ "onInvalidChanged"?: (event: TttxStandaloneInputCustomEvent<string>) => void;
248
269
  "onValueChanged"?: (event: TttxStandaloneInputCustomEvent<string>) => void;
249
270
  "pattern"?: string;
250
271
  "placeholder"?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@3t-transform/threeteeui",
3
- "version": "0.0.19",
3
+ "version": "0.0.21",
4
4
  "description": "3t Design System",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.js",
@@ -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}