@sankhyalabs/sankhyablocks 1.4.0-beta.2 → 1.4.0-beta.4

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 (152) hide show
  1. package/dist/cjs/{index-b0b676c5.js → index-6fcf07f3.js} +159 -1515
  2. package/dist/cjs/loader.cjs.js +2 -18
  3. package/dist/cjs/sankhyablocks.cjs.js +4 -116
  4. package/dist/cjs/snk-application.cjs.entry.js +53 -217
  5. package/dist/cjs/snk-crud.cjs.entry.js +9 -3
  6. package/dist/cjs/snk-data-unit.cjs.entry.js +23 -23
  7. package/dist/cjs/snk-filter-bar_5.cjs.entry.js +883 -0
  8. package/dist/cjs/snk-filter-binary-select.cjs.entry.js +1 -1
  9. package/dist/cjs/snk-filter-detail.cjs.entry.js +32 -21
  10. package/dist/cjs/snk-filter-multi-select.cjs.entry.js +1 -1
  11. package/dist/cjs/snk-filter-number.cjs.entry.js +1 -1
  12. package/dist/cjs/snk-filter-period.cjs.entry.js +1 -1
  13. package/dist/cjs/snk-filter-personalized.cjs.entry.js +23 -31
  14. package/dist/cjs/snk-filter-search.cjs.entry.js +3 -12
  15. package/dist/cjs/snk-filter-text.cjs.entry.js +1 -1
  16. package/dist/cjs/{snk-form.cjs.entry.js → snk-form_2.cjs.entry.js} +119 -5
  17. package/dist/cjs/snk-pesquisa.cjs.entry.js +5 -5
  18. package/dist/cjs/{taskbar-elements-283c737e.js → taskbar-elements-aedfeae6.js} +1 -1
  19. package/dist/cjs/teste-pesquisa.cjs.entry.js +5 -5
  20. package/dist/collection/components/snk-crud/snk-crud.js +29 -0
  21. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-personalized.js +0 -39
  22. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-search.js +0 -39
  23. package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-detail.js +30 -36
  24. package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-item.js +3 -14
  25. package/dist/collection/components/snk-filter-bar/filter-list/snk-filter-list.js +4 -12
  26. package/dist/collection/lib/http/data-fetcher/DataFetcher.js +3 -3
  27. package/dist/components/index.js +0 -4
  28. package/dist/components/snk-application2.js +13 -177
  29. package/dist/components/snk-crud.js +9 -2
  30. package/dist/components/snk-data-unit.js +2 -2
  31. package/dist/components/snk-filter-bar2.js +4 -2
  32. package/dist/components/snk-filter-detail2.js +31 -21
  33. package/dist/components/snk-filter-item2.js +4 -15
  34. package/dist/components/snk-filter-list2.js +5 -13
  35. package/dist/components/snk-filter-modal2.js +4 -19
  36. package/dist/components/snk-filter-personalized.js +3 -13
  37. package/dist/components/snk-filter-search.js +2 -13
  38. package/dist/components/snk-form2.js +1 -1
  39. package/dist/components/snk-grid2.js +1 -1
  40. package/dist/components/snk-pesquisa2.js +1 -1
  41. package/dist/components/snk-taskbar2.js +1 -1
  42. package/dist/components/teste-pesquisa.js +1 -1
  43. package/dist/{sankhyablocks/index-2b4d2d14.js → esm/index-81dda3cf.js} +160 -1508
  44. package/dist/esm/loader.js +2 -18
  45. package/dist/esm/sankhyablocks.js +4 -116
  46. package/dist/esm/snk-application.entry.js +14 -178
  47. package/dist/esm/snk-crud.entry.js +8 -2
  48. package/dist/esm/snk-data-unit.entry.js +3 -3
  49. package/dist/esm/{snk-filter-bar.entry.js → snk-filter-bar_5.entry.js} +417 -4
  50. package/dist/esm/snk-filter-binary-select.entry.js +1 -1
  51. package/dist/esm/snk-filter-detail.entry.js +32 -21
  52. package/dist/esm/snk-filter-multi-select.entry.js +1 -1
  53. package/dist/esm/snk-filter-number.entry.js +1 -1
  54. package/dist/esm/snk-filter-period.entry.js +1 -1
  55. package/dist/esm/snk-filter-personalized.entry.js +3 -11
  56. package/dist/esm/snk-filter-search.entry.js +2 -11
  57. package/dist/esm/snk-filter-text.entry.js +1 -1
  58. package/dist/{sankhyablocks/snk-form.entry.js → esm/snk-form_2.entry.js} +117 -4
  59. package/dist/esm/snk-pesquisa.entry.js +2 -2
  60. package/dist/esm/{taskbar-elements-35d64ff9.js → taskbar-elements-38eb5d51.js} +1 -1
  61. package/dist/esm/teste-pesquisa.entry.js +2 -2
  62. package/dist/sankhyablocks/index.esm.js +0 -1
  63. package/dist/sankhyablocks/p-01823784.entry.js +1 -0
  64. package/dist/sankhyablocks/p-0352c0e2.entry.js +1 -0
  65. package/dist/sankhyablocks/p-07ebda01.entry.js +1 -0
  66. package/dist/sankhyablocks/p-46caa101.entry.js +1 -0
  67. package/dist/sankhyablocks/p-586e2522.js +1 -0
  68. package/dist/sankhyablocks/p-6f8303f3.entry.js +1 -0
  69. package/dist/sankhyablocks/p-746fc78b.entry.js +1 -0
  70. package/dist/sankhyablocks/p-77216252.entry.js +1 -0
  71. package/dist/sankhyablocks/p-86f15ffe.js +1 -0
  72. package/dist/sankhyablocks/p-8bbc0cbb.entry.js +74 -0
  73. package/dist/sankhyablocks/p-8f3c5709.entry.js +1 -0
  74. package/dist/sankhyablocks/p-97009a2c.entry.js +1 -0
  75. package/dist/sankhyablocks/p-9dd2b8cb.js +1 -0
  76. package/dist/sankhyablocks/p-aecf3e0a.entry.js +1 -0
  77. package/dist/sankhyablocks/p-c1c3b5d8.entry.js +1 -0
  78. package/dist/sankhyablocks/p-c9eec639.entry.js +1 -0
  79. package/dist/sankhyablocks/p-eea6444c.entry.js +1 -0
  80. package/dist/sankhyablocks/p-fac2b6a9.js +2 -0
  81. package/dist/sankhyablocks/p-fb705f81.entry.js +1 -0
  82. package/dist/sankhyablocks/sankhyablocks.esm.js +1 -129
  83. package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-personalized.d.ts +0 -2
  84. package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-search.d.ts +0 -2
  85. package/dist/types/components/snk-filter-bar/filter-item/snk-filter-detail.d.ts +1 -1
  86. package/dist/types/components/snk-filter-bar/filter-list/snk-filter-list.d.ts +1 -1
  87. package/dist/types/components.d.ts +4 -10
  88. package/package.json +1 -1
  89. package/react/components.d.ts +19 -0
  90. package/react/components.js +19 -0
  91. package/react/components.js.map +1 -1
  92. package/dist/cjs/app-globals-3a1e7e63.js +0 -5
  93. package/dist/cjs/css-shim-b8158822.js +0 -6
  94. package/dist/cjs/dom-36862b77.js +0 -75
  95. package/dist/cjs/index-84fe3b86.js +0 -20
  96. package/dist/cjs/index-93965c41.js +0 -141
  97. package/dist/cjs/index-e90ae303.js +0 -2408
  98. package/dist/cjs/shadow-css-346c0795.js +0 -389
  99. package/dist/cjs/snk-filter-bar.cjs.entry.js +0 -466
  100. package/dist/cjs/snk-filter-item.cjs.entry.js +0 -177
  101. package/dist/cjs/snk-filter-list.cjs.entry.js +0 -91
  102. package/dist/cjs/snk-filter-modal.cjs.entry.js +0 -37
  103. package/dist/cjs/snk-grid.cjs.entry.js +0 -79
  104. package/dist/cjs/snk-taskbar.cjs.entry.js +0 -160
  105. package/dist/cjs/taskbar-processor-6bd0d35c.js +0 -47
  106. package/dist/components/index2.js +0 -2394
  107. package/dist/components/index3.js +0 -139
  108. package/dist/esm/app-globals-0f993ce5.js +0 -3
  109. package/dist/esm/css-shim-b3f2ee8d.js +0 -4
  110. package/dist/esm/dom-665d6011.js +0 -73
  111. package/dist/esm/index-2b4d2d14.js +0 -3262
  112. package/dist/esm/index-5992b7e6.js +0 -139
  113. package/dist/esm/index-c683b2b0.js +0 -2394
  114. package/dist/esm/index-c71285cb.js +0 -17
  115. package/dist/esm/shadow-css-b18e99d7.js +0 -387
  116. package/dist/esm/snk-filter-item.entry.js +0 -173
  117. package/dist/esm/snk-filter-list.entry.js +0 -87
  118. package/dist/esm/snk-filter-modal.entry.js +0 -33
  119. package/dist/esm/snk-form.entry.js +0 -129
  120. package/dist/esm/snk-grid.entry.js +0 -75
  121. package/dist/esm/snk-taskbar.entry.js +0 -156
  122. package/dist/esm/taskbar-processor-aa6772c9.js +0 -45
  123. package/dist/sankhyablocks/SnkMessageBuilder-35a20271.js +0 -199
  124. package/dist/sankhyablocks/app-globals-0f993ce5.js +0 -3
  125. package/dist/sankhyablocks/css-shim-b3f2ee8d.js +0 -4
  126. package/dist/sankhyablocks/dom-665d6011.js +0 -73
  127. package/dist/sankhyablocks/filter-item-type.enum-a79b2fa8.js +0 -14
  128. package/dist/sankhyablocks/index-5992b7e6.js +0 -139
  129. package/dist/sankhyablocks/index-c683b2b0.js +0 -2394
  130. package/dist/sankhyablocks/index-c71285cb.js +0 -17
  131. package/dist/sankhyablocks/shadow-css-b18e99d7.js +0 -387
  132. package/dist/sankhyablocks/snk-application.entry.js +0 -8166
  133. package/dist/sankhyablocks/snk-crud.entry.js +0 -66
  134. package/dist/sankhyablocks/snk-data-unit.entry.js +0 -268
  135. package/dist/sankhyablocks/snk-filter-bar.entry.js +0 -462
  136. package/dist/sankhyablocks/snk-filter-binary-select.entry.js +0 -43
  137. package/dist/sankhyablocks/snk-filter-detail.entry.js +0 -80
  138. package/dist/sankhyablocks/snk-filter-item.entry.js +0 -173
  139. package/dist/sankhyablocks/snk-filter-list.entry.js +0 -87
  140. package/dist/sankhyablocks/snk-filter-modal.entry.js +0 -33
  141. package/dist/sankhyablocks/snk-filter-multi-select.entry.js +0 -19
  142. package/dist/sankhyablocks/snk-filter-number.entry.js +0 -20
  143. package/dist/sankhyablocks/snk-filter-period.entry.js +0 -33
  144. package/dist/sankhyablocks/snk-filter-personalized.entry.js +0 -85
  145. package/dist/sankhyablocks/snk-filter-search.entry.js +0 -40
  146. package/dist/sankhyablocks/snk-filter-text.entry.js +0 -18
  147. package/dist/sankhyablocks/snk-grid.entry.js +0 -75
  148. package/dist/sankhyablocks/snk-pesquisa.entry.js +0 -311
  149. package/dist/sankhyablocks/snk-taskbar.entry.js +0 -156
  150. package/dist/sankhyablocks/taskbar-elements-35d64ff9.js +0 -90
  151. package/dist/sankhyablocks/taskbar-processor-aa6772c9.js +0 -45
  152. package/dist/sankhyablocks/teste-pesquisa.entry.js +0 -33
@@ -1,48 +1,21 @@
1
1
  import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
2
- import { E as ErrorException, W as WarningException, S as StringUtils, D as DataUnit, b as DataType, C as ChangeOperation, d as DateUtils, O as ObjectUtils, e as WaitingChangeException, f as DependencyType, A as ApplicationContext, g as ErrorTracking } from './index2.js';
3
- import { A as ApplicationUtils } from './index3.js';
2
+ import { ErrorException, WarningException, StringUtils, DataUnit, DataType, ChangeOperation, DateUtils, ObjectUtils, WaitingChangeException, DependencyType, ApplicationContext, ErrorTracking } from '@sankhyalabs/core';
3
+ import { ApplicationUtils } from '@sankhyalabs/ezui/dist/collection/utils';
4
4
  import { S as SnkMessageBuilder } from './SnkMessageBuilder.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
-
13
9
  function createCommonjsModule(fn, basedir, module) {
14
10
  return module = {
15
11
  path: basedir,
16
12
  exports: {},
17
13
  require: function (path, base) {
18
- return commonjsRequire(path, (base === undefined || base === null) ? module.path : base);
14
+ return commonjsRequire();
19
15
  }
20
16
  }, fn(module, module.exports), module.exports;
21
17
  }
22
18
 
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
-
46
19
  function commonjsRequire () {
47
20
  throw new Error('Dynamic requires are not currently supported by @rollup/plugin-commonjs');
48
21
  }
@@ -59,7 +32,7 @@ return new F();
59
32
  })();
60
33
  (function(self) {
61
34
 
62
- var irrelevant = (function (exports) {
35
+ ((function (exports) {
63
36
 
64
37
  var support = {
65
38
  searchParams: 'URLSearchParams' in self,
@@ -587,7 +560,7 @@ var irrelevant = (function (exports) {
587
560
 
588
561
  return exports;
589
562
 
590
- })({});
563
+ }))({});
591
564
  })(__self__);
592
565
  __self__.fetch.ponyfill = true;
593
566
  // Remove "polyfill" property added by whatwg-fetch
@@ -604,10 +577,7 @@ exports.Response = ctx.Response;
604
577
  module.exports = exports;
605
578
  });
606
579
 
607
- const browserPonyfill$1 = /*@__PURE__*/getDefaultExportFromCjs(browserPonyfill);
608
-
609
580
  var isObjectLike_1 = createCommonjsModule(function (module, exports) {
610
- 'use strict';
611
581
 
612
582
  Object.defineProperty(exports, '__esModule', {
613
583
  value: true,
@@ -623,10 +593,7 @@ function isObjectLike(value) {
623
593
  }
624
594
  });
625
595
 
626
- const isObjectLike = /*@__PURE__*/getDefaultExportFromCjs(isObjectLike_1);
627
-
628
596
  var invariant_1 = createCommonjsModule(function (module, exports) {
629
- 'use strict';
630
597
 
631
598
  Object.defineProperty(exports, '__esModule', {
632
599
  value: true,
@@ -644,10 +611,7 @@ function invariant(condition, message) {
644
611
  }
645
612
  });
646
613
 
647
- const invariant = /*@__PURE__*/getDefaultExportFromCjs(invariant_1);
648
-
649
614
  var location_1 = createCommonjsModule(function (module, exports) {
650
- 'use strict';
651
615
 
652
616
  Object.defineProperty(exports, '__esModule', {
653
617
  value: true,
@@ -687,10 +651,7 @@ function getLocation(source, position) {
687
651
  }
688
652
  });
689
653
 
690
- const location$1 = /*@__PURE__*/getDefaultExportFromCjs(location_1);
691
-
692
654
  var printLocation_1 = createCommonjsModule(function (module, exports) {
693
- 'use strict';
694
655
 
695
656
  Object.defineProperty(exports, '__esModule', {
696
657
  value: true,
@@ -766,10 +727,7 @@ function printPrefixedLines(lines) {
766
727
  }
767
728
  });
768
729
 
769
- const printLocation = /*@__PURE__*/getDefaultExportFromCjs(printLocation_1);
770
-
771
730
  var GraphQLError_1 = createCommonjsModule(function (module, exports) {
772
- 'use strict';
773
731
 
774
732
  Object.defineProperty(exports, '__esModule', {
775
733
  value: true,
@@ -1038,10 +996,7 @@ function formatError(error) {
1038
996
  }
1039
997
  });
1040
998
 
1041
- const GraphQLError = /*@__PURE__*/getDefaultExportFromCjs(GraphQLError_1);
1042
-
1043
999
  var syntaxError_1 = createCommonjsModule(function (module, exports) {
1044
- 'use strict';
1045
1000
 
1046
1001
  Object.defineProperty(exports, '__esModule', {
1047
1002
  value: true,
@@ -1062,10 +1017,7 @@ function syntaxError(source, position, description) {
1062
1017
  }
1063
1018
  });
1064
1019
 
1065
- const syntaxError = /*@__PURE__*/getDefaultExportFromCjs(syntaxError_1);
1066
-
1067
1020
  var ast = createCommonjsModule(function (module, exports) {
1068
- 'use strict';
1069
1021
 
1070
1022
  Object.defineProperty(exports, '__esModule', {
1071
1023
  value: true,
@@ -1291,10 +1243,7 @@ exports.OperationTypeNode = OperationTypeNode;
1291
1243
  })(OperationTypeNode || (exports.OperationTypeNode = OperationTypeNode = {}));
1292
1244
  });
1293
1245
 
1294
- const ast$1 = /*@__PURE__*/getDefaultExportFromCjs(ast);
1295
-
1296
1246
  var directiveLocation = createCommonjsModule(function (module, exports) {
1297
- 'use strict';
1298
1247
 
1299
1248
  Object.defineProperty(exports, '__esModule', {
1300
1249
  value: true,
@@ -1335,10 +1284,7 @@ exports.DirectiveLocation = DirectiveLocation;
1335
1284
  */
1336
1285
  });
1337
1286
 
1338
- const directiveLocation$1 = /*@__PURE__*/getDefaultExportFromCjs(directiveLocation);
1339
-
1340
1287
  var kinds = createCommonjsModule(function (module, exports) {
1341
- 'use strict';
1342
1288
 
1343
1289
  Object.defineProperty(exports, '__esModule', {
1344
1290
  value: true,
@@ -1403,10 +1349,7 @@ exports.Kind = Kind;
1403
1349
  */
1404
1350
  });
1405
1351
 
1406
- const kinds$1 = /*@__PURE__*/getDefaultExportFromCjs(kinds);
1407
-
1408
1352
  var characterClasses = createCommonjsModule(function (module, exports) {
1409
- 'use strict';
1410
1353
 
1411
1354
  Object.defineProperty(exports, '__esModule', {
1412
1355
  value: true,
@@ -1483,10 +1426,7 @@ function isNameContinue(code) {
1483
1426
  }
1484
1427
  });
1485
1428
 
1486
- const characterClasses$1 = /*@__PURE__*/getDefaultExportFromCjs(characterClasses);
1487
-
1488
1429
  var blockString = createCommonjsModule(function (module, exports) {
1489
- 'use strict';
1490
1430
 
1491
1431
  Object.defineProperty(exports, '__esModule', {
1492
1432
  value: true,
@@ -1683,10 +1623,7 @@ function printBlockString(value, options) {
1683
1623
  }
1684
1624
  });
1685
1625
 
1686
- const blockString$1 = /*@__PURE__*/getDefaultExportFromCjs(blockString);
1687
-
1688
1626
  var tokenKind = createCommonjsModule(function (module, exports) {
1689
- 'use strict';
1690
1627
 
1691
1628
  Object.defineProperty(exports, '__esModule', {
1692
1629
  value: true,
@@ -1731,10 +1668,7 @@ exports.TokenKind = TokenKind;
1731
1668
  */
1732
1669
  });
1733
1670
 
1734
- const tokenKind$1 = /*@__PURE__*/getDefaultExportFromCjs(tokenKind);
1735
-
1736
1671
  var lexer = createCommonjsModule(function (module, exports) {
1737
- 'use strict';
1738
1672
 
1739
1673
  Object.defineProperty(exports, '__esModule', {
1740
1674
  value: true,
@@ -2742,10 +2676,7 @@ function readName(lexer, start) {
2742
2676
  }
2743
2677
  });
2744
2678
 
2745
- const lexer$1 = /*@__PURE__*/getDefaultExportFromCjs(lexer);
2746
-
2747
2679
  var devAssert_1 = createCommonjsModule(function (module, exports) {
2748
- 'use strict';
2749
2680
 
2750
2681
  Object.defineProperty(exports, '__esModule', {
2751
2682
  value: true,
@@ -2761,10 +2692,7 @@ function devAssert(condition, message) {
2761
2692
  }
2762
2693
  });
2763
2694
 
2764
- const devAssert = /*@__PURE__*/getDefaultExportFromCjs(devAssert_1);
2765
-
2766
2695
  var inspect_1 = createCommonjsModule(function (module, exports) {
2767
- 'use strict';
2768
2696
 
2769
2697
  Object.defineProperty(exports, '__esModule', {
2770
2698
  value: true,
@@ -2887,10 +2815,7 @@ function getObjectTag(object) {
2887
2815
  }
2888
2816
  });
2889
2817
 
2890
- const inspect = /*@__PURE__*/getDefaultExportFromCjs(inspect_1);
2891
-
2892
2818
  var instanceOf_1 = createCommonjsModule(function (module, exports) {
2893
- 'use strict';
2894
2819
 
2895
2820
  Object.defineProperty(exports, '__esModule', {
2896
2821
  value: true,
@@ -2909,54 +2834,14 @@ const instanceOf =
2909
2834
  /* c8 ignore next 6 */
2910
2835
  // FIXME: https://github.com/graphql/graphql-js/issues/2317
2911
2836
  // eslint-disable-next-line no-undef
2912
- "development" === 'production'
2913
- ? function instanceOf(value, constructor) {
2837
+ function instanceOf(value, constructor) {
2914
2838
  return value instanceof constructor;
2915
2839
  }
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
- };
2840
+ ;
2953
2841
  exports.instanceOf = instanceOf;
2954
2842
  });
2955
2843
 
2956
- const instanceOf = /*@__PURE__*/getDefaultExportFromCjs(instanceOf_1);
2957
-
2958
2844
  var source = createCommonjsModule(function (module, exports) {
2959
- 'use strict';
2960
2845
 
2961
2846
  Object.defineProperty(exports, '__esModule', {
2962
2847
  value: true,
@@ -3023,10 +2908,7 @@ function isSource(source) {
3023
2908
  }
3024
2909
  });
3025
2910
 
3026
- const source$1 = /*@__PURE__*/getDefaultExportFromCjs(source);
3027
-
3028
2911
  var parser = createCommonjsModule(function (module, exports) {
3029
- 'use strict';
3030
2912
 
3031
2913
  Object.defineProperty(exports, '__esModule', {
3032
2914
  value: true,
@@ -4595,10 +4477,7 @@ function getTokenKindDesc(kind) {
4595
4477
  }
4596
4478
  });
4597
4479
 
4598
- const parser$1 = /*@__PURE__*/getDefaultExportFromCjs(parser);
4599
-
4600
4480
  var printString_1 = createCommonjsModule(function (module, exports) {
4601
- 'use strict';
4602
4481
 
4603
4482
  Object.defineProperty(exports, '__esModule', {
4604
4483
  value: true,
@@ -4783,10 +4662,7 @@ const escapeSequences = [
4783
4662
  ];
4784
4663
  });
4785
4664
 
4786
- const printString = /*@__PURE__*/getDefaultExportFromCjs(printString_1);
4787
-
4788
4665
  var visitor = createCommonjsModule(function (module, exports) {
4789
- 'use strict';
4790
4666
 
4791
4667
  Object.defineProperty(exports, '__esModule', {
4792
4668
  value: true,
@@ -5165,10 +5041,7 @@ function getVisitFn(visitor, kind, isLeaving) {
5165
5041
  }
5166
5042
  });
5167
5043
 
5168
- const visitor$1 = /*@__PURE__*/getDefaultExportFromCjs(visitor);
5169
-
5170
5044
  var printer = createCommonjsModule(function (module, exports) {
5171
- 'use strict';
5172
5045
 
5173
5046
  Object.defineProperty(exports, '__esModule', {
5174
5047
  value: true,
@@ -5521,10 +5394,6 @@ function hasMultilineItems(maybeArray) {
5521
5394
  }
5522
5395
  });
5523
5396
 
5524
- const printer$1 = /*@__PURE__*/getDefaultExportFromCjs(printer);
5525
-
5526
- 'use strict';
5527
-
5528
5397
  var ReactNativeFile$1 = function ReactNativeFile(_ref) {
5529
5398
  var uri = _ref.uri,
5530
5399
  name = _ref.name,
@@ -5534,10 +5403,6 @@ var ReactNativeFile$1 = function ReactNativeFile(_ref) {
5534
5403
  this.type = type;
5535
5404
  };
5536
5405
 
5537
- 'use strict';
5538
-
5539
-
5540
-
5541
5406
  var isExtractableFile$1 = function isExtractableFile(value) {
5542
5407
  return (
5543
5408
  (typeof File !== 'undefined' && value instanceof File) ||
@@ -5546,10 +5411,6 @@ var isExtractableFile$1 = function isExtractableFile(value) {
5546
5411
  );
5547
5412
  };
5548
5413
 
5549
- 'use strict';
5550
-
5551
-
5552
-
5553
5414
  var extractFiles$1 = function extractFiles(value, path, isExtractableFile) {
5554
5415
  if (path === void 0) {
5555
5416
  path = '';
@@ -5601,8 +5462,6 @@ var extractFiles$1 = function extractFiles(value, path, isExtractableFile) {
5601
5462
  };
5602
5463
  };
5603
5464
 
5604
- 'use strict';
5605
-
5606
5465
  var ReactNativeFile = ReactNativeFile$1;
5607
5466
  var extractFiles = extractFiles$1;
5608
5467
  var isExtractableFile = isExtractableFile$1;
@@ -5617,7 +5476,6 @@ var _public = {
5617
5476
  var browser = typeof self == 'object' ? self.FormData : window.FormData;
5618
5477
 
5619
5478
  var defaultJsonSerializer = createCommonjsModule(function (module, exports) {
5620
- "use strict";
5621
5479
  Object.defineProperty(exports, "__esModule", { value: true });
5622
5480
  exports.defaultJsonSerializer = void 0;
5623
5481
  exports.defaultJsonSerializer = {
@@ -5627,10 +5485,7 @@ exports.defaultJsonSerializer = {
5627
5485
  //# sourceMappingURL=defaultJsonSerializer.js.map
5628
5486
  });
5629
5487
 
5630
- const defaultJsonSerializer$1 = /*@__PURE__*/getDefaultExportFromCjs(defaultJsonSerializer);
5631
-
5632
5488
  var createRequestBody_1 = createCommonjsModule(function (module, exports) {
5633
- "use strict";
5634
5489
  var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
5635
5490
  return (mod && mod.__esModule) ? mod : { "default": mod };
5636
5491
  };
@@ -5687,10 +5542,7 @@ exports.default = createRequestBody;
5687
5542
  //# sourceMappingURL=createRequestBody.js.map
5688
5543
  });
5689
5544
 
5690
- const createRequestBody = /*@__PURE__*/getDefaultExportFromCjs(createRequestBody_1);
5691
-
5692
5545
  var parseArgs = createCommonjsModule(function (module, exports) {
5693
- "use strict";
5694
5546
  Object.defineProperty(exports, "__esModule", { value: true });
5695
5547
  exports.parseBatchRequestsExtendedArgs = exports.parseRawRequestExtendedArgs = exports.parseRequestExtendedArgs = exports.parseBatchRequestArgs = exports.parseRawRequestArgs = exports.parseRequestArgs = void 0;
5696
5548
  function parseRequestArgs(documentOrOptions, variables, requestHeaders) {
@@ -5763,10 +5615,7 @@ exports.parseBatchRequestsExtendedArgs = parseBatchRequestsExtendedArgs;
5763
5615
  //# sourceMappingURL=parseArgs.js.map
5764
5616
  });
5765
5617
 
5766
- const parseArgs$1 = /*@__PURE__*/getDefaultExportFromCjs(parseArgs);
5767
-
5768
5618
  var types = createCommonjsModule(function (module, exports) {
5769
- "use strict";
5770
5619
  var __extends = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
5771
5620
  var extendStatics = function (d, b) {
5772
5621
  extendStatics = Object.setPrototypeOf ||
@@ -5816,10 +5665,7 @@ exports.ClientError = ClientError;
5816
5665
  //# sourceMappingURL=types.js.map
5817
5666
  });
5818
5667
 
5819
- const types$1 = /*@__PURE__*/getDefaultExportFromCjs(types);
5820
-
5821
5668
  var graphqlWs = createCommonjsModule(function (module, exports) {
5822
- "use strict";
5823
5669
  var __assign = (commonjsGlobal && commonjsGlobal.__assign) || function () {
5824
5670
  __assign = Object.assign || function(t) {
5825
5671
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -5999,8 +5845,6 @@ var GraphQLWebSocketClient = /** @class */ (function () {
5999
5845
  if (message.payload.errors) {
6000
5846
  subscriber.error && subscriber.error(new types.ClientError(__assign(__assign({}, message.payload), { status: 200 }), { query: query, variables: variables }));
6001
5847
  }
6002
- else {
6003
- }
6004
5848
  return;
6005
5849
  }
6006
5850
  case ERROR: {
@@ -6095,10 +5939,7 @@ function Complete(id) {
6095
5939
  //# sourceMappingURL=graphql-ws.js.map
6096
5940
  });
6097
5941
 
6098
- const graphqlWs$1 = /*@__PURE__*/getDefaultExportFromCjs(graphqlWs);
6099
-
6100
5942
  var dist = createCommonjsModule(function (module, exports) {
6101
- "use strict";
6102
5943
  var __assign = (commonjsGlobal && commonjsGlobal.__assign) || function () {
6103
5944
  __assign = Object.assign || function(t) {
6104
5945
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -6423,7 +6264,7 @@ exports.GraphQLClient = GraphQLClient;
6423
6264
  function makeRequest(_a) {
6424
6265
  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;
6425
6266
  return __awaiter(this, void 0, void 0, function () {
6426
- var fetcher, isBathchingQuery, response, result, successfullyReceivedData, successfullyPassedErrorPolicy, headers_1, status_1, errors, rest, data, errorResult;
6267
+ var fetcher, isBathchingQuery, response, result, successfullyReceivedData, successfullyPassedErrorPolicy, headers_1, status_1, rest, data, errorResult;
6427
6268
  return __generator(this, function (_c) {
6428
6269
  switch (_c.label) {
6429
6270
  case 0:
@@ -6450,7 +6291,7 @@ function makeRequest(_a) {
6450
6291
  successfullyPassedErrorPolicy = !result.errors || fetchOptions.errorPolicy === 'all' || fetchOptions.errorPolicy === 'ignore';
6451
6292
  if (response.ok && successfullyPassedErrorPolicy && successfullyReceivedData) {
6452
6293
  headers_1 = response.headers, status_1 = response.status;
6453
- errors = result.errors, rest = __rest(result, ["errors"]);
6294
+ rest = __rest(result, ["errors"]);
6454
6295
  data = fetchOptions.errorPolicy === 'ignore' ? rest : result;
6455
6296
  return [2 /*return*/, __assign(__assign({}, (isBathchingQuery ? { data: data } : data)), { headers: headers_1, status: status_1 })];
6456
6297
  }
@@ -6458,7 +6299,6 @@ function makeRequest(_a) {
6458
6299
  errorResult = typeof result === 'string' ? { error: result } : result;
6459
6300
  throw new types.ClientError(__assign(__assign({}, errorResult), { status: response.status, headers: response.headers }), { query: query, variables: variables });
6460
6301
  }
6461
- return [2 /*return*/];
6462
6302
  }
6463
6303
  });
6464
6304
  });
@@ -6588,8 +6428,6 @@ Object.defineProperty(exports, "GraphQLWebSocketClient", { enumerable: true, get
6588
6428
  //# sourceMappingURL=index.js.map
6589
6429
  });
6590
6430
 
6591
- const index = /*@__PURE__*/getDefaultExportFromCjs(dist);
6592
-
6593
6431
  class UrlUtils {
6594
6432
  static getQueryParams(queryString) {
6595
6433
  const params = new Map();
@@ -6697,14 +6535,14 @@ class DataFetcher {
6697
6535
  return UrlUtils.getUrlBase();
6698
6536
  }
6699
6537
  getContext(module) {
6538
+ var _a;
6700
6539
  const urlParams = UrlUtils.getQueryParams(location.search);
6701
6540
  return {
6702
6541
  baseUrl: `${this.resolveURL()}/${module}/service.sbr`,
6703
6542
  appName: "SankhyaBlocks",
6704
- mgeSession: `${window['skw_session'] || urlParams.mgeSession}`,
6543
+ mgeSession: `${window['skw_session'] || urlParams.get("mgeSession")}`,
6705
6544
  globalID: "85C0093DFA240EAB699B4E47A10215BD",
6706
- //FIXME: Precisamos ajustar para buscar o resourceId pela aplicação
6707
- resourceID: "br.com.sankhya.mov.bancaria"
6545
+ resourceID: (window["resourceID"] || ((_a = window["workspace"]) === null || _a === void 0 ? void 0 : _a.resourceID))
6708
6546
  };
6709
6547
  }
6710
6548
  async callServiceBroker(serviceName, payload) {
@@ -8002,9 +7840,7 @@ const SnkApplication = /*@__PURE__*/ proxyCustomElement(class extends HTMLElemen
8002
7840
  }
8003
7841
  async executeSearch(searchArgument, fieldName, dataUnit) {
8004
7842
  const descriptor = dataUnit === null || dataUnit === void 0 ? void 0 : dataUnit.getField(fieldName);
8005
- if (!descriptor) {
8006
- //TODO: Implementar mensagem de erro
8007
- }
7843
+ if (!descriptor) ;
8008
7844
  else {
8009
7845
  const { mode, argument } = searchArgument;
8010
7846
  const { ENTITYNAME, CODEFIELD, DESCRIPTIONFIELD, ROOTENTITY, DESCRIPTIONENTITY } = descriptor.properties;
@@ -1,5 +1,5 @@
1
1
  import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
2
- import { A as ApplicationContext } from './index2.js';
2
+ import { ApplicationContext } from '@sankhyalabs/core';
3
3
  import { d as defineCustomElement$9 } from './snk-filter-bar2.js';
4
4
  import { d as defineCustomElement$8 } from './snk-filter-detail2.js';
5
5
  import { d as defineCustomElement$7 } from './snk-filter-item2.js';
@@ -19,6 +19,12 @@ const SnkCrud$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
19
19
  this.__registerHost();
20
20
  this.actionClick = createEvent(this, "actionClick", 7);
21
21
  }
22
+ /**
23
+ * Usado para alternar a visão entre GRID e FORM externamente.
24
+ */
25
+ async goToView(mode) {
26
+ this.executeAction(mode);
27
+ }
22
28
  async gridToForm(keepFormMode = false) {
23
29
  this._backToGrid = !keepFormMode && await this._viewStack.getSelectedIndex() === GRID_MODE;
24
30
  this._viewStack.show(FORM_MODE);
@@ -77,7 +83,8 @@ const SnkCrud$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
77
83
  "recordsValidator": [16],
78
84
  "statusResolver": [16],
79
85
  "_dataUnit": [32],
80
- "_dataState": [32]
86
+ "_dataState": [32],
87
+ "goToView": [64]
81
88
  }]);
82
89
  function defineCustomElement$1() {
83
90
  if (typeof customElements === "undefined") {
@@ -1,6 +1,6 @@
1
1
  import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
2
- import { a as Action, A as ApplicationContext } from './index2.js';
3
- import { A as ApplicationUtils, D as DialogType } from './index3.js';
2
+ import { Action, ApplicationContext } from '@sankhyalabs/core';
3
+ import { ApplicationUtils, DialogType } from '@sankhyalabs/ezui/dist/collection/utils';
4
4
  import { O as OperationMap } from './SnkMessageBuilder.js';
5
5
 
6
6
  const snkDataUnitCss = ".sc-snk-data-unit-h{display:flex;flex-direction:column;height:100%}";
@@ -1,10 +1,12 @@
1
1
  import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
2
- import { t as toString, b as DataType, O as ObjectUtils, S as StringUtils, E as ErrorException, A as ApplicationContext } from './index2.js';
2
+ import { DataType, ObjectUtils, StringUtils, ErrorException, ApplicationContext } from '@sankhyalabs/core';
3
3
  import { F as FilterItemType } from './filter-item-type.enum.js';
4
- import { M as ModalAction, d as defineCustomElement$1 } from './snk-filter-modal2.js';
4
+ import { ModalAction } from '@sankhyalabs/ezui/dist/collection/components/ez-modal-container';
5
+ import { toString } from '@sankhyalabs/core/dist/dataunit/metadata/DataType';
5
6
  import { d as defineCustomElement$4 } from './snk-filter-detail2.js';
6
7
  import { d as defineCustomElement$3 } from './snk-filter-item2.js';
7
8
  import { d as defineCustomElement$2 } from './snk-filter-list2.js';
9
+ import { d as defineCustomElement$1 } from './snk-filter-modal2.js';
8
10
 
9
11
  const buildFilter = (item) => {
10
12
  switch (item.type) {
@@ -1,5 +1,5 @@
1
1
  import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
2
- import { A as ApplicationUtils } from './index3.js';
2
+ import { ApplicationUtils } from '@sankhyalabs/ezui/dist/collection/utils';
3
3
  import { F as FilterItemType } from './filter-item-type.enum.js';
4
4
 
5
5
  const SnkFilterDetail = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
@@ -42,43 +42,53 @@ const SnkFilterDetail = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
42
42
  }
43
43
  apply() {
44
44
  var _a;
45
+ let value = this._editor["value"];
45
46
  let isValid = true;
46
- const value = this._editor["value"];
47
- /* WARNING: Temporário. Isso só está sendo feito até desconsiderar os parametros não informados para PersonalizedFilter*/
48
- if (value != undefined && this.config.type === FilterItemType.PERSONALIZED) {
47
+ if (this.config.type === FilterItemType.PERSONALIZED) {
49
48
  const params = ((_a = this.config.props.personalizedFilter) === null || _a === void 0 ? void 0 : _a.parameters) || [];
50
- if (params.length > 1) {
51
- if (params.length > value.length) {
52
- isValid = false;
53
- }
54
- else {
55
- value.forEach(item => {
56
- if (item == undefined) {
57
- isValid = false;
58
- }
59
- });
60
- }
49
+ const paramsCount = params.length;
50
+ if (paramsCount === 0) {
51
+ //Valor do filtro personalizado sem parametros deve ser um array vazio
52
+ value = [];
61
53
  }
62
- if (!isValid) {
63
- this.keepOpened = true;
64
- ApplicationUtils.alert("Filtro parcialmente preenchido", "Favor completar todas as informações do filtro.").then(() => setTimeout(() => this.keepOpened = false, 1));
54
+ else {
55
+ isValid = this.validateAllFilled(paramsCount, value);
65
56
  }
66
57
  }
67
- /* WARNING: Temporário.*/
68
58
  if (isValid) {
69
59
  this.changeConfig(Object.assign(Object.assign({}, this.config), { value: value }));
70
60
  }
71
61
  }
62
+ /* WARNING: Temporário. Isso só está sendo feito até desconsiderar os parametros não informados para PersonalizedFilter*/
63
+ validateAllFilled(paramsCount, value) {
64
+ let isValid = true;
65
+ if (value != undefined && paramsCount > 1) {
66
+ if (paramsCount > value.length) {
67
+ isValid = false;
68
+ }
69
+ else {
70
+ value.forEach(item => {
71
+ if (item == undefined) {
72
+ isValid = false;
73
+ }
74
+ });
75
+ }
76
+ }
77
+ if (!isValid) {
78
+ ApplicationUtils.alert("Filtro parcialmente preenchido", "Favor completar todas as informações do filtro.");
79
+ }
80
+ return isValid;
81
+ }
82
+ /* WARNING: Temporário.*/
72
83
  clear() {
73
84
  this.changeConfig(Object.assign(Object.assign({}, this.config), { value: undefined }));
74
85
  }
75
86
  render() {
76
87
  const ContentEditor = this.getContentEditor();
77
- return (h(Host, null, h("div", { class: "col ez-col--sd-12 ez-align--right ez-padding-medium ez-flex--align-items-center" }, h("div", { class: "ez-text ez-title ez-title--small ez-padding--small sc-snk-filter-bar snk-filter-item__editor-header" }, this.config.detailTitle), this.getPopUpHeaderButtons()), h(ContentEditor, { ref: ref => this._editor = ref, value: this.config.value, config: this.config, fix: () => this.keepOpened = true, unfix: () => this.keepOpened = false }), h("hr", { class: "sc-snk-filter-bar snk-filter__popover-rule" }), h("div", { class: "ez-col ez-col--sd-12 ez-align--right" }, h("ez-button", { label: this.getMessage("snkFilterBar.cleanFilter"), onClick: () => this.clear(), size: "small" }), h("ez-button", { label: this.getMessage("snkFilterBar.applyFilter"), onClick: () => this.apply(), size: "small", class: "ez-button--primary ez-padding-left--medium" }))));
88
+ return (h(Host, null, h("div", { class: "col ez-col--sd-12 ez-align--right ez-padding-medium ez-flex--align-items-center" }, h("div", { class: "ez-text ez-title ez-title--small ez-padding--small sc-snk-filter-bar snk-filter-item__editor-header" }, this.config.detailTitle), this.getPopUpHeaderButtons()), h(ContentEditor, { ref: ref => this._editor = ref, value: this.config.value, config: this.config }), h("hr", { class: "sc-snk-filter-bar snk-filter__popover-rule" }), h("div", { class: "ez-col ez-col--sd-12 ez-align--right" }, h("ez-button", { label: this.getMessage("snkFilterBar.cleanFilter"), onClick: () => this.clear(), size: "small" }), h("ez-button", { label: this.getMessage("snkFilterBar.applyFilter"), onClick: () => this.apply(), size: "small", class: "ez-button--primary ez-padding-left--medium" }))));
78
89
  }
79
90
  }, [0, "snk-filter-detail", {
80
91
  "config": [1040],
81
- "keepOpened": [1028, "keep-opened"],
82
92
  "getMessage": [16]
83
93
  }]);
84
94
  function defineCustomElement() {