@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
package/README.md
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
# Bibliteca de componentes EzUI
|
|
2
|
+
|
|
3
|
+
[](https://gitlab.sankhya.com.br/dti/design-system/ez-ui/-/commits/master)
|
|
4
|
+
|
|
5
|
+
Esse projeto é constituído por um monorepo com a seguinte hierarquia:
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
--ez-ui
|
|
9
|
+
-- package.json
|
|
10
|
+
-- .storybook
|
|
11
|
+
-- .storybook-dev
|
|
12
|
+
-- src/components
|
|
13
|
+
-- component1
|
|
14
|
+
-- component2
|
|
15
|
+
-- .gitlab-ci.yml
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
Observe que na raiz do ez-ui temos um packege.json que define as configurações de storybook para todos os componentes filhos dentro da hierarquia.
|
|
19
|
+
Cada subpasta (component1, component2) são componentes [Stencil](https://stenciljs.com/).
|
|
20
|
+
|
|
21
|
+
#### O EzUI foi baseado no [UiKit](https://xd.adobe.com/view/d45d91bf-f5a8-4814-899f-e781732807d1-810e/grid) disponibilizado pela equipe de UX da Sankhya.
|
|
22
|
+
|
|
23
|
+
## Executando o projeto
|
|
24
|
+
Para iniciar o projeto, basta ir até a pasta do componente que deseja testar (ex: ez-ui/component1) e executar o comando: `npm install && npm run dev`
|
|
25
|
+
Este procedimento irá iniciar um servidor do storybook para testar o componente. A porta que o servidor estará sendo executado é apresentada no console ao final do comando.
|
|
26
|
+
|
|
27
|
+
## Padrão de commit e merge request:
|
|
28
|
+
Hoje estamos utilizando o padrão de semantic release baseado no [angular](https://github.com/conventional-changelog/conventional-changelog/tree/master/packages/conventional-changelog-angular).
|
|
29
|
+
* A sintaxe pode ser observada logo abaixo:
|
|
30
|
+
```
|
|
31
|
+
<type>(<scope>): <short summary>
|
|
32
|
+
│ │ │
|
|
33
|
+
│ │ └─⫸ Summary in present tense. Not capitalized. No period at the end.
|
|
34
|
+
│ │
|
|
35
|
+
│ └─⫸ Commit Scope: animations|bazel|benchpress|common|compiler|compiler-cli|core|
|
|
36
|
+
│ elements|forms|http|language-service|localize|platform-browser|
|
|
37
|
+
│ platform-browser-dynamic|platform-server|router|service-worker|
|
|
38
|
+
│ upgrade|zone.js|packaging|changelog|dev-infra|docs-infra|migrations|
|
|
39
|
+
│ ngcc|ve
|
|
40
|
+
│
|
|
41
|
+
└─⫸ Commit Type: build|ci|docs|feat|fix|perf|refactor|test
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
- Na solicitação de merge request deve ter um titulo com o seguinte padrão: SKA-111 - Titulo sugestivo da minha modificação, onde, SKA-111 é id do card do jira.
|
|
45
|
+
|
|
46
|
+
## Fontes notáveis
|
|
47
|
+
|
|
48
|
+
- **ez-ui/.storybook/***: Nessa pasta temos arquivos de configuração do storybook. Essa pasta é utilizada em ambiente de produção.
|
|
49
|
+
* **ez-ui/.storybook/preview-head.html**: Esse arquivo é responsável por fazer o import de módulos dos webcomponents e dos styles globais da aplicação. Esse arquivo é utilizado em ambiente de produção.
|
|
50
|
+
- **ez-ui/.storybook-dev/***: Nessa pasta temos arquivos de configuração do storybook. Porém essa pasta é utilizada apenas em ambiente de desenvolvimento.
|
|
51
|
+
* **ez-ui/.storybook-dev/preview-head.html**: Esse arquivo é responsável por fazer o import de módulos dos webcomponents e dos styles globais da aplicação apenas em ambiente de desenvolvimento. **É aqui que devemos incluir os scripts de novos componentes para serem apresentados no storybook.**
|
|
52
|
+
- **ez-ui/.diststorybook**: Esse diretório é gerado automáticamente pelo `Gulp` no momento que executamos o comando `npm run dev` na pasta de um componente. É nesse diretório que temos os arquivos estáticos utilizados pelo storybook. O `ez-ui/.storybook-dev/preview-head.html` mapeia os módulos de componentes a partir desse diretório. Nele também pode ser encontrado arquivos `.CSS` (temas) globais da aplicação.
|
|
53
|
+
- **ez-ui/.gitlab-ci.yml**: Esse é o arquivo responsável pelo pipeline do projeto, nele você vai encontrar:
|
|
54
|
+
* Definição de stages: Por conta da dependência entre projetos, é importante a ordem com que a publicação dos componentes é feita no NPM, para isso definimos stages para cada componente, eles são utilizados nos jobs de deploy para que seja respeitada a ordem de publicação.
|
|
55
|
+
* Implementação dos jobs: build, test, deploy e storybook.
|
|
56
|
+
|
|
57
|
+
## Comandos NPM
|
|
58
|
+
- `npm run dev`: Esse comando foi criado com o intuito de facilitar a criação de novos componentes, em paralelo é executado três comandos: `storybook`, `build.watch` e `gulp`. Eles tem como objetivo principal subir um servidor do storybook e monitorar alterações nos componentes. Quando as alterações acontecerem, automaticamente o página do storybook é atualizada.
|
|
59
|
+
- `npm run storybook`: Esse comando inicia um servidor do storybook com os seguintes parâmetros:
|
|
60
|
+
- `.storybook-dev`: pasta onde estão as configurações do storybook.
|
|
61
|
+
- `.diststorybook`: pasta onde estão os arquivos estáticos utilizados pelo storybook.
|
|
62
|
+
- `npm run build.watch`: Esse comando tem o papel de iniciar o build dos componentes e monitorar alterações nos mesmo, caso ocorra alguma, o build dos componentes é executado e os arquivos são colocados na pasta /dist.
|
|
63
|
+
- `npm run gulp`: Utilizamos o gulp para automatizar as tarefas de desenvolvimento no projeto, essa task tem como principal tarefa, monitorar alterações na pasta /dist e realizar a cópia dos arquivos para a pasta /.diststorybook. No Gulp file temos as seguintes tasks:
|
|
64
|
+
* `watch`: Monitora alterações no diretório /dist fazendo a cópia dos mesmos para a pasta .diststorybook/
|
|
65
|
+
* `watch-global-css`: Monitora depedência @sankhyalabs/ez-design e realiza a cópia dos arquivos pra a pasta .diststorybook/themes/
|
|
66
|
+
* `css-docs`: Monitora arquivos de CSS e SASS do projeto e, quando houver alterações, é gerada a documentação referente a temas.
|
|
67
|
+
- `npm run link`: Esse comando deve ser utilizado em ambiente de desenvolvimento, ele facilita o build e o link entre os projetos ezui e react-output, executando em um só comando:
|
|
68
|
+
o build do ezui, link do react-output e ezui, build do react-output e a disponibilização da dist do react-output no diretório correto do ezui.
|
|
69
|
+
- `npm run build`
|
|
70
|
+
|
|
71
|
+
## Para conhecer detalhes do projeto acesse:
|
|
72
|
+
- [Olá EZUi](https://gitlab.sankhya.com.br/dti/design-system/ez-ui/-/wikis/Ol%C3%A1-EzUI)
|
|
73
|
+
- [Diretrizes de codificação](https://gitlab.sankhya.com.br/dti/design-system/ez-ui/-/wikis/Diretrizes-de-codifica%C3%A7%C3%A3o)
|
|
74
|
+
- [Diretrizes de componentização](https://gitlab.sankhya.com.br/dti/design-system/ez-ui/-/wikis/Diretrizes-de-componentiza%C3%A7%C3%A3o)
|
|
75
|
+
- [Diretrizes de documentação](https://gitlab.sankhya.com.br/dti/design-system/ez-ui/-/wikis/Diretrizes-de-documenta%C3%A7%C3%A3o)
|
|
76
|
+
- [Link ente projetos](https://gitlab.sankhya.com.br/dti/design-system/ez-ui/-/wikis/Link-ente-projetos)
|
|
77
|
+
- [Definindo bons data-element-id de testabilidade no design system](https://gitlab.sankhya.com.br/dti/design-system/ez-ui/-/wikis/Definindo-bons-data-element-id-de-testabilidade-no-design-system)
|
|
78
|
+
- [Criando exemplos de componentes](https://gitlab.sankhya.com.br/dti/design-system/ez-ui/-/wikis/Criando-exemplos-de-componentes)
|
|
@@ -0,0 +1,257 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg"
|
|
2
|
+
xmlns:xlink="http://www.w3.org/1999/xlink" width="640" height="480">
|
|
3
|
+
<defs>
|
|
4
|
+
<symbol id="chevron-right" viewBox="0 0 24 24">
|
|
5
|
+
<path d="M5.8,19.6l7.6-7.6L5.8,4.3L8.2,2l10,10l-10,10L5.8,19.6z"/>
|
|
6
|
+
</symbol>
|
|
7
|
+
<symbol id="chevron-left" viewBox="0 0 24 24">
|
|
8
|
+
<path d="M18.2,19.6L10.5,12l7.6-7.6L15.8,2l-10,10l10,10L18.2,19.6z"/>
|
|
9
|
+
</symbol>
|
|
10
|
+
<symbol id="chevron-down" viewBox="0 0 24 24">
|
|
11
|
+
<path d="M4.4,5.9l7.6,7.6l7.6-7.6l2.3,2.4L12,18.1L2.1,8.2L4.4,5.9z"/>
|
|
12
|
+
</symbol>
|
|
13
|
+
<symbol id="chevron-up" viewBox="0 0 24 24">
|
|
14
|
+
<path d="M4.4,18.1l7.6-7.6l7.6,7.6l2.3-2.3l-10-10l-10,10L4.4,18.1z"/>
|
|
15
|
+
</symbol>
|
|
16
|
+
<symbol id="close" viewBox="0 0 24 24">
|
|
17
|
+
<path d="M21,4.8L19.2,3L12,10.2L4.8,3L3,4.8l7.2,7.2L3,19.2L4.8,21l7.2-7.2l7.2,7.2l1.8-1.8L13.8,12L21,4.8z"/>
|
|
18
|
+
</symbol>
|
|
19
|
+
<symbol id="search" viewBox="0 0 24 24">
|
|
20
|
+
<path d="M9.4,2.3c4.1,0,7.4,3.2,7.4,7.2c0,1.8-0.7,3.4-1.8,4.7l0.3,0.3h0.9l5.7,5.6l-1.7,1.7l-5.7-5.6v-0.9L14.3,15 c-1.3,1.1-3,1.7-4.8,1.7C5.3,16.7,2,13.5,2,9.5S5.3,2.3,9.4,2.3 M9.4,4.5c-2.9,0-5.1,2.2-5.1,5s2.3,5,5.1,5s5.1-2.2,5.1-5 S12.3,4.5,9.4,4.5z"/>
|
|
21
|
+
</symbol>
|
|
22
|
+
<symbol id="help" viewBox="0 0 24 24">
|
|
23
|
+
<path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 17h-2v-2h2v2zm2.07-7.75l-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25z"></path>
|
|
24
|
+
</symbol>
|
|
25
|
+
<symbol id="help-inverted" viewBox="0 0 24 24">
|
|
26
|
+
<path d="M11,18H13V16H11V18M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,6A4,4 0 0,0 8,10H10A2,2 0 0,1 12,8A2,2 0 0,1 14,10C14,12 11,11.75 11,15H13C13,12.75 16,12.5 16,10A4,4 0 0,0 12,6Z"/>
|
|
27
|
+
</symbol>
|
|
28
|
+
<symbol id="check-circle" viewBox="0 0 24 24">
|
|
29
|
+
<path d="M12,2A10,10 0 0,1 22,12A10,10 0 0,1 12,22A10,10 0 0,1 2,12A10,10 0 0,1 12,2M11,16.5L18,9.5L16.59,8.09L11,13.67L7.91,10.59L6.5,12L11,16.5Z"/>
|
|
30
|
+
</symbol>
|
|
31
|
+
<symbol id="check-circle-inverted" viewBox="0 0 24 24">
|
|
32
|
+
<path d="M12,2A10,10 0 0,1 22,12A10,10 0 0,1 12,22A10,10 0 0,1 2,12A10,10 0 0,1 12,2M12,4A8,8 0 0,0 4,12A8,8 0 0,0 12,20A8,8 0 0,0 20,12A8,8 0 0,0 12,4M11,16.5L6.5,12L7.91,10.59L11,13.67L16.59,8.09L18,9.5L11,16.5Z"/>
|
|
33
|
+
</symbol>
|
|
34
|
+
<symbol id="edit" viewBox="0 0 24 24">
|
|
35
|
+
<path d="M20.71,7.04C21.1,6.65 21.1,6 20.71,5.63L18.37,3.29C18,2.9 17.35,2.9 16.96,3.29L15.12,5.12L18.87,8.87M3,17.25V21H6.75L17.81,9.93L14.06,6.18L3,17.25Z"/>
|
|
36
|
+
</symbol>
|
|
37
|
+
<symbol id="shield" viewBox="0 0 24 24">
|
|
38
|
+
<path d="M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4zm0 10.99h7c-.53 4.12-3.28 7.79-7 8.94V12H5V6.3l7-3.11v8.8z"></path>
|
|
39
|
+
</symbol>
|
|
40
|
+
<symbol id="user-circle" viewBox="0 0 24 24">
|
|
41
|
+
<path d="M12,19.2C9.5,19.2 7.29,17.92 6,16C6.03,14 10,12.9 12,12.9C14,12.9 17.97,14 18,16C16.71,17.92 14.5,19.2 12,19.2M12,5A3,3 0 0,1 15,8A3,3 0 0,1 12,11A3,3 0 0,1 9,8A3,3 0 0,1 12,5M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12C22,6.47 17.5,2 12,2Z"/>
|
|
42
|
+
</symbol>
|
|
43
|
+
<symbol id="account" viewBox="0 0 24 24">
|
|
44
|
+
<path d="M12,4A4,4 0 0,1 16,8A4,4 0 0,1 12,12A4,4 0 0,1 8,8A4,4 0 0,1 12,4M12,14C16.42,14 20,15.79 20,18V20H4V18C4,15.79 7.58,14 12,14Z"></path>
|
|
45
|
+
</symbol>
|
|
46
|
+
<symbol id="lock" viewBox="0 0 24 24">
|
|
47
|
+
<path d="M12,16.7c0.9,0,1.7-0.8,1.7-1.7c0-1-0.8-1.7-1.7-1.7c-0.9,0-1.7,0.8-1.7,1.7C10.3,15.9,11.1,16.7,12,16.7 M17.1,9 c0.9,0,1.7,0.8,1.7,1.7v8.6c0,0.9-0.8,1.7-1.7,1.7H6.9c-0.9,0-1.7-0.8-1.7-1.7v-8.6c0-1,0.8-1.7,1.7-1.7h0.9V7.3C7.7,4.9,9.6,3,12,3 s4.3,1.9,4.3,4.3V9H17.1 M12,4.7c-1.4,0-2.6,1.2-2.6,2.6V9h5.1V7.3C14.6,5.9,13.4,4.7,12,4.7z"/>
|
|
48
|
+
</symbol>
|
|
49
|
+
<symbol id="loading" viewBox="0 0 24 24" stroke="currentColor">
|
|
50
|
+
<g id="grupo" fill="none">
|
|
51
|
+
<path stroke-opacity="0.50" stroke-width="4.0" stroke-miterlimit="22.9256" d="M20.19 12c0,-4.52 -3.67,-8.19 -8.19,-8.19 -4.52,0 -8.19,3.67 -8.19,8.19 0,4.52 3.67,8.19 8.19,8.19 4.52,0 8.19,-3.67 8.19,-8.19z"/>
|
|
52
|
+
<path stroke-width="5.0" stroke-miterlimit="22.9256" d="M20.19 12c0,-4.52 -3.67,-8.19 -8.19,-8.19">
|
|
53
|
+
<animateTransform attributeName="transform" type="rotate" from="0 12 12" to="360 12 12" dur="0.6s" repeatCount="indefinite"/>
|
|
54
|
+
</path>
|
|
55
|
+
</g>
|
|
56
|
+
</symbol>
|
|
57
|
+
<symbol id="email" viewBox="0 0 24 24">
|
|
58
|
+
<path d="M4,3.9h16c1.1,0,2,0.9,2,2v12.2c0,1.1-0.9,2-2,2H4c-1.1,0-2-0.9-2-2V5.9C2,4.8,2.9,3.9,4,3.9 M12,11l8-5.1H4L12,11 M4,18.1 h16V8.3l-8,5.1L4,8.3V18.1z"/>
|
|
59
|
+
</symbol>
|
|
60
|
+
<symbol id="success-circle" viewBox="0 0 24 24">
|
|
61
|
+
<path d="M12,2A10,10 0 0,1 22,12A10,10 0 0,1 12,22A10,10 0 0,1 2,12A10,10 0 0,1 12,2M11,16.5L18,9.5L16.59,8.09L11,13.67L7.91,10.59L6.5,12L11,16.5Z"/>
|
|
62
|
+
</symbol>
|
|
63
|
+
<symbol id="warning-triangle" viewBox="0 0 24 24">
|
|
64
|
+
<path d="M12.9,14.3h-1.8v-3.6h1.8 M12.9,17.9h-1.8v-1.8h1.8 M2.1,20.6h19.8L12,3.4L2.1,20.6z"/>
|
|
65
|
+
</symbol>
|
|
66
|
+
<symbol id="error-octagon" viewBox="0 0 24 24">
|
|
67
|
+
<path d="M7.9,2.2L2.2,7.9v8.2l5.8,5.8h8.2l5.8-5.8V7.9l-5.8-5.8 M8.1,6.5l3.9,3.9l3.9-3.9l1.5,1.5L13.5,12l3.9,3.9l-1.5,1.5L12,13.5 l-3.9,3.9l-1.5-1.5l3.9-3.9L6.5,8.1"/>
|
|
68
|
+
</symbol>
|
|
69
|
+
<symbol id="warning-minus" viewBox="0 0 24 24">
|
|
70
|
+
<path d="M17,13H7V11H17M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z"/>
|
|
71
|
+
</symbol>
|
|
72
|
+
<symbol id="settings" viewBox="0 0 24 24">
|
|
73
|
+
<path d="M12,15.5A3.5,3.5 0 0,1 8.5,12A3.5,3.5 0 0,1 12,8.5A3.5,3.5 0 0,1 15.5,12A3.5,3.5 0 0,1 12,15.5M19.43,12.97C19.47,12.65 19.5,12.33 19.5,12C19.5,11.67 19.47,11.34 19.43,11L21.54,9.37C21.73,9.22 21.78,8.95 21.66,8.73L19.66,5.27C19.54,5.05 19.27,4.96 19.05,5.05L16.56,6.05C16.04,5.66 15.5,5.32 14.87,5.07L14.5,2.42C14.46,2.18 14.25,2 14,2H10C9.75,2 9.54,2.18 9.5,2.42L9.13,5.07C8.5,5.32 7.96,5.66 7.44,6.05L4.95,5.05C4.73,4.96 4.46,5.05 4.34,5.27L2.34,8.73C2.21,8.95 2.27,9.22 2.46,9.37L4.57,11C4.53,11.34 4.5,11.67 4.5,12C4.5,12.33 4.53,12.65 4.57,12.97L2.46,14.63C2.27,14.78 2.21,15.05 2.34,15.27L4.34,18.73C4.46,18.95 4.73,19.03 4.95,18.95L7.44,17.94C7.96,18.34 8.5,18.68 9.13,18.93L9.5,21.58C9.54,21.82 9.75,22 10,22H14C14.25,22 14.46,21.82 14.5,21.58L14.87,18.93C15.5,18.67 16.04,18.34 16.56,17.94L19.05,18.95C19.27,19.03 19.54,18.95 19.66,18.73L21.66,15.27C21.78,15.05 21.73,14.78 21.54,14.63L19.43,12.97Z"/>
|
|
74
|
+
</symbol>
|
|
75
|
+
<symbol id="settings-inverted" viewBox="0 0 24 24">
|
|
76
|
+
<path d="M19.43,12.97L21.54,14.63C21.73,14.78 21.78,15.05 21.66,15.27L19.66,18.73C19.54,18.95 19.27,19.03 19.05,18.95L16.56,17.94C16.04,18.34 15.5,18.67 14.87,18.93L14.5,21.58C14.46,21.82 14.25,22 14,22H10C9.75,22 9.54,21.82 9.5,21.58L9.13,18.93C8.5,18.68 7.96,18.34 7.44,17.94L4.95,18.95C4.73,19.03 4.46,18.95 4.34,18.73L2.34,15.27C2.21,15.05 2.27,14.78 2.46,14.63L4.57,12.97L4.5,12L4.57,11L2.46,9.37C2.27,9.22 2.21,8.95 2.34,8.73L4.34,5.27C4.46,5.05 4.73,4.96 4.95,5.05L7.44,6.05C7.96,5.66 8.5,5.32 9.13,5.07L9.5,2.42C9.54,2.18 9.75,2 10,2H14C14.25,2 14.46,2.18 14.5,2.42L14.87,5.07C15.5,5.32 16.04,5.66 16.56,6.05L19.05,5.05C19.27,4.96 19.54,5.05 19.66,5.27L21.66,8.73C21.78,8.95 21.73,9.22 21.54,9.37L19.43,11L19.5,12L19.43,12.97M6.5,12C6.5,12.58 6.59,13.13 6.75,13.66L4.68,15.36L5.43,16.66L7.95,15.72C8.69,16.53 9.68,17.12 10.8,17.37L11.24,20H12.74L13.18,17.37C14.3,17.13 15.3,16.54 16.05,15.73L18.56,16.67L19.31,15.37L17.24,13.67C17.41,13.14 17.5,12.58 17.5,12C17.5,11.43 17.41,10.87 17.25,10.35L19.31,8.66L18.56,7.36L16.06,8.29C15.31,7.47 14.31,6.88 13.19,6.63L12.75,4H11.25L10.81,6.63C9.69,6.88 8.69,7.47 7.94,8.29L5.44,7.35L4.69,8.65L6.75,10.35C6.59,10.87 6.5,11.43 6.5,12M12,8.5A3.5,3.5 0 0,1 15.5,12A3.5,3.5 0 0,1 12,15.5A3.5,3.5 0 0,1 8.5,12A3.5,3.5 0 0,1 12,8.5M12,10.5A1.5,1.5 0 0,0 10.5,12A1.5,1.5 0 0,0 12,13.5A1.5,1.5 0 0,0 13.5,12A1.5,1.5 0 0,0 12,10.5Z"/>
|
|
77
|
+
</symbol>
|
|
78
|
+
<symbol id="alert-circle" viewBox="0 0 24 24">
|
|
79
|
+
<path d="M13,13H11V7H13M13,17H11V15H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z"/>
|
|
80
|
+
</symbol>
|
|
81
|
+
<symbol id="alert-circle-inverted" viewBox="0 0 24 24">
|
|
82
|
+
<path d="M11,15H13V17H11V15M11,7H13V13H11V7M12,2C6.47,2 2,6.5 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20Z"/>
|
|
83
|
+
</symbol>
|
|
84
|
+
<symbol id="power" viewBox="0 0 24 24">
|
|
85
|
+
<path d="M13.1,2.1h-2.2v11h2.2V2.1 M18.5,4.5l-1.6,1.6c1.8,1.5,2.9,3.7,2.9,6c0,4.3-3.5,7.7-7.7,7.7c-4.3,0-7.7-3.4-7.7-7.7 c0-2.3,1-4.5,2.9-6L5.6,4.5c-4.2,3.6-4.7,9.8-1.1,14c3.6,4.2,9.8,4.7,14,1.1C20.7,17.7,22,15,22,12C22,9.1,20.7,6.4,18.5,4.5z"/>
|
|
86
|
+
</symbol>
|
|
87
|
+
<symbol id="comment" viewBox="0 0 24 24">
|
|
88
|
+
<path d="M9,22A1,1 0 0,1 8,21V18H4A2,2 0 0,1 2,16V4C2,2.89 2.9,2 4,2H20A2,2 0 0,1 22,4V16A2,2 0 0,1 20,18H13.9L10.2,21.71C10,21.9 9.75,22 9.5,22V22H9M13,10V6H11V10H13M13,14V12H11V14H13Z"/>
|
|
89
|
+
</symbol>
|
|
90
|
+
<symbol id="comment-inverted" viewBox="0 0 24 24">
|
|
91
|
+
<path d="M9,22c-0.6,0-1-0.4-1-1v-3H4c-1.1,0-2-0.9-2-2V4c0-1.1,0.9-2,2-2h16c1.1,0,2,0.9,2,2v12c0,1.1-0.9,2-2,2h-6.1l-3.7,3.7 C10,21.9,9.8,22,9.5,22l0,0H9 M10,16v3.1l3.1-3.1H20V4H4v12H10 M13,10h-2V6h2V10 M13,14h-2v-2h2V14z"/>
|
|
92
|
+
</symbol>
|
|
93
|
+
<symbol id="bell" viewBox="0 0 24 24">
|
|
94
|
+
<path d="M11.8,22c1.1,0,2-0.9,2-2H9.8C9.8,21.1,10.7,22,11.8,22 M18,15.9v-5.1c0-3.1-1.7-5.8-4.6-6.5V3.6c0-0.8-0.7-1.5-1.5-1.5 c-0.8,0-1.5,0.7-1.5,1.5v0.7C7.4,5,5.7,7.6,5.7,10.8v5.1l-2,2v1H20v-1L18,15.9z"/>
|
|
95
|
+
</symbol>
|
|
96
|
+
<symbol id="bell-inverted" viewBox="0 0 24 24">
|
|
97
|
+
<path d="M16,17H7v-6.5C7,8,9,6,11.5,6S16,8,16,10.5 M18,16v-5.5c0-3.1-2.1-5.6-5-6.3V3.5C13,2.7,12.3,2,11.5,2S10,2.7,10,3.5v0.7 c-2.9,0.7-5,3.3-5,6.3V16l-2,2v1h17v-1 M11.5,22c1.1,0,2-0.9,2-2h-4C9.5,21.1,10.4,22,11.5,22z"/>
|
|
98
|
+
</symbol>
|
|
99
|
+
<symbol id="close-circle" viewBox="0 0 24 24">
|
|
100
|
+
<path d="M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z"/>
|
|
101
|
+
</symbol>
|
|
102
|
+
<symbol id="close-circle-inverted" viewBox="0 0 24 24">
|
|
103
|
+
<path d="M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,2C6.47,2 2,6.47 2,12C2,17.53 6.47,22 12,22C17.53,22 22,17.53 22,12C22,6.47 17.53,2 12,2M14.59,8L12,10.59L9.41,8L8,9.41L10.59,12L8,14.59L9.41,16L12,13.41L14.59,16L16,14.59L13.41,12L16,9.41L14.59,8Z"/>
|
|
104
|
+
</symbol>
|
|
105
|
+
<symbol id="plus-circle" viewBox="0 0 24 24">
|
|
106
|
+
<path d="M17,13H13V17H11V13H7V11H11V7H13V11H17M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z"/>
|
|
107
|
+
</symbol>
|
|
108
|
+
<symbol id="plus-circle-inverted" viewBox="0 0 24 24">
|
|
109
|
+
<path d="M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M13,7H11V11H7V13H11V17H13V13H17V11H13V7Z"/>
|
|
110
|
+
</symbol>
|
|
111
|
+
<symbol id="minus-circle-inverted" viewBox="0 0 24 24">
|
|
112
|
+
<path d="M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M7,13H17V11H7"/>
|
|
113
|
+
</symbol>
|
|
114
|
+
<symbol id="crop" viewBox="0 0 24 24">
|
|
115
|
+
<path d="M7,17V1H5V5H1V7H5V17A2,2 0 0,0 7,19H17V23H19V19H23V17M17,15H19V7C19,5.89 18.1,5 17,5H9V7H17V15Z"/>
|
|
116
|
+
</symbol>
|
|
117
|
+
<symbol id="expand" viewBox="0 0 24 24">
|
|
118
|
+
<path d="M9.5,13.09L10.91,14.5L6.41,19H10V21H3V14H5V17.59L9.5,13.09M10.91,9.5L9.5,10.91L5,6.41V10H3V3H10V5H6.41L10.91,9.5M14.5,13.09L19,17.59V14H21V21H14V19H17.59L13.09,14.5L14.5,13.09M13.09,9.5L17.59,5H14V3H21V10H19V6.41L14.5,10.91L13.09,9.5Z"/>
|
|
119
|
+
</symbol>
|
|
120
|
+
<symbol id="rotate" viewBox="0 0 24 24">
|
|
121
|
+
<path d="M12,5C16.97,5 21,7.69 21,11C21,12.68 19.96,14.2 18.29,15.29C19.36,14.42 20,13.32 20,12.13C20,9.29 16.42,7 12,7V10L8,6L12,2V5M12,19C7.03,19 3,16.31 3,13C3,11.32 4.04,9.8 5.71,8.71C4.64,9.58 4,10.68 4,11.88C4,14.71 7.58,17 12,17V14L16,18L12,22V19Z"/>
|
|
122
|
+
</symbol>
|
|
123
|
+
<symbol id="launch" viewBox="0 0 24 24">
|
|
124
|
+
<path d="M14,3V5H17.59L7.76,14.83L9.17,16.24L19,6.41V10H21V3M19,19H5V5H12V3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V12H19V19Z"/>
|
|
125
|
+
</symbol>
|
|
126
|
+
<symbol id="plus" viewBox="0 0 24 24">
|
|
127
|
+
<path d="M22.27 13.47l-8.8 0 0 8.8 -2.94 0 0 -8.8 -8.8 0 0 -2.94 8.8 0 0 -8.8 2.94 0 0 8.8 8.8 0 0 2.94z"/>
|
|
128
|
+
</symbol>
|
|
129
|
+
<symbol id="minus" viewBox="0 0 24 24">
|
|
130
|
+
<path d="M22.02 13.43l-20.04 0 0 -2.86 20.04 0 0 2.86z"/>
|
|
131
|
+
</symbol>
|
|
132
|
+
<symbol id="calendar" viewBox="0 0 24 24">
|
|
133
|
+
<path d="M9,10V12H7V10H9M13,10V12H11V10H13M17,10V12H15V10H17M19,3A2,2 0 0,1 21,5V19A2,2 0 0,1 19,21H5C3.89,21 3,20.1 3,19V5A2,2 0 0,1 5,3H6V1H8V3H16V1H18V3H19M19,19V8H5V19H19M9,14V16H7V14H9M13,14V16H11V14H13M17,14V16H15V14H17Z" />
|
|
134
|
+
</symbol>
|
|
135
|
+
<symbol id="home" viewBox="0 0 24 24">
|
|
136
|
+
<path d="M9,19V13H11L13,13H15V19H18V10.91L12,4.91L6,10.91V19H9M12,2.09L21.91,12H20V21H13V15H11V21H4V12H2.09L12,2.09Z" />
|
|
137
|
+
</symbol>
|
|
138
|
+
<symbol id="clipboard" viewBox="0 0 24 24">
|
|
139
|
+
<path d="M19,3H14.82C14.4,1.84 13.3,1 12,1C10.7,1 9.6,1.84 9.18,3H5A2,2 0 0,0 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5A2,2 0 0,0 19,3M12,3A1,1 0 0,1 13,4A1,1 0 0,1 12,5A1,1 0 0,1 11,4A1,1 0 0,1 12,3M7,7H17V5H19V19H5V5H7V7Z" />
|
|
140
|
+
</symbol>
|
|
141
|
+
<symbol id="email-inverted" viewBox="0 0 24 24">
|
|
142
|
+
<path d="M20,8L12,13L4,8V6L12,11L20,6M20,4H4C2.89,4 2,4.89 2,6V18A2,2 0 0,0 4,20H20A2,2 0 0,0 22,18V6C22,4.89 21.1,4 20,4Z" />
|
|
143
|
+
</symbol>
|
|
144
|
+
<symbol id="share" viewBox="0 0 24 24">
|
|
145
|
+
<path d="M18,16.08C17.24,16.08 16.56,16.38 16.04,16.85L8.91,12.7C8.96,12.47 9,12.24 9,12C9,11.76 8.96,11.53 8.91,11.3L15.96,7.19C16.5,7.69 17.21,8 18,8A3,3 0 0,0 21,5A3,3 0 0,0 18,2A3,3 0 0,0 15,5C15,5.24 15.04,5.47 15.09,5.7L8.04,9.81C7.5,9.31 6.79,9 6,9A3,3 0 0,0 3,12A3,3 0 0,0 6,15C6.79,15 7.5,14.69 8.04,14.19L15.16,18.34C15.11,18.55 15.08,18.77 15.08,19C15.08,20.61 16.39,21.91 18,21.91C19.61,21.91 20.92,20.61 20.92,19A2.92,2.92 0 0,0 18,16.08Z" />
|
|
146
|
+
</symbol>
|
|
147
|
+
<symbol id="favorite" viewBox="0 0 24 24">
|
|
148
|
+
<path d="M12.1,18.55L12,18.65L11.89,18.55C7.14,14.24 4,11.39 4,8.5C4,6.5 5.5,5 7.5,5C9.04,5 10.54,6 11.07,7.36H12.93C13.46,6 14.96,5 16.5,5C18.5,5 20,6.5 20,8.5C20,11.39 16.86,14.24 12.1,18.55M16.5,3C14.76,3 13.09,3.81 12,5.08C10.91,3.81 9.24,3 7.5,3C4.42,3 2,5.41 2,8.5C2,12.27 5.4,15.36 10.55,20.03L12,21.35L13.45,20.03C18.6,15.36 22,12.27 22,8.5C22,5.41 19.58,3 16.5,3Z" />
|
|
149
|
+
</symbol>
|
|
150
|
+
<symbol id="circle" viewBox="0 0 24 24">
|
|
151
|
+
<path d="M12 2.24c-5.39,0 -9.76,4.37 -9.76,9.76 0,5.39 4.37,9.76 9.76,9.76 5.39,0 9.76,-4.37 9.76,-9.76 0,-5.39 -4.37,-9.76 -9.76,-9.76z"/>
|
|
152
|
+
</symbol>
|
|
153
|
+
<symbol id="menu" viewBox="0 0 24 24">
|
|
154
|
+
<path d="M3,6H21V8H3V6M3,11H21V13H3V11M3,16H21V18H3V16Z" />
|
|
155
|
+
</symbol>
|
|
156
|
+
<symbol id="circle--medium" viewBox="0 0 24 24">
|
|
157
|
+
<path d="M12,8A4,4 0 0,0 8,12A4,4 0 0,0 12,16A4,4 0 0,0 16,12A4,4 0 0,0 12,8Z" />
|
|
158
|
+
</symbol>
|
|
159
|
+
<symbol id="filter" viewBox="0 0 24 24">
|
|
160
|
+
<path d="M6,13H18V11H6M3,6V8H21V6M10,18H14V16H10V18Z" />
|
|
161
|
+
</symbol>
|
|
162
|
+
<symbol id="timer-outline" viewBox="0 0 24 24">
|
|
163
|
+
<path d="M12,20A7,7 0 0,1 5,13A7,7 0 0,1 12,6A7,7 0 0,1 19,13A7,7 0 0,1 12,20M19.03,7.39L20.45,5.97C20,5.46 19.55,5 19.04,4.56L17.62,6C16.07,4.74 14.12,4 12,4A9,9 0 0,0 3,13A9,9 0 0,0 12,22C17,22 21,17.97 21,13C21,10.88 20.26,8.93 19.03,7.39M11,14H13V8H11M15,1H9V3H15V1Z" />
|
|
164
|
+
</symbol>
|
|
165
|
+
<symbol id="alert-outline" viewBox="0 0 24 24">
|
|
166
|
+
<path d="M12,2L1,21H23M12,6L19.53,19H4.47M11,10V14H13V10M11,16V18H13V16" />
|
|
167
|
+
</symbol>
|
|
168
|
+
<symbol id="calendar-text" viewBox="0 0 24 24">
|
|
169
|
+
<path d="M14,14H7V16H14M19,19H5V8H19M19,3H18V1H16V3H8V1H6V3H5C3.89,3 3,3.9 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5A2,2 0 0,0 19,3M17,10H7V12H17V10Z" />
|
|
170
|
+
</symbol>
|
|
171
|
+
<symbol id="table" viewBox="0 0 24 24">
|
|
172
|
+
<path d="M5,4H19A2,2 0 0,1 21,6V18A2,2 0 0,1 19,20H5A2,2 0 0,1 3,18V6A2,2 0 0,1 5,4M5,8V12H11V8H5M13,8V12H19V8H13M5,14V18H11V14H5M13,14V18H19V14H13Z" />
|
|
173
|
+
</symbol>
|
|
174
|
+
<symbol id="apps" viewBox="0 0 24 24">
|
|
175
|
+
<path d="M16,20H20V16H16M16,14H20V10H16M10,8H14V4H10M16,8H20V4H16M10,14H14V10H10M4,14H8V10H4M4,20H8V16H4M10,20H14V16H10M4,8H8V4H4V8Z" />
|
|
176
|
+
</symbol>
|
|
177
|
+
<symbol id="play" viewBox="0 0 24 24">
|
|
178
|
+
<path d="M8,5.14V19.14L19,12.14L8,5.14Z" />
|
|
179
|
+
</symbol>
|
|
180
|
+
<symbol id="pause" viewBox="0 0 24 24">
|
|
181
|
+
<path d="M14,19H18V5H14M6,19H10V5H6V19Z" />
|
|
182
|
+
</symbol>
|
|
183
|
+
<symbol id="dots-vertical" viewBox="0 0 24 24">
|
|
184
|
+
<path d="M12,16A2,2 0 0,1 14,18A2,2 0 0,1 12,20A2,2 0 0,1 10,18A2,2 0 0,1 12,16M12,10A2,2 0 0,1 14,12A2,2 0 0,1 12,14A2,2 0 0,1 10,12A2,2 0 0,1 12,10M12,4A2,2 0 0,1 14,6A2,2 0 0,1 12,8A2,2 0 0,1 10,6A2,2 0 0,1 12,4Z" />
|
|
185
|
+
</symbol>
|
|
186
|
+
<symbol id="restore" viewBox="0 0 24 24">
|
|
187
|
+
<path d="M13,3A9,9 0 0,0 4,12H1L4.89,15.89L4.96,16.03L9,12H6A7,7 0 0,1 13,5A7,7 0 0,1 20,12A7,7 0 0,1 13,19C11.07,19 9.32,18.21 8.06,16.94L6.64,18.36C8.27,20 10.5,21 13,21A9,9 0 0,0 22,12A9,9 0 0,0 13,3Z" />
|
|
188
|
+
</symbol>
|
|
189
|
+
<symbol id="help-circle-outline" viewBox="0 0 24 24">
|
|
190
|
+
<path d="M11,18H13V16H11V18M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,6A4,4 0 0,0 8,10H10A2,2 0 0,1 12,8A2,2 0 0,1 14,10C14,12 11,11.75 11,15H13C13,12.75 16,12.5 16,10A4,4 0 0,0 12,6Z" />
|
|
191
|
+
</symbol>
|
|
192
|
+
</defs>
|
|
193
|
+
<g>
|
|
194
|
+
<use xlink:href="#chevron-right" width="27" height="27" x="5" y="5"/>
|
|
195
|
+
<use xlink:href="#chevron-left" width="27" height="27" x="35" y="5"/>
|
|
196
|
+
<use xlink:href="#chevron-down" width="27" height="27" x="65" y="5"/>
|
|
197
|
+
<use xlink:href="#chevron-up" width="27" height="27" x="95" y="5"/>
|
|
198
|
+
<use xlink:href="#close" width="27" height="27" x="125" y="5"/>
|
|
199
|
+
<use xlink:href="#search" width="27" height="27" x="155" y="5"/>
|
|
200
|
+
<use xlink:href="#help" width="27" height="27" x="185" y="5"/>
|
|
201
|
+
<use xlink:href="#help-inverted" width="27" height="27" x="215" y="5"/>
|
|
202
|
+
<use xlink:href="#check-circle" width="27" height="27" x="245" y="5"/>
|
|
203
|
+
<use xlink:href="#check-circle-inverted" width="27" height="27" x="275" y="5"/>
|
|
204
|
+
<use xlink:href="#edit" width="27" height="27" x="305" y="5"/>
|
|
205
|
+
<use xlink:href="#plus" width="27" height="27" x="385" y="5"/>
|
|
206
|
+
<use xlink:href="#shield" width="27" height="27" x="415" y="5"/>
|
|
207
|
+
<use xlink:href="#user-circle" width="27" height="27" x="475" y="5"/>
|
|
208
|
+
<use xlink:href="#account" width="27" height="27" x="535" y="5"/>
|
|
209
|
+
<use xlink:href="#lock" width="27" height="27" x="565" y="5"/>
|
|
210
|
+
<use xlink:href="#loading" width="27" height="27" x="595" y="5"/>
|
|
211
|
+
<use xlink:href="#email" width="27" height="27" x="5" y="35"/>
|
|
212
|
+
<use xlink:href="#success-circle" width="27" height="27" x="35" y="35"/>
|
|
213
|
+
<use xlink:href="#warning-triangle" width="27" height="27" x="65" y="35"/>
|
|
214
|
+
<use xlink:href="#error-octagon" width="27" height="27" x="95" y="35"/>
|
|
215
|
+
<use xlink:href="#warning-minus" width="27" height="27" x="125" y="35"/>
|
|
216
|
+
<use xlink:href="#settings" width="27" height="27" x="155" y="35"/>
|
|
217
|
+
<use xlink:href="#settings-inverted" width="27" height="27" x="185" y="35"/>
|
|
218
|
+
<use xlink:href="#alert-circle" width="27" height="27" x="215" y="35"/>
|
|
219
|
+
<use xlink:href="#alert-circle-inverted" width="27" height="27" x="245" y="35"/>
|
|
220
|
+
<use xlink:href="#power" width="27" height="27" x="275" y="35"/>
|
|
221
|
+
<use xlink:href="#comment" width="27" height="27" x="305" y="35"/>
|
|
222
|
+
<use xlink:href="#comment-inverted" width="27" height="27" x="335" y="35"/>
|
|
223
|
+
<use xlink:href="#bell" width="27" height="27" x="365" y="35"/>
|
|
224
|
+
<use xlink:href="#bell-inverted" width="27" height="27" x="395" y="35"/>
|
|
225
|
+
<use xlink:href="#close-circle" width="27" height="27" x="425" y="35"/>
|
|
226
|
+
<use xlink:href="#close-circle-inverted" width="27" height="27" x="455" y="35"/>
|
|
227
|
+
<use xlink:href="#plus-circle" width="27" height="27" x="485" y="35"/>
|
|
228
|
+
<use xlink:href="#plus-circle-inverted" width="27" height="27" x="515" y="35"/>
|
|
229
|
+
<use xlink:href="#minus-circle-inverted" width="27" height="27" x="545" y="35"/>
|
|
230
|
+
<use xlink:href="#crop" width="27" height="27" x="575" y="35"/>
|
|
231
|
+
<use xlink:href="#expand" width="27" height="27" x="605" y="35"/>
|
|
232
|
+
<use xlink:href="#rotate" width="27" height="27" x="5" y="65"/>
|
|
233
|
+
<use xlink:href="#launch" width="27" height="27" x="35" y="65"/>
|
|
234
|
+
<use xlink:href="#minus" width="27" height="27" x="65" y="65"/>
|
|
235
|
+
<use xlink:href="#calendar" width="27" height="27" x="95" y="65"/>
|
|
236
|
+
<use xlink:href="#home" width="27" height="27" x="125" y="65"/>
|
|
237
|
+
<use xlink:href="#clipboard" width="27" height="27" x="155" y="65"/>
|
|
238
|
+
<use xlink:href="#email-inverted" width="27" height="27" x="185" y="65"/>
|
|
239
|
+
<use xlink:href="#share" width="27" height="27" x="215" y="65"/>
|
|
240
|
+
<use xlink:href="#favorite" width="27" height="27" x="245" y="65"/>
|
|
241
|
+
<use xlink:href="#circle" width="27" height="27" x="275" y="65"/>
|
|
242
|
+
<use xlink:href="#menu" width="27" height="27" x="305" y="65"/>
|
|
243
|
+
<use xlink:href="#circle--medium" width="27" height="27" x="335" y="65"/>
|
|
244
|
+
<use xlink:href="#filter" width="27" height="27" x="365" y="65"/>
|
|
245
|
+
<use xlink:href="#timer-outline" width="27" height="27" x="395" y="65"/>
|
|
246
|
+
<use xlink:href="#alert-outline" width="27" height="27" x="425" y="65"/>
|
|
247
|
+
<use xlink:href="#calendar-text" width="27" height="27" x="455" y="65"/>
|
|
248
|
+
<use xlink:href="#table" width="27" height="27" x="485" y="65"/>
|
|
249
|
+
<use xlink:href="#apps" width="27" height="27" x="515" y="65"/>
|
|
250
|
+
<use xlink:href="#play" width="27" height="27" x="545" y="65"/>
|
|
251
|
+
<use xlink:href="#pause" width="27" height="27" x="575" y="65"/>
|
|
252
|
+
<use xlink:href="#dots-vertical" width="27" height="27" x="605" y="65"/>
|
|
253
|
+
<use xlink:href="#restore" width="27" height="27" x="3" y="95"/>
|
|
254
|
+
<use xlink:href="#help-circle-outline" width="27" height="27" x="35" y="95"/>
|
|
255
|
+
|
|
256
|
+
</g>
|
|
257
|
+
</svg>
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const DialogType = require('./DialogType-2114c337.js');
|
|
4
|
+
|
|
5
|
+
// Unique ID creation requires a high quality random # generator. In the browser we therefore
|
|
6
|
+
// require the crypto API and do not support built-in fallback to lower quality random number
|
|
7
|
+
// generators (like Math.random()).
|
|
8
|
+
let getRandomValues;
|
|
9
|
+
const rnds8 = new Uint8Array(16);
|
|
10
|
+
function rng() {
|
|
11
|
+
// lazy load so that environments that need to polyfill have a chance to do so
|
|
12
|
+
if (!getRandomValues) {
|
|
13
|
+
// getRandomValues needs to be invoked in a context where "this" is a Crypto implementation.
|
|
14
|
+
getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto);
|
|
15
|
+
|
|
16
|
+
if (!getRandomValues) {
|
|
17
|
+
throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
return getRandomValues(rnds8);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Convert array of 16 byte values to UUID string format of the form:
|
|
26
|
+
* XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
|
|
27
|
+
*/
|
|
28
|
+
|
|
29
|
+
const byteToHex = [];
|
|
30
|
+
|
|
31
|
+
for (let i = 0; i < 256; ++i) {
|
|
32
|
+
byteToHex.push((i + 0x100).toString(16).slice(1));
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
function unsafeStringify(arr, offset = 0) {
|
|
36
|
+
// Note: Be careful editing this code! It's been tuned for performance
|
|
37
|
+
// and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434
|
|
38
|
+
return byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]];
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);
|
|
42
|
+
const native = {
|
|
43
|
+
randomUUID
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
function v4(options, buf, offset) {
|
|
47
|
+
if (native.randomUUID && !buf && !options) {
|
|
48
|
+
return native.randomUUID();
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
options = options || {};
|
|
52
|
+
const rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
|
|
53
|
+
|
|
54
|
+
rnds[6] = rnds[6] & 0x0f | 0x40;
|
|
55
|
+
rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided
|
|
56
|
+
|
|
57
|
+
if (buf) {
|
|
58
|
+
offset = offset || 0;
|
|
59
|
+
|
|
60
|
+
for (let i = 0; i < 16; ++i) {
|
|
61
|
+
buf[offset + i] = rnds[i];
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
return buf;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
return unsafeStringify(rnds);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
class ApplicationUtils {
|
|
71
|
+
static async showDialog(title, message, icon = null, confirm, dialogType = DialogType.DialogType.DEFAULT, options) {
|
|
72
|
+
if (options) {
|
|
73
|
+
options = Object.assign(Object.assign({}, ApplicationUtils.defaultMessageOptions), options);
|
|
74
|
+
}
|
|
75
|
+
return new Promise(resolve => {
|
|
76
|
+
let dialog = document.querySelector("ez-dialog");
|
|
77
|
+
if (!dialog) {
|
|
78
|
+
dialog = document.createElement("ez-dialog");
|
|
79
|
+
window.document.body.appendChild(dialog);
|
|
80
|
+
}
|
|
81
|
+
dialog.show(title, message, dialogType, confirm, icon, options.labelCancel, options.labelConfirm, options.btnConfirmDanger, options.beforeClose).then(ok => resolve(ok));
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
static async alert(title, message, icon = null, options = ApplicationUtils.defaultMessageOptions) {
|
|
85
|
+
return ApplicationUtils.showDialog(title, message, icon, false, DialogType.DialogType.WARN, options);
|
|
86
|
+
}
|
|
87
|
+
static async error(title, message, icon = null, options = ApplicationUtils.defaultMessageOptions) {
|
|
88
|
+
return ApplicationUtils.showDialog(title, message, icon, false, DialogType.DialogType.CRITICAL, options);
|
|
89
|
+
}
|
|
90
|
+
static async success(title, message, icon = null, options = ApplicationUtils.defaultMessageOptions) {
|
|
91
|
+
return ApplicationUtils.showDialog(title, message, icon, false, DialogType.DialogType.SUCCESS, options);
|
|
92
|
+
}
|
|
93
|
+
static async confirm(title, message, icon = null, dialogType = DialogType.DialogType.WARN, options = ApplicationUtils.defaultMessageOptions) {
|
|
94
|
+
return ApplicationUtils.showDialog(title, message, icon, true, dialogType, options);
|
|
95
|
+
}
|
|
96
|
+
static async message(title, message, icon = null, options = ApplicationUtils.defaultMessageOptions) {
|
|
97
|
+
return ApplicationUtils.showDialog(title, message, icon, false, DialogType.DialogType.DEFAULT, options);
|
|
98
|
+
}
|
|
99
|
+
static async info(message, options = ApplicationUtils.defaultMessageOptions) {
|
|
100
|
+
if (options !== ApplicationUtils.defaultMessageOptions) {
|
|
101
|
+
options = Object.assign(Object.assign({}, ApplicationUtils.defaultMessageOptions), options);
|
|
102
|
+
}
|
|
103
|
+
let useIcon = false;
|
|
104
|
+
let toast = document.querySelector("ez-toast");
|
|
105
|
+
if (!toast) {
|
|
106
|
+
toast = document.createElement("ez-toast");
|
|
107
|
+
const icon = document.createElement("ez-icon");
|
|
108
|
+
icon.className = "ez-margin-right--small";
|
|
109
|
+
icon.slot = "icon";
|
|
110
|
+
icon.style.setProperty("--ez-icon--color", "var(--color--success)");
|
|
111
|
+
toast.appendChild(icon);
|
|
112
|
+
window.document.body.appendChild(toast);
|
|
113
|
+
}
|
|
114
|
+
if (options.iconName) {
|
|
115
|
+
const iconElem = toast.querySelector("ez-icon");
|
|
116
|
+
if (iconElem) {
|
|
117
|
+
iconElem.iconName = options.iconName;
|
|
118
|
+
useIcon = true;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
else {
|
|
122
|
+
useIcon = false;
|
|
123
|
+
}
|
|
124
|
+
toast.show(message, 5000, useIcon, options.canClose);
|
|
125
|
+
}
|
|
126
|
+
static async showModal(modalProps) {
|
|
127
|
+
modalProps = Object.assign(Object.assign({}, ApplicationUtils.defaultModalProps), modalProps);
|
|
128
|
+
const modal = document.createElement("ez-modal");
|
|
129
|
+
window.document.body.appendChild(modal);
|
|
130
|
+
modal.setAttribute('id', v4());
|
|
131
|
+
modal.modalSize = modalProps.size;
|
|
132
|
+
modal.align = modalProps.position;
|
|
133
|
+
modal.heightMode = modalProps.heightMode;
|
|
134
|
+
modal.closeEsc = modalProps.closeEsc;
|
|
135
|
+
modal.closeOutsideClick = modalProps.closeOutsideClick;
|
|
136
|
+
modal.scrim = modalProps.useScrimLight ? 'light' : 'medium';
|
|
137
|
+
if (modalProps.content instanceof String || typeof modalProps.content === 'string') {
|
|
138
|
+
modal.innerHTML = modalProps.content;
|
|
139
|
+
}
|
|
140
|
+
else {
|
|
141
|
+
modal.appendChild(modalProps.content);
|
|
142
|
+
}
|
|
143
|
+
modal.opened = true;
|
|
144
|
+
return () => modal.remove();
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
ApplicationUtils.defaultMessageOptions = {
|
|
148
|
+
canClose: true,
|
|
149
|
+
labelCancel: 'Não',
|
|
150
|
+
labelConfirm: 'Sim',
|
|
151
|
+
btnConfirmDanger: false
|
|
152
|
+
};
|
|
153
|
+
ApplicationUtils.defaultModalProps = {
|
|
154
|
+
content: null,
|
|
155
|
+
position: 'right',
|
|
156
|
+
size: 'small',
|
|
157
|
+
heightMode: 'regular',
|
|
158
|
+
closeOutsideClick: true,
|
|
159
|
+
closeEsc: true
|
|
160
|
+
};
|
|
161
|
+
|
|
162
|
+
exports.ApplicationUtils = ApplicationUtils;
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
class CSSVarsUtils {
|
|
4
|
+
static applyCSSVars(document, host, child) {
|
|
5
|
+
const isSameDomain = (styleSheet) => {
|
|
6
|
+
if (!styleSheet.href) {
|
|
7
|
+
return true;
|
|
8
|
+
}
|
|
9
|
+
return styleSheet.href.indexOf(window.location.origin) === 0;
|
|
10
|
+
};
|
|
11
|
+
Array.from(document.styleSheets).filter(isSameDomain).forEach((sheet) => {
|
|
12
|
+
Array.from(sheet.cssRules).filter(rule => rule instanceof CSSStyleRule).forEach((rule) => {
|
|
13
|
+
Array.from(rule.style).forEach((propName) => {
|
|
14
|
+
if (propName.startsWith("--")) {
|
|
15
|
+
CSSVarsUtils.applyIfExists(host, child, propName);
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
});
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
static applyVarsTextInput(host, child) {
|
|
22
|
+
if (child) {
|
|
23
|
+
CSSVarsUtils.applyIfExists(host, child, '--ez-text-input__input--background-color');
|
|
24
|
+
CSSVarsUtils.applyIfExists(host, child, '--ez-text-input__input--border-color');
|
|
25
|
+
CSSVarsUtils.applyIfExists(host, child, '--ez-text-input--height');
|
|
26
|
+
CSSVarsUtils.applyIfExists(host, child, '--ez-text-input__input--disabled--background-color');
|
|
27
|
+
CSSVarsUtils.applyIfExists(host, child, '--ez-text-input__input--disabled--color');
|
|
28
|
+
CSSVarsUtils.applyIfExists(host, child, '--ez-text-input--height--slim');
|
|
29
|
+
CSSVarsUtils.applyIfExists(host, child, '--ez-text-input--border-radius');
|
|
30
|
+
CSSVarsUtils.applyIfExists(host, child, '--ez-text-input__input--focus--border-color');
|
|
31
|
+
CSSVarsUtils.applyIfExists(host, child, '--ez-text-input__icon--width');
|
|
32
|
+
CSSVarsUtils.applyIfExists(host, child, '--ez-text-input__input--focus--icon-color');
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
static applyVarsButton(host, child) {
|
|
36
|
+
if (child) {
|
|
37
|
+
["--ez-button--min-width",
|
|
38
|
+
"--ez-button--height",
|
|
39
|
+
"--ez-button__icon--width",
|
|
40
|
+
"--ez-button__inline__icon--padding",
|
|
41
|
+
"--ez-button--padding-top",
|
|
42
|
+
"--ez-button--padding-bottom",
|
|
43
|
+
"--ez-button--padding-right",
|
|
44
|
+
"--ez-button--padding-left",
|
|
45
|
+
"--ez-button--color",
|
|
46
|
+
"--ez-button--font-size",
|
|
47
|
+
"--ez-button--font-family",
|
|
48
|
+
"--ez-button--font-weight",
|
|
49
|
+
"--ez-button--background-color",
|
|
50
|
+
"--ez-button--border-radius",
|
|
51
|
+
"--ez-button--border",
|
|
52
|
+
"--ez-button--hover-color",
|
|
53
|
+
"--ez-button--hover--background-color",
|
|
54
|
+
"--ez-button--disabled-color",
|
|
55
|
+
"--ez-button--disabled--background-color",
|
|
56
|
+
"--ez-button--focus--border",
|
|
57
|
+
"--ez-button--focus--box-shadow",
|
|
58
|
+
"--ez-button--active-color",
|
|
59
|
+
"--ez-button--active--background-color",
|
|
60
|
+
"--ez-button--link-color",
|
|
61
|
+
"--ez-button--link--hover-color",
|
|
62
|
+
"--ez-button--link--small--font-size",
|
|
63
|
+
"--ez-button--link--medium--font-size",
|
|
64
|
+
"--ez-button--link--large--font-size",].forEach(prop => {
|
|
65
|
+
CSSVarsUtils.applyIfExists(host, child, prop);
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
static applyIfExists(host, element, varName) {
|
|
70
|
+
const prop = getComputedStyle(host).getPropertyValue(varName);
|
|
71
|
+
if (prop) {
|
|
72
|
+
element.style.setProperty(varName, prop);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
exports.CSSVarsUtils = CSSVarsUtils;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
exports.DialogType = void 0;
|
|
4
|
+
(function (DialogType) {
|
|
5
|
+
DialogType["WARN"] = "warn";
|
|
6
|
+
DialogType["CRITICAL"] = "critical";
|
|
7
|
+
DialogType["SUCCESS"] = "success";
|
|
8
|
+
DialogType["DEFAULT"] = "default";
|
|
9
|
+
})(exports.DialogType || (exports.DialogType = {}));
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
exports.EzScrollDirection = void 0;
|
|
4
|
+
(function (EzScrollDirection) {
|
|
5
|
+
EzScrollDirection["HORIZONTAL"] = "horizontal";
|
|
6
|
+
EzScrollDirection["VERTICAL"] = "vertical";
|
|
7
|
+
EzScrollDirection["BOTH"] = "both";
|
|
8
|
+
})(exports.EzScrollDirection || (exports.EzScrollDirection = {}));
|