@3t-transform/threeteeui 0.1.37 → 0.1.42

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 (155) hide show
  1. package/dist/cjs/app-globals-3a1e7e63.js +5 -0
  2. package/dist/cjs/css-shim-211819bc.js +6 -0
  3. package/dist/cjs/dom-9deb26c8.js +75 -0
  4. package/dist/cjs/domsanitiser.options-277161b9.js +1667 -0
  5. package/dist/cjs/domsanitiser.options-3f1501b5.js +1697 -0
  6. package/dist/cjs/index-39a867c5.js +3298 -0
  7. package/dist/cjs/{index-457ca775.js → index-76f14107.js} +2 -88
  8. package/dist/cjs/loader.cjs.js +18 -3
  9. package/dist/cjs/shadow-css-bf3843d2.js +389 -0
  10. package/dist/cjs/tttx-button.cjs.entry.js +25 -25
  11. package/dist/cjs/tttx-filter.cjs.entry.js +159 -159
  12. package/dist/cjs/tttx-form.cjs.entry.js +459 -373
  13. package/dist/cjs/tttx-icon.cjs.entry.js +11 -11
  14. package/dist/cjs/tttx-keyvalue-block.cjs.entry.js +59 -59
  15. package/dist/cjs/tttx-list.cjs.entry.js +32 -1694
  16. package/dist/cjs/tttx-loading-spinner.cjs.entry.js +16 -16
  17. package/dist/cjs/tttx-sorter.cjs.entry.js +102 -102
  18. package/dist/cjs/tttx-standalone-input.cjs.entry.js +79 -79
  19. package/dist/cjs/tttx-toolbar.cjs.entry.js +10 -10
  20. package/dist/cjs/tttx.cjs.js +116 -8
  21. package/dist/collection/collection-manifest.json +2 -2
  22. package/dist/collection/components/atoms/tttx-button/tttx-button.css +4 -4
  23. package/dist/collection/components/atoms/tttx-button/tttx-button.js +110 -110
  24. package/dist/collection/components/atoms/tttx-button/tttx-button.stories.js +14 -14
  25. package/dist/collection/components/atoms/tttx-icon/tttx-icon.js +62 -62
  26. package/dist/collection/components/atoms/tttx-icon/tttx-icon.stories.js +22 -22
  27. package/dist/collection/components/atoms/tttx-keyvalue-block/tttx-keyvalue-block.js +109 -109
  28. package/dist/collection/components/atoms/tttx-keyvalue-block/tttx-keyvalue-block.stories.js +38 -38
  29. package/dist/collection/components/atoms/tttx-loading-spinner/tttx-loading-spinner.js +67 -67
  30. package/dist/collection/components/atoms/tttx-loading-spinner/tttx-loading-spinner.stories.js +17 -17
  31. package/dist/collection/components/molecules/tttx-filter/tttx-filter.js +334 -334
  32. package/dist/collection/components/molecules/tttx-filter/tttx-filter.stories.js +62 -62
  33. package/dist/collection/components/molecules/tttx-form/lib/setErrorState.js +37 -37
  34. package/dist/collection/components/molecules/tttx-form/lib/validityCheck.js +61 -58
  35. package/dist/collection/components/molecules/tttx-form/tttx-form.css +98 -2
  36. package/dist/collection/components/molecules/tttx-form/tttx-form.js +479 -393
  37. package/dist/collection/components/molecules/tttx-form/tttx-form.stories.js +274 -218
  38. package/dist/collection/components/molecules/tttx-list/tttx-list.js +105 -105
  39. package/dist/collection/components/molecules/tttx-list/tttx-list.stories.js +43 -43
  40. package/dist/collection/components/molecules/tttx-sorter/tttx-sorter.js +224 -224
  41. package/dist/collection/components/molecules/tttx-sorter/tttx-sorter.stories.js +42 -42
  42. package/dist/collection/components/molecules/tttx-standalone-input/tttx-standalone-input.js +759 -759
  43. package/dist/collection/components/molecules/tttx-standalone-input/tttx-standalone-input.stories.js +172 -172
  44. package/dist/collection/components/molecules/tttx-toolbar/tttx-toolbar.js +44 -44
  45. package/dist/collection/components/molecules/tttx-toolbar/tttx-toolbar.stories.js +14 -14
  46. package/dist/collection/components/palette.stories.js +7 -7
  47. package/dist/collection/docs/gettingstarted-developer.stories.js +5 -5
  48. package/dist/collection/icons.js +2838 -2838
  49. package/dist/collection/index.js +1 -1
  50. package/dist/collection/shared/domsanitiser.options.js +14 -14
  51. package/dist/components/domsanitiser.options.js +1694 -0
  52. package/dist/components/index.d.ts +0 -9
  53. package/dist/components/index.js +5 -1
  54. package/dist/components/tttx-button.js +49 -49
  55. package/dist/components/tttx-filter.js +191 -191
  56. package/dist/components/tttx-form.js +477 -391
  57. package/dist/components/tttx-icon2.js +28 -28
  58. package/dist/components/tttx-keyvalue-block.js +76 -76
  59. package/dist/components/tttx-list.js +54 -1716
  60. package/dist/components/tttx-loading-spinner.js +33 -33
  61. package/dist/components/tttx-sorter.js +130 -130
  62. package/dist/components/tttx-standalone-input.js +130 -130
  63. package/dist/components/tttx-toolbar.js +26 -26
  64. package/dist/esm/app-globals-0f993ce5.js +3 -0
  65. package/dist/esm/css-shim-9d54a2f2.js +4 -0
  66. package/dist/esm/dom-6be6f662.js +73 -0
  67. package/dist/esm/domsanitiser.options-6f2878c8.js +1694 -0
  68. package/dist/esm/domsanitiser.options-cc420431.js +1664 -0
  69. package/dist/esm/{index-d784fb3e.js → index-9cde46a5.js} +3 -88
  70. package/dist/esm/index-e3e64631.js +3262 -0
  71. package/dist/esm/loader.js +18 -3
  72. package/dist/esm/polyfills/core-js.js +0 -0
  73. package/dist/esm/polyfills/css-shim.js +1 -1
  74. package/dist/esm/polyfills/dom.js +0 -0
  75. package/dist/esm/polyfills/es5-html-element.js +0 -0
  76. package/dist/esm/polyfills/index.js +0 -0
  77. package/dist/esm/polyfills/system.js +0 -0
  78. package/dist/esm/shadow-css-ed4599f8.js +387 -0
  79. package/dist/esm/tttx-button.entry.js +25 -25
  80. package/dist/esm/tttx-filter.entry.js +159 -159
  81. package/dist/esm/tttx-form.entry.js +459 -373
  82. package/dist/esm/tttx-icon.entry.js +11 -11
  83. package/dist/esm/tttx-keyvalue-block.entry.js +59 -59
  84. package/dist/esm/tttx-list.entry.js +32 -1694
  85. package/dist/esm/tttx-loading-spinner.entry.js +16 -16
  86. package/dist/esm/tttx-sorter.entry.js +102 -102
  87. package/dist/esm/tttx-standalone-input.entry.js +79 -79
  88. package/dist/esm/tttx-toolbar.entry.js +10 -10
  89. package/dist/esm/tttx.js +116 -5
  90. package/dist/tttx/app-globals-0f993ce5.js +3 -0
  91. package/dist/tttx/css-shim-9d54a2f2.js +4 -0
  92. package/dist/tttx/dom-6be6f662.js +73 -0
  93. package/dist/tttx/domsanitiser.options-6f2878c8.js +1694 -0
  94. package/dist/tttx/index-e3e64631.js +3262 -0
  95. package/dist/tttx/index.esm.js +1 -0
  96. package/dist/tttx/{p-400868f1.entry.js → p-3b1be372.entry.js} +1 -1
  97. package/dist/tttx/p-4e637d50.entry.js +1 -0
  98. package/dist/tttx/{p-563605b2.entry.js → p-561224f5.entry.js} +1 -1
  99. package/dist/tttx/{p-b720c4ad.entry.js → p-9f1e9cc1.entry.js} +1 -1
  100. package/dist/tttx/{p-798a098a.entry.js → p-aef96333.entry.js} +1 -1
  101. package/dist/tttx/p-b4290a5b.js +3 -0
  102. package/dist/tttx/p-bd1edaed.entry.js +1 -0
  103. package/dist/tttx/p-d0ff9ad0.entry.js +1 -0
  104. package/dist/tttx/{p-cac26a1b.entry.js → p-d2f1aa8e.entry.js} +1 -1
  105. package/dist/tttx/p-db059a69.js +2 -0
  106. package/dist/tttx/p-dc2a37b0.entry.js +1 -0
  107. package/dist/tttx/{p-ab6ce9f6.entry.js → p-e53c7f9d.entry.js} +1 -1
  108. package/dist/tttx/{p-92cade7f.entry.js → p-f885f17a.entry.js} +1 -1
  109. package/dist/tttx/shadow-css-ed4599f8.js +387 -0
  110. package/dist/tttx/tttx-button.entry.js +30 -0
  111. package/dist/tttx/tttx-filter.entry.js +165 -0
  112. package/dist/tttx/tttx-form.entry.js +468 -0
  113. package/dist/tttx/tttx-icon.entry.js +17 -0
  114. package/dist/tttx/tttx-keyvalue-block.entry.js +65 -0
  115. package/dist/tttx/tttx-list.entry.js +38 -0
  116. package/dist/tttx/tttx-loading-spinner.entry.js +22 -0
  117. package/dist/tttx/tttx-sorter.entry.js +108 -0
  118. package/dist/tttx/tttx-standalone-input.entry.js +85 -0
  119. package/dist/tttx/tttx-toolbar.entry.js +16 -0
  120. package/dist/tttx/tttx.esm.js +129 -1
  121. package/dist/types/components/atoms/tttx-button/tttx-button.d.ts +10 -10
  122. package/dist/types/components/atoms/tttx-button/tttx-button.stories.d.ts +10 -10
  123. package/dist/types/components/atoms/tttx-icon/tttx-icon.d.ts +5 -5
  124. package/dist/types/components/atoms/tttx-icon/tttx-icon.stories.d.ts +20 -20
  125. package/dist/types/components/atoms/tttx-keyvalue-block/tttx-keyvalue-block.d.ts +7 -7
  126. package/dist/types/components/atoms/tttx-keyvalue-block/tttx-keyvalue-block.stories.d.ts +9 -9
  127. package/dist/types/components/atoms/tttx-loading-spinner/tttx-loading-spinner.d.ts +6 -6
  128. package/dist/types/components/atoms/tttx-loading-spinner/tttx-loading-spinner.stories.d.ts +17 -17
  129. package/dist/types/components/molecules/tttx-filter/tttx-filter.d.ts +39 -39
  130. package/dist/types/components/molecules/tttx-filter/tttx-filter.stories.d.ts +68 -68
  131. package/dist/types/components/molecules/tttx-form/lib/setErrorState.d.ts +13 -13
  132. package/dist/types/components/molecules/tttx-form/lib/validityCheck.d.ts +17 -17
  133. package/dist/types/components/molecules/tttx-form/tttx-form.d.ts +133 -111
  134. package/dist/types/components/molecules/tttx-form/tttx-form.stories.d.ts +278 -13
  135. package/dist/types/components/molecules/tttx-list/tttx-list.d.ts +11 -11
  136. package/dist/types/components/molecules/tttx-list/tttx-list.stories.d.ts +14 -14
  137. package/dist/types/components/molecules/tttx-sorter/tttx-sorter.d.ts +19 -19
  138. package/dist/types/components/molecules/tttx-sorter/tttx-sorter.stories.d.ts +30 -30
  139. package/dist/types/components/molecules/tttx-standalone-input/tttx-standalone-input.d.ts +69 -69
  140. package/dist/types/components/molecules/tttx-standalone-input/tttx-standalone-input.stories.d.ts +143 -143
  141. package/dist/types/components/molecules/tttx-toolbar/tttx-toolbar.d.ts +4 -4
  142. package/dist/types/components/molecules/tttx-toolbar/tttx-toolbar.stories.d.ts +13 -13
  143. package/dist/types/components/palette.stories.d.ts +6 -6
  144. package/dist/types/components.d.ts +1 -1
  145. package/dist/types/docs/gettingstarted-developer.stories.d.ts +5 -5
  146. package/dist/types/icons.d.ts +2 -2
  147. package/dist/types/index.d.ts +1 -1
  148. package/dist/types/shared/domsanitiser.options.d.ts +10 -10
  149. package/dist/types/stencil-public-runtime.d.ts +3 -59
  150. package/loader/index.d.ts +0 -9
  151. package/package.json +1 -1
  152. package/dist/tttx/p-0ebffdfc.js +0 -2
  153. package/dist/tttx/p-72e7f7dd.entry.js +0 -3
  154. package/dist/tttx/p-c4162029.entry.js +0 -1
  155. package/dist/tttx/p-eb126fd0.entry.js +0 -1
@@ -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) => {
@@ -119,14 +108,6 @@ const h = (nodeName, vnodeData, ...children) => {
119
108
  }
120
109
  return vnode;
121
110
  };
122
- /**
123
- * A utility function for creating a virtual DOM node from a tag and some
124
- * possible text content.
125
- *
126
- * @param tag the tag for this element
127
- * @param text possible text content for the node
128
- * @returns a newly-minted virtual DOM node
129
- */
130
111
  const newVNode = (tag, text) => {
131
112
  const vnode = {
132
113
  $flags$: 0,
@@ -144,12 +125,6 @@ const newVNode = (tag, text) => {
144
125
  return vnode;
145
126
  };
146
127
  const Host = {};
147
- /**
148
- * Check whether a given node is a Host node or not
149
- *
150
- * @param node the virtual DOM node to check
151
- * @returns whether it's a Host node or not
152
- */
153
128
  const isHost = (node) => node && node.$tag$ === Host;
154
129
  /**
155
130
  * Parse a new property value for a given property type.
@@ -238,7 +213,6 @@ const registerStyle = (scopeId, cssText, allowCS) => {
238
213
  styles.set(scopeId, style);
239
214
  };
240
215
  const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
241
- var _a;
242
216
  let scopeId = getScopeId(cmpMeta);
243
217
  const style = styles.get(scopeId);
244
218
  // if an element is NOT connected then getRootNode() will return the wrong root node
@@ -258,11 +232,6 @@ const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
258
232
  styleElm = doc.createElement('style');
259
233
  styleElm.innerHTML = style;
260
234
  }
261
- // Apply CSP nonce to the style tag if it exists
262
- const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
263
- if (nonce != null) {
264
- styleElm.setAttribute('nonce', nonce);
265
- }
266
235
  styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector('link'));
267
236
  }
268
237
  if (appliedStyles) {
@@ -497,21 +466,6 @@ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
497
466
  }
498
467
  return elm;
499
468
  };
500
- /**
501
- * Create DOM nodes corresponding to a list of {@link d.Vnode} objects and
502
- * add them to the DOM in the appropriate place.
503
- *
504
- * @param parentElm the DOM node which should be used as a parent for the new
505
- * DOM nodes
506
- * @param before a child of the `parentElm` which the new children should be
507
- * inserted before (optional)
508
- * @param parentVNode the parent virtual DOM node
509
- * @param vnodes the new child virtual DOM nodes to produce DOM nodes for
510
- * @param startIdx the index in the child virtual DOM nodes at which to start
511
- * creating DOM nodes (inclusive)
512
- * @param endIdx the index in the child virtual DOM nodes at which to stop
513
- * creating DOM nodes (inclusive)
514
- */
515
469
  const addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
516
470
  let containerElm = (parentElm);
517
471
  let childNode;
@@ -528,19 +482,6 @@ const addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) =>
528
482
  }
529
483
  }
530
484
  };
531
- /**
532
- * Remove the DOM elements corresponding to a list of {@link d.VNode} objects.
533
- * This can be used to, for instance, clean up after a list of children which
534
- * should no longer be shown.
535
- *
536
- * This function also handles some of Stencil's slot relocation logic.
537
- *
538
- * @param vnodes a list of virtual DOM nodes to remove
539
- * @param startIdx the index at which to start removing nodes (inclusive)
540
- * @param endIdx the index at which to stop removing nodes (inclusive)
541
- * @param vnode a VNode
542
- * @param elm an element
543
- */
544
485
  const removeVnodes = (vnodes, startIdx, endIdx, vnode, elm) => {
545
486
  for (; startIdx <= endIdx; ++startIdx) {
546
487
  if ((vnode = vnodes[startIdx])) {
@@ -770,8 +711,7 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
770
711
  *
771
712
  * So, in other words, if `key` attrs are not set on VNodes which may be
772
713
  * changing order within a `children` array or something along those lines then
773
- * we could obtain a false negative and then have to do needless re-rendering
774
- * (i.e. we'd say two VNodes aren't equal when in fact they should be).
714
+ * we could obtain a false positive and then have to do needless re-rendering.
775
715
  *
776
716
  * @param leftVNode the first VNode to check
777
717
  * @param rightVNode the second VNode to check
@@ -844,18 +784,6 @@ const callNodeRefs = (vNode) => {
844
784
  vNode.$children$ && vNode.$children$.map(callNodeRefs);
845
785
  }
846
786
  };
847
- /**
848
- * The main entry point for Stencil's virtual DOM-based rendering engine
849
- *
850
- * Given a {@link d.HostRef} container and some virtual DOM nodes, this
851
- * function will handle creating a virtual DOM tree with a single root, patching
852
- * the current virtual DOM tree onto an old one (if any), dealing with slot
853
- * relocation, and reflecting attributes.
854
- *
855
- * @param hostRef data needed to root and render the virtual DOM tree, such as
856
- * the DOM node into which it should be rendered.
857
- * @param renderFnResults the virtual DOM nodes to be rendered
858
- */
859
787
  const renderVdom = (hostRef, renderFnResults) => {
860
788
  const hostElm = hostRef.$hostElement$;
861
789
  const oldVNode = hostRef.$vnode$ || newVNode(null, null);
@@ -1315,7 +1243,6 @@ const disconnectedCallback = (elm) => {
1315
1243
  }
1316
1244
  };
1317
1245
  const bootstrapLazy = (lazyBundles, options = {}) => {
1318
- var _a;
1319
1246
  const endBootstrap = createTime();
1320
1247
  const cmpTags = [];
1321
1248
  const exclude = options.exclude || [];
@@ -1394,11 +1321,6 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
1394
1321
  {
1395
1322
  visibilityStyle.innerHTML = cmpTags + HYDRATED_CSS;
1396
1323
  visibilityStyle.setAttribute('data-styles', '');
1397
- // Apply CSP nonce to the style tag if it exists
1398
- const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
1399
- if (nonce != null) {
1400
- visibilityStyle.setAttribute('nonce', nonce);
1401
- }
1402
1324
  head.insertBefore(visibilityStyle, metaCharset ? metaCharset.nextSibling : head.firstChild);
1403
1325
  }
1404
1326
  // Process deferred connectedCallbacks now all components have been registered
@@ -1414,13 +1336,6 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
1414
1336
  // Fallback appLoad event
1415
1337
  endBootstrap();
1416
1338
  };
1417
- /**
1418
- * Assigns the given value to the nonce property on the runtime platform object.
1419
- * During runtime, this value is used to set the nonce attribute on all dynamically created script and style tags.
1420
- * @param nonce The value to be assigned to the platform nonce property.
1421
- * @returns void
1422
- */
1423
- const setNonce = (nonce) => (plt.$nonce$ = nonce);
1424
1339
  const hostRefs = /*@__PURE__*/ new WeakMap();
1425
1340
  const getHostRef = (ref) => hostRefs.get(ref);
1426
1341
  const registerInstance = (lazyInstance, hostRef) => hostRefs.set((hostRef.$lazyInstance$ = lazyInstance), hostRef);
@@ -1530,4 +1445,4 @@ const flush = () => {
1530
1445
  const nextTick = /*@__PURE__*/ (cb) => promiseResolve().then(cb);
1531
1446
  const writeTask = /*@__PURE__*/ queueTask(queueDomWrites, true);
1532
1447
 
1533
- export { Host as H, bootstrapLazy as b, createEvent as c, getElement as g, h, promiseResolve as p, registerInstance as r, setNonce as s };
1448
+ export { Host as H, bootstrapLazy as b, createEvent as c, getElement as g, h, promiseResolve as p, registerInstance as r };