@sankhyalabs/ezui 0.0.0-bugfix-dev-KB-86904.0 → 0.0.0-bugfix-dev-KB-92929.0

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 (223) hide show
  1. package/dist/cjs/_commonjsHelpers-537d719a.js +20 -0
  2. package/dist/cjs/ez-actions-button.cjs.entry.js +1 -1
  3. package/dist/cjs/ez-alert-list.cjs.entry.js +1 -1
  4. package/dist/cjs/ez-alert.cjs.entry.js +1 -1
  5. package/dist/cjs/ez-application.cjs.entry.js +1 -1
  6. package/dist/cjs/ez-avatar.cjs.entry.js +1 -1
  7. package/dist/cjs/ez-badge.cjs.entry.js +1 -1
  8. package/dist/cjs/ez-breadcrumb.cjs.entry.js +1 -1
  9. package/dist/cjs/ez-button.cjs.entry.js +1 -1
  10. package/dist/cjs/ez-calendar.cjs.entry.js +1 -1
  11. package/dist/cjs/ez-card-item_2.cjs.entry.js +1 -1
  12. package/dist/cjs/ez-chart.cjs.entry.js +4 -19
  13. package/dist/cjs/ez-check.cjs.entry.js +1 -1
  14. package/dist/cjs/ez-chip.cjs.entry.js +1 -1
  15. package/dist/cjs/ez-collapsible-box.cjs.entry.js +1 -1
  16. package/dist/cjs/ez-combo-box-list_3.cjs.entry.js +3 -3
  17. package/dist/cjs/ez-combo-box.cjs.entry.js +6 -3
  18. package/dist/cjs/ez-date-input.cjs.entry.js +1 -1
  19. package/dist/cjs/ez-date-time-input.cjs.entry.js +1 -1
  20. package/dist/cjs/ez-dialog.cjs.entry.js +1 -1
  21. package/dist/cjs/ez-double-list.cjs.entry.js +115 -54
  22. package/dist/cjs/ez-dropdown.cjs.entry.js +1 -1
  23. package/dist/cjs/ez-file-item.cjs.entry.js +1 -1
  24. package/dist/cjs/{ez-tooltip.cjs.entry.js → ez-filter-input_2.cjs.entry.js} +124 -2
  25. package/dist/cjs/ez-form-view.cjs.entry.js +1 -1
  26. package/dist/cjs/ez-form.cjs.entry.js +2 -2
  27. package/dist/cjs/ez-grid.cjs.entry.js +1390 -4
  28. package/dist/cjs/ez-guide-navigator.cjs.entry.js +1 -1
  29. package/dist/cjs/ez-icon.cjs.entry.js +1 -1
  30. package/dist/cjs/ez-list.cjs.entry.js +1 -1
  31. package/dist/cjs/ez-loading-bar.cjs.entry.js +1 -1
  32. package/dist/cjs/ez-modal-container.cjs.entry.js +1 -1
  33. package/dist/cjs/ez-modal.cjs.entry.js +1 -1
  34. package/dist/cjs/ez-multi-selection-list.cjs.entry.js +1 -1
  35. package/dist/cjs/ez-number-input.cjs.entry.js +1 -1
  36. package/dist/cjs/ez-popover-plus_3.cjs.entry.js +1 -1
  37. package/dist/cjs/ez-popover.cjs.entry.js +1 -1
  38. package/dist/cjs/ez-popup.cjs.entry.js +1 -1
  39. package/dist/cjs/ez-radio-button.cjs.entry.js +1 -1
  40. package/dist/cjs/ez-scroller_2.cjs.entry.js +1 -1
  41. package/dist/cjs/ez-search-plus.cjs.entry.js +1 -1
  42. package/dist/cjs/ez-search-result-list.cjs.entry.js +1 -1
  43. package/dist/cjs/ez-search.cjs.entry.js +1 -1
  44. package/dist/cjs/ez-sidebar-navigator.cjs.entry.js +1 -1
  45. package/dist/cjs/ez-skeleton.cjs.entry.js +1 -1
  46. package/dist/cjs/ez-sortable-list.cjs.entry.js +3510 -0
  47. package/dist/cjs/ez-split-button.cjs.entry.js +1 -1
  48. package/dist/cjs/ez-split-item.cjs.entry.js +1 -1
  49. package/dist/cjs/ez-split-panel.cjs.entry.js +1 -1
  50. package/dist/cjs/ez-tabselector.cjs.entry.js +1 -1
  51. package/dist/cjs/ez-text-area.cjs.entry.js +1 -1
  52. package/dist/cjs/ez-text-input.cjs.entry.js +1 -1
  53. package/dist/cjs/ez-time-input.cjs.entry.js +1 -1
  54. package/dist/cjs/ez-toast.cjs.entry.js +1 -1
  55. package/dist/cjs/ez-tree.cjs.entry.js +1 -1
  56. package/dist/cjs/ez-upload.cjs.entry.js +1 -1
  57. package/dist/cjs/ez-view-stack.cjs.entry.js +1 -1
  58. package/dist/cjs/ezui.cjs.js +2 -2
  59. package/dist/cjs/filter-column.cjs.entry.js +1 -1
  60. package/dist/cjs/{index-9e5554cb.js → index-a7b0c73d.js} +6 -9
  61. package/dist/cjs/loader.cjs.js +2 -2
  62. package/dist/cjs/{search-column-1d3c9fa5.js → search-column-27d1f72f.js} +1 -1
  63. package/dist/collection/collection-manifest.json +1 -0
  64. package/dist/collection/components/ez-combo-box/ez-combo-box-list/ez-combo-box-list.css +1 -0
  65. package/dist/collection/components/ez-combo-box/ez-combo-box.js +41 -2
  66. package/dist/collection/components/ez-double-list/doubleListHelper.js +9 -10
  67. package/dist/collection/components/ez-double-list/ez-double-list.css +6 -38
  68. package/dist/collection/components/ez-double-list/ez-double-list.js +168 -50
  69. package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +24 -1
  70. package/dist/collection/components/ez-grid/controller/ag-grid/GridEditionManager.js +4 -1
  71. package/dist/collection/components/ez-grid/ez-grid.js +43 -4
  72. package/dist/collection/components/ez-grid/interfaces/IGridMode.js +1 -0
  73. package/dist/collection/components/ez-grid/interfaces/index.js +1 -0
  74. package/dist/collection/components/ez-sortable-list/ez-sortable-list.css +226 -0
  75. package/dist/collection/components/ez-sortable-list/ez-sortable-list.js +582 -0
  76. package/dist/custom-elements/index.d.ts +6 -0
  77. package/dist/custom-elements/index.js +5031 -75
  78. package/dist/esm/_commonjsHelpers-9943807e.js +17 -0
  79. package/dist/esm/ez-actions-button.entry.js +1 -1
  80. package/dist/esm/ez-alert-list.entry.js +1 -1
  81. package/dist/esm/ez-alert.entry.js +1 -1
  82. package/dist/esm/ez-application.entry.js +1 -1
  83. package/dist/esm/ez-avatar.entry.js +1 -1
  84. package/dist/esm/ez-badge.entry.js +1 -1
  85. package/dist/esm/ez-breadcrumb.entry.js +1 -1
  86. package/dist/esm/ez-button.entry.js +1 -1
  87. package/dist/esm/ez-calendar.entry.js +1 -1
  88. package/dist/esm/ez-card-item_2.entry.js +1 -1
  89. package/dist/esm/ez-chart.entry.js +2 -17
  90. package/dist/esm/ez-check.entry.js +1 -1
  91. package/dist/esm/ez-chip.entry.js +1 -1
  92. package/dist/esm/ez-collapsible-box.entry.js +1 -1
  93. package/dist/esm/ez-combo-box-list_3.entry.js +3 -3
  94. package/dist/esm/ez-combo-box.entry.js +6 -3
  95. package/dist/esm/ez-date-input.entry.js +1 -1
  96. package/dist/esm/ez-date-time-input.entry.js +1 -1
  97. package/dist/esm/ez-dialog.entry.js +1 -1
  98. package/dist/esm/ez-double-list.entry.js +116 -55
  99. package/dist/esm/ez-dropdown.entry.js +1 -1
  100. package/dist/esm/ez-file-item.entry.js +1 -1
  101. package/dist/esm/{ez-tooltip.entry.js → ez-filter-input_2.entry.js} +124 -3
  102. package/dist/esm/ez-form-view.entry.js +1 -1
  103. package/dist/esm/ez-form.entry.js +2 -2
  104. package/dist/esm/ez-grid.entry.js +1390 -4
  105. package/dist/esm/ez-guide-navigator.entry.js +1 -1
  106. package/dist/esm/ez-icon.entry.js +1 -1
  107. package/dist/esm/ez-list.entry.js +1 -1
  108. package/dist/esm/ez-loading-bar.entry.js +1 -1
  109. package/dist/esm/ez-modal-container.entry.js +1 -1
  110. package/dist/esm/ez-modal.entry.js +1 -1
  111. package/dist/esm/ez-multi-selection-list.entry.js +1 -1
  112. package/dist/esm/ez-number-input.entry.js +1 -1
  113. package/dist/esm/ez-popover-plus_3.entry.js +1 -1
  114. package/dist/esm/ez-popover.entry.js +1 -1
  115. package/dist/esm/ez-popup.entry.js +1 -1
  116. package/dist/esm/ez-radio-button.entry.js +1 -1
  117. package/dist/esm/ez-scroller_2.entry.js +1 -1
  118. package/dist/esm/ez-search-plus.entry.js +1 -1
  119. package/dist/esm/ez-search-result-list.entry.js +1 -1
  120. package/dist/esm/ez-search.entry.js +1 -1
  121. package/dist/esm/ez-sidebar-navigator.entry.js +1 -1
  122. package/dist/esm/ez-skeleton.entry.js +1 -1
  123. package/dist/esm/ez-sortable-list.entry.js +3506 -0
  124. package/dist/esm/ez-split-button.entry.js +1 -1
  125. package/dist/esm/ez-split-item.entry.js +1 -1
  126. package/dist/esm/ez-split-panel.entry.js +1 -1
  127. package/dist/esm/ez-tabselector.entry.js +1 -1
  128. package/dist/esm/ez-text-area.entry.js +1 -1
  129. package/dist/esm/ez-text-input.entry.js +1 -1
  130. package/dist/esm/ez-time-input.entry.js +1 -1
  131. package/dist/esm/ez-toast.entry.js +1 -1
  132. package/dist/esm/ez-tree.entry.js +1 -1
  133. package/dist/esm/ez-upload.entry.js +1 -1
  134. package/dist/esm/ez-view-stack.entry.js +1 -1
  135. package/dist/esm/ezui.js +3 -3
  136. package/dist/esm/filter-column.entry.js +1 -1
  137. package/dist/esm/{index-5a720e56.js → index-baa5e267.js} +7 -9
  138. package/dist/esm/loader.js +3 -3
  139. package/dist/esm/{search-column-35f4ad93.js → search-column-e609d513.js} +1 -1
  140. package/dist/ezui/ezui.esm.js +1 -1
  141. package/dist/ezui/{p-e6b38ade.entry.js → p-0306dff7.entry.js} +1 -1
  142. package/dist/ezui/{p-6b2cc9b8.entry.js → p-07894c4a.entry.js} +1 -1
  143. package/dist/ezui/{p-91ccae0c.entry.js → p-09de35a2.entry.js} +1 -1
  144. package/dist/ezui/{p-700c1320.entry.js → p-0d9856a4.entry.js} +1 -1
  145. package/dist/ezui/p-112455b1.js +1 -0
  146. package/dist/ezui/{p-15d9cd15.entry.js → p-1276ef79.entry.js} +1 -1
  147. package/dist/ezui/{p-87f5a060.entry.js → p-1bcfd88c.entry.js} +1 -1
  148. package/dist/ezui/{p-81461d2f.entry.js → p-1e7a8633.entry.js} +1 -1
  149. package/dist/ezui/{p-ddd0bd61.entry.js → p-1eb34cad.entry.js} +1 -1
  150. package/dist/ezui/{p-6b51c9cc.entry.js → p-1f50fa05.entry.js} +1 -1
  151. package/dist/ezui/{p-e4c7eb39.js → p-23a36bb6.js} +2 -2
  152. package/dist/ezui/{p-4e66eaeb.entry.js → p-26685c50.entry.js} +1 -1
  153. package/dist/ezui/{p-06f1b8e4.entry.js → p-288631d1.entry.js} +1 -1
  154. package/dist/ezui/{p-2d10bb18.entry.js → p-2b42abbb.entry.js} +1 -1
  155. package/dist/ezui/{p-1fefb37a.entry.js → p-2b4df33d.entry.js} +1 -1
  156. package/dist/ezui/{p-e4ae4ddb.entry.js → p-33326ac5.entry.js} +1 -1
  157. package/dist/ezui/{p-c8e6204f.entry.js → p-35115d5d.entry.js} +1 -1
  158. package/dist/ezui/{p-682931aa.entry.js → p-38581954.entry.js} +48 -46
  159. package/dist/ezui/{p-97d94ef3.entry.js → p-3ba9565c.entry.js} +1 -1
  160. package/dist/ezui/{p-0378416a.entry.js → p-44caad9a.entry.js} +1 -1
  161. package/dist/ezui/{p-6b3fddee.entry.js → p-496f7832.entry.js} +1 -1
  162. package/dist/ezui/{p-769632d5.entry.js → p-4b67138e.entry.js} +1 -1
  163. package/dist/ezui/{p-90e91173.entry.js → p-4bd6dd6a.entry.js} +1 -1
  164. package/dist/ezui/{p-4a876b8b.entry.js → p-4d30b703.entry.js} +1 -1
  165. package/dist/ezui/{p-7567ccdd.entry.js → p-555c9018.entry.js} +1 -1
  166. package/dist/ezui/{p-e4ead194.entry.js → p-57363cfd.entry.js} +1 -1
  167. package/dist/ezui/{p-7ec3f335.entry.js → p-58f69d24.entry.js} +1 -1
  168. package/dist/ezui/p-59561756.entry.js +7 -0
  169. package/dist/ezui/{p-6fc26622.entry.js → p-5ed81457.entry.js} +1 -1
  170. package/dist/ezui/p-6369a0cd.entry.js +1 -0
  171. package/dist/ezui/p-63cb493e.entry.js +1 -0
  172. package/dist/ezui/{p-b3b3c99a.entry.js → p-69937816.entry.js} +1 -1
  173. package/dist/ezui/{p-fc194825.entry.js → p-6e429cff.entry.js} +1 -1
  174. package/dist/ezui/{p-d2290004.entry.js → p-7019f782.entry.js} +1 -1
  175. package/dist/ezui/{p-11bfeca3.entry.js → p-77a4bd35.entry.js} +1 -1
  176. package/dist/ezui/p-7ab19270.entry.js +1 -0
  177. package/dist/ezui/{p-d4d6d5fe.entry.js → p-7eae6986.entry.js} +1 -1
  178. package/dist/ezui/{p-e195eaad.entry.js → p-7f792043.entry.js} +1 -1
  179. package/dist/ezui/{p-82fa4b09.entry.js → p-8df1ca33.entry.js} +1 -1
  180. package/dist/ezui/{p-ed48a632.entry.js → p-9478b13b.entry.js} +1 -1
  181. package/dist/ezui/{p-ddb22a70.entry.js → p-9567b31a.entry.js} +1 -1
  182. package/dist/ezui/{p-01b72d7e.entry.js → p-998afb6a.entry.js} +1 -1
  183. package/dist/ezui/{p-18e71523.entry.js → p-9c5cd3b2.entry.js} +1 -1
  184. package/dist/ezui/{p-c2b20f78.entry.js → p-9f5fa3f9.entry.js} +1 -1
  185. package/dist/ezui/{p-90c90351.entry.js → p-a148e994.entry.js} +1 -1
  186. package/dist/ezui/{p-28987410.entry.js → p-a3bf8cf1.entry.js} +1 -1
  187. package/dist/ezui/{p-dfca5946.entry.js → p-a80b1287.entry.js} +1 -1
  188. package/dist/ezui/p-b41cc8ff.entry.js +1 -0
  189. package/dist/ezui/{p-926a0bde.entry.js → p-bac0f920.entry.js} +1 -1
  190. package/dist/ezui/p-bc2f844e.entry.js +1 -0
  191. package/dist/ezui/{p-175154a0.js → p-bff24a7b.js} +1 -1
  192. package/dist/ezui/{p-92748142.entry.js → p-c0d9c4f8.entry.js} +1 -1
  193. package/dist/ezui/{p-a11827ca.entry.js → p-cb75eb46.entry.js} +1 -1
  194. package/dist/ezui/{p-708b196e.entry.js → p-da1b4a38.entry.js} +1 -1
  195. package/dist/ezui/{p-c7035d65.entry.js → p-dc73e1fe.entry.js} +1 -1
  196. package/dist/ezui/{p-2f351332.entry.js → p-e06a9886.entry.js} +1 -1
  197. package/dist/ezui/p-e4528470.entry.js +1 -0
  198. package/dist/ezui/{p-9e95bfeb.entry.js → p-e6a9041d.entry.js} +1 -1
  199. package/dist/ezui/{p-000159dc.entry.js → p-e75c7a23.entry.js} +1 -1
  200. package/dist/ezui/{p-44b39e81.entry.js → p-fa6732f2.entry.js} +1 -1
  201. package/dist/types/components/ez-combo-box/ez-combo-box.d.ts +8 -0
  202. package/dist/types/components/ez-double-list/doubleListHelper.d.ts +4 -2
  203. package/dist/types/components/ez-double-list/ez-double-list.d.ts +60 -24
  204. package/dist/types/components/ez-grid/controller/ag-grid/AgGridController.d.ts +1 -0
  205. package/dist/types/components/ez-grid/controller/ag-grid/GridEditionManager.d.ts +1 -0
  206. package/dist/types/components/ez-grid/ez-grid.d.ts +6 -1
  207. package/dist/types/components/ez-grid/interfaces/IGridMode.d.ts +1 -0
  208. package/dist/types/components/ez-grid/interfaces/index.d.ts +1 -0
  209. package/dist/types/components/ez-sortable-list/ez-sortable-list.d.ts +91 -0
  210. package/dist/types/components.d.ts +210 -4
  211. package/package.json +6 -1
  212. package/react/components.d.ts +1 -0
  213. package/react/components.js +1 -0
  214. package/react/components.js.map +1 -1
  215. package/dist/cjs/ez-filter-input.cjs.entry.js +0 -129
  216. package/dist/esm/ez-filter-input.entry.js +0 -125
  217. package/dist/ezui/p-07594da0.entry.js +0 -1
  218. package/dist/ezui/p-2069c78a.entry.js +0 -1
  219. package/dist/ezui/p-6ec40dec.entry.js +0 -1
  220. package/dist/ezui/p-cf33bc48.entry.js +0 -1
  221. package/dist/ezui/p-da66838e.entry.js +0 -1
  222. package/dist/ezui/p-dd7d305a.entry.js +0 -1
  223. package/dist/ezui/p-ea053063.entry.js +0 -1
@@ -7,7 +7,7 @@
7
7
  import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
8
8
  import { IAction } from "./utils";
9
9
  import { AlertItem } from "./components/ez-alert-list/ez-alert-list";
10
- import { ListItem, SlotBuilder } from "./components/ez-list/ez-list";
10
+ import { SlotBuilder } from "./components/ez-list/ez-list";
11
11
  import { IPosition } from "./components/ez-badge/interfaces/IPosition";
12
12
  import { IBreadcrumbItem } from "./components/ez-breadcrumb/ez-breadcrumb";
13
13
  import { CardItem } from "./components/ez-card-item/ez-card-item";
@@ -21,12 +21,14 @@ import { ICustomEditor } from "./utils/customEditor/interfaces/ICustomEditor";
21
21
  import { IFormViewField } from "./components/ez-form-view/interfaces";
22
22
  import { DataUnit, Record, WaitingChange } from "@sankhyalabs/core";
23
23
  import { DialogType } from "./components/ez-dialog/DialogType";
24
+ import { ListItem } from "./components/ez-sortable-list/ez-sortable-list";
25
+ import { DoubleListSlots, EmptyMessage } from "./components/ez-double-list/ez-double-list";
24
26
  import { IDropdownItem, IDropdownSubAction } from "./components/ez-dropdown/structure/DropdownItem";
25
27
  import { IFieldConfig, IFormConfig, IRecordValidator } from "./utils/form/interfaces";
26
28
  import { FormItems } from "./components/ez-form-view/structure";
27
29
  import { IFormViewField as IFormViewField1 } from "./components/ez-form-view/interfaces/IFormViewField";
28
30
  import { EzGridColumn, EzGridColumnConfig, EzGridColumStateEvent, IGridConfig, IStatusResolver, StatusResolverFunction } from "./components/ez-grid/controller/EzGridController";
29
- import { ICustomFormatter, ISelection, ISelectionToastConfig } from "./components/ez-grid/interfaces";
31
+ import { ICustomFormatter, IGridMode, ISelection, ISelectionToastConfig } from "./components/ez-grid/interfaces";
30
32
  import { IMultiSelectionListDataSource } from "./components/ez-multi-selection-list/interfaces/IMultiSelectionListDataSource";
31
33
  import { ICustomRender } from "./utils/customRender/interfaces/ICustomRender";
32
34
  import { IGuideItem } from "./components/ez-guide-navigator/interfaces";
@@ -43,6 +45,7 @@ import { IOption as IOption3, OptionLoaderFunction } from "./components/ez-searc
43
45
  import { IOption as IOption4 } from "./components/ez-search-plus/ez-search-plus";
44
46
  import { ModeMenuEnum, SizeMenuEnum, TypeMenuEnum } from "./components/ez-sidebar-navigator/interfaces";
45
47
  import { SkeletonAnimation, SkeletonVariant } from "./components/ez-skeleton/ez-skeleton.constants";
48
+ import { ListItem as ListItem2 } from "./components/ez-sortable-list/ez-sortable-list";
46
49
  import { Tab } from "./components/ez-tabselector/ez-tabselector";
47
50
  import { IStyled } from "./components/ez-text-edit/ez-text-edit";
48
51
  import { TFocusOptions as TFocusOptions1 } from "./components/ez-text-input/ez-text-input";
@@ -511,6 +514,10 @@ export namespace Components {
511
514
  * Array com as opções do ez-combo-box. Os elementos devem obedecer o formato: `{value: string, label: string}`.
512
515
  */
513
516
  "options": Array<IOption>;
517
+ /**
518
+ * Se true, impede que o campo de texto receba foco automaticamente ao abrir as opções.
519
+ */
520
+ "preventAutoFocus": boolean;
514
521
  /**
515
522
  * Remove o foco do campo.
516
523
  */
@@ -539,6 +546,10 @@ export namespace Components {
539
546
  * Se true desabilita a digitação dentro do componente.
540
547
  */
541
548
  "suppressSearch": boolean;
549
+ /**
550
+ * Texto a ser apresentado na opção de valor nulo.
551
+ */
552
+ "textEmptyOption": string;
542
553
  /**
543
554
  * Define o valor do campo.
544
555
  */
@@ -777,12 +788,16 @@ export namespace Components {
777
788
  "show": (title: string, message: string, dialogType: DialogType, confirm: boolean, icon: string, labelCancel: string, labelConfirm: string, btnConfirmDanger: boolean, beforeClose: Function) => Promise<boolean>;
778
789
  }
779
790
  interface EzDoubleList {
791
+ /**
792
+ * Objeto que define as mensagens a serem exibidas quando a lista está vazia Exemplo: { LEFT_LIST?: "Lista lado esquerdo vazia.", RIGHT_LIST?: "Lista lado direito vazia."; }
793
+ */
794
+ "emptyMessage": EmptyMessage;
780
795
  /**
781
796
  * Nome da entidade listada. Exemplo: "Campo", "Item", "Empresa".
782
797
  */
783
798
  "entityLabel": string;
784
799
  /**
785
- * Variação plura do nome da entidade listada. Exemplo: "Campos", "Itens", "Empresas".
800
+ * Variação plural do nome da entidade listada. Exemplo: "Campos", "Itens", "Empresas".
786
801
  */
787
802
  "entityLabelPlural": string;
788
803
  /**
@@ -810,6 +825,14 @@ export namespace Components {
810
825
  * Define o título da lista destino.
811
826
  */
812
827
  "rightTitle": string;
828
+ /**
829
+ * Objeto que define os métodos de construção dos elementos visuais para os itens de cada lista. Este objeto permite configurar dinamicamente os elementos HTML que serão exibidos ao lado esquerdo e direito dos itens em ambas as listas (`LEFT_LIST` e `RIGHT_LIST`).
830
+ */
831
+ "slotsListBuilder": DoubleListSlots;
832
+ /**
833
+ * Define se irá exibir apenas a lista da direita.
834
+ */
835
+ "useOnlyRightList": boolean;
813
836
  }
814
837
  interface EzDropdown {
815
838
  /**
@@ -1056,6 +1079,10 @@ export namespace Components {
1056
1079
  * Localiza determinada coluna tornando-a visível.
1057
1080
  */
1058
1081
  "locateColumn": (columnName: string) => Promise<void>;
1082
+ /**
1083
+ * Define o modo de uso da grade
1084
+ */
1085
+ "mode": IGridMode;
1059
1086
  /**
1060
1087
  * Habilita a seleção de várias linhas.
1061
1088
  */
@@ -1980,6 +2007,68 @@ export namespace Components {
1980
2007
  */
1981
2008
  "width": string;
1982
2009
  }
2010
+ interface EzSortableList {
2011
+ /**
2012
+ * Remove a seleção de todos os itens da lista
2013
+ */
2014
+ "clearSelection": () => Promise<void>;
2015
+ /**
2016
+ * Lista de itens para serem renderizados
2017
+ */
2018
+ "dataSource": Array<ListItem>;
2019
+ /**
2020
+ * Mensagem exibida quando a lista está vazia
2021
+ */
2022
+ "emptyMessage": string;
2023
+ /**
2024
+ * Habilita seleção de múltiplos itens utilizando as teclas 'Ctrl/Command' ou 'Shift'
2025
+ */
2026
+ "enableMultipleSelection": boolean;
2027
+ /**
2028
+ * Nome da entidade listada. Exemplo: "Campo", "Item", "Empresa".
2029
+ */
2030
+ "entityLabel": string;
2031
+ /**
2032
+ * Variação plural do nome da entidade listada. Exemplo: "Campos", "Itens", "Empresas".
2033
+ */
2034
+ "entityLabelPlural": string;
2035
+ /**
2036
+ * Grupo ao qual o ez-sortable-list pertence
2037
+ */
2038
+ "group": string;
2039
+ /**
2040
+ * Define se o cabeçalho deve ficar oculto.
2041
+ */
2042
+ "hideHeader": boolean;
2043
+ /**
2044
+ * Define se o totalizador deve ser escondido.
2045
+ */
2046
+ "hideTotalizer": boolean;
2047
+ /**
2048
+ * Quando verdadeiro, ativa o feedback visual ao efetuar hover nos itens da lista
2049
+ */
2050
+ "hoverFeedback": boolean;
2051
+ /**
2052
+ * ID do sortable list
2053
+ */
2054
+ "idSortableList": string;
2055
+ /**
2056
+ * Função builder que possibilita gerar conteúdo dinâmico à esquerda do item da lista. * Observação: No react ele se transforma em VNode e não como HTMLElement.
2057
+ */
2058
+ "itemLeftSlotBuilder": SlotBuilder;
2059
+ /**
2060
+ * Função builder que possibilita alterar como o item da lista vai ser apresentado. Observação: No react ele se transforma em VNode e não como HTMLElement.
2061
+ */
2062
+ "itemRightSlotBuilder": SlotBuilder;
2063
+ /**
2064
+ * Remove itens arrastados de uma lista para outra
2065
+ */
2066
+ "removeItensMoved": boolean;
2067
+ /**
2068
+ * Define o título da lista.
2069
+ */
2070
+ "title": string;
2071
+ }
1983
2072
  interface EzSplitButton {
1984
2073
  /**
1985
2074
  * Se false o usuário não pode interagir com o botão.
@@ -2644,6 +2733,10 @@ export interface EzSidebarNavigatorCustomEvent<T> extends CustomEvent<T> {
2644
2733
  detail: T;
2645
2734
  target: HTMLEzSidebarNavigatorElement;
2646
2735
  }
2736
+ export interface EzSortableListCustomEvent<T> extends CustomEvent<T> {
2737
+ detail: T;
2738
+ target: HTMLEzSortableListElement;
2739
+ }
2647
2740
  export interface EzSplitButtonCustomEvent<T> extends CustomEvent<T> {
2648
2741
  detail: T;
2649
2742
  target: HTMLEzSplitButtonElement;
@@ -2971,6 +3064,12 @@ declare global {
2971
3064
  prototype: HTMLEzSkeletonElement;
2972
3065
  new (): HTMLEzSkeletonElement;
2973
3066
  };
3067
+ interface HTMLEzSortableListElement extends Components.EzSortableList, HTMLStencilElement {
3068
+ }
3069
+ var HTMLEzSortableListElement: {
3070
+ prototype: HTMLEzSortableListElement;
3071
+ new (): HTMLEzSortableListElement;
3072
+ };
2974
3073
  interface HTMLEzSplitButtonElement extends Components.EzSplitButton, HTMLStencilElement {
2975
3074
  }
2976
3075
  var HTMLEzSplitButtonElement: {
@@ -3115,6 +3214,7 @@ declare global {
3115
3214
  "ez-sidebar-button": HTMLEzSidebarButtonElement;
3116
3215
  "ez-sidebar-navigator": HTMLEzSidebarNavigatorElement;
3117
3216
  "ez-skeleton": HTMLEzSkeletonElement;
3217
+ "ez-sortable-list": HTMLEzSortableListElement;
3118
3218
  "ez-split-button": HTMLEzSplitButtonElement;
3119
3219
  "ez-split-item": HTMLEzSplitItemElement;
3120
3220
  "ez-split-panel": HTMLEzSplitPanelElement;
@@ -3587,6 +3687,10 @@ declare namespace LocalJSX {
3587
3687
  * Array com as opções do ez-combo-box. Os elementos devem obedecer o formato: `{value: string, label: string}`.
3588
3688
  */
3589
3689
  "options"?: Array<IOption>;
3690
+ /**
3691
+ * Se true, impede que o campo de texto receba foco automaticamente ao abrir as opções.
3692
+ */
3693
+ "preventAutoFocus"?: boolean;
3590
3694
  /**
3591
3695
  * Se true cada opção na lista exibe o `value` junto com `label`.
3592
3696
  */
@@ -3607,6 +3711,10 @@ declare namespace LocalJSX {
3607
3711
  * Se true desabilita a digitação dentro do componente.
3608
3712
  */
3609
3713
  "suppressSearch"?: boolean;
3714
+ /**
3715
+ * Texto a ser apresentado na opção de valor nulo.
3716
+ */
3717
+ "textEmptyOption"?: string;
3610
3718
  /**
3611
3719
  * Define o valor do campo.
3612
3720
  */
@@ -3823,12 +3931,16 @@ declare namespace LocalJSX {
3823
3931
  "personalizedIconPath"?: string;
3824
3932
  }
3825
3933
  interface EzDoubleList {
3934
+ /**
3935
+ * Objeto que define as mensagens a serem exibidas quando a lista está vazia Exemplo: { LEFT_LIST?: "Lista lado esquerdo vazia.", RIGHT_LIST?: "Lista lado direito vazia."; }
3936
+ */
3937
+ "emptyMessage"?: EmptyMessage;
3826
3938
  /**
3827
3939
  * Nome da entidade listada. Exemplo: "Campo", "Item", "Empresa".
3828
3940
  */
3829
3941
  "entityLabel"?: string;
3830
3942
  /**
3831
- * Variação plura do nome da entidade listada. Exemplo: "Campos", "Itens", "Empresas".
3943
+ * Variação plural do nome da entidade listada. Exemplo: "Campos", "Itens", "Empresas".
3832
3944
  */
3833
3945
  "entityLabelPlural"?: string;
3834
3946
  /**
@@ -3843,7 +3955,13 @@ declare namespace LocalJSX {
3843
3955
  * Define o título da lista origem.
3844
3956
  */
3845
3957
  "leftTitle"?: string;
3958
+ /**
3959
+ * Emitido ao realizar uma alteração na lista esquerda do componente.
3960
+ */
3846
3961
  "onEzLeftListChanged"?: (event: EzDoubleListCustomEvent<Array<ListItem>>) => void;
3962
+ /**
3963
+ * Emitido ao realizar uma alteração na lista direita do componente.
3964
+ */
3847
3965
  "onEzRightListChanged"?: (event: EzDoubleListCustomEvent<Array<ListItem>>) => void;
3848
3966
  /**
3849
3967
  * Define a lista destino.
@@ -3857,6 +3975,14 @@ declare namespace LocalJSX {
3857
3975
  * Define o título da lista destino.
3858
3976
  */
3859
3977
  "rightTitle"?: string;
3978
+ /**
3979
+ * Objeto que define os métodos de construção dos elementos visuais para os itens de cada lista. Este objeto permite configurar dinamicamente os elementos HTML que serão exibidos ao lado esquerdo e direito dos itens em ambas as listas (`LEFT_LIST` e `RIGHT_LIST`).
3980
+ */
3981
+ "slotsListBuilder"?: DoubleListSlots;
3982
+ /**
3983
+ * Define se irá exibir apenas a lista da direita.
3984
+ */
3985
+ "useOnlyRightList"?: boolean;
3860
3986
  }
3861
3987
  interface EzDropdown {
3862
3988
  /**
@@ -4081,6 +4207,10 @@ declare namespace LocalJSX {
4081
4207
  * Ativa modo de linhas com cores alternadas.
4082
4208
  */
4083
4209
  "enableRowTableStriped"?: boolean;
4210
+ /**
4211
+ * Define o modo de uso da grade
4212
+ */
4213
+ "mode"?: IGridMode;
4084
4214
  /**
4085
4215
  * Habilita a seleção de várias linhas.
4086
4216
  */
@@ -4893,6 +5023,80 @@ declare namespace LocalJSX {
4893
5023
  */
4894
5024
  "width"?: string;
4895
5025
  }
5026
+ interface EzSortableList {
5027
+ /**
5028
+ * Lista de itens para serem renderizados
5029
+ */
5030
+ "dataSource"?: Array<ListItem>;
5031
+ /**
5032
+ * Mensagem exibida quando a lista está vazia
5033
+ */
5034
+ "emptyMessage"?: string;
5035
+ /**
5036
+ * Habilita seleção de múltiplos itens utilizando as teclas 'Ctrl/Command' ou 'Shift'
5037
+ */
5038
+ "enableMultipleSelection"?: boolean;
5039
+ /**
5040
+ * Nome da entidade listada. Exemplo: "Campo", "Item", "Empresa".
5041
+ */
5042
+ "entityLabel"?: string;
5043
+ /**
5044
+ * Variação plural do nome da entidade listada. Exemplo: "Campos", "Itens", "Empresas".
5045
+ */
5046
+ "entityLabelPlural"?: string;
5047
+ /**
5048
+ * Grupo ao qual o ez-sortable-list pertence
5049
+ */
5050
+ "group"?: string;
5051
+ /**
5052
+ * Define se o cabeçalho deve ficar oculto.
5053
+ */
5054
+ "hideHeader"?: boolean;
5055
+ /**
5056
+ * Define se o totalizador deve ser escondido.
5057
+ */
5058
+ "hideTotalizer"?: boolean;
5059
+ /**
5060
+ * Quando verdadeiro, ativa o feedback visual ao efetuar hover nos itens da lista
5061
+ */
5062
+ "hoverFeedback"?: boolean;
5063
+ /**
5064
+ * ID do sortable list
5065
+ */
5066
+ "idSortableList"?: string;
5067
+ /**
5068
+ * Função builder que possibilita gerar conteúdo dinâmico à esquerda do item da lista. * Observação: No react ele se transforma em VNode e não como HTMLElement.
5069
+ */
5070
+ "itemLeftSlotBuilder"?: SlotBuilder;
5071
+ /**
5072
+ * Função builder que possibilita alterar como o item da lista vai ser apresentado. Observação: No react ele se transforma em VNode e não como HTMLElement.
5073
+ */
5074
+ "itemRightSlotBuilder"?: SlotBuilder;
5075
+ /**
5076
+ * Emitido quando ocorre a escolha de um item da lista
5077
+ */
5078
+ "onEzChoose"?: (event: EzSortableListCustomEvent<ListItem[] | ListItem>) => void;
5079
+ /**
5080
+ * Emitido quando ocorre um duplo clique em um item da lista
5081
+ */
5082
+ "onEzDoubleClick"?: (event: EzSortableListCustomEvent<ListItem>) => void;
5083
+ /**
5084
+ * Emitido sempre que um ou vários itens da lista forem selecionados
5085
+ */
5086
+ "onEzSelectItens"?: (event: EzSortableListCustomEvent<ListItem[] | ListItem>) => void;
5087
+ /**
5088
+ * Evento emitido quando a ordem dos itens muda
5089
+ */
5090
+ "onItemsReordered"?: (event: EzSortableListCustomEvent<any>) => void;
5091
+ /**
5092
+ * Remove itens arrastados de uma lista para outra
5093
+ */
5094
+ "removeItensMoved"?: boolean;
5095
+ /**
5096
+ * Define o título da lista.
5097
+ */
5098
+ "title"?: string;
5099
+ }
4896
5100
  interface EzSplitButton {
4897
5101
  /**
4898
5102
  * Se false o usuário não pode interagir com o botão.
@@ -5392,6 +5596,7 @@ declare namespace LocalJSX {
5392
5596
  "ez-sidebar-button": EzSidebarButton;
5393
5597
  "ez-sidebar-navigator": EzSidebarNavigator;
5394
5598
  "ez-skeleton": EzSkeleton;
5599
+ "ez-sortable-list": EzSortableList;
5395
5600
  "ez-split-button": EzSplitButton;
5396
5601
  "ez-split-item": EzSplitItem;
5397
5602
  "ez-split-panel": EzSplitPanel;
@@ -5461,6 +5666,7 @@ declare module "@stencil/core" {
5461
5666
  "ez-sidebar-button": LocalJSX.EzSidebarButton & JSXBase.HTMLAttributes<HTMLEzSidebarButtonElement>;
5462
5667
  "ez-sidebar-navigator": LocalJSX.EzSidebarNavigator & JSXBase.HTMLAttributes<HTMLEzSidebarNavigatorElement>;
5463
5668
  "ez-skeleton": LocalJSX.EzSkeleton & JSXBase.HTMLAttributes<HTMLEzSkeletonElement>;
5669
+ "ez-sortable-list": LocalJSX.EzSortableList & JSXBase.HTMLAttributes<HTMLEzSortableListElement>;
5464
5670
  "ez-split-button": LocalJSX.EzSplitButton & JSXBase.HTMLAttributes<HTMLEzSplitButtonElement>;
5465
5671
  "ez-split-item": LocalJSX.EzSplitItem & JSXBase.HTMLAttributes<HTMLEzSplitItemElement>;
5466
5672
  "ez-split-panel": LocalJSX.EzSplitPanel & JSXBase.HTMLAttributes<HTMLEzSplitPanelElement>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sankhyalabs/ezui",
3
- "version": "0.0.0-bugfix-dev-KB-86904.0",
3
+ "version": "0.0.0-bugfix-dev-KB-92929.0",
4
4
  "description": "Biblioteca de componentes Sankhya.",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/custom-elements/index.js",
@@ -24,6 +24,7 @@
24
24
  "start": "stencil build --dev --watch --serve --force-peer-deps",
25
25
  "test": "stencil test --spec --e2e --logHeapUsage --runInBand --coverage --silent --testResultsProcessor jest-sonar-reporter",
26
26
  "test.watch": "stencil test --spec --e2e --watchAll",
27
+ "test.dev": "stencil test --spec --e2e",
27
28
  "generate": "stencil generate",
28
29
  "storybook": "npm run start.storybook",
29
30
  "build.watch": "stencil build --dev --watch --force-peer-deps",
@@ -72,6 +73,7 @@
72
73
  "@types/jest": "^26.0.20",
73
74
  "@types/puppeteer": "^5.4.2",
74
75
  "@types/uuid": "^9.0.2",
76
+ "dompurify": "^3.2.4",
75
77
  "gulp": "^4.0.2",
76
78
  "gulp-run": "^1.7.1",
77
79
  "gulp-watch": "^5.0.1",
@@ -108,5 +110,8 @@
108
110
  },
109
111
  "resolutions": {
110
112
  "postcss": "8.1.7"
113
+ },
114
+ "dependencies": {
115
+ "sortablejs": "^1.15.6"
111
116
  }
112
117
  }
@@ -46,6 +46,7 @@ export declare const EzSearchResultList: import("react").ForwardRefExoticCompone
46
46
  export declare const EzSidebarButton: import("react").ForwardRefExoticComponent<JSX.EzSidebarButton & Omit<import("react").HTMLAttributes<HTMLEzSidebarButtonElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLEzSidebarButtonElement>>;
47
47
  export declare const EzSidebarNavigator: import("react").ForwardRefExoticComponent<JSX.EzSidebarNavigator & Omit<import("react").HTMLAttributes<HTMLEzSidebarNavigatorElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLEzSidebarNavigatorElement>>;
48
48
  export declare const EzSkeleton: import("react").ForwardRefExoticComponent<JSX.EzSkeleton & Omit<import("react").HTMLAttributes<HTMLEzSkeletonElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLEzSkeletonElement>>;
49
+ export declare const EzSortableList: import("react").ForwardRefExoticComponent<JSX.EzSortableList & Omit<import("react").HTMLAttributes<HTMLEzSortableListElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLEzSortableListElement>>;
49
50
  export declare const EzSplitButton: import("react").ForwardRefExoticComponent<JSX.EzSplitButton & Omit<import("react").HTMLAttributes<HTMLEzSplitButtonElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLEzSplitButtonElement>>;
50
51
  export declare const EzSplitItem: import("react").ForwardRefExoticComponent<JSX.EzSplitItem & Omit<import("react").HTMLAttributes<HTMLEzSplitItemElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLEzSplitItemElement>>;
51
52
  export declare const EzSplitPanel: import("react").ForwardRefExoticComponent<JSX.EzSplitPanel & Omit<import("react").HTMLAttributes<HTMLEzSplitPanelElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLEzSplitPanelElement>>;
@@ -49,6 +49,7 @@ export const EzSearchResultList = /*@__PURE__*/ createReactComponent('ez-search-
49
49
  export const EzSidebarButton = /*@__PURE__*/ createReactComponent('ez-sidebar-button');
50
50
  export const EzSidebarNavigator = /*@__PURE__*/ createReactComponent('ez-sidebar-navigator');
51
51
  export const EzSkeleton = /*@__PURE__*/ createReactComponent('ez-skeleton');
52
+ export const EzSortableList = /*@__PURE__*/ createReactComponent('ez-sortable-list');
52
53
  export const EzSplitButton = /*@__PURE__*/ createReactComponent('ez-split-button');
53
54
  export const EzSplitItem = /*@__PURE__*/ createReactComponent('ez-split-item');
54
55
  export const EzSplitPanel = /*@__PURE__*/ createReactComponent('ez-split-panel');
@@ -1 +1 @@
1
- {"version":3,"file":"components.js","sourceRoot":"","sources":["../src/components.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB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AAgB,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;AAC5K,MAAM,CAAC,MAAM,UAAU,GAAG,aAAa,CAAA,oBAAoB,CAAwC,aAAa,CAAC,CAAC"}
@@ -1,129 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const index = require('./index-9e5554cb.js');
6
- const core = require('@sankhyalabs/core');
7
- const CSSVarsUtils = require('./CSSVarsUtils-f20973d1.js');
8
-
9
- const ezFilterInputCss = ":host{display:block;width:100%}";
10
-
11
- const EzFilterInput = class {
12
- constructor(hostRef) {
13
- index.registerInstance(this, hostRef);
14
- this.ezChange = index.createEvent(this, "ezChange", 7);
15
- this.ezSearching = index.createEvent(this, "ezSearching", 7);
16
- this.ezFocusIn = index.createEvent(this, "ezFocusIn", 7);
17
- this._searchingText = "";
18
- this.handleFocus = () => {
19
- if (this._searchingText === "") {
20
- this._textInput.value = "";
21
- }
22
- else {
23
- this._textInput.value = this._searchingText;
24
- }
25
- this.ezFocusIn.emit();
26
- };
27
- this.label = undefined;
28
- this.value = undefined;
29
- this.enabled = true;
30
- this.errorMessage = undefined;
31
- this.restrict = undefined;
32
- this.mode = "regular";
33
- this.asyncSearch = false;
34
- this.canShowError = true;
35
- this.autoFocus = false;
36
- }
37
- observeLabel() {
38
- if (this._textInput) {
39
- this._textInput.label = this.label;
40
- }
41
- }
42
- observeErrorMessage() {
43
- if (this._textInput) {
44
- this._textInput.errorMessage = this.errorMessage;
45
- }
46
- }
47
- observeValue(newValue, oldValue) {
48
- if (this._textInput && newValue != oldValue) {
49
- this._textInput.value = newValue;
50
- this.ezChange.emit(newValue);
51
- }
52
- }
53
- /**
54
- * Aplica o foco no campo.
55
- */
56
- async setFocus(options) {
57
- this._textInput.setFocus(options);
58
- }
59
- /**
60
- * Remove o foco do campo.
61
- */
62
- async setBlur() {
63
- this._textInput.setBlur();
64
- }
65
- /**
66
- * Retorna se o conteúdo é inválido.
67
- */
68
- async isInvalid() {
69
- return typeof this.errorMessage === "string" && this.errorMessage.trim() !== "";
70
- }
71
- /**
72
- * Método responsável por setar um novo valor ao campo.
73
- */
74
- async setValue(newValue) {
75
- if (!this.asyncSearch || this._textInput == undefined) {
76
- return;
77
- }
78
- if (newValue !== this.value) {
79
- this.value = newValue;
80
- this._searchingText = "";
81
- }
82
- else {
83
- this._textInput.value = newValue;
84
- }
85
- }
86
- /**
87
- * Método responsável por resetar o valor do campo para o ultimo valor inputado.
88
- */
89
- async endSearch() {
90
- if (!this.asyncSearch || this._textInput == undefined) {
91
- return;
92
- }
93
- if (this._textInput.value !== this.value) {
94
- this._textInput.value = this.value;
95
- }
96
- }
97
- handleChange(evt) {
98
- const newValue = evt.detail;
99
- this.errorMessage = "";
100
- if (this.asyncSearch) {
101
- this._searchingText = newValue;
102
- this.ezSearching.emit(newValue);
103
- }
104
- else if (newValue !== this.value) {
105
- this.value = newValue;
106
- }
107
- }
108
- componentDidLoad() {
109
- CSSVarsUtils.CSSVarsUtils.applyVarsTextInput(this._elem, this._textInput);
110
- if (this.autoFocus) {
111
- requestAnimationFrame(() => {
112
- this.setFocus({ selectText: true });
113
- });
114
- }
115
- }
116
- render() {
117
- core.ElementIDUtils.addIDInfoIfNotExists(this._elem, 'input');
118
- return (index.h("ez-text-input", { "data-element-id": core.ElementIDUtils.getInternalIDInfo("textInput"), ref: elem => this._textInput = elem, label: this.label, onEzChange: evt => this.handleChange(evt), value: this.value, enabled: this.enabled, errorMessage: this.errorMessage, restrict: this.restrict, mode: this.mode, onFocusin: this.handleFocus, canShowError: this.canShowError }, index.h("ez-icon", { slot: "leftIcon", iconName: "search" })));
119
- }
120
- get _elem() { return index.getElement(this); }
121
- static get watchers() { return {
122
- "label": ["observeLabel"],
123
- "errorMessage": ["observeErrorMessage"],
124
- "value": ["observeValue"]
125
- }; }
126
- };
127
- EzFilterInput.style = ezFilterInputCss;
128
-
129
- exports.ez_filter_input = EzFilterInput;