@sankhyalabs/sankhyablocks 8.2.0-dev.5 → 8.2.0-dev.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{ConfigStorage-12397f18.js → ConfigStorage-349cf0fd.js} +2 -2
- package/dist/cjs/{DataFetcher-f2da1f79.js → DataFetcher-7ba52c1d.js} +12 -206
- package/dist/cjs/PrintUtils-bcaeb82f.js +215 -0
- package/dist/cjs/{SnkFormConfigManager-13f79e37.js → SnkFormConfigManager-9083c12f.js} +2 -2
- package/dist/cjs/{auth-fetcher-319a4cb2.js → auth-fetcher-718ca8b4.js} +1 -1
- package/dist/cjs/{dataunit-fetcher-e72068c1.js → dataunit-fetcher-076fcbf7.js} +1 -1
- package/dist/cjs/{form-config-fetcher-5d62ab62.js → form-config-fetcher-c7ec4ff9.js} +1 -1
- package/dist/cjs/index-f9e81701.js +4 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{pesquisa-fetcher-8c363096.js → pesquisa-fetcher-a9c5a2f5.js} +1 -1
- package/dist/cjs/sankhyablocks.cjs.js +1 -1
- package/dist/cjs/snk-actions-button.cjs.entry.js +4 -3
- package/dist/cjs/snk-application.cjs.entry.js +17 -6
- package/dist/cjs/snk-attach.cjs.entry.js +4 -3
- package/dist/cjs/snk-crud.cjs.entry.js +8 -6
- package/dist/cjs/snk-data-exporter.cjs.entry.js +2 -1
- package/dist/cjs/snk-detail-view.cjs.entry.js +10 -8
- package/dist/cjs/snk-filter-bar.cjs.entry.js +4 -3
- package/dist/cjs/snk-filter-modal-item.cjs.entry.js +4 -3
- package/dist/cjs/snk-form-config.cjs.entry.js +3 -2
- package/dist/cjs/snk-form.cjs.entry.js +5 -4
- package/dist/cjs/snk-grid-config.cjs.entry.js +4 -3
- package/dist/cjs/snk-grid.cjs.entry.js +9 -5
- package/dist/cjs/{snk-guides-viewer-a7cd6fda.js → snk-guides-viewer-18e9666c.js} +8 -7
- package/dist/cjs/snk-guides-viewer.cjs.entry.js +8 -7
- package/dist/cjs/snk-personalized-filter.cjs.entry.js +4 -3
- package/dist/cjs/snk-print-selector.cjs.entry.js +2 -4
- package/dist/cjs/snk-simple-crud.cjs.entry.js +6 -5
- package/dist/cjs/snk-taskbar-custom-elements.cjs.entry.js +20 -0
- package/dist/cjs/snk-taskbar.cjs.entry.js +69 -4
- package/dist/cjs/{taskbar-elements-b98dd6e9.js → taskbar-elements-39949c7a.js} +4 -4
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/snk-application/snk-application.js +60 -0
- package/dist/collection/components/snk-crud/snk-crud.js +6 -4
- package/dist/collection/components/snk-crud/subcomponents/snk-detail-view/snk-detail-view.js +19 -1
- package/dist/collection/components/snk-crud/subcomponents/snk-guides-viewer.js +20 -2
- package/dist/collection/components/snk-grid/snk-grid.js +57 -1
- package/dist/collection/components/snk-simple-crud/snk-simple-crud.js +1 -1
- package/dist/collection/components/snk-taskbar/elements/taskbar-elements.js +4 -4
- package/dist/collection/components/snk-taskbar/snk-taskbar-custom-elements.js +43 -0
- package/dist/collection/components/snk-taskbar/snk-taskbar.css +4 -0
- package/dist/collection/components/snk-taskbar/snk-taskbar.js +107 -4
- package/dist/collection/lib/http/data-fetcher/DataFetcher.js +10 -4
- package/dist/collection/lib/utils/PrintUtils.js +18 -9
- package/dist/components/DataFetcher.js +13 -206
- package/dist/components/PrintUtils.js +213 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +1 -0
- package/dist/components/snk-application2.js +11 -1
- package/dist/components/snk-crud.js +5 -3
- package/dist/components/snk-detail-view2.js +9 -5
- package/dist/components/snk-grid2.js +7 -1
- package/dist/components/snk-print-selector.js +1 -1
- package/dist/components/snk-simple-crud2.js +1 -1
- package/dist/components/snk-taskbar-custom-elements.d.ts +11 -0
- package/dist/components/snk-taskbar-custom-elements.js +35 -0
- package/dist/components/snk-taskbar2.js +78 -8
- package/dist/esm/{ConfigStorage-932ab366.js → ConfigStorage-8d420626.js} +2 -2
- package/dist/esm/{DataFetcher-7e18aa30.js → DataFetcher-e97b3942.js} +13 -206
- package/dist/esm/PrintUtils-3e4ff0f5.js +213 -0
- package/dist/esm/{SnkFormConfigManager-bb9afc3f.js → SnkFormConfigManager-4c6a5b41.js} +2 -2
- package/dist/esm/{auth-fetcher-6d9664b7.js → auth-fetcher-55e5cbce.js} +1 -1
- package/dist/esm/{dataunit-fetcher-91a4eb82.js → dataunit-fetcher-716a99ca.js} +1 -1
- package/dist/esm/{form-config-fetcher-aaaa79a6.js → form-config-fetcher-b69da2f1.js} +1 -1
- package/dist/esm/index-a7d3d3f1.js +4 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{pesquisa-fetcher-56b30fb4.js → pesquisa-fetcher-c9a53822.js} +1 -1
- package/dist/esm/sankhyablocks.js +1 -1
- package/dist/esm/snk-actions-button.entry.js +4 -3
- package/dist/esm/snk-application.entry.js +17 -6
- package/dist/esm/snk-attach.entry.js +4 -3
- package/dist/esm/snk-crud.entry.js +10 -8
- package/dist/esm/snk-data-exporter.entry.js +2 -1
- package/dist/esm/snk-detail-view.entry.js +10 -8
- package/dist/esm/snk-filter-bar.entry.js +4 -3
- package/dist/esm/snk-filter-modal-item.entry.js +4 -3
- package/dist/esm/snk-form-config.entry.js +3 -2
- package/dist/esm/snk-form.entry.js +5 -4
- package/dist/esm/snk-grid-config.entry.js +4 -3
- package/dist/esm/snk-grid.entry.js +9 -5
- package/dist/esm/{snk-guides-viewer-cc709b5f.js → snk-guides-viewer-2e97c0c3.js} +8 -7
- package/dist/esm/snk-guides-viewer.entry.js +8 -7
- package/dist/esm/snk-personalized-filter.entry.js +4 -3
- package/dist/esm/snk-print-selector.entry.js +1 -3
- package/dist/esm/snk-simple-crud.entry.js +6 -5
- package/dist/esm/snk-taskbar-custom-elements.entry.js +16 -0
- package/dist/esm/snk-taskbar.entry.js +69 -4
- package/dist/esm/{taskbar-elements-2c761819.js → taskbar-elements-0a6b8b95.js} +4 -4
- package/dist/sankhyablocks/p-0b19beb9.entry.js +1 -0
- package/dist/sankhyablocks/p-110136be.entry.js +1 -0
- package/dist/sankhyablocks/p-12e48665.entry.js +1 -0
- package/dist/sankhyablocks/p-236cd346.js +1 -0
- package/dist/sankhyablocks/p-34604220.entry.js +1 -0
- package/dist/sankhyablocks/{p-ed41b38c.js → p-41f81c72.js} +1 -1
- package/dist/sankhyablocks/p-4e701fa7.js +1 -0
- package/dist/sankhyablocks/{p-41e897f1.js → p-615874db.js} +1 -1
- package/dist/sankhyablocks/p-648a7c72.entry.js +1 -0
- package/dist/sankhyablocks/p-72fc257b.entry.js +1 -0
- package/dist/sankhyablocks/p-7453735e.entry.js +1 -0
- package/dist/sankhyablocks/p-776514a8.entry.js +11 -0
- package/dist/sankhyablocks/{p-a52a6c9d.js → p-81392ced.js} +1 -1
- package/dist/sankhyablocks/p-8d884fab.js +1 -0
- package/dist/sankhyablocks/p-a2854b5a.entry.js +1 -0
- package/dist/sankhyablocks/p-c149dca8.entry.js +1 -0
- package/dist/sankhyablocks/p-c303d74f.entry.js +1 -0
- package/dist/sankhyablocks/p-c51a4f28.entry.js +1 -0
- package/dist/sankhyablocks/{p-a2493d11.js → p-c9841939.js} +1 -1
- package/dist/sankhyablocks/p-ce6d7e3f.js +1 -0
- package/dist/sankhyablocks/p-cee68227.entry.js +1 -0
- package/dist/sankhyablocks/{p-2d333d22.js → p-e696a8f6.js} +1 -1
- package/dist/sankhyablocks/p-e6c00493.entry.js +1 -0
- package/dist/sankhyablocks/p-ecbb878e.entry.js +1 -0
- package/dist/sankhyablocks/{p-14eac6fe.js → p-f390386d.js} +1 -1
- package/dist/sankhyablocks/p-fbb4597a.entry.js +1 -0
- package/dist/sankhyablocks/p-ff2f2152.entry.js +1 -0
- package/dist/sankhyablocks/p-ff8778e6.entry.js +1 -0
- package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
- package/dist/types/components/snk-application/snk-application.d.ts +1 -9
- package/dist/types/components/snk-crud/snk-crud.d.ts +1 -0
- package/dist/types/components/snk-crud/subcomponents/snk-detail-view/snk-detail-view.d.ts +4 -0
- package/dist/types/components/snk-crud/subcomponents/snk-guides-viewer.d.ts +4 -0
- package/dist/types/components/snk-grid/snk-grid.d.ts +12 -0
- package/dist/types/components/snk-taskbar/processor/taskbar-processor.d.ts +2 -2
- package/dist/types/components/snk-taskbar/snk-taskbar-custom-elements.d.ts +7 -0
- package/dist/types/components/snk-taskbar/snk-taskbar.d.ts +23 -0
- package/dist/types/components.d.ts +78 -1
- package/dist/types/lib/utils/PrintUtils.d.ts +1 -0
- package/package.json +1 -1
- package/react/components.d.ts +1 -0
- package/react/components.js +1 -0
- package/react/components.js.map +1 -1
- package/dist/sankhyablocks/p-01739b21.entry.js +0 -1
- package/dist/sankhyablocks/p-02b89228.entry.js +0 -1
- package/dist/sankhyablocks/p-03bb1aea.entry.js +0 -1
- package/dist/sankhyablocks/p-05dbc70e.entry.js +0 -1
- package/dist/sankhyablocks/p-611aa624.entry.js +0 -1
- package/dist/sankhyablocks/p-66bb8c20.entry.js +0 -1
- package/dist/sankhyablocks/p-6f154396.entry.js +0 -1
- package/dist/sankhyablocks/p-787071a8.js +0 -1
- package/dist/sankhyablocks/p-8818d8f6.entry.js +0 -1
- package/dist/sankhyablocks/p-93f6ca04.entry.js +0 -1
- package/dist/sankhyablocks/p-951e98c9.entry.js +0 -1
- package/dist/sankhyablocks/p-b6003974.entry.js +0 -1
- package/dist/sankhyablocks/p-cfb33a4a.entry.js +0 -1
- package/dist/sankhyablocks/p-d53a9169.entry.js +0 -1
- package/dist/sankhyablocks/p-d7638f45.entry.js +0 -11
- package/dist/sankhyablocks/p-e64f3e17.entry.js +0 -1
- package/dist/sankhyablocks/p-efc10705.entry.js +0 -1
- package/dist/sankhyablocks/p-f74fe358.js +0 -1
- package/dist/sankhyablocks/p-f8e6b97e.js +0 -1
- package/dist/sankhyablocks/p-fa523d6b.entry.js +0 -1
@@ -1,8 +1,8 @@
|
|
1
1
|
'use strict';
|
2
2
|
|
3
|
-
const formConfigFetcher = require('./form-config-fetcher-
|
3
|
+
const formConfigFetcher = require('./form-config-fetcher-c7ec4ff9.js');
|
4
4
|
const filterItemType_enum = require('./filter-item-type.enum-aa823a00.js');
|
5
|
-
const DataFetcher = require('./DataFetcher-
|
5
|
+
const DataFetcher = require('./DataFetcher-7ba52c1d.js');
|
6
6
|
|
7
7
|
class GridConfigFetcher extends formConfigFetcher.ResourceFetcher {
|
8
8
|
constructor() {
|
@@ -3,6 +3,7 @@
|
|
3
3
|
const core = require('@sankhyalabs/core');
|
4
4
|
const _commonjsHelpers = require('./_commonjsHelpers-537d719a.js');
|
5
5
|
const UnitMetadata = require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
6
|
+
const PrintUtils = require('./PrintUtils-bcaeb82f.js');
|
6
7
|
|
7
8
|
var browserPonyfill = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
8
9
|
var global = typeof self !== 'undefined' ? self : _commonjsHelpers.commonjsGlobal;
|
@@ -6508,206 +6509,6 @@ class GraphQLRecaller {
|
|
6508
6509
|
}
|
6509
6510
|
}
|
6510
6511
|
|
6511
|
-
class PrintUtils {
|
6512
|
-
constructor() {
|
6513
|
-
this.appletImpressao = new AppletImpressao();
|
6514
|
-
}
|
6515
|
-
static getInstance() {
|
6516
|
-
if (!PrintUtils.instance) {
|
6517
|
-
PrintUtils.instance = new PrintUtils();
|
6518
|
-
}
|
6519
|
-
return PrintUtils.instance;
|
6520
|
-
}
|
6521
|
-
async processPendingPrinting(transactionId) {
|
6522
|
-
await this.findPendingPrints(transactionId);
|
6523
|
-
}
|
6524
|
-
async findPendingPrints(transactionId) {
|
6525
|
-
const requestBody = {
|
6526
|
-
transactionIds: [
|
6527
|
-
{
|
6528
|
-
transactionId: {
|
6529
|
-
$: transactionId
|
6530
|
-
}
|
6531
|
-
}
|
6532
|
-
]
|
6533
|
-
};
|
6534
|
-
const response = await DataFetcher.get().callServiceBroker(PrintUtils.SERVICE_FIND_PENDING_PRINTS, JSON.stringify(requestBody));
|
6535
|
-
const printJobData = this.parsePrintData(response);
|
6536
|
-
const pendingPrints = await this.processDirectPrint(printJobData);
|
6537
|
-
if (!pendingPrints.length)
|
6538
|
-
return;
|
6539
|
-
this.openSnkPrintSelector(Object.assign(Object.assign({}, printJobData), { pendingPrinters: pendingPrints }));
|
6540
|
-
}
|
6541
|
-
getLocalPrinters() {
|
6542
|
-
const localPrinters = this.appletImpressao.findLocalPrinters();
|
6543
|
-
const printers = [];
|
6544
|
-
for (const printerName of localPrinters) {
|
6545
|
-
printers.push({
|
6546
|
-
nome: printerName,
|
6547
|
-
printerUri: PrintUtils.LOCAL_SERVER_URI + printerName,
|
6548
|
-
isLocal: true
|
6549
|
-
});
|
6550
|
-
}
|
6551
|
-
return printers;
|
6552
|
-
}
|
6553
|
-
parsePrintData(payload) {
|
6554
|
-
const pendingPrintJobData = payload.pendindPrintJobData;
|
6555
|
-
if (!pendingPrintJobData)
|
6556
|
-
return undefined;
|
6557
|
-
let { printServers: { printServer }, pendingPrinters: { pendingPrinter } } = pendingPrintJobData;
|
6558
|
-
printServer = printServer ? (Array.isArray(printServer) ? printServer : [printServer]) : [];
|
6559
|
-
pendingPrinter = pendingPrinter ? (Array.isArray(pendingPrinter) ? pendingPrinter : [pendingPrinter]) : [];
|
6560
|
-
const normalizedPrintServer = printServer.map(item => {
|
6561
|
-
const printerList = Array.isArray(item.printerLocation) ? item.printerLocation : [item.printerLocation];
|
6562
|
-
return {
|
6563
|
-
printServerUri: item.printServerUri,
|
6564
|
-
printerList: printerList.map(this.normalize)
|
6565
|
-
};
|
6566
|
-
});
|
6567
|
-
const normalizedPendingPrinter = pendingPrinter.map(this.normalize);
|
6568
|
-
return {
|
6569
|
-
transactionId: pendingPrintJobData.transactionId.$,
|
6570
|
-
printServers: normalizedPrintServer,
|
6571
|
-
pendingPrinters: normalizedPendingPrinter,
|
6572
|
-
printServerActive: pendingPrintJobData.printServers.printServerActive === 'true'
|
6573
|
-
};
|
6574
|
-
}
|
6575
|
-
normalize(object) {
|
6576
|
-
const normalizedObject = {};
|
6577
|
-
Object.keys(object).forEach((key) => {
|
6578
|
-
normalizedObject[key] = PrintUtils.ENCODED_PROPERTIES.includes(key) ? window.atob(object[key].$) : object[key].$;
|
6579
|
-
});
|
6580
|
-
return normalizedObject;
|
6581
|
-
}
|
6582
|
-
processLocalPrinting(localPrintings) {
|
6583
|
-
const transactionIds = localPrintings.map((item) => item.transactionId);
|
6584
|
-
this.appletImpressao.doLocalPrinting(transactionIds.join());
|
6585
|
-
}
|
6586
|
-
async openSnkPrintSelector(printJobData) {
|
6587
|
-
let printSelector = document.querySelector('snk-print-selector');
|
6588
|
-
if (!printSelector) {
|
6589
|
-
printSelector = document.createElement('snk-print-selector');
|
6590
|
-
printSelector.setAttribute('id', core.StringUtils.generateUUID());
|
6591
|
-
window.document.body.appendChild(printSelector);
|
6592
|
-
}
|
6593
|
-
const { selectedPrinter, saveSubstitute } = await printSelector.openPrintSelector(printJobData);
|
6594
|
-
if (!selectedPrinter)
|
6595
|
-
return;
|
6596
|
-
const params = {
|
6597
|
-
transactionId: printJobData.transactionId,
|
6598
|
-
pendingPrinters: printJobData.pendingPrinters,
|
6599
|
-
printerUri: selectedPrinter.printerUri,
|
6600
|
-
saveSubstitutePrinters: saveSubstitute
|
6601
|
-
};
|
6602
|
-
await this.saveSubstitutePrinter(params);
|
6603
|
-
}
|
6604
|
-
async saveSubstitutePrinter(params) {
|
6605
|
-
const { transactionId, pendingPrinters, printerUri, saveSubstitutePrinters = false } = params;
|
6606
|
-
const parsedPendingPrinters = pendingPrinters.map((item) => ({
|
6607
|
-
printerUri: {
|
6608
|
-
$: item.printerUri || printerUri
|
6609
|
-
},
|
6610
|
-
originalPrinterName: {
|
6611
|
-
$: item.originalPrinterName
|
6612
|
-
},
|
6613
|
-
printJobCount: {
|
6614
|
-
$: item.printJobCount
|
6615
|
-
},
|
6616
|
-
docType: {
|
6617
|
-
$: item.docType
|
6618
|
-
},
|
6619
|
-
docTypeDescription: {
|
6620
|
-
$: item.docTypeDescription
|
6621
|
-
}
|
6622
|
-
}));
|
6623
|
-
const requestBody = {
|
6624
|
-
substitutePrintersRequest: {
|
6625
|
-
substitutePrinters: {
|
6626
|
-
pendingPrinter: parsedPendingPrinters
|
6627
|
-
},
|
6628
|
-
saveSubstitutePrinters: {
|
6629
|
-
$: saveSubstitutePrinters.toString()
|
6630
|
-
},
|
6631
|
-
transactionId: {
|
6632
|
-
$: transactionId
|
6633
|
-
}
|
6634
|
-
}
|
6635
|
-
};
|
6636
|
-
await DataFetcher.get().callServiceBroker(PrintUtils.SERVICE_SAVE_SUBSTITUTE_PRINTER, JSON.stringify(requestBody));
|
6637
|
-
}
|
6638
|
-
async processDirectPrint(printJobData) {
|
6639
|
-
const isWCRunning = this.appletImpressao.checkWebConnection();
|
6640
|
-
if (!isWCRunning) {
|
6641
|
-
return [];
|
6642
|
-
}
|
6643
|
-
const localPrinters = this.getLocalPrinters();
|
6644
|
-
if (!localPrinters.length)
|
6645
|
-
return [];
|
6646
|
-
const directPendingPrints = [];
|
6647
|
-
const pendingPrints = printJobData.pendingPrinters.filter(item => {
|
6648
|
-
const defaultPrinterName = this.getDefaultPrinterName(item.originalPrinterName);
|
6649
|
-
const isDirectPrint = !!localPrinters.find(localPrinter => localPrinter.nome === defaultPrinterName) || this.isPrinterNameAFile(defaultPrinterName);
|
6650
|
-
if (isDirectPrint) {
|
6651
|
-
directPendingPrints.push(Object.assign(Object.assign({}, item), { printerUri: PrintUtils.LOCAL_SERVER_URI + defaultPrinterName }));
|
6652
|
-
return false;
|
6653
|
-
}
|
6654
|
-
return true;
|
6655
|
-
});
|
6656
|
-
if (!directPendingPrints.length)
|
6657
|
-
return pendingPrints;
|
6658
|
-
const params = {
|
6659
|
-
transactionId: printJobData.transactionId,
|
6660
|
-
pendingPrinters: directPendingPrints
|
6661
|
-
};
|
6662
|
-
await this.saveSubstitutePrinter(params);
|
6663
|
-
return pendingPrints;
|
6664
|
-
}
|
6665
|
-
getDefaultPrinterName(printerName) {
|
6666
|
-
const defaultPrinterName = this.appletImpressao.getDefaultPrinter();
|
6667
|
-
const isDefaultPrinterName = /padr[aã]o/ig.test(printerName);
|
6668
|
-
return (defaultPrinterName && isDefaultPrinterName) ? defaultPrinterName : printerName;
|
6669
|
-
}
|
6670
|
-
isPrinterNameAFile(printerName) {
|
6671
|
-
const regExp = new RegExp("^(\w:)?[/\\\w\s]+?\.\w{3}$", "mis");
|
6672
|
-
return regExp.test(printerName);
|
6673
|
-
}
|
6674
|
-
}
|
6675
|
-
PrintUtils.SERVICE_FIND_PENDING_PRINTS = 'mge@PrintServiceSP.findPendingPrinters';
|
6676
|
-
PrintUtils.SERVICE_SAVE_SUBSTITUTE_PRINTER = 'mge@PrintServiceSP.saveSubstitutePrinter';
|
6677
|
-
PrintUtils.LOCAL_SERVER_URI = 'LOCAL:0/';
|
6678
|
-
PrintUtils.ENCODED_PROPERTIES = ['printerName', 'printerUri'];
|
6679
|
-
class AppletImpressao {
|
6680
|
-
constructor() {
|
6681
|
-
this.appletImpressao = document.getElementById('centralNotaAppletImpressao');
|
6682
|
-
}
|
6683
|
-
checkWebConnection() {
|
6684
|
-
if (!this.appletImpressao)
|
6685
|
-
return false;
|
6686
|
-
if (!this.appletImpressao.testRunningWC)
|
6687
|
-
return false;
|
6688
|
-
const isRunning = this.appletImpressao.testRunningWC();
|
6689
|
-
return !!isRunning;
|
6690
|
-
}
|
6691
|
-
findLocalPrinters() {
|
6692
|
-
if (!this.appletImpressao)
|
6693
|
-
return [];
|
6694
|
-
const localPrinters = this.appletImpressao.getLocalPrinters();
|
6695
|
-
if (!localPrinters)
|
6696
|
-
return [];
|
6697
|
-
return localPrinters.split(",");
|
6698
|
-
}
|
6699
|
-
doLocalPrinting(transactionIds) {
|
6700
|
-
if (!this.appletImpressao)
|
6701
|
-
return;
|
6702
|
-
this.appletImpressao.doLocalPrinting(transactionIds);
|
6703
|
-
}
|
6704
|
-
getDefaultPrinter() {
|
6705
|
-
if (!this.appletImpressao)
|
6706
|
-
return '';
|
6707
|
-
return this.appletImpressao.getPrintDefault();
|
6708
|
-
}
|
6709
|
-
}
|
6710
|
-
|
6711
6512
|
class DataFetcher {
|
6712
6513
|
constructor() {
|
6713
6514
|
this.GRAPHQL_PATH = `/${window.MGE_MODULE_NAME || 'mgefin-bff'}/graphql`;
|
@@ -6858,12 +6659,12 @@ class DataFetcher {
|
|
6858
6659
|
}
|
6859
6660
|
});
|
6860
6661
|
}
|
6861
|
-
processPrinting(payload) {
|
6662
|
+
async processPrinting(payload) {
|
6862
6663
|
if ((payload === null || payload === void 0 ? void 0 : payload.pendingPrinting) === 'true') {
|
6863
|
-
PrintUtils.getInstance().processPendingPrinting(payload === null || payload === void 0 ? void 0 : payload.transactionId);
|
6664
|
+
await PrintUtils.PrintUtils.getInstance().processPendingPrinting(payload === null || payload === void 0 ? void 0 : payload.transactionId);
|
6864
6665
|
}
|
6865
6666
|
if ('localPrintings' in payload) {
|
6866
|
-
PrintUtils.getInstance().processLocalPrinting(payload === null || payload === void 0 ? void 0 : payload.localPrintings);
|
6667
|
+
PrintUtils.PrintUtils.getInstance().processLocalPrinting(payload === null || payload === void 0 ? void 0 : payload.localPrintings);
|
6867
6668
|
}
|
6868
6669
|
}
|
6869
6670
|
getContext(module) {
|
@@ -6908,11 +6709,18 @@ class DataFetcher {
|
|
6908
6709
|
http.open("POST", url, true);
|
6909
6710
|
http.withCredentials = true;
|
6910
6711
|
http.send(core.ObjectUtils.objectToString(payloadJson));
|
6911
|
-
http.onreadystatechange = () => {
|
6712
|
+
http.onreadystatechange = async () => {
|
6912
6713
|
var _a;
|
6913
6714
|
if (http.readyState == 4 && http.status == 200) {
|
6914
6715
|
try {
|
6915
6716
|
const jsonResp = JSON.parse(http.responseText);
|
6717
|
+
/**
|
6718
|
+
* Este trecho difere do projeto HTML5 devido à decisão de adotar uma abordagem síncrona para esta chamada. Isso é justificado pelo fato de que, no cenário em questão, a abordagem assíncrona teria impactos negativos.
|
6719
|
+
*
|
6720
|
+
* Descrição do caso de uso:
|
6721
|
+
* Ao concluir um recebimento com cartão (Movimentação Financeira), é acionado um EzDialog de confirmação. Posteriormente, a PopUp de impressão é exibida, e, ao ser cancelada, gera a invocação de um novo EzDialog.
|
6722
|
+
*/
|
6723
|
+
await this.processPrinting(jsonResp);
|
6916
6724
|
if (this.isServiceBrokerError(jsonResp)) {
|
6917
6725
|
reject(this.processServiceBrokerErrorInfo(jsonResp));
|
6918
6726
|
}
|
@@ -6926,7 +6734,6 @@ class DataFetcher {
|
|
6926
6734
|
}
|
6927
6735
|
}
|
6928
6736
|
this.proccessServiceBorkerClientEvents(jsonResp === null || jsonResp === void 0 ? void 0 : jsonResp.clientEvents, serviceName, payloadJson, accept, reject);
|
6929
|
-
this.processPrinting(jsonResp);
|
6930
6737
|
}
|
6931
6738
|
catch (err) {
|
6932
6739
|
console.warn(`Erro ao executar serviço: ${err}`);
|
@@ -7120,6 +6927,5 @@ class WaitingRequest {
|
|
7120
6927
|
}
|
7121
6928
|
|
7122
6929
|
exports.DataFetcher = DataFetcher;
|
7123
|
-
exports.PrintUtils = PrintUtils;
|
7124
6930
|
exports.UrlUtils = UrlUtils;
|
7125
6931
|
exports.dist = dist;
|
@@ -0,0 +1,215 @@
|
|
1
|
+
'use strict';
|
2
|
+
|
3
|
+
const core = require('@sankhyalabs/core');
|
4
|
+
|
5
|
+
class PrintUtils {
|
6
|
+
constructor() {
|
7
|
+
this.appletImpressao = new AppletImpressao();
|
8
|
+
const application = core.ApplicationContext.getContextValue("__SNK__APPLICATION__");
|
9
|
+
application.getDataFetcher().then(result => this.DataFetcher = result);
|
10
|
+
}
|
11
|
+
static getInstance() {
|
12
|
+
if (!PrintUtils.instance) {
|
13
|
+
PrintUtils.instance = new PrintUtils();
|
14
|
+
}
|
15
|
+
return PrintUtils.instance;
|
16
|
+
}
|
17
|
+
async processPendingPrinting(transactionId) {
|
18
|
+
await this.findPendingPrints(transactionId);
|
19
|
+
}
|
20
|
+
async findPendingPrints(transactionId) {
|
21
|
+
const requestBody = {
|
22
|
+
transactionIds: [
|
23
|
+
{
|
24
|
+
transactionId: {
|
25
|
+
$: transactionId
|
26
|
+
}
|
27
|
+
}
|
28
|
+
]
|
29
|
+
};
|
30
|
+
Promise.resolve(this.DataFetcher).then(async (res) => {
|
31
|
+
res = await Promise.resolve(this.DataFetcher);
|
32
|
+
while (!res || !res.application) {
|
33
|
+
res = await Promise.resolve(this.DataFetcher);
|
34
|
+
}
|
35
|
+
const response = await res.application.callServiceBroker(PrintUtils.SERVICE_FIND_PENDING_PRINTS, JSON.stringify(requestBody));
|
36
|
+
const printJobData = this.parsePrintData(response);
|
37
|
+
const pendingPrints = await this.processDirectPrint(printJobData);
|
38
|
+
if (!pendingPrints.length)
|
39
|
+
return;
|
40
|
+
this.openSnkPrintSelector(Object.assign(Object.assign({}, printJobData), { pendingPrinters: pendingPrints }));
|
41
|
+
});
|
42
|
+
}
|
43
|
+
getLocalPrinters() {
|
44
|
+
const localPrinters = this.appletImpressao.findLocalPrinters();
|
45
|
+
const printers = [];
|
46
|
+
for (const printerName of localPrinters) {
|
47
|
+
printers.push({
|
48
|
+
nome: printerName,
|
49
|
+
printerUri: PrintUtils.LOCAL_SERVER_URI + printerName,
|
50
|
+
isLocal: true
|
51
|
+
});
|
52
|
+
}
|
53
|
+
return printers;
|
54
|
+
}
|
55
|
+
parsePrintData(payload) {
|
56
|
+
const pendingPrintJobData = payload.pendindPrintJobData;
|
57
|
+
if (!pendingPrintJobData)
|
58
|
+
return undefined;
|
59
|
+
let { printServers: { printServer }, pendingPrinters: { pendingPrinter } } = pendingPrintJobData;
|
60
|
+
printServer = printServer ? (Array.isArray(printServer) ? printServer : [printServer]) : [];
|
61
|
+
pendingPrinter = pendingPrinter ? (Array.isArray(pendingPrinter) ? pendingPrinter : [pendingPrinter]) : [];
|
62
|
+
const normalizedPrintServer = printServer.map(item => {
|
63
|
+
const printerList = Array.isArray(item.printerLocation) ? item.printerLocation : [item.printerLocation];
|
64
|
+
return {
|
65
|
+
printServerUri: item.printServerUri,
|
66
|
+
printerList: printerList.map(this.normalize)
|
67
|
+
};
|
68
|
+
});
|
69
|
+
const normalizedPendingPrinter = pendingPrinter.map(this.normalize);
|
70
|
+
return {
|
71
|
+
transactionId: pendingPrintJobData.transactionId.$,
|
72
|
+
printServers: normalizedPrintServer,
|
73
|
+
pendingPrinters: normalizedPendingPrinter,
|
74
|
+
printServerActive: pendingPrintJobData.printServers.printServerActive === 'true'
|
75
|
+
};
|
76
|
+
}
|
77
|
+
normalize(object) {
|
78
|
+
const normalizedObject = {};
|
79
|
+
Object.keys(object).forEach((key) => {
|
80
|
+
normalizedObject[key] = PrintUtils.ENCODED_PROPERTIES.includes(key) ? window.atob(object[key].$) : object[key].$;
|
81
|
+
});
|
82
|
+
return normalizedObject;
|
83
|
+
}
|
84
|
+
processLocalPrinting(localPrintings) {
|
85
|
+
const transactionIds = localPrintings.map((item) => item.transactionId);
|
86
|
+
this.appletImpressao.doLocalPrinting(transactionIds.join());
|
87
|
+
}
|
88
|
+
async openSnkPrintSelector(printJobData) {
|
89
|
+
let printSelector = document.querySelector('snk-print-selector');
|
90
|
+
if (!printSelector) {
|
91
|
+
printSelector = document.createElement('snk-print-selector');
|
92
|
+
printSelector.setAttribute('id', core.StringUtils.generateUUID());
|
93
|
+
window.document.body.appendChild(printSelector);
|
94
|
+
}
|
95
|
+
const { selectedPrinter, saveSubstitute } = await printSelector.openPrintSelector(printJobData);
|
96
|
+
if (!selectedPrinter)
|
97
|
+
return;
|
98
|
+
const params = {
|
99
|
+
transactionId: printJobData.transactionId,
|
100
|
+
pendingPrinters: printJobData.pendingPrinters,
|
101
|
+
printerUri: selectedPrinter.printerUri,
|
102
|
+
saveSubstitutePrinters: saveSubstitute
|
103
|
+
};
|
104
|
+
await this.saveSubstitutePrinter(params);
|
105
|
+
}
|
106
|
+
async saveSubstitutePrinter(params) {
|
107
|
+
const { transactionId, pendingPrinters, printerUri, saveSubstitutePrinters = false } = params;
|
108
|
+
const parsedPendingPrinters = pendingPrinters.map((item) => ({
|
109
|
+
printerUri: {
|
110
|
+
$: item.printerUri || printerUri
|
111
|
+
},
|
112
|
+
originalPrinterName: {
|
113
|
+
$: item.originalPrinterName
|
114
|
+
},
|
115
|
+
printJobCount: {
|
116
|
+
$: item.printJobCount
|
117
|
+
},
|
118
|
+
docType: {
|
119
|
+
$: item.docType
|
120
|
+
},
|
121
|
+
docTypeDescription: {
|
122
|
+
$: item.docTypeDescription
|
123
|
+
}
|
124
|
+
}));
|
125
|
+
const requestBody = {
|
126
|
+
substitutePrintersRequest: {
|
127
|
+
substitutePrinters: {
|
128
|
+
pendingPrinter: parsedPendingPrinters
|
129
|
+
},
|
130
|
+
saveSubstitutePrinters: {
|
131
|
+
$: saveSubstitutePrinters.toString()
|
132
|
+
},
|
133
|
+
transactionId: {
|
134
|
+
$: transactionId
|
135
|
+
}
|
136
|
+
}
|
137
|
+
};
|
138
|
+
Promise.resolve(this.DataFetcher).then(async (res) => {
|
139
|
+
await res.application.callServiceBroker(PrintUtils.SERVICE_SAVE_SUBSTITUTE_PRINTER, JSON.stringify(requestBody));
|
140
|
+
});
|
141
|
+
}
|
142
|
+
async processDirectPrint(printJobData) {
|
143
|
+
const isWCRunning = this.appletImpressao.checkWebConnection();
|
144
|
+
if (!isWCRunning) {
|
145
|
+
return [];
|
146
|
+
}
|
147
|
+
const localPrinters = this.getLocalPrinters();
|
148
|
+
if (!localPrinters.length)
|
149
|
+
return [];
|
150
|
+
const directPendingPrints = [];
|
151
|
+
const pendingPrints = printJobData.pendingPrinters.filter(item => {
|
152
|
+
const defaultPrinterName = this.getDefaultPrinterName(item.originalPrinterName);
|
153
|
+
const isDirectPrint = !!localPrinters.find(localPrinter => localPrinter.nome === defaultPrinterName) || this.isPrinterNameAFile(defaultPrinterName);
|
154
|
+
if (isDirectPrint) {
|
155
|
+
directPendingPrints.push(Object.assign(Object.assign({}, item), { printerUri: PrintUtils.LOCAL_SERVER_URI + defaultPrinterName }));
|
156
|
+
return false;
|
157
|
+
}
|
158
|
+
return true;
|
159
|
+
});
|
160
|
+
if (!directPendingPrints.length)
|
161
|
+
return pendingPrints;
|
162
|
+
const params = {
|
163
|
+
transactionId: printJobData.transactionId,
|
164
|
+
pendingPrinters: directPendingPrints
|
165
|
+
};
|
166
|
+
await this.saveSubstitutePrinter(params);
|
167
|
+
return pendingPrints;
|
168
|
+
}
|
169
|
+
getDefaultPrinterName(printerName) {
|
170
|
+
const defaultPrinterName = this.appletImpressao.getDefaultPrinter();
|
171
|
+
const isDefaultPrinterName = /padr[aã]o/ig.test(printerName);
|
172
|
+
return (defaultPrinterName && isDefaultPrinterName) ? defaultPrinterName : printerName;
|
173
|
+
}
|
174
|
+
isPrinterNameAFile(printerName) {
|
175
|
+
const regExp = new RegExp("^(\w:)?[/\\\w\s]+?\.\w{3}$", "mis");
|
176
|
+
return regExp.test(printerName);
|
177
|
+
}
|
178
|
+
}
|
179
|
+
PrintUtils.SERVICE_FIND_PENDING_PRINTS = 'mge@PrintServiceSP.findPendingPrinters';
|
180
|
+
PrintUtils.SERVICE_SAVE_SUBSTITUTE_PRINTER = 'mge@PrintServiceSP.saveSubstitutePrinter';
|
181
|
+
PrintUtils.LOCAL_SERVER_URI = 'LOCAL:0/';
|
182
|
+
PrintUtils.ENCODED_PROPERTIES = ['printerName', 'printerUri'];
|
183
|
+
class AppletImpressao {
|
184
|
+
constructor() {
|
185
|
+
this.appletImpressao = document.getElementById('centralNotaAppletImpressao');
|
186
|
+
}
|
187
|
+
checkWebConnection() {
|
188
|
+
if (!this.appletImpressao)
|
189
|
+
return false;
|
190
|
+
if (!this.appletImpressao.testRunningWC)
|
191
|
+
return false;
|
192
|
+
const isRunning = this.appletImpressao.testRunningWC();
|
193
|
+
return !!isRunning;
|
194
|
+
}
|
195
|
+
findLocalPrinters() {
|
196
|
+
if (!this.appletImpressao)
|
197
|
+
return [];
|
198
|
+
const localPrinters = this.appletImpressao.getLocalPrinters();
|
199
|
+
if (!localPrinters)
|
200
|
+
return [];
|
201
|
+
return localPrinters.split(",");
|
202
|
+
}
|
203
|
+
doLocalPrinting(transactionIds) {
|
204
|
+
if (!this.appletImpressao)
|
205
|
+
return;
|
206
|
+
this.appletImpressao.doLocalPrinting(transactionIds);
|
207
|
+
}
|
208
|
+
getDefaultPrinter() {
|
209
|
+
if (!this.appletImpressao)
|
210
|
+
return '';
|
211
|
+
return this.appletImpressao.getPrintDefault();
|
212
|
+
}
|
213
|
+
}
|
214
|
+
|
215
|
+
exports.PrintUtils = PrintUtils;
|
@@ -1,8 +1,8 @@
|
|
1
1
|
'use strict';
|
2
2
|
|
3
|
-
const ConfigStorage = require('./ConfigStorage-
|
3
|
+
const ConfigStorage = require('./ConfigStorage-349cf0fd.js');
|
4
4
|
const core = require('@sankhyalabs/core');
|
5
|
-
const formConfigFetcher = require('./form-config-fetcher-
|
5
|
+
const formConfigFetcher = require('./form-config-fetcher-c7ec4ff9.js');
|
6
6
|
|
7
7
|
class SnkFormConfigManager {
|
8
8
|
constructor(configName, resourceID, onConfigChange) {
|
@@ -1,7 +1,7 @@
|
|
1
1
|
'use strict';
|
2
2
|
|
3
3
|
const core = require('@sankhyalabs/core');
|
4
|
-
const formConfigFetcher = require('./form-config-fetcher-
|
4
|
+
const formConfigFetcher = require('./form-config-fetcher-c7ec4ff9.js');
|
5
5
|
|
6
6
|
class AuthFetcher extends formConfigFetcher.ResourceFetcher {
|
7
7
|
getData(resourceID) {
|
@@ -1,7 +1,7 @@
|
|
1
1
|
'use strict';
|
2
2
|
|
3
3
|
const core = require('@sankhyalabs/core');
|
4
|
-
const DataFetcher = require('./DataFetcher-
|
4
|
+
const DataFetcher = require('./DataFetcher-7ba52c1d.js');
|
5
5
|
const constants = require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
6
6
|
const UnitMetadata = require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
7
7
|
|
@@ -2184,6 +2184,10 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
2184
2184
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
2185
2185
|
/* webpackMode: "lazy" */
|
2186
2186
|
'./snk-print-selector.cjs.entry.js')); }).then(processMod, consoleError);
|
2187
|
+
case 'snk-taskbar-custom-elements.cjs':
|
2188
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
2189
|
+
/* webpackMode: "lazy" */
|
2190
|
+
'./snk-taskbar-custom-elements.cjs.entry.js')); }).then(processMod, consoleError);
|
2187
2191
|
case 'teste-pesquisa.cjs':
|
2188
2192
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
2189
2193
|
/* webpackMode: "lazy" */
|
package/dist/cjs/loader.cjs.js
CHANGED
@@ -14,7 +14,7 @@ const patchEsm = () => {
|
|
14
14
|
const defineCustomElements = (win, options) => {
|
15
15
|
if (typeof window === 'undefined') return Promise.resolve();
|
16
16
|
return patchEsm().then(() => {
|
17
|
-
return index.bootstrapLazy(JSON.parse("[[\"teste-pesquisa.cjs\",[[1,\"teste-pesquisa\"]]],[\"snk-filter-modal.cjs\",[[0,\"snk-filter-modal\",{\"getMessage\":[16],\"configName\":[1025,\"config-name\"],\"filters\":[1040],\"applyFilters\":[16],\"closeModal\":[16],\"addPersonalizedFilter\":[16],\"editPersonalizedFilter\":[16]}]]],[\"snk-actions-form.cjs\",[[2,\"snk-actions-form\",{\"action\":[16],\"applyParameters\":[16],\"dataUnit\":[32],\"openPopup\":[64]}]]],[\"snk-client-confirm.cjs\",[[2,\"snk-client-confirm\",{\"titleMessage\":[1,\"title-message\"],\"message\":[1],\"accept\":[16],\"cancel\":[16],\"openPopup\":[64]}]]],[\"snk-entity-list.cjs\",[[2,\"snk-entity-list\",{\"config\":[1040],\"rightListSlotBuilder\":[1040],\"maxHeightList\":[1,\"max-height-list\"],\"_searchValue\":[32],\"_ezListSource\":[32],\"reloadList\":[64]}]]],[\"snk-filter-binary-select.cjs\",[[0,\"snk-filter-binary-select\",{\"value\":[1544],\"config\":[16],\"presentationMode\":[2,\"presentation-mode\"],\"resetValues\":[64]},[[0,\"ezChange\",\"ezChangeListener\"]]]]],[\"snk-filter-list.cjs\",[[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\"]]]]],[\"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],\"getMessage\":[16],\"value\":[8],\"presentationMode\":[2,\"presentation-mode\"],\"show\":[64]},[[0,\"ezChange\",\"ezChangeListener\"]]]]],[\"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-personalized-filter-editor.cjs\",[[2,\"snk-personalized-filter-editor\",{\"messagesBuilder\":[1040],\"presentationMode\":[2,\"presentation-mode\"],\"config\":[16],\"value\":[1040],\"items\":[32],\"show\":[64]}]]],[\"snk-print-selector.cjs\",[[2,\"snk-print-selector\",{\"_printServerActive\":[32],\"_selectedPrinter\":[32],\"_remotePrintersDataSource\":[32],\"_localPrintersDataSource\":[32],\"_printJobData\":[32],\"openPrintSelector\":[64]}]]],[\"snk-filter-modal-item.cjs\",[[0,\"snk-filter-modal-item\",{\"filterItem\":[1040],\"configName\":[1025,\"config-name\"],\"resourceID\":[1,\"resource-i-d\"]}]]],[\"snk-detail-view.cjs\",[[2,\"snk-detail-view\",{\"formConfigManager\":[1040],\"dataUnitName\":[1,\"data-unit-name\"],\"resourceID\":[1,\"resource-i-d\"],\"guideItemPath\":[16],\"entityName\":[1,\"entity-name\"],\"label\":[1],\"dataUnit\":[1040],\"selectedForm\":[1025,\"selected-form\"],\"dataState\":[1040],\"messagesBuilder\":[1040],\"branchGuide\":[16],\"canEdit\":[4,\"can-edit\"],\"_disabledButtons\":[32],\"_currentView\":[32],\"attachmentRegisterKey\":[32],\"changeViewMode\":[64],\"configGrid\":[64],\"showUp\":[64]},[[0,\"snkContentCardChanged\",\"onContentCardChanged\"]]]]],[\"snk-configurator.cjs\",[[6,\"snk-configurator\",{\"showActionButtons\":[4,\"show-action-buttons\"],\"configName\":[1,\"config-name\"],\"resourceID\":[1,\"resource-i-d\"],\"viewMode\":[2,\"view-mode\"],\"messagesBuilder\":[1040],\"_opened\":[32],\"_permissions\":[32],\"open\":[64],\"close\":[64]}]]],[\"snk-pesquisa.cjs\",[[2,\"snk-pesquisa\",{\"searchLoader\":[16],\"selectItem\":[16],\"argument\":[1025],\"_itemList\":[32],\"_startLoading\":[32]}]]],[\"snk-filter-bar.cjs\",[[2,\"snk-filter-bar\",{\"dataUnit\":[1040],\"configName\":[1,\"config-name\"],\"resourceID\":[1,\"resource-i-d\"],\"filterConfig\":[1040],\"messagesBuilder\":[1040],\"allowDefault\":[32],\"scrollerLocked\":[32],\"showPersonalizedFilter\":[32],\"personalizedFilterId\":[32],\"reload\":[64]},[[0,\"filterChange\",\"filterChangeListener\"]]]]],[\"snk-select-box.cjs\",[[1,\"snk-select-box\",{\"selectedOption\":[1,\"selected-option\"]}]]],[\"snk-grid-config.cjs\",[[2,\"snk-grid-config\",{\"selectedIndex\":[1026,\"selected-index\"],\"application\":[16],\"columns\":[1040],\"config\":[1040],\"configName\":[1,\"config-name\"],\"resourceID\":[1,\"resource-i-d\"]}]]],[\"snk-config-options.cjs\",[[2,\"snk-config-options\",{\"fieldConfig\":[16],\"idConfig\":[513,\"id-config\"],\"dataUnit\":[16],\"messagesBuilder\":[1040],\"_defaultType\":[32]}]]],[\"snk-field-config.cjs\",[[2,\"snk-field-config\",{\"isConfigActive\":[16],\"fieldConfig\":[16],\"modeInsertion\":[516,\"mode-insertion\"],\"dataUnit\":[16],\"messagesBuilder\":[1040]}]]],[\"snk-tab-config.cjs\",[[6,\"snk-tab-config\",{\"selectedIndex\":[1538,\"selected-index\"],\"selectedTab\":[1537,\"selected-tab\"],\"tabs\":[1],\"tabItems\":[16],\"messagesBuilder\":[1040],\"_processedTabs\":[32],\"_activeEditText\":[32],\"_activeEditTextIndex\":[32],\"_actionsHide\":[32],\"_actionsShow\":[32]}]]],[\"snk-form-config.cjs\",[[2,\"snk-form-config\",{\"dataUnit\":[16],\"configManager\":[16],\"messagesBuilder\":[1040],\"_formConfigOptions\":[32],\"_fieldConfigSelected\":[32],\"_layoutFormConfig\":[32],\"_fieldsAvailable\":[32],\"_formConfig\":[32],\"_formConfigChanged\":[32],\"_optionFormConfigSelected\":[32],\"_optionFormConfigChanged\":[32],\"_tempGroups\":[32]}]]],[\"snk-personalized-filter.cjs\",[[2,\"snk-personalized-filter\",{\"messagesBuilder\":[1040],\"entityUri\":[1025,\"entity-uri\"],\"filterId\":[1025,\"filter-id\"],\"configName\":[1025,\"config-name\"],\"resourceID\":[1,\"resource-i-d\"],\"_filterAssistentMode\":[32],\"_filterAssistent\":[32],\"createPersonalizedFilter\":[64]}]]],[\"snk-filter-detail.cjs\",[[0,\"snk-filter-detail\",{\"config\":[1040],\"getMessage\":[16],\"show\":[64]}]]],[\"snk-filter-item.cjs\",[[0,\"snk-filter-item\",{\"config\":[1040],\"getMessage\":[16],\"detailIsVisible\":[32],\"showUp\":[64],\"hideDetail\":[64]},[[2,\"click\",\"clickListener\"],[2,\"mousedown\",\"mouseDownListener\"],[0,\"filterChange\",\"filterChangeListener\"]]]]],[\"snk-data-unit.cjs\",[[2,\"snk-data-unit\",{\"dataState\":[1040],\"messagesBuilder\":[1040],\"dataUnitName\":[1,\"data-unit-name\"],\"entityName\":[1,\"entity-name\"],\"pageSize\":[2,\"page-size\"],\"dataUnit\":[1040],\"beforeSave\":[16],\"afterSave\":[16],\"useCancelConfirm\":[4,\"use-cancel-confirm\"],\"ignoreSaveMessage\":[4,\"ignore-save-message\"],\"configName\":[1,\"config-name\"],\"resourceID\":[1,\"resource-i-d\"],\"getDataUnit\":[64],\"getSelectedRecordsIDsInfo\":[64]}]]],[\"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.cjs\",[[2,\"snk-data-exporter\",{\"provider\":[16],\"messagesBuilder\":[1040],\"_items\":[32],\"_showDropdown\":[32],\"_releasedToExport\":[32]}]]],[\"snk-actions-button.cjs\",[[2,\"snk-actions-button\",{\"_items\":[32],\"_showDropdown\":[32],\"_actions\":[32],\"_isOrderActions\":[32]}]]],[\"snk-taskbar.cjs\",[[6,\"snk-taskbar\",{\"configName\":[1,\"config-name\"],\"resourceID\":[1,\"resource-i-d\"],\"buttons\":[1],\"customButtons\":[16],\"actionsList\":[16],\"primaryButton\":[1,\"primary-button\"],\"disabledButtons\":[16],\"dataUnit\":[16],\"presentationMode\":[1537,\"presentation-mode\"],\"messagesBuilder\":[1040],\"_permissions\":[32]}]]],[\"snk-filter-field-search_2.cjs\",[[2,\"snk-filter-field-search\",{\"searchable\":[4],\"fieldsDataSource\":[16],\"breadcrumbItems\":[32],\"linkItems\":[32],\"fieldItems\":[32],\"searchEmpty\":[32],\"groupEmpty\":[32],\"show\":[64],\"applyFilter\":[64]}],[0,\"snk-filter-param-config\",{\"messagesBuilder\":[1040],\"_opened\":[32],\"_configType\":[32],\"_expressionItem\":[32],\"_informedInstance\":[32],\"_canSave\":[32],\"open\":[64],\"close\":[64]}]]],[\"snk-expression-group_2.cjs\",[[2,\"snk-expression-group\",{\"parentTop\":[1026,\"parent-top\"],\"group\":[1040],\"messagesBuilder\":[1040],\"filterId\":[1025,\"filter-id\"],\"entityURI\":[1025,\"entity-u-r-i\"],\"_conditionOperator\":[32],\"_group\":[32],\"_selfTop\":[32],\"canAddExpression\":[32],\"_showDashes\":[32],\"getExpressionGroup\":[64]},[[8,\"ezExpressionLayoutChanged\",\"todoCompletedHandler\"]]],[2,\"snk-expression-item\",{\"expression\":[16],\"canRemove\":[516,\"can-remove\"],\"messagesBuilder\":[1040],\"entityURI\":[1025,\"entity-u-r-i\"],\"_showValueVariable\":[32],\"_fieldSelected\":[32],\"_optionNotNull\":[32]}]]],[\"snk-grid.cjs\",[[6,\"snk-grid\",{\"columnFilterDataSource\":[1040],\"configName\":[1,\"config-name\"],\"resourceID\":[1,\"resource-i-d\"],\"selectionToastConfig\":[16],\"actionsList\":[16],\"isDetail\":[4,\"is-detail\"],\"taskbarManager\":[16],\"statusResolver\":[16],\"multipleSelection\":[4,\"multiple-selection\"],\"presentationMode\":[1,\"presentation-mode\"],\"messagesBuilder\":[1040],\"useEnterLikeTab\":[4,\"use-enter-like-tab\"],\"recordsValidator\":[16],\"canEdit\":[4,\"can-edit\"],\"_dataUnit\":[32],\"_dataState\":[32],\"_gridConfig\":[32],\"_popUpGridConfig\":[32],\"showConfig\":[64],\"hideConfig\":[64],\"setConfig\":[64],\"reloadFilterBar\":[64]}]]],[\"snk-guides-viewer.cjs\",[[2,\"snk-guides-viewer\",{\"dataUnit\":[16],\"dataState\":[16],\"configName\":[1,\"config-name\"],\"entityPath\":[1,\"entity-path\"],\"actionsList\":[16],\"recordsValidator\":[16],\"masterFormConfig\":[1040],\"selectedGuide\":[16],\"taskbarManager\":[16],\"messagesBuilder\":[1040],\"canEdit\":[4,\"can-edit\"],\"presentationMode\":[1,\"presentation-mode\"],\"resourceID\":[1,\"resource-i-d\"],\"_breadcrumbItems\":[32],\"_guides\":[32],\"_formEditorConfigManager\":[32],\"_formEditorDataUnit\":[32],\"showFormConfig\":[64]},[[2,\"actionClick\",\"onActionClick\"],[0,\"snkContentCardChanged\",\"onContentCardChanged\"]]]]],[\"snk-crud.cjs\",[[6,\"snk-crud\",{\"configName\":[1025,\"config-name\"],\"selectionToastConfig\":[16],\"showActionButtons\":[4,\"show-action-buttons\"],\"actionsList\":[16],\"taskbarManager\":[16],\"recordsValidator\":[16],\"statusResolver\":[16],\"multipleSelection\":[4,\"multiple-selection\"],\"presentationMode\":[1,\"presentation-mode\"],\"messagesBuilder\":[1040],\"useEnterLikeTab\":[4,\"use-enter-like-tab\"],\"_dataUnit\":[32],\"_dataState\":[32],\"attachmentRegisterKey\":[32],\"_currentViewMode\":[32],\"_canEdit\":[32],\"_resourceID\":[32],\"goToView\":[64],\"openConfigurator\":[64],\"closeConfigurator\":[64],\"reloadFilterBar\":[64]}]]],[\"snk-form.cjs\",[[2,\"snk-form\",{\"configName\":[1,\"config-name\"],\"recordsValidator\":[16],\"messagesBuilder\":[1040],\"resourceID\":[1,\"resource-i-d\"],\"_dataUnit\":[32],\"_dataState\":[32],\"_showFormConfig\":[32],\"_configManager\":[32],\"showConfig\":[64],\"hideConfig\":[64]}]]],[\"snk-application.cjs\",[[2,\"snk-application\",{\"messagesBuilder\":[1040],\"configName\":[1,\"config-name\"],\"isUserSup\":[64],\"initOnboarding\":[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],\"updateDataunitCache\":[64],\"getDataUnit\":[64],\"addClientEvent\":[64],\"removeClientEvent\":[64],\"hasClientEvent\":[64],\"callServiceBroker\":[64],\"getResourceID\":[64],\"getUserID\":[64],\"alert\":[64],\"error\":[64],\"success\":[64],\"message\":[64],\"confirm\":[64],\"info\":[64],\"loadTotals\":[64],\"executeSearch\":[64],\"executePreparedSearch\":[64],\"isDebugMode\":[64],\"getAppLabel\":[64],\"addSearchListener\":[64],\"importScript\":[64],\"getApplicationPath\":[64],\"executeSelectDistinct\":[64],\"getDataFetcher\":[64]}]]],[\"snk-simple-crud.cjs\",[[6,\"snk-simple-crud\",{\"dataState\":[16],\"dataUnit\":[16],\"mode\":[2],\"gridConfig\":[16],\"formConfig\":[16],\"multipleSelection\":[4,\"multiple-selection\"],\"useCancelConfirm\":[4,\"use-cancel-confirm\"],\"taskbarManager\":[16],\"messagesBuilder\":[1040],\"useEnterLikeTab\":[4,\"use-enter-like-tab\"],\"_currentViewMode\":[32],\"_config\":[32],\"goToView\":[64],\"setMetadata\":[64],\"setRecords\":[64],\"getRecords\":[64]},[[0,\"actionClick\",\"actionClickListener\"]]]]],[\"snk-attach.cjs\",[[2,\"snk-attach\",{\"registerKey\":[1,\"register-key\"],\"entityName\":[1,\"entity-name\"],\"messagesBuilder\":[1040],\"dataUnit\":[32],\"crudConfig\":[32]}]]],[\"snk-form-summary.cjs\",[[2,\"snk-form-summary\",{\"fixed\":[1540],\"contracted\":[1540],\"summary\":[16]}]]],[\"snk-form-view.cjs\",[[6,\"snk-form-view\",{\"levelPath\":[1,\"level-path\"],\"label\":[1],\"name\":[1],\"fields\":[16],\"formMetadata\":[8,\"form-metadata\"],\"dataUnit\":[16],\"contracted\":[4],\"fixed\":[1540],\"summaryFields\":[16],\"canExpand\":[4,\"can-expand\"],\"canFix\":[4,\"can-fix\"],\"recordsValidator\":[16],\"showUp\":[64]}]]],[\"snk-simple-bar.cjs\",[[6,\"snk-simple-bar\",{\"label\":[1],\"breadcrumbItens\":[16],\"messagesBuilder\":[1040]}]]],[\"snk-filter-advanced-mode_2.cjs\",[[2,\"snk-filter-assistent-mode\",{\"filterAssistent\":[1040],\"messagesBuilder\":[1040],\"filterId\":[1025,\"filter-id\"],\"entityUri\":[1025,\"entity-uri\"],\"application\":[1040]}],[2,\"snk-filter-advanced-mode\",{\"filterAssistent\":[1040],\"application\":[1040]}]]]]"), options);
|
17
|
+
return index.bootstrapLazy(JSON.parse("[[\"teste-pesquisa.cjs\",[[1,\"teste-pesquisa\"]]],[\"snk-filter-modal.cjs\",[[0,\"snk-filter-modal\",{\"getMessage\":[16],\"configName\":[1025,\"config-name\"],\"filters\":[1040],\"applyFilters\":[16],\"closeModal\":[16],\"addPersonalizedFilter\":[16],\"editPersonalizedFilter\":[16]}]]],[\"snk-actions-form.cjs\",[[2,\"snk-actions-form\",{\"action\":[16],\"applyParameters\":[16],\"dataUnit\":[32],\"openPopup\":[64]}]]],[\"snk-client-confirm.cjs\",[[2,\"snk-client-confirm\",{\"titleMessage\":[1,\"title-message\"],\"message\":[1],\"accept\":[16],\"cancel\":[16],\"openPopup\":[64]}]]],[\"snk-entity-list.cjs\",[[2,\"snk-entity-list\",{\"config\":[1040],\"rightListSlotBuilder\":[1040],\"maxHeightList\":[1,\"max-height-list\"],\"_searchValue\":[32],\"_ezListSource\":[32],\"reloadList\":[64]}]]],[\"snk-filter-binary-select.cjs\",[[0,\"snk-filter-binary-select\",{\"value\":[1544],\"config\":[16],\"presentationMode\":[2,\"presentation-mode\"],\"resetValues\":[64]},[[0,\"ezChange\",\"ezChangeListener\"]]]]],[\"snk-filter-list.cjs\",[[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\"]]]]],[\"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],\"getMessage\":[16],\"value\":[8],\"presentationMode\":[2,\"presentation-mode\"],\"show\":[64]},[[0,\"ezChange\",\"ezChangeListener\"]]]]],[\"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-personalized-filter-editor.cjs\",[[2,\"snk-personalized-filter-editor\",{\"messagesBuilder\":[1040],\"presentationMode\":[2,\"presentation-mode\"],\"config\":[16],\"value\":[1040],\"items\":[32],\"show\":[64]}]]],[\"snk-print-selector.cjs\",[[2,\"snk-print-selector\",{\"_printServerActive\":[32],\"_selectedPrinter\":[32],\"_remotePrintersDataSource\":[32],\"_localPrintersDataSource\":[32],\"_printJobData\":[32],\"openPrintSelector\":[64]}]]],[\"snk-taskbar-custom-elements.cjs\",[[6,\"snk-taskbar-custom-elements\",{\"slot\":[1]}]]],[\"snk-filter-modal-item.cjs\",[[0,\"snk-filter-modal-item\",{\"filterItem\":[1040],\"configName\":[1025,\"config-name\"],\"resourceID\":[1,\"resource-i-d\"]}]]],[\"snk-filter-detail.cjs\",[[0,\"snk-filter-detail\",{\"config\":[1040],\"getMessage\":[16],\"show\":[64]}]]],[\"snk-simple-bar.cjs\",[[6,\"snk-simple-bar\",{\"label\":[1],\"breadcrumbItens\":[16],\"messagesBuilder\":[1040]}]]],[\"snk-detail-view.cjs\",[[6,\"snk-detail-view\",{\"formConfigManager\":[1040],\"dataUnitName\":[1,\"data-unit-name\"],\"resourceID\":[1,\"resource-i-d\"],\"guideItemPath\":[16],\"entityName\":[1,\"entity-name\"],\"label\":[1],\"dataUnit\":[1040],\"selectedForm\":[1025,\"selected-form\"],\"dataState\":[1040],\"messagesBuilder\":[1040],\"branchGuide\":[16],\"canEdit\":[4,\"can-edit\"],\"taskbarCustomContainerId\":[1,\"taskbar-custom-container-id\"],\"_disabledButtons\":[32],\"_currentView\":[32],\"attachmentRegisterKey\":[32],\"changeViewMode\":[64],\"configGrid\":[64],\"showUp\":[64]},[[0,\"snkContentCardChanged\",\"onContentCardChanged\"]]]]],[\"snk-configurator.cjs\",[[6,\"snk-configurator\",{\"showActionButtons\":[4,\"show-action-buttons\"],\"configName\":[1,\"config-name\"],\"resourceID\":[1,\"resource-i-d\"],\"viewMode\":[2,\"view-mode\"],\"messagesBuilder\":[1040],\"_opened\":[32],\"_permissions\":[32],\"open\":[64],\"close\":[64]}]]],[\"snk-pesquisa.cjs\",[[2,\"snk-pesquisa\",{\"searchLoader\":[16],\"selectItem\":[16],\"argument\":[1025],\"_itemList\":[32],\"_startLoading\":[32]}]]],[\"snk-filter-field-search_2.cjs\",[[2,\"snk-filter-field-search\",{\"searchable\":[4],\"fieldsDataSource\":[16],\"breadcrumbItems\":[32],\"linkItems\":[32],\"fieldItems\":[32],\"searchEmpty\":[32],\"groupEmpty\":[32],\"show\":[64],\"applyFilter\":[64]}],[0,\"snk-filter-param-config\",{\"messagesBuilder\":[1040],\"_opened\":[32],\"_configType\":[32],\"_expressionItem\":[32],\"_informedInstance\":[32],\"_canSave\":[32],\"open\":[64],\"close\":[64]}]]],[\"snk-expression-group_2.cjs\",[[2,\"snk-expression-group\",{\"parentTop\":[1026,\"parent-top\"],\"group\":[1040],\"messagesBuilder\":[1040],\"filterId\":[1025,\"filter-id\"],\"entityURI\":[1025,\"entity-u-r-i\"],\"_conditionOperator\":[32],\"_group\":[32],\"_selfTop\":[32],\"canAddExpression\":[32],\"_showDashes\":[32],\"getExpressionGroup\":[64]},[[8,\"ezExpressionLayoutChanged\",\"todoCompletedHandler\"]]],[2,\"snk-expression-item\",{\"expression\":[16],\"canRemove\":[516,\"can-remove\"],\"messagesBuilder\":[1040],\"entityURI\":[1025,\"entity-u-r-i\"],\"_showValueVariable\":[32],\"_fieldSelected\":[32],\"_optionNotNull\":[32]}]]],[\"snk-filter-advanced-mode_2.cjs\",[[2,\"snk-filter-assistent-mode\",{\"filterAssistent\":[1040],\"messagesBuilder\":[1040],\"filterId\":[1025,\"filter-id\"],\"entityUri\":[1025,\"entity-uri\"],\"application\":[1040]}],[2,\"snk-filter-advanced-mode\",{\"filterAssistent\":[1040],\"application\":[1040]}]]],[\"snk-personalized-filter.cjs\",[[2,\"snk-personalized-filter\",{\"messagesBuilder\":[1040],\"entityUri\":[1025,\"entity-uri\"],\"filterId\":[1025,\"filter-id\"],\"configName\":[1025,\"config-name\"],\"resourceID\":[1,\"resource-i-d\"],\"_filterAssistentMode\":[32],\"_filterAssistent\":[32],\"createPersonalizedFilter\":[64]}]]],[\"snk-filter-bar.cjs\",[[2,\"snk-filter-bar\",{\"dataUnit\":[1040],\"configName\":[1,\"config-name\"],\"resourceID\":[1,\"resource-i-d\"],\"filterConfig\":[1040],\"messagesBuilder\":[1040],\"allowDefault\":[32],\"scrollerLocked\":[32],\"showPersonalizedFilter\":[32],\"personalizedFilterId\":[32],\"reload\":[64]},[[0,\"filterChange\",\"filterChangeListener\"]]]]],[\"snk-config-options.cjs\",[[2,\"snk-config-options\",{\"fieldConfig\":[16],\"idConfig\":[513,\"id-config\"],\"dataUnit\":[16],\"messagesBuilder\":[1040],\"_defaultType\":[32]}]]],[\"snk-field-config.cjs\",[[2,\"snk-field-config\",{\"isConfigActive\":[16],\"fieldConfig\":[16],\"modeInsertion\":[516,\"mode-insertion\"],\"dataUnit\":[16],\"messagesBuilder\":[1040]}]]],[\"snk-tab-config.cjs\",[[6,\"snk-tab-config\",{\"selectedIndex\":[1538,\"selected-index\"],\"selectedTab\":[1537,\"selected-tab\"],\"tabs\":[1],\"tabItems\":[16],\"messagesBuilder\":[1040],\"_processedTabs\":[32],\"_activeEditText\":[32],\"_activeEditTextIndex\":[32],\"_actionsHide\":[32],\"_actionsShow\":[32]}]]],[\"snk-form-config.cjs\",[[2,\"snk-form-config\",{\"dataUnit\":[16],\"configManager\":[16],\"messagesBuilder\":[1040],\"_formConfigOptions\":[32],\"_fieldConfigSelected\":[32],\"_layoutFormConfig\":[32],\"_fieldsAvailable\":[32],\"_formConfig\":[32],\"_formConfigChanged\":[32],\"_optionFormConfigSelected\":[32],\"_optionFormConfigChanged\":[32],\"_tempGroups\":[32]}]]],[\"snk-select-box.cjs\",[[1,\"snk-select-box\",{\"selectedOption\":[1,\"selected-option\"]}]]],[\"snk-grid-config.cjs\",[[2,\"snk-grid-config\",{\"selectedIndex\":[1026,\"selected-index\"],\"application\":[16],\"columns\":[1040],\"config\":[1040],\"configName\":[1,\"config-name\"],\"resourceID\":[1,\"resource-i-d\"]}]]],[\"snk-filter-item.cjs\",[[0,\"snk-filter-item\",{\"config\":[1040],\"getMessage\":[16],\"detailIsVisible\":[32],\"showUp\":[64],\"hideDetail\":[64]},[[2,\"click\",\"clickListener\"],[2,\"mousedown\",\"mouseDownListener\"],[0,\"filterChange\",\"filterChangeListener\"]]]]],[\"snk-data-unit.cjs\",[[2,\"snk-data-unit\",{\"dataState\":[1040],\"messagesBuilder\":[1040],\"dataUnitName\":[1,\"data-unit-name\"],\"entityName\":[1,\"entity-name\"],\"pageSize\":[2,\"page-size\"],\"dataUnit\":[1040],\"beforeSave\":[16],\"afterSave\":[16],\"useCancelConfirm\":[4,\"use-cancel-confirm\"],\"ignoreSaveMessage\":[4,\"ignore-save-message\"],\"configName\":[1,\"config-name\"],\"resourceID\":[1,\"resource-i-d\"],\"getDataUnit\":[64],\"getSelectedRecordsIDsInfo\":[64]}]]],[\"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.cjs\",[[2,\"snk-data-exporter\",{\"provider\":[16],\"messagesBuilder\":[1040],\"_items\":[32],\"_showDropdown\":[32],\"_releasedToExport\":[32]}]]],[\"snk-taskbar.cjs\",[[6,\"snk-taskbar\",{\"customSlotId\":[1,\"custom-slot-id\"],\"customContainerId\":[1,\"custom-container-id\"],\"configName\":[1,\"config-name\"],\"resourceID\":[1,\"resource-i-d\"],\"buttons\":[1],\"customButtons\":[16],\"actionsList\":[16],\"primaryButton\":[1,\"primary-button\"],\"disabledButtons\":[16],\"dataUnit\":[16],\"presentationMode\":[1537,\"presentation-mode\"],\"messagesBuilder\":[1040],\"_permissions\":[32],\"_customElements\":[32],\"_customElementsId\":[32],\"_slotContainer\":[32]}]]],[\"snk-grid.cjs\",[[6,\"snk-grid\",{\"columnFilterDataSource\":[1040],\"configName\":[1,\"config-name\"],\"resourceID\":[1,\"resource-i-d\"],\"selectionToastConfig\":[16],\"actionsList\":[16],\"isDetail\":[4,\"is-detail\"],\"taskbarManager\":[16],\"statusResolver\":[16],\"multipleSelection\":[4,\"multiple-selection\"],\"presentationMode\":[1,\"presentation-mode\"],\"messagesBuilder\":[1040],\"useEnterLikeTab\":[4,\"use-enter-like-tab\"],\"recordsValidator\":[16],\"canEdit\":[4,\"can-edit\"],\"taskbarCustomContainerId\":[1,\"taskbar-custom-container-id\"],\"gridHeaderCustomSlotId\":[1,\"grid-header-custom-slot-id\"],\"topTaskbarCustomSlotId\":[1,\"top-taskbar-custom-slot-id\"],\"_dataUnit\":[32],\"_dataState\":[32],\"_gridConfig\":[32],\"_popUpGridConfig\":[32],\"showConfig\":[64],\"hideConfig\":[64],\"setConfig\":[64],\"reloadFilterBar\":[64]}]]],[\"snk-guides-viewer.cjs\",[[6,\"snk-guides-viewer\",{\"dataUnit\":[16],\"dataState\":[16],\"configName\":[1,\"config-name\"],\"entityPath\":[1,\"entity-path\"],\"actionsList\":[16],\"recordsValidator\":[16],\"masterFormConfig\":[1040],\"selectedGuide\":[16],\"taskbarManager\":[16],\"messagesBuilder\":[1040],\"canEdit\":[4,\"can-edit\"],\"presentationMode\":[1,\"presentation-mode\"],\"resourceID\":[1,\"resource-i-d\"],\"detailTaskbarCustomContainerId\":[1,\"detail-taskbar-custom-container-id\"],\"_breadcrumbItems\":[32],\"_guides\":[32],\"_formEditorConfigManager\":[32],\"_formEditorDataUnit\":[32],\"showFormConfig\":[64]},[[2,\"actionClick\",\"onActionClick\"],[0,\"snkContentCardChanged\",\"onContentCardChanged\"]]]]],[\"snk-crud.cjs\",[[6,\"snk-crud\",{\"configName\":[1025,\"config-name\"],\"selectionToastConfig\":[16],\"showActionButtons\":[4,\"show-action-buttons\"],\"actionsList\":[16],\"taskbarManager\":[16],\"recordsValidator\":[16],\"statusResolver\":[16],\"multipleSelection\":[4,\"multiple-selection\"],\"presentationMode\":[1,\"presentation-mode\"],\"messagesBuilder\":[1040],\"useEnterLikeTab\":[4,\"use-enter-like-tab\"],\"_dataUnit\":[32],\"_dataState\":[32],\"attachmentRegisterKey\":[32],\"_currentViewMode\":[32],\"_canEdit\":[32],\"_resourceID\":[32],\"customContainerId\":[32],\"goToView\":[64],\"openConfigurator\":[64],\"closeConfigurator\":[64],\"reloadFilterBar\":[64]}]]],[\"snk-form.cjs\",[[2,\"snk-form\",{\"configName\":[1,\"config-name\"],\"recordsValidator\":[16],\"messagesBuilder\":[1040],\"resourceID\":[1,\"resource-i-d\"],\"_dataUnit\":[32],\"_dataState\":[32],\"_showFormConfig\":[32],\"_configManager\":[32],\"showConfig\":[64],\"hideConfig\":[64]}]]],[\"snk-application.cjs\",[[2,\"snk-application\",{\"messagesBuilder\":[1040],\"configName\":[1,\"config-name\"],\"isUserSup\":[64],\"callServiceBroker\":[64],\"initOnboarding\":[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],\"updateDataunitCache\":[64],\"getDataUnit\":[64],\"addClientEvent\":[64],\"removeClientEvent\":[64],\"hasClientEvent\":[64],\"getResourceID\":[64],\"getUserID\":[64],\"alert\":[64],\"error\":[64],\"success\":[64],\"message\":[64],\"confirm\":[64],\"info\":[64],\"loadTotals\":[64],\"executeSearch\":[64],\"executePreparedSearch\":[64],\"isDebugMode\":[64],\"getAppLabel\":[64],\"addSearchListener\":[64],\"importScript\":[64],\"getApplicationPath\":[64],\"executeSelectDistinct\":[64],\"getDataFetcher\":[64]}]]],[\"snk-simple-crud.cjs\",[[6,\"snk-simple-crud\",{\"dataState\":[16],\"dataUnit\":[16],\"mode\":[2],\"gridConfig\":[16],\"formConfig\":[16],\"multipleSelection\":[4,\"multiple-selection\"],\"useCancelConfirm\":[4,\"use-cancel-confirm\"],\"taskbarManager\":[16],\"messagesBuilder\":[1040],\"useEnterLikeTab\":[4,\"use-enter-like-tab\"],\"_currentViewMode\":[32],\"_config\":[32],\"goToView\":[64],\"setMetadata\":[64],\"setRecords\":[64],\"getRecords\":[64]},[[0,\"actionClick\",\"actionClickListener\"]]]]],[\"snk-attach.cjs\",[[2,\"snk-attach\",{\"registerKey\":[1,\"register-key\"],\"entityName\":[1,\"entity-name\"],\"messagesBuilder\":[1040],\"dataUnit\":[32],\"crudConfig\":[32]}]]],[\"snk-form-summary.cjs\",[[2,\"snk-form-summary\",{\"fixed\":[1540],\"contracted\":[1540],\"summary\":[16]}]]],[\"snk-form-view.cjs\",[[6,\"snk-form-view\",{\"levelPath\":[1,\"level-path\"],\"label\":[1],\"name\":[1],\"fields\":[16],\"formMetadata\":[8,\"form-metadata\"],\"dataUnit\":[16],\"contracted\":[4],\"fixed\":[1540],\"summaryFields\":[16],\"canExpand\":[4,\"can-expand\"],\"canFix\":[4,\"can-fix\"],\"recordsValidator\":[16],\"showUp\":[64]}]]],[\"snk-actions-button.cjs\",[[2,\"snk-actions-button\",{\"_items\":[32],\"_showDropdown\":[32],\"_actions\":[32],\"_isOrderActions\":[32]}]]]]"), options);
|
18
18
|
});
|
19
19
|
};
|
20
20
|
|