@sankhyalabs/sankhyablocks 1.3.31-beta.16 → 1.3.31-beta.17
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-79cf15c5.js → SnkMessageBuilder-cb132e6d.js} +133 -1
- package/dist/cjs/app-globals-3a1e7e63.js +5 -0
- package/dist/cjs/css-shim-b8158822.js +6 -0
- package/dist/cjs/dom-36862b77.js +75 -0
- package/dist/cjs/filter-item-type.enum-e2e1bc5b.js +14 -0
- package/dist/cjs/index-02201bc9.js +2397 -0
- package/dist/cjs/{index-5575fe3d.js → index-b0b676c5.js} +1598 -145
- package/dist/cjs/loader.cjs.js +18 -2
- package/dist/cjs/sankhyablocks.cjs.js +116 -4
- package/dist/cjs/shadow-css-346c0795.js +389 -0
- package/dist/cjs/snk-application.cjs.entry.js +542 -66
- package/dist/cjs/snk-crud.cjs.entry.js +1 -1
- package/dist/cjs/snk-data-unit.cjs.entry.js +23 -24
- package/dist/cjs/snk-filter-bar.cjs.entry.js +199 -0
- package/dist/cjs/snk-filter-binary-select.cjs.entry.js +47 -0
- package/dist/cjs/snk-filter-detail.cjs.entry.js +44 -0
- package/dist/cjs/snk-filter-item.cjs.entry.js +131 -0
- package/dist/cjs/snk-filter-list.cjs.entry.js +91 -0
- package/dist/cjs/snk-filter-number.cjs.entry.js +23 -0
- package/dist/cjs/snk-filter-period.cjs.entry.js +26 -0
- package/dist/cjs/snk-filter-search.cjs.entry.js +44 -0
- package/dist/cjs/snk-filter-text.cjs.entry.js +22 -0
- package/dist/cjs/{snk-form_2.cjs.entry.js → snk-form.cjs.entry.js} +3 -65
- package/dist/cjs/snk-grid.cjs.entry.js +69 -0
- package/dist/cjs/snk-pesquisa.cjs.entry.js +5 -5
- package/dist/cjs/snk-taskbar.cjs.entry.js +5 -4
- package/dist/cjs/{taskbar-elements-2ae0d005.js → taskbar-elements-efa44ff1.js} +1 -1
- package/dist/cjs/teste-pesquisa.cjs.entry.js +5 -5
- package/dist/collection/collection-manifest.json +9 -0
- package/dist/collection/components/snk-application/errorhandler/snk-error-handler.js +7 -0
- package/dist/collection/components/snk-application/snk-application.js +89 -17
- package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-binary-select.js +88 -0
- package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-number.js +64 -0
- package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-period.js +69 -0
- package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-search.js +118 -0
- package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-text.js +63 -0
- package/dist/collection/components/snk-filter-bar/filter-item/filter-item-type.enum.js +10 -0
- package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-detail.js +113 -0
- package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-item.js +209 -0
- package/dist/collection/components/snk-filter-bar/filter-list/snk-filter-list.js +182 -0
- package/dist/collection/components/snk-filter-bar/snk-filter-bar.css +99 -0
- package/dist/collection/components/snk-filter-bar/snk-filter-bar.js +257 -0
- package/dist/collection/components/snk-grid/snk-grid.css +14 -1
- package/dist/collection/components/snk-grid/snk-grid.js +1 -1
- package/dist/collection/lib/http/data-fetcher/DataFetcher.js +24 -2
- package/dist/collection/lib/http/data-fetcher/fetchers/dataunit-fetcher.js +1 -1
- package/dist/collection/lib/http/data-fetcher/fetchers/filter-bar-config-fetcher.js +268 -0
- package/dist/collection/lib/message/SnkMessageBuilder.js +3 -1
- package/dist/collection/lib/message/resources/snk-filter-bar.msg.js +14 -0
- package/dist/components/SnkMessageBuilder.js +133 -2
- package/dist/components/filter-item-type.enum.js +12 -0
- package/dist/components/index.d.ts +9 -0
- package/dist/components/index.js +13 -0
- package/dist/components/index2.js +2384 -0
- package/dist/components/snk-application2.js +508 -30
- package/dist/components/snk-crud.js +25 -1
- package/dist/components/snk-data-unit.js +2 -3
- package/dist/components/snk-filter-bar.d.ts +11 -0
- package/dist/components/snk-filter-bar.js +6 -0
- package/dist/components/snk-filter-bar2.js +230 -0
- package/dist/components/snk-filter-binary-select.d.ts +11 -0
- package/dist/components/snk-filter-binary-select.js +63 -0
- package/dist/components/snk-filter-detail.d.ts +11 -0
- package/dist/components/snk-filter-detail.js +6 -0
- package/dist/components/snk-filter-detail2.js +58 -0
- package/dist/components/snk-filter-item.d.ts +11 -0
- package/dist/components/snk-filter-item.js +6 -0
- package/dist/components/snk-filter-item2.js +151 -0
- package/dist/components/snk-filter-list.d.ts +11 -0
- package/dist/components/snk-filter-list.js +6 -0
- package/dist/components/snk-filter-list2.js +108 -0
- package/dist/components/snk-filter-number.d.ts +11 -0
- package/dist/components/snk-filter-number.js +39 -0
- package/dist/components/snk-filter-period.d.ts +11 -0
- package/dist/components/snk-filter-period.js +42 -0
- package/dist/components/snk-filter-search.d.ts +11 -0
- package/dist/components/snk-filter-search.js +62 -0
- package/dist/components/snk-filter-text.d.ts +11 -0
- package/dist/components/snk-filter-text.js +38 -0
- package/dist/components/snk-form2.js +1 -1
- package/dist/components/snk-grid2.js +28 -4
- package/dist/components/snk-pesquisa2.js +1 -1
- package/dist/components/snk-taskbar2.js +2 -1
- package/dist/components/teste-pesquisa.js +1 -1
- package/dist/esm/{SnkMessageBuilder-3cdde541.js → SnkMessageBuilder-cff80920.js} +133 -2
- package/dist/esm/app-globals-0f993ce5.js +3 -0
- package/dist/esm/css-shim-b3f2ee8d.js +4 -0
- package/dist/esm/dom-665d6011.js +73 -0
- package/dist/esm/filter-item-type.enum-61fbf80a.js +12 -0
- package/dist/esm/index-2b4d2d14.js +3262 -0
- package/dist/esm/index-e5b61043.js +2384 -0
- package/dist/esm/loader.js +18 -2
- package/dist/esm/sankhyablocks.js +116 -4
- package/dist/esm/shadow-css-b18e99d7.js +387 -0
- package/dist/esm/snk-application.entry.js +507 -31
- package/dist/esm/snk-crud.entry.js +1 -1
- package/dist/esm/snk-data-unit.entry.js +3 -4
- package/dist/esm/snk-filter-bar.entry.js +195 -0
- package/dist/esm/snk-filter-binary-select.entry.js +43 -0
- package/dist/esm/snk-filter-detail.entry.js +40 -0
- package/dist/esm/snk-filter-item.entry.js +127 -0
- package/dist/esm/snk-filter-list.entry.js +87 -0
- package/dist/esm/snk-filter-number.entry.js +19 -0
- package/dist/esm/snk-filter-period.entry.js +22 -0
- package/dist/esm/snk-filter-search.entry.js +40 -0
- package/dist/esm/snk-filter-text.entry.js +18 -0
- package/dist/esm/{snk-form_2.entry.js → snk-form.entry.js} +3 -64
- package/dist/esm/snk-grid.entry.js +65 -0
- package/dist/esm/snk-pesquisa.entry.js +2 -2
- package/dist/esm/snk-taskbar.entry.js +4 -3
- package/dist/esm/{taskbar-elements-bcccc0ff.js → taskbar-elements-c119510a.js} +1 -1
- package/dist/esm/teste-pesquisa.entry.js +2 -2
- package/dist/sankhyablocks/SnkMessageBuilder-cff80920.js +299 -0
- package/dist/sankhyablocks/app-globals-0f993ce5.js +3 -0
- package/dist/sankhyablocks/css-shim-b3f2ee8d.js +4 -0
- package/dist/sankhyablocks/dom-665d6011.js +73 -0
- package/dist/sankhyablocks/filter-item-type.enum-61fbf80a.js +12 -0
- package/dist/sankhyablocks/index-2b4d2d14.js +3262 -0
- package/dist/sankhyablocks/index-e5b61043.js +2384 -0
- package/dist/sankhyablocks/index.esm.js +1 -0
- package/dist/sankhyablocks/sankhyablocks.esm.js +129 -1
- package/dist/sankhyablocks/shadow-css-b18e99d7.js +387 -0
- package/dist/sankhyablocks/snk-application.entry.js +8306 -0
- package/dist/sankhyablocks/snk-crud.entry.js +60 -0
- package/dist/sankhyablocks/snk-data-unit.entry.js +272 -0
- package/dist/sankhyablocks/snk-filter-bar.entry.js +195 -0
- package/dist/sankhyablocks/snk-filter-binary-select.entry.js +43 -0
- package/dist/sankhyablocks/snk-filter-detail.entry.js +40 -0
- package/dist/sankhyablocks/snk-filter-item.entry.js +127 -0
- package/dist/sankhyablocks/snk-filter-list.entry.js +87 -0
- package/dist/sankhyablocks/snk-filter-number.entry.js +19 -0
- package/dist/sankhyablocks/snk-filter-period.entry.js +22 -0
- package/dist/sankhyablocks/snk-filter-search.entry.js +40 -0
- package/dist/sankhyablocks/snk-filter-text.entry.js +18 -0
- package/dist/sankhyablocks/snk-form.entry.js +111 -0
- package/dist/sankhyablocks/snk-grid.entry.js +65 -0
- package/dist/sankhyablocks/snk-pesquisa.entry.js +311 -0
- package/dist/sankhyablocks/snk-taskbar.entry.js +153 -0
- package/dist/sankhyablocks/taskbar-elements-c119510a.js +72 -0
- package/dist/sankhyablocks/teste-pesquisa.entry.js +33 -0
- package/dist/types/components/snk-application/errorhandler/snk-error-handler.d.ts +1 -0
- package/dist/types/components/snk-application/snk-application.d.ts +9 -0
- package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-binary-select.d.ts +12 -0
- package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-number.d.ts +7 -0
- package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-period.d.ts +13 -0
- package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-search.d.ts +12 -0
- package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-text.d.ts +7 -0
- package/dist/types/components/snk-filter-bar/filter-item/filter-item-type.enum.d.ts +9 -0
- package/dist/types/components/snk-filter-bar/filter-item/snk-filter-detail.d.ts +13 -0
- package/dist/types/components/snk-filter-bar/filter-list/snk-filter-list.d.ts +37 -0
- package/dist/types/components/snk-filter-bar/snk-filter-bar.d.ts +43 -0
- package/dist/types/components.d.ts +199 -0
- package/dist/types/lib/http/data-fetcher/DataFetcher.d.ts +1 -0
- package/dist/types/lib/http/data-fetcher/fetchers/filter-bar-config-fetcher.d.ts +5 -0
- package/dist/types/lib/message/resources/snk-filter-bar.msg.d.ts +2 -0
- package/package.json +2 -2
- package/react/components.d.ts +0 -7
- package/react/components.js +0 -7
- package/react/components.js.map +1 -1
- package/dist/esm/index-cf91f542.js +0 -1817
- package/dist/sankhyablocks/p-1ba29824.entry.js +0 -74
- package/dist/sankhyablocks/p-2266555e.entry.js +0 -1
- package/dist/sankhyablocks/p-23c4c94f.js +0 -2
- package/dist/sankhyablocks/p-2454be94.js +0 -1
- package/dist/sankhyablocks/p-49743bc5.js +0 -1
- package/dist/sankhyablocks/p-4fa389bd.entry.js +0 -1
- package/dist/sankhyablocks/p-5327ba05.entry.js +0 -1
- package/dist/sankhyablocks/p-7a922fb4.entry.js +0 -1
- package/dist/sankhyablocks/p-92d6f826.entry.js +0 -1
- package/dist/sankhyablocks/p-bdeef7f2.entry.js +0 -1
|
@@ -1,20 +1,47 @@
|
|
|
1
|
-
import { r as registerInstance,
|
|
2
|
-
import { ErrorException, StringUtils, DataUnit, DataType, ChangeOperation, DateUtils, ObjectUtils, WaitingChangeException,
|
|
3
|
-
import { ApplicationUtils } from '
|
|
4
|
-
import {
|
|
1
|
+
import { r as registerInstance, e as createEvent, h } from './index-2b4d2d14.js';
|
|
2
|
+
import { E as ErrorException, W as WarningException, S as StringUtils, D as DataUnit, b as DataType, C as ChangeOperation, c as DateUtils, O as ObjectUtils, d as WaitingChangeException, e as DependencyType, a as ApplicationContext, f as ErrorTracking } from './index-e5b61043.js';
|
|
3
|
+
import { A as ApplicationUtils, S as SnkMessageBuilder } from './SnkMessageBuilder-cff80920.js';
|
|
4
|
+
import { F as FilterItemType } from './filter-item-type.enum-61fbf80a.js';
|
|
5
5
|
|
|
6
6
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
7
7
|
|
|
8
|
+
function getDefaultExportFromCjs (x) {
|
|
9
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
10
|
+
}
|
|
11
|
+
|
|
8
12
|
function createCommonjsModule(fn, basedir, module) {
|
|
9
13
|
return module = {
|
|
10
14
|
path: basedir,
|
|
11
15
|
exports: {},
|
|
12
16
|
require: function (path, base) {
|
|
13
|
-
return commonjsRequire();
|
|
17
|
+
return commonjsRequire(path, (base === undefined || base === null) ? module.path : base);
|
|
14
18
|
}
|
|
15
19
|
}, fn(module, module.exports), module.exports;
|
|
16
20
|
}
|
|
17
21
|
|
|
22
|
+
function getDefaultExportFromNamespaceIfPresent (n) {
|
|
23
|
+
return n && Object.prototype.hasOwnProperty.call(n, 'default') ? n['default'] : n;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
function getDefaultExportFromNamespaceIfNotNamed (n) {
|
|
27
|
+
return n && Object.prototype.hasOwnProperty.call(n, 'default') && Object.keys(n).length === 1 ? n['default'] : n;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
function getAugmentedNamespace(n) {
|
|
31
|
+
if (n.__esModule) return n;
|
|
32
|
+
var a = Object.defineProperty({}, '__esModule', {value: true});
|
|
33
|
+
Object.keys(n).forEach(function (k) {
|
|
34
|
+
var d = Object.getOwnPropertyDescriptor(n, k);
|
|
35
|
+
Object.defineProperty(a, k, d.get ? d : {
|
|
36
|
+
enumerable: true,
|
|
37
|
+
get: function () {
|
|
38
|
+
return n[k];
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
});
|
|
42
|
+
return a;
|
|
43
|
+
}
|
|
44
|
+
|
|
18
45
|
function commonjsRequire () {
|
|
19
46
|
throw new Error('Dynamic requires are not currently supported by @rollup/plugin-commonjs');
|
|
20
47
|
}
|
|
@@ -31,7 +58,7 @@ return new F();
|
|
|
31
58
|
})();
|
|
32
59
|
(function(self) {
|
|
33
60
|
|
|
34
|
-
(
|
|
61
|
+
var irrelevant = (function (exports) {
|
|
35
62
|
|
|
36
63
|
var support = {
|
|
37
64
|
searchParams: 'URLSearchParams' in self,
|
|
@@ -559,7 +586,7 @@ return new F();
|
|
|
559
586
|
|
|
560
587
|
return exports;
|
|
561
588
|
|
|
562
|
-
})
|
|
589
|
+
})({});
|
|
563
590
|
})(__self__);
|
|
564
591
|
__self__.fetch.ponyfill = true;
|
|
565
592
|
// Remove "polyfill" property added by whatwg-fetch
|
|
@@ -576,7 +603,10 @@ exports.Response = ctx.Response;
|
|
|
576
603
|
module.exports = exports;
|
|
577
604
|
});
|
|
578
605
|
|
|
606
|
+
const browserPonyfill$1 = /*@__PURE__*/getDefaultExportFromCjs(browserPonyfill);
|
|
607
|
+
|
|
579
608
|
var isObjectLike_1 = createCommonjsModule(function (module, exports) {
|
|
609
|
+
'use strict';
|
|
580
610
|
|
|
581
611
|
Object.defineProperty(exports, '__esModule', {
|
|
582
612
|
value: true,
|
|
@@ -592,7 +622,10 @@ function isObjectLike(value) {
|
|
|
592
622
|
}
|
|
593
623
|
});
|
|
594
624
|
|
|
625
|
+
const isObjectLike = /*@__PURE__*/getDefaultExportFromCjs(isObjectLike_1);
|
|
626
|
+
|
|
595
627
|
var invariant_1 = createCommonjsModule(function (module, exports) {
|
|
628
|
+
'use strict';
|
|
596
629
|
|
|
597
630
|
Object.defineProperty(exports, '__esModule', {
|
|
598
631
|
value: true,
|
|
@@ -610,7 +643,10 @@ function invariant(condition, message) {
|
|
|
610
643
|
}
|
|
611
644
|
});
|
|
612
645
|
|
|
646
|
+
const invariant = /*@__PURE__*/getDefaultExportFromCjs(invariant_1);
|
|
647
|
+
|
|
613
648
|
var location_1 = createCommonjsModule(function (module, exports) {
|
|
649
|
+
'use strict';
|
|
614
650
|
|
|
615
651
|
Object.defineProperty(exports, '__esModule', {
|
|
616
652
|
value: true,
|
|
@@ -650,7 +686,10 @@ function getLocation(source, position) {
|
|
|
650
686
|
}
|
|
651
687
|
});
|
|
652
688
|
|
|
689
|
+
const location$1 = /*@__PURE__*/getDefaultExportFromCjs(location_1);
|
|
690
|
+
|
|
653
691
|
var printLocation_1 = createCommonjsModule(function (module, exports) {
|
|
692
|
+
'use strict';
|
|
654
693
|
|
|
655
694
|
Object.defineProperty(exports, '__esModule', {
|
|
656
695
|
value: true,
|
|
@@ -726,7 +765,10 @@ function printPrefixedLines(lines) {
|
|
|
726
765
|
}
|
|
727
766
|
});
|
|
728
767
|
|
|
768
|
+
const printLocation = /*@__PURE__*/getDefaultExportFromCjs(printLocation_1);
|
|
769
|
+
|
|
729
770
|
var GraphQLError_1 = createCommonjsModule(function (module, exports) {
|
|
771
|
+
'use strict';
|
|
730
772
|
|
|
731
773
|
Object.defineProperty(exports, '__esModule', {
|
|
732
774
|
value: true,
|
|
@@ -995,7 +1037,10 @@ function formatError(error) {
|
|
|
995
1037
|
}
|
|
996
1038
|
});
|
|
997
1039
|
|
|
1040
|
+
const GraphQLError = /*@__PURE__*/getDefaultExportFromCjs(GraphQLError_1);
|
|
1041
|
+
|
|
998
1042
|
var syntaxError_1 = createCommonjsModule(function (module, exports) {
|
|
1043
|
+
'use strict';
|
|
999
1044
|
|
|
1000
1045
|
Object.defineProperty(exports, '__esModule', {
|
|
1001
1046
|
value: true,
|
|
@@ -1016,7 +1061,10 @@ function syntaxError(source, position, description) {
|
|
|
1016
1061
|
}
|
|
1017
1062
|
});
|
|
1018
1063
|
|
|
1064
|
+
const syntaxError = /*@__PURE__*/getDefaultExportFromCjs(syntaxError_1);
|
|
1065
|
+
|
|
1019
1066
|
var ast = createCommonjsModule(function (module, exports) {
|
|
1067
|
+
'use strict';
|
|
1020
1068
|
|
|
1021
1069
|
Object.defineProperty(exports, '__esModule', {
|
|
1022
1070
|
value: true,
|
|
@@ -1242,7 +1290,10 @@ exports.OperationTypeNode = OperationTypeNode;
|
|
|
1242
1290
|
})(OperationTypeNode || (exports.OperationTypeNode = OperationTypeNode = {}));
|
|
1243
1291
|
});
|
|
1244
1292
|
|
|
1293
|
+
const ast$1 = /*@__PURE__*/getDefaultExportFromCjs(ast);
|
|
1294
|
+
|
|
1245
1295
|
var directiveLocation = createCommonjsModule(function (module, exports) {
|
|
1296
|
+
'use strict';
|
|
1246
1297
|
|
|
1247
1298
|
Object.defineProperty(exports, '__esModule', {
|
|
1248
1299
|
value: true,
|
|
@@ -1283,7 +1334,10 @@ exports.DirectiveLocation = DirectiveLocation;
|
|
|
1283
1334
|
*/
|
|
1284
1335
|
});
|
|
1285
1336
|
|
|
1337
|
+
const directiveLocation$1 = /*@__PURE__*/getDefaultExportFromCjs(directiveLocation);
|
|
1338
|
+
|
|
1286
1339
|
var kinds = createCommonjsModule(function (module, exports) {
|
|
1340
|
+
'use strict';
|
|
1287
1341
|
|
|
1288
1342
|
Object.defineProperty(exports, '__esModule', {
|
|
1289
1343
|
value: true,
|
|
@@ -1348,7 +1402,10 @@ exports.Kind = Kind;
|
|
|
1348
1402
|
*/
|
|
1349
1403
|
});
|
|
1350
1404
|
|
|
1405
|
+
const kinds$1 = /*@__PURE__*/getDefaultExportFromCjs(kinds);
|
|
1406
|
+
|
|
1351
1407
|
var characterClasses = createCommonjsModule(function (module, exports) {
|
|
1408
|
+
'use strict';
|
|
1352
1409
|
|
|
1353
1410
|
Object.defineProperty(exports, '__esModule', {
|
|
1354
1411
|
value: true,
|
|
@@ -1425,7 +1482,10 @@ function isNameContinue(code) {
|
|
|
1425
1482
|
}
|
|
1426
1483
|
});
|
|
1427
1484
|
|
|
1485
|
+
const characterClasses$1 = /*@__PURE__*/getDefaultExportFromCjs(characterClasses);
|
|
1486
|
+
|
|
1428
1487
|
var blockString = createCommonjsModule(function (module, exports) {
|
|
1488
|
+
'use strict';
|
|
1429
1489
|
|
|
1430
1490
|
Object.defineProperty(exports, '__esModule', {
|
|
1431
1491
|
value: true,
|
|
@@ -1622,7 +1682,10 @@ function printBlockString(value, options) {
|
|
|
1622
1682
|
}
|
|
1623
1683
|
});
|
|
1624
1684
|
|
|
1685
|
+
const blockString$1 = /*@__PURE__*/getDefaultExportFromCjs(blockString);
|
|
1686
|
+
|
|
1625
1687
|
var tokenKind = createCommonjsModule(function (module, exports) {
|
|
1688
|
+
'use strict';
|
|
1626
1689
|
|
|
1627
1690
|
Object.defineProperty(exports, '__esModule', {
|
|
1628
1691
|
value: true,
|
|
@@ -1667,7 +1730,10 @@ exports.TokenKind = TokenKind;
|
|
|
1667
1730
|
*/
|
|
1668
1731
|
});
|
|
1669
1732
|
|
|
1733
|
+
const tokenKind$1 = /*@__PURE__*/getDefaultExportFromCjs(tokenKind);
|
|
1734
|
+
|
|
1670
1735
|
var lexer = createCommonjsModule(function (module, exports) {
|
|
1736
|
+
'use strict';
|
|
1671
1737
|
|
|
1672
1738
|
Object.defineProperty(exports, '__esModule', {
|
|
1673
1739
|
value: true,
|
|
@@ -2675,7 +2741,10 @@ function readName(lexer, start) {
|
|
|
2675
2741
|
}
|
|
2676
2742
|
});
|
|
2677
2743
|
|
|
2744
|
+
const lexer$1 = /*@__PURE__*/getDefaultExportFromCjs(lexer);
|
|
2745
|
+
|
|
2678
2746
|
var devAssert_1 = createCommonjsModule(function (module, exports) {
|
|
2747
|
+
'use strict';
|
|
2679
2748
|
|
|
2680
2749
|
Object.defineProperty(exports, '__esModule', {
|
|
2681
2750
|
value: true,
|
|
@@ -2691,7 +2760,10 @@ function devAssert(condition, message) {
|
|
|
2691
2760
|
}
|
|
2692
2761
|
});
|
|
2693
2762
|
|
|
2763
|
+
const devAssert = /*@__PURE__*/getDefaultExportFromCjs(devAssert_1);
|
|
2764
|
+
|
|
2694
2765
|
var inspect_1 = createCommonjsModule(function (module, exports) {
|
|
2766
|
+
'use strict';
|
|
2695
2767
|
|
|
2696
2768
|
Object.defineProperty(exports, '__esModule', {
|
|
2697
2769
|
value: true,
|
|
@@ -2814,7 +2886,10 @@ function getObjectTag(object) {
|
|
|
2814
2886
|
}
|
|
2815
2887
|
});
|
|
2816
2888
|
|
|
2889
|
+
const inspect = /*@__PURE__*/getDefaultExportFromCjs(inspect_1);
|
|
2890
|
+
|
|
2817
2891
|
var instanceOf_1 = createCommonjsModule(function (module, exports) {
|
|
2892
|
+
'use strict';
|
|
2818
2893
|
|
|
2819
2894
|
Object.defineProperty(exports, '__esModule', {
|
|
2820
2895
|
value: true,
|
|
@@ -2833,14 +2908,54 @@ const instanceOf =
|
|
|
2833
2908
|
/* c8 ignore next 6 */
|
|
2834
2909
|
// FIXME: https://github.com/graphql/graphql-js/issues/2317
|
|
2835
2910
|
// eslint-disable-next-line no-undef
|
|
2836
|
-
|
|
2911
|
+
"development" === 'production'
|
|
2912
|
+
? function instanceOf(value, constructor) {
|
|
2837
2913
|
return value instanceof constructor;
|
|
2838
2914
|
}
|
|
2839
|
-
|
|
2915
|
+
: function instanceOf(value, constructor) {
|
|
2916
|
+
if (value instanceof constructor) {
|
|
2917
|
+
return true;
|
|
2918
|
+
}
|
|
2919
|
+
|
|
2920
|
+
if (typeof value === 'object' && value !== null) {
|
|
2921
|
+
var _value$constructor;
|
|
2922
|
+
|
|
2923
|
+
// Prefer Symbol.toStringTag since it is immune to minification.
|
|
2924
|
+
const className = constructor.prototype[Symbol.toStringTag];
|
|
2925
|
+
const valueClassName = // We still need to support constructor's name to detect conflicts with older versions of this library.
|
|
2926
|
+
Symbol.toStringTag in value // @ts-expect-error TS bug see, https://github.com/microsoft/TypeScript/issues/38009
|
|
2927
|
+
? value[Symbol.toStringTag]
|
|
2928
|
+
: (_value$constructor = value.constructor) === null ||
|
|
2929
|
+
_value$constructor === void 0
|
|
2930
|
+
? void 0
|
|
2931
|
+
: _value$constructor.name;
|
|
2932
|
+
|
|
2933
|
+
if (className === valueClassName) {
|
|
2934
|
+
const stringifiedValue = (0, inspect_1.inspect)(value);
|
|
2935
|
+
throw new Error(`Cannot use ${className} "${stringifiedValue}" from another module or realm.
|
|
2936
|
+
|
|
2937
|
+
Ensure that there is only one instance of "graphql" in the node_modules
|
|
2938
|
+
directory. If different versions of "graphql" are the dependencies of other
|
|
2939
|
+
relied on modules, use "resolutions" to ensure only one version is installed.
|
|
2940
|
+
|
|
2941
|
+
https://yarnpkg.com/en/docs/selective-version-resolutions
|
|
2942
|
+
|
|
2943
|
+
Duplicate "graphql" modules cannot be used at the same time since different
|
|
2944
|
+
versions may have different capabilities and behavior. The data from one
|
|
2945
|
+
version used in the function from another could produce confusing and
|
|
2946
|
+
spurious results.`);
|
|
2947
|
+
}
|
|
2948
|
+
}
|
|
2949
|
+
|
|
2950
|
+
return false;
|
|
2951
|
+
};
|
|
2840
2952
|
exports.instanceOf = instanceOf;
|
|
2841
2953
|
});
|
|
2842
2954
|
|
|
2955
|
+
const instanceOf = /*@__PURE__*/getDefaultExportFromCjs(instanceOf_1);
|
|
2956
|
+
|
|
2843
2957
|
var source = createCommonjsModule(function (module, exports) {
|
|
2958
|
+
'use strict';
|
|
2844
2959
|
|
|
2845
2960
|
Object.defineProperty(exports, '__esModule', {
|
|
2846
2961
|
value: true,
|
|
@@ -2907,7 +3022,10 @@ function isSource(source) {
|
|
|
2907
3022
|
}
|
|
2908
3023
|
});
|
|
2909
3024
|
|
|
3025
|
+
const source$1 = /*@__PURE__*/getDefaultExportFromCjs(source);
|
|
3026
|
+
|
|
2910
3027
|
var parser = createCommonjsModule(function (module, exports) {
|
|
3028
|
+
'use strict';
|
|
2911
3029
|
|
|
2912
3030
|
Object.defineProperty(exports, '__esModule', {
|
|
2913
3031
|
value: true,
|
|
@@ -4476,7 +4594,10 @@ function getTokenKindDesc(kind) {
|
|
|
4476
4594
|
}
|
|
4477
4595
|
});
|
|
4478
4596
|
|
|
4597
|
+
const parser$1 = /*@__PURE__*/getDefaultExportFromCjs(parser);
|
|
4598
|
+
|
|
4479
4599
|
var printString_1 = createCommonjsModule(function (module, exports) {
|
|
4600
|
+
'use strict';
|
|
4480
4601
|
|
|
4481
4602
|
Object.defineProperty(exports, '__esModule', {
|
|
4482
4603
|
value: true,
|
|
@@ -4661,7 +4782,10 @@ const escapeSequences = [
|
|
|
4661
4782
|
];
|
|
4662
4783
|
});
|
|
4663
4784
|
|
|
4785
|
+
const printString = /*@__PURE__*/getDefaultExportFromCjs(printString_1);
|
|
4786
|
+
|
|
4664
4787
|
var visitor = createCommonjsModule(function (module, exports) {
|
|
4788
|
+
'use strict';
|
|
4665
4789
|
|
|
4666
4790
|
Object.defineProperty(exports, '__esModule', {
|
|
4667
4791
|
value: true,
|
|
@@ -5040,7 +5164,10 @@ function getVisitFn(visitor, kind, isLeaving) {
|
|
|
5040
5164
|
}
|
|
5041
5165
|
});
|
|
5042
5166
|
|
|
5167
|
+
const visitor$1 = /*@__PURE__*/getDefaultExportFromCjs(visitor);
|
|
5168
|
+
|
|
5043
5169
|
var printer = createCommonjsModule(function (module, exports) {
|
|
5170
|
+
'use strict';
|
|
5044
5171
|
|
|
5045
5172
|
Object.defineProperty(exports, '__esModule', {
|
|
5046
5173
|
value: true,
|
|
@@ -5393,6 +5520,10 @@ function hasMultilineItems(maybeArray) {
|
|
|
5393
5520
|
}
|
|
5394
5521
|
});
|
|
5395
5522
|
|
|
5523
|
+
const printer$1 = /*@__PURE__*/getDefaultExportFromCjs(printer);
|
|
5524
|
+
|
|
5525
|
+
'use strict';
|
|
5526
|
+
|
|
5396
5527
|
var ReactNativeFile$1 = function ReactNativeFile(_ref) {
|
|
5397
5528
|
var uri = _ref.uri,
|
|
5398
5529
|
name = _ref.name,
|
|
@@ -5402,6 +5533,10 @@ var ReactNativeFile$1 = function ReactNativeFile(_ref) {
|
|
|
5402
5533
|
this.type = type;
|
|
5403
5534
|
};
|
|
5404
5535
|
|
|
5536
|
+
'use strict';
|
|
5537
|
+
|
|
5538
|
+
|
|
5539
|
+
|
|
5405
5540
|
var isExtractableFile$1 = function isExtractableFile(value) {
|
|
5406
5541
|
return (
|
|
5407
5542
|
(typeof File !== 'undefined' && value instanceof File) ||
|
|
@@ -5410,6 +5545,10 @@ var isExtractableFile$1 = function isExtractableFile(value) {
|
|
|
5410
5545
|
);
|
|
5411
5546
|
};
|
|
5412
5547
|
|
|
5548
|
+
'use strict';
|
|
5549
|
+
|
|
5550
|
+
|
|
5551
|
+
|
|
5413
5552
|
var extractFiles$1 = function extractFiles(value, path, isExtractableFile) {
|
|
5414
5553
|
if (path === void 0) {
|
|
5415
5554
|
path = '';
|
|
@@ -5461,6 +5600,8 @@ var extractFiles$1 = function extractFiles(value, path, isExtractableFile) {
|
|
|
5461
5600
|
};
|
|
5462
5601
|
};
|
|
5463
5602
|
|
|
5603
|
+
'use strict';
|
|
5604
|
+
|
|
5464
5605
|
var ReactNativeFile = ReactNativeFile$1;
|
|
5465
5606
|
var extractFiles = extractFiles$1;
|
|
5466
5607
|
var isExtractableFile = isExtractableFile$1;
|
|
@@ -5475,6 +5616,7 @@ var _public = {
|
|
|
5475
5616
|
var browser = typeof self == 'object' ? self.FormData : window.FormData;
|
|
5476
5617
|
|
|
5477
5618
|
var defaultJsonSerializer = createCommonjsModule(function (module, exports) {
|
|
5619
|
+
"use strict";
|
|
5478
5620
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5479
5621
|
exports.defaultJsonSerializer = void 0;
|
|
5480
5622
|
exports.defaultJsonSerializer = {
|
|
@@ -5484,7 +5626,10 @@ exports.defaultJsonSerializer = {
|
|
|
5484
5626
|
//# sourceMappingURL=defaultJsonSerializer.js.map
|
|
5485
5627
|
});
|
|
5486
5628
|
|
|
5629
|
+
const defaultJsonSerializer$1 = /*@__PURE__*/getDefaultExportFromCjs(defaultJsonSerializer);
|
|
5630
|
+
|
|
5487
5631
|
var createRequestBody_1 = createCommonjsModule(function (module, exports) {
|
|
5632
|
+
"use strict";
|
|
5488
5633
|
var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
5489
5634
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
5490
5635
|
};
|
|
@@ -5541,7 +5686,10 @@ exports.default = createRequestBody;
|
|
|
5541
5686
|
//# sourceMappingURL=createRequestBody.js.map
|
|
5542
5687
|
});
|
|
5543
5688
|
|
|
5689
|
+
const createRequestBody = /*@__PURE__*/getDefaultExportFromCjs(createRequestBody_1);
|
|
5690
|
+
|
|
5544
5691
|
var parseArgs = createCommonjsModule(function (module, exports) {
|
|
5692
|
+
"use strict";
|
|
5545
5693
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5546
5694
|
exports.parseBatchRequestsExtendedArgs = exports.parseRawRequestExtendedArgs = exports.parseRequestExtendedArgs = exports.parseBatchRequestArgs = exports.parseRawRequestArgs = exports.parseRequestArgs = void 0;
|
|
5547
5695
|
function parseRequestArgs(documentOrOptions, variables, requestHeaders) {
|
|
@@ -5614,7 +5762,10 @@ exports.parseBatchRequestsExtendedArgs = parseBatchRequestsExtendedArgs;
|
|
|
5614
5762
|
//# sourceMappingURL=parseArgs.js.map
|
|
5615
5763
|
});
|
|
5616
5764
|
|
|
5765
|
+
const parseArgs$1 = /*@__PURE__*/getDefaultExportFromCjs(parseArgs);
|
|
5766
|
+
|
|
5617
5767
|
var types = createCommonjsModule(function (module, exports) {
|
|
5768
|
+
"use strict";
|
|
5618
5769
|
var __extends = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
5619
5770
|
var extendStatics = function (d, b) {
|
|
5620
5771
|
extendStatics = Object.setPrototypeOf ||
|
|
@@ -5664,7 +5815,10 @@ exports.ClientError = ClientError;
|
|
|
5664
5815
|
//# sourceMappingURL=types.js.map
|
|
5665
5816
|
});
|
|
5666
5817
|
|
|
5818
|
+
const types$1 = /*@__PURE__*/getDefaultExportFromCjs(types);
|
|
5819
|
+
|
|
5667
5820
|
var graphqlWs = createCommonjsModule(function (module, exports) {
|
|
5821
|
+
"use strict";
|
|
5668
5822
|
var __assign = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
5669
5823
|
__assign = Object.assign || function(t) {
|
|
5670
5824
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -5844,6 +5998,8 @@ var GraphQLWebSocketClient = /** @class */ (function () {
|
|
|
5844
5998
|
if (message.payload.errors) {
|
|
5845
5999
|
subscriber.error && subscriber.error(new types.ClientError(__assign(__assign({}, message.payload), { status: 200 }), { query: query, variables: variables }));
|
|
5846
6000
|
}
|
|
6001
|
+
else {
|
|
6002
|
+
}
|
|
5847
6003
|
return;
|
|
5848
6004
|
}
|
|
5849
6005
|
case ERROR: {
|
|
@@ -5938,7 +6094,10 @@ function Complete(id) {
|
|
|
5938
6094
|
//# sourceMappingURL=graphql-ws.js.map
|
|
5939
6095
|
});
|
|
5940
6096
|
|
|
6097
|
+
const graphqlWs$1 = /*@__PURE__*/getDefaultExportFromCjs(graphqlWs);
|
|
6098
|
+
|
|
5941
6099
|
var dist = createCommonjsModule(function (module, exports) {
|
|
6100
|
+
"use strict";
|
|
5942
6101
|
var __assign = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
5943
6102
|
__assign = Object.assign || function(t) {
|
|
5944
6103
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -6263,7 +6422,7 @@ exports.GraphQLClient = GraphQLClient;
|
|
|
6263
6422
|
function makeRequest(_a) {
|
|
6264
6423
|
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;
|
|
6265
6424
|
return __awaiter(this, void 0, void 0, function () {
|
|
6266
|
-
var fetcher, isBathchingQuery, response, result, successfullyReceivedData, successfullyPassedErrorPolicy, headers_1, status_1, rest, data, errorResult;
|
|
6425
|
+
var fetcher, isBathchingQuery, response, result, successfullyReceivedData, successfullyPassedErrorPolicy, headers_1, status_1, errors, rest, data, errorResult;
|
|
6267
6426
|
return __generator(this, function (_c) {
|
|
6268
6427
|
switch (_c.label) {
|
|
6269
6428
|
case 0:
|
|
@@ -6290,7 +6449,7 @@ function makeRequest(_a) {
|
|
|
6290
6449
|
successfullyPassedErrorPolicy = !result.errors || fetchOptions.errorPolicy === 'all' || fetchOptions.errorPolicy === 'ignore';
|
|
6291
6450
|
if (response.ok && successfullyPassedErrorPolicy && successfullyReceivedData) {
|
|
6292
6451
|
headers_1 = response.headers, status_1 = response.status;
|
|
6293
|
-
rest = __rest(result, ["errors"]);
|
|
6452
|
+
errors = result.errors, rest = __rest(result, ["errors"]);
|
|
6294
6453
|
data = fetchOptions.errorPolicy === 'ignore' ? rest : result;
|
|
6295
6454
|
return [2 /*return*/, __assign(__assign({}, (isBathchingQuery ? { data: data } : data)), { headers: headers_1, status: status_1 })];
|
|
6296
6455
|
}
|
|
@@ -6298,6 +6457,7 @@ function makeRequest(_a) {
|
|
|
6298
6457
|
errorResult = typeof result === 'string' ? { error: result } : result;
|
|
6299
6458
|
throw new types.ClientError(__assign(__assign({}, errorResult), { status: response.status, headers: response.headers }), { query: query, variables: variables });
|
|
6300
6459
|
}
|
|
6460
|
+
return [2 /*return*/];
|
|
6301
6461
|
}
|
|
6302
6462
|
});
|
|
6303
6463
|
});
|
|
@@ -6427,6 +6587,8 @@ Object.defineProperty(exports, "GraphQLWebSocketClient", { enumerable: true, get
|
|
|
6427
6587
|
//# sourceMappingURL=index.js.map
|
|
6428
6588
|
});
|
|
6429
6589
|
|
|
6590
|
+
const index = /*@__PURE__*/getDefaultExportFromCjs(dist);
|
|
6591
|
+
|
|
6430
6592
|
class UrlUtils {
|
|
6431
6593
|
static getQueryParams(queryString) {
|
|
6432
6594
|
const params = new Map();
|
|
@@ -6484,6 +6646,27 @@ class DataFetcher {
|
|
|
6484
6646
|
DataFetcher.requestListener.splice(index, 1);
|
|
6485
6647
|
}
|
|
6486
6648
|
}
|
|
6649
|
+
processErrorInfo(errors) {
|
|
6650
|
+
var _a, _b;
|
|
6651
|
+
const POSITION_ERROR_INFO = 0;
|
|
6652
|
+
const errorTitle = "Falha detectada";
|
|
6653
|
+
const error = errors[POSITION_ERROR_INFO];
|
|
6654
|
+
if (error.length > 0) { //As informações do erro vem no primeiro indice de um array
|
|
6655
|
+
const errorInfo = error[POSITION_ERROR_INFO];
|
|
6656
|
+
const errorMessage = (errorInfo === null || errorInfo === void 0 ? void 0 : errorInfo.message) ? errorInfo === null || errorInfo === void 0 ? void 0 : errorInfo.message : "Não há mensagem de erro";
|
|
6657
|
+
const errorLevel = ((_a = errorInfo === null || errorInfo === void 0 ? void 0 : errorInfo.extensions) === null || _a === void 0 ? void 0 : _a.level) ? errorInfo.extensions.level : "ERROR";
|
|
6658
|
+
const errorCode = ((_b = errorInfo === null || errorInfo === void 0 ? void 0 : errorInfo.extensions) === null || _b === void 0 ? void 0 : _b.code) ? errorInfo.extensions.code : "";
|
|
6659
|
+
switch (errorLevel) {
|
|
6660
|
+
case "WARNING":
|
|
6661
|
+
return new WarningException(errorTitle, errorMessage, errorCode);
|
|
6662
|
+
default:
|
|
6663
|
+
return new ErrorException(errorTitle, errorMessage, errorCode);
|
|
6664
|
+
}
|
|
6665
|
+
}
|
|
6666
|
+
else {
|
|
6667
|
+
return new ErrorException(errorTitle, "Não há informações sobre o erro");
|
|
6668
|
+
}
|
|
6669
|
+
}
|
|
6487
6670
|
async callGraphQL(req) {
|
|
6488
6671
|
var _a;
|
|
6489
6672
|
const reqKey = this.getReqKey(req);
|
|
@@ -6494,7 +6677,8 @@ class DataFetcher {
|
|
|
6494
6677
|
let query = this.getQueryTemplate(req);
|
|
6495
6678
|
const res = await this.fecthGrapql([{ document: query, variables: req.values }]);
|
|
6496
6679
|
if (res.errors.length > 0) {
|
|
6497
|
-
|
|
6680
|
+
const error = this.processErrorInfo(res.errors);
|
|
6681
|
+
reject(error);
|
|
6498
6682
|
}
|
|
6499
6683
|
else {
|
|
6500
6684
|
resolve(res.data[0][reqKey]);
|
|
@@ -6833,7 +7017,7 @@ class DataUnitFetcher {
|
|
|
6833
7017
|
const { limit, offset, total, hasMore, records } = resp.data;
|
|
6834
7018
|
let paginationInfo;
|
|
6835
7019
|
if (limit) {
|
|
6836
|
-
const firstRecord = offset + 1;
|
|
7020
|
+
const firstRecord = total == 0 ? 0 : offset + 1;
|
|
6837
7021
|
const lastRecord = offset + Math.min(records.length, limit);
|
|
6838
7022
|
const currentPage = offset / limit;
|
|
6839
7023
|
paginationInfo = {
|
|
@@ -7249,7 +7433,14 @@ class SnkErrorHandler {
|
|
|
7249
7433
|
errorHandler(evt) {
|
|
7250
7434
|
this.processException(evt.error);
|
|
7251
7435
|
}
|
|
7436
|
+
buildErrorCodeHTML(exception) {
|
|
7437
|
+
const onclick = 'try{window.workspace.openHelp(\'_tbcode:' + exception.errorCode + '\')} catch(e){alert(\'Não é possível abrir a ajuda fora do workspace Sankhya\');}';
|
|
7438
|
+
return '<br><a href="#" onclick="' + onclick + '">Código: ' + exception.errorCode + '</a>';
|
|
7439
|
+
}
|
|
7252
7440
|
processException(exception) {
|
|
7441
|
+
if (exception.errorCode != "") {
|
|
7442
|
+
exception.message += this.buildErrorCodeHTML(exception);
|
|
7443
|
+
}
|
|
7253
7444
|
if (exception instanceof WaitingChangeException) {
|
|
7254
7445
|
this._app.alert(exception.title, exception.message);
|
|
7255
7446
|
}
|
|
@@ -7324,6 +7515,273 @@ class TotalsFetcher {
|
|
|
7324
7515
|
}
|
|
7325
7516
|
}
|
|
7326
7517
|
|
|
7518
|
+
class FilterBarConfigFetcher extends ResourceFetcher {
|
|
7519
|
+
getConfig(resourceID) {
|
|
7520
|
+
return new Promise((resolve) => {
|
|
7521
|
+
if (resourceID === "br.com.sankhya.fin.cad.movimentacaoFinanceira") {
|
|
7522
|
+
resolve([{
|
|
7523
|
+
id: "RECDESP",
|
|
7524
|
+
visible: true,
|
|
7525
|
+
label: "Receitas + Despesas",
|
|
7526
|
+
detailTitle: "Selecione o que deseja ver",
|
|
7527
|
+
type: FilterItemType.BINARY_SELECT,
|
|
7528
|
+
hardFixed: true,
|
|
7529
|
+
props: {
|
|
7530
|
+
options: [
|
|
7531
|
+
{ name: "RECEITA", expression: "this.RECDESP = 1", label: "Receitas" },
|
|
7532
|
+
{ name: "DESPESA", expression: "this.RECDESP = -1", label: "Despesas" }
|
|
7533
|
+
]
|
|
7534
|
+
}
|
|
7535
|
+
},
|
|
7536
|
+
{
|
|
7537
|
+
id: "PROVISAO",
|
|
7538
|
+
visible: true,
|
|
7539
|
+
label: "Real + Provisão",
|
|
7540
|
+
detailTitle: "Selecione o que deseja ver",
|
|
7541
|
+
type: FilterItemType.BINARY_SELECT,
|
|
7542
|
+
hardFixed: true,
|
|
7543
|
+
props: {
|
|
7544
|
+
options: [
|
|
7545
|
+
{ name: "REAL", expression: "nullvalue(this.PROVISAO, 'N') = 'N'", label: "Real" },
|
|
7546
|
+
{ name: "PROVISAO", expression: "nullvalue(this.PROVISAO, 'N') = 'S'", label: "Provisão" }
|
|
7547
|
+
]
|
|
7548
|
+
}
|
|
7549
|
+
},
|
|
7550
|
+
{
|
|
7551
|
+
id: "BAIXADO",
|
|
7552
|
+
visible: true,
|
|
7553
|
+
label: "Pendentes + Baixados",
|
|
7554
|
+
detailTitle: "Selecione o que deseja ver",
|
|
7555
|
+
type: FilterItemType.BINARY_SELECT,
|
|
7556
|
+
hardFixed: true,
|
|
7557
|
+
props: {
|
|
7558
|
+
options: [
|
|
7559
|
+
{ name: "PENDENTE", expression: "this.DHBAIXA IS NULL", label: "Pendentes" },
|
|
7560
|
+
{ name: "BAIXADO", expression: "this.DHBAIXA IS NOT NULL", label: "Baixados" }
|
|
7561
|
+
]
|
|
7562
|
+
}
|
|
7563
|
+
},
|
|
7564
|
+
{
|
|
7565
|
+
id: "DTVENC",
|
|
7566
|
+
visible: true,
|
|
7567
|
+
type: FilterItemType.PERIOD,
|
|
7568
|
+
label: "Dt. Vencimento",
|
|
7569
|
+
detailTitle: "Informe a data ou período",
|
|
7570
|
+
props: {
|
|
7571
|
+
expression: {
|
|
7572
|
+
fullfill: "onlydate(this.DTVENC) >= :DTVENC.START AND onlydate(this.DTVENC) <= :DTVENC.END",
|
|
7573
|
+
onlystart: "onlydate(this.DTVENC) >= :DTVENC",
|
|
7574
|
+
onlyend: "onlydate(this.DTVENC) <= :DTVENC"
|
|
7575
|
+
}
|
|
7576
|
+
}
|
|
7577
|
+
},
|
|
7578
|
+
{
|
|
7579
|
+
id: "CODPARC",
|
|
7580
|
+
visible: true,
|
|
7581
|
+
type: FilterItemType.SEARCH,
|
|
7582
|
+
label: "Parceiro",
|
|
7583
|
+
detailTitle: "Informe o parceiro",
|
|
7584
|
+
props: {
|
|
7585
|
+
expression: "this.CODPARC = :CODPARC",
|
|
7586
|
+
searchContext: {
|
|
7587
|
+
entity: "Parceiro",
|
|
7588
|
+
entityDescription: "Parceiro",
|
|
7589
|
+
searchOptions: {
|
|
7590
|
+
rootEntity: "Financeiro",
|
|
7591
|
+
descriptionFieldName: "NOMEPARC",
|
|
7592
|
+
codeFieldName: "CODPARC",
|
|
7593
|
+
showInactives: false
|
|
7594
|
+
}
|
|
7595
|
+
}
|
|
7596
|
+
}
|
|
7597
|
+
},
|
|
7598
|
+
{
|
|
7599
|
+
id: "NUFIN",
|
|
7600
|
+
type: FilterItemType.NUMBER,
|
|
7601
|
+
visible: true,
|
|
7602
|
+
label: "Nr. único",
|
|
7603
|
+
detailTitle: "Informe o número único",
|
|
7604
|
+
props: {
|
|
7605
|
+
expression: "this.NUFIN = :NUFIN"
|
|
7606
|
+
}
|
|
7607
|
+
},
|
|
7608
|
+
{
|
|
7609
|
+
id: "NUMNOTA",
|
|
7610
|
+
visible: true,
|
|
7611
|
+
type: FilterItemType.NUMBER,
|
|
7612
|
+
label: "Nr. Nota",
|
|
7613
|
+
detailTitle: "Informe o número da nota",
|
|
7614
|
+
props: {
|
|
7615
|
+
expression: "this.NUMNOTA = :NUMNOTA"
|
|
7616
|
+
}
|
|
7617
|
+
},
|
|
7618
|
+
{
|
|
7619
|
+
id: "DHBAIXA",
|
|
7620
|
+
visible: true,
|
|
7621
|
+
type: FilterItemType.PERIOD,
|
|
7622
|
+
label: "Data da Baixa",
|
|
7623
|
+
detailTitle: "Informe a data ou período",
|
|
7624
|
+
props: {
|
|
7625
|
+
expression: {
|
|
7626
|
+
fullfill: "onlydate(this.DHBAIXA) >= :DHBAIXA.START AND onlydate(this.DHBAIXA) <= :DHBAIXA.END",
|
|
7627
|
+
onlystart: "onlydate(this.DHBAIXA) >= :DHBAIXA",
|
|
7628
|
+
onlyend: "onlydate(this.DHBAIXA) <= :DHBAIXA"
|
|
7629
|
+
}
|
|
7630
|
+
}
|
|
7631
|
+
},
|
|
7632
|
+
{
|
|
7633
|
+
id: "CODEMP",
|
|
7634
|
+
visible: false,
|
|
7635
|
+
type: FilterItemType.SEARCH,
|
|
7636
|
+
label: "Empresa",
|
|
7637
|
+
detailTitle: "Informe a empresa",
|
|
7638
|
+
props: {
|
|
7639
|
+
expression: "this.CODEMP = :CODEMP",
|
|
7640
|
+
searchContext: {
|
|
7641
|
+
entity: "Empresa",
|
|
7642
|
+
entityDescription: "Empresa",
|
|
7643
|
+
searchOptions: {
|
|
7644
|
+
rootEntity: "Financeiro",
|
|
7645
|
+
descriptionFieldName: "NOMEFANTASIA",
|
|
7646
|
+
codeFieldName: "CODEMP",
|
|
7647
|
+
showInactives: false
|
|
7648
|
+
}
|
|
7649
|
+
}
|
|
7650
|
+
}
|
|
7651
|
+
},
|
|
7652
|
+
{
|
|
7653
|
+
id: "CODNAT",
|
|
7654
|
+
visible: false,
|
|
7655
|
+
type: FilterItemType.SEARCH,
|
|
7656
|
+
label: "Natureza",
|
|
7657
|
+
detailTitle: "Informe a natureza",
|
|
7658
|
+
props: {
|
|
7659
|
+
expression: "this.CODNAT = :CODNAT",
|
|
7660
|
+
searchContext: {
|
|
7661
|
+
entity: "Natureza",
|
|
7662
|
+
entityDescription: "Natureza",
|
|
7663
|
+
searchOptions: {
|
|
7664
|
+
rootEntity: "Financeiro",
|
|
7665
|
+
descriptionFieldName: "DESCRNAT",
|
|
7666
|
+
codeFieldName: "CODNAT",
|
|
7667
|
+
showInactives: false
|
|
7668
|
+
}
|
|
7669
|
+
}
|
|
7670
|
+
}
|
|
7671
|
+
},
|
|
7672
|
+
{
|
|
7673
|
+
id: "DTNEG",
|
|
7674
|
+
visible: false,
|
|
7675
|
+
type: FilterItemType.PERIOD,
|
|
7676
|
+
label: "Dt. Negociação",
|
|
7677
|
+
detailTitle: "Informe a data ou período",
|
|
7678
|
+
props: {
|
|
7679
|
+
expression: {
|
|
7680
|
+
fullfill: "onlydate(this.DTNEG) >= :DTNEG.START AND onlydate(this.DTNEG) <= :DTNEG.END",
|
|
7681
|
+
onlystart: "onlydate(this.DTNEG) >= :DTNEG",
|
|
7682
|
+
onlyend: "onlydate(this.DTNEG) <= :DTNEG"
|
|
7683
|
+
}
|
|
7684
|
+
}
|
|
7685
|
+
},
|
|
7686
|
+
{
|
|
7687
|
+
id: "NUNOTA",
|
|
7688
|
+
visible: false,
|
|
7689
|
+
type: FilterItemType.NUMBER,
|
|
7690
|
+
label: "Nro Único do Pedido",
|
|
7691
|
+
detailTitle: "Informe o número único do pedido",
|
|
7692
|
+
props: {
|
|
7693
|
+
expression: "this.NUNOTA = :NUNOTA"
|
|
7694
|
+
}
|
|
7695
|
+
},
|
|
7696
|
+
{
|
|
7697
|
+
id: "CODCENCUS",
|
|
7698
|
+
visible: false,
|
|
7699
|
+
type: FilterItemType.SEARCH,
|
|
7700
|
+
label: "Centro de resultado",
|
|
7701
|
+
detailTitle: "Informe o centro de resultado",
|
|
7702
|
+
props: {
|
|
7703
|
+
expression: "this.CODCENCUS = :CODCENCUS",
|
|
7704
|
+
searchContext: {
|
|
7705
|
+
entity: "CentroResultado",
|
|
7706
|
+
entityDescription: "Centro de resultado",
|
|
7707
|
+
searchOptions: {
|
|
7708
|
+
rootEntity: "Financeiro",
|
|
7709
|
+
descriptionFieldName: "DESCRCENCUS",
|
|
7710
|
+
codeFieldName: "CODCENCUS",
|
|
7711
|
+
showInactives: false
|
|
7712
|
+
}
|
|
7713
|
+
}
|
|
7714
|
+
}
|
|
7715
|
+
},
|
|
7716
|
+
{
|
|
7717
|
+
id: "CODCTABCOINT",
|
|
7718
|
+
visible: false,
|
|
7719
|
+
type: FilterItemType.SEARCH,
|
|
7720
|
+
label: "Conta bancária",
|
|
7721
|
+
detailTitle: "Informe a conta bancária",
|
|
7722
|
+
props: {
|
|
7723
|
+
expression: "this.CODCTABCOINT = :CODCTABCOINT",
|
|
7724
|
+
searchContext: {
|
|
7725
|
+
entity: "ContaBancaria",
|
|
7726
|
+
entityDescription: "Conta bancária",
|
|
7727
|
+
searchOptions: {
|
|
7728
|
+
rootEntity: "Financeiro",
|
|
7729
|
+
descriptionFieldName: "DESCRICAO",
|
|
7730
|
+
codeFieldName: "CODCTABCOINT",
|
|
7731
|
+
showInactives: false
|
|
7732
|
+
}
|
|
7733
|
+
}
|
|
7734
|
+
}
|
|
7735
|
+
},
|
|
7736
|
+
{
|
|
7737
|
+
id: "CODBCO",
|
|
7738
|
+
visible: false,
|
|
7739
|
+
type: FilterItemType.SEARCH,
|
|
7740
|
+
label: "Banco",
|
|
7741
|
+
detailTitle: "Informe o banco",
|
|
7742
|
+
props: {
|
|
7743
|
+
expression: "this.CODBCO = :CODBCO",
|
|
7744
|
+
searchContext: {
|
|
7745
|
+
entity: "Banco",
|
|
7746
|
+
entityDescription: "Banco",
|
|
7747
|
+
searchOptions: {
|
|
7748
|
+
rootEntity: "Financeiro",
|
|
7749
|
+
descriptionFieldName: "NOMEBCO",
|
|
7750
|
+
codeFieldName: "CODBCO",
|
|
7751
|
+
showInactives: false
|
|
7752
|
+
}
|
|
7753
|
+
}
|
|
7754
|
+
}
|
|
7755
|
+
},
|
|
7756
|
+
{
|
|
7757
|
+
id: "CODPROJ",
|
|
7758
|
+
visible: false,
|
|
7759
|
+
type: FilterItemType.SEARCH,
|
|
7760
|
+
label: "Projeto",
|
|
7761
|
+
detailTitle: "Informe o projeto",
|
|
7762
|
+
props: {
|
|
7763
|
+
expression: "this.CODPROJ = :CODPROJ",
|
|
7764
|
+
searchContext: {
|
|
7765
|
+
entity: "Projeto",
|
|
7766
|
+
entityDescription: "Projeto",
|
|
7767
|
+
searchOptions: {
|
|
7768
|
+
rootEntity: "Financeiro",
|
|
7769
|
+
descriptionFieldName: "IDENTIFICACAO",
|
|
7770
|
+
codeFieldName: "CODPROJ",
|
|
7771
|
+
showInactives: false
|
|
7772
|
+
}
|
|
7773
|
+
}
|
|
7774
|
+
}
|
|
7775
|
+
}
|
|
7776
|
+
]);
|
|
7777
|
+
}
|
|
7778
|
+
else {
|
|
7779
|
+
resolve(undefined);
|
|
7780
|
+
}
|
|
7781
|
+
});
|
|
7782
|
+
}
|
|
7783
|
+
}
|
|
7784
|
+
|
|
7327
7785
|
const snkApplicationCss = ".sc-snk-application-h{display:flex;flex-direction:column;height:100%}";
|
|
7328
7786
|
|
|
7329
7787
|
const SnkApplication = class {
|
|
@@ -7653,6 +8111,12 @@ const SnkApplication = class {
|
|
|
7653
8111
|
async saveGridConfig(config) {
|
|
7654
8112
|
return this.gridConfigFetcher.saveConfig(config, this.resourceID);
|
|
7655
8113
|
}
|
|
8114
|
+
/**
|
|
8115
|
+
* Obtém as configurações da barra de filtros
|
|
8116
|
+
*/
|
|
8117
|
+
async getFilterBarConfig() {
|
|
8118
|
+
return this.filterBarConfigFetcher.getConfig(this.resourceID);
|
|
8119
|
+
}
|
|
7656
8120
|
async getAuthList(_auth) {
|
|
7657
8121
|
return await (new MGEAuthorization()).parseFromJSON(_auth);
|
|
7658
8122
|
}
|
|
@@ -7698,9 +8162,17 @@ const SnkApplication = class {
|
|
|
7698
8162
|
}
|
|
7699
8163
|
return this._authFetcher;
|
|
7700
8164
|
}
|
|
8165
|
+
get filterBarConfigFetcher() {
|
|
8166
|
+
if (!this._filterBarConfigFetcher) {
|
|
8167
|
+
this._filterBarConfigFetcher = new FilterBarConfigFetcher();
|
|
8168
|
+
}
|
|
8169
|
+
return this._filterBarConfigFetcher;
|
|
8170
|
+
}
|
|
7701
8171
|
async executeSearch(searchArgument, fieldName, dataUnit) {
|
|
7702
8172
|
const descriptor = dataUnit === null || dataUnit === void 0 ? void 0 : dataUnit.getField(fieldName);
|
|
7703
|
-
if (!descriptor)
|
|
8173
|
+
if (!descriptor) {
|
|
8174
|
+
//TODO: Implementar mensagem de erro
|
|
8175
|
+
}
|
|
7704
8176
|
else {
|
|
7705
8177
|
const { mode, argument } = searchArgument;
|
|
7706
8178
|
const { ENTITYNAME, CODEFIELD, DESCRIPTIONFIELD, ROOTENTITY, DESCRIPTIONENTITY } = descriptor.properties;
|
|
@@ -7732,23 +8204,27 @@ const SnkApplication = class {
|
|
|
7732
8204
|
}
|
|
7733
8205
|
}
|
|
7734
8206
|
});
|
|
7735
|
-
|
|
7736
|
-
|
|
7737
|
-
|
|
7738
|
-
|
|
7739
|
-
|
|
7740
|
-
|
|
7741
|
-
|
|
7742
|
-
|
|
7743
|
-
|
|
7744
|
-
|
|
7745
|
-
|
|
7746
|
-
|
|
7747
|
-
|
|
7748
|
-
|
|
7749
|
-
|
|
7750
|
-
|
|
7751
|
-
|
|
8207
|
+
return this.executePreparedSearch(mode, argument, { entity: ENTITYNAME, entityDescription: DESCRIPTIONENTITY, criteria, searchOptions });
|
|
8208
|
+
}
|
|
8209
|
+
}
|
|
8210
|
+
async executePreparedSearch(mode, argument, options) {
|
|
8211
|
+
const { entity, entityDescription, criteria, searchOptions } = options;
|
|
8212
|
+
if (mode === "ADVANCED") {
|
|
8213
|
+
return new Promise(accept => {
|
|
8214
|
+
const pesquisaContent = document.createElement("snk-pesquisa");
|
|
8215
|
+
pesquisaContent.argument = argument;
|
|
8216
|
+
pesquisaContent.searchLoader = (text) => this.pesquisaFetcher.loadAdvancedSearch(entity, text, criteria, searchOptions);
|
|
8217
|
+
pesquisaContent.selectItem = (option) => {
|
|
8218
|
+
accept(option);
|
|
8219
|
+
this.clearPopUpTitle();
|
|
8220
|
+
this.closePopUp();
|
|
8221
|
+
};
|
|
8222
|
+
this.setPopUpTitle(entityDescription);
|
|
8223
|
+
this.showPopUp(pesquisaContent);
|
|
8224
|
+
});
|
|
8225
|
+
}
|
|
8226
|
+
else {
|
|
8227
|
+
return this.pesquisaFetcher.loadSearchOptions(entity, argument, criteria, searchOptions);
|
|
7752
8228
|
}
|
|
7753
8229
|
}
|
|
7754
8230
|
async isDebugMode() {
|