@sankhyalabs/ezui 5.22.0-dev.109 → 5.22.0-dev.110
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/{DataBinder-e92314c2.js → DataBinder-c2060474.js} +3 -2
- package/dist/cjs/{constants-2714478b.js → constants-569271bc.js} +4 -0
- package/dist/cjs/ez-actions-button.cjs.entry.js +2 -2
- package/dist/cjs/ez-alert-list.cjs.entry.js +1 -1
- package/dist/cjs/ez-alert.cjs.entry.js +1 -1
- package/dist/cjs/ez-application.cjs.entry.js +1 -1
- package/dist/cjs/ez-badge.cjs.entry.js +1 -1
- package/dist/cjs/ez-breadcrumb.cjs.entry.js +1 -1
- package/dist/cjs/ez-button.cjs.entry.js +1 -1
- package/dist/cjs/ez-calendar.cjs.entry.js +1 -1
- package/dist/cjs/ez-card-item_2.cjs.entry.js +4 -1218
- package/dist/cjs/ez-chart.cjs.entry.js +1 -1
- package/dist/cjs/ez-check.cjs.entry.js +1 -1
- package/dist/cjs/ez-chip.cjs.entry.js +1 -1
- package/dist/cjs/ez-collapsible-box.cjs.entry.js +2 -2
- package/dist/cjs/ez-combo-box-list_3.cjs.entry.js +4 -4
- package/dist/cjs/ez-combo-box.cjs.entry.js +2 -8
- package/dist/cjs/ez-date-input.cjs.entry.js +1 -1
- package/dist/cjs/ez-date-time-input.cjs.entry.js +1 -1
- package/dist/cjs/ez-dialog.cjs.entry.js +1 -1
- package/dist/cjs/ez-double-list.cjs.entry.js +1 -1
- package/dist/cjs/ez-dropdown_2.cjs.entry.js +1 -1
- package/dist/cjs/ez-file-item.cjs.entry.js +1 -1
- package/dist/cjs/ez-filter-input.cjs.entry.js +1 -1
- package/dist/cjs/ez-form-view.cjs.entry.js +15 -8
- package/dist/cjs/ez-form.cjs.entry.js +2 -2
- package/dist/cjs/ez-grid.cjs.entry.js +161 -21
- package/dist/cjs/ez-guide-navigator.cjs.entry.js +1 -1
- package/dist/cjs/ez-icon.cjs.entry.js +1 -1
- package/dist/cjs/ez-list.cjs.entry.js +1 -1
- package/dist/cjs/ez-loading-bar.cjs.entry.js +1 -1
- package/dist/cjs/ez-modal-container.cjs.entry.js +1 -1
- package/dist/cjs/ez-modal.cjs.entry.js +1 -1
- package/dist/cjs/ez-multi-selection-list.cjs.entry.js +1 -1
- package/dist/cjs/ez-number-input.cjs.entry.js +1 -1
- package/dist/cjs/ez-popover-plus_3.cjs.entry.js +1 -1
- package/dist/cjs/ez-popover.cjs.entry.js +1 -1
- package/dist/cjs/ez-popup.cjs.entry.js +1 -1
- package/dist/cjs/ez-radio-button.cjs.entry.js +1 -1
- package/dist/cjs/ez-scroller_2.cjs.entry.js +1 -1
- package/dist/cjs/ez-search-plus.cjs.entry.js +369 -0
- package/dist/cjs/ez-search-result-list.cjs.entry.js +98 -0
- package/dist/cjs/ez-search.cjs.entry.js +3 -3
- package/dist/cjs/ez-sidebar-navigator.cjs.entry.js +1 -1
- package/dist/cjs/ez-split-button.cjs.entry.js +1 -1
- package/dist/cjs/ez-split-item.cjs.entry.js +2 -2
- package/dist/cjs/ez-split-panel.cjs.entry.js +1 -1
- package/dist/cjs/ez-tabselector.cjs.entry.js +1 -1
- package/dist/cjs/ez-text-area.cjs.entry.js +1 -1
- package/dist/cjs/ez-text-input.cjs.entry.js +21 -88
- package/dist/cjs/ez-time-input.cjs.entry.js +1 -1
- package/dist/cjs/ez-toast.cjs.entry.js +1 -1
- package/dist/cjs/ez-tooltip.cjs.entry.js +105 -30
- package/dist/cjs/ez-tree.cjs.entry.js +1 -1
- package/dist/cjs/ez-upload.cjs.entry.js +1 -1
- package/dist/cjs/ez-view-stack.cjs.entry.js +1 -1
- package/dist/cjs/ezui.cjs.js +2 -2
- package/dist/cjs/filter-column.cjs.entry.js +1 -1
- package/dist/cjs/floating-ui.dom.esm-017acce4.js +1404 -0
- package/dist/cjs/{index-9e5554cb.js → index-a7b0c73d.js} +8 -3
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{ICustomRender-6fafffce.js → types-6a5df0c7.js} +8 -0
- package/dist/collection/collection-manifest.json +12 -0
- package/dist/collection/components/ez-combo-box/ez-combo-box.js +1 -8
- package/dist/collection/components/ez-form-view/fieldbuilder/FieldBuilder.js +3 -1
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/SearchInputPlus.tpl.js +6 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +92 -8
- package/dist/collection/components/ez-grid/controller/ag-grid/DataSource.js +21 -4
- package/dist/collection/components/ez-grid/controller/ag-grid/GridEditionManager.js +31 -7
- package/dist/collection/components/ez-grid/controller/ag-grid/editor/EzCellEditor.js +2 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/SearchPlus.tpl.js +15 -0
- package/dist/collection/components/ez-search-plus/ez-search-plus.css +373 -0
- package/dist/collection/components/ez-search-plus/ez-search-plus.js +952 -0
- package/dist/collection/components/ez-search-plus/subcomponent/ez-search-result-list/ez-search-result-list.css +227 -0
- package/dist/collection/components/ez-search-plus/subcomponent/ez-search-result-list/ez-search-result-list.js +279 -0
- package/dist/collection/components/ez-text-input/ez-text-input.css +18 -2
- package/dist/collection/components/ez-text-input/ez-text-input.js +39 -60
- package/dist/collection/components/ez-tooltip/ez-tooltip.css +52 -12
- package/dist/collection/components/ez-tooltip/ez-tooltip.js +217 -46
- package/dist/collection/utils/constants.js +2 -0
- package/dist/collection/utils/form/DataBinder.js +3 -2
- package/dist/collection/utils/index.js +1 -0
- package/dist/collection/utils/search/types.js +7 -0
- package/dist/custom-elements/index.d.ts +12 -0
- package/dist/custom-elements/index.js +942 -148
- package/dist/esm/{DataBinder-9c877244.js → DataBinder-89946126.js} +3 -2
- package/dist/esm/constants-b036528f.js +7 -0
- package/dist/esm/ez-actions-button.entry.js +2 -2
- package/dist/esm/ez-alert-list.entry.js +1 -1
- package/dist/esm/ez-alert.entry.js +1 -1
- package/dist/esm/ez-application.entry.js +1 -1
- package/dist/esm/ez-badge.entry.js +1 -1
- package/dist/esm/ez-breadcrumb.entry.js +1 -1
- package/dist/esm/ez-button.entry.js +1 -1
- package/dist/esm/ez-calendar.entry.js +1 -1
- package/dist/esm/ez-card-item_2.entry.js +2 -1216
- package/dist/esm/ez-chart.entry.js +1 -1
- package/dist/esm/ez-check.entry.js +1 -1
- package/dist/esm/ez-chip.entry.js +1 -1
- package/dist/esm/ez-collapsible-box.entry.js +2 -2
- package/dist/esm/ez-combo-box-list_3.entry.js +3 -3
- package/dist/esm/ez-combo-box.entry.js +2 -8
- package/dist/esm/ez-date-input.entry.js +1 -1
- package/dist/esm/ez-date-time-input.entry.js +1 -1
- package/dist/esm/ez-dialog.entry.js +1 -1
- package/dist/esm/ez-double-list.entry.js +1 -1
- package/dist/esm/ez-dropdown_2.entry.js +1 -1
- package/dist/esm/ez-file-item.entry.js +1 -1
- package/dist/esm/ez-filter-input.entry.js +1 -1
- package/dist/esm/ez-form-view.entry.js +16 -9
- package/dist/esm/ez-form.entry.js +2 -2
- package/dist/esm/ez-grid.entry.js +160 -20
- package/dist/esm/ez-guide-navigator.entry.js +1 -1
- package/dist/esm/ez-icon.entry.js +1 -1
- package/dist/esm/ez-list.entry.js +1 -1
- package/dist/esm/ez-loading-bar.entry.js +1 -1
- package/dist/esm/ez-modal-container.entry.js +1 -1
- package/dist/esm/ez-modal.entry.js +1 -1
- package/dist/esm/ez-multi-selection-list.entry.js +1 -1
- package/dist/esm/ez-number-input.entry.js +1 -1
- package/dist/esm/ez-popover-plus_3.entry.js +1 -1
- package/dist/esm/ez-popover.entry.js +1 -1
- package/dist/esm/ez-popup.entry.js +1 -1
- package/dist/esm/ez-radio-button.entry.js +1 -1
- package/dist/esm/ez-scroller_2.entry.js +1 -1
- package/dist/esm/ez-search-plus.entry.js +365 -0
- package/dist/esm/ez-search-result-list.entry.js +94 -0
- package/dist/esm/ez-search.entry.js +3 -3
- package/dist/esm/ez-sidebar-navigator.entry.js +1 -1
- package/dist/esm/ez-split-button.entry.js +1 -1
- package/dist/esm/ez-split-item.entry.js +2 -2
- package/dist/esm/ez-split-panel.entry.js +1 -1
- package/dist/esm/ez-tabselector.entry.js +1 -1
- package/dist/esm/ez-text-area.entry.js +1 -1
- package/dist/esm/ez-text-input.entry.js +21 -88
- package/dist/esm/ez-time-input.entry.js +1 -1
- package/dist/esm/ez-toast.entry.js +1 -1
- package/dist/esm/ez-tooltip.entry.js +105 -30
- package/dist/esm/ez-tree.entry.js +1 -1
- package/dist/esm/ez-upload.entry.js +1 -1
- package/dist/esm/ez-view-stack.entry.js +1 -1
- package/dist/esm/ezui.js +3 -3
- package/dist/esm/filter-column.entry.js +1 -1
- package/dist/esm/floating-ui.dom.esm-5d3da819.js +1398 -0
- package/dist/esm/{index-5a720e56.js → index-baa5e267.js} +9 -3
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{ICustomRender-875b5a40.js → types-6f6b2650.js} +9 -1
- package/dist/ezui/ezui.esm.js +1 -1
- package/dist/ezui/{p-e6b38ade.entry.js → p-0306dff7.entry.js} +1 -1
- package/dist/ezui/{p-91ccae0c.entry.js → p-09de35a2.entry.js} +1 -1
- package/dist/ezui/{p-1f7241cd.entry.js → p-0bffeffc.entry.js} +1 -1
- package/dist/ezui/{p-88c615f0.entry.js → p-0fa52b0f.entry.js} +1 -1
- package/dist/ezui/{p-c96fbbef.entry.js → p-17de16e5.entry.js} +1 -1
- package/dist/ezui/p-1a060042.entry.js +1 -0
- package/dist/ezui/{p-81461d2f.entry.js → p-1e7a8633.entry.js} +1 -1
- package/dist/ezui/{p-a8c7473b.entry.js → p-1ec8bdd2.entry.js} +46 -46
- package/dist/ezui/{p-6b51c9cc.entry.js → p-1f50fa05.entry.js} +1 -1
- package/dist/ezui/{p-cf33bc48.entry.js → p-20c024f7.entry.js} +1 -1
- package/dist/ezui/{p-e4c7eb39.js → p-23a36bb6.js} +2 -2
- package/dist/ezui/{p-a537a117.entry.js → p-248d4f54.entry.js} +1 -1
- package/dist/ezui/{p-8f49705f.entry.js → p-2872fd16.entry.js} +1 -1
- package/dist/ezui/{p-06f1b8e4.entry.js → p-288631d1.entry.js} +1 -1
- package/dist/ezui/{p-ca8936df.entry.js → p-2f45506d.entry.js} +1 -1
- package/dist/ezui/p-3176a6ef.entry.js +1 -0
- package/dist/ezui/{p-23dab72f.entry.js → p-31b71e50.entry.js} +1 -1
- package/dist/ezui/{p-0378416a.entry.js → p-44caad9a.entry.js} +1 -1
- package/dist/ezui/{p-b8b5e643.entry.js → p-4e0628a7.entry.js} +1 -1
- package/dist/ezui/{p-7567ccdd.entry.js → p-555c9018.entry.js} +1 -1
- package/dist/ezui/{p-9066b0b0.entry.js → p-56fe5341.entry.js} +1 -1
- package/dist/ezui/p-5895e687.js +1 -0
- package/dist/ezui/p-5a14f506.entry.js +1 -0
- package/dist/ezui/{p-044d46d5.entry.js → p-5b205c80.entry.js} +1 -1
- package/dist/ezui/{p-33b720aa.entry.js → p-5ec0ae79.entry.js} +1 -1
- package/dist/ezui/{p-6fc26622.entry.js → p-5ed81457.entry.js} +1 -1
- package/dist/ezui/p-5eea9886.js +1 -0
- package/dist/ezui/{p-fc194825.entry.js → p-6e429cff.entry.js} +1 -1
- package/dist/ezui/{p-11bfeca3.entry.js → p-77a4bd35.entry.js} +1 -1
- package/dist/ezui/{p-2069c78a.entry.js → p-7e677b7b.entry.js} +1 -1
- package/dist/ezui/{p-e18d9e6a.entry.js → p-7fdd479f.entry.js} +1 -1
- package/dist/ezui/p-81145609.entry.js +1 -0
- package/dist/ezui/{p-e6ebc6a9.entry.js → p-84b1c99e.entry.js} +1 -1
- package/dist/ezui/{p-22ea800a.entry.js → p-8ac8093c.entry.js} +1 -1
- package/dist/ezui/{p-82fa4b09.entry.js → p-8df1ca33.entry.js} +1 -1
- package/dist/ezui/p-9142b27a.entry.js +1 -0
- package/dist/ezui/p-9567b31a.entry.js +1 -0
- package/dist/ezui/{p-017aafe1.entry.js → p-9f22e1dc.entry.js} +1 -1
- package/dist/ezui/{p-c2b20f78.entry.js → p-9f5fa3f9.entry.js} +1 -1
- package/dist/ezui/{p-0cfbbe82.entry.js → p-a4cee65d.entry.js} +1 -1
- package/dist/ezui/{p-acddfb2e.js → p-a64cfcfc.js} +1 -1
- package/dist/ezui/{p-dfca5946.entry.js → p-a80b1287.entry.js} +1 -1
- package/dist/ezui/p-bc2f844e.entry.js +1 -0
- package/dist/ezui/p-bf9dec89.entry.js +1 -0
- package/dist/ezui/{p-92748142.entry.js → p-c0d9c4f8.entry.js} +1 -1
- package/dist/ezui/{p-4818b8ce.entry.js → p-c1527804.entry.js} +1 -1
- package/dist/ezui/p-c5df78be.entry.js +1 -0
- package/dist/ezui/{p-a79f3789.entry.js → p-cd07f8be.entry.js} +1 -1
- package/dist/ezui/{p-708b196e.entry.js → p-da1b4a38.entry.js} +1 -1
- package/dist/ezui/{p-c7035d65.entry.js → p-dc73e1fe.entry.js} +1 -1
- package/dist/ezui/{p-2f351332.entry.js → p-e06a9886.entry.js} +1 -1
- package/dist/ezui/p-e07e4671.js +1 -0
- package/dist/ezui/{p-1bb62d6b.entry.js → p-e3544d23.entry.js} +1 -1
- package/dist/ezui/{p-9e95bfeb.entry.js → p-e6a9041d.entry.js} +1 -1
- package/dist/ezui/{p-000159dc.entry.js → p-e75c7a23.entry.js} +1 -1
- package/dist/ezui/{p-68b2e579.entry.js → p-ea54d056.entry.js} +1 -1
- package/dist/ezui/{p-ba25a351.entry.js → p-ecaac11f.entry.js} +1 -1
- package/dist/ezui/{p-9e45446f.entry.js → p-f4861c6a.entry.js} +1 -1
- package/dist/ezui/{p-3eaa0f67.entry.js → p-f5a30e35.entry.js} +1 -1
- package/dist/ezui/{p-44b39e81.entry.js → p-fa6732f2.entry.js} +1 -1
- package/dist/types/components/ez-combo-box/ez-combo-box.d.ts +0 -2
- package/dist/types/components/ez-form-view/fieldbuilder/templates/SearchInputPlus.tpl.d.ts +2 -0
- package/dist/types/components/ez-grid/controller/EzGridController.d.ts +4 -0
- package/dist/types/components/ez-grid/controller/ag-grid/AgGridController.d.ts +5 -0
- package/dist/types/components/ez-grid/controller/ag-grid/DataSource.d.ts +1 -0
- package/dist/types/components/ez-grid/controller/ag-grid/GridEditionManager.d.ts +1 -0
- package/dist/types/components/ez-grid/controller/ag-grid/editor/templates/SearchPlus.tpl.d.ts +3 -0
- package/dist/types/components/ez-search-plus/ez-search-plus.d.ts +184 -0
- package/dist/types/components/ez-search-plus/subcomponent/ez-search-result-list/ez-search-result-list.d.ts +26 -0
- package/dist/types/components/ez-text-input/ez-text-input.d.ts +6 -9
- package/dist/types/components/ez-tooltip/ez-tooltip.d.ts +37 -5
- package/dist/types/components.d.ts +330 -12
- package/dist/types/utils/constants.d.ts +2 -0
- package/dist/types/utils/index.d.ts +1 -0
- package/dist/types/utils/search/types.d.ts +12 -0
- package/package.json +2 -2
- package/react/components.d.ts +62 -60
- package/react/components.js +2 -0
- package/react/components.js.map +1 -1
- package/react/react-component-lib/createComponent.d.ts +1 -1
- package/react/react-component-lib/createComponent.js.map +1 -1
- package/react/react-component-lib/createOverlayComponent.js.map +1 -1
- package/react/react-component-lib/interfaces.js +1 -0
- package/react/react-component-lib/utils/attachProps.d.ts +1 -1
- package/react/react-component-lib/utils/attachProps.js.map +1 -1
- package/react/react-component-lib/utils/dev.js.map +1 -1
- package/react/react-component-lib/utils/index.d.ts +2 -2
- package/react/react-component-lib/utils/index.js.map +1 -1
- package/dist/collection/utils/ResponsiveInputUtils.js +0 -26
- package/dist/esm/constants-4e0d35b7.js +0 -5
- package/dist/ezui/p-05e1f4e7.js +0 -1
- package/dist/ezui/p-0cd9d4ec.entry.js +0 -1
- package/dist/ezui/p-37c840e8.entry.js +0 -1
- package/dist/ezui/p-4607fb89.js +0 -1
- package/dist/ezui/p-6d8b3298.entry.js +0 -1
- package/dist/ezui/p-6ec40dec.entry.js +0 -1
- package/dist/ezui/p-7ebbee50.entry.js +0 -1
- package/dist/ezui/p-e3f8660b.entry.js +0 -1
- package/dist/ezui/p-ede42942.entry.js +0 -1
- package/dist/types/utils/ResponsiveInputUtils.d.ts +0 -6
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-baa5e267.js';
|
|
2
2
|
import { ElementIDUtils } from '@sankhyalabs/core';
|
|
3
3
|
import { C as CheckMode } from './CheckMode-bdb2ec19.js';
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, g as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, g as getElement } from './index-baa5e267.js';
|
|
2
2
|
import { ElementIDUtils } from '@sankhyalabs/core';
|
|
3
3
|
|
|
4
4
|
const ezChipCss = ":host{--ez-label-chip--height:30px;--ez-label-chip__label--font-size:var(--text--medium, 14px);--ez-label-chip__label--font-family:var(--font-pattern, Arial);--ez-label-chip__label--font-weight:var(--text-weight--medium, 400);--ez-label-chip__label--space--medium:var(--space--medium, 12px);--ez-label-chip__label--title--primary:var(--title--primary, #2B3A54);--ez-label-chip__label--text--primary:var(--text--primary, #626e82);--ez-label-chip__label__container--border-radius:var(--border--radius-large, 24px);--ez-label-chip__label__container--border:1px solid;--ez-label-chip__label__container--border-color-strokes:var(--color--strokes, #DCE0E8);--ez-label-chip__label__container--color-primary:var(--color--primary, #008561);--ez-label-chip__label__container-color--disable-secondary:var(--color--disable-secondary, #F2F5F8);--ez-label-chip__label__container--background-color:var(--color--primary-300);--ez-label-chip__label__container--border-color:#0085610F;--ez-label-chip__label__container--default--border-color--active:var(--color--primary, #007a5a);--ez-label-chip__label__container--default--background-color--hover:var(--color--primary-300, #f2faf8);--ez-label-chip__label__container--default--color--hover:var(--color--primary, #f2faf8);--ez-label-chip__label__container--text--disabled:var(--text--disable, #AFB6C0);--ez-label-chip__label__container--default--border-color--active:var(--color--primary);--ez-label-chip__label__container--default--margin-top:var(--space-extra-small, 3px)}.lbl{display:flex;white-space:nowrap;align-items:center;cursor:pointer;user-select:none;color:var(--ez-label-chip__label--title--primary);height:var(--ez-label-chip--height);font-family:var(--ez-label-chip__label--font-family);font-size:var(--ez-label-chip__label--font-size);font-weight:var(--ez-label-chip__label--font-weight)}.lbl--active{color:var(--ez-label-chip__label__container--default--color--hover)}.lbl--disabled{color:var(--ez-label-chip__label__container--text--disabled)}.label__container{cursor:pointer;width:max-content;display:flex;flex-wrap:wrap;align-items:center;background-color:#FFFFFF;color:var(--ez-label-chip__label--text--primary);fill:var(--ez-label-chip__label--text--primary);--ez-icon--color:var(--ez-label-chip__label--text--primary);border:var(--ez-label-chip__label__container--border);border-radius:var(--ez-label-chip__label__container--border-radius);border-color:var(--ez-label-chip__label__container--border-color-strokes);padding-right:var(--ez-label-chip__label--space--medium);padding-left:var(--ez-label-chip__label--space--medium);outline-color:var(--ez-label-chip__label__container--default--border-color--active);margin-top:var(--ez-label-chip__label__container--default--margin-top)}.label__content{display:flex;align-items:center;flex-wrap:wrap;--ez-icon--color:var(--ez-label-chip__label--text--primary)}.label__container--disabled{cursor:default;border-color:var(--ez-label-chip__label__container-color--disable-secondary);background-color:var(--ez-label-chip__label__container-color--disable-secondary);fill:var(--ez-label-chip__label__container--text--disabled);color:var(--ez-label-chip__label__container--text--disabled);--ez-icon--color:var(--ez-label-chip__label__container--text--disabled)}.label__container--active{border-color:var(--ez-label-chip__label__container--default--background-color--hover);background-color:var(--ez-label-chip__label__container--default--background-color--hover);color:var(--ez-label-chip__label__container--default--color--hover);fill:var(--ez-label-chip__label__container--default--color--hover);--ez-icon--color:var(--ez-label-chip__label__container--default--color--hover)}.label__container:hover{border-color:var(--ez-label-chip__label__container--default--border-color--active)}.label__container:focus{outline:none;box-shadow:0 0 0 2px var(--ez-label-chip__label__container--default--border-color--active)}.label__container--disabled:hover{cursor:default;border:var(--ez-label-chip__label__container--border);border-color:var(--ez-label-chip__label__container-color--disable-secondary);background-color:var(--ez-label-chip__label__container-color--disable-secondary);fill:var(--ez-label-chip__label__container--text--disabled);color:var(--ez-label-chip__label__container--text--disabled);--ez-icon--color:var(--ez-label-chip__label__container--text--disabled)}.label__content__icon{display:flex;cursor:pointer;color:var(--ez-label-chip__label--text--primary);fill:var(--ez-label-chip__label--text--primary);--ez-icon--color:var(--ez-label-chip__label--text--primary)}.label__container--row-reverse{flex-direction:row-reverse}.label__container .btn-close{padding:0px 0px 0px 8px}.label__container--row-reverse .btn-close{padding:0px 8px 0px 0px}.cursor-disable{cursor:default}ez-icon{--ez-icon--color:inherit}";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, g as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, g as getElement } from './index-baa5e267.js';
|
|
2
2
|
import { ElementIDUtils } from '@sankhyalabs/core';
|
|
3
3
|
import { A as ApplicationUtils } from './ApplicationUtils-eaf91331.js';
|
|
4
4
|
import './DialogType-54a62731.js';
|
|
5
5
|
import './CheckMode-bdb2ec19.js';
|
|
6
|
-
import './
|
|
6
|
+
import './types-6f6b2650.js';
|
|
7
7
|
import './FormLayout-54092963.js';
|
|
8
8
|
|
|
9
9
|
const ezCollapsibleBoxCss = ":host{--ez-collapsible-box--font-size:var(--title--medium, 14px);--ez-collapsible-box--font-family:var(--font-pattern, Arial);--ez-collapsible-box--font-weight:var(--text-weight--large, 600);--ez-collapsible-box--color:var(--title--primary);--ez-collapsible-box--subtitle--font-size:var(--text--medium, 14px);--ez-collapsible-box--subtitle--font-family:var(--font-pattern, 'Roboto');--ez-collapsible-box--subtitle--font-weight:var(--text-weight--medium, 400);--ez-collapsible-box--subtitle--color:var(--text--primary);--ez-collapsible-box--subtitle--margin-bottom:var(--space--medium, 12px);--ez-collapsible-box--focus--color:var(--color--primary-600);--ez-collapsible-box__icon--color:var(--ez-collapsible-box--color);--ez-collapsible-box__header--padding-top:0px;--ez-collapsible-box__header--padding-bottom:0px;--ez-collapsible-box__header--padding-right:0px;--ez-collapsible-box__header--padding-left:0px;display:flex;flex-wrap:wrap;width:100%}ez-icon{--ez-icon--color:inherit}.collapsible-box{display:flex;flex-direction:column;width:100%}.collapsable-box--bordered{border:var(--border--small);border-color:var(--color--strokes);border-radius:var(--border--radius-medium);padding:var(--space--xs)}.collapsible-box__header{display:flex;box-sizing:border-box;padding-top:var(--ez-collapsible-box__header--padding-top);padding-bottom:var(--ez-collapsible-box__header--padding-bottom);padding-right:var(--ez-collapsible-box__header--padding-right);padding-left:var(--ez-collapsible-box__header--padding-left)}.collapsible-box__title{position:relative;width:100%;display:flex;box-sizing:border-box;align-items:center;outline:none;border:none;background-color:unset;cursor:pointer;padding:0px;text-align:left;color:var(--ez-collapsible-box--color);--ez-icon--color:var(--ez-collapsible-box__icon--color);margin-bottom:var(--space--medium, 12px)}.collapsible-box__title:focus{color:var(--ez-collapsible-box--focus--color);--ez-icon--color:var(--ez-collapsible-box--focus--color)}.collapsible-box__label{display:block;white-space:nowrap;overflow:hidden;cursor:pointer;text-overflow:ellipsis;box-sizing:border-box;margin-left:6px;gap:6px;font-family:var(--ez-collapsible-box--font-family);font-size:var(--ez-collapsible-box--font-size);font-weight:var(--ez-collapsible-box--font-weight)}.subtitle-box__label{display:flex;overflow:hidden;text-overflow:ellipsis;box-sizing:border-box;font-family:var(--ez-collapsible-box--subtitle--font-family);font-size:var(--ez-collapsible-box--subtitle--font-size);font-weight:var(--ez-collapsible-box--subtitle--font-weight);color:var(--ez-collapsible-box--subtitle--color);margin-bottom:var(--ez-collapsible-box--subtitle--margin-bottom)}.subtitle-box__content{width:100%}.collapsible-box__label ez-icon{visibility:hidden;transition:2s all ease-in-out}.collapsible-box__label:hover ez-icon{visibility:visible}.collapsible-box__text-edit{margin-left:6px}.collapsible-box__icon{transform:rotate(90deg) translate(0px, 14%);transition:transform var(--transition)}.collapsible-box__icon--collapsed{transform:rotate(0deg) translate(-14%, 0px)}.collapsible-box__title--icon-right{flex-direction:row-reverse}.collapsible-box__title--icon-right .collapsible-box__icon{transform:rotate(90deg) translate(0px, -14%)}.collapsible-box__title--icon-right .collapsible-box__icon--collapsed{transform:rotate(0deg) translate(14%, 0px)}.collapsible-box__title--icon-right .collapsible-box__label{margin-left:0px;margin-right:6px}.collapsible-box__title--left{margin-right:auto}.collapsible-box__title--right{margin-left:auto}.collapsible-box__title--center{margin-left:auto;margin-right:auto}.collapsible-box__title--stretch{justify-content:space-between;width:100%}.collapsible-box__title--no-margin{margin-bottom:0}.collapsible-box__content{display:flex;flex-wrap:wrap;width:100%;height:0px;max-height:0px;opacity:0;overflow:hidden;transition:all var(--transition, 0.5s)}.collapsible-box__content--show{height:100%;max-height:none;opacity:1;overflow:visible;transition:all var(--transition, 0.5s)}.font--x-small{font-size:10px}.font--small{font-size:12px}.font--medium{font-size:14px}.font--large{font-size:16px}.font--x-large{font-size:20px}";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r as registerInstance, h,
|
|
1
|
+
import { r as registerInstance, h, H as Host, c as createEvent, g as getElement } from './index-baa5e267.js';
|
|
2
2
|
import { ElementIDUtils, ObjectUtils, HTMLBuilder, StringUtils } from '@sankhyalabs/core';
|
|
3
|
-
import { C as CustomEditorSource } from './
|
|
3
|
+
import { C as CustomEditorSource } from './types-6f6b2650.js';
|
|
4
4
|
import { A as ApplicationUtils } from './ApplicationUtils-eaf91331.js';
|
|
5
5
|
import './DialogType-54a62731.js';
|
|
6
6
|
import './CheckMode-bdb2ec19.js';
|
|
@@ -242,7 +242,7 @@ const EzCustomFormInput = class {
|
|
|
242
242
|
this.gui = gui;
|
|
243
243
|
return;
|
|
244
244
|
}
|
|
245
|
-
if (!(gui instanceof
|
|
245
|
+
if (!(gui instanceof HTMLElement) && typeof gui !== 'string') {
|
|
246
246
|
this.handleValue(gui);
|
|
247
247
|
this.gui = gui;
|
|
248
248
|
return;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-baa5e267.js';
|
|
2
2
|
import { ObjectUtils, ElementIDUtils } from '@sankhyalabs/core';
|
|
3
3
|
import './ApplicationUtils-eaf91331.js';
|
|
4
4
|
import { C as CSSVarsUtils } from './CSSVarsUtils-acba92d7.js';
|
|
5
5
|
import './DialogType-54a62731.js';
|
|
6
6
|
import './CheckMode-bdb2ec19.js';
|
|
7
|
-
import './
|
|
7
|
+
import './types-6f6b2650.js';
|
|
8
8
|
import './FormLayout-54092963.js';
|
|
9
9
|
|
|
10
10
|
const ezComboBoxCss = ":host{--ez-combo-box--height:42px;--ez-combo-box--width:100%;--ez-combo-box--border-radius:var(--border--radius-medium, 12px);--ez-combo-box--font-size:var(--text--medium, 14px);--ez-combo-box--font-family:var(--font-pattern, Arial);--ez-combo-box--background-color--xlight:var(--background--xlight, #fff);--ez-combo-box__input--background-color:var(--background--medium, #e0e0e0);--ez-combo-box__input--border:var(--border--medium, 2px solid);--ez-combo-box__input--border-color:var(--ez-combo-box__input--background-color);--ez-combo-box__input--focus--border-color:var(--color--primary, #008561);--ez-combo-box__input--disabled--background-color:var(--color--disable-secondary, #F2F5F8);--ez-combo-box__input--disabled--color:var(--text--disable, #AFB6C0);--ez-combo-box__btn--color:var(--title--primary, #2B3A54);--ez-combo-box__btn-disabled--color:var(--text--disable, #AFB6C0);--ez-combo-box__btn-hover--color:var(--color--primary, #4e4e4e);width:var(--ez-combo-box--width)}ez-icon{--ez-icon--color:inherit;font-weight:var(--text-weight--large, 600)}.suppressed-search-input{--ez-text-input__input--border-color:var(--color--strokes, #dce0e8);--ez-text-input__input--disabled--background-color:var(--background--xlight, #fff);--ez-text-input__input--disabled--color:var(--title--primary, #2B3A54)}.btn{outline:none;border:none;background:none;cursor:pointer;padding:0px;color:var(--ez-combo-box__btn--color)}.btn:disabled{cursor:unset;color:var(--ez-combo-box__btn-disabled--color)}.btn:disabled:hover{cursor:not-allowed;color:var(--ez-combo-box__btn-disabled--color)}.btn:hover{color:var(--ez-combo-box__btn-hover--color)}.btn__close{visibility:hidden}ez-text-input:hover .btn__close,ez-text-input:focus .btn__close{visibility:visible}.text-input-slot-container{--ez-text-input__icon--width:32px;--ez-text-input__min-width:var(--ez-combo-box__min-width);--ez-text-input__max-width:var(--ez-combo-box__max-width)}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg)}}@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}";
|
|
@@ -25,7 +25,6 @@ const EzComboBox = class {
|
|
|
25
25
|
this._startLoading = false;
|
|
26
26
|
this._showLoading = true;
|
|
27
27
|
this._criteria = undefined;
|
|
28
|
-
this._textInputReady = undefined;
|
|
29
28
|
this.limitCharsToSearch = 3;
|
|
30
29
|
this.value = undefined;
|
|
31
30
|
this.label = undefined;
|
|
@@ -305,11 +304,6 @@ const EzComboBox = class {
|
|
|
305
304
|
//---------------------------------------------
|
|
306
305
|
// Lifecycle web component
|
|
307
306
|
//---------------------------------------------
|
|
308
|
-
componentDidRender() {
|
|
309
|
-
if (this._textInput) {
|
|
310
|
-
this._textInputReady = true;
|
|
311
|
-
}
|
|
312
|
-
}
|
|
313
307
|
componentWillLoad() {
|
|
314
308
|
if (this.options === undefined) {
|
|
315
309
|
this.options = [];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-baa5e267.js';
|
|
2
2
|
import { DateUtils, ElementIDUtils } from '@sankhyalabs/core';
|
|
3
3
|
import { C as CSSVarsUtils } from './CSSVarsUtils-acba92d7.js';
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-baa5e267.js';
|
|
2
2
|
import { DateUtils, TimeFormatter, ElementIDUtils } from '@sankhyalabs/core';
|
|
3
3
|
import { C as CSSVarsUtils } from './CSSVarsUtils-acba92d7.js';
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, f as forceUpdate, h, g as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, f as forceUpdate, h, g as getElement } from './index-baa5e267.js';
|
|
2
2
|
import { D as DialogType } from './DialogType-54a62731.js';
|
|
3
3
|
import { FloatingManager, ElementIDUtils, KeyboardManager } from '@sankhyalabs/core';
|
|
4
4
|
import { F as FocusResolver } from './FocusResolver-1ccbf850.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, H as Host } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host } from './index-baa5e267.js';
|
|
2
2
|
import { ObjectUtils, ArrayUtils } from '@sankhyalabs/core';
|
|
3
3
|
import { i as isContinuousSequence } from './ezListHelper-00fb9b8d.js';
|
|
4
4
|
import { E as EzScrollDirection } from './EzScrollDirection-2df26c93.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h, r as registerInstance, c as createEvent, H as Host, g as getElement } from './index-
|
|
1
|
+
import { h, r as registerInstance, c as createEvent, H as Host, g as getElement } from './index-baa5e267.js';
|
|
2
2
|
import { ElementIDUtils, ObjectUtils } from '@sankhyalabs/core';
|
|
3
3
|
|
|
4
4
|
const DropdownItem = ({ item, hasIcon, hasChildren, isLockedLevels, onSubActionClick }) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, g as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, g as getElement } from './index-baa5e267.js';
|
|
2
2
|
import { StringUtils, ElementIDUtils } from '@sankhyalabs/core';
|
|
3
3
|
|
|
4
4
|
const ezFileItemCss = ":host{display:flex;width:100%;--ez-file-item--height:42px;--ez-file-item--padding:9px;--ez-file-item--border-radius:var(--border--radius-medium, 12px);--ez-file-item--border-color:var(--color--strokes, #DCE0E8);--ez-file-item--border-style:var(--border--small, 1px solid);--ez-file-item--font-family:var(--font-pattern, Arial);--ez-file-item--font-size:var(--text--medium, 14px);--ez-file-item--font-weight:var(--text-weight--medium, 400);--ez-file-item--color:var(--title--primary, #2B3A54);--ez-file-item__file-size--font-weight:var(--text-weight--large, 600);--ez-file-item__file-size--color:var(--color--primary, #008561);--ez-file-item__background-progress--color:var(--color--primary-300, E2F4EF);--ez-file-item--icon-color:var(--title--primary, #2B3A54)}.box{display:flex;box-sizing:border-box;position:relative;align-items:center;justify-content:space-between;width:100%;padding:var(--ez-file-item--padding);border:var(--ez-file-item--border-color) var(--ez-file-item--border-style);border-radius:var(--ez-file-item--border-radius);height:var(--ez-file-item--height)}.box::before{content:\"\";position:absolute;top:0;left:0;width:100%;height:100%;clip-path:inset(2px calc(var(--ez-file-item--upload-progress, 0%) + 2px) 2px 2px round calc(var(--ez-file-item--border-radius) - 4px));background-color:var(--ez-file-item__background-progress--color)}.content{display:flex;align-items:center;z-index:0;overflow:hidden}.file-name{text-overflow:ellipsis;overflow:hidden;white-space:nowrap;font-family:var(--ez-file-item--font-family);font-size:var(--ez-file-item--font-size);font-weight:var(--ez-file-item--font-weight);color:var(--ez-file-item--color)}.file-type-icon{flex-shrink:0;--ez-icon--color:var(--ez-file-item--icon-color);padding-right:var(--ez-file-item--padding)}.file-size{padding-left:2px;overflow:hidden;flex-shrink:0;white-space:nowrap;font-family:var(--ez-file-item--font-family);font-size:var(--ez-file-item--font-size);font-weight:var(--ez-file-item__file-size--font-weight);color:var(--ez-file-item__file-size--color)}.btn-remove{cursor:pointer;flex-shrink:0;--ez-icon--color:var(--ez-file-item--icon-color)}";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, g as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, g as getElement } from './index-baa5e267.js';
|
|
2
2
|
import { ElementIDUtils } from '@sankhyalabs/core';
|
|
3
3
|
import { C as CSSVarsUtils } from './CSSVarsUtils-acba92d7.js';
|
|
4
4
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { h, r as registerInstance, c as createEvent, g as getElement, H as Host } from './index-
|
|
2
|
-
import { ObjectUtils, UserInterface, ElementIDUtils } from '@sankhyalabs/core';
|
|
3
|
-
import { R as REQUIRED_INFO } from './constants-
|
|
1
|
+
import { h, r as registerInstance, c as createEvent, g as getElement, H as Host } from './index-baa5e267.js';
|
|
2
|
+
import { ObjectUtils, StringUtils, UserInterface, ElementIDUtils } from '@sankhyalabs/core';
|
|
3
|
+
import { R as REQUIRED_INFO } from './constants-b036528f.js';
|
|
4
4
|
import { C as CheckMode } from './CheckMode-bdb2ec19.js';
|
|
5
5
|
|
|
6
6
|
const buildSwitch = (field) => {
|
|
@@ -73,12 +73,6 @@ function buildNumeric(fieldName, fieldLabel, readOnly, precision, prettyPrecisio
|
|
|
73
73
|
h("ez-number-input", { class: "ez-input__no-margin", enabled: !readOnly, label: fieldLabel, precision: precision, prettyPrecision: prettyPrecision, "data-field-name": fieldName, "data-context-name": contextName, key: fieldName, canShowError: canShowError })));
|
|
74
74
|
}
|
|
75
75
|
|
|
76
|
-
const buildSearch = ({ name, label, readOnly, required, contextName, canShowError, optionLoader, props }) => {
|
|
77
|
-
var _a;
|
|
78
|
-
return (h("div", { class: "ez-col ez-col--sd-12" },
|
|
79
|
-
h("ez-search", { class: "ez-input__no-margin", enabled: !readOnly, suppressEmptyOption: required, label: label, "data-field-name": name, "data-context-name": contextName, key: name, canShowError: canShowError, optionLoader: optionLoader, ignoreLimitCharsToSearch: (_a = props === null || props === void 0 ? void 0 : props.ignoreLimitCharsToSearch) !== null && _a !== void 0 ? _a : false })));
|
|
80
|
-
};
|
|
81
|
-
|
|
82
76
|
const buildTextArea = ({ name, label, readOnly, contextName, rows, canShowError }) => {
|
|
83
77
|
return (h("div", { class: "ez-col ez-col--sd-12", key: name },
|
|
84
78
|
h("ez-text-area", { enabled: !readOnly, label: label, "data-field-name": name, "data-context-name": contextName, rows: rows, canShowError: canShowError })));
|
|
@@ -89,6 +83,18 @@ const buildTextInput = ({ name, label, readOnly, contextName, canShowError, prop
|
|
|
89
83
|
h("ez-text-input", { class: "ez-input__no-margin", label: label, "data-field-name": name, "data-context-name": contextName, key: name, enabled: !readOnly, canShowError: canShowError, mask: props === null || props === void 0 ? void 0 : props.mask, "clean-value-mask": props === null || props === void 0 ? void 0 : props.cleanValueMask })));
|
|
90
84
|
};
|
|
91
85
|
|
|
86
|
+
const buildSearchPlus = ({ name, label, readOnly, contextName, canShowError, optionLoader, props }) => {
|
|
87
|
+
const hasDescriptionField = !StringUtils.isEmpty(props === null || props === void 0 ? void 0 : props.DESCRIPTIONFIELD);
|
|
88
|
+
return (h("div", { class: "ez-col ez-col--sd-12" },
|
|
89
|
+
h("ez-search-plus", { class: "ez-input__no-margin", enabled: !readOnly, label: label, "data-field-name": name, "data-context-name": contextName, key: name, canShowError: canShowError, optionLoader: optionLoader, hideDescriptionInput: !hasDescriptionField })));
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
const buildSearch = ({ name, label, readOnly, required, contextName, canShowError, optionLoader, props }) => {
|
|
93
|
+
var _a;
|
|
94
|
+
return (h("div", { class: "ez-col ez-col--sd-12" },
|
|
95
|
+
h("ez-search", { class: "ez-input__no-margin", enabled: !readOnly, suppressEmptyOption: required, label: label, "data-field-name": name, "data-context-name": contextName, key: name, canShowError: canShowError, optionLoader: optionLoader, ignoreLimitCharsToSearch: (_a = props === null || props === void 0 ? void 0 : props.ignoreLimitCharsToSearch) !== null && _a !== void 0 ? _a : false })));
|
|
96
|
+
};
|
|
97
|
+
|
|
92
98
|
const uiBuilders = new Map();
|
|
93
99
|
uiBuilders.set(UserInterface.CHECKBOX, buildCheckBox);
|
|
94
100
|
uiBuilders.set(UserInterface.SWITCH, buildSwitch);
|
|
@@ -101,6 +107,7 @@ uiBuilders.set(UserInterface.FILE, buildFile);
|
|
|
101
107
|
uiBuilders.set(UserInterface.DECIMALNUMBER, buildDecimal);
|
|
102
108
|
uiBuilders.set(UserInterface.INTEGERNUMBER, buildInteger);
|
|
103
109
|
uiBuilders.set(UserInterface.SEARCH, buildSearch);
|
|
110
|
+
uiBuilders.set(UserInterface.SEARCHPLUS, buildSearchPlus);
|
|
104
111
|
uiBuilders.set(UserInterface.LONGTEXT, buildTextArea);
|
|
105
112
|
const fieldBuilder = (field) => {
|
|
106
113
|
const builder = uiBuilders.get(field.userInterface) || buildTextInput;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, f as forceUpdate, H as Host, g as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, f as forceUpdate, H as Host, g as getElement } from './index-baa5e267.js';
|
|
2
2
|
import { DateUtils, ApplicationContext, Action, StringUtils, DataUnit, ElementIDUtils } from '@sankhyalabs/core';
|
|
3
|
-
import { b as buildFieldMetadata, D as DataBinder } from './DataBinder-
|
|
3
|
+
import { b as buildFieldMetadata, D as DataBinder } from './DataBinder-89946126.js';
|
|
4
4
|
import { F as FormLayout } from './FormLayout-54092963.js';
|
|
5
5
|
import './ApplicationUtils-eaf91331.js';
|
|
6
6
|
import './DialogType-54a62731.js';
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { h, r as registerInstance, c as createEvent, H as Host, g as getElement } from './index-
|
|
2
|
-
import { Action, DataUnit, ObjectUtils as ObjectUtils$1, HTMLBuilder, ApplicationContext, StringUtils as StringUtils$1,
|
|
1
|
+
import { h, r as registerInstance, c as createEvent, H as Host, g as getElement } from './index-baa5e267.js';
|
|
2
|
+
import { Action, DataUnit, ObjectUtils as ObjectUtils$1, UserInterface, HTMLBuilder, ApplicationContext, StringUtils as StringUtils$1, LockManager, LockManagerOperation, NumberUtils as NumberUtils$1, MaskFormatter, DataType, SortMode, ElementIDUtils, ColumnFilterManager as ColumnFilterManager$1, DateUtils as DateUtils$1, ArrayUtils as ArrayUtils$1, FieldComparator, JSUtils, OverflowWatcher, OVERFLOWED_CLASS_NAME, KeyboardManager } from '@sankhyalabs/core';
|
|
3
3
|
import { SelectionMode } from '@sankhyalabs/core/dist/dataunit/DataUnit';
|
|
4
4
|
import { A as ApplicationUtils } from './ApplicationUtils-eaf91331.js';
|
|
5
5
|
import './DialogType-54a62731.js';
|
|
6
6
|
import './CheckMode-bdb2ec19.js';
|
|
7
|
-
import { C as CustomEditorSource, a as CustomRenderSource } from './
|
|
7
|
+
import { C as CustomEditorSource, a as CustomRenderSource } from './types-6f6b2650.js';
|
|
8
8
|
import './FormLayout-54092963.js';
|
|
9
|
-
import { D as DISTINCT_FILTER_NAME_PREFIX, E as EZ_GRID_LOADING_SOURCE } from './constants-
|
|
10
|
-
import { b as buildFieldMetadata, R as RecordValidationProcessor, D as DataBinder } from './DataBinder-
|
|
9
|
+
import { D as DISTINCT_FILTER_NAME_PREFIX, E as EZ_GRID_LOADING_SOURCE, P as PRESENTATION_COL_ID_PROP_NAME, a as PRESENTATION_FROM_COL_PROP_NAME } from './constants-b036528f.js';
|
|
10
|
+
import { b as buildFieldMetadata, R as RecordValidationProcessor, D as DataBinder } from './DataBinder-89946126.js';
|
|
11
11
|
import { F as FocusResolver } from './FocusResolver-1ccbf850.js';
|
|
12
12
|
|
|
13
13
|
/**
|
|
@@ -50247,14 +50247,20 @@ class DataSource {
|
|
|
50247
50247
|
return indexA - indexB;
|
|
50248
50248
|
});
|
|
50249
50249
|
this._dataUnit.metadata.fields.forEach(f => {
|
|
50250
|
-
var _a;
|
|
50250
|
+
var _a, _b;
|
|
50251
50251
|
if (f.visible !== false && f.name !== this.RECORD_ARCHIVE) {
|
|
50252
50252
|
const props = new Map();
|
|
50253
50253
|
const properties = this._dataUnit.getField(f.name).properties;
|
|
50254
50254
|
for (const value in properties) {
|
|
50255
50255
|
props.set(value, properties[value]);
|
|
50256
50256
|
}
|
|
50257
|
-
|
|
50257
|
+
const col = { label: f.label, name: f.name, userInterface: f.userInterface, options: (_a = this._dataUnit.getField(f.name).properties) === null || _a === void 0 ? void 0 : _a.options, props };
|
|
50258
|
+
columnDefs.push(col);
|
|
50259
|
+
if (f.userInterface === UserInterface.SEARCHPLUS && ((_b = f.properties) === null || _b === void 0 ? void 0 : _b.DESCRIPTIONFIELD)) {
|
|
50260
|
+
const descriptionCol = this.buildDescriptionColumn(f);
|
|
50261
|
+
columnDefs.push(descriptionCol);
|
|
50262
|
+
f.properties[PRESENTATION_COL_ID_PROP_NAME] = descriptionCol.name;
|
|
50263
|
+
}
|
|
50258
50264
|
}
|
|
50259
50265
|
});
|
|
50260
50266
|
}
|
|
@@ -50264,6 +50270,17 @@ class DataSource {
|
|
|
50264
50270
|
console.warn(error);
|
|
50265
50271
|
}
|
|
50266
50272
|
}
|
|
50273
|
+
buildDescriptionColumn(field) {
|
|
50274
|
+
var _a, _b, _c, _d;
|
|
50275
|
+
const props = new Map();
|
|
50276
|
+
props.set(PRESENTATION_FROM_COL_PROP_NAME, field.name);
|
|
50277
|
+
return {
|
|
50278
|
+
label: `${(_a = field.properties) === null || _a === void 0 ? void 0 : _a.DESCRIPTIONFIELDLABEL} (${(_b = field.properties) === null || _b === void 0 ? void 0 : _b.DESCRIPTIONENTITY})`,
|
|
50279
|
+
name: `${(_c = field.properties) === null || _c === void 0 ? void 0 : _c.ENTITYNAME}.${(_d = field.properties) === null || _d === void 0 ? void 0 : _d.DESCRIPTIONFIELD}`,
|
|
50280
|
+
userInterface: UserInterface.SHORTTEXT,
|
|
50281
|
+
props
|
|
50282
|
+
};
|
|
50283
|
+
}
|
|
50267
50284
|
}
|
|
50268
50285
|
|
|
50269
50286
|
class EzGridCustomHeader {
|
|
@@ -50674,6 +50691,21 @@ const buildSwitch = (fieldMetadata) => {
|
|
|
50674
50691
|
return combo;
|
|
50675
50692
|
};
|
|
50676
50693
|
|
|
50694
|
+
const buildSearchPlus = ({ name, required, readOnly, dataUnit }) => {
|
|
50695
|
+
const ezSearch = HTMLBuilder.parseElement(`<ez-search-plus
|
|
50696
|
+
class="ez-grid grid_editor"
|
|
50697
|
+
mode="slim"
|
|
50698
|
+
suppress-empty-option=${required}
|
|
50699
|
+
enabled=${!readOnly}
|
|
50700
|
+
hide-description-input=${true}
|
|
50701
|
+
/>`);
|
|
50702
|
+
const loader = ApplicationContext.getContextValue("__EZUI__SEARCH__PLUS__OPTION__LOADER__");
|
|
50703
|
+
ezSearch.optionLoader = (argument) => loader(argument, name, dataUnit);
|
|
50704
|
+
ezSearch.autoFocus = true;
|
|
50705
|
+
ezSearch.valueGetter = () => ezSearch.getValueAsync();
|
|
50706
|
+
return ezSearch;
|
|
50707
|
+
};
|
|
50708
|
+
|
|
50677
50709
|
const buildSearch = ({ name, required, readOnly, eGridCell, dataUnit }) => {
|
|
50678
50710
|
var _a;
|
|
50679
50711
|
const ezSearch = HTMLBuilder.parseElement(`<ez-search
|
|
@@ -50706,6 +50738,7 @@ uiBuilders.set(UserInterface.CHECKBOX, buildSwitch);
|
|
|
50706
50738
|
uiBuilders.set(UserInterface.OPTIONSELECTOR, buildComboBox);
|
|
50707
50739
|
uiBuilders.set(UserInterface.LONGTEXT, buildTextAreaInput);
|
|
50708
50740
|
uiBuilders.set(UserInterface.SEARCH, buildSearch);
|
|
50741
|
+
uiBuilders.set(UserInterface.SEARCHPLUS, buildSearchPlus);
|
|
50709
50742
|
class EzCellEditor {
|
|
50710
50743
|
init(params) {
|
|
50711
50744
|
this._rowData = params.data;
|
|
@@ -50904,6 +50937,7 @@ class EzGridCustomCellRender extends EzCellRender {
|
|
|
50904
50937
|
|
|
50905
50938
|
class GridEditionManager {
|
|
50906
50939
|
constructor(dataUnit, useEnterLikeTab, recordsValidator, editionIsDisabled, customEditors, customRenders, enableContinuousInsert, enableGridInsert, lockerId) {
|
|
50940
|
+
this._inProgressChanges = [];
|
|
50907
50941
|
this._dataUnit = dataUnit;
|
|
50908
50942
|
this._recordValidationProcessor = new RecordValidationProcessor(this._dataUnit, {
|
|
50909
50943
|
getRequiredFields: () => this.getRequiredFields(),
|
|
@@ -51003,6 +51037,12 @@ class GridEditionManager {
|
|
|
51003
51037
|
return this._enableContinuousInsert && (this._dataUnit.records.length - 1) === ((_a = this._lastCellEdited) === null || _a === void 0 ? void 0 : _a.rowIndex);
|
|
51004
51038
|
}
|
|
51005
51039
|
async proceedAutoSave() {
|
|
51040
|
+
var _a;
|
|
51041
|
+
//Aguarda outras promises entrarem na fila
|
|
51042
|
+
await new Promise(resolve => setTimeout(resolve, 100));
|
|
51043
|
+
if (this._inProgressChanges.length) {
|
|
51044
|
+
await Promise.all((_a = this._inProgressChanges) === null || _a === void 0 ? void 0 : _a.map(({ promise }) => promise));
|
|
51045
|
+
}
|
|
51006
51046
|
if (!this._dataUnit.isDirty()) {
|
|
51007
51047
|
this.saveSuccess();
|
|
51008
51048
|
return true;
|
|
@@ -51073,7 +51113,9 @@ class GridEditionManager {
|
|
|
51073
51113
|
}
|
|
51074
51114
|
configureColumn(col) {
|
|
51075
51115
|
col.cellEditor = 'ezCellEditor';
|
|
51076
|
-
col.editable
|
|
51116
|
+
if (col.editable != false) {
|
|
51117
|
+
col.editable = params => this.canEdit(params);
|
|
51118
|
+
}
|
|
51077
51119
|
col.suppressKeyboardEvent = (params) => {
|
|
51078
51120
|
if (params.event.key === KeyCode.ESCAPE && params.editing) {
|
|
51079
51121
|
return this._dataUnit.isDirty();
|
|
@@ -51257,6 +51299,14 @@ class GridEditionManager {
|
|
|
51257
51299
|
return;
|
|
51258
51300
|
}
|
|
51259
51301
|
if (value instanceof Promise) {
|
|
51302
|
+
const progressChange = {
|
|
51303
|
+
promise: undefined,
|
|
51304
|
+
resolve: () => { }
|
|
51305
|
+
};
|
|
51306
|
+
progressChange.promise = new Promise((resolve) => {
|
|
51307
|
+
progressChange.resolve = resolve;
|
|
51308
|
+
});
|
|
51309
|
+
this._inProgressChanges.push(progressChange);
|
|
51260
51310
|
this.handlePromiseValue(event, value);
|
|
51261
51311
|
return;
|
|
51262
51312
|
}
|
|
@@ -51270,16 +51320,22 @@ class GridEditionManager {
|
|
|
51270
51320
|
const resolved = await value;
|
|
51271
51321
|
return this.updateCellValue(event, resolved);
|
|
51272
51322
|
}
|
|
51273
|
-
updateCellValue(event, newValue) {
|
|
51274
|
-
var _a;
|
|
51323
|
+
async updateCellValue(event, newValue) {
|
|
51324
|
+
var _a, _b, _c, _d;
|
|
51275
51325
|
const fieldName = event.colDef.field;
|
|
51276
|
-
|
|
51277
|
-
(_a = this.
|
|
51326
|
+
const newData = { [fieldName]: newValue };
|
|
51327
|
+
const descriptionColName = (_b = (_a = this._dataUnit.getField(fieldName)) === null || _a === void 0 ? void 0 : _a.properties) === null || _b === void 0 ? void 0 : _b[PRESENTATION_COL_ID_PROP_NAME];
|
|
51328
|
+
if (!StringUtils$1.isEmpty(descriptionColName)) {
|
|
51329
|
+
newData[descriptionColName] = newValue === null || newValue === void 0 ? void 0 : newValue.label;
|
|
51330
|
+
}
|
|
51331
|
+
event.node.setData(Object.assign(Object.assign({}, event.data), { newData }));
|
|
51332
|
+
(_c = this._currentEditLock) === null || _c === void 0 ? void 0 : _c.call(this);
|
|
51278
51333
|
if (event.oldValue !== newValue) {
|
|
51279
51334
|
this._isGridEdition = true;
|
|
51280
|
-
this._dataUnit.setFieldValue(fieldName, newValue, [event.data.__record__id__], { suppressCreateNewRecord: true });
|
|
51335
|
+
await this._dataUnit.setFieldValue(fieldName, newValue, [event.data.__record__id__], { suppressCreateNewRecord: true });
|
|
51281
51336
|
this._lastCellEdited = { rowIndex: event.rowIndex, column: event.column, rowPinned: undefined };
|
|
51282
51337
|
}
|
|
51338
|
+
(_d = this._inProgressChanges) === null || _d === void 0 ? void 0 : _d.forEach(({ resolve }) => resolve(newValue));
|
|
51283
51339
|
}
|
|
51284
51340
|
setCellEditors(customEditors) {
|
|
51285
51341
|
var _a;
|
|
@@ -64776,6 +64832,7 @@ class AgGridController {
|
|
|
64776
64832
|
this._customFormatters = new Map();
|
|
64777
64833
|
this._gridShowDom = false;
|
|
64778
64834
|
this.peddingExecutionsOnGridShow = [];
|
|
64835
|
+
this._lastColsConfig = undefined;
|
|
64779
64836
|
ModuleRegistry.registerModules([
|
|
64780
64837
|
EnterpriseCoreModule,
|
|
64781
64838
|
RangeSelectionModule,
|
|
@@ -65418,8 +65475,39 @@ class AgGridController {
|
|
|
65418
65475
|
});
|
|
65419
65476
|
this._colDefs = newColDefs;
|
|
65420
65477
|
if (this._gridOptions && this._gridOptions.api) {
|
|
65478
|
+
this.setColsDefsWithStateIfNeeded(this._colDefs);
|
|
65479
|
+
}
|
|
65480
|
+
}
|
|
65481
|
+
setColsDefsWithStateIfNeeded(colDefs) {
|
|
65482
|
+
if (!this._lastColsConfig) {
|
|
65421
65483
|
this._gridOptions.api.setColumnDefs(this._colDefs);
|
|
65422
65484
|
}
|
|
65485
|
+
/*
|
|
65486
|
+
Caso a definição de colunas esteja sendo atualizada,
|
|
65487
|
+
e existe uma config aplicada, temos que considerar essa
|
|
65488
|
+
config ao adicionar nova definição de colunas.
|
|
65489
|
+
PS: Poderia apenas chamar o setColumnsState, porém,
|
|
65490
|
+
isso impactaria em performance, e o usuário ia perceber
|
|
65491
|
+
a mudança das colunas visualmente na grade, o que traria
|
|
65492
|
+
uma experiencia ruim.
|
|
65493
|
+
*/
|
|
65494
|
+
const colDefsWithConfigs = this.getColsDefWithConfigApplied(colDefs, this._lastColsConfig);
|
|
65495
|
+
this._gridOptions.api.setColumnDefs(colDefsWithConfigs);
|
|
65496
|
+
}
|
|
65497
|
+
getColsDefWithConfigApplied(colDefs, colsConfig) {
|
|
65498
|
+
//Cria map de colunas existentes na config e seu índice
|
|
65499
|
+
const orderMap = colsConfig.reduce((map, col, index) => {
|
|
65500
|
+
map[col.name] = index;
|
|
65501
|
+
return map;
|
|
65502
|
+
}, {});
|
|
65503
|
+
//Remove colunas que não existem na config
|
|
65504
|
+
const filteredColsDefs = colDefs.filter((col) => !orderMap.hasOwnProperty(col.colId));
|
|
65505
|
+
//Ordena colunas baseada na config aplicada
|
|
65506
|
+
const sortedColumnDefs = filteredColsDefs.sort((a, b) => {
|
|
65507
|
+
var _a, _b;
|
|
65508
|
+
return ((_a = orderMap[a.field]) !== null && _a !== void 0 ? _a : Number.MAX_VALUE) - ((_b = orderMap[b.field]) !== null && _b !== void 0 ? _b : Number.MAX_VALUE);
|
|
65509
|
+
});
|
|
65510
|
+
return sortedColumnDefs;
|
|
65423
65511
|
}
|
|
65424
65512
|
hideSelectionColumn() {
|
|
65425
65513
|
var _a, _b;
|
|
@@ -65453,6 +65541,7 @@ class AgGridController {
|
|
|
65453
65541
|
if (this._grid === undefined) {
|
|
65454
65542
|
throw new Error('Erro interno: Grid ainda não inicializado.');
|
|
65455
65543
|
}
|
|
65544
|
+
this._lastColsConfig = state;
|
|
65456
65545
|
const colDef = this._gridOptions.columnApi.getColumns();
|
|
65457
65546
|
let columns = this.getColumnsDef();
|
|
65458
65547
|
let visibleColumns = [];
|
|
@@ -65461,14 +65550,39 @@ class AgGridController {
|
|
|
65461
65550
|
const columnsOffset = colDef.length - columns.length;
|
|
65462
65551
|
this._gridConfig = state;
|
|
65463
65552
|
let sort = [];
|
|
65464
|
-
|
|
65553
|
+
let currentIndex = 0;
|
|
65554
|
+
state.forEach((cfgColumn) => {
|
|
65555
|
+
var _a, _b;
|
|
65465
65556
|
const colWidth = this.getColumnWidth(cfgColumn);
|
|
65466
|
-
this._gridOptions.columnApi.moveColumn(cfgColumn.name,
|
|
65557
|
+
this._gridOptions.columnApi.moveColumn(cfgColumn.name, currentIndex + columnsOffset);
|
|
65467
65558
|
this._gridOptions.columnApi.setColumnWidth(cfgColumn.name, colWidth);
|
|
65468
65559
|
visibleColumns.push(cfgColumn.name);
|
|
65469
65560
|
if (cfgColumn.ascending !== undefined) {
|
|
65470
65561
|
sort.push({ colId: cfgColumn.name, sort: cfgColumn.ascending !== true ? 'desc' : 'asc', sortIndex: cfgColumn.orderIndex });
|
|
65471
65562
|
}
|
|
65563
|
+
currentIndex++;
|
|
65564
|
+
const fieldMD = (_a = this._dataUnit) === null || _a === void 0 ? void 0 : _a.getField(cfgColumn.name);
|
|
65565
|
+
/*
|
|
65566
|
+
Migração para o SEARCHPLUS, caso de uso:
|
|
65567
|
+
- Agora existe uma coluna para o campo de descrição do relaciona
|
|
65568
|
+
- Essa col, não existe na config da grade que já foi salva pelo DS
|
|
65569
|
+
- Nesse caso, precisamos inserir a coluna de descrição automaticamente para que
|
|
65570
|
+
os usuários não percam a apresentação do campo de descrição.
|
|
65571
|
+
PS: Caso esteja herdando do HTML5, devemos manter a config como está la
|
|
65572
|
+
*/
|
|
65573
|
+
if (this.needToAddDescriptionColumn(cfgColumn, fieldMD, state)) {
|
|
65574
|
+
const descriptionColID = (_b = fieldMD === null || fieldMD === void 0 ? void 0 : fieldMD.properties) === null || _b === void 0 ? void 0 : _b[PRESENTATION_COL_ID_PROP_NAME];
|
|
65575
|
+
if (!descriptionColID)
|
|
65576
|
+
return;
|
|
65577
|
+
const descriptionCol = this._gridOptions.columnApi.getColumn(descriptionColID);
|
|
65578
|
+
const descriptionColDef = descriptionCol === null || descriptionCol === void 0 ? void 0 : descriptionCol.getColDef();
|
|
65579
|
+
const descriptionHeaderName = descriptionColDef === null || descriptionColDef === void 0 ? void 0 : descriptionColDef.headerName;
|
|
65580
|
+
const descriptionColSize = this.getColumnWidthByLabel(descriptionHeaderName);
|
|
65581
|
+
this._gridOptions.columnApi.moveColumn(descriptionColID, currentIndex + columnsOffset);
|
|
65582
|
+
this._gridOptions.columnApi.setColumnWidth(descriptionColID, descriptionColSize);
|
|
65583
|
+
visibleColumns.push(descriptionColID);
|
|
65584
|
+
currentIndex++;
|
|
65585
|
+
}
|
|
65472
65586
|
});
|
|
65473
65587
|
let invisibleColumns = columns.filter(column => !visibleColumns.includes(column.name)).map(column => column.name);
|
|
65474
65588
|
this._gridOptions.columnApi.setColumnsVisible(visibleColumns, true);
|
|
@@ -65478,6 +65592,16 @@ class AgGridController {
|
|
|
65478
65592
|
defaultState: { sort: null },
|
|
65479
65593
|
});
|
|
65480
65594
|
}
|
|
65595
|
+
needToAddDescriptionColumn(cfgColumn, fieldMD, stateConfig) {
|
|
65596
|
+
var _a, _b;
|
|
65597
|
+
if (!fieldMD) {
|
|
65598
|
+
return false;
|
|
65599
|
+
}
|
|
65600
|
+
const configVersion = ((_a = cfgColumn.configVersion) !== null && _a !== void 0 ? _a : 0);
|
|
65601
|
+
const isSearchPlus = (fieldMD === null || fieldMD === void 0 ? void 0 : fieldMD.userInterface) == UserInterface.SEARCHPLUS;
|
|
65602
|
+
const descriptionColID = (_b = fieldMD === null || fieldMD === void 0 ? void 0 : fieldMD.properties) === null || _b === void 0 ? void 0 : _b[PRESENTATION_COL_ID_PROP_NAME];
|
|
65603
|
+
return isSearchPlus && configVersion < 1 && stateConfig.find(col => col.name === descriptionColID) != undefined;
|
|
65604
|
+
}
|
|
65481
65605
|
getColumnsState() {
|
|
65482
65606
|
if (this._grid === undefined) {
|
|
65483
65607
|
throw new Error('Erro interno: Grid ainda não inicializado.');
|
|
@@ -65537,7 +65661,7 @@ class AgGridController {
|
|
|
65537
65661
|
return filterOptions.map(item => item.check).includes(true);
|
|
65538
65662
|
}
|
|
65539
65663
|
buildColDef(source) {
|
|
65540
|
-
var _a, _b, _c;
|
|
65664
|
+
var _a, _b, _c, _d;
|
|
65541
65665
|
let tooltip = undefined;
|
|
65542
65666
|
const propSortable = StringUtils$1.getBooleanValue((_a = source.props) === null || _a === void 0 ? void 0 : _a.get('gridSortable'), true);
|
|
65543
65667
|
if ((_b = source.props) === null || _b === void 0 ? void 0 : _b.get('gridHeaderTooltip')) {
|
|
@@ -65559,6 +65683,11 @@ class AgGridController {
|
|
|
65559
65683
|
showColumnFilter: (leftPosition) => this.showFilterColumn({ columnName: source.name, columnLabel: source.label, leftPosition, filteredOptions: this._filteredColumns.get(source.name), fromIcon: true }),
|
|
65560
65684
|
},
|
|
65561
65685
|
valueFormatter: params => {
|
|
65686
|
+
var _a, _b, _c, _d;
|
|
65687
|
+
const presentationFrom = (_a = source === null || source === void 0 ? void 0 : source.props) === null || _a === void 0 ? void 0 : _a.get(PRESENTATION_FROM_COL_PROP_NAME);
|
|
65688
|
+
if (presentationFrom) {
|
|
65689
|
+
return (_d = (_c = (_b = params === null || params === void 0 ? void 0 : params.data) === null || _b === void 0 ? void 0 : _b[presentationFrom]) === null || _c === void 0 ? void 0 : _c.label) !== null && _d !== void 0 ? _d : "";
|
|
65690
|
+
}
|
|
65562
65691
|
if (params.value === undefined || params.value === null) {
|
|
65563
65692
|
return "";
|
|
65564
65693
|
}
|
|
@@ -65578,6 +65707,7 @@ class AgGridController {
|
|
|
65578
65707
|
return this.getFormatterByColumn(params, source);
|
|
65579
65708
|
},
|
|
65580
65709
|
cellStyle: this.getStyleByColumn(source),
|
|
65710
|
+
editable: !((_d = source.props) === null || _d === void 0 ? void 0 : _d.has(PRESENTATION_FROM_COL_PROP_NAME))
|
|
65581
65711
|
});
|
|
65582
65712
|
}
|
|
65583
65713
|
setCustomFormatters(customFormatters) {
|
|
@@ -65593,8 +65723,11 @@ class AgGridController {
|
|
|
65593
65723
|
};
|
|
65594
65724
|
}
|
|
65595
65725
|
getStyleByColumn(source) {
|
|
65726
|
+
var _a;
|
|
65596
65727
|
let cellStyle = this.getInitCellStyle();
|
|
65597
|
-
|
|
65728
|
+
const primitiveUIType = (_a = source === null || source === void 0 ? void 0 : source.props) === null || _a === void 0 ? void 0 : _a.get("PRIMITIVETUIYPE");
|
|
65729
|
+
const uitype = source === null || source === void 0 ? void 0 : source.userInterface;
|
|
65730
|
+
switch (primitiveUIType !== null && primitiveUIType !== void 0 ? primitiveUIType : uitype) {
|
|
65598
65731
|
case UserInterface.DECIMALNUMBER:
|
|
65599
65732
|
case UserInterface.INTEGERNUMBER:
|
|
65600
65733
|
cellStyle['text-align'] = 'right';
|
|
@@ -65610,7 +65743,7 @@ class AgGridController {
|
|
|
65610
65743
|
return cellStyle;
|
|
65611
65744
|
}
|
|
65612
65745
|
getFormatterByColumn(params, source) {
|
|
65613
|
-
var _a;
|
|
65746
|
+
var _a, _b, _c, _d;
|
|
65614
65747
|
if ((source === null || source === void 0 ? void 0 : source.userInterface) === 'OPTIONSELECTOR' && source.options) {
|
|
65615
65748
|
const prop = source === null || source === void 0 ? void 0 : source.options;
|
|
65616
65749
|
let options;
|
|
@@ -65647,6 +65780,9 @@ class AgGridController {
|
|
|
65647
65780
|
return params === null || params === void 0 ? void 0 : params.value;
|
|
65648
65781
|
}
|
|
65649
65782
|
}
|
|
65783
|
+
if ((source === null || source === void 0 ? void 0 : source.userInterface) === UserInterface.SEARCHPLUS) {
|
|
65784
|
+
return (_d = (_c = (_b = params === null || params === void 0 ? void 0 : params.value) === null || _b === void 0 ? void 0 : _b.value) !== null && _c !== void 0 ? _c : params === null || params === void 0 ? void 0 : params.value) !== null && _d !== void 0 ? _d : "";
|
|
65785
|
+
}
|
|
65650
65786
|
if ((source === null || source === void 0 ? void 0 : source.userInterface) === UserInterface.DECIMALNUMBER) {
|
|
65651
65787
|
if (params.value != undefined) {
|
|
65652
65788
|
const precision = Number(source.props.get('precision')) || 2;
|
|
@@ -65820,7 +65956,7 @@ class AgGridController {
|
|
|
65820
65956
|
this._gridOptions.api.stopEditing();
|
|
65821
65957
|
}
|
|
65822
65958
|
getColumnWidth(cfgColumn) {
|
|
65823
|
-
var _a, _b;
|
|
65959
|
+
var _a, _b, _c, _d, _e, _f;
|
|
65824
65960
|
if (cfgColumn == undefined) {
|
|
65825
65961
|
return;
|
|
65826
65962
|
}
|
|
@@ -65832,10 +65968,14 @@ class AgGridController {
|
|
|
65832
65968
|
return parseInt(cfgColumn.width) + this.DEFAULT_FONT_SIZE_HTML5;
|
|
65833
65969
|
}
|
|
65834
65970
|
const field = (_a = this._dataUnit) === null || _a === void 0 ? void 0 : _a.getField(cfgColumn.name);
|
|
65971
|
+
const label = (_b = field === null || field === void 0 ? void 0 : field.label) !== null && _b !== void 0 ? _b : (_f = (_e = (_d = (_c = this._gridOptions) === null || _c === void 0 ? void 0 : _c.columnApi) === null || _d === void 0 ? void 0 : _d.getColumn(cfgColumn.name)) === null || _e === void 0 ? void 0 : _e.getColDef()) === null || _f === void 0 ? void 0 : _f.headerName;
|
|
65835
65972
|
if ((field === null || field === void 0 ? void 0 : field.userInterface) === UserInterface.SEARCH) {
|
|
65836
65973
|
return this.DEFAULT_MAX_SIZE;
|
|
65837
65974
|
}
|
|
65838
|
-
|
|
65975
|
+
return this.getColumnWidthByLabel(label);
|
|
65976
|
+
}
|
|
65977
|
+
getColumnWidthByLabel(label) {
|
|
65978
|
+
const labelSize = ((label === null || label === void 0 ? void 0 : label.length) || 0) * this.DEFAULT_FONT_SIZE + this.DEFAULT_ICON_SIZE;
|
|
65839
65979
|
return labelSize > this.DEFAULT_MAX_SIZE ? this.DEFAULT_MAX_SIZE : labelSize;
|
|
65840
65980
|
}
|
|
65841
65981
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-baa5e267.js';
|
|
2
2
|
import { ElementIDUtils } from '@sankhyalabs/core';
|
|
3
3
|
import { E as EzScrollDirection } from './EzScrollDirection-2df26c93.js';
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host, g as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, h, H as Host, g as getElement } from './index-baa5e267.js';
|
|
2
2
|
import { StringUtils, ElementIDUtils } from '@sankhyalabs/core';
|
|
3
3
|
|
|
4
4
|
const ezIconCss = ":host{display:flex;overflow:hidden;position:relative;--ez-icon--color:var(--icon--color, #ffffff)}svg{display:flex;justify-content:center;align-items:center;fill:var(--ez-icon--color)}.x-small{width:12px;height:12px}.small{width:16px;height:16px}.medium{width:20px;height:20px}.large{width:24px;height:24px}.x-large{width:30px;height:30px}[class^=\"ez-icon-\"],[class*=\" ez-icon-\"]{color:var(--ez-icon--color)}[class^=\"ez-icon-\"],[class*=\" ez-icon-\"]{font-family:'ez-icons' !important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.ez-icon-2chevron-down:before{content:\"\\ea01\"}.ez-icon-2chevron-up:before{content:\"\\ea02\"}.ez-icon-acao:before{content:\"\\ea03\"}.ez-icon-account-outline:before{content:\"\\ea04\"}.ez-icon-account:before{content:\"\\ea05\"}.ez-icon-add-to-cart:before{content:\"\\ea06\"}.ez-icon-alert-circle-inverted:before{content:\"\\ea07\"}.ez-icon-alert-circle:before{content:\"\\ea08\"}.ez-icon-alert-mail:before{content:\"\\ea09\"}.ez-icon-alert-popup:before{content:\"\\ea0a\"}.ez-icon-anexo:before{content:\"\\ea0b\"}.ez-icon-antecipação:before{content:\"\\ea0c\"}.ez-icon-apps:before{content:\"\\ea0d\"}.ez-icon-arrow-forward:before{content:\"\\ea0e\"}.ez-icon-arrow-upward:before{content:\"\\ea0f\"}.ez-icon-arrow_back:before{content:\"\\ea10\"}.ez-icon-arrow_downward:before{content:\"\\ea11\"}.ez-icon-baixa:before{content:\"\\ea12\"}.ez-icon-balance:before{content:\"\\ea13\"}.ez-icon-bell-inverted:before{content:\"\\ea14\"}.ez-icon-bell:before{content:\"\\ea15\"}.ez-icon-boleto:before{content:\"\\ea16\"}.ez-icon-boolean:before{content:\"\\ea17\"}.ez-icon-business-center:before{content:\"\\ea18\"}.ez-icon-calendar-clock:before{content:\"\\ea19\"}.ez-icon-calendar:before{content:\"\\ea1a\"}.ez-icon-cart-history:before{content:\"\\ea1b\"}.ez-icon-cash-remove:before{content:\"\\ea1c\"}.ez-icon-check-circle-inverted:before{content:\"\\ea1d\"}.ez-icon-check-circle:before{content:\"\\ea1e\"}.ez-icon-check:before{content:\"\\ea1f\"}.ez-icon-chevron-down:before{content:\"\\ea20\"}.ez-icon-chevron-left:before{content:\"\\ea21\"}.ez-icon-chevron-right:before{content:\"\\ea22\"}.ez-icon-chevron-up:before{content:\"\\ea23\"}.ez-icon-circle--medium:before{content:\"\\ea24\"}.ez-icon-circle:before{content:\"\\ea25\"}.ez-icon-clean-cart:before{content:\"\\ea26\"}.ez-icon-cleaning:before{content:\"\\ea27\"}.ez-icon-clipboard:before{content:\"\\ea28\"}.ez-icon-clock-rotate-left:before{content:\"\\ea29\"}.ez-icon-close:before{content:\"\\ea2a\"}.ez-icon-cobrar:before{content:\"\\ea2b\"}.ez-icon-code:before{content:\"\\ea2c\"}.ez-icon-configuration:before{content:\"\\ea2d\"}.ez-icon-content-cut:before{content:\"\\ea2e\"}.ez-icon-copy:before{content:\"\\ea2f\"}.ez-icon-credit_card:before{content:\"\\ea30\"}.ez-icon-crop:before{content:\"\\ea31\"}.ez-icon-custom:before{content:\"\\ea32\"}.ez-icon-delete-file:before{content:\"\\ea33\"}.ez-icon-delete:before{content:\"\\ea34\"}.ez-icon-description:before{content:\"\\ea35\"}.ez-icon-dividir:before{content:\"\\ea36\"}.ez-icon-docx:before{content:\"\\ea37\"}.ez-icon-dot-notification:before{content:\"\\ea38\"}.ez-icon-dots-horizontal:before{content:\"\\ea39\"}.ez-icon-dots-vertical:before{content:\"\\ea3a\"}.ez-icon-drag-indicator:before{content:\"\\ea3b\"}.ez-icon-dual-chevron-down:before{content:\"\\ea3c\"}.ez-icon-dual-chevron-left:before{content:\"\\ea3d\"}.ez-icon-dual-chevron-right:before{content:\"\\ea3e\"}.ez-icon-dual-chevron-up:before{content:\"\\ea3f\"}.ez-icon-edit-file:before{content:\"\\ea40\"}.ez-icon-edit-table:before{content:\"\\ea41\"}.ez-icon-edit-time:before{content:\"\\ea42\"}.ez-icon-edit-value:before{content:\"\\ea43\"}.ez-icon-edit:before{content:\"\\ea44\"}.ez-icon-email:before{content:\"\\ea45\"}.ez-icon-estorno:before{content:\"\\ea46\"}.ez-icon-exe:before{content:\"\\ea47\"}.ez-icon-expand:before{content:\"\\ea48\"}.ez-icon-expandir_card:before{content:\"\\ea49\"}.ez-icon-extrato:before{content:\"\\ea4a\"}.ez-icon-eye-off:before{content:\"\\ea4b\"}.ez-icon-eye:before{content:\"\\ea4c\"}.ez-icon-favorite:before{content:\"\\ea4d\"}.ez-icon-figma:before{content:\"\\ea4e\"}.ez-icon-file-download:before{content:\"\\ea4f\"}.ez-icon-file-upload:before{content:\"\\ea50\"}.ez-icon-filter:before{content:\"\\ea51\"}.ez-icon-find-file:before{content:\"\\ea52\"}.ez-icon-find-page:before{content:\"\\ea53\"}.ez-icon-format-color-fill:before{content:\"\\ea54\"}.ez-icon-generic:before{content:\"\\ea55\"}.ez-icon-gif:before{content:\"\\ea56\"}.ez-icon-graph_bar:before{content:\"\\ea57\"}.ez-icon-handshake:before{content:\"\\ea58\"}.ez-icon-help-inverted:before{content:\"\\ea59\"}.ez-icon-help:before{content:\"\\ea5a\"}.ez-icon-hide-list:before{content:\"\\ea5b\"}.ez-icon-hide_menu:before{content:\"\\ea5c\"}.ez-icon-hierarchical-tree:before{content:\"\\ea5d\"}.ez-icon-home:before{content:\"\\ea5e\"}.ez-icon-icons104:before{content:\"\\ea5f\"}.ez-icon-language:before{content:\"\\ea60\"}.ez-icon-launch:before{content:\"\\ea61\"}.ez-icon-lightbulb:before{content:\"\\ea62\"}.ez-icon-list:before{content:\"\\ea63\"}.ez-icon-location:before{content:\"\\ea64\"}.ez-icon-lock-outline:before{content:\"\\ea65\"}.ez-icon-lock:before{content:\"\\ea66\"}.ez-icon-menu:before{content:\"\\ea67\"}.ez-icon-mid:before{content:\"\\ea68\"}.ez-icon-minus:before{content:\"\\ea69\"}.ez-icon-money-off:before{content:\"\\ea6a\"}.ez-icon-money:before{content:\"\\ea6b\"}.ez-icon-more:before{content:\"\\ea6c\"}.ez-icon-mp3:before{content:\"\\ea6d\"}.ez-icon-mp4:before{content:\"\\ea6e\"}.ez-icon-multiple-files:before{content:\"\\ea6f\"}.ez-icon-north-west:before{content:\"\\ea70\"}.ez-icon-number:before{content:\"\\ea71\"}.ez-icon-ordem-ascendente:before{content:\"\\ea72\"}.ez-icon-ordem-descendente:before{content:\"\\ea73\"}.ez-icon-parcelar:before{content:\"\\ea74\"}.ez-icon-pause:before{content:\"\\ea75\"}.ez-icon-payments:before{content:\"\\ea76\"}.ez-icon-pdf:before{content:\"\\ea77\"}.ez-icon-play:before{content:\"\\ea78\"}.ez-icon-plus:before{content:\"\\ea79\"}.ez-icon-png:before{content:\"\\ea7a\"}.ez-icon-power:before{content:\"\\ea7b\"}.ez-icon-pptx:before{content:\"\\ea7c\"}.ez-icon-preview:before{content:\"\\ea7d\"}.ez-icon-print:before{content:\"\\ea7e\"}.ez-icon-push-pin:before{content:\"\\ea7f\"}.ez-icon-rateio:before{content:\"\\ea80\"}.ez-icon-receipt:before{content:\"\\ea81\"}.ez-icon-recolher_card:before{content:\"\\ea82\"}.ez-icon-remove-from-cart:before{content:\"\\ea83\"}.ez-icon-restore:before{content:\"\\ea84\"}.ez-icon-return:before{content:\"\\ea85\"}.ez-icon-sankhya-place:before{content:\"\\ea86\"}.ez-icon-save:before{content:\"\\ea87\"}.ez-icon-search:before{content:\"\\ea88\"}.ez-icon-settings-inverted:before{content:\"\\ea89\"}.ez-icon-settings:before{content:\"\\ea8a\"}.ez-icon-share:before{content:\"\\ea8b\"}.ez-icon-shield:before{content:\"\\ea8c\"}.ez-icon-show-list:before{content:\"\\ea8d\"}.ez-icon-show_menu:before{content:\"\\ea8e\"}.ez-icon-south-east:before{content:\"\\ea8f\"}.ez-icon-sync:before{content:\"\\ea90\"}.ez-icon-table:before{content:\"\\ea91\"}.ez-icon-tag_code:before{content:\"\\ea92\"}.ez-icon-text:before{content:\"\\ea93\"}.ez-icon-timeline:before{content:\"\\ea94\"}.ez-icon-timer-outline:before{content:\"\\ea95\"}.ez-icon-trending-up:before{content:\"\\ea96\"}.ez-icon-tune:before{content:\"\\ea97\"}.ez-icon-txt:before{content:\"\\ea98\"}.ez-icon-un-pin:before{content:\"\\ea99\"}.ez-icon-unfold_less:before{content:\"\\ea9a\"}.ez-icon-unfold_more:before{content:\"\\ea9b\"}.ez-icon-user-circle:before{content:\"\\ea9c\"}.ez-icon-warning-outline:before{content:\"\\ea9d\"}.ez-icon-warning_triangle:before{content:\"\\ea9e\"}.ez-icon-whatshot:before{content:\"\\ea9f\"}.ez-icon-xlsx:before{content:\"\\eaa0\"}.ez-icon-zip:before{content:\"\\eaa1\"}.x-small--font{font-size:12px}.small--font{font-size:16px}.medium--font{font-size:20px}.large--font{font-size:24px}.x-large--font{font-size:30px}";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, F as Fragment, H as Host } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, F as Fragment, H as Host } from './index-baa5e267.js';
|
|
2
2
|
import { StringUtils, ElementIDUtils } from '@sankhyalabs/core';
|
|
3
3
|
import { p as processListOnDrop } from './ezListHelper-00fb9b8d.js';
|
|
4
4
|
|