@sankhyalabs/ezui 5.20.2 → 5.21.0-dev.1
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 +4 -5
- package/dist/cjs/{CSSVarsUtils-b136a156.js → CSSVarsUtils-10c9d5b4.js} +13 -0
- package/dist/cjs/ez-actions-button.cjs.entry.js +2 -2
- package/dist/cjs/ez-alert-list.cjs.entry.js +121 -49
- package/dist/cjs/ez-alert.cjs.entry.js +1 -1
- package/dist/cjs/ez-application.cjs.entry.js +1 -1
- package/dist/cjs/ez-badge.cjs.entry.js +1 -1
- package/dist/cjs/ez-breadcrumb.cjs.entry.js +1 -1
- package/dist/cjs/ez-button.cjs.entry.js +1 -1
- package/dist/cjs/ez-calendar.cjs.entry.js +1 -1
- package/dist/cjs/ez-card-item_3.cjs.entry.js +183 -0
- package/dist/cjs/ez-check.cjs.entry.js +2 -2
- package/dist/cjs/ez-chip.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 +20 -163
- package/dist/cjs/ez-date-input.cjs.entry.js +3 -2
- package/dist/cjs/ez-date-time-input.cjs.entry.js +2 -2
- package/dist/cjs/ez-dialog.cjs.entry.js +1 -1
- package/dist/cjs/ez-dropdown.cjs.entry.js +10 -4
- package/dist/cjs/ez-file-item.cjs.entry.js +1 -1
- package/dist/cjs/ez-form-view.cjs.entry.js +35 -16
- package/dist/cjs/ez-form.cjs.entry.js +1 -1
- package/dist/cjs/ez-grid.cjs.entry.js +132 -58
- package/dist/cjs/ez-guide-navigator.cjs.entry.js +1 -1
- package/dist/cjs/ez-icon.cjs.entry.js +2 -2
- package/dist/cjs/ez-list.cjs.entry.js +1 -1
- package/dist/cjs/ez-loading-bar.cjs.entry.js +1 -1
- package/dist/cjs/ez-modal-container.cjs.entry.js +6 -1
- package/dist/cjs/ez-modal.cjs.entry.js +1 -1
- package/dist/cjs/ez-multi-selection-list.cjs.entry.js +1 -1
- package/dist/cjs/ez-number-input.cjs.entry.js +2 -2
- package/dist/cjs/ez-popover.cjs.entry.js +1 -1
- package/dist/cjs/ez-popup.cjs.entry.js +9 -2
- package/dist/cjs/ez-radio-button.cjs.entry.js +1 -1
- package/dist/cjs/ez-scroller_3.cjs.entry.js +19 -5
- package/dist/cjs/ez-search.cjs.entry.js +622 -33
- package/dist/cjs/ez-skeleton.cjs.entry.js +1 -1
- package/dist/cjs/ez-split-button.cjs.entry.js +166 -0
- package/dist/cjs/ez-split-item.cjs.entry.js +21 -3
- package/dist/cjs/ez-split-panel.cjs.entry.js +68 -14
- package/dist/cjs/ez-tabselector.cjs.entry.js +1 -1
- package/dist/cjs/ez-text-area.cjs.entry.js +1 -1
- package/dist/cjs/ez-text-edit.cjs.entry.js +1 -1
- package/dist/cjs/ez-text-input.cjs.entry.js +1 -1
- package/dist/cjs/ez-time-input.cjs.entry.js +2 -2
- package/dist/cjs/ez-toast.cjs.entry.js +1 -1
- package/dist/cjs/ez-upload.cjs.entry.js +1 -1
- package/dist/cjs/ez-view-stack.cjs.entry.js +1 -1
- package/dist/cjs/ezui.cjs.js +2 -2
- package/dist/cjs/filter-column.cjs.entry.js +17 -6
- package/dist/cjs/{index-1064511f.js → index-a7b0c73d.js} +12 -10
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +4 -3
- package/dist/collection/components/ez-alert-list/ez-alert-list.css +16 -2
- package/dist/collection/components/ez-alert-list/ez-alert-list.js +127 -48
- package/dist/collection/components/ez-card-item/ez-card-item.css +52 -3
- package/dist/collection/components/ez-card-item/ez-card-item.js +22 -3
- package/dist/collection/components/ez-check/ez-check.css +1 -0
- package/dist/collection/components/ez-collapsible-box/ez-collapsible-box.css +1 -0
- package/dist/collection/components/ez-combo-box/ez-combo-box.js +19 -179
- package/dist/collection/components/ez-date-input/ez-date-input.js +1 -0
- package/dist/collection/components/ez-dropdown/ez-dropdown.js +32 -3
- package/dist/collection/components/ez-form-view/ez-form-view.css +17 -1
- package/dist/collection/components/ez-form-view/ez-form-view.js +22 -5
- 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 +3 -3
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/FileInput.tpl.js +4 -2
- 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 +1 -1
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/TextInput.tpl.js +1 -1
- package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +8 -11
- package/dist/collection/components/ez-grid/controller/ag-grid/DataSource.js +3 -4
- package/dist/collection/components/ez-grid/controller/ag-grid/DataSourceInterceptor.js +21 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/components/EzGridCustomHeader.js +1 -3
- package/dist/collection/components/ez-grid/ez-grid.css +25 -1
- package/dist/collection/components/ez-grid/ez-grid.js +103 -33
- package/dist/collection/components/ez-grid/subcomponents/filter-column.js +16 -5
- package/dist/collection/components/ez-icon/ez-icon.css +119 -117
- package/dist/collection/components/ez-modal-container/ez-modal-container.js +5 -0
- package/dist/collection/components/ez-popup/ez-popup.css +2 -5
- package/dist/collection/components/ez-popup/ez-popup.js +23 -2
- package/dist/collection/components/ez-search/ez-search.css +331 -0
- package/dist/collection/components/ez-search/ez-search.js +698 -55
- package/dist/collection/components/ez-split-button/ez-split-button.css +229 -0
- package/dist/collection/components/ez-split-button/ez-split-button.js +455 -0
- package/dist/collection/components/ez-split-button/test/dropdownItems.js +42 -0
- package/dist/collection/components/ez-split-panel/ez-split-panel.css +6 -7
- package/dist/collection/components/ez-split-panel/ez-split-panel.js +103 -15
- package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.css +59 -12
- package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.js +82 -2
- package/dist/collection/components/ez-tree/ez-tree.css +26 -0
- package/dist/collection/components/ez-tree/interfaces/ITreeItemBadge.js +1 -0
- package/dist/collection/components/ez-tree/subcomponents/TreeItem.js +15 -2
- package/dist/collection/utils/CSSVarsUtils.js +13 -0
- package/dist/collection/utils/form/test/DataBinder.test.js +9 -0
- package/dist/custom-elements/index.d.ts +6 -0
- package/dist/custom-elements/index.js +1253 -359
- package/dist/esm/{CSSVarsUtils-a97cfa29.js → CSSVarsUtils-71ce76be.js} +13 -0
- package/dist/esm/ez-actions-button.entry.js +2 -2
- package/dist/esm/ez-alert-list.entry.js +121 -49
- package/dist/esm/ez-alert.entry.js +1 -1
- package/dist/esm/ez-application.entry.js +1 -1
- package/dist/esm/ez-badge.entry.js +1 -1
- package/dist/esm/ez-breadcrumb.entry.js +1 -1
- package/dist/esm/ez-button.entry.js +1 -1
- package/dist/esm/ez-calendar.entry.js +1 -1
- package/dist/esm/ez-card-item_3.entry.js +177 -0
- package/dist/esm/ez-check.entry.js +2 -2
- package/dist/esm/ez-chip.entry.js +1 -1
- package/dist/esm/ez-collapsible-box.entry.js +1 -1
- package/dist/esm/ez-combo-box.entry.js +21 -164
- package/dist/esm/ez-date-input.entry.js +3 -2
- package/dist/esm/ez-date-time-input.entry.js +2 -2
- package/dist/esm/ez-dialog.entry.js +1 -1
- package/dist/esm/ez-dropdown.entry.js +10 -4
- package/dist/esm/ez-file-item.entry.js +1 -1
- package/dist/esm/ez-form-view.entry.js +35 -16
- package/dist/esm/ez-form.entry.js +1 -1
- package/dist/esm/ez-grid.entry.js +133 -59
- package/dist/esm/ez-guide-navigator.entry.js +1 -1
- package/dist/esm/ez-icon.entry.js +2 -2
- package/dist/esm/ez-list.entry.js +1 -1
- package/dist/esm/ez-loading-bar.entry.js +1 -1
- package/dist/esm/ez-modal-container.entry.js +6 -1
- package/dist/esm/ez-modal.entry.js +1 -1
- package/dist/esm/ez-multi-selection-list.entry.js +1 -1
- package/dist/esm/ez-number-input.entry.js +2 -2
- package/dist/esm/ez-popover.entry.js +1 -1
- package/dist/esm/ez-popup.entry.js +10 -3
- package/dist/esm/ez-radio-button.entry.js +1 -1
- package/dist/esm/ez-scroller_3.entry.js +19 -5
- package/dist/esm/ez-search.entry.js +623 -34
- package/dist/esm/ez-skeleton.entry.js +1 -1
- package/dist/esm/ez-split-button.entry.js +162 -0
- package/dist/esm/ez-split-item.entry.js +21 -3
- package/dist/esm/ez-split-panel.entry.js +68 -14
- package/dist/esm/ez-tabselector.entry.js +1 -1
- package/dist/esm/ez-text-area.entry.js +1 -1
- package/dist/esm/ez-text-edit.entry.js +1 -1
- package/dist/esm/ez-text-input.entry.js +1 -1
- package/dist/esm/ez-time-input.entry.js +2 -2
- package/dist/esm/ez-toast.entry.js +1 -1
- package/dist/esm/ez-upload.entry.js +1 -1
- package/dist/esm/ez-view-stack.entry.js +1 -1
- package/dist/esm/ezui.js +3 -3
- package/dist/esm/filter-column.entry.js +17 -6
- package/dist/esm/{index-296b8458.js → index-baa5e267.js} +12 -10
- package/dist/esm/loader.js +3 -3
- package/dist/ezui/ezui.esm.js +1 -1
- package/dist/ezui/{p-5cef0264.entry.js → p-0306dff7.entry.js} +1 -1
- package/dist/ezui/{p-871c1a07.entry.js → p-0447d17c.entry.js} +1 -1
- package/dist/ezui/p-072e6347.entry.js +1 -0
- package/dist/ezui/{p-f4208819.entry.js → p-17be134a.entry.js} +1 -1
- package/dist/ezui/{p-cd19a6f8.entry.js → p-1e7a8633.entry.js} +1 -1
- package/dist/ezui/{p-60ba28ea.entry.js → p-1f50fa05.entry.js} +1 -1
- package/dist/ezui/{p-245a44ed.entry.js → p-20ec22c0.entry.js} +1 -1
- package/dist/ezui/{p-e318d280.js → p-23a36bb6.js} +1 -1
- package/dist/ezui/{p-8252d9b5.entry.js → p-2a1a0e04.entry.js} +1 -1
- package/dist/ezui/{p-62903ab9.entry.js → p-384247cd.entry.js} +2 -2
- package/dist/ezui/p-3faa2b46.entry.js +1 -0
- package/dist/ezui/{p-9b347f04.entry.js → p-44caad9a.entry.js} +1 -1
- package/dist/ezui/{p-7319c253.entry.js → p-49456b34.entry.js} +1 -1
- package/dist/ezui/{p-ccb4ccd9.entry.js → p-555c9018.entry.js} +1 -1
- package/dist/ezui/{p-52dd8b4c.entry.js → p-5bd5e68f.entry.js} +1 -1
- package/dist/ezui/{p-62304715.entry.js → p-5e1d036e.entry.js} +1 -1
- package/dist/ezui/{p-7525e604.entry.js → p-5ed81457.entry.js} +1 -1
- package/dist/ezui/p-5ef056ce.entry.js +1 -0
- package/dist/ezui/p-637f69f2.entry.js +1 -0
- package/dist/ezui/{p-c49dbf23.entry.js → p-650e4b6d.entry.js} +1 -1
- package/dist/ezui/{p-f55d75e7.entry.js → p-6e429cff.entry.js} +1 -1
- package/dist/ezui/p-701231f0.entry.js +1 -0
- package/dist/ezui/{p-0b902469.entry.js → p-77a4bd35.entry.js} +1 -1
- package/dist/ezui/{p-81cd05c8.entry.js → p-784fe207.entry.js} +1 -1
- package/dist/ezui/p-7af81663.entry.js +1 -0
- package/dist/ezui/p-7bc07c31.entry.js +1 -0
- package/dist/ezui/{p-5d6f2550.entry.js → p-85c8baae.entry.js} +1 -1
- package/dist/ezui/{p-d3b5228e.entry.js → p-8defa6d3.entry.js} +1 -1
- package/dist/ezui/{p-fbca293f.entry.js → p-8df1ca33.entry.js} +1 -1
- package/dist/ezui/{p-391de0e4.entry.js → p-9050d2cd.entry.js} +1 -1
- package/dist/ezui/p-91f626d3.entry.js +1 -0
- package/dist/ezui/{p-3e7cc8a4.entry.js → p-99ead599.entry.js} +1 -1
- package/dist/ezui/p-9aefaa52.entry.js +1 -0
- package/dist/ezui/{p-7eb3e1a5.js → p-9e11fc7b.js} +1 -1
- package/dist/ezui/{p-b11f035c.entry.js → p-9f5fa3f9.entry.js} +1 -1
- package/dist/ezui/p-a1ec32ef.entry.js +1 -0
- package/dist/ezui/{p-2da09f70.entry.js → p-a80b1287.entry.js} +1 -1
- package/dist/ezui/{p-d20ed286.entry.js → p-af2ecb1b.entry.js} +1 -1
- package/dist/ezui/{p-e8f88361.entry.js → p-af95cd16.entry.js} +1 -1
- package/dist/ezui/{p-32b4163f.entry.js → p-b041333c.entry.js} +1 -1
- package/dist/ezui/{p-12526044.entry.js → p-b567fa8c.entry.js} +1 -1
- package/dist/ezui/p-bae3d0aa.entry.js +1 -0
- package/dist/ezui/p-bae4e180.entry.js +1 -0
- package/dist/ezui/p-baf80b13.entry.js +1 -0
- package/dist/ezui/p-bc2f844e.entry.js +1 -0
- package/dist/ezui/p-bf79aaa1.entry.js +1 -0
- package/dist/ezui/{p-83885b21.entry.js → p-cc2dc4f4.entry.js} +1 -1
- package/dist/ezui/p-db77a984.entry.js +1 -0
- package/dist/ezui/{p-028f264f.entry.js → p-e85c48d7.entry.js} +1 -1
- package/dist/types/components/ez-alert-list/ez-alert-list.d.ts +38 -4
- package/dist/types/components/ez-card-item/ez-card-item.d.ts +4 -0
- package/dist/types/components/ez-combo-box/ez-combo-box.d.ts +1 -15
- package/dist/types/components/ez-dropdown/ez-dropdown.d.ts +5 -0
- package/dist/types/components/ez-form-view/ez-form-view.d.ts +3 -0
- package/dist/types/components/ez-grid/controller/ag-grid/DataSourceInterceptor.d.ts +8 -0
- package/dist/types/components/ez-grid/controller/ag-grid/components/EzGridCustomHeader.d.ts +1 -1
- package/dist/types/components/ez-grid/ez-grid.d.ts +17 -2
- package/dist/types/components/ez-grid/subcomponents/filter-column.d.ts +4 -1
- package/dist/types/components/ez-guide-navigator/interfaces/IGuideItem.d.ts +0 -1
- package/dist/types/components/ez-modal-container/ez-modal-container.d.ts +1 -0
- package/dist/types/components/ez-popup/ez-popup.d.ts +7 -1
- package/dist/types/components/ez-search/ez-search.d.ts +101 -10
- package/dist/types/components/ez-split-button/ez-split-button.d.ts +92 -0
- package/dist/types/components/ez-split-button/test/dropdownItems.d.ts +2 -0
- package/dist/types/components/ez-split-panel/ez-split-panel.d.ts +29 -0
- package/dist/types/components/ez-split-panel/structure/item/ez-split-item.d.ts +27 -0
- package/dist/types/components/ez-tree/interfaces/ITreeItem.d.ts +3 -1
- package/dist/types/components/ez-tree/interfaces/ITreeItemBadge.d.ts +6 -0
- package/dist/types/components/ez-tree/subcomponents/TreeItem.d.ts +0 -1
- package/dist/types/components.d.ts +188 -15
- package/dist/types/utils/CSSVarsUtils.d.ts +1 -0
- package/dist/types/utils/form/test/DataBinder.test.d.ts +1 -0
- package/dist/types/utils/interfaces/AbstractFieldMetadata.d.ts +2 -1
- package/dist/types/utils/interfaces/IAction.d.ts +1 -1
- package/package.json +13 -5
- package/react/components.d.ts +1 -0
- package/react/components.js +1 -0
- package/react/components.js.map +1 -1
- package/dist/cjs/ez-card-item.cjs.entry.js +0 -52
- package/dist/cjs/ez-filter-input_2.cjs.entry.js +0 -137
- package/dist/collection/components/ez-grid/controller/ag-grid/AgGridUtils.js +0 -8
- package/dist/esm/ez-card-item.entry.js +0 -48
- package/dist/esm/ez-filter-input_2.entry.js +0 -132
- package/dist/ezui/p-0843df02.entry.js +0 -1
- package/dist/ezui/p-47afb974.entry.js +0 -1
- package/dist/ezui/p-59bcb27c.entry.js +0 -1
- package/dist/ezui/p-74049254.entry.js +0 -1
- package/dist/ezui/p-76d16a24.entry.js +0 -1
- package/dist/ezui/p-7fd54841.entry.js +0 -1
- package/dist/ezui/p-87e85160.entry.js +0 -1
- package/dist/ezui/p-95426f93.entry.js +0 -1
- package/dist/ezui/p-99692afa.entry.js +0 -1
- package/dist/ezui/p-a01068e1.entry.js +0 -1
- package/dist/ezui/p-a42fe2ce.entry.js +0 -1
- package/dist/ezui/p-af285e68.entry.js +0 -1
- package/dist/ezui/p-b6867f19.entry.js +0 -1
- package/dist/ezui/p-d51aa09b.entry.js +0 -1
- package/dist/ezui/p-d81917fd.entry.js +0 -1
- package/dist/ezui/p-f8653522.entry.js +0 -1
- package/dist/types/components/ez-grid/controller/ag-grid/AgGridUtils.d.ts +0 -1
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
|
|
3
|
+
/* dimensions */
|
|
4
|
+
/*@doc Define a largura mínima do componente.*/
|
|
5
|
+
--ez-split-button--min-width: 24;
|
|
6
|
+
/*@doc Define a largura do componente.*/
|
|
7
|
+
--ez-split-button--width: 'auto';
|
|
8
|
+
/*@doc Define a altura do componente.*/
|
|
9
|
+
--ez-split-button__medium--height: 32px;
|
|
10
|
+
--ez-split-button__large--height: 42px;
|
|
11
|
+
/*@doc Define a largura do slot que contém o ícone.*/
|
|
12
|
+
--ez-split-button__medium-icon--width: 40px;
|
|
13
|
+
--ez-split-button__large-icon--width: 44px;
|
|
14
|
+
/*@doc Define o espaçamento entre o ícone e o label.*/
|
|
15
|
+
--ez-split-button__inline__icon--gap: 6px;
|
|
16
|
+
/*@doc Define o espaçamento superior ao label.*/
|
|
17
|
+
--ez-split-button__label--padding-top: 0px;
|
|
18
|
+
/*@doc Define o espaçamento inferior ao label.*/
|
|
19
|
+
--ez-split-button__label--padding-bottom: 0px;
|
|
20
|
+
/*@doc Define o espaçamento esquerdo ao ícone.*/
|
|
21
|
+
--ez-split-button__right-button--padding-left: 8px;
|
|
22
|
+
/* general */
|
|
23
|
+
/*@doc Define a cor do label.*/
|
|
24
|
+
--ez-split-button--color: var(--title--primary, #FFF);
|
|
25
|
+
/*@doc Define o tamanho do label.*/
|
|
26
|
+
--ez-split-button--font-size: var(--text--medium, 14px);
|
|
27
|
+
/*@doc Define a família da fonte do label.*/
|
|
28
|
+
--ez-split-button--font-family: var(--font-pattern, Arial);
|
|
29
|
+
/*@doc Define o peso da fonte do label.*/
|
|
30
|
+
--ez-split-button--font-weight: var(--text-weight--large);
|
|
31
|
+
/*@doc Define a cor de fundo do botão.*/
|
|
32
|
+
--ez-split-button--background-color: var(--background--medium, #008561);
|
|
33
|
+
/*@doc Define o raio da borda do botão.*/
|
|
34
|
+
--ez-split-button--border-radius: var(--border--radius-large, 12px);
|
|
35
|
+
/*@doc Define o estilo da borda do botão.*/
|
|
36
|
+
--ez-split-button--border: none;
|
|
37
|
+
/*@doc Define o alinhamento horizontal do conteúdo do botão.*/
|
|
38
|
+
--ez-split-button--justify-content: center;
|
|
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);
|
|
41
|
+
/*@doc Define a cor de fundo quando o cursor está sobre o botão.*/
|
|
42
|
+
--ez-split-button--hover--background-color: var(--background--medium, var(--ez-split-button--background-color));
|
|
43
|
+
/*@doc Define a cor do texto quando o botão está desabilitado.*/
|
|
44
|
+
--ez-split-button--disabled-color: var(--text--disable);
|
|
45
|
+
/*@doc Define a cor de fundo quando o botão está desabilitado.*/
|
|
46
|
+
--ez-split-button--disabled--background-color: var(--color--disable-secondary);
|
|
47
|
+
/*@doc Define o estido da borda quando o botão está selecionado.*/
|
|
48
|
+
--ez-split-button--focus--border: var(--border--medium, 2px) var(--color--primary-300);
|
|
49
|
+
/*@doc Define a sombra do botão quando selecionado.*/
|
|
50
|
+
--ez-split-button--focus--box-shadow: none;
|
|
51
|
+
/*@doc Define a cor do texto e do ícone ao ativar o botão.*/
|
|
52
|
+
--ez-split-button--active-color: var(--color--primary-700);
|
|
53
|
+
/*@doc Define a cor do fundo ao ativar o botão.*/
|
|
54
|
+
--ez-split-button--active--background-color: var(--background--strong);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
ez-icon {
|
|
58
|
+
--ez-icon--color: inherit;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
button {
|
|
62
|
+
/*private*/
|
|
63
|
+
position: relative;
|
|
64
|
+
display: flex;
|
|
65
|
+
align-items: center;
|
|
66
|
+
margin: 0;
|
|
67
|
+
cursor: pointer;
|
|
68
|
+
transition: background-color 0.2s linear;
|
|
69
|
+
white-space: nowrap;
|
|
70
|
+
|
|
71
|
+
/*public*/
|
|
72
|
+
min-width: var(--ez-split-button--min-width);
|
|
73
|
+
width: var(--ez-split-button--width);
|
|
74
|
+
height: var(--ez-split-button__medium--height);
|
|
75
|
+
font-family: var(--ez-split-button--font-family);
|
|
76
|
+
font-size: var(--ez-split-button--font-size);
|
|
77
|
+
font-weight: var(--ez-split-button--font-weight);
|
|
78
|
+
padding: var(--ez-split-button__label--padding-top) 0 var(--ez-split-button__label--padding-bottom) 0;
|
|
79
|
+
border-top-left-radius: var(--ez-split-button--border-radius);
|
|
80
|
+
border-bottom-left-radius: var(--ez-split-button--border-radius);
|
|
81
|
+
background-color: var(--ez-split-button--background-color);
|
|
82
|
+
color: var(--ez-split-button--color);
|
|
83
|
+
fill: var(--ez-split-button--color);
|
|
84
|
+
border: var(--ez-split-button--border);
|
|
85
|
+
justify-content: var(--ez-split-button--justify-content);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
label {
|
|
89
|
+
cursor: pointer;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
button:active {
|
|
93
|
+
outline: none;
|
|
94
|
+
box-shadow: none;
|
|
95
|
+
background-color: var(--ez-split-button--active--background-color);
|
|
96
|
+
color: var(--ez-split-button--active-color);
|
|
97
|
+
fill: var(--ez-split-button--active-color);
|
|
98
|
+
--ez-icon--color: var(--ez-split-button--active-color);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.ez-split-button__left-button:focus,
|
|
102
|
+
.ez-split-button__right-button:focus {
|
|
103
|
+
outline: var(--ez-split-button--focus--border);
|
|
104
|
+
box-shadow: var(--ez-split-button--focus--box-shadow);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.ez-split-button__left-button:hover,
|
|
108
|
+
.ez-split-button__right-button:hover {
|
|
109
|
+
outline: none;
|
|
110
|
+
background-color: var(--ez-split-button--hover--background-color);
|
|
111
|
+
color: var(--ez-split-button--hover-color);
|
|
112
|
+
fill: var(--ez-split-button--hover-color);
|
|
113
|
+
--ez-icon--color: var(--ez-split-button--hover-color);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.ez-split-button__left-button:disabled,
|
|
117
|
+
.ez-split-button__left-button:disabled label,
|
|
118
|
+
.ez-split-button__right-button:disabled{
|
|
119
|
+
background-color: var(--ez-split-button--disabled--background-color);
|
|
120
|
+
color: var(--ez-split-button--disabled-color);
|
|
121
|
+
fill: var(--ez-split-button--disabled-color);
|
|
122
|
+
border: none;
|
|
123
|
+
--ez-icon--color: var(--ez-split-button--disabled-color);
|
|
124
|
+
cursor: not-allowed;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
button.large {
|
|
128
|
+
height: var(--ez-split-button__large--height);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
button.medium {
|
|
132
|
+
height: var(--ez-split-button__medium--height);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
/*default*/
|
|
136
|
+
.default label {
|
|
137
|
+
padding: var(--ez-split-button__label--padding-top) 12px var(--ez-split-button__label--padding-bottom) 20px;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
/*icon-left*/
|
|
141
|
+
.icon-left {
|
|
142
|
+
gap: var(--ez-split-button__inline__icon--gap);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.icon-left label {
|
|
146
|
+
padding-right: 12px;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.icon-left ez-icon {
|
|
150
|
+
padding-left: 20px;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
/*icon-only*/
|
|
154
|
+
.icon-only {
|
|
155
|
+
padding-left: 12px;
|
|
156
|
+
padding-right: 12px;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.ez-split-button__right-button {
|
|
160
|
+
border-top-right-radius: var(--ez-split-button--border-radius);
|
|
161
|
+
border-bottom-right-radius: var(--ez-split-button--border-radius);
|
|
162
|
+
border-top-left-radius: 0;
|
|
163
|
+
border-bottom-left-radius:0;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.ez-split-button__right-button--medium {
|
|
167
|
+
min-width: var(--ez-split-button__medium-icon--width);
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.ez-split-button__right-button--large {
|
|
171
|
+
min-width: var(--ez-split-button__large-icon--width);
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.ez-split-button__right-button--divider {
|
|
175
|
+
top: 10%;
|
|
176
|
+
bottom: 10%;
|
|
177
|
+
}
|
|
178
|
+
.ez-split-button__right-button--divider:before {
|
|
179
|
+
content: "";
|
|
180
|
+
position: absolute;
|
|
181
|
+
left: 0;
|
|
182
|
+
border-left: 1px solid rgba(0, 0, 0, 20%);
|
|
183
|
+
border-radius: 2px;
|
|
184
|
+
height: 75%;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.btn-icon--medium {
|
|
188
|
+
min-width: --ez-split-button__medium-icon--width;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
.btn-icon--large {
|
|
192
|
+
min-width: --ez-split-button__large-icon--width;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
.ez-split-button__right-button-container {
|
|
196
|
+
position: absolute;
|
|
197
|
+
left: 0;
|
|
198
|
+
padding-left: var(--ez-split-button__right-button--padding-left);
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
.label-icon {
|
|
202
|
+
display: flex;
|
|
203
|
+
flex-direction: row;
|
|
204
|
+
align-items: center;
|
|
205
|
+
color: var(--ez-split-button--color);
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
.label-icon:active {
|
|
209
|
+
color: var(--ez-split-button--active-color);
|
|
210
|
+
fill: var(--ez-split-button--active-color);
|
|
211
|
+
--ez-icon--color: var(--ez-split-button--active-color);
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
.dropdown {
|
|
215
|
+
display: flex;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
.dropdown-content {
|
|
219
|
+
display: block;
|
|
220
|
+
position: absolute;
|
|
221
|
+
background-color: #f1f1f1;
|
|
222
|
+
min-width: 160px;
|
|
223
|
+
z-index: --ez-elevation--8;
|
|
224
|
+
border-radius: var(--ez-split-button--border-radius);
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
.dropdown-content > ez-dropdown {
|
|
228
|
+
position: relative;
|
|
229
|
+
}
|
|
@@ -0,0 +1,455 @@
|
|
|
1
|
+
import { ElementIDUtils } from '@sankhyalabs/core';
|
|
2
|
+
import { h } from '@stencil/core';
|
|
3
|
+
export class EzSplitButton {
|
|
4
|
+
constructor() {
|
|
5
|
+
this.rightDefaultTitle = 'Mais opções';
|
|
6
|
+
this.show = false;
|
|
7
|
+
this.enabled = true;
|
|
8
|
+
this.iconName = undefined;
|
|
9
|
+
this.image = undefined;
|
|
10
|
+
this.items = undefined;
|
|
11
|
+
this.label = undefined;
|
|
12
|
+
this.leftTitle = undefined;
|
|
13
|
+
this.rightTitle = 'Mais opções';
|
|
14
|
+
this.mode = 'default';
|
|
15
|
+
this.size = 'medium';
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Remove o foco de ambos os botões.
|
|
19
|
+
*/
|
|
20
|
+
async setBlur() {
|
|
21
|
+
this.leftButton.blur();
|
|
22
|
+
this.rightButton.blur();
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Aplica o foco no botão principal.
|
|
26
|
+
*/
|
|
27
|
+
async setLeftButtonFocus() {
|
|
28
|
+
this.leftButton.focus();
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Aplica o foco no botão do dropdown.
|
|
32
|
+
*/
|
|
33
|
+
async setRightButtonFocus() {
|
|
34
|
+
this.rightButton.focus();
|
|
35
|
+
}
|
|
36
|
+
clickListener(evt) {
|
|
37
|
+
if (!this.enabled) {
|
|
38
|
+
evt.preventDefault();
|
|
39
|
+
evt.stopPropagation();
|
|
40
|
+
evt.stopImmediatePropagation();
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
getIconSize(sizeParam = 'medium') {
|
|
44
|
+
var _a;
|
|
45
|
+
const sizeList = ['medium', 'large'];
|
|
46
|
+
const sizeLowerCase = (_a = this.size) === null || _a === void 0 ? void 0 : _a.toLowerCase();
|
|
47
|
+
return sizeList.includes(sizeLowerCase) ? sizeLowerCase : sizeParam;
|
|
48
|
+
}
|
|
49
|
+
closeDropdown() {
|
|
50
|
+
this.show = false;
|
|
51
|
+
}
|
|
52
|
+
toggleDropdown() {
|
|
53
|
+
this.show = !this.show;
|
|
54
|
+
}
|
|
55
|
+
handleButtonClick() {
|
|
56
|
+
this.buttonClick.emit();
|
|
57
|
+
}
|
|
58
|
+
handleDropdownItemClick(evt) {
|
|
59
|
+
this.dropdownItemClick.emit(evt.detail);
|
|
60
|
+
evt.stopPropagation();
|
|
61
|
+
this.closeDropdown();
|
|
62
|
+
}
|
|
63
|
+
handleDropdownSubActionClick(evt) {
|
|
64
|
+
this.dropdownSubActionClick.emit(evt.detail);
|
|
65
|
+
evt.stopPropagation();
|
|
66
|
+
this.closeDropdown();
|
|
67
|
+
}
|
|
68
|
+
resolveOffsetParentRect() {
|
|
69
|
+
var _a, _b;
|
|
70
|
+
const offsetParentRect = (_b = (_a = this.dropdownParent) === null || _a === void 0 ? void 0 : _a.offsetParent) === null || _b === void 0 ? void 0 : _b.getBoundingClientRect();
|
|
71
|
+
const scrollLeft = window.scrollX || document.documentElement.scrollLeft;
|
|
72
|
+
const scrollTop = window.scrollY || document.documentElement.scrollTop;
|
|
73
|
+
const rectWithoutScroll = {
|
|
74
|
+
top: (offsetParentRect === null || offsetParentRect === void 0 ? void 0 : offsetParentRect.top) + scrollTop,
|
|
75
|
+
left: (offsetParentRect === null || offsetParentRect === void 0 ? void 0 : offsetParentRect.left) + scrollLeft,
|
|
76
|
+
bottom: (offsetParentRect === null || offsetParentRect === void 0 ? void 0 : offsetParentRect.bottom) + scrollTop,
|
|
77
|
+
right: (offsetParentRect === null || offsetParentRect === void 0 ? void 0 : offsetParentRect.right) + scrollLeft,
|
|
78
|
+
width: offsetParentRect === null || offsetParentRect === void 0 ? void 0 : offsetParentRect.width,
|
|
79
|
+
height: offsetParentRect === null || offsetParentRect === void 0 ? void 0 : offsetParentRect.height
|
|
80
|
+
};
|
|
81
|
+
this.offsetParentRect = rectWithoutScroll;
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Método responsável em posicionar o dropdown na tela.
|
|
85
|
+
* Faz com que o dropdown se ajuste automaticamente ao espaco na tela
|
|
86
|
+
*/
|
|
87
|
+
positionDropdown() {
|
|
88
|
+
var _a, _b, _c, _d, _e, _f;
|
|
89
|
+
const { rightButton: _rightButton, dropdownParent: _dropdownParent } = this;
|
|
90
|
+
const rightButtonRect = _rightButton.getBoundingClientRect();
|
|
91
|
+
const dropdownParentRect = _dropdownParent.getBoundingClientRect();
|
|
92
|
+
const spaceBelow = window.innerHeight - (rightButtonRect.bottom + ((_a = this.offsetParentRect) === null || _a === void 0 ? void 0 : _a.top));
|
|
93
|
+
const spaceAbove = rightButtonRect.top + ((_b = this.offsetParentRect) === null || _b === void 0 ? void 0 : _b.top);
|
|
94
|
+
const spaceRight = window.innerWidth - (rightButtonRect.left + ((_c = this.offsetParentRect) === null || _c === void 0 ? void 0 : _c.left));
|
|
95
|
+
const spaceLeft = rightButtonRect.left;
|
|
96
|
+
const hasSpaceBelow = spaceBelow < dropdownParentRect.height && spaceAbove > dropdownParentRect.height;
|
|
97
|
+
const hasSpaceRight = spaceRight < dropdownParentRect.width && spaceLeft > dropdownParentRect.width;
|
|
98
|
+
let top = `${rightButtonRect.bottom - ((_d = this.offsetParentRect) === null || _d === void 0 ? void 0 : _d.top) + window.scrollY}px`;
|
|
99
|
+
let left = `${rightButtonRect.left - ((_e = this.offsetParentRect) === null || _e === void 0 ? void 0 : _e.left) + window.scrollX}px`;
|
|
100
|
+
let bottom = 'auto';
|
|
101
|
+
if (hasSpaceBelow) {
|
|
102
|
+
bottom = `${window.innerHeight - rightButtonRect.top - window.scrollY}px`;
|
|
103
|
+
top = 'auto';
|
|
104
|
+
_dropdownParent.style.maxHeight = `${spaceAbove}px`;
|
|
105
|
+
}
|
|
106
|
+
if (hasSpaceRight) {
|
|
107
|
+
left = `${rightButtonRect.right - dropdownParentRect.width - ((_f = this.offsetParentRect) === null || _f === void 0 ? void 0 : _f.left) + window.scrollX}px`;
|
|
108
|
+
}
|
|
109
|
+
_dropdownParent.style.top = top;
|
|
110
|
+
_dropdownParent.style.bottom = bottom;
|
|
111
|
+
_dropdownParent.style.left = left;
|
|
112
|
+
}
|
|
113
|
+
setEvents() {
|
|
114
|
+
window.removeEventListener('scroll', this.positionDropdown.bind(this));
|
|
115
|
+
window.addEventListener('scroll', this.positionDropdown.bind(this));
|
|
116
|
+
}
|
|
117
|
+
componentWillLoad() {
|
|
118
|
+
this.setEvents();
|
|
119
|
+
}
|
|
120
|
+
componentWillRender() {
|
|
121
|
+
this.resolveOffsetParentRect();
|
|
122
|
+
}
|
|
123
|
+
componentDidLoad() {
|
|
124
|
+
if (this._element)
|
|
125
|
+
ElementIDUtils.addIDInfo(this._element);
|
|
126
|
+
if (this.leftButton) {
|
|
127
|
+
const dataInfo = { id: 'embedded' };
|
|
128
|
+
ElementIDUtils.addIDInfo(this.leftButton, 'left-button', dataInfo);
|
|
129
|
+
}
|
|
130
|
+
if (this.rightButton) {
|
|
131
|
+
const dataInfo = { id: 'embedded' };
|
|
132
|
+
ElementIDUtils.addIDInfo(this.rightButton, 'right-button', dataInfo);
|
|
133
|
+
}
|
|
134
|
+
this.positionDropdown();
|
|
135
|
+
}
|
|
136
|
+
componentDidUpdate() {
|
|
137
|
+
this.positionDropdown();
|
|
138
|
+
}
|
|
139
|
+
render() {
|
|
140
|
+
const hasIconButton = this.shouldShowIconOnLeftButton();
|
|
141
|
+
const hasLabelButton = this.shouldShowLabelOnLeftButton();
|
|
142
|
+
const iconSize = this.getIconSize();
|
|
143
|
+
return (h("div", { class: "label-icon" }, h("button", { class: `ez-split-button__left-button ${iconSize} ${this.mode}`, title: this.leftTitle || this.label, type: "button", disabled: !this.enabled, onClick: () => { this.handleButtonClick(); }, ref: el => (this.leftButton = el) }, hasIconButton && h("ez-icon", { href: this.image, iconName: this.iconName, size: iconSize }), hasLabelButton && h("label", { title: this.leftTitle || this.label }, this.label)), h("div", { class: "dropdown" }, h("button", { class: `ez-split-button__right-button ${iconSize} ez-split-button__right-button--${iconSize} ez-split-button__right-button--divider`, title: this.rightTitle || this.rightDefaultTitle, type: "button", disabled: !this.enabled, onClick: () => { this.toggleDropdown(); }, ref: el => (this.rightButton = el) }, h("ez-icon", { class: `ez-split-button__right-button-container ` + (iconSize ? `btn-icon--${iconSize}` : ''), iconName: 'chevron-down', size: iconSize })), h("div", { class: `dropdown-content dropdown-content--${this.size}`, ref: (ref) => (this.dropdownParent = ref) }, this.show && (h("ez-dropdown", { items: this.items, onClick: evt => { evt.stopPropagation(); }, onEzOutsideClick: () => { this.closeDropdown(); }, onEzClick: evt => { this.handleDropdownItemClick(evt); }, onEzSubActionClick: evt => { this.handleDropdownSubActionClick(evt); } }))))));
|
|
144
|
+
}
|
|
145
|
+
shouldShowLabelOnLeftButton() {
|
|
146
|
+
return ['icon-left', 'default'].includes(this.mode);
|
|
147
|
+
}
|
|
148
|
+
shouldShowIconOnLeftButton() {
|
|
149
|
+
return ['icon-left', 'icon-only'].includes(this.mode);
|
|
150
|
+
}
|
|
151
|
+
static get is() { return "ez-split-button"; }
|
|
152
|
+
static get encapsulation() { return "shadow"; }
|
|
153
|
+
static get originalStyleUrls() {
|
|
154
|
+
return {
|
|
155
|
+
"$": ["ez-split-button.css"]
|
|
156
|
+
};
|
|
157
|
+
}
|
|
158
|
+
static get styleUrls() {
|
|
159
|
+
return {
|
|
160
|
+
"$": ["ez-split-button.css"]
|
|
161
|
+
};
|
|
162
|
+
}
|
|
163
|
+
static get properties() {
|
|
164
|
+
return {
|
|
165
|
+
"enabled": {
|
|
166
|
+
"type": "boolean",
|
|
167
|
+
"mutable": false,
|
|
168
|
+
"complexType": {
|
|
169
|
+
"original": "boolean",
|
|
170
|
+
"resolved": "boolean",
|
|
171
|
+
"references": {}
|
|
172
|
+
},
|
|
173
|
+
"required": false,
|
|
174
|
+
"optional": false,
|
|
175
|
+
"docs": {
|
|
176
|
+
"tags": [],
|
|
177
|
+
"text": "Se false o usu\u00E1rio n\u00E3o pode interagir com o bot\u00E3o."
|
|
178
|
+
},
|
|
179
|
+
"attribute": "enabled",
|
|
180
|
+
"reflect": true,
|
|
181
|
+
"defaultValue": "true"
|
|
182
|
+
},
|
|
183
|
+
"iconName": {
|
|
184
|
+
"type": "string",
|
|
185
|
+
"mutable": false,
|
|
186
|
+
"complexType": {
|
|
187
|
+
"original": "string",
|
|
188
|
+
"resolved": "string",
|
|
189
|
+
"references": {}
|
|
190
|
+
},
|
|
191
|
+
"required": false,
|
|
192
|
+
"optional": false,
|
|
193
|
+
"docs": {
|
|
194
|
+
"tags": [],
|
|
195
|
+
"text": "Define o \u00EDcone a ser usado da biblioteca de \u00EDcones: [ez-icons](https://gilded-nasturtium-6b64dd.netlify.app/docs/components/layout-doc/icons/)"
|
|
196
|
+
},
|
|
197
|
+
"attribute": "icon-name",
|
|
198
|
+
"reflect": true
|
|
199
|
+
},
|
|
200
|
+
"image": {
|
|
201
|
+
"type": "string",
|
|
202
|
+
"mutable": false,
|
|
203
|
+
"complexType": {
|
|
204
|
+
"original": "string",
|
|
205
|
+
"resolved": "string",
|
|
206
|
+
"references": {}
|
|
207
|
+
},
|
|
208
|
+
"required": false,
|
|
209
|
+
"optional": false,
|
|
210
|
+
"docs": {
|
|
211
|
+
"tags": [],
|
|
212
|
+
"text": "Define o caminho usado nos modos `icon-only` e `icon-left` para imagens n\u00E3o contempladas na biblioteca de \u00EDcones."
|
|
213
|
+
},
|
|
214
|
+
"attribute": "image",
|
|
215
|
+
"reflect": true
|
|
216
|
+
},
|
|
217
|
+
"items": {
|
|
218
|
+
"type": "unknown",
|
|
219
|
+
"mutable": false,
|
|
220
|
+
"complexType": {
|
|
221
|
+
"original": "Array<IDropdownItem>",
|
|
222
|
+
"resolved": "IDropdownItem[]",
|
|
223
|
+
"references": {
|
|
224
|
+
"Array": {
|
|
225
|
+
"location": "global"
|
|
226
|
+
},
|
|
227
|
+
"IDropdownItem": {
|
|
228
|
+
"location": "import",
|
|
229
|
+
"path": "../ez-dropdown/structure/DropdownItem"
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
},
|
|
233
|
+
"required": false,
|
|
234
|
+
"optional": false,
|
|
235
|
+
"docs": {
|
|
236
|
+
"tags": [],
|
|
237
|
+
"text": "Define o conte\u00FAdo do dropdown."
|
|
238
|
+
}
|
|
239
|
+
},
|
|
240
|
+
"label": {
|
|
241
|
+
"type": "string",
|
|
242
|
+
"mutable": false,
|
|
243
|
+
"complexType": {
|
|
244
|
+
"original": "string",
|
|
245
|
+
"resolved": "string",
|
|
246
|
+
"references": {}
|
|
247
|
+
},
|
|
248
|
+
"required": false,
|
|
249
|
+
"optional": false,
|
|
250
|
+
"docs": {
|
|
251
|
+
"tags": [],
|
|
252
|
+
"text": "Texto a ser apresentado como label do bot\u00E3o."
|
|
253
|
+
},
|
|
254
|
+
"attribute": "label",
|
|
255
|
+
"reflect": true
|
|
256
|
+
},
|
|
257
|
+
"leftTitle": {
|
|
258
|
+
"type": "string",
|
|
259
|
+
"mutable": false,
|
|
260
|
+
"complexType": {
|
|
261
|
+
"original": "string",
|
|
262
|
+
"resolved": "string",
|
|
263
|
+
"references": {}
|
|
264
|
+
},
|
|
265
|
+
"required": false,
|
|
266
|
+
"optional": false,
|
|
267
|
+
"docs": {
|
|
268
|
+
"tags": [],
|
|
269
|
+
"text": "Texto a ser apresentado como title do bot\u00E3o principal"
|
|
270
|
+
},
|
|
271
|
+
"attribute": "left-title",
|
|
272
|
+
"reflect": true
|
|
273
|
+
},
|
|
274
|
+
"rightTitle": {
|
|
275
|
+
"type": "string",
|
|
276
|
+
"mutable": false,
|
|
277
|
+
"complexType": {
|
|
278
|
+
"original": "string",
|
|
279
|
+
"resolved": "string",
|
|
280
|
+
"references": {}
|
|
281
|
+
},
|
|
282
|
+
"required": false,
|
|
283
|
+
"optional": false,
|
|
284
|
+
"docs": {
|
|
285
|
+
"tags": [],
|
|
286
|
+
"text": "Texto a ser apresentado como title do bot\u00E3o dropdown"
|
|
287
|
+
},
|
|
288
|
+
"attribute": "right-title",
|
|
289
|
+
"reflect": true,
|
|
290
|
+
"defaultValue": "'Mais op\u00E7\u00F5es'"
|
|
291
|
+
},
|
|
292
|
+
"mode": {
|
|
293
|
+
"type": "string",
|
|
294
|
+
"mutable": false,
|
|
295
|
+
"complexType": {
|
|
296
|
+
"original": "'default' | 'icon-only' | 'icon-left'",
|
|
297
|
+
"resolved": "\"default\" | \"icon-left\" | \"icon-only\"",
|
|
298
|
+
"references": {}
|
|
299
|
+
},
|
|
300
|
+
"required": false,
|
|
301
|
+
"optional": false,
|
|
302
|
+
"docs": {
|
|
303
|
+
"tags": [],
|
|
304
|
+
"text": "Define o modo de uso do bot\u00E3o."
|
|
305
|
+
},
|
|
306
|
+
"attribute": "mode",
|
|
307
|
+
"reflect": true,
|
|
308
|
+
"defaultValue": "'default'"
|
|
309
|
+
},
|
|
310
|
+
"size": {
|
|
311
|
+
"type": "string",
|
|
312
|
+
"mutable": false,
|
|
313
|
+
"complexType": {
|
|
314
|
+
"original": "'medium' | 'large'",
|
|
315
|
+
"resolved": "\"large\" | \"medium\"",
|
|
316
|
+
"references": {}
|
|
317
|
+
},
|
|
318
|
+
"required": false,
|
|
319
|
+
"optional": false,
|
|
320
|
+
"docs": {
|
|
321
|
+
"tags": [],
|
|
322
|
+
"text": "Define o tamanho do ez-split-button."
|
|
323
|
+
},
|
|
324
|
+
"attribute": "size",
|
|
325
|
+
"reflect": true,
|
|
326
|
+
"defaultValue": "'medium'"
|
|
327
|
+
}
|
|
328
|
+
};
|
|
329
|
+
}
|
|
330
|
+
static get states() {
|
|
331
|
+
return {
|
|
332
|
+
"show": {}
|
|
333
|
+
};
|
|
334
|
+
}
|
|
335
|
+
static get events() {
|
|
336
|
+
return [{
|
|
337
|
+
"method": "buttonClick",
|
|
338
|
+
"name": "buttonClick",
|
|
339
|
+
"bubbles": true,
|
|
340
|
+
"cancelable": true,
|
|
341
|
+
"composed": true,
|
|
342
|
+
"docs": {
|
|
343
|
+
"tags": [],
|
|
344
|
+
"text": "Emitido quando o bot\u00E3o principal \u00E9 clicado"
|
|
345
|
+
},
|
|
346
|
+
"complexType": {
|
|
347
|
+
"original": "void",
|
|
348
|
+
"resolved": "void",
|
|
349
|
+
"references": {}
|
|
350
|
+
}
|
|
351
|
+
}, {
|
|
352
|
+
"method": "dropdownItemClick",
|
|
353
|
+
"name": "dropdownItemClick",
|
|
354
|
+
"bubbles": true,
|
|
355
|
+
"cancelable": true,
|
|
356
|
+
"composed": true,
|
|
357
|
+
"docs": {
|
|
358
|
+
"tags": [],
|
|
359
|
+
"text": "Emitido quando um item do dropdown \u00E9 clicado"
|
|
360
|
+
},
|
|
361
|
+
"complexType": {
|
|
362
|
+
"original": "IDropdownItem",
|
|
363
|
+
"resolved": "IDropdownItem",
|
|
364
|
+
"references": {
|
|
365
|
+
"IDropdownItem": {
|
|
366
|
+
"location": "import",
|
|
367
|
+
"path": "../ez-dropdown/structure/DropdownItem"
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
}, {
|
|
372
|
+
"method": "dropdownSubActionClick",
|
|
373
|
+
"name": "dropdownSubActionClick",
|
|
374
|
+
"bubbles": true,
|
|
375
|
+
"cancelable": true,
|
|
376
|
+
"composed": true,
|
|
377
|
+
"docs": {
|
|
378
|
+
"tags": [],
|
|
379
|
+
"text": "Emitido quando uma subAction de um item do dropdown \u00E9 clicada"
|
|
380
|
+
},
|
|
381
|
+
"complexType": {
|
|
382
|
+
"original": "IDropdownSubAction",
|
|
383
|
+
"resolved": "IDropdownSubAction",
|
|
384
|
+
"references": {
|
|
385
|
+
"IDropdownSubAction": {
|
|
386
|
+
"location": "import",
|
|
387
|
+
"path": "../ez-dropdown/structure/DropdownItem"
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
}];
|
|
392
|
+
}
|
|
393
|
+
static get methods() {
|
|
394
|
+
return {
|
|
395
|
+
"setBlur": {
|
|
396
|
+
"complexType": {
|
|
397
|
+
"signature": "() => Promise<void>",
|
|
398
|
+
"parameters": [],
|
|
399
|
+
"references": {
|
|
400
|
+
"Promise": {
|
|
401
|
+
"location": "global"
|
|
402
|
+
}
|
|
403
|
+
},
|
|
404
|
+
"return": "Promise<void>"
|
|
405
|
+
},
|
|
406
|
+
"docs": {
|
|
407
|
+
"text": "Remove o foco de ambos os bot\u00F5es.",
|
|
408
|
+
"tags": []
|
|
409
|
+
}
|
|
410
|
+
},
|
|
411
|
+
"setLeftButtonFocus": {
|
|
412
|
+
"complexType": {
|
|
413
|
+
"signature": "() => Promise<void>",
|
|
414
|
+
"parameters": [],
|
|
415
|
+
"references": {
|
|
416
|
+
"Promise": {
|
|
417
|
+
"location": "global"
|
|
418
|
+
}
|
|
419
|
+
},
|
|
420
|
+
"return": "Promise<void>"
|
|
421
|
+
},
|
|
422
|
+
"docs": {
|
|
423
|
+
"text": "Aplica o foco no bot\u00E3o principal.",
|
|
424
|
+
"tags": []
|
|
425
|
+
}
|
|
426
|
+
},
|
|
427
|
+
"setRightButtonFocus": {
|
|
428
|
+
"complexType": {
|
|
429
|
+
"signature": "() => Promise<void>",
|
|
430
|
+
"parameters": [],
|
|
431
|
+
"references": {
|
|
432
|
+
"Promise": {
|
|
433
|
+
"location": "global"
|
|
434
|
+
}
|
|
435
|
+
},
|
|
436
|
+
"return": "Promise<void>"
|
|
437
|
+
},
|
|
438
|
+
"docs": {
|
|
439
|
+
"text": "Aplica o foco no bot\u00E3o do dropdown.",
|
|
440
|
+
"tags": []
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
};
|
|
444
|
+
}
|
|
445
|
+
static get elementRef() { return "_element"; }
|
|
446
|
+
static get listeners() {
|
|
447
|
+
return [{
|
|
448
|
+
"name": "click",
|
|
449
|
+
"method": "clickListener",
|
|
450
|
+
"target": undefined,
|
|
451
|
+
"capture": true,
|
|
452
|
+
"passive": false
|
|
453
|
+
}];
|
|
454
|
+
}
|
|
455
|
+
}
|