@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
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as i,h as s,H as e,g as a}from"./p-
|
|
1
|
+
import{r as t,c as i,h as s,H as e,g as a}from"./p-23a36bb6.js";import{ElementIDUtils as o,StringUtils as r}from"@sankhyalabs/core";const n=class{constructor(s){t(this,s),this.ezChange=i(this,"ezChange",7),this.setFocusedParam=t=>{if("Enter"===t.key){const i=this._processedTabs[this._focusedIndex];this.handleTabClick(i),t.preventDefault(),this.setFocusedTab(i.index)}else if("ArrowLeft"===t.key||"ArrowRight"===t.key){let i;if("ArrowLeft"===t.key)i=!1;else{if("ArrowRight"!==t.key)return;i=!0}this._focusedIndex=void 0===this._focusedIndex?!1===i?void 0!==this.selectedIndex?this.selectedIndex-1:void 0:void 0!==this.selectedIndex?this.selectedIndex+1:void 0:!1===i?this._focusedIndex-1:this._focusedIndex+1,this._focusedIndex<0?this._focusedIndex=0:this._focusedIndex>this._processedTabs.length-1&&(this._focusedIndex=this._processedTabs.length-1),this.setFocusedBtn(!0,this._focusedIndex),this.setFocusedTab(this._focusedIndex)}else if("Tab"===t.key||"Escape"===t.key){const i=this._processedTabs[this.selectedIndex];this._focusedIndex=void 0,this.handleTabClick(i),t.preventDefault(),this.setFocusedTab(this.selectedIndex)}},this._processedTabs=void 0,this.selectedIndex=void 0,this.selectedTab=void 0,this.tabs=void 0}observeTabs(t){t&&"string"!=typeof t&&(this._processedTabs=t)}handleTabClick(t){this.selectedIndex=t.index,this._focusedIndex=void 0,this.selectedTab=t.tabKey,this.ezChange.emit(t),this.setFocusedBtn(!1,t.index)}componentWillRender(){this._processedTabs||(this.tabs&&(Array.isArray(this.tabs)?this._processedTabs=[...this.tabs]:(this._processedTabs=[],this.tabs.split(",").forEach((t=>{t=t.trim(),this._processedTabs.push({label:t,tabKey:t,index:this._processedTabs.length}),this.buildElementIdTab(this._processedTabs)})))),this._hostElem.querySelectorAll("ez-tab").forEach((t=>{const i=t.getAttribute("tabKey"),s={label:t.getAttribute("label"),tabKey:i,leftIcon:t.getAttribute("leftIcon"),rightIcon:t.getAttribute("rightIcon"),index:this._processedTabs.length},e=t.firstChild;e&&(e.setAttribute("slot","tab"+s.index),this._hostElem.appendChild(e)),this._processedTabs.push(s),this.buildElementIdTab(this._processedTabs)})))}componentDidRender(){this.updateScroll()}componentDidLoad(){o.addIDInfo(this._hostElem,"itemsSelector"),this._hostElem.shadowRoot.querySelectorAll('button[name="tab-button"]').forEach((t=>{var i;const s=null===(i=t.querySelector("span.tab-label"))||void 0===i?void 0:i.innerText,e={id:`${r.toCamelCase(s)}`};o.addIDInfo(t,"itemSelector",e)}))}handleSlotChange(t){const i=t.target.assignedElements()[0];i&&(i.style.marginLeft="6px")}scrollBackward(){const t=this._scrollContainer;t&&(t.scrollLeft-=t.clientWidth)}scrollFoward(){const t=this._scrollContainer;if(t){let i=null;t.querySelectorAll(".tab").forEach((s=>{s.getBoundingClientRect().right<t.clientWidth&&(i=s)})),t.scrollLeft=i.offsetLeft+i.offsetWidth}}updateScroll(){const t=this._scrollContainer;if(t){const{scrollWidth:i,clientWidth:s,scrollLeft:e}=t,a=i-s-Math.ceil(e);this._startHidden=t.scrollLeft>0,this._endHidden=a>0,this._startHidden?this._backwardButton.classList.remove("hidden"):this._backwardButton.classList.add("hidden"),this._endHidden?this._forwardButton.classList.remove("hidden"):this._forwardButton.classList.add("hidden");const o=["","startHidden","endHidden","middle"],r=o[Number(this._startHidden)|Number(this._endHidden)<<1];o.forEach((i=>{i!==r&&t.classList.contains(i)&&t.classList.remove(i)})),r&&!t.classList.contains(r)&&t.classList.add(r)}}domScrollHandler(){window.clearTimeout(this._scrollCallBack),this._scrollCallBack=window.setTimeout((()=>{this.updateScroll()}),200)}setFocusedTab(t){window.clearTimeout(this._scrollCallBackTest),this._scrollCallBackTest=window.setTimeout((()=>{this._scrollContainer.querySelector(`#tab${t}`).scrollIntoView()}),200)}setFocusedBtn(t,i){this._scrollContainer.querySelectorAll(".tab").forEach((s=>{s.classList.remove("is-focused"),s.id==="tab"+i&&t&&s.classList.add("is-focused")}))}buildElementIdTab(t){t.forEach((t=>{if(!t.hasOwnProperty(o.DATA_ELEMENT_ID_ATTRIBUTE_NAME)){const i=`${this._hostElem.getAttribute(o.DATA_ELEMENT_ID_ATTRIBUTE_NAME)}_${r.toCamelCase(t.tabKey)}`;t[o.DATA_ELEMENT_ID_ATTRIBUTE_NAME]=i}}))}render(){return s(e,null,s("button",{class:"backward-button",ref:t=>this._backwardButton=t,onClick:()=>this.scrollBackward()}),s("div",{class:"scroll",ref:t=>this._scrollContainer=t,onScroll:()=>this.domScrollHandler(),onKeyDown:t=>this.setFocusedParam(t)},this._processedTabs.map(((t,i)=>{const e="tab"+i,a=i===this.selectedIndex||this.selectedTab&&t.tabKey===this.selectedTab;return a&&(this.selectedTab=t.tabKey,this.selectedIndex=i),s("button",{id:e,name:"tab-button",class:"tab"+(a?" is-active":""),onClick:()=>this.handleTabClick(t)},t.leftIcon&&s("ez-icon",{iconName:t.leftIcon,class:"left-icon"}),s("span",{class:"tab-label",title:t.label},t.label),t.rightIcon&&s("ez-icon",{iconName:t.rightIcon,class:"right-icon"}),s("slot",{name:e,onSlotchange:t=>{this.handleSlotChange(t)}}))}))),s("button",{class:"forward-button",ref:t=>this._forwardButton=t,onClick:()=>this.scrollFoward()}))}get _hostElem(){return a(this)}static get watchers(){return{tabs:["observeTabs"]}}};n.style='@keyframes activate{0%{clip-path:inset(calc(100% - 3px) 50% 0px 50%)}100%{clip-path:inset(calc(100% - 3px) 0px 0px 0px)}}:host{display:flex;position:relative;width:100%;overflow:hidden;--tabselector--backward-icon:url(\'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" version="1.1" height="16px" width="10px"><path d="M 9.7808475,13.860393 3.9204526,8.0000004 9.7808475,2.0624965 7.9301965,0.28895552 0.21915255,8.0000004 7.9301965,15.711044 Z"/></svg>\');--tabselector--forward-icon:url(\'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" version="1.1" height="16px" width="10px"><path d="M 0.21915251,13.860393 6.0795475,8.0000007 0.21915251,2.0624968 2.0698036,0.28895588 9.7808475,8.0000007 2.0698036,15.711044 Z"/></svg>\')}.scroll{display:flex;width:100%;scroll-behavior:smooth;overflow-x:auto;scrollbar-width:none}.scroll.startHidden{-webkit-mask-image:linear-gradient(90deg, transparent 20px, #000 48px)}.scroll.middle{-webkit-mask-image:linear-gradient(90deg, transparent 20px, #000 48px, #000 calc(100% - 48px), transparent calc(100% - 20px))}.scroll.endHidden{-webkit-mask-image:linear-gradient(90deg, #000 calc(100% - 48px), transparent calc(100% - 20px))}.tab{display:flex;border:none;background-color:unset;min-width:100px;max-width:260px;cursor:pointer;padding:6px 12px;align-items:center;justify-content:center;color:var(--text--primary, #626e82);font-family:var(--font-pattern, "Roboto");font-size:var(--title--small, 14px);flex-shrink:0}.tab:focus,.forward-button,.backward-button{outline:none}.is-active{position:relative;color:var(--color--primary, #008561)}.is-active::after{content:"";position:absolute;width:100%;height:100%;background-color:var(--color--primary, #008561);clip-path:inset(calc(100% - 3px) 0px 0px 0px);animation:activate 0.25s ease-in-out}.is-focused{border:1px dashed var(--color--primary, #000000c5)}.tab-label{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;text-shadow:var(--text-shadow);margin-bottom:var(--space--extra-small, 3px)}.forward-button,.backward-button{position:absolute;z-index:1;display:flex;box-sizing:border-box;padding:0px;top:0px;right:0px;width:16px;height:100%;border:none;background-color:unset;cursor:pointer;justify-content:center;align-items:center}.backward-button{left:0px}.forward-button::after,.backward-button::after{content:\'\';display:flex;background-color:var(--text--primary, #008561);width:10px;height:16px}.forward-button::after{-webkit-mask-image:var(--tabselector--forward-icon);mask-image:var(--tabselector--forward-icon)}.backward-button::after{-webkit-mask-image:var(--tabselector--backward-icon);mask-image:var(--tabselector--backward-icon)}.forward-button:hover::after,.backward-button:hover::after{background-color:var(--color--primary, #4e4e4e)}.hidden{display:none}.scroll::-webkit-scrollbar{display:none}.left-icon{padding-right:var(--space--small)}.right-icon{padding-left:var(--space--small)}';export{n as ez_tabselector}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r,h as a,H as s}from"./p-23a36bb6.js";const o=class{constructor(a){r(this,a)}render(){return a(s,{class:"box_split-item"})}};o.style=".box_split-item{background-color:var(--background--xlight);padding:var(--space--nano);width:100%;height:100%;border-radius:var(--border--radius-medium);box-shadow:var(--shadow)}";export{o as ez_split_item}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as i,h as o,H as n,g as s}from"./p-23a36bb6.js";import{FloatingManager as a,ElementIDUtils as e}from"@sankhyalabs/core";import"./p-2187f86c.js";import{C as c}from"./p-7eb3e1a5.js";import"./p-ab574d59.js";import"./p-b853763b.js";const r=class{constructor(o){t(this,o),this.ezAction=i(this,"ezAction",7),this.ezPopoverOpen=i(this,"ezPopoverOpen",7),this.ezDisconnectedActionButtons=i(this,"ezDisconnectedActionButtons",7),this._arrowOffset=5,this.innerClickCheck=(t,i)=>{var o;if(i&&t){if(i===t)return!0;const n=t.children;for(let t=0;t<n.length;t++)if(null===(o=n[t].shadowRoot)||void 0===o?void 0:o.contains(i))return!0;do{if(t.contains(i))return!0;i=i.offsetParent}while(null!=i&&i!=document.getRootNode())}return!1},this._selectedAction=void 0,this.enabled=!0,this.actions=void 0,this.size="medium",this.showLabel=!1,this.displayIcon=void 0,this.checkOption=!1,this.value=void 0,this.isTransparent=!1,this.arrowActive=!1}async hideActions(){null!=this._floatingID&&a.close(this._floatingID),this._floatingID=void 0}async showActions(){if(!this.enabled)return;const t=this.getFloatOptions();this._floatingID=a.float(this._actionsList,this._listContainer,t);const i=this.getSideLimit();null!=i&&(t.left=i,a.updateFloatPosition(this._actionsList,this._listContainer,t)),window.requestAnimationFrame((()=>{this._actionsList.scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"})})),this.ezPopoverOpen.emit(this._actionsList)}async isOpened(){return null!=this._floatingID}getFloatOptions(){return{autoClose:!0,innerClickTest:this.innerClickCheck,isFixed:!0,top:this.getPositionTop(),left:this.getPositionLeft(),backClickListener:()=>this._floatingID=void 0}}getSideLimit(){var t;const i=document.body.clientWidth,o=null===(t=this._actionsList)||void 0===t?void 0:t.getBoundingClientRect();if((null==o?void 0:o.right)>i)return i-o.width+"px"}updatePosition(){if(!this.enabled||null==this._floatingID)return;const t=this.getFloatOptions(),i=this.getSideLimit();null!=i&&(t.left=i),a.updateFloatPosition(this._actionsList,this._listContainer,t)}getPositionTop(){var t;const i=null===(t=this._element)||void 0===t?void 0:t.getBoundingClientRect();return null==i?null:i.y+i.height+"px"}getBoundingLeft(){var t;const i=null===(t=this._element)||void 0===t?void 0:t.getBoundingClientRect();return null==i?null:i.x-(this.arrowActive?this._arrowOffset:0)+"px"}getPositionLeft(){return this.getBoundingLeft()||(this.arrowActive?`-${this._arrowOffset}px`:null)}hasLabelOrCheckOption(){var t;return(this.showLabel||this.checkOption)&&(null===(t=this.actions)||void 0===t?void 0:t.length)>0}hasIconName(){var t;return null===(t=this.actions)||void 0===t?void 0:t.some((t=>null!=t.iconName))}controlScrollPage(){window.removeEventListener("scroll",this.updatePosition.bind(this)),window.addEventListener("scroll",this.updatePosition.bind(this))}handlerButtonClick(){this.showActions()}actionClick(t){this._selectedAction=t,this.hideActions(),this.ezAction.emit(t)}componentWillLoad(){if(null==this.actions){this.actions=[];const t=this._element.querySelectorAll("action");t&&t.forEach((t=>{let i=t.innerText,o=t.getAttribute("value"),n=!("false"===t.getAttribute("enabled"));o||(o=i),this.actions.push({label:i,value:o,enabled:n}),t.hidden=!0}))}}disconnectedCallback(){this.ezDisconnectedActionButtons.emit()}componentDidLoad(){c.applyVarsButton(this._element,this._button),e.addIDInfo(this._element),this.controlScrollPage()}componentDidRender(){var t;null==this._floatingID&&(null===(t=this._actionsList)||void 0===t||t.remove()),this.hasLabelOrCheckOption()&&(this.value?this._selectedAction=this.actions.find((t=>t.value===this.value)):this._selectedAction||(this._selectedAction=this.actions[0]))}buildActionElement(t){var i;if(t){if(null!=t.itemBuilder){const i=t.itemBuilder(this._element,t);return"string"==typeof i?o("div",{class:"ez-actions-button__btn-action",innerHTML:i}):i}return o("ez-button",{size:"small",label:t.label,onClick:()=>this.actionClick(t),enabled:t.enabled,class:"ez-actions-button__btn-action"+(this.checkOption||this.hasIconName()?" ez-actions-button__btn-action--spaced":"")},this.checkOption&&(null===(i=this._selectedAction)||void 0===i?void 0:i.value)===t.value&&o("ez-icon",{class:"ez-actions-button__icon-check",slot:"leftIcon",size:"small",iconName:"check"}),!this.checkOption&&t.iconName&&o("ez-icon",{class:"ez-actions-button__icon-item",slot:"leftIcon",size:"small",iconName:t.iconName}))}}render(){var t;return o(n,null,o("ez-button",{ref:t=>this._button=t,class:(this.isTransparent?"ez-actions-button__btn-transparent":"")+(this.showLabel?" ez-actions-button__btn-label":""),label:this.showLabel&&(null===(t=this._selectedAction)||void 0===t?void 0:t.label),enabled:this.enabled,mode:this.showLabel?void 0:"icon",iconName:this.showLabel?"":this.displayIcon||"dots-vertical",size:this.size,onClick:()=>this.handlerButtonClick()},this.showLabel&&o("ez-icon",{class:"ez-actions-button__icon-right",slot:"rightIcon",iconName:this.displayIcon||"dots-vertical"})),o("section",{class:"ez-actions-button__list-container",ref:t=>this._listContainer=t},this.arrowActive&&o("div",{class:"ez-actions-button__arrow ez-actions-button__arrow--"+(this.size||"small")+(this.isTransparent?" ez-actions-button__arrow--upped":"")}),o("div",{ref:t=>this._actionsList=t,class:"ez-actions-button__actions-list ez-actions-button__actions-list--max-height"+(this.arrowActive&&!this.isTransparent?" ez-actions-button__actions-list--lowered":"")},this.actions.map((t=>this.buildActionElement(t))))))}get _element(){return s(this)}};r.style=":host{--ez-actions-button__actions-list--border-radius:var(--border--radius-medium, 12px);--ez-actions-button__actions-list--box-shadow:var(--shadow, 0px 0px 16px 0px #000);--ez-actions-button__actions-list--background-color:var(--background--xlight, #fff);--ez-actions-button__actions-list--padding:var(--space--small, 6px);--ez-actions-button__actions-list--top-margin:var(--space-small, 6px);--ez-actions-button__actions-list--z-index:var(--ez-elevation--8, 8);--ez-actions-button__actions-max-height:415px;--ez-actions-button__btn-action--min-width:'auto';--ez-actions-button__btn-action--background-color:var(--background--xlight, #fff);display:flex;flex-direction:column;height:fit-content;user-select:none}.ez-actions-button__actions-list{display:flex;flex-direction:column;position:fixed;width:fit-content;height:fit-content;overflow-y:auto;scrollbar-width:thin;z-index:var(--ez-actions-button__actions-list--z-index);padding:var(--ez-actions-button__actions-list--padding);margin-top:var(--ez-actions-button__actions-list--top-margin);background-color:var(--ez-actions-button__actions-list--background-color);border-radius:var(--ez-actions-button__actions-list--border-radius);box-shadow:var(--ez-actions-button__actions-list--box-shadow)}.ez-actions-button__actions-list--max-height{max-height:var(--ez-actions-button__actions-max-height)}.ez-actions-button__actions-list--lowered{margin-top:calc(var(--ez-actions-button__actions-list--top-margin) + 6px)}.ez-actions-button__btn-action{--ez-button--justify-content:flex-start;--ez-button--width:100%;--ez-button--min-width:var(--ez-actions-button__btn-action--min-width);--ez-button--background-color:var(--ez-actions-button__btn-action--background-color);--ez-button--font-weight:var(--text-weight--medium, 400);--ez-button--padding-left:var(--space--medium, 12px);--ez-button--padding-right:var(--space--medium, 12px)}.ez-actions-button__btn-action--spaced{--ez-button--padding-left:calc(var(--space--medium, 12px) + 24px)}.ez-actions-button__icon-right{margin-left:var(--space--small, 6px)}.ez-actions-button__icon-check,.ez-actions-button__icon-item{position:absolute;left:var(--space--medium, 12px)}.ez-actions-button__icon-check{color:var(--ez-button--hover-color)}.ez-actions-button__arrow{position:absolute;border-left:10px solid transparent;border-right:10px solid transparent;width:0;height:0;z-index:calc(var(--ez-actions-button__actions-list--z-index) + 1);border-bottom:15px solid var(--ez-actions-button__btn-action--background-color)}.ez-actions-button__arrow--upped{margin-top:calc((var(--ez-actions-button__actions-list--top-margin) + 2px) * -1)}.ez-actions-button__arrow--small{margin-left:6px}.ez-actions-button__arrow--medium{margin-left:11px}.ez-actions-button__arrow--large{margin-left:13px}.ez-actions-button__arrow:only-child{display:none}.ez-actions-button__btn-transparent{--ez-button--background-color:transparent;--ez-button--hover--background-color:transparent;--ez-button--active--background-color:transparent;--ez-button--focus--border:none}.ez-actions-button__btn-label{--ez-button--padding-left:var(--space--medium, 12px);--ez-button--padding-right:var(--space--medium, 12px)}.ez-actions-button__list-container{position:relative}.ez-actions-button--bottom-padding{padding-bottom:var(--space--small, 6px)}";export{r as ez_actions_button}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,h as i,H as s,g as h}from"./p-23a36bb6.js";import{StringUtils as n}from"@sankhyalabs/core";var r=function(t,i){return Number(t.slice(0,-1*i.length))},e=function(t){return t.endsWith("px")?{value:t,type:"px",numeric:r(t,"px")}:t.endsWith("fr")?{value:t,type:"fr",numeric:r(t,"fr")}:t.endsWith("%")?{value:t,type:"%",numeric:r(t,"%")}:"auto"===t?{value:t,type:"auto"}:null},o=function(t){return t.split(" ").map(e)},u=function(t,i,s){return i.concat(s).map((function(i){return i.style[t]})).filter((function(t){return void 0!==t&&""!==t}))},c=function(t){for(var i=0;i<t.length;i++)if(t[i].numeric>0)return i;return null},a=function(){return!1},f=function(t,i,s){t.style[i]=s},l=function(t,i,s){var h=t[i];return void 0!==h?h:s};function d(t){var i;return(i=[]).concat.apply(i,Array.from(t.ownerDocument.styleSheets).map((function(t){var i=[];try{i=Array.from(t.cssRules||[])}catch(t){}return i}))).filter((function(i){var s=!1;try{s=t.matches(i.selectorText)}catch(t){}return s}))}var m=function(t,i,s){this.direction=t,this.element=i.element,this.track=i.track,"column"===t?(this.gridTemplateProp="grid-template-columns",this.gridGapProp="grid-column-gap",this.cursor=l(s,"columnCursor",l(s,"cursor","col-resize")),this.snapOffset=l(s,"columnSnapOffset",l(s,"snapOffset",30)),this.dragInterval=l(s,"columnDragInterval",l(s,"dragInterval",1)),this.clientAxis="clientX",this.optionStyle=l(s,"gridTemplateColumns")):"row"===t&&(this.gridTemplateProp="grid-template-rows",this.gridGapProp="grid-row-gap",this.cursor=l(s,"rowCursor",l(s,"cursor","row-resize")),this.snapOffset=l(s,"rowSnapOffset",l(s,"snapOffset",30)),this.dragInterval=l(s,"rowDragInterval",l(s,"dragInterval",1)),this.clientAxis="clientY",this.optionStyle=l(s,"gridTemplateRows")),this.onDragStart=l(s,"onDragStart",a),this.onDragEnd=l(s,"onDragEnd",a),this.onDrag=l(s,"onDrag",a),this.writeStyle=l(s,"writeStyle",f),this.startDragging=this.startDragging.bind(this),this.stopDragging=this.stopDragging.bind(this),this.drag=this.drag.bind(this),this.minSizeStart=i.minSizeStart,this.minSizeEnd=i.minSizeEnd,i.element&&(this.element.addEventListener("mousedown",this.startDragging),this.element.addEventListener("touchstart",this.startDragging))};m.prototype.getDimensions=function(){var t=this.grid.getBoundingClientRect(),i=t.width,s=t.height,h=t.bottom,n=t.left,r=t.right;"column"===this.direction?(this.start=t.top,this.end=h,this.size=s):"row"===this.direction&&(this.start=n,this.end=r,this.size=i)},m.prototype.getSizeAtTrack=function(t,i){return function(t,i,s,h){return void 0===s&&(s=0),void 0===h&&(h=!1),i.slice(0,h?t+1:t).reduce((function(t,i){return t+i.numeric}),0)+(s?t*s:0)}(t,this.computedPixels,this.computedGapPixels,i)},m.prototype.getSizeOfTrack=function(t){return this.computedPixels[t].numeric},m.prototype.getRawTracks=function(){var t=u(this.gridTemplateProp,[this.grid],d(this.grid));if(!t.length){if(this.optionStyle)return this.optionStyle;throw Error("Unable to determine grid template tracks from styles.")}return t[0]},m.prototype.getGap=function(){var t=u(this.gridGapProp,[this.grid],d(this.grid));return t.length?t[0]:null},m.prototype.getRawComputedTracks=function(){return window.getComputedStyle(this.grid)[this.gridTemplateProp]},m.prototype.getRawComputedGap=function(){return window.getComputedStyle(this.grid)[this.gridGapProp]},m.prototype.setTracks=function(t){this.tracks=t.split(" "),this.trackValues=o(t)},m.prototype.setComputedTracks=function(t){this.computedTracks=t.split(" "),this.computedPixels=o(t)},m.prototype.setGap=function(t){this.gap=t},m.prototype.setComputedGap=function(t){var i;this.computedGap=t,this.computedGapPixels=((i=this.computedGap).endsWith("px")?Number(i.slice(0,-1*"px".length)):null)||0},m.prototype.getMousePosition=function(t){return"touches"in t?t.touches[0][this.clientAxis]:t[this.clientAxis]},m.prototype.startDragging=function(t){if(!("button"in t)||0===t.button){t.preventDefault(),this.grid=this.element?this.element.parentNode:t.target.parentNode,this.getDimensions(),this.setTracks(this.getRawTracks()),this.setComputedTracks(this.getRawComputedTracks()),this.setGap(this.getGap()),this.setComputedGap(this.getRawComputedGap());var i=this.trackValues.filter((function(t){return"%"===t.type})),s=this.trackValues.filter((function(t){return"fr"===t.type}));if(this.totalFrs=s.length,this.totalFrs){var h=c(s);null!==h&&(this.frToPixels=this.computedPixels[h].numeric/s[h].numeric)}if(i.length){var n=c(i);null!==n&&(this.percentageToPixels=this.computedPixels[n].numeric/i[n].numeric)}var r=this.getSizeAtTrack(this.track,!1)+this.start;if(this.dragStartOffset=this.getMousePosition(t)-r,this.aTrack=this.track-1,!(this.track<this.tracks.length-1))throw Error("Invalid track index: "+this.track+". Track must be between two other tracks and only "+this.tracks.length+" tracks were found.");this.bTrack=this.track+1,this.aTrackStart=this.getSizeAtTrack(this.aTrack,!1)+this.start,this.bTrackEnd=this.getSizeAtTrack(this.bTrack,!0)+this.start,this.dragging=!0,window.addEventListener("mouseup",this.stopDragging),window.addEventListener("touchend",this.stopDragging),window.addEventListener("touchcancel",this.stopDragging),window.addEventListener("mousemove",this.drag),window.addEventListener("touchmove",this.drag),this.grid.addEventListener("selectstart",a),this.grid.addEventListener("dragstart",a),this.grid.style.userSelect="none",this.grid.style.webkitUserSelect="none",this.grid.style.MozUserSelect="none",this.grid.style.pointerEvents="none",this.grid.style.cursor=this.cursor,window.document.body.style.cursor=this.cursor,this.onDragStart(this.direction,this.track)}},m.prototype.stopDragging=function(){this.dragging=!1,this.cleanup(),this.onDragEnd(this.direction,this.track),this.needsDestroy&&(this.element&&(this.element.removeEventListener("mousedown",this.startDragging),this.element.removeEventListener("touchstart",this.startDragging)),this.destroyCb(),this.needsDestroy=!1,this.destroyCb=null)},m.prototype.drag=function(t){var i=this.getMousePosition(t),s=this.getSizeOfTrack(this.track),h=this.aTrackStart+this.minSizeStart+this.dragStartOffset+this.computedGapPixels,n=this.bTrackEnd-this.minSizeEnd-this.computedGapPixels-(s-this.dragStartOffset);i<h+this.snapOffset&&(i=h),i>n-this.snapOffset&&(i=n),i<h?i=h:i>n&&(i=n);var r=i-this.aTrackStart-this.dragStartOffset-this.computedGapPixels,e=this.bTrackEnd-i+this.dragStartOffset-s-this.computedGapPixels;if(this.dragInterval>1){var o=Math.round(r/this.dragInterval)*this.dragInterval;e-=o-r,r=o}r<this.minSizeStart&&(r=this.minSizeStart),e<this.minSizeEnd&&(e=this.minSizeEnd),"px"===this.trackValues[this.aTrack].type?this.tracks[this.aTrack]=r+"px":"fr"===this.trackValues[this.aTrack].type?this.tracks[this.aTrack]=1===this.totalFrs?"1fr":r/this.frToPixels+"fr":"%"===this.trackValues[this.aTrack].type&&(this.tracks[this.aTrack]=r/this.percentageToPixels+"%"),"px"===this.trackValues[this.bTrack].type?this.tracks[this.bTrack]=e+"px":"fr"===this.trackValues[this.bTrack].type?this.tracks[this.bTrack]=1===this.totalFrs?"1fr":e/this.frToPixels+"fr":"%"===this.trackValues[this.bTrack].type&&(this.tracks[this.bTrack]=e/this.percentageToPixels+"%");var u=this.tracks.join(" ");this.writeStyle(this.grid,this.gridTemplateProp,u),this.onDrag(this.direction,this.track,u)},m.prototype.cleanup=function(){window.removeEventListener("mouseup",this.stopDragging),window.removeEventListener("touchend",this.stopDragging),window.removeEventListener("touchcancel",this.stopDragging),window.removeEventListener("mousemove",this.drag),window.removeEventListener("touchmove",this.drag),this.grid&&(this.grid.removeEventListener("selectstart",a),this.grid.removeEventListener("dragstart",a),this.grid.style.userSelect="",this.grid.style.webkitUserSelect="",this.grid.style.MozUserSelect="",this.grid.style.pointerEvents="",this.grid.style.cursor=""),window.document.body.style.cursor=""},m.prototype.destroy=function(t,i){void 0===t&&(t=!0),t||!1===this.dragging?(this.cleanup(),this.element&&(this.element.removeEventListener("mousedown",this.startDragging),this.element.removeEventListener("touchstart",this.startDragging)),i&&i()):(this.needsDestroy=!0,i&&(this.destroyCb=i))};var w=function(t,i,s){return i in t?t[i]:s},v=function(t,i){return function(s){if(s.track<1)throw Error("Invalid track index: "+s.track+". Track must be between two other tracks.");var h="column"===t?i.columnMinSizes||{}:i.rowMinSizes||{},n="column"===t?"columnMinSize":"rowMinSize";return new m(t,Object.assign({},{minSizeStart:w(h,s.track-1,l(i,n,l(i,"minSize",0))),minSizeEnd:w(h,s.track+1,l(i,n,l(i,"minSize",0)))},s),i)}},p=function(t){var i=this;this.columnGutters={},this.rowGutters={},this.options=Object.assign({},{columnGutters:t.columnGutters||[],rowGutters:t.rowGutters||[],columnMinSizes:t.columnMinSizes||{},rowMinSizes:t.rowMinSizes||{}},t),this.options.columnGutters.forEach((function(t){i.columnGutters[t.track]=v("column",i.options)(t)})),this.options.rowGutters.forEach((function(t){i.rowGutters[t.track]=v("row",i.options)(t)}))};p.prototype.addColumnGutter=function(t,i){this.columnGutters[i]&&this.columnGutters[i].destroy(),this.columnGutters[i]=v("column",this.options)({element:t,track:i})},p.prototype.addRowGutter=function(t,i){this.rowGutters[i]&&this.rowGutters[i].destroy(),this.rowGutters[i]=v("row",this.options)({element:t,track:i})},p.prototype.removeColumnGutter=function(t,i){var s=this;void 0===i&&(i=!0),this.columnGutters[t]&&this.columnGutters[t].destroy(i,(function(){delete s.columnGutters[t]}))},p.prototype.removeRowGutter=function(t,i){var s=this;void 0===i&&(i=!0),this.rowGutters[t]&&this.rowGutters[t].destroy(i,(function(){delete s.rowGutters[t]}))},p.prototype.handleDragStart=function(t,i,s){"column"===i?(this.columnGutters[s]&&this.columnGutters[s].destroy(),this.columnGutters[s]=v("column",this.options)({track:s}),this.columnGutters[s].startDragging(t)):"row"===i&&(this.rowGutters[s]&&this.rowGutters[s].destroy(),this.rowGutters[s]=v("row",this.options)({track:s}),this.rowGutters[s].startDragging(t))},p.prototype.destroy=function(t){var i=this;void 0===t&&(t=!0),Object.keys(this.columnGutters).forEach((function(s){return i.columnGutters[s].destroy(t,(function(){delete i.columnGutters[s]}))})),Object.keys(this.rowGutters).forEach((function(s){return i.rowGutters[s].destroy(t,(function(){delete i.rowGutters[s]}))}))};const g=class{constructor(i){t(this,i),this._items=[],this.direction="column"}componentDidLoad(){this._panelID=n.generateUUID(),this._element.dataset.panelId=this._panelID;let t=Array.from(this._element.children);this._items=t.filter((t=>{var i;return"EZ-SPLIT-ITEM"===(null===(i=t.tagName)||void 0===i?void 0:i.toUpperCase())}));let i=1;this._items.forEach(((t,s)=>{t.dataset.trackNumber=i.toString(),this._items.length>1&&s!=this._items.length-1&&this.addItemGutter(t),i+=2})),this.initSplit()}initSplit(){var t;this._items.length&&(this._element.style["row"==this.direction?"grid-template-rows":"grid-template-columns"]=this.getGridTemplate(),t=this.getGutters(),new p(t))}getGutters(){const t={columnGutters:[],rowGutters:[]};if(!this._items.length)return t;const i="row"==this.direction?"rowGutters":"columnGutters";return this._items.forEach(((s,h)=>{if(h==this._items.length-1)return;let n=s.dataset.trackNumber;h===this._items.length-1&&(n=this._items.length.toString()),t[i].push({track:Number(n),element:this._element.querySelector(`ez-split-panel[data-panel-id="${this._panelID}"] > [data-item-track="${s.dataset.trackNumber}"]`)})})),t}addItemGutter(t){const i=document.createElement("div");i.classList.add("ez-split-gutter"),i.classList.add(this.direction),i.dataset.itemTrack=`${t.dataset.trackNumber}`,i.dataset.trackNumber=(Number(t.dataset.trackNumber)+1).toString(),t.parentNode.insertBefore(i,t.nextSibling)}getElementStyle(){return{display:"grid",height:"100%",width:"100%"}}getGridTemplate(){let t="";return this._items.forEach(((i,s)=>{t+=s!==this._items.length-1?0!==s?" 1fr 5px":"1fr 5px":" 1fr"})),t}render(){return i(s,{style:this.getElementStyle()})}get _element(){return h(this)}};g.style=".ez-split-gutter{cursor:grab;background-color:transparent}";export{g as ez_split_panel}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
import { IAction } from '../../utils';
|
|
2
3
|
export declare class EzActionsButton {
|
|
3
4
|
private _actionsList;
|
|
4
5
|
private _listContainer;
|
|
@@ -48,10 +49,22 @@ export declare class EzActionsButton {
|
|
|
48
49
|
* Emitido ao acionar uma ação.
|
|
49
50
|
*/
|
|
50
51
|
ezAction: EventEmitter<IAction>;
|
|
52
|
+
/**
|
|
53
|
+
* Emitido ao mostrar a lista de ações
|
|
54
|
+
*/
|
|
55
|
+
ezPopoverOpen: EventEmitter<HTMLElement>;
|
|
56
|
+
/**
|
|
57
|
+
* Emitido quando componente é desconectado da DOM
|
|
58
|
+
*/
|
|
59
|
+
ezDisconnectedActionButtons: EventEmitter<void>;
|
|
51
60
|
/**
|
|
52
61
|
* Oculta a lista de ações.
|
|
53
62
|
*/
|
|
54
63
|
hideActions(): Promise<void>;
|
|
64
|
+
/**
|
|
65
|
+
* Apresenta a lista de ações.
|
|
66
|
+
*/
|
|
67
|
+
showActions(): Promise<void>;
|
|
55
68
|
/**
|
|
56
69
|
* Verifica se a lista de ações está aberta.
|
|
57
70
|
*/
|
|
@@ -59,7 +72,6 @@ export declare class EzActionsButton {
|
|
|
59
72
|
innerClickCheck: (floatingContainer: HTMLElement, node: HTMLElement) => boolean;
|
|
60
73
|
private getFloatOptions;
|
|
61
74
|
private getSideLimit;
|
|
62
|
-
private showActions;
|
|
63
75
|
private updatePosition;
|
|
64
76
|
private getPositionTop;
|
|
65
77
|
private getBoundingLeft;
|
|
@@ -70,13 +82,9 @@ export declare class EzActionsButton {
|
|
|
70
82
|
private handlerButtonClick;
|
|
71
83
|
private actionClick;
|
|
72
84
|
componentWillLoad(): void;
|
|
85
|
+
disconnectedCallback(): void;
|
|
73
86
|
componentDidLoad(): void;
|
|
74
87
|
componentDidRender(): void;
|
|
88
|
+
buildActionElement(action: IAction): HTMLElement;
|
|
75
89
|
render(): any;
|
|
76
90
|
}
|
|
77
|
-
export interface IAction {
|
|
78
|
-
value: string;
|
|
79
|
-
label: string;
|
|
80
|
-
enabled?: boolean;
|
|
81
|
-
iconName?: string;
|
|
82
|
-
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { SlotBuilder } from '../ez-list/ez-list';
|
|
2
|
+
export declare class EzAlertList {
|
|
3
|
+
_element: HTMLElement;
|
|
4
|
+
private _container;
|
|
5
|
+
private _overlayId;
|
|
6
|
+
private _overlayRef;
|
|
7
|
+
/**
|
|
8
|
+
* Lista de alertas que devem ser apresentados no componente.
|
|
9
|
+
*/
|
|
10
|
+
alerts: AlertItem[];
|
|
11
|
+
/**
|
|
12
|
+
* Define se o componente pode ser arrastado na tela.
|
|
13
|
+
*/
|
|
14
|
+
enableDragAndDrop: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Define se o componente pode ser expandido.
|
|
17
|
+
*/
|
|
18
|
+
enableExpand: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Define builder para elementos a direita do componente
|
|
21
|
+
*/
|
|
22
|
+
itemRightSlotBuilder: SlotBuilder;
|
|
23
|
+
/**
|
|
24
|
+
* Define se o componente está aberto.
|
|
25
|
+
*/
|
|
26
|
+
opened: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Define se o componente está expandido.
|
|
29
|
+
*/
|
|
30
|
+
expanded: boolean;
|
|
31
|
+
observeOpened(): void;
|
|
32
|
+
/**
|
|
33
|
+
* Retorna o id do alerta a partir do título e do índice.
|
|
34
|
+
*/
|
|
35
|
+
private alertId;
|
|
36
|
+
/**
|
|
37
|
+
* Retorna o título do alerta a partir do id.
|
|
38
|
+
*/
|
|
39
|
+
private getAlertTitle;
|
|
40
|
+
/**
|
|
41
|
+
* Retorna o texto do título do alerta.
|
|
42
|
+
*/
|
|
43
|
+
private getTitleText;
|
|
44
|
+
/**
|
|
45
|
+
* Gerencia a exibição do conteúdo expandido.
|
|
46
|
+
*/
|
|
47
|
+
private toggleExpandContainer;
|
|
48
|
+
/**
|
|
49
|
+
* Gerencia a exibição do overlay usando FloatingManager do Core.
|
|
50
|
+
*/
|
|
51
|
+
private manageOverlay;
|
|
52
|
+
/**
|
|
53
|
+
* Atualiza a posição da lista.
|
|
54
|
+
*/
|
|
55
|
+
private updatePosition;
|
|
56
|
+
/**
|
|
57
|
+
* Retorna valores padrões do componente
|
|
58
|
+
*/
|
|
59
|
+
private getFloatOptions;
|
|
60
|
+
/**
|
|
61
|
+
* Retorna o valor para o alinhamento horizontal do componente.
|
|
62
|
+
*/
|
|
63
|
+
private getBoundingRight;
|
|
64
|
+
/**
|
|
65
|
+
* Retorna o valor para o alinhamento vertical do componente.
|
|
66
|
+
*/
|
|
67
|
+
private getBoundingBottom;
|
|
68
|
+
private dataElementId;
|
|
69
|
+
componentDidRender(): void;
|
|
70
|
+
componentWillLoad(): void;
|
|
71
|
+
render(): any;
|
|
72
|
+
}
|
|
73
|
+
export interface AlertItem {
|
|
74
|
+
title: string;
|
|
75
|
+
detail?: string;
|
|
76
|
+
}
|
|
@@ -8,12 +8,10 @@ export declare class EzComboBox {
|
|
|
8
8
|
private _floatingID;
|
|
9
9
|
private _source;
|
|
10
10
|
private _changeDeboucingTimeout;
|
|
11
|
-
private _limitCharsToSearch;
|
|
12
11
|
private _deboucingTime;
|
|
13
12
|
private _maxWidthValue;
|
|
14
13
|
private _tabPressed;
|
|
15
14
|
private _textEmptyList;
|
|
16
|
-
private _textEmptySearch;
|
|
17
15
|
private _lookupMode;
|
|
18
16
|
private _resizeObserver;
|
|
19
17
|
private el;
|
|
@@ -22,6 +20,10 @@ export declare class EzComboBox {
|
|
|
22
20
|
private _startLoading;
|
|
23
21
|
private _showLoading;
|
|
24
22
|
private _criteria;
|
|
23
|
+
/**
|
|
24
|
+
* Define o limite de caracteres mínimo para realizar uma pesquisa
|
|
25
|
+
*/
|
|
26
|
+
limitCharsToSearch: number;
|
|
25
27
|
/**
|
|
26
28
|
* Define o valor do campo.
|
|
27
29
|
*/
|
|
@@ -43,10 +45,6 @@ export declare class EzComboBox {
|
|
|
43
45
|
* Define uma mensagem de orientação ao usuário, colocando o campo em modo inválido.
|
|
44
46
|
*/
|
|
45
47
|
errorMessage: string;
|
|
46
|
-
/**
|
|
47
|
-
* Se true ativa o modo pesquisa do ez-combo-box.
|
|
48
|
-
*/
|
|
49
|
-
searchMode: boolean;
|
|
50
48
|
/**
|
|
51
49
|
* Se true a opção selecionada exibe o `value` junto com `label`.
|
|
52
50
|
*/
|
|
@@ -75,10 +73,18 @@ export declare class EzComboBox {
|
|
|
75
73
|
* Define o tamanho do campo.
|
|
76
74
|
*/
|
|
77
75
|
mode: "slim" | "regular";
|
|
76
|
+
/**
|
|
77
|
+
* Quando verdadeiro deixa de exibir a mensagem de erro (se existente) quando focar em um elemento diferente.
|
|
78
|
+
*/
|
|
79
|
+
hideErrorOnFocusOut: boolean;
|
|
78
80
|
/**
|
|
79
81
|
* Define um posicionamento fixo para a lista de opções do CheckBox.
|
|
80
82
|
*/
|
|
81
83
|
listOptionsPosition: IEzCheckBoxListPosition;
|
|
84
|
+
/**
|
|
85
|
+
* Informa se a pesquisa é do tipo texto.
|
|
86
|
+
*/
|
|
87
|
+
isTextSearch: boolean;
|
|
82
88
|
/**
|
|
83
89
|
* Emitido quando acontece a alteração de valor do campo.
|
|
84
90
|
*/
|
|
@@ -122,20 +128,11 @@ export declare class EzComboBox {
|
|
|
122
128
|
private scrollToOption;
|
|
123
129
|
private selectCurrentOption;
|
|
124
130
|
private updateSource;
|
|
125
|
-
private clearSource;
|
|
126
131
|
private selectOption;
|
|
127
132
|
private loadOptions;
|
|
128
133
|
private cancelPreselection;
|
|
129
134
|
private setInputValue;
|
|
130
135
|
private clearSearch;
|
|
131
|
-
private controlListWithOnlyOne;
|
|
132
|
-
private controlEmptySearch;
|
|
133
|
-
private validateDescriptionValue;
|
|
134
|
-
private loadDescriptionValue;
|
|
135
|
-
private setDescriptionValue;
|
|
136
|
-
private loadOptionValue;
|
|
137
|
-
private showNoResultMessage;
|
|
138
|
-
private getFieldLabel;
|
|
139
136
|
private resetOptions;
|
|
140
137
|
componentWillLoad(): void;
|
|
141
138
|
componentDidRender(): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EventEmitter } from
|
|
1
|
+
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
2
|
import { DialogType } from "./DialogType";
|
|
3
3
|
declare class Message {
|
|
4
4
|
title: string;
|
|
@@ -15,6 +15,7 @@ declare class Message {
|
|
|
15
15
|
}
|
|
16
16
|
export declare class EzDialog {
|
|
17
17
|
_element: HTMLElement;
|
|
18
|
+
private readonly PRIMARY_BUTTON_ID;
|
|
18
19
|
private labelConfirm;
|
|
19
20
|
private labelCancel;
|
|
20
21
|
private btnConfirmDanger;
|
|
@@ -22,6 +23,7 @@ export declare class EzDialog {
|
|
|
22
23
|
private _currentMessage;
|
|
23
24
|
private _overlayRef;
|
|
24
25
|
private _overlayId;
|
|
26
|
+
private _canFocusOnPrimaryBtn;
|
|
25
27
|
/**
|
|
26
28
|
* Define se o ez-dialog será utilizado no modo de confirmação.
|
|
27
29
|
*/
|
|
@@ -58,7 +60,8 @@ export declare class EzDialog {
|
|
|
58
60
|
* Define função a ser executada antes de fechar o modal
|
|
59
61
|
*/
|
|
60
62
|
beforeClose: Function;
|
|
61
|
-
observeConfig(): void;
|
|
63
|
+
observeConfig(newValue: boolean, oldValue: boolean): void;
|
|
64
|
+
handleKeyDown(event: KeyboardEvent): void;
|
|
62
65
|
manageOverflow(): void;
|
|
63
66
|
private manageOverlay;
|
|
64
67
|
private handleButtonClick;
|
|
@@ -77,6 +80,9 @@ export declare class EzDialog {
|
|
|
77
80
|
componentWillRender(): void;
|
|
78
81
|
componentDidLoad(): void;
|
|
79
82
|
componentDidRender(): void;
|
|
83
|
+
private focusOnDialog;
|
|
84
|
+
private handleFocusOnPrimaryButton;
|
|
85
|
+
private focusOnPrimaryButton;
|
|
80
86
|
render(): any;
|
|
81
87
|
}
|
|
82
88
|
export {};
|
|
@@ -34,6 +34,11 @@ export declare class EzDropdown {
|
|
|
34
34
|
* o IDropdownSubAction deve ser enviado como data do evento.
|
|
35
35
|
*/
|
|
36
36
|
ezSubActionClick: EventEmitter<IDropdownSubAction>;
|
|
37
|
+
/**
|
|
38
|
+
* Emitido quando ocorrer um click fora do componente.
|
|
39
|
+
*/
|
|
40
|
+
ezOutsideClick: EventEmitter<void>;
|
|
41
|
+
handleClickOutside(event: MouseEvent): void;
|
|
37
42
|
private defaultItemBuilder;
|
|
38
43
|
private getMaxOrder;
|
|
39
44
|
private hasIcon;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { DataUnit } from "@sankhyalabs/core";
|
|
2
2
|
import { EventEmitter } from "../../stencil-public-runtime";
|
|
3
3
|
import { Tab } from "../ez-tabselector/ez-tabselector";
|
|
4
|
-
import { IFormConfig, IRecordValidator } from
|
|
4
|
+
import { IFieldConfig, IFormConfig, IRecordValidator } from '../../utils/form/interfaces';
|
|
5
|
+
import { FormItems } from "../ez-form-view/structure";
|
|
5
6
|
export declare class EzForm {
|
|
6
7
|
private _element;
|
|
7
8
|
private _store;
|
|
@@ -20,10 +21,26 @@ export declare class EzForm {
|
|
|
20
21
|
* Define um validador responsável pela integridade dos registros.
|
|
21
22
|
*/
|
|
22
23
|
recordsValidator: IRecordValidator;
|
|
24
|
+
/**
|
|
25
|
+
* Determina o campo que deve ficar em evidência.
|
|
26
|
+
*/
|
|
27
|
+
fieldToFocus: string;
|
|
28
|
+
/**
|
|
29
|
+
* Emitido quando o campo recebe foco
|
|
30
|
+
*/
|
|
31
|
+
ezFormRequestClearFieldToFocus: EventEmitter<void>;
|
|
32
|
+
/**
|
|
33
|
+
* Emitido quando o campo recebe foco
|
|
34
|
+
*/
|
|
35
|
+
ezFormSetFields: EventEmitter<Array<IFieldConfig>>;
|
|
23
36
|
/**
|
|
24
37
|
* Evento disparado quando o formulário está disponível na DOM.
|
|
25
38
|
*/
|
|
26
39
|
ezReady: EventEmitter<void>;
|
|
40
|
+
/**
|
|
41
|
+
* Responsável por notificar quando ocorrer a renderização de itens do formulário.
|
|
42
|
+
*/
|
|
43
|
+
formItemsReady: EventEmitter<FormItems>;
|
|
27
44
|
/**
|
|
28
45
|
* Realiza validação no conteúdo de todos os campos.
|
|
29
46
|
*/
|
|
@@ -36,6 +53,7 @@ export declare class EzForm {
|
|
|
36
53
|
componentWillLoad(): void;
|
|
37
54
|
onDataUnitAction: (action: any) => void;
|
|
38
55
|
componentDidRender(): void;
|
|
56
|
+
private handleFieldToFocus;
|
|
39
57
|
disconnectedCallback(): void;
|
|
40
58
|
buildIdTabSelector(tabs: Array<Tab>): Array<Tab>;
|
|
41
59
|
render(): any;
|
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
2
|
import { IFormViewField } from './interfaces/IFormViewField';
|
|
3
|
+
import { FormItems } from './structure';
|
|
3
4
|
export declare class EzFormView {
|
|
4
5
|
_element: HTMLEzFormViewElement;
|
|
5
6
|
/**
|
|
6
7
|
* Evento emitido quando o componente foi totalmente carregado na DOM.
|
|
7
8
|
*/
|
|
8
9
|
ezContentReady: EventEmitter<Array<HTMLElement>>;
|
|
10
|
+
/**
|
|
11
|
+
* Responsável por notificar quando ocorrer a renderização de itens do formulário.
|
|
12
|
+
*/
|
|
13
|
+
formItemsReady: EventEmitter<FormItems>;
|
|
9
14
|
/**
|
|
10
15
|
* Define a lista de metadados usada para criar os campos de user interface.
|
|
11
16
|
*/
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
declare class FormItem {
|
|
2
|
+
private elem;
|
|
3
|
+
constructor(elem: HTMLElement);
|
|
4
|
+
addRightElement(el: Element): void;
|
|
5
|
+
removeRightElement(): void;
|
|
6
|
+
get fieldName(): string;
|
|
7
|
+
}
|
|
8
|
+
export declare class FormItems {
|
|
9
|
+
items: Map<string, FormItem>;
|
|
10
|
+
private formId;
|
|
11
|
+
constructor(items: Array<HTMLElement>, formId?: string);
|
|
12
|
+
getItem(name: string): FormItem;
|
|
13
|
+
get formName(): string;
|
|
14
|
+
}
|
|
15
|
+
export {};
|
|
@@ -2,7 +2,6 @@ import { DataUnit, Filter } from '@sankhyalabs/core';
|
|
|
2
2
|
import { Components } from '../../../components';
|
|
3
3
|
import FilterCollumn = Components.FilterColumn;
|
|
4
4
|
import { IRecordValidator } from '../../../utils/form/interfaces';
|
|
5
|
-
import { GridApi } from 'ag-grid-community';
|
|
6
5
|
/**
|
|
7
6
|
* O intuito desta abstração, é isolar o componente EzGrid de uma implementação
|
|
8
7
|
* específica, permitindo que usemos componentes de terceiros sem um acoplamento
|
|
@@ -22,10 +21,6 @@ export default interface EzGridController {
|
|
|
22
21
|
* @param options - A contextualização dessa instância de grade.
|
|
23
22
|
*/
|
|
24
23
|
initDatagrid(container: HTMLElement, options: EzGridOptions): void;
|
|
25
|
-
/**
|
|
26
|
-
* Chamado pelo EzGrid para retornar a api de manipulação da grade.
|
|
27
|
-
*/
|
|
28
|
-
getGridApi(): GridApi;
|
|
29
24
|
/**
|
|
30
25
|
* Método responsável por receber a definição das colunas.
|
|
31
26
|
* @param cols - Array contendo a definição de todas as colunas.
|
|
@@ -108,6 +103,10 @@ export default interface EzGridController {
|
|
|
108
103
|
* Método responsável por retornar a configuração da grade.
|
|
109
104
|
*/
|
|
110
105
|
getGridConfig(): Array<EzGridColumnConfig>;
|
|
106
|
+
/**
|
|
107
|
+
* Localiza determinada coluna tornando-a visível.
|
|
108
|
+
*/
|
|
109
|
+
locateColumn(columnName: string): void;
|
|
111
110
|
configFilterColumn(filterColumn: FilterCollumn): any;
|
|
112
111
|
getFilter(): Array<Filter> | undefined;
|
|
113
112
|
}
|
|
@@ -124,10 +123,14 @@ export interface EzGridOptions {
|
|
|
124
123
|
*/
|
|
125
124
|
onSelectionChange: Function;
|
|
126
125
|
/**
|
|
127
|
-
* Callback para reagir à
|
|
126
|
+
* Callback para reagir à troca de páginas
|
|
128
127
|
*/
|
|
129
128
|
onPaginationChange: Function;
|
|
130
129
|
/**
|
|
130
|
+
* Callback para reagir à atualização da paginação vinda do Parallel Loader
|
|
131
|
+
*/
|
|
132
|
+
onPaginationUpdate: Function;
|
|
133
|
+
/**
|
|
131
134
|
* Callback para reagir ao clique duplo na linha
|
|
132
135
|
*/
|
|
133
136
|
onDoubleClick: Function;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Sort, SortingProvider } from '@sankhyalabs/core';
|
|
2
2
|
import { Filter, FilterProvider } from '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
|
|
3
|
-
import { GridApi } from 'ag-grid-community';
|
|
4
3
|
import EzGridController, { EzGridColumn, EzGridColumnConfig, EzGridColumnMenuItemDef, EzGridOptions } from '../EzGridController';
|
|
5
4
|
export default class AgGridController implements EzGridController, SortingProvider, FilterProvider {
|
|
6
5
|
private readonly DEFAULT_ROW_HEIGHT;
|
|
@@ -36,8 +35,8 @@ export default class AgGridController implements EzGridController, SortingProvid
|
|
|
36
35
|
private showFilterColumn;
|
|
37
36
|
constructor(enterprise: boolean);
|
|
38
37
|
getGridConfig(): Array<EzGridColumnConfig>;
|
|
39
|
-
|
|
40
|
-
getSort(): Array<Sort>;
|
|
38
|
+
locateColumn(columnName: string): void;
|
|
39
|
+
getSort(_dataUnitName: string, defaultSorting: Array<Sort>): Array<Sort>;
|
|
41
40
|
getFilter(): Array<Filter> | undefined;
|
|
42
41
|
initDatagrid(container: HTMLElement, options: EzGridOptions): void;
|
|
43
42
|
private setFilterColumnLeftPosition;
|
|
@@ -10,6 +10,7 @@ export default class DataSource implements IServerSideDatasource {
|
|
|
10
10
|
quickFilter: QuickFilter;
|
|
11
11
|
readonly RECORD_ARCHIVE = "__RECORD_ARCHIVE__";
|
|
12
12
|
private duObserver;
|
|
13
|
+
private isSilentChange;
|
|
13
14
|
constructor(dataUnit: DataUnit, controller: EzGridController, options: EzGridOptions);
|
|
14
15
|
private updateSelection;
|
|
15
16
|
getRows(params: IServerSideGetRowsParams): void;
|
|
@@ -2,7 +2,7 @@ import { IHeaderParams } from 'ag-grid-community';
|
|
|
2
2
|
export interface IEzGridCustomHeaderParams {
|
|
3
3
|
tooltip?: string;
|
|
4
4
|
hasFilter?: () => boolean;
|
|
5
|
-
showColumnFilter?: (leftPosition: string) => void;
|
|
5
|
+
showColumnFilter?: (leftPosition: string, fromIcon: boolean) => void;
|
|
6
6
|
}
|
|
7
7
|
export declare class EzGridCustomHeader {
|
|
8
8
|
private params;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DataUnit } from '@sankhyalabs/core';
|
|
2
2
|
import { EventEmitter } from '../../stencil-public-runtime';
|
|
3
3
|
import { IMultiSelectionListDataSource } from '../ez-multi-selection-list/interfaces/IMultiSelectionListDataSource';
|
|
4
|
-
import {
|
|
4
|
+
import { EzGridColumn, EzGridColumnConfig, EzGridColumStateEvent, IGridConfig, IStatusResolver, StatusResolverFunction } from './controller/EzGridController';
|
|
5
5
|
import { ISelection, ISelectionToastConfig } from './interfaces';
|
|
6
6
|
import { IRecordValidator } from '../../utils/form/interfaces';
|
|
7
7
|
export declare class EzGrid {
|
|
@@ -11,6 +11,7 @@ export declare class EzGrid {
|
|
|
11
11
|
private _gridSelectionCounter;
|
|
12
12
|
private _resizeObserver;
|
|
13
13
|
private _messageFilterAppliedSuccess;
|
|
14
|
+
private _gridApi;
|
|
14
15
|
private _filterColumn;
|
|
15
16
|
_element: HTMLElement;
|
|
16
17
|
private _paginationInfo;
|
|
@@ -19,7 +20,7 @@ export declare class EzGrid {
|
|
|
19
20
|
private _isAllSelection;
|
|
20
21
|
private _currentPageSelected;
|
|
21
22
|
private _selectionCount;
|
|
22
|
-
private
|
|
23
|
+
private _hasLeftButtons;
|
|
23
24
|
/**
|
|
24
25
|
* Emitido quando acontece a alteração de estado das colunas do grid: Ordenação, largura, etc.
|
|
25
26
|
*/
|
|
@@ -113,6 +114,14 @@ export declare class EzGrid {
|
|
|
113
114
|
* Aplica um filtro rápido.
|
|
114
115
|
*/
|
|
115
116
|
quickFilter(term: string): Promise<void>;
|
|
117
|
+
/**
|
|
118
|
+
* Localiza determinada coluna tornando-a visível.
|
|
119
|
+
*/
|
|
120
|
+
locateColumn(columnName: string): Promise<void>;
|
|
121
|
+
/**
|
|
122
|
+
* Usa um argumento para filtrar as colunas po label
|
|
123
|
+
*/
|
|
124
|
+
filterColumns(search: string): Promise<Array<EzGridColumn>>;
|
|
116
125
|
observeConfig(config: IGridConfig): void;
|
|
117
126
|
onSelectionChange(evt: CustomEvent): void;
|
|
118
127
|
private setSelection;
|
|
@@ -128,14 +137,13 @@ export declare class EzGrid {
|
|
|
128
137
|
private buildDataElementId;
|
|
129
138
|
private previousPage;
|
|
130
139
|
private nextPage;
|
|
140
|
+
private resetPaginationState;
|
|
131
141
|
private getPaginationControl;
|
|
132
142
|
componentDidLoad(): void;
|
|
133
143
|
componentWillRender(): void;
|
|
134
144
|
componentDidRender(): void;
|
|
135
145
|
componentWillLoad(): void;
|
|
136
|
-
onDataUnitAction: (action: any) => void;
|
|
137
146
|
private getDataSource;
|
|
138
|
-
private
|
|
139
|
-
private formatLabel;
|
|
147
|
+
private hideHeader;
|
|
140
148
|
render(): any;
|
|
141
149
|
}
|
|
@@ -5,6 +5,8 @@ import { IMultiSelectionOption } from '../../ez-multi-selection-list/interfaces/
|
|
|
5
5
|
export declare class FilterColumn {
|
|
6
6
|
private readonly TOP_POSITION;
|
|
7
7
|
private readonly TOP_POSITION_HEADER_HIDDEN;
|
|
8
|
+
private readonly TOP_POSITION_NO_TASKBAR;
|
|
9
|
+
private readonly TOP_POSITION_NO_TASKBAR_HEADER_HIDDEN;
|
|
8
10
|
private readonly DEFAULT_HEIGHT;
|
|
9
11
|
private ezPopoverElement;
|
|
10
12
|
private ezMultiSelectionList;
|
|
@@ -13,19 +15,24 @@ export declare class FilterColumn {
|
|
|
13
15
|
columnName: string;
|
|
14
16
|
columnLabel: string;
|
|
15
17
|
gridHeaderHidden: boolean;
|
|
18
|
+
noHeaderTaskBar: boolean;
|
|
16
19
|
dataSource: IMultiSelectionListDataSource;
|
|
17
20
|
dataUnit: DataUnit;
|
|
18
21
|
options: IMultiSelectionOption[];
|
|
19
22
|
selectedItems: IMultiSelectionOption[];
|
|
20
23
|
fieldDescriptor: FieldDescriptor;
|
|
21
24
|
useOptions: boolean;
|
|
25
|
+
isTextSearch: boolean;
|
|
22
26
|
hide(): Promise<void>;
|
|
23
27
|
/**
|
|
24
28
|
* Abre o filtro de coluna.
|
|
25
29
|
* @Params IFilterColumnConfigs informações para configurar o filtro
|
|
26
30
|
*/
|
|
27
31
|
show(configs: IFilterColumnConfigs): Promise<void>;
|
|
32
|
+
private calculateLeftPosition;
|
|
33
|
+
private buildIsTextSearch;
|
|
28
34
|
private calcTopPosition;
|
|
35
|
+
private buildReferenceTopPosition;
|
|
29
36
|
private clearConfigs;
|
|
30
37
|
private canShow;
|
|
31
38
|
private submit;
|
|
@@ -42,6 +49,7 @@ export interface IFilterColumnConfigs {
|
|
|
42
49
|
columnLabel: string;
|
|
43
50
|
leftPosition: string;
|
|
44
51
|
filteredOptions?: IMultiSelectionOption[];
|
|
52
|
+
fromIcon?: boolean;
|
|
45
53
|
}
|
|
46
54
|
export interface IAppliedFilterColumnOptions {
|
|
47
55
|
field: string;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { DataUnit, Filter, Record } from "@sankhyalabs/core";
|
|
2
|
+
import { IColumnFilter } from "../interfaces/IColumnFilter";
|
|
3
|
+
import { IMultiSelectionOption } from "../../ez-multi-selection-list/interfaces/IMultiSelectionOption";
|
|
4
|
+
export declare class ColumnFilterManager {
|
|
5
|
+
static getColumnFilters(filters: Array<Filter>, fieldName: string): Map<string, IColumnFilter>;
|
|
6
|
+
static getFilterFunction(dataUnit: DataUnit, filters?: Array<IColumnFilter>): (record: Record) => boolean;
|
|
7
|
+
private static recordMatchesFilter;
|
|
8
|
+
static compileDistinct(fieldName: string, dataUnit: DataUnit): Array<IMultiSelectionOption>;
|
|
9
|
+
}
|