@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,46 +1,20 @@
1
- import { r as registerInstance, e as createEvent, h } from './index-2b4d2d14.js';
2
- import { E as ErrorException, W as WarningException, S as StringUtils, D as DataUnit, b as DataType, C as ChangeOperation, c as DateUtils, O as ObjectUtils, d as WaitingChangeException, e as DependencyType, A as ApplicationContext, f as ErrorTracking } from './index-f1d3e4da.js';
3
- import { A as ApplicationUtils, S as SnkMessageBuilder } from './SnkMessageBuilder-a7da466b.js';
1
+ import { r as registerInstance, c as createEvent, h } from './index-81dda3cf.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-35a20271.js';
4
5
 
5
6
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
6
7
 
7
- function getDefaultExportFromCjs (x) {
8
- return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
9
- }
10
-
11
8
  function createCommonjsModule(fn, basedir, module) {
12
9
  return module = {
13
10
  path: basedir,
14
11
  exports: {},
15
12
  require: function (path, base) {
16
- return commonjsRequire(path, (base === undefined || base === null) ? module.path : base);
13
+ return commonjsRequire();
17
14
  }
18
15
  }, fn(module, module.exports), module.exports;
19
16
  }
20
17
 
21
- function getDefaultExportFromNamespaceIfPresent (n) {
22
- return n && Object.prototype.hasOwnProperty.call(n, 'default') ? n['default'] : n;
23
- }
24
-
25
- function getDefaultExportFromNamespaceIfNotNamed (n) {
26
- return n && Object.prototype.hasOwnProperty.call(n, 'default') && Object.keys(n).length === 1 ? n['default'] : n;
27
- }
28
-
29
- function getAugmentedNamespace(n) {
30
- if (n.__esModule) return n;
31
- var a = Object.defineProperty({}, '__esModule', {value: true});
32
- Object.keys(n).forEach(function (k) {
33
- var d = Object.getOwnPropertyDescriptor(n, k);
34
- Object.defineProperty(a, k, d.get ? d : {
35
- enumerable: true,
36
- get: function () {
37
- return n[k];
38
- }
39
- });
40
- });
41
- return a;
42
- }
43
-
44
18
  function commonjsRequire () {
45
19
  throw new Error('Dynamic requires are not currently supported by @rollup/plugin-commonjs');
46
20
  }
@@ -57,7 +31,7 @@ return new F();
57
31
  })();
58
32
  (function(self) {
59
33
 
60
- var irrelevant = (function (exports) {
34
+ ((function (exports) {
61
35
 
62
36
  var support = {
63
37
  searchParams: 'URLSearchParams' in self,
@@ -585,7 +559,7 @@ var irrelevant = (function (exports) {
585
559
 
586
560
  return exports;
587
561
 
588
- })({});
562
+ }))({});
589
563
  })(__self__);
590
564
  __self__.fetch.ponyfill = true;
591
565
  // Remove "polyfill" property added by whatwg-fetch
@@ -602,10 +576,7 @@ exports.Response = ctx.Response;
602
576
  module.exports = exports;
603
577
  });
604
578
 
605
- const browserPonyfill$1 = /*@__PURE__*/getDefaultExportFromCjs(browserPonyfill);
606
-
607
579
  var isObjectLike_1 = createCommonjsModule(function (module, exports) {
608
- 'use strict';
609
580
 
610
581
  Object.defineProperty(exports, '__esModule', {
611
582
  value: true,
@@ -621,10 +592,7 @@ function isObjectLike(value) {
621
592
  }
622
593
  });
623
594
 
624
- const isObjectLike = /*@__PURE__*/getDefaultExportFromCjs(isObjectLike_1);
625
-
626
595
  var invariant_1 = createCommonjsModule(function (module, exports) {
627
- 'use strict';
628
596
 
629
597
  Object.defineProperty(exports, '__esModule', {
630
598
  value: true,
@@ -642,10 +610,7 @@ function invariant(condition, message) {
642
610
  }
643
611
  });
644
612
 
645
- const invariant = /*@__PURE__*/getDefaultExportFromCjs(invariant_1);
646
-
647
613
  var location_1 = createCommonjsModule(function (module, exports) {
648
- 'use strict';
649
614
 
650
615
  Object.defineProperty(exports, '__esModule', {
651
616
  value: true,
@@ -685,10 +650,7 @@ function getLocation(source, position) {
685
650
  }
686
651
  });
687
652
 
688
- const location$1 = /*@__PURE__*/getDefaultExportFromCjs(location_1);
689
-
690
653
  var printLocation_1 = createCommonjsModule(function (module, exports) {
691
- 'use strict';
692
654
 
693
655
  Object.defineProperty(exports, '__esModule', {
694
656
  value: true,
@@ -764,10 +726,7 @@ function printPrefixedLines(lines) {
764
726
  }
765
727
  });
766
728
 
767
- const printLocation = /*@__PURE__*/getDefaultExportFromCjs(printLocation_1);
768
-
769
729
  var GraphQLError_1 = createCommonjsModule(function (module, exports) {
770
- 'use strict';
771
730
 
772
731
  Object.defineProperty(exports, '__esModule', {
773
732
  value: true,
@@ -1036,10 +995,7 @@ function formatError(error) {
1036
995
  }
1037
996
  });
1038
997
 
1039
- const GraphQLError = /*@__PURE__*/getDefaultExportFromCjs(GraphQLError_1);
1040
-
1041
998
  var syntaxError_1 = createCommonjsModule(function (module, exports) {
1042
- 'use strict';
1043
999
 
1044
1000
  Object.defineProperty(exports, '__esModule', {
1045
1001
  value: true,
@@ -1060,10 +1016,7 @@ function syntaxError(source, position, description) {
1060
1016
  }
1061
1017
  });
1062
1018
 
1063
- const syntaxError = /*@__PURE__*/getDefaultExportFromCjs(syntaxError_1);
1064
-
1065
1019
  var ast = createCommonjsModule(function (module, exports) {
1066
- 'use strict';
1067
1020
 
1068
1021
  Object.defineProperty(exports, '__esModule', {
1069
1022
  value: true,
@@ -1289,10 +1242,7 @@ exports.OperationTypeNode = OperationTypeNode;
1289
1242
  })(OperationTypeNode || (exports.OperationTypeNode = OperationTypeNode = {}));
1290
1243
  });
1291
1244
 
1292
- const ast$1 = /*@__PURE__*/getDefaultExportFromCjs(ast);
1293
-
1294
1245
  var directiveLocation = createCommonjsModule(function (module, exports) {
1295
- 'use strict';
1296
1246
 
1297
1247
  Object.defineProperty(exports, '__esModule', {
1298
1248
  value: true,
@@ -1333,10 +1283,7 @@ exports.DirectiveLocation = DirectiveLocation;
1333
1283
  */
1334
1284
  });
1335
1285
 
1336
- const directiveLocation$1 = /*@__PURE__*/getDefaultExportFromCjs(directiveLocation);
1337
-
1338
1286
  var kinds = createCommonjsModule(function (module, exports) {
1339
- 'use strict';
1340
1287
 
1341
1288
  Object.defineProperty(exports, '__esModule', {
1342
1289
  value: true,
@@ -1401,10 +1348,7 @@ exports.Kind = Kind;
1401
1348
  */
1402
1349
  });
1403
1350
 
1404
- const kinds$1 = /*@__PURE__*/getDefaultExportFromCjs(kinds);
1405
-
1406
1351
  var characterClasses = createCommonjsModule(function (module, exports) {
1407
- 'use strict';
1408
1352
 
1409
1353
  Object.defineProperty(exports, '__esModule', {
1410
1354
  value: true,
@@ -1481,10 +1425,7 @@ function isNameContinue(code) {
1481
1425
  }
1482
1426
  });
1483
1427
 
1484
- const characterClasses$1 = /*@__PURE__*/getDefaultExportFromCjs(characterClasses);
1485
-
1486
1428
  var blockString = createCommonjsModule(function (module, exports) {
1487
- 'use strict';
1488
1429
 
1489
1430
  Object.defineProperty(exports, '__esModule', {
1490
1431
  value: true,
@@ -1681,10 +1622,7 @@ function printBlockString(value, options) {
1681
1622
  }
1682
1623
  });
1683
1624
 
1684
- const blockString$1 = /*@__PURE__*/getDefaultExportFromCjs(blockString);
1685
-
1686
1625
  var tokenKind = createCommonjsModule(function (module, exports) {
1687
- 'use strict';
1688
1626
 
1689
1627
  Object.defineProperty(exports, '__esModule', {
1690
1628
  value: true,
@@ -1729,10 +1667,7 @@ exports.TokenKind = TokenKind;
1729
1667
  */
1730
1668
  });
1731
1669
 
1732
- const tokenKind$1 = /*@__PURE__*/getDefaultExportFromCjs(tokenKind);
1733
-
1734
1670
  var lexer = createCommonjsModule(function (module, exports) {
1735
- 'use strict';
1736
1671
 
1737
1672
  Object.defineProperty(exports, '__esModule', {
1738
1673
  value: true,
@@ -2740,10 +2675,7 @@ function readName(lexer, start) {
2740
2675
  }
2741
2676
  });
2742
2677
 
2743
- const lexer$1 = /*@__PURE__*/getDefaultExportFromCjs(lexer);
2744
-
2745
2678
  var devAssert_1 = createCommonjsModule(function (module, exports) {
2746
- 'use strict';
2747
2679
 
2748
2680
  Object.defineProperty(exports, '__esModule', {
2749
2681
  value: true,
@@ -2759,10 +2691,7 @@ function devAssert(condition, message) {
2759
2691
  }
2760
2692
  });
2761
2693
 
2762
- const devAssert = /*@__PURE__*/getDefaultExportFromCjs(devAssert_1);
2763
-
2764
2694
  var inspect_1 = createCommonjsModule(function (module, exports) {
2765
- 'use strict';
2766
2695
 
2767
2696
  Object.defineProperty(exports, '__esModule', {
2768
2697
  value: true,
@@ -2885,10 +2814,7 @@ function getObjectTag(object) {
2885
2814
  }
2886
2815
  });
2887
2816
 
2888
- const inspect = /*@__PURE__*/getDefaultExportFromCjs(inspect_1);
2889
-
2890
2817
  var instanceOf_1 = createCommonjsModule(function (module, exports) {
2891
- 'use strict';
2892
2818
 
2893
2819
  Object.defineProperty(exports, '__esModule', {
2894
2820
  value: true,
@@ -2907,54 +2833,14 @@ const instanceOf =
2907
2833
  /* c8 ignore next 6 */
2908
2834
  // FIXME: https://github.com/graphql/graphql-js/issues/2317
2909
2835
  // eslint-disable-next-line no-undef
2910
- "development" === 'production'
2911
- ? function instanceOf(value, constructor) {
2836
+ function instanceOf(value, constructor) {
2912
2837
  return value instanceof constructor;
2913
2838
  }
2914
- : function instanceOf(value, constructor) {
2915
- if (value instanceof constructor) {
2916
- return true;
2917
- }
2918
-
2919
- if (typeof value === 'object' && value !== null) {
2920
- var _value$constructor;
2921
-
2922
- // Prefer Symbol.toStringTag since it is immune to minification.
2923
- const className = constructor.prototype[Symbol.toStringTag];
2924
- const valueClassName = // We still need to support constructor's name to detect conflicts with older versions of this library.
2925
- Symbol.toStringTag in value // @ts-expect-error TS bug see, https://github.com/microsoft/TypeScript/issues/38009
2926
- ? value[Symbol.toStringTag]
2927
- : (_value$constructor = value.constructor) === null ||
2928
- _value$constructor === void 0
2929
- ? void 0
2930
- : _value$constructor.name;
2931
-
2932
- if (className === valueClassName) {
2933
- const stringifiedValue = (0, inspect_1.inspect)(value);
2934
- throw new Error(`Cannot use ${className} "${stringifiedValue}" from another module or realm.
2935
-
2936
- Ensure that there is only one instance of "graphql" in the node_modules
2937
- directory. If different versions of "graphql" are the dependencies of other
2938
- relied on modules, use "resolutions" to ensure only one version is installed.
2939
-
2940
- https://yarnpkg.com/en/docs/selective-version-resolutions
2941
-
2942
- Duplicate "graphql" modules cannot be used at the same time since different
2943
- versions may have different capabilities and behavior. The data from one
2944
- version used in the function from another could produce confusing and
2945
- spurious results.`);
2946
- }
2947
- }
2948
-
2949
- return false;
2950
- };
2839
+ ;
2951
2840
  exports.instanceOf = instanceOf;
2952
2841
  });
2953
2842
 
2954
- const instanceOf = /*@__PURE__*/getDefaultExportFromCjs(instanceOf_1);
2955
-
2956
2843
  var source = createCommonjsModule(function (module, exports) {
2957
- 'use strict';
2958
2844
 
2959
2845
  Object.defineProperty(exports, '__esModule', {
2960
2846
  value: true,
@@ -3021,10 +2907,7 @@ function isSource(source) {
3021
2907
  }
3022
2908
  });
3023
2909
 
3024
- const source$1 = /*@__PURE__*/getDefaultExportFromCjs(source);
3025
-
3026
2910
  var parser = createCommonjsModule(function (module, exports) {
3027
- 'use strict';
3028
2911
 
3029
2912
  Object.defineProperty(exports, '__esModule', {
3030
2913
  value: true,
@@ -4593,10 +4476,7 @@ function getTokenKindDesc(kind) {
4593
4476
  }
4594
4477
  });
4595
4478
 
4596
- const parser$1 = /*@__PURE__*/getDefaultExportFromCjs(parser);
4597
-
4598
4479
  var printString_1 = createCommonjsModule(function (module, exports) {
4599
- 'use strict';
4600
4480
 
4601
4481
  Object.defineProperty(exports, '__esModule', {
4602
4482
  value: true,
@@ -4781,10 +4661,7 @@ const escapeSequences = [
4781
4661
  ];
4782
4662
  });
4783
4663
 
4784
- const printString = /*@__PURE__*/getDefaultExportFromCjs(printString_1);
4785
-
4786
4664
  var visitor = createCommonjsModule(function (module, exports) {
4787
- 'use strict';
4788
4665
 
4789
4666
  Object.defineProperty(exports, '__esModule', {
4790
4667
  value: true,
@@ -5163,10 +5040,7 @@ function getVisitFn(visitor, kind, isLeaving) {
5163
5040
  }
5164
5041
  });
5165
5042
 
5166
- const visitor$1 = /*@__PURE__*/getDefaultExportFromCjs(visitor);
5167
-
5168
5043
  var printer = createCommonjsModule(function (module, exports) {
5169
- 'use strict';
5170
5044
 
5171
5045
  Object.defineProperty(exports, '__esModule', {
5172
5046
  value: true,
@@ -5519,10 +5393,6 @@ function hasMultilineItems(maybeArray) {
5519
5393
  }
5520
5394
  });
5521
5395
 
5522
- const printer$1 = /*@__PURE__*/getDefaultExportFromCjs(printer);
5523
-
5524
- 'use strict';
5525
-
5526
5396
  var ReactNativeFile$1 = function ReactNativeFile(_ref) {
5527
5397
  var uri = _ref.uri,
5528
5398
  name = _ref.name,
@@ -5532,10 +5402,6 @@ var ReactNativeFile$1 = function ReactNativeFile(_ref) {
5532
5402
  this.type = type;
5533
5403
  };
5534
5404
 
5535
- 'use strict';
5536
-
5537
-
5538
-
5539
5405
  var isExtractableFile$1 = function isExtractableFile(value) {
5540
5406
  return (
5541
5407
  (typeof File !== 'undefined' && value instanceof File) ||
@@ -5544,10 +5410,6 @@ var isExtractableFile$1 = function isExtractableFile(value) {
5544
5410
  );
5545
5411
  };
5546
5412
 
5547
- 'use strict';
5548
-
5549
-
5550
-
5551
5413
  var extractFiles$1 = function extractFiles(value, path, isExtractableFile) {
5552
5414
  if (path === void 0) {
5553
5415
  path = '';
@@ -5599,8 +5461,6 @@ var extractFiles$1 = function extractFiles(value, path, isExtractableFile) {
5599
5461
  };
5600
5462
  };
5601
5463
 
5602
- 'use strict';
5603
-
5604
5464
  var ReactNativeFile = ReactNativeFile$1;
5605
5465
  var extractFiles = extractFiles$1;
5606
5466
  var isExtractableFile = isExtractableFile$1;
@@ -5615,7 +5475,6 @@ var _public = {
5615
5475
  var browser = typeof self == 'object' ? self.FormData : window.FormData;
5616
5476
 
5617
5477
  var defaultJsonSerializer = createCommonjsModule(function (module, exports) {
5618
- "use strict";
5619
5478
  Object.defineProperty(exports, "__esModule", { value: true });
5620
5479
  exports.defaultJsonSerializer = void 0;
5621
5480
  exports.defaultJsonSerializer = {
@@ -5625,10 +5484,7 @@ exports.defaultJsonSerializer = {
5625
5484
  //# sourceMappingURL=defaultJsonSerializer.js.map
5626
5485
  });
5627
5486
 
5628
- const defaultJsonSerializer$1 = /*@__PURE__*/getDefaultExportFromCjs(defaultJsonSerializer);
5629
-
5630
5487
  var createRequestBody_1 = createCommonjsModule(function (module, exports) {
5631
- "use strict";
5632
5488
  var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
5633
5489
  return (mod && mod.__esModule) ? mod : { "default": mod };
5634
5490
  };
@@ -5685,10 +5541,7 @@ exports.default = createRequestBody;
5685
5541
  //# sourceMappingURL=createRequestBody.js.map
5686
5542
  });
5687
5543
 
5688
- const createRequestBody = /*@__PURE__*/getDefaultExportFromCjs(createRequestBody_1);
5689
-
5690
5544
  var parseArgs = createCommonjsModule(function (module, exports) {
5691
- "use strict";
5692
5545
  Object.defineProperty(exports, "__esModule", { value: true });
5693
5546
  exports.parseBatchRequestsExtendedArgs = exports.parseRawRequestExtendedArgs = exports.parseRequestExtendedArgs = exports.parseBatchRequestArgs = exports.parseRawRequestArgs = exports.parseRequestArgs = void 0;
5694
5547
  function parseRequestArgs(documentOrOptions, variables, requestHeaders) {
@@ -5761,10 +5614,7 @@ exports.parseBatchRequestsExtendedArgs = parseBatchRequestsExtendedArgs;
5761
5614
  //# sourceMappingURL=parseArgs.js.map
5762
5615
  });
5763
5616
 
5764
- const parseArgs$1 = /*@__PURE__*/getDefaultExportFromCjs(parseArgs);
5765
-
5766
5617
  var types = createCommonjsModule(function (module, exports) {
5767
- "use strict";
5768
5618
  var __extends = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
5769
5619
  var extendStatics = function (d, b) {
5770
5620
  extendStatics = Object.setPrototypeOf ||
@@ -5814,10 +5664,7 @@ exports.ClientError = ClientError;
5814
5664
  //# sourceMappingURL=types.js.map
5815
5665
  });
5816
5666
 
5817
- const types$1 = /*@__PURE__*/getDefaultExportFromCjs(types);
5818
-
5819
5667
  var graphqlWs = createCommonjsModule(function (module, exports) {
5820
- "use strict";
5821
5668
  var __assign = (commonjsGlobal && commonjsGlobal.__assign) || function () {
5822
5669
  __assign = Object.assign || function(t) {
5823
5670
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -5997,8 +5844,6 @@ var GraphQLWebSocketClient = /** @class */ (function () {
5997
5844
  if (message.payload.errors) {
5998
5845
  subscriber.error && subscriber.error(new types.ClientError(__assign(__assign({}, message.payload), { status: 200 }), { query: query, variables: variables }));
5999
5846
  }
6000
- else {
6001
- }
6002
5847
  return;
6003
5848
  }
6004
5849
  case ERROR: {
@@ -6093,10 +5938,7 @@ function Complete(id) {
6093
5938
  //# sourceMappingURL=graphql-ws.js.map
6094
5939
  });
6095
5940
 
6096
- const graphqlWs$1 = /*@__PURE__*/getDefaultExportFromCjs(graphqlWs);
6097
-
6098
5941
  var dist = createCommonjsModule(function (module, exports) {
6099
- "use strict";
6100
5942
  var __assign = (commonjsGlobal && commonjsGlobal.__assign) || function () {
6101
5943
  __assign = Object.assign || function(t) {
6102
5944
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -6421,7 +6263,7 @@ exports.GraphQLClient = GraphQLClient;
6421
6263
  function makeRequest(_a) {
6422
6264
  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;
6423
6265
  return __awaiter(this, void 0, void 0, function () {
6424
- var fetcher, isBathchingQuery, response, result, successfullyReceivedData, successfullyPassedErrorPolicy, headers_1, status_1, errors, rest, data, errorResult;
6266
+ var fetcher, isBathchingQuery, response, result, successfullyReceivedData, successfullyPassedErrorPolicy, headers_1, status_1, rest, data, errorResult;
6425
6267
  return __generator(this, function (_c) {
6426
6268
  switch (_c.label) {
6427
6269
  case 0:
@@ -6448,7 +6290,7 @@ function makeRequest(_a) {
6448
6290
  successfullyPassedErrorPolicy = !result.errors || fetchOptions.errorPolicy === 'all' || fetchOptions.errorPolicy === 'ignore';
6449
6291
  if (response.ok && successfullyPassedErrorPolicy && successfullyReceivedData) {
6450
6292
  headers_1 = response.headers, status_1 = response.status;
6451
- errors = result.errors, rest = __rest(result, ["errors"]);
6293
+ rest = __rest(result, ["errors"]);
6452
6294
  data = fetchOptions.errorPolicy === 'ignore' ? rest : result;
6453
6295
  return [2 /*return*/, __assign(__assign({}, (isBathchingQuery ? { data: data } : data)), { headers: headers_1, status: status_1 })];
6454
6296
  }
@@ -6456,7 +6298,6 @@ function makeRequest(_a) {
6456
6298
  errorResult = typeof result === 'string' ? { error: result } : result;
6457
6299
  throw new types.ClientError(__assign(__assign({}, errorResult), { status: response.status, headers: response.headers }), { query: query, variables: variables });
6458
6300
  }
6459
- return [2 /*return*/];
6460
6301
  }
6461
6302
  });
6462
6303
  });
@@ -6586,8 +6427,6 @@ Object.defineProperty(exports, "GraphQLWebSocketClient", { enumerable: true, get
6586
6427
  //# sourceMappingURL=index.js.map
6587
6428
  });
6588
6429
 
6589
- const index = /*@__PURE__*/getDefaultExportFromCjs(dist);
6590
-
6591
6430
  class UrlUtils {
6592
6431
  static getQueryParams(queryString) {
6593
6432
  const params = new Map();
@@ -7515,20 +7354,28 @@ class TotalsFetcher {
7515
7354
  }
7516
7355
 
7517
7356
  function normalizeValue(value) {
7357
+ if (value == undefined) {
7358
+ return value;
7359
+ }
7518
7360
  if (value instanceof Date) {
7519
7361
  return value.toISOString();
7520
7362
  }
7521
7363
  if (typeof value === "object") {
7522
- const normalized = Object.assign({}, value);
7523
- Object.keys(value).forEach(prop => {
7524
- if (value[prop]) {
7525
- normalized[prop] = normalizeValue(value[prop]);
7526
- }
7527
- else {
7528
- delete normalized[prop];
7529
- }
7530
- });
7531
- return normalized;
7364
+ if (value instanceof Array) {
7365
+ return value.map(item => normalizeValue(item));
7366
+ }
7367
+ else {
7368
+ const normalized = Object.assign({}, value);
7369
+ Object.keys(value).forEach(prop => {
7370
+ if (value[prop]) {
7371
+ normalized[prop] = normalizeValue(value[prop]);
7372
+ }
7373
+ else {
7374
+ delete normalized[prop];
7375
+ }
7376
+ });
7377
+ return normalized;
7378
+ }
7532
7379
  }
7533
7380
  return value;
7534
7381
  }
@@ -7693,15 +7540,24 @@ const SnkApplication = class {
7693
7540
  * Mostra o conteúdo passado em um Popup
7694
7541
  */
7695
7542
  async showPopUp(content) {
7696
- this.clearPopUpContent();
7543
+ this.clearContent(this._popUp);
7697
7544
  this._popUp.appendChild(content);
7698
7545
  this._popUp.opened = true;
7699
7546
  }
7547
+ async showModal(content) {
7548
+ this.clearContent(this._rightModal);
7549
+ this._rightModal.appendChild(content);
7550
+ this._rightModal.opened = true;
7551
+ }
7552
+ async closeModal() {
7553
+ this.clearContent(this._rightModal);
7554
+ this._rightModal.opened = false;
7555
+ }
7700
7556
  /**
7701
7557
  * Fecha o popup, liberando o conteúdo.
7702
7558
  */
7703
7559
  async closePopUp() {
7704
- this.clearPopUpContent();
7560
+ this.clearContent(this._popUp);
7705
7561
  this._popUp.opened = false;
7706
7562
  }
7707
7563
  /**
@@ -7982,9 +7838,7 @@ const SnkApplication = class {
7982
7838
  }
7983
7839
  async executeSearch(searchArgument, fieldName, dataUnit) {
7984
7840
  const descriptor = dataUnit === null || dataUnit === void 0 ? void 0 : dataUnit.getField(fieldName);
7985
- if (!descriptor) {
7986
- //TODO: Implementar mensagem de erro
7987
- }
7841
+ if (!descriptor) ;
7988
7842
  else {
7989
7843
  const { mode, argument } = searchArgument;
7990
7844
  const { ENTITYNAME, CODEFIELD, DESCRIPTIONFIELD, ROOTENTITY, DESCRIPTIONENTITY } = descriptor.properties;
@@ -8044,10 +7898,10 @@ const SnkApplication = class {
8044
7898
  accept(window['isDebugMode']);
8045
7899
  });
8046
7900
  }
8047
- clearPopUpContent() {
8048
- if (this._popUp) {
8049
- Array.from(this._popUp.children).forEach(c => {
8050
- this._popUp.removeChild(c);
7901
+ clearContent(container) {
7902
+ if (container) {
7903
+ Array.from(container.children).forEach(child => {
7904
+ container.removeChild(child);
8051
7905
  });
8052
7906
  }
8053
7907
  }
@@ -8091,7 +7945,7 @@ const SnkApplication = class {
8091
7945
  });
8092
7946
  }
8093
7947
  render() {
8094
- 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() })));
7948
+ 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 })));
8095
7949
  }
8096
7950
  };
8097
7951
  class RequestListenerLoadingBar {
@@ -1,5 +1,5 @@
1
- import { r as registerInstance, e as createEvent, h, g as getElement } from './index-2b4d2d14.js';
2
- import { A as ApplicationContext } from './index-f1d3e4da.js';
1
+ import { r as registerInstance, c as createEvent, h, g as getElement } from './index-81dda3cf.js';
2
+ import { ApplicationContext } from '@sankhyalabs/core';
3
3
 
4
4
  const snkCrudCss = ".sc-snk-crud-h{display:flex;flex-direction:column;height:100%;width:100%}";
5
5
 
@@ -1,6 +1,7 @@
1
- import { r as registerInstance, e as createEvent, h, f as Host, g as getElement } from './index-2b4d2d14.js';
2
- import { a as Action, A as ApplicationContext } from './index-f1d3e4da.js';
3
- import { A as ApplicationUtils, D as DialogType, O as OperationMap } from './SnkMessageBuilder-a7da466b.js';
1
+ import { r as registerInstance, c as createEvent, h, g as getElement, H as Host } from './index-81dda3cf.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-35a20271.js';
4
5
 
5
6
  const snkDataUnitCss = ".sc-snk-data-unit-h{display:flex;flex-direction:column;height:100%}";
6
7
 
@@ -16,10 +17,6 @@ const SnkDataUnit = class {
16
17
  * Determina quantas linhas são retornadas por página
17
18
  */
18
19
  this.pageSize = 150;
19
- /**
20
- * Quando ativada essa propriedade faz com que haja uma carga imediata no DataUnit
21
- */
22
- this.autoLoad = true;
23
20
  this._dataUnitObserver = (action) => {
24
21
  const duState = {
25
22
  insertionMode: false,
@@ -241,11 +238,6 @@ const SnkDataUnit = class {
241
238
  while (resolver = this._onDataUnitResolve.pop()) {
242
239
  resolver(this.dataUnit);
243
240
  }
244
- if (this.autoLoad) {
245
- setTimeout(() => {
246
- this.dataUnit.loadData();
247
- }, 500); //TODO: Ajustar para aguardar filterProvider do dataunit estar pronto.
248
- }
249
241
  }
250
242
  }
251
243
  }