@3t-transform/threeteeui 0.1.5 → 0.1.7
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/app-globals-3a1e7e63.js +5 -0
- package/dist/cjs/css-shim-211819bc.js +6 -0
- package/dist/cjs/dom-9deb26c8.js +75 -0
- package/dist/cjs/index-11cfdabe.js +3297 -0
- package/dist/cjs/{index-906c2757.js → index-451f61dd.js} +3 -102
- package/dist/cjs/loader.cjs.js +19 -4
- package/dist/cjs/shadow-css-bf3843d2.js +389 -0
- package/dist/cjs/{tttx-button_2.cjs.entry.js → tttx-button.cjs.entry.js} +24 -50
- package/dist/cjs/tttx-form.cjs.entry.js +364 -364
- package/dist/cjs/tttx-icon.cjs.entry.js +21 -0
- package/dist/cjs/tttx-keyvalue-block.cjs.entry.js +57 -57
- package/dist/cjs/tttx-list.cjs.entry.js +76 -46
- package/dist/cjs/tttx-loading-spinner.cjs.entry.js +16 -16
- package/dist/cjs/tttx-standalone-input.cjs.entry.js +61 -58
- package/dist/cjs/tttx-toolbar.cjs.entry.js +20 -0
- package/dist/cjs/tttx.cjs.js +117 -9
- package/dist/collection/collection-manifest.json +4 -3
- package/dist/collection/components/atoms/tttx-button/test/tttx-button.e2e.js +9 -0
- package/dist/collection/components/atoms/tttx-button/test/tttx-button.spec.js +83 -0
- package/dist/collection/components/atoms/tttx-button/tttx-button.js +110 -116
- package/dist/collection/components/atoms/tttx-button/tttx-button.stories.js +14 -14
- package/dist/collection/components/atoms/tttx-icon/test/tttx-icon.e2e.js +9 -0
- package/dist/collection/components/atoms/tttx-icon/test/tttx-icon.spec.js +16 -0
- package/dist/collection/components/atoms/tttx-icon/tttx-icon.css +4 -0
- package/dist/collection/components/atoms/tttx-icon/tttx-icon.js +62 -62
- package/dist/collection/components/atoms/tttx-icon/tttx-icon.stories.js +22 -22
- package/dist/collection/components/atoms/tttx-keyvalue-block/test/tttx-keyvalue-block.spec.js +216 -0
- package/dist/collection/components/atoms/tttx-keyvalue-block/tttx-keyvalue-block.js +107 -107
- package/dist/collection/components/atoms/tttx-keyvalue-block/tttx-keyvalue-block.stories.js +38 -38
- package/dist/collection/components/atoms/tttx-loading-spinner/Test/tttx-loading-spinner.spec.js +64 -0
- package/dist/collection/components/atoms/tttx-loading-spinner/tttx-loading-spinner.js +67 -67
- package/dist/collection/components/atoms/tttx-loading-spinner/tttx-loading-spinner.stories.js +17 -17
- package/dist/collection/components/molecules/tttx-form/lib/setErrorState.js +35 -35
- package/dist/collection/components/molecules/tttx-form/lib/setErrorState.spec.js +38 -0
- package/dist/collection/components/molecules/tttx-form/lib/validityCheck.js +58 -58
- package/dist/collection/components/molecules/tttx-form/lib/validityCheck.spec.js +214 -0
- package/dist/collection/components/molecules/tttx-form/test/tttx-form.e2e.js +9 -0
- package/dist/collection/components/molecules/tttx-form/test/tttx-form.spec.js +232 -0
- package/dist/collection/components/molecules/tttx-form/tttx-form.css +32 -3
- package/dist/collection/components/molecules/tttx-form/tttx-form.js +364 -364
- package/dist/collection/components/molecules/tttx-form/tttx-form.stories.js +127 -127
- package/dist/collection/components/molecules/tttx-list/test/ttttx-list.spec.e2e.js +26 -0
- package/dist/collection/components/molecules/tttx-list/test/tttx-list.spec.js +183 -0
- package/dist/collection/components/molecules/tttx-list/tttx-list.js +105 -105
- package/dist/collection/components/molecules/tttx-list/tttx-list.stories.js +43 -43
- package/dist/collection/components/molecules/tttx-standalone-input/test/tttx-standalone-input.e2e.js +9 -0
- package/dist/collection/components/molecules/tttx-standalone-input/test/tttx-standalone-input.spec.js +219 -0
- package/dist/collection/components/molecules/tttx-standalone-input/tttx-standalone-input.css +32 -3
- package/dist/collection/components/molecules/tttx-standalone-input/tttx-standalone-input.js +627 -572
- package/dist/collection/components/molecules/tttx-standalone-input/tttx-standalone-input.stories.js +148 -135
- package/dist/collection/components/molecules/tttx-toolbar/test/tttx-toolbar.test.js +0 -0
- package/dist/collection/components/molecules/tttx-toolbar/tttx-toolbar.css +30 -0
- package/dist/collection/components/molecules/tttx-toolbar/tttx-toolbar.js +44 -0
- package/dist/collection/components/molecules/tttx-toolbar/tttx-toolbar.stories.js +20 -0
- package/dist/collection/components/palette.stories.js +7 -7
- package/dist/collection/docs/gettingstarted-developer.stories.js +5 -5
- package/dist/collection/icons.js +2838 -2838
- package/dist/collection/index.js +1 -1
- package/dist/collection/shared/domsanitiser.options.js +14 -14
- package/dist/collection/shared/test/domsanitiser.options.spec.js +23 -0
- package/dist/components/index.d.ts +1 -9
- package/dist/components/index.js +6 -1
- package/dist/components/tttx-button.js +48 -59
- package/dist/components/tttx-form.js +381 -381
- package/dist/components/tttx-icon2.js +29 -29
- package/dist/components/tttx-keyvalue-block.js +74 -74
- package/dist/components/tttx-list.js +98 -68
- package/dist/components/tttx-loading-spinner.js +33 -33
- package/dist/components/tttx-standalone-input.js +108 -102
- package/dist/components/tttx-toolbar.d.ts +11 -0
- package/dist/components/tttx-toolbar.js +36 -0
- package/dist/esm/app-globals-0f993ce5.js +3 -0
- package/dist/esm/css-shim-9d54a2f2.js +4 -0
- package/dist/esm/dom-6be6f662.js +73 -0
- package/dist/esm/{index-4010ad69.js → index-0350f122.js} +4 -101
- package/dist/esm/index-dbe25028.js +3262 -0
- package/dist/esm/loader.js +19 -4
- package/dist/esm/polyfills/core-js.js +0 -0
- package/dist/esm/polyfills/css-shim.js +1 -1
- package/dist/esm/polyfills/dom.js +0 -0
- package/dist/esm/polyfills/es5-html-element.js +0 -0
- package/dist/esm/polyfills/index.js +0 -0
- package/dist/esm/polyfills/system.js +0 -0
- package/dist/esm/shadow-css-ed4599f8.js +387 -0
- package/dist/esm/{tttx-button_2.entry.js → tttx-button.entry.js} +25 -50
- package/dist/esm/tttx-form.entry.js +364 -364
- package/dist/esm/tttx-icon.entry.js +17 -0
- package/dist/esm/tttx-keyvalue-block.entry.js +57 -57
- package/dist/esm/tttx-list.entry.js +76 -46
- package/dist/esm/tttx-loading-spinner.entry.js +16 -16
- package/dist/esm/tttx-standalone-input.entry.js +61 -58
- package/dist/esm/tttx-toolbar.entry.js +16 -0
- package/dist/esm/tttx.js +117 -6
- package/dist/tttx/app-globals-0f993ce5.js +3 -0
- package/dist/tttx/css-shim-9d54a2f2.js +4 -0
- package/dist/tttx/dom-6be6f662.js +73 -0
- package/dist/tttx/index-dbe25028.js +3262 -0
- package/dist/tttx/index.esm.js +1 -0
- package/dist/tttx/p-0a85dda4.entry.js +1 -0
- package/dist/tttx/{p-3281444a.entry.js → p-1b015a9d.entry.js} +1 -1
- package/dist/tttx/p-4f3958fa.entry.js +1 -0
- package/dist/tttx/p-5cae1beb.entry.js +1 -0
- package/dist/tttx/p-62869344.js +2 -0
- package/dist/tttx/p-92465671.entry.js +1 -0
- package/dist/tttx/{p-dab7ee1b.entry.js → p-a0179cb1.entry.js} +1 -1
- package/dist/tttx/p-cc6644c9.entry.js +1 -0
- package/dist/tttx/p-cd1565e0.entry.js +3 -0
- package/dist/tttx/shadow-css-ed4599f8.js +387 -0
- package/dist/tttx/tttx-button.entry.js +30 -0
- package/dist/tttx/tttx-form.entry.js +373 -0
- package/dist/tttx/tttx-icon.entry.js +17 -0
- package/dist/tttx/tttx-keyvalue-block.entry.js +63 -0
- package/dist/tttx/tttx-list.entry.js +1730 -0
- package/dist/tttx/tttx-loading-spinner.entry.js +22 -0
- package/dist/tttx/tttx-standalone-input.entry.js +66 -0
- package/dist/tttx/tttx-toolbar.entry.js +16 -0
- package/dist/tttx/tttx.esm.js +129 -1
- package/dist/types/components/atoms/tttx-button/test/tttx-button.e2e.d.ts +1 -0
- package/dist/types/components/atoms/tttx-button/test/tttx-button.spec.d.ts +1 -0
- package/dist/types/components/atoms/tttx-button/tttx-button.d.ts +10 -13
- package/dist/types/components/atoms/tttx-button/tttx-button.stories.d.ts +10 -10
- package/dist/types/components/atoms/tttx-icon/test/tttx-icon.e2e.d.ts +1 -0
- package/dist/types/components/atoms/tttx-icon/test/tttx-icon.spec.d.ts +1 -0
- package/dist/types/components/atoms/tttx-icon/tttx-icon.d.ts +5 -5
- package/dist/types/components/atoms/tttx-icon/tttx-icon.stories.d.ts +20 -20
- package/dist/types/components/atoms/tttx-keyvalue-block/test/tttx-keyvalue-block.spec.d.ts +1 -0
- package/dist/types/components/atoms/tttx-keyvalue-block/tttx-keyvalue-block.d.ts +7 -7
- package/dist/types/components/atoms/tttx-keyvalue-block/tttx-keyvalue-block.stories.d.ts +9 -9
- package/dist/types/components/atoms/tttx-loading-spinner/Test/tttx-loading-spinner.spec.d.ts +1 -0
- package/dist/types/components/atoms/tttx-loading-spinner/tttx-loading-spinner.d.ts +6 -6
- package/dist/types/components/atoms/tttx-loading-spinner/tttx-loading-spinner.stories.d.ts +17 -17
- package/dist/types/components/molecules/tttx-form/lib/setErrorState.d.ts +13 -13
- package/dist/types/components/molecules/tttx-form/lib/setErrorState.spec.d.ts +1 -0
- package/dist/types/components/molecules/tttx-form/lib/validityCheck.d.ts +17 -17
- package/dist/types/components/molecules/tttx-form/lib/validityCheck.spec.d.ts +1 -0
- package/dist/types/components/molecules/tttx-form/test/tttx-form.e2e.d.ts +1 -0
- package/dist/types/components/molecules/tttx-form/test/tttx-form.spec.d.ts +1 -0
- package/dist/types/components/molecules/tttx-form/tttx-form.d.ts +114 -114
- package/dist/types/components/molecules/tttx-form/tttx-form.stories.d.ts +13 -13
- package/dist/types/components/molecules/tttx-list/test/ttttx-list.spec.e2e.d.ts +1 -0
- package/dist/types/components/molecules/tttx-list/test/tttx-list.spec.d.ts +1 -0
- package/dist/types/components/molecules/tttx-list/tttx-list.d.ts +11 -11
- package/dist/types/components/molecules/tttx-list/tttx-list.stories.d.ts +14 -14
- package/dist/types/components/molecules/tttx-standalone-input/test/tttx-standalone-input.e2e.d.ts +1 -0
- package/dist/types/components/molecules/tttx-standalone-input/test/tttx-standalone-input.spec.d.ts +1 -0
- package/dist/types/components/molecules/tttx-standalone-input/tttx-standalone-input.d.ts +56 -53
- package/dist/types/components/molecules/tttx-standalone-input/tttx-standalone-input.stories.d.ts +122 -106
- package/dist/types/components/molecules/tttx-toolbar/test/tttx-toolbar.test.d.ts +0 -0
- package/dist/types/components/molecules/tttx-toolbar/tttx-toolbar.d.ts +4 -0
- package/dist/types/components/molecules/tttx-toolbar/tttx-toolbar.stories.d.ts +13 -0
- package/dist/types/components/palette.stories.d.ts +6 -6
- package/dist/types/components.d.ts +21 -0
- package/dist/types/docs/gettingstarted-developer.stories.d.ts +5 -5
- package/dist/types/icons.d.ts +2 -2
- package/dist/types/index.d.ts +1 -1
- package/dist/types/shared/domsanitiser.options.d.ts +10 -10
- package/dist/types/shared/test/domsanitiser.options.spec.d.ts +1 -0
- package/dist/types/stencil-public-runtime.d.ts +3 -59
- package/loader/index.d.ts +0 -9
- package/package.json +1 -1
- package/dist/collection/transform-tag-name.js +0 -5
- package/dist/tttx/p-083eeedc.entry.js +0 -1
- package/dist/tttx/p-5687f4ad.js +0 -2
- package/dist/tttx/p-5c9a1626.entry.js +0 -3
- package/dist/tttx/p-931e42c9.entry.js +0 -1
- package/dist/tttx/p-b5c1dd86.entry.js +0 -1
- package/dist/types/transform-tag-name.d.ts +0 -1
|
@@ -41,18 +41,6 @@ const isComplexType = (o) => {
|
|
|
41
41
|
o = typeof o;
|
|
42
42
|
return o === 'object' || o === 'function';
|
|
43
43
|
};
|
|
44
|
-
/**
|
|
45
|
-
* Helper method for querying a `meta` tag that contains a nonce value
|
|
46
|
-
* out of a DOM's head.
|
|
47
|
-
*
|
|
48
|
-
* @param doc The DOM containing the `head` to query against
|
|
49
|
-
* @returns The content of the meta tag representing the nonce value, or `undefined` if no tag
|
|
50
|
-
* exists or the tag has no content.
|
|
51
|
-
*/
|
|
52
|
-
function queryNonceMetaTagContent(doc) {
|
|
53
|
-
var _a, _b, _c;
|
|
54
|
-
return (_c = (_b = (_a = doc.head) === null || _a === void 0 ? void 0 : _a.querySelector('meta[name="csp-nonce"]')) === null || _b === void 0 ? void 0 : _b.getAttribute('content')) !== null && _c !== void 0 ? _c : undefined;
|
|
55
|
-
}
|
|
56
44
|
/**
|
|
57
45
|
* Production h() function based on Preact by
|
|
58
46
|
* Jason Miller (@developit)
|
|
@@ -61,6 +49,7 @@ function queryNonceMetaTagContent(doc) {
|
|
|
61
49
|
*
|
|
62
50
|
* Modified for Stencil's compiler and vdom
|
|
63
51
|
*/
|
|
52
|
+
// const stack: any[] = [];
|
|
64
53
|
// export function h(nodeName: string | d.FunctionalComponent, vnodeData: d.PropsType, child?: d.ChildType): d.VNode;
|
|
65
54
|
// export function h(nodeName: string | d.FunctionalComponent, vnodeData: d.PropsType, ...children: d.ChildType[]): d.VNode;
|
|
66
55
|
const h = (nodeName, vnodeData, ...children) => {
|
|
@@ -111,14 +100,6 @@ const h = (nodeName, vnodeData, ...children) => {
|
|
|
111
100
|
}
|
|
112
101
|
return vnode;
|
|
113
102
|
};
|
|
114
|
-
/**
|
|
115
|
-
* A utility function for creating a virtual DOM node from a tag and some
|
|
116
|
-
* possible text content.
|
|
117
|
-
*
|
|
118
|
-
* @param tag the tag for this element
|
|
119
|
-
* @param text possible text content for the node
|
|
120
|
-
* @returns a newly-minted virtual DOM node
|
|
121
|
-
*/
|
|
122
103
|
const newVNode = (tag, text) => {
|
|
123
104
|
const vnode = {
|
|
124
105
|
$flags$: 0,
|
|
@@ -133,12 +114,6 @@ const newVNode = (tag, text) => {
|
|
|
133
114
|
return vnode;
|
|
134
115
|
};
|
|
135
116
|
const Host = {};
|
|
136
|
-
/**
|
|
137
|
-
* Check whether a given node is a Host node or not
|
|
138
|
-
*
|
|
139
|
-
* @param node the virtual DOM node to check
|
|
140
|
-
* @returns whether it's a Host node or not
|
|
141
|
-
*/
|
|
142
117
|
const isHost = (node) => node && node.$tag$ === Host;
|
|
143
118
|
/**
|
|
144
119
|
* Parse a new property value for a given property type.
|
|
@@ -227,7 +202,6 @@ const registerStyle = (scopeId, cssText, allowCS) => {
|
|
|
227
202
|
styles.set(scopeId, style);
|
|
228
203
|
};
|
|
229
204
|
const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
|
|
230
|
-
var _a;
|
|
231
205
|
let scopeId = getScopeId(cmpMeta);
|
|
232
206
|
const style = styles.get(scopeId);
|
|
233
207
|
// if an element is NOT connected then getRootNode() will return the wrong root node
|
|
@@ -247,11 +221,6 @@ const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
|
|
|
247
221
|
styleElm = doc.createElement('style');
|
|
248
222
|
styleElm.innerHTML = style;
|
|
249
223
|
}
|
|
250
|
-
// Apply CSP nonce to the style tag if it exists
|
|
251
|
-
const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
|
|
252
|
-
if (nonce != null) {
|
|
253
|
-
styleElm.setAttribute('nonce', nonce);
|
|
254
|
-
}
|
|
255
224
|
styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector('link'));
|
|
256
225
|
}
|
|
257
226
|
if (appliedStyles) {
|
|
@@ -459,21 +428,6 @@ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
459
428
|
}
|
|
460
429
|
return elm;
|
|
461
430
|
};
|
|
462
|
-
/**
|
|
463
|
-
* Create DOM nodes corresponding to a list of {@link d.Vnode} objects and
|
|
464
|
-
* add them to the DOM in the appropriate place.
|
|
465
|
-
*
|
|
466
|
-
* @param parentElm the DOM node which should be used as a parent for the new
|
|
467
|
-
* DOM nodes
|
|
468
|
-
* @param before a child of the `parentElm` which the new children should be
|
|
469
|
-
* inserted before (optional)
|
|
470
|
-
* @param parentVNode the parent virtual DOM node
|
|
471
|
-
* @param vnodes the new child virtual DOM nodes to produce DOM nodes for
|
|
472
|
-
* @param startIdx the index in the child virtual DOM nodes at which to start
|
|
473
|
-
* creating DOM nodes (inclusive)
|
|
474
|
-
* @param endIdx the index in the child virtual DOM nodes at which to stop
|
|
475
|
-
* creating DOM nodes (inclusive)
|
|
476
|
-
*/
|
|
477
431
|
const addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
|
|
478
432
|
let containerElm = (parentElm);
|
|
479
433
|
let childNode;
|
|
@@ -490,19 +444,6 @@ const addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) =>
|
|
|
490
444
|
}
|
|
491
445
|
}
|
|
492
446
|
};
|
|
493
|
-
/**
|
|
494
|
-
* Remove the DOM elements corresponding to a list of {@link d.VNode} objects.
|
|
495
|
-
* This can be used to, for instance, clean up after a list of children which
|
|
496
|
-
* should no longer be shown.
|
|
497
|
-
*
|
|
498
|
-
* This function also handles some of Stencil's slot relocation logic.
|
|
499
|
-
*
|
|
500
|
-
* @param vnodes a list of virtual DOM nodes to remove
|
|
501
|
-
* @param startIdx the index at which to start removing nodes (inclusive)
|
|
502
|
-
* @param endIdx the index at which to stop removing nodes (inclusive)
|
|
503
|
-
* @param vnode a VNode
|
|
504
|
-
* @param elm an element
|
|
505
|
-
*/
|
|
506
447
|
const removeVnodes = (vnodes, startIdx, endIdx, vnode, elm) => {
|
|
507
448
|
for (; startIdx <= endIdx; ++startIdx) {
|
|
508
449
|
if ((vnode = vnodes[startIdx])) {
|
|
@@ -695,8 +636,7 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
|
|
|
695
636
|
*
|
|
696
637
|
* So, in other words, if `key` attrs are not set on VNodes which may be
|
|
697
638
|
* changing order within a `children` array or something along those lines then
|
|
698
|
-
* we could obtain a false
|
|
699
|
-
* (i.e. we'd say two VNodes aren't equal when in fact they should be).
|
|
639
|
+
* we could obtain a false positive and then have to do needless re-rendering.
|
|
700
640
|
*
|
|
701
641
|
* @param leftVNode the first VNode to check
|
|
702
642
|
* @param rightVNode the second VNode to check
|
|
@@ -766,18 +706,6 @@ const callNodeRefs = (vNode) => {
|
|
|
766
706
|
vNode.$children$ && vNode.$children$.map(callNodeRefs);
|
|
767
707
|
}
|
|
768
708
|
};
|
|
769
|
-
/**
|
|
770
|
-
* The main entry point for Stencil's virtual DOM-based rendering engine
|
|
771
|
-
*
|
|
772
|
-
* Given a {@link d.HostRef} container and some virtual DOM nodes, this
|
|
773
|
-
* function will handle creating a virtual DOM tree with a single root, patching
|
|
774
|
-
* the current virtual DOM tree onto an old one (if any), dealing with slot
|
|
775
|
-
* relocation, and reflecting attributes.
|
|
776
|
-
*
|
|
777
|
-
* @param hostRef data needed to root and render the virtual DOM tree, such as
|
|
778
|
-
* the DOM node into which it should be rendered.
|
|
779
|
-
* @param renderFnResults the virtual DOM nodes to be rendered
|
|
780
|
-
*/
|
|
781
709
|
const renderVdom = (hostRef, renderFnResults) => {
|
|
782
710
|
const hostElm = hostRef.$hostElement$;
|
|
783
711
|
const oldVNode = hostRef.$vnode$ || newVNode(null, null);
|
|
@@ -1149,7 +1077,6 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
|
|
|
1149
1077
|
hostRef.$flags$ |= 128 /* HOST_FLAGS.isWatchReady */;
|
|
1150
1078
|
}
|
|
1151
1079
|
endNewInstance();
|
|
1152
|
-
fireConnectedCallback(hostRef.$lazyInstance$);
|
|
1153
1080
|
}
|
|
1154
1081
|
if (Cstr.style) {
|
|
1155
1082
|
// this component has styles but we haven't registered them yet
|
|
@@ -1178,11 +1105,6 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
|
|
|
1178
1105
|
schedule();
|
|
1179
1106
|
}
|
|
1180
1107
|
};
|
|
1181
|
-
const fireConnectedCallback = (instance) => {
|
|
1182
|
-
{
|
|
1183
|
-
safeCall(instance, 'connectedCallback');
|
|
1184
|
-
}
|
|
1185
|
-
};
|
|
1186
1108
|
const connectedCallback = (elm) => {
|
|
1187
1109
|
if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {
|
|
1188
1110
|
const hostRef = getHostRef(elm);
|
|
@@ -1221,10 +1143,6 @@ const connectedCallback = (elm) => {
|
|
|
1221
1143
|
initializeComponent(elm, hostRef, cmpMeta);
|
|
1222
1144
|
}
|
|
1223
1145
|
}
|
|
1224
|
-
else {
|
|
1225
|
-
// fire off connectedCallback() on component instance
|
|
1226
|
-
fireConnectedCallback(hostRef.$lazyInstance$);
|
|
1227
|
-
}
|
|
1228
1146
|
endConnected();
|
|
1229
1147
|
}
|
|
1230
1148
|
};
|
|
@@ -1234,7 +1152,6 @@ const disconnectedCallback = (elm) => {
|
|
|
1234
1152
|
}
|
|
1235
1153
|
};
|
|
1236
1154
|
const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
1237
|
-
var _a;
|
|
1238
1155
|
const endBootstrap = createTime();
|
|
1239
1156
|
const cmpTags = [];
|
|
1240
1157
|
const exclude = options.exclude || [];
|
|
@@ -1261,9 +1178,7 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1261
1178
|
{
|
|
1262
1179
|
cmpMeta.$watchers$ = {};
|
|
1263
1180
|
}
|
|
1264
|
-
const tagName =
|
|
1265
|
-
? options.transformTagName(cmpMeta.$tagName$)
|
|
1266
|
-
: cmpMeta.$tagName$;
|
|
1181
|
+
const tagName = cmpMeta.$tagName$;
|
|
1267
1182
|
const HostElement = class extends HTMLElement {
|
|
1268
1183
|
// StencilLazyHost
|
|
1269
1184
|
constructor(self) {
|
|
@@ -1313,11 +1228,6 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1313
1228
|
{
|
|
1314
1229
|
visibilityStyle.innerHTML = cmpTags + HYDRATED_CSS;
|
|
1315
1230
|
visibilityStyle.setAttribute('data-styles', '');
|
|
1316
|
-
// Apply CSP nonce to the style tag if it exists
|
|
1317
|
-
const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
|
|
1318
|
-
if (nonce != null) {
|
|
1319
|
-
visibilityStyle.setAttribute('nonce', nonce);
|
|
1320
|
-
}
|
|
1321
1231
|
head.insertBefore(visibilityStyle, metaCharset ? metaCharset.nextSibling : head.firstChild);
|
|
1322
1232
|
}
|
|
1323
1233
|
// Process deferred connectedCallbacks now all components have been registered
|
|
@@ -1333,13 +1243,6 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1333
1243
|
// Fallback appLoad event
|
|
1334
1244
|
endBootstrap();
|
|
1335
1245
|
};
|
|
1336
|
-
/**
|
|
1337
|
-
* Assigns the given value to the nonce property on the runtime platform object.
|
|
1338
|
-
* During runtime, this value is used to set the nonce attribute on all dynamically created script and style tags.
|
|
1339
|
-
* @param nonce The value to be assigned to the platform nonce property.
|
|
1340
|
-
* @returns void
|
|
1341
|
-
*/
|
|
1342
|
-
const setNonce = (nonce) => (plt.$nonce$ = nonce);
|
|
1343
1246
|
const hostRefs = /*@__PURE__*/ new WeakMap();
|
|
1344
1247
|
const getHostRef = (ref) => hostRefs.get(ref);
|
|
1345
1248
|
const registerInstance = (lazyInstance, hostRef) => hostRefs.set((hostRef.$lazyInstance$ = lazyInstance), hostRef);
|
|
@@ -1446,4 +1349,4 @@ const flush = () => {
|
|
|
1446
1349
|
const nextTick = /*@__PURE__*/ (cb) => promiseResolve().then(cb);
|
|
1447
1350
|
const writeTask = /*@__PURE__*/ queueTask(queueDomWrites, true);
|
|
1448
1351
|
|
|
1449
|
-
export { Host as H, bootstrapLazy as b, createEvent as c,
|
|
1352
|
+
export { Host as H, bootstrapLazy as b, createEvent as c, h, promiseResolve as p, registerInstance as r };
|