@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,407 @@
|
|
|
1
|
+
import { ElementIDUtils } from "@sankhyalabs/core";
|
|
2
|
+
import { h } from "@stencil/core";
|
|
3
|
+
import CSSVarsUtils from "../../utils/CSSVarsUtils";
|
|
4
|
+
export class EzFilterInput {
|
|
5
|
+
constructor() {
|
|
6
|
+
this._searchingText = "";
|
|
7
|
+
this.handleFocus = () => {
|
|
8
|
+
if (this._searchingText === "") {
|
|
9
|
+
this._textInput.value = "";
|
|
10
|
+
}
|
|
11
|
+
else {
|
|
12
|
+
this._textInput.value = this._searchingText;
|
|
13
|
+
}
|
|
14
|
+
this.ezFocusIn.emit();
|
|
15
|
+
};
|
|
16
|
+
this.label = undefined;
|
|
17
|
+
this.value = undefined;
|
|
18
|
+
this.enabled = true;
|
|
19
|
+
this.errorMessage = undefined;
|
|
20
|
+
this.restrict = undefined;
|
|
21
|
+
this.mode = "regular";
|
|
22
|
+
this.asyncSearch = false;
|
|
23
|
+
this.canShowError = true;
|
|
24
|
+
}
|
|
25
|
+
observeLabel() {
|
|
26
|
+
if (this._textInput) {
|
|
27
|
+
this._textInput.label = this.label;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
observeErrorMessage() {
|
|
31
|
+
if (this._textInput) {
|
|
32
|
+
this._textInput.errorMessage = this.errorMessage;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
observeValue(newValue, oldValue) {
|
|
36
|
+
if (this._textInput && newValue != oldValue) {
|
|
37
|
+
this._textInput.value = newValue;
|
|
38
|
+
this.ezChange.emit(newValue);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Aplica o foco no campo.
|
|
43
|
+
*/
|
|
44
|
+
async setFocus() {
|
|
45
|
+
this._textInput.setFocus();
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Remove o foco do campo.
|
|
49
|
+
*/
|
|
50
|
+
async setBlur() {
|
|
51
|
+
this._textInput.setBlur();
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Retorna se o conteúdo é inválido.
|
|
55
|
+
*/
|
|
56
|
+
async isInvalid() {
|
|
57
|
+
return typeof this.errorMessage === "string" && this.errorMessage.trim() !== "";
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Método responsável por setar um novo valor ao campo.
|
|
61
|
+
*/
|
|
62
|
+
async setValue(newValue) {
|
|
63
|
+
if (!this.asyncSearch || this._textInput == undefined) {
|
|
64
|
+
return;
|
|
65
|
+
}
|
|
66
|
+
if (newValue !== this.value) {
|
|
67
|
+
this.value = newValue;
|
|
68
|
+
this._searchingText = "";
|
|
69
|
+
}
|
|
70
|
+
else {
|
|
71
|
+
this._textInput.value = newValue;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Método responsável por resetar o valor do campo para o ultimo valor inputado.
|
|
76
|
+
*/
|
|
77
|
+
async endSearch() {
|
|
78
|
+
if (!this.asyncSearch || this._textInput == undefined) {
|
|
79
|
+
return;
|
|
80
|
+
}
|
|
81
|
+
if (this._textInput.value !== this.value) {
|
|
82
|
+
this._textInput.value = this.value;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
handleChange(evt) {
|
|
86
|
+
const newValue = evt.detail;
|
|
87
|
+
this.errorMessage = "";
|
|
88
|
+
if (this.asyncSearch) {
|
|
89
|
+
this._searchingText = newValue;
|
|
90
|
+
this.ezSearching.emit(newValue);
|
|
91
|
+
}
|
|
92
|
+
else if (newValue !== this.value) {
|
|
93
|
+
this.value = newValue;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
componentDidLoad() {
|
|
97
|
+
CSSVarsUtils.applyVarsTextInput(this._elem, this._textInput);
|
|
98
|
+
}
|
|
99
|
+
render() {
|
|
100
|
+
ElementIDUtils.addIDInfoIfNotExists(this._elem, 'input');
|
|
101
|
+
return (h("ez-text-input", { "data-element-id": ElementIDUtils.getInternalIDInfo("textInput"), ref: elem => this._textInput = elem, label: this.label, onEzChange: evt => this.handleChange(evt), value: this.value, enabled: this.enabled, errorMessage: this.errorMessage, restrict: this.restrict, mode: this.mode, onFocusin: this.handleFocus, canShowError: this.canShowError }, h("ez-icon", { slot: "leftIcon", iconName: "search" })));
|
|
102
|
+
}
|
|
103
|
+
static get is() { return "ez-filter-input"; }
|
|
104
|
+
static get encapsulation() { return "shadow"; }
|
|
105
|
+
static get originalStyleUrls() {
|
|
106
|
+
return {
|
|
107
|
+
"$": ["ez-filter-input.css"]
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
static get styleUrls() {
|
|
111
|
+
return {
|
|
112
|
+
"$": ["ez-filter-input.css"]
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
static get properties() {
|
|
116
|
+
return {
|
|
117
|
+
"label": {
|
|
118
|
+
"type": "string",
|
|
119
|
+
"mutable": false,
|
|
120
|
+
"complexType": {
|
|
121
|
+
"original": "string",
|
|
122
|
+
"resolved": "string",
|
|
123
|
+
"references": {}
|
|
124
|
+
},
|
|
125
|
+
"required": false,
|
|
126
|
+
"optional": false,
|
|
127
|
+
"docs": {
|
|
128
|
+
"tags": [],
|
|
129
|
+
"text": "Texto a ser apresentado como t\u00EDtulo do campo."
|
|
130
|
+
},
|
|
131
|
+
"attribute": "label",
|
|
132
|
+
"reflect": false
|
|
133
|
+
},
|
|
134
|
+
"value": {
|
|
135
|
+
"type": "string",
|
|
136
|
+
"mutable": true,
|
|
137
|
+
"complexType": {
|
|
138
|
+
"original": "string",
|
|
139
|
+
"resolved": "string",
|
|
140
|
+
"references": {}
|
|
141
|
+
},
|
|
142
|
+
"required": false,
|
|
143
|
+
"optional": false,
|
|
144
|
+
"docs": {
|
|
145
|
+
"tags": [],
|
|
146
|
+
"text": "Define o valor do campo."
|
|
147
|
+
},
|
|
148
|
+
"attribute": "value",
|
|
149
|
+
"reflect": true
|
|
150
|
+
},
|
|
151
|
+
"enabled": {
|
|
152
|
+
"type": "boolean",
|
|
153
|
+
"mutable": false,
|
|
154
|
+
"complexType": {
|
|
155
|
+
"original": "boolean",
|
|
156
|
+
"resolved": "boolean",
|
|
157
|
+
"references": {}
|
|
158
|
+
},
|
|
159
|
+
"required": false,
|
|
160
|
+
"optional": false,
|
|
161
|
+
"docs": {
|
|
162
|
+
"tags": [],
|
|
163
|
+
"text": "Se false o usu\u00E1rio n\u00E3o pode interagir com o campo."
|
|
164
|
+
},
|
|
165
|
+
"attribute": "enabled",
|
|
166
|
+
"reflect": false,
|
|
167
|
+
"defaultValue": "true"
|
|
168
|
+
},
|
|
169
|
+
"errorMessage": {
|
|
170
|
+
"type": "string",
|
|
171
|
+
"mutable": true,
|
|
172
|
+
"complexType": {
|
|
173
|
+
"original": "string",
|
|
174
|
+
"resolved": "string",
|
|
175
|
+
"references": {}
|
|
176
|
+
},
|
|
177
|
+
"required": false,
|
|
178
|
+
"optional": false,
|
|
179
|
+
"docs": {
|
|
180
|
+
"tags": [],
|
|
181
|
+
"text": "Define uma mensagem de orienta\u00E7\u00E3o ao usu\u00E1rio, colocando o campo em modo inv\u00E1lido."
|
|
182
|
+
},
|
|
183
|
+
"attribute": "error-message",
|
|
184
|
+
"reflect": true
|
|
185
|
+
},
|
|
186
|
+
"restrict": {
|
|
187
|
+
"type": "string",
|
|
188
|
+
"mutable": false,
|
|
189
|
+
"complexType": {
|
|
190
|
+
"original": "string",
|
|
191
|
+
"resolved": "string",
|
|
192
|
+
"references": {}
|
|
193
|
+
},
|
|
194
|
+
"required": false,
|
|
195
|
+
"optional": false,
|
|
196
|
+
"docs": {
|
|
197
|
+
"tags": [],
|
|
198
|
+
"text": "Restringe o que o usu\u00E1rio pode digitar."
|
|
199
|
+
},
|
|
200
|
+
"attribute": "restrict",
|
|
201
|
+
"reflect": false
|
|
202
|
+
},
|
|
203
|
+
"mode": {
|
|
204
|
+
"type": "string",
|
|
205
|
+
"mutable": false,
|
|
206
|
+
"complexType": {
|
|
207
|
+
"original": "\"slim\" | \"regular\"",
|
|
208
|
+
"resolved": "\"regular\" | \"slim\"",
|
|
209
|
+
"references": {}
|
|
210
|
+
},
|
|
211
|
+
"required": false,
|
|
212
|
+
"optional": false,
|
|
213
|
+
"docs": {
|
|
214
|
+
"tags": [],
|
|
215
|
+
"text": "Define o tamanho do campo."
|
|
216
|
+
},
|
|
217
|
+
"attribute": "mode",
|
|
218
|
+
"reflect": true,
|
|
219
|
+
"defaultValue": "\"regular\""
|
|
220
|
+
},
|
|
221
|
+
"asyncSearch": {
|
|
222
|
+
"type": "boolean",
|
|
223
|
+
"mutable": false,
|
|
224
|
+
"complexType": {
|
|
225
|
+
"original": "boolean",
|
|
226
|
+
"resolved": "boolean",
|
|
227
|
+
"references": {}
|
|
228
|
+
},
|
|
229
|
+
"required": false,
|
|
230
|
+
"optional": false,
|
|
231
|
+
"docs": {
|
|
232
|
+
"tags": [],
|
|
233
|
+
"text": "Define se o campo ir\u00E1 funcionar de forma ass\u00EDncrona."
|
|
234
|
+
},
|
|
235
|
+
"attribute": "async-search",
|
|
236
|
+
"reflect": true,
|
|
237
|
+
"defaultValue": "false"
|
|
238
|
+
},
|
|
239
|
+
"canShowError": {
|
|
240
|
+
"type": "boolean",
|
|
241
|
+
"mutable": false,
|
|
242
|
+
"complexType": {
|
|
243
|
+
"original": "boolean",
|
|
244
|
+
"resolved": "boolean",
|
|
245
|
+
"references": {}
|
|
246
|
+
},
|
|
247
|
+
"required": false,
|
|
248
|
+
"optional": false,
|
|
249
|
+
"docs": {
|
|
250
|
+
"tags": [],
|
|
251
|
+
"text": "Se false deixa de exibir a mensagem de erro dentro do campo."
|
|
252
|
+
},
|
|
253
|
+
"attribute": "can-show-error",
|
|
254
|
+
"reflect": true,
|
|
255
|
+
"defaultValue": "true"
|
|
256
|
+
}
|
|
257
|
+
};
|
|
258
|
+
}
|
|
259
|
+
static get events() {
|
|
260
|
+
return [{
|
|
261
|
+
"method": "ezChange",
|
|
262
|
+
"name": "ezChange",
|
|
263
|
+
"bubbles": true,
|
|
264
|
+
"cancelable": true,
|
|
265
|
+
"composed": true,
|
|
266
|
+
"docs": {
|
|
267
|
+
"tags": [],
|
|
268
|
+
"text": "Emitido quando acontece a altera\u00E7\u00E3o de valor do campo."
|
|
269
|
+
},
|
|
270
|
+
"complexType": {
|
|
271
|
+
"original": "string",
|
|
272
|
+
"resolved": "string",
|
|
273
|
+
"references": {}
|
|
274
|
+
}
|
|
275
|
+
}, {
|
|
276
|
+
"method": "ezSearching",
|
|
277
|
+
"name": "ezSearching",
|
|
278
|
+
"bubbles": true,
|
|
279
|
+
"cancelable": true,
|
|
280
|
+
"composed": true,
|
|
281
|
+
"docs": {
|
|
282
|
+
"tags": [],
|
|
283
|
+
"text": "Emitido quando est\u00E1 sendo realizada uma pesquisa no modo asyncSearch."
|
|
284
|
+
},
|
|
285
|
+
"complexType": {
|
|
286
|
+
"original": "string",
|
|
287
|
+
"resolved": "string",
|
|
288
|
+
"references": {}
|
|
289
|
+
}
|
|
290
|
+
}, {
|
|
291
|
+
"method": "ezFocusIn",
|
|
292
|
+
"name": "ezFocusIn",
|
|
293
|
+
"bubbles": true,
|
|
294
|
+
"cancelable": true,
|
|
295
|
+
"composed": true,
|
|
296
|
+
"docs": {
|
|
297
|
+
"tags": [],
|
|
298
|
+
"text": "Emitido quando acontece o foco no campo."
|
|
299
|
+
},
|
|
300
|
+
"complexType": {
|
|
301
|
+
"original": "void",
|
|
302
|
+
"resolved": "void",
|
|
303
|
+
"references": {}
|
|
304
|
+
}
|
|
305
|
+
}];
|
|
306
|
+
}
|
|
307
|
+
static get methods() {
|
|
308
|
+
return {
|
|
309
|
+
"setFocus": {
|
|
310
|
+
"complexType": {
|
|
311
|
+
"signature": "() => Promise<void>",
|
|
312
|
+
"parameters": [],
|
|
313
|
+
"references": {
|
|
314
|
+
"Promise": {
|
|
315
|
+
"location": "global"
|
|
316
|
+
}
|
|
317
|
+
},
|
|
318
|
+
"return": "Promise<void>"
|
|
319
|
+
},
|
|
320
|
+
"docs": {
|
|
321
|
+
"text": "Aplica o foco no campo.",
|
|
322
|
+
"tags": []
|
|
323
|
+
}
|
|
324
|
+
},
|
|
325
|
+
"setBlur": {
|
|
326
|
+
"complexType": {
|
|
327
|
+
"signature": "() => Promise<void>",
|
|
328
|
+
"parameters": [],
|
|
329
|
+
"references": {
|
|
330
|
+
"Promise": {
|
|
331
|
+
"location": "global"
|
|
332
|
+
}
|
|
333
|
+
},
|
|
334
|
+
"return": "Promise<void>"
|
|
335
|
+
},
|
|
336
|
+
"docs": {
|
|
337
|
+
"text": "Remove o foco do campo.",
|
|
338
|
+
"tags": []
|
|
339
|
+
}
|
|
340
|
+
},
|
|
341
|
+
"isInvalid": {
|
|
342
|
+
"complexType": {
|
|
343
|
+
"signature": "() => Promise<boolean>",
|
|
344
|
+
"parameters": [],
|
|
345
|
+
"references": {
|
|
346
|
+
"Promise": {
|
|
347
|
+
"location": "global"
|
|
348
|
+
}
|
|
349
|
+
},
|
|
350
|
+
"return": "Promise<boolean>"
|
|
351
|
+
},
|
|
352
|
+
"docs": {
|
|
353
|
+
"text": "Retorna se o conte\u00FAdo \u00E9 inv\u00E1lido.",
|
|
354
|
+
"tags": []
|
|
355
|
+
}
|
|
356
|
+
},
|
|
357
|
+
"setValue": {
|
|
358
|
+
"complexType": {
|
|
359
|
+
"signature": "(newValue: string) => Promise<void>",
|
|
360
|
+
"parameters": [{
|
|
361
|
+
"tags": [],
|
|
362
|
+
"text": ""
|
|
363
|
+
}],
|
|
364
|
+
"references": {
|
|
365
|
+
"Promise": {
|
|
366
|
+
"location": "global"
|
|
367
|
+
}
|
|
368
|
+
},
|
|
369
|
+
"return": "Promise<void>"
|
|
370
|
+
},
|
|
371
|
+
"docs": {
|
|
372
|
+
"text": "M\u00E9todo respons\u00E1vel por setar um novo valor ao campo.",
|
|
373
|
+
"tags": []
|
|
374
|
+
}
|
|
375
|
+
},
|
|
376
|
+
"endSearch": {
|
|
377
|
+
"complexType": {
|
|
378
|
+
"signature": "() => Promise<void>",
|
|
379
|
+
"parameters": [],
|
|
380
|
+
"references": {
|
|
381
|
+
"Promise": {
|
|
382
|
+
"location": "global"
|
|
383
|
+
}
|
|
384
|
+
},
|
|
385
|
+
"return": "Promise<void>"
|
|
386
|
+
},
|
|
387
|
+
"docs": {
|
|
388
|
+
"text": "M\u00E9todo respons\u00E1vel por resetar o valor do campo para o ultimo valor inputado.",
|
|
389
|
+
"tags": []
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
};
|
|
393
|
+
}
|
|
394
|
+
static get elementRef() { return "_elem"; }
|
|
395
|
+
static get watchers() {
|
|
396
|
+
return [{
|
|
397
|
+
"propName": "label",
|
|
398
|
+
"methodName": "observeLabel"
|
|
399
|
+
}, {
|
|
400
|
+
"propName": "errorMessage",
|
|
401
|
+
"methodName": "observeErrorMessage"
|
|
402
|
+
}, {
|
|
403
|
+
"propName": "value",
|
|
404
|
+
"methodName": "observeValue"
|
|
405
|
+
}];
|
|
406
|
+
}
|
|
407
|
+
}
|
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
import { Action, DataUnit, ElementIDUtils, StringUtils } from "@sankhyalabs/core";
|
|
2
|
+
import { Host, forceUpdate, h } from "@stencil/core";
|
|
3
|
+
import { createStore } from "redux";
|
|
4
|
+
import { changeTab, formReducer, loadMetadata, selectCurrentSheet, selectFormMetadata } from "./store/form.slice";
|
|
5
|
+
import { buildFormMetadata } from "../../utils/form/FormMetadata";
|
|
6
|
+
import DataBinder from "../../utils/form/DataBinder";
|
|
7
|
+
export class EzForm {
|
|
8
|
+
constructor() {
|
|
9
|
+
this.onDataUnitAction = (action) => {
|
|
10
|
+
if (action.type === Action.METADATA_LOADED) {
|
|
11
|
+
this.processMetadata();
|
|
12
|
+
}
|
|
13
|
+
};
|
|
14
|
+
this.dataUnit = undefined;
|
|
15
|
+
this.config = undefined;
|
|
16
|
+
this.recordsValidator = undefined;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Realiza validação no conteúdo de todos os campos.
|
|
20
|
+
*/
|
|
21
|
+
validate() {
|
|
22
|
+
return this._dataBinder.validate();
|
|
23
|
+
}
|
|
24
|
+
observeConfig() {
|
|
25
|
+
this.processMetadata();
|
|
26
|
+
}
|
|
27
|
+
getDynamicContent() {
|
|
28
|
+
var _a;
|
|
29
|
+
const formMD = selectFormMetadata(this._store.getState());
|
|
30
|
+
if (!formMD) {
|
|
31
|
+
return null;
|
|
32
|
+
}
|
|
33
|
+
const allSheets = Array.from(formMD.getAllSheets().values());
|
|
34
|
+
const currentSheet = selectCurrentSheet((_a = this._store) === null || _a === void 0 ? void 0 : _a.getState());
|
|
35
|
+
let result = [];
|
|
36
|
+
if (allSheets.length > 1) {
|
|
37
|
+
const tabs = allSheets.map((sheet, index) => {
|
|
38
|
+
return { tabKey: sheet.name, label: sheet.label, index };
|
|
39
|
+
});
|
|
40
|
+
const idTabSelector = `selector`;
|
|
41
|
+
result.push(h("ez-tabselector", { tabs: this.buildIdTabSelector(tabs), onEzChange: (evt) => this._store.dispatch(changeTab(evt.detail)), selectedTab: currentSheet.name, "data-element-id": idTabSelector }));
|
|
42
|
+
}
|
|
43
|
+
result = result.concat(this.buildFormContent(currentSheet));
|
|
44
|
+
return result;
|
|
45
|
+
}
|
|
46
|
+
buildFormContent(currentSheet) {
|
|
47
|
+
const fields = currentSheet === null || currentSheet === void 0 ? void 0 : currentSheet.fields;
|
|
48
|
+
if (currentSheet == undefined) {
|
|
49
|
+
return;
|
|
50
|
+
}
|
|
51
|
+
const idFormSheet = `${StringUtils.replaceAccentuatedChars(StringUtils.toCamelCase(currentSheet === null || currentSheet === void 0 ? void 0 : currentSheet.label), false)}_selectorContainer`;
|
|
52
|
+
return (h("div", { class: "dynamic-content", "data-element-id": idFormSheet }, h("ez-form-view", { class: "ez-row ez-padding-vertical--small", fields: fields })));
|
|
53
|
+
}
|
|
54
|
+
processMetadata() {
|
|
55
|
+
if (!this.isStatic() && this.dataUnit && this._store) {
|
|
56
|
+
const metadata = buildFormMetadata(this.config, this.dataUnit);
|
|
57
|
+
this._store.dispatch(loadMetadata(metadata));
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
isStatic() {
|
|
61
|
+
var _a;
|
|
62
|
+
return ((_a = this._staticFields) === null || _a === void 0 ? void 0 : _a.length) > 0;
|
|
63
|
+
}
|
|
64
|
+
componentWillLoad() {
|
|
65
|
+
if (this.dataUnit === undefined) {
|
|
66
|
+
this.dataUnit = new DataUnit("ez-form");
|
|
67
|
+
}
|
|
68
|
+
this.dataUnit.subscribe(this.onDataUnitAction);
|
|
69
|
+
this._dataBinder = new DataBinder(this.dataUnit);
|
|
70
|
+
this._store = createStore(formReducer);
|
|
71
|
+
this._store.subscribe(() => forceUpdate(this));
|
|
72
|
+
this._staticFields = Array.from(this._element.querySelectorAll("[data-field-name]"));
|
|
73
|
+
this.processMetadata();
|
|
74
|
+
const dataInfo = { dataUnit: this.dataUnit };
|
|
75
|
+
ElementIDUtils.addIDInfo(this._element, null, dataInfo);
|
|
76
|
+
}
|
|
77
|
+
componentDidRender() {
|
|
78
|
+
const metadata = selectFormMetadata(this._store.getState());
|
|
79
|
+
metadata.addRequiredFields(this._staticFields.filter(f => f.dataset.required).map(f => f.dataset.fieldName));
|
|
80
|
+
this._dataBinder.bind(Array.from(this._element.querySelectorAll("[data-field-name]")), this.dataUnit.dataUnitId, metadata, this.recordsValidator);
|
|
81
|
+
this.ezReady.emit();
|
|
82
|
+
}
|
|
83
|
+
disconnectedCallback() {
|
|
84
|
+
this.dataUnit.unsubscribe(this.onDataUnitAction);
|
|
85
|
+
this._dataBinder.onDisconnectedCallback();
|
|
86
|
+
}
|
|
87
|
+
buildIdTabSelector(tabs) {
|
|
88
|
+
if (tabs) {
|
|
89
|
+
tabs.forEach(tab => tab[ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME] = StringUtils.toCamelCase(tab.label));
|
|
90
|
+
}
|
|
91
|
+
return tabs;
|
|
92
|
+
}
|
|
93
|
+
render() {
|
|
94
|
+
return (h(Host, null, this.isStatic() ? null : this.getDynamicContent()));
|
|
95
|
+
}
|
|
96
|
+
static get is() { return "ez-form"; }
|
|
97
|
+
static get encapsulation() { return "scoped"; }
|
|
98
|
+
static get originalStyleUrls() {
|
|
99
|
+
return {
|
|
100
|
+
"$": ["ez-form.css"]
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
static get styleUrls() {
|
|
104
|
+
return {
|
|
105
|
+
"$": ["ez-form.css"]
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
static get properties() {
|
|
109
|
+
return {
|
|
110
|
+
"dataUnit": {
|
|
111
|
+
"type": "unknown",
|
|
112
|
+
"mutable": true,
|
|
113
|
+
"complexType": {
|
|
114
|
+
"original": "DataUnit",
|
|
115
|
+
"resolved": "DataUnit",
|
|
116
|
+
"references": {
|
|
117
|
+
"DataUnit": {
|
|
118
|
+
"location": "import",
|
|
119
|
+
"path": "@sankhyalabs/core"
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
"required": false,
|
|
124
|
+
"optional": false,
|
|
125
|
+
"docs": {
|
|
126
|
+
"tags": [],
|
|
127
|
+
"text": "Unidade de dados. Respons\u00E1vel pelo controle de edi\u00E7\u00E3o de registros e \ninforma\u00E7\u00F5es pertinentes aos campos."
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
"config": {
|
|
131
|
+
"type": "unknown",
|
|
132
|
+
"mutable": false,
|
|
133
|
+
"complexType": {
|
|
134
|
+
"original": "IFormConfig",
|
|
135
|
+
"resolved": "IFormConfig",
|
|
136
|
+
"references": {
|
|
137
|
+
"IFormConfig": {
|
|
138
|
+
"location": "import",
|
|
139
|
+
"path": "../../utils/form/interfaces"
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
"required": false,
|
|
144
|
+
"optional": false,
|
|
145
|
+
"docs": {
|
|
146
|
+
"tags": [],
|
|
147
|
+
"text": "Configura\u00E7\u00E3o do formul\u00E1rio."
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
"recordsValidator": {
|
|
151
|
+
"type": "unknown",
|
|
152
|
+
"mutable": false,
|
|
153
|
+
"complexType": {
|
|
154
|
+
"original": "IRecordValidator",
|
|
155
|
+
"resolved": "IRecordValidator",
|
|
156
|
+
"references": {
|
|
157
|
+
"IRecordValidator": {
|
|
158
|
+
"location": "import",
|
|
159
|
+
"path": "../../utils/form/interfaces"
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
},
|
|
163
|
+
"required": false,
|
|
164
|
+
"optional": false,
|
|
165
|
+
"docs": {
|
|
166
|
+
"tags": [],
|
|
167
|
+
"text": "Define um validador respons\u00E1vel pela integridade dos registros."
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
};
|
|
171
|
+
}
|
|
172
|
+
static get events() {
|
|
173
|
+
return [{
|
|
174
|
+
"method": "ezReady",
|
|
175
|
+
"name": "ezReady",
|
|
176
|
+
"bubbles": true,
|
|
177
|
+
"cancelable": true,
|
|
178
|
+
"composed": true,
|
|
179
|
+
"docs": {
|
|
180
|
+
"tags": [],
|
|
181
|
+
"text": "Evento disparado quando o formul\u00E1rio est\u00E1 dispon\u00EDvel na DOM."
|
|
182
|
+
},
|
|
183
|
+
"complexType": {
|
|
184
|
+
"original": "void",
|
|
185
|
+
"resolved": "void",
|
|
186
|
+
"references": {}
|
|
187
|
+
}
|
|
188
|
+
}, {
|
|
189
|
+
"method": "formItemsReady",
|
|
190
|
+
"name": "formItemsReady",
|
|
191
|
+
"bubbles": true,
|
|
192
|
+
"cancelable": true,
|
|
193
|
+
"composed": true,
|
|
194
|
+
"docs": {
|
|
195
|
+
"tags": [],
|
|
196
|
+
"text": "Respons\u00E1vel por notificar quando ocorrer a renderiza\u00E7\u00E3o de itens do formul\u00E1rio."
|
|
197
|
+
},
|
|
198
|
+
"complexType": {
|
|
199
|
+
"original": "FormItems",
|
|
200
|
+
"resolved": "FormItems",
|
|
201
|
+
"references": {
|
|
202
|
+
"FormItems": {
|
|
203
|
+
"location": "import",
|
|
204
|
+
"path": "../ez-form-view/structure"
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
}];
|
|
209
|
+
}
|
|
210
|
+
static get methods() {
|
|
211
|
+
return {
|
|
212
|
+
"validate": {
|
|
213
|
+
"complexType": {
|
|
214
|
+
"signature": "() => Promise<void>",
|
|
215
|
+
"parameters": [],
|
|
216
|
+
"references": {
|
|
217
|
+
"Promise": {
|
|
218
|
+
"location": "global"
|
|
219
|
+
}
|
|
220
|
+
},
|
|
221
|
+
"return": "Promise<void>"
|
|
222
|
+
},
|
|
223
|
+
"docs": {
|
|
224
|
+
"text": "Realiza valida\u00E7\u00E3o no conte\u00FAdo de todos os campos.",
|
|
225
|
+
"tags": []
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
};
|
|
229
|
+
}
|
|
230
|
+
static get elementRef() { return "_element"; }
|
|
231
|
+
static get watchers() {
|
|
232
|
+
return [{
|
|
233
|
+
"propName": "config",
|
|
234
|
+
"methodName": "observeConfig"
|
|
235
|
+
}];
|
|
236
|
+
}
|
|
237
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
const inicialState = {};
|
|
2
|
+
/////////////////////////////// REDUCERS ///////////////////////////////
|
|
3
|
+
export function formReducer(state = inicialState, action) {
|
|
4
|
+
switch (action.type) {
|
|
5
|
+
case FormActions.METADATA_LOADED:
|
|
6
|
+
return Object.assign(Object.assign({}, state), { formMetadata: action.payload, currentSheet: undefined });
|
|
7
|
+
case FormActions.CHANGE_TAB:
|
|
8
|
+
return Object.assign(Object.assign({}, state), { currentSheet: action.payload });
|
|
9
|
+
default:
|
|
10
|
+
return state;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
/////////////////////////////// ACTION CREATORS ///////////////////////////////
|
|
14
|
+
export function loadMetadata(formMetadata) {
|
|
15
|
+
return {
|
|
16
|
+
type: FormActions.METADATA_LOADED,
|
|
17
|
+
payload: formMetadata
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
export function changeTab(currentSheet) {
|
|
21
|
+
return {
|
|
22
|
+
type: FormActions.CHANGE_TAB,
|
|
23
|
+
payload: typeof currentSheet === "string" ? currentSheet : currentSheet.tabKey
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
/////////////////////////////// SELECTORS ///////////////////////////////
|
|
27
|
+
export function selectFormMetadata(state) {
|
|
28
|
+
return state.formMetadata;
|
|
29
|
+
}
|
|
30
|
+
export function selectCurrentSheetId(state) {
|
|
31
|
+
return state.currentSheet;
|
|
32
|
+
}
|
|
33
|
+
export function selectCurrentSheet(state) {
|
|
34
|
+
const currentSheetId = selectCurrentSheetId(state);
|
|
35
|
+
return currentSheetId ? state.formMetadata.getSheet(currentSheetId) : Array.from(state.formMetadata.getAllSheets().values())[0];
|
|
36
|
+
}
|
|
37
|
+
/////////////////////////////// TYPES ///////////////////////////////
|
|
38
|
+
var FormActions;
|
|
39
|
+
(function (FormActions) {
|
|
40
|
+
FormActions["METADATA_LOADED"] = "FORM/METADATA_LOADED";
|
|
41
|
+
FormActions["CHANGE_TAB"] = "FORM/CHANGE_TAB";
|
|
42
|
+
})(FormActions || (FormActions = {}));
|