@sankhyalabs/sankhyablocks 1.4.0-beta.1 → 1.4.0-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (163) hide show
  1. package/dist/cjs/{SnkMessageBuilder-7717f1e4.js → SnkMessageBuilder-d8215915.js} +14 -119
  2. package/dist/cjs/{filter-item-type.enum-e2e1bc5b.js → filter-item-type.enum-3daf58d3.js} +2 -0
  3. package/dist/cjs/{index-b0b676c5.js → index-6fcf07f3.js} +159 -1515
  4. package/dist/cjs/loader.cjs.js +2 -18
  5. package/dist/cjs/sankhyablocks.cjs.js +4 -116
  6. package/dist/cjs/snk-application.cjs.entry.js +84 -230
  7. package/dist/cjs/snk-crud.cjs.entry.js +3 -3
  8. package/dist/cjs/snk-data-unit.cjs.entry.js +24 -32
  9. package/dist/cjs/snk-filter-bar_5.cjs.entry.js +902 -0
  10. package/dist/cjs/snk-filter-binary-select.cjs.entry.js +2 -2
  11. package/dist/cjs/snk-filter-detail.cjs.entry.js +38 -3
  12. package/dist/cjs/snk-filter-multi-select.cjs.entry.js +2 -2
  13. package/dist/cjs/snk-filter-number.cjs.entry.js +2 -2
  14. package/dist/cjs/snk-filter-period.cjs.entry.js +2 -2
  15. package/dist/cjs/snk-filter-personalized.cjs.entry.js +90 -0
  16. package/dist/cjs/snk-filter-search.cjs.entry.js +4 -4
  17. package/dist/cjs/snk-filter-text.cjs.entry.js +1 -1
  18. package/dist/cjs/{snk-form.cjs.entry.js → snk-form_2.cjs.entry.js} +119 -5
  19. package/dist/cjs/snk-pesquisa.cjs.entry.js +5 -5
  20. package/dist/cjs/{taskbar-elements-283c737e.js → taskbar-elements-aedfeae6.js} +1 -1
  21. package/dist/cjs/teste-pesquisa.cjs.entry.js +5 -5
  22. package/dist/collection/collection-manifest.json +2 -0
  23. package/dist/collection/components/snk-application/snk-application.js +54 -7
  24. package/dist/collection/components/snk-crud/snk-crud.js +2 -4
  25. package/dist/collection/components/snk-data-unit/snk-data-unit.js +0 -27
  26. package/dist/collection/components/snk-filter-bar/filter-item/dataunitfilter/data-unit-filter-builder.js +100 -0
  27. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-personalized.js +161 -0
  28. package/dist/collection/components/snk-filter-bar/filter-item/filter-item-type.enum.js +2 -0
  29. package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-detail.js +36 -1
  30. package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-item.js +32 -9
  31. package/dist/collection/components/snk-filter-bar/filter-modal/snk-filter-modal.js +196 -0
  32. package/dist/collection/components/snk-filter-bar/snk-filter-bar.css +22 -0
  33. package/dist/collection/components/snk-filter-bar/snk-filter-bar.js +238 -139
  34. package/dist/collection/components/snk-grid/snk-grid.js +2 -4
  35. package/dist/collection/lib/http/data-fetcher/fetchers/filter-bar-config-fetcher.js +18 -10
  36. package/dist/collection/lib/message/resources/snk-filter-bar.msg.js +14 -2
  37. package/dist/components/SnkMessageBuilder.js +15 -119
  38. package/dist/components/filter-item-type.enum.js +2 -0
  39. package/dist/components/index.d.ts +2 -0
  40. package/dist/components/index.js +2 -4
  41. package/dist/components/snk-application2.js +47 -191
  42. package/dist/components/snk-crud.js +16 -10
  43. package/dist/components/snk-data-unit.js +3 -12
  44. package/dist/components/snk-filter-bar2.js +342 -146
  45. package/dist/components/snk-filter-detail2.js +36 -1
  46. package/dist/components/snk-filter-item2.js +33 -10
  47. package/dist/components/snk-filter-list2.js +1 -1
  48. package/dist/components/snk-filter-modal.d.ts +11 -0
  49. package/dist/components/snk-filter-modal.js +6 -0
  50. package/dist/components/snk-filter-modal2.js +58 -0
  51. package/dist/components/snk-filter-personalized.d.ts +11 -0
  52. package/dist/components/snk-filter-personalized.js +108 -0
  53. package/dist/components/snk-filter-search.js +1 -1
  54. package/dist/components/snk-form2.js +1 -1
  55. package/dist/components/snk-grid2.js +16 -10
  56. package/dist/components/snk-pesquisa2.js +1 -1
  57. package/dist/components/snk-taskbar2.js +1 -1
  58. package/dist/components/teste-pesquisa.js +1 -1
  59. package/dist/{sankhyablocks/SnkMessageBuilder-a7da466b.js → esm/SnkMessageBuilder-35a20271.js} +15 -119
  60. package/dist/esm/{filter-item-type.enum-61fbf80a.js → filter-item-type.enum-a79b2fa8.js} +2 -0
  61. package/dist/{sankhyablocks/index-2b4d2d14.js → esm/index-81dda3cf.js} +160 -1508
  62. package/dist/esm/loader.js +2 -18
  63. package/dist/esm/sankhyablocks.js +4 -116
  64. package/dist/esm/snk-application.entry.js +46 -192
  65. package/dist/esm/snk-crud.entry.js +2 -2
  66. package/dist/esm/snk-data-unit.entry.js +4 -12
  67. package/dist/esm/snk-filter-bar_5.entry.js +894 -0
  68. package/dist/esm/snk-filter-binary-select.entry.js +2 -2
  69. package/dist/esm/snk-filter-detail.entry.js +38 -3
  70. package/dist/esm/snk-filter-multi-select.entry.js +2 -2
  71. package/dist/esm/snk-filter-number.entry.js +2 -2
  72. package/dist/esm/snk-filter-period.entry.js +2 -2
  73. package/dist/esm/snk-filter-personalized.entry.js +86 -0
  74. package/dist/esm/snk-filter-search.entry.js +3 -3
  75. package/dist/esm/snk-filter-text.entry.js +1 -1
  76. package/dist/esm/{snk-form.entry.js → snk-form_2.entry.js} +117 -4
  77. package/dist/esm/snk-pesquisa.entry.js +2 -2
  78. package/dist/{sankhyablocks/taskbar-elements-35d64ff9.js → esm/taskbar-elements-38eb5d51.js} +1 -1
  79. package/dist/esm/teste-pesquisa.entry.js +2 -2
  80. package/dist/sankhyablocks/index.esm.js +0 -1
  81. package/dist/sankhyablocks/p-0352c0e2.entry.js +1 -0
  82. package/dist/sankhyablocks/p-07ebda01.entry.js +1 -0
  83. package/dist/sankhyablocks/p-322c0df2.entry.js +1 -0
  84. package/dist/sankhyablocks/p-46caa101.entry.js +1 -0
  85. package/dist/sankhyablocks/p-473cedf9.entry.js +1 -0
  86. package/dist/sankhyablocks/p-586e2522.js +1 -0
  87. package/dist/sankhyablocks/p-86f15ffe.js +1 -0
  88. package/dist/sankhyablocks/p-8f3c5709.entry.js +1 -0
  89. package/dist/sankhyablocks/p-97009a2c.entry.js +1 -0
  90. package/dist/sankhyablocks/p-9be74b46.entry.js +74 -0
  91. package/dist/sankhyablocks/p-9dd2b8cb.js +1 -0
  92. package/dist/sankhyablocks/p-a8b59c61.entry.js +1 -0
  93. package/dist/sankhyablocks/p-aecf3e0a.entry.js +1 -0
  94. package/dist/sankhyablocks/p-c1c3b5d8.entry.js +1 -0
  95. package/dist/sankhyablocks/p-c78cb79a.entry.js +1 -0
  96. package/dist/sankhyablocks/p-c9eec639.entry.js +1 -0
  97. package/dist/sankhyablocks/p-dc482a42.entry.js +1 -0
  98. package/dist/sankhyablocks/p-fac2b6a9.js +2 -0
  99. package/dist/sankhyablocks/p-fb705f81.entry.js +1 -0
  100. package/dist/sankhyablocks/sankhyablocks.esm.js +1 -129
  101. package/dist/types/components/snk-application/snk-application.d.ts +4 -1
  102. package/dist/types/components/snk-filter-bar/filter-item/dataunitfilter/data-unit-filter-builder.d.ts +4 -0
  103. package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-personalized.d.ts +23 -0
  104. package/dist/types/components/snk-filter-bar/filter-item/filter-item-type.enum.d.ts +3 -1
  105. package/dist/types/components/snk-filter-bar/filter-item/snk-filter-detail.d.ts +2 -0
  106. package/dist/types/components/snk-filter-bar/filter-modal/snk-filter-modal.d.ts +23 -0
  107. package/dist/types/components.d.ts +56 -8
  108. package/package.json +3 -3
  109. package/react/components.d.ts +19 -0
  110. package/react/components.js +19 -0
  111. package/react/components.js.map +1 -1
  112. package/dist/cjs/app-globals-3a1e7e63.js +0 -5
  113. package/dist/cjs/css-shim-b8158822.js +0 -6
  114. package/dist/cjs/dom-36862b77.js +0 -75
  115. package/dist/cjs/index-02201bc9.js +0 -2397
  116. package/dist/cjs/shadow-css-346c0795.js +0 -389
  117. package/dist/cjs/snk-filter-bar.cjs.entry.js +0 -278
  118. package/dist/cjs/snk-filter-item.cjs.entry.js +0 -154
  119. package/dist/cjs/snk-filter-list.cjs.entry.js +0 -91
  120. package/dist/cjs/snk-grid.cjs.entry.js +0 -79
  121. package/dist/cjs/snk-taskbar.cjs.entry.js +0 -160
  122. package/dist/cjs/taskbar-processor-6bd0d35c.js +0 -47
  123. package/dist/components/index2.js +0 -2384
  124. package/dist/esm/SnkMessageBuilder-a7da466b.js +0 -303
  125. package/dist/esm/app-globals-0f993ce5.js +0 -3
  126. package/dist/esm/css-shim-b3f2ee8d.js +0 -4
  127. package/dist/esm/dom-665d6011.js +0 -73
  128. package/dist/esm/index-2b4d2d14.js +0 -3262
  129. package/dist/esm/index-f1d3e4da.js +0 -2384
  130. package/dist/esm/shadow-css-b18e99d7.js +0 -387
  131. package/dist/esm/snk-filter-bar.entry.js +0 -274
  132. package/dist/esm/snk-filter-item.entry.js +0 -150
  133. package/dist/esm/snk-filter-list.entry.js +0 -87
  134. package/dist/esm/snk-grid.entry.js +0 -75
  135. package/dist/esm/snk-taskbar.entry.js +0 -156
  136. package/dist/esm/taskbar-elements-35d64ff9.js +0 -90
  137. package/dist/esm/taskbar-processor-aa6772c9.js +0 -45
  138. package/dist/sankhyablocks/app-globals-0f993ce5.js +0 -3
  139. package/dist/sankhyablocks/css-shim-b3f2ee8d.js +0 -4
  140. package/dist/sankhyablocks/dom-665d6011.js +0 -73
  141. package/dist/sankhyablocks/filter-item-type.enum-61fbf80a.js +0 -12
  142. package/dist/sankhyablocks/index-f1d3e4da.js +0 -2384
  143. package/dist/sankhyablocks/shadow-css-b18e99d7.js +0 -387
  144. package/dist/sankhyablocks/snk-application.entry.js +0 -8148
  145. package/dist/sankhyablocks/snk-crud.entry.js +0 -66
  146. package/dist/sankhyablocks/snk-data-unit.entry.js +0 -276
  147. package/dist/sankhyablocks/snk-filter-bar.entry.js +0 -274
  148. package/dist/sankhyablocks/snk-filter-binary-select.entry.js +0 -43
  149. package/dist/sankhyablocks/snk-filter-detail.entry.js +0 -45
  150. package/dist/sankhyablocks/snk-filter-item.entry.js +0 -150
  151. package/dist/sankhyablocks/snk-filter-list.entry.js +0 -87
  152. package/dist/sankhyablocks/snk-filter-multi-select.entry.js +0 -19
  153. package/dist/sankhyablocks/snk-filter-number.entry.js +0 -20
  154. package/dist/sankhyablocks/snk-filter-period.entry.js +0 -33
  155. package/dist/sankhyablocks/snk-filter-search.entry.js +0 -40
  156. package/dist/sankhyablocks/snk-filter-text.entry.js +0 -18
  157. package/dist/sankhyablocks/snk-form.entry.js +0 -129
  158. package/dist/sankhyablocks/snk-grid.entry.js +0 -75
  159. package/dist/sankhyablocks/snk-pesquisa.entry.js +0 -311
  160. package/dist/sankhyablocks/snk-taskbar.entry.js +0 -156
  161. package/dist/sankhyablocks/taskbar-processor-aa6772c9.js +0 -45
  162. package/dist/sankhyablocks/teste-pesquisa.entry.js +0 -33
  163. package/dist/types/components/snk-filter-bar/snk-filter-bar.d.ts +0 -51
@@ -1,47 +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, 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';
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
+ import { S as SnkMessageBuilder } from './SnkMessageBuilder.js';
4
5
  import { d as defineCustomElement$1 } from './snk-pesquisa2.js';
5
6
 
6
7
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
7
8
 
8
- function getDefaultExportFromCjs (x) {
9
- return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
10
- }
11
-
12
9
  function createCommonjsModule(fn, basedir, module) {
13
10
  return module = {
14
11
  path: basedir,
15
12
  exports: {},
16
13
  require: function (path, base) {
17
- return commonjsRequire(path, (base === undefined || base === null) ? module.path : base);
14
+ return commonjsRequire();
18
15
  }
19
16
  }, fn(module, module.exports), module.exports;
20
17
  }
21
18
 
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
-
45
19
  function commonjsRequire () {
46
20
  throw new Error('Dynamic requires are not currently supported by @rollup/plugin-commonjs');
47
21
  }
@@ -58,7 +32,7 @@ return new F();
58
32
  })();
59
33
  (function(self) {
60
34
 
61
- var irrelevant = (function (exports) {
35
+ ((function (exports) {
62
36
 
63
37
  var support = {
64
38
  searchParams: 'URLSearchParams' in self,
@@ -586,7 +560,7 @@ var irrelevant = (function (exports) {
586
560
 
587
561
  return exports;
588
562
 
589
- })({});
563
+ }))({});
590
564
  })(__self__);
591
565
  __self__.fetch.ponyfill = true;
592
566
  // Remove "polyfill" property added by whatwg-fetch
@@ -603,10 +577,7 @@ exports.Response = ctx.Response;
603
577
  module.exports = exports;
604
578
  });
605
579
 
606
- const browserPonyfill$1 = /*@__PURE__*/getDefaultExportFromCjs(browserPonyfill);
607
-
608
580
  var isObjectLike_1 = createCommonjsModule(function (module, exports) {
609
- 'use strict';
610
581
 
611
582
  Object.defineProperty(exports, '__esModule', {
612
583
  value: true,
@@ -622,10 +593,7 @@ function isObjectLike(value) {
622
593
  }
623
594
  });
624
595
 
625
- const isObjectLike = /*@__PURE__*/getDefaultExportFromCjs(isObjectLike_1);
626
-
627
596
  var invariant_1 = createCommonjsModule(function (module, exports) {
628
- 'use strict';
629
597
 
630
598
  Object.defineProperty(exports, '__esModule', {
631
599
  value: true,
@@ -643,10 +611,7 @@ function invariant(condition, message) {
643
611
  }
644
612
  });
645
613
 
646
- const invariant = /*@__PURE__*/getDefaultExportFromCjs(invariant_1);
647
-
648
614
  var location_1 = createCommonjsModule(function (module, exports) {
649
- 'use strict';
650
615
 
651
616
  Object.defineProperty(exports, '__esModule', {
652
617
  value: true,
@@ -686,10 +651,7 @@ function getLocation(source, position) {
686
651
  }
687
652
  });
688
653
 
689
- const location$1 = /*@__PURE__*/getDefaultExportFromCjs(location_1);
690
-
691
654
  var printLocation_1 = createCommonjsModule(function (module, exports) {
692
- 'use strict';
693
655
 
694
656
  Object.defineProperty(exports, '__esModule', {
695
657
  value: true,
@@ -765,10 +727,7 @@ function printPrefixedLines(lines) {
765
727
  }
766
728
  });
767
729
 
768
- const printLocation = /*@__PURE__*/getDefaultExportFromCjs(printLocation_1);
769
-
770
730
  var GraphQLError_1 = createCommonjsModule(function (module, exports) {
771
- 'use strict';
772
731
 
773
732
  Object.defineProperty(exports, '__esModule', {
774
733
  value: true,
@@ -1037,10 +996,7 @@ function formatError(error) {
1037
996
  }
1038
997
  });
1039
998
 
1040
- const GraphQLError = /*@__PURE__*/getDefaultExportFromCjs(GraphQLError_1);
1041
-
1042
999
  var syntaxError_1 = createCommonjsModule(function (module, exports) {
1043
- 'use strict';
1044
1000
 
1045
1001
  Object.defineProperty(exports, '__esModule', {
1046
1002
  value: true,
@@ -1061,10 +1017,7 @@ function syntaxError(source, position, description) {
1061
1017
  }
1062
1018
  });
1063
1019
 
1064
- const syntaxError = /*@__PURE__*/getDefaultExportFromCjs(syntaxError_1);
1065
-
1066
1020
  var ast = createCommonjsModule(function (module, exports) {
1067
- 'use strict';
1068
1021
 
1069
1022
  Object.defineProperty(exports, '__esModule', {
1070
1023
  value: true,
@@ -1290,10 +1243,7 @@ exports.OperationTypeNode = OperationTypeNode;
1290
1243
  })(OperationTypeNode || (exports.OperationTypeNode = OperationTypeNode = {}));
1291
1244
  });
1292
1245
 
1293
- const ast$1 = /*@__PURE__*/getDefaultExportFromCjs(ast);
1294
-
1295
1246
  var directiveLocation = createCommonjsModule(function (module, exports) {
1296
- 'use strict';
1297
1247
 
1298
1248
  Object.defineProperty(exports, '__esModule', {
1299
1249
  value: true,
@@ -1334,10 +1284,7 @@ exports.DirectiveLocation = DirectiveLocation;
1334
1284
  */
1335
1285
  });
1336
1286
 
1337
- const directiveLocation$1 = /*@__PURE__*/getDefaultExportFromCjs(directiveLocation);
1338
-
1339
1287
  var kinds = createCommonjsModule(function (module, exports) {
1340
- 'use strict';
1341
1288
 
1342
1289
  Object.defineProperty(exports, '__esModule', {
1343
1290
  value: true,
@@ -1402,10 +1349,7 @@ exports.Kind = Kind;
1402
1349
  */
1403
1350
  });
1404
1351
 
1405
- const kinds$1 = /*@__PURE__*/getDefaultExportFromCjs(kinds);
1406
-
1407
1352
  var characterClasses = createCommonjsModule(function (module, exports) {
1408
- 'use strict';
1409
1353
 
1410
1354
  Object.defineProperty(exports, '__esModule', {
1411
1355
  value: true,
@@ -1482,10 +1426,7 @@ function isNameContinue(code) {
1482
1426
  }
1483
1427
  });
1484
1428
 
1485
- const characterClasses$1 = /*@__PURE__*/getDefaultExportFromCjs(characterClasses);
1486
-
1487
1429
  var blockString = createCommonjsModule(function (module, exports) {
1488
- 'use strict';
1489
1430
 
1490
1431
  Object.defineProperty(exports, '__esModule', {
1491
1432
  value: true,
@@ -1682,10 +1623,7 @@ function printBlockString(value, options) {
1682
1623
  }
1683
1624
  });
1684
1625
 
1685
- const blockString$1 = /*@__PURE__*/getDefaultExportFromCjs(blockString);
1686
-
1687
1626
  var tokenKind = createCommonjsModule(function (module, exports) {
1688
- 'use strict';
1689
1627
 
1690
1628
  Object.defineProperty(exports, '__esModule', {
1691
1629
  value: true,
@@ -1730,10 +1668,7 @@ exports.TokenKind = TokenKind;
1730
1668
  */
1731
1669
  });
1732
1670
 
1733
- const tokenKind$1 = /*@__PURE__*/getDefaultExportFromCjs(tokenKind);
1734
-
1735
1671
  var lexer = createCommonjsModule(function (module, exports) {
1736
- 'use strict';
1737
1672
 
1738
1673
  Object.defineProperty(exports, '__esModule', {
1739
1674
  value: true,
@@ -2741,10 +2676,7 @@ function readName(lexer, start) {
2741
2676
  }
2742
2677
  });
2743
2678
 
2744
- const lexer$1 = /*@__PURE__*/getDefaultExportFromCjs(lexer);
2745
-
2746
2679
  var devAssert_1 = createCommonjsModule(function (module, exports) {
2747
- 'use strict';
2748
2680
 
2749
2681
  Object.defineProperty(exports, '__esModule', {
2750
2682
  value: true,
@@ -2760,10 +2692,7 @@ function devAssert(condition, message) {
2760
2692
  }
2761
2693
  });
2762
2694
 
2763
- const devAssert = /*@__PURE__*/getDefaultExportFromCjs(devAssert_1);
2764
-
2765
2695
  var inspect_1 = createCommonjsModule(function (module, exports) {
2766
- 'use strict';
2767
2696
 
2768
2697
  Object.defineProperty(exports, '__esModule', {
2769
2698
  value: true,
@@ -2886,10 +2815,7 @@ function getObjectTag(object) {
2886
2815
  }
2887
2816
  });
2888
2817
 
2889
- const inspect = /*@__PURE__*/getDefaultExportFromCjs(inspect_1);
2890
-
2891
2818
  var instanceOf_1 = createCommonjsModule(function (module, exports) {
2892
- 'use strict';
2893
2819
 
2894
2820
  Object.defineProperty(exports, '__esModule', {
2895
2821
  value: true,
@@ -2908,54 +2834,14 @@ const instanceOf =
2908
2834
  /* c8 ignore next 6 */
2909
2835
  // FIXME: https://github.com/graphql/graphql-js/issues/2317
2910
2836
  // eslint-disable-next-line no-undef
2911
- "development" === 'production'
2912
- ? function instanceOf(value, constructor) {
2837
+ function instanceOf(value, constructor) {
2913
2838
  return value instanceof constructor;
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
2841
  exports.instanceOf = instanceOf;
2953
2842
  });
2954
2843
 
2955
- const instanceOf = /*@__PURE__*/getDefaultExportFromCjs(instanceOf_1);
2956
-
2957
2844
  var source = createCommonjsModule(function (module, exports) {
2958
- 'use strict';
2959
2845
 
2960
2846
  Object.defineProperty(exports, '__esModule', {
2961
2847
  value: true,
@@ -3022,10 +2908,7 @@ function isSource(source) {
3022
2908
  }
3023
2909
  });
3024
2910
 
3025
- const source$1 = /*@__PURE__*/getDefaultExportFromCjs(source);
3026
-
3027
2911
  var parser = createCommonjsModule(function (module, exports) {
3028
- 'use strict';
3029
2912
 
3030
2913
  Object.defineProperty(exports, '__esModule', {
3031
2914
  value: true,
@@ -4594,10 +4477,7 @@ function getTokenKindDesc(kind) {
4594
4477
  }
4595
4478
  });
4596
4479
 
4597
- const parser$1 = /*@__PURE__*/getDefaultExportFromCjs(parser);
4598
-
4599
4480
  var printString_1 = createCommonjsModule(function (module, exports) {
4600
- 'use strict';
4601
4481
 
4602
4482
  Object.defineProperty(exports, '__esModule', {
4603
4483
  value: true,
@@ -4782,10 +4662,7 @@ const escapeSequences = [
4782
4662
  ];
4783
4663
  });
4784
4664
 
4785
- const printString = /*@__PURE__*/getDefaultExportFromCjs(printString_1);
4786
-
4787
4665
  var visitor = createCommonjsModule(function (module, exports) {
4788
- 'use strict';
4789
4666
 
4790
4667
  Object.defineProperty(exports, '__esModule', {
4791
4668
  value: true,
@@ -5164,10 +5041,7 @@ function getVisitFn(visitor, kind, isLeaving) {
5164
5041
  }
5165
5042
  });
5166
5043
 
5167
- const visitor$1 = /*@__PURE__*/getDefaultExportFromCjs(visitor);
5168
-
5169
5044
  var printer = createCommonjsModule(function (module, exports) {
5170
- 'use strict';
5171
5045
 
5172
5046
  Object.defineProperty(exports, '__esModule', {
5173
5047
  value: true,
@@ -5520,10 +5394,6 @@ function hasMultilineItems(maybeArray) {
5520
5394
  }
5521
5395
  });
5522
5396
 
5523
- const printer$1 = /*@__PURE__*/getDefaultExportFromCjs(printer);
5524
-
5525
- 'use strict';
5526
-
5527
5397
  var ReactNativeFile$1 = function ReactNativeFile(_ref) {
5528
5398
  var uri = _ref.uri,
5529
5399
  name = _ref.name,
@@ -5533,10 +5403,6 @@ var ReactNativeFile$1 = function ReactNativeFile(_ref) {
5533
5403
  this.type = type;
5534
5404
  };
5535
5405
 
5536
- 'use strict';
5537
-
5538
-
5539
-
5540
5406
  var isExtractableFile$1 = function isExtractableFile(value) {
5541
5407
  return (
5542
5408
  (typeof File !== 'undefined' && value instanceof File) ||
@@ -5545,10 +5411,6 @@ var isExtractableFile$1 = function isExtractableFile(value) {
5545
5411
  );
5546
5412
  };
5547
5413
 
5548
- 'use strict';
5549
-
5550
-
5551
-
5552
5414
  var extractFiles$1 = function extractFiles(value, path, isExtractableFile) {
5553
5415
  if (path === void 0) {
5554
5416
  path = '';
@@ -5600,8 +5462,6 @@ var extractFiles$1 = function extractFiles(value, path, isExtractableFile) {
5600
5462
  };
5601
5463
  };
5602
5464
 
5603
- 'use strict';
5604
-
5605
5465
  var ReactNativeFile = ReactNativeFile$1;
5606
5466
  var extractFiles = extractFiles$1;
5607
5467
  var isExtractableFile = isExtractableFile$1;
@@ -5616,7 +5476,6 @@ var _public = {
5616
5476
  var browser = typeof self == 'object' ? self.FormData : window.FormData;
5617
5477
 
5618
5478
  var defaultJsonSerializer = createCommonjsModule(function (module, exports) {
5619
- "use strict";
5620
5479
  Object.defineProperty(exports, "__esModule", { value: true });
5621
5480
  exports.defaultJsonSerializer = void 0;
5622
5481
  exports.defaultJsonSerializer = {
@@ -5626,10 +5485,7 @@ exports.defaultJsonSerializer = {
5626
5485
  //# sourceMappingURL=defaultJsonSerializer.js.map
5627
5486
  });
5628
5487
 
5629
- const defaultJsonSerializer$1 = /*@__PURE__*/getDefaultExportFromCjs(defaultJsonSerializer);
5630
-
5631
5488
  var createRequestBody_1 = createCommonjsModule(function (module, exports) {
5632
- "use strict";
5633
5489
  var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
5634
5490
  return (mod && mod.__esModule) ? mod : { "default": mod };
5635
5491
  };
@@ -5686,10 +5542,7 @@ exports.default = createRequestBody;
5686
5542
  //# sourceMappingURL=createRequestBody.js.map
5687
5543
  });
5688
5544
 
5689
- const createRequestBody = /*@__PURE__*/getDefaultExportFromCjs(createRequestBody_1);
5690
-
5691
5545
  var parseArgs = createCommonjsModule(function (module, exports) {
5692
- "use strict";
5693
5546
  Object.defineProperty(exports, "__esModule", { value: true });
5694
5547
  exports.parseBatchRequestsExtendedArgs = exports.parseRawRequestExtendedArgs = exports.parseRequestExtendedArgs = exports.parseBatchRequestArgs = exports.parseRawRequestArgs = exports.parseRequestArgs = void 0;
5695
5548
  function parseRequestArgs(documentOrOptions, variables, requestHeaders) {
@@ -5762,10 +5615,7 @@ exports.parseBatchRequestsExtendedArgs = parseBatchRequestsExtendedArgs;
5762
5615
  //# sourceMappingURL=parseArgs.js.map
5763
5616
  });
5764
5617
 
5765
- const parseArgs$1 = /*@__PURE__*/getDefaultExportFromCjs(parseArgs);
5766
-
5767
5618
  var types = createCommonjsModule(function (module, exports) {
5768
- "use strict";
5769
5619
  var __extends = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
5770
5620
  var extendStatics = function (d, b) {
5771
5621
  extendStatics = Object.setPrototypeOf ||
@@ -5815,10 +5665,7 @@ exports.ClientError = ClientError;
5815
5665
  //# sourceMappingURL=types.js.map
5816
5666
  });
5817
5667
 
5818
- const types$1 = /*@__PURE__*/getDefaultExportFromCjs(types);
5819
-
5820
5668
  var graphqlWs = createCommonjsModule(function (module, exports) {
5821
- "use strict";
5822
5669
  var __assign = (commonjsGlobal && commonjsGlobal.__assign) || function () {
5823
5670
  __assign = Object.assign || function(t) {
5824
5671
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -5998,8 +5845,6 @@ var GraphQLWebSocketClient = /** @class */ (function () {
5998
5845
  if (message.payload.errors) {
5999
5846
  subscriber.error && subscriber.error(new types.ClientError(__assign(__assign({}, message.payload), { status: 200 }), { query: query, variables: variables }));
6000
5847
  }
6001
- else {
6002
- }
6003
5848
  return;
6004
5849
  }
6005
5850
  case ERROR: {
@@ -6094,10 +5939,7 @@ function Complete(id) {
6094
5939
  //# sourceMappingURL=graphql-ws.js.map
6095
5940
  });
6096
5941
 
6097
- const graphqlWs$1 = /*@__PURE__*/getDefaultExportFromCjs(graphqlWs);
6098
-
6099
5942
  var dist = createCommonjsModule(function (module, exports) {
6100
- "use strict";
6101
5943
  var __assign = (commonjsGlobal && commonjsGlobal.__assign) || function () {
6102
5944
  __assign = Object.assign || function(t) {
6103
5945
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -6422,7 +6264,7 @@ exports.GraphQLClient = GraphQLClient;
6422
6264
  function makeRequest(_a) {
6423
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;
6424
6266
  return __awaiter(this, void 0, void 0, function () {
6425
- 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;
6426
6268
  return __generator(this, function (_c) {
6427
6269
  switch (_c.label) {
6428
6270
  case 0:
@@ -6449,7 +6291,7 @@ function makeRequest(_a) {
6449
6291
  successfullyPassedErrorPolicy = !result.errors || fetchOptions.errorPolicy === 'all' || fetchOptions.errorPolicy === 'ignore';
6450
6292
  if (response.ok && successfullyPassedErrorPolicy && successfullyReceivedData) {
6451
6293
  headers_1 = response.headers, status_1 = response.status;
6452
- errors = result.errors, rest = __rest(result, ["errors"]);
6294
+ rest = __rest(result, ["errors"]);
6453
6295
  data = fetchOptions.errorPolicy === 'ignore' ? rest : result;
6454
6296
  return [2 /*return*/, __assign(__assign({}, (isBathchingQuery ? { data: data } : data)), { headers: headers_1, status: status_1 })];
6455
6297
  }
@@ -6457,7 +6299,6 @@ function makeRequest(_a) {
6457
6299
  errorResult = typeof result === 'string' ? { error: result } : result;
6458
6300
  throw new types.ClientError(__assign(__assign({}, errorResult), { status: response.status, headers: response.headers }), { query: query, variables: variables });
6459
6301
  }
6460
- return [2 /*return*/];
6461
6302
  }
6462
6303
  });
6463
6304
  });
@@ -6587,8 +6428,6 @@ Object.defineProperty(exports, "GraphQLWebSocketClient", { enumerable: true, get
6587
6428
  //# sourceMappingURL=index.js.map
6588
6429
  });
6589
6430
 
6590
- const index = /*@__PURE__*/getDefaultExportFromCjs(dist);
6591
-
6592
6431
  class UrlUtils {
6593
6432
  static getQueryParams(queryString) {
6594
6433
  const params = new Map();
@@ -7516,20 +7355,28 @@ class TotalsFetcher {
7516
7355
  }
7517
7356
 
7518
7357
  function normalizeValue(value) {
7358
+ if (value == undefined) {
7359
+ return value;
7360
+ }
7519
7361
  if (value instanceof Date) {
7520
7362
  return value.toISOString();
7521
7363
  }
7522
7364
  if (typeof value === "object") {
7523
- const normalized = Object.assign({}, value);
7524
- Object.keys(value).forEach(prop => {
7525
- if (value[prop]) {
7526
- normalized[prop] = normalizeValue(value[prop]);
7527
- }
7528
- else {
7529
- delete normalized[prop];
7530
- }
7531
- });
7532
- return normalized;
7365
+ if (value instanceof Array) {
7366
+ return value.map(item => normalizeValue(item));
7367
+ }
7368
+ else {
7369
+ const normalized = Object.assign({}, value);
7370
+ Object.keys(value).forEach(prop => {
7371
+ if (value[prop]) {
7372
+ normalized[prop] = normalizeValue(value[prop]);
7373
+ }
7374
+ else {
7375
+ delete normalized[prop];
7376
+ }
7377
+ });
7378
+ return normalized;
7379
+ }
7533
7380
  }
7534
7381
  return value;
7535
7382
  }
@@ -7695,15 +7542,24 @@ const SnkApplication = /*@__PURE__*/ proxyCustomElement(class extends HTMLElemen
7695
7542
  * Mostra o conteúdo passado em um Popup
7696
7543
  */
7697
7544
  async showPopUp(content) {
7698
- this.clearPopUpContent();
7545
+ this.clearContent(this._popUp);
7699
7546
  this._popUp.appendChild(content);
7700
7547
  this._popUp.opened = true;
7701
7548
  }
7549
+ async showModal(content) {
7550
+ this.clearContent(this._rightModal);
7551
+ this._rightModal.appendChild(content);
7552
+ this._rightModal.opened = true;
7553
+ }
7554
+ async closeModal() {
7555
+ this.clearContent(this._rightModal);
7556
+ this._rightModal.opened = false;
7557
+ }
7702
7558
  /**
7703
7559
  * Fecha o popup, liberando o conteúdo.
7704
7560
  */
7705
7561
  async closePopUp() {
7706
- this.clearPopUpContent();
7562
+ this.clearContent(this._popUp);
7707
7563
  this._popUp.opened = false;
7708
7564
  }
7709
7565
  /**
@@ -7984,9 +7840,7 @@ const SnkApplication = /*@__PURE__*/ proxyCustomElement(class extends HTMLElemen
7984
7840
  }
7985
7841
  async executeSearch(searchArgument, fieldName, dataUnit) {
7986
7842
  const descriptor = dataUnit === null || dataUnit === void 0 ? void 0 : dataUnit.getField(fieldName);
7987
- if (!descriptor) {
7988
- //TODO: Implementar mensagem de erro
7989
- }
7843
+ if (!descriptor) ;
7990
7844
  else {
7991
7845
  const { mode, argument } = searchArgument;
7992
7846
  const { ENTITYNAME, CODEFIELD, DESCRIPTIONFIELD, ROOTENTITY, DESCRIPTIONENTITY } = descriptor.properties;
@@ -8046,10 +7900,10 @@ const SnkApplication = /*@__PURE__*/ proxyCustomElement(class extends HTMLElemen
8046
7900
  accept(window['isDebugMode']);
8047
7901
  });
8048
7902
  }
8049
- clearPopUpContent() {
8050
- if (this._popUp) {
8051
- Array.from(this._popUp.children).forEach(c => {
8052
- this._popUp.removeChild(c);
7903
+ clearContent(container) {
7904
+ if (container) {
7905
+ Array.from(container.children).forEach(child => {
7906
+ container.removeChild(child);
8053
7907
  });
8054
7908
  }
8055
7909
  }
@@ -8093,7 +7947,7 @@ const SnkApplication = /*@__PURE__*/ proxyCustomElement(class extends HTMLElemen
8093
7947
  });
8094
7948
  }
8095
7949
  render() {
8096
- return (h("div", null, h("ez-loading-bar", { ref: (ref) => this._requestListener.loadingBar = ref }), h("ez-popup", { opened: false, ref: (ref) => this._popUp = ref, onEzClosePopup: () => this.closePopUp() })));
7950
+ return (h("div", null, h("ez-loading-bar", { ref: (ref) => this._requestListener.loadingBar = ref }), h("ez-popup", { opened: false, ref: (ref) => this._popUp = ref, onEzClosePopup: () => this.closePopUp() }), h("ez-modal", { opened: false, ref: (ref) => this._rightModal = ref, "modal-size": "col col--sd-3", closeOutsideClick: true })));
8097
7951
  }
8098
7952
  static get style() { return snkApplicationCss; }
8099
7953
  }, [2, "snk-application", {
@@ -8108,6 +7962,8 @@ const SnkApplication = /*@__PURE__*/ proxyCustomElement(class extends HTMLElemen
8108
7962
  "getBooleanParam": [64],
8109
7963
  "getDateParam": [64],
8110
7964
  "showPopUp": [64],
7965
+ "showModal": [64],
7966
+ "closeModal": [64],
8111
7967
  "closePopUp": [64],
8112
7968
  "temOpcional": [64],
8113
7969
  "getConfig": [64],
@@ -1,9 +1,10 @@
1
1
  import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
2
- import { A as ApplicationContext } from './index2.js';
3
- import { d as defineCustomElement$8 } from './snk-filter-bar2.js';
4
- import { d as defineCustomElement$7 } from './snk-filter-detail2.js';
5
- import { d as defineCustomElement$6 } from './snk-filter-item2.js';
6
- import { d as defineCustomElement$5 } from './snk-filter-list2.js';
2
+ import { ApplicationContext } from '@sankhyalabs/core';
3
+ import { d as defineCustomElement$9 } from './snk-filter-bar2.js';
4
+ import { d as defineCustomElement$8 } from './snk-filter-detail2.js';
5
+ import { d as defineCustomElement$7 } from './snk-filter-item2.js';
6
+ import { d as defineCustomElement$6 } from './snk-filter-list2.js';
7
+ import { d as defineCustomElement$5 } from './snk-filter-modal2.js';
7
8
  import { d as defineCustomElement$4 } from './snk-form2.js';
8
9
  import { d as defineCustomElement$3 } from './snk-grid2.js';
9
10
  import { d as defineCustomElement$2 } from './snk-taskbar2.js';
@@ -74,7 +75,7 @@ const SnkCrud$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
74
75
  "actionsList": [16],
75
76
  "taskbarManager": [16],
76
77
  "recordsValidator": [16],
77
- "statusResolver": [8, "status-resolver"],
78
+ "statusResolver": [16],
78
79
  "_dataUnit": [32],
79
80
  "_dataState": [32]
80
81
  }]);
@@ -82,7 +83,7 @@ function defineCustomElement$1() {
82
83
  if (typeof customElements === "undefined") {
83
84
  return;
84
85
  }
85
- const components = ["snk-crud", "snk-filter-bar", "snk-filter-detail", "snk-filter-item", "snk-filter-list", "snk-form", "snk-grid", "snk-taskbar"];
86
+ const components = ["snk-crud", "snk-filter-bar", "snk-filter-detail", "snk-filter-item", "snk-filter-list", "snk-filter-modal", "snk-form", "snk-grid", "snk-taskbar"];
86
87
  components.forEach(tagName => { switch (tagName) {
87
88
  case "snk-crud":
88
89
  if (!customElements.get(tagName)) {
@@ -91,20 +92,25 @@ function defineCustomElement$1() {
91
92
  break;
92
93
  case "snk-filter-bar":
93
94
  if (!customElements.get(tagName)) {
94
- defineCustomElement$8();
95
+ defineCustomElement$9();
95
96
  }
96
97
  break;
97
98
  case "snk-filter-detail":
98
99
  if (!customElements.get(tagName)) {
99
- defineCustomElement$7();
100
+ defineCustomElement$8();
100
101
  }
101
102
  break;
102
103
  case "snk-filter-item":
103
104
  if (!customElements.get(tagName)) {
104
- defineCustomElement$6();
105
+ defineCustomElement$7();
105
106
  }
106
107
  break;
107
108
  case "snk-filter-list":
109
+ if (!customElements.get(tagName)) {
110
+ defineCustomElement$6();
111
+ }
112
+ break;
113
+ case "snk-filter-modal":
108
114
  if (!customElements.get(tagName)) {
109
115
  defineCustomElement$5();
110
116
  }
@@ -1,6 +1,7 @@
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, O as OperationMap } from './SnkMessageBuilder.js';
2
+ import { Action, ApplicationContext } from '@sankhyalabs/core';
3
+ import { ApplicationUtils, DialogType } from '@sankhyalabs/ezui/dist/collection/utils';
4
+ import { O as OperationMap } from './SnkMessageBuilder.js';
4
5
 
5
6
  const snkDataUnitCss = ".sc-snk-data-unit-h{display:flex;flex-direction:column;height:100%}";
6
7
 
@@ -17,10 +18,6 @@ const SnkDataUnit$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
17
18
  * Determina quantas linhas são retornadas por página
18
19
  */
19
20
  this.pageSize = 150;
20
- /**
21
- * Quando ativada essa propriedade faz com que haja uma carga imediata no DataUnit
22
- */
23
- this.autoLoad = true;
24
21
  this._dataUnitObserver = (action) => {
25
22
  const duState = {
26
23
  insertionMode: false,
@@ -242,11 +239,6 @@ const SnkDataUnit$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
242
239
  while (resolver = this._onDataUnitResolve.pop()) {
243
240
  resolver(this.dataUnit);
244
241
  }
245
- if (this.autoLoad) {
246
- setTimeout(() => {
247
- this.dataUnit.loadData();
248
- }, 500); //TODO: Ajustar para aguardar filterProvider do dataunit estar pronto.
249
- }
250
242
  }
251
243
  }
252
244
  }
@@ -280,7 +272,6 @@ const SnkDataUnit$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
280
272
  "dataUnit": [1040],
281
273
  "beforeSave": [16],
282
274
  "afterSave": [16],
283
- "autoLoad": [4, "auto-load"],
284
275
  "getDataUnit": [64]
285
276
  }]);
286
277
  function defineCustomElement$1() {