@3t-transform/threeteeui 0.2.87 → 0.2.89

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 (111) hide show
  1. package/dist/cjs/{index-44c9fa62.js → index-992a9fb3.js} +386 -8
  2. package/dist/cjs/loader.cjs.js +2 -2
  3. package/dist/cjs/tttx-button.cjs.entry.js +1 -1
  4. package/dist/cjs/tttx-checkbox-group-caption.cjs.entry.js +16 -0
  5. package/dist/cjs/tttx-checkbox-group-heading.cjs.entry.js +16 -0
  6. package/dist/cjs/tttx-checkbox-group.cjs.entry.js +19 -0
  7. package/dist/cjs/tttx-checkbox.cjs.entry.js +43 -0
  8. package/dist/cjs/tttx-data-pattern.cjs.entry.js +1 -1
  9. package/dist/cjs/tttx-dialog-box.cjs.entry.js +1 -1
  10. package/dist/cjs/tttx-expander.cjs.entry.js +1 -1
  11. package/dist/cjs/tttx-filter_4.cjs.entry.js +1 -1
  12. package/dist/cjs/tttx-form.cjs.entry.js +1 -1
  13. package/dist/cjs/tttx-icon.cjs.entry.js +1 -1
  14. package/dist/cjs/tttx-keyvalue-block.cjs.entry.js +1 -1
  15. package/dist/cjs/tttx-loading-spinner.cjs.entry.js +1 -1
  16. package/dist/cjs/tttx-multiselect-box.cjs.entry.js +1 -1
  17. package/dist/cjs/tttx-percentage-bar.cjs.entry.js +1 -1
  18. package/dist/cjs/tttx-qrcode.cjs.entry.js +1 -1
  19. package/dist/cjs/tttx-select-box.cjs.entry.js +1 -1
  20. package/dist/cjs/tttx-standalone-input.cjs.entry.js +1 -1
  21. package/dist/cjs/tttx-tabs.cjs.entry.js +1 -1
  22. package/dist/cjs/tttx-tag.cjs.entry.js +1 -1
  23. package/dist/cjs/tttx-textarea.cjs.entry.js +1 -1
  24. package/dist/cjs/tttx-tree-view.cjs.entry.js +5 -9
  25. package/dist/cjs/tttx.cjs.js +2 -2
  26. package/dist/collection/collection-manifest.json +4 -0
  27. package/dist/collection/components/atoms/tttx-checkbox/tttx-checkbox.css +28 -0
  28. package/dist/collection/components/atoms/tttx-checkbox/tttx-checkbox.js +154 -0
  29. package/dist/collection/components/atoms/tttx-checkbox/tttx-checkbox.stories.js +69 -0
  30. package/dist/collection/components/molecules/tttx-checkbox-group/components/tttx-checkbox-group-caption.js +7 -0
  31. package/dist/collection/components/molecules/tttx-checkbox-group/components/tttx-checkbox-group-heading.js +7 -0
  32. package/dist/collection/components/molecules/tttx-checkbox-group/tttx-checkbox-group.css +24 -0
  33. package/dist/collection/components/molecules/tttx-checkbox-group/tttx-checkbox-group.js +18 -0
  34. package/dist/collection/components/molecules/tttx-checkbox-group/tttx-checkbox-group.stories.js +83 -0
  35. package/dist/collection/components/molecules/tttx-tree-view/tttx-tree-view.css +1 -5
  36. package/dist/collection/components/molecules/tttx-tree-view/tttx-tree-view.js +22 -7
  37. package/dist/collection/components/molecules/tttx-tree-view/tttx-tree-view.stories.js +17 -252
  38. package/dist/components/index.d.ts +4 -0
  39. package/dist/components/index.js +4 -0
  40. package/dist/components/tttx-checkbox-group-caption.d.ts +11 -0
  41. package/dist/components/tttx-checkbox-group-caption.js +29 -0
  42. package/dist/components/tttx-checkbox-group-heading.d.ts +11 -0
  43. package/dist/components/tttx-checkbox-group-heading.js +29 -0
  44. package/dist/components/tttx-checkbox-group.d.ts +11 -0
  45. package/dist/components/tttx-checkbox-group.js +33 -0
  46. package/dist/components/tttx-checkbox.d.ts +11 -0
  47. package/dist/components/tttx-checkbox.js +68 -0
  48. package/dist/components/tttx-tree-view.js +4 -8
  49. package/dist/esm/{index-65b1e0d1.js → index-b11965d8.js} +386 -8
  50. package/dist/esm/loader.js +3 -3
  51. package/dist/esm/tttx-button.entry.js +1 -1
  52. package/dist/esm/tttx-checkbox-group-caption.entry.js +12 -0
  53. package/dist/esm/tttx-checkbox-group-heading.entry.js +12 -0
  54. package/dist/esm/tttx-checkbox-group.entry.js +15 -0
  55. package/dist/esm/tttx-checkbox.entry.js +39 -0
  56. package/dist/esm/tttx-data-pattern.entry.js +1 -1
  57. package/dist/esm/tttx-dialog-box.entry.js +1 -1
  58. package/dist/esm/tttx-expander.entry.js +1 -1
  59. package/dist/esm/tttx-filter_4.entry.js +1 -1
  60. package/dist/esm/tttx-form.entry.js +1 -1
  61. package/dist/esm/tttx-icon.entry.js +1 -1
  62. package/dist/esm/tttx-keyvalue-block.entry.js +1 -1
  63. package/dist/esm/tttx-loading-spinner.entry.js +1 -1
  64. package/dist/esm/tttx-multiselect-box.entry.js +1 -1
  65. package/dist/esm/tttx-percentage-bar.entry.js +1 -1
  66. package/dist/esm/tttx-qrcode.entry.js +1 -1
  67. package/dist/esm/tttx-select-box.entry.js +1 -1
  68. package/dist/esm/tttx-standalone-input.entry.js +1 -1
  69. package/dist/esm/tttx-tabs.entry.js +1 -1
  70. package/dist/esm/tttx-tag.entry.js +1 -1
  71. package/dist/esm/tttx-textarea.entry.js +1 -1
  72. package/dist/esm/tttx-tree-view.entry.js +5 -9
  73. package/dist/esm/tttx.js +3 -3
  74. package/dist/tttx/p-12bb33d0.entry.js +1 -0
  75. package/dist/tttx/{p-15a42062.entry.js → p-15b7a577.entry.js} +1 -1
  76. package/dist/tttx/p-177a760d.entry.js +1 -0
  77. package/dist/tttx/{p-6bd70736.entry.js → p-22738f43.entry.js} +1 -1
  78. package/dist/tttx/{p-1c2f0e77.entry.js → p-34f328f9.entry.js} +1 -1
  79. package/dist/tttx/{p-fa12ed9d.entry.js → p-61741832.entry.js} +1 -1
  80. package/dist/tttx/p-61ef7773.entry.js +1 -0
  81. package/dist/tttx/p-65bb4035.js +2 -0
  82. package/dist/tttx/p-67f24d17.entry.js +1 -0
  83. package/dist/tttx/{p-8526fe6d.entry.js → p-69642b71.entry.js} +1 -1
  84. package/dist/tttx/p-73a7a3b8.entry.js +1 -0
  85. package/dist/tttx/{p-02515882.entry.js → p-7f1452fb.entry.js} +1 -1
  86. package/dist/tttx/{p-1190c6e5.entry.js → p-87b6e5a9.entry.js} +1 -1
  87. package/dist/tttx/{p-14d89f70.entry.js → p-93e63568.entry.js} +1 -1
  88. package/dist/tttx/{p-ebcf2c5f.entry.js → p-9ad58b75.entry.js} +1 -1
  89. package/dist/tttx/{p-f12eb43b.entry.js → p-a94f7efc.entry.js} +1 -1
  90. package/dist/tttx/{p-aab2c93c.entry.js → p-b189ca0f.entry.js} +1 -1
  91. package/dist/tttx/{p-46a6a5db.entry.js → p-bc363141.entry.js} +1 -1
  92. package/dist/tttx/{p-f2d08143.entry.js → p-be16cf2d.entry.js} +1 -1
  93. package/dist/tttx/{p-0b2026f7.entry.js → p-e2dda35e.entry.js} +1 -1
  94. package/dist/tttx/{p-a2d59582.entry.js → p-e7b7d2e2.entry.js} +1 -1
  95. package/dist/tttx/{p-003798cb.entry.js → p-f27adb48.entry.js} +1 -1
  96. package/dist/tttx/{p-291d5ae0.entry.js → p-fe6c321b.entry.js} +1 -1
  97. package/dist/tttx/tttx.esm.js +1 -1
  98. package/dist/types/components/atoms/tttx-checkbox/tttx-checkbox.d.ts +17 -0
  99. package/dist/types/components/atoms/tttx-checkbox/tttx-checkbox.stories.d.ts +47 -0
  100. package/dist/types/components/molecules/tttx-checkbox-group/components/tttx-checkbox-group-caption.d.ts +3 -0
  101. package/dist/types/components/molecules/tttx-checkbox-group/components/tttx-checkbox-group-heading.d.ts +3 -0
  102. package/dist/types/components/molecules/tttx-checkbox-group/interfaces.d.ts +10 -0
  103. package/dist/types/components/molecules/tttx-checkbox-group/tttx-checkbox-group.d.ts +3 -0
  104. package/dist/types/components/molecules/tttx-checkbox-group/tttx-checkbox-group.stories.d.ts +15 -0
  105. package/dist/types/components/molecules/tttx-tree-view/helper/helper.d.ts +5 -2
  106. package/dist/types/components/molecules/tttx-tree-view/tttx-tree-view.d.ts +4 -3
  107. package/dist/types/components/molecules/tttx-tree-view/tttx-tree-view.stories.d.ts +1 -4
  108. package/dist/types/components.d.ts +69 -1
  109. package/package.json +3 -3
  110. package/dist/tttx/p-99a41e8e.js +0 -2
  111. package/dist/tttx/p-b7a2de3b.entry.js +0 -1
@@ -31,7 +31,11 @@ const NAMESPACE = 'tttx';
31
31
  * Modified for Stencil's renderer and slot projection
32
32
  */
33
33
  let scopeId;
34
+ let contentRef;
34
35
  let hostTagName;
36
+ let useNativeShadowDom = false;
37
+ let checkSlotFallbackVisibility = false;
38
+ let checkSlotRelocate = false;
35
39
  let isSvgMode = false;
36
40
  let queuePending = false;
37
41
  const createTime = (fnName, tagName = '') => {
@@ -88,6 +92,7 @@ function queryNonceMetaTagContent(doc) {
88
92
  const h = (nodeName, vnodeData, ...children) => {
89
93
  let child = null;
90
94
  let key = null;
95
+ let slotName = null;
91
96
  let simple = false;
92
97
  let lastSimple = false;
93
98
  const vNodeChildren = [];
@@ -119,6 +124,9 @@ const h = (nodeName, vnodeData, ...children) => {
119
124
  if (vnodeData.key) {
120
125
  key = vnodeData.key;
121
126
  }
127
+ if (vnodeData.name) {
128
+ slotName = vnodeData.name;
129
+ }
122
130
  {
123
131
  const classData = vnodeData.className || vnodeData.class;
124
132
  if (classData) {
@@ -143,6 +151,9 @@ const h = (nodeName, vnodeData, ...children) => {
143
151
  {
144
152
  vnode.$key$ = key;
145
153
  }
154
+ {
155
+ vnode.$name$ = slotName;
156
+ }
146
157
  return vnode;
147
158
  };
148
159
  /**
@@ -167,6 +178,9 @@ const newVNode = (tag, text) => {
167
178
  {
168
179
  vnode.$key$ = null;
169
180
  }
181
+ {
182
+ vnode.$name$ = null;
183
+ }
170
184
  return vnode;
171
185
  };
172
186
  const Host = {};
@@ -550,13 +564,36 @@ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
550
564
  let i = 0;
551
565
  let elm;
552
566
  let childNode;
567
+ let oldVNode;
568
+ if (!useNativeShadowDom) {
569
+ // remember for later we need to check to relocate nodes
570
+ checkSlotRelocate = true;
571
+ if (newVNode.$tag$ === 'slot') {
572
+ if (scopeId) {
573
+ // scoped css needs to add its scoped id to the parent element
574
+ parentElm.classList.add(scopeId + '-s');
575
+ }
576
+ newVNode.$flags$ |= newVNode.$children$
577
+ ? // slot element has fallback content
578
+ 2 /* VNODE_FLAGS.isSlotFallback */
579
+ : // slot element does not have fallback content
580
+ 1 /* VNODE_FLAGS.isSlotReference */;
581
+ }
582
+ }
553
583
  if (newVNode.$text$ !== null) {
554
584
  // create text node
555
585
  elm = newVNode.$elm$ = doc.createTextNode(newVNode.$text$);
556
586
  }
587
+ else if (newVNode.$flags$ & 1 /* VNODE_FLAGS.isSlotReference */) {
588
+ // create a slot reference node
589
+ elm = newVNode.$elm$ =
590
+ doc.createTextNode('');
591
+ }
557
592
  else {
558
593
  // create element
559
- elm = newVNode.$elm$ = (doc.createElement(newVNode.$tag$));
594
+ elm = newVNode.$elm$ = (doc.createElement(newVNode.$flags$ & 2 /* VNODE_FLAGS.isSlotFallback */
595
+ ? 'slot-fb'
596
+ : newVNode.$tag$));
560
597
  // add css classes, attrs, props, listeners, etc.
561
598
  {
562
599
  updateElement(null, newVNode, isSvgMode);
@@ -569,7 +606,7 @@ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
569
606
  if (newVNode.$children$) {
570
607
  for (i = 0; i < newVNode.$children$.length; ++i) {
571
608
  // create the node
572
- childNode = createElm(oldParentVNode, newVNode, i);
609
+ childNode = createElm(oldParentVNode, newVNode, i, elm);
573
610
  // return node could have been null
574
611
  if (childNode) {
575
612
  // append our new node
@@ -578,8 +615,50 @@ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
578
615
  }
579
616
  }
580
617
  }
618
+ {
619
+ elm['s-hn'] = hostTagName;
620
+ if (newVNode.$flags$ & (2 /* VNODE_FLAGS.isSlotFallback */ | 1 /* VNODE_FLAGS.isSlotReference */)) {
621
+ // remember the content reference comment
622
+ elm['s-sr'] = true;
623
+ // remember the content reference comment
624
+ elm['s-cr'] = contentRef;
625
+ // remember the slot name, or empty string for default slot
626
+ elm['s-sn'] = newVNode.$name$ || '';
627
+ // check if we've got an old vnode for this slot
628
+ oldVNode = oldParentVNode && oldParentVNode.$children$ && oldParentVNode.$children$[childIndex];
629
+ if (oldVNode && oldVNode.$tag$ === newVNode.$tag$ && oldParentVNode.$elm$) {
630
+ // we've got an old slot vnode and the wrapper is being replaced
631
+ // so let's move the old slot content back to it's original location
632
+ putBackInOriginalLocation(oldParentVNode.$elm$, false);
633
+ }
634
+ }
635
+ }
581
636
  return elm;
582
637
  };
638
+ const putBackInOriginalLocation = (parentElm, recursive) => {
639
+ plt.$flags$ |= 1 /* PLATFORM_FLAGS.isTmpDisconnected */;
640
+ const oldSlotChildNodes = parentElm.childNodes;
641
+ for (let i = oldSlotChildNodes.length - 1; i >= 0; i--) {
642
+ const childNode = oldSlotChildNodes[i];
643
+ if (childNode['s-hn'] !== hostTagName && childNode['s-ol']) {
644
+ // // this child node in the old element is from another component
645
+ // // remove this node from the old slot's parent
646
+ // childNode.remove();
647
+ // and relocate it back to it's original location
648
+ parentReferenceNode(childNode).insertBefore(childNode, referenceNode(childNode));
649
+ // remove the old original location comment entirely
650
+ // later on the patch function will know what to do
651
+ // and move this to the correct spot in need be
652
+ childNode['s-ol'].remove();
653
+ childNode['s-ol'] = undefined;
654
+ checkSlotRelocate = true;
655
+ }
656
+ if (recursive) {
657
+ putBackInOriginalLocation(childNode, recursive);
658
+ }
659
+ }
660
+ plt.$flags$ &= ~1 /* PLATFORM_FLAGS.isTmpDisconnected */;
661
+ };
583
662
  /**
584
663
  * Create DOM nodes corresponding to a list of {@link d.Vnode} objects and
585
664
  * add them to the DOM in the appropriate place.
@@ -596,17 +675,17 @@ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
596
675
  * creating DOM nodes (inclusive)
597
676
  */
598
677
  const addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
599
- let containerElm = (parentElm);
678
+ let containerElm = ((parentElm['s-cr'] && parentElm['s-cr'].parentNode) || parentElm);
600
679
  let childNode;
601
680
  if (containerElm.shadowRoot && containerElm.tagName === hostTagName) {
602
681
  containerElm = containerElm.shadowRoot;
603
682
  }
604
683
  for (; startIdx <= endIdx; ++startIdx) {
605
684
  if (vnodes[startIdx]) {
606
- childNode = createElm(null, parentVNode, startIdx);
685
+ childNode = createElm(null, parentVNode, startIdx, parentElm);
607
686
  if (childNode) {
608
687
  vnodes[startIdx].$elm$ = childNode;
609
- containerElm.insertBefore(childNode, before);
688
+ containerElm.insertBefore(childNode, referenceNode(before) );
610
689
  }
611
690
  }
612
691
  }
@@ -629,6 +708,20 @@ const removeVnodes = (vnodes, startIdx, endIdx, vnode, elm) => {
629
708
  if ((vnode = vnodes[startIdx])) {
630
709
  elm = vnode.$elm$;
631
710
  callNodeRefs(vnode);
711
+ {
712
+ // we're removing this element
713
+ // so it's possible we need to show slot fallback content now
714
+ checkSlotFallbackVisibility = true;
715
+ if (elm['s-ol']) {
716
+ // remove the original location comment
717
+ elm['s-ol'].remove();
718
+ }
719
+ else {
720
+ // it's possible that child nodes of the node
721
+ // that's being removed are slot nodes
722
+ putBackInOriginalLocation(elm, true);
723
+ }
724
+ }
632
725
  // remove the vnode's element from the dom
633
726
  elm.remove();
634
727
  }
@@ -747,6 +840,23 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
747
840
  newEndVnode = newCh[--newEndIdx];
748
841
  }
749
842
  else if (isSameVnode(oldStartVnode, newEndVnode)) {
843
+ // case: "Vnode moved right"
844
+ //
845
+ // We've found that the last node in our window on the new children is
846
+ // the same VNode as the _first_ node in our window on the old children
847
+ // we're dealing with now. Visually, this is the layout of these two
848
+ // nodes:
849
+ //
850
+ // newCh: [..., newStartVnode , ... , newEndVnode , ...]
851
+ // ^^^^^^^^^^^
852
+ // oldCh: [..., oldStartVnode , ... , oldEndVnode , ...]
853
+ // ^^^^^^^^^^^^^
854
+ //
855
+ // In this situation we need to patch `newEndVnode` onto `oldStartVnode`
856
+ // and move the DOM element for `oldStartVnode`.
857
+ if ((oldStartVnode.$tag$ === 'slot' || newEndVnode.$tag$ === 'slot')) {
858
+ putBackInOriginalLocation(oldStartVnode.$elm$.parentNode, false);
859
+ }
750
860
  patch(oldStartVnode, newEndVnode);
751
861
  // We need to move the element for `oldStartVnode` into a position which
752
862
  // will be appropriate for `newEndVnode`. For this we can use
@@ -770,6 +880,24 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
770
880
  newEndVnode = newCh[--newEndIdx];
771
881
  }
772
882
  else if (isSameVnode(oldEndVnode, newStartVnode)) {
883
+ // case: "Vnode moved left"
884
+ //
885
+ // We've found that the first node in our window on the new children is
886
+ // the same VNode as the _last_ node in our window on the old children.
887
+ // Visually, this is the layout of these two nodes:
888
+ //
889
+ // newCh: [..., newStartVnode , ... , newEndVnode , ...]
890
+ // ^^^^^^^^^^^^^
891
+ // oldCh: [..., oldStartVnode , ... , oldEndVnode , ...]
892
+ // ^^^^^^^^^^^
893
+ //
894
+ // In this situation we need to patch `newStartVnode` onto `oldEndVnode`
895
+ // (which will handle updating any changed attributes, reconciling their
896
+ // children etc) but we also need to move the DOM node to which
897
+ // `oldEndVnode` corresponds.
898
+ if ((oldStartVnode.$tag$ === 'slot' || newEndVnode.$tag$ === 'slot')) {
899
+ putBackInOriginalLocation(oldEndVnode.$elm$.parentNode, false);
900
+ }
773
901
  patch(oldEndVnode, newStartVnode);
774
902
  // We've already checked above if `oldStartVnode` and `newStartVnode` are
775
903
  // the same node, so since we're here we know that they are not. Thus we
@@ -804,7 +932,7 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
804
932
  elmToMove = oldCh[idxInOld];
805
933
  if (elmToMove.$tag$ !== newStartVnode.$tag$) {
806
934
  // the tag doesn't match so we'll need a new DOM element
807
- node = createElm(oldCh && oldCh[newStartIdx], newVNode, idxInOld);
935
+ node = createElm(oldCh && oldCh[newStartIdx], newVNode, idxInOld, parentElm);
808
936
  }
809
937
  else {
810
938
  patch(elmToMove, newStartVnode);
@@ -820,13 +948,13 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
820
948
  // the key of the first new child OR the build is not using `key`
821
949
  // attributes at all. In either case we need to create a new element
822
950
  // for the new node.
823
- node = createElm(oldCh && oldCh[newStartIdx], newVNode, newStartIdx);
951
+ node = createElm(oldCh && oldCh[newStartIdx], newVNode, newStartIdx, parentElm);
824
952
  newStartVnode = newCh[++newStartIdx];
825
953
  }
826
954
  if (node) {
827
955
  // if we created a new node then handle inserting it to the DOM
828
956
  {
829
- oldStartVnode.$elm$.parentNode.insertBefore(node, oldStartVnode.$elm$);
957
+ parentReferenceNode(oldStartVnode.$elm$).insertBefore(node, referenceNode(oldStartVnode.$elm$));
830
958
  }
831
959
  }
832
960
  }
@@ -864,6 +992,9 @@ const isSameVnode = (leftVNode, rightVNode) => {
864
992
  // compare if two vnode to see if they're "technically" the same
865
993
  // need to have the same element tag, and same key to be the same
866
994
  if (leftVNode.$tag$ === rightVNode.$tag$) {
995
+ if (leftVNode.$tag$ === 'slot') {
996
+ return leftVNode.$name$ === rightVNode.$name$;
997
+ }
867
998
  // this will be set if components in the build have `key` attrs set on them
868
999
  {
869
1000
  return leftVNode.$key$ === rightVNode.$key$;
@@ -871,6 +1002,14 @@ const isSameVnode = (leftVNode, rightVNode) => {
871
1002
  }
872
1003
  return false;
873
1004
  };
1005
+ const referenceNode = (node) => {
1006
+ // this node was relocated to a new location in the dom
1007
+ // because of some other component's slot
1008
+ // but we still have an html comment in place of where
1009
+ // it's original location was according to it's original vdom
1010
+ return (node && node['s-ol']) || node;
1011
+ };
1012
+ const parentReferenceNode = (node) => (node['s-ol'] ? node['s-ol'] : node).parentNode;
874
1013
  /**
875
1014
  * Handle reconciling an outdated VNode with a new one which corresponds to
876
1015
  * it. This function handles flushing updates to the DOM and reconciling the
@@ -885,6 +1024,7 @@ const patch = (oldVNode, newVNode) => {
885
1024
  const newChildren = newVNode.$children$;
886
1025
  const tag = newVNode.$tag$;
887
1026
  const text = newVNode.$text$;
1027
+ let defaultHolder;
888
1028
  if (text === null) {
889
1029
  {
890
1030
  if (tag === 'slot')
@@ -915,12 +1055,147 @@ const patch = (oldVNode, newVNode) => {
915
1055
  removeVnodes(oldChildren, 0, oldChildren.length - 1);
916
1056
  }
917
1057
  }
1058
+ else if ((defaultHolder = elm['s-cr'])) {
1059
+ // this element has slotted content
1060
+ defaultHolder.parentNode.textContent = text;
1061
+ }
918
1062
  else if (oldVNode.$text$ !== text) {
919
1063
  // update the text content for the text only vnode
920
1064
  // and also only if the text is different than before
921
1065
  elm.data = text;
922
1066
  }
923
1067
  };
1068
+ const updateFallbackSlotVisibility = (elm) => {
1069
+ // tslint:disable-next-line: prefer-const
1070
+ const childNodes = elm.childNodes;
1071
+ let childNode;
1072
+ let i;
1073
+ let ilen;
1074
+ let j;
1075
+ let slotNameAttr;
1076
+ let nodeType;
1077
+ for (i = 0, ilen = childNodes.length; i < ilen; i++) {
1078
+ childNode = childNodes[i];
1079
+ if (childNode.nodeType === 1 /* NODE_TYPE.ElementNode */) {
1080
+ if (childNode['s-sr']) {
1081
+ // this is a slot fallback node
1082
+ // get the slot name for this slot reference node
1083
+ slotNameAttr = childNode['s-sn'];
1084
+ // by default always show a fallback slot node
1085
+ // then hide it if there are other slots in the light dom
1086
+ childNode.hidden = false;
1087
+ for (j = 0; j < ilen; j++) {
1088
+ nodeType = childNodes[j].nodeType;
1089
+ if (childNodes[j]['s-hn'] !== childNode['s-hn'] || slotNameAttr !== '') {
1090
+ // this sibling node is from a different component OR is a named fallback slot node
1091
+ if (nodeType === 1 /* NODE_TYPE.ElementNode */ && slotNameAttr === childNodes[j].getAttribute('slot')) {
1092
+ childNode.hidden = true;
1093
+ break;
1094
+ }
1095
+ }
1096
+ else {
1097
+ // this is a default fallback slot node
1098
+ // any element or text node (with content)
1099
+ // should hide the default fallback slot node
1100
+ if (nodeType === 1 /* NODE_TYPE.ElementNode */ ||
1101
+ (nodeType === 3 /* NODE_TYPE.TextNode */ && childNodes[j].textContent.trim() !== '')) {
1102
+ childNode.hidden = true;
1103
+ break;
1104
+ }
1105
+ }
1106
+ }
1107
+ }
1108
+ // keep drilling down
1109
+ updateFallbackSlotVisibility(childNode);
1110
+ }
1111
+ }
1112
+ };
1113
+ const relocateNodes = [];
1114
+ const relocateSlotContent = (elm) => {
1115
+ // tslint:disable-next-line: prefer-const
1116
+ let childNode;
1117
+ let node;
1118
+ let hostContentNodes;
1119
+ let slotNameAttr;
1120
+ let relocateNodeData;
1121
+ let j;
1122
+ let i = 0;
1123
+ const childNodes = elm.childNodes;
1124
+ const ilen = childNodes.length;
1125
+ for (; i < ilen; i++) {
1126
+ childNode = childNodes[i];
1127
+ if (childNode['s-sr'] && (node = childNode['s-cr']) && node.parentNode) {
1128
+ // first got the content reference comment node
1129
+ // then we got it's parent, which is where all the host content is in now
1130
+ hostContentNodes = node.parentNode.childNodes;
1131
+ slotNameAttr = childNode['s-sn'];
1132
+ for (j = hostContentNodes.length - 1; j >= 0; j--) {
1133
+ node = hostContentNodes[j];
1134
+ if (!node['s-cn'] && !node['s-nr'] && node['s-hn'] !== childNode['s-hn']) {
1135
+ // let's do some relocating to its new home
1136
+ // but never relocate a content reference node
1137
+ // that is suppose to always represent the original content location
1138
+ if (isNodeLocatedInSlot(node, slotNameAttr)) {
1139
+ // it's possible we've already decided to relocate this node
1140
+ relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
1141
+ // made some changes to slots
1142
+ // let's make sure we also double check
1143
+ // fallbacks are correctly hidden or shown
1144
+ checkSlotFallbackVisibility = true;
1145
+ node['s-sn'] = node['s-sn'] || slotNameAttr;
1146
+ if (relocateNodeData) {
1147
+ // previously we never found a slot home for this node
1148
+ // but turns out we did, so let's remember it now
1149
+ relocateNodeData.$slotRefNode$ = childNode;
1150
+ }
1151
+ else {
1152
+ // add to our list of nodes to relocate
1153
+ relocateNodes.push({
1154
+ $slotRefNode$: childNode,
1155
+ $nodeToRelocate$: node,
1156
+ });
1157
+ }
1158
+ if (node['s-sr']) {
1159
+ relocateNodes.map((relocateNode) => {
1160
+ if (isNodeLocatedInSlot(relocateNode.$nodeToRelocate$, node['s-sn'])) {
1161
+ relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
1162
+ if (relocateNodeData && !relocateNode.$slotRefNode$) {
1163
+ relocateNode.$slotRefNode$ = relocateNodeData.$slotRefNode$;
1164
+ }
1165
+ }
1166
+ });
1167
+ }
1168
+ }
1169
+ else if (!relocateNodes.some((r) => r.$nodeToRelocate$ === node)) {
1170
+ // so far this element does not have a slot home, not setting slotRefNode on purpose
1171
+ // if we never find a home for this element then we'll need to hide it
1172
+ relocateNodes.push({
1173
+ $nodeToRelocate$: node,
1174
+ });
1175
+ }
1176
+ }
1177
+ }
1178
+ }
1179
+ if (childNode.nodeType === 1 /* NODE_TYPE.ElementNode */) {
1180
+ relocateSlotContent(childNode);
1181
+ }
1182
+ }
1183
+ };
1184
+ const isNodeLocatedInSlot = (nodeToRelocate, slotNameAttr) => {
1185
+ if (nodeToRelocate.nodeType === 1 /* NODE_TYPE.ElementNode */) {
1186
+ if (nodeToRelocate.getAttribute('slot') === null && slotNameAttr === '') {
1187
+ return true;
1188
+ }
1189
+ if (nodeToRelocate.getAttribute('slot') === slotNameAttr) {
1190
+ return true;
1191
+ }
1192
+ return false;
1193
+ }
1194
+ if (nodeToRelocate['s-sn'] === slotNameAttr) {
1195
+ return true;
1196
+ }
1197
+ return slotNameAttr === '';
1198
+ };
924
1199
  const callNodeRefs = (vNode) => {
925
1200
  {
926
1201
  vNode.$attrs$ && vNode.$attrs$.ref && vNode.$attrs$.ref(null);
@@ -941,6 +1216,7 @@ const callNodeRefs = (vNode) => {
941
1216
  */
942
1217
  const renderVdom = (hostRef, renderFnResults) => {
943
1218
  const hostElm = hostRef.$hostElement$;
1219
+ const cmpMeta = hostRef.$cmpMeta$;
944
1220
  const oldVNode = hostRef.$vnode$ || newVNode(null, null);
945
1221
  const rootVnode = isHost(renderFnResults) ? renderFnResults : h(null, null, renderFnResults);
946
1222
  hostTagName = hostElm.tagName;
@@ -951,8 +1227,90 @@ const renderVdom = (hostRef, renderFnResults) => {
951
1227
  {
952
1228
  scopeId = hostElm['s-sc'];
953
1229
  }
1230
+ {
1231
+ contentRef = hostElm['s-cr'];
1232
+ useNativeShadowDom = (cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */) !== 0;
1233
+ // always reset
1234
+ checkSlotFallbackVisibility = false;
1235
+ }
954
1236
  // synchronous patch
955
1237
  patch(oldVNode, rootVnode);
1238
+ {
1239
+ // while we're moving nodes around existing nodes, temporarily disable
1240
+ // the disconnectCallback from working
1241
+ plt.$flags$ |= 1 /* PLATFORM_FLAGS.isTmpDisconnected */;
1242
+ if (checkSlotRelocate) {
1243
+ relocateSlotContent(rootVnode.$elm$);
1244
+ let relocateData;
1245
+ let nodeToRelocate;
1246
+ let orgLocationNode;
1247
+ let parentNodeRef;
1248
+ let insertBeforeNode;
1249
+ let refNode;
1250
+ let i = 0;
1251
+ for (; i < relocateNodes.length; i++) {
1252
+ relocateData = relocateNodes[i];
1253
+ nodeToRelocate = relocateData.$nodeToRelocate$;
1254
+ if (!nodeToRelocate['s-ol']) {
1255
+ // add a reference node marking this node's original location
1256
+ // keep a reference to this node for later lookups
1257
+ orgLocationNode =
1258
+ doc.createTextNode('');
1259
+ orgLocationNode['s-nr'] = nodeToRelocate;
1260
+ nodeToRelocate.parentNode.insertBefore((nodeToRelocate['s-ol'] = orgLocationNode), nodeToRelocate);
1261
+ }
1262
+ }
1263
+ for (i = 0; i < relocateNodes.length; i++) {
1264
+ relocateData = relocateNodes[i];
1265
+ nodeToRelocate = relocateData.$nodeToRelocate$;
1266
+ if (relocateData.$slotRefNode$) {
1267
+ // by default we're just going to insert it directly
1268
+ // after the slot reference node
1269
+ parentNodeRef = relocateData.$slotRefNode$.parentNode;
1270
+ insertBeforeNode = relocateData.$slotRefNode$.nextSibling;
1271
+ orgLocationNode = nodeToRelocate['s-ol'];
1272
+ while ((orgLocationNode = orgLocationNode.previousSibling)) {
1273
+ refNode = orgLocationNode['s-nr'];
1274
+ if (refNode && refNode['s-sn'] === nodeToRelocate['s-sn'] && parentNodeRef === refNode.parentNode) {
1275
+ refNode = refNode.nextSibling;
1276
+ if (!refNode || !refNode['s-nr']) {
1277
+ insertBeforeNode = refNode;
1278
+ break;
1279
+ }
1280
+ }
1281
+ }
1282
+ if ((!insertBeforeNode && parentNodeRef !== nodeToRelocate.parentNode) ||
1283
+ nodeToRelocate.nextSibling !== insertBeforeNode) {
1284
+ // we've checked that it's worth while to relocate
1285
+ // since that the node to relocate
1286
+ // has a different next sibling or parent relocated
1287
+ if (nodeToRelocate !== insertBeforeNode) {
1288
+ if (!nodeToRelocate['s-hn'] && nodeToRelocate['s-ol']) {
1289
+ // probably a component in the index.html that doesn't have it's hostname set
1290
+ nodeToRelocate['s-hn'] = nodeToRelocate['s-ol'].parentNode.nodeName;
1291
+ }
1292
+ // add it back to the dom but in its new home
1293
+ parentNodeRef.insertBefore(nodeToRelocate, insertBeforeNode);
1294
+ }
1295
+ }
1296
+ }
1297
+ else {
1298
+ // this node doesn't have a slot home to go to, so let's hide it
1299
+ if (nodeToRelocate.nodeType === 1 /* NODE_TYPE.ElementNode */) {
1300
+ nodeToRelocate.hidden = true;
1301
+ }
1302
+ }
1303
+ }
1304
+ }
1305
+ if (checkSlotFallbackVisibility) {
1306
+ updateFallbackSlotVisibility(rootVnode.$elm$);
1307
+ }
1308
+ // done moving nodes around
1309
+ // allow the disconnect callback to work again
1310
+ plt.$flags$ &= ~1 /* PLATFORM_FLAGS.isTmpDisconnected */;
1311
+ // always reset
1312
+ relocateNodes.length = 0;
1313
+ }
956
1314
  };
957
1315
  const attachToAncestor = (hostRef, ancestorComponent) => {
958
1316
  if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent['s-p']) {
@@ -1369,6 +1727,15 @@ const connectedCallback = (elm) => {
1369
1727
  if (!(hostRef.$flags$ & 1 /* HOST_FLAGS.hasConnected */)) {
1370
1728
  // first time this component has connected
1371
1729
  hostRef.$flags$ |= 1 /* HOST_FLAGS.hasConnected */;
1730
+ {
1731
+ // initUpdate
1732
+ // if the slot polyfill is required we'll need to put some nodes
1733
+ // in here to act as original content anchors as we move nodes around
1734
+ // host element has been connected to the DOM
1735
+ if ((cmpMeta.$flags$ & (4 /* CMP_FLAGS.hasSlotRelocation */ | 8 /* CMP_FLAGS.needsShadowDomShim */))) {
1736
+ setContentReference(elm);
1737
+ }
1738
+ }
1372
1739
  {
1373
1740
  // find the first ancestor component (if there is one) and register
1374
1741
  // this component as one of the actively loading child components for its ancestor
@@ -1408,6 +1775,17 @@ const connectedCallback = (elm) => {
1408
1775
  endConnected();
1409
1776
  }
1410
1777
  };
1778
+ const setContentReference = (elm) => {
1779
+ // only required when we're NOT using native shadow dom (slot)
1780
+ // or this browser doesn't support native shadow dom
1781
+ // and this host element was NOT created with SSR
1782
+ // let's pick out the inner content for slot projection
1783
+ // create a node to represent where the original
1784
+ // content was first placed, which is useful later on
1785
+ const contentRefElm = (elm['s-cr'] = doc.createComment(''));
1786
+ contentRefElm['s-cn'] = true;
1787
+ elm.insertBefore(contentRefElm, elm.firstChild);
1788
+ };
1411
1789
  const disconnectedCallback = (elm) => {
1412
1790
  if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {
1413
1791
  const hostRef = getHostRef(elm);
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-44c9fa62.js');
5
+ const index = require('./index-992a9fb3.js');
6
6
 
7
7
  /*
8
8
  Stencil Client Patch Esm v2.22.3 | MIT Licensed | https://stenciljs.com
@@ -14,7 +14,7 @@ const patchEsm = () => {
14
14
  const defineCustomElements = (win, options) => {
15
15
  if (typeof window === 'undefined') return Promise.resolve();
16
16
  return patchEsm().then(() => {
17
- return index.bootstrapLazy([["tttx-data-pattern.cjs",[[1,"tttx-data-pattern",{"data":[1],"sorteroptions":[1],"filteroptions":[1],"filterheader":[1]}]]],["tttx-multiselect-box.cjs",[[1,"tttx-multiselect-box",{"optionsData":[1,"options-data"],"label":[1],"inline":[4],"placeholder":[1],"searchEnabled":[4,"search-enabled"],"htmlVisibleValue":[4,"html-visible-value"],"visibleValue":[1,"visible-value"],"open":[32],"unsavedSelectedItems":[32],"searchTerm":[32]},[[0,"closeSelectBox","handleCloseSelectBox"],[0,"blur","handleBlur"]]]]],["tttx-dialog-box.cjs",[[1,"tttx-dialog-box",{"data":[1025],"size":[1],"open":[1028],"allowOverflow":[4,"allow-overflow"],"elementSize":[32]},[[9,"resize","handleResize"]]]]],["tttx-select-box.cjs",[[1,"tttx-select-box",{"optionsData":[1,"options-data"],"label":[1],"inline":[4],"placeholder":[1],"searchEnabled":[4,"search-enabled"],"selectedValue":[1,"selected-value"],"open":[32],"selectedItem":[32],"searchTerm":[32]},[[0,"closeSelectBox","handleCloseSelectBox"],[0,"blur","handleBlur"]]]]],["tttx-tree-view.cjs",[[1,"tttx-tree-view",{"data":[1040],"treeData":[32],"selectedId":[32]}]]],["tttx-expander.cjs",[[1,"tttx-expander",{"name":[1],"open":[4],"lefticon":[1],"lefticoncolor":[1],"isExpanded":[32]}]]],["tttx-tabs.cjs",[[2,"tttx-tabs",{"tabsName":[1,"tabs-name"],"navigation":[4],"wide":[4],"tabs":[1],"_tabs":[32]},[[0,"keydown","handleKeyDown"]]]]],["tttx-form.cjs",[[1,"tttx-form",{"formschema":[1025],"data":[1032],"submit":[64]}]]],["tttx-keyvalue-block.cjs",[[1,"tttx-keyvalue-block",{"keyvalues":[1],"horizontal":[4],"spacedout":[4],"_elements":[32]}]]],["tttx-loading-spinner.cjs",[[1,"tttx-loading-spinner",{"loadingMessage":[1028,"loading-message"],"size":[1025]}]]],["tttx-percentage-bar.cjs",[[2,"tttx-percentage-bar",{"percentage":[8],"thresholds":[1],"color":[1],"min":[1],"labelid":[1],"_percentage":[32],"_ranges":[32],"_min":[32]}]]],["tttx-qrcode.cjs",[[1,"tttx-qrcode",{"link":[1025],"size":[1026]}]]],["tttx-tag.cjs",[[1,"tttx-tag",{"text":[1],"color":[1],"textColor":[1,"text-color"]}]]],["tttx-textarea.cjs",[[2,"tttx-textarea",{"label":[1],"secondarylabel":[1],"showerrormsg":[4],"showerrorbubble":[4],"errormsg":[1],"rows":[2],"textareaautofocus":[4],"inputkeyhint":[1],"inputindex":[8],"inputtitle":[1],"disabled":[4],"maxlength":[8],"name":[1],"placeholder":[1],"readonly":[8],"required":[4],"value":[1032]}]]],["tttx-icon.cjs",[[1,"tttx-icon",{"icon":[1],"color":[1]}]]],["tttx-standalone-input.cjs",[[2,"tttx-standalone-input",{"label":[1],"secondarylabel":[1],"showerrormsg":[4],"showerrorbubble":[4],"errormsg":[1],"iconleft":[1],"iconleftcolor":[1],"iconright":[1],"iconrightcolor":[1],"inputicon":[1],"inputiconcolor":[1],"inline":[4],"inputautocapitalize":[1],"inputautofocus":[4],"inputkeyhint":[1],"inputindex":[8],"inputtitle":[1],"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-filter_4.cjs",[[1,"tttx-filter",{"filterKey":[1,"filter-key"],"filterOptions":[1,"filter-options"],"showSelectAll":[4,"show-select-all"],"showSearchField":[4,"show-search-field"],"showOptionIcons":[4,"show-option-icons"],"filterButtonStyle":[1,"filter-button-style"],"filterHeader":[1,"filter-header"],"defaultFilterOptions":[1,"default-filter-options"],"popoverWidth":[1,"popover-width"],"showPopover":[32],"displayedFilterSettings":[32],"selectedFilters":[32],"filterSearchTerm":[32],"allSelected":[32]},[[0,"closeFilter","handleCloseFilter"]]],[1,"tttx-list",{"data":[1025],"name":[1],"_data":[32]}],[1,"tttx-sorter",{"sorterKey":[1,"sorter-key"],"defaultSortDirection":[1,"default-sort-direction"],"fieldOptionsData":[1,"field-options-data"],"defaultOption":[1,"default-option"],"selectedField":[32],"sortDirection":[32],"dropdownExpand":[32],"dropdownOptions":[32]},[[0,"closeSorter","handleCloseSorter"]]],[1,"tttx-toolbar",{"border":[4],"viewSize":[32]},[[9,"resize","handleResize"]]]]],["tttx-button.cjs",[[1,"tttx-button",{"notext":[4],"icon":[1],"iconposition":[1],"iconcolor":[1025],"design":[1]}]]]], options);
17
+ return index.bootstrapLazy([["tttx-data-pattern.cjs",[[1,"tttx-data-pattern",{"data":[1],"sorteroptions":[1],"filteroptions":[1],"filterheader":[1]}]]],["tttx-multiselect-box.cjs",[[1,"tttx-multiselect-box",{"optionsData":[1,"options-data"],"label":[1],"inline":[4],"placeholder":[1],"searchEnabled":[4,"search-enabled"],"htmlVisibleValue":[4,"html-visible-value"],"visibleValue":[1,"visible-value"],"open":[32],"unsavedSelectedItems":[32],"searchTerm":[32]},[[0,"closeSelectBox","handleCloseSelectBox"],[0,"blur","handleBlur"]]]]],["tttx-dialog-box.cjs",[[1,"tttx-dialog-box",{"data":[1025],"size":[1],"open":[1028],"allowOverflow":[4,"allow-overflow"],"elementSize":[32]},[[9,"resize","handleResize"]]]]],["tttx-select-box.cjs",[[1,"tttx-select-box",{"optionsData":[1,"options-data"],"label":[1],"inline":[4],"placeholder":[1],"searchEnabled":[4,"search-enabled"],"selectedValue":[1,"selected-value"],"open":[32],"selectedItem":[32],"searchTerm":[32]},[[0,"closeSelectBox","handleCloseSelectBox"],[0,"blur","handleBlur"]]]]],["tttx-tree-view.cjs",[[1,"tttx-tree-view",{"data":[1040],"treeData":[32],"selectedId":[32]}]]],["tttx-checkbox.cjs",[[0,"tttx-checkbox",{"checkboxId":[1,"checkbox-id"],"label":[1],"inline":[4],"indeterminate":[4],"checked":[4]}]]],["tttx-expander.cjs",[[1,"tttx-expander",{"name":[1],"open":[4],"lefticon":[1],"lefticoncolor":[1],"isExpanded":[32]}]]],["tttx-tabs.cjs",[[2,"tttx-tabs",{"tabsName":[1,"tabs-name"],"navigation":[4],"wide":[4],"tabs":[1],"_tabs":[32]},[[0,"keydown","handleKeyDown"]]]]],["tttx-checkbox-group.cjs",[[1,"tttx-checkbox-group"]]],["tttx-checkbox-group-caption.cjs",[[4,"tttx-checkbox-group-caption"]]],["tttx-checkbox-group-heading.cjs",[[4,"tttx-checkbox-group-heading"]]],["tttx-form.cjs",[[1,"tttx-form",{"formschema":[1025],"data":[1032],"submit":[64]}]]],["tttx-keyvalue-block.cjs",[[1,"tttx-keyvalue-block",{"keyvalues":[1],"horizontal":[4],"spacedout":[4],"_elements":[32]}]]],["tttx-loading-spinner.cjs",[[1,"tttx-loading-spinner",{"loadingMessage":[1028,"loading-message"],"size":[1025]}]]],["tttx-percentage-bar.cjs",[[2,"tttx-percentage-bar",{"percentage":[8],"thresholds":[1],"color":[1],"min":[1],"labelid":[1],"_percentage":[32],"_ranges":[32],"_min":[32]}]]],["tttx-qrcode.cjs",[[1,"tttx-qrcode",{"link":[1025],"size":[1026]}]]],["tttx-tag.cjs",[[1,"tttx-tag",{"text":[1],"color":[1],"textColor":[1,"text-color"]}]]],["tttx-textarea.cjs",[[2,"tttx-textarea",{"label":[1],"secondarylabel":[1],"showerrormsg":[4],"showerrorbubble":[4],"errormsg":[1],"rows":[2],"textareaautofocus":[4],"inputkeyhint":[1],"inputindex":[8],"inputtitle":[1],"disabled":[4],"maxlength":[8],"name":[1],"placeholder":[1],"readonly":[8],"required":[4],"value":[1032]}]]],["tttx-icon.cjs",[[1,"tttx-icon",{"icon":[1],"color":[1]}]]],["tttx-standalone-input.cjs",[[2,"tttx-standalone-input",{"label":[1],"secondarylabel":[1],"showerrormsg":[4],"showerrorbubble":[4],"errormsg":[1],"iconleft":[1],"iconleftcolor":[1],"iconright":[1],"iconrightcolor":[1],"inputicon":[1],"inputiconcolor":[1],"inline":[4],"inputautocapitalize":[1],"inputautofocus":[4],"inputkeyhint":[1],"inputindex":[8],"inputtitle":[1],"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-filter_4.cjs",[[1,"tttx-filter",{"filterKey":[1,"filter-key"],"filterOptions":[1,"filter-options"],"showSelectAll":[4,"show-select-all"],"showSearchField":[4,"show-search-field"],"showOptionIcons":[4,"show-option-icons"],"filterButtonStyle":[1,"filter-button-style"],"filterHeader":[1,"filter-header"],"defaultFilterOptions":[1,"default-filter-options"],"popoverWidth":[1,"popover-width"],"showPopover":[32],"displayedFilterSettings":[32],"selectedFilters":[32],"filterSearchTerm":[32],"allSelected":[32]},[[0,"closeFilter","handleCloseFilter"]]],[1,"tttx-list",{"data":[1025],"name":[1],"_data":[32]}],[1,"tttx-sorter",{"sorterKey":[1,"sorter-key"],"defaultSortDirection":[1,"default-sort-direction"],"fieldOptionsData":[1,"field-options-data"],"defaultOption":[1,"default-option"],"selectedField":[32],"sortDirection":[32],"dropdownExpand":[32],"dropdownOptions":[32]},[[0,"closeSorter","handleCloseSorter"]]],[1,"tttx-toolbar",{"border":[4],"viewSize":[32]},[[9,"resize","handleResize"]]]]],["tttx-button.cjs",[[1,"tttx-button",{"notext":[4],"icon":[1],"iconposition":[1],"iconcolor":[1025],"design":[1]}]]]], options);
18
18
  });
19
19
  };
20
20
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-44c9fa62.js');
5
+ const index = require('./index-992a9fb3.js');
6
6
 
7
7
  const tttxButtonCss = ".material-symbols-rounded{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}button{cursor:pointer}.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:500}.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:active{background:rgba(17, 17, 17, 0.2);border:1px solid #d5d5d5}.primary{background:#1479c6;border:1px solid #1479c6;color:white}.primary:active{background:#1464a2;border:1px solid #1464a2}.borderless{background:transparent;border:none;color:#212121}.borderless:active{background:rgba(17, 17, 17, 0.2);border:none}.borderless-circle{background:transparent;border:none;color:#212121;border-radius:50%}.borderless-circle:active{border:none}.borderless-circle:focus{border-color:transparent}.danger{background:#dc0000;border:1px solid #dc0000;color:white}.danger:active{background:#b00000;border:1px solid #b00000}.disabled{background:#aeaeae;border:none;color:#4c4c4c;cursor:not-allowed}.disabled:active{background:#aeaeae;border:none;color:#4c4c4c;cursor:not-allowed}@media (hover: hover){.button:hover{background:rgba(17, 17, 17, 0.1);border:1px solid #d5d5d5}.primary:hover{background:#146eb3;border:1px solid #146eb3}.borderless:hover{background:rgba(17, 17, 17, 0.1);border:none}.borderless-circle:hover{background:rgba(17, 17, 17, 0.1);border:none}.danger:hover{background:#c60000;border:1px solid #c60000}.disabled:hover{background:#aeaeae;border:none;color:#4c4c4c;cursor:not-allowed}}:host{display:inline-block}tttx-icon{cursor:inherit}.spacingleft{margin-left:8px}";
8
8
 
@@ -0,0 +1,16 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-992a9fb3.js');
6
+
7
+ const TttxCheckboxGroupCaption = class {
8
+ constructor(hostRef) {
9
+ index.registerInstance(this, hostRef);
10
+ }
11
+ render() {
12
+ return (index.h(index.Host, null, index.h("div", { class: 'tttx-checkbox-group__caption' }, index.h("slot", null))));
13
+ }
14
+ };
15
+
16
+ exports.tttx_checkbox_group_caption = TttxCheckboxGroupCaption;
@@ -0,0 +1,16 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-992a9fb3.js');
6
+
7
+ const TttxCheckboxGroupHeading = class {
8
+ constructor(hostRef) {
9
+ index.registerInstance(this, hostRef);
10
+ }
11
+ render() {
12
+ return (index.h(index.Host, null, index.h("div", { class: 'tttx-checkbox-group__heading' }, index.h("slot", null))));
13
+ }
14
+ };
15
+
16
+ exports.tttx_checkbox_group_heading = TttxCheckboxGroupHeading;