@sankhyalabs/ezui 0.0.0-bugfix-dev-KB-83282.0 → 0.0.0-bugfix-dev-KB-75065.1

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 (200) hide show
  1. package/dist/cjs/ez-actions-button.cjs.entry.js +1 -1
  2. package/dist/cjs/ez-alert-list.cjs.entry.js +1 -1
  3. package/dist/cjs/ez-alert.cjs.entry.js +1 -1
  4. package/dist/cjs/ez-application.cjs.entry.js +1 -1
  5. package/dist/cjs/ez-badge.cjs.entry.js +15 -3
  6. package/dist/cjs/ez-breadcrumb.cjs.entry.js +1 -1
  7. package/dist/cjs/ez-button.cjs.entry.js +1 -1
  8. package/dist/cjs/ez-calendar.cjs.entry.js +1 -1
  9. package/dist/cjs/ez-card-item_2.cjs.entry.js +1 -1
  10. package/dist/cjs/ez-chart.cjs.entry.js +1 -1
  11. package/dist/cjs/ez-check.cjs.entry.js +1 -1
  12. package/dist/cjs/ez-chip.cjs.entry.js +1 -1
  13. package/dist/cjs/ez-collapsible-box.cjs.entry.js +1 -1
  14. package/dist/cjs/ez-combo-box.cjs.entry.js +185 -59
  15. package/dist/cjs/ez-custom-form-input_2.cjs.entry.js +236 -0
  16. package/dist/cjs/ez-date-input.cjs.entry.js +1 -1
  17. package/dist/cjs/ez-date-time-input.cjs.entry.js +1 -1
  18. package/dist/cjs/ez-dialog.cjs.entry.js +1 -1
  19. package/dist/cjs/ez-double-list.cjs.entry.js +1 -1
  20. package/dist/cjs/ez-dropdown_2.cjs.entry.js +1 -1
  21. package/dist/cjs/ez-file-item.cjs.entry.js +1 -1
  22. package/dist/cjs/ez-filter-input.cjs.entry.js +1 -1
  23. package/dist/cjs/ez-form-view.cjs.entry.js +1 -1
  24. package/dist/cjs/ez-form.cjs.entry.js +1 -1
  25. package/dist/cjs/ez-grid.cjs.entry.js +1 -59
  26. package/dist/cjs/ez-guide-navigator.cjs.entry.js +1 -1
  27. package/dist/cjs/ez-icon.cjs.entry.js +1 -1
  28. package/dist/cjs/ez-list.cjs.entry.js +1 -1
  29. package/dist/cjs/ez-loading-bar.cjs.entry.js +1 -1
  30. package/dist/cjs/ez-modal-container.cjs.entry.js +1 -1
  31. package/dist/cjs/ez-modal.cjs.entry.js +1 -1
  32. package/dist/cjs/{ez-popover-core_2.cjs.entry.js → ez-multi-selection-list_2.cjs.entry.js} +197 -116
  33. package/dist/cjs/ez-number-input.cjs.entry.js +1 -1
  34. package/dist/cjs/ez-popover.cjs.entry.js +1 -1
  35. package/dist/cjs/ez-popup.cjs.entry.js +1 -1
  36. package/dist/cjs/ez-radio-button.cjs.entry.js +1 -1
  37. package/dist/cjs/ez-scroller_2.cjs.entry.js +1 -1
  38. package/dist/cjs/ez-search.cjs.entry.js +1 -1
  39. package/dist/cjs/ez-sidebar-navigator.cjs.entry.js +1 -1
  40. package/dist/cjs/ez-split-button.cjs.entry.js +1 -1
  41. package/dist/cjs/ez-split-item.cjs.entry.js +1 -1
  42. package/dist/cjs/ez-split-panel.cjs.entry.js +1 -1
  43. package/dist/cjs/ez-tabselector.cjs.entry.js +1 -1
  44. package/dist/cjs/ez-text-area.cjs.entry.js +1 -1
  45. package/dist/cjs/ez-text-input.cjs.entry.js +1 -1
  46. package/dist/cjs/ez-time-input.cjs.entry.js +1 -1
  47. package/dist/cjs/ez-toast.cjs.entry.js +1 -1
  48. package/dist/cjs/ez-tooltip.cjs.entry.js +1 -1
  49. package/dist/cjs/ez-tree.cjs.entry.js +1 -1
  50. package/dist/cjs/ez-upload.cjs.entry.js +1 -1
  51. package/dist/cjs/ez-view-stack.cjs.entry.js +1 -1
  52. package/dist/cjs/ezui.cjs.js +2 -2
  53. package/dist/cjs/filter-column.cjs.entry.js +1 -1
  54. package/dist/cjs/{index-a7b0c73d.js → index-9e5554cb.js} +7 -8
  55. package/dist/cjs/loader.cjs.js +2 -2
  56. package/dist/collection/collection-manifest.json +0 -2
  57. package/dist/collection/components/ez-badge/ez-badge.css +12 -1
  58. package/dist/collection/components/ez-badge/ez-badge.js +31 -1
  59. package/dist/collection/components/ez-combo-box/ez-combo-box.css +250 -0
  60. package/dist/collection/components/ez-combo-box/ez-combo-box.js +194 -61
  61. package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +0 -3
  62. package/dist/collection/components/ez-grid/ez-grid.js +1 -56
  63. package/dist/collection/components/ez-popover-plus/ez-popover-plus.css +64 -0
  64. package/dist/collection/components/ez-popover-plus/ez-popover-plus.js +127 -47
  65. package/dist/custom-elements/index.d.ts +0 -12
  66. package/dist/custom-elements/index.js +218 -394
  67. package/dist/esm/ez-actions-button.entry.js +1 -1
  68. package/dist/esm/ez-alert-list.entry.js +1 -1
  69. package/dist/esm/ez-alert.entry.js +1 -1
  70. package/dist/esm/ez-application.entry.js +1 -1
  71. package/dist/esm/ez-badge.entry.js +15 -3
  72. package/dist/esm/ez-breadcrumb.entry.js +1 -1
  73. package/dist/esm/ez-button.entry.js +1 -1
  74. package/dist/esm/ez-calendar.entry.js +1 -1
  75. package/dist/esm/ez-card-item_2.entry.js +1 -1
  76. package/dist/esm/ez-chart.entry.js +1 -1
  77. package/dist/esm/ez-check.entry.js +1 -1
  78. package/dist/esm/ez-chip.entry.js +1 -1
  79. package/dist/esm/ez-collapsible-box.entry.js +1 -1
  80. package/dist/esm/ez-combo-box.entry.js +186 -60
  81. package/dist/esm/ez-custom-form-input_2.entry.js +231 -0
  82. package/dist/esm/ez-date-input.entry.js +1 -1
  83. package/dist/esm/ez-date-time-input.entry.js +1 -1
  84. package/dist/esm/ez-dialog.entry.js +1 -1
  85. package/dist/esm/ez-double-list.entry.js +1 -1
  86. package/dist/esm/ez-dropdown_2.entry.js +1 -1
  87. package/dist/esm/ez-file-item.entry.js +1 -1
  88. package/dist/esm/ez-filter-input.entry.js +1 -1
  89. package/dist/esm/ez-form-view.entry.js +1 -1
  90. package/dist/esm/ez-form.entry.js +1 -1
  91. package/dist/esm/ez-grid.entry.js +2 -60
  92. package/dist/esm/ez-guide-navigator.entry.js +1 -1
  93. package/dist/esm/ez-icon.entry.js +1 -1
  94. package/dist/esm/ez-list.entry.js +1 -1
  95. package/dist/esm/ez-loading-bar.entry.js +1 -1
  96. package/dist/esm/ez-modal-container.entry.js +1 -1
  97. package/dist/esm/ez-modal.entry.js +1 -1
  98. package/dist/esm/{ez-popover-core_2.entry.js → ez-multi-selection-list_2.entry.js} +197 -116
  99. package/dist/esm/ez-number-input.entry.js +1 -1
  100. package/dist/esm/ez-popover.entry.js +1 -1
  101. package/dist/esm/ez-popup.entry.js +1 -1
  102. package/dist/esm/ez-radio-button.entry.js +1 -1
  103. package/dist/esm/ez-scroller_2.entry.js +1 -1
  104. package/dist/esm/ez-search.entry.js +1 -1
  105. package/dist/esm/ez-sidebar-navigator.entry.js +1 -1
  106. package/dist/esm/ez-split-button.entry.js +1 -1
  107. package/dist/esm/ez-split-item.entry.js +1 -1
  108. package/dist/esm/ez-split-panel.entry.js +1 -1
  109. package/dist/esm/ez-tabselector.entry.js +1 -1
  110. package/dist/esm/ez-text-area.entry.js +1 -1
  111. package/dist/esm/ez-text-input.entry.js +1 -1
  112. package/dist/esm/ez-time-input.entry.js +1 -1
  113. package/dist/esm/ez-toast.entry.js +1 -1
  114. package/dist/esm/ez-tooltip.entry.js +1 -1
  115. package/dist/esm/ez-tree.entry.js +1 -1
  116. package/dist/esm/ez-upload.entry.js +1 -1
  117. package/dist/esm/ez-view-stack.entry.js +1 -1
  118. package/dist/esm/ezui.js +3 -3
  119. package/dist/esm/filter-column.entry.js +1 -1
  120. package/dist/esm/{index-baa5e267.js → index-5a720e56.js} +7 -9
  121. package/dist/esm/loader.js +3 -3
  122. package/dist/ezui/ezui.esm.js +1 -1
  123. package/dist/ezui/p-000159dc.entry.js +1 -0
  124. package/dist/ezui/{p-44caad9a.entry.js → p-0378416a.entry.js} +1 -1
  125. package/dist/ezui/{p-65f471bc.entry.js → p-03b0ed5a.entry.js} +1 -1
  126. package/dist/ezui/{p-5b205c80.entry.js → p-044d46d5.entry.js} +1 -1
  127. package/dist/ezui/{p-a4cee65d.entry.js → p-0cfbbe82.entry.js} +1 -1
  128. package/dist/ezui/{p-77a4bd35.entry.js → p-11bfeca3.entry.js} +1 -1
  129. package/dist/ezui/{p-7e677b7b.entry.js → p-2069c78a.entry.js} +1 -1
  130. package/dist/ezui/{p-31b71e50.entry.js → p-23dab72f.entry.js} +1 -1
  131. package/dist/ezui/{p-17eabf46.entry.js → p-24b42f3d.entry.js} +1 -1
  132. package/dist/ezui/{p-556468d9.entry.js → p-3791d9c8.entry.js} +1 -1
  133. package/dist/ezui/{p-1ad6c61b.entry.js → p-3885e66e.entry.js} +1 -1
  134. package/dist/ezui/p-3af64edd.entry.js +1 -0
  135. package/dist/ezui/{p-fa6732f2.entry.js → p-44b39e81.entry.js} +1 -1
  136. package/dist/ezui/{p-c1527804.entry.js → p-4818b8ce.entry.js} +1 -1
  137. package/dist/ezui/{p-d9548bdf.entry.js → p-5010315a.entry.js} +1 -1
  138. package/dist/ezui/{p-ea54d056.entry.js → p-68b2e579.entry.js} +1 -1
  139. package/dist/ezui/{p-1f50fa05.entry.js → p-6b51c9cc.entry.js} +1 -1
  140. package/dist/ezui/{p-2bb2a0c4.entry.js → p-6d31c43c.entry.js} +1 -1
  141. package/dist/ezui/{p-6cdd3e0a.entry.js → p-6d8b3298.entry.js} +1 -1
  142. package/dist/ezui/p-6ec40dec.entry.js +1 -0
  143. package/dist/ezui/{p-5ed81457.entry.js → p-6fc26622.entry.js} +1 -1
  144. package/dist/ezui/{p-da1b4a38.entry.js → p-708b196e.entry.js} +1 -1
  145. package/dist/ezui/{p-555c9018.entry.js → p-7567ccdd.entry.js} +1 -1
  146. package/dist/ezui/{p-1e7a8633.entry.js → p-81461d2f.entry.js} +1 -1
  147. package/dist/ezui/{p-8df1ca33.entry.js → p-82fa4b09.entry.js} +1 -1
  148. package/dist/ezui/{p-0fa52b0f.entry.js → p-88c615f0.entry.js} +1 -1
  149. package/dist/ezui/{p-56fe5341.entry.js → p-9066b0b0.entry.js} +1 -1
  150. package/dist/ezui/{p-09de35a2.entry.js → p-91ccae0c.entry.js} +1 -1
  151. package/dist/ezui/{p-c0d9c4f8.entry.js → p-92748142.entry.js} +1 -1
  152. package/dist/ezui/{p-0faf71c5.entry.js → p-92fbaf2b.entry.js} +1 -1
  153. package/dist/ezui/{p-e6a9041d.entry.js → p-9e95bfeb.entry.js} +1 -1
  154. package/dist/ezui/{p-3195a7a7.entry.js → p-9fc250d4.entry.js} +1 -1
  155. package/dist/ezui/{p-53116373.entry.js → p-a3319796.entry.js} +46 -46
  156. package/dist/ezui/{p-990b4318.entry.js → p-a921e3e7.entry.js} +1 -1
  157. package/dist/ezui/{p-3429080c.entry.js → p-b22889ea.entry.js} +1 -1
  158. package/dist/ezui/{p-17be134a.entry.js → p-b2f6bc0a.entry.js} +1 -1
  159. package/dist/ezui/{p-cb1535f7.entry.js → p-b9282c79.entry.js} +1 -1
  160. package/dist/ezui/{p-e347df9c.entry.js → p-bef7daac.entry.js} +1 -1
  161. package/dist/ezui/{p-9f5fa3f9.entry.js → p-c2b20f78.entry.js} +1 -1
  162. package/dist/ezui/{p-17de16e5.entry.js → p-c96fbbef.entry.js} +1 -1
  163. package/dist/ezui/{p-2f45506d.entry.js → p-ca8936df.entry.js} +1 -1
  164. package/dist/ezui/p-cba34702.entry.js +1 -0
  165. package/dist/ezui/{p-20c024f7.entry.js → p-cf33bc48.entry.js} +1 -1
  166. package/dist/ezui/{p-58783dcf.entry.js → p-cf3b60fd.entry.js} +1 -1
  167. package/dist/ezui/{p-a80b1287.entry.js → p-dfca5946.entry.js} +1 -1
  168. package/dist/ezui/{p-7fdd479f.entry.js → p-e18d9e6a.entry.js} +1 -1
  169. package/dist/ezui/{p-fd0a19d6.entry.js → p-e3f8660b.entry.js} +1 -1
  170. package/dist/ezui/{p-23a36bb6.js → p-e4c7eb39.js} +2 -2
  171. package/dist/ezui/{p-0306dff7.entry.js → p-e6b38ade.entry.js} +1 -1
  172. package/dist/ezui/{p-b26f6c5b.entry.js → p-f30e0590.entry.js} +1 -1
  173. package/dist/ezui/{p-cf87aacb.entry.js → p-f4da7e1e.entry.js} +1 -1
  174. package/dist/ezui/{p-6e429cff.entry.js → p-fc194825.entry.js} +1 -1
  175. package/dist/ezui/p-fcc78b7f.entry.js +1 -0
  176. package/dist/types/components/ez-badge/ez-badge.d.ts +5 -0
  177. package/dist/types/components/ez-combo-box/ez-combo-box.d.ts +16 -7
  178. package/dist/types/components/ez-grid/ez-grid.d.ts +0 -5
  179. package/dist/types/components/ez-popover-plus/ez-popover-plus.d.ts +19 -6
  180. package/dist/types/components.d.ts +11 -218
  181. package/package.json +1 -1
  182. package/react/components.d.ts +0 -2
  183. package/react/components.js +0 -2
  184. package/react/components.js.map +1 -1
  185. package/dist/cjs/ez-combo-box-list_3.cjs.entry.js +0 -387
  186. package/dist/cjs/ez-multi-selection-list.cjs.entry.js +0 -186
  187. package/dist/collection/components/ez-combo-box/ez-combo-box-list/ez-combo-box-list.css +0 -205
  188. package/dist/collection/components/ez-combo-box/ez-combo-box-list/ez-combo-box-list.js +0 -426
  189. package/dist/collection/components/ez-popover-plus/subcomponent/ez-popover-core.css +0 -67
  190. package/dist/collection/components/ez-popover-plus/subcomponent/ez-popover-core.js +0 -468
  191. package/dist/esm/ez-combo-box-list_3.entry.js +0 -381
  192. package/dist/esm/ez-multi-selection-list.entry.js +0 -182
  193. package/dist/ezui/p-3a009184.entry.js +0 -1
  194. package/dist/ezui/p-650e4b6d.entry.js +0 -1
  195. package/dist/ezui/p-7bd15498.entry.js +0 -1
  196. package/dist/ezui/p-bc2f844e.entry.js +0 -1
  197. package/dist/ezui/p-dc73e1fe.entry.js +0 -1
  198. package/dist/ezui/p-f5931caa.entry.js +0 -1
  199. package/dist/types/components/ez-combo-box/ez-combo-box-list/ez-combo-box-list.d.ts +0 -104
  200. package/dist/types/components/ez-popover-plus/subcomponent/ez-popover-core.d.ts +0 -81
@@ -16,7 +16,6 @@ export const EzCheck = /*@__PURE__*/ createReactComponent('ez-check');
16
16
  export const EzChip = /*@__PURE__*/ createReactComponent('ez-chip');
17
17
  export const EzCollapsibleBox = /*@__PURE__*/ createReactComponent('ez-collapsible-box');
18
18
  export const EzComboBox = /*@__PURE__*/ createReactComponent('ez-combo-box');
19
- export const EzComboBoxList = /*@__PURE__*/ createReactComponent('ez-combo-box-list');
20
19
  export const EzCustomFormInput = /*@__PURE__*/ createReactComponent('ez-custom-form-input');
21
20
  export const EzDateInput = /*@__PURE__*/ createReactComponent('ez-date-input');
22
21
  export const EzDateTimeInput = /*@__PURE__*/ createReactComponent('ez-date-time-input');
@@ -37,7 +36,6 @@ export const EzModalContainer = /*@__PURE__*/ createReactComponent('ez-modal-con
37
36
  export const EzMultiSelectionList = /*@__PURE__*/ createReactComponent('ez-multi-selection-list');
38
37
  export const EzNumberInput = /*@__PURE__*/ createReactComponent('ez-number-input');
39
38
  export const EzPopover = /*@__PURE__*/ createReactComponent('ez-popover');
40
- export const EzPopoverCore = /*@__PURE__*/ createReactComponent('ez-popover-core');
41
39
  export const EzPopoverPlus = /*@__PURE__*/ createReactComponent('ez-popover-plus');
42
40
  export const EzPopup = /*@__PURE__*/ createReactComponent('ez-popup');
43
41
  export const EzRadioButton = /*@__PURE__*/ createReactComponent('ez-radio-button');
@@ -1 +1 @@
1
- {"version":3,"file":"components.js","sourceRoot":"","sources":["../src/components.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB,kCAAkC;AAClC,OAAO,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAM7D,MAAM,CAAC,MAAM,eAAe,GAAG,aAAa,CAAA,oBAAoB,CAAkD,mBAAmB,CAAC,CAAC;AACvI,MAAM,CAAC,MAAM,OAAO,GAAG,aAAa,CAAA,oBAAoB,CAAkC,UAAU,CAAC,CAAC;AACtG,MAAM,CAAC,MAAM,WAAW,GAAG,aAAa,CAAA,oBAAoB,CAA0C,eAAe,CAAC,CAAC;AAC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AC,MAAM,aAAa,GAAG,aAAa,CAAA,oBAAoB,CAA8C,gBAAgB,CAAC,CAAC;AAC9H,MAAM,CAAC,MAAM,UAAU,GAAG,aAAa,CAAA,oBAAoB,CAAwC,cAAc,CAAC,CAAC;AACnH,MAAM,CAAC,MAAM,UAAU,GAAG,aAAa,CAAA,oBAAoB,CAAwC,cAAc,CAAC,CAAC;AACnH,MAAM,CAAC,MAAM,WAAW,GAAG,aAAa,CAAA,oBAAoB,CAA0C,eAAe,CAAC,CAAC;AACvH,MAAM,CAAC,MAAM,WAAW,GAAG,aAAa,CAAA,oBAAoB,CAA0C,eAAe,CAAC,CAAC;AACvH,MAAM,CAAC,MAAM,OAAO,GAAG,aAAa,CAAA,oBAAoB,CAAkC,UAAU,CAAC,CAAC;AACtG,MAAM,CAAC,MAAM,SAAS,GAAG,aAAa,CAAA,oBAAoB,CAAsC,YAAY,CAAC,CAAC;AAC9G,MAAM,CAAC,MAAM,MAAM,GAAG,aAAa,CAAA,oBAAoB,CAAgC,SAAS,CAAC,CAAC;AAClG,MAAM,CAAC,MAAM,QAAQ,GAAG,aAAa,CAAA,oBAAoB,CAAoC,WAAW,CAAC,CAAC;AAC1G,MAAM,CAAC,MAAM,WAAW,GAAG,aAAa,CAAA,oBAAoB,CAA0C,eAAe,CAAC,CAAC;AACvH,MAAM,CAAC,MAAM,YAAY,GAAG,aAAa,CAAA,oBAAoB,CAA4C,eAAe,CAAC,CAAC;AAC1H,MAAM,CAAC,MAAM,wBAAwB,GAAG,aAAa,CAAA,oBAAoB,CAAoE,6BAA6B,CAAC,CAAC"}
@@ -1,387 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const index = require('./index-a7b0c73d.js');
6
- const core = require('@sankhyalabs/core');
7
- const ICustomRender = require('./ICustomRender-6fafffce.js');
8
- const ApplicationUtils = require('./ApplicationUtils-c9d1205c.js');
9
- require('./DialogType-2114c337.js');
10
- require('./CheckMode-ecb90b87.js');
11
-
12
- const ezComboBoxListCss = ":host{--ez-combo-box--border-radius:var(--border--radius-medium, 12px);--ez-combo-box--font-size:var(--text--medium, 14px);--ez-combo-box--font-family:var(--font-pattern, Arial);--ez-combo-box--font-weight--large:var(--text-weight--large, 500);--ez-combo-box--font-weight--medium:var(--text-weight--medium, 400);--ez-combo-box--background-color--xlight:var(--background--xlight, #fff);--ez-combo-box--background-medium:var(--background--medium, #f0f3f7);--ez-combo-box--line-height:calc(var(--text--medium, 14px) + 4px);--ez-combo-box__list-title--primary:var(--title--primary, #2B3A54);--ez-combo-box__list-text--primary:var(--text--primary, #626e82);--ez-combo-box__list-height:calc(var(--ez-combo-box--font-size) + var(--ez-combo-box--space--medium) + 4px);--ez-combo-box--space--medium:var(--space--medium, 12px);--ez-combo-box--space--small:var(--space--small, 6px);--ez-combo-box__scrollbar--color-default:var(--scrollbar--default, #626e82);--ez-combo-box__scrollbar--color-background:var(--scrollbar--background, #E5EAF0);--ez-combo-box__scrollbar--color-hover:var(--scrollbar--hover, #2B3A54);--ez-combo-box__scrollbar--color-clicked:var(--scrollbar--clicked, #a2abb9);--ez-combo-box__scrollbar--border-radius:var(--border--radius-small, 6px);--ez-combo-box__scrollbar--width:var(--space--medium, 12px);--ez-combo-box__list-container--padding:var(--space--extra-small, 3px)}.list-container{padding-top:var(--ez-combo-box__list-container--padding)}.list-wrapper{display:flex;flex-direction:column;box-sizing:border-box;width:0;z-index:var(--more-visible, 2);max-height:calc(4*var(--ez-combo-box__list-height) + 2*var(--ez-combo-box--space--small) + 9px);background-color:var(--ez-combo-box--background-color--xlight);border-radius:var(--ez-combo-box--border-radius);box-shadow:var(--shadow--medium, 0 8px 24px 0 rgba(43, 58, 84, 0.10));padding:var(--ez-combo-box--space--small)}.list-options{box-sizing:border-box;width:100%;height:100%;padding:0;display:flex;flex-direction:column;scroll-behavior:smooth;overflow:auto;scrollbar-width:thin;gap:3px;scrollbar-color:var(--ez-combo-box__scrollbar--color-clicked) var(--ez-combo-box__scrollbar--color-background)}.list-options::-webkit-scrollbar{background-color:var(--ez-combo-box__scrollbar--color-background);width:var(--ez-combo-box__scrollbar--width);max-width:var(--ez-combo-box__scrollbar--width);min-width:var(--ez-combo-box__scrollbar--width)}.list-options::-webkit-scrollbar-track{background-color:var(--ez-combo-box__scrollbar--color-background);border-radius:var(--ez-combo-box__scrollbar--border-radius)}.list-options::-webkit-scrollbar-thumb{background-color:var(--ez-combo-box__scrollbar--color-default);border-radius:var(--ez-combo-box__scrollbar--border-radius)}.list-options::-webkit-scrollbar-thumb:vertical:hover,.list-options::-webkit-scrollbar-thumb:horizontal:hover{background-color:var(--ez-combo-box__scrollbar--color-hover)}.list-options::-webkit-scrollbar-thumb:vertical:active,.list-options::-webkit-scrollbar-thumb:horizontal:active{background-color:var(--ez-combo-box__scrollbar--color-clicked)}.item{display:flex;align-items:center;width:100%;box-sizing:border-box;list-style-type:none;cursor:pointer;border-radius:var(--ez-combo-box--border-radius-small);padding:var(--ez-combo-box--space--small);min-height:var(--ez-combo-box__list-height);gap:var(--space--small, 6px)}.item__value,.item__label{flex-basis:auto;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--ez-combo-box__list-title--primary);font-family:var(--ez-combo-box--font-family);font-size:var(--ez-combo-box--font-size);line-height:var(--ez-combo-box--line-height)}.item__label{font-weight:var(--ez-combo-box--font-weight--medium)}.item__label--bold{font-weight:var(--ez-combo-box--font-weight--large)}.item__value{text-align:center;color:var(--ez-combo-box__list-text--primary);font-weight:var(--ez-combo-box--font-weight--large)}.item__value--hidden{visibility:hidden;position:absolute;white-space:nowrap;z-index:-1;top:0;left:0}.item__label{text-align:left}.message{text-align:center;display:flex;justify-content:center;align-items:center;list-style-type:none;min-height:var(--ez-combo-box__list-height)}.message__no-result{color:var(--ez-combo-box__list-title--primary);font-family:var(--ez-combo-box--font-family);font-size:var(--ez-combo-box--font-size)}.message__loading{border-radius:50%;width:14px;height:14px;-webkit-animation:spin 1s linear infinite;animation:spin 1s linear infinite;border:3px solid var(--ez-combo-box__list-title--primary);border-top:3px solid transparent}li:hover{background-color:var(--ez-combo-box--background-medium)}.preselected{background-color:var(--background--medium)}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg)}}@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}";
13
-
14
- const EzComboBoxList = class {
15
- constructor(hostRef) {
16
- index.registerInstance(this, hostRef);
17
- this.showLoading = undefined;
18
- this.visibleOptions = undefined;
19
- this.textEmptyList = "Nenhum resultado encontrado";
20
- this.showOptionValue = undefined;
21
- this.preSelection = undefined;
22
- this.maxWidth = undefined;
23
- this.width = undefined;
24
- this.onOptionSelect = undefined;
25
- this.onOptionHover = undefined;
26
- }
27
- /**
28
- * Move a seleção para a próxima opção na lista.
29
- */
30
- async nextOption() {
31
- var _a;
32
- if (!this.visibleOptions || this.visibleOptions.length === 0)
33
- return;
34
- const isAtLastOption = this.preSelection !== undefined && this.preSelection >= this.visibleOptions.length - 1;
35
- if (!isAtLastOption) {
36
- this.preSelection = this.preSelection === undefined ? 0 : this.preSelection + 1;
37
- this.scrollToOption(this.visibleOptions[this.preSelection]);
38
- (_a = this.onOptionHover) === null || _a === void 0 ? void 0 : _a.call(this, this.preSelection);
39
- }
40
- }
41
- /**
42
- * Move a seleção para a opção anterior na lista, sem ultrapassar o início.
43
- */
44
- async previousOption() {
45
- var _a;
46
- if (!this.visibleOptions || this.visibleOptions.length === 0)
47
- return;
48
- const isAtFirstOption = this.preSelection !== undefined && this.preSelection <= 0;
49
- if (!isAtFirstOption) {
50
- this.preSelection = this.preSelection === undefined ? this.visibleOptions.length - 1 : this.preSelection - 1;
51
- this.scrollToOption(this.visibleOptions[this.preSelection]);
52
- (_a = this.onOptionHover) === null || _a === void 0 ? void 0 : _a.call(this, this.preSelection);
53
- }
54
- }
55
- /**
56
- * Seleciona a opção atualmente pré-selecionada.
57
- */
58
- async selectCurrentOption() {
59
- if (this.preSelection !== undefined) {
60
- this.onOptionSelect(this.visibleOptions[this.preSelection]);
61
- this.preSelection = undefined;
62
- }
63
- }
64
- /**
65
- * Observa mudanças na propriedade `width` e ajusta a largura da lista.
66
- *
67
- * @param newValue O novo valor da largura.
68
- * @param oldValue O valor anterior da largura.
69
- */
70
- observeWidth(newValue, oldValue) {
71
- if (newValue === oldValue)
72
- return;
73
- if (!this._listWrapper)
74
- return;
75
- this._listWrapper.style.width = `${this.width}px`;
76
- }
77
- /**
78
- * Observa mudanças na propriedade `maxWidth` e ajusta a largura máxima da lista.
79
- *
80
- * @param newValue O novo valor da largura máxima.
81
- * @param oldValue O valor anterior da largura máxima.
82
- */
83
- observeMaxWidth(newValue, oldValue) {
84
- if (newValue === oldValue)
85
- return;
86
- if (!this._listWrapper)
87
- return;
88
- this._listWrapper.style.maxWidth = this.maxWidth ? `${this.maxWidth}px` : '';
89
- }
90
- /**
91
- * Gerencia a navegação por teclado na lista do combo box.
92
- *
93
- * - `ArrowDown`: Move para a próxima opção.
94
- * - `ArrowUp`: Move para a opção anterior.
95
- * - `Enter`: Seleciona a opção atual.
96
- * - `Escape`: Limpa a pré-seleção.
97
- *
98
- * @param event O evento de teclado.
99
- */
100
- handleKeyDown(event) {
101
- switch (event.key) {
102
- case "ArrowDown":
103
- event.preventDefault();
104
- event.stopPropagation();
105
- this.nextOption();
106
- break;
107
- case "ArrowUp":
108
- event.preventDefault();
109
- event.stopPropagation();
110
- this.previousOption();
111
- break;
112
- case "Enter":
113
- this.selectCurrentOption();
114
- break;
115
- case "Escape":
116
- this.preSelection = undefined;
117
- break;
118
- }
119
- }
120
- buildItem(opt, index$1) {
121
- const widthValue = this.showOptionValue && this.maxWidth > 0 ? `${this.maxWidth}px` : '';
122
- opt.label = opt.label || opt.value;
123
- return index.h("li", { tabIndex: 1, class: index$1 === this.preSelection ? "item preselected" : "item", id: `item_${opt.value}_${index$1}`, key: `item_${opt.value}_${index$1}`, onMouseDown: () => this.onOptionSelect(opt), onMouseOver: () => this.preSelection = index$1 }, this.showOptionValue
124
- ? index.h("span", { class: "item__value", title: opt.value, style: { width: widthValue, minWidth: widthValue, maxWidth: widthValue } }, opt.value)
125
- : undefined, index.h("span", { class: "item__label " + (this.showOptionValue ? "item__label--bold" : ""), title: opt.label }, opt.label));
126
- }
127
- scrollToOption(opt) {
128
- if (!opt || !opt.value || !this._optionsList)
129
- return;
130
- const index = this.visibleOptions.indexOf(opt);
131
- if (index === -1)
132
- return;
133
- const liElem = this._optionsList.querySelector(`li#item_${CSS.escape(opt.value)}_${CSS.escape(String(index))}`);
134
- if (liElem) {
135
- liElem.scrollIntoView({
136
- behavior: "smooth",
137
- block: "nearest"
138
- });
139
- }
140
- }
141
- componentDidLoad() {
142
- this._listWrapper.style.width = `${this.width}px`;
143
- this._listWrapper.style.maxWidth = this.maxWidth ? `${this.maxWidth}px` : '';
144
- }
145
- componentDidRender() {
146
- var _a;
147
- (_a = this._optionsList) === null || _a === void 0 ? void 0 : _a.querySelectorAll(".item").forEach((elem) => {
148
- core.ElementIDUtils.addIDInfoIfNotExists(elem, "itemComboBox");
149
- });
150
- }
151
- render() {
152
- return (index.h("section", { class: "list-container" }, index.h("div", { class: "list-wrapper", ref: elem => this._listWrapper = elem }, index.h("ul", { class: "list-options", ref: elem => this._optionsList = elem }, !this.showLoading && this.visibleOptions.length === 0 && (index.h("div", { class: "message" }, index.h("span", { class: "message__no-result" }, this.textEmptyList))), this.showLoading && (index.h("div", { class: "message" }, index.h("div", { class: "message__loading" }))), this.showOptionValue && (index.h("span", { class: "item__value item__value--hidden" })), !this.showLoading && this.visibleOptions.length > 0 &&
153
- this.visibleOptions.map((opt, index) => this.buildItem(opt, index))))));
154
- }
155
- static get watchers() { return {
156
- "width": ["observeWidth"],
157
- "maxWidth": ["observeMaxWidth"]
158
- }; }
159
- };
160
- EzComboBoxList.style = ezComboBoxListCss;
161
-
162
- const EzCustomFormInput = class {
163
- constructor(hostRef) {
164
- index.registerInstance(this, hostRef);
165
- this.gui = undefined;
166
- this.customEditor = undefined;
167
- this.formViewField = undefined;
168
- this.value = undefined;
169
- this.detailContext = undefined;
170
- this.builderFallback = undefined;
171
- this.selectedRecord = undefined;
172
- }
173
- /**
174
- * Aplica foco no campo.
175
- */
176
- async setFocus() {
177
- var _a, _b;
178
- (_b = (_a = this.gui) === null || _a === void 0 ? void 0 : _a["setFocus"]) === null || _b === void 0 ? void 0 : _b.call(_a);
179
- }
180
- /**
181
- * Remove o foco do campo.
182
- */
183
- async setBlur() {
184
- var _a, _b;
185
- (_b = (_a = this.gui) === null || _a === void 0 ? void 0 : _a["setBlur"]) === null || _b === void 0 ? void 0 : _b.call(_a);
186
- }
187
- /**
188
- * Retorna se o conteúdo é inválido.
189
- */
190
- async isInvalid() {
191
- var _a, _b;
192
- return ((_b = (_a = this.gui) === null || _a === void 0 ? void 0 : _a["isInvalid"]) === null || _b === void 0 ? void 0 : _b.call(_a)) || false;
193
- }
194
- watchValue() {
195
- this.handleValue(this.gui);
196
- }
197
- watchCustomEditor() {
198
- this.getContent();
199
- }
200
- watchFormViewField(newValue, oldValue) {
201
- if (!core.ObjectUtils.equals(newValue, oldValue))
202
- this.getContent();
203
- }
204
- watchDetailContext() {
205
- this.getContent();
206
- }
207
- watchBuilderFallback() {
208
- this.getContent();
209
- }
210
- watchSelectedRecord(newValue, oldValue) {
211
- const newRecordId = newValue === null || newValue === void 0 ? void 0 : newValue['__record__id__'];
212
- const oldRecordId = oldValue === null || oldValue === void 0 ? void 0 : oldValue['__record__id__'];
213
- if (newRecordId !== oldRecordId) {
214
- this.getContent();
215
- }
216
- }
217
- getContent() {
218
- var _a, _b, _c, _d, _e;
219
- const fieldProps = new Map();
220
- for (const prop in this.formViewField.props) {
221
- fieldProps.set(prop, this.formViewField.props[prop]);
222
- }
223
- const params = {
224
- value: this.value,
225
- name: this.formViewField.name,
226
- currentEditor: this.builderFallback(this.formViewField),
227
- setValue: (value) => this.setValue(value),
228
- getValue: this.getValue,
229
- record: this.selectedRecord,
230
- editorMetadata: {
231
- label: this.formViewField.label,
232
- hidden: ((_a = this.formViewField.props) === null || _a === void 0 ? void 0 : _a.visible) === false,
233
- userInterface: this.formViewField.userInterface,
234
- options: (_b = this.formViewField.props) === null || _b === void 0 ? void 0 : _b.options,
235
- props: this.formViewField.props ? fieldProps : undefined,
236
- optionLoader: this.formViewField.optionLoader
237
- },
238
- source: ICustomRender.CustomEditorSource.FORM,
239
- detailContext: this.detailContext
240
- };
241
- let gui = this.customEditor.getEditorElement(params);
242
- if (!gui) {
243
- gui = this.builderFallback(this.formViewField);
244
- this.handleValue(gui);
245
- this.gui = gui;
246
- return;
247
- }
248
- if (!(gui instanceof HTMLElement) && typeof gui !== 'string') {
249
- this.handleValue(gui);
250
- this.gui = gui;
251
- return;
252
- }
253
- if (typeof gui === 'string') {
254
- gui = core.HTMLBuilder.parseElement(gui);
255
- }
256
- const value = (_e = (_d = (_c = this.value) === null || _c === void 0 ? void 0 : _c.value) !== null && _d !== void 0 ? _d : this.value) !== null && _e !== void 0 ? _e : '';
257
- gui.setAttribute('value', value);
258
- this.gui = index.h("div", { key: core.StringUtils.generateUUID(), ref: el => el && el.appendChild(gui) });
259
- }
260
- setValue(value) {
261
- this.value = value;
262
- }
263
- getValue() {
264
- return this.value;
265
- }
266
- handleValue(gui) {
267
- var _a;
268
- //@ts-ignore
269
- (_a = gui.$children$) === null || _a === void 0 ? void 0 : _a.forEach((child) => {
270
- child.$attrs$.value = this.value;
271
- });
272
- }
273
- componentWillLoad() {
274
- this.getContent();
275
- }
276
- render() {
277
- return (index.h(index.Host, null, this.gui));
278
- }
279
- static get watchers() { return {
280
- "value": ["watchValue"],
281
- "customEditor": ["watchCustomEditor"],
282
- "formViewField": ["watchFormViewField"],
283
- "detailContext": ["watchDetailContext"],
284
- "builderFallback": ["watchBuilderFallback"],
285
- "selectedRecord": ["watchSelectedRecord"]
286
- }; }
287
- };
288
-
289
- const ezTextEditCss = ":host{display:flex;align-items:center;gap:5px}.text-edit__form-input{width:auto;--ez-text-input__input--padding:0px}.text-edit__hidden-value{visibility:hidden;position:absolute;white-space:nowrap;z-index:-1;top:0;left:0}";
290
-
291
- const EzTextEdit = class {
292
- constructor(hostRef) {
293
- index.registerInstance(this, hostRef);
294
- this.saveEdition = index.createEvent(this, "saveEdition", 7);
295
- this.cancelEdition = index.createEvent(this, "cancelEdition", 7);
296
- this._newValue = undefined;
297
- this.value = undefined;
298
- this.styled = undefined;
299
- }
300
- /**
301
- * Aplica foco no campo.
302
- */
303
- async applyFocusSelect() {
304
- this.calcSizeInput(this.value, true);
305
- }
306
- calcSizeInput(value, setSelect = false) {
307
- var _a, _b;
308
- const textInput = (_b = (_a = this._inputElement) === null || _a === void 0 ? void 0 : _a.shadowRoot) === null || _b === void 0 ? void 0 : _b.querySelector('input');
309
- if (textInput != undefined) {
310
- const sizeText = this.getWidthValue(value);
311
- textInput.style.width = sizeText + 'px';
312
- if (setSelect) {
313
- setTimeout(() => textInput.select(), 100);
314
- }
315
- }
316
- }
317
- getWidthValue(value) {
318
- if (this._valueBasis != undefined) {
319
- const span = this._valueBasis;
320
- if (value != undefined) {
321
- const cursorSpace = 2;
322
- span.innerHTML = value;
323
- return span.clientWidth > 0 ? (span.clientWidth + cursorSpace) : cursorSpace;
324
- }
325
- else {
326
- span.innerHTML = "";
327
- }
328
- }
329
- return 0;
330
- }
331
- setStyledInput() {
332
- var _a, _b;
333
- let fontSize = "";
334
- let fontWeight = "";
335
- let fontFamily = "";
336
- if (this.styled != undefined) {
337
- fontSize = this.styled.fontSize;
338
- fontWeight = this.styled.fontWeight;
339
- fontFamily = this.styled.fontFamily;
340
- }
341
- const textInput = (_b = (_a = this._inputElement) === null || _a === void 0 ? void 0 : _a.shadowRoot) === null || _b === void 0 ? void 0 : _b.querySelector('input');
342
- if (textInput != undefined) {
343
- textInput.style.fontSize = fontSize;
344
- textInput.style.fontWeight = fontWeight;
345
- textInput.style.fontFamily = fontFamily;
346
- }
347
- const span = this._valueBasis;
348
- if (span != undefined) {
349
- span.style.fontSize = fontSize;
350
- span.style.fontWeight = fontWeight;
351
- span.style.fontFamily = fontFamily;
352
- }
353
- }
354
- handleSaveEdition() {
355
- if (!this._newValue) {
356
- ApplicationUtils.ApplicationUtils.alert("Aviso", "Não é possível salvar um campo em branco.").then(() => {
357
- this.setNewValue(this.value, true);
358
- });
359
- return;
360
- }
361
- this.saveEdition.emit({ value: this.value, newValue: this._newValue });
362
- }
363
- handleCancelEdition() {
364
- this.cancelEdition.emit();
365
- }
366
- setNewValue(value, setSelect = false) {
367
- this._newValue = value;
368
- this.calcSizeInput(this._newValue, setSelect);
369
- }
370
- componentDidLoad() {
371
- this.applyFocusSelect();
372
- this.setNewValue(this.value);
373
- }
374
- componentDidRender() {
375
- this.setStyledInput();
376
- }
377
- render() {
378
- core.ElementIDUtils.addIDInfoIfNotExists(this._element, 'input');
379
- return (index.h(index.Host, null, index.h("span", { class: "text-edit__hidden-value", ref: elem => this._valueBasis = elem }), index.h("ez-text-input", { "data-element-id": core.ElementIDUtils.getInternalIDInfo("textInput"), onInput: () => { this.calcSizeInput(this._newValue); }, class: "text-edit__form-input", value: this._newValue, ref: (elem) => this._inputElement = elem, mode: "slim", onEzChange: (evt) => this.setNewValue(evt === null || evt === void 0 ? void 0 : evt.detail), noBorder: true }), index.h("ez-button", { class: "text-edit__icon-check", mode: "icon", iconName: "check", size: "small", onClick: () => { this.handleSaveEdition(); } }), index.h("ez-button", { class: "text-edit__icon-close", mode: "icon", iconName: "close", size: "small", onClick: () => { this.handleCancelEdition(); } })));
380
- }
381
- get _element() { return index.getElement(this); }
382
- };
383
- EzTextEdit.style = ezTextEditCss;
384
-
385
- exports.ez_combo_box_list = EzComboBoxList;
386
- exports.ez_custom_form_input = EzCustomFormInput;
387
- exports.ez_text_edit = EzTextEdit;
@@ -1,186 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const index = require('./index-a7b0c73d.js');
6
- const core = require('@sankhyalabs/core');
7
-
8
- const ezMultiSelectionListCss = ".sc-ez-multi-selection-list-h{--ez-check--outter-gap:0px;--ez-multi-selection-default-height:322px;display:block;width:304px;height:var(--ez-multi-selection-default-height);min-height:fit-content;max-height:calc(100vh - 350px)}.multi-selection__input.sc-ez-multi-selection-list{margin-bottom:var(--space--2xs, 8px)}.multi-selection__content-options.sc-ez-multi-selection-list{position:relative;left:-4px}.multi-selection__select-all.sc-ez-multi-selection-list{height:var(--space--xl);margin:0 var(--space--small, 6px)}.multi-selection__list.sc-ez-multi-selection-list{max-height:calc(100vh - 435px);overflow-y:auto;overflow-x:clip}.multi-selection__list.sc-ez-multi-selection-list::-webkit-scrollbar{width:var(--space--small);min-width:var(--space--small);max-width:var(--space--small)}";
9
-
10
- var ViewScenarios;
11
- (function (ViewScenarios) {
12
- ViewScenarios["DATASOURCE_RESULTS"] = "DATASOURCE_RESULTS";
13
- ViewScenarios["DATASOURCE_RESULTS_EMPTY"] = "DATASOURCE_RESULTS_EMPTY";
14
- ViewScenarios["DATASOURCE_INIT"] = "DATASOURCE_INIT";
15
- ViewScenarios["OPTIONS_EMPTY"] = "OPTIONS_EMPTY";
16
- ViewScenarios["OPTIONS"] = "OPTIONS";
17
- })(ViewScenarios || (ViewScenarios = {}));
18
- const EzMuiltiSelectionList = class {
19
- constructor(hostRef) {
20
- index.registerInstance(this, hostRef);
21
- this.changeFilteredOptions = index.createEvent(this, "changeFilteredOptions", 7);
22
- this.columnName = undefined;
23
- this.dataSource = undefined;
24
- this.useOptions = false;
25
- this.options = undefined;
26
- this.isTextSearch = false;
27
- this.filteredOptions = undefined;
28
- this.displayOptions = undefined;
29
- this.viewScenario = undefined;
30
- this.displayOptionToCheckAllItems = true;
31
- }
32
- async clearFilteredOptions() {
33
- this.setInitialScenario();
34
- this.filteredOptions = [];
35
- if (this.searchInput) {
36
- this.searchInput.value = '';
37
- }
38
- if (this.filterInput) {
39
- this.filterInput.value = '';
40
- }
41
- }
42
- onChangeUseOptions() {
43
- this.setInitialScenario();
44
- }
45
- onChangeOptions() {
46
- if (this.options) {
47
- this.filteredOptions = this.ordenationByCheckStateAndAlphabetically(this.options);
48
- }
49
- this.checkInput && this.changeCheckAllValeuFromFilteredOptions();
50
- this.setInitialScenario();
51
- }
52
- onChangeFilteredOptions(optionsListUpdated) {
53
- this.displayOptions = this.filteredOptions;
54
- this.displayOptionToCheckAllItems = this.filteredOptions.length > 1;
55
- this.checkInput && this.changeCheckAllValeuFromFilteredOptions();
56
- this.changeFilteredOptions.emit(optionsListUpdated);
57
- }
58
- componentDidRender() {
59
- this.changeCheckAllValeuFromFilteredOptions();
60
- }
61
- ordenationByCheckStateAndAlphabetically(filteredOptions) {
62
- const listWithSelectChecked = [];
63
- const listWithNotSelectChecked = [];
64
- let emptyElement;
65
- filteredOptions.forEach(item => {
66
- if (item.value == undefined || item.label === "") {
67
- emptyElement = Object.assign(Object.assign({}, item), { label: "(Vazio)" });
68
- }
69
- else {
70
- (item.check ? listWithSelectChecked.push(item) : listWithNotSelectChecked.push(item));
71
- }
72
- });
73
- return (emptyElement == undefined ? [] : [emptyElement])
74
- .concat(this.dataSource == undefined ? core.ArrayUtils.sortAlphabetically(listWithSelectChecked) : this.dataSource.sortItems(this.columnName, listWithSelectChecked))
75
- .concat(this.dataSource == undefined ? core.ArrayUtils.sortAlphabetically(listWithNotSelectChecked) : this.dataSource.sortItems(this.columnName, listWithNotSelectChecked));
76
- }
77
- changeCheckAllValeuFromFilteredOptions() {
78
- var _a, _b, _c, _d;
79
- const selectAll = (_a = this.filteredOptions) === null || _a === void 0 ? void 0 : _a.every(item => item.check === true);
80
- const notSelectAll = (_b = this.filteredOptions) === null || _b === void 0 ? void 0 : _b.every(item => item.check === false);
81
- const selectIndeterminated = ((_c = this.filteredOptions) === null || _c === void 0 ? void 0 : _c.some(item => item.check === false)) && ((_d = this.filteredOptions) === null || _d === void 0 ? void 0 : _d.some(item => item.check === true)) && (!selectAll || !notSelectAll);
82
- if (this.checkInput && selectAll) {
83
- this.checkInput.indeterminate = false;
84
- this.checkInput.value = true;
85
- return;
86
- }
87
- if (this.checkInput && selectIndeterminated) {
88
- this.checkInput.indeterminate = true;
89
- this.checkInput.value = false;
90
- return;
91
- }
92
- if (this.checkInput && notSelectAll) {
93
- this.checkInput.indeterminate = false;
94
- this.checkInput.value = false;
95
- return;
96
- }
97
- }
98
- setInitialScenario() {
99
- if (this.useOptions) {
100
- this.viewScenario = ViewScenarios.OPTIONS;
101
- this.changeCheckAllValeuFromFilteredOptions();
102
- return;
103
- }
104
- this.viewScenario = this.options && this.options.length > 0 ? ViewScenarios.DATASOURCE_RESULTS : ViewScenarios.DATASOURCE_INIT;
105
- }
106
- async searchWithDataSource(searchArgument, fieldName) {
107
- const { argument, mode } = searchArgument;
108
- if (mode !== 'PRELOAD' && fieldName) {
109
- return this.dataSource.fetchData(argument, fieldName);
110
- }
111
- }
112
- handleSearchOnDataSource(event) {
113
- var _a;
114
- const optionsToSort = (_a = this.filteredOptions) !== null && _a !== void 0 ? _a : [];
115
- if (event.detail && !optionsToSort.some(item => item.value == event.detail.value)) {
116
- this.filteredOptions = this.ordenationByCheckStateAndAlphabetically([...optionsToSort, event.detail]);
117
- }
118
- this.viewScenario = ViewScenarios.DATASOURCE_RESULTS;
119
- this.searchInput.value = "";
120
- }
121
- handleRemoveItemFromOptions(item) {
122
- this.filteredOptions = this.ordenationByCheckStateAndAlphabetically(this.filteredOptions.filter(i => i.value !== item.value));
123
- if (this.filteredOptions.length === 0) {
124
- this.viewScenario = ViewScenarios.DATASOURCE_INIT;
125
- }
126
- if (this.searchInput) {
127
- this.searchInput.value = '';
128
- }
129
- }
130
- handleSearchOnOption(event) {
131
- if (event.detail) {
132
- this.displayOptions = core.ArrayUtils.applyStringFilter(event.detail, this.filteredOptions, true);
133
- this.viewScenario = this.displayOptions.length === 0 ? ViewScenarios.OPTIONS_EMPTY : ViewScenarios.OPTIONS;
134
- return;
135
- }
136
- this.displayOptions = this.filteredOptions;
137
- this.viewScenario = ViewScenarios.OPTIONS;
138
- }
139
- handleChangeSelectAllItems(event) {
140
- this.filteredOptions = this.ordenationByCheckStateAndAlphabetically([
141
- ...this.filteredOptions.map(item => {
142
- item.check = !!event.detail;
143
- return item;
144
- }),
145
- ]);
146
- }
147
- handleChangeSelectedItem(event) {
148
- const { detail: itemCheckSelected } = event;
149
- const itemSelected = this.filteredOptions.find(item => item.label === itemCheckSelected.label);
150
- itemSelected.check = itemCheckSelected.check;
151
- }
152
- buildViewList(hasDelete) {
153
- return (index.h(index.Fragment, null, this.displayOptionToCheckAllItems && (index.h("ez-check", { ref: (element) => (this.checkInput = element), label: "Selecionar todos", class: "multi-selection__select-all", onEzChange: this.handleChangeSelectAllItems.bind(this) })), index.h("ez-list", { class: "multi-selection__list", dataSource: this.displayOptions, listMode: "check", hoverFeedback: true, onEzCheckChange: this.handleChangeSelectedItem.bind(this), itemSlotBuilder: hasDelete ? this.buildDeleteIconSlot.bind(this) : null })));
154
- }
155
- buildDeleteIconSlot(item) {
156
- return index.h("ez-icon", { style: { cursor: 'pointer' }, iconName: "delete", onClick: () => this.handleRemoveItemFromOptions(item) });
157
- }
158
- buildInitViewWithDataSource() {
159
- return index.h("multi-selection-box-message", { message: "Selecione os valores a serem filtrados atrav\u00E9s do campo de busca." });
160
- }
161
- buildViewEmptyResults() {
162
- return index.h("multi-selection-box-message", { message: "Nenhum resultado encontrado." });
163
- }
164
- scenarioToDisplay(view) {
165
- const scenarios = {
166
- [ViewScenarios.DATASOURCE_INIT]: () => this.buildInitViewWithDataSource(),
167
- [ViewScenarios.DATASOURCE_RESULTS]: () => this.buildViewList(true),
168
- [ViewScenarios.DATASOURCE_RESULTS_EMPTY]: () => this.buildViewEmptyResults(),
169
- [ViewScenarios.OPTIONS_EMPTY]: () => this.buildViewEmptyResults(),
170
- [ViewScenarios.OPTIONS]: () => this.buildViewList(false),
171
- };
172
- const scenarioBuilder = scenarios[view];
173
- return scenarioBuilder ? scenarioBuilder() : undefined;
174
- }
175
- render() {
176
- return (index.h(index.Host, null, index.h("div", { class: "multi-selection" }, this.useOptions ? (index.h("ez-filter-input", { ref: (element) => (this.filterInput = element), label: `Buscar..`, onEzChange: this.handleSearchOnOption.bind(this) })) : (index.h("ez-search", { class: "multi-selection__input", label: `Buscar...`, ref: (element) => (this.searchInput = element), suppressEmptyOption: true, showOptionValue: false, showSelectedValue: false, optionLoader: (search) => this.searchWithDataSource(search, this.columnName), onEzChange: this.handleSearchOnDataSource.bind(this), isTextSearch: this.isTextSearch })), index.h("ez-scroll", { class: "multi-selection__content-options" }, this.scenarioToDisplay(this.viewScenario)))));
177
- }
178
- static get watchers() { return {
179
- "useOptions": ["onChangeUseOptions"],
180
- "options": ["onChangeOptions"],
181
- "filteredOptions": ["onChangeFilteredOptions"]
182
- }; }
183
- };
184
- EzMuiltiSelectionList.style = ezMultiSelectionListCss;
185
-
186
- exports.ez_multi_selection_list = EzMuiltiSelectionList;