@3t-transform/threeteeui 0.0.12 → 0.0.13

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 (46) hide show
  1. package/dist/cjs/{index-61cd741f.js → index-bf39be87.js} +88 -2
  2. package/dist/cjs/loader.cjs.js +4 -3
  3. package/dist/cjs/tttx-button.cjs.entry.js +1 -1
  4. package/dist/cjs/tttx-checkbox.cjs.entry.js +1 -1
  5. package/dist/cjs/tttx-form.cjs.entry.js +1 -1
  6. package/dist/cjs/tttx-icon.cjs.entry.js +1 -1
  7. package/dist/cjs/tttx-list.cjs.entry.js +1 -1
  8. package/dist/cjs/tttx-loading-spinner.cjs.entry.js +1 -1
  9. package/dist/cjs/tttx-popover-content.cjs.entry.js +1 -1
  10. package/dist/cjs/tttx-standalone-input.cjs.entry.js +10 -8
  11. package/dist/cjs/tttx.cjs.js +7 -3
  12. package/dist/collection/collection-manifest.json +2 -2
  13. package/dist/collection/components/molecules/tttx-standalone-input/tttx-standalone-input.js +37 -29
  14. package/dist/components/index.d.ts +9 -0
  15. package/dist/components/index.js +1 -1
  16. package/dist/components/tttx-standalone-input.js +10 -10
  17. package/dist/esm/{index-d8718abe.js → index-63c4d25e.js} +88 -3
  18. package/dist/esm/loader.js +4 -3
  19. package/dist/esm/polyfills/css-shim.js +1 -1
  20. package/dist/esm/tttx-button.entry.js +1 -1
  21. package/dist/esm/tttx-checkbox.entry.js +1 -1
  22. package/dist/esm/tttx-form.entry.js +1 -1
  23. package/dist/esm/tttx-icon.entry.js +1 -1
  24. package/dist/esm/tttx-list.entry.js +1 -1
  25. package/dist/esm/tttx-loading-spinner.entry.js +1 -1
  26. package/dist/esm/tttx-popover-content.entry.js +1 -1
  27. package/dist/esm/tttx-standalone-input.entry.js +10 -8
  28. package/dist/esm/tttx.js +4 -3
  29. package/dist/tttx/{p-629411bc.entry.js → p-1a4eb1f3.entry.js} +1 -1
  30. package/dist/tttx/p-25953f82.entry.js +1 -0
  31. package/dist/tttx/{p-dee50f14.entry.js → p-2b6720ac.entry.js} +1 -1
  32. package/dist/tttx/{p-7d84c410.entry.js → p-2d54f8aa.entry.js} +1 -1
  33. package/dist/tttx/{p-e5c02c27.entry.js → p-4c57bcbd.entry.js} +1 -1
  34. package/dist/tttx/p-709246f5.entry.js +1 -0
  35. package/dist/tttx/{p-db1f56ba.entry.js → p-95a29e09.entry.js} +1 -1
  36. package/dist/tttx/{p-daa82b1b.entry.js → p-ad0c3fe4.entry.js} +1 -1
  37. package/dist/tttx/p-bec472d8.js +2 -0
  38. package/dist/tttx/tttx.esm.js +1 -1
  39. package/dist/types/components/molecules/tttx-standalone-input/tttx-standalone-input.d.ts +10 -10
  40. package/dist/types/components.d.ts +2 -2
  41. package/dist/types/stencil-public-runtime.d.ts +59 -3
  42. package/loader/index.d.ts +9 -0
  43. package/package.json +1 -1
  44. package/dist/tttx/p-1b6b4223.entry.js +0 -1
  45. package/dist/tttx/p-1ea7e424.entry.js +0 -1
  46. package/dist/tttx/p-80bbe164.js +0 -2
@@ -63,6 +63,18 @@ const isComplexType = (o) => {
63
63
  o = typeof o;
64
64
  return o === 'object' || o === 'function';
65
65
  };
66
+ /**
67
+ * Helper method for querying a `meta` tag that contains a nonce value
68
+ * out of a DOM's head.
69
+ *
70
+ * @param doc The DOM containing the `head` to query against
71
+ * @returns The content of the meta tag representing the nonce value, or `undefined` if no tag
72
+ * exists or the tag has no content.
73
+ */
74
+ function queryNonceMetaTagContent(doc) {
75
+ var _a, _b, _c;
76
+ 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;
77
+ }
66
78
  /**
67
79
  * Production h() function based on Preact by
68
80
  * Jason Miller (@developit)
@@ -71,7 +83,6 @@ const isComplexType = (o) => {
71
83
  *
72
84
  * Modified for Stencil's compiler and vdom
73
85
  */
74
- // const stack: any[] = [];
75
86
  // export function h(nodeName: string | d.FunctionalComponent, vnodeData: d.PropsType, child?: d.ChildType): d.VNode;
76
87
  // export function h(nodeName: string | d.FunctionalComponent, vnodeData: d.PropsType, ...children: d.ChildType[]): d.VNode;
77
88
  const h = (nodeName, vnodeData, ...children) => {
@@ -122,6 +133,14 @@ const h = (nodeName, vnodeData, ...children) => {
122
133
  }
123
134
  return vnode;
124
135
  };
136
+ /**
137
+ * A utility function for creating a virtual DOM node from a tag and some
138
+ * possible text content.
139
+ *
140
+ * @param tag the tag for this element
141
+ * @param text possible text content for the node
142
+ * @returns a newly-minted virtual DOM node
143
+ */
125
144
  const newVNode = (tag, text) => {
126
145
  const vnode = {
127
146
  $flags$: 0,
@@ -136,6 +155,12 @@ const newVNode = (tag, text) => {
136
155
  return vnode;
137
156
  };
138
157
  const Host = {};
158
+ /**
159
+ * Check whether a given node is a Host node or not
160
+ *
161
+ * @param node the virtual DOM node to check
162
+ * @returns whether it's a Host node or not
163
+ */
139
164
  const isHost = (node) => node && node.$tag$ === Host;
140
165
  /**
141
166
  * Parse a new property value for a given property type.
@@ -224,6 +249,7 @@ const registerStyle = (scopeId, cssText, allowCS) => {
224
249
  styles.set(scopeId, style);
225
250
  };
226
251
  const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
252
+ var _a;
227
253
  let scopeId = getScopeId(cmpMeta);
228
254
  const style = styles.get(scopeId);
229
255
  // if an element is NOT connected then getRootNode() will return the wrong root node
@@ -243,6 +269,11 @@ const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
243
269
  styleElm = doc.createElement('style');
244
270
  styleElm.innerHTML = style;
245
271
  }
272
+ // Apply CSP nonce to the style tag if it exists
273
+ const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
274
+ if (nonce != null) {
275
+ styleElm.setAttribute('nonce', nonce);
276
+ }
246
277
  styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector('link'));
247
278
  }
248
279
  if (appliedStyles) {
@@ -450,6 +481,21 @@ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
450
481
  }
451
482
  return elm;
452
483
  };
484
+ /**
485
+ * Create DOM nodes corresponding to a list of {@link d.Vnode} objects and
486
+ * add them to the DOM in the appropriate place.
487
+ *
488
+ * @param parentElm the DOM node which should be used as a parent for the new
489
+ * DOM nodes
490
+ * @param before a child of the `parentElm` which the new children should be
491
+ * inserted before (optional)
492
+ * @param parentVNode the parent virtual DOM node
493
+ * @param vnodes the new child virtual DOM nodes to produce DOM nodes for
494
+ * @param startIdx the index in the child virtual DOM nodes at which to start
495
+ * creating DOM nodes (inclusive)
496
+ * @param endIdx the index in the child virtual DOM nodes at which to stop
497
+ * creating DOM nodes (inclusive)
498
+ */
453
499
  const addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
454
500
  let containerElm = (parentElm);
455
501
  let childNode;
@@ -466,6 +512,19 @@ const addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) =>
466
512
  }
467
513
  }
468
514
  };
515
+ /**
516
+ * Remove the DOM elements corresponding to a list of {@link d.VNode} objects.
517
+ * This can be used to, for instance, clean up after a list of children which
518
+ * should no longer be shown.
519
+ *
520
+ * This function also handles some of Stencil's slot relocation logic.
521
+ *
522
+ * @param vnodes a list of virtual DOM nodes to remove
523
+ * @param startIdx the index at which to start removing nodes (inclusive)
524
+ * @param endIdx the index at which to stop removing nodes (inclusive)
525
+ * @param vnode a VNode
526
+ * @param elm an element
527
+ */
469
528
  const removeVnodes = (vnodes, startIdx, endIdx, vnode, elm) => {
470
529
  for (; startIdx <= endIdx; ++startIdx) {
471
530
  if ((vnode = vnodes[startIdx])) {
@@ -658,7 +717,8 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
658
717
  *
659
718
  * So, in other words, if `key` attrs are not set on VNodes which may be
660
719
  * changing order within a `children` array or something along those lines then
661
- * we could obtain a false positive and then have to do needless re-rendering.
720
+ * we could obtain a false negative and then have to do needless re-rendering
721
+ * (i.e. we'd say two VNodes aren't equal when in fact they should be).
662
722
  *
663
723
  * @param leftVNode the first VNode to check
664
724
  * @param rightVNode the second VNode to check
@@ -728,6 +788,18 @@ const callNodeRefs = (vNode) => {
728
788
  vNode.$children$ && vNode.$children$.map(callNodeRefs);
729
789
  }
730
790
  };
791
+ /**
792
+ * The main entry point for Stencil's virtual DOM-based rendering engine
793
+ *
794
+ * Given a {@link d.HostRef} container and some virtual DOM nodes, this
795
+ * function will handle creating a virtual DOM tree with a single root, patching
796
+ * the current virtual DOM tree onto an old one (if any), dealing with slot
797
+ * relocation, and reflecting attributes.
798
+ *
799
+ * @param hostRef data needed to root and render the virtual DOM tree, such as
800
+ * the DOM node into which it should be rendered.
801
+ * @param renderFnResults the virtual DOM nodes to be rendered
802
+ */
731
803
  const renderVdom = (hostRef, renderFnResults) => {
732
804
  const hostElm = hostRef.$hostElement$;
733
805
  const oldVNode = hostRef.$vnode$ || newVNode(null, null);
@@ -1200,6 +1272,7 @@ const disconnectedCallback = (elm) => {
1200
1272
  }
1201
1273
  };
1202
1274
  const bootstrapLazy = (lazyBundles, options = {}) => {
1275
+ var _a;
1203
1276
  const endBootstrap = createTime();
1204
1277
  const cmpTags = [];
1205
1278
  const exclude = options.exclude || [];
@@ -1279,6 +1352,11 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
1279
1352
  {
1280
1353
  visibilityStyle.innerHTML = cmpTags + HYDRATED_CSS;
1281
1354
  visibilityStyle.setAttribute('data-styles', '');
1355
+ // Apply CSP nonce to the style tag if it exists
1356
+ const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
1357
+ if (nonce != null) {
1358
+ visibilityStyle.setAttribute('nonce', nonce);
1359
+ }
1282
1360
  head.insertBefore(visibilityStyle, metaCharset ? metaCharset.nextSibling : head.firstChild);
1283
1361
  }
1284
1362
  // Process deferred connectedCallbacks now all components have been registered
@@ -1328,6 +1406,13 @@ const getHostListenerTarget = (elm, flags) => {
1328
1406
  };
1329
1407
  // prettier-ignore
1330
1408
  const hostListenerOpts = (flags) => (flags & 2 /* LISTENER_FLAGS.Capture */) !== 0;
1409
+ /**
1410
+ * Assigns the given value to the nonce property on the runtime platform object.
1411
+ * During runtime, this value is used to set the nonce attribute on all dynamically created script and style tags.
1412
+ * @param nonce The value to be assigned to the platform nonce property.
1413
+ * @returns void
1414
+ */
1415
+ const setNonce = (nonce) => (plt.$nonce$ = nonce);
1331
1416
  const hostRefs = /*@__PURE__*/ new WeakMap();
1332
1417
  const getHostRef = (ref) => hostRefs.get(ref);
1333
1418
  const registerInstance = (lazyInstance, hostRef) => hostRefs.set((hostRef.$lazyInstance$ = lazyInstance), hostRef);
@@ -1442,3 +1527,4 @@ exports.getElement = getElement;
1442
1527
  exports.h = h;
1443
1528
  exports.promiseResolve = promiseResolve;
1444
1529
  exports.registerInstance = registerInstance;
1530
+ exports.setNonce = setNonce;
@@ -2,10 +2,10 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-61cd741f.js');
5
+ const index = require('./index-bf39be87.js');
6
6
 
7
7
  /*
8
- Stencil Client Patch Esm v2.20.0 | MIT Licensed | https://stenciljs.com
8
+ Stencil Client Patch Esm v2.22.3 | MIT Licensed | https://stenciljs.com
9
9
  */
10
10
  const patchEsm = () => {
11
11
  return index.promiseResolve();
@@ -14,8 +14,9 @@ const patchEsm = () => {
14
14
  const defineCustomElements = (win, options) => {
15
15
  if (typeof window === 'undefined') return Promise.resolve();
16
16
  return patchEsm().then(() => {
17
- return index.bootstrapLazy([["tttx-list.cjs",[[1,"tttx-list",{"name":[1],"selectable":[4],"items":[32],"selectedIds":[32],"loading":[32],"lastPage":[32]},[[4,"listPageLoad","listLoadHandler"],[4,"listClearDataCache","listClearDataCacheHandler"],[4,"listActionSelectedEvent","listActionSelectedEventHandler"]]]]],["tttx-standalone-input.cjs",[[2,"tttx-standalone-input",{"label":[1],"valid":[4],"showerrormsg":[4],"errormsg":[1],"iconleft":[1],"iconright":[1],"autocapitalize":[1],"autocomplete":[1],"autofocus":[4],"checked":[4],"disabled":[4],"max":[8],"maxlength":[8],"min":[8],"minlength":[8],"name":[1],"pattern":[1],"placeholder":[1],"readonly":[8],"required":[4],"step":[8],"type":[1],"value":[1032],"isfocused":[32]}]]],["tttx-button.cjs",[[1,"tttx-button",{"fontColor":[1,"font-color"],"buttonStyle":[1,"button-style"]},[[0,"clickEvent","onClicked"]]]]],["tttx-checkbox.cjs",[[1,"tttx-checkbox",{"value":[4],"label":[1],"required":[4]}]]],["tttx-form.cjs",[[1,"tttx-form",{"formschema":[8],"submitValue":[8,"submit-value"]}]]],["tttx-popover-content.cjs",[[1,"tttx-popover-content",{"header":[1],"body":[1],"linkcontext":[1],"linktext":[1]}]]],["tttx-icon.cjs",[[1,"tttx-icon",{"icon":[1],"colour":[1]},[[4,"click","handleDocumentClick"]]]]],["tttx-loading-spinner.cjs",[[1,"tttx-loading-spinner",{"loadingMessage":[1028,"loading-message"],"size":[1025]}]]]], options);
17
+ return index.bootstrapLazy([["tttx-list.cjs",[[1,"tttx-list",{"name":[1],"selectable":[4],"items":[32],"selectedIds":[32],"loading":[32],"lastPage":[32]},[[4,"listPageLoad","listLoadHandler"],[4,"listClearDataCache","listClearDataCacheHandler"],[4,"listActionSelectedEvent","listActionSelectedEventHandler"]]]]],["tttx-standalone-input.cjs",[[2,"tttx-standalone-input",{"label":[1],"showerrormsg":[4],"errormsg":[1],"iconleft":[1],"iconright":[1],"autocapitalize":[1],"autocomplete":[1],"autofocus":[4],"checked":[4],"disabled":[4],"max":[8],"maxlength":[8],"min":[8],"minlength":[8],"name":[1],"pattern":[1],"placeholder":[1],"readonly":[8],"required":[4],"step":[8],"type":[1],"value":[1032]}]]],["tttx-button.cjs",[[1,"tttx-button",{"fontColor":[1,"font-color"],"buttonStyle":[1,"button-style"]},[[0,"clickEvent","onClicked"]]]]],["tttx-checkbox.cjs",[[1,"tttx-checkbox",{"value":[4],"label":[1],"required":[4]}]]],["tttx-form.cjs",[[1,"tttx-form",{"formschema":[8],"submitValue":[8,"submit-value"]}]]],["tttx-popover-content.cjs",[[1,"tttx-popover-content",{"header":[1],"body":[1],"linkcontext":[1],"linktext":[1]}]]],["tttx-icon.cjs",[[1,"tttx-icon",{"icon":[1],"colour":[1]},[[4,"click","handleDocumentClick"]]]]],["tttx-loading-spinner.cjs",[[1,"tttx-loading-spinner",{"loadingMessage":[1028,"loading-message"],"size":[1025]}]]]], options);
18
18
  });
19
19
  };
20
20
 
21
+ exports.setNonce = index.setNonce;
21
22
  exports.defineCustomElements = defineCustomElements;
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-61cd741f.js');
5
+ const index = require('./index-bf39be87.js');
6
6
 
7
7
  const tttxButtonCss = ".material-symbols-rounded{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}.button{height:36px;padding:8px 16px;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:hover{background:#f0f0f0}.button:active{background:#e3e3e3}.primary-blue{background:#1479c6;border:1px solid #1479c6;color:white}.primary-blue:hover{background:#1169ba}.primary-blue:active{background:#0951a8}.secondary-white{background:white;border:1px solid #212121}:host{display:inline-block}.spacingleft{margin-left:8px}.font-white{color:white}.font-black{color:#212121}";
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-61cd741f.js');
5
+ const index = require('./index-bf39be87.js');
6
6
 
7
7
  const tttxCheckboxCss = ".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}.icon-left,.icon-right{flex-basis:24px}.icon-left span,.icon-right span{font-size:24px;line-height:24px;text-align:center;display:block;width:24px;height:24px;margin-top:4px}.icon-left span{margin-left:4px}.icon-right span{margin-right:4px}.icon-right{margin-top:5px;margin-right:4px}.icon-left{margin-top:5px;margin-left:4px}.iconleft .input{padding-left:4px}.iconright .input{padding-right:4px}.focused{border-color:#1479c6}.errormsg{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 .validationicon{width:16px;height:16px;font-size:16px;margin-right:4px;vertical-align:middle;color:#dc0000}.danger{color:#dc0000}.optional{color:#757575;font-weight:normal}label.inputBlock{display:block;position:relative;line-height:21px}label{font-weight:500;font-size:16px}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]{background:white;display:block;min-width:calc(100% - 18px);line-height:37px}input.invalid:invalid,input.standalone.invalid{border:1px solid #dc0000}input~.errorBubble{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~.errorBubble:not(.visible){visibility:hidden}input~.errorBubble span{color:#dc0000;font-size:16px;margin-right:4px;height:16px}input.invalid:invalid~.errorBubble{position:relative;font-size:14px;font-weight:normal;width:100%;font-family:\"Roboto\", sans-serif;color:#dc0000;visibility:visible}input:focus{border-color:#1479c6}:host{display:block}.spacing{margin-bottom:16px}";
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-61cd741f.js');
5
+ const index = require('./index-bf39be87.js');
6
6
 
7
7
  const tttxFormCss = ".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}.icon-left,.icon-right{flex-basis:24px}.icon-left span,.icon-right span{font-size:24px;line-height:24px;text-align:center;display:block;width:24px;height:24px;margin-top:4px}.icon-left span{margin-left:4px}.icon-right span{margin-right:4px}.icon-right{margin-top:5px;margin-right:4px}.icon-left{margin-top:5px;margin-left:4px}.iconleft .input{padding-left:4px}.iconright .input{padding-right:4px}.focused{border-color:#1479c6}.errormsg{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 .validationicon{width:16px;height:16px;font-size:16px;margin-right:4px;vertical-align:middle;color:#dc0000}.danger{color:#dc0000}.optional{color:#757575;font-weight:normal}label.inputBlock{display:block;position:relative;line-height:21px}label{font-weight:500;font-size:16px}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]{background:white;display:block;min-width:calc(100% - 18px);line-height:37px}input.invalid:invalid,input.standalone.invalid{border:1px solid #dc0000}input~.errorBubble{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~.errorBubble:not(.visible){visibility:hidden}input~.errorBubble span{color:#dc0000;font-size:16px;margin-right:4px;height:16px}input.invalid:invalid~.errorBubble{position:relative;font-size:14px;font-weight:normal;width:100%;font-family:\"Roboto\", sans-serif;color:#dc0000;visibility:visible}input:focus{border-color:#1479c6}.button{height:36px;padding:8px 16px;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:hover{background:#f0f0f0}.button:active{background:#e3e3e3}.primary-blue{background:#1479c6;border:1px solid #1479c6;color:white}.primary-blue:hover{background:#1169ba}.primary-blue:active{background:#0951a8}.secondary-white{background:white;border:1px solid #212121}:host{display:block}fieldset{margin:0;padding:0;border:none}input[type=submit]{margin-left:auto}";
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-61cd741f.js');
5
+ const index = require('./index-bf39be87.js');
6
6
 
7
7
  var top = 'top';
8
8
  var bottom = 'bottom';
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-61cd741f.js');
5
+ const index = require('./index-bf39be87.js');
6
6
 
7
7
  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}.tttx-list__row{min-height:52px;line-height:36px;padding:8px;display:flex;flex-direction:row;align-items:center;cursor:pointer;border-bottom:1px solid #d5d5d5}.tttx-list__row .generic-template__content{width:100%;display:flex;align-items:center;gap:8px}.tttx-list__row:first-of-type{border-top:1px solid #d5d5d5}.tttx-list__row:focus,.tttx-list__row:active{background-color:#e6e6e6}.tttx-list__row.selected{background-color:#e7f1f9}.load-indicator{display:flex;justify-content:center}";
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-61cd741f.js');
5
+ const index = require('./index-bf39be87.js');
6
6
 
7
7
  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)}}";
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-61cd741f.js');
5
+ const index = require('./index-bf39be87.js');
6
6
 
7
7
  const tttxPopoverContentCss = ".material-symbols-rounded{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}:host{display:block;max-width:400px}h4{margin:0;font-size:15px;font-weight:700;color:black;margin-bottom:4px}p{margin:0;font-size:14px;font-weight:normal;color:black;margin-bottom:4px}.linky{color:#1479c6;text-decoration:none;cursor:pointer}";
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-61cd741f.js');
5
+ const index = require('./index-bf39be87.js');
6
6
 
7
7
  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}";
8
8
 
@@ -10,9 +10,9 @@ const TttxInput = class {
10
10
  constructor(hostRef) {
11
11
  index.registerInstance(this, hostRef);
12
12
  this.valueChanged = index.createEvent(this, "valueChanged", 7);
13
- this.isfocused = false;
13
+ this.focusChanged = index.createEvent(this, "focusChanged", 7);
14
+ this.blurChanged = index.createEvent(this, "blurChanged", 7);
14
15
  this.label = undefined;
15
- this.valid = undefined;
16
16
  this.showerrormsg = undefined;
17
17
  this.errormsg = undefined;
18
18
  this.iconleft = undefined;
@@ -40,11 +40,13 @@ const TttxInput = class {
40
40
  this.value = target.value;
41
41
  this.valueChanged.emit(target.value);
42
42
  }
43
- handleFocus() {
44
- this.isfocused = true;
43
+ handleFocus(event) {
44
+ const target = event.target;
45
+ this.valueChanged.emit(target.value);
45
46
  }
46
- handleBlur() {
47
- this.isfocused = false;
47
+ handleBlur(event) {
48
+ const target = event.target;
49
+ this.valueChanged.emit(target.value);
48
50
  }
49
51
  render() {
50
52
  const classNames = ['standalone', this.showerrormsg ? 'invalid' : ''].join(' ');
@@ -74,7 +76,7 @@ const TttxInput = class {
74
76
  this.type === 'number' ||
75
77
  this.type === 'range'
76
78
  ? this.min
77
- : null, minlength: this.maxlength, name: this.name, pattern: this.type === 'text' ||
79
+ : null, minlength: this.minlength, name: this.name, pattern: this.type === 'text' ||
78
80
  this.type === 'date' ||
79
81
  this.type === 'search' ||
80
82
  this.type === 'url' ||
@@ -1,9 +1,11 @@
1
1
  'use strict';
2
2
 
3
- const index = require('./index-61cd741f.js');
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-bf39be87.js');
4
6
 
5
7
  /*
6
- Stencil Client Patch Browser v2.20.0 | MIT Licensed | https://stenciljs.com
8
+ Stencil Client Patch Browser v2.22.3 | MIT Licensed | https://stenciljs.com
7
9
  */
8
10
  const patchBrowser = () => {
9
11
  const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('tttx.cjs.js', document.baseURI).href));
@@ -15,5 +17,7 @@ const patchBrowser = () => {
15
17
  };
16
18
 
17
19
  patchBrowser().then(options => {
18
- return index.bootstrapLazy([["tttx-list.cjs",[[1,"tttx-list",{"name":[1],"selectable":[4],"items":[32],"selectedIds":[32],"loading":[32],"lastPage":[32]},[[4,"listPageLoad","listLoadHandler"],[4,"listClearDataCache","listClearDataCacheHandler"],[4,"listActionSelectedEvent","listActionSelectedEventHandler"]]]]],["tttx-standalone-input.cjs",[[2,"tttx-standalone-input",{"label":[1],"valid":[4],"showerrormsg":[4],"errormsg":[1],"iconleft":[1],"iconright":[1],"autocapitalize":[1],"autocomplete":[1],"autofocus":[4],"checked":[4],"disabled":[4],"max":[8],"maxlength":[8],"min":[8],"minlength":[8],"name":[1],"pattern":[1],"placeholder":[1],"readonly":[8],"required":[4],"step":[8],"type":[1],"value":[1032],"isfocused":[32]}]]],["tttx-button.cjs",[[1,"tttx-button",{"fontColor":[1,"font-color"],"buttonStyle":[1,"button-style"]},[[0,"clickEvent","onClicked"]]]]],["tttx-checkbox.cjs",[[1,"tttx-checkbox",{"value":[4],"label":[1],"required":[4]}]]],["tttx-form.cjs",[[1,"tttx-form",{"formschema":[8],"submitValue":[8,"submit-value"]}]]],["tttx-popover-content.cjs",[[1,"tttx-popover-content",{"header":[1],"body":[1],"linkcontext":[1],"linktext":[1]}]]],["tttx-icon.cjs",[[1,"tttx-icon",{"icon":[1],"colour":[1]},[[4,"click","handleDocumentClick"]]]]],["tttx-loading-spinner.cjs",[[1,"tttx-loading-spinner",{"loadingMessage":[1028,"loading-message"],"size":[1025]}]]]], options);
20
+ return index.bootstrapLazy([["tttx-list.cjs",[[1,"tttx-list",{"name":[1],"selectable":[4],"items":[32],"selectedIds":[32],"loading":[32],"lastPage":[32]},[[4,"listPageLoad","listLoadHandler"],[4,"listClearDataCache","listClearDataCacheHandler"],[4,"listActionSelectedEvent","listActionSelectedEventHandler"]]]]],["tttx-standalone-input.cjs",[[2,"tttx-standalone-input",{"label":[1],"showerrormsg":[4],"errormsg":[1],"iconleft":[1],"iconright":[1],"autocapitalize":[1],"autocomplete":[1],"autofocus":[4],"checked":[4],"disabled":[4],"max":[8],"maxlength":[8],"min":[8],"minlength":[8],"name":[1],"pattern":[1],"placeholder":[1],"readonly":[8],"required":[4],"step":[8],"type":[1],"value":[1032]}]]],["tttx-button.cjs",[[1,"tttx-button",{"fontColor":[1,"font-color"],"buttonStyle":[1,"button-style"]},[[0,"clickEvent","onClicked"]]]]],["tttx-checkbox.cjs",[[1,"tttx-checkbox",{"value":[4],"label":[1],"required":[4]}]]],["tttx-form.cjs",[[1,"tttx-form",{"formschema":[8],"submitValue":[8,"submit-value"]}]]],["tttx-popover-content.cjs",[[1,"tttx-popover-content",{"header":[1],"body":[1],"linkcontext":[1],"linktext":[1]}]]],["tttx-icon.cjs",[[1,"tttx-icon",{"icon":[1],"colour":[1]},[[4,"click","handleDocumentClick"]]]]],["tttx-loading-spinner.cjs",[[1,"tttx-loading-spinner",{"loadingMessage":[1028,"loading-message"],"size":[1025]}]]]], options);
19
21
  });
22
+
23
+ exports.setNonce = index.setNonce;
@@ -11,8 +11,8 @@
11
11
  ],
12
12
  "compiler": {
13
13
  "name": "@stencil/core",
14
- "version": "2.20.0",
15
- "typescriptVersion": "4.8.4"
14
+ "version": "2.22.3",
15
+ "typescriptVersion": "4.9.4"
16
16
  },
17
17
  "collections": [],
18
18
  "bundles": []
@@ -1,9 +1,7 @@
1
1
  import { Host, h } from '@stencil/core';
2
2
  export class TttxInput {
3
3
  constructor() {
4
- this.isfocused = false;
5
4
  this.label = undefined;
6
- this.valid = undefined;
7
5
  this.showerrormsg = undefined;
8
6
  this.errormsg = undefined;
9
7
  this.iconleft = undefined;
@@ -31,11 +29,13 @@ export class TttxInput {
31
29
  this.value = target.value;
32
30
  this.valueChanged.emit(target.value);
33
31
  }
34
- handleFocus() {
35
- this.isfocused = true;
32
+ handleFocus(event) {
33
+ const target = event.target;
34
+ this.valueChanged.emit(target.value);
36
35
  }
37
- handleBlur() {
38
- this.isfocused = false;
36
+ handleBlur(event) {
37
+ const target = event.target;
38
+ this.valueChanged.emit(target.value);
39
39
  }
40
40
  render() {
41
41
  const classNames = ['standalone', this.showerrormsg ? 'invalid' : ''].join(' ');
@@ -65,7 +65,7 @@ export class TttxInput {
65
65
  this.type === 'number' ||
66
66
  this.type === 'range'
67
67
  ? this.min
68
- : null, minlength: this.maxlength, name: this.name, pattern: this.type === 'text' ||
68
+ : null, minlength: this.minlength, name: this.name, pattern: this.type === 'text' ||
69
69
  this.type === 'date' ||
70
70
  this.type === 'search' ||
71
71
  this.type === 'url' ||
@@ -150,23 +150,6 @@ export class TttxInput {
150
150
  "attribute": "label",
151
151
  "reflect": false
152
152
  },
153
- "valid": {
154
- "type": "boolean",
155
- "mutable": false,
156
- "complexType": {
157
- "original": "boolean",
158
- "resolved": "boolean",
159
- "references": {}
160
- },
161
- "required": false,
162
- "optional": false,
163
- "docs": {
164
- "tags": [],
165
- "text": ""
166
- },
167
- "attribute": "valid",
168
- "reflect": false
169
- },
170
153
  "showerrormsg": {
171
154
  "type": "boolean",
172
155
  "mutable": false,
@@ -535,11 +518,6 @@ export class TttxInput {
535
518
  }
536
519
  };
537
520
  }
538
- static get states() {
539
- return {
540
- "isfocused": {}
541
- };
542
- }
543
521
  static get events() {
544
522
  return [{
545
523
  "method": "valueChanged",
@@ -556,6 +534,36 @@ export class TttxInput {
556
534
  "resolved": "string",
557
535
  "references": {}
558
536
  }
537
+ }, {
538
+ "method": "focusChanged",
539
+ "name": "focusChanged",
540
+ "bubbles": true,
541
+ "cancelable": true,
542
+ "composed": true,
543
+ "docs": {
544
+ "tags": [],
545
+ "text": ""
546
+ },
547
+ "complexType": {
548
+ "original": "string",
549
+ "resolved": "string",
550
+ "references": {}
551
+ }
552
+ }, {
553
+ "method": "blurChanged",
554
+ "name": "blurChanged",
555
+ "bubbles": true,
556
+ "cancelable": true,
557
+ "composed": true,
558
+ "docs": {
559
+ "tags": [],
560
+ "text": ""
561
+ },
562
+ "complexType": {
563
+ "original": "string",
564
+ "resolved": "string",
565
+ "references": {}
566
+ }
559
567
  }];
560
568
  }
561
569
  }
@@ -20,6 +20,15 @@ export { TttxInput as TttxStandaloneInput } from '../types/components/molecules/
20
20
  */
21
21
  export declare const setAssetPath: (path: string) => void;
22
22
 
23
+ /**
24
+ * Used to specify a nonce value that corresponds with an application's CSP.
25
+ * When set, the nonce will be added to all dynamically created script and style tags at runtime.
26
+ * Alternatively, the nonce value can be set on a meta tag in the DOM head
27
+ * (<meta name="csp-nonce" content="{ nonce value here }" />) which
28
+ * will result in the same behavior.
29
+ */
30
+ export declare const setNonce: (nonce: string) => void
31
+
23
32
  export interface SetPlatformOptions {
24
33
  raf?: (c: FrameRequestCallback) => number;
25
34
  ael?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
@@ -1,4 +1,4 @@
1
- export { setAssetPath, setPlatformOptions } from '@stencil/core/internal/client';
1
+ export { setAssetPath, setNonce, setPlatformOptions } from '@stencil/core/internal/client';
2
2
  export { TttxButton, defineCustomElement as defineCustomElementTttxButton } from './tttx-button.js';
3
3
  export { TttxCheckbox, defineCustomElement as defineCustomElementTttxCheckbox } from './tttx-checkbox.js';
4
4
  export { TttxForm, defineCustomElement as defineCustomElementTttxForm } from './tttx-form.js';
@@ -8,9 +8,9 @@ const TttxInput = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
8
8
  super();
9
9
  this.__registerHost();
10
10
  this.valueChanged = createEvent(this, "valueChanged", 7);
11
- this.isfocused = false;
11
+ this.focusChanged = createEvent(this, "focusChanged", 7);
12
+ this.blurChanged = createEvent(this, "blurChanged", 7);
12
13
  this.label = undefined;
13
- this.valid = undefined;
14
14
  this.showerrormsg = undefined;
15
15
  this.errormsg = undefined;
16
16
  this.iconleft = undefined;
@@ -38,11 +38,13 @@ const TttxInput = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
38
38
  this.value = target.value;
39
39
  this.valueChanged.emit(target.value);
40
40
  }
41
- handleFocus() {
42
- this.isfocused = true;
41
+ handleFocus(event) {
42
+ const target = event.target;
43
+ this.valueChanged.emit(target.value);
43
44
  }
44
- handleBlur() {
45
- this.isfocused = false;
45
+ handleBlur(event) {
46
+ const target = event.target;
47
+ this.valueChanged.emit(target.value);
46
48
  }
47
49
  render() {
48
50
  const classNames = ['standalone', this.showerrormsg ? 'invalid' : ''].join(' ');
@@ -72,7 +74,7 @@ const TttxInput = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
72
74
  this.type === 'number' ||
73
75
  this.type === 'range'
74
76
  ? this.min
75
- : null, minlength: this.maxlength, name: this.name, pattern: this.type === 'text' ||
77
+ : null, minlength: this.minlength, name: this.name, pattern: this.type === 'text' ||
76
78
  this.type === 'date' ||
77
79
  this.type === 'search' ||
78
80
  this.type === 'url' ||
@@ -129,7 +131,6 @@ const TttxInput = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
129
131
  static get style() { return tttxStandaloneInputCss; }
130
132
  }, [2, "tttx-standalone-input", {
131
133
  "label": [1],
132
- "valid": [4],
133
134
  "showerrormsg": [4],
134
135
  "errormsg": [1],
135
136
  "iconleft": [1],
@@ -150,8 +151,7 @@ const TttxInput = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
150
151
  "required": [4],
151
152
  "step": [8],
152
153
  "type": [1],
153
- "value": [1032],
154
- "isfocused": [32]
154
+ "value": [1032]
155
155
  }]);
156
156
  function defineCustomElement$1() {
157
157
  if (typeof customElements === "undefined") {