@sankhyalabs/ezui 0.0.0-bugfix-dev-KB-72892.1 → 0.0.0-bugfix-dev-KB-73818.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.
- package/dist/cjs/ez-combo-box.cjs.entry.js +8 -0
- package/dist/cjs/ez-custom-form-input_2.cjs.entry.js +3 -1
- package/dist/cjs/ez-date-input.cjs.entry.js +3 -0
- package/dist/cjs/ez-grid.cjs.entry.js +125 -60
- package/dist/cjs/ez-search.cjs.entry.js +21 -1
- package/dist/cjs/ezui.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/ez-combo-box/ez-combo-box.js +26 -0
- package/dist/collection/components/ez-date-input/ez-date-input.js +3 -0
- package/dist/collection/components/ez-date-input/test/ez-date-input.test.js +15 -0
- package/dist/collection/components/ez-form-view/custom-input/ez-custom-form-input.js +3 -1
- package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +64 -34
- package/dist/collection/components/ez-grid/controller/ag-grid/DataSource.js +24 -8
- package/dist/collection/components/ez-grid/controller/ag-grid/GridEditionManager.js +32 -24
- package/dist/collection/components/ez-grid/controller/ag-grid/editor/EzCellEditor.js +8 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/ComboBox.tpl.js +1 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/Search.tpl.js +1 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/test/constants/GridEditionMock.js +1 -0
- package/dist/collection/components/ez-grid/ez-grid.js +2 -1
- package/dist/collection/components/ez-search/ez-search.css +7 -3
- package/dist/collection/components/ez-search/ez-search.js +38 -0
- package/dist/custom-elements/index.js +162 -64
- package/dist/esm/ez-combo-box.entry.js +8 -0
- package/dist/esm/ez-custom-form-input_2.entry.js +3 -1
- package/dist/esm/ez-date-input.entry.js +3 -0
- package/dist/esm/ez-grid.entry.js +125 -60
- package/dist/esm/ez-search.entry.js +21 -1
- package/dist/esm/ezui.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/ezui/ezui.esm.js +1 -1
- package/dist/ezui/p-583e6dab.entry.js +1 -0
- package/dist/ezui/{p-75669111.entry.js → p-c3c3d640.entry.js} +1 -1
- package/dist/ezui/p-e530d7e9.entry.js +1 -0
- package/dist/ezui/p-e9649c10.entry.js +1 -0
- package/dist/types/components/ez-combo-box/ez-combo-box.d.ts +5 -0
- package/dist/types/components/ez-date-input/test/ez-date-input.test.d.ts +1 -0
- package/dist/types/components/ez-grid/controller/EzGridController.d.ts +15 -3
- package/dist/types/components/ez-grid/controller/ag-grid/AgGridController.d.ts +9 -2
- package/dist/types/components/ez-grid/controller/ag-grid/DataSource.d.ts +3 -0
- package/dist/types/components/ez-grid/controller/ag-grid/GridEditionManager.d.ts +11 -8
- package/dist/types/components/ez-grid/controller/ag-grid/editor/EzCellEditor.d.ts +1 -0
- package/dist/types/components/ez-search/ez-search.d.ts +7 -0
- package/dist/types/components.d.ts +16 -0
- package/package.json +1 -1
- package/dist/ezui/p-4c799a1b.entry.js +0 -1
- package/dist/ezui/p-7922142b.entry.js +0 -1
- package/dist/ezui/p-bae4e180.entry.js +0 -1
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -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\"],\"autoFocus\":[4,\"auto-focus\"],\"paginationCounterMode\":[1,\"pagination-counter-mode\"],\"enableGridInsert\":[4,\"enable-grid-insert\"],\"enableContinuousInsert\":[4,\"enable-continuous-insert\"],\"_paginationInfo\":[32],\"_paginationChangedByKeyboard\":[32],\"_showSelectionCounter\":[32],\"_isAllSelection\":[32],\"_currentPageSelected\":[32],\"_selectionCount\":[32],\"_hasLeftButtons\":[32],\"_customFormatters\":[32],\"setColumnsDef\":[64],\"addColumnMenuItem\":[64],\"setColumnsState\":[64],\"setData\":[64],\"getSelection\":[64],\"getColumnsState\":[64],\"getColumns\":[64],\"quickFilter\":[64],\"locateColumn\":[64],\"filterColumns\":[64],\"addCustomEditor\":[64],\"addGridCustomRender\":[64],\"addCustomValueFormatter\":[64],\"removeCustomValueFormatter\":[64],\"refreshSelectedRows\":[64],\"getCustomValueFormatter\":[64],\"setFocus\":[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],\"openGuideNavidator\":[64],\"enableItem\":[64],\"updateItem\":[64],\"getItem\":[64],\"getCurrentPath\":[64],\"selectGuide\":[64],\"getParent\":[64]}]]],[\"ez-alert-list.cjs\",[[1,\"ez-alert-list\",{\"alerts\":[1040],\"enableDragAndDrop\":[516,\"enable-drag-and-drop\"],\"enableExpand\":[516,\"enable-expand\"],\"itemRightSlotBuilder\":[16],\"opened\":[1540],\"expanded\":[1540],\"_container\":[32]}]]],[\"ez-sidebar-navigator.cjs\",[[1,\"ez-sidebar-navigator\",{\"type\":[1],\"mode\":[1025],\"size\":[1],\"isResponsive\":[4,\"is-responsive\"],\"titleMenu\":[1,\"title-menu\"],\"showCollapseMenu\":[4,\"show-collapse-menu\"],\"showFixedButton\":[4,\"show-fixed-button\"],\"open\":[32],\"changeModeMenu\":[64],\"closeSidebar\":[64],\"openSidebar\":[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],\"showActions\":[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]},[[8,\"keydown\",\"handleKeyDown\"]]]]],[\"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\"],\"showCloseButton\":[4,\"show-close-button\"]},[[4,\"ezCloseModal\",\"handleEzModalAction\"]]]]],[\"ez-split-button.cjs\",[[1,\"ez-split-button\",{\"enabled\":[516],\"iconName\":[513,\"icon-name\"],\"image\":[513],\"items\":[16],\"label\":[513],\"leftTitle\":[513,\"left-title\"],\"rightTitle\":[513,\"right-title\"],\"mode\":[513],\"size\":[513],\"show\":[32],\"setBlur\":[64],\"setLeftButtonFocus\":[64],\"setRightButtonFocus\":[64]},[[2,\"click\",\"clickListener\"]]]]],[\"ez-split-item.cjs\",[[4,\"ez-split-item\",{\"label\":[1],\"enableExpand\":[516,\"enable-expand\"],\"size\":[1],\"_expanded\":[32]}]]],[\"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-chart.cjs\",[[1,\"ez-chart\",{\"type\":[1],\"xAxis\":[16],\"yAxis\":[16],\"chartTitle\":[1,\"chart-title\"],\"chartSubTitle\":[1,\"chart-sub-title\"],\"legendEnabled\":[4,\"legend-enabled\"],\"series\":[16],\"width\":[2],\"height\":[2]}]]],[\"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\"],\"closeOutsideLeave\":[4,\"close-outside-leave\"],\"scrim\":[1]}]]],[\"ez-popup.cjs\",[[1,\"ez-popup\",{\"size\":[1],\"opened\":[1540],\"useHeader\":[516,\"use-header\"],\"heightMode\":[513,\"height-mode\"],\"ezTitle\":[1,\"ez-title\"],\"enabledScroll\":[4,\"enabled-scroll\"]}]]],[\"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-split-panel.cjs\",[[0,\"ez-split-panel\",{\"direction\":[1],\"anchorToExpand\":[4,\"anchor-to-expand\"],\"rebuildLayout\":[64]}]]],[\"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-tabselector.cjs\",[[1,\"ez-tabselector\",{\"selectedIndex\":[1538,\"selected-index\"],\"selectedTab\":[1537,\"selected-tab\"],\"tabs\":[1],\"_processedTabs\":[32],\"goToTab\":[64]}]]],[\"ez-tree.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\"]]]]],[\"ez-multi-selection-list.cjs\",[[2,\"ez-multi-selection-list\",{\"columnName\":[1,\"column-name\"],\"dataSource\":[16],\"useOptions\":[1028,\"use-options\"],\"options\":[1040],\"isTextSearch\":[4,\"is-text-search\"],\"filteredOptions\":[32],\"displayOptions\":[32],\"viewScenario\":[32],\"displayOptionToCheckAllItems\":[32],\"clearFilteredOptions\":[64]}]]],[\"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-combo-box.cjs\",[[1,\"ez-combo-box\",{\"limitCharsToSearch\":[2,\"limit-chars-to-search\"],\"value\":[1537],\"label\":[513],\"enabled\":[516],\"options\":[1040],\"errorMessage\":[1537,\"error-message\"],\"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-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],\"_value\":[32],\"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-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-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\"],\"password\":[4],\"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-dropdown.cjs\",[[1,\"ez-dropdown\",{\"items\":[1040],\"value\":[1040],\"itemBuilder\":[16]},[[4,\"click\",\"handleClickOutside\"]]]]],[\"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-card-item_3.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]}],[1,\"ez-card-item\",{\"item\":[16],\"enableKey\":[4,\"enable-key\"],\"compacted\":[4]}]]],[\"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\"],\"ignoreLimitCharsToSearch\":[4,\"ignore-limit-chars-to-search\"],\"options\":[1040],\"suppressSearch\":[4,\"suppress-search\"],\"ensureClearButtonVisible\":[4,\"ensure-clear-button-visible\"],\"suppressPreLoad\":[4,\"suppress-pre-load\"],\"_preSelection\":[32],\"_visibleOptions\":[32],\"_startLoading\":[32],\"_showLoading\":[32],\"_criteria\":[32],\"getValueAsync\":[64],\"setFocus\":[64],\"setBlur\":[64],\"isInvalid\":[64],\"clearValue\":[64]},[[11,\"scroll\",\"scrollListener\"]]]]],[\"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-custom-form-input_2.cjs\",[[2,\"ez-custom-form-input\",{\"customEditor\":[16],\"formViewField\":[16],\"value\":[1032],\"detailContext\":[1,\"detail-context\"],\"builderFallback\":[16],\"selectedRecord\":[16],\"gui\":[32],\"setFocus\":[64],\"setBlur\":[64],\"isInvalid\":[64]}],[1,\"ez-text-edit\",{\"value\":[1],\"styled\":[16],\"_newValue\":[32],\"applyFocusSelect\":[64]}]]],[\"ez-form-view.cjs\",[[2,\"ez-form-view\",{\"fields\":[16],\"selectedRecord\":[16],\"_customEditors\":[32],\"showUp\":[64],\"addCustomEditor\":[64],\"setFieldProp\":[64]}]]],[\"ez-form.cjs\",[[2,\"ez-form\",{\"dataUnit\":[1040],\"config\":[16],\"recordsValidator\":[16],\"fieldToFocus\":[1,\"field-to-focus\"],\"onlyStaticFields\":[4,\"only-static-fields\"],\"_fieldsProps\":[32],\"validate\":[64],\"addCustomEditor\":[64],\"setFieldProp\":[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-scroller_2.cjs\",[[1,\"ez-sidebar-button\"],[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\"]]]]]]"), 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\"],\"autoFocus\":[4,\"auto-focus\"],\"paginationCounterMode\":[1,\"pagination-counter-mode\"],\"enableGridInsert\":[4,\"enable-grid-insert\"],\"enableContinuousInsert\":[4,\"enable-continuous-insert\"],\"_paginationInfo\":[32],\"_paginationChangedByKeyboard\":[32],\"_showSelectionCounter\":[32],\"_isAllSelection\":[32],\"_currentPageSelected\":[32],\"_selectionCount\":[32],\"_hasLeftButtons\":[32],\"_customFormatters\":[32],\"setColumnsDef\":[64],\"addColumnMenuItem\":[64],\"setColumnsState\":[64],\"setData\":[64],\"getSelection\":[64],\"getColumnsState\":[64],\"getColumns\":[64],\"quickFilter\":[64],\"locateColumn\":[64],\"filterColumns\":[64],\"addCustomEditor\":[64],\"addGridCustomRender\":[64],\"addCustomValueFormatter\":[64],\"removeCustomValueFormatter\":[64],\"refreshSelectedRows\":[64],\"getCustomValueFormatter\":[64],\"setFocus\":[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],\"openGuideNavidator\":[64],\"enableItem\":[64],\"updateItem\":[64],\"getItem\":[64],\"getCurrentPath\":[64],\"selectGuide\":[64],\"getParent\":[64]}]]],[\"ez-alert-list.cjs\",[[1,\"ez-alert-list\",{\"alerts\":[1040],\"enableDragAndDrop\":[516,\"enable-drag-and-drop\"],\"enableExpand\":[516,\"enable-expand\"],\"itemRightSlotBuilder\":[16],\"opened\":[1540],\"expanded\":[1540],\"_container\":[32]}]]],[\"ez-sidebar-navigator.cjs\",[[1,\"ez-sidebar-navigator\",{\"type\":[1],\"mode\":[1025],\"size\":[1],\"isResponsive\":[4,\"is-responsive\"],\"titleMenu\":[1,\"title-menu\"],\"showCollapseMenu\":[4,\"show-collapse-menu\"],\"showFixedButton\":[4,\"show-fixed-button\"],\"open\":[32],\"changeModeMenu\":[64],\"closeSidebar\":[64],\"openSidebar\":[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],\"showActions\":[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]},[[8,\"keydown\",\"handleKeyDown\"]]]]],[\"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\"],\"showCloseButton\":[4,\"show-close-button\"]},[[4,\"ezCloseModal\",\"handleEzModalAction\"]]]]],[\"ez-split-button.cjs\",[[1,\"ez-split-button\",{\"enabled\":[516],\"iconName\":[513,\"icon-name\"],\"image\":[513],\"items\":[16],\"label\":[513],\"leftTitle\":[513,\"left-title\"],\"rightTitle\":[513,\"right-title\"],\"mode\":[513],\"size\":[513],\"show\":[32],\"setBlur\":[64],\"setLeftButtonFocus\":[64],\"setRightButtonFocus\":[64]},[[2,\"click\",\"clickListener\"]]]]],[\"ez-split-item.cjs\",[[4,\"ez-split-item\",{\"label\":[1],\"enableExpand\":[516,\"enable-expand\"],\"size\":[1],\"_expanded\":[32]}]]],[\"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-chart.cjs\",[[1,\"ez-chart\",{\"type\":[1],\"xAxis\":[16],\"yAxis\":[16],\"chartTitle\":[1,\"chart-title\"],\"chartSubTitle\":[1,\"chart-sub-title\"],\"legendEnabled\":[4,\"legend-enabled\"],\"series\":[16],\"width\":[2],\"height\":[2]}]]],[\"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\"],\"closeOutsideLeave\":[4,\"close-outside-leave\"],\"scrim\":[1]}]]],[\"ez-popup.cjs\",[[1,\"ez-popup\",{\"size\":[1],\"opened\":[1540],\"useHeader\":[516,\"use-header\"],\"heightMode\":[513,\"height-mode\"],\"ezTitle\":[1,\"ez-title\"],\"enabledScroll\":[4,\"enabled-scroll\"]}]]],[\"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-split-panel.cjs\",[[0,\"ez-split-panel\",{\"direction\":[1],\"anchorToExpand\":[4,\"anchor-to-expand\"],\"rebuildLayout\":[64]}]]],[\"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-tabselector.cjs\",[[1,\"ez-tabselector\",{\"selectedIndex\":[1538,\"selected-index\"],\"selectedTab\":[1537,\"selected-tab\"],\"tabs\":[1],\"_processedTabs\":[32],\"goToTab\":[64]}]]],[\"ez-tree.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\"]]]]],[\"ez-multi-selection-list.cjs\",[[2,\"ez-multi-selection-list\",{\"columnName\":[1,\"column-name\"],\"dataSource\":[16],\"useOptions\":[1028,\"use-options\"],\"options\":[1040],\"isTextSearch\":[4,\"is-text-search\"],\"filteredOptions\":[32],\"displayOptions\":[32],\"viewScenario\":[32],\"displayOptionToCheckAllItems\":[32],\"clearFilteredOptions\":[64]}]]],[\"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-combo-box.cjs\",[[1,\"ez-combo-box\",{\"limitCharsToSearch\":[2,\"limit-chars-to-search\"],\"value\":[1537],\"label\":[513],\"enabled\":[516],\"options\":[1040],\"errorMessage\":[1537,\"error-message\"],\"showSelectedValue\":[4,\"show-selected-value\"],\"showOptionValue\":[4,\"show-option-value\"],\"suppressSearch\":[4,\"suppress-search\"],\"optionLoader\":[16],\"suppressEmptyOption\":[4,\"suppress-empty-option\"],\"stopPropagateEnterKeyEvent\":[4,\"stop-propagate-enter-key-event\"],\"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-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],\"_value\":[32],\"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-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-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\"],\"password\":[4],\"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-dropdown.cjs\",[[1,\"ez-dropdown\",{\"items\":[1040],\"value\":[1040],\"itemBuilder\":[16]},[[4,\"click\",\"handleClickOutside\"]]]]],[\"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-card-item_3.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]}],[1,\"ez-card-item\",{\"item\":[16],\"enableKey\":[4,\"enable-key\"],\"compacted\":[4]}]]],[\"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\"],\"stopPropagateEnterKeyEvent\":[4,\"stop-propagate-enter-key-event\"],\"mode\":[513],\"canShowError\":[516,\"can-show-error\"],\"hideErrorOnFocusOut\":[4,\"hide-error-on-focus-out\"],\"listOptionsPosition\":[16],\"isTextSearch\":[4,\"is-text-search\"],\"ignoreLimitCharsToSearch\":[4,\"ignore-limit-chars-to-search\"],\"options\":[1040],\"suppressSearch\":[4,\"suppress-search\"],\"ensureClearButtonVisible\":[4,\"ensure-clear-button-visible\"],\"suppressPreLoad\":[4,\"suppress-pre-load\"],\"_preSelection\":[32],\"_visibleOptions\":[32],\"_startLoading\":[32],\"_showLoading\":[32],\"_criteria\":[32],\"getValueAsync\":[64],\"setFocus\":[64],\"setBlur\":[64],\"isInvalid\":[64],\"clearValue\":[64]},[[11,\"scroll\",\"scrollListener\"]]]]],[\"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-custom-form-input_2.cjs\",[[2,\"ez-custom-form-input\",{\"customEditor\":[16],\"formViewField\":[16],\"value\":[1032],\"detailContext\":[1,\"detail-context\"],\"builderFallback\":[16],\"selectedRecord\":[16],\"gui\":[32],\"setFocus\":[64],\"setBlur\":[64],\"isInvalid\":[64]}],[1,\"ez-text-edit\",{\"value\":[1],\"styled\":[16],\"_newValue\":[32],\"applyFocusSelect\":[64]}]]],[\"ez-form-view.cjs\",[[2,\"ez-form-view\",{\"fields\":[16],\"selectedRecord\":[16],\"_customEditors\":[32],\"showUp\":[64],\"addCustomEditor\":[64],\"setFieldProp\":[64]}]]],[\"ez-form.cjs\",[[2,\"ez-form\",{\"dataUnit\":[1040],\"config\":[16],\"recordsValidator\":[16],\"fieldToFocus\":[1,\"field-to-focus\"],\"onlyStaticFields\":[4,\"only-static-fields\"],\"_fieldsProps\":[32],\"validate\":[64],\"addCustomEditor\":[64],\"setFieldProp\":[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-scroller_2.cjs\",[[1,\"ez-sidebar-button\"],[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\"]]]]]]"), options);
|
|
18
18
|
});
|
|
19
19
|
};
|
|
20
20
|
|
|
@@ -25,6 +25,7 @@ export class EzComboBox {
|
|
|
25
25
|
this.suppressSearch = false;
|
|
26
26
|
this.optionLoader = undefined;
|
|
27
27
|
this.suppressEmptyOption = false;
|
|
28
|
+
this.stopPropagateEnterKeyEvent = false;
|
|
28
29
|
this.canShowError = true;
|
|
29
30
|
this.mode = "regular";
|
|
30
31
|
this.hideErrorOnFocusOut = true;
|
|
@@ -487,6 +488,7 @@ export class EzComboBox {
|
|
|
487
488
|
event.stopPropagation();
|
|
488
489
|
break;
|
|
489
490
|
case "Enter":
|
|
491
|
+
this.handleEventPropagation(event);
|
|
490
492
|
this.selectCurrentOption();
|
|
491
493
|
break;
|
|
492
494
|
case "Escape":
|
|
@@ -502,6 +504,12 @@ export class EzComboBox {
|
|
|
502
504
|
//e o contexto pode reagir (fechar um popup por exemplo).
|
|
503
505
|
//event.stopPropagation();
|
|
504
506
|
}
|
|
507
|
+
//O evento deve ter sua propagação interrompida, apenas se a lista de opções estiver sendo exibida.
|
|
508
|
+
handleEventPropagation(event) {
|
|
509
|
+
if (this._listContainer.hasChildNodes() && this.stopPropagateEnterKeyEvent) {
|
|
510
|
+
event.stopPropagation();
|
|
511
|
+
}
|
|
512
|
+
}
|
|
505
513
|
onTextInputFocusOutHandler() {
|
|
506
514
|
if (this.hideErrorOnFocusOut)
|
|
507
515
|
this.cancelPreselection();
|
|
@@ -745,6 +753,24 @@ export class EzComboBox {
|
|
|
745
753
|
"reflect": false,
|
|
746
754
|
"defaultValue": "false"
|
|
747
755
|
},
|
|
756
|
+
"stopPropagateEnterKeyEvent": {
|
|
757
|
+
"type": "boolean",
|
|
758
|
+
"mutable": false,
|
|
759
|
+
"complexType": {
|
|
760
|
+
"original": "boolean",
|
|
761
|
+
"resolved": "boolean",
|
|
762
|
+
"references": {}
|
|
763
|
+
},
|
|
764
|
+
"required": false,
|
|
765
|
+
"optional": false,
|
|
766
|
+
"docs": {
|
|
767
|
+
"tags": [],
|
|
768
|
+
"text": "Se true, ineterrompe a propaga\u00E7\u00E3o do evento de KeyDown da tecla enter"
|
|
769
|
+
},
|
|
770
|
+
"attribute": "stop-propagate-enter-key-event",
|
|
771
|
+
"reflect": false,
|
|
772
|
+
"defaultValue": "false"
|
|
773
|
+
},
|
|
748
774
|
"canShowError": {
|
|
749
775
|
"type": "boolean",
|
|
750
776
|
"mutable": false,
|
|
@@ -81,6 +81,9 @@ export class EzDateInput {
|
|
|
81
81
|
if ((currentValue === null || currentValue === void 0 ? void 0 : currentValue.getTime()) !== (newValueValidated === null || newValueValidated === void 0 ? void 0 : newValueValidated.getTime())) {
|
|
82
82
|
this.value = newValueValidated;
|
|
83
83
|
}
|
|
84
|
+
else {
|
|
85
|
+
this._changePending = false;
|
|
86
|
+
}
|
|
84
87
|
}
|
|
85
88
|
showCalendar() {
|
|
86
89
|
this.handleBlur();
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { EzDateInput } from "../ez-date-input";
|
|
2
|
+
describe("ez-date-input", () => {
|
|
3
|
+
let ezDateInput;
|
|
4
|
+
describe("changeValue", () => {
|
|
5
|
+
beforeEach(() => {
|
|
6
|
+
ezDateInput = new EzDateInput();
|
|
7
|
+
});
|
|
8
|
+
it('should set _changePending to false when there was no changes when changeValue was called', () => {
|
|
9
|
+
ezDateInput.value = undefined;
|
|
10
|
+
ezDateInput['_changePending'] = true;
|
|
11
|
+
ezDateInput['changeValue'](undefined);
|
|
12
|
+
expect(ezDateInput['_changePending']).toBeFalsy();
|
|
13
|
+
});
|
|
14
|
+
});
|
|
15
|
+
});
|
|
@@ -49,7 +49,9 @@ export class EzCustomFormInput {
|
|
|
49
49
|
this.getContent();
|
|
50
50
|
}
|
|
51
51
|
watchSelectedRecord(newValue, oldValue) {
|
|
52
|
-
|
|
52
|
+
const newRecordId = newValue === null || newValue === void 0 ? void 0 : newValue['__record__id__'];
|
|
53
|
+
const oldRecordId = oldValue === null || oldValue === void 0 ? void 0 : oldValue['__record__id__'];
|
|
54
|
+
if (newRecordId !== oldRecordId) {
|
|
53
55
|
this.getContent();
|
|
54
56
|
}
|
|
55
57
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ApplicationContext, DataType, MaskFormatter, NumberUtils, SortMode, StringUtils, UserInterface, } from '@sankhyalabs/core';
|
|
2
|
-
import { Grid } from 'ag-grid-community';
|
|
2
|
+
import { Grid, } from 'ag-grid-community';
|
|
3
3
|
import { Grid as EnterpriseGrid, LicenseManager } from 'ag-grid-enterprise';
|
|
4
4
|
import DataSource from './DataSource';
|
|
5
5
|
import { EzGridCustomHeader } from './components/EzGridCustomHeader';
|
|
@@ -128,7 +128,7 @@ export default class AgGridController {
|
|
|
128
128
|
this._doubleClickCallBack = options.onDoubleClick;
|
|
129
129
|
this._multipleSelection = options.allowMultipleSelection;
|
|
130
130
|
this._dataUnit = options.dataUnit;
|
|
131
|
-
this._editionManager = new GridEditionManager(this._dataUnit, options.useEnterLikeTab, options.recordsValidator, options.editionIsDisabled, options.customEditors || this._customEditors, options.customRenders || this._customRenders, options.enableContinuousInsert);
|
|
131
|
+
this._editionManager = new GridEditionManager(this._dataUnit, options.useEnterLikeTab, options.recordsValidator, options.editionIsDisabled, options.customEditors || this._customEditors, options.customRenders || this._customRenders, options.enableContinuousInsert, options.enableGridInsert);
|
|
132
132
|
this._statusResolver = options.statusResolver;
|
|
133
133
|
if (this._dataUnit) {
|
|
134
134
|
this._dataUnit.sortingProvider = this;
|
|
@@ -406,6 +406,7 @@ export default class AgGridController {
|
|
|
406
406
|
updateRowData(row) {
|
|
407
407
|
const node = this._gridOptions.api.getRowNode(row[this._idAttribName]);
|
|
408
408
|
node.setData(Object.assign({}, row));
|
|
409
|
+
this._editionManager.updateCurrentEditorGuiValue(row);
|
|
409
410
|
this._editionManager.recordValidate();
|
|
410
411
|
}
|
|
411
412
|
selectAll(quietly = false) {
|
|
@@ -567,10 +568,20 @@ export default class AgGridController {
|
|
|
567
568
|
}
|
|
568
569
|
}
|
|
569
570
|
startEditionOnRowByIndex(rowIndex) {
|
|
571
|
+
this._dataUnit.setSelectionByIndex([rowIndex]);
|
|
570
572
|
const firstCol = this.getFirstEditableColl(rowIndex);
|
|
573
|
+
if (!firstCol)
|
|
574
|
+
return;
|
|
571
575
|
this.focusByCollAndRow(firstCol, rowIndex);
|
|
572
576
|
this.startEdition(rowIndex, firstCol);
|
|
573
577
|
}
|
|
578
|
+
startEditionOnLastRow() {
|
|
579
|
+
var _a;
|
|
580
|
+
if (this._gridShowDom) {
|
|
581
|
+
const newRowIndex = ((_a = this._dataUnit.records) === null || _a === void 0 ? void 0 : _a.length) - 1;
|
|
582
|
+
this.startEditionOnRowByIndex(newRowIndex);
|
|
583
|
+
}
|
|
584
|
+
}
|
|
574
585
|
startEdition(rowIndex, firstCol) {
|
|
575
586
|
this._gridOptions.api.clearRangeSelection();
|
|
576
587
|
this._gridOptions.api.addCellRange({ rowStartIndex: rowIndex, rowEndIndex: rowIndex, columns: [firstCol] });
|
|
@@ -582,8 +593,13 @@ export default class AgGridController {
|
|
|
582
593
|
}
|
|
583
594
|
}
|
|
584
595
|
getFirstEditableColl(rowIndex) {
|
|
585
|
-
|
|
586
|
-
|
|
596
|
+
try {
|
|
597
|
+
const displayedColumns = this._gridOptions.columnApi.getAllDisplayedColumns();
|
|
598
|
+
return displayedColumns.find(column => this.isColumnEditable(rowIndex, column));
|
|
599
|
+
}
|
|
600
|
+
catch (e) {
|
|
601
|
+
console.warn(e);
|
|
602
|
+
}
|
|
587
603
|
}
|
|
588
604
|
isColumnEditable(rowIndex, column) {
|
|
589
605
|
if (column.getColDef().headerName === '' || rowIndex === -1)
|
|
@@ -919,35 +935,40 @@ export default class AgGridController {
|
|
|
919
935
|
return false;
|
|
920
936
|
}
|
|
921
937
|
onSelectionChange(event) {
|
|
922
|
-
if (this._selectionChangeCallback)
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
selectionHeaderStatus: this.getSelectionHeaderStatus(),
|
|
947
|
-
});
|
|
948
|
-
}
|
|
949
|
-
}, 0);
|
|
938
|
+
if (!this._selectionChangeCallback)
|
|
939
|
+
return;
|
|
940
|
+
clearTimeout(this._selectionChangeDeboucing);
|
|
941
|
+
this._selectionChangeDeboucing = window.setTimeout(() => {
|
|
942
|
+
this.handleExecuteProceedAutosave();
|
|
943
|
+
this.processBuildSelectionChangeCallback(event);
|
|
944
|
+
}, 0);
|
|
945
|
+
}
|
|
946
|
+
handleExecuteProceedAutosave() {
|
|
947
|
+
if (this._gridShowDom) {
|
|
948
|
+
this._editionManager.proceedAutoSave();
|
|
949
|
+
}
|
|
950
|
+
}
|
|
951
|
+
processBuildSelectionChangeCallback(event) {
|
|
952
|
+
if (this._dataUnit) {
|
|
953
|
+
this.handleBuildSelectionChangeWithDU(event.context.selectionChangeQuietly);
|
|
954
|
+
return;
|
|
955
|
+
}
|
|
956
|
+
this.buildSelectionChangeCallback(this._gridOptions.api.getSelectedRows());
|
|
957
|
+
}
|
|
958
|
+
handleBuildSelectionChangeWithDU(quietly) {
|
|
959
|
+
if (quietly) {
|
|
960
|
+
this.buildSelectionChangeCallback(this._dataUnit.records);
|
|
961
|
+
return;
|
|
950
962
|
}
|
|
963
|
+
this._dataUnit.updatePageSelection(this._gridOptions.api.getSelectedRows()
|
|
964
|
+
.map((r) => r.__record__id__))
|
|
965
|
+
.then(selectionInfo => this.buildSelectionChangeCallback(selectionInfo.records));
|
|
966
|
+
}
|
|
967
|
+
buildSelectionChangeCallback(records) {
|
|
968
|
+
this._selectionChangeCallback({
|
|
969
|
+
selection: records,
|
|
970
|
+
selectionHeaderStatus: this.getSelectionHeaderStatus(),
|
|
971
|
+
});
|
|
951
972
|
}
|
|
952
973
|
onRowDoubleClick(evt) {
|
|
953
974
|
if (this._doubleClickCallBack) {
|
|
@@ -959,6 +980,12 @@ export default class AgGridController {
|
|
|
959
980
|
host[attribute] = value;
|
|
960
981
|
}
|
|
961
982
|
}
|
|
983
|
+
processEditionCanceled() {
|
|
984
|
+
this.clearInvalidCells(true);
|
|
985
|
+
if (this._gridShowDom) {
|
|
986
|
+
this._dataUnit.clearSelection();
|
|
987
|
+
}
|
|
988
|
+
}
|
|
962
989
|
setCellEditors(customEditors) {
|
|
963
990
|
var _a;
|
|
964
991
|
if (!this._editionManager) {
|
|
@@ -977,12 +1004,15 @@ export default class AgGridController {
|
|
|
977
1004
|
this._editionManager.setCellRenders(customRenders);
|
|
978
1005
|
(_a = this._gridOptions) === null || _a === void 0 ? void 0 : _a.api.redrawRows();
|
|
979
1006
|
}
|
|
980
|
-
clearInvalidCells(
|
|
1007
|
+
clearInvalidCells(stopEdition) {
|
|
981
1008
|
if (!this._editionManager)
|
|
982
1009
|
return;
|
|
983
|
-
this._editionManager.clearInvalidCells(
|
|
1010
|
+
this._editionManager.clearInvalidCells(stopEdition);
|
|
984
1011
|
this._gridOptions.api.refreshCells({ force: true });
|
|
985
1012
|
}
|
|
1013
|
+
processContinuousInsert() {
|
|
1014
|
+
this._editionManager.processContinuousInsert();
|
|
1015
|
+
}
|
|
986
1016
|
destroy() {
|
|
987
1017
|
this.observer.disconnect();
|
|
988
1018
|
}
|
|
@@ -2,6 +2,17 @@ import { Action, ObjectUtils } from '@sankhyalabs/core';
|
|
|
2
2
|
import { EZ_GRID_LOADING_SOURCE } from "../../../../utils/constants";
|
|
3
3
|
import { DataSourceInterceptor } from "./DataSourceInterceptor";
|
|
4
4
|
export default class DataSource {
|
|
5
|
+
handleDataSaved(action) {
|
|
6
|
+
this._controller.clearInvalidCells();
|
|
7
|
+
this.handleRefreshOrReload(action);
|
|
8
|
+
this._controller.processContinuousInsert();
|
|
9
|
+
}
|
|
10
|
+
handleEditionCanceled(action) {
|
|
11
|
+
if (this._options.enableGridInsert) {
|
|
12
|
+
this._controller.processEditionCanceled();
|
|
13
|
+
}
|
|
14
|
+
this.handleRefreshOrReload(action);
|
|
15
|
+
}
|
|
5
16
|
handleSavingCanceled(action) {
|
|
6
17
|
var _a, _b, _c, _d;
|
|
7
18
|
if (!((_a = action.payload) === null || _a === void 0 ? void 0 : _a.fields) || !((_b = action.payload) === null || _b === void 0 ? void 0 : _b.recordId))
|
|
@@ -9,12 +20,17 @@ export default class DataSource {
|
|
|
9
20
|
this._controller.savingCanceled((_c = action.payload) === null || _c === void 0 ? void 0 : _c.fields, (_d = action.payload) === null || _d === void 0 ? void 0 : _d.recordId);
|
|
10
21
|
}
|
|
11
22
|
handleDataChanged(action) {
|
|
12
|
-
var _a, _b;
|
|
13
23
|
if (!this._options.enableGridInsert) {
|
|
14
24
|
this.handleRefresh(action);
|
|
15
25
|
return;
|
|
16
26
|
}
|
|
17
|
-
this.updateGridRowNodes((
|
|
27
|
+
this.updateGridRowNodes(this.createRecordIdList(action));
|
|
28
|
+
}
|
|
29
|
+
createRecordIdList(action) {
|
|
30
|
+
var _a, _b;
|
|
31
|
+
if ((_a = action.payload) === null || _a === void 0 ? void 0 : _a.records)
|
|
32
|
+
return (_b = action.payload) === null || _b === void 0 ? void 0 : _b.records;
|
|
33
|
+
return this._dataUnit.getSelectedRecord() ? [this._dataUnit.getSelectedRecord().__record__id__] : [];
|
|
18
34
|
}
|
|
19
35
|
/**
|
|
20
36
|
* Nesse ponto, o registro já se encontra atualizado no DU,
|
|
@@ -64,10 +80,8 @@ export default class DataSource {
|
|
|
64
80
|
* e callbacks implementados no AgGridController e GridEditionManager.
|
|
65
81
|
*/
|
|
66
82
|
setTimeout(() => {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
this._controller.startEditionOnRowByIndex(newRowIndex);
|
|
70
|
-
}, 500);
|
|
83
|
+
this._controller.startEditionOnLastRow();
|
|
84
|
+
}, 1000);
|
|
71
85
|
}
|
|
72
86
|
updateLoadedRecords(action) {
|
|
73
87
|
const records = action.payload;
|
|
@@ -121,12 +135,14 @@ export default class DataSource {
|
|
|
121
135
|
}
|
|
122
136
|
break;
|
|
123
137
|
case Action.RECORDS_ADDED:
|
|
138
|
+
case Action.RECORDS_COPIED:
|
|
124
139
|
this.handleRecordsAdded();
|
|
125
140
|
break;
|
|
126
141
|
case Action.DATA_SAVED:
|
|
142
|
+
this.handleDataSaved(action);
|
|
143
|
+
break;
|
|
127
144
|
case Action.EDITION_CANCELED:
|
|
128
|
-
this.
|
|
129
|
-
this.handleRefreshOrReload(action);
|
|
145
|
+
this.handleEditionCanceled(action);
|
|
130
146
|
break;
|
|
131
147
|
case Action.DATA_CHANGED:
|
|
132
148
|
case Action.DATA_RESOLVED:
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { KeyCode } from
|
|
3
|
-
import { RecordValidationProcessor } from
|
|
4
|
-
import EzCellEditor from
|
|
5
|
-
import EzGridCustomCellEditor from
|
|
6
|
-
import EzGridCustomCellRender from
|
|
1
|
+
import { UserInterface } from '@sankhyalabs/core';
|
|
2
|
+
import { KeyCode, } from 'ag-grid-community';
|
|
3
|
+
import { RecordValidationProcessor } from '../../../../utils/validators/recordvalidator/RecordValidationProcessor';
|
|
4
|
+
import EzCellEditor from './editor/EzCellEditor';
|
|
5
|
+
import EzGridCustomCellEditor from './components/EzGridCustomCellEditor';
|
|
6
|
+
import EzGridCustomCellRender from './components/EzGridCustomCellRender';
|
|
7
7
|
export default class GridEditionManager {
|
|
8
|
-
constructor(dataUnit, useEnterLikeTab, recordsValidator, editionIsDisabled, customEditors, customRenders, enableContinuousInsert) {
|
|
8
|
+
constructor(dataUnit, useEnterLikeTab, recordsValidator, editionIsDisabled, customEditors, customRenders, enableContinuousInsert, enableGridInsert) {
|
|
9
9
|
this._dataUnit = dataUnit;
|
|
10
10
|
this._recordValidationProcessor = new RecordValidationProcessor(this._dataUnit, {
|
|
11
11
|
getRequiredFields: () => this.getRequiredFields(),
|
|
@@ -15,6 +15,7 @@ export default class GridEditionManager {
|
|
|
15
15
|
this._useEnterLikeTab = useEnterLikeTab;
|
|
16
16
|
this._editionIsDisabled = editionIsDisabled;
|
|
17
17
|
this._enableContinuousInsert = enableContinuousInsert;
|
|
18
|
+
this._enableGridInsert = enableGridInsert;
|
|
18
19
|
this._customEditors = customEditors;
|
|
19
20
|
this._customRenders = customRenders;
|
|
20
21
|
}
|
|
@@ -29,6 +30,16 @@ export default class GridEditionManager {
|
|
|
29
30
|
};
|
|
30
31
|
return options;
|
|
31
32
|
}
|
|
33
|
+
updateCurrentEditorGuiValue(updatedRowValue) {
|
|
34
|
+
const editorInstances = this._gridOptions.api.getCellEditorInstances();
|
|
35
|
+
if (!editorInstances || !editorInstances.length)
|
|
36
|
+
return;
|
|
37
|
+
const currentEditor = editorInstances[0];
|
|
38
|
+
const fieldMetadata = currentEditor.getFieldMetadata();
|
|
39
|
+
const fieldName = fieldMetadata.name;
|
|
40
|
+
const value = updatedRowValue[fieldName];
|
|
41
|
+
currentEditor.setGuiValue(value);
|
|
42
|
+
}
|
|
32
43
|
canContinuousInsert() {
|
|
33
44
|
var _a;
|
|
34
45
|
return this._enableContinuousInsert && (this._dataUnit.records.length - 1) === ((_a = this._lastCellEdited) === null || _a === void 0 ? void 0 : _a.rowIndex);
|
|
@@ -38,7 +49,7 @@ export default class GridEditionManager {
|
|
|
38
49
|
this.saveSuccess();
|
|
39
50
|
return;
|
|
40
51
|
}
|
|
41
|
-
if (!this._isGridEdition
|
|
52
|
+
if (!this._isGridEdition) {
|
|
42
53
|
return;
|
|
43
54
|
}
|
|
44
55
|
const currentRercord = this._dataUnit.getSelectedRecord();
|
|
@@ -50,14 +61,7 @@ export default class GridEditionManager {
|
|
|
50
61
|
.validate(true)
|
|
51
62
|
.then(() => {
|
|
52
63
|
this._dataUnit.saveData()
|
|
53
|
-
.then(() =>
|
|
54
|
-
if (this.canContinuousInsert()) {
|
|
55
|
-
this._dataUnit.addRecord();
|
|
56
|
-
}
|
|
57
|
-
else {
|
|
58
|
-
this.saveSuccess();
|
|
59
|
-
}
|
|
60
|
-
})
|
|
64
|
+
.then(() => this.saveSuccess())
|
|
61
65
|
.catch(reason => this.saveFail(reason));
|
|
62
66
|
})
|
|
63
67
|
.catch(reason => this.saveFail(reason));
|
|
@@ -155,11 +159,12 @@ export default class GridEditionManager {
|
|
|
155
159
|
}
|
|
156
160
|
}
|
|
157
161
|
focusOnCell(cell) {
|
|
162
|
+
var _a;
|
|
158
163
|
if (cell == undefined) {
|
|
159
164
|
return;
|
|
160
165
|
}
|
|
161
166
|
const { rowIndex, column } = cell;
|
|
162
|
-
this._gridOptions.api.getDisplayedRowAtIndex(rowIndex).setSelected(true, true);
|
|
167
|
+
(_a = this._gridOptions.api.getDisplayedRowAtIndex(rowIndex)) === null || _a === void 0 ? void 0 : _a.setSelected(true, true);
|
|
163
168
|
this._gridOptions.api.clearRangeSelection();
|
|
164
169
|
this._gridOptions.api.addCellRange({ rowStartIndex: rowIndex, rowEndIndex: rowIndex, columns: [column] });
|
|
165
170
|
this._gridOptions.api.startEditingCell({ colKey: column.getColId(), rowIndex });
|
|
@@ -199,9 +204,10 @@ export default class GridEditionManager {
|
|
|
199
204
|
}
|
|
200
205
|
}
|
|
201
206
|
else {
|
|
207
|
+
const actualRowIndex = rowIndex;
|
|
202
208
|
rowIndex = rowIndex + 1;
|
|
203
209
|
if (rowIndex >= this._dataUnit.records.length) {
|
|
204
|
-
rowIndex = 0;
|
|
210
|
+
rowIndex = !this._enableGridInsert ? 0 : actualRowIndex;
|
|
205
211
|
}
|
|
206
212
|
}
|
|
207
213
|
this._targetEditionCell = new TargetEdition(rowIndex, column, true);
|
|
@@ -270,7 +276,7 @@ export default class GridEditionManager {
|
|
|
270
276
|
event.node.setData(Object.assign(Object.assign({}, event.data), { [fieldName]: value }));
|
|
271
277
|
}
|
|
272
278
|
this._isGridEdition = true;
|
|
273
|
-
this._dataUnit.setFieldValue(fieldName, value, [event.data.__record__id__]);
|
|
279
|
+
this._dataUnit.setFieldValue(fieldName, value, [event.data.__record__id__], { suppressCreateNewRecord: true });
|
|
274
280
|
this._lastCellEdited = { rowIndex: event.rowIndex, column: event.column, rowPinned: undefined };
|
|
275
281
|
}
|
|
276
282
|
}
|
|
@@ -286,14 +292,16 @@ export default class GridEditionManager {
|
|
|
286
292
|
getInvalidCell() {
|
|
287
293
|
return this._invalidCell;
|
|
288
294
|
}
|
|
289
|
-
|
|
295
|
+
processContinuousInsert() {
|
|
296
|
+
if (!this.canContinuousInsert())
|
|
297
|
+
return;
|
|
298
|
+
this._dataUnit.addRecord();
|
|
299
|
+
}
|
|
300
|
+
clearInvalidCells(stopEdition) {
|
|
290
301
|
this._invalidCell = undefined;
|
|
291
|
-
if (
|
|
302
|
+
if (stopEdition) {
|
|
292
303
|
this._isGridEdition = false;
|
|
293
304
|
}
|
|
294
|
-
else if (action === Action.DATA_SAVED && this.canContinuousInsert()) {
|
|
295
|
-
this._dataUnit.addRecord();
|
|
296
|
-
}
|
|
297
305
|
}
|
|
298
306
|
setEnableContinuousInsert(enable) {
|
|
299
307
|
this._enableContinuousInsert = enable;
|
|
@@ -44,6 +44,14 @@ export default class EzCellEditor {
|
|
|
44
44
|
getValue() {
|
|
45
45
|
return this._gui.valueGetter != undefined ? this._gui.valueGetter() : this._gui.value;
|
|
46
46
|
}
|
|
47
|
+
setGuiValue(value) {
|
|
48
|
+
if (this._gui.valueSetter != undefined) {
|
|
49
|
+
this._gui.valueSetter(value);
|
|
50
|
+
}
|
|
51
|
+
else {
|
|
52
|
+
this._gui.value = value;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
47
55
|
isPopup() {
|
|
48
56
|
return this._gui.isPopUp;
|
|
49
57
|
}
|
package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/ComboBox.tpl.js
CHANGED
|
@@ -17,6 +17,7 @@ export const buildComboBox = ({ required, props, eGridCell }) => {
|
|
|
17
17
|
mode="slim"
|
|
18
18
|
/>`);
|
|
19
19
|
combo.options = options;
|
|
20
|
+
combo.stopPropagateEnterKeyEvent = true;
|
|
20
21
|
combo.listOptionsPosition = { verticalPosition: 29, bottomLimit: getViewPortHeight(eGridCell), hardPosition: true };
|
|
21
22
|
return combo;
|
|
22
23
|
};
|
package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/Search.tpl.js
CHANGED
|
@@ -12,6 +12,7 @@ export const buildSearch = ({ name, required, readOnly, eGridCell, dataUnit }) =
|
|
|
12
12
|
ezSearch.ensureClearButtonVisible = true;
|
|
13
13
|
ezSearch.suppressPreLoad = true;
|
|
14
14
|
ezSearch.listOptionsPosition = { verticalPosition: 29, bottomLimit: getViewPortHeight(eGridCell), hardPosition: true };
|
|
15
|
+
ezSearch.stopPropagateEnterKeyEvent = true;
|
|
15
16
|
ezSearch.valueGetter = () => ezSearch.getValueAsync();
|
|
16
17
|
return ezSearch;
|
|
17
18
|
};
|
|
@@ -424,7 +424,8 @@ export class EzGrid {
|
|
|
424
424
|
return this._getActualPageLabel() + this._getRemainingPageLabel();
|
|
425
425
|
}
|
|
426
426
|
_initHeaderOverflowWatcher() {
|
|
427
|
-
|
|
427
|
+
if (this._refPaginationControl)
|
|
428
|
+
this._headerOverflowWatcher = new OverflowWatcher(this.buildOverFlowWatcherParams());
|
|
428
429
|
}
|
|
429
430
|
buildOverFlowWatcherParams() {
|
|
430
431
|
return {
|
|
@@ -86,6 +86,10 @@
|
|
|
86
86
|
/*@doc Define a largura da barra de rolagem do componente.*/
|
|
87
87
|
--ez-search__scrollbar--width: var(--space--medium, 12px);
|
|
88
88
|
|
|
89
|
+
/* dropdown */
|
|
90
|
+
/*@doc Define a altura máxima do dropdown.*/
|
|
91
|
+
--ez-search__dropdown--max-height: 350px;
|
|
92
|
+
|
|
89
93
|
/***************
|
|
90
94
|
host style
|
|
91
95
|
***************/
|
|
@@ -130,7 +134,7 @@ ez-icon {
|
|
|
130
134
|
|
|
131
135
|
/*public*/
|
|
132
136
|
z-index: var(--more-visible, 2);
|
|
133
|
-
max-height:
|
|
137
|
+
max-height: var(--ez-search__dropdown--max-height);
|
|
134
138
|
min-width: 150px;
|
|
135
139
|
background-color: var(--ez-search--background-color--xlight);
|
|
136
140
|
border-radius: var(--ez-search--border-radius);
|
|
@@ -138,11 +142,11 @@ ez-icon {
|
|
|
138
142
|
}
|
|
139
143
|
|
|
140
144
|
.list-options {
|
|
141
|
-
margin-top: 0px;
|
|
142
145
|
box-sizing: border-box;
|
|
143
146
|
width: 100%;
|
|
144
147
|
height: 100%;
|
|
145
148
|
padding: 0;
|
|
149
|
+
margin: 0;
|
|
146
150
|
display: flex;
|
|
147
151
|
flex-direction: column;
|
|
148
152
|
scroll-behavior: smooth;
|
|
@@ -200,7 +204,7 @@ ez-icon {
|
|
|
200
204
|
|
|
201
205
|
/*public*/
|
|
202
206
|
border-radius: var(--ez-search--border-radius-small);
|
|
203
|
-
gap: var(--space--
|
|
207
|
+
gap: var(--space--2xs, 8px);
|
|
204
208
|
}
|
|
205
209
|
|
|
206
210
|
.item__value,
|