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