@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.
- package/dist/cjs/{index-44c9fa62.js → index-992a9fb3.js} +386 -8
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/tttx-button.cjs.entry.js +1 -1
- package/dist/cjs/tttx-checkbox-group-caption.cjs.entry.js +16 -0
- package/dist/cjs/tttx-checkbox-group-heading.cjs.entry.js +16 -0
- package/dist/cjs/tttx-checkbox-group.cjs.entry.js +19 -0
- package/dist/cjs/tttx-checkbox.cjs.entry.js +43 -0
- package/dist/cjs/tttx-data-pattern.cjs.entry.js +1 -1
- package/dist/cjs/tttx-dialog-box.cjs.entry.js +1 -1
- package/dist/cjs/tttx-expander.cjs.entry.js +1 -1
- package/dist/cjs/tttx-filter_4.cjs.entry.js +1 -1
- package/dist/cjs/tttx-form.cjs.entry.js +1 -1
- package/dist/cjs/tttx-icon.cjs.entry.js +1 -1
- package/dist/cjs/tttx-keyvalue-block.cjs.entry.js +1 -1
- package/dist/cjs/tttx-loading-spinner.cjs.entry.js +1 -1
- package/dist/cjs/tttx-multiselect-box.cjs.entry.js +1 -1
- package/dist/cjs/tttx-percentage-bar.cjs.entry.js +1 -1
- package/dist/cjs/tttx-qrcode.cjs.entry.js +1 -1
- package/dist/cjs/tttx-select-box.cjs.entry.js +1 -1
- package/dist/cjs/tttx-standalone-input.cjs.entry.js +1 -1
- package/dist/cjs/tttx-tabs.cjs.entry.js +1 -1
- package/dist/cjs/tttx-tag.cjs.entry.js +1 -1
- package/dist/cjs/tttx-textarea.cjs.entry.js +1 -1
- package/dist/cjs/tttx-tree-view.cjs.entry.js +5 -9
- package/dist/cjs/tttx.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +4 -0
- package/dist/collection/components/atoms/tttx-checkbox/tttx-checkbox.css +28 -0
- package/dist/collection/components/atoms/tttx-checkbox/tttx-checkbox.js +154 -0
- package/dist/collection/components/atoms/tttx-checkbox/tttx-checkbox.stories.js +69 -0
- package/dist/collection/components/molecules/tttx-checkbox-group/components/tttx-checkbox-group-caption.js +7 -0
- package/dist/collection/components/molecules/tttx-checkbox-group/components/tttx-checkbox-group-heading.js +7 -0
- package/dist/collection/components/molecules/tttx-checkbox-group/tttx-checkbox-group.css +24 -0
- package/dist/collection/components/molecules/tttx-checkbox-group/tttx-checkbox-group.js +18 -0
- package/dist/collection/components/molecules/tttx-checkbox-group/tttx-checkbox-group.stories.js +83 -0
- package/dist/collection/components/molecules/tttx-tree-view/tttx-tree-view.css +1 -5
- package/dist/collection/components/molecules/tttx-tree-view/tttx-tree-view.js +22 -7
- package/dist/collection/components/molecules/tttx-tree-view/tttx-tree-view.stories.js +17 -252
- package/dist/components/index.d.ts +4 -0
- package/dist/components/index.js +4 -0
- package/dist/components/tttx-checkbox-group-caption.d.ts +11 -0
- package/dist/components/tttx-checkbox-group-caption.js +29 -0
- package/dist/components/tttx-checkbox-group-heading.d.ts +11 -0
- package/dist/components/tttx-checkbox-group-heading.js +29 -0
- package/dist/components/tttx-checkbox-group.d.ts +11 -0
- package/dist/components/tttx-checkbox-group.js +33 -0
- package/dist/components/tttx-checkbox.d.ts +11 -0
- package/dist/components/tttx-checkbox.js +68 -0
- package/dist/components/tttx-tree-view.js +4 -8
- package/dist/esm/{index-65b1e0d1.js → index-b11965d8.js} +386 -8
- package/dist/esm/loader.js +3 -3
- package/dist/esm/tttx-button.entry.js +1 -1
- package/dist/esm/tttx-checkbox-group-caption.entry.js +12 -0
- package/dist/esm/tttx-checkbox-group-heading.entry.js +12 -0
- package/dist/esm/tttx-checkbox-group.entry.js +15 -0
- package/dist/esm/tttx-checkbox.entry.js +39 -0
- package/dist/esm/tttx-data-pattern.entry.js +1 -1
- package/dist/esm/tttx-dialog-box.entry.js +1 -1
- package/dist/esm/tttx-expander.entry.js +1 -1
- package/dist/esm/tttx-filter_4.entry.js +1 -1
- package/dist/esm/tttx-form.entry.js +1 -1
- package/dist/esm/tttx-icon.entry.js +1 -1
- package/dist/esm/tttx-keyvalue-block.entry.js +1 -1
- package/dist/esm/tttx-loading-spinner.entry.js +1 -1
- package/dist/esm/tttx-multiselect-box.entry.js +1 -1
- package/dist/esm/tttx-percentage-bar.entry.js +1 -1
- package/dist/esm/tttx-qrcode.entry.js +1 -1
- package/dist/esm/tttx-select-box.entry.js +1 -1
- package/dist/esm/tttx-standalone-input.entry.js +1 -1
- package/dist/esm/tttx-tabs.entry.js +1 -1
- package/dist/esm/tttx-tag.entry.js +1 -1
- package/dist/esm/tttx-textarea.entry.js +1 -1
- package/dist/esm/tttx-tree-view.entry.js +5 -9
- package/dist/esm/tttx.js +3 -3
- package/dist/tttx/p-12bb33d0.entry.js +1 -0
- package/dist/tttx/{p-15a42062.entry.js → p-15b7a577.entry.js} +1 -1
- package/dist/tttx/p-177a760d.entry.js +1 -0
- package/dist/tttx/{p-6bd70736.entry.js → p-22738f43.entry.js} +1 -1
- package/dist/tttx/{p-1c2f0e77.entry.js → p-34f328f9.entry.js} +1 -1
- package/dist/tttx/{p-fa12ed9d.entry.js → p-61741832.entry.js} +1 -1
- package/dist/tttx/p-61ef7773.entry.js +1 -0
- package/dist/tttx/p-65bb4035.js +2 -0
- package/dist/tttx/p-67f24d17.entry.js +1 -0
- package/dist/tttx/{p-8526fe6d.entry.js → p-69642b71.entry.js} +1 -1
- package/dist/tttx/p-73a7a3b8.entry.js +1 -0
- package/dist/tttx/{p-02515882.entry.js → p-7f1452fb.entry.js} +1 -1
- package/dist/tttx/{p-1190c6e5.entry.js → p-87b6e5a9.entry.js} +1 -1
- package/dist/tttx/{p-14d89f70.entry.js → p-93e63568.entry.js} +1 -1
- package/dist/tttx/{p-ebcf2c5f.entry.js → p-9ad58b75.entry.js} +1 -1
- package/dist/tttx/{p-f12eb43b.entry.js → p-a94f7efc.entry.js} +1 -1
- package/dist/tttx/{p-aab2c93c.entry.js → p-b189ca0f.entry.js} +1 -1
- package/dist/tttx/{p-46a6a5db.entry.js → p-bc363141.entry.js} +1 -1
- package/dist/tttx/{p-f2d08143.entry.js → p-be16cf2d.entry.js} +1 -1
- package/dist/tttx/{p-0b2026f7.entry.js → p-e2dda35e.entry.js} +1 -1
- package/dist/tttx/{p-a2d59582.entry.js → p-e7b7d2e2.entry.js} +1 -1
- package/dist/tttx/{p-003798cb.entry.js → p-f27adb48.entry.js} +1 -1
- package/dist/tttx/{p-291d5ae0.entry.js → p-fe6c321b.entry.js} +1 -1
- package/dist/tttx/tttx.esm.js +1 -1
- package/dist/types/components/atoms/tttx-checkbox/tttx-checkbox.d.ts +17 -0
- package/dist/types/components/atoms/tttx-checkbox/tttx-checkbox.stories.d.ts +47 -0
- package/dist/types/components/molecules/tttx-checkbox-group/components/tttx-checkbox-group-caption.d.ts +3 -0
- package/dist/types/components/molecules/tttx-checkbox-group/components/tttx-checkbox-group-heading.d.ts +3 -0
- package/dist/types/components/molecules/tttx-checkbox-group/interfaces.d.ts +10 -0
- package/dist/types/components/molecules/tttx-checkbox-group/tttx-checkbox-group.d.ts +3 -0
- package/dist/types/components/molecules/tttx-checkbox-group/tttx-checkbox-group.stories.d.ts +15 -0
- package/dist/types/components/molecules/tttx-tree-view/helper/helper.d.ts +5 -2
- package/dist/types/components/molecules/tttx-tree-view/tttx-tree-view.d.ts +4 -3
- package/dist/types/components/molecules/tttx-tree-view/tttx-tree-view.stories.d.ts +1 -4
- package/dist/types/components.d.ts +69 -1
- package/package.json +3 -3
- package/dist/tttx/p-99a41e8e.js +0 -2
- package/dist/tttx/p-b7a2de3b.entry.js +0 -1
|
@@ -9,7 +9,11 @@ const NAMESPACE = 'tttx';
|
|
|
9
9
|
* Modified for Stencil's renderer and slot projection
|
|
10
10
|
*/
|
|
11
11
|
let scopeId;
|
|
12
|
+
let contentRef;
|
|
12
13
|
let hostTagName;
|
|
14
|
+
let useNativeShadowDom = false;
|
|
15
|
+
let checkSlotFallbackVisibility = false;
|
|
16
|
+
let checkSlotRelocate = false;
|
|
13
17
|
let isSvgMode = false;
|
|
14
18
|
let queuePending = false;
|
|
15
19
|
const createTime = (fnName, tagName = '') => {
|
|
@@ -66,6 +70,7 @@ function queryNonceMetaTagContent(doc) {
|
|
|
66
70
|
const h = (nodeName, vnodeData, ...children) => {
|
|
67
71
|
let child = null;
|
|
68
72
|
let key = null;
|
|
73
|
+
let slotName = null;
|
|
69
74
|
let simple = false;
|
|
70
75
|
let lastSimple = false;
|
|
71
76
|
const vNodeChildren = [];
|
|
@@ -97,6 +102,9 @@ const h = (nodeName, vnodeData, ...children) => {
|
|
|
97
102
|
if (vnodeData.key) {
|
|
98
103
|
key = vnodeData.key;
|
|
99
104
|
}
|
|
105
|
+
if (vnodeData.name) {
|
|
106
|
+
slotName = vnodeData.name;
|
|
107
|
+
}
|
|
100
108
|
{
|
|
101
109
|
const classData = vnodeData.className || vnodeData.class;
|
|
102
110
|
if (classData) {
|
|
@@ -121,6 +129,9 @@ const h = (nodeName, vnodeData, ...children) => {
|
|
|
121
129
|
{
|
|
122
130
|
vnode.$key$ = key;
|
|
123
131
|
}
|
|
132
|
+
{
|
|
133
|
+
vnode.$name$ = slotName;
|
|
134
|
+
}
|
|
124
135
|
return vnode;
|
|
125
136
|
};
|
|
126
137
|
/**
|
|
@@ -145,6 +156,9 @@ const newVNode = (tag, text) => {
|
|
|
145
156
|
{
|
|
146
157
|
vnode.$key$ = null;
|
|
147
158
|
}
|
|
159
|
+
{
|
|
160
|
+
vnode.$name$ = null;
|
|
161
|
+
}
|
|
148
162
|
return vnode;
|
|
149
163
|
};
|
|
150
164
|
const Host = {};
|
|
@@ -528,13 +542,36 @@ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
528
542
|
let i = 0;
|
|
529
543
|
let elm;
|
|
530
544
|
let childNode;
|
|
545
|
+
let oldVNode;
|
|
546
|
+
if (!useNativeShadowDom) {
|
|
547
|
+
// remember for later we need to check to relocate nodes
|
|
548
|
+
checkSlotRelocate = true;
|
|
549
|
+
if (newVNode.$tag$ === 'slot') {
|
|
550
|
+
if (scopeId) {
|
|
551
|
+
// scoped css needs to add its scoped id to the parent element
|
|
552
|
+
parentElm.classList.add(scopeId + '-s');
|
|
553
|
+
}
|
|
554
|
+
newVNode.$flags$ |= newVNode.$children$
|
|
555
|
+
? // slot element has fallback content
|
|
556
|
+
2 /* VNODE_FLAGS.isSlotFallback */
|
|
557
|
+
: // slot element does not have fallback content
|
|
558
|
+
1 /* VNODE_FLAGS.isSlotReference */;
|
|
559
|
+
}
|
|
560
|
+
}
|
|
531
561
|
if (newVNode.$text$ !== null) {
|
|
532
562
|
// create text node
|
|
533
563
|
elm = newVNode.$elm$ = doc.createTextNode(newVNode.$text$);
|
|
534
564
|
}
|
|
565
|
+
else if (newVNode.$flags$ & 1 /* VNODE_FLAGS.isSlotReference */) {
|
|
566
|
+
// create a slot reference node
|
|
567
|
+
elm = newVNode.$elm$ =
|
|
568
|
+
doc.createTextNode('');
|
|
569
|
+
}
|
|
535
570
|
else {
|
|
536
571
|
// create element
|
|
537
|
-
elm = newVNode.$elm$ = (doc.createElement(newVNode.$
|
|
572
|
+
elm = newVNode.$elm$ = (doc.createElement(newVNode.$flags$ & 2 /* VNODE_FLAGS.isSlotFallback */
|
|
573
|
+
? 'slot-fb'
|
|
574
|
+
: newVNode.$tag$));
|
|
538
575
|
// add css classes, attrs, props, listeners, etc.
|
|
539
576
|
{
|
|
540
577
|
updateElement(null, newVNode, isSvgMode);
|
|
@@ -547,7 +584,7 @@ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
547
584
|
if (newVNode.$children$) {
|
|
548
585
|
for (i = 0; i < newVNode.$children$.length; ++i) {
|
|
549
586
|
// create the node
|
|
550
|
-
childNode = createElm(oldParentVNode, newVNode, i);
|
|
587
|
+
childNode = createElm(oldParentVNode, newVNode, i, elm);
|
|
551
588
|
// return node could have been null
|
|
552
589
|
if (childNode) {
|
|
553
590
|
// append our new node
|
|
@@ -556,8 +593,50 @@ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
556
593
|
}
|
|
557
594
|
}
|
|
558
595
|
}
|
|
596
|
+
{
|
|
597
|
+
elm['s-hn'] = hostTagName;
|
|
598
|
+
if (newVNode.$flags$ & (2 /* VNODE_FLAGS.isSlotFallback */ | 1 /* VNODE_FLAGS.isSlotReference */)) {
|
|
599
|
+
// remember the content reference comment
|
|
600
|
+
elm['s-sr'] = true;
|
|
601
|
+
// remember the content reference comment
|
|
602
|
+
elm['s-cr'] = contentRef;
|
|
603
|
+
// remember the slot name, or empty string for default slot
|
|
604
|
+
elm['s-sn'] = newVNode.$name$ || '';
|
|
605
|
+
// check if we've got an old vnode for this slot
|
|
606
|
+
oldVNode = oldParentVNode && oldParentVNode.$children$ && oldParentVNode.$children$[childIndex];
|
|
607
|
+
if (oldVNode && oldVNode.$tag$ === newVNode.$tag$ && oldParentVNode.$elm$) {
|
|
608
|
+
// we've got an old slot vnode and the wrapper is being replaced
|
|
609
|
+
// so let's move the old slot content back to it's original location
|
|
610
|
+
putBackInOriginalLocation(oldParentVNode.$elm$, false);
|
|
611
|
+
}
|
|
612
|
+
}
|
|
613
|
+
}
|
|
559
614
|
return elm;
|
|
560
615
|
};
|
|
616
|
+
const putBackInOriginalLocation = (parentElm, recursive) => {
|
|
617
|
+
plt.$flags$ |= 1 /* PLATFORM_FLAGS.isTmpDisconnected */;
|
|
618
|
+
const oldSlotChildNodes = parentElm.childNodes;
|
|
619
|
+
for (let i = oldSlotChildNodes.length - 1; i >= 0; i--) {
|
|
620
|
+
const childNode = oldSlotChildNodes[i];
|
|
621
|
+
if (childNode['s-hn'] !== hostTagName && childNode['s-ol']) {
|
|
622
|
+
// // this child node in the old element is from another component
|
|
623
|
+
// // remove this node from the old slot's parent
|
|
624
|
+
// childNode.remove();
|
|
625
|
+
// and relocate it back to it's original location
|
|
626
|
+
parentReferenceNode(childNode).insertBefore(childNode, referenceNode(childNode));
|
|
627
|
+
// remove the old original location comment entirely
|
|
628
|
+
// later on the patch function will know what to do
|
|
629
|
+
// and move this to the correct spot in need be
|
|
630
|
+
childNode['s-ol'].remove();
|
|
631
|
+
childNode['s-ol'] = undefined;
|
|
632
|
+
checkSlotRelocate = true;
|
|
633
|
+
}
|
|
634
|
+
if (recursive) {
|
|
635
|
+
putBackInOriginalLocation(childNode, recursive);
|
|
636
|
+
}
|
|
637
|
+
}
|
|
638
|
+
plt.$flags$ &= ~1 /* PLATFORM_FLAGS.isTmpDisconnected */;
|
|
639
|
+
};
|
|
561
640
|
/**
|
|
562
641
|
* Create DOM nodes corresponding to a list of {@link d.Vnode} objects and
|
|
563
642
|
* add them to the DOM in the appropriate place.
|
|
@@ -574,17 +653,17 @@ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
574
653
|
* creating DOM nodes (inclusive)
|
|
575
654
|
*/
|
|
576
655
|
const addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
|
|
577
|
-
let containerElm = (parentElm);
|
|
656
|
+
let containerElm = ((parentElm['s-cr'] && parentElm['s-cr'].parentNode) || parentElm);
|
|
578
657
|
let childNode;
|
|
579
658
|
if (containerElm.shadowRoot && containerElm.tagName === hostTagName) {
|
|
580
659
|
containerElm = containerElm.shadowRoot;
|
|
581
660
|
}
|
|
582
661
|
for (; startIdx <= endIdx; ++startIdx) {
|
|
583
662
|
if (vnodes[startIdx]) {
|
|
584
|
-
childNode = createElm(null, parentVNode, startIdx);
|
|
663
|
+
childNode = createElm(null, parentVNode, startIdx, parentElm);
|
|
585
664
|
if (childNode) {
|
|
586
665
|
vnodes[startIdx].$elm$ = childNode;
|
|
587
|
-
containerElm.insertBefore(childNode, before);
|
|
666
|
+
containerElm.insertBefore(childNode, referenceNode(before) );
|
|
588
667
|
}
|
|
589
668
|
}
|
|
590
669
|
}
|
|
@@ -607,6 +686,20 @@ const removeVnodes = (vnodes, startIdx, endIdx, vnode, elm) => {
|
|
|
607
686
|
if ((vnode = vnodes[startIdx])) {
|
|
608
687
|
elm = vnode.$elm$;
|
|
609
688
|
callNodeRefs(vnode);
|
|
689
|
+
{
|
|
690
|
+
// we're removing this element
|
|
691
|
+
// so it's possible we need to show slot fallback content now
|
|
692
|
+
checkSlotFallbackVisibility = true;
|
|
693
|
+
if (elm['s-ol']) {
|
|
694
|
+
// remove the original location comment
|
|
695
|
+
elm['s-ol'].remove();
|
|
696
|
+
}
|
|
697
|
+
else {
|
|
698
|
+
// it's possible that child nodes of the node
|
|
699
|
+
// that's being removed are slot nodes
|
|
700
|
+
putBackInOriginalLocation(elm, true);
|
|
701
|
+
}
|
|
702
|
+
}
|
|
610
703
|
// remove the vnode's element from the dom
|
|
611
704
|
elm.remove();
|
|
612
705
|
}
|
|
@@ -725,6 +818,23 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
|
|
|
725
818
|
newEndVnode = newCh[--newEndIdx];
|
|
726
819
|
}
|
|
727
820
|
else if (isSameVnode(oldStartVnode, newEndVnode)) {
|
|
821
|
+
// case: "Vnode moved right"
|
|
822
|
+
//
|
|
823
|
+
// We've found that the last node in our window on the new children is
|
|
824
|
+
// the same VNode as the _first_ node in our window on the old children
|
|
825
|
+
// we're dealing with now. Visually, this is the layout of these two
|
|
826
|
+
// nodes:
|
|
827
|
+
//
|
|
828
|
+
// newCh: [..., newStartVnode , ... , newEndVnode , ...]
|
|
829
|
+
// ^^^^^^^^^^^
|
|
830
|
+
// oldCh: [..., oldStartVnode , ... , oldEndVnode , ...]
|
|
831
|
+
// ^^^^^^^^^^^^^
|
|
832
|
+
//
|
|
833
|
+
// In this situation we need to patch `newEndVnode` onto `oldStartVnode`
|
|
834
|
+
// and move the DOM element for `oldStartVnode`.
|
|
835
|
+
if ((oldStartVnode.$tag$ === 'slot' || newEndVnode.$tag$ === 'slot')) {
|
|
836
|
+
putBackInOriginalLocation(oldStartVnode.$elm$.parentNode, false);
|
|
837
|
+
}
|
|
728
838
|
patch(oldStartVnode, newEndVnode);
|
|
729
839
|
// We need to move the element for `oldStartVnode` into a position which
|
|
730
840
|
// will be appropriate for `newEndVnode`. For this we can use
|
|
@@ -748,6 +858,24 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
|
|
|
748
858
|
newEndVnode = newCh[--newEndIdx];
|
|
749
859
|
}
|
|
750
860
|
else if (isSameVnode(oldEndVnode, newStartVnode)) {
|
|
861
|
+
// case: "Vnode moved left"
|
|
862
|
+
//
|
|
863
|
+
// We've found that the first node in our window on the new children is
|
|
864
|
+
// the same VNode as the _last_ node in our window on the old children.
|
|
865
|
+
// Visually, this is the layout of these two nodes:
|
|
866
|
+
//
|
|
867
|
+
// newCh: [..., newStartVnode , ... , newEndVnode , ...]
|
|
868
|
+
// ^^^^^^^^^^^^^
|
|
869
|
+
// oldCh: [..., oldStartVnode , ... , oldEndVnode , ...]
|
|
870
|
+
// ^^^^^^^^^^^
|
|
871
|
+
//
|
|
872
|
+
// In this situation we need to patch `newStartVnode` onto `oldEndVnode`
|
|
873
|
+
// (which will handle updating any changed attributes, reconciling their
|
|
874
|
+
// children etc) but we also need to move the DOM node to which
|
|
875
|
+
// `oldEndVnode` corresponds.
|
|
876
|
+
if ((oldStartVnode.$tag$ === 'slot' || newEndVnode.$tag$ === 'slot')) {
|
|
877
|
+
putBackInOriginalLocation(oldEndVnode.$elm$.parentNode, false);
|
|
878
|
+
}
|
|
751
879
|
patch(oldEndVnode, newStartVnode);
|
|
752
880
|
// We've already checked above if `oldStartVnode` and `newStartVnode` are
|
|
753
881
|
// the same node, so since we're here we know that they are not. Thus we
|
|
@@ -782,7 +910,7 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
|
|
|
782
910
|
elmToMove = oldCh[idxInOld];
|
|
783
911
|
if (elmToMove.$tag$ !== newStartVnode.$tag$) {
|
|
784
912
|
// the tag doesn't match so we'll need a new DOM element
|
|
785
|
-
node = createElm(oldCh && oldCh[newStartIdx], newVNode, idxInOld);
|
|
913
|
+
node = createElm(oldCh && oldCh[newStartIdx], newVNode, idxInOld, parentElm);
|
|
786
914
|
}
|
|
787
915
|
else {
|
|
788
916
|
patch(elmToMove, newStartVnode);
|
|
@@ -798,13 +926,13 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
|
|
|
798
926
|
// the key of the first new child OR the build is not using `key`
|
|
799
927
|
// attributes at all. In either case we need to create a new element
|
|
800
928
|
// for the new node.
|
|
801
|
-
node = createElm(oldCh && oldCh[newStartIdx], newVNode, newStartIdx);
|
|
929
|
+
node = createElm(oldCh && oldCh[newStartIdx], newVNode, newStartIdx, parentElm);
|
|
802
930
|
newStartVnode = newCh[++newStartIdx];
|
|
803
931
|
}
|
|
804
932
|
if (node) {
|
|
805
933
|
// if we created a new node then handle inserting it to the DOM
|
|
806
934
|
{
|
|
807
|
-
oldStartVnode.$elm
|
|
935
|
+
parentReferenceNode(oldStartVnode.$elm$).insertBefore(node, referenceNode(oldStartVnode.$elm$));
|
|
808
936
|
}
|
|
809
937
|
}
|
|
810
938
|
}
|
|
@@ -842,6 +970,9 @@ const isSameVnode = (leftVNode, rightVNode) => {
|
|
|
842
970
|
// compare if two vnode to see if they're "technically" the same
|
|
843
971
|
// need to have the same element tag, and same key to be the same
|
|
844
972
|
if (leftVNode.$tag$ === rightVNode.$tag$) {
|
|
973
|
+
if (leftVNode.$tag$ === 'slot') {
|
|
974
|
+
return leftVNode.$name$ === rightVNode.$name$;
|
|
975
|
+
}
|
|
845
976
|
// this will be set if components in the build have `key` attrs set on them
|
|
846
977
|
{
|
|
847
978
|
return leftVNode.$key$ === rightVNode.$key$;
|
|
@@ -849,6 +980,14 @@ const isSameVnode = (leftVNode, rightVNode) => {
|
|
|
849
980
|
}
|
|
850
981
|
return false;
|
|
851
982
|
};
|
|
983
|
+
const referenceNode = (node) => {
|
|
984
|
+
// this node was relocated to a new location in the dom
|
|
985
|
+
// because of some other component's slot
|
|
986
|
+
// but we still have an html comment in place of where
|
|
987
|
+
// it's original location was according to it's original vdom
|
|
988
|
+
return (node && node['s-ol']) || node;
|
|
989
|
+
};
|
|
990
|
+
const parentReferenceNode = (node) => (node['s-ol'] ? node['s-ol'] : node).parentNode;
|
|
852
991
|
/**
|
|
853
992
|
* Handle reconciling an outdated VNode with a new one which corresponds to
|
|
854
993
|
* it. This function handles flushing updates to the DOM and reconciling the
|
|
@@ -863,6 +1002,7 @@ const patch = (oldVNode, newVNode) => {
|
|
|
863
1002
|
const newChildren = newVNode.$children$;
|
|
864
1003
|
const tag = newVNode.$tag$;
|
|
865
1004
|
const text = newVNode.$text$;
|
|
1005
|
+
let defaultHolder;
|
|
866
1006
|
if (text === null) {
|
|
867
1007
|
{
|
|
868
1008
|
if (tag === 'slot')
|
|
@@ -893,12 +1033,147 @@ const patch = (oldVNode, newVNode) => {
|
|
|
893
1033
|
removeVnodes(oldChildren, 0, oldChildren.length - 1);
|
|
894
1034
|
}
|
|
895
1035
|
}
|
|
1036
|
+
else if ((defaultHolder = elm['s-cr'])) {
|
|
1037
|
+
// this element has slotted content
|
|
1038
|
+
defaultHolder.parentNode.textContent = text;
|
|
1039
|
+
}
|
|
896
1040
|
else if (oldVNode.$text$ !== text) {
|
|
897
1041
|
// update the text content for the text only vnode
|
|
898
1042
|
// and also only if the text is different than before
|
|
899
1043
|
elm.data = text;
|
|
900
1044
|
}
|
|
901
1045
|
};
|
|
1046
|
+
const updateFallbackSlotVisibility = (elm) => {
|
|
1047
|
+
// tslint:disable-next-line: prefer-const
|
|
1048
|
+
const childNodes = elm.childNodes;
|
|
1049
|
+
let childNode;
|
|
1050
|
+
let i;
|
|
1051
|
+
let ilen;
|
|
1052
|
+
let j;
|
|
1053
|
+
let slotNameAttr;
|
|
1054
|
+
let nodeType;
|
|
1055
|
+
for (i = 0, ilen = childNodes.length; i < ilen; i++) {
|
|
1056
|
+
childNode = childNodes[i];
|
|
1057
|
+
if (childNode.nodeType === 1 /* NODE_TYPE.ElementNode */) {
|
|
1058
|
+
if (childNode['s-sr']) {
|
|
1059
|
+
// this is a slot fallback node
|
|
1060
|
+
// get the slot name for this slot reference node
|
|
1061
|
+
slotNameAttr = childNode['s-sn'];
|
|
1062
|
+
// by default always show a fallback slot node
|
|
1063
|
+
// then hide it if there are other slots in the light dom
|
|
1064
|
+
childNode.hidden = false;
|
|
1065
|
+
for (j = 0; j < ilen; j++) {
|
|
1066
|
+
nodeType = childNodes[j].nodeType;
|
|
1067
|
+
if (childNodes[j]['s-hn'] !== childNode['s-hn'] || slotNameAttr !== '') {
|
|
1068
|
+
// this sibling node is from a different component OR is a named fallback slot node
|
|
1069
|
+
if (nodeType === 1 /* NODE_TYPE.ElementNode */ && slotNameAttr === childNodes[j].getAttribute('slot')) {
|
|
1070
|
+
childNode.hidden = true;
|
|
1071
|
+
break;
|
|
1072
|
+
}
|
|
1073
|
+
}
|
|
1074
|
+
else {
|
|
1075
|
+
// this is a default fallback slot node
|
|
1076
|
+
// any element or text node (with content)
|
|
1077
|
+
// should hide the default fallback slot node
|
|
1078
|
+
if (nodeType === 1 /* NODE_TYPE.ElementNode */ ||
|
|
1079
|
+
(nodeType === 3 /* NODE_TYPE.TextNode */ && childNodes[j].textContent.trim() !== '')) {
|
|
1080
|
+
childNode.hidden = true;
|
|
1081
|
+
break;
|
|
1082
|
+
}
|
|
1083
|
+
}
|
|
1084
|
+
}
|
|
1085
|
+
}
|
|
1086
|
+
// keep drilling down
|
|
1087
|
+
updateFallbackSlotVisibility(childNode);
|
|
1088
|
+
}
|
|
1089
|
+
}
|
|
1090
|
+
};
|
|
1091
|
+
const relocateNodes = [];
|
|
1092
|
+
const relocateSlotContent = (elm) => {
|
|
1093
|
+
// tslint:disable-next-line: prefer-const
|
|
1094
|
+
let childNode;
|
|
1095
|
+
let node;
|
|
1096
|
+
let hostContentNodes;
|
|
1097
|
+
let slotNameAttr;
|
|
1098
|
+
let relocateNodeData;
|
|
1099
|
+
let j;
|
|
1100
|
+
let i = 0;
|
|
1101
|
+
const childNodes = elm.childNodes;
|
|
1102
|
+
const ilen = childNodes.length;
|
|
1103
|
+
for (; i < ilen; i++) {
|
|
1104
|
+
childNode = childNodes[i];
|
|
1105
|
+
if (childNode['s-sr'] && (node = childNode['s-cr']) && node.parentNode) {
|
|
1106
|
+
// first got the content reference comment node
|
|
1107
|
+
// then we got it's parent, which is where all the host content is in now
|
|
1108
|
+
hostContentNodes = node.parentNode.childNodes;
|
|
1109
|
+
slotNameAttr = childNode['s-sn'];
|
|
1110
|
+
for (j = hostContentNodes.length - 1; j >= 0; j--) {
|
|
1111
|
+
node = hostContentNodes[j];
|
|
1112
|
+
if (!node['s-cn'] && !node['s-nr'] && node['s-hn'] !== childNode['s-hn']) {
|
|
1113
|
+
// let's do some relocating to its new home
|
|
1114
|
+
// but never relocate a content reference node
|
|
1115
|
+
// that is suppose to always represent the original content location
|
|
1116
|
+
if (isNodeLocatedInSlot(node, slotNameAttr)) {
|
|
1117
|
+
// it's possible we've already decided to relocate this node
|
|
1118
|
+
relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
|
|
1119
|
+
// made some changes to slots
|
|
1120
|
+
// let's make sure we also double check
|
|
1121
|
+
// fallbacks are correctly hidden or shown
|
|
1122
|
+
checkSlotFallbackVisibility = true;
|
|
1123
|
+
node['s-sn'] = node['s-sn'] || slotNameAttr;
|
|
1124
|
+
if (relocateNodeData) {
|
|
1125
|
+
// previously we never found a slot home for this node
|
|
1126
|
+
// but turns out we did, so let's remember it now
|
|
1127
|
+
relocateNodeData.$slotRefNode$ = childNode;
|
|
1128
|
+
}
|
|
1129
|
+
else {
|
|
1130
|
+
// add to our list of nodes to relocate
|
|
1131
|
+
relocateNodes.push({
|
|
1132
|
+
$slotRefNode$: childNode,
|
|
1133
|
+
$nodeToRelocate$: node,
|
|
1134
|
+
});
|
|
1135
|
+
}
|
|
1136
|
+
if (node['s-sr']) {
|
|
1137
|
+
relocateNodes.map((relocateNode) => {
|
|
1138
|
+
if (isNodeLocatedInSlot(relocateNode.$nodeToRelocate$, node['s-sn'])) {
|
|
1139
|
+
relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
|
|
1140
|
+
if (relocateNodeData && !relocateNode.$slotRefNode$) {
|
|
1141
|
+
relocateNode.$slotRefNode$ = relocateNodeData.$slotRefNode$;
|
|
1142
|
+
}
|
|
1143
|
+
}
|
|
1144
|
+
});
|
|
1145
|
+
}
|
|
1146
|
+
}
|
|
1147
|
+
else if (!relocateNodes.some((r) => r.$nodeToRelocate$ === node)) {
|
|
1148
|
+
// so far this element does not have a slot home, not setting slotRefNode on purpose
|
|
1149
|
+
// if we never find a home for this element then we'll need to hide it
|
|
1150
|
+
relocateNodes.push({
|
|
1151
|
+
$nodeToRelocate$: node,
|
|
1152
|
+
});
|
|
1153
|
+
}
|
|
1154
|
+
}
|
|
1155
|
+
}
|
|
1156
|
+
}
|
|
1157
|
+
if (childNode.nodeType === 1 /* NODE_TYPE.ElementNode */) {
|
|
1158
|
+
relocateSlotContent(childNode);
|
|
1159
|
+
}
|
|
1160
|
+
}
|
|
1161
|
+
};
|
|
1162
|
+
const isNodeLocatedInSlot = (nodeToRelocate, slotNameAttr) => {
|
|
1163
|
+
if (nodeToRelocate.nodeType === 1 /* NODE_TYPE.ElementNode */) {
|
|
1164
|
+
if (nodeToRelocate.getAttribute('slot') === null && slotNameAttr === '') {
|
|
1165
|
+
return true;
|
|
1166
|
+
}
|
|
1167
|
+
if (nodeToRelocate.getAttribute('slot') === slotNameAttr) {
|
|
1168
|
+
return true;
|
|
1169
|
+
}
|
|
1170
|
+
return false;
|
|
1171
|
+
}
|
|
1172
|
+
if (nodeToRelocate['s-sn'] === slotNameAttr) {
|
|
1173
|
+
return true;
|
|
1174
|
+
}
|
|
1175
|
+
return slotNameAttr === '';
|
|
1176
|
+
};
|
|
902
1177
|
const callNodeRefs = (vNode) => {
|
|
903
1178
|
{
|
|
904
1179
|
vNode.$attrs$ && vNode.$attrs$.ref && vNode.$attrs$.ref(null);
|
|
@@ -919,6 +1194,7 @@ const callNodeRefs = (vNode) => {
|
|
|
919
1194
|
*/
|
|
920
1195
|
const renderVdom = (hostRef, renderFnResults) => {
|
|
921
1196
|
const hostElm = hostRef.$hostElement$;
|
|
1197
|
+
const cmpMeta = hostRef.$cmpMeta$;
|
|
922
1198
|
const oldVNode = hostRef.$vnode$ || newVNode(null, null);
|
|
923
1199
|
const rootVnode = isHost(renderFnResults) ? renderFnResults : h(null, null, renderFnResults);
|
|
924
1200
|
hostTagName = hostElm.tagName;
|
|
@@ -929,8 +1205,90 @@ const renderVdom = (hostRef, renderFnResults) => {
|
|
|
929
1205
|
{
|
|
930
1206
|
scopeId = hostElm['s-sc'];
|
|
931
1207
|
}
|
|
1208
|
+
{
|
|
1209
|
+
contentRef = hostElm['s-cr'];
|
|
1210
|
+
useNativeShadowDom = (cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */) !== 0;
|
|
1211
|
+
// always reset
|
|
1212
|
+
checkSlotFallbackVisibility = false;
|
|
1213
|
+
}
|
|
932
1214
|
// synchronous patch
|
|
933
1215
|
patch(oldVNode, rootVnode);
|
|
1216
|
+
{
|
|
1217
|
+
// while we're moving nodes around existing nodes, temporarily disable
|
|
1218
|
+
// the disconnectCallback from working
|
|
1219
|
+
plt.$flags$ |= 1 /* PLATFORM_FLAGS.isTmpDisconnected */;
|
|
1220
|
+
if (checkSlotRelocate) {
|
|
1221
|
+
relocateSlotContent(rootVnode.$elm$);
|
|
1222
|
+
let relocateData;
|
|
1223
|
+
let nodeToRelocate;
|
|
1224
|
+
let orgLocationNode;
|
|
1225
|
+
let parentNodeRef;
|
|
1226
|
+
let insertBeforeNode;
|
|
1227
|
+
let refNode;
|
|
1228
|
+
let i = 0;
|
|
1229
|
+
for (; i < relocateNodes.length; i++) {
|
|
1230
|
+
relocateData = relocateNodes[i];
|
|
1231
|
+
nodeToRelocate = relocateData.$nodeToRelocate$;
|
|
1232
|
+
if (!nodeToRelocate['s-ol']) {
|
|
1233
|
+
// add a reference node marking this node's original location
|
|
1234
|
+
// keep a reference to this node for later lookups
|
|
1235
|
+
orgLocationNode =
|
|
1236
|
+
doc.createTextNode('');
|
|
1237
|
+
orgLocationNode['s-nr'] = nodeToRelocate;
|
|
1238
|
+
nodeToRelocate.parentNode.insertBefore((nodeToRelocate['s-ol'] = orgLocationNode), nodeToRelocate);
|
|
1239
|
+
}
|
|
1240
|
+
}
|
|
1241
|
+
for (i = 0; i < relocateNodes.length; i++) {
|
|
1242
|
+
relocateData = relocateNodes[i];
|
|
1243
|
+
nodeToRelocate = relocateData.$nodeToRelocate$;
|
|
1244
|
+
if (relocateData.$slotRefNode$) {
|
|
1245
|
+
// by default we're just going to insert it directly
|
|
1246
|
+
// after the slot reference node
|
|
1247
|
+
parentNodeRef = relocateData.$slotRefNode$.parentNode;
|
|
1248
|
+
insertBeforeNode = relocateData.$slotRefNode$.nextSibling;
|
|
1249
|
+
orgLocationNode = nodeToRelocate['s-ol'];
|
|
1250
|
+
while ((orgLocationNode = orgLocationNode.previousSibling)) {
|
|
1251
|
+
refNode = orgLocationNode['s-nr'];
|
|
1252
|
+
if (refNode && refNode['s-sn'] === nodeToRelocate['s-sn'] && parentNodeRef === refNode.parentNode) {
|
|
1253
|
+
refNode = refNode.nextSibling;
|
|
1254
|
+
if (!refNode || !refNode['s-nr']) {
|
|
1255
|
+
insertBeforeNode = refNode;
|
|
1256
|
+
break;
|
|
1257
|
+
}
|
|
1258
|
+
}
|
|
1259
|
+
}
|
|
1260
|
+
if ((!insertBeforeNode && parentNodeRef !== nodeToRelocate.parentNode) ||
|
|
1261
|
+
nodeToRelocate.nextSibling !== insertBeforeNode) {
|
|
1262
|
+
// we've checked that it's worth while to relocate
|
|
1263
|
+
// since that the node to relocate
|
|
1264
|
+
// has a different next sibling or parent relocated
|
|
1265
|
+
if (nodeToRelocate !== insertBeforeNode) {
|
|
1266
|
+
if (!nodeToRelocate['s-hn'] && nodeToRelocate['s-ol']) {
|
|
1267
|
+
// probably a component in the index.html that doesn't have it's hostname set
|
|
1268
|
+
nodeToRelocate['s-hn'] = nodeToRelocate['s-ol'].parentNode.nodeName;
|
|
1269
|
+
}
|
|
1270
|
+
// add it back to the dom but in its new home
|
|
1271
|
+
parentNodeRef.insertBefore(nodeToRelocate, insertBeforeNode);
|
|
1272
|
+
}
|
|
1273
|
+
}
|
|
1274
|
+
}
|
|
1275
|
+
else {
|
|
1276
|
+
// this node doesn't have a slot home to go to, so let's hide it
|
|
1277
|
+
if (nodeToRelocate.nodeType === 1 /* NODE_TYPE.ElementNode */) {
|
|
1278
|
+
nodeToRelocate.hidden = true;
|
|
1279
|
+
}
|
|
1280
|
+
}
|
|
1281
|
+
}
|
|
1282
|
+
}
|
|
1283
|
+
if (checkSlotFallbackVisibility) {
|
|
1284
|
+
updateFallbackSlotVisibility(rootVnode.$elm$);
|
|
1285
|
+
}
|
|
1286
|
+
// done moving nodes around
|
|
1287
|
+
// allow the disconnect callback to work again
|
|
1288
|
+
plt.$flags$ &= ~1 /* PLATFORM_FLAGS.isTmpDisconnected */;
|
|
1289
|
+
// always reset
|
|
1290
|
+
relocateNodes.length = 0;
|
|
1291
|
+
}
|
|
934
1292
|
};
|
|
935
1293
|
const attachToAncestor = (hostRef, ancestorComponent) => {
|
|
936
1294
|
if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent['s-p']) {
|
|
@@ -1347,6 +1705,15 @@ const connectedCallback = (elm) => {
|
|
|
1347
1705
|
if (!(hostRef.$flags$ & 1 /* HOST_FLAGS.hasConnected */)) {
|
|
1348
1706
|
// first time this component has connected
|
|
1349
1707
|
hostRef.$flags$ |= 1 /* HOST_FLAGS.hasConnected */;
|
|
1708
|
+
{
|
|
1709
|
+
// initUpdate
|
|
1710
|
+
// if the slot polyfill is required we'll need to put some nodes
|
|
1711
|
+
// in here to act as original content anchors as we move nodes around
|
|
1712
|
+
// host element has been connected to the DOM
|
|
1713
|
+
if ((cmpMeta.$flags$ & (4 /* CMP_FLAGS.hasSlotRelocation */ | 8 /* CMP_FLAGS.needsShadowDomShim */))) {
|
|
1714
|
+
setContentReference(elm);
|
|
1715
|
+
}
|
|
1716
|
+
}
|
|
1350
1717
|
{
|
|
1351
1718
|
// find the first ancestor component (if there is one) and register
|
|
1352
1719
|
// this component as one of the actively loading child components for its ancestor
|
|
@@ -1386,6 +1753,17 @@ const connectedCallback = (elm) => {
|
|
|
1386
1753
|
endConnected();
|
|
1387
1754
|
}
|
|
1388
1755
|
};
|
|
1756
|
+
const setContentReference = (elm) => {
|
|
1757
|
+
// only required when we're NOT using native shadow dom (slot)
|
|
1758
|
+
// or this browser doesn't support native shadow dom
|
|
1759
|
+
// and this host element was NOT created with SSR
|
|
1760
|
+
// let's pick out the inner content for slot projection
|
|
1761
|
+
// create a node to represent where the original
|
|
1762
|
+
// content was first placed, which is useful later on
|
|
1763
|
+
const contentRefElm = (elm['s-cr'] = doc.createComment(''));
|
|
1764
|
+
contentRefElm['s-cn'] = true;
|
|
1765
|
+
elm.insertBefore(contentRefElm, elm.firstChild);
|
|
1766
|
+
};
|
|
1389
1767
|
const disconnectedCallback = (elm) => {
|
|
1390
1768
|
if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {
|
|
1391
1769
|
const hostRef = getHostRef(elm);
|
package/dist/esm/loader.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { p as promiseResolve, b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { p as promiseResolve, b as bootstrapLazy } from './index-b11965d8.js';
|
|
2
|
+
export { s as setNonce } from './index-b11965d8.js';
|
|
3
3
|
|
|
4
4
|
/*
|
|
5
5
|
Stencil Client Patch Esm v2.22.3 | MIT Licensed | https://stenciljs.com
|
|
@@ -11,7 +11,7 @@ const patchEsm = () => {
|
|
|
11
11
|
const defineCustomElements = (win, options) => {
|
|
12
12
|
if (typeof window === 'undefined') return Promise.resolve();
|
|
13
13
|
return patchEsm().then(() => {
|
|
14
|
-
return bootstrapLazy([["tttx-data-pattern",[[1,"tttx-data-pattern",{"data":[1],"sorteroptions":[1],"filteroptions":[1],"filterheader":[1]}]]],["tttx-multiselect-box",[[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",[[1,"tttx-dialog-box",{"data":[1025],"size":[1],"open":[1028],"allowOverflow":[4,"allow-overflow"],"elementSize":[32]},[[9,"resize","handleResize"]]]]],["tttx-select-box",[[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",[[1,"tttx-tree-view",{"data":[1040],"treeData":[32],"selectedId":[32]}]]],["tttx-expander",[[1,"tttx-expander",{"name":[1],"open":[4],"lefticon":[1],"lefticoncolor":[1],"isExpanded":[32]}]]],["tttx-tabs",[[2,"tttx-tabs",{"tabsName":[1,"tabs-name"],"navigation":[4],"wide":[4],"tabs":[1],"_tabs":[32]},[[0,"keydown","handleKeyDown"]]]]],["tttx-form",[[1,"tttx-form",{"formschema":[1025],"data":[1032],"submit":[64]}]]],["tttx-keyvalue-block",[[1,"tttx-keyvalue-block",{"keyvalues":[1],"horizontal":[4],"spacedout":[4],"_elements":[32]}]]],["tttx-loading-spinner",[[1,"tttx-loading-spinner",{"loadingMessage":[1028,"loading-message"],"size":[1025]}]]],["tttx-percentage-bar",[[2,"tttx-percentage-bar",{"percentage":[8],"thresholds":[1],"color":[1],"min":[1],"labelid":[1],"_percentage":[32],"_ranges":[32],"_min":[32]}]]],["tttx-qrcode",[[1,"tttx-qrcode",{"link":[1025],"size":[1026]}]]],["tttx-tag",[[1,"tttx-tag",{"text":[1],"color":[1],"textColor":[1,"text-color"]}]]],["tttx-textarea",[[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",[[1,"tttx-icon",{"icon":[1],"color":[1]}]]],["tttx-standalone-input",[[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",[[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",[[1,"tttx-button",{"notext":[4],"icon":[1],"iconposition":[1],"iconcolor":[1025],"design":[1]}]]]], options);
|
|
14
|
+
return bootstrapLazy([["tttx-data-pattern",[[1,"tttx-data-pattern",{"data":[1],"sorteroptions":[1],"filteroptions":[1],"filterheader":[1]}]]],["tttx-multiselect-box",[[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",[[1,"tttx-dialog-box",{"data":[1025],"size":[1],"open":[1028],"allowOverflow":[4,"allow-overflow"],"elementSize":[32]},[[9,"resize","handleResize"]]]]],["tttx-select-box",[[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",[[1,"tttx-tree-view",{"data":[1040],"treeData":[32],"selectedId":[32]}]]],["tttx-checkbox",[[0,"tttx-checkbox",{"checkboxId":[1,"checkbox-id"],"label":[1],"inline":[4],"indeterminate":[4],"checked":[4]}]]],["tttx-expander",[[1,"tttx-expander",{"name":[1],"open":[4],"lefticon":[1],"lefticoncolor":[1],"isExpanded":[32]}]]],["tttx-tabs",[[2,"tttx-tabs",{"tabsName":[1,"tabs-name"],"navigation":[4],"wide":[4],"tabs":[1],"_tabs":[32]},[[0,"keydown","handleKeyDown"]]]]],["tttx-checkbox-group",[[1,"tttx-checkbox-group"]]],["tttx-checkbox-group-caption",[[4,"tttx-checkbox-group-caption"]]],["tttx-checkbox-group-heading",[[4,"tttx-checkbox-group-heading"]]],["tttx-form",[[1,"tttx-form",{"formschema":[1025],"data":[1032],"submit":[64]}]]],["tttx-keyvalue-block",[[1,"tttx-keyvalue-block",{"keyvalues":[1],"horizontal":[4],"spacedout":[4],"_elements":[32]}]]],["tttx-loading-spinner",[[1,"tttx-loading-spinner",{"loadingMessage":[1028,"loading-message"],"size":[1025]}]]],["tttx-percentage-bar",[[2,"tttx-percentage-bar",{"percentage":[8],"thresholds":[1],"color":[1],"min":[1],"labelid":[1],"_percentage":[32],"_ranges":[32],"_min":[32]}]]],["tttx-qrcode",[[1,"tttx-qrcode",{"link":[1025],"size":[1026]}]]],["tttx-tag",[[1,"tttx-tag",{"text":[1],"color":[1],"textColor":[1,"text-color"]}]]],["tttx-textarea",[[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",[[1,"tttx-icon",{"icon":[1],"color":[1]}]]],["tttx-standalone-input",[[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",[[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",[[1,"tttx-button",{"notext":[4],"icon":[1],"iconposition":[1],"iconcolor":[1025],"design":[1]}]]]], options);
|
|
15
15
|
});
|
|
16
16
|
};
|
|
17
17
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host } from './index-
|
|
1
|
+
import { r as registerInstance, h, H as Host } from './index-b11965d8.js';
|
|
2
2
|
|
|
3
3
|
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}";
|
|
4
4
|
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { r as registerInstance, h, H as Host } from './index-b11965d8.js';
|
|
2
|
+
|
|
3
|
+
const TttxCheckboxGroupCaption = class {
|
|
4
|
+
constructor(hostRef) {
|
|
5
|
+
registerInstance(this, hostRef);
|
|
6
|
+
}
|
|
7
|
+
render() {
|
|
8
|
+
return (h(Host, null, h("div", { class: 'tttx-checkbox-group__caption' }, h("slot", null))));
|
|
9
|
+
}
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export { TttxCheckboxGroupCaption as tttx_checkbox_group_caption };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { r as registerInstance, h, H as Host } from './index-b11965d8.js';
|
|
2
|
+
|
|
3
|
+
const TttxCheckboxGroupHeading = class {
|
|
4
|
+
constructor(hostRef) {
|
|
5
|
+
registerInstance(this, hostRef);
|
|
6
|
+
}
|
|
7
|
+
render() {
|
|
8
|
+
return (h(Host, null, h("div", { class: 'tttx-checkbox-group__heading' }, h("slot", null))));
|
|
9
|
+
}
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export { TttxCheckboxGroupHeading as tttx_checkbox_group_heading };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { r as registerInstance, h, H as Host } from './index-b11965d8.js';
|
|
2
|
+
|
|
3
|
+
const tttxCheckboxGroupCss = ".material-symbols-rounded{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}.tttx-checkbox-group{display:flex;flex-direction:column}.tttx-checkbox-group__caption{color:#757575;font-family:\"Roboto\", sans-serif;font-size:14px;font-weight:normal;line-height:19px;margin-bottom:4px}.tttx-checkbox-group__heading{color:#212121;font-family:\"Roboto\", sans-serif;font-size:16px;font-weight:500;line-height:16px;margin-bottom:4px}";
|
|
4
|
+
|
|
5
|
+
const TttxCheckboxGroup = class {
|
|
6
|
+
constructor(hostRef) {
|
|
7
|
+
registerInstance(this, hostRef);
|
|
8
|
+
}
|
|
9
|
+
render() {
|
|
10
|
+
return (h(Host, null, h("div", { class: 'tttx-checkbox-group' }, h("slot", null))));
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
TttxCheckboxGroup.style = tttxCheckboxGroupCss;
|
|
14
|
+
|
|
15
|
+
export { TttxCheckboxGroup as tttx_checkbox_group };
|