@sankhyalabs/sankhyablocks 3.2.0 → 3.2.2
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 +4 -2
- 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 +8 -5
- 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 +10 -5
- 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 +7 -4
- 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 +9 -4
- 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/collection/lib/http/data-fetcher/fetchers/pesquisa-fetcher.js +1 -1
- package/dist/components/index.d.ts +9 -0
- package/dist/components/index.js +1 -1
- package/dist/components/snk-application2.js +3 -1
- 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 +7 -4
- 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 +9 -4
- 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 +4 -2
- 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 +8 -5
- 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 +10 -5
- 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-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-6878464e.entry.js +1 -0
- package/dist/sankhyablocks/p-6b992e43.js +1 -0
- package/dist/sankhyablocks/p-82ab941a.entry.js +83 -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/react/components.d.ts +29 -29
- package/react/react-component-lib/createComponent.d.ts +1 -1
- package/react/react-component-lib/interfaces.js +1 -0
- package/react/react-component-lib/utils/index.d.ts +2 -2
- 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-4cec3835.entry.js +0 -83
- package/dist/sankhyablocks/p-5ebc029c.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
|
@@ -69,6 +69,18 @@ const isComplexType = (o) => {
|
|
|
69
69
|
o = typeof o;
|
|
70
70
|
return o === 'object' || o === 'function';
|
|
71
71
|
};
|
|
72
|
+
/**
|
|
73
|
+
* Helper method for querying a `meta` tag that contains a nonce value
|
|
74
|
+
* out of a DOM's head.
|
|
75
|
+
*
|
|
76
|
+
* @param doc The DOM containing the `head` to query against
|
|
77
|
+
* @returns The content of the meta tag representing the nonce value, or `undefined` if no tag
|
|
78
|
+
* exists or the tag has no content.
|
|
79
|
+
*/
|
|
80
|
+
function queryNonceMetaTagContent(doc) {
|
|
81
|
+
var _a, _b, _c;
|
|
82
|
+
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;
|
|
83
|
+
}
|
|
72
84
|
/**
|
|
73
85
|
* Production h() function based on Preact by
|
|
74
86
|
* Jason Miller (@developit)
|
|
@@ -77,7 +89,6 @@ const isComplexType = (o) => {
|
|
|
77
89
|
*
|
|
78
90
|
* Modified for Stencil's compiler and vdom
|
|
79
91
|
*/
|
|
80
|
-
// const stack: any[] = [];
|
|
81
92
|
// export function h(nodeName: string | d.FunctionalComponent, vnodeData: d.PropsType, child?: d.ChildType): d.VNode;
|
|
82
93
|
// export function h(nodeName: string | d.FunctionalComponent, vnodeData: d.PropsType, ...children: d.ChildType[]): d.VNode;
|
|
83
94
|
const h = (nodeName, vnodeData, ...children) => {
|
|
@@ -147,6 +158,14 @@ const h = (nodeName, vnodeData, ...children) => {
|
|
|
147
158
|
}
|
|
148
159
|
return vnode;
|
|
149
160
|
};
|
|
161
|
+
/**
|
|
162
|
+
* A utility function for creating a virtual DOM node from a tag and some
|
|
163
|
+
* possible text content.
|
|
164
|
+
*
|
|
165
|
+
* @param tag the tag for this element
|
|
166
|
+
* @param text possible text content for the node
|
|
167
|
+
* @returns a newly-minted virtual DOM node
|
|
168
|
+
*/
|
|
150
169
|
const newVNode = (tag, text) => {
|
|
151
170
|
const vnode = {
|
|
152
171
|
$flags$: 0,
|
|
@@ -167,11 +186,31 @@ const newVNode = (tag, text) => {
|
|
|
167
186
|
return vnode;
|
|
168
187
|
};
|
|
169
188
|
const Host = {};
|
|
189
|
+
/**
|
|
190
|
+
* Check whether a given node is a Host node or not
|
|
191
|
+
*
|
|
192
|
+
* @param node the virtual DOM node to check
|
|
193
|
+
* @returns whether it's a Host node or not
|
|
194
|
+
*/
|
|
170
195
|
const isHost = (node) => node && node.$tag$ === Host;
|
|
196
|
+
/**
|
|
197
|
+
* Implementation of {@link d.FunctionalUtilities} for Stencil's VDom.
|
|
198
|
+
*
|
|
199
|
+
* Note that these functions convert from {@link d.VNode} to
|
|
200
|
+
* {@link d.ChildNode} to give functional component developers a friendly
|
|
201
|
+
* interface.
|
|
202
|
+
*/
|
|
171
203
|
const vdomFnUtils = {
|
|
172
204
|
forEach: (children, cb) => children.map(convertToPublic).forEach(cb),
|
|
173
205
|
map: (children, cb) => children.map(convertToPublic).map(cb).map(convertToPrivate),
|
|
174
206
|
};
|
|
207
|
+
/**
|
|
208
|
+
* Convert a {@link d.VNode} to a {@link d.ChildNode} in order to present a
|
|
209
|
+
* friendlier public interface (hence, 'convertToPublic').
|
|
210
|
+
*
|
|
211
|
+
* @param node the virtual DOM node to convert
|
|
212
|
+
* @returns a converted child node
|
|
213
|
+
*/
|
|
175
214
|
const convertToPublic = (node) => ({
|
|
176
215
|
vattrs: node.$attrs$,
|
|
177
216
|
vchildren: node.$children$,
|
|
@@ -180,6 +219,15 @@ const convertToPublic = (node) => ({
|
|
|
180
219
|
vtag: node.$tag$,
|
|
181
220
|
vtext: node.$text$,
|
|
182
221
|
});
|
|
222
|
+
/**
|
|
223
|
+
* Convert a {@link d.ChildNode} back to an equivalent {@link d.VNode} in
|
|
224
|
+
* order to use the resulting object in the virtual DOM. The initial object was
|
|
225
|
+
* likely created as part of presenting a public API, so converting it back
|
|
226
|
+
* involved making it 'private' again (hence, `convertToPrivate`).
|
|
227
|
+
*
|
|
228
|
+
* @param node the child node to convert
|
|
229
|
+
* @returns a converted virtual DOM node
|
|
230
|
+
*/
|
|
183
231
|
const convertToPrivate = (node) => {
|
|
184
232
|
if (typeof node.vtag === 'function') {
|
|
185
233
|
const vnodeData = Object.assign({}, node.vattrs);
|
|
@@ -289,6 +337,7 @@ const registerStyle = (scopeId, cssText, allowCS) => {
|
|
|
289
337
|
styles.set(scopeId, style);
|
|
290
338
|
};
|
|
291
339
|
const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
|
|
340
|
+
var _a;
|
|
292
341
|
let scopeId = getScopeId(cmpMeta);
|
|
293
342
|
const style = styles.get(scopeId);
|
|
294
343
|
// if an element is NOT connected then getRootNode() will return the wrong root node
|
|
@@ -308,6 +357,11 @@ const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
|
|
|
308
357
|
styleElm = doc.createElement('style');
|
|
309
358
|
styleElm.innerHTML = style;
|
|
310
359
|
}
|
|
360
|
+
// Apply CSP nonce to the style tag if it exists
|
|
361
|
+
const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
|
|
362
|
+
if (nonce != null) {
|
|
363
|
+
styleElm.setAttribute('nonce', nonce);
|
|
364
|
+
}
|
|
311
365
|
styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector('link'));
|
|
312
366
|
}
|
|
313
367
|
if (appliedStyles) {
|
|
@@ -627,6 +681,21 @@ const putBackInOriginalLocation = (parentElm, recursive) => {
|
|
|
627
681
|
}
|
|
628
682
|
plt.$flags$ &= ~1 /* PLATFORM_FLAGS.isTmpDisconnected */;
|
|
629
683
|
};
|
|
684
|
+
/**
|
|
685
|
+
* Create DOM nodes corresponding to a list of {@link d.Vnode} objects and
|
|
686
|
+
* add them to the DOM in the appropriate place.
|
|
687
|
+
*
|
|
688
|
+
* @param parentElm the DOM node which should be used as a parent for the new
|
|
689
|
+
* DOM nodes
|
|
690
|
+
* @param before a child of the `parentElm` which the new children should be
|
|
691
|
+
* inserted before (optional)
|
|
692
|
+
* @param parentVNode the parent virtual DOM node
|
|
693
|
+
* @param vnodes the new child virtual DOM nodes to produce DOM nodes for
|
|
694
|
+
* @param startIdx the index in the child virtual DOM nodes at which to start
|
|
695
|
+
* creating DOM nodes (inclusive)
|
|
696
|
+
* @param endIdx the index in the child virtual DOM nodes at which to stop
|
|
697
|
+
* creating DOM nodes (inclusive)
|
|
698
|
+
*/
|
|
630
699
|
const addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
|
|
631
700
|
let containerElm = ((parentElm['s-cr'] && parentElm['s-cr'].parentNode) || parentElm);
|
|
632
701
|
let childNode;
|
|
@@ -643,6 +712,19 @@ const addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) =>
|
|
|
643
712
|
}
|
|
644
713
|
}
|
|
645
714
|
};
|
|
715
|
+
/**
|
|
716
|
+
* Remove the DOM elements corresponding to a list of {@link d.VNode} objects.
|
|
717
|
+
* This can be used to, for instance, clean up after a list of children which
|
|
718
|
+
* should no longer be shown.
|
|
719
|
+
*
|
|
720
|
+
* This function also handles some of Stencil's slot relocation logic.
|
|
721
|
+
*
|
|
722
|
+
* @param vnodes a list of virtual DOM nodes to remove
|
|
723
|
+
* @param startIdx the index at which to start removing nodes (inclusive)
|
|
724
|
+
* @param endIdx the index at which to stop removing nodes (inclusive)
|
|
725
|
+
* @param vnode a VNode
|
|
726
|
+
* @param elm an element
|
|
727
|
+
*/
|
|
646
728
|
const removeVnodes = (vnodes, startIdx, endIdx, vnode, elm) => {
|
|
647
729
|
for (; startIdx <= endIdx; ++startIdx) {
|
|
648
730
|
if ((vnode = vnodes[startIdx])) {
|
|
@@ -921,7 +1003,8 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
|
|
|
921
1003
|
*
|
|
922
1004
|
* So, in other words, if `key` attrs are not set on VNodes which may be
|
|
923
1005
|
* changing order within a `children` array or something along those lines then
|
|
924
|
-
* we could obtain a false
|
|
1006
|
+
* we could obtain a false negative and then have to do needless re-rendering
|
|
1007
|
+
* (i.e. we'd say two VNodes aren't equal when in fact they should be).
|
|
925
1008
|
*
|
|
926
1009
|
* @param leftVNode the first VNode to check
|
|
927
1010
|
* @param rightVNode the second VNode to check
|
|
@@ -1141,6 +1224,18 @@ const callNodeRefs = (vNode) => {
|
|
|
1141
1224
|
vNode.$children$ && vNode.$children$.map(callNodeRefs);
|
|
1142
1225
|
}
|
|
1143
1226
|
};
|
|
1227
|
+
/**
|
|
1228
|
+
* The main entry point for Stencil's virtual DOM-based rendering engine
|
|
1229
|
+
*
|
|
1230
|
+
* Given a {@link d.HostRef} container and some virtual DOM nodes, this
|
|
1231
|
+
* function will handle creating a virtual DOM tree with a single root, patching
|
|
1232
|
+
* the current virtual DOM tree onto an old one (if any), dealing with slot
|
|
1233
|
+
* relocation, and reflecting attributes.
|
|
1234
|
+
*
|
|
1235
|
+
* @param hostRef data needed to root and render the virtual DOM tree, such as
|
|
1236
|
+
* the DOM node into which it should be rendered.
|
|
1237
|
+
* @param renderFnResults the virtual DOM nodes to be rendered
|
|
1238
|
+
*/
|
|
1144
1239
|
const renderVdom = (hostRef, renderFnResults) => {
|
|
1145
1240
|
const hostElm = hostRef.$hostElement$;
|
|
1146
1241
|
const cmpMeta = hostRef.$cmpMeta$;
|
|
@@ -1767,6 +1862,7 @@ const disconnectedCallback = (elm) => {
|
|
|
1767
1862
|
}
|
|
1768
1863
|
};
|
|
1769
1864
|
const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
1865
|
+
var _a;
|
|
1770
1866
|
const endBootstrap = createTime();
|
|
1771
1867
|
const cmpTags = [];
|
|
1772
1868
|
const exclude = options.exclude || [];
|
|
@@ -1849,6 +1945,11 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1849
1945
|
{
|
|
1850
1946
|
visibilityStyle.innerHTML = cmpTags + HYDRATED_CSS;
|
|
1851
1947
|
visibilityStyle.setAttribute('data-styles', '');
|
|
1948
|
+
// Apply CSP nonce to the style tag if it exists
|
|
1949
|
+
const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
|
|
1950
|
+
if (nonce != null) {
|
|
1951
|
+
visibilityStyle.setAttribute('nonce', nonce);
|
|
1952
|
+
}
|
|
1852
1953
|
head.insertBefore(visibilityStyle, metaCharset ? metaCharset.nextSibling : head.firstChild);
|
|
1853
1954
|
}
|
|
1854
1955
|
// Process deferred connectedCallbacks now all components have been registered
|
|
@@ -1894,6 +1995,13 @@ const hostListenerProxy = (hostRef, methodName) => (ev) => {
|
|
|
1894
1995
|
};
|
|
1895
1996
|
// prettier-ignore
|
|
1896
1997
|
const hostListenerOpts = (flags) => (flags & 2 /* LISTENER_FLAGS.Capture */) !== 0;
|
|
1998
|
+
/**
|
|
1999
|
+
* Assigns the given value to the nonce property on the runtime platform object.
|
|
2000
|
+
* During runtime, this value is used to set the nonce attribute on all dynamically created script and style tags.
|
|
2001
|
+
* @param nonce The value to be assigned to the platform nonce property.
|
|
2002
|
+
* @returns void
|
|
2003
|
+
*/
|
|
2004
|
+
const setNonce = (nonce) => (plt.$nonce$ = nonce);
|
|
1897
2005
|
const hostRefs = /*@__PURE__*/ new WeakMap();
|
|
1898
2006
|
const getHostRef = (ref) => hostRefs.get(ref);
|
|
1899
2007
|
const registerInstance = (lazyInstance, hostRef) => hostRefs.set((hostRef.$lazyInstance$ = lazyInstance), hostRef);
|
|
@@ -2014,3 +2122,4 @@ exports.getRenderingRef = getRenderingRef;
|
|
|
2014
2122
|
exports.h = h;
|
|
2015
2123
|
exports.promiseResolve = promiseResolve;
|
|
2016
2124
|
exports.registerInstance = registerInstance;
|
|
2125
|
+
exports.setNonce = setNonce;
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-21bd01e1.js');
|
|
6
6
|
|
|
7
7
|
/*
|
|
8
|
-
Stencil Client Patch Esm v2.
|
|
8
|
+
Stencil Client Patch Esm v2.22.3 | MIT Licensed | https://stenciljs.com
|
|
9
9
|
*/
|
|
10
10
|
const patchEsm = () => {
|
|
11
11
|
return index.promiseResolve();
|
|
@@ -18,4 +18,5 @@ const defineCustomElements = (win, options) => {
|
|
|
18
18
|
});
|
|
19
19
|
};
|
|
20
20
|
|
|
21
|
+
exports.setNonce = index.setNonce;
|
|
21
22
|
exports.defineCustomElements = defineCustomElements;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-21bd01e1.js');
|
|
4
6
|
|
|
5
7
|
/*
|
|
6
|
-
Stencil Client Patch Browser v2.
|
|
8
|
+
Stencil Client Patch Browser v2.22.3 | MIT Licensed | https://stenciljs.com
|
|
7
9
|
*/
|
|
8
10
|
const patchBrowser = () => {
|
|
9
11
|
const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('sankhyablocks.cjs.js', document.baseURI).href));
|
|
@@ -17,3 +19,5 @@ const patchBrowser = () => {
|
|
|
17
19
|
patchBrowser().then(options => {
|
|
18
20
|
return index.bootstrapLazy([["teste-pesquisa.cjs",[[1,"teste-pesquisa"]]],["snk-data-unit.cjs",[[2,"snk-data-unit",{"dataState":[1040],"dataUnitName":[1,"data-unit-name"],"entityName":[1,"entity-name"],"pageSize":[2,"page-size"],"dataUnit":[1040],"beforeSave":[16],"afterSave":[16],"getDataUnit":[64],"getSelectedRecordsIDsInfo":[64]}]]],["snk-filter-binary-select.cjs",[[0,"snk-filter-binary-select",{"value":[1544],"config":[16],"show":[64]},[[0,"ezChange","ezChangeListener"]]]]],["snk-filter-multi-select.cjs",[[0,"snk-filter-multi-select",{"value":[1544],"config":[16],"show":[64]},[[0,"ezChange","ezChangeListener"]]]]],["snk-filter-number.cjs",[[0,"snk-filter-number",{"config":[16],"value":[2],"show":[64]},[[0,"ezChange","ezChangeListener"]]]]],["snk-filter-period.cjs",[[0,"snk-filter-period",{"config":[16],"value":[8],"show":[64]},[[0,"ezChange","ezChangeListener"]]]]],["snk-filter-personalized.cjs",[[0,"snk-filter-personalized",{"config":[16],"value":[1040],"fix":[16],"unfix":[16],"show":[64]}]]],["snk-filter-search.cjs",[[0,"snk-filter-search",{"config":[16],"value":[16],"show":[64]},[[0,"ezChange","ezChangeListener"]]]]],["snk-filter-text.cjs",[[0,"snk-filter-text",{"config":[16],"value":[1]},[[0,"ezChange","ezChangeListener"]]]]],["snk-pesquisa.cjs",[[2,"snk-pesquisa",{"searchLoader":[16],"selectItem":[16],"argument":[1025],"_itemList":[32],"_startLoading":[32]}]]],["snk-config-options.cjs",[[2,"snk-config-options",{"fieldConfig":[16],"idConfig":[513,"id-config"],"dataUnit":[16],"_defaultType":[32]}]]],["snk-tab-config.cjs",[[6,"snk-tab-config",{"selectedIndex":[1538,"selected-index"],"selectedTab":[1537,"selected-tab"],"tabs":[1],"_processedTabs":[32],"_activeEditText":[32],"_activeEditTextIndex":[32],"_actionsHide":[32],"_actionsShow":[32]}]]],["snk-filter-detail.cjs",[[0,"snk-filter-detail",{"config":[1040],"getMessage":[16],"show":[64]}]]],["snk-configurator_3.cjs",[[6,"snk-grid",{"configName":[1,"config-name"],"actionsList":[16],"taskbarManager":[16],"statusResolver":[16],"multipleSelection":[4,"multiple-selection"],"presentationMode":[1,"presentation-mode"],"_dataUnit":[32],"_dataState":[32],"_gridConfig":[32],"_popUpGridConfig":[32],"showConfig":[64],"hideConfig":[64],"setConfig":[64]}],[2,"snk-configurator",{"configName":[1,"config-name"],"viewMode":[1,"view-mode"],"_opened":[32],"_permissions":[32],"open":[64],"close":[64]}],[2,"snk-field-config",{"isConfigActive":[16],"fieldConfig":[16],"modeInsertion":[516,"mode-insertion"],"dataUnit":[16]}]]],["snk-form-config.cjs",[[2,"snk-form-config",{"dataUnit":[16],"formConfig":[16],"configName":[513,"config-name"],"_formConfigOptions":[32],"_fieldConfigSelected":[32],"_layoutFormConfig":[32],"_fieldsAvailable":[32],"_formConfig":[32],"_formConfigChanged":[32],"_optionFormConfigSelected":[32],"_optionFormConfigChanged":[32],"_tempGroups":[32]}]]],["snk-exporter-email-sender.cjs",[[0,"snk-exporter-email-sender",{"getMessage":[16],"_config":[32],"_opened":[32],"_currentStep":[32],"open":[64],"close":[64]}]]],["snk-data-exporter_8.cjs",[[2,"snk-filter-bar",{"dataUnit":[1040],"configName":[1,"config-name"],"filterConfig":[1040],"allowDefault":[32],"scrollerLocked":[32]},[[0,"filterChange","filterChangeListener"]]],[2,"snk-grid-config",{"selectedIndex":[1026,"selected-index"],"application":[16],"columns":[1040],"config":[1040],"saveConfig":[64]}],[6,"snk-taskbar",{"configName":[1,"config-name"],"buttons":[1],"customButtons":[16],"actionsList":[16],"primaryButton":[1,"primary-button"],"disabledButtons":[16],"dataUnit":[16],"presentationMode":[1537,"presentation-mode"],"_permissions":[32]}],[0,"snk-filter-item",{"config":[1040],"getMessage":[16],"detailIsVisible":[32],"showUp":[64],"hideDetail":[64]},[[2,"click","clickListener"],[2,"mousedown","mouseDownListener"],[0,"filterChange","filterChangeListener"]]],[4,"snk-filter-list",{"label":[1],"iconName":[1,"icon-name"],"items":[16],"getMessage":[16],"emptyText":[1,"empty-text"],"findFilterText":[1,"find-filter-text"],"buttonClass":[1,"button-class"],"_filterArgument":[32],"_showAll":[32],"hideDetail":[64]},[[2,"keydown","keyDownHandler"]]],[0,"snk-filter-modal",{"getMessage":[16],"items":[1040],"modalTitle":[1,"modal-title"],"modalSubTitle":[1,"modal-sub-title"],"cancelButtonLabel":[1,"cancel-button-label"],"okButtonLabel":[1,"ok-button-label"],"infoText":[1,"info-text"],"useSearch":[4,"use-search"],"processModalAction":[16],"_filterArgument":[32]}],[1,"snk-select-box",{"selectedOption":[1,"selected-option"]}],[2,"snk-data-exporter",{"provider":[16],"_items":[32],"_showDropdown":[32],"_releasedToExport":[32]}]]],["snk-form.cjs",[[2,"snk-form",{"configName":[1,"config-name"],"recordsValidator":[16],"actionsList":[16],"taskbarManager":[16],"presentationMode":[1,"presentation-mode"],"_dataUnit":[32],"_dataState":[32],"_editionFormConfig":[32],"_insertionFormConfig":[32],"_showFormConfig":[32],"showConfig":[64],"hideConfig":[64]}]]],["snk-crud.cjs",[[6,"snk-crud",{"configName":[1025,"config-name"],"actionsList":[16],"taskbarManager":[16],"recordsValidator":[16],"statusResolver":[16],"multipleSelection":[4,"multiple-selection"],"presentationMode":[1,"presentation-mode"],"_dataUnit":[32],"_dataState":[32],"_viewMode":[32],"goToView":[64]}]]],["snk-application.cjs",[[2,"snk-application",{"messagesBuilder":[1040],"configName":[1,"config-name"],"isUserSup":[64],"hasAccess":[64],"getAllAccess":[64],"getStringParam":[64],"getIntParam":[64],"getFloatParam":[64],"getBooleanParam":[64],"getDateParam":[64],"showPopUp":[64],"showModal":[64],"closeModal":[64],"closePopUp":[64],"temOpcional":[64],"getConfig":[64],"saveConfig":[64],"getAttributeFromHTMLWrapper":[64],"openApp":[64],"webConnection":[64],"createDataunit":[64],"getDataUnit":[64],"getResourceID":[64],"getUserID":[64],"alert":[64],"error":[64],"success":[64],"message":[64],"confirm":[64],"info":[64],"loadFormConfig":[64],"loadGridConfig":[64],"fetchUserAvailableConfigs":[64],"fetchLegacyConfig":[64],"fetchDefaultConfig":[64],"loadTotals":[64],"saveGridConfig":[64],"getFilterBarConfig":[64],"saveFilterBarConfig":[64],"saveFormConfig":[64],"getDefaultValues":[64],"getDefaultValue":[64],"executeSearch":[64],"executePreparedSearch":[64],"isDebugMode":[64],"getAppLabel":[64]}]]]], options);
|
|
19
21
|
});
|
|
22
|
+
|
|
23
|
+
exports.setNonce = index.setNonce;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-21bd01e1.js');
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
|
7
7
|
const ConfigStorage = require('./ConfigStorage-8b5e3261.js');
|
|
8
8
|
const utils = require('@sankhyalabs/ezui/dist/collection/utils');
|
|
@@ -84,7 +84,7 @@ class PesquisaFetcher {
|
|
|
84
84
|
}`);
|
|
85
85
|
}
|
|
86
86
|
loadSearchOptions(entityName, argument, criteria, options) {
|
|
87
|
-
const cleanText = (argument === null || argument === void 0 ? void 0 : argument.trim()) || undefined;
|
|
87
|
+
const cleanText = (argument === null || argument === void 0 ? void 0 : argument.toString().trim()) || undefined;
|
|
88
88
|
argument = isNaN(Number(cleanText)) && cleanText ? `%${cleanText}` : cleanText;
|
|
89
89
|
return new Promise((resolve, reject) => {
|
|
90
90
|
ConfigStorage.DataFetcher.get()
|
|
@@ -699,6 +699,8 @@ const SnkApplication = class {
|
|
|
699
699
|
this._duCache = new Map();
|
|
700
700
|
this._duPromises = new Map();
|
|
701
701
|
this._requestListener = new RequestListenerLoadingBar();
|
|
702
|
+
this.messagesBuilder = undefined;
|
|
703
|
+
this.configName = undefined;
|
|
702
704
|
}
|
|
703
705
|
get parameters() {
|
|
704
706
|
if (!this._parameters) {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-21bd01e1.js');
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
|
7
7
|
const DataType = require('@sankhyalabs/core/dist/dataunit/metadata/DataType');
|
|
8
8
|
const utils = require('@sankhyalabs/ezui/dist/collection/utils');
|
|
@@ -14,10 +14,10 @@ const SnkConfigOptions = class {
|
|
|
14
14
|
constructor(hostRef) {
|
|
15
15
|
index.registerInstance(this, hostRef);
|
|
16
16
|
this.configOptionsChanged = index.createEvent(this, "configOptionsChanged", 7);
|
|
17
|
-
|
|
18
|
-
* Armazena as propriedades do campo.
|
|
19
|
-
*/
|
|
17
|
+
this._defaultType = undefined;
|
|
20
18
|
this.fieldConfig = {};
|
|
19
|
+
this.idConfig = undefined;
|
|
20
|
+
this.dataUnit = undefined;
|
|
21
21
|
}
|
|
22
22
|
onConfigDefault(optionSelected) {
|
|
23
23
|
if (optionSelected != undefined) {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-21bd01e1.js');
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
|
7
7
|
const constants = require('./constants-8f3504ec.js');
|
|
8
8
|
const AuthorizationConfig = require('./AuthorizationConfig-79ffae4b.js');
|
|
@@ -10,7 +10,7 @@ const UnitMetadata = require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetad
|
|
|
10
10
|
const ConfigStorage = require('./ConfigStorage-8b5e3261.js');
|
|
11
11
|
const index$1 = require('./index-0e663819.js');
|
|
12
12
|
const taskbarProcessor = require('./taskbar-processor-6f3d2a75.js');
|
|
13
|
-
const index$2 = require('./index-
|
|
13
|
+
const index$2 = require('./index-fc7ca86c.js');
|
|
14
14
|
require('./_commonjsHelpers-537d719a.js');
|
|
15
15
|
|
|
16
16
|
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)}";
|
|
@@ -23,9 +23,8 @@ const SnkConfigurator = class {
|
|
|
23
23
|
this.configSelected = index.createEvent(this, "configSelected", 7);
|
|
24
24
|
this.openConfig = index.createEvent(this, "openConfig", 7);
|
|
25
25
|
this._opened = false;
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
*/
|
|
26
|
+
this._permissions = undefined;
|
|
27
|
+
this.configName = undefined;
|
|
29
28
|
this.viewMode = GRID_MODE.name;
|
|
30
29
|
}
|
|
31
30
|
/**
|
|
@@ -108,14 +107,10 @@ const SnkFieldConfig = class {
|
|
|
108
107
|
constructor(hostRef) {
|
|
109
108
|
index.registerInstance(this, hostRef);
|
|
110
109
|
this.ezClickIcon = index.createEvent(this, "ezClickIcon", 7);
|
|
111
|
-
/**
|
|
112
|
-
* Define se o popover de configuração está ativo.
|
|
113
|
-
*/
|
|
114
110
|
this.isConfigActive = false;
|
|
115
|
-
|
|
116
|
-
* Define se o componente está em modo de inserção.
|
|
117
|
-
*/
|
|
111
|
+
this.fieldConfig = undefined;
|
|
118
112
|
this.modeInsertion = true;
|
|
113
|
+
this.dataUnit = undefined;
|
|
119
114
|
}
|
|
120
115
|
handleAction(evt, type) {
|
|
121
116
|
evt.preventDefault();
|
|
@@ -172,10 +167,15 @@ const SnkGrid = class {
|
|
|
172
167
|
"snkGridHeaderTaskbar.unselected": ["REFRESH", "DATA_EXPORTER"],
|
|
173
168
|
"snkGridHeaderTaskbar.selected": ["UPDATE", "CLONE", "REMOVE", "MORE_OPTIONS", "DIVIDER", "REFRESH", "DATA_EXPORTER"]
|
|
174
169
|
});
|
|
170
|
+
this._dataUnit = undefined;
|
|
171
|
+
this._dataState = undefined;
|
|
172
|
+
this._gridConfig = undefined;
|
|
175
173
|
this._popUpGridConfig = false;
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
174
|
+
this.configName = undefined;
|
|
175
|
+
this.actionsList = undefined;
|
|
176
|
+
this.taskbarManager = undefined;
|
|
177
|
+
this.statusResolver = undefined;
|
|
178
|
+
this.multipleSelection = undefined;
|
|
179
179
|
this.presentationMode = index$1.PresentationMode.PRIMARY;
|
|
180
180
|
}
|
|
181
181
|
/**
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-21bd01e1.js');
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
|
7
7
|
const constants = require('./constants-8f3504ec.js');
|
|
8
|
-
const taskbarElements = require('./taskbar-elements-
|
|
8
|
+
const taskbarElements = require('./taskbar-elements-8d38f43a.js');
|
|
9
9
|
const index$1 = require('./index-0e663819.js');
|
|
10
|
-
require('./index-
|
|
10
|
+
require('./index-fc7ca86c.js');
|
|
11
11
|
|
|
12
12
|
const snkCrudCss = ".sc-snk-crud-h{display:flex;flex-direction:column;height:100%;width:100%}";
|
|
13
13
|
|
|
@@ -17,14 +17,15 @@ const SnkCrud = class {
|
|
|
17
17
|
constructor(hostRef) {
|
|
18
18
|
index.registerInstance(this, hostRef);
|
|
19
19
|
this.actionClick = index.createEvent(this, "actionClick", 7);
|
|
20
|
+
this._dataUnit = undefined;
|
|
21
|
+
this._dataState = undefined;
|
|
20
22
|
this._viewMode = GRID_MODE.name;
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
23
|
+
this.configName = undefined;
|
|
24
|
+
this.actionsList = undefined;
|
|
25
|
+
this.taskbarManager = undefined;
|
|
26
|
+
this.recordsValidator = undefined;
|
|
27
|
+
this.statusResolver = undefined;
|
|
24
28
|
this.multipleSelection = true;
|
|
25
|
-
/**
|
|
26
|
-
* Altera o modo de apresentação dos botões do snk-taskbar.
|
|
27
|
-
*/
|
|
28
29
|
this.presentationMode = index$1.PresentationMode.PRIMARY;
|
|
29
30
|
}
|
|
30
31
|
/**
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index$1 = require('./index-
|
|
5
|
+
const index$1 = require('./index-21bd01e1.js');
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
|
7
7
|
const utils = require('@sankhyalabs/ezui/dist/collection/utils');
|
|
8
8
|
const index = require('./index-0e663819.js');
|
|
@@ -12,9 +12,9 @@ const filterItemType_enum = require('./filter-item-type.enum-3daf58d3.js');
|
|
|
12
12
|
const ezModalContainer = require('@sankhyalabs/ezui/dist/collection/components/ez-modal-container');
|
|
13
13
|
const DataType = require('@sankhyalabs/core/dist/dataunit/metadata/DataType');
|
|
14
14
|
const AuthorizationConfig = require('./AuthorizationConfig-79ffae4b.js');
|
|
15
|
-
const taskbarElements = require('./taskbar-elements-
|
|
15
|
+
const taskbarElements = require('./taskbar-elements-8d38f43a.js');
|
|
16
16
|
require('./_commonjsHelpers-537d719a.js');
|
|
17
|
-
require('./index-
|
|
17
|
+
require('./index-fc7ca86c.js');
|
|
18
18
|
|
|
19
19
|
class ItemBuilder {
|
|
20
20
|
constructor(getMessage, selectedNumber) {
|
|
@@ -247,9 +247,6 @@ const SnkDataExporter = class {
|
|
|
247
247
|
index.DataExporterOption.EXPORT_PAGE_TO_PDF,
|
|
248
248
|
index.DataExporterOption.EXPORT_PAGE_TO_XLS
|
|
249
249
|
];
|
|
250
|
-
/**
|
|
251
|
-
* Provedor das informações para exportação dos dados.
|
|
252
|
-
*/
|
|
253
250
|
this.provider = null;
|
|
254
251
|
}
|
|
255
252
|
async exportByEmail() {
|
|
@@ -643,6 +640,10 @@ const SnkFilterBar = class {
|
|
|
643
640
|
this._filtersComparator = (a, b) => {
|
|
644
641
|
return this._calculateSortIndex(b) - this._calculateSortIndex(a);
|
|
645
642
|
};
|
|
643
|
+
this.dataUnit = undefined;
|
|
644
|
+
this.configName = undefined;
|
|
645
|
+
this.filterConfig = undefined;
|
|
646
|
+
this.allowDefault = undefined;
|
|
646
647
|
this.scrollerLocked = false;
|
|
647
648
|
}
|
|
648
649
|
observeFilterConfig(newValue, oldValue) {
|
|
@@ -1007,6 +1008,9 @@ const SnkFilterItem = class {
|
|
|
1007
1008
|
this.detailIsVisible = false;
|
|
1008
1009
|
return false;
|
|
1009
1010
|
};
|
|
1011
|
+
this.detailIsVisible = undefined;
|
|
1012
|
+
this.config = undefined;
|
|
1013
|
+
this.getMessage = undefined;
|
|
1010
1014
|
}
|
|
1011
1015
|
observeDetailIsVisible(value) {
|
|
1012
1016
|
this.visibleChanged.emit(value);
|
|
@@ -1215,6 +1219,15 @@ const SnkFilterList = class {
|
|
|
1215
1219
|
this._detailIsVisible = false;
|
|
1216
1220
|
return false;
|
|
1217
1221
|
};
|
|
1222
|
+
this._filterArgument = undefined;
|
|
1223
|
+
this._showAll = undefined;
|
|
1224
|
+
this.label = undefined;
|
|
1225
|
+
this.iconName = undefined;
|
|
1226
|
+
this.items = undefined;
|
|
1227
|
+
this.getMessage = undefined;
|
|
1228
|
+
this.emptyText = undefined;
|
|
1229
|
+
this.findFilterText = undefined;
|
|
1230
|
+
this.buttonClass = undefined;
|
|
1218
1231
|
}
|
|
1219
1232
|
showDetail() {
|
|
1220
1233
|
this._preselection = -1;
|
|
@@ -1341,6 +1354,16 @@ const snkFilterModalCss = ".snk-filter__modal-container{width:359px;max-width:35
|
|
|
1341
1354
|
const SnkFilterModal = class {
|
|
1342
1355
|
constructor(hostRef) {
|
|
1343
1356
|
index$1.registerInstance(this, hostRef);
|
|
1357
|
+
this._filterArgument = undefined;
|
|
1358
|
+
this.getMessage = undefined;
|
|
1359
|
+
this.items = undefined;
|
|
1360
|
+
this.modalTitle = undefined;
|
|
1361
|
+
this.modalSubTitle = undefined;
|
|
1362
|
+
this.cancelButtonLabel = undefined;
|
|
1363
|
+
this.okButtonLabel = undefined;
|
|
1364
|
+
this.infoText = undefined;
|
|
1365
|
+
this.useSearch = undefined;
|
|
1366
|
+
this.processModalAction = undefined;
|
|
1344
1367
|
}
|
|
1345
1368
|
updateValue(id, value = undefined) {
|
|
1346
1369
|
this.items = this.items.map(item => {
|
|
@@ -1405,10 +1428,10 @@ const EzGridConfig = class {
|
|
|
1405
1428
|
this._selectedIndex = -1;
|
|
1406
1429
|
this._dataChanged = false;
|
|
1407
1430
|
this._componenteInternalKey = Date.now();
|
|
1408
|
-
/**
|
|
1409
|
-
* Aba selecionada das configurações da grade.
|
|
1410
|
-
*/
|
|
1411
1431
|
this.selectedIndex = 0;
|
|
1432
|
+
this.application = undefined;
|
|
1433
|
+
this.columns = undefined;
|
|
1434
|
+
this.config = undefined;
|
|
1412
1435
|
}
|
|
1413
1436
|
/* Creation Methods */
|
|
1414
1437
|
/**
|
|
@@ -1870,9 +1893,6 @@ const SelectBox = class {
|
|
|
1870
1893
|
constructor(hostRef) {
|
|
1871
1894
|
index$1.registerInstance(this, hostRef);
|
|
1872
1895
|
this.ezChange = index$1.createEvent(this, "ezChange", 7);
|
|
1873
|
-
/**
|
|
1874
|
-
* Determina a opção selecionada.
|
|
1875
|
-
*/
|
|
1876
1896
|
this.selectedOption = constants.ORDER_VALUES.none;
|
|
1877
1897
|
}
|
|
1878
1898
|
render() {
|
|
@@ -1890,10 +1910,6 @@ const SnkTaskbar = class {
|
|
|
1890
1910
|
constructor(hostRef) {
|
|
1891
1911
|
index$1.registerInstance(this, hostRef);
|
|
1892
1912
|
this.actionClick = index$1.createEvent(this, "actionClick", 7);
|
|
1893
|
-
/**
|
|
1894
|
-
* Altera o modo de apresentação dos botões do snk-taskbar.
|
|
1895
|
-
*/
|
|
1896
|
-
this.presentationMode = index.PresentationMode.PRIMARY;
|
|
1897
1913
|
this._titleKeyByElement = {
|
|
1898
1914
|
[taskbarElements.TaskbarElement.UPDATE]: "snkTaskbar.titleUpdate",
|
|
1899
1915
|
[taskbarElements.TaskbarElement.PREVIOUS]: "snkTaskbar.titlePrevious",
|
|
@@ -1909,6 +1925,15 @@ const SnkTaskbar = class {
|
|
|
1909
1925
|
[taskbarElements.TaskbarElement.FORM_MODE]: "snkTaskbar.titleFormMode",
|
|
1910
1926
|
[taskbarElements.TaskbarElement.CONFIGURATOR]: "snkTaskbar.titleConfigurator"
|
|
1911
1927
|
};
|
|
1928
|
+
this._permissions = undefined;
|
|
1929
|
+
this.configName = undefined;
|
|
1930
|
+
this.buttons = undefined;
|
|
1931
|
+
this.customButtons = undefined;
|
|
1932
|
+
this.actionsList = undefined;
|
|
1933
|
+
this.primaryButton = undefined;
|
|
1934
|
+
this.disabledButtons = undefined;
|
|
1935
|
+
this.dataUnit = undefined;
|
|
1936
|
+
this.presentationMode = index.PresentationMode.PRIMARY;
|
|
1912
1937
|
}
|
|
1913
1938
|
observeButtons() {
|
|
1914
1939
|
this._definitions = undefined;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-21bd01e1.js');
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
|
7
7
|
const utils = require('@sankhyalabs/ezui/dist/collection/utils');
|
|
8
8
|
const SnkMessageBuilder = require('./SnkMessageBuilder-c596bd9c.js');
|
|
@@ -17,10 +17,6 @@ const SnkDataUnit = class {
|
|
|
17
17
|
this.insertionMode = index.createEvent(this, "insertionMode", 3);
|
|
18
18
|
this.cancelEdition = index.createEvent(this, "cancelEdition", 3);
|
|
19
19
|
this._onDataUnitResolve = [];
|
|
20
|
-
/**
|
|
21
|
-
* Determina quantas linhas são retornadas por página.
|
|
22
|
-
*/
|
|
23
|
-
this.pageSize = 150;
|
|
24
20
|
this._dataUnitObserver = (action) => {
|
|
25
21
|
const duState = {
|
|
26
22
|
insertionMode: false,
|
|
@@ -59,6 +55,13 @@ const SnkDataUnit = class {
|
|
|
59
55
|
}
|
|
60
56
|
this._application.messagesBuilder.currentOperation = this.getMessageOperation();
|
|
61
57
|
};
|
|
58
|
+
this.dataState = undefined;
|
|
59
|
+
this.dataUnitName = undefined;
|
|
60
|
+
this.entityName = undefined;
|
|
61
|
+
this.pageSize = 150;
|
|
62
|
+
this.dataUnit = undefined;
|
|
63
|
+
this.beforeSave = undefined;
|
|
64
|
+
this.afterSave = undefined;
|
|
62
65
|
}
|
|
63
66
|
observePageSize() {
|
|
64
67
|
if (this.dataUnit) {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-21bd01e1.js');
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
|
7
7
|
|
|
8
8
|
const EmailInfoStep = ({ getMessage, changeInfo, data }) => {
|
|
@@ -58,8 +58,10 @@ const SnkExporterEmailSender = class {
|
|
|
58
58
|
secondButtonClass: "ez-button--primary"
|
|
59
59
|
}
|
|
60
60
|
];
|
|
61
|
+
this._config = undefined;
|
|
61
62
|
this._opened = false;
|
|
62
63
|
this._currentStep = 0;
|
|
64
|
+
this.getMessage = undefined;
|
|
63
65
|
}
|
|
64
66
|
open(config) {
|
|
65
67
|
var _a;
|
|
@@ -2,13 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-21bd01e1.js');
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
|
7
7
|
const filterItemType_enum = require('./filter-item-type.enum-3daf58d3.js');
|
|
8
8
|
|
|
9
9
|
const SnkFilterBinarySelect = class {
|
|
10
10
|
constructor(hostRef) {
|
|
11
11
|
index.registerInstance(this, hostRef);
|
|
12
|
+
this.value = undefined;
|
|
13
|
+
this.config = undefined;
|
|
12
14
|
}
|
|
13
15
|
isSelected(option) {
|
|
14
16
|
return this.value == undefined || this.value === option;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-21bd01e1.js');
|
|
6
6
|
const utils = require('@sankhyalabs/ezui/dist/collection/utils');
|
|
7
7
|
const filterItemType_enum = require('./filter-item-type.enum-3daf58d3.js');
|
|
8
8
|
const core = require('@sankhyalabs/core');
|
|
@@ -11,6 +11,8 @@ const SnkFilterDetail = class {
|
|
|
11
11
|
constructor(hostRef) {
|
|
12
12
|
index.registerInstance(this, hostRef);
|
|
13
13
|
this.filterChange = index.createEvent(this, "filterChange", 7);
|
|
14
|
+
this.config = undefined;
|
|
15
|
+
this.getMessage = undefined;
|
|
14
16
|
}
|
|
15
17
|
/**
|
|
16
18
|
* Exibe o componente snk-filter-detail.
|