@sankhyalabs/ezui 0.0.0-bugfix-dev-KB-6165.0 → 0.0.0-bugfix-dev-KB-17130.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 +8 -10
- package/dist/cjs/{ApplicationUtils-2e444734.js → ApplicationUtils-c9d1205c.js} +56 -6
- package/dist/cjs/{RecordValidationProcessor-edd23705.js → RecordValidationProcessor-4c893e04.js} +1 -1
- package/dist/cjs/{constants-3a1d64fb.js → constants-2714478b.js} +2 -0
- package/dist/cjs/ez-actions-button.cjs.entry.js +56 -28
- package/dist/cjs/ez-alert-list.cjs.entry.js +148 -0
- 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 +182 -0
- package/dist/cjs/ez-check.cjs.entry.js +1 -1
- package/dist/cjs/ez-chip.cjs.entry.js +1 -1
- package/dist/cjs/ez-collapsible-box.cjs.entry.js +3 -4
- package/dist/cjs/ez-combo-box.cjs.entry.js +17 -152
- package/dist/cjs/ez-date-input.cjs.entry.js +1 -1
- package/dist/cjs/ez-date-time-input.cjs.entry.js +1 -1
- package/dist/cjs/ez-dialog.cjs.entry.js +31 -5
- package/dist/cjs/ez-dropdown.cjs.entry.js +12 -6
- package/dist/cjs/ez-file-item.cjs.entry.js +1 -1
- package/dist/cjs/ez-form-view.cjs.entry.js +44 -3
- package/dist/cjs/ez-form.cjs.entry.js +36 -4
- package/dist/cjs/ez-grid.cjs.entry.js +246 -64
- package/dist/cjs/ez-guide-navigator.cjs.entry.js +7 -1
- package/dist/cjs/ez-icon.cjs.entry.js +2 -2
- package/dist/cjs/ez-list.cjs.entry.js +5 -3
- package/dist/cjs/ez-loading-bar.cjs.entry.js +1 -1
- package/dist/cjs/ez-modal-container.cjs.entry.js +1 -1
- package/dist/cjs/ez-modal.cjs.entry.js +2 -2
- package/dist/cjs/ez-multi-selection-list.cjs.entry.js +23 -10
- package/dist/cjs/ez-number-input.cjs.entry.js +1 -1
- package/dist/cjs/ez-popover.cjs.entry.js +1 -1
- package/dist/cjs/ez-popup.cjs.entry.js +2 -2
- package/dist/cjs/ez-radio-button.cjs.entry.js +1 -1
- package/dist/cjs/ez-scroller_3.cjs.entry.js +8 -6
- package/dist/cjs/ez-search.cjs.entry.js +615 -32
- package/dist/cjs/ez-skeleton.cjs.entry.js +1 -1
- package/dist/cjs/ez-split-item.cjs.entry.js +19 -0
- package/dist/cjs/ez-split-panel.cjs.entry.js +776 -0
- 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 +2 -2
- package/dist/cjs/ez-text-input.cjs.entry.js +3 -2
- package/dist/cjs/ez-time-input.cjs.entry.js +1 -1
- package/dist/cjs/ez-toast.cjs.entry.js +1 -1
- package/dist/cjs/ez-upload.cjs.entry.js +2 -2
- 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 +47 -12
- package/dist/cjs/{index-1064511f.js → index-a7b0c73d.js} +16 -6
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +6 -3
- package/dist/collection/components/ez-actions-button/ez-actions-button.css +17 -3
- package/dist/collection/components/ez-actions-button/ez-actions-button.js +105 -27
- package/dist/collection/components/ez-alert-list/ez-alert-list.css +87 -0
- package/dist/collection/components/ez-alert-list/ez-alert-list.js +268 -0
- package/dist/collection/components/ez-card-item/ez-card-item.css +17 -0
- package/dist/collection/components/ez-collapsible-box/ez-collapsible-box.css +1 -1
- package/dist/collection/components/ez-collapsible-box/ez-collapsible-box.js +0 -1
- package/dist/collection/components/ez-combo-box/ez-combo-box.js +71 -169
- package/dist/collection/components/ez-dialog/ez-dialog.css +1 -1
- package/dist/collection/components/ez-dialog/ez-dialog.js +39 -4
- package/dist/collection/components/ez-dropdown/ez-dropdown.css +4 -3
- package/dist/collection/components/ez-dropdown/ez-dropdown.js +33 -4
- package/dist/collection/components/ez-form/ez-form.js +93 -0
- package/dist/collection/components/ez-form-view/ez-form-view.js +23 -0
- package/dist/collection/components/ez-form-view/fieldbuilder/FieldBuilder.js +4 -1
- package/dist/collection/components/ez-form-view/structure/index.js +34 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +21 -9
- package/dist/collection/components/ez-grid/controller/ag-grid/DataSource.js +23 -1
- package/dist/collection/components/ez-grid/controller/ag-grid/components/EzGridCustomHeader.js +1 -1
- package/dist/collection/components/ez-grid/controller/ag-grid/components/cellRendererStatus.js +1 -1
- package/dist/collection/components/ez-grid/ez-grid.css +1 -4
- package/dist/collection/components/ez-grid/ez-grid.js +91 -51
- package/dist/collection/components/ez-grid/interfaces/IColumnFilter.js +1 -0
- package/dist/collection/components/ez-grid/interfaces/index.js +1 -0
- package/dist/collection/components/ez-grid/subcomponents/filter-column.js +66 -12
- package/dist/collection/components/ez-grid/utils/ColumnFilterManager.js +62 -0
- package/dist/collection/components/ez-grid/utils/InMemoryFilterColumnDataSource.js +94 -0
- package/dist/collection/components/ez-grid/utils/index.js +1 -0
- package/dist/collection/components/ez-guide-navigator/ez-guide-navigator.js +22 -0
- package/dist/collection/components/ez-icon/ez-icon.css +148 -139
- package/dist/collection/components/ez-list/ez-list.css +12 -7
- package/dist/collection/components/ez-list/ez-list.js +3 -1
- package/dist/collection/components/ez-modal/ez-modal.css +1 -1
- package/dist/collection/components/ez-multi-selection-list/ez-multi-selection-list.js +41 -10
- package/dist/collection/components/ez-popup/ez-popup.css +2 -2
- package/dist/collection/components/ez-search/ez-search.css +330 -0
- package/dist/collection/components/ez-search/ez-search.js +746 -55
- package/dist/collection/components/ez-split-panel/ez-split-panel.css +8 -0
- package/dist/collection/components/ez-split-panel/ez-split-panel.js +122 -0
- package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.css +12 -0
- package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.js +17 -0
- package/dist/collection/components/ez-text-input/ez-text-input.js +20 -1
- package/dist/collection/components/ez-tree/ez-tree.css +33 -0
- package/dist/collection/components/ez-tree/subcomponents/TreeItem.js +3 -3
- package/dist/collection/utils/ApplicationUtils.js +56 -6
- package/dist/collection/utils/constants.js +1 -0
- package/dist/collection/utils/form/DataBinder.js +12 -1
- package/dist/collection/utils/interfaces/IAction.js +1 -0
- package/dist/custom-elements/index.d.ts +18 -0
- package/dist/custom-elements/index.js +2138 -339
- package/dist/esm/{ApplicationUtils-d9a34a16.js → ApplicationUtils-eaf91331.js} +56 -6
- package/dist/esm/{RecordValidationProcessor-abc814af.js → RecordValidationProcessor-b00b8b77.js} +1 -1
- package/dist/esm/constants-4e0d35b7.js +5 -0
- package/dist/esm/ez-actions-button.entry.js +56 -28
- package/dist/esm/ez-alert-list.entry.js +144 -0
- 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 +176 -0
- package/dist/esm/ez-check.entry.js +1 -1
- package/dist/esm/ez-chip.entry.js +1 -1
- package/dist/esm/ez-collapsible-box.entry.js +3 -4
- package/dist/esm/ez-combo-box.entry.js +18 -153
- package/dist/esm/ez-date-input.entry.js +1 -1
- package/dist/esm/ez-date-time-input.entry.js +1 -1
- package/dist/esm/ez-dialog.entry.js +31 -5
- package/dist/esm/ez-dropdown.entry.js +12 -6
- package/dist/esm/ez-file-item.entry.js +1 -1
- package/dist/esm/ez-form-view.entry.js +44 -3
- package/dist/esm/ez-form.entry.js +36 -4
- package/dist/esm/ez-grid.entry.js +247 -65
- package/dist/esm/ez-guide-navigator.entry.js +7 -1
- package/dist/esm/ez-icon.entry.js +2 -2
- package/dist/esm/ez-list.entry.js +5 -3
- package/dist/esm/ez-loading-bar.entry.js +1 -1
- package/dist/esm/ez-modal-container.entry.js +1 -1
- package/dist/esm/ez-modal.entry.js +2 -2
- package/dist/esm/ez-multi-selection-list.entry.js +23 -10
- package/dist/esm/ez-number-input.entry.js +1 -1
- package/dist/esm/ez-popover.entry.js +1 -1
- package/dist/esm/ez-popup.entry.js +2 -2
- package/dist/esm/ez-radio-button.entry.js +1 -1
- package/dist/esm/ez-scroller_3.entry.js +8 -6
- package/dist/esm/ez-search.entry.js +616 -33
- package/dist/esm/ez-skeleton.entry.js +1 -1
- package/dist/esm/ez-split-item.entry.js +15 -0
- package/dist/esm/ez-split-panel.entry.js +772 -0
- 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 +2 -2
- package/dist/esm/ez-text-input.entry.js +3 -2
- package/dist/esm/ez-time-input.entry.js +1 -1
- package/dist/esm/ez-toast.entry.js +1 -1
- package/dist/esm/ez-upload.entry.js +2 -2
- package/dist/esm/ez-view-stack.entry.js +1 -1
- package/dist/esm/ezui.js +3 -3
- package/dist/esm/filter-column.entry.js +47 -12
- package/dist/esm/{index-296b8458.js → index-baa5e267.js} +16 -6
- 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-0447d17c.entry.js +1 -0
- package/dist/ezui/{p-86a2036d.js → p-04f24913.js} +1 -1
- package/dist/ezui/p-05e1f4e7.js +1 -0
- package/dist/ezui/p-072e6347.entry.js +1 -0
- package/dist/ezui/p-133fae4a.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-a5e09759.entry.js → p-20ec22c0.entry.js} +1 -1
- package/dist/ezui/p-2187f86c.js +1 -0
- package/dist/ezui/{p-e318d280.js → p-23a36bb6.js} +1 -1
- package/dist/ezui/{p-ce035beb.entry.js → p-24d3fede.entry.js} +1 -1
- package/dist/ezui/p-2a1a0e04.entry.js +1 -0
- package/dist/ezui/p-40f72de4.entry.js +1 -0
- package/dist/ezui/p-43b03119.entry.js +1 -0
- package/dist/ezui/{p-9b347f04.entry.js → p-44caad9a.entry.js} +1 -1
- package/dist/ezui/p-49456b34.entry.js +1 -0
- package/dist/ezui/p-4a7f113d.entry.js +1 -0
- package/dist/ezui/p-51c5e071.entry.js +1 -0
- package/dist/ezui/{p-ccb4ccd9.entry.js → p-555c9018.entry.js} +1 -1
- package/dist/ezui/{p-d43b22f3.entry.js → p-596634e9.entry.js} +1 -1
- package/dist/ezui/p-5bd5e68f.entry.js +1 -0
- package/dist/ezui/{p-a01068e1.entry.js → p-5d692ed1.entry.js} +1 -1
- package/dist/ezui/{p-95426f93.entry.js → p-5d86cca9.entry.js} +1 -1
- package/dist/ezui/p-5e1d036e.entry.js +1 -0
- package/dist/ezui/{p-7525e604.entry.js → p-5ed81457.entry.js} +1 -1
- package/dist/ezui/{p-c49dbf23.entry.js → p-650e4b6d.entry.js} +1 -1
- package/dist/ezui/{p-fd54b5b4.entry.js → p-6e2f8e6b.entry.js} +2 -2
- package/dist/ezui/p-6e429cff.entry.js +1 -0
- package/dist/ezui/p-76ba9d67.entry.js +1 -0
- package/dist/ezui/{p-37673563.entry.js → p-77a4bd35.entry.js} +1 -1
- package/dist/ezui/p-796c1a88.entry.js +1 -0
- package/dist/ezui/{p-5d6f2550.entry.js → p-85c8baae.entry.js} +1 -1
- package/dist/ezui/{p-fa571a4e.entry.js → p-8becebf8.entry.js} +1 -1
- package/dist/ezui/p-8defa6d3.entry.js +1 -0
- package/dist/ezui/{p-391de0e4.entry.js → p-9050d2cd.entry.js} +1 -1
- package/dist/ezui/{p-028f264f.entry.js → p-9cad9b6e.entry.js} +1 -1
- package/dist/ezui/{p-b11f035c.entry.js → p-9f5fa3f9.entry.js} +1 -1
- package/dist/ezui/p-a08b309b.entry.js +1 -0
- package/dist/ezui/{p-2da09f70.entry.js → p-a80b1287.entry.js} +1 -1
- package/dist/ezui/p-af15c277.entry.js +1 -0
- package/dist/ezui/{p-32b4163f.entry.js → p-b041333c.entry.js} +1 -1
- package/dist/ezui/p-ba875f37.entry.js +1 -0
- package/dist/ezui/p-bc2f844e.entry.js +1 -0
- package/dist/ezui/{p-e2dfd935.entry.js → p-c0f1715f.entry.js} +1 -1
- package/dist/ezui/{p-83885b21.entry.js → p-cc2dc4f4.entry.js} +1 -1
- package/dist/ezui/p-d6ffe679.entry.js +1 -0
- package/dist/ezui/p-eb36f072.entry.js +1 -0
- package/dist/ezui/p-f56dd1da.entry.js +1 -0
- package/dist/types/components/ez-actions-button/ez-actions-button.d.ts +15 -7
- package/dist/types/components/ez-alert-list/ez-alert-list.d.ts +76 -0
- package/dist/types/components/ez-combo-box/ez-combo-box.d.ts +12 -15
- package/dist/types/components/ez-dialog/ez-dialog.d.ts +8 -2
- package/dist/types/components/ez-dropdown/ez-dropdown.d.ts +5 -0
- package/dist/types/components/ez-form/ez-form.d.ts +19 -1
- package/dist/types/components/ez-form-view/ez-form-view.d.ts +5 -0
- package/dist/types/components/ez-form-view/structure/index.d.ts +15 -0
- package/dist/types/components/ez-grid/controller/EzGridController.d.ts +9 -6
- package/dist/types/components/ez-grid/controller/ag-grid/AgGridController.d.ts +2 -3
- package/dist/types/components/ez-grid/controller/ag-grid/DataSource.d.ts +1 -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 +13 -5
- package/dist/types/components/ez-grid/interfaces/IColumnFilter.d.ts +4 -0
- package/dist/types/components/ez-grid/interfaces/index.d.ts +1 -0
- package/dist/types/components/ez-grid/subcomponents/filter-column.d.ts +8 -0
- package/dist/types/components/ez-grid/utils/ColumnFilterManager.d.ts +9 -0
- package/dist/types/components/ez-grid/utils/InMemoryFilterColumnDataSource.d.ts +19 -0
- package/dist/types/components/ez-grid/utils/index.d.ts +1 -0
- package/dist/types/components/ez-guide-navigator/ez-guide-navigator.d.ts +4 -0
- package/dist/types/components/ez-guide-navigator/interfaces/IGuideItem.d.ts +1 -0
- package/dist/types/components/ez-multi-selection-list/ez-multi-selection-list.d.ts +4 -0
- package/dist/types/components/ez-multi-selection-list/interfaces/IMultiSelectionListDataSource.d.ts +2 -0
- package/dist/types/components/ez-search/ez-search.d.ts +112 -10
- package/dist/types/components/ez-split-panel/structure/item/ez-split-item.d.ts +3 -0
- package/dist/types/components/ez-text-input/ez-text-input.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 +236 -17
- package/dist/types/utils/ApplicationUtils.d.ts +24 -0
- package/dist/types/utils/constants.d.ts +1 -0
- package/dist/types/utils/form/DataBinder.d.ts +1 -0
- package/dist/types/utils/index.d.ts +1 -0
- package/dist/types/utils/interfaces/AbstractFieldMetadata.d.ts +2 -1
- package/dist/types/utils/interfaces/IAction.d.ts +7 -0
- package/package.json +4 -3
- package/react/components.d.ts +3 -0
- package/react/components.js +3 -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/esm/constants-6dab64f7.js +0 -4
- 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-050247dc.entry.js +0 -1
- package/dist/ezui/p-1e7c4986.entry.js +0 -1
- package/dist/ezui/p-244dfe8a.entry.js +0 -1
- package/dist/ezui/p-27a01a26.js +0 -1
- package/dist/ezui/p-2a0e1679.entry.js +0 -1
- package/dist/ezui/p-4535da17.entry.js +0 -1
- package/dist/ezui/p-4c8b029b.entry.js +0 -1
- package/dist/ezui/p-4e31b69b.entry.js +0 -1
- package/dist/ezui/p-5495fa45.entry.js +0 -1
- package/dist/ezui/p-5ce6548c.entry.js +0 -1
- package/dist/ezui/p-68352e41.entry.js +0 -1
- package/dist/ezui/p-87e85160.entry.js +0 -1
- package/dist/ezui/p-8bd3903b.entry.js +0 -1
- package/dist/ezui/p-90fa4cb3.entry.js +0 -1
- package/dist/ezui/p-9285b53e.entry.js +0 -1
- package/dist/ezui/p-a510a4c5.entry.js +0 -1
- package/dist/ezui/p-d51aa09b.entry.js +0 -1
- package/dist/ezui/p-db528b31.entry.js +0 -1
- package/dist/ezui/p-e67d0bd5.entry.js +0 -1
- package/dist/ezui/p-e7fa0ad6.entry.js +0 -1
- package/dist/ezui/p-f15ec3bb.js +0 -1
- package/dist/ezui/p-ff82b176.entry.js +0 -1
|
@@ -16,6 +16,12 @@ export class EzActionsButton {
|
|
|
16
16
|
return true;
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
|
+
do {
|
|
20
|
+
if (floatingContainer.contains(node)) {
|
|
21
|
+
return true;
|
|
22
|
+
}
|
|
23
|
+
node = node.offsetParent;
|
|
24
|
+
} while (node != undefined && node != document.getRootNode());
|
|
19
25
|
}
|
|
20
26
|
return false;
|
|
21
27
|
};
|
|
@@ -39,6 +45,25 @@ export class EzActionsButton {
|
|
|
39
45
|
}
|
|
40
46
|
this._floatingID = undefined;
|
|
41
47
|
}
|
|
48
|
+
/**
|
|
49
|
+
* Apresenta a lista de ações.
|
|
50
|
+
*/
|
|
51
|
+
async showActions() {
|
|
52
|
+
if (!this.enabled) {
|
|
53
|
+
return;
|
|
54
|
+
}
|
|
55
|
+
const options = this.getFloatOptions();
|
|
56
|
+
this._floatingID = FloatingManager.float(this._actionsList, this._listContainer, options);
|
|
57
|
+
const sideLimit = this.getSideLimit();
|
|
58
|
+
if (sideLimit != undefined) {
|
|
59
|
+
options.left = sideLimit;
|
|
60
|
+
FloatingManager.updateFloatPosition(this._actionsList, this._listContainer, options);
|
|
61
|
+
}
|
|
62
|
+
window.requestAnimationFrame(() => {
|
|
63
|
+
this._actionsList.scrollIntoView({ behavior: "smooth", block: "nearest", inline: "nearest" });
|
|
64
|
+
});
|
|
65
|
+
this.ezPopoverOpen.emit(this._actionsList);
|
|
66
|
+
}
|
|
42
67
|
/**
|
|
43
68
|
* Verifica se a lista de ações está aberta.
|
|
44
69
|
*/
|
|
@@ -51,7 +76,8 @@ export class EzActionsButton {
|
|
|
51
76
|
innerClickTest: this.innerClickCheck,
|
|
52
77
|
isFixed: true,
|
|
53
78
|
top: this.getPositionTop(),
|
|
54
|
-
left: this.getPositionLeft()
|
|
79
|
+
left: this.getPositionLeft(),
|
|
80
|
+
backClickListener: () => this._floatingID = undefined
|
|
55
81
|
};
|
|
56
82
|
}
|
|
57
83
|
getSideLimit() {
|
|
@@ -63,21 +89,6 @@ export class EzActionsButton {
|
|
|
63
89
|
}
|
|
64
90
|
return;
|
|
65
91
|
}
|
|
66
|
-
showActions() {
|
|
67
|
-
if (!this.enabled) {
|
|
68
|
-
return;
|
|
69
|
-
}
|
|
70
|
-
const options = this.getFloatOptions();
|
|
71
|
-
this._floatingID = FloatingManager.float(this._actionsList, this._listContainer, options);
|
|
72
|
-
const sideLimit = this.getSideLimit();
|
|
73
|
-
if (sideLimit != undefined) {
|
|
74
|
-
options.left = sideLimit;
|
|
75
|
-
FloatingManager.updateFloatPosition(this._actionsList, this._listContainer, options);
|
|
76
|
-
}
|
|
77
|
-
window.requestAnimationFrame(() => {
|
|
78
|
-
this._actionsList.scrollIntoView({ behavior: "smooth", block: "nearest", inline: "nearest" });
|
|
79
|
-
});
|
|
80
|
-
}
|
|
81
92
|
updatePosition() {
|
|
82
93
|
if (!this.enabled || this._floatingID == undefined) {
|
|
83
94
|
return;
|
|
@@ -160,14 +171,18 @@ export class EzActionsButton {
|
|
|
160
171
|
}
|
|
161
172
|
}
|
|
162
173
|
}
|
|
174
|
+
disconnectedCallback() {
|
|
175
|
+
this.ezDisconnectedActionButtons.emit();
|
|
176
|
+
}
|
|
163
177
|
componentDidLoad() {
|
|
164
178
|
CSSVarsUtils.applyVarsButton(this._element, this._button);
|
|
165
179
|
ElementIDUtils.addIDInfo(this._element);
|
|
166
180
|
this.controlScrollPage();
|
|
167
181
|
}
|
|
168
182
|
componentDidRender() {
|
|
183
|
+
var _a;
|
|
169
184
|
if (this._floatingID == undefined) {
|
|
170
|
-
this._actionsList.remove();
|
|
185
|
+
(_a = this._actionsList) === null || _a === void 0 ? void 0 : _a.remove();
|
|
171
186
|
}
|
|
172
187
|
if (this.hasLabelOrCheckOption()) {
|
|
173
188
|
if (!!this.value) {
|
|
@@ -178,20 +193,31 @@ export class EzActionsButton {
|
|
|
178
193
|
}
|
|
179
194
|
}
|
|
180
195
|
}
|
|
196
|
+
buildActionElement(action) {
|
|
197
|
+
var _a;
|
|
198
|
+
if (!action) {
|
|
199
|
+
return;
|
|
200
|
+
}
|
|
201
|
+
if (action.itemBuilder != undefined) {
|
|
202
|
+
const customContent = action.itemBuilder(this._element, action);
|
|
203
|
+
if (typeof customContent === "string") {
|
|
204
|
+
return h("div", { class: "ez-actions-button__btn-action", innerHTML: customContent });
|
|
205
|
+
}
|
|
206
|
+
return customContent;
|
|
207
|
+
}
|
|
208
|
+
return h("ez-button", { size: "small", label: action.label, onClick: () => this.actionClick(action), enabled: action.enabled, class: "ez-actions-button__btn-action" +
|
|
209
|
+
(this.checkOption || this.hasIconName() ? " ez-actions-button__btn-action--spaced" : "") }, this.checkOption && ((_a = this._selectedAction) === null || _a === void 0 ? void 0 : _a.value) === action.value &&
|
|
210
|
+
h("ez-icon", { class: "ez-actions-button__icon-check", slot: "leftIcon", size: "small", iconName: "check" }), !this.checkOption && action.iconName &&
|
|
211
|
+
h("ez-icon", { class: "ez-actions-button__icon-item", slot: "leftIcon", size: "small", iconName: action.iconName }));
|
|
212
|
+
}
|
|
181
213
|
render() {
|
|
182
214
|
var _a;
|
|
183
215
|
return (h(Host, null, h("ez-button", { ref: elem => this._button = elem, class: (this.isTransparent ? "ez-actions-button__btn-transparent" : "") +
|
|
184
216
|
(this.showLabel ? " ez-actions-button__btn-label" : ""), label: this.showLabel && ((_a = this._selectedAction) === null || _a === void 0 ? void 0 : _a.label), enabled: this.enabled, mode: this.showLabel ? undefined : "icon", iconName: this.showLabel ? "" : this.displayIcon || "dots-vertical", size: this.size, onClick: () => this.handlerButtonClick() }, this.showLabel &&
|
|
185
217
|
h("ez-icon", { class: "ez-actions-button__icon-right", slot: "rightIcon", iconName: this.displayIcon || "dots-vertical" })), h("section", { class: "ez-actions-button__list-container", ref: elem => this._listContainer = elem }, this.arrowActive &&
|
|
186
218
|
h("div", { class: "ez-actions-button__arrow ez-actions-button__arrow--" + (this.size || "small") +
|
|
187
|
-
(this.isTransparent ? " ez-actions-button__arrow--upped" : "") }), h("div", { ref: elem => this._actionsList = elem, class: "ez-actions-button__actions-list" +
|
|
188
|
-
(this.arrowActive && !this.isTransparent ? " ez-actions-button__actions-list--lowered" : "") }, this.actions.map(action =>
|
|
189
|
-
var _a;
|
|
190
|
-
return h("ez-button", { size: "small", label: action.label, onClick: () => this.actionClick(action), enabled: action.enabled, class: "ez-actions-button__btn-action" +
|
|
191
|
-
(this.checkOption || this.hasIconName() ? " ez-actions-button__btn-action--spaced" : "") }, this.checkOption && ((_a = this._selectedAction) === null || _a === void 0 ? void 0 : _a.value) === action.value &&
|
|
192
|
-
h("ez-icon", { class: "ez-actions-button__icon-check", slot: "leftIcon", size: "small", iconName: "check" }), !this.checkOption && action.iconName &&
|
|
193
|
-
h("ez-icon", { class: "ez-actions-button__icon-item", slot: "leftIcon", size: "small", iconName: action.iconName }));
|
|
194
|
-
})))));
|
|
219
|
+
(this.isTransparent ? " ez-actions-button__arrow--upped" : "") }), h("div", { ref: elem => this._actionsList = elem, class: "ez-actions-button__actions-list ez-actions-button__actions-list--max-height" +
|
|
220
|
+
(this.arrowActive && !this.isTransparent ? " ez-actions-button__actions-list--lowered" : "") }, this.actions.map(action => this.buildActionElement(action))))));
|
|
195
221
|
}
|
|
196
222
|
static get is() { return "ez-actions-button"; }
|
|
197
223
|
static get encapsulation() { return "shadow"; }
|
|
@@ -236,7 +262,8 @@ export class EzActionsButton {
|
|
|
236
262
|
"location": "global"
|
|
237
263
|
},
|
|
238
264
|
"IAction": {
|
|
239
|
-
"location": "
|
|
265
|
+
"location": "import",
|
|
266
|
+
"path": "../../utils"
|
|
240
267
|
}
|
|
241
268
|
}
|
|
242
269
|
},
|
|
@@ -394,10 +421,45 @@ export class EzActionsButton {
|
|
|
394
421
|
"resolved": "IAction",
|
|
395
422
|
"references": {
|
|
396
423
|
"IAction": {
|
|
397
|
-
"location": "
|
|
424
|
+
"location": "import",
|
|
425
|
+
"path": "../../utils"
|
|
398
426
|
}
|
|
399
427
|
}
|
|
400
428
|
}
|
|
429
|
+
}, {
|
|
430
|
+
"method": "ezPopoverOpen",
|
|
431
|
+
"name": "ezPopoverOpen",
|
|
432
|
+
"bubbles": true,
|
|
433
|
+
"cancelable": true,
|
|
434
|
+
"composed": true,
|
|
435
|
+
"docs": {
|
|
436
|
+
"tags": [],
|
|
437
|
+
"text": "Emitido ao mostrar a lista de a\u00E7\u00F5es"
|
|
438
|
+
},
|
|
439
|
+
"complexType": {
|
|
440
|
+
"original": "HTMLElement",
|
|
441
|
+
"resolved": "HTMLElement",
|
|
442
|
+
"references": {
|
|
443
|
+
"HTMLElement": {
|
|
444
|
+
"location": "global"
|
|
445
|
+
}
|
|
446
|
+
}
|
|
447
|
+
}
|
|
448
|
+
}, {
|
|
449
|
+
"method": "ezDisconnectedActionButtons",
|
|
450
|
+
"name": "ezDisconnectedActionButtons",
|
|
451
|
+
"bubbles": true,
|
|
452
|
+
"cancelable": true,
|
|
453
|
+
"composed": true,
|
|
454
|
+
"docs": {
|
|
455
|
+
"tags": [],
|
|
456
|
+
"text": "Emitido quando componente \u00E9 desconectado da DOM"
|
|
457
|
+
},
|
|
458
|
+
"complexType": {
|
|
459
|
+
"original": "void",
|
|
460
|
+
"resolved": "void",
|
|
461
|
+
"references": {}
|
|
462
|
+
}
|
|
401
463
|
}];
|
|
402
464
|
}
|
|
403
465
|
static get methods() {
|
|
@@ -418,6 +480,22 @@ export class EzActionsButton {
|
|
|
418
480
|
"tags": []
|
|
419
481
|
}
|
|
420
482
|
},
|
|
483
|
+
"showActions": {
|
|
484
|
+
"complexType": {
|
|
485
|
+
"signature": "() => Promise<void>",
|
|
486
|
+
"parameters": [],
|
|
487
|
+
"references": {
|
|
488
|
+
"Promise": {
|
|
489
|
+
"location": "global"
|
|
490
|
+
}
|
|
491
|
+
},
|
|
492
|
+
"return": "Promise<void>"
|
|
493
|
+
},
|
|
494
|
+
"docs": {
|
|
495
|
+
"text": "Apresenta a lista de a\u00E7\u00F5es.",
|
|
496
|
+
"tags": []
|
|
497
|
+
}
|
|
498
|
+
},
|
|
421
499
|
"isOpened": {
|
|
422
500
|
"complexType": {
|
|
423
501
|
"signature": "() => Promise<boolean>",
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
display: flex;
|
|
3
|
+
|
|
4
|
+
/* Alert List */
|
|
5
|
+
|
|
6
|
+
/*@doc Define a largura da lista minimizado */
|
|
7
|
+
--ez-alert-list__container--width: 680px;
|
|
8
|
+
/*@doc Define a altura da lista minimizado */
|
|
9
|
+
--ez-alert-list__container--height: 220px;
|
|
10
|
+
|
|
11
|
+
/*@doc Define a largura da lista maximizada */
|
|
12
|
+
--ez-alert-list__container--width--expanded: 920px;
|
|
13
|
+
/*@doc Define a altura da lista maximizada */
|
|
14
|
+
--ez-alert-list__container--height--expanded: 540px;
|
|
15
|
+
|
|
16
|
+
/* Title */
|
|
17
|
+
/*@doc Define a fonte do título do componente */
|
|
18
|
+
--ez-alert-list__title--font-family: var(--font-pattern, "Roboto");
|
|
19
|
+
/*@doc Define o tamanho da fonte do título do popup.*/
|
|
20
|
+
--ez-alert-list__title--font-size: var(--title--large, 20px);
|
|
21
|
+
/*@doc Define a cor da fonte do título do popup.*/
|
|
22
|
+
--ez-alert-list__title--color: var(--title--primary, #2b3a54);
|
|
23
|
+
/*@doc Define o peso da fonte do título do popup.*/
|
|
24
|
+
--ez-alert-list__title--font-weight: var(--text-weight--extra-large, 700);
|
|
25
|
+
|
|
26
|
+
/* @doc Define a borda inferior do item da lista. */
|
|
27
|
+
--ez-list__item--border-bottom: var(--border--small, 1px solid);
|
|
28
|
+
|
|
29
|
+
/* @doc Define a cor da borda inferior do item da lista. */
|
|
30
|
+
--ez-list__item--border-bottom-color: var(--color--strokes, #DCE0E8);
|
|
31
|
+
|
|
32
|
+
/* @doc Define o tipo da quebra de linha do item da lista. */
|
|
33
|
+
--ez-list__item--white-space: break-space;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.alert-list__content {
|
|
37
|
+
display: flex;
|
|
38
|
+
flex-direction: column;
|
|
39
|
+
|
|
40
|
+
gap: var(--space--xs);
|
|
41
|
+
margin: var(--space--large, 24px);
|
|
42
|
+
width: 100%;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.alert-list__container {
|
|
46
|
+
z-index: var(--more-visible--2x, 3);
|
|
47
|
+
display: flex;
|
|
48
|
+
height: var(--ez-alert-list__container--height);
|
|
49
|
+
width: var(--ez-alert-list__container--width);
|
|
50
|
+
border-radius: var(--border--radius-medium);
|
|
51
|
+
background-color: var(--background--xlight);
|
|
52
|
+
box-shadow: var(--shadow--medium);
|
|
53
|
+
|
|
54
|
+
&.expanded {
|
|
55
|
+
height: var(--ez-alert-list__container--height--expanded);
|
|
56
|
+
width: var(--ez-alert-list__container--width--expanded);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
@media (max-height: 640px) {
|
|
60
|
+
max-height: calc(100vh - var(--space--3xl));
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.alert-list__header {
|
|
65
|
+
width: 100%;
|
|
66
|
+
display: flex;
|
|
67
|
+
align-items: center;
|
|
68
|
+
justify-content: space-between;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.alert-list__title {
|
|
72
|
+
font-family: var(--ez-alert-list__title--font-family);
|
|
73
|
+
font-size: var(--ez-alert-list__title--font-size);
|
|
74
|
+
font-weight: var(--ez-alert-list__title--font-weight);
|
|
75
|
+
color: var(--ez-alert-list__title--color);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.alert-list__header__buttons {
|
|
79
|
+
display: flex;
|
|
80
|
+
gap: var(--space--xs);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.alert-list__expandable-content {
|
|
84
|
+
overflow-y: auto;
|
|
85
|
+
scrollbar-width: thin;
|
|
86
|
+
}
|
|
87
|
+
|
|
@@ -0,0 +1,268 @@
|
|
|
1
|
+
import { ElementIDUtils, FloatingManager } from '@sankhyalabs/core';
|
|
2
|
+
import { Host, h } from '@stencil/core';
|
|
3
|
+
export class EzAlertList {
|
|
4
|
+
constructor() {
|
|
5
|
+
this.alerts = [];
|
|
6
|
+
this.enableDragAndDrop = undefined;
|
|
7
|
+
this.enableExpand = true;
|
|
8
|
+
this.itemRightSlotBuilder = undefined;
|
|
9
|
+
this.opened = true;
|
|
10
|
+
this.expanded = false;
|
|
11
|
+
}
|
|
12
|
+
observeOpened() {
|
|
13
|
+
this.manageOverlay();
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Retorna o id do alerta a partir do título e do índice.
|
|
17
|
+
*/
|
|
18
|
+
alertId(title, index) {
|
|
19
|
+
const concatTitle = (title) => { var _a; return (_a = title === null || title === void 0 ? void 0 : title.split(' ').join('-')) !== null && _a !== void 0 ? _a : ""; };
|
|
20
|
+
return `alert-${index}-${concatTitle(title)}`;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Retorna o título do alerta a partir do id.
|
|
24
|
+
*/
|
|
25
|
+
getAlertTitle(id) {
|
|
26
|
+
var _a;
|
|
27
|
+
return (_a = this.alerts.find((alert, index) => this.alertId(alert.title, index) === id)) === null || _a === void 0 ? void 0 : _a.title;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Retorna o texto do título do alerta.
|
|
31
|
+
*/
|
|
32
|
+
getTitleText(item) {
|
|
33
|
+
var _a;
|
|
34
|
+
const title = (_a = this.getAlertTitle(item.id)) !== null && _a !== void 0 ? _a : '';
|
|
35
|
+
return `${title}${(title && item.label) ? ':' : ''}`;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Gerencia a exibição do conteúdo expandido.
|
|
39
|
+
*/
|
|
40
|
+
toggleExpandContainer() {
|
|
41
|
+
if (!this.enableExpand) {
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
44
|
+
;
|
|
45
|
+
this.expanded = !this.expanded;
|
|
46
|
+
this._container.classList.toggle('expanded', this.expanded);
|
|
47
|
+
if (this.expanded) {
|
|
48
|
+
this.updatePosition(this.getBoundingRight(), this.getBoundingBottom());
|
|
49
|
+
}
|
|
50
|
+
else {
|
|
51
|
+
this.updatePosition(`10px`, `10px`);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Gerencia a exibição do overlay usando FloatingManager do Core.
|
|
56
|
+
*/
|
|
57
|
+
async manageOverlay() {
|
|
58
|
+
if (this.opened) {
|
|
59
|
+
this._overlayId = FloatingManager.float(this._container, this._overlayRef, this.getFloatOptions());
|
|
60
|
+
}
|
|
61
|
+
else {
|
|
62
|
+
FloatingManager.close(this._overlayId);
|
|
63
|
+
this._overlayId = undefined;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Atualiza a posição da lista.
|
|
68
|
+
*/
|
|
69
|
+
updatePosition(right, bottom) {
|
|
70
|
+
FloatingManager.updateFloatPosition(this._container, this._overlayRef, Object.assign(Object.assign({}, this.getFloatOptions()), { right,
|
|
71
|
+
bottom }));
|
|
72
|
+
}
|
|
73
|
+
;
|
|
74
|
+
/**
|
|
75
|
+
* Retorna valores padrões do componente
|
|
76
|
+
*/
|
|
77
|
+
getFloatOptions() {
|
|
78
|
+
return {
|
|
79
|
+
autoClose: false,
|
|
80
|
+
isFixed: false,
|
|
81
|
+
bottom: '10px',
|
|
82
|
+
right: '10px',
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
;
|
|
86
|
+
/**
|
|
87
|
+
* Retorna o valor para o alinhamento horizontal do componente.
|
|
88
|
+
*/
|
|
89
|
+
getBoundingRight() {
|
|
90
|
+
const docWidth = document.body.clientWidth;
|
|
91
|
+
const boxWidth = this._container.getBoundingClientRect().width;
|
|
92
|
+
return ((docWidth - boxWidth) / 2) + 'px';
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Retorna o valor para o alinhamento vertical do componente.
|
|
96
|
+
*/
|
|
97
|
+
getBoundingBottom() {
|
|
98
|
+
const docHeight = document.body.clientHeight;
|
|
99
|
+
const boxHeight = this._container.getBoundingClientRect().height;
|
|
100
|
+
return ((docHeight - boxHeight) / 2) + 'px';
|
|
101
|
+
}
|
|
102
|
+
componentDidRender() {
|
|
103
|
+
this.manageOverlay();
|
|
104
|
+
if (this.opened) {
|
|
105
|
+
this._container.focus();
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
componentWillLoad() {
|
|
109
|
+
this.dataElementId = ElementIDUtils.addIDInfo(this._element, 'EzAlertList');
|
|
110
|
+
}
|
|
111
|
+
render() {
|
|
112
|
+
return (h(Host, Object.assign({}, { [ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME]: this.dataElementId }), h("div", { ref: elem => (this._overlayRef = elem) }, h("div", { class: `alert-list__container ${this.expanded ? 'expanded' : ''}`, ref: elem => (this._container = elem) }, h("div", { class: "alert-list__content" }, h("div", { class: "alert-list__header" }, h("div", { class: "alert-list__title" }, `Avisos (${this.alerts.length})`), h("div", { class: "alert-list__header__buttons" }, this.enableExpand && (h("ez-button", { mode: "icon", size: "small", iconName: "expand", onClick: () => this.toggleExpandContainer(), "data-element-id": ElementIDUtils.getInternalIDInfo('expandButton'), title: this.expanded ? 'Resumir' : 'Expandir' })), h("ez-button", { mode: "icon", size: "small", iconName: "close", "data-element-id": ElementIDUtils.getInternalIDInfo('closeButton'), onClick: () => {
|
|
113
|
+
this.opened = false;
|
|
114
|
+
}, title: 'Fechar' }))), h("div", { class: "alert-list__expandable-content" }, h("ez-list", { hoverFeedback: true, itemLeftSlotBuilder: item => {
|
|
115
|
+
return (h("a", { href: "#", style: {
|
|
116
|
+
fontFamily: "var(--font-pattern, 'Roboto')",
|
|
117
|
+
fontSize: 'var(--text--medium, 14px)',
|
|
118
|
+
fontWeight: 'var(--text-weight--medium, 400)',
|
|
119
|
+
color: 'var(--color--primary, #008561)',
|
|
120
|
+
marginRight: '4px',
|
|
121
|
+
cursor: 'pointer',
|
|
122
|
+
display: 'flex',
|
|
123
|
+
width: 'max-content',
|
|
124
|
+
textDecoration: 'none'
|
|
125
|
+
} }, this.getTitleText(item)));
|
|
126
|
+
}, dataSource: this.alerts.map((alert, index) => {
|
|
127
|
+
var _a;
|
|
128
|
+
return {
|
|
129
|
+
id: this.alertId(alert.title, index),
|
|
130
|
+
label: (_a = alert.detail) !== null && _a !== void 0 ? _a : "",
|
|
131
|
+
};
|
|
132
|
+
}) })))))));
|
|
133
|
+
}
|
|
134
|
+
static get is() { return "ez-alert-list"; }
|
|
135
|
+
static get encapsulation() { return "shadow"; }
|
|
136
|
+
static get originalStyleUrls() {
|
|
137
|
+
return {
|
|
138
|
+
"$": ["ez-alert-list.css"]
|
|
139
|
+
};
|
|
140
|
+
}
|
|
141
|
+
static get styleUrls() {
|
|
142
|
+
return {
|
|
143
|
+
"$": ["ez-alert-list.css"]
|
|
144
|
+
};
|
|
145
|
+
}
|
|
146
|
+
static get properties() {
|
|
147
|
+
return {
|
|
148
|
+
"alerts": {
|
|
149
|
+
"type": "unknown",
|
|
150
|
+
"mutable": true,
|
|
151
|
+
"complexType": {
|
|
152
|
+
"original": "AlertItem[]",
|
|
153
|
+
"resolved": "AlertItem[]",
|
|
154
|
+
"references": {
|
|
155
|
+
"AlertItem": {
|
|
156
|
+
"location": "local"
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
"required": false,
|
|
161
|
+
"optional": false,
|
|
162
|
+
"docs": {
|
|
163
|
+
"tags": [],
|
|
164
|
+
"text": "Lista de alertas que devem ser apresentados no componente."
|
|
165
|
+
},
|
|
166
|
+
"defaultValue": "[]"
|
|
167
|
+
},
|
|
168
|
+
"enableDragAndDrop": {
|
|
169
|
+
"type": "boolean",
|
|
170
|
+
"mutable": false,
|
|
171
|
+
"complexType": {
|
|
172
|
+
"original": "boolean",
|
|
173
|
+
"resolved": "boolean",
|
|
174
|
+
"references": {}
|
|
175
|
+
},
|
|
176
|
+
"required": false,
|
|
177
|
+
"optional": false,
|
|
178
|
+
"docs": {
|
|
179
|
+
"tags": [],
|
|
180
|
+
"text": "Define se o componente pode ser arrastado na tela."
|
|
181
|
+
},
|
|
182
|
+
"attribute": "enable-drag-and-drop",
|
|
183
|
+
"reflect": true
|
|
184
|
+
},
|
|
185
|
+
"enableExpand": {
|
|
186
|
+
"type": "boolean",
|
|
187
|
+
"mutable": false,
|
|
188
|
+
"complexType": {
|
|
189
|
+
"original": "boolean",
|
|
190
|
+
"resolved": "boolean",
|
|
191
|
+
"references": {}
|
|
192
|
+
},
|
|
193
|
+
"required": false,
|
|
194
|
+
"optional": false,
|
|
195
|
+
"docs": {
|
|
196
|
+
"tags": [],
|
|
197
|
+
"text": "Define se o componente pode ser expandido."
|
|
198
|
+
},
|
|
199
|
+
"attribute": "enable-expand",
|
|
200
|
+
"reflect": true,
|
|
201
|
+
"defaultValue": "true"
|
|
202
|
+
},
|
|
203
|
+
"itemRightSlotBuilder": {
|
|
204
|
+
"type": "unknown",
|
|
205
|
+
"mutable": false,
|
|
206
|
+
"complexType": {
|
|
207
|
+
"original": "SlotBuilder",
|
|
208
|
+
"resolved": "(item: ListItem, group?: ListGroup) => string | HTMLElement",
|
|
209
|
+
"references": {
|
|
210
|
+
"SlotBuilder": {
|
|
211
|
+
"location": "import",
|
|
212
|
+
"path": "../ez-list/ez-list"
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
},
|
|
216
|
+
"required": false,
|
|
217
|
+
"optional": false,
|
|
218
|
+
"docs": {
|
|
219
|
+
"tags": [],
|
|
220
|
+
"text": "Define builder para elementos a direita do componente"
|
|
221
|
+
}
|
|
222
|
+
},
|
|
223
|
+
"opened": {
|
|
224
|
+
"type": "boolean",
|
|
225
|
+
"mutable": true,
|
|
226
|
+
"complexType": {
|
|
227
|
+
"original": "boolean",
|
|
228
|
+
"resolved": "boolean",
|
|
229
|
+
"references": {}
|
|
230
|
+
},
|
|
231
|
+
"required": false,
|
|
232
|
+
"optional": false,
|
|
233
|
+
"docs": {
|
|
234
|
+
"tags": [],
|
|
235
|
+
"text": "Define se o componente est\u00E1 aberto."
|
|
236
|
+
},
|
|
237
|
+
"attribute": "opened",
|
|
238
|
+
"reflect": true,
|
|
239
|
+
"defaultValue": "true"
|
|
240
|
+
},
|
|
241
|
+
"expanded": {
|
|
242
|
+
"type": "boolean",
|
|
243
|
+
"mutable": true,
|
|
244
|
+
"complexType": {
|
|
245
|
+
"original": "boolean",
|
|
246
|
+
"resolved": "boolean",
|
|
247
|
+
"references": {}
|
|
248
|
+
},
|
|
249
|
+
"required": false,
|
|
250
|
+
"optional": false,
|
|
251
|
+
"docs": {
|
|
252
|
+
"tags": [],
|
|
253
|
+
"text": "Define se o componente est\u00E1 expandido."
|
|
254
|
+
},
|
|
255
|
+
"attribute": "expanded",
|
|
256
|
+
"reflect": true,
|
|
257
|
+
"defaultValue": "false"
|
|
258
|
+
}
|
|
259
|
+
};
|
|
260
|
+
}
|
|
261
|
+
static get elementRef() { return "_element"; }
|
|
262
|
+
static get watchers() {
|
|
263
|
+
return [{
|
|
264
|
+
"propName": "opened",
|
|
265
|
+
"methodName": "observeOpened"
|
|
266
|
+
}];
|
|
267
|
+
}
|
|
268
|
+
}
|
|
@@ -42,6 +42,8 @@
|
|
|
42
42
|
padding: 12px;
|
|
43
43
|
z-index: 0;
|
|
44
44
|
position: relative;
|
|
45
|
+
container-type: inline-size;
|
|
46
|
+
container-name: box;
|
|
45
47
|
}
|
|
46
48
|
|
|
47
49
|
.card-item:hover {
|
|
@@ -105,6 +107,7 @@
|
|
|
105
107
|
|
|
106
108
|
.card-item__detail-value {
|
|
107
109
|
cursor: pointer;
|
|
110
|
+
line-break: anywhere;
|
|
108
111
|
|
|
109
112
|
/*public*/
|
|
110
113
|
font-size: var(--ez-card-item--font-size);
|
|
@@ -123,4 +126,18 @@
|
|
|
123
126
|
outline: 2px solid var(--ez-card-item__highlight--color);
|
|
124
127
|
box-shadow: -4px 0px 0px 0px var(--ez-card-item__highlight--color),
|
|
125
128
|
4px 0px 0px 0px var(--ez-card-item__highlight--color);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
@container box (max-width: 500px) {
|
|
132
|
+
.card-item__details {
|
|
133
|
+
flex-direction: column;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.card-item__details-left {
|
|
137
|
+
width: 100%;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.card-item__details-right {
|
|
141
|
+
width: 100%;
|
|
142
|
+
}
|
|
126
143
|
}
|
|
@@ -59,7 +59,6 @@ export class EzCollapsibleBox {
|
|
|
59
59
|
this.ezEditLabelMode.emit(this._activeEditText);
|
|
60
60
|
}
|
|
61
61
|
confirmRemove(evt) {
|
|
62
|
-
evt.preventDefault();
|
|
63
62
|
evt.stopPropagation();
|
|
64
63
|
ApplicationUtils.confirm("Aviso", `Deseja realmente remover o grupo <b>${this.label}</b>?`)
|
|
65
64
|
.then((canRemove) => {
|