@sankhyalabs/sankhyablocks 1.4.0-beta.1 → 1.4.0-beta.3
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/{SnkMessageBuilder-7717f1e4.js → SnkMessageBuilder-d8215915.js} +14 -119
- package/dist/cjs/{filter-item-type.enum-e2e1bc5b.js → filter-item-type.enum-3daf58d3.js} +2 -0
- package/dist/cjs/{index-b0b676c5.js → index-6fcf07f3.js} +159 -1515
- package/dist/cjs/loader.cjs.js +2 -18
- package/dist/cjs/sankhyablocks.cjs.js +4 -116
- package/dist/cjs/snk-application.cjs.entry.js +84 -230
- package/dist/cjs/snk-crud.cjs.entry.js +3 -3
- package/dist/cjs/snk-data-unit.cjs.entry.js +24 -32
- package/dist/cjs/snk-filter-bar_5.cjs.entry.js +902 -0
- package/dist/cjs/snk-filter-binary-select.cjs.entry.js +2 -2
- package/dist/cjs/snk-filter-detail.cjs.entry.js +38 -3
- package/dist/cjs/snk-filter-multi-select.cjs.entry.js +2 -2
- package/dist/cjs/snk-filter-number.cjs.entry.js +2 -2
- package/dist/cjs/snk-filter-period.cjs.entry.js +2 -2
- package/dist/cjs/snk-filter-personalized.cjs.entry.js +90 -0
- package/dist/cjs/snk-filter-search.cjs.entry.js +4 -4
- package/dist/cjs/snk-filter-text.cjs.entry.js +1 -1
- package/dist/cjs/{snk-form.cjs.entry.js → snk-form_2.cjs.entry.js} +119 -5
- package/dist/cjs/snk-pesquisa.cjs.entry.js +5 -5
- package/dist/cjs/{taskbar-elements-283c737e.js → taskbar-elements-aedfeae6.js} +1 -1
- package/dist/cjs/teste-pesquisa.cjs.entry.js +5 -5
- package/dist/collection/collection-manifest.json +2 -0
- package/dist/collection/components/snk-application/snk-application.js +54 -7
- package/dist/collection/components/snk-crud/snk-crud.js +2 -4
- package/dist/collection/components/snk-data-unit/snk-data-unit.js +0 -27
- package/dist/collection/components/snk-filter-bar/filter-item/dataunitfilter/data-unit-filter-builder.js +100 -0
- package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-personalized.js +161 -0
- package/dist/collection/components/snk-filter-bar/filter-item/filter-item-type.enum.js +2 -0
- package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-detail.js +36 -1
- package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-item.js +32 -9
- package/dist/collection/components/snk-filter-bar/filter-modal/snk-filter-modal.js +196 -0
- package/dist/collection/components/snk-filter-bar/snk-filter-bar.css +22 -0
- package/dist/collection/components/snk-filter-bar/snk-filter-bar.js +238 -139
- package/dist/collection/components/snk-grid/snk-grid.js +2 -4
- package/dist/collection/lib/http/data-fetcher/fetchers/filter-bar-config-fetcher.js +18 -10
- package/dist/collection/lib/message/resources/snk-filter-bar.msg.js +14 -2
- package/dist/components/SnkMessageBuilder.js +15 -119
- package/dist/components/filter-item-type.enum.js +2 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.js +2 -4
- package/dist/components/snk-application2.js +47 -191
- package/dist/components/snk-crud.js +16 -10
- package/dist/components/snk-data-unit.js +3 -12
- package/dist/components/snk-filter-bar2.js +342 -146
- package/dist/components/snk-filter-detail2.js +36 -1
- package/dist/components/snk-filter-item2.js +33 -10
- package/dist/components/snk-filter-list2.js +1 -1
- package/dist/components/snk-filter-modal.d.ts +11 -0
- package/dist/components/snk-filter-modal.js +6 -0
- package/dist/components/snk-filter-modal2.js +58 -0
- package/dist/components/snk-filter-personalized.d.ts +11 -0
- package/dist/components/snk-filter-personalized.js +108 -0
- package/dist/components/snk-filter-search.js +1 -1
- package/dist/components/snk-form2.js +1 -1
- package/dist/components/snk-grid2.js +16 -10
- package/dist/components/snk-pesquisa2.js +1 -1
- package/dist/components/snk-taskbar2.js +1 -1
- package/dist/components/teste-pesquisa.js +1 -1
- package/dist/{sankhyablocks/SnkMessageBuilder-a7da466b.js → esm/SnkMessageBuilder-35a20271.js} +15 -119
- package/dist/esm/{filter-item-type.enum-61fbf80a.js → filter-item-type.enum-a79b2fa8.js} +2 -0
- package/dist/{sankhyablocks/index-2b4d2d14.js → esm/index-81dda3cf.js} +160 -1508
- package/dist/esm/loader.js +2 -18
- package/dist/esm/sankhyablocks.js +4 -116
- package/dist/esm/snk-application.entry.js +46 -192
- package/dist/esm/snk-crud.entry.js +2 -2
- package/dist/esm/snk-data-unit.entry.js +4 -12
- package/dist/esm/snk-filter-bar_5.entry.js +894 -0
- package/dist/esm/snk-filter-binary-select.entry.js +2 -2
- package/dist/esm/snk-filter-detail.entry.js +38 -3
- package/dist/esm/snk-filter-multi-select.entry.js +2 -2
- package/dist/esm/snk-filter-number.entry.js +2 -2
- package/dist/esm/snk-filter-period.entry.js +2 -2
- package/dist/esm/snk-filter-personalized.entry.js +86 -0
- package/dist/esm/snk-filter-search.entry.js +3 -3
- package/dist/esm/snk-filter-text.entry.js +1 -1
- package/dist/esm/{snk-form.entry.js → snk-form_2.entry.js} +117 -4
- package/dist/esm/snk-pesquisa.entry.js +2 -2
- package/dist/{sankhyablocks/taskbar-elements-35d64ff9.js → esm/taskbar-elements-38eb5d51.js} +1 -1
- package/dist/esm/teste-pesquisa.entry.js +2 -2
- package/dist/sankhyablocks/index.esm.js +0 -1
- package/dist/sankhyablocks/p-0352c0e2.entry.js +1 -0
- package/dist/sankhyablocks/p-07ebda01.entry.js +1 -0
- package/dist/sankhyablocks/p-322c0df2.entry.js +1 -0
- package/dist/sankhyablocks/p-46caa101.entry.js +1 -0
- package/dist/sankhyablocks/p-473cedf9.entry.js +1 -0
- package/dist/sankhyablocks/p-586e2522.js +1 -0
- package/dist/sankhyablocks/p-86f15ffe.js +1 -0
- package/dist/sankhyablocks/p-8f3c5709.entry.js +1 -0
- package/dist/sankhyablocks/p-97009a2c.entry.js +1 -0
- package/dist/sankhyablocks/p-9be74b46.entry.js +74 -0
- package/dist/sankhyablocks/p-9dd2b8cb.js +1 -0
- package/dist/sankhyablocks/p-a8b59c61.entry.js +1 -0
- package/dist/sankhyablocks/p-aecf3e0a.entry.js +1 -0
- package/dist/sankhyablocks/p-c1c3b5d8.entry.js +1 -0
- package/dist/sankhyablocks/p-c78cb79a.entry.js +1 -0
- package/dist/sankhyablocks/p-c9eec639.entry.js +1 -0
- package/dist/sankhyablocks/p-dc482a42.entry.js +1 -0
- package/dist/sankhyablocks/p-fac2b6a9.js +2 -0
- package/dist/sankhyablocks/p-fb705f81.entry.js +1 -0
- package/dist/sankhyablocks/sankhyablocks.esm.js +1 -129
- package/dist/types/components/snk-application/snk-application.d.ts +4 -1
- package/dist/types/components/snk-filter-bar/filter-item/dataunitfilter/data-unit-filter-builder.d.ts +4 -0
- package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-personalized.d.ts +23 -0
- package/dist/types/components/snk-filter-bar/filter-item/filter-item-type.enum.d.ts +3 -1
- package/dist/types/components/snk-filter-bar/filter-item/snk-filter-detail.d.ts +2 -0
- package/dist/types/components/snk-filter-bar/filter-modal/snk-filter-modal.d.ts +23 -0
- package/dist/types/components.d.ts +56 -8
- package/package.json +3 -3
- package/react/components.d.ts +19 -0
- package/react/components.js +19 -0
- package/react/components.js.map +1 -1
- package/dist/cjs/app-globals-3a1e7e63.js +0 -5
- package/dist/cjs/css-shim-b8158822.js +0 -6
- package/dist/cjs/dom-36862b77.js +0 -75
- package/dist/cjs/index-02201bc9.js +0 -2397
- package/dist/cjs/shadow-css-346c0795.js +0 -389
- package/dist/cjs/snk-filter-bar.cjs.entry.js +0 -278
- package/dist/cjs/snk-filter-item.cjs.entry.js +0 -154
- package/dist/cjs/snk-filter-list.cjs.entry.js +0 -91
- package/dist/cjs/snk-grid.cjs.entry.js +0 -79
- package/dist/cjs/snk-taskbar.cjs.entry.js +0 -160
- package/dist/cjs/taskbar-processor-6bd0d35c.js +0 -47
- package/dist/components/index2.js +0 -2384
- package/dist/esm/SnkMessageBuilder-a7da466b.js +0 -303
- package/dist/esm/app-globals-0f993ce5.js +0 -3
- package/dist/esm/css-shim-b3f2ee8d.js +0 -4
- package/dist/esm/dom-665d6011.js +0 -73
- package/dist/esm/index-2b4d2d14.js +0 -3262
- package/dist/esm/index-f1d3e4da.js +0 -2384
- package/dist/esm/shadow-css-b18e99d7.js +0 -387
- package/dist/esm/snk-filter-bar.entry.js +0 -274
- package/dist/esm/snk-filter-item.entry.js +0 -150
- package/dist/esm/snk-filter-list.entry.js +0 -87
- package/dist/esm/snk-grid.entry.js +0 -75
- package/dist/esm/snk-taskbar.entry.js +0 -156
- package/dist/esm/taskbar-elements-35d64ff9.js +0 -90
- package/dist/esm/taskbar-processor-aa6772c9.js +0 -45
- package/dist/sankhyablocks/app-globals-0f993ce5.js +0 -3
- package/dist/sankhyablocks/css-shim-b3f2ee8d.js +0 -4
- package/dist/sankhyablocks/dom-665d6011.js +0 -73
- package/dist/sankhyablocks/filter-item-type.enum-61fbf80a.js +0 -12
- package/dist/sankhyablocks/index-f1d3e4da.js +0 -2384
- package/dist/sankhyablocks/shadow-css-b18e99d7.js +0 -387
- package/dist/sankhyablocks/snk-application.entry.js +0 -8148
- package/dist/sankhyablocks/snk-crud.entry.js +0 -66
- package/dist/sankhyablocks/snk-data-unit.entry.js +0 -276
- package/dist/sankhyablocks/snk-filter-bar.entry.js +0 -274
- package/dist/sankhyablocks/snk-filter-binary-select.entry.js +0 -43
- package/dist/sankhyablocks/snk-filter-detail.entry.js +0 -45
- package/dist/sankhyablocks/snk-filter-item.entry.js +0 -150
- package/dist/sankhyablocks/snk-filter-list.entry.js +0 -87
- package/dist/sankhyablocks/snk-filter-multi-select.entry.js +0 -19
- package/dist/sankhyablocks/snk-filter-number.entry.js +0 -20
- package/dist/sankhyablocks/snk-filter-period.entry.js +0 -33
- package/dist/sankhyablocks/snk-filter-search.entry.js +0 -40
- package/dist/sankhyablocks/snk-filter-text.entry.js +0 -18
- package/dist/sankhyablocks/snk-form.entry.js +0 -129
- package/dist/sankhyablocks/snk-grid.entry.js +0 -75
- package/dist/sankhyablocks/snk-pesquisa.entry.js +0 -311
- package/dist/sankhyablocks/snk-taskbar.entry.js +0 -156
- package/dist/sankhyablocks/taskbar-processor-aa6772c9.js +0 -45
- package/dist/sankhyablocks/teste-pesquisa.entry.js +0 -33
- package/dist/types/components/snk-filter-bar/snk-filter-bar.d.ts +0 -51
|
@@ -2,49 +2,23 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index
|
|
6
|
-
const
|
|
7
|
-
const
|
|
5
|
+
const index = require('./index-6fcf07f3.js');
|
|
6
|
+
const core = require('@sankhyalabs/core');
|
|
7
|
+
const utils = require('@sankhyalabs/ezui/dist/collection/utils');
|
|
8
|
+
const SnkMessageBuilder = require('./SnkMessageBuilder-d8215915.js');
|
|
8
9
|
|
|
9
10
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
10
11
|
|
|
11
|
-
function getDefaultExportFromCjs (x) {
|
|
12
|
-
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
12
|
function createCommonjsModule(fn, basedir, module) {
|
|
16
13
|
return module = {
|
|
17
14
|
path: basedir,
|
|
18
15
|
exports: {},
|
|
19
16
|
require: function (path, base) {
|
|
20
|
-
return commonjsRequire(
|
|
17
|
+
return commonjsRequire();
|
|
21
18
|
}
|
|
22
19
|
}, fn(module, module.exports), module.exports;
|
|
23
20
|
}
|
|
24
21
|
|
|
25
|
-
function getDefaultExportFromNamespaceIfPresent (n) {
|
|
26
|
-
return n && Object.prototype.hasOwnProperty.call(n, 'default') ? n['default'] : n;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
function getDefaultExportFromNamespaceIfNotNamed (n) {
|
|
30
|
-
return n && Object.prototype.hasOwnProperty.call(n, 'default') && Object.keys(n).length === 1 ? n['default'] : n;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
function getAugmentedNamespace(n) {
|
|
34
|
-
if (n.__esModule) return n;
|
|
35
|
-
var a = Object.defineProperty({}, '__esModule', {value: true});
|
|
36
|
-
Object.keys(n).forEach(function (k) {
|
|
37
|
-
var d = Object.getOwnPropertyDescriptor(n, k);
|
|
38
|
-
Object.defineProperty(a, k, d.get ? d : {
|
|
39
|
-
enumerable: true,
|
|
40
|
-
get: function () {
|
|
41
|
-
return n[k];
|
|
42
|
-
}
|
|
43
|
-
});
|
|
44
|
-
});
|
|
45
|
-
return a;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
22
|
function commonjsRequire () {
|
|
49
23
|
throw new Error('Dynamic requires are not currently supported by @rollup/plugin-commonjs');
|
|
50
24
|
}
|
|
@@ -61,7 +35,7 @@ return new F();
|
|
|
61
35
|
})();
|
|
62
36
|
(function(self) {
|
|
63
37
|
|
|
64
|
-
|
|
38
|
+
((function (exports) {
|
|
65
39
|
|
|
66
40
|
var support = {
|
|
67
41
|
searchParams: 'URLSearchParams' in self,
|
|
@@ -589,7 +563,7 @@ var irrelevant = (function (exports) {
|
|
|
589
563
|
|
|
590
564
|
return exports;
|
|
591
565
|
|
|
592
|
-
})({});
|
|
566
|
+
}))({});
|
|
593
567
|
})(__self__);
|
|
594
568
|
__self__.fetch.ponyfill = true;
|
|
595
569
|
// Remove "polyfill" property added by whatwg-fetch
|
|
@@ -606,10 +580,7 @@ exports.Response = ctx.Response;
|
|
|
606
580
|
module.exports = exports;
|
|
607
581
|
});
|
|
608
582
|
|
|
609
|
-
const browserPonyfill$1 = /*@__PURE__*/getDefaultExportFromCjs(browserPonyfill);
|
|
610
|
-
|
|
611
583
|
var isObjectLike_1 = createCommonjsModule(function (module, exports) {
|
|
612
|
-
'use strict';
|
|
613
584
|
|
|
614
585
|
Object.defineProperty(exports, '__esModule', {
|
|
615
586
|
value: true,
|
|
@@ -625,10 +596,7 @@ function isObjectLike(value) {
|
|
|
625
596
|
}
|
|
626
597
|
});
|
|
627
598
|
|
|
628
|
-
const isObjectLike = /*@__PURE__*/getDefaultExportFromCjs(isObjectLike_1);
|
|
629
|
-
|
|
630
599
|
var invariant_1 = createCommonjsModule(function (module, exports) {
|
|
631
|
-
'use strict';
|
|
632
600
|
|
|
633
601
|
Object.defineProperty(exports, '__esModule', {
|
|
634
602
|
value: true,
|
|
@@ -646,10 +614,7 @@ function invariant(condition, message) {
|
|
|
646
614
|
}
|
|
647
615
|
});
|
|
648
616
|
|
|
649
|
-
const invariant = /*@__PURE__*/getDefaultExportFromCjs(invariant_1);
|
|
650
|
-
|
|
651
617
|
var location_1 = createCommonjsModule(function (module, exports) {
|
|
652
|
-
'use strict';
|
|
653
618
|
|
|
654
619
|
Object.defineProperty(exports, '__esModule', {
|
|
655
620
|
value: true,
|
|
@@ -689,10 +654,7 @@ function getLocation(source, position) {
|
|
|
689
654
|
}
|
|
690
655
|
});
|
|
691
656
|
|
|
692
|
-
const location$1 = /*@__PURE__*/getDefaultExportFromCjs(location_1);
|
|
693
|
-
|
|
694
657
|
var printLocation_1 = createCommonjsModule(function (module, exports) {
|
|
695
|
-
'use strict';
|
|
696
658
|
|
|
697
659
|
Object.defineProperty(exports, '__esModule', {
|
|
698
660
|
value: true,
|
|
@@ -768,10 +730,7 @@ function printPrefixedLines(lines) {
|
|
|
768
730
|
}
|
|
769
731
|
});
|
|
770
732
|
|
|
771
|
-
const printLocation = /*@__PURE__*/getDefaultExportFromCjs(printLocation_1);
|
|
772
|
-
|
|
773
733
|
var GraphQLError_1 = createCommonjsModule(function (module, exports) {
|
|
774
|
-
'use strict';
|
|
775
734
|
|
|
776
735
|
Object.defineProperty(exports, '__esModule', {
|
|
777
736
|
value: true,
|
|
@@ -1040,10 +999,7 @@ function formatError(error) {
|
|
|
1040
999
|
}
|
|
1041
1000
|
});
|
|
1042
1001
|
|
|
1043
|
-
const GraphQLError = /*@__PURE__*/getDefaultExportFromCjs(GraphQLError_1);
|
|
1044
|
-
|
|
1045
1002
|
var syntaxError_1 = createCommonjsModule(function (module, exports) {
|
|
1046
|
-
'use strict';
|
|
1047
1003
|
|
|
1048
1004
|
Object.defineProperty(exports, '__esModule', {
|
|
1049
1005
|
value: true,
|
|
@@ -1064,10 +1020,7 @@ function syntaxError(source, position, description) {
|
|
|
1064
1020
|
}
|
|
1065
1021
|
});
|
|
1066
1022
|
|
|
1067
|
-
const syntaxError = /*@__PURE__*/getDefaultExportFromCjs(syntaxError_1);
|
|
1068
|
-
|
|
1069
1023
|
var ast = createCommonjsModule(function (module, exports) {
|
|
1070
|
-
'use strict';
|
|
1071
1024
|
|
|
1072
1025
|
Object.defineProperty(exports, '__esModule', {
|
|
1073
1026
|
value: true,
|
|
@@ -1293,10 +1246,7 @@ exports.OperationTypeNode = OperationTypeNode;
|
|
|
1293
1246
|
})(OperationTypeNode || (exports.OperationTypeNode = OperationTypeNode = {}));
|
|
1294
1247
|
});
|
|
1295
1248
|
|
|
1296
|
-
const ast$1 = /*@__PURE__*/getDefaultExportFromCjs(ast);
|
|
1297
|
-
|
|
1298
1249
|
var directiveLocation = createCommonjsModule(function (module, exports) {
|
|
1299
|
-
'use strict';
|
|
1300
1250
|
|
|
1301
1251
|
Object.defineProperty(exports, '__esModule', {
|
|
1302
1252
|
value: true,
|
|
@@ -1337,10 +1287,7 @@ exports.DirectiveLocation = DirectiveLocation;
|
|
|
1337
1287
|
*/
|
|
1338
1288
|
});
|
|
1339
1289
|
|
|
1340
|
-
const directiveLocation$1 = /*@__PURE__*/getDefaultExportFromCjs(directiveLocation);
|
|
1341
|
-
|
|
1342
1290
|
var kinds = createCommonjsModule(function (module, exports) {
|
|
1343
|
-
'use strict';
|
|
1344
1291
|
|
|
1345
1292
|
Object.defineProperty(exports, '__esModule', {
|
|
1346
1293
|
value: true,
|
|
@@ -1405,10 +1352,7 @@ exports.Kind = Kind;
|
|
|
1405
1352
|
*/
|
|
1406
1353
|
});
|
|
1407
1354
|
|
|
1408
|
-
const kinds$1 = /*@__PURE__*/getDefaultExportFromCjs(kinds);
|
|
1409
|
-
|
|
1410
1355
|
var characterClasses = createCommonjsModule(function (module, exports) {
|
|
1411
|
-
'use strict';
|
|
1412
1356
|
|
|
1413
1357
|
Object.defineProperty(exports, '__esModule', {
|
|
1414
1358
|
value: true,
|
|
@@ -1485,10 +1429,7 @@ function isNameContinue(code) {
|
|
|
1485
1429
|
}
|
|
1486
1430
|
});
|
|
1487
1431
|
|
|
1488
|
-
const characterClasses$1 = /*@__PURE__*/getDefaultExportFromCjs(characterClasses);
|
|
1489
|
-
|
|
1490
1432
|
var blockString = createCommonjsModule(function (module, exports) {
|
|
1491
|
-
'use strict';
|
|
1492
1433
|
|
|
1493
1434
|
Object.defineProperty(exports, '__esModule', {
|
|
1494
1435
|
value: true,
|
|
@@ -1685,10 +1626,7 @@ function printBlockString(value, options) {
|
|
|
1685
1626
|
}
|
|
1686
1627
|
});
|
|
1687
1628
|
|
|
1688
|
-
const blockString$1 = /*@__PURE__*/getDefaultExportFromCjs(blockString);
|
|
1689
|
-
|
|
1690
1629
|
var tokenKind = createCommonjsModule(function (module, exports) {
|
|
1691
|
-
'use strict';
|
|
1692
1630
|
|
|
1693
1631
|
Object.defineProperty(exports, '__esModule', {
|
|
1694
1632
|
value: true,
|
|
@@ -1733,10 +1671,7 @@ exports.TokenKind = TokenKind;
|
|
|
1733
1671
|
*/
|
|
1734
1672
|
});
|
|
1735
1673
|
|
|
1736
|
-
const tokenKind$1 = /*@__PURE__*/getDefaultExportFromCjs(tokenKind);
|
|
1737
|
-
|
|
1738
1674
|
var lexer = createCommonjsModule(function (module, exports) {
|
|
1739
|
-
'use strict';
|
|
1740
1675
|
|
|
1741
1676
|
Object.defineProperty(exports, '__esModule', {
|
|
1742
1677
|
value: true,
|
|
@@ -2744,10 +2679,7 @@ function readName(lexer, start) {
|
|
|
2744
2679
|
}
|
|
2745
2680
|
});
|
|
2746
2681
|
|
|
2747
|
-
const lexer$1 = /*@__PURE__*/getDefaultExportFromCjs(lexer);
|
|
2748
|
-
|
|
2749
2682
|
var devAssert_1 = createCommonjsModule(function (module, exports) {
|
|
2750
|
-
'use strict';
|
|
2751
2683
|
|
|
2752
2684
|
Object.defineProperty(exports, '__esModule', {
|
|
2753
2685
|
value: true,
|
|
@@ -2763,10 +2695,7 @@ function devAssert(condition, message) {
|
|
|
2763
2695
|
}
|
|
2764
2696
|
});
|
|
2765
2697
|
|
|
2766
|
-
const devAssert = /*@__PURE__*/getDefaultExportFromCjs(devAssert_1);
|
|
2767
|
-
|
|
2768
2698
|
var inspect_1 = createCommonjsModule(function (module, exports) {
|
|
2769
|
-
'use strict';
|
|
2770
2699
|
|
|
2771
2700
|
Object.defineProperty(exports, '__esModule', {
|
|
2772
2701
|
value: true,
|
|
@@ -2889,10 +2818,7 @@ function getObjectTag(object) {
|
|
|
2889
2818
|
}
|
|
2890
2819
|
});
|
|
2891
2820
|
|
|
2892
|
-
const inspect = /*@__PURE__*/getDefaultExportFromCjs(inspect_1);
|
|
2893
|
-
|
|
2894
2821
|
var instanceOf_1 = createCommonjsModule(function (module, exports) {
|
|
2895
|
-
'use strict';
|
|
2896
2822
|
|
|
2897
2823
|
Object.defineProperty(exports, '__esModule', {
|
|
2898
2824
|
value: true,
|
|
@@ -2911,54 +2837,14 @@ const instanceOf =
|
|
|
2911
2837
|
/* c8 ignore next 6 */
|
|
2912
2838
|
// FIXME: https://github.com/graphql/graphql-js/issues/2317
|
|
2913
2839
|
// eslint-disable-next-line no-undef
|
|
2914
|
-
|
|
2915
|
-
? function instanceOf(value, constructor) {
|
|
2840
|
+
function instanceOf(value, constructor) {
|
|
2916
2841
|
return value instanceof constructor;
|
|
2917
2842
|
}
|
|
2918
|
-
|
|
2919
|
-
if (value instanceof constructor) {
|
|
2920
|
-
return true;
|
|
2921
|
-
}
|
|
2922
|
-
|
|
2923
|
-
if (typeof value === 'object' && value !== null) {
|
|
2924
|
-
var _value$constructor;
|
|
2925
|
-
|
|
2926
|
-
// Prefer Symbol.toStringTag since it is immune to minification.
|
|
2927
|
-
const className = constructor.prototype[Symbol.toStringTag];
|
|
2928
|
-
const valueClassName = // We still need to support constructor's name to detect conflicts with older versions of this library.
|
|
2929
|
-
Symbol.toStringTag in value // @ts-expect-error TS bug see, https://github.com/microsoft/TypeScript/issues/38009
|
|
2930
|
-
? value[Symbol.toStringTag]
|
|
2931
|
-
: (_value$constructor = value.constructor) === null ||
|
|
2932
|
-
_value$constructor === void 0
|
|
2933
|
-
? void 0
|
|
2934
|
-
: _value$constructor.name;
|
|
2935
|
-
|
|
2936
|
-
if (className === valueClassName) {
|
|
2937
|
-
const stringifiedValue = (0, inspect_1.inspect)(value);
|
|
2938
|
-
throw new Error(`Cannot use ${className} "${stringifiedValue}" from another module or realm.
|
|
2939
|
-
|
|
2940
|
-
Ensure that there is only one instance of "graphql" in the node_modules
|
|
2941
|
-
directory. If different versions of "graphql" are the dependencies of other
|
|
2942
|
-
relied on modules, use "resolutions" to ensure only one version is installed.
|
|
2943
|
-
|
|
2944
|
-
https://yarnpkg.com/en/docs/selective-version-resolutions
|
|
2945
|
-
|
|
2946
|
-
Duplicate "graphql" modules cannot be used at the same time since different
|
|
2947
|
-
versions may have different capabilities and behavior. The data from one
|
|
2948
|
-
version used in the function from another could produce confusing and
|
|
2949
|
-
spurious results.`);
|
|
2950
|
-
}
|
|
2951
|
-
}
|
|
2952
|
-
|
|
2953
|
-
return false;
|
|
2954
|
-
};
|
|
2843
|
+
;
|
|
2955
2844
|
exports.instanceOf = instanceOf;
|
|
2956
2845
|
});
|
|
2957
2846
|
|
|
2958
|
-
const instanceOf = /*@__PURE__*/getDefaultExportFromCjs(instanceOf_1);
|
|
2959
|
-
|
|
2960
2847
|
var source = createCommonjsModule(function (module, exports) {
|
|
2961
|
-
'use strict';
|
|
2962
2848
|
|
|
2963
2849
|
Object.defineProperty(exports, '__esModule', {
|
|
2964
2850
|
value: true,
|
|
@@ -3025,10 +2911,7 @@ function isSource(source) {
|
|
|
3025
2911
|
}
|
|
3026
2912
|
});
|
|
3027
2913
|
|
|
3028
|
-
const source$1 = /*@__PURE__*/getDefaultExportFromCjs(source);
|
|
3029
|
-
|
|
3030
2914
|
var parser = createCommonjsModule(function (module, exports) {
|
|
3031
|
-
'use strict';
|
|
3032
2915
|
|
|
3033
2916
|
Object.defineProperty(exports, '__esModule', {
|
|
3034
2917
|
value: true,
|
|
@@ -4597,10 +4480,7 @@ function getTokenKindDesc(kind) {
|
|
|
4597
4480
|
}
|
|
4598
4481
|
});
|
|
4599
4482
|
|
|
4600
|
-
const parser$1 = /*@__PURE__*/getDefaultExportFromCjs(parser);
|
|
4601
|
-
|
|
4602
4483
|
var printString_1 = createCommonjsModule(function (module, exports) {
|
|
4603
|
-
'use strict';
|
|
4604
4484
|
|
|
4605
4485
|
Object.defineProperty(exports, '__esModule', {
|
|
4606
4486
|
value: true,
|
|
@@ -4785,10 +4665,7 @@ const escapeSequences = [
|
|
|
4785
4665
|
];
|
|
4786
4666
|
});
|
|
4787
4667
|
|
|
4788
|
-
const printString = /*@__PURE__*/getDefaultExportFromCjs(printString_1);
|
|
4789
|
-
|
|
4790
4668
|
var visitor = createCommonjsModule(function (module, exports) {
|
|
4791
|
-
'use strict';
|
|
4792
4669
|
|
|
4793
4670
|
Object.defineProperty(exports, '__esModule', {
|
|
4794
4671
|
value: true,
|
|
@@ -5167,10 +5044,7 @@ function getVisitFn(visitor, kind, isLeaving) {
|
|
|
5167
5044
|
}
|
|
5168
5045
|
});
|
|
5169
5046
|
|
|
5170
|
-
const visitor$1 = /*@__PURE__*/getDefaultExportFromCjs(visitor);
|
|
5171
|
-
|
|
5172
5047
|
var printer = createCommonjsModule(function (module, exports) {
|
|
5173
|
-
'use strict';
|
|
5174
5048
|
|
|
5175
5049
|
Object.defineProperty(exports, '__esModule', {
|
|
5176
5050
|
value: true,
|
|
@@ -5523,10 +5397,6 @@ function hasMultilineItems(maybeArray) {
|
|
|
5523
5397
|
}
|
|
5524
5398
|
});
|
|
5525
5399
|
|
|
5526
|
-
const printer$1 = /*@__PURE__*/getDefaultExportFromCjs(printer);
|
|
5527
|
-
|
|
5528
|
-
'use strict';
|
|
5529
|
-
|
|
5530
5400
|
var ReactNativeFile$1 = function ReactNativeFile(_ref) {
|
|
5531
5401
|
var uri = _ref.uri,
|
|
5532
5402
|
name = _ref.name,
|
|
@@ -5536,10 +5406,6 @@ var ReactNativeFile$1 = function ReactNativeFile(_ref) {
|
|
|
5536
5406
|
this.type = type;
|
|
5537
5407
|
};
|
|
5538
5408
|
|
|
5539
|
-
'use strict';
|
|
5540
|
-
|
|
5541
|
-
|
|
5542
|
-
|
|
5543
5409
|
var isExtractableFile$1 = function isExtractableFile(value) {
|
|
5544
5410
|
return (
|
|
5545
5411
|
(typeof File !== 'undefined' && value instanceof File) ||
|
|
@@ -5548,10 +5414,6 @@ var isExtractableFile$1 = function isExtractableFile(value) {
|
|
|
5548
5414
|
);
|
|
5549
5415
|
};
|
|
5550
5416
|
|
|
5551
|
-
'use strict';
|
|
5552
|
-
|
|
5553
|
-
|
|
5554
|
-
|
|
5555
5417
|
var extractFiles$1 = function extractFiles(value, path, isExtractableFile) {
|
|
5556
5418
|
if (path === void 0) {
|
|
5557
5419
|
path = '';
|
|
@@ -5603,8 +5465,6 @@ var extractFiles$1 = function extractFiles(value, path, isExtractableFile) {
|
|
|
5603
5465
|
};
|
|
5604
5466
|
};
|
|
5605
5467
|
|
|
5606
|
-
'use strict';
|
|
5607
|
-
|
|
5608
5468
|
var ReactNativeFile = ReactNativeFile$1;
|
|
5609
5469
|
var extractFiles = extractFiles$1;
|
|
5610
5470
|
var isExtractableFile = isExtractableFile$1;
|
|
@@ -5619,7 +5479,6 @@ var _public = {
|
|
|
5619
5479
|
var browser = typeof self == 'object' ? self.FormData : window.FormData;
|
|
5620
5480
|
|
|
5621
5481
|
var defaultJsonSerializer = createCommonjsModule(function (module, exports) {
|
|
5622
|
-
"use strict";
|
|
5623
5482
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5624
5483
|
exports.defaultJsonSerializer = void 0;
|
|
5625
5484
|
exports.defaultJsonSerializer = {
|
|
@@ -5629,10 +5488,7 @@ exports.defaultJsonSerializer = {
|
|
|
5629
5488
|
//# sourceMappingURL=defaultJsonSerializer.js.map
|
|
5630
5489
|
});
|
|
5631
5490
|
|
|
5632
|
-
const defaultJsonSerializer$1 = /*@__PURE__*/getDefaultExportFromCjs(defaultJsonSerializer);
|
|
5633
|
-
|
|
5634
5491
|
var createRequestBody_1 = createCommonjsModule(function (module, exports) {
|
|
5635
|
-
"use strict";
|
|
5636
5492
|
var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
5637
5493
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
5638
5494
|
};
|
|
@@ -5689,10 +5545,7 @@ exports.default = createRequestBody;
|
|
|
5689
5545
|
//# sourceMappingURL=createRequestBody.js.map
|
|
5690
5546
|
});
|
|
5691
5547
|
|
|
5692
|
-
const createRequestBody = /*@__PURE__*/getDefaultExportFromCjs(createRequestBody_1);
|
|
5693
|
-
|
|
5694
5548
|
var parseArgs = createCommonjsModule(function (module, exports) {
|
|
5695
|
-
"use strict";
|
|
5696
5549
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5697
5550
|
exports.parseBatchRequestsExtendedArgs = exports.parseRawRequestExtendedArgs = exports.parseRequestExtendedArgs = exports.parseBatchRequestArgs = exports.parseRawRequestArgs = exports.parseRequestArgs = void 0;
|
|
5698
5551
|
function parseRequestArgs(documentOrOptions, variables, requestHeaders) {
|
|
@@ -5765,10 +5618,7 @@ exports.parseBatchRequestsExtendedArgs = parseBatchRequestsExtendedArgs;
|
|
|
5765
5618
|
//# sourceMappingURL=parseArgs.js.map
|
|
5766
5619
|
});
|
|
5767
5620
|
|
|
5768
|
-
const parseArgs$1 = /*@__PURE__*/getDefaultExportFromCjs(parseArgs);
|
|
5769
|
-
|
|
5770
5621
|
var types = createCommonjsModule(function (module, exports) {
|
|
5771
|
-
"use strict";
|
|
5772
5622
|
var __extends = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
5773
5623
|
var extendStatics = function (d, b) {
|
|
5774
5624
|
extendStatics = Object.setPrototypeOf ||
|
|
@@ -5818,10 +5668,7 @@ exports.ClientError = ClientError;
|
|
|
5818
5668
|
//# sourceMappingURL=types.js.map
|
|
5819
5669
|
});
|
|
5820
5670
|
|
|
5821
|
-
const types$1 = /*@__PURE__*/getDefaultExportFromCjs(types);
|
|
5822
|
-
|
|
5823
5671
|
var graphqlWs = createCommonjsModule(function (module, exports) {
|
|
5824
|
-
"use strict";
|
|
5825
5672
|
var __assign = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
5826
5673
|
__assign = Object.assign || function(t) {
|
|
5827
5674
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -6001,8 +5848,6 @@ var GraphQLWebSocketClient = /** @class */ (function () {
|
|
|
6001
5848
|
if (message.payload.errors) {
|
|
6002
5849
|
subscriber.error && subscriber.error(new types.ClientError(__assign(__assign({}, message.payload), { status: 200 }), { query: query, variables: variables }));
|
|
6003
5850
|
}
|
|
6004
|
-
else {
|
|
6005
|
-
}
|
|
6006
5851
|
return;
|
|
6007
5852
|
}
|
|
6008
5853
|
case ERROR: {
|
|
@@ -6097,10 +5942,7 @@ function Complete(id) {
|
|
|
6097
5942
|
//# sourceMappingURL=graphql-ws.js.map
|
|
6098
5943
|
});
|
|
6099
5944
|
|
|
6100
|
-
const graphqlWs$1 = /*@__PURE__*/getDefaultExportFromCjs(graphqlWs);
|
|
6101
|
-
|
|
6102
5945
|
var dist = createCommonjsModule(function (module, exports) {
|
|
6103
|
-
"use strict";
|
|
6104
5946
|
var __assign = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
6105
5947
|
__assign = Object.assign || function(t) {
|
|
6106
5948
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -6425,7 +6267,7 @@ exports.GraphQLClient = GraphQLClient;
|
|
|
6425
6267
|
function makeRequest(_a) {
|
|
6426
6268
|
var url = _a.url, query = _a.query, variables = _a.variables, headers = _a.headers, operationName = _a.operationName, fetch = _a.fetch, _b = _a.method, method = _b === void 0 ? 'POST' : _b, fetchOptions = _a.fetchOptions;
|
|
6427
6269
|
return __awaiter(this, void 0, void 0, function () {
|
|
6428
|
-
var fetcher, isBathchingQuery, response, result, successfullyReceivedData, successfullyPassedErrorPolicy, headers_1, status_1,
|
|
6270
|
+
var fetcher, isBathchingQuery, response, result, successfullyReceivedData, successfullyPassedErrorPolicy, headers_1, status_1, rest, data, errorResult;
|
|
6429
6271
|
return __generator(this, function (_c) {
|
|
6430
6272
|
switch (_c.label) {
|
|
6431
6273
|
case 0:
|
|
@@ -6452,7 +6294,7 @@ function makeRequest(_a) {
|
|
|
6452
6294
|
successfullyPassedErrorPolicy = !result.errors || fetchOptions.errorPolicy === 'all' || fetchOptions.errorPolicy === 'ignore';
|
|
6453
6295
|
if (response.ok && successfullyPassedErrorPolicy && successfullyReceivedData) {
|
|
6454
6296
|
headers_1 = response.headers, status_1 = response.status;
|
|
6455
|
-
|
|
6297
|
+
rest = __rest(result, ["errors"]);
|
|
6456
6298
|
data = fetchOptions.errorPolicy === 'ignore' ? rest : result;
|
|
6457
6299
|
return [2 /*return*/, __assign(__assign({}, (isBathchingQuery ? { data: data } : data)), { headers: headers_1, status: status_1 })];
|
|
6458
6300
|
}
|
|
@@ -6460,7 +6302,6 @@ function makeRequest(_a) {
|
|
|
6460
6302
|
errorResult = typeof result === 'string' ? { error: result } : result;
|
|
6461
6303
|
throw new types.ClientError(__assign(__assign({}, errorResult), { status: response.status, headers: response.headers }), { query: query, variables: variables });
|
|
6462
6304
|
}
|
|
6463
|
-
return [2 /*return*/];
|
|
6464
6305
|
}
|
|
6465
6306
|
});
|
|
6466
6307
|
});
|
|
@@ -6590,8 +6431,6 @@ Object.defineProperty(exports, "GraphQLWebSocketClient", { enumerable: true, get
|
|
|
6590
6431
|
//# sourceMappingURL=index.js.map
|
|
6591
6432
|
});
|
|
6592
6433
|
|
|
6593
|
-
const index = /*@__PURE__*/getDefaultExportFromCjs(dist);
|
|
6594
|
-
|
|
6595
6434
|
class UrlUtils {
|
|
6596
6435
|
static getQueryParams(queryString) {
|
|
6597
6436
|
const params = new Map();
|
|
@@ -6661,13 +6500,13 @@ class DataFetcher {
|
|
|
6661
6500
|
const errorCode = ((_b = errorInfo === null || errorInfo === void 0 ? void 0 : errorInfo.extensions) === null || _b === void 0 ? void 0 : _b.code) ? errorInfo.extensions.code : "";
|
|
6662
6501
|
switch (errorLevel) {
|
|
6663
6502
|
case "WARNING":
|
|
6664
|
-
return new
|
|
6503
|
+
return new core.WarningException(errorTitle, errorMessage, errorCode);
|
|
6665
6504
|
default:
|
|
6666
|
-
return new
|
|
6505
|
+
return new core.ErrorException(errorTitle, errorMessage, errorCode);
|
|
6667
6506
|
}
|
|
6668
6507
|
}
|
|
6669
6508
|
else {
|
|
6670
|
-
return new
|
|
6509
|
+
return new core.ErrorException(errorTitle, "Não há informações sobre o erro");
|
|
6671
6510
|
}
|
|
6672
6511
|
}
|
|
6673
6512
|
async callGraphQL(req) {
|
|
@@ -6746,7 +6585,7 @@ class DataFetcher {
|
|
|
6746
6585
|
});
|
|
6747
6586
|
}
|
|
6748
6587
|
getReqKey(req) {
|
|
6749
|
-
return window.btoa(
|
|
6588
|
+
return window.btoa(core.StringUtils.hashCode(`${req.query}${JSON.stringify(req.values || "")}`)).replace(/=/g, "");
|
|
6750
6589
|
}
|
|
6751
6590
|
getQueryTemplate(re) {
|
|
6752
6591
|
return (re.query || "").replaceAll("$queryAlias$", re.queryID);
|
|
@@ -6775,7 +6614,7 @@ class DataFetcher {
|
|
|
6775
6614
|
errorsResponse.forEach((errorResponse) => {
|
|
6776
6615
|
Object.entries(errorResponse).forEach(([_key, val]) => {
|
|
6777
6616
|
var _a;
|
|
6778
|
-
(((_a = this.getWatingRequest(val.request.variables[val.index].queryID)) === null || _a === void 0 ? void 0 : _a.reject) || Promise.reject)(new
|
|
6617
|
+
(((_a = this.getWatingRequest(val.request.variables[val.index].queryID)) === null || _a === void 0 ? void 0 : _a.reject) || Promise.reject)(new core.ErrorException("Falha detectada", val.message));
|
|
6779
6618
|
});
|
|
6780
6619
|
});
|
|
6781
6620
|
//Resolve promises with data from query
|
|
@@ -6828,7 +6667,7 @@ class DataFetcher {
|
|
|
6828
6667
|
}
|
|
6829
6668
|
else {
|
|
6830
6669
|
DataFetcher.requestListener.forEach(listener => listener.onRequestEnd({ url: url, requestBody: request }));
|
|
6831
|
-
throw new
|
|
6670
|
+
throw new core.ErrorException("Falha de comunicação", err.message);
|
|
6832
6671
|
}
|
|
6833
6672
|
}
|
|
6834
6673
|
DataFetcher.requestListener.forEach(listener => listener.onRequestEnd({ url: url, requestBody: request }));
|
|
@@ -6936,7 +6775,7 @@ class DataUnitFetcher {
|
|
|
6936
6775
|
}`);
|
|
6937
6776
|
}
|
|
6938
6777
|
getDataUnit(entityName, resourceID) {
|
|
6939
|
-
const dataUnit = new
|
|
6778
|
+
const dataUnit = new core.DataUnit(`dd://${entityName}/${resourceID}`);
|
|
6940
6779
|
dataUnit.metadataLoader = (dataUnit) => this.loadMetadata(dataUnit);
|
|
6941
6780
|
dataUnit.dataLoader = (dataUnit, request) => this.loadData(dataUnit, request);
|
|
6942
6781
|
dataUnit.saveLoader = (dataUnit, changes) => this.saveData(dataUnit, changes);
|
|
@@ -6997,17 +6836,17 @@ class DataUnitFetcher {
|
|
|
6997
6836
|
const variables = { dataunit: dataUnit.name, sort, filters };
|
|
6998
6837
|
variables.limit = limit;
|
|
6999
6838
|
variables.offset = offset;
|
|
7000
|
-
if (!
|
|
6839
|
+
if (!core.StringUtils.isEmpty(quickFilter === null || quickFilter === void 0 ? void 0 : quickFilter.term)) {
|
|
7001
6840
|
if (variables.filter === undefined) {
|
|
7002
6841
|
variables.filter = [];
|
|
7003
6842
|
}
|
|
7004
6843
|
const quickFilterCriteria = {
|
|
7005
6844
|
name: "__QUICK_FILTER__",
|
|
7006
6845
|
expression: "__QUICK_FILTER__",
|
|
7007
|
-
params: [{ name: "term", dataType:
|
|
6846
|
+
params: [{ name: "term", dataType: core.DataType.TEXT, value: quickFilter.term }]
|
|
7008
6847
|
};
|
|
7009
6848
|
if (((_a = quickFilter === null || quickFilter === void 0 ? void 0 : quickFilter.fields) === null || _a === void 0 ? void 0 : _a.length) > 0) {
|
|
7010
|
-
quickFilterCriteria.params.push({ name: "fields", dataType:
|
|
6849
|
+
quickFilterCriteria.params.push({ name: "fields", dataType: core.DataType.OBJECT, value: quickFilter.fields });
|
|
7011
6850
|
}
|
|
7012
6851
|
variables.filter.push(quickFilterCriteria);
|
|
7013
6852
|
}
|
|
@@ -7056,7 +6895,7 @@ class DataUnitFetcher {
|
|
|
7056
6895
|
if (updatingFields) {
|
|
7057
6896
|
parsedUpdatingFields = Object.entries(updatingFields).map(([fieldName, value]) => {
|
|
7058
6897
|
const descriptor = dataUnit.getField(fieldName);
|
|
7059
|
-
const dataType = descriptor ? descriptor.dataType :
|
|
6898
|
+
const dataType = descriptor ? descriptor.dataType : core.DataType.TEXT;
|
|
7060
6899
|
return { fieldName, dataType, value: dataUnit.valueToString(fieldName, value) };
|
|
7061
6900
|
});
|
|
7062
6901
|
}
|
|
@@ -7093,7 +6932,7 @@ class DataUnitFetcher {
|
|
|
7093
6932
|
}
|
|
7094
6933
|
removeRecords(dataUnit, recordIds) {
|
|
7095
6934
|
const changes = recordIds.map((recordId) => {
|
|
7096
|
-
return { dataUnit: dataUnit.name, operation:
|
|
6935
|
+
return { dataUnit: dataUnit.name, operation: core.ChangeOperation.DELETE, recordId };
|
|
7097
6936
|
});
|
|
7098
6937
|
return new Promise((resolve, reject) => {
|
|
7099
6938
|
DataFetcher.get()
|
|
@@ -7158,7 +6997,7 @@ class ParametersFetcher {
|
|
|
7158
6997
|
}
|
|
7159
6998
|
async asDate(name, resourceID) {
|
|
7160
6999
|
const paramArr = await this.getParam(name, resourceID);
|
|
7161
|
-
return
|
|
7000
|
+
return core.DateUtils.strToDate(this.getValue(paramArr));
|
|
7162
7001
|
}
|
|
7163
7002
|
async getBatchParams(names, resourceID) {
|
|
7164
7003
|
const paramArr = await this.getParam(names.join(","), resourceID);
|
|
@@ -7171,7 +7010,7 @@ class ParametersFetcher {
|
|
|
7171
7010
|
if (Array.isArray(obj) && obj.length > 0) {
|
|
7172
7011
|
obj = obj[0];
|
|
7173
7012
|
}
|
|
7174
|
-
if (
|
|
7013
|
+
if (core.StringUtils.isEmpty(obj.resource))
|
|
7175
7014
|
return "";
|
|
7176
7015
|
return obj.resource;
|
|
7177
7016
|
}
|
|
@@ -7371,9 +7210,9 @@ function convertParamType(dataType) {
|
|
|
7371
7210
|
//atual da pesquisa... em geral, somente inteiros,
|
|
7372
7211
|
//data (com ou sem hora) e string são realmente relevantes
|
|
7373
7212
|
switch (dataType) {
|
|
7374
|
-
case
|
|
7213
|
+
case core.DataType.NUMBER:
|
|
7375
7214
|
return "I";
|
|
7376
|
-
case
|
|
7215
|
+
case core.DataType.DATE:
|
|
7377
7216
|
return "D";
|
|
7378
7217
|
default:
|
|
7379
7218
|
return "S";
|
|
@@ -7386,7 +7225,7 @@ class AuthFetcher extends ResourceFetcher {
|
|
|
7386
7225
|
return new Promise((resolve, reject) => {
|
|
7387
7226
|
this.loadResource(completePath)
|
|
7388
7227
|
.then((loadedResource) => {
|
|
7389
|
-
let auth =
|
|
7228
|
+
let auth = core.ObjectUtils.stringToObject(loadedResource);
|
|
7390
7229
|
if (auth && typeof (auth) === 'object') {
|
|
7391
7230
|
resolve(auth);
|
|
7392
7231
|
}
|
|
@@ -7420,7 +7259,7 @@ class SnkErrorHandler {
|
|
|
7420
7259
|
const reason = evt.reason;
|
|
7421
7260
|
//Promisse rejeitada com WaitingChangeException, não precisam
|
|
7422
7261
|
//ser notificadas pelo usuário.
|
|
7423
|
-
if (!(reason instanceof
|
|
7262
|
+
if (!(reason instanceof core.WaitingChangeException)) {
|
|
7424
7263
|
if (reason) {
|
|
7425
7264
|
this.processException(reason);
|
|
7426
7265
|
}
|
|
@@ -7444,13 +7283,13 @@ class SnkErrorHandler {
|
|
|
7444
7283
|
if (exception.errorCode != "") {
|
|
7445
7284
|
exception.message += this.buildErrorCodeHTML(exception);
|
|
7446
7285
|
}
|
|
7447
|
-
if (exception instanceof
|
|
7286
|
+
if (exception instanceof core.WaitingChangeException) {
|
|
7448
7287
|
this._app.alert(exception.title, exception.message);
|
|
7449
7288
|
}
|
|
7450
|
-
else if (exception instanceof
|
|
7289
|
+
else if (exception instanceof core.WarningException) {
|
|
7451
7290
|
this._app.alert(exception.title, exception.message);
|
|
7452
7291
|
}
|
|
7453
|
-
else if (exception instanceof
|
|
7292
|
+
else if (exception instanceof core.ErrorException) {
|
|
7454
7293
|
this._app.error(exception.title, exception.message);
|
|
7455
7294
|
}
|
|
7456
7295
|
else {
|
|
@@ -7461,7 +7300,7 @@ class SnkErrorHandler {
|
|
|
7461
7300
|
}
|
|
7462
7301
|
else {
|
|
7463
7302
|
const title = (exception === null || exception === void 0 ? void 0 : exception.title) || "Erro detectado";
|
|
7464
|
-
const message = (typeof exception === "string") ? exception : exception.message || `Erro interno "${
|
|
7303
|
+
const message = (typeof exception === "string") ? exception : exception.message || `Erro interno "${core.ObjectUtils.objectToString(exception)}"`;
|
|
7465
7304
|
this._app.error(title, message);
|
|
7466
7305
|
}
|
|
7467
7306
|
}
|
|
@@ -7519,20 +7358,28 @@ class TotalsFetcher {
|
|
|
7519
7358
|
}
|
|
7520
7359
|
|
|
7521
7360
|
function normalizeValue(value) {
|
|
7361
|
+
if (value == undefined) {
|
|
7362
|
+
return value;
|
|
7363
|
+
}
|
|
7522
7364
|
if (value instanceof Date) {
|
|
7523
7365
|
return value.toISOString();
|
|
7524
7366
|
}
|
|
7525
7367
|
if (typeof value === "object") {
|
|
7526
|
-
|
|
7527
|
-
|
|
7528
|
-
|
|
7529
|
-
|
|
7530
|
-
}
|
|
7531
|
-
|
|
7532
|
-
|
|
7533
|
-
|
|
7534
|
-
|
|
7535
|
-
|
|
7368
|
+
if (value instanceof Array) {
|
|
7369
|
+
return value.map(item => normalizeValue(item));
|
|
7370
|
+
}
|
|
7371
|
+
else {
|
|
7372
|
+
const normalized = Object.assign({}, value);
|
|
7373
|
+
Object.keys(value).forEach(prop => {
|
|
7374
|
+
if (value[prop]) {
|
|
7375
|
+
normalized[prop] = normalizeValue(value[prop]);
|
|
7376
|
+
}
|
|
7377
|
+
else {
|
|
7378
|
+
delete normalized[prop];
|
|
7379
|
+
}
|
|
7380
|
+
});
|
|
7381
|
+
return normalized;
|
|
7382
|
+
}
|
|
7536
7383
|
}
|
|
7537
7384
|
return value;
|
|
7538
7385
|
}
|
|
@@ -7576,9 +7423,9 @@ const snkApplicationCss = ".sc-snk-application-h{display:flex;flex-direction:col
|
|
|
7576
7423
|
|
|
7577
7424
|
const SnkApplication = class {
|
|
7578
7425
|
constructor(hostRef) {
|
|
7579
|
-
index
|
|
7580
|
-
this.applicationLoaded = index
|
|
7581
|
-
this.applicationLoading = index
|
|
7426
|
+
index.registerInstance(this, hostRef);
|
|
7427
|
+
this.applicationLoaded = index.createEvent(this, "applicationLoaded", 7);
|
|
7428
|
+
this.applicationLoading = index.createEvent(this, "applicationLoading", 7);
|
|
7582
7429
|
this._authPromises = [];
|
|
7583
7430
|
this._duCache = new Map();
|
|
7584
7431
|
this._duPromises = new Map();
|
|
@@ -7697,15 +7544,24 @@ const SnkApplication = class {
|
|
|
7697
7544
|
* Mostra o conteúdo passado em um Popup
|
|
7698
7545
|
*/
|
|
7699
7546
|
async showPopUp(content) {
|
|
7700
|
-
this.
|
|
7547
|
+
this.clearContent(this._popUp);
|
|
7701
7548
|
this._popUp.appendChild(content);
|
|
7702
7549
|
this._popUp.opened = true;
|
|
7703
7550
|
}
|
|
7551
|
+
async showModal(content) {
|
|
7552
|
+
this.clearContent(this._rightModal);
|
|
7553
|
+
this._rightModal.appendChild(content);
|
|
7554
|
+
this._rightModal.opened = true;
|
|
7555
|
+
}
|
|
7556
|
+
async closeModal() {
|
|
7557
|
+
this.clearContent(this._rightModal);
|
|
7558
|
+
this._rightModal.opened = false;
|
|
7559
|
+
}
|
|
7704
7560
|
/**
|
|
7705
7561
|
* Fecha o popup, liberando o conteúdo.
|
|
7706
7562
|
*/
|
|
7707
7563
|
async closePopUp() {
|
|
7708
|
-
this.
|
|
7564
|
+
this.clearContent(this._popUp);
|
|
7709
7565
|
this._popUp.opened = false;
|
|
7710
7566
|
}
|
|
7711
7567
|
/**
|
|
@@ -7851,37 +7707,37 @@ const SnkApplication = class {
|
|
|
7851
7707
|
* Mostra o diálogo de alerta de acordo com os parâmetros passados.
|
|
7852
7708
|
*/
|
|
7853
7709
|
async alert(title, message, icon, options) {
|
|
7854
|
-
return
|
|
7710
|
+
return utils.ApplicationUtils.alert(title, message, icon, options);
|
|
7855
7711
|
}
|
|
7856
7712
|
/**
|
|
7857
7713
|
* Mostra o diálogo de erro de acordo com os parâmetros passados.
|
|
7858
7714
|
*/
|
|
7859
7715
|
async error(title, message, icon, options) {
|
|
7860
|
-
return
|
|
7716
|
+
return utils.ApplicationUtils.error(title, message, icon, options);
|
|
7861
7717
|
}
|
|
7862
7718
|
/**
|
|
7863
7719
|
* Mostra o diálogo de sucesso de acordo com os parâmetros passados.
|
|
7864
7720
|
*/
|
|
7865
7721
|
async success(title, message, icon, options) {
|
|
7866
|
-
return
|
|
7722
|
+
return utils.ApplicationUtils.success(title, message, icon, options);
|
|
7867
7723
|
}
|
|
7868
7724
|
/**
|
|
7869
7725
|
* Exibe um diálogo de mensagem comum
|
|
7870
7726
|
*/
|
|
7871
7727
|
async message(title, message, icon, options) {
|
|
7872
|
-
return
|
|
7728
|
+
return utils.ApplicationUtils.message(title, message, icon, options);
|
|
7873
7729
|
}
|
|
7874
7730
|
/**
|
|
7875
7731
|
* Exibe um diálogo de confirmação
|
|
7876
7732
|
*/
|
|
7877
7733
|
async confirm(title, message, icon, dialogType, options) {
|
|
7878
|
-
return
|
|
7734
|
+
return utils.ApplicationUtils.confirm(title, message, icon, dialogType, options);
|
|
7879
7735
|
}
|
|
7880
7736
|
/**
|
|
7881
7737
|
* Mostra uma informação efêmera (de segundo plano).
|
|
7882
7738
|
*/
|
|
7883
7739
|
async info(message, options) {
|
|
7884
|
-
return
|
|
7740
|
+
return utils.ApplicationUtils.info(message, options);
|
|
7885
7741
|
}
|
|
7886
7742
|
/**
|
|
7887
7743
|
* Busca a configuração de formulário.
|
|
@@ -7986,9 +7842,7 @@ const SnkApplication = class {
|
|
|
7986
7842
|
}
|
|
7987
7843
|
async executeSearch(searchArgument, fieldName, dataUnit) {
|
|
7988
7844
|
const descriptor = dataUnit === null || dataUnit === void 0 ? void 0 : dataUnit.getField(fieldName);
|
|
7989
|
-
if (!descriptor)
|
|
7990
|
-
//TODO: Implementar mensagem de erro
|
|
7991
|
-
}
|
|
7845
|
+
if (!descriptor) ;
|
|
7992
7846
|
else {
|
|
7993
7847
|
const { mode, argument } = searchArgument;
|
|
7994
7848
|
const { ENTITYNAME, CODEFIELD, DESCRIPTIONFIELD, ROOTENTITY, DESCRIPTIONENTITY } = descriptor.properties;
|
|
@@ -8002,13 +7856,13 @@ const SnkApplication = class {
|
|
|
8002
7856
|
};
|
|
8003
7857
|
dependencies === null || dependencies === void 0 ? void 0 : dependencies.filter(dep => { var _a; return (_a = dep.masterFields) === null || _a === void 0 ? void 0 : _a.every(f => { var _a; return (_a = dataUnit.getField(f)) === null || _a === void 0 ? void 0 : _a.visible; }); }).forEach(dependency => {
|
|
8004
7858
|
var _a;
|
|
8005
|
-
if (dependency.type ===
|
|
7859
|
+
if (dependency.type === core.DependencyType.SEARCHING) {
|
|
8006
7860
|
if (((_a = dependency.masterFields) === null || _a === void 0 ? void 0 : _a.length) > 0) {
|
|
8007
7861
|
criteria = {
|
|
8008
7862
|
expression: dependency.expression,
|
|
8009
7863
|
params: dependency.masterFields.map(fieldName => {
|
|
8010
7864
|
const masterDescriptor = dataUnit.getField(fieldName);
|
|
8011
|
-
const dataType = (masterDescriptor === null || masterDescriptor === void 0 ? void 0 : masterDescriptor.dataType) ||
|
|
7865
|
+
const dataType = (masterDescriptor === null || masterDescriptor === void 0 ? void 0 : masterDescriptor.dataType) || core.DataType.TEXT;
|
|
8012
7866
|
const value = dataUnit.getFieldValue(fieldName);
|
|
8013
7867
|
if (value == undefined) {
|
|
8014
7868
|
this.alert("Erro ao pesquisar", `É necessario informar o campo ${masterDescriptor.label} para executar a pesquisa.`);
|
|
@@ -8048,10 +7902,10 @@ const SnkApplication = class {
|
|
|
8048
7902
|
accept(window['isDebugMode']);
|
|
8049
7903
|
});
|
|
8050
7904
|
}
|
|
8051
|
-
|
|
8052
|
-
if (
|
|
8053
|
-
Array.from(
|
|
8054
|
-
|
|
7905
|
+
clearContent(container) {
|
|
7906
|
+
if (container) {
|
|
7907
|
+
Array.from(container.children).forEach(child => {
|
|
7908
|
+
container.removeChild(child);
|
|
8055
7909
|
});
|
|
8056
7910
|
}
|
|
8057
7911
|
}
|
|
@@ -8064,11 +7918,11 @@ const SnkApplication = class {
|
|
|
8064
7918
|
componentWillLoad() {
|
|
8065
7919
|
this._errorHandler = new SnkErrorHandler(this);
|
|
8066
7920
|
this.messagesBuilder = new SnkMessageBuilder.SnkMessageBuilder();
|
|
8067
|
-
|
|
8068
|
-
|
|
7921
|
+
core.ApplicationContext.setContextValue("__EZUI__UPLOAD__ADD__URL__", `${UrlUtils.getUrlBase()}/mge/upload/file`);
|
|
7922
|
+
core.ApplicationContext.setContextValue("__EZUI__SEARCH__OPTION__LOADER__", (searchArgument, fieldName, dataUnit) => {
|
|
8069
7923
|
return this.executeSearch(searchArgument, fieldName, dataUnit);
|
|
8070
7924
|
});
|
|
8071
|
-
|
|
7925
|
+
core.ApplicationContext.setContextValue("__EZUI__GRID_LICENSE__", agGridLicense);
|
|
8072
7926
|
if (this.configName) {
|
|
8073
7927
|
this._filterConfigPromise = new Promise((accept, reject) => {
|
|
8074
7928
|
this.filterBarConfigFetcher.getConfig(this.resourceID, this.configName)
|
|
@@ -8079,10 +7933,10 @@ const SnkApplication = class {
|
|
|
8079
7933
|
.catch(reason => reject(reason));
|
|
8080
7934
|
});
|
|
8081
7935
|
}
|
|
8082
|
-
|
|
7936
|
+
core.ErrorTracking.init();
|
|
8083
7937
|
}
|
|
8084
7938
|
connectedCallback() {
|
|
8085
|
-
|
|
7939
|
+
core.ApplicationContext.setContextValue("__SNK__APPLICATION__", this);
|
|
8086
7940
|
DataFetcher.addRequestListener(this._requestListener);
|
|
8087
7941
|
}
|
|
8088
7942
|
disconnectedCallback() {
|
|
@@ -8095,7 +7949,7 @@ const SnkApplication = class {
|
|
|
8095
7949
|
});
|
|
8096
7950
|
}
|
|
8097
7951
|
render() {
|
|
8098
|
-
return (index
|
|
7952
|
+
return (index.h("div", null, index.h("ez-loading-bar", { ref: (ref) => this._requestListener.loadingBar = ref }), index.h("ez-popup", { opened: false, ref: (ref) => this._popUp = ref, onEzClosePopup: () => this.closePopUp() }), index.h("ez-modal", { opened: false, ref: (ref) => this._rightModal = ref, "modal-size": "col col--sd-3", closeOutsideClick: true })));
|
|
8099
7953
|
}
|
|
8100
7954
|
};
|
|
8101
7955
|
class RequestListenerLoadingBar {
|