@sankhyalabs/ezui 5.22.0-dev.8 → 5.22.0-dev.80
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/DataBinder-e92314c2.js +445 -0
- package/dist/cjs/FocusResolver-885f2173.js +35 -0
- package/dist/cjs/ez-actions-button.cjs.entry.js +3 -2
- package/dist/cjs/ez-button.cjs.entry.js +11 -5
- package/dist/cjs/ez-card-item_2.cjs.entry.js +76 -0
- package/dist/cjs/ez-check.cjs.entry.js +1 -1
- package/dist/cjs/ez-collapsible-box.cjs.entry.js +1 -1
- package/dist/cjs/ez-combo-box.cjs.entry.js +67 -13
- package/dist/cjs/ez-custom-form-input_2.cjs.entry.js +35 -5
- package/dist/cjs/ez-date-input.cjs.entry.js +14 -4
- package/dist/cjs/ez-date-time-input.cjs.entry.js +11 -4
- package/dist/cjs/ez-dialog.cjs.entry.js +14 -7
- package/dist/cjs/ez-double-list.cjs.entry.js +287 -0
- package/dist/cjs/{ez-dropdown.cjs.entry.js → ez-dropdown_2.cjs.entry.js} +75 -8
- package/dist/cjs/ez-filter-input.cjs.entry.js +130 -0
- package/dist/cjs/ez-form-view.cjs.entry.js +29 -22
- package/dist/cjs/ez-form.cjs.entry.js +6 -325
- package/dist/cjs/ez-grid.cjs.entry.js +14861 -69696
- package/dist/cjs/ez-icon.cjs.entry.js +1 -1
- package/dist/cjs/ez-list.cjs.entry.js +258 -211
- package/dist/cjs/ez-modal-container.cjs.entry.js +2 -1
- package/dist/cjs/ez-modal.cjs.entry.js +19 -4
- package/dist/cjs/ez-multi-selection-list.cjs.entry.js +2 -2
- package/dist/cjs/ez-number-input.cjs.entry.js +15 -2
- package/dist/cjs/ez-popup.cjs.entry.js +24 -2
- package/dist/cjs/ez-scroller_2.cjs.entry.js +3 -3
- package/dist/cjs/ez-search.cjs.entry.js +108 -47
- package/dist/cjs/ez-sidebar-navigator.cjs.entry.js +1 -1
- package/dist/cjs/ez-split-button.cjs.entry.js +2 -2
- package/dist/cjs/ez-split-item.cjs.entry.js +5 -2
- package/dist/cjs/ez-split-panel.cjs.entry.js +68 -6
- package/dist/cjs/ez-text-area.cjs.entry.js +68 -6
- package/dist/cjs/ez-text-input.cjs.entry.js +153 -16
- package/dist/cjs/ez-time-input.cjs.entry.js +8 -1
- package/dist/cjs/ez-tooltip.cjs.entry.js +55 -0
- package/dist/cjs/ez-tree.cjs.entry.js +5 -4
- package/dist/cjs/ezListHelper-0d3970b4.js +90 -0
- package/dist/cjs/ezui.cjs.js +1 -1
- package/dist/cjs/filter-column.cjs.entry.js +2 -2
- package/dist/cjs/index-a7b0c73d.js +16 -8
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +3 -1
- package/dist/collection/components/ez-actions-button/ez-actions-button.js +3 -2
- package/dist/collection/components/ez-button/ez-button.css +23 -13
- package/dist/collection/components/ez-button/ez-button.js +12 -6
- package/dist/collection/components/ez-card-item/ez-card-item.css +60 -10
- package/dist/collection/components/ez-card-item/ez-card-item.js +30 -3
- package/dist/collection/components/ez-check/ez-check.css +1 -6
- package/dist/collection/components/ez-collapsible-box/ez-collapsible-box.css +2 -2
- package/dist/collection/components/ez-combo-box/ez-combo-box.css +13 -1
- package/dist/collection/components/ez-combo-box/ez-combo-box.js +130 -15
- package/dist/collection/components/ez-date-input/ez-date-input.css +1 -1
- package/dist/collection/components/ez-date-input/ez-date-input.js +58 -5
- package/dist/collection/components/ez-date-time-input/ez-date-time-input.css +1 -1
- package/dist/collection/components/ez-date-time-input/ez-date-time-input.js +55 -5
- package/dist/collection/components/ez-dialog/ez-dialog.css +3 -3
- package/dist/collection/components/ez-dialog/ez-dialog.js +14 -16
- package/dist/collection/components/ez-double-list/doubleListHelper.js +82 -0
- package/dist/collection/components/ez-double-list/ez-double-list.css +62 -0
- package/dist/collection/components/ez-double-list/ez-double-list.js +440 -0
- package/dist/collection/components/ez-dropdown/ez-dropdown.js +33 -8
- package/dist/collection/components/ez-filter-input/ez-filter-input.js +55 -5
- package/dist/collection/components/ez-form/ez-form.js +1 -0
- package/dist/collection/components/ez-form-view/custom-input/ez-custom-form-input.js +49 -6
- package/dist/collection/components/ez-form-view/ez-form-view.css +5 -2
- package/dist/collection/components/ez-form-view/fieldbuilder/FieldBuilder.js +2 -1
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/CheckBox.tpl.js +1 -1
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/ComboBox.tpl.js +1 -1
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/DateInput.tpl.js +8 -4
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/FileInput.tpl.js +1 -1
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/NumberInput.tpl.js +1 -1
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/SearchInput.tpl.js +3 -2
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/TextArea.tpl.js +1 -1
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/TextInput.tpl.js +2 -2
- package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +292 -63
- package/dist/collection/components/ez-grid/controller/ag-grid/DataSource.js +151 -31
- package/dist/collection/components/ez-grid/controller/ag-grid/DataSourceInterceptor.js +2 -1
- package/dist/collection/components/ez-grid/controller/ag-grid/GridEditionManager.js +219 -42
- package/dist/collection/components/ez-grid/controller/ag-grid/components/EzGridCustomCellEditor.js +16 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/editor/EzCellEditor.js +8 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/ComboBox.tpl.js +2 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/DateInput.tpl.js +1 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/NumberInput.tpl.js +1 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/Search.tpl.js +8 -1
- package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/TextInput.tpl.js +4 -1
- package/dist/collection/components/ez-grid/controller/ag-grid/test/constants/GridEditionMock.js +2 -0
- package/dist/collection/components/ez-grid/ez-grid.css +47 -8
- package/dist/collection/components/ez-grid/ez-grid.js +280 -9
- package/dist/collection/components/ez-grid/subcomponents/filter-column.css +4 -0
- package/dist/collection/components/ez-grid/subcomponents/filter-column.js +1 -1
- package/dist/collection/components/ez-icon/ez-icon.css +155 -149
- package/dist/collection/components/ez-list/ez-list.css +2 -1
- package/dist/collection/components/ez-list/ez-list.js +301 -212
- package/dist/collection/components/ez-list/ezListHelper.js +85 -0
- package/dist/collection/components/ez-modal/ez-modal.css +5 -1
- package/dist/collection/components/ez-modal/ez-modal.js +38 -5
- package/dist/collection/components/ez-modal-container/ez-modal-container.js +20 -1
- package/dist/collection/components/ez-multi-selection-list/ez-multi-selection-list.css +2 -3
- package/dist/collection/components/ez-multi-selection-list/ez-multi-selection-list.js +1 -1
- package/dist/collection/components/ez-number-input/ez-number-input.css +8 -0
- package/dist/collection/components/ez-number-input/ez-number-input.js +68 -1
- package/dist/collection/components/ez-popup/ez-popup.css +8 -3
- package/dist/collection/components/ez-popup/ez-popup.js +43 -3
- package/dist/collection/components/ez-scroller/ez-scroller.css +1 -0
- package/dist/collection/components/ez-search/ez-search.css +21 -10
- package/dist/collection/components/ez-search/ez-search.js +211 -53
- package/dist/collection/components/ez-sidebar-button/ez-sidebar-button.css +3 -0
- package/dist/collection/components/ez-sidebar-button/ez-sidebar-button.js +1 -1
- package/dist/collection/components/ez-sidebar-navigator/ez-sidebar-navigator.css +3 -1
- package/dist/collection/components/ez-skeleton/ez-skeleton.css +54 -34
- package/dist/collection/components/ez-split-button/ez-split-button.css +50 -14
- package/dist/collection/components/ez-split-button/ez-split-button.js +3 -3
- package/dist/collection/components/ez-split-panel/ez-split-panel.css +15 -0
- package/dist/collection/components/ez-split-panel/ez-split-panel.js +106 -5
- package/dist/collection/components/ez-split-panel/interfaces/IPanelSizeInfo.js +1 -0
- package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.css +14 -2
- package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.js +22 -1
- package/dist/collection/components/ez-text-area/ez-text-area.css +78 -29
- package/dist/collection/components/ez-text-area/ez-text-area.js +104 -4
- package/dist/collection/components/ez-text-input/ez-text-input.css +106 -91
- package/dist/collection/components/ez-text-input/ez-text-input.js +185 -15
- package/dist/collection/components/ez-time-input/ez-time-input.js +44 -1
- package/dist/collection/components/ez-tooltip/ez-tooltip.css +20 -0
- package/dist/collection/components/ez-tooltip/ez-tooltip.js +116 -0
- package/dist/collection/components/ez-tree/ez-tree.js +21 -1
- package/dist/collection/components/ez-tree/subcomponents/TreeItem.js +3 -3
- package/dist/collection/sw.js +46 -0
- package/dist/collection/utils/FocusResolver.js +31 -0
- package/dist/collection/utils/ResponsiveInputUtils.js +26 -0
- package/dist/collection/utils/form/DataBinder.js +22 -7
- package/dist/collection/utils/form/FormMetadata.js +2 -1
- package/dist/collection/utils/interfaces/AbstractFieldMetadata.js +1 -1
- package/dist/collection/utils/validators/recordvalidator/IInvalidCells.js +1 -0
- package/dist/collection/utils/validators/recordvalidator/RecordValidationProcessor.js +7 -1
- package/dist/custom-elements/index.d.ts +12 -0
- package/dist/custom-elements/index.js +16502 -70294
- package/dist/esm/DataBinder-9c877244.js +441 -0
- package/dist/esm/FocusResolver-1ccbf850.js +33 -0
- package/dist/esm/ez-actions-button.entry.js +3 -2
- package/dist/esm/ez-button.entry.js +11 -5
- package/dist/esm/ez-card-item_2.entry.js +71 -0
- package/dist/esm/ez-check.entry.js +1 -1
- package/dist/esm/ez-collapsible-box.entry.js +1 -1
- package/dist/esm/ez-combo-box.entry.js +68 -14
- package/dist/esm/ez-custom-form-input_2.entry.js +36 -6
- package/dist/esm/ez-date-input.entry.js +14 -4
- package/dist/esm/ez-date-time-input.entry.js +11 -4
- package/dist/esm/ez-dialog.entry.js +15 -8
- package/dist/esm/ez-double-list.entry.js +283 -0
- package/dist/esm/{ez-dropdown.entry.js → ez-dropdown_2.entry.js} +75 -9
- package/dist/esm/ez-filter-input.entry.js +126 -0
- package/dist/esm/ez-form-view.entry.js +29 -22
- package/dist/esm/ez-form.entry.js +5 -324
- package/dist/esm/ez-grid.entry.js +14891 -69726
- package/dist/esm/ez-icon.entry.js +1 -1
- package/dist/esm/ez-list.entry.js +258 -211
- package/dist/esm/ez-modal-container.entry.js +2 -1
- package/dist/esm/ez-modal.entry.js +19 -4
- package/dist/esm/ez-multi-selection-list.entry.js +2 -2
- package/dist/esm/ez-number-input.entry.js +15 -2
- package/dist/esm/ez-popup.entry.js +24 -2
- package/dist/esm/ez-scroller_2.entry.js +3 -3
- package/dist/esm/ez-search.entry.js +108 -47
- package/dist/esm/ez-sidebar-navigator.entry.js +1 -1
- package/dist/esm/ez-split-button.entry.js +2 -2
- package/dist/esm/ez-split-item.entry.js +5 -2
- package/dist/esm/ez-split-panel.entry.js +69 -7
- package/dist/esm/ez-text-area.entry.js +68 -6
- package/dist/esm/ez-text-input.entry.js +153 -16
- package/dist/esm/ez-time-input.entry.js +8 -1
- package/dist/esm/ez-tooltip.entry.js +51 -0
- package/dist/esm/ez-tree.entry.js +5 -4
- package/dist/esm/ezListHelper-00fb9b8d.js +87 -0
- package/dist/esm/ezui.js +1 -1
- package/dist/esm/filter-column.entry.js +2 -2
- package/dist/esm/index-baa5e267.js +16 -8
- package/dist/esm/loader.js +1 -1
- package/dist/ezui/ezui.esm.js +1 -1
- package/dist/ezui/p-14b769d7.entry.js +1 -0
- package/dist/ezui/p-16e612fc.entry.js +1 -0
- package/dist/ezui/p-17eabf46.entry.js +1 -0
- package/dist/ezui/p-2475fd6e.entry.js +1 -0
- package/dist/ezui/p-2bb2a0c4.entry.js +1 -0
- package/dist/ezui/p-2f45506d.entry.js +1 -0
- package/dist/ezui/p-35464ae8.entry.js +1 -0
- package/dist/ezui/p-354abfe8.entry.js +1 -0
- package/dist/ezui/{p-baf80b13.entry.js → p-35d467a8.entry.js} +1 -1
- package/dist/ezui/p-3f2dd525.entry.js +1 -0
- package/dist/ezui/p-420f97ff.entry.js +1 -0
- package/dist/ezui/p-50d83a46.entry.js +1 -0
- package/dist/ezui/p-654b3f99.entry.js +1 -0
- package/dist/ezui/p-65f471bc.entry.js +1 -0
- package/dist/ezui/p-6cdd3e0a.entry.js +1 -0
- package/dist/ezui/p-6d79930d.entry.js +1 -0
- package/dist/ezui/p-6f22a385.entry.js +1 -0
- package/dist/ezui/p-7409eeaa.entry.js +1 -0
- package/dist/ezui/p-7e677b7b.entry.js +1 -0
- package/dist/ezui/{p-bf79aaa1.entry.js → p-7fdd479f.entry.js} +1 -1
- package/dist/ezui/p-80dfc50b.js +1 -0
- package/dist/ezui/p-990b4318.entry.js +1 -0
- package/dist/ezui/p-a6fe527a.entry.js +1 -0
- package/dist/ezui/p-acddfb2e.js +1 -0
- package/dist/ezui/p-b6597f49.entry.js +309 -0
- package/dist/ezui/p-b6a4e6de.entry.js +1 -0
- package/dist/ezui/p-c3045972.entry.js +1 -0
- package/dist/ezui/p-ca6340a9.entry.js +1 -0
- package/dist/ezui/p-cf87aacb.entry.js +1 -0
- package/dist/ezui/p-da1b4a38.entry.js +1 -0
- package/dist/ezui/p-dc628ed3.js +1 -0
- package/dist/ezui/p-dc8b36c3.entry.js +1 -0
- package/dist/ezui/{p-84e439b9.entry.js → p-e347df9c.entry.js} +1 -1
- package/dist/ezui/p-e3e3fd7a.entry.js +1 -0
- package/dist/ezui/p-ea54d056.entry.js +1 -0
- package/dist/ezui/p-f43dbada.entry.js +1 -0
- package/dist/ezui/p-fa6732f2.entry.js +1 -0
- package/dist/ezui/p-fec696ab.entry.js +1 -0
- package/dist/types/components/ez-button/ez-button.d.ts +2 -1
- package/dist/types/components/ez-card-item/ez-card-item.d.ts +5 -0
- package/dist/types/components/ez-combo-box/ez-combo-box.d.ts +16 -1
- package/dist/types/components/ez-date-input/ez-date-input.d.ts +10 -1
- package/dist/types/components/ez-date-time-input/ez-date-time-input.d.ts +10 -1
- package/dist/types/components/ez-dialog/ez-dialog.d.ts +2 -1
- package/dist/types/components/ez-double-list/doubleListHelper.d.ts +10 -0
- package/dist/types/components/ez-double-list/ez-double-list.d.ts +87 -0
- package/dist/types/components/ez-dropdown/ez-dropdown.d.ts +4 -0
- package/dist/types/components/ez-dropdown/structure/DropdownItem.d.ts +1 -1
- package/dist/types/components/ez-filter-input/ez-filter-input.d.ts +10 -1
- package/dist/types/components/ez-form-view/custom-input/ez-custom-form-input.d.ts +7 -1
- package/dist/types/components/ez-form-view/fieldbuilder/templates/DateInput.tpl.d.ts +2 -1
- package/dist/types/components/ez-form-view/fieldbuilder/templates/SearchInput.tpl.d.ts +1 -1
- package/dist/types/components/ez-form-view/fieldbuilder/templates/TextInput.tpl.d.ts +1 -1
- package/dist/types/components/ez-grid/controller/EzGridController.d.ts +71 -4
- package/dist/types/components/ez-grid/controller/ag-grid/AgGridController.d.ts +36 -4
- package/dist/types/components/ez-grid/controller/ag-grid/DataSource.d.ts +25 -2
- package/dist/types/components/ez-grid/controller/ag-grid/GridEditionManager.d.ts +33 -7
- package/dist/types/components/ez-grid/controller/ag-grid/components/EzGridCustomCellEditor.d.ts +4 -1
- package/dist/types/components/ez-grid/controller/ag-grid/components/EzGridCustomCellRender.d.ts +1 -1
- package/dist/types/components/ez-grid/controller/ag-grid/components/EzGridCustomHeader.d.ts +1 -1
- package/dist/types/components/ez-grid/controller/ag-grid/components/cellRendererStatus.d.ts +1 -1
- package/dist/types/components/ez-grid/controller/ag-grid/components/selectionHeader.d.ts +1 -1
- package/dist/types/components/ez-grid/controller/ag-grid/editor/EzCellEditor.d.ts +2 -1
- package/dist/types/components/ez-grid/controller/ag-grid/editor/EzCellRender.d.ts +1 -1
- package/dist/types/components/ez-grid/controller/ag-grid/editor/IUICellEditor.d.ts +1 -0
- package/dist/types/components/ez-grid/controller/ag-grid/mock/Server.d.ts +1 -1
- package/dist/types/components/ez-grid/ez-grid.d.ts +49 -1
- package/dist/types/components/ez-list/ez-list.d.ts +23 -2
- package/dist/types/components/ez-list/ezListHelper.d.ts +20 -0
- package/dist/types/components/ez-modal/ez-modal.d.ts +7 -1
- package/dist/types/components/ez-modal-container/ez-modal-container.d.ts +4 -0
- package/dist/types/components/ez-number-input/ez-number-input.d.ts +12 -0
- package/dist/types/components/ez-popup/ez-popup.d.ts +8 -1
- package/dist/types/components/ez-search/ez-search.d.ts +34 -6
- package/dist/types/components/ez-split-button/ez-split-button.d.ts +1 -1
- package/dist/types/components/ez-split-panel/ez-split-panel.d.ts +11 -0
- package/dist/types/components/ez-split-panel/interfaces/IPanelSizeInfo.d.ts +9 -0
- package/dist/types/components/ez-split-panel/structure/item/ez-split-item.d.ts +5 -0
- package/dist/types/components/ez-text-area/ez-text-area.d.ts +17 -0
- package/dist/types/components/ez-text-input/ez-text-input.d.ts +28 -2
- package/dist/types/components/ez-time-input/ez-time-input.d.ts +8 -0
- package/dist/types/components/ez-tooltip/ez-tooltip.d.ts +21 -0
- package/dist/types/components/ez-tree/ez-tree.d.ts +4 -0
- package/dist/types/components/ez-tree/interfaces/ITreeItem.d.ts +1 -0
- package/dist/types/components/ez-tree/subcomponents/TreeItem.d.ts +1 -0
- package/dist/types/components.d.ts +486 -27
- package/dist/types/utils/FocusResolver.d.ts +5 -0
- package/dist/types/utils/ResponsiveInputUtils.d.ts +6 -0
- package/dist/types/utils/customEditor/interfaces/ICustomEditor.d.ts +2 -0
- package/dist/types/utils/form/DataBinder.d.ts +3 -0
- package/dist/types/utils/validators/recordvalidator/IInvalidCells.d.ts +5 -0
- package/dist/types/utils/validators/recordvalidator/RecordValidationProcessor.d.ts +1 -1
- package/package.json +12 -4
- package/react/components.d.ts +2 -0
- package/react/components.js +2 -0
- package/react/components.js.map +1 -1
- package/dist/cjs/RecordValidationProcessor-4c893e04.js +0 -102
- package/dist/cjs/ez-card-item_3.cjs.entry.js +0 -183
- package/dist/cjs/ez-skeleton.cjs.entry.js +0 -67
- package/dist/esm/RecordValidationProcessor-b00b8b77.js +0 -99
- package/dist/esm/ez-card-item_3.entry.js +0 -177
- package/dist/esm/ez-skeleton.entry.js +0 -63
- package/dist/ezui/p-04f24913.js +0 -1
- package/dist/ezui/p-072e6347.entry.js +0 -1
- package/dist/ezui/p-1285c902.entry.js +0 -1
- package/dist/ezui/p-13d2fe2d.entry.js +0 -1
- package/dist/ezui/p-2097d0cf.entry.js +0 -1
- package/dist/ezui/p-30775e7f.entry.js +0 -1
- package/dist/ezui/p-32e553e5.entry.js +0 -304
- package/dist/ezui/p-3b4eeeb6.entry.js +0 -1
- package/dist/ezui/p-3faa2b46.entry.js +0 -1
- package/dist/ezui/p-49456b34.entry.js +0 -1
- package/dist/ezui/p-4d5235f1.entry.js +0 -1
- package/dist/ezui/p-5bd5e68f.entry.js +0 -1
- package/dist/ezui/p-784fe207.entry.js +0 -1
- package/dist/ezui/p-7922142b.entry.js +0 -1
- package/dist/ezui/p-7af81663.entry.js +0 -1
- package/dist/ezui/p-7bc07c31.entry.js +0 -1
- package/dist/ezui/p-85c8baae.entry.js +0 -1
- package/dist/ezui/p-8888d9ed.entry.js +0 -1
- package/dist/ezui/p-8f0144f6.entry.js +0 -1
- package/dist/ezui/p-9050d2cd.entry.js +0 -1
- package/dist/ezui/p-922ac38b.entry.js +0 -1
- package/dist/ezui/p-9ab22a07.entry.js +0 -1
- package/dist/ezui/p-a31b9c90.entry.js +0 -1
- package/dist/ezui/p-af95cd16.entry.js +0 -1
- package/dist/ezui/p-bae4e180.entry.js +0 -1
- package/dist/ezui/p-bcb53f27.entry.js +0 -1
- package/dist/ezui/p-d9401ea0.entry.js +0 -1
- package/dist/ezui/p-e85c48d7.entry.js +0 -1
- package/dist/ezui/p-ecc2c1ec.entry.js +0 -1
- package/dist/ezui/p-f3c526cc.entry.js +0 -1
- package/dist/ezui/p-fcf0acce.entry.js +0 -1
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
.skeleton {
|
|
2
|
-
|
|
3
|
-
outline: none;
|
|
4
|
-
overflow: hidden;
|
|
5
|
-
position: relative;
|
|
6
|
-
|
|
7
|
-
background:var(--skeleton-background, #eff1f6) no-repeat;
|
|
2
|
+
background: var(--skeleton-background, #eff1f6) no-repeat;
|
|
8
3
|
|
|
9
4
|
border-radius: var(--skeleton-border-radius, 4px);
|
|
10
5
|
width: var(--skeleton-width, 100%);
|
|
11
6
|
height: var(--skeleton-height, 20px);
|
|
12
7
|
display: inline-block;
|
|
13
|
-
margin-bottom: var(--skeleton-margin-bottom, 0px);
|
|
8
|
+
margin-bottom: var(--skeleton-margin-bottom, 0px);
|
|
9
|
+
box-sizing: border-box;
|
|
10
|
+
outline: none;
|
|
11
|
+
overflow: hidden;
|
|
12
|
+
position: relative;
|
|
13
|
+
-webkit-will-change: transform;
|
|
14
|
+
-moz-will-change: transform;
|
|
14
15
|
will-change: transform;
|
|
15
16
|
|
|
16
17
|
&:after,
|
|
@@ -31,29 +32,31 @@
|
|
|
31
32
|
|
|
32
33
|
&.progress,
|
|
33
34
|
&.progress-dark {
|
|
35
|
+
-webkit-animation: progress 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
|
|
36
|
+
-moz-animation: progress 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
|
|
37
|
+
-ms-animation: progress 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
|
|
34
38
|
animation: progress 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
|
|
35
39
|
background-size: 200px 100%;
|
|
36
40
|
}
|
|
37
41
|
|
|
38
42
|
&.progress {
|
|
39
|
-
background-image: linear-gradient(
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
rgba(255, 255, 255, 0)
|
|
44
|
-
);
|
|
43
|
+
background-image: -webkit-linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0));
|
|
44
|
+
background-image: -moz-linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0));
|
|
45
|
+
background-image: -ms-linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0));
|
|
46
|
+
background-image: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0));
|
|
45
47
|
}
|
|
46
48
|
|
|
47
49
|
&.progress-dark {
|
|
48
|
-
background-image: linear-gradient(
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
transparent
|
|
53
|
-
);
|
|
50
|
+
background-image: -webkit-linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.2), transparent);
|
|
51
|
+
background-image: -moz-linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.2), transparent);
|
|
52
|
+
background-image: -ms-linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.2), transparent);
|
|
53
|
+
background-image: linear-gradient(90deg,transparent,rgba(0, 0, 0, 0.2),transparent);
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
&.pulse {
|
|
57
|
+
-webkit-animation: pulse 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
|
|
58
|
+
-moz-animation: pulse 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
|
|
59
|
+
-ms-animation: pulse 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
|
|
57
60
|
animation: pulse 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
|
|
58
61
|
animation-delay: 0.5s;
|
|
59
62
|
}
|
|
@@ -72,23 +75,40 @@
|
|
|
72
75
|
}
|
|
73
76
|
}
|
|
74
77
|
|
|
78
|
+
@-webkit-keyframes progress {
|
|
79
|
+
0% { background-position: -200px 0; }
|
|
80
|
+
100% { background-position: calc(200px + 100%) 0; }
|
|
81
|
+
}
|
|
82
|
+
@-moz-keyframes progress {
|
|
83
|
+
0% { background-position: -200px 0; }
|
|
84
|
+
100% { background-position: calc(200px + 100%) 0; }
|
|
85
|
+
}
|
|
86
|
+
@-ms-keyframes progress {
|
|
87
|
+
0% { background-position: -200px 0; }
|
|
88
|
+
100% { background-position: calc(200px + 100%) 0; }
|
|
89
|
+
}
|
|
75
90
|
@keyframes progress {
|
|
76
|
-
0% {
|
|
77
|
-
|
|
78
|
-
}
|
|
79
|
-
100% {
|
|
80
|
-
background-position: calc(200px + 100%) 0;
|
|
81
|
-
}
|
|
91
|
+
0% { background-position: -200px 0; }
|
|
92
|
+
100% { background-position: calc(200px + 100%) 0; }
|
|
82
93
|
}
|
|
83
94
|
|
|
95
|
+
@-webkit-keyframes pulse {
|
|
96
|
+
0% { opacity: 1; }
|
|
97
|
+
50% { opacity: 0.4; }
|
|
98
|
+
100% { opacity: 1; }
|
|
99
|
+
}
|
|
100
|
+
@-moz-keyframes pulse {
|
|
101
|
+
0% { opacity: 1; }
|
|
102
|
+
50% { opacity: 0.4; }
|
|
103
|
+
100% { opacity: 1; }
|
|
104
|
+
}
|
|
105
|
+
@-ms-keyframes pulse {
|
|
106
|
+
0% { opacity: 1; }
|
|
107
|
+
50% { opacity: 0.4; }
|
|
108
|
+
100% { opacity: 1; }
|
|
109
|
+
}
|
|
84
110
|
@keyframes pulse {
|
|
85
|
-
0% {
|
|
86
|
-
|
|
87
|
-
}
|
|
88
|
-
50% {
|
|
89
|
-
opacity: 0.4;
|
|
90
|
-
}
|
|
91
|
-
100% {
|
|
92
|
-
opacity: 1;
|
|
93
|
-
}
|
|
111
|
+
0% { opacity: 1; }
|
|
112
|
+
50% { opacity: 0.4; }
|
|
113
|
+
100% { opacity: 1; }
|
|
94
114
|
}
|
|
@@ -21,29 +21,29 @@
|
|
|
21
21
|
--ez-split-button__right-button--padding-left: 8px;
|
|
22
22
|
/* general */
|
|
23
23
|
/*@doc Define a cor do label.*/
|
|
24
|
-
--ez-split-button--color: var(--title--primary, #
|
|
24
|
+
--ez-split-button--color: var(--title--primary, #2B3A54);
|
|
25
25
|
/*@doc Define o tamanho do label.*/
|
|
26
|
-
--ez-split-button--font-size: var(--text--
|
|
26
|
+
--ez-split-button--font-size: var(--text--small, 12px);
|
|
27
27
|
/*@doc Define a família da fonte do label.*/
|
|
28
28
|
--ez-split-button--font-family: var(--font-pattern, Arial);
|
|
29
29
|
/*@doc Define o peso da fonte do label.*/
|
|
30
30
|
--ez-split-button--font-weight: var(--text-weight--large);
|
|
31
31
|
/*@doc Define a cor de fundo do botão.*/
|
|
32
|
-
--ez-split-button--background-color: var(--background--
|
|
32
|
+
--ez-split-button--background-color: var(--background--light, #ffffff);
|
|
33
33
|
/*@doc Define o raio da borda do botão.*/
|
|
34
|
-
--ez-split-button--border-radius: var(--border--radius-large,
|
|
34
|
+
--ez-split-button--border-radius: var(--border--radius-large, 24px);
|
|
35
35
|
/*@doc Define o estilo da borda do botão.*/
|
|
36
|
-
--ez-split-button--border:
|
|
36
|
+
--ez-split-button--border: 1px solid var(--color--strokes);
|
|
37
37
|
/*@doc Define o alinhamento horizontal do conteúdo do botão.*/
|
|
38
38
|
--ez-split-button--justify-content: center;
|
|
39
39
|
/*@doc Define a cor do texto e do ícone quando o cursor está sobre o botão.*/
|
|
40
|
-
--ez-split-button--hover-color: var(--color--primary-600);
|
|
40
|
+
--ez-split-button--hover-color: var(--color--primary-600, #007a5a);
|
|
41
41
|
/*@doc Define a cor de fundo quando o cursor está sobre o botão.*/
|
|
42
|
-
--ez-split-button--hover--background-color: var(--background--
|
|
42
|
+
--ez-split-button--hover--background-color: var(--background--light, #ffffff);
|
|
43
43
|
/*@doc Define a cor do texto quando o botão está desabilitado.*/
|
|
44
|
-
--ez-split-button--disabled-color: var(--text--
|
|
44
|
+
--ez-split-button--disabled-color: var(--text--primary);
|
|
45
45
|
/*@doc Define a cor de fundo quando o botão está desabilitado.*/
|
|
46
|
-
--ez-split-button--disabled--background-color: var(--
|
|
46
|
+
--ez-split-button--disabled--background-color: var(--background--medium);
|
|
47
47
|
/*@doc Define o estido da borda quando o botão está selecionado.*/
|
|
48
48
|
--ez-split-button--focus--border: var(--border--medium, 2px) var(--color--primary-300);
|
|
49
49
|
/*@doc Define a sombra do botão quando selecionado.*/
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
background-color: var(--ez-split-button--background-color);
|
|
82
82
|
color: var(--ez-split-button--color);
|
|
83
83
|
fill: var(--ez-split-button--color);
|
|
84
|
-
border:
|
|
84
|
+
border: none;
|
|
85
85
|
justify-content: var(--ez-split-button--justify-content);
|
|
86
86
|
}
|
|
87
87
|
|
|
@@ -97,11 +97,28 @@
|
|
|
97
97
|
fill: var(--ez-split-button--active-color);
|
|
98
98
|
--ez-icon--color: var(--ez-split-button--active-color);
|
|
99
99
|
}
|
|
100
|
+
.ez-split-button__left-button{
|
|
101
|
+
border: var(--ez-split-button--border);
|
|
102
|
+
border-right: none;
|
|
103
|
+
}
|
|
104
|
+
.ez-split-button__right-button{
|
|
105
|
+
border: var(--ez-split-button--border);
|
|
106
|
+
border-left: none;
|
|
107
|
+
}
|
|
100
108
|
|
|
101
|
-
.ez-split-button__left-button:focus
|
|
109
|
+
.ez-split-button__left-button:focus{
|
|
110
|
+
box-shadow:
|
|
111
|
+
0 0 0 2px var(--color--primary-300), /* right */
|
|
112
|
+
0 2px 0 0 var(--color--primary-300), /* bottom */
|
|
113
|
+
0 -2px 0 0 var(--color--primary-300); /* top */
|
|
114
|
+
|
|
115
|
+
}
|
|
102
116
|
.ez-split-button__right-button:focus {
|
|
103
|
-
|
|
104
|
-
|
|
117
|
+
box-shadow:
|
|
118
|
+
2px 0 0 0 var(--color--primary-300), /* right */
|
|
119
|
+
0 2px 0 0 var(--color--primary-300), /* bottom */
|
|
120
|
+
0 -2px 0 0 var(--color--primary-300); /* top */
|
|
121
|
+
|
|
105
122
|
}
|
|
106
123
|
|
|
107
124
|
.ez-split-button__left-button:hover,
|
|
@@ -113,6 +130,16 @@
|
|
|
113
130
|
--ez-icon--color: var(--ez-split-button--hover-color);
|
|
114
131
|
}
|
|
115
132
|
|
|
133
|
+
.ez-split-button__left-button:active,
|
|
134
|
+
.ez-split-button__right-button:active {
|
|
135
|
+
outline: none;
|
|
136
|
+
box-shadow: none;
|
|
137
|
+
background-color: var(--ez-split-button--active--background-color);
|
|
138
|
+
color: var(--ez-split-button--active-color);
|
|
139
|
+
fill: var(--ez-split-button--active-color);
|
|
140
|
+
--ez-icon--color: var(--ez-split-button--active-color);
|
|
141
|
+
}
|
|
142
|
+
|
|
116
143
|
.ez-split-button__left-button:disabled,
|
|
117
144
|
.ez-split-button__left-button:disabled label,
|
|
118
145
|
.ez-split-button__right-button:disabled{
|
|
@@ -123,7 +150,15 @@
|
|
|
123
150
|
--ez-icon--color: var(--ez-split-button--disabled-color);
|
|
124
151
|
cursor: not-allowed;
|
|
125
152
|
}
|
|
126
|
-
|
|
153
|
+
.ez-split-button__left-button:disabled{
|
|
154
|
+
border: var(--ez-split-button--disabled-border);
|
|
155
|
+
border-right: none;
|
|
156
|
+
}
|
|
157
|
+
.ez-split-button__right-button:disabled{
|
|
158
|
+
border: var(--ez-split-button--disabled-border);
|
|
159
|
+
border-left: none;
|
|
160
|
+
}
|
|
161
|
+
|
|
127
162
|
button.large {
|
|
128
163
|
height: var(--ez-split-button__large--height);
|
|
129
164
|
}
|
|
@@ -161,6 +196,7 @@
|
|
|
161
196
|
border-bottom-right-radius: var(--ez-split-button--border-radius);
|
|
162
197
|
border-top-left-radius: 0;
|
|
163
198
|
border-bottom-left-radius:0;
|
|
199
|
+
border-right: var(--ez-split-button--border);
|
|
164
200
|
}
|
|
165
201
|
|
|
166
202
|
.ez-split-button__right-button--medium {
|
|
@@ -42,7 +42,7 @@ export class EzSplitButton {
|
|
|
42
42
|
}
|
|
43
43
|
getIconSize(sizeParam = 'medium') {
|
|
44
44
|
var _a;
|
|
45
|
-
const sizeList = ['medium', 'large'];
|
|
45
|
+
const sizeList = ['small', 'medium', 'large'];
|
|
46
46
|
const sizeLowerCase = (_a = this.size) === null || _a === void 0 ? void 0 : _a.toLowerCase();
|
|
47
47
|
return sizeList.includes(sizeLowerCase) ? sizeLowerCase : sizeParam;
|
|
48
48
|
}
|
|
@@ -311,8 +311,8 @@ export class EzSplitButton {
|
|
|
311
311
|
"type": "string",
|
|
312
312
|
"mutable": false,
|
|
313
313
|
"complexType": {
|
|
314
|
-
"original": "'medium' | 'large'",
|
|
315
|
-
"resolved": "\"large\" | \"medium\"",
|
|
314
|
+
"original": "'small' | 'medium' | 'large'",
|
|
315
|
+
"resolved": "\"large\" | \"medium\" | \"small\"",
|
|
316
316
|
"references": {}
|
|
317
317
|
},
|
|
318
318
|
"required": false,
|
|
@@ -6,3 +6,18 @@
|
|
|
6
6
|
background-color: transparent;
|
|
7
7
|
max-width: 100%;
|
|
8
8
|
}
|
|
9
|
+
.ez-split-gutter__row {
|
|
10
|
+
cursor: ns-resize;
|
|
11
|
+
}
|
|
12
|
+
.ez-split-gutter__column {
|
|
13
|
+
cursor: ew-resize;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.structural__panel {
|
|
17
|
+
background: none;
|
|
18
|
+
box-shadow: none;
|
|
19
|
+
outline: none;
|
|
20
|
+
padding: 0;
|
|
21
|
+
margin: 0;
|
|
22
|
+
border: 0;
|
|
23
|
+
}
|
|
@@ -7,6 +7,7 @@ export class SplitPanel {
|
|
|
7
7
|
this._buildInProgress = false;
|
|
8
8
|
this.direction = 'column';
|
|
9
9
|
this.anchorToExpand = false;
|
|
10
|
+
this.structural = false;
|
|
10
11
|
}
|
|
11
12
|
rebuildLayout() {
|
|
12
13
|
Array.from(this._element.querySelectorAll(".ez-split-gutter")).reverse().forEach(el => {
|
|
@@ -38,7 +39,7 @@ export class SplitPanel {
|
|
|
38
39
|
this.initSplit();
|
|
39
40
|
this._mutationObserver = new MutationObserver((mutationsList) => {
|
|
40
41
|
for (const mutation of mutationsList) {
|
|
41
|
-
if (mutation.type === 'childList' && this._buildInProgress
|
|
42
|
+
if (mutation.type === 'childList' && !this._buildInProgress) {
|
|
42
43
|
this._buildInProgress = true;
|
|
43
44
|
window.requestAnimationFrame(() => {
|
|
44
45
|
this.rebuildLayout();
|
|
@@ -61,20 +62,30 @@ export class SplitPanel {
|
|
|
61
62
|
if (!this._items.length) {
|
|
62
63
|
return;
|
|
63
64
|
}
|
|
64
|
-
this._element.style[this.direction
|
|
65
|
+
this._element.style[this.direction === 'row' ? 'grid-template-rows' : 'grid-template-columns'] = this.getGridTemplate();
|
|
66
|
+
this.removeGuttersMargin();
|
|
65
67
|
Split(this.getGutters());
|
|
66
68
|
}
|
|
69
|
+
handlePanelDragEnd() {
|
|
70
|
+
const items = this._items.map(item => ({
|
|
71
|
+
id: item.id,
|
|
72
|
+
height: item.clientHeight,
|
|
73
|
+
width: item.clientWidth,
|
|
74
|
+
}));
|
|
75
|
+
this.resizeEnd.emit({ panelId: this._element.id, items });
|
|
76
|
+
}
|
|
67
77
|
getGutters() {
|
|
68
78
|
const gutters = {
|
|
69
79
|
columnGutters: [],
|
|
70
80
|
rowGutters: [],
|
|
81
|
+
onDragEnd: () => this.handlePanelDragEnd()
|
|
71
82
|
};
|
|
72
83
|
if (!this._items.length) {
|
|
73
84
|
return gutters;
|
|
74
85
|
}
|
|
75
|
-
const proToChange = this.direction
|
|
86
|
+
const proToChange = this.direction === 'row' ? 'rowGutters' : 'columnGutters';
|
|
76
87
|
this._items.forEach((item, index) => {
|
|
77
|
-
if (index
|
|
88
|
+
if (index === this._items.length - 1)
|
|
78
89
|
return;
|
|
79
90
|
let gutterTrack = item.dataset.trackNumber;
|
|
80
91
|
if (index === this._items.length - 1) {
|
|
@@ -91,6 +102,12 @@ export class SplitPanel {
|
|
|
91
102
|
const gutter = document.createElement('div');
|
|
92
103
|
gutter.classList.add('ez-split-gutter');
|
|
93
104
|
gutter.classList.add(this.direction);
|
|
105
|
+
if (this.direction === 'row') {
|
|
106
|
+
gutter.classList.add('ez-split-gutter__row');
|
|
107
|
+
}
|
|
108
|
+
else {
|
|
109
|
+
gutter.classList.add('ez-split-gutter__column');
|
|
110
|
+
}
|
|
94
111
|
gutter.dataset.itemTrack = `${item.dataset.trackNumber}`;
|
|
95
112
|
gutter.dataset.trackNumber = (Number(item.dataset.trackNumber) + 1).toString();
|
|
96
113
|
item.parentNode.insertBefore(gutter, item.nextSibling);
|
|
@@ -136,8 +153,52 @@ export class SplitPanel {
|
|
|
136
153
|
});
|
|
137
154
|
return template;
|
|
138
155
|
}
|
|
156
|
+
removeGuttersMargin() {
|
|
157
|
+
if (this._items.length <= 1)
|
|
158
|
+
return;
|
|
159
|
+
if (this.direction == "column") {
|
|
160
|
+
this.removeGuttersMarginColumn();
|
|
161
|
+
return;
|
|
162
|
+
}
|
|
163
|
+
if (this.direction == "row") {
|
|
164
|
+
this.removeGuttersMarginRow();
|
|
165
|
+
return;
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
removeGuttersMarginColumn() {
|
|
169
|
+
this._items.forEach((item, index) => {
|
|
170
|
+
if (index == 0) {
|
|
171
|
+
item.style.marginRight = "0";
|
|
172
|
+
return;
|
|
173
|
+
}
|
|
174
|
+
if (index === this._items.length - 1) {
|
|
175
|
+
item.style.marginLeft = "0";
|
|
176
|
+
return;
|
|
177
|
+
}
|
|
178
|
+
item.style.marginRight = "0";
|
|
179
|
+
item.style.marginLeft = "0";
|
|
180
|
+
return;
|
|
181
|
+
});
|
|
182
|
+
}
|
|
183
|
+
removeGuttersMarginRow() {
|
|
184
|
+
if (this._items.length <= 1)
|
|
185
|
+
return;
|
|
186
|
+
this._items.forEach((item, index) => {
|
|
187
|
+
if (index == 0) {
|
|
188
|
+
item.style.marginBottom = "0";
|
|
189
|
+
return;
|
|
190
|
+
}
|
|
191
|
+
if (index === this._items.length - 1) {
|
|
192
|
+
item.style.marginTop = "0";
|
|
193
|
+
return;
|
|
194
|
+
}
|
|
195
|
+
item.style.marginBottom = "0";
|
|
196
|
+
item.style.marginTop = "0";
|
|
197
|
+
return;
|
|
198
|
+
});
|
|
199
|
+
}
|
|
139
200
|
render() {
|
|
140
|
-
return h(Host, { style: this.getElementStyle() });
|
|
201
|
+
return h(Host, { class: `${this.structural ? 'structural__panel' : 'content__panel'}`, style: this.getElementStyle() });
|
|
141
202
|
}
|
|
142
203
|
static get is() { return "ez-split-panel"; }
|
|
143
204
|
static get originalStyleUrls() {
|
|
@@ -187,9 +248,49 @@ export class SplitPanel {
|
|
|
187
248
|
"attribute": "anchor-to-expand",
|
|
188
249
|
"reflect": false,
|
|
189
250
|
"defaultValue": "false"
|
|
251
|
+
},
|
|
252
|
+
"structural": {
|
|
253
|
+
"type": "boolean",
|
|
254
|
+
"mutable": false,
|
|
255
|
+
"complexType": {
|
|
256
|
+
"original": "boolean",
|
|
257
|
+
"resolved": "boolean",
|
|
258
|
+
"references": {}
|
|
259
|
+
},
|
|
260
|
+
"required": false,
|
|
261
|
+
"optional": false,
|
|
262
|
+
"docs": {
|
|
263
|
+
"tags": [],
|
|
264
|
+
"text": "Define se o painel est\u00E1 sendo utilizado como estrutura para apresenta\u00E7\u00E3o de outro item"
|
|
265
|
+
},
|
|
266
|
+
"attribute": "structural",
|
|
267
|
+
"reflect": false,
|
|
268
|
+
"defaultValue": "false"
|
|
190
269
|
}
|
|
191
270
|
};
|
|
192
271
|
}
|
|
272
|
+
static get events() {
|
|
273
|
+
return [{
|
|
274
|
+
"method": "resizeEnd",
|
|
275
|
+
"name": "resizeEnd",
|
|
276
|
+
"bubbles": true,
|
|
277
|
+
"cancelable": true,
|
|
278
|
+
"composed": true,
|
|
279
|
+
"docs": {
|
|
280
|
+
"tags": [],
|
|
281
|
+
"text": ""
|
|
282
|
+
},
|
|
283
|
+
"complexType": {
|
|
284
|
+
"original": "IPanelSizeInfo",
|
|
285
|
+
"resolved": "IPanelSizeInfo",
|
|
286
|
+
"references": {
|
|
287
|
+
"IPanelSizeInfo": {
|
|
288
|
+
"location": "global"
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
}];
|
|
293
|
+
}
|
|
193
294
|
static get methods() {
|
|
194
295
|
return {
|
|
195
296
|
"rebuildLayout": {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
width: 100%;
|
|
4
4
|
height: 100%;
|
|
5
5
|
border-radius: var(--border--radius-medium);
|
|
6
|
-
box-shadow: var(--shadow);
|
|
6
|
+
box-shadow: var(--shadow--xsmall);
|
|
7
7
|
flex-direction: column;
|
|
8
8
|
overflow: hidden;
|
|
9
9
|
display: flex;
|
|
@@ -45,6 +45,7 @@
|
|
|
45
45
|
.ez-split-item--header-buttons {
|
|
46
46
|
display: flex;
|
|
47
47
|
align-items: center;
|
|
48
|
+
max-height: 20px;
|
|
48
49
|
}
|
|
49
50
|
|
|
50
51
|
.ez-split-item--content {
|
|
@@ -56,4 +57,15 @@ h3.ez-margin--small {
|
|
|
56
57
|
margin-left: var(--space--small);
|
|
57
58
|
}
|
|
58
59
|
|
|
59
|
-
|
|
60
|
+
.structural__item {
|
|
61
|
+
background: none;
|
|
62
|
+
box-shadow: none;
|
|
63
|
+
padding: 0;
|
|
64
|
+
margin: 0;
|
|
65
|
+
border: 0;
|
|
66
|
+
}
|
|
67
|
+
.content__item {
|
|
68
|
+
margin: var(--space--extra-small);
|
|
69
|
+
width: calc(100% - 2*(var(--space--extra-small)));
|
|
70
|
+
height: calc(100% - 2*(var(--space--extra-small)));
|
|
71
|
+
}
|
|
@@ -6,18 +6,21 @@ export class SplitItem {
|
|
|
6
6
|
this.enableExpand = true;
|
|
7
7
|
this._expanded = false;
|
|
8
8
|
this.size = undefined;
|
|
9
|
+
this.structural = false;
|
|
9
10
|
}
|
|
10
11
|
/**
|
|
11
12
|
* Alterna a visibilidade do painel.
|
|
12
13
|
*/
|
|
13
14
|
toggleExpandItem() {
|
|
15
|
+
var _a, _b;
|
|
14
16
|
this._expanded = !this._expanded;
|
|
17
|
+
(_b = (_a = this.expandButtonRef.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('button')) === null || _b === void 0 ? void 0 : _b.blur();
|
|
15
18
|
}
|
|
16
19
|
componentDidLoad() {
|
|
17
20
|
CSSVarsUtils.applyVarsGrid(this._element, this._slot.children[0]);
|
|
18
21
|
}
|
|
19
22
|
render() {
|
|
20
|
-
return (h(Host, { class: `box_split-item ${this._expanded ? 'expanded__item' : ''}`, ref: el => (this._element = el) }, h("div", { class: "ez-split-item--header" }, h("slot", { name: "leftButtons" }), h("div", { class: "ez-split-item--header-title" }, this.label && (h("h3", { class: "ez-text ez-text--primary ez-title ez-title--small ez-margin--small", title: this.label }, this.label))), h("div", { class: "ez-split-item--header-buttons" }, h("slot", { name: "rightButtons" }), this.enableExpand && (h("ez-button", { size: "small", mode: "icon", iconName: "expand", class: 'ez-button--tertiary', onClick: () => this.toggleExpandItem(), title: this._expanded ? 'Resumir' : 'Expandir' })))), h("div", { class: "ez-split-item--content grid_height-0", ref: el => (this._slot = el) }, h("slot", null))));
|
|
23
|
+
return (h(Host, { class: `box_split-item ${this._expanded ? 'expanded__item' : ''} ${this.structural ? 'structural__item' : 'content__item'}`, ref: el => (this._element = el) }, h("div", { class: "ez-split-item--header" }, h("slot", { name: "leftButtons" }), h("div", { class: "ez-split-item--header-title" }, this.label && (h("h3", { class: "ez-text ez-text--primary ez-title ez-title--small ez-margin--small", title: this.label }, this.label))), h("div", { class: "ez-split-item--header-buttons" }, h("slot", { name: "rightButtons" }), this.enableExpand && (h("ez-button", { ref: el => this.expandButtonRef = el, size: "small", mode: "icon", iconName: "expand", class: 'ez-button--tertiary', onClick: () => this.toggleExpandItem(), title: this._expanded ? 'Resumir' : 'Expandir' })))), h("div", { class: "ez-split-item--content grid_height-0", ref: el => (this._slot = el) }, h("slot", null))));
|
|
21
24
|
}
|
|
22
25
|
static get is() { return "ez-split-item"; }
|
|
23
26
|
static get originalStyleUrls() {
|
|
@@ -86,6 +89,24 @@ export class SplitItem {
|
|
|
86
89
|
},
|
|
87
90
|
"attribute": "size",
|
|
88
91
|
"reflect": false
|
|
92
|
+
},
|
|
93
|
+
"structural": {
|
|
94
|
+
"type": "boolean",
|
|
95
|
+
"mutable": false,
|
|
96
|
+
"complexType": {
|
|
97
|
+
"original": "boolean",
|
|
98
|
+
"resolved": "boolean",
|
|
99
|
+
"references": {}
|
|
100
|
+
},
|
|
101
|
+
"required": false,
|
|
102
|
+
"optional": false,
|
|
103
|
+
"docs": {
|
|
104
|
+
"tags": [],
|
|
105
|
+
"text": "Define se o painel est\u00E1 sendo utilizado como estrutura para apresenta\u00E7\u00E3o de outro item"
|
|
106
|
+
},
|
|
107
|
+
"attribute": "structural",
|
|
108
|
+
"reflect": false,
|
|
109
|
+
"defaultValue": "false"
|
|
89
110
|
}
|
|
90
111
|
};
|
|
91
112
|
}
|