@3t-transform/threeteeui 0.0.23 → 0.0.24

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 (87) hide show
  1. package/dist/cjs/{index-2943e8f8.js → index-bc080fb4.js} +64 -89
  2. package/dist/cjs/loader.cjs.js +3 -4
  3. package/dist/cjs/tttx-button.cjs.entry.js +1 -1
  4. package/dist/cjs/tttx-icon.cjs.entry.js +1 -1
  5. package/dist/cjs/tttx-keyvalue-block.cjs.entry.js +5 -8
  6. package/dist/cjs/tttx-list.cjs.entry.js +34 -0
  7. package/dist/cjs/tttx-loading-spinner.cjs.entry.js +1 -1
  8. package/dist/cjs/tttx-standalone-input.cjs.entry.js +1 -2
  9. package/dist/cjs/tttx-table.cjs.entry.js +60 -0
  10. package/dist/cjs/tttx.cjs.js +3 -7
  11. package/dist/collection/collection-manifest.json +5 -3
  12. package/dist/collection/components/atoms/tttx-button/test/tttx-button.e2e.js +9 -0
  13. package/dist/collection/components/atoms/tttx-button/test/tttx-button.spec.js +43 -0
  14. package/dist/collection/components/atoms/tttx-icon/test/tttx-icon.e2e.js +9 -0
  15. package/dist/collection/components/atoms/tttx-icon/test/tttx-icon.spec.js +16 -0
  16. package/dist/collection/components/atoms/tttx-keyvalue-block/test/tttx-keyvalue-block.spec.js +164 -0
  17. package/dist/collection/components/atoms/tttx-keyvalue-block/tttx-keyvalue-block.js +4 -7
  18. package/dist/collection/components/atoms/tttx-loading-spinner/Test/tttx-loading-spinner.spec.js +64 -0
  19. package/dist/collection/components/molecules/tttx-list/test/tttx-list.spec.js +151 -0
  20. package/dist/collection/components/molecules/tttx-list/tttx-list.css +53 -0
  21. package/dist/collection/components/molecules/tttx-list/tttx-list.js +79 -0
  22. package/dist/collection/components/molecules/tttx-list/tttx-list.stories.js +39 -0
  23. package/dist/collection/components/molecules/tttx-standalone-input/test/tttx-standalone-input.e2e.js +9 -0
  24. package/dist/collection/components/molecules/tttx-standalone-input/test/tttx-standalone-input.spec.js +146 -0
  25. package/dist/collection/components/molecules/tttx-standalone-input/tttx-standalone-input.js +0 -1
  26. package/dist/collection/components/molecules/tttx-table/test/tttx-table.e2e.js +9 -0
  27. package/dist/collection/components/molecules/tttx-table/tttx-table.css +166 -0
  28. package/dist/collection/components/molecules/tttx-table/tttx-table.js +174 -0
  29. package/dist/collection/components/molecules/tttx-table/tttx-table.stories.js +81 -0
  30. package/dist/components/index.d.ts +2 -9
  31. package/dist/components/index.js +3 -1
  32. package/dist/components/tttx-keyvalue-block.js +4 -7
  33. package/dist/components/tttx-list.d.ts +11 -0
  34. package/dist/components/tttx-list.js +56 -0
  35. package/dist/components/tttx-standalone-input.js +0 -1
  36. package/dist/components/tttx-table.d.ts +11 -0
  37. package/dist/components/tttx-table.js +85 -0
  38. package/dist/esm/{index-058a3cd0.js → index-901bfd55.js} +65 -89
  39. package/dist/esm/loader.js +3 -4
  40. package/dist/esm/polyfills/css-shim.js +1 -1
  41. package/dist/esm/tttx-button.entry.js +1 -1
  42. package/dist/esm/tttx-icon.entry.js +1 -1
  43. package/dist/esm/tttx-keyvalue-block.entry.js +5 -8
  44. package/dist/esm/tttx-list.entry.js +30 -0
  45. package/dist/esm/tttx-loading-spinner.entry.js +1 -1
  46. package/dist/esm/tttx-standalone-input.entry.js +1 -2
  47. package/dist/esm/tttx-table.entry.js +56 -0
  48. package/dist/esm/tttx.js +3 -4
  49. package/dist/tttx/{p-046868d9.entry.js → p-0ae51ec5.entry.js} +1 -1
  50. package/dist/tttx/p-1ec23160.entry.js +1 -0
  51. package/dist/tttx/p-300ff6a8.entry.js +1 -0
  52. package/dist/tttx/p-32ad02d3.entry.js +1 -0
  53. package/dist/tttx/p-80cf5236.entry.js +1 -0
  54. package/dist/tttx/{p-495cf4b3.entry.js → p-9a382959.entry.js} +1 -1
  55. package/dist/tttx/p-a1bd16a1.entry.js +1 -0
  56. package/dist/tttx/{p-1adb2b75.entry.js → p-a4077908.entry.js} +1 -1
  57. package/dist/tttx/p-a6953900.entry.js +1 -0
  58. package/dist/tttx/p-b46e3c59.entry.js +1 -0
  59. package/dist/tttx/p-c290160b.js +2 -0
  60. package/dist/tttx/p-dc179257.entry.js +1 -0
  61. package/dist/tttx/p-e19eb07e.entry.js +1 -0
  62. package/dist/tttx/p-e4341658.entry.js +1 -0
  63. package/dist/tttx/tttx.esm.js +1 -1
  64. package/dist/types/components/atoms/tttx-button/test/tttx-button.e2e.d.ts +1 -0
  65. package/dist/types/components/atoms/tttx-button/test/tttx-button.spec.d.ts +1 -0
  66. package/dist/types/components/atoms/tttx-icon/test/tttx-icon.e2e.d.ts +1 -0
  67. package/dist/types/components/atoms/tttx-icon/test/tttx-icon.spec.d.ts +1 -0
  68. package/dist/types/components/atoms/tttx-keyvalue-block/test/tttx-keyvalue-block.spec.d.ts +1 -0
  69. package/dist/types/components/atoms/tttx-loading-spinner/Test/tttx-loading-spinner.spec.d.ts +1 -0
  70. package/dist/types/components/molecules/tttx-list/interfaces.d.ts +4 -0
  71. package/dist/types/components/molecules/tttx-list/test/tttx-list.spec.d.ts +1 -0
  72. package/dist/types/components/molecules/tttx-list/tttx-list.d.ts +9 -0
  73. package/dist/types/components/molecules/tttx-list/tttx-list.stories.d.ts +7 -0
  74. package/dist/types/components/molecules/tttx-standalone-input/test/tttx-standalone-input.e2e.d.ts +1 -0
  75. package/dist/types/components/molecules/tttx-standalone-input/test/tttx-standalone-input.spec.d.ts +1 -0
  76. package/dist/types/components/molecules/tttx-standalone-input/tttx-standalone-input.d.ts +6 -6
  77. package/dist/types/components/molecules/tttx-table/test/tttx-table.e2e.d.ts +1 -0
  78. package/dist/types/components/molecules/tttx-table/tttx-table.d.ts +15 -0
  79. package/dist/types/components/molecules/tttx-table/tttx-table.stories.d.ts +21 -0
  80. package/dist/types/components.d.ts +48 -0
  81. package/dist/types/stencil-public-runtime.d.ts +3 -59
  82. package/loader/index.d.ts +0 -9
  83. package/package.json +2 -1
  84. package/readme.md +20 -0
  85. package/dist/tttx/p-a4d9929a.entry.js +0 -1
  86. package/dist/tttx/p-ad637dde.entry.js +0 -1
  87. package/dist/tttx/p-bbb7dbf7.js +0 -2
@@ -0,0 +1,56 @@
1
+ import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
2
+ import { d as defineCustomElement$2 } from './tttx-icon2.js';
3
+
4
+ const tttxListCss = ".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:flex;flex-direction:column}.list{margin:0;padding:0}.item{list-style:none;margin:0;padding:0;border-bottom:1px solid #d5d5d5;height:36px;display:flex;align-items:center}.item:first-of-type{border-top:1px solid #d5d5d5}.align-right{margin-left:auto}.item-content{display:flex;align-items:center}";
5
+
6
+ const TttxList$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
7
+ constructor() {
8
+ super();
9
+ this.__registerHost();
10
+ this.__attachShadow();
11
+ this.listSelectedEvent = createEvent(this, "listItemClick", 7);
12
+ this.data = undefined;
13
+ }
14
+ renderListItem(item) {
15
+ // Onclick should return some row data. May need to rethink how we handle data, since we don't want to return a template
16
+ // Alternatively, could return some sort of row id/index instead
17
+ return h("li", { class: "item", onClick: () => { this.listSelectedEvent.emit({}); } }, item.element && h("span", { class: "item-content", innerHTML: item.element }), item.chevron && h("tttx-icon", { class: "align-right", icon: "chevron_right" }));
18
+ }
19
+ render() {
20
+ if (!this.data)
21
+ return;
22
+ if (typeof this.data === 'string') {
23
+ this._data = JSON.parse(this.data);
24
+ }
25
+ else {
26
+ this._data = this.data;
27
+ }
28
+ return (h("ul", { class: "list" }, this._data && this._data.map((item) => this.renderListItem(item))));
29
+ }
30
+ static get style() { return tttxListCss; }
31
+ }, [1, "tttx-list", {
32
+ "data": [1]
33
+ }]);
34
+ function defineCustomElement$1() {
35
+ if (typeof customElements === "undefined") {
36
+ return;
37
+ }
38
+ const components = ["tttx-list", "tttx-icon"];
39
+ components.forEach(tagName => { switch (tagName) {
40
+ case "tttx-list":
41
+ if (!customElements.get(tagName)) {
42
+ customElements.define(tagName, TttxList$1);
43
+ }
44
+ break;
45
+ case "tttx-icon":
46
+ if (!customElements.get(tagName)) {
47
+ defineCustomElement$2();
48
+ }
49
+ break;
50
+ } });
51
+ }
52
+
53
+ const TttxList = TttxList$1;
54
+ const defineCustomElement = defineCustomElement$1;
55
+
56
+ export { TttxList, defineCustomElement };
@@ -51,7 +51,6 @@ const TttxInput = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
51
51
  this.blurChanged.emit(target.value);
52
52
  }
53
53
  handleInvalid(event) {
54
- event.preventDefault();
55
54
  const target = event.target;
56
55
  this.invalidChanged.emit(target.value);
57
56
  }
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface TttxTable extends Components.TttxTable, HTMLElement {}
4
+ export const TttxTable: {
5
+ prototype: TttxTable;
6
+ new (): TttxTable;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1,85 @@
1
+ import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
2
+ import { d as defineCustomElement$2 } from './tttx-icon2.js';
3
+
4
+ const tttxTableCss = "// SPACING $spacing-unit: 4px; // REGULAR $horizontal-spacing: $spacing-unit * 4; $vertical-spacing: $spacing-unit * 2; $base-padding: $vertical-spacing $horizontal-spacing; $base-height: $spacing-unit * 9; $component-spacing: $spacing-unit * 4; // SMALL $horizontal-spacing-sm: $spacing-unit * 2; $vertical-spacing-sm: $spacing-unit * 1; $base-padding-sm: $vertical-spacing-sm $horizontal-spacing-sm; $base-height-sm: $spacing-unit * 7; // COLOURS $grey-0: #212121; $grey-1: #363636; $grey-2: #4c4c4c; $grey-3: #636363; $grey-4: #757575; $grey-5: #9e9e9e; $grey-6: #aeaeae; $grey-7: #c8c8c8; $grey-8: #e3e3e3; $grey-9: #f0f0f0; $white: white; $black: $grey-0; $transparent: transparent; $blue-0: #00187c; $blue-1: #032e8c; $blue-2: #0849a3; $blue-3: #0951a8; $blue-4: #1169ba; $blue-5: #1479c6; $blue-6: #5194d2; $blue-7: #7aacdd; $blue-8: #b9d5ed; $blue-9: #e7f1f9; $red-0: #7c0000; $red-1: #8c0000; $red-2: #a30000; $red-3: #a80000; $red-4: #ba0000; $red-5: #dc0000; $red-6: #d25151; $red-7: #dd7a7a; $red-8: #edc1c1; $red-9: #f9e7e7; $black-1: #e6e6e6; $brand: $blue-0; $accent: $blue-5; $accent-selected: $blue-9; $error: $red-5; $severity-critical: #dc0000; $severity-warning: #f59500; $severity-success: #a2bb31; $severity-info: $accent; $ui-primary: $black; $ui-secondary: $grey-4; $ui-disabled: $grey-2; $ui-placeholder: $grey-5; $ui-background: $grey-9; $ui-sheet: $white; $ui-border: #d5d5d5; // BORDERS $ui-border-radius: 4px; $ui-border-width: 1px; // TYPOGRAPHY $font-size-default: 16px; $font-size-small: 14px; .material-symbols-rounded{font-variation-settings:'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24}.skeleton{animation:skeleton-loading 1s linear infinite alternate;border-radius:4px;width:100%}@keyframes skeleton-loading{0%{background-color:hsl(200, 20%, 80%)}100%{background-color:hsl(200, 20%, 95%)}}:host{display:block}table{box-sizing:border-box;width:100%;border-collapse:collapse;border-spacing:0;border:1px solid #ddd;border-bottom:none}thead tr{height:52px;color:#757575}tbody tr{height:48px;color:#212121}tr{font-family:'Roboto', sans-serif;font-weight:400;font-size:16px;display:flex;align-items:center;border-bottom:1px solid #ddd}.selected{background-color:#F0F0F0}.checked{background-color:#e7f1f9}td,th{min-width:300px;margin-left:16px;display:flex;align-items:left}.skeleton{height:24px;display:block}.align-right{margin-left:auto}";
5
+
6
+ const TttxTable$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
7
+ constructor() {
8
+ super();
9
+ this.__registerHost();
10
+ this.__attachShadow();
11
+ this.rowSelected = createEvent(this, "rowSelected", 7);
12
+ this.headerClicked = createEvent(this, "headerClicked", 7);
13
+ this.headers = [];
14
+ this.data = [];
15
+ this.loading = false;
16
+ this.selected = -1;
17
+ }
18
+ handleKeyDown(ev) {
19
+ if (ev.key === 'ArrowDown' || ev.key === 'ArrowUp') {
20
+ this.updateSelectedIndex(ev.key);
21
+ this.emitRowSelected();
22
+ }
23
+ }
24
+ updateSelectedIndex(key) {
25
+ if (this.selected === -1) {
26
+ this.selected = 0;
27
+ }
28
+ else {
29
+ const isArrowDown = key === 'ArrowDown';
30
+ const isArrowUp = key === 'ArrowUp';
31
+ if (isArrowDown && this.selected < this.data.length - 1) {
32
+ this.selected++;
33
+ }
34
+ else if (isArrowUp && this.selected > 0) {
35
+ this.selected--;
36
+ }
37
+ }
38
+ }
39
+ emitRowSelected() {
40
+ this.rowSelected.emit(this.data[this.selected]);
41
+ }
42
+ rowSelectedHandler(row) {
43
+ this.rowSelected.emit(row);
44
+ this.selected = this.data.findIndex((item) => item === row);
45
+ }
46
+ headerClickedHandler(key) {
47
+ this.headerClicked.emit(key);
48
+ }
49
+ render() {
50
+ return (h(Host, null, h("table", null, h("thead", null, h("tr", null, this.loading ?
51
+ [1, 2, 3].map(() => (h("th", null, h("div", { class: "skeleton" })))) :
52
+ this.headers && this.headers.map((header) => (h("th", { scope: "col", onClick: () => this.headerClickedHandler(header.key) }, header.label))))), h("tbody", null, this.loading ?
53
+ [1, 2, 3].map(() => (h("tr", null, h("td", null, h("div", { class: "skeleton" })), h("td", null, h("div", { class: "skeleton" })), h("td", null, h("div", { class: "skeleton" }))))) :
54
+ Object.keys(this.data).map((key, index) => (h("tr", { class: index === this.selected ? 'selected' : '', onClick: () => this.rowSelectedHandler(this.data[key]) }, this.headers.map((header) => (h("td", null, this.data[key][header.key], " ", header.actions && h("tttx-icon", { class: "align-right", icon: "more_vert" }, h("div", { slot: "popover" }, h("tttx-popover-content", { header: "The humble egg", body: "Most arthropods such as insects, vertebrates (excluding live-bearing mammals), and mollusks lay eggs, although some, such as scorpions, do not.", linkcontext: "Wikipedia_egg", linktext: "Learn more about eggs" })))))))))))));
55
+ }
56
+ static get style() { return tttxTableCss; }
57
+ }, [1, "tttx-table", {
58
+ "headers": [16],
59
+ "data": [16],
60
+ "loading": [4],
61
+ "selected": [2]
62
+ }, [[4, "keydown", "handleKeyDown"]]]);
63
+ function defineCustomElement$1() {
64
+ if (typeof customElements === "undefined") {
65
+ return;
66
+ }
67
+ const components = ["tttx-table", "tttx-icon"];
68
+ components.forEach(tagName => { switch (tagName) {
69
+ case "tttx-table":
70
+ if (!customElements.get(tagName)) {
71
+ customElements.define(tagName, TttxTable$1);
72
+ }
73
+ break;
74
+ case "tttx-icon":
75
+ if (!customElements.get(tagName)) {
76
+ defineCustomElement$2();
77
+ }
78
+ break;
79
+ } });
80
+ }
81
+
82
+ const TttxTable = TttxTable$1;
83
+ const defineCustomElement = defineCustomElement$1;
84
+
85
+ export { TttxTable, defineCustomElement };
@@ -41,18 +41,6 @@ const isComplexType = (o) => {
41
41
  o = typeof o;
42
42
  return o === 'object' || o === 'function';
43
43
  };
44
- /**
45
- * Helper method for querying a `meta` tag that contains a nonce value
46
- * out of a DOM's head.
47
- *
48
- * @param doc The DOM containing the `head` to query against
49
- * @returns The content of the meta tag representing the nonce value, or `undefined` if no tag
50
- * exists or the tag has no content.
51
- */
52
- function queryNonceMetaTagContent(doc) {
53
- var _a, _b, _c;
54
- return (_c = (_b = (_a = doc.head) === null || _a === void 0 ? void 0 : _a.querySelector('meta[name="csp-nonce"]')) === null || _b === void 0 ? void 0 : _b.getAttribute('content')) !== null && _c !== void 0 ? _c : undefined;
55
- }
56
44
  /**
57
45
  * Production h() function based on Preact by
58
46
  * Jason Miller (@developit)
@@ -61,6 +49,7 @@ function queryNonceMetaTagContent(doc) {
61
49
  *
62
50
  * Modified for Stencil's compiler and vdom
63
51
  */
52
+ // const stack: any[] = [];
64
53
  // export function h(nodeName: string | d.FunctionalComponent, vnodeData: d.PropsType, child?: d.ChildType): d.VNode;
65
54
  // export function h(nodeName: string | d.FunctionalComponent, vnodeData: d.PropsType, ...children: d.ChildType[]): d.VNode;
66
55
  const h = (nodeName, vnodeData, ...children) => {
@@ -111,14 +100,6 @@ const h = (nodeName, vnodeData, ...children) => {
111
100
  }
112
101
  return vnode;
113
102
  };
114
- /**
115
- * A utility function for creating a virtual DOM node from a tag and some
116
- * possible text content.
117
- *
118
- * @param tag the tag for this element
119
- * @param text possible text content for the node
120
- * @returns a newly-minted virtual DOM node
121
- */
122
103
  const newVNode = (tag, text) => {
123
104
  const vnode = {
124
105
  $flags$: 0,
@@ -133,12 +114,6 @@ const newVNode = (tag, text) => {
133
114
  return vnode;
134
115
  };
135
116
  const Host = {};
136
- /**
137
- * Check whether a given node is a Host node or not
138
- *
139
- * @param node the virtual DOM node to check
140
- * @returns whether it's a Host node or not
141
- */
142
117
  const isHost = (node) => node && node.$tag$ === Host;
143
118
  /**
144
119
  * Parse a new property value for a given property type.
@@ -171,6 +146,10 @@ const parsePropertyValue = (propValue, propType) => {
171
146
  // but we'll cheat here and say that the string "false" is the boolean false
172
147
  return propValue === 'false' ? false : propValue === '' || !!propValue;
173
148
  }
149
+ if (propType & 2 /* MEMBER_FLAGS.Number */) {
150
+ // force it to be a number
151
+ return parseFloat(propValue);
152
+ }
174
153
  if (propType & 1 /* MEMBER_FLAGS.String */) {
175
154
  // could have been passed as a number or boolean
176
155
  // but we still want it as a string
@@ -227,7 +206,6 @@ const registerStyle = (scopeId, cssText, allowCS) => {
227
206
  styles.set(scopeId, style);
228
207
  };
229
208
  const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
230
- var _a;
231
209
  let scopeId = getScopeId(cmpMeta);
232
210
  const style = styles.get(scopeId);
233
211
  // if an element is NOT connected then getRootNode() will return the wrong root node
@@ -247,11 +225,6 @@ const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
247
225
  styleElm = doc.createElement('style');
248
226
  styleElm.innerHTML = style;
249
227
  }
250
- // Apply CSP nonce to the style tag if it exists
251
- const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
252
- if (nonce != null) {
253
- styleElm.setAttribute('nonce', nonce);
254
- }
255
228
  styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector('link'));
256
229
  }
257
230
  if (appliedStyles) {
@@ -453,21 +426,6 @@ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
453
426
  }
454
427
  return elm;
455
428
  };
456
- /**
457
- * Create DOM nodes corresponding to a list of {@link d.Vnode} objects and
458
- * add them to the DOM in the appropriate place.
459
- *
460
- * @param parentElm the DOM node which should be used as a parent for the new
461
- * DOM nodes
462
- * @param before a child of the `parentElm` which the new children should be
463
- * inserted before (optional)
464
- * @param parentVNode the parent virtual DOM node
465
- * @param vnodes the new child virtual DOM nodes to produce DOM nodes for
466
- * @param startIdx the index in the child virtual DOM nodes at which to start
467
- * creating DOM nodes (inclusive)
468
- * @param endIdx the index in the child virtual DOM nodes at which to stop
469
- * creating DOM nodes (inclusive)
470
- */
471
429
  const addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
472
430
  let containerElm = (parentElm);
473
431
  let childNode;
@@ -484,19 +442,6 @@ const addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) =>
484
442
  }
485
443
  }
486
444
  };
487
- /**
488
- * Remove the DOM elements corresponding to a list of {@link d.VNode} objects.
489
- * This can be used to, for instance, clean up after a list of children which
490
- * should no longer be shown.
491
- *
492
- * This function also handles some of Stencil's slot relocation logic.
493
- *
494
- * @param vnodes a list of virtual DOM nodes to remove
495
- * @param startIdx the index at which to start removing nodes (inclusive)
496
- * @param endIdx the index at which to stop removing nodes (inclusive)
497
- * @param vnode a VNode
498
- * @param elm an element
499
- */
500
445
  const removeVnodes = (vnodes, startIdx, endIdx, vnode, elm) => {
501
446
  for (; startIdx <= endIdx; ++startIdx) {
502
447
  if ((vnode = vnodes[startIdx])) {
@@ -688,8 +633,7 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
688
633
  *
689
634
  * So, in other words, if `key` attrs are not set on VNodes which may be
690
635
  * changing order within a `children` array or something along those lines then
691
- * we could obtain a false negative and then have to do needless re-rendering
692
- * (i.e. we'd say two VNodes aren't equal when in fact they should be).
636
+ * we could obtain a false positive and then have to do needless re-rendering.
693
637
  *
694
638
  * @param leftVNode the first VNode to check
695
639
  * @param rightVNode the second VNode to check
@@ -753,18 +697,6 @@ const patch = (oldVNode, newVNode) => {
753
697
  elm.data = text;
754
698
  }
755
699
  };
756
- /**
757
- * The main entry point for Stencil's virtual DOM-based rendering engine
758
- *
759
- * Given a {@link d.HostRef} container and some virtual DOM nodes, this
760
- * function will handle creating a virtual DOM tree with a single root, patching
761
- * the current virtual DOM tree onto an old one (if any), dealing with slot
762
- * relocation, and reflecting attributes.
763
- *
764
- * @param hostRef data needed to root and render the virtual DOM tree, such as
765
- * the DOM node into which it should be rendered.
766
- * @param renderFnResults the virtual DOM nodes to be rendered
767
- */
768
700
  const renderVdom = (hostRef, renderFnResults) => {
769
701
  const hostElm = hostRef.$hostElement$;
770
702
  const oldVNode = hostRef.$vnode$ || newVNode(null, null);
@@ -805,6 +737,13 @@ const dispatchHooks = (hostRef, isInitialLoad) => {
805
737
  const instance = hostRef.$lazyInstance$ ;
806
738
  let promise;
807
739
  if (isInitialLoad) {
740
+ {
741
+ hostRef.$flags$ |= 256 /* HOST_FLAGS.isListenReady */;
742
+ if (hostRef.$queuedListeners$) {
743
+ hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
744
+ hostRef.$queuedListeners$ = null;
745
+ }
746
+ }
808
747
  {
809
748
  promise = safeCall(instance, 'componentWillLoad');
810
749
  }
@@ -1166,16 +1105,27 @@ const connectedCallback = (elm) => {
1166
1105
  initializeComponent(elm, hostRef, cmpMeta);
1167
1106
  }
1168
1107
  }
1108
+ else {
1109
+ // not the first time this has connected
1110
+ // reattach any event listeners to the host
1111
+ // since they would have been removed when disconnected
1112
+ addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
1113
+ }
1169
1114
  endConnected();
1170
1115
  }
1171
1116
  };
1172
1117
  const disconnectedCallback = (elm) => {
1173
1118
  if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {
1174
- getHostRef(elm);
1119
+ const hostRef = getHostRef(elm);
1120
+ {
1121
+ if (hostRef.$rmListeners$) {
1122
+ hostRef.$rmListeners$.map((rmListener) => rmListener());
1123
+ hostRef.$rmListeners$ = undefined;
1124
+ }
1125
+ }
1175
1126
  }
1176
1127
  };
1177
1128
  const bootstrapLazy = (lazyBundles, options = {}) => {
1178
- var _a;
1179
1129
  const endBootstrap = createTime();
1180
1130
  const cmpTags = [];
1181
1131
  const exclude = options.exclude || [];
@@ -1199,6 +1149,9 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
1199
1149
  {
1200
1150
  cmpMeta.$members$ = compactMeta[2];
1201
1151
  }
1152
+ {
1153
+ cmpMeta.$listeners$ = compactMeta[3];
1154
+ }
1202
1155
  const tagName = cmpMeta.$tagName$;
1203
1156
  const HostElement = class extends HTMLElement {
1204
1157
  // StencilLazyHost
@@ -1249,11 +1202,6 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
1249
1202
  {
1250
1203
  visibilityStyle.innerHTML = cmpTags + HYDRATED_CSS;
1251
1204
  visibilityStyle.setAttribute('data-styles', '');
1252
- // Apply CSP nonce to the style tag if it exists
1253
- const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
1254
- if (nonce != null) {
1255
- visibilityStyle.setAttribute('nonce', nonce);
1256
- }
1257
1205
  head.insertBefore(visibilityStyle, metaCharset ? metaCharset.nextSibling : head.firstChild);
1258
1206
  }
1259
1207
  // Process deferred connectedCallbacks now all components have been registered
@@ -1269,13 +1217,40 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
1269
1217
  // Fallback appLoad event
1270
1218
  endBootstrap();
1271
1219
  };
1272
- /**
1273
- * Assigns the given value to the nonce property on the runtime platform object.
1274
- * During runtime, this value is used to set the nonce attribute on all dynamically created script and style tags.
1275
- * @param nonce The value to be assigned to the platform nonce property.
1276
- * @returns void
1277
- */
1278
- const setNonce = (nonce) => (plt.$nonce$ = nonce);
1220
+ const addHostEventListeners = (elm, hostRef, listeners, attachParentListeners) => {
1221
+ if (listeners) {
1222
+ listeners.map(([flags, name, method]) => {
1223
+ const target = getHostListenerTarget(elm, flags) ;
1224
+ const handler = hostListenerProxy(hostRef, method);
1225
+ const opts = hostListenerOpts(flags);
1226
+ plt.ael(target, name, handler, opts);
1227
+ (hostRef.$rmListeners$ = hostRef.$rmListeners$ || []).push(() => plt.rel(target, name, handler, opts));
1228
+ });
1229
+ }
1230
+ };
1231
+ const hostListenerProxy = (hostRef, methodName) => (ev) => {
1232
+ try {
1233
+ {
1234
+ if (hostRef.$flags$ & 256 /* HOST_FLAGS.isListenReady */) {
1235
+ // instance is ready, let's call it's member method for this event
1236
+ hostRef.$lazyInstance$[methodName](ev);
1237
+ }
1238
+ else {
1239
+ (hostRef.$queuedListeners$ = hostRef.$queuedListeners$ || []).push([methodName, ev]);
1240
+ }
1241
+ }
1242
+ }
1243
+ catch (e) {
1244
+ consoleError(e);
1245
+ }
1246
+ };
1247
+ const getHostListenerTarget = (elm, flags) => {
1248
+ if (flags & 4 /* LISTENER_FLAGS.TargetDocument */)
1249
+ return doc;
1250
+ return elm;
1251
+ };
1252
+ // prettier-ignore
1253
+ const hostListenerOpts = (flags) => (flags & 2 /* LISTENER_FLAGS.Capture */) !== 0;
1279
1254
  const hostRefs = /*@__PURE__*/ new WeakMap();
1280
1255
  const getHostRef = (ref) => hostRefs.get(ref);
1281
1256
  const registerInstance = (lazyInstance, hostRef) => hostRefs.set((hostRef.$lazyInstance$ = lazyInstance), hostRef);
@@ -1291,6 +1266,7 @@ const registerHost = (elm, cmpMeta) => {
1291
1266
  elm['s-p'] = [];
1292
1267
  elm['s-rc'] = [];
1293
1268
  }
1269
+ addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
1294
1270
  return hostRefs.set(elm, hostRef);
1295
1271
  };
1296
1272
  const isMemberInElement = (elm, memberName) => memberName in elm;
@@ -1382,4 +1358,4 @@ const flush = () => {
1382
1358
  const nextTick = /*@__PURE__*/ (cb) => promiseResolve().then(cb);
1383
1359
  const writeTask = /*@__PURE__*/ queueTask(queueDomWrites, true);
1384
1360
 
1385
- export { Host as H, bootstrapLazy as b, createEvent as c, h, promiseResolve as p, registerInstance as r, setNonce as s };
1361
+ export { Host as H, bootstrapLazy as b, createEvent as c, h, promiseResolve as p, registerInstance as r };
@@ -1,8 +1,7 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-058a3cd0.js';
2
- export { s as setNonce } from './index-058a3cd0.js';
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-901bfd55.js';
3
2
 
4
3
  /*
5
- Stencil Client Patch Esm v2.22.3 | MIT Licensed | https://stenciljs.com
4
+ Stencil Client Patch Esm v2.20.0 | MIT Licensed | https://stenciljs.com
6
5
  */
7
6
  const patchEsm = () => {
8
7
  return promiseResolve();
@@ -11,7 +10,7 @@ const patchEsm = () => {
11
10
  const defineCustomElements = (win, options) => {
12
11
  if (typeof window === 'undefined') return Promise.resolve();
13
12
  return patchEsm().then(() => {
14
- return bootstrapLazy([["tttx-button",[[1,"tttx-button",{"notext":[4],"icon":[1],"iconposition":[1],"design":[1]}]]],["tttx-standalone-input",[[2,"tttx-standalone-input",{"label":[1],"showerrormsg":[4],"errormsg":[1],"iconleft":[1],"iconright":[1],"inputAutocapitalize":[1,"input-autocapitalize"],"inputAutofocus":[4,"input-autofocus"],"inputKeyhint":[1,"input-keyhint"],"inputIndex":[8,"input-index"],"inputTitle":[1,"input-title"],"autocomplete":[1],"checked":[4],"disabled":[4],"max":[8],"maxlength":[8],"min":[8],"minlength":[8],"name":[1],"pattern":[1],"placeholder":[1],"readonly":[8],"required":[4],"step":[8],"type":[1],"value":[1032]}]]],["tttx-keyvalue-block",[[1,"tttx-keyvalue-block",{"keyvalues":[8],"horizontal":[4]}]]],["tttx-loading-spinner",[[1,"tttx-loading-spinner",{"loadingMessage":[1028,"loading-message"],"size":[1025]}]]],["tttx-icon",[[1,"tttx-icon",{"icon":[1],"color":[1]}]]]], options);
13
+ return bootstrapLazy([["tttx-icon",[[1,"tttx-icon",{"icon":[1],"color":[1]}]]],["tttx-button",[[1,"tttx-button",{"notext":[4],"icon":[1],"iconposition":[1],"design":[1]}]]],["tttx-list",[[1,"tttx-list",{"data":[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-table",[[1,"tttx-table",{"headers":[16],"data":[16],"loading":[4],"selected":[2]},[[4,"keydown","handleKeyDown"]]]]],["tttx-keyvalue-block",[[1,"tttx-keyvalue-block",{"keyvalues":[8],"horizontal":[4]}]]],["tttx-loading-spinner",[[1,"tttx-loading-spinner",{"loadingMessage":[1028,"loading-message"],"size":[1025]}]]]], options);
15
14
  });
16
15
  };
17
16
 
@@ -1 +1 @@
1
- var __assign=this&&this.__assign||function(){return __assign=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var s in t=arguments[r])Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e},__assign.apply(this,arguments)},StyleNode=function(){this.start=0,this.end=0,this.previous=null,this.parent=null,this.rules=null,this.parsedCssText="",this.cssText="",this.atRule=!1,this.type=0,this.keyframesName="",this.selector="",this.parsedSelector=""};function parse(e){return parseCss(lex(e=clean(e)),e)}function clean(e){return e.replace(RX.comments,"").replace(RX.port,"")}function lex(e){var t=new StyleNode;t.start=0,t.end=e.length;for(var r=t,n=0,s=e.length;n<s;n++)if(e[n]===OPEN_BRACE){r.rules||(r.rules=[]);var o=r,a=o.rules[o.rules.length-1]||null;(r=new StyleNode).start=n+1,r.parent=o,r.previous=a,o.rules.push(r)}else e[n]===CLOSE_BRACE&&(r.end=n+1,r=r.parent||t);return t}function parseCss(e,t){var r=t.substring(e.start,e.end-1);if(e.parsedCssText=e.cssText=r.trim(),e.parent){var n=e.previous?e.previous.end:e.parent.start;r=(r=(r=_expandUnicodeEscapes(r=t.substring(n,e.start-1))).replace(RX.multipleSpaces," ")).substring(r.lastIndexOf(";")+1);var s=e.parsedSelector=e.selector=r.trim();e.atRule=0===s.indexOf(AT_START),e.atRule?0===s.indexOf(MEDIA_START)?e.type=types.MEDIA_RULE:s.match(RX.keyframesRule)&&(e.type=types.KEYFRAMES_RULE,e.keyframesName=e.selector.split(RX.multipleSpaces).pop()):0===s.indexOf(VAR_START)?e.type=types.MIXIN_RULE:e.type=types.STYLE_RULE}var o=e.rules;if(o)for(var a=0,i=o.length,l=void 0;a<i&&(l=o[a]);a++)parseCss(l,t);return e}function _expandUnicodeEscapes(e){return e.replace(/\\([0-9a-f]{1,6})\s/gi,(function(){for(var e=arguments[1],t=6-e.length;t--;)e="0"+e;return"\\"+e}))}var types={STYLE_RULE:1,KEYFRAMES_RULE:7,MEDIA_RULE:4,MIXIN_RULE:1e3},OPEN_BRACE="{",CLOSE_BRACE="}",RX={comments:/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,port:/@import[^;]*;/gim,customProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,mixinProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,mixinApply:/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,varApply:/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,keyframesRule:/^@[^\s]*keyframes/,multipleSpaces:/\s+/g},VAR_START="--",MEDIA_START="@media",AT_START="@",VAR_USAGE_START=/\bvar\(/,VAR_ASSIGN_START=/\B--[\w-]+\s*:/,COMMENTS=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,TRAILING_LINES=/^[\t ]+\n/gm;function findRegex(e,t,r){e.lastIndex=0;var n=t.substring(r).match(e);if(n){var s=r+n.index;return{start:s,end:s+n[0].length}}return null}function resolveVar(e,t,r){return e[t]?e[t]:r?executeTemplate(r,e):""}function findVarEndIndex(e,t){for(var r=0,n=t;n<e.length;n++){var s=e[n];if("("===s)r++;else if(")"===s&&--r<=0)return n+1}return n}function parseVar(e,t){var r=findRegex(VAR_USAGE_START,e,t);if(!r)return null;var n=findVarEndIndex(e,r.start),s=e.substring(r.end,n-1).split(","),o=s[0],a=s.slice(1);return{start:r.start,end:n,propName:o.trim(),fallback:a.length>0?a.join(",").trim():void 0}}function compileVar(e,t,r){var n=parseVar(e,r);if(!n)return t.push(e.substring(r,e.length)),e.length;var s=n.propName,o=null!=n.fallback?compileTemplate(n.fallback):void 0;return t.push(e.substring(r,n.start),(function(e){return resolveVar(e,s,o)})),n.end}function executeTemplate(e,t){for(var r="",n=0;n<e.length;n++){var s=e[n];r+="string"==typeof s?s:s(t)}return r}function findEndValue(e,t){for(var r=!1,n=!1,s=t;s<e.length;s++){var o=e[s];if(r)n&&'"'===o&&(r=!1),n||"'"!==o||(r=!1);else if('"'===o)r=!0,n=!0;else if("'"===o)r=!0,n=!1;else{if(";"===o)return s+1;if("}"===o)return s}}return s}function removeCustomAssigns(e){for(var t="",r=0;;){var n=findRegex(VAR_ASSIGN_START,e,r),s=n?n.start:e.length;if(t+=e.substring(r,s),!n)break;r=findEndValue(e,s)}return t}function compileTemplate(e){var t=0;e=removeCustomAssigns(e=e.replace(COMMENTS,"")).replace(TRAILING_LINES,"");for(var r=[];t<e.length;)t=compileVar(e,r,t);return r}function resolveValues(e){var t={};e.forEach((function(e){e.declarations.forEach((function(e){t[e.prop]=e.value}))}));for(var r={},n=Object.entries(t),s=function(e){var t=!1;if(n.forEach((function(e){var n=e[0],s=executeTemplate(e[1],r);s!==r[n]&&(r[n]=s,t=!0)})),!t)return"break"},o=0;o<10;o++){if("break"===s())break}return r}function getSelectors(e,t){if(void 0===t&&(t=0),!e.rules)return[];var r=[];return e.rules.filter((function(e){return e.type===types.STYLE_RULE})).forEach((function(e){var n=getDeclarations(e.cssText);n.length>0&&e.parsedSelector.split(",").forEach((function(e){e=e.trim(),r.push({selector:e,declarations:n,specificity:computeSpecificity(),nu:t})})),t++})),r}function computeSpecificity(e){return 1}var IMPORTANT="!important",FIND_DECLARATIONS=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gm;function getDeclarations(e){for(var t,r=[];t=FIND_DECLARATIONS.exec(e.trim());){var n=normalizeValue(t[2]),s=n.value,o=n.important;r.push({prop:t[1].trim(),value:compileTemplate(s),important:o})}return r}function normalizeValue(e){var t=(e=e.replace(/\s+/gim," ").trim()).endsWith(IMPORTANT);return t&&(e=e.slice(0,e.length-IMPORTANT.length).trim()),{value:e,important:t}}function getActiveSelectors(e,t,r){var n=[],s=getScopesForElement(t,e);return r.forEach((function(e){return n.push(e)})),s.forEach((function(e){return n.push(e)})),sortSelectors(getSelectorsForScopes(n).filter((function(t){return matches(e,t.selector)})))}function getScopesForElement(e,t){for(var r=[];t;){var n=e.get(t);n&&r.push(n),t=t.parentElement}return r}function getSelectorsForScopes(e){var t=[];return e.forEach((function(e){t.push.apply(t,e.selectors)})),t}function sortSelectors(e){return e.sort((function(e,t){return e.specificity===t.specificity?e.nu-t.nu:e.specificity-t.specificity})),e}function matches(e,t){return":root"===t||"html"===t||e.matches(t)}function parseCSS(e){var t=parse(e),r=compileTemplate(e);return{original:e,template:r,selectors:getSelectors(t),usesCssVars:r.length>1}}function addGlobalStyle(e,t){if(e.some((function(e){return e.styleEl===t})))return!1;var r=parseCSS(t.textContent);return r.styleEl=t,e.push(r),!0}function updateGlobalScopes(e){var t=resolveValues(getSelectorsForScopes(e));e.forEach((function(e){e.usesCssVars&&(e.styleEl.textContent=executeTemplate(e.template,t))}))}function reScope(e,t){var r=e.template.map((function(r){return"string"==typeof r?replaceScope(r,e.scopeId,t):r})),n=e.selectors.map((function(r){return __assign(__assign({},r),{selector:replaceScope(r.selector,e.scopeId,t)})}));return __assign(__assign({},e),{template:r,selectors:n,scopeId:t})}function replaceScope(e,t,r){return e=replaceAll(e,"\\.".concat(t),".".concat(r))}function replaceAll(e,t,r){return e.replace(new RegExp(t,"g"),r)}function loadDocument(e,t){return loadDocumentStyles(e,t),loadDocumentLinks(e,t).then((function(){updateGlobalScopes(t)}))}function startWatcher(e,t){"undefined"!=typeof MutationObserver&&new MutationObserver((function(){loadDocumentStyles(e,t)&&updateGlobalScopes(t)})).observe(document.head,{childList:!0})}function loadDocumentLinks(e,t){for(var r=[],n=e.querySelectorAll('link[rel="stylesheet"][href]:not([data-no-shim])'),s=0;s<n.length;s++)r.push(addGlobalLink(e,t,n[s]));return Promise.all(r)}function loadDocumentStyles(e,t){return Array.from(e.querySelectorAll("style:not([data-styles]):not([data-no-shim])")).map((function(e){return addGlobalStyle(t,e)})).some(Boolean)}function addGlobalLink(e,t,r){var n=r.href;return fetch(n).then((function(e){return e.text()})).then((function(s){if(hasCssVariables(s)&&r.parentNode){hasRelativeUrls(s)&&(s=fixRelativeUrls(s,n));var o=e.createElement("style");o.setAttribute("data-styles",""),o.textContent=s,addGlobalStyle(t,o),r.parentNode.insertBefore(o,r),r.remove()}})).catch((function(e){console.error(e)}))}var CSS_VARIABLE_REGEXP=/[\s;{]--[-a-zA-Z0-9]+\s*:/m;function hasCssVariables(e){return e.indexOf("var(")>-1||CSS_VARIABLE_REGEXP.test(e)}var CSS_URL_REGEXP=/url[\s]*\([\s]*['"]?(?!(?:https?|data)\:|\/)([^\'\"\)]*)[\s]*['"]?\)[\s]*/gim;function hasRelativeUrls(e){return CSS_URL_REGEXP.lastIndex=0,CSS_URL_REGEXP.test(e)}function fixRelativeUrls(e,t){var r=t.replace(/[^/]*$/,"");return e.replace(CSS_URL_REGEXP,(function(e,t){var n=r+t;return e.replace(t,n)}))}var CustomStyle=function(){function e(e,t){this.win=e,this.doc=t,this.count=0,this.hostStyleMap=new WeakMap,this.hostScopeMap=new WeakMap,this.globalScopes=[],this.scopesMap=new Map,this.didInit=!1}return e.prototype.i=function(){var e=this;return this.didInit||!this.win.requestAnimationFrame?Promise.resolve():(this.didInit=!0,new Promise((function(t){e.win.requestAnimationFrame((function(){startWatcher(e.doc,e.globalScopes),loadDocument(e.doc,e.globalScopes).then((function(){return t()}))}))})))},e.prototype.addLink=function(e){var t=this;return addGlobalLink(this.doc,this.globalScopes,e).then((function(){t.updateGlobal()}))},e.prototype.addGlobalStyle=function(e){addGlobalStyle(this.globalScopes,e)&&this.updateGlobal()},e.prototype.createHostStyle=function(e,t,r,n){if(this.hostScopeMap.has(e))throw new Error("host style already created");var s=this.registerHostTemplate(r,t,n),o=this.doc.createElement("style");return o.setAttribute("data-no-shim",""),s.usesCssVars?n?(o["s-sc"]=t="".concat(s.scopeId,"-").concat(this.count),o.textContent="/*needs update*/",this.hostStyleMap.set(e,o),this.hostScopeMap.set(e,reScope(s,t)),this.count++):(s.styleEl=o,s.usesCssVars||(o.textContent=executeTemplate(s.template,{})),this.globalScopes.push(s),this.updateGlobal(),this.hostScopeMap.set(e,s)):o.textContent=r,o},e.prototype.removeHost=function(e){var t=this.hostStyleMap.get(e);t&&t.remove(),this.hostStyleMap.delete(e),this.hostScopeMap.delete(e)},e.prototype.updateHost=function(e){var t=this.hostScopeMap.get(e);if(t&&t.usesCssVars&&t.isScoped){var r=this.hostStyleMap.get(e);if(r){var n=resolveValues(getActiveSelectors(e,this.hostScopeMap,this.globalScopes));r.textContent=executeTemplate(t.template,n)}}},e.prototype.updateGlobal=function(){updateGlobalScopes(this.globalScopes)},e.prototype.registerHostTemplate=function(e,t,r){var n=this.scopesMap.get(t);return n||((n=parseCSS(e)).scopeId=t,n.isScoped=r,this.scopesMap.set(t,n)),n},e}();!function(e){!e||e.__cssshim||e.CSS&&e.CSS.supports&&e.CSS.supports("color","var(--c)")||(e.__cssshim=new CustomStyle(e,e.document))}("undefined"!=typeof window&&window);
1
+ var __assign=this&&this.__assign||function(){return(__assign=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var s in t=arguments[r])Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e}).apply(this,arguments)},StyleNode=function(){this.start=0,this.end=0,this.previous=null,this.parent=null,this.rules=null,this.parsedCssText="",this.cssText="",this.atRule=!1,this.type=0,this.keyframesName="",this.selector="",this.parsedSelector=""};function parse(e){return parseCss(lex(e=clean(e)),e)}function clean(e){return e.replace(RX.comments,"").replace(RX.port,"")}function lex(e){var t=new StyleNode;t.start=0,t.end=e.length;for(var r=t,n=0,s=e.length;n<s;n++)if(e[n]===OPEN_BRACE){r.rules||(r.rules=[]);var o=r,a=o.rules[o.rules.length-1]||null;(r=new StyleNode).start=n+1,r.parent=o,r.previous=a,o.rules.push(r)}else e[n]===CLOSE_BRACE&&(r.end=n+1,r=r.parent||t);return t}function parseCss(e,t){var r=t.substring(e.start,e.end-1);if(e.parsedCssText=e.cssText=r.trim(),e.parent){var n=e.previous?e.previous.end:e.parent.start;r=(r=(r=_expandUnicodeEscapes(r=t.substring(n,e.start-1))).replace(RX.multipleSpaces," ")).substring(r.lastIndexOf(";")+1);var s=e.parsedSelector=e.selector=r.trim();e.atRule=0===s.indexOf(AT_START),e.atRule?0===s.indexOf(MEDIA_START)?e.type=types.MEDIA_RULE:s.match(RX.keyframesRule)&&(e.type=types.KEYFRAMES_RULE,e.keyframesName=e.selector.split(RX.multipleSpaces).pop()):0===s.indexOf(VAR_START)?e.type=types.MIXIN_RULE:e.type=types.STYLE_RULE}var o=e.rules;if(o)for(var a=0,i=o.length,l=void 0;a<i&&(l=o[a]);a++)parseCss(l,t);return e}function _expandUnicodeEscapes(e){return e.replace(/\\([0-9a-f]{1,6})\s/gi,(function(){for(var e=arguments[1],t=6-e.length;t--;)e="0"+e;return"\\"+e}))}var types={STYLE_RULE:1,KEYFRAMES_RULE:7,MEDIA_RULE:4,MIXIN_RULE:1e3},OPEN_BRACE="{",CLOSE_BRACE="}",RX={comments:/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,port:/@import[^;]*;/gim,customProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,mixinProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,mixinApply:/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,varApply:/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,keyframesRule:/^@[^\s]*keyframes/,multipleSpaces:/\s+/g},VAR_START="--",MEDIA_START="@media",AT_START="@",VAR_USAGE_START=/\bvar\(/,VAR_ASSIGN_START=/\B--[\w-]+\s*:/,COMMENTS=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,TRAILING_LINES=/^[\t ]+\n/gm;function findRegex(e,t,r){e.lastIndex=0;var n=t.substring(r).match(e);if(n){var s=r+n.index;return{start:s,end:s+n[0].length}}return null}function resolveVar(e,t,r){return e[t]?e[t]:r?executeTemplate(r,e):""}function findVarEndIndex(e,t){for(var r=0,n=t;n<e.length;n++){var s=e[n];if("("===s)r++;else if(")"===s&&--r<=0)return n+1}return n}function parseVar(e,t){var r=findRegex(VAR_USAGE_START,e,t);if(!r)return null;var n=findVarEndIndex(e,r.start),s=e.substring(r.end,n-1).split(","),o=s[0],a=s.slice(1);return{start:r.start,end:n,propName:o.trim(),fallback:a.length>0?a.join(",").trim():void 0}}function compileVar(e,t,r){var n=parseVar(e,r);if(!n)return t.push(e.substring(r,e.length)),e.length;var s=n.propName,o=null!=n.fallback?compileTemplate(n.fallback):void 0;return t.push(e.substring(r,n.start),(function(e){return resolveVar(e,s,o)})),n.end}function executeTemplate(e,t){for(var r="",n=0;n<e.length;n++){var s=e[n];r+="string"==typeof s?s:s(t)}return r}function findEndValue(e,t){for(var r=!1,n=!1,s=t;s<e.length;s++){var o=e[s];if(r)n&&'"'===o&&(r=!1),n||"'"!==o||(r=!1);else if('"'===o)r=!0,n=!0;else if("'"===o)r=!0,n=!1;else{if(";"===o)return s+1;if("}"===o)return s}}return s}function removeCustomAssigns(e){for(var t="",r=0;;){var n=findRegex(VAR_ASSIGN_START,e,r),s=n?n.start:e.length;if(t+=e.substring(r,s),!n)break;r=findEndValue(e,s)}return t}function compileTemplate(e){var t=0;e=removeCustomAssigns(e=e.replace(COMMENTS,"")).replace(TRAILING_LINES,"");for(var r=[];t<e.length;)t=compileVar(e,r,t);return r}function resolveValues(e){var t={};e.forEach((function(e){e.declarations.forEach((function(e){t[e.prop]=e.value}))}));for(var r={},n=Object.entries(t),s=function(e){var t=!1;if(n.forEach((function(e){var n=e[0],s=executeTemplate(e[1],r);s!==r[n]&&(r[n]=s,t=!0)})),!t)return"break"},o=0;o<10;o++){if("break"===s())break}return r}function getSelectors(e,t){if(void 0===t&&(t=0),!e.rules)return[];var r=[];return e.rules.filter((function(e){return e.type===types.STYLE_RULE})).forEach((function(e){var n=getDeclarations(e.cssText);n.length>0&&e.parsedSelector.split(",").forEach((function(e){e=e.trim(),r.push({selector:e,declarations:n,specificity:computeSpecificity(),nu:t})})),t++})),r}function computeSpecificity(e){return 1}var IMPORTANT="!important",FIND_DECLARATIONS=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gm;function getDeclarations(e){for(var t,r=[];t=FIND_DECLARATIONS.exec(e.trim());){var n=normalizeValue(t[2]),s=n.value,o=n.important;r.push({prop:t[1].trim(),value:compileTemplate(s),important:o})}return r}function normalizeValue(e){var t=(e=e.replace(/\s+/gim," ").trim()).endsWith(IMPORTANT);return t&&(e=e.slice(0,e.length-IMPORTANT.length).trim()),{value:e,important:t}}function getActiveSelectors(e,t,r){var n=[],s=getScopesForElement(t,e);return r.forEach((function(e){return n.push(e)})),s.forEach((function(e){return n.push(e)})),sortSelectors(getSelectorsForScopes(n).filter((function(t){return matches(e,t.selector)})))}function getScopesForElement(e,t){for(var r=[];t;){var n=e.get(t);n&&r.push(n),t=t.parentElement}return r}function getSelectorsForScopes(e){var t=[];return e.forEach((function(e){t.push.apply(t,e.selectors)})),t}function sortSelectors(e){return e.sort((function(e,t){return e.specificity===t.specificity?e.nu-t.nu:e.specificity-t.specificity})),e}function matches(e,t){return":root"===t||"html"===t||e.matches(t)}function parseCSS(e){var t=parse(e),r=compileTemplate(e);return{original:e,template:r,selectors:getSelectors(t),usesCssVars:r.length>1}}function addGlobalStyle(e,t){if(e.some((function(e){return e.styleEl===t})))return!1;var r=parseCSS(t.textContent);return r.styleEl=t,e.push(r),!0}function updateGlobalScopes(e){var t=resolveValues(getSelectorsForScopes(e));e.forEach((function(e){e.usesCssVars&&(e.styleEl.textContent=executeTemplate(e.template,t))}))}function reScope(e,t){var r=e.template.map((function(r){return"string"==typeof r?replaceScope(r,e.scopeId,t):r})),n=e.selectors.map((function(r){return __assign(__assign({},r),{selector:replaceScope(r.selector,e.scopeId,t)})}));return __assign(__assign({},e),{template:r,selectors:n,scopeId:t})}function replaceScope(e,t,r){return e=replaceAll(e,"\\.".concat(t),".".concat(r))}function replaceAll(e,t,r){return e.replace(new RegExp(t,"g"),r)}function loadDocument(e,t){return loadDocumentStyles(e,t),loadDocumentLinks(e,t).then((function(){updateGlobalScopes(t)}))}function startWatcher(e,t){"undefined"!=typeof MutationObserver&&new MutationObserver((function(){loadDocumentStyles(e,t)&&updateGlobalScopes(t)})).observe(document.head,{childList:!0})}function loadDocumentLinks(e,t){for(var r=[],n=e.querySelectorAll('link[rel="stylesheet"][href]:not([data-no-shim])'),s=0;s<n.length;s++)r.push(addGlobalLink(e,t,n[s]));return Promise.all(r)}function loadDocumentStyles(e,t){return Array.from(e.querySelectorAll("style:not([data-styles]):not([data-no-shim])")).map((function(e){return addGlobalStyle(t,e)})).some(Boolean)}function addGlobalLink(e,t,r){var n=r.href;return fetch(n).then((function(e){return e.text()})).then((function(s){if(hasCssVariables(s)&&r.parentNode){hasRelativeUrls(s)&&(s=fixRelativeUrls(s,n));var o=e.createElement("style");o.setAttribute("data-styles",""),o.textContent=s,addGlobalStyle(t,o),r.parentNode.insertBefore(o,r),r.remove()}})).catch((function(e){console.error(e)}))}var CSS_VARIABLE_REGEXP=/[\s;{]--[-a-zA-Z0-9]+\s*:/m;function hasCssVariables(e){return e.indexOf("var(")>-1||CSS_VARIABLE_REGEXP.test(e)}var CSS_URL_REGEXP=/url[\s]*\([\s]*['"]?(?!(?:https?|data)\:|\/)([^\'\"\)]*)[\s]*['"]?\)[\s]*/gim;function hasRelativeUrls(e){return CSS_URL_REGEXP.lastIndex=0,CSS_URL_REGEXP.test(e)}function fixRelativeUrls(e,t){var r=t.replace(/[^/]*$/,"");return e.replace(CSS_URL_REGEXP,(function(e,t){var n=r+t;return e.replace(t,n)}))}var CustomStyle=function(){function e(e,t){this.win=e,this.doc=t,this.count=0,this.hostStyleMap=new WeakMap,this.hostScopeMap=new WeakMap,this.globalScopes=[],this.scopesMap=new Map,this.didInit=!1}return e.prototype.i=function(){var e=this;return this.didInit||!this.win.requestAnimationFrame?Promise.resolve():(this.didInit=!0,new Promise((function(t){e.win.requestAnimationFrame((function(){startWatcher(e.doc,e.globalScopes),loadDocument(e.doc,e.globalScopes).then((function(){return t()}))}))})))},e.prototype.addLink=function(e){var t=this;return addGlobalLink(this.doc,this.globalScopes,e).then((function(){t.updateGlobal()}))},e.prototype.addGlobalStyle=function(e){addGlobalStyle(this.globalScopes,e)&&this.updateGlobal()},e.prototype.createHostStyle=function(e,t,r,n){if(this.hostScopeMap.has(e))throw new Error("host style already created");var s=this.registerHostTemplate(r,t,n),o=this.doc.createElement("style");return o.setAttribute("data-no-shim",""),s.usesCssVars?n?(o["s-sc"]=t="".concat(s.scopeId,"-").concat(this.count),o.textContent="/*needs update*/",this.hostStyleMap.set(e,o),this.hostScopeMap.set(e,reScope(s,t)),this.count++):(s.styleEl=o,s.usesCssVars||(o.textContent=executeTemplate(s.template,{})),this.globalScopes.push(s),this.updateGlobal(),this.hostScopeMap.set(e,s)):o.textContent=r,o},e.prototype.removeHost=function(e){var t=this.hostStyleMap.get(e);t&&t.remove(),this.hostStyleMap.delete(e),this.hostScopeMap.delete(e)},e.prototype.updateHost=function(e){var t=this.hostScopeMap.get(e);if(t&&t.usesCssVars&&t.isScoped){var r=this.hostStyleMap.get(e);if(r){var n=resolveValues(getActiveSelectors(e,this.hostScopeMap,this.globalScopes));r.textContent=executeTemplate(t.template,n)}}},e.prototype.updateGlobal=function(){updateGlobalScopes(this.globalScopes)},e.prototype.registerHostTemplate=function(e,t,r){var n=this.scopesMap.get(t);return n||((n=parseCSS(e)).scopeId=t,n.isScoped=r,this.scopesMap.set(t,n)),n},e}();!function(e){!e||e.__cssshim||e.CSS&&e.CSS.supports&&e.CSS.supports("color","var(--c)")||(e.__cssshim=new CustomStyle(e,e.document))}("undefined"!=typeof window&&window);
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, h, H as Host } from './index-058a3cd0.js';
1
+ import { r as registerInstance, h, H as Host } from './index-901bfd55.js';
2
2
 
3
3
  const tttxButtonCss = ".material-symbols-rounded{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}.button{font-family:Roboto, serif;box-sizing:border-box;height:36px;min-width:36px;padding:0;margin:0;background:transparent;color:#212121;border:1px solid #c8c8c8;border-radius:4px;text-transform:uppercase;display:flex;justify-content:left;align-items:center;font-size:14px;font-weight:400}.button-content{display:block;padding:0 16px}.icon-left,.icon-right{margin-top:4px}.iconleft{padding-left:8px}.iconleft .button-content{padding-left:4px}.iconright{padding-right:8px}.iconright .button-content{padding-right:4px}.notext{padding:0 6px}.button:hover{background:rgba(17, 17, 17, 0.1);border:1px solid #D5D5D5}.button:active{background:rgba(17, 17, 17, 0.2);border:1px solid #D5D5D5}.primary{background:#1479c6;border:1px solid #1479c6;color:white}.primary:hover{background:#146EB3;border:1px solid #146EB3}.primary:active{background:#1464A2;border:1px solid #1464A2}.borderless{background:transparent;border:none;color:#212121}.borderless:hover{background:rgba(17, 17, 17, 0.1);border:none}.borderless:active{background:rgba(17, 17, 17, 0.2);border:none}.danger{background:#DC0000;border:1px solid #DC0000;color:white}.danger:hover{background:#C60000;border:1px solid #C60000}.danger:active{background:#B00000;border:1px solid #B00000}.disabled{background:#aeaeae;border:none;color:#4c4c4c;cursor:not-allowed}.disabled:hover{background:#aeaeae;border:none;color:#4c4c4c;cursor:not-allowed}.disabled:active{background:#aeaeae;border:none;color:#4c4c4c;cursor:not-allowed}:host{display:inline-block}.spacingleft{margin-left:8px}";
4
4
 
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, h, H as Host } from './index-058a3cd0.js';
1
+ import { r as registerInstance, h, H as Host } from './index-901bfd55.js';
2
2
 
3
3
  const tttxIconCss = ".material-symbols-rounded{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}.material-symbols-rounded{font-family:\"Material Symbols Rounded\", sans-serif;font-weight:400;font-style:normal;font-size:24px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;color:#9e9e9e}:host{display:inline-block;cursor:default;user-select:none}.icon-size{width:24px;height:24px}.tooltip{background:#ffffff;color:#343434;font-weight:bold;padding:8px 16px;font-size:13px;border-radius:4px;box-shadow:0 0 5px 1px rgba(0, 0, 0, 0.3);display:none}.tooltip[data-show]{display:block}.arrow,.arrow::before{position:absolute;width:8px;height:8px;background:inherit}.arrow{visibility:hidden}.arrow::before{visibility:visible;content:\"\";transform:rotate(45deg)}.tooltip[data-popper-placement^=top]>.arrow{bottom:-4px}.tooltip[data-popper-placement^=bottom]>.arrow{top:-4px}.tooltip[data-popper-placement^=left]>.arrow{right:-4px}.tooltip[data-popper-placement^=right]>.arrow{left:-4px}.red{color:#dc0000}.orange{color:#f59500}.blue{color:#1479c6}.green{color:#a2bb31}.gray{color:#757575}.black{color:#212121}.white{color:white}";
4
4
 
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, h, H as Host } from './index-058a3cd0.js';
1
+ import { r as registerInstance, h, H as Host } from './index-901bfd55.js';
2
2
 
3
3
  const tttxKeyvalueBlockCss = ":host{display:block}dl{margin:0;padding:0;font-family:\"Roboto\", sans-serif;cursor:default}dt{font-weight:400;line-height:21px;font-size:16px}dt,dt.subTitle{color:#757575}dt.mainTitle{color:#212121}dd{margin:0;font-weight:400;font-size:16px;color:#212121;line-height:21px;margin-bottom:18px}dl.horizontal{display:flex;flex-direction:row;width:100%}dl.horizontal div{flex-grow:1}@media (max-width: 769px){dl.horizontal{flex-wrap:wrap}dl.horizontal div{width:50%}}@media (max-width: 600px){dl.horizontal div{width:100%}}";
4
4
 
@@ -27,20 +27,17 @@ const TttxKeyvalueBlock = class {
27
27
  for (let i = 0; i < values.length; i++) {
28
28
  const value = values[i];
29
29
  if (this.horizontal) {
30
- elements.push(h("div", null, h("dt", { class: 'mainTitle' }, value.title), h("dt", { class: 'subTitle' }, value.subTitle), h("dd", null, value.data)));
30
+ elements.push(h("div", null, h("dt", { class: "mainTitle" }, value.title), h("dt", { class: "subTitle" }, value.subTitle), h("dd", null, value.data)));
31
31
  }
32
32
  else {
33
- elements.push(h("dt", { class: 'mainTitle' }, value.title));
34
- elements.push(h("dt", { class: 'subTitle' }, value.subTitle));
33
+ elements.push(h("dt", { class: "mainTitle" }, value.title));
34
+ elements.push(h("dt", { class: "subTitle" }, value.subTitle));
35
35
  elements.push(h("dd", null, value.data));
36
36
  }
37
37
  }
38
38
  return elements;
39
39
  }
40
40
  render() {
41
- if (!this.keyvalues) {
42
- return;
43
- }
44
41
  let values;
45
42
  if (typeof this.keyvalues === 'string') {
46
43
  values = JSON.parse(this.keyvalues);
@@ -55,7 +52,7 @@ const TttxKeyvalueBlock = class {
55
52
  else {
56
53
  elements = this.renderSingleElements(values);
57
54
  }
58
- return (h(Host, null, h("dl", { class: this.horizontal ? 'horizontal' : null }, elements)));
55
+ return (h(Host, null, h("dl", { class: this.horizontal ? "horizontal" : null }, elements)));
59
56
  }
60
57
  };
61
58
  TttxKeyvalueBlock.style = tttxKeyvalueBlockCss;
@@ -0,0 +1,30 @@
1
+ import { r as registerInstance, c as createEvent, h } from './index-901bfd55.js';
2
+
3
+ const tttxListCss = ".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:flex;flex-direction:column}.list{margin:0;padding:0}.item{list-style:none;margin:0;padding:0;border-bottom:1px solid #d5d5d5;height:36px;display:flex;align-items:center}.item:first-of-type{border-top:1px solid #d5d5d5}.align-right{margin-left:auto}.item-content{display:flex;align-items:center}";
4
+
5
+ const TttxList = class {
6
+ constructor(hostRef) {
7
+ registerInstance(this, hostRef);
8
+ this.listSelectedEvent = createEvent(this, "listItemClick", 7);
9
+ this.data = undefined;
10
+ }
11
+ renderListItem(item) {
12
+ // Onclick should return some row data. May need to rethink how we handle data, since we don't want to return a template
13
+ // Alternatively, could return some sort of row id/index instead
14
+ return h("li", { class: "item", onClick: () => { this.listSelectedEvent.emit({}); } }, item.element && h("span", { class: "item-content", innerHTML: item.element }), item.chevron && h("tttx-icon", { class: "align-right", icon: "chevron_right" }));
15
+ }
16
+ render() {
17
+ if (!this.data)
18
+ return;
19
+ if (typeof this.data === 'string') {
20
+ this._data = JSON.parse(this.data);
21
+ }
22
+ else {
23
+ this._data = this.data;
24
+ }
25
+ return (h("ul", { class: "list" }, this._data && this._data.map((item) => this.renderListItem(item))));
26
+ }
27
+ };
28
+ TttxList.style = tttxListCss;
29
+
30
+ export { TttxList as tttx_list };
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, h } from './index-058a3cd0.js';
1
+ import { r as registerInstance, h } from './index-901bfd55.js';
2
2
 
3
3
  const tttxLoadingSpinnerCss = ".material-symbols-rounded{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}.spinner-container{position:absolute}.loading-box{display:flex;align-items:center;justify-content:center}.loading-text{font-size:16px;font-weight:400;padding-top:10px;text-align:center}.spinner{border:solid #1479c6;border-bottom-color:#d5d5d5;border-radius:50%;position:relative;box-sizing:border-box;animation:rotation 1s linear infinite}.spinner.small{height:20px;width:20px;border-width:4px}.spinner.large{height:60px;width:60px;border-width:8px}@keyframes rotation{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}";
4
4
 
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, c as createEvent, h, H as Host } from './index-058a3cd0.js';
1
+ import { r as registerInstance, c as createEvent, h, H as Host } from './index-901bfd55.js';
2
2
 
3
3
  const tttxStandaloneInputCss = ".material-symbols-rounded.sc-tttx-standalone-input{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}.material-symbols-rounded.sc-tttx-standalone-input{font-family:\"Material Symbols Rounded\", sans-serif;font-weight:400;font-style:normal;font-size:24px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;color:#9e9e9e}.icon-left.sc-tttx-standalone-input,.icon-right.sc-tttx-standalone-input{flex-basis:24px}.icon-left.sc-tttx-standalone-input span.sc-tttx-standalone-input,.icon-right.sc-tttx-standalone-input span.sc-tttx-standalone-input{font-size:24px;line-height:24px;text-align:center;display:block;width:24px;height:24px;margin-top:4px}.icon-left.sc-tttx-standalone-input span.sc-tttx-standalone-input{margin-left:4px}.icon-right.sc-tttx-standalone-input span.sc-tttx-standalone-input{margin-right:4px}.icon-right.sc-tttx-standalone-input{margin-top:5px;margin-right:4px}.icon-left.sc-tttx-standalone-input{margin-top:5px;margin-left:4px}.iconleft.sc-tttx-standalone-input .input.sc-tttx-standalone-input{padding-left:4px}.iconright.sc-tttx-standalone-input .input.sc-tttx-standalone-input{padding-right:4px}.focused.sc-tttx-standalone-input{border-color:#1479c6}.errormsg.sc-tttx-standalone-input{display:flex;justify-content:center;align-items:center;float:left;margin-bottom:16px;box-sizing:border-box;background-color:transparent;height:26px;font-size:14px;border-radius:none;z-index:2;color:#dc0000}.errormsg.sc-tttx-standalone-input .validationicon.sc-tttx-standalone-input{width:16px;height:16px;font-size:16px;margin-right:4px;vertical-align:middle;color:#dc0000}.danger.sc-tttx-standalone-input{color:#dc0000}.optional.sc-tttx-standalone-input{color:#757575;font-weight:normal}label.inputBlock.sc-tttx-standalone-input{display:block;position:relative;line-height:21px}label.sc-tttx-standalone-input{font-weight:500;font-size:16px}input.sc-tttx-standalone-input:not([type=submit]){font-family:\"Roboto\", serif;box-sizing:border-box;width:100%;height:36px;padding:0 16px;font-size:16px;border:1px solid #d5d5d5;border-radius:4px;margin-top:4px}input[type=date].sc-tttx-standalone-input{background:white;display:block;min-width:calc(100% - 18px);line-height:37px}input.invalid.sc-tttx-standalone-input:invalid,input.standalone.invalid.sc-tttx-standalone-input{border:1px solid #dc0000}input.sc-tttx-standalone-input~.errorBubble.sc-tttx-standalone-input{min-height:27px;position:relative;font-size:14px;font-weight:normal;width:100%;font-family:\"Roboto\", sans-serif;color:#dc0000;display:flex;align-content:center;align-items:center;justify-items:center}input.sc-tttx-standalone-input~.errorBubble.sc-tttx-standalone-input:not(.visible){visibility:hidden}input.sc-tttx-standalone-input~.errorBubble.sc-tttx-standalone-input span.sc-tttx-standalone-input{color:#dc0000;font-size:16px;margin-right:4px;height:16px}input.invalid.sc-tttx-standalone-input:invalid~.errorBubble.sc-tttx-standalone-input{position:relative;font-size:14px;font-weight:normal;width:100%;font-family:\"Roboto\", sans-serif;color:#dc0000;visibility:visible}input.sc-tttx-standalone-input:focus{border-color:#1479c6}.sc-tttx-standalone-input-h{display:block}";
4
4
 
@@ -49,7 +49,6 @@ const TttxInput = class {
49
49
  this.blurChanged.emit(target.value);
50
50
  }
51
51
  handleInvalid(event) {
52
- event.preventDefault();
53
52
  const target = event.target;
54
53
  this.invalidChanged.emit(target.value);
55
54
  }