@sankhyalabs/ezui 0.0.0-bugfix-dev-KB-08202.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/README.md +78 -0
- package/dist/assets/actions-sprite.svg +257 -0
- package/dist/cjs/ApplicationUtils-2e444734.js +162 -0
- package/dist/cjs/CSSVarsUtils-b136a156.js +77 -0
- package/dist/cjs/CheckMode-ecb90b87.js +7 -0
- package/dist/cjs/DialogType-2114c337.js +9 -0
- package/dist/cjs/EzScrollDirection-b2c99895.js +8 -0
- package/dist/cjs/RecordValidationProcessor-edd23705.js +102 -0
- package/dist/cjs/constants-3a1d64fb.js +7 -0
- package/dist/cjs/ez-actions-button.cjs.entry.js +212 -0
- package/dist/cjs/ez-alert.cjs.entry.js +30 -0
- package/dist/cjs/ez-application.cjs.entry.js +26 -0
- package/dist/cjs/ez-badge.cjs.entry.js +120 -0
- package/dist/cjs/ez-breadcrumb.cjs.entry.js +285 -0
- package/dist/cjs/ez-button.cjs.entry.js +87 -0
- package/dist/cjs/ez-calendar.cjs.entry.js +238 -0
- package/dist/cjs/ez-card-item.cjs.entry.js +52 -0
- package/dist/cjs/ez-check.cjs.entry.js +95 -0
- package/dist/cjs/ez-chip.cjs.entry.js +116 -0
- package/dist/cjs/ez-collapsible-box.cjs.entry.js +133 -0
- package/dist/cjs/ez-combo-box.cjs.entry.js +690 -0
- package/dist/cjs/ez-date-input.cjs.entry.js +188 -0
- package/dist/cjs/ez-date-time-input.cjs.entry.js +242 -0
- package/dist/cjs/ez-dialog.cjs.entry.js +180 -0
- package/dist/cjs/ez-dropdown.cjs.entry.js +515 -0
- package/dist/cjs/ez-file-item.cjs.entry.js +74 -0
- package/dist/cjs/ez-filter-input_2.cjs.entry.js +137 -0
- package/dist/cjs/ez-form-view.cjs.entry.js +191 -0
- package/dist/cjs/ez-form.cjs.entry.js +933 -0
- package/dist/cjs/ez-grid.cjs.entry.js +120838 -0
- package/dist/cjs/ez-guide-navigator.cjs.entry.js +96 -0
- package/dist/cjs/ez-icon.cjs.entry.js +44 -0
- package/dist/cjs/ez-list.cjs.entry.js +558 -0
- package/dist/cjs/ez-loading-bar.cjs.entry.js +32 -0
- package/dist/cjs/ez-modal-container.cjs.entry.js +64 -0
- package/dist/cjs/ez-modal.cjs.entry.js +72 -0
- package/dist/cjs/ez-multi-selection-list.cjs.entry.js +183 -0
- package/dist/cjs/ez-number-input.cjs.entry.js +181 -0
- package/dist/cjs/ez-popover.cjs.entry.js +156 -0
- package/dist/cjs/ez-popup.cjs.entry.js +66 -0
- package/dist/cjs/ez-radio-button.cjs.entry.js +48 -0
- package/dist/cjs/ez-scroller_3.cjs.entry.js +792 -0
- package/dist/cjs/ez-search.cjs.entry.js +96 -0
- package/dist/cjs/ez-skeleton.cjs.entry.js +67 -0
- package/dist/cjs/ez-tabselector.cjs.entry.js +228 -0
- package/dist/cjs/ez-text-area.cjs.entry.js +179 -0
- package/dist/cjs/ez-text-edit.cjs.entry.js +107 -0
- package/dist/cjs/ez-text-input.cjs.entry.js +247 -0
- package/dist/cjs/ez-time-input.cjs.entry.js +168 -0
- package/dist/cjs/ez-toast.cjs.entry.js +101 -0
- package/dist/cjs/ez-upload.cjs.entry.js +395 -0
- package/dist/cjs/ez-view-stack.cjs.entry.js +86 -0
- package/dist/cjs/ezui.cjs.js +23 -0
- package/dist/cjs/filter-column.cjs.entry.js +151 -0
- package/dist/cjs/index-1064511f.js +2340 -0
- package/dist/cjs/index.cjs.js +2 -0
- package/dist/cjs/loader.cjs.js +22 -0
- package/dist/collection/collection-manifest.json +184 -0
- package/dist/collection/components/assets/actions-sprite.svg +257 -0
- package/dist/collection/components/ez-actions-button/ez-actions-button.css +139 -0
- package/dist/collection/components/ez-actions-button/ez-actions-button.js +440 -0
- package/dist/collection/components/ez-alert/ez-alert.css +76 -0
- package/dist/collection/components/ez-alert/ez-alert.js +53 -0
- package/dist/collection/components/ez-application/ez-application.css +3 -0
- package/dist/collection/components/ez-application/ez-application.js +41 -0
- package/dist/collection/components/ez-badge/enum/sizes.js +9 -0
- package/dist/collection/components/ez-badge/ez-badge.css +165 -0
- package/dist/collection/components/ez-badge/ez-badge.js +211 -0
- package/dist/collection/components/ez-badge/interfaces/IPosition.js +1 -0
- package/dist/collection/components/ez-breadcrumb/ez-breadcrumb.css +66 -0
- package/dist/collection/components/ez-breadcrumb/ez-breadcrumb.js +373 -0
- package/dist/collection/components/ez-breadcrumb/subcomponents/breadcrumb-item.js +20 -0
- package/dist/collection/components/ez-button/ez-button.css +255 -0
- package/dist/collection/components/ez-button/ez-button.js +241 -0
- package/dist/collection/components/ez-calendar/ez-calendar.css +318 -0
- package/dist/collection/components/ez-calendar/ez-calendar.js +439 -0
- package/dist/collection/components/ez-card-item/ez-card-item.css +126 -0
- package/dist/collection/components/ez-card-item/ez-card-item.js +97 -0
- package/dist/collection/components/ez-check/CheckMode.js +5 -0
- package/dist/collection/components/ez-check/ez-check.css +366 -0
- package/dist/collection/components/ez-check/ez-check.js +272 -0
- package/dist/collection/components/ez-chip/ez-chip.css +163 -0
- package/dist/collection/components/ez-chip/ez-chip.js +312 -0
- package/dist/collection/components/ez-collapsible-box/ez-collapsible-box.css +254 -0
- package/dist/collection/components/ez-collapsible-box/ez-collapsible-box.js +442 -0
- package/dist/collection/components/ez-combo-box/ez-combo-box.css +334 -0
- package/dist/collection/components/ez-combo-box/ez-combo-box.js +1125 -0
- package/dist/collection/components/ez-date-input/ez-date-input.css +49 -0
- package/dist/collection/components/ez-date-input/ez-date-input.js +432 -0
- package/dist/collection/components/ez-date-time-input/ez-date-time-input.css +44 -0
- package/dist/collection/components/ez-date-time-input/ez-date-time-input.js +504 -0
- package/dist/collection/components/ez-dialog/DialogType.js +7 -0
- package/dist/collection/components/ez-dialog/ez-dialog.css +544 -0
- package/dist/collection/components/ez-dialog/ez-dialog.js +401 -0
- package/dist/collection/components/ez-dropdown/ez-dropdown.css +349 -0
- package/dist/collection/components/ez-dropdown/ez-dropdown.js +356 -0
- package/dist/collection/components/ez-dropdown/structure/DropdownItem.js +30 -0
- package/dist/collection/components/ez-dropdown/structure/SubmenuControl.js +241 -0
- package/dist/collection/components/ez-file-item/ez-file-item.css +125 -0
- package/dist/collection/components/ez-file-item/ez-file-item.js +200 -0
- package/dist/collection/components/ez-filter-input/ez-filter-input.css +4 -0
- package/dist/collection/components/ez-filter-input/ez-filter-input.js +407 -0
- package/dist/collection/components/ez-form/ez-form.css +10 -0
- package/dist/collection/components/ez-form/ez-form.js +237 -0
- package/dist/collection/components/ez-form/store/form.slice.js +42 -0
- package/dist/collection/components/ez-form-view/ez-form-view.css +6 -0
- package/dist/collection/components/ez-form-view/ez-form-view.js +154 -0
- package/dist/collection/components/ez-form-view/fieldbuilder/FieldBuilder.js +30 -0
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/CheckBox.tpl.js +11 -0
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/ComboBox.tpl.js +13 -0
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/DateInput.tpl.js +10 -0
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/FileInput.tpl.js +11 -0
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/NumberInput.tpl.js +12 -0
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/SearchInput.tpl.js +4 -0
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/TextArea.tpl.js +4 -0
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/TextInput.tpl.js +4 -0
- package/dist/collection/components/ez-form-view/interfaces/IFormViewField.js +1 -0
- package/dist/collection/components/ez-form-view/interfaces/index.js +1 -0
- package/dist/collection/components/ez-form-view/structure/index.js +29 -0
- package/dist/collection/components/ez-grid/controller/EzGridController.js +1 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +791 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/AgGridUtils.js +8 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/DataSource.js +101 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/GridEditionManager.js +230 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/components/EzGridCustomHeader.js +88 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/components/cellRendererStatus.js +43 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/components/selectionHeader.js +40 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/editor/EzCellEditor.js +49 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/editor/GridEditorUtils.js +10 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/editor/IEditorMetadata.js +4 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/editor/IUICellEditor.js +1 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/ComboBox.tpl.js +38 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/DateInput.tpl.js +40 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/NumberInput.tpl.js +20 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/Search.tpl.js +15 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/TextInput.tpl.js +41 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/i18n/pt-BR.js +75 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/mock/Server.js +69 -0
- package/dist/collection/components/ez-grid/ez-grid.css +97 -0
- package/dist/collection/components/ez-grid/ez-grid.js +833 -0
- package/dist/collection/components/ez-grid/interfaces/ISelection.js +1 -0
- package/dist/collection/components/ez-grid/interfaces/ISelectionToastConfig.js +1 -0
- package/dist/collection/components/ez-grid/interfaces/index.js +2 -0
- package/dist/collection/components/ez-grid/subcomponents/filter-column.css +34 -0
- package/dist/collection/components/ez-grid/subcomponents/filter-column.js +377 -0
- package/dist/collection/components/ez-grid/subcomponents/selection-counter.js +29 -0
- package/dist/collection/components/ez-grid/utils/InMemoryFilterColumnDataSource.js +78 -0
- package/dist/collection/components/ez-guide-navigator/ez-guide-navigator.css +66 -0
- package/dist/collection/components/ez-guide-navigator/ez-guide-navigator.js +385 -0
- package/dist/collection/components/ez-guide-navigator/interfaces/IGuideItem.js +1 -0
- package/dist/collection/components/ez-guide-navigator/interfaces/index.js +1 -0
- package/dist/collection/components/ez-icon/ez-icon.css +223 -0
- package/dist/collection/components/ez-icon/ez-icon.js +101 -0
- package/dist/collection/components/ez-list/ez-list.css +434 -0
- package/dist/collection/components/ez-list/ez-list.js +911 -0
- package/dist/collection/components/ez-loading-bar/ez-loading-bar.css +85 -0
- package/dist/collection/components/ez-loading-bar/ez-loading-bar.js +74 -0
- package/dist/collection/components/ez-modal/ez-modal.css +369 -0
- package/dist/collection/components/ez-modal/ez-modal.js +239 -0
- package/dist/collection/components/ez-modal-container/ez-modal-container.css +55 -0
- package/dist/collection/components/ez-modal-container/ez-modal-container.js +191 -0
- package/dist/collection/components/ez-modal-container/index.js +2 -0
- package/dist/collection/components/ez-modal-container/modal-action.js +8 -0
- package/dist/collection/components/ez-modal-container/modal-button-status.js +7 -0
- package/dist/collection/components/ez-multi-selection-list/ez-multi-selection-list.css +36 -0
- package/dist/collection/components/ez-multi-selection-list/ez-multi-selection-list.js +338 -0
- package/dist/collection/components/ez-multi-selection-list/interfaces/IMultiSelectionListDataSource.js +1 -0
- package/dist/collection/components/ez-multi-selection-list/interfaces/IMultiSelectionOption.js +1 -0
- package/dist/collection/components/ez-multi-selection-list/subcomponents/multi-selection-box-message.css +18 -0
- package/dist/collection/components/ez-multi-selection-list/subcomponents/multi-selection-box-message.js +41 -0
- package/dist/collection/components/ez-number-input/ez-number-input.css +8 -0
- package/dist/collection/components/ez-number-input/ez-number-input.js +457 -0
- package/dist/collection/components/ez-popover/ez-popover.css +42 -0
- package/dist/collection/components/ez-popover/ez-popover.js +365 -0
- package/dist/collection/components/ez-popup/ez-popup.css +418 -0
- package/dist/collection/components/ez-popup/ez-popup.js +180 -0
- package/dist/collection/components/ez-radio-button/ez-radio-button.css +217 -0
- package/dist/collection/components/ez-radio-button/ez-radio-button.js +163 -0
- package/dist/collection/components/ez-scroller/EzScrollDirection.js +6 -0
- package/dist/collection/components/ez-scroller/ez-scroller.css +192 -0
- package/dist/collection/components/ez-scroller/ez-scroller.js +293 -0
- package/dist/collection/components/ez-search/ez-search.css +3 -0
- package/dist/collection/components/ez-search/ez-search.js +462 -0
- package/dist/collection/components/ez-sidebar-button/ez-sidebar-button.css +63 -0
- package/dist/collection/components/ez-sidebar-button/ez-sidebar-button.js +47 -0
- package/dist/collection/components/ez-skeleton/ez-skeleton.constants.js +1 -0
- package/dist/collection/components/ez-skeleton/ez-skeleton.css +94 -0
- package/dist/collection/components/ez-skeleton/ez-skeleton.js +211 -0
- package/dist/collection/components/ez-tabselector/ez-tabselector.css +149 -0
- package/dist/collection/components/ez-tabselector/ez-tabselector.js +321 -0
- package/dist/collection/components/ez-text-area/ez-text-area.css +242 -0
- package/dist/collection/components/ez-text-area/ez-text-area.js +428 -0
- package/dist/collection/components/ez-text-edit/ez-text-edit.css +19 -0
- package/dist/collection/components/ez-text-edit/ez-text-edit.js +202 -0
- package/dist/collection/components/ez-text-input/ez-text-input.css +301 -0
- package/dist/collection/components/ez-text-input/ez-text-input.js +491 -0
- package/dist/collection/components/ez-time-input/ez-time-input.css +14 -0
- package/dist/collection/components/ez-time-input/ez-time-input.js +412 -0
- package/dist/collection/components/ez-toast/ez-toast.css +167 -0
- package/dist/collection/components/ez-toast/ez-toast.js +209 -0
- package/dist/collection/components/ez-tree/ez-tree.css +159 -0
- package/dist/collection/components/ez-tree/ez-tree.js +696 -0
- package/dist/collection/components/ez-tree/interfaces/ITree.js +1 -0
- package/dist/collection/components/ez-tree/interfaces/ITreeItem.js +1 -0
- package/dist/collection/components/ez-tree/subcomponents/DefaultIconResolver.js +8 -0
- package/dist/collection/components/ez-tree/subcomponents/DefaultTooltipResolver.js +3 -0
- package/dist/collection/components/ez-tree/subcomponents/TreeItem.js +24 -0
- package/dist/collection/components/ez-tree/subcomponents/index.js +2 -0
- package/dist/collection/components/ez-tree/types/Node.js +110 -0
- package/dist/collection/components/ez-tree/types/Tree.js +132 -0
- package/dist/collection/components/ez-upload/RemoteFile.js +94 -0
- package/dist/collection/components/ez-upload/ez-upload.css +582 -0
- package/dist/collection/components/ez-upload/ez-upload.js +587 -0
- package/dist/collection/components/ez-view-stack/ez-view-stack.css +9 -0
- package/dist/collection/components/ez-view-stack/ez-view-stack.js +126 -0
- package/dist/collection/index.js +1 -0
- package/dist/collection/servidor.js +101 -0
- package/dist/collection/setupTests.js +1 -0
- package/dist/collection/utils/ApplicationUtils.js +94 -0
- package/dist/collection/utils/AssetsUtils.js +19 -0
- package/dist/collection/utils/CSSVarsUtils.js +73 -0
- package/dist/collection/utils/constants.js +3 -0
- package/dist/collection/utils/form/DataBinder.js +287 -0
- package/dist/collection/utils/form/FormMetadata.js +176 -0
- package/dist/collection/utils/form/index.js +2 -0
- package/dist/collection/utils/form/interfaces/IDefaultConfig.js +1 -0
- package/dist/collection/utils/form/interfaces/IFormCardConfig.js +1 -0
- package/dist/collection/utils/form/interfaces/IFormConfig.js +1 -0
- package/dist/collection/utils/form/interfaces/IFormSheetMetadata.js +1 -0
- package/dist/collection/utils/form/interfaces/ISummaryField.js +1 -0
- package/dist/collection/utils/form/interfaces/ITabConfig.js +1 -0
- package/dist/collection/utils/form/interfaces/index.js +1 -0
- package/dist/collection/utils/index.js +6 -0
- package/dist/collection/utils/interfaces/AbstractFieldMetadata.js +21 -0
- package/dist/collection/utils/interfaces/IFieldConfig.js +1 -0
- package/dist/collection/utils/mock/ez-upload-mock.js +30 -0
- package/dist/collection/utils/utils.js +6 -0
- package/dist/collection/utils/validators/recordvalidator/IInvalidField.js +1 -0
- package/dist/collection/utils/validators/recordvalidator/IRecordValidator.js +1 -0
- package/dist/collection/utils/validators/recordvalidator/IValidationResult.js +1 -0
- package/dist/collection/utils/validators/recordvalidator/IValidationSource.js +1 -0
- package/dist/collection/utils/validators/recordvalidator/RecordValidationProcessor.js +74 -0
- package/dist/custom-elements/index.d.ts +321 -0
- package/dist/custom-elements/index.js +129655 -0
- package/dist/esm/ApplicationUtils-d9a34a16.js +160 -0
- package/dist/esm/CSSVarsUtils-a97cfa29.js +75 -0
- package/dist/esm/CheckMode-bdb2ec19.js +7 -0
- package/dist/esm/DialogType-54a62731.js +9 -0
- package/dist/esm/EzScrollDirection-2df26c93.js +8 -0
- package/dist/esm/RecordValidationProcessor-abc814af.js +99 -0
- package/dist/esm/constants-6dab64f7.js +4 -0
- package/dist/esm/ez-actions-button.entry.js +208 -0
- package/dist/esm/ez-alert.entry.js +26 -0
- package/dist/esm/ez-application.entry.js +22 -0
- package/dist/esm/ez-badge.entry.js +116 -0
- package/dist/esm/ez-breadcrumb.entry.js +281 -0
- package/dist/esm/ez-button.entry.js +83 -0
- package/dist/esm/ez-calendar.entry.js +234 -0
- package/dist/esm/ez-card-item.entry.js +48 -0
- package/dist/esm/ez-check.entry.js +91 -0
- package/dist/esm/ez-chip.entry.js +112 -0
- package/dist/esm/ez-collapsible-box.entry.js +129 -0
- package/dist/esm/ez-combo-box.entry.js +686 -0
- package/dist/esm/ez-date-input.entry.js +184 -0
- package/dist/esm/ez-date-time-input.entry.js +238 -0
- package/dist/esm/ez-dialog.entry.js +176 -0
- package/dist/esm/ez-dropdown.entry.js +511 -0
- package/dist/esm/ez-file-item.entry.js +70 -0
- package/dist/esm/ez-filter-input_2.entry.js +132 -0
- package/dist/esm/ez-form-view.entry.js +187 -0
- package/dist/esm/ez-form.entry.js +929 -0
- package/dist/esm/ez-grid.entry.js +120834 -0
- package/dist/esm/ez-guide-navigator.entry.js +92 -0
- package/dist/esm/ez-icon.entry.js +40 -0
- package/dist/esm/ez-list.entry.js +554 -0
- package/dist/esm/ez-loading-bar.entry.js +28 -0
- package/dist/esm/ez-modal-container.entry.js +60 -0
- package/dist/esm/ez-modal.entry.js +68 -0
- package/dist/esm/ez-multi-selection-list.entry.js +179 -0
- package/dist/esm/ez-number-input.entry.js +177 -0
- package/dist/esm/ez-popover.entry.js +152 -0
- package/dist/esm/ez-popup.entry.js +62 -0
- package/dist/esm/ez-radio-button.entry.js +44 -0
- package/dist/esm/ez-scroller_3.entry.js +786 -0
- package/dist/esm/ez-search.entry.js +92 -0
- package/dist/esm/ez-skeleton.entry.js +63 -0
- package/dist/esm/ez-tabselector.entry.js +224 -0
- package/dist/esm/ez-text-area.entry.js +175 -0
- package/dist/esm/ez-text-edit.entry.js +103 -0
- package/dist/esm/ez-text-input.entry.js +243 -0
- package/dist/esm/ez-time-input.entry.js +164 -0
- package/dist/esm/ez-toast.entry.js +97 -0
- package/dist/esm/ez-upload.entry.js +391 -0
- package/dist/esm/ez-view-stack.entry.js +82 -0
- package/dist/esm/ezui.js +18 -0
- package/dist/esm/filter-column.entry.js +147 -0
- package/dist/esm/index-296b8458.js +2309 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/loader.js +18 -0
- package/dist/esm/polyfills/core-js.js +11 -0
- package/dist/esm/polyfills/css-shim.js +1 -0
- package/dist/esm/polyfills/dom.js +79 -0
- package/dist/esm/polyfills/es5-html-element.js +1 -0
- package/dist/esm/polyfills/index.js +34 -0
- package/dist/esm/polyfills/system.js +6 -0
- package/dist/ezui/ezui.esm.js +1 -0
- package/dist/ezui/index.esm.js +0 -0
- package/dist/ezui/p-028f264f.entry.js +1 -0
- package/dist/ezui/p-050247dc.entry.js +1 -0
- package/dist/ezui/p-061f4d73.entry.js +1 -0
- package/dist/ezui/p-1e7c4986.entry.js +1 -0
- package/dist/ezui/p-244dfe8a.entry.js +1 -0
- package/dist/ezui/p-25562cf8.entry.js +1 -0
- package/dist/ezui/p-27a01a26.js +1 -0
- package/dist/ezui/p-2da09f70.entry.js +1 -0
- package/dist/ezui/p-32b4163f.entry.js +1 -0
- package/dist/ezui/p-37673563.entry.js +1 -0
- package/dist/ezui/p-391de0e4.entry.js +1 -0
- package/dist/ezui/p-5ce6548c.entry.js +1 -0
- package/dist/ezui/p-5cef0264.entry.js +1 -0
- package/dist/ezui/p-5d6f2550.entry.js +1 -0
- package/dist/ezui/p-5e55a42b.entry.js +1 -0
- package/dist/ezui/p-60ba28ea.entry.js +1 -0
- package/dist/ezui/p-68352e41.entry.js +1 -0
- package/dist/ezui/p-6ab2f7c2.entry.js +1 -0
- package/dist/ezui/p-7525e604.entry.js +1 -0
- package/dist/ezui/p-7526f2b6.entry.js +1 -0
- package/dist/ezui/p-7eb3e1a5.js +1 -0
- package/dist/ezui/p-83885b21.entry.js +1 -0
- package/dist/ezui/p-86a2036d.js +1 -0
- package/dist/ezui/p-87e85160.entry.js +1 -0
- package/dist/ezui/p-8bd3903b.entry.js +1 -0
- package/dist/ezui/p-8fdff9cd.entry.js +1 -0
- package/dist/ezui/p-9285b53e.entry.js +1 -0
- package/dist/ezui/p-95426f93.entry.js +1 -0
- package/dist/ezui/p-964e5571.entry.js +304 -0
- package/dist/ezui/p-98bb8b16.js +1 -0
- package/dist/ezui/p-9b347f04.entry.js +1 -0
- package/dist/ezui/p-a01068e1.entry.js +1 -0
- package/dist/ezui/p-a510a4c5.entry.js +1 -0
- package/dist/ezui/p-a5e09759.entry.js +1 -0
- package/dist/ezui/p-ab574d59.js +1 -0
- package/dist/ezui/p-b11f035c.entry.js +1 -0
- package/dist/ezui/p-b853763b.js +1 -0
- package/dist/ezui/p-c49dbf23.entry.js +1 -0
- package/dist/ezui/p-ccb4ccd9.entry.js +1 -0
- package/dist/ezui/p-cd19a6f8.entry.js +1 -0
- package/dist/ezui/p-ce035beb.entry.js +1 -0
- package/dist/ezui/p-d43b22f3.entry.js +1 -0
- package/dist/ezui/p-d51aa09b.entry.js +1 -0
- package/dist/ezui/p-db528b31.entry.js +1 -0
- package/dist/ezui/p-e2dfd935.entry.js +1 -0
- package/dist/ezui/p-e318d280.js +2 -0
- package/dist/ezui/p-e67d0bd5.entry.js +1 -0
- package/dist/ezui/p-e7fa0ad6.entry.js +1 -0
- package/dist/ezui/p-f15ec3bb.js +1 -0
- package/dist/ezui/p-f4208819.entry.js +1 -0
- package/dist/ezui/p-fa571a4e.entry.js +1 -0
- package/dist/ezui/p-ff82b176.entry.js +1 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/types/components/ez-actions-button/ez-actions-button.d.ts +82 -0
- package/dist/types/components/ez-alert/ez-alert.d.ts +10 -0
- package/dist/types/components/ez-application/ez-application.d.ts +10 -0
- package/dist/types/components/ez-badge/enum/sizes.d.ts +8 -0
- package/dist/types/components/ez-badge/ez-badge.d.ts +35 -0
- package/dist/types/components/ez-badge/interfaces/IPosition.d.ts +4 -0
- package/dist/types/components/ez-breadcrumb/ez-breadcrumb.d.ts +71 -0
- package/dist/types/components/ez-breadcrumb/subcomponents/breadcrumb-item.d.ts +13 -0
- package/dist/types/components/ez-button/ez-button.d.ts +41 -0
- package/dist/types/components/ez-calendar/ez-calendar.d.ts +74 -0
- package/dist/types/components/ez-card-item/ez-card-item.d.ts +32 -0
- package/dist/types/components/ez-check/CheckMode.d.ts +4 -0
- package/dist/types/components/ez-check/ez-check.d.ts +49 -0
- package/dist/types/components/ez-chip/ez-chip.d.ts +60 -0
- package/dist/types/components/ez-collapsible-box/ez-collapsible-box.d.ts +91 -0
- package/dist/types/components/ez-combo-box/ez-combo-box.d.ts +182 -0
- package/dist/types/components/ez-date-input/ez-date-input.d.ts +72 -0
- package/dist/types/components/ez-date-time-input/ez-date-time-input.d.ts +80 -0
- package/dist/types/components/ez-dialog/DialogType.d.ts +6 -0
- package/dist/types/components/ez-dialog/ez-dialog.d.ts +82 -0
- package/dist/types/components/ez-dropdown/ez-dropdown.d.ts +60 -0
- package/dist/types/components/ez-dropdown/structure/DropdownItem.d.ts +28 -0
- package/dist/types/components/ez-dropdown/structure/SubmenuControl.d.ts +78 -0
- package/dist/types/components/ez-file-item/ez-file-item.d.ts +36 -0
- package/dist/types/components/ez-filter-input/ez-filter-input.d.ts +77 -0
- package/dist/types/components/ez-form/ez-form.d.ts +47 -0
- package/dist/types/components/ez-form/store/form.slice.d.ts +27 -0
- package/dist/types/components/ez-form-view/ez-form-view.d.ts +22 -0
- package/dist/types/components/ez-form-view/fieldbuilder/FieldBuilder.d.ts +2 -0
- package/dist/types/components/ez-form-view/fieldbuilder/templates/CheckBox.tpl.d.ts +3 -0
- package/dist/types/components/ez-form-view/fieldbuilder/templates/ComboBox.tpl.d.ts +2 -0
- package/dist/types/components/ez-form-view/fieldbuilder/templates/DateInput.tpl.d.ts +4 -0
- package/dist/types/components/ez-form-view/fieldbuilder/templates/FileInput.tpl.d.ts +2 -0
- package/dist/types/components/ez-form-view/fieldbuilder/templates/NumberInput.tpl.d.ts +3 -0
- package/dist/types/components/ez-form-view/fieldbuilder/templates/SearchInput.tpl.d.ts +2 -0
- package/dist/types/components/ez-form-view/fieldbuilder/templates/TextArea.tpl.d.ts +2 -0
- package/dist/types/components/ez-form-view/fieldbuilder/templates/TextInput.tpl.d.ts +2 -0
- package/dist/types/components/ez-form-view/interfaces/IFormViewField.d.ts +3 -0
- package/dist/types/components/ez-form-view/interfaces/index.d.ts +1 -0
- package/dist/types/components/ez-form-view/structure/index.d.ts +14 -0
- package/dist/types/components/ez-grid/controller/EzGridController.d.ts +287 -0
- package/dist/types/components/ez-grid/controller/ag-grid/AgGridController.d.ts +89 -0
- package/dist/types/components/ez-grid/controller/ag-grid/AgGridUtils.d.ts +1 -0
- package/dist/types/components/ez-grid/controller/ag-grid/DataSource.d.ts +20 -0
- package/dist/types/components/ez-grid/controller/ag-grid/GridEditionManager.d.ts +38 -0
- package/dist/types/components/ez-grid/controller/ag-grid/components/EzGridCustomHeader.d.ts +32 -0
- package/dist/types/components/ez-grid/controller/ag-grid/components/cellRendererStatus.d.ts +11 -0
- package/dist/types/components/ez-grid/controller/ag-grid/components/selectionHeader.d.ts +12 -0
- package/dist/types/components/ez-grid/controller/ag-grid/editor/EzCellEditor.d.ts +10 -0
- package/dist/types/components/ez-grid/controller/ag-grid/editor/GridEditorUtils.d.ts +1 -0
- package/dist/types/components/ez-grid/controller/ag-grid/editor/IEditorMetadata.d.ts +9 -0
- package/dist/types/components/ez-grid/controller/ag-grid/editor/IUICellEditor.d.ts +10 -0
- package/dist/types/components/ez-grid/controller/ag-grid/editor/templates/ComboBox.tpl.d.ts +4 -0
- package/dist/types/components/ez-grid/controller/ag-grid/editor/templates/DateInput.tpl.d.ts +5 -0
- package/dist/types/components/ez-grid/controller/ag-grid/editor/templates/NumberInput.tpl.d.ts +4 -0
- package/dist/types/components/ez-grid/controller/ag-grid/editor/templates/Search.tpl.d.ts +3 -0
- package/dist/types/components/ez-grid/controller/ag-grid/editor/templates/TextInput.tpl.d.ts +4 -0
- package/dist/types/components/ez-grid/controller/ag-grid/i18n/pt-BR.d.ts +2 -0
- package/dist/types/components/ez-grid/controller/ag-grid/mock/Server.d.ts +8 -0
- package/dist/types/components/ez-grid/ez-grid.d.ts +139 -0
- package/dist/types/components/ez-grid/interfaces/ISelection.d.ts +3 -0
- package/dist/types/components/ez-grid/interfaces/ISelectionToastConfig.d.ts +3 -0
- package/dist/types/components/ez-grid/interfaces/index.d.ts +2 -0
- package/dist/types/components/ez-grid/subcomponents/filter-column.d.ts +57 -0
- package/dist/types/components/ez-grid/subcomponents/selection-counter.d.ts +15 -0
- package/dist/types/components/ez-grid/utils/InMemoryFilterColumnDataSource.d.ts +16 -0
- package/dist/types/components/ez-guide-navigator/ez-guide-navigator.d.ts +64 -0
- package/dist/types/components/ez-guide-navigator/interfaces/IGuideItem.d.ts +4 -0
- package/dist/types/components/ez-guide-navigator/interfaces/index.d.ts +1 -0
- package/dist/types/components/ez-icon/ez-icon.d.ts +20 -0
- package/dist/types/components/ez-list/ez-list.d.ts +133 -0
- package/dist/types/components/ez-loading-bar/ez-loading-bar.d.ts +12 -0
- package/dist/types/components/ez-modal/ez-modal.d.ts +53 -0
- package/dist/types/components/ez-modal-container/ez-modal-container.d.ts +47 -0
- package/dist/types/components/ez-modal-container/index.d.ts +2 -0
- package/dist/types/components/ez-modal-container/modal-action.d.ts +7 -0
- package/dist/types/components/ez-modal-container/modal-button-status.d.ts +6 -0
- package/dist/types/components/ez-multi-selection-list/ez-multi-selection-list.d.ts +68 -0
- package/dist/types/components/ez-multi-selection-list/interfaces/IMultiSelectionListDataSource.d.ts +4 -0
- package/dist/types/components/ez-multi-selection-list/interfaces/IMultiSelectionOption.d.ts +4 -0
- package/dist/types/components/ez-multi-selection-list/subcomponents/multi-selection-box-message.d.ts +4 -0
- package/dist/types/components/ez-number-input/ez-number-input.d.ts +81 -0
- package/dist/types/components/ez-popover/ez-popover.d.ts +60 -0
- package/dist/types/components/ez-popup/ez-popup.d.ts +37 -0
- package/dist/types/components/ez-radio-button/ez-radio-button.d.ts +37 -0
- package/dist/types/components/ez-scroller/EzScrollDirection.d.ts +5 -0
- package/dist/types/components/ez-scroller/ez-scroller.d.ts +38 -0
- package/dist/types/components/ez-search/ez-search.d.ts +84 -0
- package/dist/types/components/ez-sidebar-button/ez-sidebar-button.d.ts +11 -0
- package/dist/types/components/ez-skeleton/ez-skeleton.constants.d.ts +1 -0
- package/dist/types/components/ez-skeleton/ez-skeleton.d.ts +54 -0
- package/dist/types/components/ez-tabselector/ez-tabselector.d.ts +52 -0
- package/dist/types/components/ez-text-area/ez-text-area.d.ts +78 -0
- package/dist/types/components/ez-text-edit/ez-text-edit.d.ts +41 -0
- package/dist/types/components/ez-text-input/ez-text-input.d.ts +82 -0
- package/dist/types/components/ez-time-input/ez-time-input.d.ts +74 -0
- package/dist/types/components/ez-toast/ez-toast.d.ts +45 -0
- package/dist/types/components/ez-tree/ez-tree.d.ts +101 -0
- package/dist/types/components/ez-tree/interfaces/ITree.d.ts +5 -0
- package/dist/types/components/ez-tree/interfaces/ITreeItem.d.ts +11 -0
- package/dist/types/components/ez-tree/subcomponents/DefaultIconResolver.d.ts +2 -0
- package/dist/types/components/ez-tree/subcomponents/DefaultTooltipResolver.d.ts +2 -0
- package/dist/types/components/ez-tree/subcomponents/TreeItem.d.ts +15 -0
- package/dist/types/components/ez-tree/subcomponents/index.d.ts +2 -0
- package/dist/types/components/ez-tree/types/Node.d.ts +22 -0
- package/dist/types/components/ez-tree/types/Tree.d.ts +21 -0
- package/dist/types/components/ez-upload/RemoteFile.d.ts +14 -0
- package/dist/types/components/ez-upload/ez-upload.d.ts +101 -0
- package/dist/types/components/ez-view-stack/ez-view-stack.d.ts +25 -0
- package/dist/types/components.d.ts +3464 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/stencil-public-runtime.d.ts +1637 -0
- package/dist/types/utils/ApplicationUtils.d.ts +31 -0
- package/dist/types/utils/AssetsUtils.d.ts +1 -0
- package/dist/types/utils/CSSVarsUtils.d.ts +6 -0
- package/dist/types/utils/constants.d.ts +3 -0
- package/dist/types/utils/form/DataBinder.d.ts +30 -0
- package/dist/types/utils/form/FormMetadata.d.ts +23 -0
- package/dist/types/utils/form/index.d.ts +2 -0
- package/dist/types/utils/form/interfaces/IDefaultConfig.d.ts +5 -0
- package/dist/types/utils/form/interfaces/IFormCardConfig.d.ts +5 -0
- package/dist/types/utils/form/interfaces/IFormConfig.d.ts +13 -0
- package/dist/types/utils/form/interfaces/IFormSheetMetadata.d.ts +6 -0
- package/dist/types/utils/form/interfaces/ISummaryField.d.ts +4 -0
- package/dist/types/utils/form/interfaces/ITabConfig.d.ts +6 -0
- package/dist/types/utils/form/interfaces/index.d.ts +10 -0
- package/dist/types/utils/index.d.ts +6 -0
- package/dist/types/utils/interfaces/AbstractFieldMetadata.d.ts +17 -0
- package/dist/types/utils/interfaces/IFieldConfig.d.ts +13 -0
- package/dist/types/utils/utils.d.ts +2 -0
- package/dist/types/utils/validators/recordvalidator/IInvalidField.d.ts +4 -0
- package/dist/types/utils/validators/recordvalidator/IRecordValidator.d.ts +5 -0
- package/dist/types/utils/validators/recordvalidator/IValidationResult.d.ts +8 -0
- package/dist/types/utils/validators/recordvalidator/IValidationSource.d.ts +6 -0
- package/dist/types/utils/validators/recordvalidator/RecordValidationProcessor.d.ts +13 -0
- package/loader/cdn.js +3 -0
- package/loader/index.cjs.js +3 -0
- package/loader/index.d.ts +21 -0
- package/loader/index.es2017.js +3 -0
- package/loader/index.js +4 -0
- package/loader/package.json +11 -0
- package/package.json +93 -0
- package/react/.keepfolder +0 -0
- package/react/components.d.ts +48 -0
- package/react/components.js +52 -0
- package/react/components.js.map +1 -0
- package/react/react-component-lib/createComponent.d.ts +10 -0
- package/react/react-component-lib/createComponent.js +59 -0
- package/react/react-component-lib/createComponent.js.map +1 -0
- package/react/react-component-lib/createOverlayComponent.d.ts +20 -0
- package/react/react-component-lib/createOverlayComponent.js +89 -0
- package/react/react-component-lib/createOverlayComponent.js.map +1 -0
- package/react/react-component-lib/index.d.ts +2 -0
- package/react/react-component-lib/index.js +3 -0
- package/react/react-component-lib/index.js.map +1 -0
- package/react/react-component-lib/interfaces.d.ts +29 -0
- package/react/react-component-lib/interfaces.js +1 -0
- package/react/react-component-lib/interfaces.js.map +1 -0
- package/react/react-component-lib/utils/attachProps.d.ts +12 -0
- package/react/react-component-lib/utils/attachProps.js +96 -0
- package/react/react-component-lib/utils/attachProps.js.map +1 -0
- package/react/react-component-lib/utils/case.d.ts +2 -0
- package/react/react-component-lib/utils/case.js +7 -0
- package/react/react-component-lib/utils/case.js.map +1 -0
- package/react/react-component-lib/utils/dev.d.ts +2 -0
- package/react/react-component-lib/utils/dev.js +13 -0
- package/react/react-component-lib/utils/dev.js.map +1 -0
- package/react/react-component-lib/utils/index.d.ts +7 -0
- package/react/react-component-lib/utils/index.js +21 -0
- package/react/react-component-lib/utils/index.js.map +1 -0
|
@@ -0,0 +1,833 @@
|
|
|
1
|
+
import { ElementIDUtils, JSUtils, } from '@sankhyalabs/core';
|
|
2
|
+
import { SelectionMode } from '@sankhyalabs/core/dist/dataunit/DataUnit';
|
|
3
|
+
import { h, Host } from '@stencil/core';
|
|
4
|
+
import AgGridController from './controller/ag-grid/AgGridController';
|
|
5
|
+
import { SelectionCounter } from './subcomponents/selection-counter';
|
|
6
|
+
import { ApplicationUtils } from '../../utils';
|
|
7
|
+
import InMemoryFilterColumnDataSource from './utils/InMemoryFilterColumnDataSource';
|
|
8
|
+
const windowInstace = window;
|
|
9
|
+
export class EzGrid {
|
|
10
|
+
constructor() {
|
|
11
|
+
this._gridController = new AgGridController(false);
|
|
12
|
+
this._messageFilterAppliedSuccess = 'Filtro de coluna aplicado com sucesso!';
|
|
13
|
+
this._paginationInfo = undefined;
|
|
14
|
+
this._paginationChangedByKeyboard = true;
|
|
15
|
+
this._showSelectionCounter = false;
|
|
16
|
+
this._isAllSelection = false;
|
|
17
|
+
this._currentPageSelected = undefined;
|
|
18
|
+
this._selectionCount = undefined;
|
|
19
|
+
this._hasLeftButtons = false;
|
|
20
|
+
this.multipleSelection = undefined;
|
|
21
|
+
this.config = undefined;
|
|
22
|
+
this.selectionToastConfig = undefined;
|
|
23
|
+
this.serverUrl = undefined;
|
|
24
|
+
this.dataUnit = undefined;
|
|
25
|
+
this.statusResolver = undefined;
|
|
26
|
+
this.columnfilterDataSource = undefined;
|
|
27
|
+
this.useEnterLikeTab = false;
|
|
28
|
+
this.recordsValidator = undefined;
|
|
29
|
+
this.canEdit = true;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Aplica a definição de colunas.
|
|
33
|
+
*/
|
|
34
|
+
async setColumnsDef(cols) {
|
|
35
|
+
this._gridController.setColumnsDef(cols);
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Adiciona item de menu nas colunas.
|
|
39
|
+
*/
|
|
40
|
+
async addColumnMenuItem(label, name, action, icon) {
|
|
41
|
+
this._gridController.addColumnMenuItem({ label, name, action, icon });
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Aplica o estado das colunas.
|
|
45
|
+
*/
|
|
46
|
+
async setColumnsState(state) {
|
|
47
|
+
this._gridController.setColumnsState(state);
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Insere os registros no ez-grid.
|
|
51
|
+
*/
|
|
52
|
+
async setData(data) {
|
|
53
|
+
this._gridController.setData(data);
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Obtém as linhas selecionadas.
|
|
57
|
+
*/
|
|
58
|
+
async getSelection() {
|
|
59
|
+
return Promise.resolve(this._gridController.getSelection());
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Obtém o estado atual das colunas.
|
|
63
|
+
*/
|
|
64
|
+
async getColumnsState() {
|
|
65
|
+
return Promise.resolve(this._gridController.getColumnsState());
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Obtém a lista de definição de colunas.
|
|
69
|
+
*/
|
|
70
|
+
async getColumns() {
|
|
71
|
+
return Promise.resolve(this._gridController.getColumnsDef());
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Aplica um filtro rápido.
|
|
75
|
+
*/
|
|
76
|
+
async quickFilter(term) {
|
|
77
|
+
this._gridController.quickFilter(term);
|
|
78
|
+
}
|
|
79
|
+
observeConfig(config) {
|
|
80
|
+
this._gridController.setColumnsState(config.columns);
|
|
81
|
+
}
|
|
82
|
+
onSelectionChange(evt) {
|
|
83
|
+
this._currentPageSelected = evt.detail.selectionHeaderStatus === true;
|
|
84
|
+
if (this.dataUnit) {
|
|
85
|
+
this.setSelection(this.dataUnit.getSelectionInfo());
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
setSelection(selectionInfo) {
|
|
89
|
+
var _a;
|
|
90
|
+
this._selectionCount = (_a = selectionInfo === null || selectionInfo === void 0 ? void 0 : selectionInfo.length) !== null && _a !== void 0 ? _a : 0;
|
|
91
|
+
this._isAllSelection = selectionInfo === null || selectionInfo === void 0 ? void 0 : selectionInfo.isAllRecords();
|
|
92
|
+
this._showSelectionCounter = this._selectionCount > 1 || this._isAllSelection;
|
|
93
|
+
}
|
|
94
|
+
onSelectAllRecords() {
|
|
95
|
+
var _a;
|
|
96
|
+
(_a = this.dataUnit) === null || _a === void 0 ? void 0 : _a.setSelection(SelectionMode.ALL_RECORDS).then(selection => this.setSelection(selection));
|
|
97
|
+
}
|
|
98
|
+
onSelectPageRecords() {
|
|
99
|
+
var _a;
|
|
100
|
+
(_a = this.dataUnit) === null || _a === void 0 ? void 0 : _a.setSelection(this.dataUnit.records.map(record => record.__record__id__)).then(selection => this.setSelection(selection));
|
|
101
|
+
}
|
|
102
|
+
onClearSelectedRecords() {
|
|
103
|
+
var _a;
|
|
104
|
+
(_a = this.dataUnit) === null || _a === void 0 ? void 0 : _a.clearSelection();
|
|
105
|
+
this.setSelection(undefined);
|
|
106
|
+
}
|
|
107
|
+
createConfigFromState(state) {
|
|
108
|
+
let newConfig = { columns: [] };
|
|
109
|
+
state.forEach(columnState => {
|
|
110
|
+
if (!columnState.hidden) {
|
|
111
|
+
let newConfigColumn = { name: columnState.name };
|
|
112
|
+
if (columnState.width) {
|
|
113
|
+
newConfigColumn['width'] = columnState.width;
|
|
114
|
+
}
|
|
115
|
+
if (columnState.sort) {
|
|
116
|
+
newConfigColumn['ascending'] = columnState.sort.toUpperCase() === 'ASC';
|
|
117
|
+
newConfigColumn['orderIndex'] = columnState.sortIndex;
|
|
118
|
+
}
|
|
119
|
+
else {
|
|
120
|
+
newConfigColumn['orderIndex'] = 0;
|
|
121
|
+
}
|
|
122
|
+
if (newConfigColumn) {
|
|
123
|
+
newConfig.columns.push(newConfigColumn);
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
});
|
|
127
|
+
return newConfig;
|
|
128
|
+
}
|
|
129
|
+
positionSelectionCounter() {
|
|
130
|
+
var _a;
|
|
131
|
+
if (this._gridSelectionCounter == undefined) {
|
|
132
|
+
return;
|
|
133
|
+
}
|
|
134
|
+
if (this._showSelectionCounter) {
|
|
135
|
+
const boundingContainer = (_a = this._container) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect();
|
|
136
|
+
if (boundingContainer == undefined) {
|
|
137
|
+
return;
|
|
138
|
+
}
|
|
139
|
+
const limitBottom = boundingContainer.bottom - 30;
|
|
140
|
+
this._gridSelectionCounter.style.bottom = document.body.clientHeight - limitBottom + 'px';
|
|
141
|
+
}
|
|
142
|
+
else {
|
|
143
|
+
this._gridSelectionCounter.style.bottom = '';
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
setEvents() {
|
|
147
|
+
window.removeEventListener('scroll', this.positionSelectionCounter.bind(this));
|
|
148
|
+
window.addEventListener('scroll', this.positionSelectionCounter.bind(this));
|
|
149
|
+
}
|
|
150
|
+
resizeSelectionCounter() {
|
|
151
|
+
if (this._gridSelectionCounter == undefined) {
|
|
152
|
+
return;
|
|
153
|
+
}
|
|
154
|
+
this._gridSelectionCounter.style.width = '';
|
|
155
|
+
if (this._gridSelectionCounter.clientHeight > 42) {
|
|
156
|
+
this._gridSelectionCounter.style.width = 'min-content';
|
|
157
|
+
}
|
|
158
|
+
this.positionSelectionCounter();
|
|
159
|
+
}
|
|
160
|
+
configSelectionCounter() {
|
|
161
|
+
if (this._element == undefined) {
|
|
162
|
+
return;
|
|
163
|
+
}
|
|
164
|
+
if (this._resizeObserver != undefined) {
|
|
165
|
+
this._resizeObserver.unobserve(this._element);
|
|
166
|
+
}
|
|
167
|
+
this._resizeObserver = new ResizeObserver(JSUtils.debounce(this.resizeSelectionCounter.bind(this), 200));
|
|
168
|
+
this._resizeObserver.observe(this._element);
|
|
169
|
+
this.resizeSelectionCounter();
|
|
170
|
+
}
|
|
171
|
+
onColumnStateChange(type, state, info) {
|
|
172
|
+
var _a;
|
|
173
|
+
this.ezColumnStateChange.emit({ type, state, isUserChange: info.isUserChange });
|
|
174
|
+
if (info.isUserChange) {
|
|
175
|
+
if (type === 'columnMovedEnd' && !info.isElementResize) {
|
|
176
|
+
let newConfig;
|
|
177
|
+
if (this.config) {
|
|
178
|
+
newConfig = { columns: [] };
|
|
179
|
+
state.forEach(columnState => {
|
|
180
|
+
let newConfigColumn = this.config.columns.find(column => column.name === columnState.name);
|
|
181
|
+
if (newConfigColumn) {
|
|
182
|
+
newConfigColumn.width = columnState.width;
|
|
183
|
+
newConfig.columns.push(newConfigColumn);
|
|
184
|
+
}
|
|
185
|
+
});
|
|
186
|
+
}
|
|
187
|
+
else {
|
|
188
|
+
newConfig = this.createConfigFromState(state);
|
|
189
|
+
}
|
|
190
|
+
if (newConfig.columns.length > 0) {
|
|
191
|
+
this.configChange.emit(newConfig);
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
else if (type === 'columnResize') {
|
|
195
|
+
if ((_a = info.column) === null || _a === void 0 ? void 0 : _a.colId) {
|
|
196
|
+
let newConfig;
|
|
197
|
+
if (this.config) {
|
|
198
|
+
newConfig = Object.assign({}, this.config);
|
|
199
|
+
}
|
|
200
|
+
else {
|
|
201
|
+
newConfig = this.createConfigFromState(state);
|
|
202
|
+
}
|
|
203
|
+
let newColumn = newConfig.columns.find(column => column.name === info.column.colId);
|
|
204
|
+
if (newColumn) {
|
|
205
|
+
newColumn.customWidth = info.column.actualWidth;
|
|
206
|
+
this.configChange.emit(newConfig);
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
buildDataElementId() {
|
|
213
|
+
const dataInfo = { dataUnit: this.dataUnit };
|
|
214
|
+
ElementIDUtils.addIDInfo(this._element, null, dataInfo);
|
|
215
|
+
const dtInfo = { id: 'ezGrid' };
|
|
216
|
+
ElementIDUtils.addIDInfo(this._refPaginationControl, 'pagination', dtInfo);
|
|
217
|
+
}
|
|
218
|
+
previousPage() {
|
|
219
|
+
if (this.dataUnit) {
|
|
220
|
+
this.dataUnit.previousPage();
|
|
221
|
+
this._paginationChangedByKeyboard = false;
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
nextPage() {
|
|
225
|
+
if (this.dataUnit) {
|
|
226
|
+
this.dataUnit.nextPage();
|
|
227
|
+
this._paginationChangedByKeyboard = false;
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
getPaginationControl() {
|
|
231
|
+
if (this._paginationInfo) {
|
|
232
|
+
const { firstRecord, lastRecord, total, currentPage, hasMore } = this._paginationInfo;
|
|
233
|
+
return [
|
|
234
|
+
h("div", { class: "ez-text ez-text--primary ez-text--medium ez-margin-right--medium" }, h("strong", { class: "ez-text ez-text--primary ez-text--medium" }, `${firstRecord}-${lastRecord}`), ` de ${total}`),
|
|
235
|
+
h("ez-button", { size: "small", iconName: "chevron-left", class: "ez-margin-right--medium", mode: "icon", enabled: currentPage > 0, onClick: () => this.previousPage(), label: "P\u00E1gina anterior" }),
|
|
236
|
+
h("ez-button", { size: "small", iconName: "chevron-right", class: "ez-margin-right--medium", mode: "icon", enabled: hasMore, onClick: () => this.nextPage(), label: "Pr\u00F3xima P\u00E1gina" }),
|
|
237
|
+
];
|
|
238
|
+
}
|
|
239
|
+
return null;
|
|
240
|
+
}
|
|
241
|
+
componentDidLoad() {
|
|
242
|
+
this._gridController.initDatagrid(this._container, {
|
|
243
|
+
onColumnStateChange: (type, state, info) => this.onColumnStateChange(type, state, info),
|
|
244
|
+
onSelectionChange: (selection) => this.ezSelectionChange.emit(selection),
|
|
245
|
+
onPaginationChange: (paginationInfo) => {
|
|
246
|
+
var _a;
|
|
247
|
+
if (((_a = this._paginationInfo) === null || _a === void 0 ? void 0 : _a.currentPage) > (paginationInfo === null || paginationInfo === void 0 ? void 0 : paginationInfo.currentPage) && this._paginationChangedByKeyboard) {
|
|
248
|
+
this._gridController.setFocusLastRow();
|
|
249
|
+
}
|
|
250
|
+
else {
|
|
251
|
+
this._gridController.setFocusFirstRow();
|
|
252
|
+
this._paginationChangedByKeyboard = true;
|
|
253
|
+
}
|
|
254
|
+
this._paginationInfo = paginationInfo;
|
|
255
|
+
},
|
|
256
|
+
onDoubleClick: (row) => {
|
|
257
|
+
this.ezDoubleClick.emit(row);
|
|
258
|
+
},
|
|
259
|
+
allowMultipleSelection: this.multipleSelection,
|
|
260
|
+
serverURL: this.serverUrl,
|
|
261
|
+
dataUnit: this.dataUnit,
|
|
262
|
+
statusResolver: this.statusResolver,
|
|
263
|
+
useEnterLikeTab: this.useEnterLikeTab,
|
|
264
|
+
recordsValidator: this.recordsValidator,
|
|
265
|
+
editionIsDisabled: () => !this.canEdit
|
|
266
|
+
});
|
|
267
|
+
if (this.config) {
|
|
268
|
+
this.observeConfig(this.config);
|
|
269
|
+
}
|
|
270
|
+
this.buildDataElementId();
|
|
271
|
+
this.setEvents();
|
|
272
|
+
this.componentReady.emit();
|
|
273
|
+
this._gridController.configFilterColumn(this._filterColumn);
|
|
274
|
+
this._container.addEventListener('focusout', (event) => {
|
|
275
|
+
const api = this._gridController.getGridApi();
|
|
276
|
+
if (api && !this._container.contains(event.relatedTarget))
|
|
277
|
+
api.clearFocusedCell();
|
|
278
|
+
});
|
|
279
|
+
}
|
|
280
|
+
componentWillRender() {
|
|
281
|
+
this.configSelectionCounter();
|
|
282
|
+
}
|
|
283
|
+
componentDidRender() {
|
|
284
|
+
windowInstace.addEventListener('onSubmitFilter', () => {
|
|
285
|
+
ApplicationUtils.info(this._messageFilterAppliedSuccess);
|
|
286
|
+
});
|
|
287
|
+
}
|
|
288
|
+
componentWillLoad() {
|
|
289
|
+
this._hasLeftButtons = !!this._element.querySelector('[slot="leftButtons"]');
|
|
290
|
+
if (!this.dataUnit.name.includes("InMemoryDataUnit"))
|
|
291
|
+
return;
|
|
292
|
+
}
|
|
293
|
+
getDataSource() {
|
|
294
|
+
var _a;
|
|
295
|
+
return (_a = this.columnfilterDataSource) !== null && _a !== void 0 ? _a : new InMemoryFilterColumnDataSource(this.dataUnit);
|
|
296
|
+
}
|
|
297
|
+
hideHeader() {
|
|
298
|
+
return (!!this._element.getAttribute("no-header") && !this._paginationInfo);
|
|
299
|
+
}
|
|
300
|
+
render() {
|
|
301
|
+
var _a;
|
|
302
|
+
return (h(Host, { "no-header": this.hideHeader() }, h("div", { class: "ez-box ez-box--shadow ez-padding--medium grid-header" }, h("filter-column", { class: "grid-header__popover", noHeaderTaskBar: !this._hasLeftButtons, dataSource: this.getDataSource(), dataUnit: this.dataUnit, gridHeaderHidden: this.hideHeader(), ref: (element) => (this._filterColumn = element) }), h("div", { class: "grid-header__position" }, h("div", { class: "grid-header__container" }, h("slot", { name: "leftButtons" })), h("div", { class: "grid-header__container", ref: ref => (this._refPaginationControl = ref) }, this.getPaginationControl()))), h("div", { ref: (ref) => (this._gridSelectionCounter = ref), class: `grid__selection-counter
|
|
303
|
+
${this._showSelectionCounter ? 'grid__selection-counter--opened' : ''}
|
|
304
|
+
` }, h(SelectionCounter, { selectionCount: this._selectionCount, currentPageSelected: this._currentPageSelected, paginationInfo: this._paginationInfo, canSelectAll: (_a = this.selectionToastConfig) === null || _a === void 0 ? void 0 : _a.canSelectAll, allRecordSelected: this._isAllSelection, onSelectAll: () => this.onSelectAllRecords(), onSelectPage: () => this.onSelectPageRecords(), onClearAll: () => this.onClearSelectedRecords(), onClose: () => (this._showSelectionCounter = false) })), h("div", { class: "grid__container ez-grid", ref: elem => (this._container = elem) }), h("div", { class: "grid__footer" }, h("slot", { name: "footer" }))));
|
|
305
|
+
}
|
|
306
|
+
static get is() { return "ez-grid"; }
|
|
307
|
+
static get encapsulation() { return "scoped"; }
|
|
308
|
+
static get originalStyleUrls() {
|
|
309
|
+
return {
|
|
310
|
+
"$": ["ez-grid.css"]
|
|
311
|
+
};
|
|
312
|
+
}
|
|
313
|
+
static get styleUrls() {
|
|
314
|
+
return {
|
|
315
|
+
"$": ["ez-grid.css"]
|
|
316
|
+
};
|
|
317
|
+
}
|
|
318
|
+
static get assetsDirs() { return ["../assets"]; }
|
|
319
|
+
static get properties() {
|
|
320
|
+
return {
|
|
321
|
+
"multipleSelection": {
|
|
322
|
+
"type": "boolean",
|
|
323
|
+
"mutable": false,
|
|
324
|
+
"complexType": {
|
|
325
|
+
"original": "boolean",
|
|
326
|
+
"resolved": "boolean",
|
|
327
|
+
"references": {}
|
|
328
|
+
},
|
|
329
|
+
"required": false,
|
|
330
|
+
"optional": false,
|
|
331
|
+
"docs": {
|
|
332
|
+
"tags": [],
|
|
333
|
+
"text": "Habilita a sele\u00E7\u00E3o de v\u00E1rias linhas."
|
|
334
|
+
},
|
|
335
|
+
"attribute": "multiple-selection",
|
|
336
|
+
"reflect": false
|
|
337
|
+
},
|
|
338
|
+
"config": {
|
|
339
|
+
"type": "unknown",
|
|
340
|
+
"mutable": true,
|
|
341
|
+
"complexType": {
|
|
342
|
+
"original": "IGridConfig",
|
|
343
|
+
"resolved": "IGridConfig",
|
|
344
|
+
"references": {
|
|
345
|
+
"IGridConfig": {
|
|
346
|
+
"location": "import",
|
|
347
|
+
"path": "./controller/EzGridController"
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
},
|
|
351
|
+
"required": false,
|
|
352
|
+
"optional": false,
|
|
353
|
+
"docs": {
|
|
354
|
+
"tags": [],
|
|
355
|
+
"text": "Configura\u00E7\u00E3o de exibi\u00E7\u00E3o da grade."
|
|
356
|
+
}
|
|
357
|
+
},
|
|
358
|
+
"selectionToastConfig": {
|
|
359
|
+
"type": "unknown",
|
|
360
|
+
"mutable": false,
|
|
361
|
+
"complexType": {
|
|
362
|
+
"original": "ISelectionToastConfig",
|
|
363
|
+
"resolved": "ISelectionToastConfig",
|
|
364
|
+
"references": {
|
|
365
|
+
"ISelectionToastConfig": {
|
|
366
|
+
"location": "import",
|
|
367
|
+
"path": "./interfaces"
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
},
|
|
371
|
+
"required": false,
|
|
372
|
+
"optional": false,
|
|
373
|
+
"docs": {
|
|
374
|
+
"tags": [],
|
|
375
|
+
"text": "Configura\u00E7\u00E3o da sele\u00E7\u00E3o de grade no toast."
|
|
376
|
+
}
|
|
377
|
+
},
|
|
378
|
+
"serverUrl": {
|
|
379
|
+
"type": "string",
|
|
380
|
+
"mutable": false,
|
|
381
|
+
"complexType": {
|
|
382
|
+
"original": "string",
|
|
383
|
+
"resolved": "string",
|
|
384
|
+
"references": {}
|
|
385
|
+
},
|
|
386
|
+
"required": false,
|
|
387
|
+
"optional": false,
|
|
388
|
+
"docs": {
|
|
389
|
+
"tags": [],
|
|
390
|
+
"text": "Endere\u00E7o do servidor para obten\u00E7\u00E3o dos dados."
|
|
391
|
+
},
|
|
392
|
+
"attribute": "server-url",
|
|
393
|
+
"reflect": false
|
|
394
|
+
},
|
|
395
|
+
"dataUnit": {
|
|
396
|
+
"type": "unknown",
|
|
397
|
+
"mutable": false,
|
|
398
|
+
"complexType": {
|
|
399
|
+
"original": "DataUnit",
|
|
400
|
+
"resolved": "DataUnit",
|
|
401
|
+
"references": {
|
|
402
|
+
"DataUnit": {
|
|
403
|
+
"location": "import",
|
|
404
|
+
"path": "@sankhyalabs/core"
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
},
|
|
408
|
+
"required": false,
|
|
409
|
+
"optional": false,
|
|
410
|
+
"docs": {
|
|
411
|
+
"tags": [],
|
|
412
|
+
"text": "Unidade de dados. Respons\u00E1vel pelo controle de edi\u00E7\u00E3o de registros e\ninforma\u00E7\u00F5es pertinentes aos campos."
|
|
413
|
+
}
|
|
414
|
+
},
|
|
415
|
+
"statusResolver": {
|
|
416
|
+
"type": "unknown",
|
|
417
|
+
"mutable": false,
|
|
418
|
+
"complexType": {
|
|
419
|
+
"original": "IStatusResolver | StatusResolverFunction",
|
|
420
|
+
"resolved": "((data: object) => string) | IStatusResolver",
|
|
421
|
+
"references": {
|
|
422
|
+
"IStatusResolver": {
|
|
423
|
+
"location": "import",
|
|
424
|
+
"path": "./controller/EzGridController"
|
|
425
|
+
},
|
|
426
|
+
"StatusResolverFunction": {
|
|
427
|
+
"location": "import",
|
|
428
|
+
"path": "./controller/EzGridController"
|
|
429
|
+
}
|
|
430
|
+
}
|
|
431
|
+
},
|
|
432
|
+
"required": false,
|
|
433
|
+
"optional": false,
|
|
434
|
+
"docs": {
|
|
435
|
+
"tags": [],
|
|
436
|
+
"text": "Define um `IStatusResolver` respons\u00E1vel pelo estado da coluna de status."
|
|
437
|
+
}
|
|
438
|
+
},
|
|
439
|
+
"columnfilterDataSource": {
|
|
440
|
+
"type": "unknown",
|
|
441
|
+
"mutable": false,
|
|
442
|
+
"complexType": {
|
|
443
|
+
"original": "IMultiSelectionListDataSource",
|
|
444
|
+
"resolved": "IMultiSelectionListDataSource",
|
|
445
|
+
"references": {
|
|
446
|
+
"IMultiSelectionListDataSource": {
|
|
447
|
+
"location": "import",
|
|
448
|
+
"path": "../ez-multi-selection-list/interfaces/IMultiSelectionListDataSource"
|
|
449
|
+
}
|
|
450
|
+
}
|
|
451
|
+
},
|
|
452
|
+
"required": false,
|
|
453
|
+
"optional": false,
|
|
454
|
+
"docs": {
|
|
455
|
+
"tags": [],
|
|
456
|
+
"text": "Define um `IMultiSelectionListDataSource` respons\u00E1vel por alimentar o filtro de colunas."
|
|
457
|
+
}
|
|
458
|
+
},
|
|
459
|
+
"useEnterLikeTab": {
|
|
460
|
+
"type": "boolean",
|
|
461
|
+
"mutable": false,
|
|
462
|
+
"complexType": {
|
|
463
|
+
"original": "boolean",
|
|
464
|
+
"resolved": "boolean",
|
|
465
|
+
"references": {}
|
|
466
|
+
},
|
|
467
|
+
"required": false,
|
|
468
|
+
"optional": false,
|
|
469
|
+
"docs": {
|
|
470
|
+
"tags": [],
|
|
471
|
+
"text": "Quando verdadeiro, o ENTER far\u00E1 a navega\u00E7\u00E3o como se fosse a tecla TAB na grade."
|
|
472
|
+
},
|
|
473
|
+
"attribute": "use-enter-like-tab",
|
|
474
|
+
"reflect": false,
|
|
475
|
+
"defaultValue": "false"
|
|
476
|
+
},
|
|
477
|
+
"recordsValidator": {
|
|
478
|
+
"type": "unknown",
|
|
479
|
+
"mutable": false,
|
|
480
|
+
"complexType": {
|
|
481
|
+
"original": "IRecordValidator",
|
|
482
|
+
"resolved": "IRecordValidator",
|
|
483
|
+
"references": {
|
|
484
|
+
"IRecordValidator": {
|
|
485
|
+
"location": "import",
|
|
486
|
+
"path": "../../utils/form/interfaces"
|
|
487
|
+
}
|
|
488
|
+
}
|
|
489
|
+
},
|
|
490
|
+
"required": false,
|
|
491
|
+
"optional": false,
|
|
492
|
+
"docs": {
|
|
493
|
+
"tags": [],
|
|
494
|
+
"text": "Define um validador respons\u00E1vel pela integridade dos registros."
|
|
495
|
+
}
|
|
496
|
+
},
|
|
497
|
+
"canEdit": {
|
|
498
|
+
"type": "boolean",
|
|
499
|
+
"mutable": false,
|
|
500
|
+
"complexType": {
|
|
501
|
+
"original": "boolean",
|
|
502
|
+
"resolved": "boolean",
|
|
503
|
+
"references": {}
|
|
504
|
+
},
|
|
505
|
+
"required": false,
|
|
506
|
+
"optional": false,
|
|
507
|
+
"docs": {
|
|
508
|
+
"tags": [],
|
|
509
|
+
"text": "Define se a edi\u00E7\u00E3o est\u00E1 habilitada na grid."
|
|
510
|
+
},
|
|
511
|
+
"attribute": "can-edit",
|
|
512
|
+
"reflect": false,
|
|
513
|
+
"defaultValue": "true"
|
|
514
|
+
}
|
|
515
|
+
};
|
|
516
|
+
}
|
|
517
|
+
static get states() {
|
|
518
|
+
return {
|
|
519
|
+
"_paginationInfo": {},
|
|
520
|
+
"_paginationChangedByKeyboard": {},
|
|
521
|
+
"_showSelectionCounter": {},
|
|
522
|
+
"_isAllSelection": {},
|
|
523
|
+
"_currentPageSelected": {},
|
|
524
|
+
"_selectionCount": {},
|
|
525
|
+
"_hasLeftButtons": {}
|
|
526
|
+
};
|
|
527
|
+
}
|
|
528
|
+
static get events() {
|
|
529
|
+
return [{
|
|
530
|
+
"method": "ezColumnStateChange",
|
|
531
|
+
"name": "ezColumnStateChange",
|
|
532
|
+
"bubbles": true,
|
|
533
|
+
"cancelable": true,
|
|
534
|
+
"composed": true,
|
|
535
|
+
"docs": {
|
|
536
|
+
"tags": [],
|
|
537
|
+
"text": "Emitido quando acontece a altera\u00E7\u00E3o de estado das colunas do grid: Ordena\u00E7\u00E3o, largura, etc."
|
|
538
|
+
},
|
|
539
|
+
"complexType": {
|
|
540
|
+
"original": "EzGridColumStateEvent",
|
|
541
|
+
"resolved": "EzGridColumStateEvent",
|
|
542
|
+
"references": {
|
|
543
|
+
"EzGridColumStateEvent": {
|
|
544
|
+
"location": "import",
|
|
545
|
+
"path": "./controller/EzGridController"
|
|
546
|
+
}
|
|
547
|
+
}
|
|
548
|
+
}
|
|
549
|
+
}, {
|
|
550
|
+
"method": "ezSelectionChange",
|
|
551
|
+
"name": "ezSelectionChange",
|
|
552
|
+
"bubbles": true,
|
|
553
|
+
"cancelable": true,
|
|
554
|
+
"composed": true,
|
|
555
|
+
"docs": {
|
|
556
|
+
"tags": [],
|
|
557
|
+
"text": "Emitido quando acontece a altera\u00E7\u00E3o de sele\u00E7\u00E3o de linhas."
|
|
558
|
+
},
|
|
559
|
+
"complexType": {
|
|
560
|
+
"original": "ISelection",
|
|
561
|
+
"resolved": "ISelection",
|
|
562
|
+
"references": {
|
|
563
|
+
"ISelection": {
|
|
564
|
+
"location": "import",
|
|
565
|
+
"path": "./interfaces"
|
|
566
|
+
}
|
|
567
|
+
}
|
|
568
|
+
}
|
|
569
|
+
}, {
|
|
570
|
+
"method": "ezDoubleClick",
|
|
571
|
+
"name": "ezDoubleClick",
|
|
572
|
+
"bubbles": true,
|
|
573
|
+
"cancelable": true,
|
|
574
|
+
"composed": true,
|
|
575
|
+
"docs": {
|
|
576
|
+
"tags": [],
|
|
577
|
+
"text": "Emitido com o duplo clique de uma linha"
|
|
578
|
+
},
|
|
579
|
+
"complexType": {
|
|
580
|
+
"original": "any",
|
|
581
|
+
"resolved": "any",
|
|
582
|
+
"references": {}
|
|
583
|
+
}
|
|
584
|
+
}, {
|
|
585
|
+
"method": "configChange",
|
|
586
|
+
"name": "configChange",
|
|
587
|
+
"bubbles": true,
|
|
588
|
+
"cancelable": true,
|
|
589
|
+
"composed": true,
|
|
590
|
+
"docs": {
|
|
591
|
+
"tags": [],
|
|
592
|
+
"text": "Emitido quando acontece a altera\u00E7\u00E3o de configura\u00E7\u00E3o do grade."
|
|
593
|
+
},
|
|
594
|
+
"complexType": {
|
|
595
|
+
"original": "IGridConfig",
|
|
596
|
+
"resolved": "IGridConfig",
|
|
597
|
+
"references": {
|
|
598
|
+
"IGridConfig": {
|
|
599
|
+
"location": "import",
|
|
600
|
+
"path": "./controller/EzGridController"
|
|
601
|
+
}
|
|
602
|
+
}
|
|
603
|
+
}
|
|
604
|
+
}, {
|
|
605
|
+
"method": "componentReady",
|
|
606
|
+
"name": "componentReady",
|
|
607
|
+
"bubbles": true,
|
|
608
|
+
"cancelable": true,
|
|
609
|
+
"composed": true,
|
|
610
|
+
"docs": {
|
|
611
|
+
"tags": [],
|
|
612
|
+
"text": "Emitido quando o componente estiver completamente carregado."
|
|
613
|
+
},
|
|
614
|
+
"complexType": {
|
|
615
|
+
"original": "void",
|
|
616
|
+
"resolved": "void",
|
|
617
|
+
"references": {}
|
|
618
|
+
}
|
|
619
|
+
}];
|
|
620
|
+
}
|
|
621
|
+
static get methods() {
|
|
622
|
+
return {
|
|
623
|
+
"setColumnsDef": {
|
|
624
|
+
"complexType": {
|
|
625
|
+
"signature": "(cols: Array<EzGridColumn>) => Promise<void>",
|
|
626
|
+
"parameters": [{
|
|
627
|
+
"tags": [],
|
|
628
|
+
"text": ""
|
|
629
|
+
}],
|
|
630
|
+
"references": {
|
|
631
|
+
"Promise": {
|
|
632
|
+
"location": "global"
|
|
633
|
+
},
|
|
634
|
+
"Array": {
|
|
635
|
+
"location": "global"
|
|
636
|
+
},
|
|
637
|
+
"EzGridColumn": {
|
|
638
|
+
"location": "import",
|
|
639
|
+
"path": "./controller/EzGridController"
|
|
640
|
+
}
|
|
641
|
+
},
|
|
642
|
+
"return": "Promise<void>"
|
|
643
|
+
},
|
|
644
|
+
"docs": {
|
|
645
|
+
"text": "Aplica a defini\u00E7\u00E3o de colunas.",
|
|
646
|
+
"tags": []
|
|
647
|
+
}
|
|
648
|
+
},
|
|
649
|
+
"addColumnMenuItem": {
|
|
650
|
+
"complexType": {
|
|
651
|
+
"signature": "(label: string, name: string, action: Function, icon: HTMLElement | string) => Promise<void>",
|
|
652
|
+
"parameters": [{
|
|
653
|
+
"tags": [],
|
|
654
|
+
"text": ""
|
|
655
|
+
}, {
|
|
656
|
+
"tags": [],
|
|
657
|
+
"text": ""
|
|
658
|
+
}, {
|
|
659
|
+
"tags": [],
|
|
660
|
+
"text": ""
|
|
661
|
+
}, {
|
|
662
|
+
"tags": [],
|
|
663
|
+
"text": ""
|
|
664
|
+
}],
|
|
665
|
+
"references": {
|
|
666
|
+
"Promise": {
|
|
667
|
+
"location": "global"
|
|
668
|
+
},
|
|
669
|
+
"Function": {
|
|
670
|
+
"location": "global"
|
|
671
|
+
},
|
|
672
|
+
"HTMLElement": {
|
|
673
|
+
"location": "global"
|
|
674
|
+
}
|
|
675
|
+
},
|
|
676
|
+
"return": "Promise<void>"
|
|
677
|
+
},
|
|
678
|
+
"docs": {
|
|
679
|
+
"text": "Adiciona item de menu nas colunas.",
|
|
680
|
+
"tags": []
|
|
681
|
+
}
|
|
682
|
+
},
|
|
683
|
+
"setColumnsState": {
|
|
684
|
+
"complexType": {
|
|
685
|
+
"signature": "(state: Array<EzGridColumnConfig>) => Promise<void>",
|
|
686
|
+
"parameters": [{
|
|
687
|
+
"tags": [],
|
|
688
|
+
"text": ""
|
|
689
|
+
}],
|
|
690
|
+
"references": {
|
|
691
|
+
"Promise": {
|
|
692
|
+
"location": "global"
|
|
693
|
+
},
|
|
694
|
+
"Array": {
|
|
695
|
+
"location": "global"
|
|
696
|
+
},
|
|
697
|
+
"EzGridColumnConfig": {
|
|
698
|
+
"location": "import",
|
|
699
|
+
"path": "./controller/EzGridController"
|
|
700
|
+
}
|
|
701
|
+
},
|
|
702
|
+
"return": "Promise<void>"
|
|
703
|
+
},
|
|
704
|
+
"docs": {
|
|
705
|
+
"text": "Aplica o estado das colunas.",
|
|
706
|
+
"tags": []
|
|
707
|
+
}
|
|
708
|
+
},
|
|
709
|
+
"setData": {
|
|
710
|
+
"complexType": {
|
|
711
|
+
"signature": "(data: Array<any>) => Promise<void>",
|
|
712
|
+
"parameters": [{
|
|
713
|
+
"tags": [],
|
|
714
|
+
"text": ""
|
|
715
|
+
}],
|
|
716
|
+
"references": {
|
|
717
|
+
"Promise": {
|
|
718
|
+
"location": "global"
|
|
719
|
+
},
|
|
720
|
+
"Array": {
|
|
721
|
+
"location": "global"
|
|
722
|
+
}
|
|
723
|
+
},
|
|
724
|
+
"return": "Promise<void>"
|
|
725
|
+
},
|
|
726
|
+
"docs": {
|
|
727
|
+
"text": "Insere os registros no ez-grid.",
|
|
728
|
+
"tags": []
|
|
729
|
+
}
|
|
730
|
+
},
|
|
731
|
+
"getSelection": {
|
|
732
|
+
"complexType": {
|
|
733
|
+
"signature": "() => Promise<Array<any>>",
|
|
734
|
+
"parameters": [],
|
|
735
|
+
"references": {
|
|
736
|
+
"Promise": {
|
|
737
|
+
"location": "global"
|
|
738
|
+
},
|
|
739
|
+
"Array": {
|
|
740
|
+
"location": "global"
|
|
741
|
+
}
|
|
742
|
+
},
|
|
743
|
+
"return": "Promise<any[]>"
|
|
744
|
+
},
|
|
745
|
+
"docs": {
|
|
746
|
+
"text": "Obt\u00E9m as linhas selecionadas.",
|
|
747
|
+
"tags": []
|
|
748
|
+
}
|
|
749
|
+
},
|
|
750
|
+
"getColumnsState": {
|
|
751
|
+
"complexType": {
|
|
752
|
+
"signature": "() => Promise<Array<EzGridColumn>>",
|
|
753
|
+
"parameters": [],
|
|
754
|
+
"references": {
|
|
755
|
+
"Promise": {
|
|
756
|
+
"location": "global"
|
|
757
|
+
},
|
|
758
|
+
"EzGridColumn": {
|
|
759
|
+
"location": "import",
|
|
760
|
+
"path": "./controller/EzGridController"
|
|
761
|
+
},
|
|
762
|
+
"Array": {
|
|
763
|
+
"location": "global"
|
|
764
|
+
}
|
|
765
|
+
},
|
|
766
|
+
"return": "Promise<EzGridColumn[]>"
|
|
767
|
+
},
|
|
768
|
+
"docs": {
|
|
769
|
+
"text": "Obt\u00E9m o estado atual das colunas.",
|
|
770
|
+
"tags": []
|
|
771
|
+
}
|
|
772
|
+
},
|
|
773
|
+
"getColumns": {
|
|
774
|
+
"complexType": {
|
|
775
|
+
"signature": "() => Promise<Array<EzGridColumn>>",
|
|
776
|
+
"parameters": [],
|
|
777
|
+
"references": {
|
|
778
|
+
"Promise": {
|
|
779
|
+
"location": "global"
|
|
780
|
+
},
|
|
781
|
+
"EzGridColumn": {
|
|
782
|
+
"location": "import",
|
|
783
|
+
"path": "./controller/EzGridController"
|
|
784
|
+
},
|
|
785
|
+
"Array": {
|
|
786
|
+
"location": "global"
|
|
787
|
+
}
|
|
788
|
+
},
|
|
789
|
+
"return": "Promise<EzGridColumn[]>"
|
|
790
|
+
},
|
|
791
|
+
"docs": {
|
|
792
|
+
"text": "Obt\u00E9m a lista de defini\u00E7\u00E3o de colunas.",
|
|
793
|
+
"tags": []
|
|
794
|
+
}
|
|
795
|
+
},
|
|
796
|
+
"quickFilter": {
|
|
797
|
+
"complexType": {
|
|
798
|
+
"signature": "(term: string) => Promise<void>",
|
|
799
|
+
"parameters": [{
|
|
800
|
+
"tags": [],
|
|
801
|
+
"text": ""
|
|
802
|
+
}],
|
|
803
|
+
"references": {
|
|
804
|
+
"Promise": {
|
|
805
|
+
"location": "global"
|
|
806
|
+
}
|
|
807
|
+
},
|
|
808
|
+
"return": "Promise<void>"
|
|
809
|
+
},
|
|
810
|
+
"docs": {
|
|
811
|
+
"text": "Aplica um filtro r\u00E1pido.",
|
|
812
|
+
"tags": []
|
|
813
|
+
}
|
|
814
|
+
}
|
|
815
|
+
};
|
|
816
|
+
}
|
|
817
|
+
static get elementRef() { return "_element"; }
|
|
818
|
+
static get watchers() {
|
|
819
|
+
return [{
|
|
820
|
+
"propName": "config",
|
|
821
|
+
"methodName": "observeConfig"
|
|
822
|
+
}];
|
|
823
|
+
}
|
|
824
|
+
static get listeners() {
|
|
825
|
+
return [{
|
|
826
|
+
"name": "ezSelectionChange",
|
|
827
|
+
"method": "onSelectionChange",
|
|
828
|
+
"target": undefined,
|
|
829
|
+
"capture": false,
|
|
830
|
+
"passive": false
|
|
831
|
+
}];
|
|
832
|
+
}
|
|
833
|
+
}
|