@sankhyalabs/sankhyablocks 3.1.0 → 3.2.1
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-2cd6f753.js → index-21bd01e1.js} +111 -2
- package/dist/cjs/{index-696b5c3b.js → index-fc7ca86c.js} +1 -1
- package/dist/cjs/loader.cjs.js +3 -2
- package/dist/cjs/sankhyablocks.cjs.js +6 -2
- package/dist/cjs/snk-application.cjs.entry.js +3 -1
- package/dist/cjs/snk-config-options.cjs.entry.js +4 -4
- package/dist/cjs/snk-configurator_3.cjs.entry.js +14 -14
- package/dist/cjs/snk-crud.cjs.entry.js +10 -9
- package/dist/cjs/snk-data-exporter_8.cjs.entry.js +41 -16
- package/dist/cjs/snk-data-unit.cjs.entry.js +19 -14
- package/dist/cjs/snk-exporter-email-sender.cjs.entry.js +3 -1
- package/dist/cjs/snk-filter-binary-select.cjs.entry.js +3 -1
- package/dist/cjs/snk-filter-detail.cjs.entry.js +3 -1
- package/dist/cjs/snk-filter-multi-select.cjs.entry.js +3 -1
- package/dist/cjs/snk-filter-number.cjs.entry.js +3 -1
- package/dist/cjs/snk-filter-period.cjs.entry.js +3 -1
- package/dist/cjs/snk-filter-personalized.cjs.entry.js +5 -1
- package/dist/cjs/snk-filter-search.cjs.entry.js +3 -1
- package/dist/cjs/snk-filter-text.cjs.entry.js +3 -1
- package/dist/cjs/snk-form-config.cjs.entry.js +7 -4
- package/dist/cjs/snk-form.cjs.entry.js +7 -4
- package/dist/cjs/snk-pesquisa.cjs.entry.js +5 -1
- package/dist/cjs/snk-tab-config.cjs.entry.js +7 -1
- package/dist/cjs/{taskbar-elements-81ad590c.js → taskbar-elements-8d38f43a.js} +2 -2
- package/dist/cjs/teste-pesquisa.cjs.entry.js +1 -1
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/snk-application/snk-application.js +2 -0
- package/dist/collection/components/snk-configurator/snk-configurator.js +2 -3
- package/dist/collection/components/snk-crud/snk-crud.js +7 -6
- package/dist/collection/components/snk-data-exporter/exporter-email-sender/snk-exporter-email-sender.js +2 -0
- package/dist/collection/components/snk-data-exporter/snk-data-exporter.js +0 -3
- package/dist/collection/components/snk-data-unit/snk-data-unit.js +18 -13
- package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-binary-select.js +4 -0
- package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-multi-select.js +4 -0
- package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-number.js +4 -0
- package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-period.js +4 -0
- package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-personalized.js +6 -0
- package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-search.js +4 -0
- package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-text.js +4 -0
- package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-detail.js +4 -0
- package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-item.js +3 -0
- package/dist/collection/components/snk-filter-bar/filter-list/snk-filter-list.js +9 -0
- package/dist/collection/components/snk-filter-bar/filter-modal/snk-filter-modal.js +12 -0
- package/dist/collection/components/snk-filter-bar/snk-filter-bar.js +4 -0
- package/dist/collection/components/snk-form/snk-form.js +6 -3
- package/dist/collection/components/snk-form/subcomponents/snk-config-options/snk-config-options.js +3 -3
- package/dist/collection/components/snk-form/subcomponents/snk-field-config/snk-field-config.js +2 -6
- package/dist/collection/components/snk-form/subcomponents/snk-form-config/snk-form-config.js +6 -3
- package/dist/collection/components/snk-form/subcomponents/snk-tab-config/snk-tab-config.js +6 -0
- package/dist/collection/components/snk-grid/snk-grid.js +8 -3
- package/dist/collection/components/snk-grid/subcomponents/snk-grid-config/snk-grid-config.js +3 -3
- package/dist/collection/components/snk-grid/subcomponents/snk-select-box/snk-select-box.js +0 -3
- package/dist/collection/components/snk-pesquisa/snk-pesquisa.js +4 -0
- package/dist/collection/components/snk-taskbar/snk-taskbar.js +9 -4
- package/dist/components/index.d.ts +9 -0
- package/dist/components/index.js +1 -1
- package/dist/components/snk-application2.js +2 -0
- package/dist/components/snk-config-options2.js +3 -3
- package/dist/components/snk-configurator2.js +2 -3
- package/dist/components/snk-crud.js +7 -6
- package/dist/components/snk-data-exporter2.js +0 -3
- package/dist/components/snk-data-unit.js +18 -13
- package/dist/components/snk-exporter-email-sender2.js +2 -0
- package/dist/components/snk-field-config2.js +2 -6
- package/dist/components/snk-filter-bar2.js +4 -0
- package/dist/components/snk-filter-binary-select.js +2 -0
- package/dist/components/snk-filter-detail2.js +2 -0
- package/dist/components/snk-filter-item2.js +3 -0
- package/dist/components/snk-filter-list2.js +9 -0
- package/dist/components/snk-filter-modal2.js +10 -0
- package/dist/components/snk-filter-multi-select.js +2 -0
- package/dist/components/snk-filter-number.js +2 -0
- package/dist/components/snk-filter-period.js +2 -0
- package/dist/components/snk-filter-personalized.js +4 -0
- package/dist/components/snk-filter-search.js +2 -0
- package/dist/components/snk-filter-text.js +2 -0
- package/dist/components/snk-form-config2.js +6 -3
- package/dist/components/snk-form2.js +6 -3
- package/dist/components/snk-grid-config2.js +3 -3
- package/dist/components/snk-grid2.js +8 -3
- package/dist/components/snk-pesquisa2.js +4 -0
- package/dist/components/snk-select-box2.js +0 -3
- package/dist/components/snk-tab-config2.js +6 -0
- package/dist/components/snk-taskbar2.js +9 -4
- package/dist/esm/{index-a77b6f35.js → index-cfd4bb13.js} +111 -3
- package/dist/esm/{index-d89e384f.js → index-e467ade5.js} +1 -1
- package/dist/esm/loader.js +3 -2
- package/dist/esm/polyfills/css-shim.js +1 -1
- package/dist/esm/sankhyablocks.js +3 -2
- package/dist/esm/snk-application.entry.js +3 -1
- package/dist/esm/snk-config-options.entry.js +4 -4
- package/dist/esm/snk-configurator_3.entry.js +14 -14
- package/dist/esm/snk-crud.entry.js +10 -9
- package/dist/esm/snk-data-exporter_8.entry.js +41 -16
- package/dist/esm/snk-data-unit.entry.js +19 -14
- package/dist/esm/snk-exporter-email-sender.entry.js +3 -1
- package/dist/esm/snk-filter-binary-select.entry.js +3 -1
- package/dist/esm/snk-filter-detail.entry.js +3 -1
- package/dist/esm/snk-filter-multi-select.entry.js +3 -1
- package/dist/esm/snk-filter-number.entry.js +3 -1
- package/dist/esm/snk-filter-period.entry.js +3 -1
- package/dist/esm/snk-filter-personalized.entry.js +5 -1
- package/dist/esm/snk-filter-search.entry.js +3 -1
- package/dist/esm/snk-filter-text.entry.js +3 -1
- package/dist/esm/snk-form-config.entry.js +7 -4
- package/dist/esm/snk-form.entry.js +7 -4
- package/dist/esm/snk-pesquisa.entry.js +5 -1
- package/dist/esm/snk-tab-config.entry.js +7 -1
- package/dist/esm/{taskbar-elements-9b0a87f1.js → taskbar-elements-24655695.js} +2 -2
- package/dist/esm/teste-pesquisa.entry.js +1 -1
- package/dist/sankhyablocks/p-01fdcc77.entry.js +1 -0
- package/dist/sankhyablocks/p-0b86c7f0.entry.js +1 -0
- package/dist/sankhyablocks/p-123732eb.entry.js +1 -0
- package/dist/sankhyablocks/p-125c2d01.entry.js +1 -0
- package/dist/sankhyablocks/p-2cd74aa1.entry.js +1 -0
- package/dist/sankhyablocks/{p-4cec3835.entry.js → p-31e36df4.entry.js} +4 -4
- package/dist/sankhyablocks/p-4133f9e5.entry.js +1 -0
- package/dist/sankhyablocks/p-5360f8fa.entry.js +1 -0
- package/dist/sankhyablocks/p-5e62a17b.entry.js +1 -0
- package/dist/sankhyablocks/p-5fc55684.entry.js +1 -0
- package/dist/sankhyablocks/p-6b992e43.js +1 -0
- package/dist/sankhyablocks/p-86d29b6f.entry.js +1 -0
- package/dist/sankhyablocks/p-93c92b97.entry.js +1 -0
- package/dist/sankhyablocks/p-93d8ea09.js +2 -2
- package/dist/sankhyablocks/{p-112bb324.js → p-98f7f796.js} +1 -1
- package/dist/sankhyablocks/p-9fab987d.entry.js +1 -0
- package/dist/sankhyablocks/p-ad51bf1c.entry.js +1 -0
- package/dist/sankhyablocks/p-afba9bbe.entry.js +1 -0
- package/dist/sankhyablocks/p-b9667fbe.js +2 -0
- package/dist/sankhyablocks/p-c336170d.entry.js +1 -0
- package/dist/sankhyablocks/p-d5c9c1f8.entry.js +1 -0
- package/dist/sankhyablocks/{p-57895452.entry.js → p-e551b19a.entry.js} +1 -1
- package/dist/sankhyablocks/p-e701646c.entry.js +1 -0
- package/dist/sankhyablocks/p-ee82c157.entry.js +1 -0
- package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
- package/dist/types/stencil-public-runtime.d.ts +64 -3
- package/loader/index.d.ts +9 -0
- package/package.json +5 -5
- package/dist/sankhyablocks/p-048e126b.entry.js +0 -1
- package/dist/sankhyablocks/p-12ebe36a.entry.js +0 -1
- package/dist/sankhyablocks/p-187b0d06.entry.js +0 -1
- package/dist/sankhyablocks/p-1ccaea51.entry.js +0 -1
- package/dist/sankhyablocks/p-1dbe9dd8.entry.js +0 -1
- package/dist/sankhyablocks/p-3c7ec56e.entry.js +0 -1
- package/dist/sankhyablocks/p-3f6c05c7.entry.js +0 -1
- package/dist/sankhyablocks/p-6cd41239.entry.js +0 -1
- package/dist/sankhyablocks/p-7dad1d5e.js +0 -1
- package/dist/sankhyablocks/p-91c23d20.entry.js +0 -1
- package/dist/sankhyablocks/p-a77dd79a.js +0 -2
- package/dist/sankhyablocks/p-ab4ff312.entry.js +0 -1
- package/dist/sankhyablocks/p-bcb2fb03.entry.js +0 -1
- package/dist/sankhyablocks/p-c15108d5.entry.js +0 -1
- package/dist/sankhyablocks/p-d3e402d3.entry.js +0 -1
- package/dist/sankhyablocks/p-d7ae56ce.entry.js +0 -1
- package/dist/sankhyablocks/p-df5d94c6.entry.js +0 -1
- package/dist/sankhyablocks/p-e075dba7.entry.js +0 -1
- package/dist/sankhyablocks/p-f6f71be7.entry.js +0 -1
- package/dist/sankhyablocks/p-f9829109.entry.js +0 -1
|
@@ -47,6 +47,18 @@ const isComplexType = (o) => {
|
|
|
47
47
|
o = typeof o;
|
|
48
48
|
return o === 'object' || o === 'function';
|
|
49
49
|
};
|
|
50
|
+
/**
|
|
51
|
+
* Helper method for querying a `meta` tag that contains a nonce value
|
|
52
|
+
* out of a DOM's head.
|
|
53
|
+
*
|
|
54
|
+
* @param doc The DOM containing the `head` to query against
|
|
55
|
+
* @returns The content of the meta tag representing the nonce value, or `undefined` if no tag
|
|
56
|
+
* exists or the tag has no content.
|
|
57
|
+
*/
|
|
58
|
+
function queryNonceMetaTagContent(doc) {
|
|
59
|
+
var _a, _b, _c;
|
|
60
|
+
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;
|
|
61
|
+
}
|
|
50
62
|
/**
|
|
51
63
|
* Production h() function based on Preact by
|
|
52
64
|
* Jason Miller (@developit)
|
|
@@ -55,7 +67,6 @@ const isComplexType = (o) => {
|
|
|
55
67
|
*
|
|
56
68
|
* Modified for Stencil's compiler and vdom
|
|
57
69
|
*/
|
|
58
|
-
// const stack: any[] = [];
|
|
59
70
|
// export function h(nodeName: string | d.FunctionalComponent, vnodeData: d.PropsType, child?: d.ChildType): d.VNode;
|
|
60
71
|
// export function h(nodeName: string | d.FunctionalComponent, vnodeData: d.PropsType, ...children: d.ChildType[]): d.VNode;
|
|
61
72
|
const h = (nodeName, vnodeData, ...children) => {
|
|
@@ -125,6 +136,14 @@ const h = (nodeName, vnodeData, ...children) => {
|
|
|
125
136
|
}
|
|
126
137
|
return vnode;
|
|
127
138
|
};
|
|
139
|
+
/**
|
|
140
|
+
* A utility function for creating a virtual DOM node from a tag and some
|
|
141
|
+
* possible text content.
|
|
142
|
+
*
|
|
143
|
+
* @param tag the tag for this element
|
|
144
|
+
* @param text possible text content for the node
|
|
145
|
+
* @returns a newly-minted virtual DOM node
|
|
146
|
+
*/
|
|
128
147
|
const newVNode = (tag, text) => {
|
|
129
148
|
const vnode = {
|
|
130
149
|
$flags$: 0,
|
|
@@ -145,11 +164,31 @@ const newVNode = (tag, text) => {
|
|
|
145
164
|
return vnode;
|
|
146
165
|
};
|
|
147
166
|
const Host = {};
|
|
167
|
+
/**
|
|
168
|
+
* Check whether a given node is a Host node or not
|
|
169
|
+
*
|
|
170
|
+
* @param node the virtual DOM node to check
|
|
171
|
+
* @returns whether it's a Host node or not
|
|
172
|
+
*/
|
|
148
173
|
const isHost = (node) => node && node.$tag$ === Host;
|
|
174
|
+
/**
|
|
175
|
+
* Implementation of {@link d.FunctionalUtilities} for Stencil's VDom.
|
|
176
|
+
*
|
|
177
|
+
* Note that these functions convert from {@link d.VNode} to
|
|
178
|
+
* {@link d.ChildNode} to give functional component developers a friendly
|
|
179
|
+
* interface.
|
|
180
|
+
*/
|
|
149
181
|
const vdomFnUtils = {
|
|
150
182
|
forEach: (children, cb) => children.map(convertToPublic).forEach(cb),
|
|
151
183
|
map: (children, cb) => children.map(convertToPublic).map(cb).map(convertToPrivate),
|
|
152
184
|
};
|
|
185
|
+
/**
|
|
186
|
+
* Convert a {@link d.VNode} to a {@link d.ChildNode} in order to present a
|
|
187
|
+
* friendlier public interface (hence, 'convertToPublic').
|
|
188
|
+
*
|
|
189
|
+
* @param node the virtual DOM node to convert
|
|
190
|
+
* @returns a converted child node
|
|
191
|
+
*/
|
|
153
192
|
const convertToPublic = (node) => ({
|
|
154
193
|
vattrs: node.$attrs$,
|
|
155
194
|
vchildren: node.$children$,
|
|
@@ -158,6 +197,15 @@ const convertToPublic = (node) => ({
|
|
|
158
197
|
vtag: node.$tag$,
|
|
159
198
|
vtext: node.$text$,
|
|
160
199
|
});
|
|
200
|
+
/**
|
|
201
|
+
* Convert a {@link d.ChildNode} back to an equivalent {@link d.VNode} in
|
|
202
|
+
* order to use the resulting object in the virtual DOM. The initial object was
|
|
203
|
+
* likely created as part of presenting a public API, so converting it back
|
|
204
|
+
* involved making it 'private' again (hence, `convertToPrivate`).
|
|
205
|
+
*
|
|
206
|
+
* @param node the child node to convert
|
|
207
|
+
* @returns a converted virtual DOM node
|
|
208
|
+
*/
|
|
161
209
|
const convertToPrivate = (node) => {
|
|
162
210
|
if (typeof node.vtag === 'function') {
|
|
163
211
|
const vnodeData = Object.assign({}, node.vattrs);
|
|
@@ -267,6 +315,7 @@ const registerStyle = (scopeId, cssText, allowCS) => {
|
|
|
267
315
|
styles.set(scopeId, style);
|
|
268
316
|
};
|
|
269
317
|
const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
|
|
318
|
+
var _a;
|
|
270
319
|
let scopeId = getScopeId(cmpMeta);
|
|
271
320
|
const style = styles.get(scopeId);
|
|
272
321
|
// if an element is NOT connected then getRootNode() will return the wrong root node
|
|
@@ -286,6 +335,11 @@ const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
|
|
|
286
335
|
styleElm = doc.createElement('style');
|
|
287
336
|
styleElm.innerHTML = style;
|
|
288
337
|
}
|
|
338
|
+
// Apply CSP nonce to the style tag if it exists
|
|
339
|
+
const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
|
|
340
|
+
if (nonce != null) {
|
|
341
|
+
styleElm.setAttribute('nonce', nonce);
|
|
342
|
+
}
|
|
289
343
|
styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector('link'));
|
|
290
344
|
}
|
|
291
345
|
if (appliedStyles) {
|
|
@@ -605,6 +659,21 @@ const putBackInOriginalLocation = (parentElm, recursive) => {
|
|
|
605
659
|
}
|
|
606
660
|
plt.$flags$ &= ~1 /* PLATFORM_FLAGS.isTmpDisconnected */;
|
|
607
661
|
};
|
|
662
|
+
/**
|
|
663
|
+
* Create DOM nodes corresponding to a list of {@link d.Vnode} objects and
|
|
664
|
+
* add them to the DOM in the appropriate place.
|
|
665
|
+
*
|
|
666
|
+
* @param parentElm the DOM node which should be used as a parent for the new
|
|
667
|
+
* DOM nodes
|
|
668
|
+
* @param before a child of the `parentElm` which the new children should be
|
|
669
|
+
* inserted before (optional)
|
|
670
|
+
* @param parentVNode the parent virtual DOM node
|
|
671
|
+
* @param vnodes the new child virtual DOM nodes to produce DOM nodes for
|
|
672
|
+
* @param startIdx the index in the child virtual DOM nodes at which to start
|
|
673
|
+
* creating DOM nodes (inclusive)
|
|
674
|
+
* @param endIdx the index in the child virtual DOM nodes at which to stop
|
|
675
|
+
* creating DOM nodes (inclusive)
|
|
676
|
+
*/
|
|
608
677
|
const addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
|
|
609
678
|
let containerElm = ((parentElm['s-cr'] && parentElm['s-cr'].parentNode) || parentElm);
|
|
610
679
|
let childNode;
|
|
@@ -621,6 +690,19 @@ const addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) =>
|
|
|
621
690
|
}
|
|
622
691
|
}
|
|
623
692
|
};
|
|
693
|
+
/**
|
|
694
|
+
* Remove the DOM elements corresponding to a list of {@link d.VNode} objects.
|
|
695
|
+
* This can be used to, for instance, clean up after a list of children which
|
|
696
|
+
* should no longer be shown.
|
|
697
|
+
*
|
|
698
|
+
* This function also handles some of Stencil's slot relocation logic.
|
|
699
|
+
*
|
|
700
|
+
* @param vnodes a list of virtual DOM nodes to remove
|
|
701
|
+
* @param startIdx the index at which to start removing nodes (inclusive)
|
|
702
|
+
* @param endIdx the index at which to stop removing nodes (inclusive)
|
|
703
|
+
* @param vnode a VNode
|
|
704
|
+
* @param elm an element
|
|
705
|
+
*/
|
|
624
706
|
const removeVnodes = (vnodes, startIdx, endIdx, vnode, elm) => {
|
|
625
707
|
for (; startIdx <= endIdx; ++startIdx) {
|
|
626
708
|
if ((vnode = vnodes[startIdx])) {
|
|
@@ -899,7 +981,8 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
|
|
|
899
981
|
*
|
|
900
982
|
* So, in other words, if `key` attrs are not set on VNodes which may be
|
|
901
983
|
* changing order within a `children` array or something along those lines then
|
|
902
|
-
* we could obtain a false
|
|
984
|
+
* we could obtain a false negative and then have to do needless re-rendering
|
|
985
|
+
* (i.e. we'd say two VNodes aren't equal when in fact they should be).
|
|
903
986
|
*
|
|
904
987
|
* @param leftVNode the first VNode to check
|
|
905
988
|
* @param rightVNode the second VNode to check
|
|
@@ -1119,6 +1202,18 @@ const callNodeRefs = (vNode) => {
|
|
|
1119
1202
|
vNode.$children$ && vNode.$children$.map(callNodeRefs);
|
|
1120
1203
|
}
|
|
1121
1204
|
};
|
|
1205
|
+
/**
|
|
1206
|
+
* The main entry point for Stencil's virtual DOM-based rendering engine
|
|
1207
|
+
*
|
|
1208
|
+
* Given a {@link d.HostRef} container and some virtual DOM nodes, this
|
|
1209
|
+
* function will handle creating a virtual DOM tree with a single root, patching
|
|
1210
|
+
* the current virtual DOM tree onto an old one (if any), dealing with slot
|
|
1211
|
+
* relocation, and reflecting attributes.
|
|
1212
|
+
*
|
|
1213
|
+
* @param hostRef data needed to root and render the virtual DOM tree, such as
|
|
1214
|
+
* the DOM node into which it should be rendered.
|
|
1215
|
+
* @param renderFnResults the virtual DOM nodes to be rendered
|
|
1216
|
+
*/
|
|
1122
1217
|
const renderVdom = (hostRef, renderFnResults) => {
|
|
1123
1218
|
const hostElm = hostRef.$hostElement$;
|
|
1124
1219
|
const cmpMeta = hostRef.$cmpMeta$;
|
|
@@ -1745,6 +1840,7 @@ const disconnectedCallback = (elm) => {
|
|
|
1745
1840
|
}
|
|
1746
1841
|
};
|
|
1747
1842
|
const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
1843
|
+
var _a;
|
|
1748
1844
|
const endBootstrap = createTime();
|
|
1749
1845
|
const cmpTags = [];
|
|
1750
1846
|
const exclude = options.exclude || [];
|
|
@@ -1827,6 +1923,11 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1827
1923
|
{
|
|
1828
1924
|
visibilityStyle.innerHTML = cmpTags + HYDRATED_CSS;
|
|
1829
1925
|
visibilityStyle.setAttribute('data-styles', '');
|
|
1926
|
+
// Apply CSP nonce to the style tag if it exists
|
|
1927
|
+
const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
|
|
1928
|
+
if (nonce != null) {
|
|
1929
|
+
visibilityStyle.setAttribute('nonce', nonce);
|
|
1930
|
+
}
|
|
1830
1931
|
head.insertBefore(visibilityStyle, metaCharset ? metaCharset.nextSibling : head.firstChild);
|
|
1831
1932
|
}
|
|
1832
1933
|
// Process deferred connectedCallbacks now all components have been registered
|
|
@@ -1872,6 +1973,13 @@ const hostListenerProxy = (hostRef, methodName) => (ev) => {
|
|
|
1872
1973
|
};
|
|
1873
1974
|
// prettier-ignore
|
|
1874
1975
|
const hostListenerOpts = (flags) => (flags & 2 /* LISTENER_FLAGS.Capture */) !== 0;
|
|
1976
|
+
/**
|
|
1977
|
+
* Assigns the given value to the nonce property on the runtime platform object.
|
|
1978
|
+
* During runtime, this value is used to set the nonce attribute on all dynamically created script and style tags.
|
|
1979
|
+
* @param nonce The value to be assigned to the platform nonce property.
|
|
1980
|
+
* @returns void
|
|
1981
|
+
*/
|
|
1982
|
+
const setNonce = (nonce) => (plt.$nonce$ = nonce);
|
|
1875
1983
|
const hostRefs = /*@__PURE__*/ new WeakMap();
|
|
1876
1984
|
const getHostRef = (ref) => hostRefs.get(ref);
|
|
1877
1985
|
const registerInstance = (lazyInstance, hostRef) => hostRefs.set((hostRef.$lazyInstance$ = lazyInstance), hostRef);
|
|
@@ -1982,4 +2090,4 @@ const flush = () => {
|
|
|
1982
2090
|
const nextTick = /*@__PURE__*/ (cb) => promiseResolve().then(cb);
|
|
1983
2091
|
const writeTask = /*@__PURE__*/ queueTask(queueDomWrites, true);
|
|
1984
2092
|
|
|
1985
|
-
export { Fragment as F, Host as H, getRenderingRef as a, bootstrapLazy as b, createEvent as c, forceUpdate as f, getElement as g, h, promiseResolve as p, registerInstance as r };
|
|
2093
|
+
export { Fragment as F, Host as H, getRenderingRef as a, bootstrapLazy as b, createEvent as c, forceUpdate as f, getElement as g, h, promiseResolve as p, registerInstance as r, setNonce as s };
|
package/dist/esm/loader.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { p as promiseResolve, b as bootstrapLazy } from './index-
|
|
1
|
+
import { p as promiseResolve, b as bootstrapLazy } from './index-cfd4bb13.js';
|
|
2
|
+
export { s as setNonce } from './index-cfd4bb13.js';
|
|
2
3
|
|
|
3
4
|
/*
|
|
4
|
-
Stencil Client Patch Esm v2.
|
|
5
|
+
Stencil Client Patch Esm v2.22.3 | MIT Licensed | https://stenciljs.com
|
|
5
6
|
*/
|
|
6
7
|
const patchEsm = () => {
|
|
7
8
|
return promiseResolve();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var __assign=this&&this.__assign||function(){return(__assign=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var s in t=arguments[r])Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e}).apply(this,arguments)},StyleNode=function(){this.start=0,this.end=0,this.previous=null,this.parent=null,this.rules=null,this.parsedCssText="",this.cssText="",this.atRule=!1,this.type=0,this.keyframesName="",this.selector="",this.parsedSelector=""};function parse(e){return parseCss(lex(e=clean(e)),e)}function clean(e){return e.replace(RX.comments,"").replace(RX.port,"")}function lex(e){var t=new StyleNode;t.start=0,t.end=e.length;for(var r=t,n=0,s=e.length;n<s;n++)if(e[n]===OPEN_BRACE){r.rules||(r.rules=[]);var o=r,a=o.rules[o.rules.length-1]||null;(r=new StyleNode).start=n+1,r.parent=o,r.previous=a,o.rules.push(r)}else e[n]===CLOSE_BRACE&&(r.end=n+1,r=r.parent||t);return t}function parseCss(e,t){var r=t.substring(e.start,e.end-1);if(e.parsedCssText=e.cssText=r.trim(),e.parent){var n=e.previous?e.previous.end:e.parent.start;r=(r=(r=_expandUnicodeEscapes(r=t.substring(n,e.start-1))).replace(RX.multipleSpaces," ")).substring(r.lastIndexOf(";")+1);var s=e.parsedSelector=e.selector=r.trim();e.atRule=0===s.indexOf(AT_START),e.atRule?0===s.indexOf(MEDIA_START)?e.type=types.MEDIA_RULE:s.match(RX.keyframesRule)&&(e.type=types.KEYFRAMES_RULE,e.keyframesName=e.selector.split(RX.multipleSpaces).pop()):0===s.indexOf(VAR_START)?e.type=types.MIXIN_RULE:e.type=types.STYLE_RULE}var o=e.rules;if(o)for(var a=0,i=o.length,l=void 0;a<i&&(l=o[a]);a++)parseCss(l,t);return e}function _expandUnicodeEscapes(e){return e.replace(/\\([0-9a-f]{1,6})\s/gi,(function(){for(var e=arguments[1],t=6-e.length;t--;)e="0"+e;return"\\"+e}))}var types={STYLE_RULE:1,KEYFRAMES_RULE:7,MEDIA_RULE:4,MIXIN_RULE:1e3},OPEN_BRACE="{",CLOSE_BRACE="}",RX={comments:/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,port:/@import[^;]*;/gim,customProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,mixinProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,mixinApply:/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,varApply:/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,keyframesRule:/^@[^\s]*keyframes/,multipleSpaces:/\s+/g},VAR_START="--",MEDIA_START="@media",AT_START="@",VAR_USAGE_START=/\bvar\(/,VAR_ASSIGN_START=/\B--[\w-]+\s*:/,COMMENTS=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,TRAILING_LINES=/^[\t ]+\n/gm;function findRegex(e,t,r){e.lastIndex=0;var n=t.substring(r).match(e);if(n){var s=r+n.index;return{start:s,end:s+n[0].length}}return null}function resolveVar(e,t,r){return e[t]?e[t]:r?executeTemplate(r,e):""}function findVarEndIndex(e,t){for(var r=0,n=t;n<e.length;n++){var s=e[n];if("("===s)r++;else if(")"===s&&--r<=0)return n+1}return n}function parseVar(e,t){var r=findRegex(VAR_USAGE_START,e,t);if(!r)return null;var n=findVarEndIndex(e,r.start),s=e.substring(r.end,n-1).split(","),o=s[0],a=s.slice(1);return{start:r.start,end:n,propName:o.trim(),fallback:a.length>0?a.join(",").trim():void 0}}function compileVar(e,t,r){var n=parseVar(e,r);if(!n)return t.push(e.substring(r,e.length)),e.length;var s=n.propName,o=null!=n.fallback?compileTemplate(n.fallback):void 0;return t.push(e.substring(r,n.start),(function(e){return resolveVar(e,s,o)})),n.end}function executeTemplate(e,t){for(var r="",n=0;n<e.length;n++){var s=e[n];r+="string"==typeof s?s:s(t)}return r}function findEndValue(e,t){for(var r=!1,n=!1,s=t;s<e.length;s++){var o=e[s];if(r)n&&'"'===o&&(r=!1),n||"'"!==o||(r=!1);else if('"'===o)r=!0,n=!0;else if("'"===o)r=!0,n=!1;else{if(";"===o)return s+1;if("}"===o)return s}}return s}function removeCustomAssigns(e){for(var t="",r=0;;){var n=findRegex(VAR_ASSIGN_START,e,r),s=n?n.start:e.length;if(t+=e.substring(r,s),!n)break;r=findEndValue(e,s)}return t}function compileTemplate(e){var t=0;e=removeCustomAssigns(e=e.replace(COMMENTS,"")).replace(TRAILING_LINES,"");for(var r=[];t<e.length;)t=compileVar(e,r,t);return r}function resolveValues(e){var t={};e.forEach((function(e){e.declarations.forEach((function(e){t[e.prop]=e.value}))}));for(var r={},n=Object.entries(t),s=function(e){var t=!1;if(n.forEach((function(e){var n=e[0],s=executeTemplate(e[1],r);s!==r[n]&&(r[n]=s,t=!0)})),!t)return"break"},o=0;o<10;o++){if("break"===s())break}return r}function getSelectors(e,t){if(void 0===t&&(t=0),!e.rules)return[];var r=[];return e.rules.filter((function(e){return e.type===types.STYLE_RULE})).forEach((function(e){var n=getDeclarations(e.cssText);n.length>0&&e.parsedSelector.split(",").forEach((function(e){e=e.trim(),r.push({selector:e,declarations:n,specificity:computeSpecificity(),nu:t})})),t++})),r}function computeSpecificity(e){return 1}var IMPORTANT="!important",FIND_DECLARATIONS=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gm;function getDeclarations(e){for(var t,r=[];t=FIND_DECLARATIONS.exec(e.trim());){var n=normalizeValue(t[2]),s=n.value,o=n.important;r.push({prop:t[1].trim(),value:compileTemplate(s),important:o})}return r}function normalizeValue(e){var t=(e=e.replace(/\s+/gim," ").trim()).endsWith(IMPORTANT);return t&&(e=e.slice(0,e.length-IMPORTANT.length).trim()),{value:e,important:t}}function getActiveSelectors(e,t,r){var n=[],s=getScopesForElement(t,e);return r.forEach((function(e){return n.push(e)})),s.forEach((function(e){return n.push(e)})),sortSelectors(getSelectorsForScopes(n).filter((function(t){return matches(e,t.selector)})))}function getScopesForElement(e,t){for(var r=[];t;){var n=e.get(t);n&&r.push(n),t=t.parentElement}return r}function getSelectorsForScopes(e){var t=[];return e.forEach((function(e){t.push.apply(t,e.selectors)})),t}function sortSelectors(e){return e.sort((function(e,t){return e.specificity===t.specificity?e.nu-t.nu:e.specificity-t.specificity})),e}function matches(e,t){return":root"===t||"html"===t||e.matches(t)}function parseCSS(e){var t=parse(e),r=compileTemplate(e);return{original:e,template:r,selectors:getSelectors(t),usesCssVars:r.length>1}}function addGlobalStyle(e,t){if(e.some((function(e){return e.styleEl===t})))return!1;var r=parseCSS(t.textContent);return r.styleEl=t,e.push(r),!0}function updateGlobalScopes(e){var t=resolveValues(getSelectorsForScopes(e));e.forEach((function(e){e.usesCssVars&&(e.styleEl.textContent=executeTemplate(e.template,t))}))}function reScope(e,t){var r=e.template.map((function(r){return"string"==typeof r?replaceScope(r,e.scopeId,t):r})),n=e.selectors.map((function(r){return __assign(__assign({},r),{selector:replaceScope(r.selector,e.scopeId,t)})}));return __assign(__assign({},e),{template:r,selectors:n,scopeId:t})}function replaceScope(e,t,r){return e=replaceAll(e,"\\.".concat(t),".".concat(r))}function replaceAll(e,t,r){return e.replace(new RegExp(t,"g"),r)}function loadDocument(e,t){return loadDocumentStyles(e,t),loadDocumentLinks(e,t).then((function(){updateGlobalScopes(t)}))}function startWatcher(e,t){"undefined"!=typeof MutationObserver&&new MutationObserver((function(){loadDocumentStyles(e,t)&&updateGlobalScopes(t)})).observe(document.head,{childList:!0})}function loadDocumentLinks(e,t){for(var r=[],n=e.querySelectorAll('link[rel="stylesheet"][href]:not([data-no-shim])'),s=0;s<n.length;s++)r.push(addGlobalLink(e,t,n[s]));return Promise.all(r)}function loadDocumentStyles(e,t){return Array.from(e.querySelectorAll("style:not([data-styles]):not([data-no-shim])")).map((function(e){return addGlobalStyle(t,e)})).some(Boolean)}function addGlobalLink(e,t,r){var n=r.href;return fetch(n).then((function(e){return e.text()})).then((function(s){if(hasCssVariables(s)&&r.parentNode){hasRelativeUrls(s)&&(s=fixRelativeUrls(s,n));var o=e.createElement("style");o.setAttribute("data-styles",""),o.textContent=s,addGlobalStyle(t,o),r.parentNode.insertBefore(o,r),r.remove()}})).catch((function(e){console.error(e)}))}var CSS_VARIABLE_REGEXP=/[\s;{]--[-a-zA-Z0-9]+\s*:/m;function hasCssVariables(e){return e.indexOf("var(")>-1||CSS_VARIABLE_REGEXP.test(e)}var CSS_URL_REGEXP=/url[\s]*\([\s]*['"]?(?!(?:https?|data)\:|\/)([^\'\"\)]*)[\s]*['"]?\)[\s]*/gim;function hasRelativeUrls(e){return CSS_URL_REGEXP.lastIndex=0,CSS_URL_REGEXP.test(e)}function fixRelativeUrls(e,t){var r=t.replace(/[^/]*$/,"");return e.replace(CSS_URL_REGEXP,(function(e,t){var n=r+t;return e.replace(t,n)}))}var CustomStyle=function(){function e(e,t){this.win=e,this.doc=t,this.count=0,this.hostStyleMap=new WeakMap,this.hostScopeMap=new WeakMap,this.globalScopes=[],this.scopesMap=new Map,this.didInit=!1}return e.prototype.i=function(){var e=this;return this.didInit||!this.win.requestAnimationFrame?Promise.resolve():(this.didInit=!0,new Promise((function(t){e.win.requestAnimationFrame((function(){startWatcher(e.doc,e.globalScopes),loadDocument(e.doc,e.globalScopes).then((function(){return t()}))}))})))},e.prototype.addLink=function(e){var t=this;return addGlobalLink(this.doc,this.globalScopes,e).then((function(){t.updateGlobal()}))},e.prototype.addGlobalStyle=function(e){addGlobalStyle(this.globalScopes,e)&&this.updateGlobal()},e.prototype.createHostStyle=function(e,t,r,n){if(this.hostScopeMap.has(e))throw new Error("host style already created");var s=this.registerHostTemplate(r,t,n),o=this.doc.createElement("style");return o.setAttribute("data-no-shim",""),s.usesCssVars?n?(o["s-sc"]=t="".concat(s.scopeId,"-").concat(this.count),o.textContent="/*needs update*/",this.hostStyleMap.set(e,o),this.hostScopeMap.set(e,reScope(s,t)),this.count++):(s.styleEl=o,s.usesCssVars||(o.textContent=executeTemplate(s.template,{})),this.globalScopes.push(s),this.updateGlobal(),this.hostScopeMap.set(e,s)):o.textContent=r,o},e.prototype.removeHost=function(e){var t=this.hostStyleMap.get(e);t&&t.remove(),this.hostStyleMap.delete(e),this.hostScopeMap.delete(e)},e.prototype.updateHost=function(e){var t=this.hostScopeMap.get(e);if(t&&t.usesCssVars&&t.isScoped){var r=this.hostStyleMap.get(e);if(r){var n=resolveValues(getActiveSelectors(e,this.hostScopeMap,this.globalScopes));r.textContent=executeTemplate(t.template,n)}}},e.prototype.updateGlobal=function(){updateGlobalScopes(this.globalScopes)},e.prototype.registerHostTemplate=function(e,t,r){var n=this.scopesMap.get(t);return n||((n=parseCSS(e)).scopeId=t,n.isScoped=r,this.scopesMap.set(t,n)),n},e}();!function(e){!e||e.__cssshim||e.CSS&&e.CSS.supports&&e.CSS.supports("color","var(--c)")||(e.__cssshim=new CustomStyle(e,e.document))}("undefined"!=typeof window&&window);
|
|
1
|
+
var __assign=this&&this.__assign||function(){return __assign=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var s in t=arguments[r])Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e},__assign.apply(this,arguments)},StyleNode=function(){this.start=0,this.end=0,this.previous=null,this.parent=null,this.rules=null,this.parsedCssText="",this.cssText="",this.atRule=!1,this.type=0,this.keyframesName="",this.selector="",this.parsedSelector=""};function parse(e){return parseCss(lex(e=clean(e)),e)}function clean(e){return e.replace(RX.comments,"").replace(RX.port,"")}function lex(e){var t=new StyleNode;t.start=0,t.end=e.length;for(var r=t,n=0,s=e.length;n<s;n++)if(e[n]===OPEN_BRACE){r.rules||(r.rules=[]);var o=r,a=o.rules[o.rules.length-1]||null;(r=new StyleNode).start=n+1,r.parent=o,r.previous=a,o.rules.push(r)}else e[n]===CLOSE_BRACE&&(r.end=n+1,r=r.parent||t);return t}function parseCss(e,t){var r=t.substring(e.start,e.end-1);if(e.parsedCssText=e.cssText=r.trim(),e.parent){var n=e.previous?e.previous.end:e.parent.start;r=(r=(r=_expandUnicodeEscapes(r=t.substring(n,e.start-1))).replace(RX.multipleSpaces," ")).substring(r.lastIndexOf(";")+1);var s=e.parsedSelector=e.selector=r.trim();e.atRule=0===s.indexOf(AT_START),e.atRule?0===s.indexOf(MEDIA_START)?e.type=types.MEDIA_RULE:s.match(RX.keyframesRule)&&(e.type=types.KEYFRAMES_RULE,e.keyframesName=e.selector.split(RX.multipleSpaces).pop()):0===s.indexOf(VAR_START)?e.type=types.MIXIN_RULE:e.type=types.STYLE_RULE}var o=e.rules;if(o)for(var a=0,i=o.length,l=void 0;a<i&&(l=o[a]);a++)parseCss(l,t);return e}function _expandUnicodeEscapes(e){return e.replace(/\\([0-9a-f]{1,6})\s/gi,(function(){for(var e=arguments[1],t=6-e.length;t--;)e="0"+e;return"\\"+e}))}var types={STYLE_RULE:1,KEYFRAMES_RULE:7,MEDIA_RULE:4,MIXIN_RULE:1e3},OPEN_BRACE="{",CLOSE_BRACE="}",RX={comments:/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,port:/@import[^;]*;/gim,customProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,mixinProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,mixinApply:/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,varApply:/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,keyframesRule:/^@[^\s]*keyframes/,multipleSpaces:/\s+/g},VAR_START="--",MEDIA_START="@media",AT_START="@",VAR_USAGE_START=/\bvar\(/,VAR_ASSIGN_START=/\B--[\w-]+\s*:/,COMMENTS=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,TRAILING_LINES=/^[\t ]+\n/gm;function findRegex(e,t,r){e.lastIndex=0;var n=t.substring(r).match(e);if(n){var s=r+n.index;return{start:s,end:s+n[0].length}}return null}function resolveVar(e,t,r){return e[t]?e[t]:r?executeTemplate(r,e):""}function findVarEndIndex(e,t){for(var r=0,n=t;n<e.length;n++){var s=e[n];if("("===s)r++;else if(")"===s&&--r<=0)return n+1}return n}function parseVar(e,t){var r=findRegex(VAR_USAGE_START,e,t);if(!r)return null;var n=findVarEndIndex(e,r.start),s=e.substring(r.end,n-1).split(","),o=s[0],a=s.slice(1);return{start:r.start,end:n,propName:o.trim(),fallback:a.length>0?a.join(",").trim():void 0}}function compileVar(e,t,r){var n=parseVar(e,r);if(!n)return t.push(e.substring(r,e.length)),e.length;var s=n.propName,o=null!=n.fallback?compileTemplate(n.fallback):void 0;return t.push(e.substring(r,n.start),(function(e){return resolveVar(e,s,o)})),n.end}function executeTemplate(e,t){for(var r="",n=0;n<e.length;n++){var s=e[n];r+="string"==typeof s?s:s(t)}return r}function findEndValue(e,t){for(var r=!1,n=!1,s=t;s<e.length;s++){var o=e[s];if(r)n&&'"'===o&&(r=!1),n||"'"!==o||(r=!1);else if('"'===o)r=!0,n=!0;else if("'"===o)r=!0,n=!1;else{if(";"===o)return s+1;if("}"===o)return s}}return s}function removeCustomAssigns(e){for(var t="",r=0;;){var n=findRegex(VAR_ASSIGN_START,e,r),s=n?n.start:e.length;if(t+=e.substring(r,s),!n)break;r=findEndValue(e,s)}return t}function compileTemplate(e){var t=0;e=removeCustomAssigns(e=e.replace(COMMENTS,"")).replace(TRAILING_LINES,"");for(var r=[];t<e.length;)t=compileVar(e,r,t);return r}function resolveValues(e){var t={};e.forEach((function(e){e.declarations.forEach((function(e){t[e.prop]=e.value}))}));for(var r={},n=Object.entries(t),s=function(e){var t=!1;if(n.forEach((function(e){var n=e[0],s=executeTemplate(e[1],r);s!==r[n]&&(r[n]=s,t=!0)})),!t)return"break"},o=0;o<10;o++){if("break"===s())break}return r}function getSelectors(e,t){if(void 0===t&&(t=0),!e.rules)return[];var r=[];return e.rules.filter((function(e){return e.type===types.STYLE_RULE})).forEach((function(e){var n=getDeclarations(e.cssText);n.length>0&&e.parsedSelector.split(",").forEach((function(e){e=e.trim(),r.push({selector:e,declarations:n,specificity:computeSpecificity(),nu:t})})),t++})),r}function computeSpecificity(e){return 1}var IMPORTANT="!important",FIND_DECLARATIONS=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gm;function getDeclarations(e){for(var t,r=[];t=FIND_DECLARATIONS.exec(e.trim());){var n=normalizeValue(t[2]),s=n.value,o=n.important;r.push({prop:t[1].trim(),value:compileTemplate(s),important:o})}return r}function normalizeValue(e){var t=(e=e.replace(/\s+/gim," ").trim()).endsWith(IMPORTANT);return t&&(e=e.slice(0,e.length-IMPORTANT.length).trim()),{value:e,important:t}}function getActiveSelectors(e,t,r){var n=[],s=getScopesForElement(t,e);return r.forEach((function(e){return n.push(e)})),s.forEach((function(e){return n.push(e)})),sortSelectors(getSelectorsForScopes(n).filter((function(t){return matches(e,t.selector)})))}function getScopesForElement(e,t){for(var r=[];t;){var n=e.get(t);n&&r.push(n),t=t.parentElement}return r}function getSelectorsForScopes(e){var t=[];return e.forEach((function(e){t.push.apply(t,e.selectors)})),t}function sortSelectors(e){return e.sort((function(e,t){return e.specificity===t.specificity?e.nu-t.nu:e.specificity-t.specificity})),e}function matches(e,t){return":root"===t||"html"===t||e.matches(t)}function parseCSS(e){var t=parse(e),r=compileTemplate(e);return{original:e,template:r,selectors:getSelectors(t),usesCssVars:r.length>1}}function addGlobalStyle(e,t){if(e.some((function(e){return e.styleEl===t})))return!1;var r=parseCSS(t.textContent);return r.styleEl=t,e.push(r),!0}function updateGlobalScopes(e){var t=resolveValues(getSelectorsForScopes(e));e.forEach((function(e){e.usesCssVars&&(e.styleEl.textContent=executeTemplate(e.template,t))}))}function reScope(e,t){var r=e.template.map((function(r){return"string"==typeof r?replaceScope(r,e.scopeId,t):r})),n=e.selectors.map((function(r){return __assign(__assign({},r),{selector:replaceScope(r.selector,e.scopeId,t)})}));return __assign(__assign({},e),{template:r,selectors:n,scopeId:t})}function replaceScope(e,t,r){return e=replaceAll(e,"\\.".concat(t),".".concat(r))}function replaceAll(e,t,r){return e.replace(new RegExp(t,"g"),r)}function loadDocument(e,t){return loadDocumentStyles(e,t),loadDocumentLinks(e,t).then((function(){updateGlobalScopes(t)}))}function startWatcher(e,t){"undefined"!=typeof MutationObserver&&new MutationObserver((function(){loadDocumentStyles(e,t)&&updateGlobalScopes(t)})).observe(document.head,{childList:!0})}function loadDocumentLinks(e,t){for(var r=[],n=e.querySelectorAll('link[rel="stylesheet"][href]:not([data-no-shim])'),s=0;s<n.length;s++)r.push(addGlobalLink(e,t,n[s]));return Promise.all(r)}function loadDocumentStyles(e,t){return Array.from(e.querySelectorAll("style:not([data-styles]):not([data-no-shim])")).map((function(e){return addGlobalStyle(t,e)})).some(Boolean)}function addGlobalLink(e,t,r){var n=r.href;return fetch(n).then((function(e){return e.text()})).then((function(s){if(hasCssVariables(s)&&r.parentNode){hasRelativeUrls(s)&&(s=fixRelativeUrls(s,n));var o=e.createElement("style");o.setAttribute("data-styles",""),o.textContent=s,addGlobalStyle(t,o),r.parentNode.insertBefore(o,r),r.remove()}})).catch((function(e){console.error(e)}))}var CSS_VARIABLE_REGEXP=/[\s;{]--[-a-zA-Z0-9]+\s*:/m;function hasCssVariables(e){return e.indexOf("var(")>-1||CSS_VARIABLE_REGEXP.test(e)}var CSS_URL_REGEXP=/url[\s]*\([\s]*['"]?(?!(?:https?|data)\:|\/)([^\'\"\)]*)[\s]*['"]?\)[\s]*/gim;function hasRelativeUrls(e){return CSS_URL_REGEXP.lastIndex=0,CSS_URL_REGEXP.test(e)}function fixRelativeUrls(e,t){var r=t.replace(/[^/]*$/,"");return e.replace(CSS_URL_REGEXP,(function(e,t){var n=r+t;return e.replace(t,n)}))}var CustomStyle=function(){function e(e,t){this.win=e,this.doc=t,this.count=0,this.hostStyleMap=new WeakMap,this.hostScopeMap=new WeakMap,this.globalScopes=[],this.scopesMap=new Map,this.didInit=!1}return e.prototype.i=function(){var e=this;return this.didInit||!this.win.requestAnimationFrame?Promise.resolve():(this.didInit=!0,new Promise((function(t){e.win.requestAnimationFrame((function(){startWatcher(e.doc,e.globalScopes),loadDocument(e.doc,e.globalScopes).then((function(){return t()}))}))})))},e.prototype.addLink=function(e){var t=this;return addGlobalLink(this.doc,this.globalScopes,e).then((function(){t.updateGlobal()}))},e.prototype.addGlobalStyle=function(e){addGlobalStyle(this.globalScopes,e)&&this.updateGlobal()},e.prototype.createHostStyle=function(e,t,r,n){if(this.hostScopeMap.has(e))throw new Error("host style already created");var s=this.registerHostTemplate(r,t,n),o=this.doc.createElement("style");return o.setAttribute("data-no-shim",""),s.usesCssVars?n?(o["s-sc"]=t="".concat(s.scopeId,"-").concat(this.count),o.textContent="/*needs update*/",this.hostStyleMap.set(e,o),this.hostScopeMap.set(e,reScope(s,t)),this.count++):(s.styleEl=o,s.usesCssVars||(o.textContent=executeTemplate(s.template,{})),this.globalScopes.push(s),this.updateGlobal(),this.hostScopeMap.set(e,s)):o.textContent=r,o},e.prototype.removeHost=function(e){var t=this.hostStyleMap.get(e);t&&t.remove(),this.hostStyleMap.delete(e),this.hostScopeMap.delete(e)},e.prototype.updateHost=function(e){var t=this.hostScopeMap.get(e);if(t&&t.usesCssVars&&t.isScoped){var r=this.hostStyleMap.get(e);if(r){var n=resolveValues(getActiveSelectors(e,this.hostScopeMap,this.globalScopes));r.textContent=executeTemplate(t.template,n)}}},e.prototype.updateGlobal=function(){updateGlobalScopes(this.globalScopes)},e.prototype.registerHostTemplate=function(e,t,r){var n=this.scopesMap.get(t);return n||((n=parseCSS(e)).scopeId=t,n.isScoped=r,this.scopesMap.set(t,n)),n},e}();!function(e){!e||e.__cssshim||e.CSS&&e.CSS.supports&&e.CSS.supports("color","var(--c)")||(e.__cssshim=new CustomStyle(e,e.document))}("undefined"!=typeof window&&window);
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { p as promiseResolve, b as bootstrapLazy } from './index-
|
|
1
|
+
import { p as promiseResolve, b as bootstrapLazy } from './index-cfd4bb13.js';
|
|
2
|
+
export { s as setNonce } from './index-cfd4bb13.js';
|
|
2
3
|
|
|
3
4
|
/*
|
|
4
|
-
Stencil Client Patch Browser v2.
|
|
5
|
+
Stencil Client Patch Browser v2.22.3 | MIT Licensed | https://stenciljs.com
|
|
5
6
|
*/
|
|
6
7
|
const patchBrowser = () => {
|
|
7
8
|
const importMeta = import.meta.url;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, g as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, g as getElement } from './index-cfd4bb13.js';
|
|
2
2
|
import { WaitingChangeException, WarningException, ErrorException, ObjectUtils, DataType, DataUnit, StringUtils, ChangeOperation, DateUtils, DependencyType, ElementIDUtils, ApplicationContext, ErrorTracking } from '@sankhyalabs/core';
|
|
3
3
|
import { d as dist, D as DataFetcher, R as ResourceFetcher, U as UrlUtils, F as FormConfigFetcher, G as GridConfigFetcher, C as ConfigStorage } from './ConfigStorage-4654f57b.js';
|
|
4
4
|
import { ApplicationUtils } from '@sankhyalabs/ezui/dist/collection/utils';
|
|
@@ -695,6 +695,8 @@ const SnkApplication = class {
|
|
|
695
695
|
this._duCache = new Map();
|
|
696
696
|
this._duPromises = new Map();
|
|
697
697
|
this._requestListener = new RequestListenerLoadingBar();
|
|
698
|
+
this.messagesBuilder = undefined;
|
|
699
|
+
this.configName = undefined;
|
|
698
700
|
}
|
|
699
701
|
get parameters() {
|
|
700
702
|
if (!this._parameters) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-cfd4bb13.js';
|
|
2
2
|
import { UserInterface, ObjectUtils, StringUtils, ApplicationContext, ElementIDUtils } from '@sankhyalabs/core';
|
|
3
3
|
import { DataType, getConvertedValue } from '@sankhyalabs/core/dist/dataunit/metadata/DataType';
|
|
4
4
|
import { CheckMode } from '@sankhyalabs/ezui/dist/collection/utils';
|
|
@@ -10,10 +10,10 @@ const SnkConfigOptions = class {
|
|
|
10
10
|
constructor(hostRef) {
|
|
11
11
|
registerInstance(this, hostRef);
|
|
12
12
|
this.configOptionsChanged = createEvent(this, "configOptionsChanged", 7);
|
|
13
|
-
|
|
14
|
-
* Armazena as propriedades do campo.
|
|
15
|
-
*/
|
|
13
|
+
this._defaultType = undefined;
|
|
16
14
|
this.fieldConfig = {};
|
|
15
|
+
this.idConfig = undefined;
|
|
16
|
+
this.dataUnit = undefined;
|
|
17
17
|
}
|
|
18
18
|
onConfigDefault(optionSelected) {
|
|
19
19
|
if (optionSelected != undefined) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-cfd4bb13.js';
|
|
2
2
|
import { ApplicationContext, ElementIDUtils, DataType } from '@sankhyalabs/core';
|
|
3
3
|
import { c as VIEW_MODE, A as ACTION_CONFIG } from './constants-965d7a7f.js';
|
|
4
4
|
import { A as AuthorizationConfig } from './AuthorizationConfig-dcbd207a.js';
|
|
@@ -6,7 +6,7 @@ import { UserInterface } from '@sankhyalabs/core/dist/dataunit/metadata/UnitMeta
|
|
|
6
6
|
import { C as ConfigStorage } from './ConfigStorage-4654f57b.js';
|
|
7
7
|
import { P as PresentationMode } from './index-1564817d.js';
|
|
8
8
|
import { T as TaskbarProcessor } from './taskbar-processor-c2a99aba.js';
|
|
9
|
-
import { s as store } from './index-
|
|
9
|
+
import { s as store } from './index-e467ade5.js';
|
|
10
10
|
import './_commonjsHelpers-9943807e.js';
|
|
11
11
|
|
|
12
12
|
const snkConfiguratorCss = ".sc-snk-configurator-h{--snk-configurator__button-close--padding-left:var(--space--medium, 12px);--snk-configurator__title--color:var(--title--primary, #2B3A54);--snk-configurator__title--font-family:var(--font-pattern, \"Roboto\");--snk-configurator__title--font-size:var(--title--large, 20px);--snk-configurator__title--font-weight:var(--text-weight--extra-large, 700);--snk-configurator__subtitle--color:var(--title--primary, #2B3A54);--snk-configurator__subtitle--font-family:var(--font-pattern, \"Roboto\");--snk-configurator__subtitle--font-size:var(--text--medium, 14px);--snk-configurator__subtitle--font-weight:var(--text-weight--large, 600);--snk-configurator__scrollbar--color-default:var(--scrollbar--default, #626e82);--snk-configurator__scrollbar--color-background:var(--scrollbar--background, #E5EAF0);--snk-configurator__scrollbar--color-hover:var(--scrollbar--hover, #2B3A54);--snk-configurator__scrollbar--color-clicked:var(--scrollbar--clicked, #a2abb9);--snk-configurator__scrollbar--border-radius:var(--border--radius-small, 6px);--snk-configurator__scrollbar--width:var(--space--medium, 12px)}.snk-configurator.sc-snk-configurator{display:grid;grid-template-rows:auto 1fr auto;max-height:100%;width:100%}@media screen and (min-width: 480px){.snk-configurator.sc-snk-configurator{width:359px;max-width:359px}}.snk-configurator__button-config.sc-snk-configurator{--ez-button--min-width:100%}.snk-configurator__header.sc-snk-configurator{display:flex;justify-content:space-between;align-items:center;width:100%}.snk-configurator__title.sc-snk-configurator{display:flex;margin:0;line-height:normal;letter-spacing:0em;text-align:left;color:var(--snk-configurator__title--color);font-size:var(--snk-configurator__title--font-size);font-family:var(--snk-configurator__title--font-family);font-weight:var(--snk-configurator__title--font-weight)}.snk-configurator__subtitle.sc-snk-configurator{display:flex;margin:0;padding-top:var(--space--medium);padding-bottom:var(--space--small);color:var(--snk-configurator__subtitle--color);font-size:var(--snk-configurator__subtitle--font-size);font-family:var(--snk-configurator__subtitle--font-family);font-weight:var(--snk-configurator__subtitle--font-weight)}.snk-configurator__button-close.sc-snk-configurator{padding-left:var(--snk-configurator__button-close--padding-left)}.snk-configurator__main.sc-snk-configurator{overflow-y:auto;scrollbar-width:thin;scrollbar-color:var(--snk-configurator__scrollbar--color-clicked) var(--snk-configurator__scrollbar--color-background)}.snk-configurator__main.sc-snk-configurator::-webkit-scrollbar{background-color:var(--snk-configurator__scrollbar--color-background);width:var(--snk-configurator__scrollbar--width);max-width:var(--snk-configurator__scrollbar--width);min-width:var(--snk-configurator__scrollbar--width)}.snk-configurator__main.sc-snk-configurator::-webkit-scrollbar-track{background-color:var(--snk-configurator__scrollbar--color-background);border-radius:var(--snk-configurator__scrollbar--border-radius)}.snk-configurator__main.sc-snk-configurator::-webkit-scrollbar-thumb{background-color:var(--snk-configurator__scrollbar--color-default);border-radius:var(--snk-configurator__scrollbar--border-radius)}.snk-configurator__main.sc-snk-configurator::-webkit-scrollbar-thumb:vertical:hover,.snk-configurator__main.sc-snk-configurator::-webkit-scrollbar-thumb:horizontal:hover{background-color:var(--snk-configurator__scrollbar--color-hover)}.snk-configurator__main.sc-snk-configurator::-webkit-scrollbar-thumb:vertical:active,.snk-configurator__main.sc-snk-configurator::-webkit-scrollbar-thumb:horizontal:active{background-color:var(--snk-configurator__scrollbar--color-clicked)}";
|
|
@@ -19,9 +19,8 @@ const SnkConfigurator = class {
|
|
|
19
19
|
this.configSelected = createEvent(this, "configSelected", 7);
|
|
20
20
|
this.openConfig = createEvent(this, "openConfig", 7);
|
|
21
21
|
this._opened = false;
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
*/
|
|
22
|
+
this._permissions = undefined;
|
|
23
|
+
this.configName = undefined;
|
|
25
24
|
this.viewMode = GRID_MODE.name;
|
|
26
25
|
}
|
|
27
26
|
/**
|
|
@@ -104,14 +103,10 @@ const SnkFieldConfig = class {
|
|
|
104
103
|
constructor(hostRef) {
|
|
105
104
|
registerInstance(this, hostRef);
|
|
106
105
|
this.ezClickIcon = createEvent(this, "ezClickIcon", 7);
|
|
107
|
-
/**
|
|
108
|
-
* Define se o popover de configuração está ativo.
|
|
109
|
-
*/
|
|
110
106
|
this.isConfigActive = false;
|
|
111
|
-
|
|
112
|
-
* Define se o componente está em modo de inserção.
|
|
113
|
-
*/
|
|
107
|
+
this.fieldConfig = undefined;
|
|
114
108
|
this.modeInsertion = true;
|
|
109
|
+
this.dataUnit = undefined;
|
|
115
110
|
}
|
|
116
111
|
handleAction(evt, type) {
|
|
117
112
|
evt.preventDefault();
|
|
@@ -168,10 +163,15 @@ const SnkGrid = class {
|
|
|
168
163
|
"snkGridHeaderTaskbar.unselected": ["REFRESH", "DATA_EXPORTER"],
|
|
169
164
|
"snkGridHeaderTaskbar.selected": ["UPDATE", "CLONE", "REMOVE", "MORE_OPTIONS", "DIVIDER", "REFRESH", "DATA_EXPORTER"]
|
|
170
165
|
});
|
|
166
|
+
this._dataUnit = undefined;
|
|
167
|
+
this._dataState = undefined;
|
|
168
|
+
this._gridConfig = undefined;
|
|
171
169
|
this._popUpGridConfig = false;
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
170
|
+
this.configName = undefined;
|
|
171
|
+
this.actionsList = undefined;
|
|
172
|
+
this.taskbarManager = undefined;
|
|
173
|
+
this.statusResolver = undefined;
|
|
174
|
+
this.multipleSelection = undefined;
|
|
175
175
|
this.presentationMode = PresentationMode.PRIMARY;
|
|
176
176
|
}
|
|
177
177
|
/**
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, g as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, g as getElement } from './index-cfd4bb13.js';
|
|
2
2
|
import { ElementIDUtils, ApplicationContext } from '@sankhyalabs/core';
|
|
3
3
|
import { c as VIEW_MODE } from './constants-965d7a7f.js';
|
|
4
|
-
import { T as TaskbarElement } from './taskbar-elements-
|
|
4
|
+
import { T as TaskbarElement } from './taskbar-elements-24655695.js';
|
|
5
5
|
import { P as PresentationMode } from './index-1564817d.js';
|
|
6
|
-
import './index-
|
|
6
|
+
import './index-e467ade5.js';
|
|
7
7
|
|
|
8
8
|
const snkCrudCss = ".sc-snk-crud-h{display:flex;flex-direction:column;height:100%;width:100%}";
|
|
9
9
|
|
|
@@ -13,14 +13,15 @@ const SnkCrud = class {
|
|
|
13
13
|
constructor(hostRef) {
|
|
14
14
|
registerInstance(this, hostRef);
|
|
15
15
|
this.actionClick = createEvent(this, "actionClick", 7);
|
|
16
|
+
this._dataUnit = undefined;
|
|
17
|
+
this._dataState = undefined;
|
|
16
18
|
this._viewMode = GRID_MODE.name;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
19
|
+
this.configName = undefined;
|
|
20
|
+
this.actionsList = undefined;
|
|
21
|
+
this.taskbarManager = undefined;
|
|
22
|
+
this.recordsValidator = undefined;
|
|
23
|
+
this.statusResolver = undefined;
|
|
20
24
|
this.multipleSelection = true;
|
|
21
|
-
/**
|
|
22
|
-
* Altera o modo de apresentação dos botões do snk-taskbar.
|
|
23
|
-
*/
|
|
24
25
|
this.presentationMode = PresentationMode.PRIMARY;
|
|
25
26
|
}
|
|
26
27
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host, g as getElement, c as createEvent } from './index-
|
|
1
|
+
import { r as registerInstance, h, H as Host, g as getElement, c as createEvent } from './index-cfd4bb13.js';
|
|
2
2
|
import { ObjectUtils, ApplicationContext, ElementIDUtils, DataType, StringUtils, ErrorException, FloatingManager, ArrayUtils } from '@sankhyalabs/core';
|
|
3
3
|
import { ApplicationUtils, DialogType, CheckMode } from '@sankhyalabs/ezui/dist/collection/utils';
|
|
4
4
|
import { D as DataExporterOption, a as DataExporterFormat, b as DataExporterType, P as PresentationMode } from './index-1564817d.js';
|
|
@@ -8,9 +8,9 @@ import { F as FilterItemType } from './filter-item-type.enum-a79b2fa8.js';
|
|
|
8
8
|
import { ModalAction, ModalButtonStatus } from '@sankhyalabs/ezui/dist/collection/components/ez-modal-container';
|
|
9
9
|
import { toString } from '@sankhyalabs/core/dist/dataunit/metadata/DataType';
|
|
10
10
|
import { A as AuthorizationConfig } from './AuthorizationConfig-dcbd207a.js';
|
|
11
|
-
import { T as TaskbarElement, V as VisibleWhenForbidden, A as AuthorizationElements, b as buildElem, a as buildCustomButton } from './taskbar-elements-
|
|
11
|
+
import { T as TaskbarElement, V as VisibleWhenForbidden, A as AuthorizationElements, b as buildElem, a as buildCustomButton } from './taskbar-elements-24655695.js';
|
|
12
12
|
import './_commonjsHelpers-9943807e.js';
|
|
13
|
-
import './index-
|
|
13
|
+
import './index-e467ade5.js';
|
|
14
14
|
|
|
15
15
|
class ItemBuilder {
|
|
16
16
|
constructor(getMessage, selectedNumber) {
|
|
@@ -243,9 +243,6 @@ const SnkDataExporter = class {
|
|
|
243
243
|
DataExporterOption.EXPORT_PAGE_TO_PDF,
|
|
244
244
|
DataExporterOption.EXPORT_PAGE_TO_XLS
|
|
245
245
|
];
|
|
246
|
-
/**
|
|
247
|
-
* Provedor das informações para exportação dos dados.
|
|
248
|
-
*/
|
|
249
246
|
this.provider = null;
|
|
250
247
|
}
|
|
251
248
|
async exportByEmail() {
|
|
@@ -639,6 +636,10 @@ const SnkFilterBar = class {
|
|
|
639
636
|
this._filtersComparator = (a, b) => {
|
|
640
637
|
return this._calculateSortIndex(b) - this._calculateSortIndex(a);
|
|
641
638
|
};
|
|
639
|
+
this.dataUnit = undefined;
|
|
640
|
+
this.configName = undefined;
|
|
641
|
+
this.filterConfig = undefined;
|
|
642
|
+
this.allowDefault = undefined;
|
|
642
643
|
this.scrollerLocked = false;
|
|
643
644
|
}
|
|
644
645
|
observeFilterConfig(newValue, oldValue) {
|
|
@@ -1003,6 +1004,9 @@ const SnkFilterItem = class {
|
|
|
1003
1004
|
this.detailIsVisible = false;
|
|
1004
1005
|
return false;
|
|
1005
1006
|
};
|
|
1007
|
+
this.detailIsVisible = undefined;
|
|
1008
|
+
this.config = undefined;
|
|
1009
|
+
this.getMessage = undefined;
|
|
1006
1010
|
}
|
|
1007
1011
|
observeDetailIsVisible(value) {
|
|
1008
1012
|
this.visibleChanged.emit(value);
|
|
@@ -1211,6 +1215,15 @@ const SnkFilterList = class {
|
|
|
1211
1215
|
this._detailIsVisible = false;
|
|
1212
1216
|
return false;
|
|
1213
1217
|
};
|
|
1218
|
+
this._filterArgument = undefined;
|
|
1219
|
+
this._showAll = undefined;
|
|
1220
|
+
this.label = undefined;
|
|
1221
|
+
this.iconName = undefined;
|
|
1222
|
+
this.items = undefined;
|
|
1223
|
+
this.getMessage = undefined;
|
|
1224
|
+
this.emptyText = undefined;
|
|
1225
|
+
this.findFilterText = undefined;
|
|
1226
|
+
this.buttonClass = undefined;
|
|
1214
1227
|
}
|
|
1215
1228
|
showDetail() {
|
|
1216
1229
|
this._preselection = -1;
|
|
@@ -1337,6 +1350,16 @@ const snkFilterModalCss = ".snk-filter__modal-container{width:359px;max-width:35
|
|
|
1337
1350
|
const SnkFilterModal = class {
|
|
1338
1351
|
constructor(hostRef) {
|
|
1339
1352
|
registerInstance(this, hostRef);
|
|
1353
|
+
this._filterArgument = undefined;
|
|
1354
|
+
this.getMessage = undefined;
|
|
1355
|
+
this.items = undefined;
|
|
1356
|
+
this.modalTitle = undefined;
|
|
1357
|
+
this.modalSubTitle = undefined;
|
|
1358
|
+
this.cancelButtonLabel = undefined;
|
|
1359
|
+
this.okButtonLabel = undefined;
|
|
1360
|
+
this.infoText = undefined;
|
|
1361
|
+
this.useSearch = undefined;
|
|
1362
|
+
this.processModalAction = undefined;
|
|
1340
1363
|
}
|
|
1341
1364
|
updateValue(id, value = undefined) {
|
|
1342
1365
|
this.items = this.items.map(item => {
|
|
@@ -1401,10 +1424,10 @@ const EzGridConfig = class {
|
|
|
1401
1424
|
this._selectedIndex = -1;
|
|
1402
1425
|
this._dataChanged = false;
|
|
1403
1426
|
this._componenteInternalKey = Date.now();
|
|
1404
|
-
/**
|
|
1405
|
-
* Aba selecionada das configurações da grade.
|
|
1406
|
-
*/
|
|
1407
1427
|
this.selectedIndex = 0;
|
|
1428
|
+
this.application = undefined;
|
|
1429
|
+
this.columns = undefined;
|
|
1430
|
+
this.config = undefined;
|
|
1408
1431
|
}
|
|
1409
1432
|
/* Creation Methods */
|
|
1410
1433
|
/**
|
|
@@ -1866,9 +1889,6 @@ const SelectBox = class {
|
|
|
1866
1889
|
constructor(hostRef) {
|
|
1867
1890
|
registerInstance(this, hostRef);
|
|
1868
1891
|
this.ezChange = createEvent(this, "ezChange", 7);
|
|
1869
|
-
/**
|
|
1870
|
-
* Determina a opção selecionada.
|
|
1871
|
-
*/
|
|
1872
1892
|
this.selectedOption = ORDER_VALUES.none;
|
|
1873
1893
|
}
|
|
1874
1894
|
render() {
|
|
@@ -1886,10 +1906,6 @@ const SnkTaskbar = class {
|
|
|
1886
1906
|
constructor(hostRef) {
|
|
1887
1907
|
registerInstance(this, hostRef);
|
|
1888
1908
|
this.actionClick = createEvent(this, "actionClick", 7);
|
|
1889
|
-
/**
|
|
1890
|
-
* Altera o modo de apresentação dos botões do snk-taskbar.
|
|
1891
|
-
*/
|
|
1892
|
-
this.presentationMode = PresentationMode.PRIMARY;
|
|
1893
1909
|
this._titleKeyByElement = {
|
|
1894
1910
|
[TaskbarElement.UPDATE]: "snkTaskbar.titleUpdate",
|
|
1895
1911
|
[TaskbarElement.PREVIOUS]: "snkTaskbar.titlePrevious",
|
|
@@ -1905,6 +1921,15 @@ const SnkTaskbar = class {
|
|
|
1905
1921
|
[TaskbarElement.FORM_MODE]: "snkTaskbar.titleFormMode",
|
|
1906
1922
|
[TaskbarElement.CONFIGURATOR]: "snkTaskbar.titleConfigurator"
|
|
1907
1923
|
};
|
|
1924
|
+
this._permissions = undefined;
|
|
1925
|
+
this.configName = undefined;
|
|
1926
|
+
this.buttons = undefined;
|
|
1927
|
+
this.customButtons = undefined;
|
|
1928
|
+
this.actionsList = undefined;
|
|
1929
|
+
this.primaryButton = undefined;
|
|
1930
|
+
this.disabledButtons = undefined;
|
|
1931
|
+
this.dataUnit = undefined;
|
|
1932
|
+
this.presentationMode = PresentationMode.PRIMARY;
|
|
1908
1933
|
}
|
|
1909
1934
|
observeButtons() {
|
|
1910
1935
|
this._definitions = undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, g as getElement, H as Host } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, g as getElement, H as Host } from './index-cfd4bb13.js';
|
|
2
2
|
import { Action, ApplicationContext } from '@sankhyalabs/core';
|
|
3
3
|
import { ApplicationUtils, DialogType } from '@sankhyalabs/ezui/dist/collection/utils';
|
|
4
4
|
import { O as OperationMap } from './SnkMessageBuilder-66ddc2f0.js';
|
|
@@ -13,10 +13,6 @@ const SnkDataUnit = class {
|
|
|
13
13
|
this.insertionMode = createEvent(this, "insertionMode", 3);
|
|
14
14
|
this.cancelEdition = createEvent(this, "cancelEdition", 3);
|
|
15
15
|
this._onDataUnitResolve = [];
|
|
16
|
-
/**
|
|
17
|
-
* Determina quantas linhas são retornadas por página.
|
|
18
|
-
*/
|
|
19
|
-
this.pageSize = 150;
|
|
20
16
|
this._dataUnitObserver = (action) => {
|
|
21
17
|
const duState = {
|
|
22
18
|
insertionMode: false,
|
|
@@ -55,6 +51,13 @@ const SnkDataUnit = class {
|
|
|
55
51
|
}
|
|
56
52
|
this._application.messagesBuilder.currentOperation = this.getMessageOperation();
|
|
57
53
|
};
|
|
54
|
+
this.dataState = undefined;
|
|
55
|
+
this.dataUnitName = undefined;
|
|
56
|
+
this.entityName = undefined;
|
|
57
|
+
this.pageSize = 150;
|
|
58
|
+
this.dataUnit = undefined;
|
|
59
|
+
this.beforeSave = undefined;
|
|
60
|
+
this.afterSave = undefined;
|
|
58
61
|
}
|
|
59
62
|
observePageSize() {
|
|
60
63
|
if (this.dataUnit) {
|
|
@@ -107,15 +110,17 @@ const SnkDataUnit = class {
|
|
|
107
110
|
const selectedRecords = (_a = this.dataUnit) === null || _a === void 0 ? void 0 : _a.getSelectedRecords();
|
|
108
111
|
if ((selectedRecords === null || selectedRecords === void 0 ? void 0 : selectedRecords.length) > 0) {
|
|
109
112
|
selectedRecords.forEach(({ __record__id__ }) => {
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
113
|
+
if (!this.dataUnit.isNewRecord(__record__id__)) {
|
|
114
|
+
const revertBase64ToObject = JSON.parse(window.atob(__record__id__));
|
|
115
|
+
Object.entries(revertBase64ToObject).forEach(([name, value]) => {
|
|
116
|
+
var _a;
|
|
117
|
+
const metadataField = (_a = this.dataUnit) === null || _a === void 0 ? void 0 : _a.getField(name);
|
|
118
|
+
if (metadataField == undefined) {
|
|
119
|
+
return;
|
|
120
|
+
}
|
|
121
|
+
selectedRecordsIDsInfo.push(Object.assign({ name, type: metadataField.dataType }, value));
|
|
122
|
+
});
|
|
123
|
+
}
|
|
119
124
|
});
|
|
120
125
|
}
|
|
121
126
|
return selectedRecordsIDsInfo;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h, r as registerInstance, g as getElement } from './index-
|
|
1
|
+
import { h, r as registerInstance, g as getElement } from './index-cfd4bb13.js';
|
|
2
2
|
import { ElementIDUtils } from '@sankhyalabs/core';
|
|
3
3
|
|
|
4
4
|
const EmailInfoStep = ({ getMessage, changeInfo, data }) => {
|
|
@@ -54,8 +54,10 @@ const SnkExporterEmailSender = class {
|
|
|
54
54
|
secondButtonClass: "ez-button--primary"
|
|
55
55
|
}
|
|
56
56
|
];
|
|
57
|
+
this._config = undefined;
|
|
57
58
|
this._opened = false;
|
|
58
59
|
this._currentStep = 0;
|
|
60
|
+
this.getMessage = undefined;
|
|
59
61
|
}
|
|
60
62
|
open(config) {
|
|
61
63
|
var _a;
|