@sankhyalabs/ezui 0.0.0-bugfix-dev-KB-08202.0 → 0.0.0-bugfix-dev-KB-6165.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 (59) hide show
  1. package/README.md +10 -8
  2. package/dist/cjs/ez-combo-box.cjs.entry.js +3 -11
  3. package/dist/cjs/ez-form-view.cjs.entry.js +1 -37
  4. package/dist/cjs/ez-form.cjs.entry.js +1 -2
  5. package/dist/cjs/ez-grid.cjs.entry.js +38 -87
  6. package/dist/cjs/ez-multi-selection-list.cjs.entry.js +1 -3
  7. package/dist/cjs/ez-search.cjs.entry.js +1 -3
  8. package/dist/cjs/ezui.cjs.js +1 -1
  9. package/dist/cjs/filter-column.cjs.entry.js +7 -30
  10. package/dist/cjs/loader.cjs.js +1 -1
  11. package/dist/collection/components/ez-combo-box/ez-combo-box.js +3 -47
  12. package/dist/collection/components/ez-form/ez-form.js +0 -20
  13. package/dist/collection/components/ez-form-view/ez-form-view.js +0 -23
  14. package/dist/collection/components/ez-form-view/fieldbuilder/FieldBuilder.js +1 -4
  15. package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +1 -1
  16. package/dist/collection/components/ez-grid/controller/ag-grid/components/EzGridCustomHeader.js +1 -1
  17. package/dist/collection/components/ez-grid/ez-grid.js +39 -11
  18. package/dist/collection/components/ez-grid/subcomponents/filter-column.js +8 -50
  19. package/dist/collection/components/ez-multi-selection-list/ez-multi-selection-list.js +1 -21
  20. package/dist/collection/components/ez-search/ez-search.js +1 -39
  21. package/dist/collection/utils/form/DataBinder.js +1 -1
  22. package/dist/custom-elements/index.js +57 -178
  23. package/dist/esm/ez-combo-box.entry.js +3 -11
  24. package/dist/esm/ez-form-view.entry.js +1 -37
  25. package/dist/esm/ez-form.entry.js +1 -2
  26. package/dist/esm/ez-grid.entry.js +39 -88
  27. package/dist/esm/ez-multi-selection-list.entry.js +1 -3
  28. package/dist/esm/ez-search.entry.js +1 -3
  29. package/dist/esm/ezui.js +1 -1
  30. package/dist/esm/filter-column.entry.js +7 -30
  31. package/dist/esm/loader.js +1 -1
  32. package/dist/ezui/ezui.esm.js +1 -1
  33. package/dist/ezui/p-2a0e1679.entry.js +1 -0
  34. package/dist/ezui/p-4535da17.entry.js +1 -0
  35. package/dist/ezui/p-4c8b029b.entry.js +1 -0
  36. package/dist/ezui/p-4e31b69b.entry.js +1 -0
  37. package/dist/ezui/p-5495fa45.entry.js +1 -0
  38. package/dist/ezui/p-90fa4cb3.entry.js +1 -0
  39. package/dist/ezui/{p-964e5571.entry.js → p-fd54b5b4.entry.js} +2 -2
  40. package/dist/types/components/ez-combo-box/ez-combo-box.d.ts +0 -9
  41. package/dist/types/components/ez-form/ez-form.d.ts +0 -5
  42. package/dist/types/components/ez-form-view/ez-form-view.d.ts +0 -5
  43. package/dist/types/components/ez-grid/controller/ag-grid/components/EzGridCustomHeader.d.ts +1 -1
  44. package/dist/types/components/ez-grid/ez-grid.d.ts +5 -3
  45. package/dist/types/components/ez-grid/subcomponents/filter-column.d.ts +0 -8
  46. package/dist/types/components/ez-multi-selection-list/ez-multi-selection-list.d.ts +0 -4
  47. package/dist/types/components/ez-search/ez-search.d.ts +0 -8
  48. package/dist/types/components.d.ts +0 -51
  49. package/package.json +2 -2
  50. package/dist/collection/components/ez-form-view/structure/index.js +0 -29
  51. package/dist/collection/components/ez-grid/utils/InMemoryFilterColumnDataSource.js +0 -78
  52. package/dist/ezui/p-061f4d73.entry.js +0 -1
  53. package/dist/ezui/p-25562cf8.entry.js +0 -1
  54. package/dist/ezui/p-5e55a42b.entry.js +0 -1
  55. package/dist/ezui/p-6ab2f7c2.entry.js +0 -1
  56. package/dist/ezui/p-7526f2b6.entry.js +0 -1
  57. package/dist/ezui/p-8fdff9cd.entry.js +0 -1
  58. package/dist/types/components/ez-form-view/structure/index.d.ts +0 -14
  59. package/dist/types/components/ez-grid/utils/InMemoryFilterColumnDataSource.d.ts +0 -16
@@ -14,7 +14,7 @@ const patchEsm = () => {
14
14
  const defineCustomElements = (win, options) => {
15
15
  if (typeof window === 'undefined') return Promise.resolve();
16
16
  return patchEsm().then(() => {
17
- return index.bootstrapLazy(JSON.parse("[[\"ez-grid.cjs\",[[6,\"ez-grid\",{\"multipleSelection\":[4,\"multiple-selection\"],\"config\":[1040],\"selectionToastConfig\":[16],\"serverUrl\":[1,\"server-url\"],\"dataUnit\":[16],\"statusResolver\":[16],\"columnfilterDataSource\":[16],\"useEnterLikeTab\":[4,\"use-enter-like-tab\"],\"recordsValidator\":[16],\"canEdit\":[4,\"can-edit\"],\"_paginationInfo\":[32],\"_paginationChangedByKeyboard\":[32],\"_showSelectionCounter\":[32],\"_isAllSelection\":[32],\"_currentPageSelected\":[32],\"_selectionCount\":[32],\"_hasLeftButtons\":[32],\"setColumnsDef\":[64],\"addColumnMenuItem\":[64],\"setColumnsState\":[64],\"setData\":[64],\"getSelection\":[64],\"getColumnsState\":[64],\"getColumns\":[64],\"quickFilter\":[64]},[[0,\"ezSelectionChange\",\"onSelectionChange\"]]]]],[\"ez-guide-navigator.cjs\",[[1,\"ez-guide-navigator\",{\"open\":[1540],\"selectedId\":[1537,\"selected-id\"],\"items\":[16],\"tooltipResolver\":[16],\"filterText\":[32],\"disableItem\":[64],\"enableItem\":[64],\"updateItem\":[64],\"getItem\":[64],\"getCurrentPath\":[64],\"selectGuide\":[64],\"getParent\":[64]}]]],[\"ez-actions-button.cjs\",[[1,\"ez-actions-button\",{\"enabled\":[516],\"actions\":[1040],\"size\":[513],\"showLabel\":[516,\"show-label\"],\"displayIcon\":[513,\"display-icon\"],\"checkOption\":[516,\"check-option\"],\"value\":[513],\"isTransparent\":[516,\"is-transparent\"],\"arrowActive\":[516,\"arrow-active\"],\"_selectedAction\":[32],\"hideActions\":[64],\"isOpened\":[64]}]]],[\"ez-breadcrumb.cjs\",[[1,\"ez-breadcrumb\",{\"items\":[1040],\"fillMode\":[1025,\"fill-mode\"],\"maxItems\":[1026,\"max-items\"],\"positionEllipsis\":[1026,\"position-ellipsis\"],\"visibleItems\":[32],\"hiddenItems\":[32],\"showDropdown\":[32],\"collapseConfigPosition\":[32]}]]],[\"ez-dialog.cjs\",[[1,\"ez-dialog\",{\"confirm\":[1028],\"dialogType\":[1025,\"dialog-type\"],\"message\":[1025],\"opened\":[1540],\"personalizedIconPath\":[1025,\"personalized-icon-path\"],\"ezTitle\":[1025,\"ez-title\"],\"beforeClose\":[1040],\"show\":[64]}]]],[\"ez-modal-container.cjs\",[[6,\"ez-modal-container\",{\"modalTitle\":[1,\"modal-title\"],\"modalSubTitle\":[1,\"modal-sub-title\"],\"showTitleBar\":[4,\"show-title-bar\"],\"cancelButtonLabel\":[1,\"cancel-button-label\"],\"okButtonLabel\":[1,\"ok-button-label\"],\"cancelButtonStatus\":[1,\"cancel-button-status\"],\"okButtonStatus\":[1,\"ok-button-status\"]}]]],[\"ez-alert.cjs\",[[1,\"ez-alert\",{\"alertType\":[513,\"alert-type\"]}]]],[\"ez-badge.cjs\",[[1,\"ez-badge\",{\"size\":[513],\"label\":[513],\"iconLeft\":[513,\"icon-left\"],\"iconRight\":[513,\"icon-right\"],\"position\":[1040],\"hasSlot\":[32]}]]],[\"ez-chip.cjs\",[[1,\"ez-chip\",{\"label\":[513],\"enabled\":[516],\"removePosition\":[513,\"remove-position\"],\"mode\":[513],\"value\":[1540],\"showNativeTooltip\":[4,\"show-native-tooltip\"],\"setFocus\":[64],\"setBlur\":[64]}]]],[\"ez-file-item.cjs\",[[1,\"ez-file-item\",{\"canRemove\":[4,\"can-remove\"],\"fileName\":[1,\"file-name\"],\"iconName\":[1,\"icon-name\"],\"fileSize\":[2,\"file-size\"],\"progress\":[2]}]]],[\"ez-application.cjs\",[[0,\"ez-application\"]]],[\"ez-card-item.cjs\",[[1,\"ez-card-item\",{\"item\":[16]}]]],[\"ez-loading-bar.cjs\",[[1,\"ez-loading-bar\",{\"_showLoading\":[32],\"hide\":[64],\"show\":[64]}]]],[\"ez-modal.cjs\",[[1,\"ez-modal\",{\"modalSize\":[1,\"modal-size\"],\"align\":[1],\"heightMode\":[1,\"height-mode\"],\"opened\":[1028],\"closeEsc\":[4,\"close-esc\"],\"closeOutsideClick\":[4,\"close-outside-click\"],\"scrim\":[1]}]]],[\"ez-popup.cjs\",[[1,\"ez-popup\",{\"size\":[1],\"opened\":[1540],\"useHeader\":[516,\"use-header\"],\"heightMode\":[513,\"height-mode\"],\"ezTitle\":[1,\"ez-title\"]}]]],[\"ez-radio-button.cjs\",[[1,\"ez-radio-button\",{\"value\":[1544],\"options\":[1040],\"enabled\":[516],\"label\":[513],\"direction\":[1537]}]]],[\"ez-skeleton.cjs\",[[0,\"ez-skeleton\",{\"count\":[2],\"variant\":[1],\"width\":[1],\"height\":[1],\"marginBottom\":[1,\"margin-bottom\"],\"animation\":[1]}]]],[\"ez-toast.cjs\",[[1,\"ez-toast\",{\"message\":[1025],\"fadeTime\":[1026,\"fade-time\"],\"useIcon\":[1028,\"use-icon\"],\"canClose\":[1028,\"can-close\"],\"show\":[64]}]]],[\"ez-view-stack.cjs\",[[0,\"ez-view-stack\",{\"show\":[64],\"getSelectedIndex\":[64]}]]],[\"ez-form-view.cjs\",[[2,\"ez-form-view\",{\"fields\":[16],\"showUp\":[64]}]]],[\"ez-filter-input_2.cjs\",[[0,\"multi-selection-box-message\",{\"message\":[1]}],[1,\"ez-filter-input\",{\"label\":[1],\"value\":[1537],\"enabled\":[4],\"errorMessage\":[1537,\"error-message\"],\"restrict\":[1],\"mode\":[513],\"asyncSearch\":[516,\"async-search\"],\"canShowError\":[516,\"can-show-error\"],\"setFocus\":[64],\"setBlur\":[64],\"isInvalid\":[64],\"setValue\":[64],\"endSearch\":[64]}]]],[\"ez-multi-selection-list.cjs\",[[2,\"ez-multi-selection-list\",{\"columnName\":[1,\"column-name\"],\"dataSource\":[16],\"useOptions\":[1028,\"use-options\"],\"options\":[16],\"isTextSearch\":[4,\"is-text-search\"],\"filteredOptions\":[32],\"displayOptions\":[32],\"viewScenario\":[32],\"displayOptionToCheckAllItems\":[32],\"clearFilteredOptions\":[64]}]]],[\"filter-column.cjs\",[[0,\"filter-column\",{\"opened\":[4],\"columnName\":[1,\"column-name\"],\"columnLabel\":[1,\"column-label\"],\"gridHeaderHidden\":[4,\"grid-header-hidden\"],\"noHeaderTaskBar\":[1028,\"no-header-task-bar\"],\"dataSource\":[16],\"dataUnit\":[16],\"options\":[1040],\"selectedItems\":[32],\"fieldDescriptor\":[32],\"useOptions\":[32],\"isTextSearch\":[32],\"hide\":[64],\"show\":[64]}]]],[\"ez-dropdown.cjs\",[[1,\"ez-dropdown\",{\"items\":[1040],\"value\":[1040],\"itemBuilder\":[16]}]]],[\"ez-tabselector.cjs\",[[1,\"ez-tabselector\",{\"selectedIndex\":[1538,\"selected-index\"],\"selectedTab\":[1537,\"selected-tab\"],\"tabs\":[1],\"_processedTabs\":[32]}]]],[\"ez-collapsible-box.cjs\",[[1,\"ez-collapsible-box\",{\"value\":[1540],\"boxBordered\":[4,\"box-bordered\"],\"label\":[513],\"subtitle\":[513],\"headerSize\":[513,\"header-size\"],\"iconPlacement\":[513,\"icon-placement\"],\"headerAlign\":[513,\"header-align\"],\"removable\":[516],\"editable\":[516],\"conditionalSave\":[16],\"_activeEditText\":[32],\"showHide\":[64],\"applyFocusTextEdit\":[64],\"cancelEdition\":[64]}]]],[\"ez-calendar.cjs\",[[1,\"ez-calendar\",{\"value\":[1040],\"floating\":[516],\"time\":[516],\"showSeconds\":[516,\"show-seconds\"],\"show\":[64],\"fitVertical\":[64],\"fitHorizontal\":[64],\"hide\":[64]},[[11,\"scroll\",\"scrollListener\"]]]]],[\"ez-text-input.cjs\",[[1,\"ez-text-input\",{\"label\":[513],\"value\":[1537],\"enabled\":[516],\"errorMessage\":[1537,\"error-message\"],\"mask\":[1],\"canShowError\":[516,\"can-show-error\"],\"restrict\":[1],\"mode\":[513],\"noBorder\":[516,\"no-border\"],\"setFocus\":[64],\"setBlur\":[64],\"isInvalid\":[64]}]]],[\"ez-date-input.cjs\",[[1,\"ez-date-input\",{\"label\":[513],\"value\":[1040],\"enabled\":[516],\"errorMessage\":[1537,\"error-message\"],\"mode\":[513],\"canShowError\":[516,\"can-show-error\"],\"setFocus\":[64],\"setBlur\":[64],\"isInvalid\":[64],\"getValueAsync\":[64]}]]],[\"ez-date-time-input.cjs\",[[1,\"ez-date-time-input\",{\"label\":[513],\"value\":[1040],\"enabled\":[516],\"errorMessage\":[1537,\"error-message\"],\"showSeconds\":[516,\"show-seconds\"],\"mode\":[513],\"canShowError\":[516,\"can-show-error\"],\"setFocus\":[64],\"setBlur\":[64],\"isInvalid\":[64],\"getValueAsync\":[64]}]]],[\"ez-time-input.cjs\",[[1,\"ez-time-input\",{\"label\":[513],\"value\":[1026],\"enabled\":[516],\"errorMessage\":[1537,\"error-message\"],\"showSeconds\":[516,\"show-seconds\"],\"mode\":[513],\"canShowError\":[516,\"can-show-error\"],\"setFocus\":[64],\"setBlur\":[64],\"isInvalid\":[64]}]]],[\"ez-number-input.cjs\",[[1,\"ez-number-input\",{\"label\":[1],\"value\":[1538],\"enabled\":[4],\"canShowError\":[516,\"can-show-error\"],\"errorMessage\":[1537,\"error-message\"],\"precision\":[2],\"prettyPrecision\":[2,\"pretty-precision\"],\"mode\":[513],\"setFocus\":[64],\"setBlur\":[64],\"isInvalid\":[64],\"getValueAsync\":[64]}]]],[\"ez-popover.cjs\",[[1,\"ez-popover\",{\"autoClose\":[516,\"auto-close\"],\"boxWidth\":[513,\"box-width\"],\"opened\":[1540],\"innerElement\":[1537,\"inner-element\"],\"overlayType\":[513,\"overlay-type\"],\"updatePosition\":[64],\"show\":[64],\"showUnder\":[64],\"hide\":[64]}]]],[\"ez-text-area.cjs\",[[1,\"ez-text-area\",{\"label\":[513],\"value\":[1537],\"enabled\":[516],\"errorMessage\":[1537,\"error-message\"],\"rows\":[1538],\"canShowError\":[516,\"can-show-error\"],\"mode\":[513],\"enableResize\":[516,\"enable-resize\"],\"appendTextToSelection\":[64],\"setFocus\":[64],\"setBlur\":[64],\"isInvalid\":[64]}]]],[\"ez-upload.cjs\",[[1,\"ez-upload\",{\"label\":[1],\"subtitle\":[1],\"enabled\":[4],\"maxFileSize\":[2,\"max-file-size\"],\"maxFiles\":[2,\"max-files\"],\"requestHeaders\":[8,\"request-headers\"],\"urlUpload\":[1,\"url-upload\"],\"urlDelete\":[1,\"url-delete\"],\"value\":[1040],\"addFiles\":[64],\"setFocus\":[64],\"setBlur\":[64]}]]],[\"ez-text-edit.cjs\",[[1,\"ez-text-edit\",{\"value\":[1],\"styled\":[16],\"_newValue\":[32],\"applyFocusSelect\":[64]}]]],[\"ez-scroller_3.cjs\",[[1,\"ez-tree\",{\"items\":[1040],\"value\":[1040],\"selectedId\":[1537,\"selected-id\"],\"iconResolver\":[16],\"tooltipResolver\":[16],\"_tree\":[32],\"_waintingForLoad\":[32],\"selectItem\":[64],\"openItem\":[64],\"disableItem\":[64],\"enableItem\":[64],\"addChild\":[64],\"applyFilter\":[64],\"updateItem\":[64],\"getItem\":[64],\"getCurrentPath\":[64],\"getParent\":[64]},[[2,\"keydown\",\"onKeyDownListener\"]]],[1,\"ez-scroller\",{\"direction\":[1],\"locked\":[4],\"activeShadow\":[4,\"active-shadow\"],\"isActive\":[32]},[[2,\"click\",\"clickListener\"],[1,\"mousedown\",\"mouseDownHandler\"],[1,\"mouseup\",\"mouseUpHandler\"],[1,\"mousemove\",\"mouseMoveHandler\"]]],[1,\"ez-sidebar-button\"]]],[\"ez-list.cjs\",[[1,\"ez-list\",{\"dataSource\":[1040],\"listMode\":[1,\"list-mode\"],\"useGroups\":[1540,\"use-groups\"],\"ezDraggable\":[1028,\"ez-draggable\"],\"ezSelectable\":[1028,\"ez-selectable\"],\"itemSlotBuilder\":[1040],\"itemLeftSlotBuilder\":[1040],\"hoverFeedback\":[1028,\"hover-feedback\"],\"_listItems\":[32],\"_listGroupItems\":[32],\"clearHistory\":[64],\"scrollToTop\":[64],\"setSelection\":[64],\"getSelection\":[64],\"getList\":[64],\"removeSelection\":[64]}]]],[\"ez-combo-box.cjs\",[[1,\"ez-combo-box\",{\"value\":[1537],\"label\":[513],\"enabled\":[516],\"options\":[1040],\"errorMessage\":[1537,\"error-message\"],\"searchMode\":[4,\"search-mode\"],\"showSelectedValue\":[4,\"show-selected-value\"],\"showOptionValue\":[4,\"show-option-value\"],\"suppressSearch\":[4,\"suppress-search\"],\"optionLoader\":[16],\"suppressEmptyOption\":[4,\"suppress-empty-option\"],\"canShowError\":[516,\"can-show-error\"],\"mode\":[513],\"hideErrorOnFocusOut\":[4,\"hide-error-on-focus-out\"],\"listOptionsPosition\":[16],\"isTextSearch\":[4,\"is-text-search\"],\"_preSelection\":[32],\"_visibleOptions\":[32],\"_startLoading\":[32],\"_showLoading\":[32],\"_criteria\":[32],\"getValueAsync\":[64],\"setFocus\":[64],\"setBlur\":[64],\"isInvalid\":[64],\"clearValue\":[64]},[[11,\"scroll\",\"scrollListener\"]]]]],[\"ez-search.cjs\",[[1,\"ez-search\",{\"value\":[1537],\"label\":[1537],\"enabled\":[1540],\"errorMessage\":[1537,\"error-message\"],\"optionLoader\":[16],\"showSelectedValue\":[4,\"show-selected-value\"],\"showOptionValue\":[4,\"show-option-value\"],\"suppressEmptyOption\":[4,\"suppress-empty-option\"],\"mode\":[513],\"canShowError\":[516,\"can-show-error\"],\"hideErrorOnFocusOut\":[4,\"hide-error-on-focus-out\"],\"listOptionsPosition\":[16],\"isTextSearch\":[4,\"is-text-search\"],\"setFocus\":[64],\"setBlur\":[64],\"isInvalid\":[64],\"clearValue\":[64],\"getValueAsync\":[64]}]]],[\"ez-check.cjs\",[[1,\"ez-check\",{\"label\":[513],\"value\":[1540],\"enabled\":[1540],\"indeterminate\":[1540],\"mode\":[513],\"compact\":[4],\"getMode\":[64],\"setFocus\":[64]}]]],[\"ez-icon.cjs\",[[1,\"ez-icon\",{\"size\":[513],\"href\":[513],\"iconName\":[513,\"icon-name\"]}]]],[\"ez-button.cjs\",[[1,\"ez-button\",{\"label\":[513],\"enabled\":[516],\"mode\":[513],\"image\":[513],\"iconName\":[513,\"icon-name\"],\"size\":[513],\"setFocus\":[64],\"setBlur\":[64]},[[2,\"click\",\"clickListener\"]]]]],[\"ez-form.cjs\",[[2,\"ez-form\",{\"dataUnit\":[1040],\"config\":[16],\"recordsValidator\":[16],\"validate\":[64]}]]]]"), options);
17
+ return index.bootstrapLazy(JSON.parse("[[\"ez-grid.cjs\",[[6,\"ez-grid\",{\"multipleSelection\":[4,\"multiple-selection\"],\"config\":[1040],\"selectionToastConfig\":[16],\"serverUrl\":[1,\"server-url\"],\"dataUnit\":[16],\"statusResolver\":[16],\"columnfilterDataSource\":[16],\"useEnterLikeTab\":[4,\"use-enter-like-tab\"],\"recordsValidator\":[16],\"canEdit\":[4,\"can-edit\"],\"_paginationInfo\":[32],\"_paginationChangedByKeyboard\":[32],\"_showSelectionCounter\":[32],\"_isAllSelection\":[32],\"_currentPageSelected\":[32],\"_selectionCount\":[32],\"_originalRecords\":[32],\"setColumnsDef\":[64],\"addColumnMenuItem\":[64],\"setColumnsState\":[64],\"setData\":[64],\"getSelection\":[64],\"getColumnsState\":[64],\"getColumns\":[64],\"quickFilter\":[64]},[[0,\"ezSelectionChange\",\"onSelectionChange\"]]]]],[\"ez-guide-navigator.cjs\",[[1,\"ez-guide-navigator\",{\"open\":[1540],\"selectedId\":[1537,\"selected-id\"],\"items\":[16],\"tooltipResolver\":[16],\"filterText\":[32],\"disableItem\":[64],\"enableItem\":[64],\"updateItem\":[64],\"getItem\":[64],\"getCurrentPath\":[64],\"selectGuide\":[64],\"getParent\":[64]}]]],[\"ez-actions-button.cjs\",[[1,\"ez-actions-button\",{\"enabled\":[516],\"actions\":[1040],\"size\":[513],\"showLabel\":[516,\"show-label\"],\"displayIcon\":[513,\"display-icon\"],\"checkOption\":[516,\"check-option\"],\"value\":[513],\"isTransparent\":[516,\"is-transparent\"],\"arrowActive\":[516,\"arrow-active\"],\"_selectedAction\":[32],\"hideActions\":[64],\"isOpened\":[64]}]]],[\"ez-breadcrumb.cjs\",[[1,\"ez-breadcrumb\",{\"items\":[1040],\"fillMode\":[1025,\"fill-mode\"],\"maxItems\":[1026,\"max-items\"],\"positionEllipsis\":[1026,\"position-ellipsis\"],\"visibleItems\":[32],\"hiddenItems\":[32],\"showDropdown\":[32],\"collapseConfigPosition\":[32]}]]],[\"ez-dialog.cjs\",[[1,\"ez-dialog\",{\"confirm\":[1028],\"dialogType\":[1025,\"dialog-type\"],\"message\":[1025],\"opened\":[1540],\"personalizedIconPath\":[1025,\"personalized-icon-path\"],\"ezTitle\":[1025,\"ez-title\"],\"beforeClose\":[1040],\"show\":[64]}]]],[\"ez-modal-container.cjs\",[[6,\"ez-modal-container\",{\"modalTitle\":[1,\"modal-title\"],\"modalSubTitle\":[1,\"modal-sub-title\"],\"showTitleBar\":[4,\"show-title-bar\"],\"cancelButtonLabel\":[1,\"cancel-button-label\"],\"okButtonLabel\":[1,\"ok-button-label\"],\"cancelButtonStatus\":[1,\"cancel-button-status\"],\"okButtonStatus\":[1,\"ok-button-status\"]}]]],[\"ez-alert.cjs\",[[1,\"ez-alert\",{\"alertType\":[513,\"alert-type\"]}]]],[\"ez-badge.cjs\",[[1,\"ez-badge\",{\"size\":[513],\"label\":[513],\"iconLeft\":[513,\"icon-left\"],\"iconRight\":[513,\"icon-right\"],\"position\":[1040],\"hasSlot\":[32]}]]],[\"ez-chip.cjs\",[[1,\"ez-chip\",{\"label\":[513],\"enabled\":[516],\"removePosition\":[513,\"remove-position\"],\"mode\":[513],\"value\":[1540],\"showNativeTooltip\":[4,\"show-native-tooltip\"],\"setFocus\":[64],\"setBlur\":[64]}]]],[\"ez-file-item.cjs\",[[1,\"ez-file-item\",{\"canRemove\":[4,\"can-remove\"],\"fileName\":[1,\"file-name\"],\"iconName\":[1,\"icon-name\"],\"fileSize\":[2,\"file-size\"],\"progress\":[2]}]]],[\"ez-application.cjs\",[[0,\"ez-application\"]]],[\"ez-card-item.cjs\",[[1,\"ez-card-item\",{\"item\":[16]}]]],[\"ez-loading-bar.cjs\",[[1,\"ez-loading-bar\",{\"_showLoading\":[32],\"hide\":[64],\"show\":[64]}]]],[\"ez-modal.cjs\",[[1,\"ez-modal\",{\"modalSize\":[1,\"modal-size\"],\"align\":[1],\"heightMode\":[1,\"height-mode\"],\"opened\":[1028],\"closeEsc\":[4,\"close-esc\"],\"closeOutsideClick\":[4,\"close-outside-click\"],\"scrim\":[1]}]]],[\"ez-popup.cjs\",[[1,\"ez-popup\",{\"size\":[1],\"opened\":[1540],\"useHeader\":[516,\"use-header\"],\"heightMode\":[513,\"height-mode\"],\"ezTitle\":[1,\"ez-title\"]}]]],[\"ez-radio-button.cjs\",[[1,\"ez-radio-button\",{\"value\":[1544],\"options\":[1040],\"enabled\":[516],\"label\":[513],\"direction\":[1537]}]]],[\"ez-skeleton.cjs\",[[0,\"ez-skeleton\",{\"count\":[2],\"variant\":[1],\"width\":[1],\"height\":[1],\"marginBottom\":[1,\"margin-bottom\"],\"animation\":[1]}]]],[\"ez-toast.cjs\",[[1,\"ez-toast\",{\"message\":[1025],\"fadeTime\":[1026,\"fade-time\"],\"useIcon\":[1028,\"use-icon\"],\"canClose\":[1028,\"can-close\"],\"show\":[64]}]]],[\"ez-view-stack.cjs\",[[0,\"ez-view-stack\",{\"show\":[64],\"getSelectedIndex\":[64]}]]],[\"ez-form-view.cjs\",[[2,\"ez-form-view\",{\"fields\":[16],\"showUp\":[64]}]]],[\"ez-filter-input_2.cjs\",[[0,\"multi-selection-box-message\",{\"message\":[1]}],[1,\"ez-filter-input\",{\"label\":[1],\"value\":[1537],\"enabled\":[4],\"errorMessage\":[1537,\"error-message\"],\"restrict\":[1],\"mode\":[513],\"asyncSearch\":[516,\"async-search\"],\"canShowError\":[516,\"can-show-error\"],\"setFocus\":[64],\"setBlur\":[64],\"isInvalid\":[64],\"setValue\":[64],\"endSearch\":[64]}]]],[\"ez-multi-selection-list.cjs\",[[2,\"ez-multi-selection-list\",{\"columnName\":[1,\"column-name\"],\"dataSource\":[16],\"useOptions\":[1028,\"use-options\"],\"options\":[16],\"filteredOptions\":[32],\"displayOptions\":[32],\"viewScenario\":[32],\"displayOptionToCheckAllItems\":[32],\"clearFilteredOptions\":[64]}]]],[\"filter-column.cjs\",[[0,\"filter-column\",{\"opened\":[4],\"columnName\":[1,\"column-name\"],\"columnLabel\":[1,\"column-label\"],\"gridHeaderHidden\":[4,\"grid-header-hidden\"],\"dataSource\":[16],\"dataUnit\":[16],\"options\":[1040],\"selectedItems\":[32],\"fieldDescriptor\":[32],\"useOptions\":[32],\"hide\":[64],\"show\":[64]}]]],[\"ez-dropdown.cjs\",[[1,\"ez-dropdown\",{\"items\":[1040],\"value\":[1040],\"itemBuilder\":[16]}]]],[\"ez-tabselector.cjs\",[[1,\"ez-tabselector\",{\"selectedIndex\":[1538,\"selected-index\"],\"selectedTab\":[1537,\"selected-tab\"],\"tabs\":[1],\"_processedTabs\":[32]}]]],[\"ez-collapsible-box.cjs\",[[1,\"ez-collapsible-box\",{\"value\":[1540],\"boxBordered\":[4,\"box-bordered\"],\"label\":[513],\"subtitle\":[513],\"headerSize\":[513,\"header-size\"],\"iconPlacement\":[513,\"icon-placement\"],\"headerAlign\":[513,\"header-align\"],\"removable\":[516],\"editable\":[516],\"conditionalSave\":[16],\"_activeEditText\":[32],\"showHide\":[64],\"applyFocusTextEdit\":[64],\"cancelEdition\":[64]}]]],[\"ez-calendar.cjs\",[[1,\"ez-calendar\",{\"value\":[1040],\"floating\":[516],\"time\":[516],\"showSeconds\":[516,\"show-seconds\"],\"show\":[64],\"fitVertical\":[64],\"fitHorizontal\":[64],\"hide\":[64]},[[11,\"scroll\",\"scrollListener\"]]]]],[\"ez-text-input.cjs\",[[1,\"ez-text-input\",{\"label\":[513],\"value\":[1537],\"enabled\":[516],\"errorMessage\":[1537,\"error-message\"],\"mask\":[1],\"canShowError\":[516,\"can-show-error\"],\"restrict\":[1],\"mode\":[513],\"noBorder\":[516,\"no-border\"],\"setFocus\":[64],\"setBlur\":[64],\"isInvalid\":[64]}]]],[\"ez-date-input.cjs\",[[1,\"ez-date-input\",{\"label\":[513],\"value\":[1040],\"enabled\":[516],\"errorMessage\":[1537,\"error-message\"],\"mode\":[513],\"canShowError\":[516,\"can-show-error\"],\"setFocus\":[64],\"setBlur\":[64],\"isInvalid\":[64],\"getValueAsync\":[64]}]]],[\"ez-date-time-input.cjs\",[[1,\"ez-date-time-input\",{\"label\":[513],\"value\":[1040],\"enabled\":[516],\"errorMessage\":[1537,\"error-message\"],\"showSeconds\":[516,\"show-seconds\"],\"mode\":[513],\"canShowError\":[516,\"can-show-error\"],\"setFocus\":[64],\"setBlur\":[64],\"isInvalid\":[64],\"getValueAsync\":[64]}]]],[\"ez-time-input.cjs\",[[1,\"ez-time-input\",{\"label\":[513],\"value\":[1026],\"enabled\":[516],\"errorMessage\":[1537,\"error-message\"],\"showSeconds\":[516,\"show-seconds\"],\"mode\":[513],\"canShowError\":[516,\"can-show-error\"],\"setFocus\":[64],\"setBlur\":[64],\"isInvalid\":[64]}]]],[\"ez-number-input.cjs\",[[1,\"ez-number-input\",{\"label\":[1],\"value\":[1538],\"enabled\":[4],\"canShowError\":[516,\"can-show-error\"],\"errorMessage\":[1537,\"error-message\"],\"precision\":[2],\"prettyPrecision\":[2,\"pretty-precision\"],\"mode\":[513],\"setFocus\":[64],\"setBlur\":[64],\"isInvalid\":[64],\"getValueAsync\":[64]}]]],[\"ez-popover.cjs\",[[1,\"ez-popover\",{\"autoClose\":[516,\"auto-close\"],\"boxWidth\":[513,\"box-width\"],\"opened\":[1540],\"innerElement\":[1537,\"inner-element\"],\"overlayType\":[513,\"overlay-type\"],\"updatePosition\":[64],\"show\":[64],\"showUnder\":[64],\"hide\":[64]}]]],[\"ez-text-area.cjs\",[[1,\"ez-text-area\",{\"label\":[513],\"value\":[1537],\"enabled\":[516],\"errorMessage\":[1537,\"error-message\"],\"rows\":[1538],\"canShowError\":[516,\"can-show-error\"],\"mode\":[513],\"enableResize\":[516,\"enable-resize\"],\"appendTextToSelection\":[64],\"setFocus\":[64],\"setBlur\":[64],\"isInvalid\":[64]}]]],[\"ez-upload.cjs\",[[1,\"ez-upload\",{\"label\":[1],\"subtitle\":[1],\"enabled\":[4],\"maxFileSize\":[2,\"max-file-size\"],\"maxFiles\":[2,\"max-files\"],\"requestHeaders\":[8,\"request-headers\"],\"urlUpload\":[1,\"url-upload\"],\"urlDelete\":[1,\"url-delete\"],\"value\":[1040],\"addFiles\":[64],\"setFocus\":[64],\"setBlur\":[64]}]]],[\"ez-text-edit.cjs\",[[1,\"ez-text-edit\",{\"value\":[1],\"styled\":[16],\"_newValue\":[32],\"applyFocusSelect\":[64]}]]],[\"ez-scroller_3.cjs\",[[1,\"ez-tree\",{\"items\":[1040],\"value\":[1040],\"selectedId\":[1537,\"selected-id\"],\"iconResolver\":[16],\"tooltipResolver\":[16],\"_tree\":[32],\"_waintingForLoad\":[32],\"selectItem\":[64],\"openItem\":[64],\"disableItem\":[64],\"enableItem\":[64],\"addChild\":[64],\"applyFilter\":[64],\"updateItem\":[64],\"getItem\":[64],\"getCurrentPath\":[64],\"getParent\":[64]},[[2,\"keydown\",\"onKeyDownListener\"]]],[1,\"ez-scroller\",{\"direction\":[1],\"locked\":[4],\"activeShadow\":[4,\"active-shadow\"],\"isActive\":[32]},[[2,\"click\",\"clickListener\"],[1,\"mousedown\",\"mouseDownHandler\"],[1,\"mouseup\",\"mouseUpHandler\"],[1,\"mousemove\",\"mouseMoveHandler\"]]],[1,\"ez-sidebar-button\"]]],[\"ez-list.cjs\",[[1,\"ez-list\",{\"dataSource\":[1040],\"listMode\":[1,\"list-mode\"],\"useGroups\":[1540,\"use-groups\"],\"ezDraggable\":[1028,\"ez-draggable\"],\"ezSelectable\":[1028,\"ez-selectable\"],\"itemSlotBuilder\":[1040],\"itemLeftSlotBuilder\":[1040],\"hoverFeedback\":[1028,\"hover-feedback\"],\"_listItems\":[32],\"_listGroupItems\":[32],\"clearHistory\":[64],\"scrollToTop\":[64],\"setSelection\":[64],\"getSelection\":[64],\"getList\":[64],\"removeSelection\":[64]}]]],[\"ez-combo-box.cjs\",[[1,\"ez-combo-box\",{\"value\":[1537],\"label\":[513],\"enabled\":[516],\"options\":[1040],\"errorMessage\":[1537,\"error-message\"],\"searchMode\":[4,\"search-mode\"],\"showSelectedValue\":[4,\"show-selected-value\"],\"showOptionValue\":[4,\"show-option-value\"],\"suppressSearch\":[4,\"suppress-search\"],\"optionLoader\":[16],\"suppressEmptyOption\":[4,\"suppress-empty-option\"],\"canShowError\":[516,\"can-show-error\"],\"mode\":[513],\"listOptionsPosition\":[16],\"_preSelection\":[32],\"_visibleOptions\":[32],\"_startLoading\":[32],\"_showLoading\":[32],\"_criteria\":[32],\"getValueAsync\":[64],\"setFocus\":[64],\"setBlur\":[64],\"isInvalid\":[64],\"clearValue\":[64]},[[11,\"scroll\",\"scrollListener\"]]]]],[\"ez-search.cjs\",[[1,\"ez-search\",{\"value\":[1537],\"label\":[1537],\"enabled\":[1540],\"errorMessage\":[1537,\"error-message\"],\"optionLoader\":[16],\"showSelectedValue\":[4,\"show-selected-value\"],\"showOptionValue\":[4,\"show-option-value\"],\"suppressEmptyOption\":[4,\"suppress-empty-option\"],\"mode\":[513],\"canShowError\":[516,\"can-show-error\"],\"listOptionsPosition\":[16],\"setFocus\":[64],\"setBlur\":[64],\"isInvalid\":[64],\"clearValue\":[64],\"getValueAsync\":[64]}]]],[\"ez-check.cjs\",[[1,\"ez-check\",{\"label\":[513],\"value\":[1540],\"enabled\":[1540],\"indeterminate\":[1540],\"mode\":[513],\"compact\":[4],\"getMode\":[64],\"setFocus\":[64]}]]],[\"ez-icon.cjs\",[[1,\"ez-icon\",{\"size\":[513],\"href\":[513],\"iconName\":[513,\"icon-name\"]}]]],[\"ez-button.cjs\",[[1,\"ez-button\",{\"label\":[513],\"enabled\":[516],\"mode\":[513],\"image\":[513],\"iconName\":[513,\"icon-name\"],\"size\":[513],\"setFocus\":[64],\"setBlur\":[64]},[[2,\"click\",\"clickListener\"]]]]],[\"ez-form.cjs\",[[2,\"ez-form\",{\"dataUnit\":[1040],\"config\":[16],\"recordsValidator\":[16],\"validate\":[64]}]]]]"), options);
18
18
  });
19
19
  };
20
20
 
@@ -30,9 +30,7 @@ export class EzComboBox {
30
30
  this.suppressEmptyOption = false;
31
31
  this.canShowError = true;
32
32
  this.mode = "regular";
33
- this.hideErrorOnFocusOut = true;
34
33
  this.listOptionsPosition = undefined;
35
- this.isTextSearch = false;
36
34
  }
37
35
  observeErrorMessage() {
38
36
  var _a;
@@ -355,6 +353,7 @@ export class EzComboBox {
355
353
  this._visibleOptions = [];
356
354
  this.clearSource();
357
355
  }
356
+ this.setFocus();
358
357
  }
359
358
  loadOptions(mode, argument = "") {
360
359
  this._criteria = argument;
@@ -539,12 +538,6 @@ export class EzComboBox {
539
538
  handlerIconClick() {
540
539
  this.searchMode ? this.loadOptions(SearchMode.ADVANCED) : this.showOptions();
541
540
  }
542
- buildNumberArgument(argument) {
543
- if (this.isTextSearch) {
544
- return NaN;
545
- }
546
- return Number(argument || undefined);
547
- }
548
541
  onTextInputChangeHandler(event) {
549
542
  var _a;
550
543
  this.clearDeboucingTimeout();
@@ -555,7 +548,7 @@ export class EzComboBox {
555
548
  return;
556
549
  }
557
550
  const argument = (_a = event.target.value) === null || _a === void 0 ? void 0 : _a.trim();
558
- const argumentNumber = this.buildNumberArgument(argument);
551
+ const argumentNumber = Number(argument || undefined);
559
552
  if (!this._criteria) {
560
553
  this._textInput.value = event.data || argument;
561
554
  }
@@ -642,8 +635,7 @@ export class EzComboBox {
642
635
  //event.stopPropagation();
643
636
  }
644
637
  onTextInputFocusOutHandler() {
645
- if (this.hideErrorOnFocusOut)
646
- this.cancelPreselection();
638
+ this.cancelPreselection();
647
639
  }
648
640
  canShowListOptions() {
649
641
  return !this._showLoading && this._visibleOptions.length > 0;
@@ -922,24 +914,6 @@ export class EzComboBox {
922
914
  "reflect": true,
923
915
  "defaultValue": "\"regular\""
924
916
  },
925
- "hideErrorOnFocusOut": {
926
- "type": "boolean",
927
- "mutable": false,
928
- "complexType": {
929
- "original": "boolean",
930
- "resolved": "boolean",
931
- "references": {}
932
- },
933
- "required": false,
934
- "optional": false,
935
- "docs": {
936
- "tags": [],
937
- "text": "Quando verdadeiro deixa de exibir a mensagem de erro (se existente) quando focar em um elemento diferente."
938
- },
939
- "attribute": "hide-error-on-focus-out",
940
- "reflect": false,
941
- "defaultValue": "true"
942
- },
943
917
  "listOptionsPosition": {
944
918
  "type": "unknown",
945
919
  "mutable": false,
@@ -958,24 +932,6 @@ export class EzComboBox {
958
932
  "tags": [],
959
933
  "text": "Define um posicionamento fixo para a lista de op\u00E7\u00F5es do CheckBox."
960
934
  }
961
- },
962
- "isTextSearch": {
963
- "type": "boolean",
964
- "mutable": false,
965
- "complexType": {
966
- "original": "boolean",
967
- "resolved": "boolean",
968
- "references": {}
969
- },
970
- "required": false,
971
- "optional": false,
972
- "docs": {
973
- "tags": [],
974
- "text": "Informa se a pesquisa \u00E9 do tipo texto."
975
- },
976
- "attribute": "is-text-search",
977
- "reflect": false,
978
- "defaultValue": "false"
979
935
  }
980
936
  };
981
937
  }
@@ -185,26 +185,6 @@ export class EzForm {
185
185
  "resolved": "void",
186
186
  "references": {}
187
187
  }
188
- }, {
189
- "method": "formItemsReady",
190
- "name": "formItemsReady",
191
- "bubbles": true,
192
- "cancelable": true,
193
- "composed": true,
194
- "docs": {
195
- "tags": [],
196
- "text": "Respons\u00E1vel por notificar quando ocorrer a renderiza\u00E7\u00E3o de itens do formul\u00E1rio."
197
- },
198
- "complexType": {
199
- "original": "FormItems",
200
- "resolved": "FormItems",
201
- "references": {
202
- "FormItems": {
203
- "location": "import",
204
- "path": "../ez-form-view/structure"
205
- }
206
- }
207
- }
208
188
  }];
209
189
  }
210
190
  static get methods() {
@@ -1,7 +1,6 @@
1
1
  import { Host, h } from '@stencil/core';
2
2
  import { fieldBuilder } from './fieldbuilder/FieldBuilder';
3
3
  import { ElementIDUtils } from '@sankhyalabs/core';
4
- import { FormItems } from './structure';
5
4
  export class EzFormView {
6
5
  constructor() {
7
6
  this.fields = undefined;
@@ -29,8 +28,6 @@ export class EzFormView {
29
28
  }
30
29
  componentDidRender() {
31
30
  this.ezContentReady.emit(Array.from(this._element.querySelectorAll("[data-field-name]")));
32
- const formItems = new FormItems(Array.from(this._element.querySelectorAll("[data-form-item]")));
33
- this.formItemsReady.emit(formItems);
34
31
  }
35
32
  render() {
36
33
  ElementIDUtils.addIDInfoIfNotExists(this._element, 'ezFormView');
@@ -108,26 +105,6 @@ export class EzFormView {
108
105
  }
109
106
  }
110
107
  }
111
- }, {
112
- "method": "formItemsReady",
113
- "name": "formItemsReady",
114
- "bubbles": true,
115
- "cancelable": true,
116
- "composed": true,
117
- "docs": {
118
- "tags": [],
119
- "text": "Respons\u00E1vel por notificar quando ocorrer a renderiza\u00E7\u00E3o de itens do formul\u00E1rio."
120
- },
121
- "complexType": {
122
- "original": "FormItems",
123
- "resolved": "FormItems",
124
- "references": {
125
- "FormItems": {
126
- "location": "import",
127
- "path": "./structure"
128
- }
129
- }
130
- }
131
108
  }];
132
109
  }
133
110
  static get methods() {
@@ -23,8 +23,5 @@ uiBuilders.set(UserInterface.LONGTEXT, buildTextArea);
23
23
  export const fieldBuilder = (field) => {
24
24
  const builder = uiBuilders.get(field.userInterface) || buildTextInput;
25
25
  const label = field.required ? `${field.label}${REQUIRED_INFO}` : field.label;
26
- const builtElement = builder(Object.assign(Object.assign({}, field), { label }));
27
- //@ts-ignore
28
- builtElement.$attrs$['data-form-item'] = field.name;
29
- return builtElement;
26
+ return builder(Object.assign(Object.assign({}, field), { label }));
30
27
  };
@@ -603,7 +603,7 @@ export default class AgGridController {
603
603
  tooltip: tooltip,
604
604
  isSortable: propSortable,
605
605
  hasFilter: () => this.hasFilterColumn(source.name),
606
- showColumnFilter: (leftPosition, fromIcon) => this.showFilterColumn({ columnName: source.name, columnLabel: source.label, leftPosition, filteredOptions: this._filteredColumns.get(source.name), fromIcon }),
606
+ showColumnFilter: (leftPosition) => this.showFilterColumn({ columnName: source.name, columnLabel: source.label, leftPosition, filteredOptions: this._filteredColumns.get(source.name) }),
607
607
  },
608
608
  valueFormatter: params => {
609
609
  if (params.value == undefined) {
@@ -36,7 +36,7 @@ export class EzGridCustomHeader {
36
36
  onClickFilter() {
37
37
  var _a;
38
38
  const iconLeft = (_a = this.filterButton) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect().left;
39
- this.params.showColumnFilter(`${calcFilterColumnLeftPosition(iconLeft)}px`, true);
39
+ this.params.showColumnFilter(`${calcFilterColumnLeftPosition(iconLeft)}px`);
40
40
  }
41
41
  configSortIcon() {
42
42
  this.sortDownIcon.style.display = this.params.column.isSortDescending() ? 'flex' : 'none';
@@ -1,22 +1,26 @@
1
- import { ElementIDUtils, JSUtils, } from '@sankhyalabs/core';
1
+ import { ElementIDUtils, JSUtils, UserInterface, DateUtils, Action } from '@sankhyalabs/core';
2
2
  import { SelectionMode } from '@sankhyalabs/core/dist/dataunit/DataUnit';
3
- import { h, Host } from '@stencil/core';
3
+ import { Host, h } from '@stencil/core';
4
4
  import AgGridController from './controller/ag-grid/AgGridController';
5
5
  import { SelectionCounter } from './subcomponents/selection-counter';
6
6
  import { ApplicationUtils } from '../../utils';
7
- import InMemoryFilterColumnDataSource from './utils/InMemoryFilterColumnDataSource';
8
7
  const windowInstace = window;
9
8
  export class EzGrid {
10
9
  constructor() {
11
10
  this._gridController = new AgGridController(false);
12
11
  this._messageFilterAppliedSuccess = 'Filtro de coluna aplicado com sucesso!';
12
+ this.onDataUnitAction = (action) => {
13
+ if (action.type === Action.DATA_SAVED || action.type === Action.RECORDS_REMOVED) {
14
+ this._originalRecords = this.dataUnit.records;
15
+ }
16
+ };
13
17
  this._paginationInfo = undefined;
14
18
  this._paginationChangedByKeyboard = true;
15
19
  this._showSelectionCounter = false;
16
20
  this._isAllSelection = false;
17
21
  this._currentPageSelected = undefined;
18
22
  this._selectionCount = undefined;
19
- this._hasLeftButtons = false;
23
+ this._originalRecords = [];
20
24
  this.multipleSelection = undefined;
21
25
  this.config = undefined;
22
26
  this.selectionToastConfig = undefined;
@@ -286,20 +290,44 @@ export class EzGrid {
286
290
  });
287
291
  }
288
292
  componentWillLoad() {
289
- this._hasLeftButtons = !!this._element.querySelector('[slot="leftButtons"]');
290
293
  if (!this.dataUnit.name.includes("InMemoryDataUnit"))
291
294
  return;
295
+ this.dataUnit.subscribe(this.onDataUnitAction);
292
296
  }
293
297
  getDataSource() {
294
- var _a;
295
- return (_a = this.columnfilterDataSource) !== null && _a !== void 0 ? _a : new InMemoryFilterColumnDataSource(this.dataUnit);
298
+ return this.columnfilterDataSource ? this.columnfilterDataSource : this.buildDefaultDataSource();
296
299
  }
297
- hideHeader() {
298
- return (!!this._element.getAttribute("no-header") && !this._paginationInfo);
300
+ buildDefaultDataSource() {
301
+ var _a, _b;
302
+ if (this._originalRecords.length === 0) {
303
+ this._originalRecords = (_b = (_a = this.dataUnit) === null || _a === void 0 ? void 0 : _a.records) !== null && _b !== void 0 ? _b : [];
304
+ }
305
+ return {
306
+ fetchData: (filterTerm, fieldName) => {
307
+ return new Promise(resolve => {
308
+ const filteredRecords = this._originalRecords.filter(record => {
309
+ var _a, _b;
310
+ const label = typeof record[fieldName] === "object" ? `${(_a = record[fieldName]) === null || _a === void 0 ? void 0 : _a.value} - ${(_b = record[fieldName]) === null || _b === void 0 ? void 0 : _b.label}` : record[fieldName];
311
+ return label === null || label === void 0 ? void 0 : label.toString().toLowerCase().includes(filterTerm.toLowerCase());
312
+ });
313
+ const options = filteredRecords.map(item => {
314
+ return { value: item[fieldName].toString(), label: this.formatLabel(fieldName, item[fieldName]), check: true };
315
+ });
316
+ resolve(options);
317
+ });
318
+ }
319
+ };
320
+ }
321
+ formatLabel(fieldName, value) {
322
+ const { userInterface } = this.dataUnit.getField(fieldName);
323
+ if (userInterface === UserInterface.DATETIME) {
324
+ return DateUtils.formatDate(this.dataUnit.valueFromString(fieldName, value));
325
+ }
326
+ return String(this.dataUnit.getFormattedValue(fieldName, value));
299
327
  }
300
328
  render() {
301
329
  var _a;
302
- return (h(Host, { "no-header": this.hideHeader() }, h("div", { class: "ez-box ez-box--shadow ez-padding--medium grid-header" }, h("filter-column", { class: "grid-header__popover", noHeaderTaskBar: !this._hasLeftButtons, dataSource: this.getDataSource(), dataUnit: this.dataUnit, gridHeaderHidden: this.hideHeader(), ref: (element) => (this._filterColumn = element) }), h("div", { class: "grid-header__position" }, h("div", { class: "grid-header__container" }, h("slot", { name: "leftButtons" })), h("div", { class: "grid-header__container", ref: ref => (this._refPaginationControl = ref) }, this.getPaginationControl()))), h("div", { ref: (ref) => (this._gridSelectionCounter = ref), class: `grid__selection-counter
330
+ return (h(Host, null, h("div", { class: "ez-box ez-box--shadow ez-padding--medium grid-header" }, h("filter-column", { class: "grid-header__popover", dataSource: this.getDataSource(), dataUnit: this.dataUnit, gridHeaderHidden: !!this._element.getAttribute("no-header"), ref: (element) => (this._filterColumn = element) }), h("div", { class: "grid-header__position" }, h("div", { class: "grid-header__container" }, h("slot", { name: "leftButtons" })), h("div", { class: "grid-header__container", ref: ref => (this._refPaginationControl = ref) }, this.getPaginationControl()))), h("div", { ref: (ref) => (this._gridSelectionCounter = ref), class: `grid__selection-counter
303
331
  ${this._showSelectionCounter ? 'grid__selection-counter--opened' : ''}
304
332
  ` }, h(SelectionCounter, { selectionCount: this._selectionCount, currentPageSelected: this._currentPageSelected, paginationInfo: this._paginationInfo, canSelectAll: (_a = this.selectionToastConfig) === null || _a === void 0 ? void 0 : _a.canSelectAll, allRecordSelected: this._isAllSelection, onSelectAll: () => this.onSelectAllRecords(), onSelectPage: () => this.onSelectPageRecords(), onClearAll: () => this.onClearSelectedRecords(), onClose: () => (this._showSelectionCounter = false) })), h("div", { class: "grid__container ez-grid", ref: elem => (this._container = elem) }), h("div", { class: "grid__footer" }, h("slot", { name: "footer" }))));
305
333
  }
@@ -522,7 +550,7 @@ export class EzGrid {
522
550
  "_isAllSelection": {},
523
551
  "_currentPageSelected": {},
524
552
  "_selectionCount": {},
525
- "_hasLeftButtons": {}
553
+ "_originalRecords": {}
526
554
  };
527
555
  }
528
556
  static get events() {
@@ -8,23 +8,19 @@ const onSubmitFilter = new CustomEvent('onSubmitFilter', {
8
8
  });
9
9
  export class FilterColumn {
10
10
  constructor() {
11
- this.TOP_POSITION = '65';
11
+ this.TOP_POSITION = '65px';
12
12
  this.TOP_POSITION_HEADER_HIDDEN = '18';
13
- this.TOP_POSITION_NO_TASKBAR = '32';
14
- this.TOP_POSITION_NO_TASKBAR_HEADER_HIDDEN = '20';
15
13
  this.DEFAULT_HEIGHT = 430;
16
14
  this.opened = true;
17
15
  this.columnName = undefined;
18
16
  this.columnLabel = undefined;
19
17
  this.gridHeaderHidden = false;
20
- this.noHeaderTaskBar = false;
21
18
  this.dataSource = undefined;
22
19
  this.dataUnit = undefined;
23
20
  this.options = undefined;
24
21
  this.selectedItems = undefined;
25
22
  this.fieldDescriptor = undefined;
26
23
  this.useOptions = false;
27
- this.isTextSearch = false;
28
24
  }
29
25
  async hide() {
30
26
  await this.ezPopoverElement.hide();
@@ -38,45 +34,26 @@ export class FilterColumn {
38
34
  if (this.canShow(configs)) {
39
35
  await this.hide();
40
36
  this.fieldDescriptor = this.dataUnit.getField(configs.columnName);
41
- this.buildIsTextSearch();
42
37
  this.setOptions(configs.filteredOptions);
43
38
  this.columnName = configs.columnName;
44
39
  this.columnLabel = configs.columnLabel;
45
- await this.ezPopoverElement.show(this.calcTopPosition(), this.calculateLeftPosition(configs));
40
+ await this.ezPopoverElement.show(this.calcTopPosition(), configs.leftPosition);
46
41
  }
47
42
  }
48
- calculateLeftPosition(configs) {
49
- if (!configs.fromIcon) {
50
- return configs.leftPosition;
51
- }
52
- const difference = this.ezPopoverElement.getBoundingClientRect().left;
53
- const leftReference = parseInt(configs.leftPosition.replace('px', ''));
54
- const leftResolved = (leftReference + 16) - difference;
55
- return `${(leftResolved > 0 ? leftResolved : 0)}px`;
56
- }
57
- buildIsTextSearch() {
58
- var _a, _b;
59
- const userInterface = (_b = (_a = this.fieldDescriptor) === null || _a === void 0 ? void 0 : _a.userInterface) !== null && _b !== void 0 ? _b : UserInterface.SHORTTEXT;
60
- this.isTextSearch = !(userInterface === UserInterface.DECIMALNUMBER || userInterface === UserInterface.INTEGERNUMBER);
61
- }
62
43
  calcTopPosition() {
63
- const referencePosition = this.buildReferenceTopPosition();
44
+ const referencePosition = this.gridHeaderHidden
45
+ ? this.TOP_POSITION_HEADER_HIDDEN
46
+ : this.TOP_POSITION.replace('px', '');
64
47
  const totalPopoverHeight = parseInt(referencePosition) + this.DEFAULT_HEIGHT;
65
48
  const popoverPosition = Math.round(this.ezPopoverElement.getBoundingClientRect().top);
66
49
  const popoverBottomPosition = popoverPosition + totalPopoverHeight;
67
50
  const windowHeight = window.innerHeight;
68
51
  if (windowHeight > popoverBottomPosition) {
69
- return `${referencePosition}px`;
52
+ return referencePosition;
70
53
  }
71
54
  const differenceBetween = windowHeight - popoverBottomPosition;
72
55
  return `${differenceBetween}px`;
73
56
  }
74
- buildReferenceTopPosition() {
75
- if (this.noHeaderTaskBar) {
76
- return this.gridHeaderHidden ? this.TOP_POSITION_NO_TASKBAR_HEADER_HIDDEN : this.TOP_POSITION_NO_TASKBAR;
77
- }
78
- return this.gridHeaderHidden ? this.TOP_POSITION_HEADER_HIDDEN : this.TOP_POSITION;
79
- }
80
57
  async clearConfigs() {
81
58
  var _a;
82
59
  await ((_a = this.ezMultiSelectionList) === null || _a === void 0 ? void 0 : _a.clearFilteredOptions());
@@ -134,7 +111,7 @@ export class FilterColumn {
134
111
  }
135
112
  }
136
113
  render() {
137
- return (h("ez-popover", { class: 'filter-column__popover', "overlay-type": 'none', ref: (element) => (this.ezPopoverElement = element), autoClose: true, onEzVisibilityChange: this.handleEzVisibilityChange.bind(this) }, h("section", { class: 'filter-column' }, h("header", { class: 'filter-column__header' }, h("span", { class: 'ez-text ez-text--medium filter-column__header-title' }, "Filtro da coluna ", this.columnLabel), h("ez-button", { mode: 'icon', "icon-name": 'close', class: 'ez-button--tertiary', onClick: () => this.hide() })), h("ez-multi-selection-list", { columnName: this.columnName, dataSource: this.dataSource, options: this.options, useOptions: this.useOptions, ref: (element) => (this.ezMultiSelectionList = element), onChangeFilteredOptions: (event) => this.changeSelectedItems(event.detail), isTextSearch: this.isTextSearch }), h("footer", { class: 'filter-column__footer' }, h("ez-button", { label: 'Aplicar', class: 'ez-button--primary', onClick: this.submit.bind(this) })))));
114
+ return (h("ez-popover", { class: 'filter-column__popover', "overlay-type": 'none', ref: (element) => (this.ezPopoverElement = element), autoClose: true, onEzVisibilityChange: this.handleEzVisibilityChange.bind(this) }, h("section", { class: 'filter-column' }, h("header", { class: 'filter-column__header' }, h("span", { class: 'ez-text ez-text--medium filter-column__header-title' }, "Filtro da coluna ", this.columnLabel), h("ez-button", { mode: 'icon', "icon-name": 'close', class: 'ez-button--tertiary', onClick: () => this.hide() })), h("ez-multi-selection-list", { columnName: this.columnName, dataSource: this.dataSource, options: this.options, useOptions: this.useOptions, ref: (element) => (this.ezMultiSelectionList = element), onChangeFilteredOptions: (event) => this.changeSelectedItems(event.detail) }), h("footer", { class: 'filter-column__footer' }, h("ez-button", { label: 'Aplicar', class: 'ez-button--primary', onClick: this.submit.bind(this) })))));
138
115
  }
139
116
  static get is() { return "filter-column"; }
140
117
  static get originalStyleUrls() {
@@ -219,24 +196,6 @@ export class FilterColumn {
219
196
  "reflect": false,
220
197
  "defaultValue": "false"
221
198
  },
222
- "noHeaderTaskBar": {
223
- "type": "boolean",
224
- "mutable": true,
225
- "complexType": {
226
- "original": "boolean",
227
- "resolved": "boolean",
228
- "references": {}
229
- },
230
- "required": false,
231
- "optional": false,
232
- "docs": {
233
- "tags": [],
234
- "text": ""
235
- },
236
- "attribute": "no-header-task-bar",
237
- "reflect": false,
238
- "defaultValue": "false"
239
- },
240
199
  "dataSource": {
241
200
  "type": "unknown",
242
201
  "mutable": false,
@@ -303,8 +262,7 @@ export class FilterColumn {
303
262
  return {
304
263
  "selectedItems": {},
305
264
  "fieldDescriptor": {},
306
- "useOptions": {},
307
- "isTextSearch": {}
265
+ "useOptions": {}
308
266
  };
309
267
  }
310
268
  static get events() {
@@ -14,7 +14,6 @@ export class EzMuiltiSelectionList {
14
14
  this.dataSource = undefined;
15
15
  this.useOptions = false;
16
16
  this.options = undefined;
17
- this.isTextSearch = false;
18
17
  this.filteredOptions = undefined;
19
18
  this.displayOptions = undefined;
20
19
  this.viewScenario = undefined;
@@ -97,7 +96,6 @@ export class EzMuiltiSelectionList {
97
96
  this.filteredOptions = this.ordenationByCheckStateAndAlphabetically([...optionsToSort, event.detail]);
98
97
  }
99
98
  this.viewScenario = ViewScenarios.DATASOURCE_RESULTS;
100
- this.searchInput.value = "";
101
99
  }
102
100
  handleRemoveItemFromOptions(item) {
103
101
  this.filteredOptions = this.ordenationByCheckStateAndAlphabetically(this.filteredOptions.filter(i => i.value !== item.value));
@@ -161,7 +159,7 @@ export class EzMuiltiSelectionList {
161
159
  return scenarios[view];
162
160
  }
163
161
  render() {
164
- return (h(Host, null, h("div", { class: "multi-selection" }, this.useOptions ? (h("ez-filter-input", { ref: (element) => (this.filterInput = element), label: `Buscar..`, onEzChange: this.handleSearchOnOption.bind(this) })) : (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 })), h("ez-scroll", { class: "multi-selection__content-options" }, this.scenarioToDisplay(this.viewScenario)))));
162
+ return (h(Host, null, h("div", { class: "multi-selection" }, this.useOptions ? (h("ez-filter-input", { ref: (element) => (this.filterInput = element), label: `Buscar..`, onEzChange: this.handleSearchOnOption.bind(this) })) : (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) })), h("ez-scroll", { class: "multi-selection__content-options" }, this.scenarioToDisplay(this.viewScenario)))));
165
163
  }
166
164
  static get is() { return "ez-multi-selection-list"; }
167
165
  static get encapsulation() { return "scoped"; }
@@ -251,24 +249,6 @@ export class EzMuiltiSelectionList {
251
249
  "tags": [],
252
250
  "text": "Op\u00E7\u00F5es de filtros a serem exibidas na listagem."
253
251
  }
254
- },
255
- "isTextSearch": {
256
- "type": "boolean",
257
- "mutable": false,
258
- "complexType": {
259
- "original": "boolean",
260
- "resolved": "boolean",
261
- "references": {}
262
- },
263
- "required": false,
264
- "optional": false,
265
- "docs": {
266
- "tags": [],
267
- "text": "Informa se a pesquisa \u00E9 do tipo texto."
268
- },
269
- "attribute": "is-text-search",
270
- "reflect": false,
271
- "defaultValue": "false"
272
252
  }
273
253
  };
274
254
  }
@@ -13,9 +13,7 @@ export class EzSearch {
13
13
  this.suppressEmptyOption = false;
14
14
  this.mode = "regular";
15
15
  this.canShowError = true;
16
- this.hideErrorOnFocusOut = true;
17
16
  this.listOptionsPosition = undefined;
18
- this.isTextSearch = false;
19
17
  }
20
18
  observeErrorMessage() {
21
19
  if (this._comboElement) {
@@ -73,7 +71,7 @@ export class EzSearch {
73
71
  }
74
72
  render() {
75
73
  ElementIDUtils.addIDInfoIfNotExists(this._elem, 'input');
76
- return (h("ez-combo-box", { "data-element-id": ElementIDUtils.getInternalIDInfo("combo"), ref: elem => this._comboElement = elem, value: this.value, label: this.label, enabled: this.enabled, errorMessage: this.errorMessage, hideErrorOnFocusOut: this.hideErrorOnFocusOut, optionLoader: this.optionLoader, searchMode: true, onEzChange: event => this.onComboChange(event), showSelectedValue: this.showSelectedValue, showOptionValue: this.showOptionValue, suppressEmptyOption: this.suppressEmptyOption, mode: this.mode, canShowError: this.canShowError, listOptionsPosition: this.listOptionsPosition, isTextSearch: this.isTextSearch }));
74
+ return (h("ez-combo-box", { "data-element-id": ElementIDUtils.getInternalIDInfo("combo"), ref: elem => this._comboElement = elem, value: this.value, label: this.label, enabled: this.enabled, errorMessage: this.errorMessage, optionLoader: this.optionLoader, searchMode: true, onEzChange: event => this.onComboChange(event), showSelectedValue: this.showSelectedValue, showOptionValue: this.showOptionValue, suppressEmptyOption: this.suppressEmptyOption, mode: this.mode, canShowError: this.canShowError, listOptionsPosition: this.listOptionsPosition }));
77
75
  }
78
76
  ;
79
77
  static get is() { return "ez-search"; }
@@ -284,24 +282,6 @@ export class EzSearch {
284
282
  "reflect": true,
285
283
  "defaultValue": "true"
286
284
  },
287
- "hideErrorOnFocusOut": {
288
- "type": "boolean",
289
- "mutable": false,
290
- "complexType": {
291
- "original": "boolean",
292
- "resolved": "boolean",
293
- "references": {}
294
- },
295
- "required": false,
296
- "optional": false,
297
- "docs": {
298
- "tags": [],
299
- "text": "Quando verdadeiro deixa de exibir a mensagem de erro (se existente) quando focar em um elemento diferente."
300
- },
301
- "attribute": "hide-error-on-focus-out",
302
- "reflect": false,
303
- "defaultValue": "true"
304
- },
305
285
  "listOptionsPosition": {
306
286
  "type": "unknown",
307
287
  "mutable": false,
@@ -321,24 +301,6 @@ export class EzSearch {
321
301
  "tags": [],
322
302
  "text": "Define um posicionamento fixo para a lista de op\u00E7\u00F5es do CheckBox."
323
303
  }
324
- },
325
- "isTextSearch": {
326
- "type": "boolean",
327
- "mutable": false,
328
- "complexType": {
329
- "original": "boolean",
330
- "resolved": "boolean",
331
- "references": {}
332
- },
333
- "required": false,
334
- "optional": false,
335
- "docs": {
336
- "tags": [],
337
- "text": "Informa se a pesquisa \u00E9 do tipo texto."
338
- },
339
- "attribute": "is-text-search",
340
- "reflect": false,
341
- "defaultValue": "false"
342
304
  }
343
305
  };
344
306
  }
@@ -163,7 +163,7 @@ export default class DataBinder {
163
163
  this._dataUnit.addRecord();
164
164
  }
165
165
  this._dataUnit.clearInvalid(this.getCurrentRecordId(), fieldName);
166
- this._dataUnit.setFieldValue(fieldName, newValue);
166
+ this._dataUnit.setFieldValue(fieldName, newValue, [this.getCurrentRecordId()]);
167
167
  if (this._dataUnit.waitingForChange(fieldName)) {
168
168
  const bind = this._fields.get(fieldName);
169
169
  if (bind) {