@3t-transform/threeteeui 0.1.4 → 0.1.5

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.
Files changed (94) hide show
  1. package/dist/cjs/{index-5f6cbac9.js → index-906c2757.js} +14 -1
  2. package/dist/cjs/loader.cjs.js +2 -2
  3. package/dist/cjs/{tttx-button.cjs.entry.js → tttx-button_2.cjs.entry.js} +50 -24
  4. package/dist/cjs/tttx-form.cjs.entry.js +364 -364
  5. package/dist/cjs/tttx-keyvalue-block.cjs.entry.js +57 -57
  6. package/dist/cjs/tttx-list.cjs.entry.js +43 -43
  7. package/dist/cjs/tttx-loading-spinner.cjs.entry.js +16 -16
  8. package/dist/cjs/tttx-standalone-input.cjs.entry.js +58 -61
  9. package/dist/cjs/tttx.cjs.js +2 -2
  10. package/dist/collection/components/atoms/tttx-button/tttx-button.js +116 -110
  11. package/dist/collection/components/atoms/tttx-button/tttx-button.stories.js +14 -14
  12. package/dist/collection/components/atoms/tttx-icon/tttx-icon.css +0 -4
  13. package/dist/collection/components/atoms/tttx-icon/tttx-icon.js +62 -62
  14. package/dist/collection/components/atoms/tttx-icon/tttx-icon.stories.js +22 -22
  15. package/dist/collection/components/atoms/tttx-keyvalue-block/tttx-keyvalue-block.js +107 -107
  16. package/dist/collection/components/atoms/tttx-keyvalue-block/tttx-keyvalue-block.stories.js +38 -38
  17. package/dist/collection/components/atoms/tttx-loading-spinner/tttx-loading-spinner.js +67 -67
  18. package/dist/collection/components/atoms/tttx-loading-spinner/tttx-loading-spinner.stories.js +17 -17
  19. package/dist/collection/components/molecules/tttx-form/lib/setErrorState.js +35 -35
  20. package/dist/collection/components/molecules/tttx-form/lib/validityCheck.js +58 -58
  21. package/dist/collection/components/molecules/tttx-form/tttx-form.css +3 -32
  22. package/dist/collection/components/molecules/tttx-form/tttx-form.js +364 -364
  23. package/dist/collection/components/molecules/tttx-form/tttx-form.stories.js +127 -127
  24. package/dist/collection/components/molecules/tttx-list/tttx-list.js +105 -105
  25. package/dist/collection/components/molecules/tttx-list/tttx-list.stories.js +43 -43
  26. package/dist/collection/components/molecules/tttx-standalone-input/tttx-standalone-input.css +3 -32
  27. package/dist/collection/components/molecules/tttx-standalone-input/tttx-standalone-input.js +572 -627
  28. package/dist/collection/components/molecules/tttx-standalone-input/tttx-standalone-input.stories.js +135 -148
  29. package/dist/collection/components/palette.stories.js +7 -7
  30. package/dist/collection/docs/gettingstarted-developer.stories.js +5 -5
  31. package/dist/collection/icons.js +2838 -2838
  32. package/dist/collection/index.js +1 -1
  33. package/dist/collection/shared/domsanitiser.options.js +14 -14
  34. package/dist/collection/transform-tag-name.js +5 -0
  35. package/dist/components/tttx-button.js +59 -48
  36. package/dist/components/tttx-form.js +381 -381
  37. package/dist/components/tttx-icon2.js +29 -29
  38. package/dist/components/tttx-keyvalue-block.js +74 -74
  39. package/dist/components/tttx-list.js +65 -65
  40. package/dist/components/tttx-loading-spinner.js +33 -33
  41. package/dist/components/tttx-standalone-input.js +102 -108
  42. package/dist/esm/{index-ffdc7592.js → index-4010ad69.js} +14 -2
  43. package/dist/esm/loader.js +3 -3
  44. package/dist/esm/polyfills/core-js.js +0 -0
  45. package/dist/esm/polyfills/dom.js +0 -0
  46. package/dist/esm/polyfills/es5-html-element.js +0 -0
  47. package/dist/esm/polyfills/index.js +0 -0
  48. package/dist/esm/polyfills/system.js +0 -0
  49. package/dist/esm/{tttx-button.entry.js → tttx-button_2.entry.js} +50 -25
  50. package/dist/esm/tttx-form.entry.js +364 -364
  51. package/dist/esm/tttx-keyvalue-block.entry.js +57 -57
  52. package/dist/esm/tttx-list.entry.js +43 -43
  53. package/dist/esm/tttx-loading-spinner.entry.js +16 -16
  54. package/dist/esm/tttx-standalone-input.entry.js +58 -61
  55. package/dist/esm/tttx.js +3 -3
  56. package/dist/tttx/p-083eeedc.entry.js +1 -0
  57. package/dist/tttx/{p-f97a61bb.entry.js → p-3281444a.entry.js} +1 -1
  58. package/dist/tttx/p-5687f4ad.js +2 -0
  59. package/dist/tttx/{p-d7423a2c.entry.js → p-5c9a1626.entry.js} +1 -1
  60. package/dist/tttx/p-931e42c9.entry.js +1 -0
  61. package/dist/tttx/p-b5c1dd86.entry.js +1 -0
  62. package/dist/tttx/{p-ed708390.entry.js → p-dab7ee1b.entry.js} +1 -1
  63. package/dist/tttx/tttx.esm.js +1 -1
  64. package/dist/types/components/atoms/tttx-button/tttx-button.d.ts +13 -10
  65. package/dist/types/components/atoms/tttx-button/tttx-button.stories.d.ts +10 -10
  66. package/dist/types/components/atoms/tttx-icon/tttx-icon.d.ts +5 -5
  67. package/dist/types/components/atoms/tttx-icon/tttx-icon.stories.d.ts +20 -20
  68. package/dist/types/components/atoms/tttx-keyvalue-block/tttx-keyvalue-block.d.ts +7 -7
  69. package/dist/types/components/atoms/tttx-keyvalue-block/tttx-keyvalue-block.stories.d.ts +9 -9
  70. package/dist/types/components/atoms/tttx-loading-spinner/tttx-loading-spinner.d.ts +6 -6
  71. package/dist/types/components/atoms/tttx-loading-spinner/tttx-loading-spinner.stories.d.ts +17 -17
  72. package/dist/types/components/molecules/tttx-form/lib/setErrorState.d.ts +13 -13
  73. package/dist/types/components/molecules/tttx-form/lib/validityCheck.d.ts +17 -17
  74. package/dist/types/components/molecules/tttx-form/tttx-form.d.ts +114 -114
  75. package/dist/types/components/molecules/tttx-form/tttx-form.stories.d.ts +13 -13
  76. package/dist/types/components/molecules/tttx-list/tttx-list.d.ts +11 -11
  77. package/dist/types/components/molecules/tttx-list/tttx-list.stories.d.ts +14 -14
  78. package/dist/types/components/molecules/tttx-standalone-input/tttx-standalone-input.d.ts +53 -56
  79. package/dist/types/components/molecules/tttx-standalone-input/tttx-standalone-input.stories.d.ts +106 -122
  80. package/dist/types/components/palette.stories.d.ts +6 -6
  81. package/dist/types/components.d.ts +0 -6
  82. package/dist/types/docs/gettingstarted-developer.stories.d.ts +5 -5
  83. package/dist/types/icons.d.ts +2 -2
  84. package/dist/types/index.d.ts +1 -1
  85. package/dist/types/shared/domsanitiser.options.d.ts +10 -10
  86. package/dist/types/transform-tag-name.d.ts +1 -0
  87. package/package.json +1 -1
  88. package/dist/cjs/tttx-icon.cjs.entry.js +0 -21
  89. package/dist/esm/tttx-icon.entry.js +0 -17
  90. package/dist/tttx/p-31c15d5e.entry.js +0 -1
  91. package/dist/tttx/p-6f51edf0.entry.js +0 -1
  92. package/dist/tttx/p-a31641f0.entry.js +0 -1
  93. package/dist/tttx/p-ccd04459.js +0 -2
  94. package/dist/tttx/p-e351f833.entry.js +0 -1
@@ -1,115 +1,109 @@
1
1
  import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
2
2
  import { d as defineCustomElement$2 } from './tttx-icon2.js';
3
3
 
4
- const tttxStandaloneInputCss = ".material-symbols-rounded.sc-tttx-standalone-input{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}.material-symbols-rounded.sc-tttx-standalone-input{font-family:\"Material Symbols Rounded\", sans-serif;font-weight:400;font-style:normal;font-size:24px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;color:#9e9e9e}.icon-left.sc-tttx-standalone-input,.icon-right.sc-tttx-standalone-input{flex-basis:24px}.icon-left.sc-tttx-standalone-input span.sc-tttx-standalone-input,.icon-right.sc-tttx-standalone-input span.sc-tttx-standalone-input{font-size:24px;line-height:24px;text-align:center;display:block;width:24px;height:24px;margin-top:4px}.icon-left.sc-tttx-standalone-input span.sc-tttx-standalone-input{margin-left:4px}.icon-right.sc-tttx-standalone-input span.sc-tttx-standalone-input{margin-right:4px}.icon-right.sc-tttx-standalone-input{margin-top:5px}.icon-left.sc-tttx-standalone-input{margin-top:5px;margin-left:4px}.iconleft.sc-tttx-standalone-input .input.sc-tttx-standalone-input{padding-left:4px}.iconright.sc-tttx-standalone-input .input.sc-tttx-standalone-input{padding-right:4px}.input-icon.sc-tttx-standalone-input{position:absolute;margin-top:9px;margin-left:4px}.errormsg.sc-tttx-standalone-input{display:flex;justify-content:center;align-items:center;float:left;margin-bottom:16px;box-sizing:border-box;background-color:transparent;height:26px;font-size:14px;border-radius:none;z-index:2;color:#dc0000}.errormsg.sc-tttx-standalone-input .validationicon.sc-tttx-standalone-input{width:16px;height:16px;font-size:16px;margin-right:4px;vertical-align:middle;color:#dc0000}.danger.sc-tttx-standalone-input{color:#dc0000}.optional.sc-tttx-standalone-input{color:#757575;font-weight:normal}label.inputBlock.sc-tttx-standalone-input{display:block;position:relative;line-height:21px}label.inputInline.sc-tttx-standalone-input{display:flex;white-space:nowrap;align-items:center}label.inputInline.sc-tttx-standalone-input .input-container.sc-tttx-standalone-input{margin:0 4px;width:100%;display:flex;align-items:center;gap:4px;position:relative}label.sc-tttx-standalone-input{font-weight:500;font-size:16px}input.sc-tttx-standalone-input:not([type=submit]){font-family:\"Roboto\", serif;box-sizing:border-box;width:100%;height:36px;padding:0 16px;font-size:16px;border:1px solid #d5d5d5;border-radius:4px;margin-top:4px}input[type=date].sc-tttx-standalone-input{background:white;display:block;min-width:calc(100% - 18px);line-height:37px}@media (max-width: 600px){input[type=date].sc-tttx-standalone-input{padding-top:6px}}input.invalid.sc-tttx-standalone-input:invalid,input.standalone.invalid.sc-tttx-standalone-input{border:1px solid #dc0000}.input-icon.sc-tttx-standalone-input~input.sc-tttx-standalone-input{padding:0 32px}input.sc-tttx-standalone-input~.errorBubble.sc-tttx-standalone-input{min-height:27px;position:relative;font-size:14px;font-weight:normal;width:100%;font-family:\"Roboto\", sans-serif;color:#dc0000;display:flex;align-content:center;align-items:center;justify-items:center}input.sc-tttx-standalone-input~.errorBubble.sc-tttx-standalone-input:not(.visible){visibility:hidden}input.sc-tttx-standalone-input~.errorBubble.sc-tttx-standalone-input span.sc-tttx-standalone-input{color:#dc0000;font-size:16px;margin-right:4px;height:16px}input.invalid.sc-tttx-standalone-input:invalid~.errorBubble.sc-tttx-standalone-input{position:relative;font-size:14px;font-weight:normal;width:100%;font-family:\"Roboto\", sans-serif;color:#dc0000;visibility:visible}input.sc-tttx-standalone-input:focus{border-color:#1479c6}input.sc-tttx-standalone-input:focus-visible{outline:none}.sc-tttx-standalone-input-h{display:block}";
4
+ const tttxStandaloneInputCss = ".material-symbols-rounded.sc-tttx-standalone-input{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}.material-symbols-rounded.sc-tttx-standalone-input{font-family:\"Material Symbols Rounded\", sans-serif;font-weight:400;font-style:normal;font-size:24px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;color:#9e9e9e}.icon-left.sc-tttx-standalone-input,.icon-right.sc-tttx-standalone-input{flex-basis:24px}.icon-left.sc-tttx-standalone-input span.sc-tttx-standalone-input,.icon-right.sc-tttx-standalone-input span.sc-tttx-standalone-input{font-size:24px;line-height:24px;text-align:center;display:block;width:24px;height:24px;margin-top:4px}.icon-left.sc-tttx-standalone-input span.sc-tttx-standalone-input{margin-left:4px}.icon-right.sc-tttx-standalone-input span.sc-tttx-standalone-input{margin-right:4px}.icon-right.sc-tttx-standalone-input{margin-top:5px;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}";
5
5
 
6
- const TttxInput = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
7
- constructor() {
8
- super();
9
- this.__registerHost();
10
- this.valueChanged = createEvent(this, "valueChanged", 7);
11
- this.focusChanged = createEvent(this, "focusChanged", 7);
12
- this.blurChanged = createEvent(this, "blurChanged", 7);
13
- this.invalidChanged = createEvent(this, "invalidChanged", 7);
14
- this.label = undefined;
15
- this.showerrormsg = undefined;
16
- this.showerrorbubble = true;
17
- this.errormsg = undefined;
18
- this.iconleft = undefined;
19
- this.iconright = undefined;
20
- this.inputicon = undefined;
21
- this.inline = undefined;
22
- this.inputAutocapitalize = undefined;
23
- this.inputAutofocus = undefined;
24
- this.inputKeyhint = undefined;
25
- this.inputIndex = undefined;
26
- this.inputTitle = undefined;
27
- this.autocomplete = undefined;
28
- this.checked = undefined;
29
- this.disabled = undefined;
30
- this.max = undefined;
31
- this.maxlength = undefined;
32
- this.min = undefined;
33
- this.minlength = undefined;
34
- this.name = undefined;
35
- this.pattern = undefined;
36
- this.placeholder = undefined;
37
- this.readonly = undefined;
38
- this.required = undefined;
39
- this.step = undefined;
40
- this.type = 'text';
41
- this.value = undefined;
42
- }
43
- handleChange(event) {
44
- const target = event.target;
45
- this.value = target.value;
46
- this.valueChanged.emit(target.value);
47
- }
48
- handleFocus(event) {
49
- const target = event.target;
50
- this.focusChanged.emit(target.value);
51
- }
52
- handleBlur(event) {
53
- const target = event.target;
54
- this.blurChanged.emit(target.value);
55
- }
56
- handleInvalid(event) {
57
- event.preventDefault();
58
- const target = event.target;
59
- this.invalidChanged.emit(target.value);
60
- }
61
- render() {
62
- const classNames = ['standalone', this.showerrormsg ? 'invalid' : ''].join(' ');
63
- return (h(Host, null, h("label", { class: this.inline ? 'inputInline' : 'inputBlock' }, this.label, !this.required ? h("span", { class: "optional" }, "\u00A0(optional)") : '', this.iconleft && (h("div", { class: "icon-left" }, h("tttx-icon", { icon: this.iconleft, color: "grey" }))), h("div", { class: "input-container" }, this.inputicon && (h("tttx-icon", { class: "input-icon", icon: this.inputicon, color: "grey" })), h("input", { class: classNames, autocapitalize: this.inputAutocapitalize, autofocus: this.inputAutofocus, enterkeyhint: this.inputKeyhint, tabindex: this.inputIndex, title: this.inputTitle, autocomplete: this.autocomplete, checked: this.checked, disabled: this.disabled, max: this.max, maxlength: this.maxlength, min: this.min, minlength: this.minlength, name: this.name, pattern: this.pattern, placeholder: this.placeholder, readonly: this.readonly, required: this.required, step: this.step, type: this.type, value: this.value, onBlur: this.handleBlur.bind(this), onFocus: this.handleFocus.bind(this), onInput: this.handleChange.bind(this), onInvalid: this.handleInvalid.bind(this) }), this.iconright && (h("div", { class: "icon-right" }, h("tttx-icon", { icon: this.iconright, color: "grey" }))), this.showerrorbubble && (h("span", { class: ['errorBubble', this.showerrormsg && this.errormsg ? 'visible' : ''].join(' ') }, h("span", { class: "material-symbols-rounded validationicon" }, "warning"), " ", this.errormsg))))));
64
- }
65
- static get style() { return tttxStandaloneInputCss; }
66
- }, [2, "tttx-standalone-input", {
67
- "label": [1],
68
- "showerrormsg": [4],
69
- "showerrorbubble": [4],
70
- "errormsg": [1],
71
- "iconleft": [1],
72
- "iconright": [1],
73
- "inputicon": [1],
74
- "inline": [4],
75
- "inputAutocapitalize": [1, "input-autocapitalize"],
76
- "inputAutofocus": [4, "input-autofocus"],
77
- "inputKeyhint": [1, "input-keyhint"],
78
- "inputIndex": [8, "input-index"],
79
- "inputTitle": [1, "input-title"],
80
- "autocomplete": [1],
81
- "checked": [4],
82
- "disabled": [4],
83
- "max": [8],
84
- "maxlength": [8],
85
- "min": [8],
86
- "minlength": [8],
87
- "name": [1],
88
- "pattern": [1],
89
- "placeholder": [1],
90
- "readonly": [8],
91
- "required": [4],
92
- "step": [8],
93
- "type": [1],
94
- "value": [1032]
95
- }]);
96
- function defineCustomElement$1() {
97
- if (typeof customElements === "undefined") {
98
- return;
99
- }
100
- const components = ["tttx-standalone-input", "tttx-icon"];
101
- components.forEach(tagName => { switch (tagName) {
102
- case "tttx-standalone-input":
103
- if (!customElements.get(tagName)) {
104
- customElements.define(tagName, TttxInput);
105
- }
106
- break;
107
- case "tttx-icon":
108
- if (!customElements.get(tagName)) {
109
- defineCustomElement$2();
110
- }
111
- break;
112
- } });
6
+ const TttxInput = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
7
+ constructor() {
8
+ super();
9
+ this.__registerHost();
10
+ this.valueChanged = createEvent(this, "valueChanged", 7);
11
+ this.focusChanged = createEvent(this, "focusChanged", 7);
12
+ this.blurChanged = createEvent(this, "blurChanged", 7);
13
+ this.invalidChanged = createEvent(this, "invalidChanged", 7);
14
+ this.label = undefined;
15
+ this.showerrormsg = undefined;
16
+ this.errormsg = undefined;
17
+ this.iconleft = undefined;
18
+ this.iconright = undefined;
19
+ this.inputAutocapitalize = undefined;
20
+ this.inputAutofocus = undefined;
21
+ this.inputKeyhint = undefined;
22
+ this.inputIndex = undefined;
23
+ this.inputTitle = undefined;
24
+ this.autocomplete = undefined;
25
+ this.checked = undefined;
26
+ this.disabled = undefined;
27
+ this.max = undefined;
28
+ this.maxlength = undefined;
29
+ this.min = undefined;
30
+ this.minlength = undefined;
31
+ this.name = undefined;
32
+ this.pattern = undefined;
33
+ this.placeholder = undefined;
34
+ this.readonly = undefined;
35
+ this.required = undefined;
36
+ this.step = undefined;
37
+ this.type = 'text';
38
+ this.value = undefined;
39
+ }
40
+ handleChange(event) {
41
+ const target = event.target;
42
+ this.value = target.value;
43
+ this.valueChanged.emit(target.value);
44
+ }
45
+ handleFocus(event) {
46
+ const target = event.target;
47
+ this.focusChanged.emit(target.value);
48
+ }
49
+ handleBlur(event) {
50
+ const target = event.target;
51
+ this.blurChanged.emit(target.value);
52
+ }
53
+ handleInvalid(event) {
54
+ event.preventDefault();
55
+ const target = event.target;
56
+ this.invalidChanged.emit(target.value);
57
+ }
58
+ render() {
59
+ const classNames = ['standalone', this.showerrormsg ? 'invalid' : ''].join(' ');
60
+ return (h(Host, null, h("label", { class: 'inputBlock' }, this.label, !this.required ? h("span", { class: "optional" }, "\u00A0(optional)") : '', this.iconleft && (h("div", { class: "icon-left" }, h("tttx-icon", { icon: this.iconleft, color: "grey" }))), h("input", { class: classNames, autocapitalize: this.inputAutocapitalize, autofocus: this.inputAutofocus, enterkeyhint: this.inputKeyhint, tabindex: this.inputIndex, title: this.inputTitle, autocomplete: this.autocomplete, checked: this.checked, disabled: this.disabled, max: this.max, maxlength: this.maxlength, min: this.min, minlength: this.minlength, name: this.name, pattern: this.pattern, placeholder: this.placeholder, readonly: this.readonly, required: this.required, step: this.step, type: this.type, value: this.value, onBlur: this.handleBlur.bind(this), onFocus: this.handleFocus.bind(this), onInput: this.handleChange.bind(this), onInvalid: this.handleInvalid.bind(this) }), this.iconright && (h("div", { class: "icon-right" }, h("tttx-icon", { icon: this.iconright, color: "grey" }))), h("span", { class: ['errorBubble', this.showerrormsg && this.errormsg ? 'visible' : ''].join(' ') }, h("span", { class: "material-symbols-rounded validationicon" }, "warning"), " ", this.errormsg))));
61
+ }
62
+ static get style() { return tttxStandaloneInputCss; }
63
+ }, [2, "tttx-standalone-input", {
64
+ "label": [1],
65
+ "showerrormsg": [4],
66
+ "errormsg": [1],
67
+ "iconleft": [1],
68
+ "iconright": [1],
69
+ "inputAutocapitalize": [1, "input-autocapitalize"],
70
+ "inputAutofocus": [4, "input-autofocus"],
71
+ "inputKeyhint": [1, "input-keyhint"],
72
+ "inputIndex": [8, "input-index"],
73
+ "inputTitle": [1, "input-title"],
74
+ "autocomplete": [1],
75
+ "checked": [4],
76
+ "disabled": [4],
77
+ "max": [8],
78
+ "maxlength": [8],
79
+ "min": [8],
80
+ "minlength": [8],
81
+ "name": [1],
82
+ "pattern": [1],
83
+ "placeholder": [1],
84
+ "readonly": [8],
85
+ "required": [4],
86
+ "step": [8],
87
+ "type": [1],
88
+ "value": [1032]
89
+ }]);
90
+ function defineCustomElement$1() {
91
+ if (typeof customElements === "undefined") {
92
+ return;
93
+ }
94
+ const components = ["tttx-standalone-input", "tttx-icon"];
95
+ components.forEach(tagName => { switch (tagName) {
96
+ case "tttx-standalone-input":
97
+ if (!customElements.get(tagName)) {
98
+ customElements.define(tagName, TttxInput);
99
+ }
100
+ break;
101
+ case "tttx-icon":
102
+ if (!customElements.get(tagName)) {
103
+ defineCustomElement$2();
104
+ }
105
+ break;
106
+ } });
113
107
  }
114
108
 
115
109
  const TttxStandaloneInput = TttxInput;
@@ -1149,6 +1149,7 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
1149
1149
  hostRef.$flags$ |= 128 /* HOST_FLAGS.isWatchReady */;
1150
1150
  }
1151
1151
  endNewInstance();
1152
+ fireConnectedCallback(hostRef.$lazyInstance$);
1152
1153
  }
1153
1154
  if (Cstr.style) {
1154
1155
  // this component has styles but we haven't registered them yet
@@ -1177,6 +1178,11 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
1177
1178
  schedule();
1178
1179
  }
1179
1180
  };
1181
+ const fireConnectedCallback = (instance) => {
1182
+ {
1183
+ safeCall(instance, 'connectedCallback');
1184
+ }
1185
+ };
1180
1186
  const connectedCallback = (elm) => {
1181
1187
  if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {
1182
1188
  const hostRef = getHostRef(elm);
@@ -1215,6 +1221,10 @@ const connectedCallback = (elm) => {
1215
1221
  initializeComponent(elm, hostRef, cmpMeta);
1216
1222
  }
1217
1223
  }
1224
+ else {
1225
+ // fire off connectedCallback() on component instance
1226
+ fireConnectedCallback(hostRef.$lazyInstance$);
1227
+ }
1218
1228
  endConnected();
1219
1229
  }
1220
1230
  };
@@ -1251,7 +1261,9 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
1251
1261
  {
1252
1262
  cmpMeta.$watchers$ = {};
1253
1263
  }
1254
- const tagName = cmpMeta.$tagName$;
1264
+ const tagName = options.transformTagName
1265
+ ? options.transformTagName(cmpMeta.$tagName$)
1266
+ : cmpMeta.$tagName$;
1255
1267
  const HostElement = class extends HTMLElement {
1256
1268
  // StencilLazyHost
1257
1269
  constructor(self) {
@@ -1434,4 +1446,4 @@ const flush = () => {
1434
1446
  const nextTick = /*@__PURE__*/ (cb) => promiseResolve().then(cb);
1435
1447
  const writeTask = /*@__PURE__*/ queueTask(queueDomWrites, true);
1436
1448
 
1437
- export { Host as H, bootstrapLazy as b, createEvent as c, h, promiseResolve as p, registerInstance as r, setNonce as s };
1449
+ export { Host as H, bootstrapLazy as b, createEvent as c, getElement as g, h, promiseResolve as p, registerInstance as r, setNonce as s };
@@ -1,5 +1,5 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-ffdc7592.js';
2
- export { s as setNonce } from './index-ffdc7592.js';
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-4010ad69.js';
2
+ export { s as setNonce } from './index-4010ad69.js';
3
3
 
4
4
  /*
5
5
  Stencil Client Patch Esm v2.22.3 | MIT Licensed | https://stenciljs.com
@@ -11,7 +11,7 @@ const patchEsm = () => {
11
11
  const defineCustomElements = (win, options) => {
12
12
  if (typeof window === 'undefined') return Promise.resolve();
13
13
  return patchEsm().then(() => {
14
- return bootstrapLazy([["tttx-button",[[1,"tttx-button",{"notext":[4],"icon":[1],"iconposition":[1],"design":[1]}]]],["tttx-list",[[1,"tttx-list",{"data":[1025],"name":[1]}]]],["tttx-standalone-input",[[2,"tttx-standalone-input",{"label":[1],"showerrormsg":[4],"showerrorbubble":[4],"errormsg":[1],"iconleft":[1],"iconright":[1],"inputicon":[1],"inline":[4],"inputAutocapitalize":[1,"input-autocapitalize"],"inputAutofocus":[4,"input-autofocus"],"inputKeyhint":[1,"input-keyhint"],"inputIndex":[8,"input-index"],"inputTitle":[1,"input-title"],"autocomplete":[1],"checked":[4],"disabled":[4],"max":[8],"maxlength":[8],"min":[8],"minlength":[8],"name":[1],"pattern":[1],"placeholder":[1],"readonly":[8],"required":[4],"step":[8],"type":[1],"value":[1032]}]]],["tttx-form",[[1,"tttx-form",{"formschema":[1032],"submitValue":[1032,"submit-value"]}]]],["tttx-keyvalue-block",[[1,"tttx-keyvalue-block",{"keyvalues":[8],"horizontal":[4]}]]],["tttx-loading-spinner",[[1,"tttx-loading-spinner",{"loadingMessage":[1028,"loading-message"],"size":[1025]}]]],["tttx-icon",[[1,"tttx-icon",{"icon":[1],"color":[1]}]]]], options);
14
+ return bootstrapLazy([["tttx-list",[[1,"tttx-list",{"data":[1025],"name":[1]}]]],["tttx-standalone-input",[[2,"tttx-standalone-input",{"label":[1],"showerrormsg":[4],"errormsg":[1],"iconleft":[1],"iconright":[1],"inputAutocapitalize":[1,"input-autocapitalize"],"inputAutofocus":[4,"input-autofocus"],"inputKeyhint":[1,"input-keyhint"],"inputIndex":[8,"input-index"],"inputTitle":[1,"input-title"],"autocomplete":[1],"checked":[4],"disabled":[4],"max":[8],"maxlength":[8],"min":[8],"minlength":[8],"name":[1],"pattern":[1],"placeholder":[1],"readonly":[8],"required":[4],"step":[8],"type":[1],"value":[1032]}]]],["tttx-form",[[1,"tttx-form",{"formschema":[1032],"submitValue":[1032,"submit-value"]}]]],["tttx-keyvalue-block",[[1,"tttx-keyvalue-block",{"keyvalues":[8],"horizontal":[4]}]]],["tttx-loading-spinner",[[1,"tttx-loading-spinner",{"loadingMessage":[1028,"loading-message"],"size":[1025]}]]],["tttx-button_2",[[1,"tttx-button",{"notext":[4],"icon":[1],"iconposition":[1],"design":[1]}],[1,"tttx-icon",{"icon":[1],"color":[1]}]]]], options);
15
15
  });
16
16
  };
17
17
 
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -1,30 +1,55 @@
1
- import { r as registerInstance, h, H as Host } from './index-ffdc7592.js';
1
+ import { r as registerInstance, h, H as Host, g as getElement } from './index-4010ad69.js';
2
+
3
+ const transformTagName = (tagNameToBeTransformed, knownUntransformedTagName, knownUntransformedTagNameElementReference) => {
4
+ const actualCurrentTag = knownUntransformedTagNameElementReference.tagName.toLowerCase();
5
+ const [prefix, suffix] = actualCurrentTag.split(knownUntransformedTagName);
6
+ return prefix + tagNameToBeTransformed + suffix;
7
+ };
2
8
 
3
9
  const tttxButtonCss = ".material-symbols-rounded{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}.button{font-family:Roboto, serif;box-sizing:border-box;height:36px;min-width:36px;padding:0;margin:0;background:transparent;color:#212121;border:1px solid #c8c8c8;border-radius:4px;text-transform:uppercase;display:flex;justify-content:left;align-items:center;font-size:14px;font-weight:400}.button-content{display:block;padding:0 16px}.icon-left,.icon-right{margin-top:4px}.iconleft{padding-left:8px}.iconleft .button-content{padding-left:4px}.iconright{padding-right:8px}.iconright .button-content{padding-right:4px}.notext{padding:0 6px}.button:hover{background:rgba(17, 17, 17, 0.1);border:1px solid #D5D5D5}.button:active{background:rgba(17, 17, 17, 0.2);border:1px solid #D5D5D5}.primary{background:#1479c6;border:1px solid #1479c6;color:white}.primary:hover{background:#146EB3;border:1px solid #146EB3}.primary:active{background:#1464A2;border:1px solid #1464A2}.borderless{background:transparent;border:none;color:#212121}.borderless:hover{background:rgba(17, 17, 17, 0.1);border:none}.borderless:active{background:rgba(17, 17, 17, 0.2);border:none}.danger{background:#DC0000;border:1px solid #DC0000;color:white}.danger:hover{background:#C60000;border:1px solid #C60000}.danger:active{background:#B00000;border:1px solid #B00000}.disabled{background:#aeaeae;border:none;color:#4c4c4c;cursor:not-allowed}.disabled:hover{background:#aeaeae;border:none;color:#4c4c4c;cursor:not-allowed}.disabled:active{background:#aeaeae;border:none;color:#4c4c4c;cursor:not-allowed}:host{display:inline-block}.spacingleft{margin-left:8px}";
4
10
 
5
- const TttxButton = class {
6
- constructor(hostRef) {
7
- registerInstance(this, hostRef);
8
- this._iconcolor = 'black';
9
- this.notext = undefined;
10
- this.icon = undefined;
11
- this.iconposition = 'left';
12
- this.design = 'default';
13
- }
14
- componentWillLoad() {
15
- this._design = this.design;
16
- const designs = ['primary', 'default', 'disabled', 'danger', 'borderless'];
17
- if (!designs.includes(this.design)) {
18
- this._design = 'default';
19
- }
20
- if (this._design === 'primary' || this._design === 'danger') {
21
- this._iconcolor = 'white';
22
- }
23
- }
24
- render() {
25
- return (h(Host, null, h("button", { class: `button ${this._design} ${this.icon ? 'withicon' : ''} ${this.icon && this.iconposition ? 'icon' + this.iconposition : ''} ${this.notext ? 'notext' : ''}` }, this.icon && this.iconposition === 'left' && (h("div", { class: "icon-left" }, h("tttx-icon", { icon: this.icon, color: this._iconcolor }))), !this.notext && h("div", { class: "button-content" }, h("slot", null)), this.icon && this.iconposition === 'right' && (h("div", { class: "icon-right" }, h("tttx-icon", { icon: this.icon, color: this._iconcolor }))))));
26
- }
27
- };
11
+ const TttxButton = class {
12
+ constructor(hostRef) {
13
+ registerInstance(this, hostRef);
14
+ this._iconcolor = 'black';
15
+ this.notext = undefined;
16
+ this.icon = undefined;
17
+ this.iconposition = 'left';
18
+ this.design = 'default';
19
+ }
20
+ connectedCallback() {
21
+ const TttxButton = transformTagName('tttx-button', 'tttx-button', this.el);
22
+ this.buttonEl = this.el.closest(TttxButton);
23
+ }
24
+ componentWillLoad() {
25
+ this._design = this.design;
26
+ const designs = ['primary', 'default', 'disabled', 'danger', 'borderless'];
27
+ if (!designs.includes(this.design)) {
28
+ this._design = 'default';
29
+ }
30
+ if (this._design === 'primary' || this._design === 'danger') {
31
+ this._iconcolor = 'white';
32
+ }
33
+ }
34
+ render() {
35
+ return (h(Host, null, h("button", { class: `button ${this._design} ${this.icon ? 'withicon' : ''} ${this.icon && this.iconposition ? 'icon' + this.iconposition : ''} ${this.notext ? 'notext' : ''}` }, this.icon && this.iconposition === 'left' && (h("div", { class: "icon-left" }, h("tttx-icon", { icon: this.icon, color: this._iconcolor }))), !this.notext && h("div", { class: "button-content" }, h("slot", null)), this.icon && this.iconposition === 'right' && (h("div", { class: "icon-right" }, h("tttx-icon", { icon: this.icon, color: this._iconcolor }))))));
36
+ }
37
+ get el() { return getElement(this); }
38
+ };
28
39
  TttxButton.style = tttxButtonCss;
29
40
 
30
- export { TttxButton as tttx_button };
41
+ const tttxIconCss = ".material-symbols-rounded{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}.material-symbols-rounded{font-family:\"Material Symbols Rounded\", sans-serif;font-weight:400;font-style:normal;font-size:24px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;color:#9e9e9e}:host{display:inline-block;cursor:default;user-select:none}.icon-size{width:24px;height:24px}.tooltip{background:#ffffff;color:#343434;font-weight:bold;padding:8px 16px;font-size:13px;border-radius:4px;box-shadow:0 0 5px 1px rgba(0, 0, 0, 0.3);display:none}.tooltip[data-show]{display:block}.arrow,.arrow::before{position:absolute;width:8px;height:8px;background:inherit}.arrow{visibility:hidden}.arrow::before{visibility:visible;content:\"\";transform:rotate(45deg)}.tooltip[data-popper-placement^=top]>.arrow{bottom:-4px}.tooltip[data-popper-placement^=bottom]>.arrow{top:-4px}.tooltip[data-popper-placement^=left]>.arrow{right:-4px}.tooltip[data-popper-placement^=right]>.arrow{left:-4px}.red{color:#dc0000}.orange{color:#f59500}.blue{color:#1479c6}.green{color:#a2bb31}.gray{color:#757575}.black{color:#212121}.white{color:white}";
42
+
43
+ const TttxIcon = class {
44
+ constructor(hostRef) {
45
+ registerInstance(this, hostRef);
46
+ this.icon = undefined;
47
+ this.color = 'grey';
48
+ }
49
+ render() {
50
+ return (h(Host, null, h("span", { class: `material-symbols-rounded ${this.color ? this.color : ''}` }, this.icon)));
51
+ }
52
+ };
53
+ TttxIcon.style = tttxIconCss;
54
+
55
+ export { TttxButton as tttx_button, TttxIcon as tttx_icon };