@sankhyalabs/ezui 0.0.0-bugfix-dev-KB-78812-2.0 → 0.0.0-bugfix-dev-KB-76362.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/RecordValidationProcessor-10846595.js +108 -0
- package/dist/cjs/ez-button.cjs.entry.js +1 -1
- package/dist/cjs/ez-card-item_3.cjs.entry.js +19 -12
- package/dist/cjs/ez-chart.cjs.entry.js +1 -1
- package/dist/cjs/ez-combo-box.cjs.entry.js +10 -46
- package/dist/cjs/ez-custom-form-input_2.cjs.entry.js +2 -3
- package/dist/cjs/ez-date-input.cjs.entry.js +2 -8
- package/dist/cjs/ez-date-time-input.cjs.entry.js +2 -8
- package/dist/cjs/ez-dialog.cjs.entry.js +2 -10
- package/dist/cjs/ez-form-view.cjs.entry.js +2 -2
- package/dist/cjs/ez-form.cjs.entry.js +325 -5
- package/dist/cjs/ez-grid.cjs.entry.js +70518 -14636
- package/dist/cjs/ez-icon.cjs.entry.js +1 -1
- package/dist/cjs/ez-list.cjs.entry.js +100 -151
- package/dist/cjs/ez-modal.cjs.entry.js +1 -1
- package/dist/cjs/ez-number-input.cjs.entry.js +0 -7
- package/dist/cjs/ez-popover.cjs.entry.js +1 -1
- package/dist/cjs/ez-popup.cjs.entry.js +1 -1
- package/dist/cjs/ez-search.cjs.entry.js +22 -67
- package/dist/cjs/ez-split-button.cjs.entry.js +1 -1
- package/dist/cjs/ez-split-panel.cjs.entry.js +4 -14
- package/dist/cjs/ez-text-area.cjs.entry.js +4 -66
- package/dist/cjs/ez-text-input.cjs.entry.js +7 -49
- package/dist/cjs/ez-time-input.cjs.entry.js +0 -6
- package/dist/cjs/ezui.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/ez-button/ez-button.css +2 -2
- package/dist/collection/components/ez-card-item/ez-card-item.css +5 -14
- package/dist/collection/components/ez-combo-box/ez-combo-box.js +14 -75
- package/dist/collection/components/ez-date-input/ez-date-input.js +4 -35
- package/dist/collection/components/ez-date-time-input/ez-date-time-input.js +4 -35
- package/dist/collection/components/ez-dialog/ez-dialog.css +3 -3
- package/dist/collection/components/ez-dialog/ez-dialog.js +1 -9
- package/dist/collection/components/ez-filter-input/ez-filter-input.css +11 -0
- package/dist/collection/components/ez-filter-input/ez-filter-input.js +52 -22
- package/dist/collection/components/ez-form/ez-form.js +0 -1
- package/dist/collection/components/ez-form-view/custom-input/ez-custom-form-input.js +2 -3
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/TextInput.tpl.js +2 -2
- package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +27 -100
- package/dist/collection/components/ez-grid/controller/ag-grid/DataSource.js +0 -8
- package/dist/collection/components/ez-grid/controller/ag-grid/GridEditionManager.js +46 -164
- package/dist/collection/components/ez-grid/controller/ag-grid/components/EzGridCustomCellEditor.js +0 -7
- package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/ComboBox.tpl.js +0 -1
- package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/DateInput.tpl.js +0 -1
- package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/NumberInput.tpl.js +0 -1
- package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/Search.tpl.js +0 -1
- package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/TextInput.tpl.js +1 -4
- package/dist/collection/components/ez-grid/ez-grid.js +3 -90
- package/dist/collection/components/ez-icon/ez-icon.css +149 -153
- package/dist/collection/components/ez-list/ez-list.css +5 -5
- package/dist/collection/components/ez-list/ez-list.js +170 -152
- package/dist/collection/components/ez-modal/ez-modal.css +0 -4
- package/dist/collection/components/ez-modal/ez-modal.js +2 -2
- package/dist/collection/components/ez-number-input/ez-number-input.js +0 -25
- package/dist/collection/components/ez-popover/ez-popover.css +10 -3
- package/dist/collection/components/ez-popup/ez-popup.css +8 -4
- package/dist/collection/components/ez-search/ez-search.css +1 -1
- package/dist/collection/components/ez-search/ez-search.js +24 -94
- package/dist/collection/components/ez-split-button/ez-split-button.css +2 -2
- package/dist/collection/components/ez-split-panel/ez-split-panel.js +4 -35
- package/dist/collection/components/ez-text-area/ez-text-area.css +0 -49
- package/dist/collection/components/ez-text-area/ez-text-area.js +2 -102
- package/dist/collection/components/ez-text-input/ez-text-input.css +53 -27
- package/dist/collection/components/ez-text-input/ez-text-input.js +6 -84
- package/dist/collection/components/ez-time-input/ez-time-input.js +0 -24
- package/dist/collection/utils/form/DataBinder.js +3 -18
- package/dist/collection/utils/form/FormMetadata.js +1 -1
- package/dist/collection/utils/interfaces/AbstractFieldMetadata.js +1 -1
- package/dist/custom-elements/index.js +71099 -15536
- package/dist/esm/RecordValidationProcessor-9c6cc267.js +105 -0
- package/dist/esm/ez-button.entry.js +1 -1
- package/dist/esm/ez-card-item_3.entry.js +19 -12
- package/dist/esm/ez-chart.entry.js +1 -1
- package/dist/esm/ez-combo-box.entry.js +11 -47
- package/dist/esm/ez-custom-form-input_2.entry.js +2 -3
- package/dist/esm/ez-date-input.entry.js +2 -8
- package/dist/esm/ez-date-time-input.entry.js +2 -8
- package/dist/esm/ez-dialog.entry.js +2 -10
- package/dist/esm/ez-form-view.entry.js +2 -2
- package/dist/esm/ez-form.entry.js +324 -4
- package/dist/esm/ez-grid.entry.js +70545 -14663
- package/dist/esm/ez-icon.entry.js +1 -1
- package/dist/esm/ez-list.entry.js +101 -152
- package/dist/esm/ez-modal.entry.js +1 -1
- package/dist/esm/ez-number-input.entry.js +0 -7
- package/dist/esm/ez-popover.entry.js +1 -1
- package/dist/esm/ez-popup.entry.js +1 -1
- package/dist/esm/ez-search.entry.js +22 -67
- package/dist/esm/ez-split-button.entry.js +1 -1
- package/dist/esm/ez-split-panel.entry.js +5 -15
- package/dist/esm/ez-text-area.entry.js +4 -66
- package/dist/esm/ez-text-input.entry.js +7 -49
- package/dist/esm/ez-time-input.entry.js +0 -6
- package/dist/esm/ezui.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/ezui/ezui.esm.js +1 -1
- package/dist/ezui/p-00687830.entry.js +1 -0
- package/dist/ezui/p-044d46d5.entry.js +1 -0
- package/dist/ezui/p-11b09aa1.entry.js +1 -0
- package/dist/ezui/p-190c190f.entry.js +304 -0
- package/dist/ezui/p-2de9f0aa.entry.js +1 -0
- package/dist/ezui/p-36180f4d.entry.js +1 -0
- package/dist/ezui/{p-2f53435e.entry.js → p-3b546374.entry.js} +1 -1
- package/dist/ezui/p-3f8c33e0.entry.js +1 -0
- package/dist/ezui/p-52100a6e.entry.js +1 -0
- package/dist/ezui/p-5a40c77a.entry.js +1 -0
- package/dist/ezui/p-61059f6b.entry.js +1 -0
- package/dist/ezui/p-68267f59.entry.js +1 -0
- package/dist/ezui/p-823cc11b.entry.js +1 -0
- package/dist/ezui/p-85b500bb.entry.js +1 -0
- package/dist/ezui/p-8ac13678.entry.js +1 -0
- package/dist/ezui/p-940760bf.entry.js +1 -0
- package/dist/ezui/p-9e08ddb0.entry.js +1 -0
- package/dist/ezui/p-b2a1398f.entry.js +1 -0
- package/dist/ezui/p-ba5f4ee7.entry.js +1 -0
- package/dist/ezui/p-d40b93a7.entry.js +1 -0
- package/dist/ezui/p-d4aba783.entry.js +1 -0
- package/dist/ezui/p-e3ec7422.entry.js +1 -0
- package/dist/ezui/p-f291db18.entry.js +1 -0
- package/dist/ezui/p-f42855b9.js +1 -0
- package/dist/types/components/ez-combo-box/ez-combo-box.d.ts +1 -7
- package/dist/types/components/ez-date-input/ez-date-input.d.ts +1 -6
- package/dist/types/components/ez-date-time-input/ez-date-time-input.d.ts +1 -6
- package/dist/types/components/ez-dialog/ez-dialog.d.ts +0 -2
- package/dist/types/components/ez-filter-input/ez-filter-input.d.ts +11 -4
- package/dist/types/components/ez-form-view/fieldbuilder/templates/TextInput.tpl.d.ts +1 -1
- package/dist/types/components/ez-grid/controller/EzGridController.d.ts +0 -12
- package/dist/types/components/ez-grid/controller/ag-grid/AgGridController.d.ts +2 -7
- package/dist/types/components/ez-grid/controller/ag-grid/DataSource.d.ts +1 -2
- package/dist/types/components/ez-grid/controller/ag-grid/GridEditionManager.d.ts +7 -19
- package/dist/types/components/ez-grid/controller/ag-grid/components/EzGridCustomCellEditor.d.ts +1 -3
- package/dist/types/components/ez-grid/controller/ag-grid/components/EzGridCustomCellRender.d.ts +1 -1
- package/dist/types/components/ez-grid/controller/ag-grid/components/EzGridCustomHeader.d.ts +1 -1
- package/dist/types/components/ez-grid/controller/ag-grid/components/cellRendererStatus.d.ts +1 -1
- package/dist/types/components/ez-grid/controller/ag-grid/components/selectionHeader.d.ts +1 -1
- package/dist/types/components/ez-grid/controller/ag-grid/editor/EzCellEditor.d.ts +1 -1
- package/dist/types/components/ez-grid/controller/ag-grid/editor/EzCellRender.d.ts +1 -1
- package/dist/types/components/ez-grid/controller/ag-grid/editor/IUICellEditor.d.ts +0 -1
- package/dist/types/components/ez-grid/controller/ag-grid/mock/Server.d.ts +1 -1
- package/dist/types/components/ez-grid/ez-grid.d.ts +1 -11
- package/dist/types/components/ez-list/ez-list.d.ts +26 -3
- package/dist/types/components/ez-modal/ez-modal.d.ts +1 -1
- package/dist/types/components/ez-number-input/ez-number-input.d.ts +0 -4
- package/dist/types/components/ez-search/ez-search.d.ts +2 -10
- package/dist/types/components/ez-split-panel/ez-split-panel.d.ts +0 -4
- package/dist/types/components/ez-text-area/ez-text-area.d.ts +0 -17
- package/dist/types/components/ez-text-input/ez-text-input.d.ts +0 -9
- package/dist/types/components/ez-time-input/ez-time-input.d.ts +0 -4
- package/dist/types/components.d.ts +44 -114
- package/dist/types/utils/form/DataBinder.d.ts +0 -3
- package/package.json +4 -11
- package/dist/cjs/DataBinder-3b083480.js +0 -445
- package/dist/cjs/FocusResolver-885f2173.js +0 -35
- package/dist/collection/components/ez-split-panel/interfaces/IPanelSizeInfo.js +0 -1
- package/dist/collection/utils/FocusResolver.js +0 -31
- package/dist/esm/DataBinder-02fa9bb9.js +0 -441
- package/dist/esm/FocusResolver-1ccbf850.js +0 -33
- package/dist/ezui/p-16e21a40.entry.js +0 -1
- package/dist/ezui/p-33675dae.entry.js +0 -1
- package/dist/ezui/p-397e3026.entry.js +0 -1
- package/dist/ezui/p-3af64edd.entry.js +0 -1
- package/dist/ezui/p-3c10cd94.entry.js +0 -1
- package/dist/ezui/p-3cc9b84a.entry.js +0 -1
- package/dist/ezui/p-3d38bfea.entry.js +0 -1
- package/dist/ezui/p-455e737c.js +0 -1
- package/dist/ezui/p-46a46507.entry.js +0 -1
- package/dist/ezui/p-6bc25bc8.entry.js +0 -1
- package/dist/ezui/p-6bda82d1.entry.js +0 -1
- package/dist/ezui/p-6d31c43c.entry.js +0 -1
- package/dist/ezui/p-7f5afb1f.entry.js +0 -1
- package/dist/ezui/p-8f026744.entry.js +0 -1
- package/dist/ezui/p-9fddffe3.entry.js +0 -309
- package/dist/ezui/p-a4ee2991.entry.js +0 -1
- package/dist/ezui/p-aa7779d0.entry.js +0 -1
- package/dist/ezui/p-be34c77f.entry.js +0 -1
- package/dist/ezui/p-bfc30e61.entry.js +0 -1
- package/dist/ezui/p-bfc59380.entry.js +0 -1
- package/dist/ezui/p-d960a031.entry.js +0 -1
- package/dist/ezui/p-dc628ed3.js +0 -1
- package/dist/ezui/p-dfca5946.entry.js +0 -1
- package/dist/ezui/p-efbe0b73.entry.js +0 -1
- package/dist/types/components/ez-split-panel/interfaces/IPanelSizeInfo.d.ts +0 -9
- package/dist/types/utils/FocusResolver.d.ts +0 -5
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as i,f as o,h as a,g as e}from"./p-e4c7eb39.js";import{D as l}from"./p-ab574d59.js";import{FloatingManager as d,ElementIDUtils as n}from"@sankhyalabs/core";class r{constructor(t,i,o,a,e,l,d,n,r,c){this.title=t,this.message=i,this.dialogType=o,this.confirm=a,this.icon=e,this.labelCancel=l,this.labelConfirm=d,this.btnConfirmDanger=n,this.callBack=r,this.beforeClose=c}}const c=class{constructor(o){t(this,o),this.ezCancel=i(this,"ezCancel",7),this.ezAccept=i(this,"ezAccept",7),this.PRIMARY_BUTTON_ID="EZ_DIALOG_PRIMARY_BUTTON",this.labelConfirm="Sim",this.labelCancel="Não",this.btnConfirmDanger=!1,this._messageQueue=[],this._canFocusOnPrimaryBtn=!1,this.confirm=!1,this.dialogType=void 0,this.message=void 0,this.opened=!1,this.personalizedIconPath=void 0,this.ezTitle=void 0,this.beforeClose=void 0}observeConfig(t,i){this.manageOverflow(),t&&!i&&(this._canFocusOnPrimaryBtn=!0)}handleKeyDown(t){"Escape"!==t.key&&"Esc"!==t.key||this.handleButtonClick(!1)}manageOverflow(){window.document.body.style.overflow=this.opened?"hidden":""}manageOverlay(){this.opened?this._overlayId=d.subscribeOverlayControl(this._overlayRef):d.unsubscribeOverlayControl(this._overlayRef||this._overlayId)}handleButtonClick(t){this._currentMessage.beforeClose&&!1===this._currentMessage.beforeClose(t)||(this.opened=this._messageQueue.length>0,this._currentMessage.callBack&&this._currentMessage.callBack(t),t?this.ezAccept.emit(t):this.ezCancel.emit(t),this._currentMessage=this._messageQueue.shift(),o(this))}async show(t,i,o,a,e,l,d,n,c){return this.opened=!0,new Promise((s=>{this._messageQueue.push(new r(t,i,o,a,e,l,d,n,s,c))}))}isCritical(t){return t===l.CRITICAL}getIconElement(t){if(t.dialogType!==l.DEFAULT)return a("ez-icon",{class:"changeable__icon "+this.getIconClass(t.dialogType),size:"small",iconName:this.getIconName(t)})}getIconClass(t){return this.isCritical(t)?"title-icon--critical":t===l.SUCCESS?"title-icon--success":t===l.WARN?"title-icon--warn":""}getIconName(t){return t.icon?t.icon:this.isCritical(t.dialogType)?"alert-circle-inverted":t.dialogType===l.WARN?"warning-outline":t.dialogType===l.SUCCESS?"check":void 0}getTypeIndicatorElement(t){if(t.dialogType!==l.DEFAULT)return a("div",{class:this.getClassIconIndicator(t.dialogType)})}getClassIconIndicator(t){return this.isCritical(t)?"dialog__critical--indicator":t==l.SUCCESS?"dialog__success--indicator":t==l.WARN?"dialog__warning--indicator":""}getClassContainer(t){return(t.dialogType||l.DEFAULT)===l.DEFAULT?"dialog__container dialog__container--default":"dialog__container"}getClassTitleLabel(t){return null==this.getIconElement(t)?"title title__label title__label--no-icon":"title title__label"}componentWillRender(){this._currentMessage||(this._messageQueue.length>0?this._currentMessage=this._messageQueue.pop():this.opened&&(this._currentMessage=new r(this.ezTitle,this.message,this.dialogType,this.confirm,this.personalizedIconPath,this.labelCancel,this.labelConfirm,this.btnConfirmDanger,null,this.beforeClose)))}componentDidLoad(){n.addIDInfo(this._element)}componentDidRender(){this.manageOverlay(),this.focusOnDialog(),this.handleFocusOnPrimaryButton()}focusOnDialog(){const t=this._element.shadowRoot.querySelector(".overlay .dialog");t instanceof HTMLDivElement&&(t.style.outline="none",t.focus())}handleFocusOnPrimaryButton(){this._canFocusOnPrimaryBtn&&(this.focusOnPrimaryButton(),this._canFocusOnPrimaryBtn=!1)}focusOnPrimaryButton(){const t=this._element.shadowRoot.querySelector(`#${this.PRIMARY_BUTTON_ID}`),i=null==t?void 0:t.shadowRoot.querySelector("button");null==i||i.focus()}render(){return this.opened&&this._currentMessage?a("div",{class:"overlay",ref:t=>this._overlayRef=t},a("div",{tabindex:"-1",class:"dialog"},this.getTypeIndicatorElement(this._currentMessage),a("div",{class:this.getClassContainer(this._currentMessage)},a("div",{class:"title__container"},a("div",{class:"title__box"},this.getIconElement(this._currentMessage),a("div",{class:this.getClassTitleLabel(this._currentMessage),innerHTML:this._currentMessage.title,"data-element-id":n.getInternalIDInfo("title")})),a("button",{class:"btn-close",onClick:()=>this.handleButtonClick(!1),"data-element-id":n.getInternalIDInfo("buttonClose")})),a("div",{class:"message",innerHTML:this._currentMessage.message,"data-element-id":n.getInternalIDInfo("message")}),this._currentMessage.confirm&&a("div",{class:"button-yes-no__container"},a("ez-button",{class:"button__cancel","data-element-id":n.getInternalIDInfo("cancel"),label:this._currentMessage.labelCancel,onClick:()=>this.handleButtonClick(!1)}),a("ez-button",{id:this.PRIMARY_BUTTON_ID,class:this._currentMessage.btnConfirmDanger?"button__confirm--danger":"button__confirm","data-element-id":n.getInternalIDInfo("confirm"),label:this._currentMessage.labelConfirm,onClick:()=>this.handleButtonClick(!0)})),!this._currentMessage.confirm&&a("div",{class:"button__confirm--container"},a("ez-button",{id:this.PRIMARY_BUTTON_ID,label:"Ok","data-element-id":n.getInternalIDInfo("ok"),class:"button__confirm",onClick:()=>this.handleButtonClick(!0)}))))):null}get _element(){return e(this)}static get watchers(){return{opened:["observeConfig"]}}};c.style=':host{--dialog__container-padding:var(--space--large, 24px);--dialog__btn__close--background-color:var(--title--primary, #2b3a54);--dialog__btn__no--padding-right:var(--space--large, 24px);--dialog__btn__close__image:url(\'data:image/svg+xml;utf8,<svg width="12" height="12" viewBox="0 0 12 12" xmlns="http://www.w3.org/2000/svg%22%3E<path d="M 7.0060773,5.995511 11.461972,1.5397722 c 0.132856,-0.1328413 0.207547,-0.3130253 0.207547,-0.5009046 0,-0.18786999 -0.07469,-0.3680541 -0.207547,-0.5009048 -0.132857,-0.13284126 -0.31302,-0.20748126 -0.500927,-0.20748126 -0.187812,0 -0.36807,0.07464 -0.500926,0.20748126 L 6.0042244,4.9937015 1.5482921,0.5379628 C 1.4154357,0.40512154 1.2352533,0.33048154 1.0473657,0.33048154 c -0.18787813,0 -0.36807,0.07464 -0.50092647,0.20748126 -0.13285646,0.1328507 -0.20749026,0.31303481 -0.20749026,0.5009048 0,0.1878793 0.0746338,0.3680633 0.20749026,0.5009046 L 5.0023715,5.995511 0.54643923,10.452213 c -0.0676086,0.06534 -0.12151598,0.14352 -0.15859681,0.229916 -0.0370714,0.08639 -0.0565645,0.1794 -0.0573369,0.27335 -7.724e-4,0.09404 0.0171873,0.187331 0.0528423,0.274293 0.0356455,0.08705 0.0882688,0.166087 0.15479148,0.23256 0.0665321,0.06648 0.14562277,0.11897 0.2326735,0.154567 0.0870507,0.0356 0.18031463,0.05344 0.2743433,0.05259 0.094029,-8.5e-4 0.1869528,-0.02049 0.2733331,-0.0576 0.08639,-0.0372 0.1645078,-0.09121 0.2298029,-0.158817 L 6.0042244,6.9973204 10.460119,11.453078 c 0.132856,0.132851 0.313114,0.207444 0.500926,0.207444 0.187907,0 0.36807,-0.07459 0.500927,-0.207444 0.132856,-0.13285 0.207547,-0.313006 0.207547,-0.500904 0,-0.187898 -0.07469,-0.368054 -0.207547,-0.500905 z"/></svg>\');--dialog__title--font-pattern:var(--font-pattern, "Roboto");--dialog__title--padding-left:var(--space--small, 6px);--dialog__title__container--padding-bottom:var(--space--medium, 12px);--dialog__title--weight--large:var(--text-weight--large, 600);--dialog__body--font-pattern:var(--font-pattern, "Roboto");--dialog__body--text-shadow:var(--text-shadow, "0 0 0 #353535, 0 0 1px transparent");--dialog__body--text-weight--medium:var(--text-weight--medium, 400);--dialog__body--padding-bottom:var(--space--large, 24px);--dialog__body--font-size:var(--text--medium, 14px);--dialog__body--color:var(--text--primary, #626e82);--dialog__icon--color:var(--text--inverted, #fff);--dialog__critical--background-color:var(--color--alert-error-800, #BD0025);--dialog__warning--background-color:var(--color--alert-warning-500, #EFB103);--dialog__success--background-color:var(--color--alert-success-500, #00523c);--dialog-z-index:var(--elevation--100, 100);--dialog--warning__image:url(\'data: image/svg+xml;utf8,<svg width="15" height="15" viewBox="0 0 15 15" xmlns="http://www.w3.org/2000/svg"><path d="M 7.5,0 0,13 h 15 z m 0,2.73684 5.1341,8.89476 H 2.36591 Z M 6.81818,5.47368 V 8.21053 H 8.18182 V 5.47368 Z m 0,4.10527 V 10.9474 H 8.18182 V 9.57895"/></svg>\');--dialog--critical__image:url(\'data: image/svg+xml;utf8,<svg width="13" height="13" viewBox="0 0 13 13" xmlns="http://www.w3.org/2000/svg"><path d="M 7.6534493,6.4948538 12.762051,1.3864299 C 12.914368,1.2341297 13,1.027552 13,0.81215179 13,0.59676225 12.914369,0.39018443 12.762051,0.23787352 12.609733,0.08557341 12.40318,0 12.187747,0 11.972425,0 11.765762,0.08557341 11.613445,0.23787352 L 6.5048431,5.3462975 1.3961977,0.23787352 C 1.2438802,0.08557341 1.0373043,0 0.82189458,0 0.60649572,0 0.39990901,0.08557341 0.24759147,0.23787352 0.09527396,0.39018443 0.00970766,0.59676225 0.00970766,0.81215179 c 0,0.21540021 0.0855663,0.42197791 0.23788381,0.57427811 L 5.3562369,6.4948538 0.24759147,11.604381 c -0.0775121,0.07492 -0.13931586,0.164543 -0.18182835,0.263595 -0.04250169,0.09905 -0.064850182,0.205678 -0.0657357237,0.313391 -8.8554258e-4,0.107813 0.0197049337,0.214771 0.0605827337,0.314472 0.04086693,0.0998 0.10119858,0.190415 0.17746563,0.266625 0.0762779,0.07622 0.16695386,0.136398 0.26675594,0.177208 0.099802,0.04082 0.20672745,0.06127 0.31452961,0.06029 0.1078025,-9.53e-4 0.21433799,-0.0235 0.31337139,-0.06604 0.099045,-0.04265 0.1886052,-0.104571 0.263465,-0.182081 L 6.5048431,7.6434102 11.613445,12.751855 c 0.152317,0.152312 0.35898,0.237831 0.574302,0.237831 0.215433,0 0.421986,-0.08552 0.574304,-0.237831 C 12.914368,12.599545 13,12.393 13,12.177578 13,11.962157 12.91437,11.75561 12.762051,11.603299 Z"/></svg>\')}h2{margin-block-start:0;margin-block-end:0;margin-inline-start:0px;margin-inline-end:0px}.overlay{position:fixed;display:flex;top:0px;z-index:var(--dialog-z-index);left:0px;width:100%;box-sizing:border-box;height:100vh;background-color:rgba(var(--rgb-background--overlay), var(--opacity--soft));backdrop-filter:blur(var(--background-blur--medium))}.dialog{display:flex;width:80%;position:absolute;top:50%;left:50%;margin-right:-50%;box-sizing:border-box;transform:translate(-50%, -50%);box-shadow:0px 0px 16px rgba(0, 38, 111, 0.122)}@media screen and (min-width: 768px){.dialog{width:50%}}@media screen and (min-width: 992px){.dialog{width:33.33333%}}.dialog__container{width:100%;background:#FFFF;border-radius:0px 6px 6px 0px;box-sizing:border-box;padding:var(--dialog__container-padding)}.dialog__container--default{border-radius:6px 6px 6px 6px}.dialog__critical--indicator{box-sizing:border-box;width:12px;border-radius:6px 0px 0px 6px;background-color:var(--dialog__critical--background-color)}.dialog__warning--indicator{width:12px;border-radius:6px 0px 0px 6px;box-sizing:border-box;background-color:var(--dialog__warning--background-color)}.dialog__success--indicator{width:12px;border-radius:6px 0px 0px 6px;box-sizing:border-box;background-color:var(--dialog__success--background-color)}.message{font-size:var(--dialog__body--font-size);font-weight:var(--dialog__body--text-weight--medium);font-family:var(--dialog__body--font-pattern);text-shadow:var(--dialog__body--text-shadow);padding-bottom:var(--dialog__body--padding-bottom);color:var(--dialog__body--color);max-height:30vh;content-visibility:auto;margin-bottom:24px;overflow-y:auto}.changeable__icon{background:var(--dialog__warning--background-color);--ez-icon--color:var(--dialog__icon--color);display:grid;place-items:center;width:26px;height:26px;border-radius:50%}.changeable__icon.critical{background:var(--dialog__critical--background-color)}.title{display:flex;font-family:var(--dialog__title--font-pattern);margin:0;font-weight:var(--dialog__title--weight--large);line-height:0;color:var(--title--primary)}.title__container{display:flex;padding-bottom:var(--dialog__title__container--padding-bottom)}.title__box{display:flex;width:100%;align-items:center;align-self:center}.title__label{padding-left:var(--dialog__title--padding-left)}.title__label--no-icon{padding-left:0}.title-icon--critical{background-color:var(--dialog__critical--background-color)}.title-icon--success{background-color:var(--dialog__success--background-color)}.title-icon--warn{background-color:var(--dialog__warning--background-color)}.btn-close{justify-content:flex-end;align-self:flex-start;align-items:flex-start;display:flex;outline:none;width:10%;border:none;background-color:unset;cursor:pointer}.btn-close::after{content:\'\';display:flex;background-color:var(--dialog__btn__close--background-color);width:12px;height:12px;-webkit-mask-image:var(--dialog__btn__close__image);mask-image:var(--dialog__btn__close__image)}.title-icon::after{content:\'\';display:flex;background-color:#FFFF;width:15px;height:15px;-webkit-mask-image:var(--dialog--warning__image);mask-image:var(--dialog--warning__image)}.button-yes-no__container{display:flex;box-sizing:border-box;align-self:center;align-items:center;justify-content:flex-end}.button__cancel{padding-right:var(--dialog__btn__no--padding-right)}.button__confirm{--ez-button--background-color:var(--color--primary);--ez-button--color:var(--color--inverted);--ez-button--hover--background-color:var(--color--primary-600);--ez-button--hover-color:var(--color--inverted)}.button__confirm--danger{--ez-button--background-color:var(--color--alert-error-800, #BD0025);--ez-button--color:var(--color--inverted);--ez-button--hover--background-color:var(--color-alert--error-900, #a10020);--ez-button--hover-color:var(--color--inverted)}.button__confirm--container{display:flex;justify-content:flex-end}.row{width:100%;display:flex;flex-wrap:wrap}.col{display:flex;flex-wrap:wrap;align-self:flex-start;box-sizing:border-box}.col--stretch{align-self:stretch}.col--undefined{width:unset}.col--nowrap{flex-wrap:nowrap}@media screen and (min-width: 320px){.col--sd-1{width:8.33333%}.col--sd-2{width:16.66667%}.col--sd-3{width:25%}.col--sd-4{width:33.33333%}.col--sd-5{width:41.66667%}.col--sd-6{width:50%}.col--sd-7{width:58.33333%}.col--sd-8{width:66.66667%}.col--sd-9{width:75%}.col--sd-10{width:83.33333%}.col--sd-11{width:91.66667%}.col--sd-12{width:100%}}@media screen and (min-width: 480px){.col--pn-1{width:8.33333%}.col--pn-2{width:16.66667%}.col--pn-3{width:25%}.col--pn-4{width:33.33333%}.col--pn-5{width:41.66667%}.col--pn-6{width:50%}.col--pn-7{width:58.33333%}.col--pn-8{width:66.66667%}.col--pn-9{width:75%}.col--pn-10{width:83.33333%}.col--pn-11{width:91.66667%}.col--pn-12{width:100%}}@media screen and (min-width: 768px){.col--tb-1{width:8.33333%}.col--tb-2{width:16.66667%}.col--tb-3{width:25%}.col--tb-4{width:33.33333%}.col--tb-5{width:41.66667%}.col--tb-6{width:50%}.col--tb-7{width:58.33333%}.col--tb-8{width:66.66667%}.col--tb-9{width:75%}.col--tb-10{width:83.33333%}.col--tb-11{width:91.66667%}.col--tb-12{width:100%}}@media screen and (min-width: 992px){.col--md-1{width:8.33333%}.col--md-2{width:16.66667%}.col--md-3{width:25%}.col--md-4{width:33.33333%}.col--md-5{width:41.66667%}.col--md-6{width:50%}.col--md-7{width:58.33333%}.col--md-8{width:66.66667%}.col--md-9{width:75%}.col--md-10{width:83.33333%}.col--md-11{width:91.66667%}.col--md-12{width:100%}}@media screen and (min-width: 1200px){.col--ld-1{width:8.33333%}.col--ld-2{width:16.66667%}.col--ld-3{width:25%}.col--ld-4{width:33.33333%}.col--ld-5{width:41.66667%}.col--ld-6{width:50%}.col--ld-7{width:58.33333%}.col--ld-8{width:66.66667%}.col--ld-9{width:75%}.col--ld-10{width:83.33333%}.col--ld-11{width:91.66667%}.col--ld-12{width:100%}}';export{c as ez_dialog}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{UserInterface as e}from"@sankhyalabs/core";import{A as s}from"./p-2187f86c.js";const i=(s,i)=>{let r,t,{name:a,label:o,group:n}=Object.assign({},i),{readOnly:l,required:c}=Object.assign({},i);return s&&(o=o||s.label,a=a||s.name,c=s.required||(null==i?void 0:i.required),l=s.readOnly||(null==i?void 0:i.readOnly),r=s.properties,t=s.userInterface),{name:a,label:o,group:n,readOnly:l,required:c,props:r,userInterface:t||e.SHORTTEXT}};class r{constructor(e,s,i){this._dataUnit=e,this._validationSource=s,this._validator=i}validate(e=!0){return new Promise(((s,i)=>{const r=this._dataUnit.getModifiedRecords();for(let s=0;s<r.length;s++){const t=r[s],a=[];let o=this.validateRequired(t);if(o&&!o.isValid&&a.push(o),this._validator&&(o=this._validator.validateRecord(t),o&&!o.isValid&&a.push(o)),a.length>0){if(!e&&a[0].invalidFields.length>0){this._validationSource.markAsInvalid(a[0].invalidFields[0],t.__record__id__),i();break}this.processValidationResult(a,t.__record__id__),i();break}}return s()}))}validateRequired(e){const s=this._validationSource.getRequiredFields(),i=[];if(new Set(s).forEach((s=>{const r=e[s];if(null==r||""===r){const r=this._validationSource.getMessageForField(s,e.__record__id__);i.push(r?{name:s,message:r}:{name:s,message:"Essa informação é obrigatória"})}})),i.length>0)return{isValid:!1,invalidFields:i,infoMessage:"Há pelo menos um campo obrigatório não preenchido."}}processValidationResult(e,i){e.forEach((e=>{const r=e.invalidFields;if(this._dataUnit.savingCanceled(r,i),r&&r.forEach((e=>{this.markAsInvalid(e,i)})),e.infoMessage&&s.info(e.infoMessage),e.errorMessage){const{errorTitle:i,errorMessage:r}=e;s.error(i,r)}}))}markAsInvalid(e,s){this._dataUnit.setInvalidField(e.name,e.message,s),this._validationSource.markAsInvalid(e,s)}}export{r as R,i as b}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { EventEmitter } from "../../stencil-public-runtime";
|
|
2
|
-
import { TFocusOptions } from "../ez-text-input/ez-text-input";
|
|
3
2
|
export declare class EzComboBox {
|
|
4
3
|
private _textInput;
|
|
5
4
|
private _optionsList;
|
|
@@ -90,10 +89,6 @@ export declare class EzComboBox {
|
|
|
90
89
|
* Informa se a pesquisa é do tipo texto.
|
|
91
90
|
*/
|
|
92
91
|
isTextSearch: boolean;
|
|
93
|
-
/**
|
|
94
|
-
* Se true o campo de texto receberá o foco ao ser renderizado.
|
|
95
|
-
*/
|
|
96
|
-
autoFocus: boolean;
|
|
97
92
|
/**
|
|
98
93
|
* Emitido quando acontece a alteração de valor do campo.
|
|
99
94
|
*/
|
|
@@ -105,7 +100,7 @@ export declare class EzComboBox {
|
|
|
105
100
|
/**
|
|
106
101
|
* Aplica o foco no campo.
|
|
107
102
|
*/
|
|
108
|
-
setFocus(
|
|
103
|
+
setFocus(): Promise<void>;
|
|
109
104
|
/**
|
|
110
105
|
* Remove o foco do campo.
|
|
111
106
|
*/
|
|
@@ -137,7 +132,6 @@ export declare class EzComboBox {
|
|
|
137
132
|
private previousOption;
|
|
138
133
|
private scrollToOption;
|
|
139
134
|
private selectCurrentOption;
|
|
140
|
-
private controlListWithOnlyOne;
|
|
141
135
|
private updateSource;
|
|
142
136
|
private selectOption;
|
|
143
137
|
private loadOptions;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
2
|
import { WaitingChange } from '@sankhyalabs/core';
|
|
3
|
-
import { TFocusOptions } from '../ez-text-input/ez-text-input';
|
|
4
3
|
export declare class EzDateInput {
|
|
5
4
|
private _calendar;
|
|
6
5
|
private _textInput;
|
|
@@ -44,17 +43,13 @@ export declare class EzDateInput {
|
|
|
44
43
|
* Se false deixa de exibir a mensagem de erro dentro do campo.
|
|
45
44
|
*/
|
|
46
45
|
canShowError: boolean;
|
|
47
|
-
/**
|
|
48
|
-
* Se true o campo de texto receberá o foco ao ser renderizado.
|
|
49
|
-
*/
|
|
50
|
-
autoFocus: boolean;
|
|
51
46
|
observeLabel(): void;
|
|
52
47
|
observeErrorMessage(): void;
|
|
53
48
|
observeValue(newValue: Date, oldValue: Date): void;
|
|
54
49
|
/**
|
|
55
50
|
* Aplica o foco no campo.
|
|
56
51
|
*/
|
|
57
|
-
setFocus(
|
|
52
|
+
setFocus(): Promise<void>;
|
|
58
53
|
/**
|
|
59
54
|
* Remove o foco do campo.
|
|
60
55
|
*/
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
2
|
import { WaitingChange } from '@sankhyalabs/core';
|
|
3
|
-
import { TFocusOptions } from '../ez-text-input/ez-text-input';
|
|
4
3
|
export declare class EzDateTimeInput {
|
|
5
4
|
private _calendar;
|
|
6
5
|
private _textInput;
|
|
@@ -48,17 +47,13 @@ export declare class EzDateTimeInput {
|
|
|
48
47
|
* Se false deixa de exibir a mensagem de erro dentro do campo.
|
|
49
48
|
*/
|
|
50
49
|
canShowError: boolean;
|
|
51
|
-
/**
|
|
52
|
-
* Se true o campo de texto receberá o foco ao ser renderizado.
|
|
53
|
-
*/
|
|
54
|
-
autoFocus: boolean;
|
|
55
50
|
observeLabel(): void;
|
|
56
51
|
observeErrorMessage(): void;
|
|
57
52
|
observeValue(newValue: Date, oldValue: Date): void;
|
|
58
53
|
/**
|
|
59
54
|
* Aplica o foco no campo.
|
|
60
55
|
*/
|
|
61
|
-
setFocus(
|
|
56
|
+
setFocus(): Promise<void>;
|
|
62
57
|
/**
|
|
63
58
|
* Remove o foco do campo.
|
|
64
59
|
*/
|
|
@@ -24,7 +24,6 @@ export declare class EzDialog {
|
|
|
24
24
|
private _overlayRef;
|
|
25
25
|
private _overlayId;
|
|
26
26
|
private _canFocusOnPrimaryBtn;
|
|
27
|
-
private _lastActiveElement;
|
|
28
27
|
/**
|
|
29
28
|
* Define se o ez-dialog será utilizado no modo de confirmação.
|
|
30
29
|
*/
|
|
@@ -84,7 +83,6 @@ export declare class EzDialog {
|
|
|
84
83
|
private focusOnDialog;
|
|
85
84
|
private handleFocusOnPrimaryButton;
|
|
86
85
|
private focusOnPrimaryButton;
|
|
87
|
-
disconnectedCallback(): void;
|
|
88
86
|
render(): any;
|
|
89
87
|
}
|
|
90
88
|
export {};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { EventEmitter } from "../../stencil-public-runtime";
|
|
2
|
-
import { TFocusOptions } from "../ez-text-input/ez-text-input";
|
|
3
2
|
export declare class EzFilterInput {
|
|
4
3
|
private _elem;
|
|
5
4
|
private _textInput;
|
|
@@ -16,6 +15,10 @@ export declare class EzFilterInput {
|
|
|
16
15
|
* Emitido quando acontece o foco no campo.
|
|
17
16
|
*/
|
|
18
17
|
ezFocusIn: EventEmitter<void>;
|
|
18
|
+
/**
|
|
19
|
+
* Emitido quando tem interação com o Ícone de pesquisa
|
|
20
|
+
*/
|
|
21
|
+
ezIconClick: EventEmitter<boolean>;
|
|
19
22
|
/**
|
|
20
23
|
* Texto a ser apresentado como título do campo.
|
|
21
24
|
*/
|
|
@@ -49,16 +52,16 @@ export declare class EzFilterInput {
|
|
|
49
52
|
*/
|
|
50
53
|
canShowError: boolean;
|
|
51
54
|
/**
|
|
52
|
-
* Se true
|
|
55
|
+
* Se true permite ao usuário interagir com o ícone de pesquisa
|
|
53
56
|
*/
|
|
54
|
-
|
|
57
|
+
enabledIconClick: boolean;
|
|
55
58
|
observeLabel(): void;
|
|
56
59
|
observeErrorMessage(): void;
|
|
57
60
|
observeValue(newValue: string, oldValue: string): void;
|
|
58
61
|
/**
|
|
59
62
|
* Aplica o foco no campo.
|
|
60
63
|
*/
|
|
61
|
-
setFocus(
|
|
64
|
+
setFocus(): Promise<void>;
|
|
62
65
|
/**
|
|
63
66
|
* Remove o foco do campo.
|
|
64
67
|
*/
|
|
@@ -75,6 +78,10 @@ export declare class EzFilterInput {
|
|
|
75
78
|
* Método responsável por resetar o valor do campo para o ultimo valor inputado.
|
|
76
79
|
*/
|
|
77
80
|
endSearch(): Promise<void>;
|
|
81
|
+
/**
|
|
82
|
+
* Método usado para emitir o evento de clique no ícone
|
|
83
|
+
*/
|
|
84
|
+
handleIconClick(): Promise<void>;
|
|
78
85
|
handleChange(evt: CustomEvent<string>): void;
|
|
79
86
|
handleFocus: () => void;
|
|
80
87
|
componentDidLoad(): void;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { IFormViewField } from "../../interfaces/IFormViewField";
|
|
2
|
-
export declare const buildTextInput: ({ name, label, readOnly, contextName, canShowError
|
|
2
|
+
export declare const buildTextInput: ({ name, label, readOnly, contextName, canShowError }: IFormViewField) => HTMLElement;
|
|
@@ -163,17 +163,6 @@ export default interface EzGridController {
|
|
|
163
163
|
setFocus(): void;
|
|
164
164
|
savingCanceled(fields: Array<IInvalidField>, recordId: string): void;
|
|
165
165
|
destroy(): void;
|
|
166
|
-
registryListeners(): void;
|
|
167
|
-
resetPaginationState(): void;
|
|
168
|
-
stopEdit(): void;
|
|
169
|
-
/**
|
|
170
|
-
Remove coluna de seleção por checkbox
|
|
171
|
-
*/
|
|
172
|
-
hideSelectionColumn(): void;
|
|
173
|
-
/**
|
|
174
|
-
Mostra coluna de seleção por checkbox
|
|
175
|
-
*/
|
|
176
|
-
showSelectionColumn(): void;
|
|
177
166
|
}
|
|
178
167
|
/**
|
|
179
168
|
* Carrega as informações necessárias para contextualizar corretamente a instância.
|
|
@@ -257,7 +246,6 @@ export interface EzGridOptions {
|
|
|
257
246
|
* Só funciona quando a prop enableGridInsert está ativa
|
|
258
247
|
*/
|
|
259
248
|
enableContinuousInsert?: boolean;
|
|
260
|
-
enableLockManger?: boolean;
|
|
261
249
|
}
|
|
262
250
|
/**
|
|
263
251
|
* Representa cada coluna da grade.
|
|
@@ -18,6 +18,7 @@ export default class AgGridController implements EzGridController, SortingProvid
|
|
|
18
18
|
private _columnStateChangeCallback;
|
|
19
19
|
private _selectionChangeCallback;
|
|
20
20
|
private _doubleClickCallBack;
|
|
21
|
+
private _enterprise;
|
|
21
22
|
private _menuItems;
|
|
22
23
|
private _multipleSelection;
|
|
23
24
|
private _dataUnit;
|
|
@@ -43,7 +44,7 @@ export default class AgGridController implements EzGridController, SortingProvid
|
|
|
43
44
|
private handleFilteredColumnsChanged;
|
|
44
45
|
clearFilter(): void;
|
|
45
46
|
private showFilterColumn;
|
|
46
|
-
constructor(
|
|
47
|
+
constructor(enterprise: boolean);
|
|
47
48
|
getGridConfig(): Array<EzGridColumnConfig>;
|
|
48
49
|
locateColumn(columnName: string): void;
|
|
49
50
|
getSort(_dataUnitName: string, defaultSorting: Array<Sort>): Array<Sort>;
|
|
@@ -85,15 +86,12 @@ export default class AgGridController implements EzGridController, SortingProvid
|
|
|
85
86
|
setFocusLastRow(): void;
|
|
86
87
|
startEditionOnRowByIndex(rowIndex: number): void;
|
|
87
88
|
startEditionOnLastRow(): void;
|
|
88
|
-
private syncSelectWithDataUnit;
|
|
89
89
|
private startEdition;
|
|
90
90
|
private getFirstEditableColl;
|
|
91
91
|
private isColumnEditable;
|
|
92
92
|
private setFocusOnRow;
|
|
93
93
|
private focusByCollAndRow;
|
|
94
94
|
setColumnsDef(cols: Array<EzGridColumn>): void;
|
|
95
|
-
hideSelectionColumn(): void;
|
|
96
|
-
showSelectionColumn(): void;
|
|
97
95
|
getColumnsDef(): Array<EzGridColumn>;
|
|
98
96
|
setColumnsState(state: Array<EzGridColumnConfig>): void;
|
|
99
97
|
private getAdaptiveWidth;
|
|
@@ -126,7 +124,4 @@ export default class AgGridController implements EzGridController, SortingProvid
|
|
|
126
124
|
clearInvalidCells(stopEdition?: boolean): void;
|
|
127
125
|
processContinuousInsert(): void;
|
|
128
126
|
destroy(): void;
|
|
129
|
-
registryListeners(): void;
|
|
130
|
-
resetPaginationState(): void;
|
|
131
|
-
stopEdit(): void;
|
|
132
127
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IServerSideDatasource, IServerSideGetRowsParams } from "
|
|
1
|
+
import { IServerSideDatasource, IServerSideGetRowsParams } from "ag-grid-community";
|
|
2
2
|
import { DataUnit, QuickFilter } from '@sankhyalabs/core';
|
|
3
3
|
import EzGridController, { EzGridColumn, EzGridOptions } from "../EzGridController";
|
|
4
4
|
export default class DataSource implements IServerSideDatasource {
|
|
@@ -41,6 +41,5 @@ export default class DataSource implements IServerSideDatasource {
|
|
|
41
41
|
needReload(currentLoading: IServerSideGetRowsParams): boolean;
|
|
42
42
|
private callbackGetRows;
|
|
43
43
|
destroy(): void;
|
|
44
|
-
registryListeners(): void;
|
|
45
44
|
buildColumnDefs(): Array<EzGridColumn>;
|
|
46
45
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DataUnit, Record } from '@sankhyalabs/core';
|
|
2
|
-
import { CellPosition, ColDef, GridApi, GridOptions } from
|
|
2
|
+
import { CellPosition, ColDef, GridApi, GridOptions } from 'ag-grid-community';
|
|
3
3
|
import { IRecordValidator } from '../../../../utils/form/interfaces';
|
|
4
4
|
import { ICustomEditorInfo } from '../../../../utils/customEditor/interfaces/ICustomEditorInfo';
|
|
5
5
|
import { ICustomRenderInfo } from '../../../../utils/customRender/interfaces/ICustomRenderInfo';
|
|
@@ -8,7 +8,6 @@ export default class GridEditionManager {
|
|
|
8
8
|
private _dataUnit;
|
|
9
9
|
private _lastCellClicked;
|
|
10
10
|
private _lastCellEdited;
|
|
11
|
-
private _lastCellOpened;
|
|
12
11
|
private _targetEditionCell;
|
|
13
12
|
private _recordValidationProcessor;
|
|
14
13
|
private _gridOptions;
|
|
@@ -19,19 +18,12 @@ export default class GridEditionManager {
|
|
|
19
18
|
private _customRenders;
|
|
20
19
|
private _enableContinuousInsert;
|
|
21
20
|
private _enableGridInsert;
|
|
22
|
-
private
|
|
23
|
-
|
|
24
|
-
private _currentEditLock;
|
|
25
|
-
private _lockerId;
|
|
26
|
-
constructor(dataUnit: DataUnit, useEnterLikeTab: boolean, recordsValidator: IRecordValidator, editionIsDisabled: () => boolean, customEditors?: Map<string, ICustomEditorInfo>, customRenders?: Map<string, ICustomRenderInfo>, enableContinuousInsert?: boolean, enableGridInsert?: boolean, lockerId?: string);
|
|
21
|
+
private _invalidCell;
|
|
22
|
+
constructor(dataUnit: DataUnit, useEnterLikeTab: boolean, recordsValidator: IRecordValidator, editionIsDisabled: () => boolean, customEditors?: Map<string, ICustomEditorInfo>, customRenders?: Map<string, ICustomRenderInfo>, enableContinuousInsert?: boolean, enableGridInsert?: boolean);
|
|
27
23
|
configureGrid(options: GridOptions): GridOptions;
|
|
28
24
|
updateCurrentEditorGuiValue(updatedRowValue: Record): void;
|
|
29
|
-
private lockFocusWhenAddRow;
|
|
30
|
-
private handleCellEditingStartedRowAdd;
|
|
31
|
-
private isSelectableRow;
|
|
32
25
|
private canContinuousInsert;
|
|
33
|
-
proceedAutoSave():
|
|
34
|
-
private saveDataUnit;
|
|
26
|
+
proceedAutoSave(): void;
|
|
35
27
|
recordValidate(): Promise<void>;
|
|
36
28
|
navigateByEnterKey(keyboardEvent: KeyboardEvent): void;
|
|
37
29
|
getComponents(): {
|
|
@@ -40,7 +32,6 @@ export default class GridEditionManager {
|
|
|
40
32
|
verifyClickToEdition(api: GridApi, cellClicked: CellPosition): void;
|
|
41
33
|
configureColumn(col: ColDef): ColDef;
|
|
42
34
|
private getRequiredFields;
|
|
43
|
-
private getFormRequiredFields;
|
|
44
35
|
private saveSuccess;
|
|
45
36
|
private saveFail;
|
|
46
37
|
private focusOnCell;
|
|
@@ -55,14 +46,11 @@ export default class GridEditionManager {
|
|
|
55
46
|
private isColEditable;
|
|
56
47
|
private isSecondClick;
|
|
57
48
|
private onCellEditRequest;
|
|
58
|
-
private handlePromiseValue;
|
|
59
|
-
private updateCellValue;
|
|
60
49
|
setCellEditors(customEditors: Map<string, ICustomEditorInfo>): void;
|
|
61
50
|
setCellRenders(customRenders: Map<string, ICustomRenderInfo>): void;
|
|
62
|
-
private
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
processContinuousInsert(): Promise<void>;
|
|
51
|
+
private setInvalidCell;
|
|
52
|
+
getInvalidCell(): IInvalidCell;
|
|
53
|
+
processContinuousInsert(): void;
|
|
66
54
|
clearInvalidCells(stopEdition?: boolean): void;
|
|
67
55
|
setEnableContinuousInsert(enable: boolean): void;
|
|
68
56
|
hasInvalidField(fieldName: string, recordId: string): boolean;
|
package/dist/types/components/ez-grid/controller/ag-grid/components/EzGridCustomCellEditor.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ICellEditorParams } from "
|
|
1
|
+
import { ICellEditorParams } from "ag-grid-community";
|
|
2
2
|
import { ICustomEditorInfo } from "../../../../../utils/customEditor/interfaces/ICustomEditorInfo";
|
|
3
3
|
import EzCellEditor from "../editor/EzCellEditor";
|
|
4
4
|
interface CustomParamsEditor {
|
|
@@ -16,7 +16,5 @@ export default class EzGridCustomCellEditor extends EzCellEditor {
|
|
|
16
16
|
getGui(): HTMLElement;
|
|
17
17
|
private setValue;
|
|
18
18
|
getValue(): any;
|
|
19
|
-
afterGuiAttached(): void;
|
|
20
|
-
focusIn(): void;
|
|
21
19
|
}
|
|
22
20
|
export {};
|
package/dist/types/components/ez-grid/controller/ag-grid/components/EzGridCustomCellRender.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ICellRendererParams } from "
|
|
1
|
+
import { ICellRendererParams } from "ag-grid-community";
|
|
2
2
|
import EzCellRender from "../editor/EzCellRender";
|
|
3
3
|
import { ICustomRenderInfo } from "../../../../../utils/customRender/interfaces/ICustomRenderInfo";
|
|
4
4
|
interface CustomParamsRender {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ICellRendererComp, ICellRendererParams } from "
|
|
1
|
+
import { ICellRendererComp, ICellRendererParams } from "ag-grid-community";
|
|
2
2
|
export declare class CellRendererStatus implements ICellRendererComp {
|
|
3
3
|
private readonly DEFAULT_COLOR;
|
|
4
4
|
private _eGui;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ICellEditorComp, ICellEditorParams } from "
|
|
1
|
+
import { ICellEditorComp, ICellEditorParams } from "ag-grid-community";
|
|
2
2
|
import { Record } from "@sankhyalabs/core";
|
|
3
3
|
import { IEditorMetadata } from "./IEditorMetadata";
|
|
4
4
|
export default class EzCellEditor implements ICellEditorComp {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ICellRendererComp, ICellRendererParams } from "
|
|
1
|
+
import { ICellRendererComp, ICellRendererParams } from "ag-grid-community";
|
|
2
2
|
import { IEditorMetadata } from "./IEditorMetadata";
|
|
3
3
|
export default class EzCellRender implements ICellRendererComp {
|
|
4
4
|
private _gui;
|
|
@@ -13,6 +13,7 @@ export declare class EzGrid {
|
|
|
13
13
|
private _gridSelectionCounter;
|
|
14
14
|
private _resizeObserver;
|
|
15
15
|
private _messageFilterAppliedSuccess;
|
|
16
|
+
private _gridApi;
|
|
16
17
|
private _filterColumn;
|
|
17
18
|
private _refPaginationLabel;
|
|
18
19
|
private _refPaginationLabelTooltip;
|
|
@@ -106,10 +107,6 @@ export declare class EzGrid {
|
|
|
106
107
|
* Só funciona quando a prop enableGridInsert está ativa
|
|
107
108
|
*/
|
|
108
109
|
enableContinuousInsert?: boolean;
|
|
109
|
-
/**
|
|
110
|
-
* Ativa inserção de registros no modo grade.
|
|
111
|
-
*/
|
|
112
|
-
enableLockManger?: boolean;
|
|
113
110
|
/**
|
|
114
111
|
* Aplica a definição de colunas.
|
|
115
112
|
*/
|
|
@@ -178,16 +175,10 @@ export declare class EzGrid {
|
|
|
178
175
|
* Atribui o foco para a grade.
|
|
179
176
|
*/
|
|
180
177
|
setFocus(): Promise<void>;
|
|
181
|
-
/**
|
|
182
|
-
* Para a edição da grade.
|
|
183
|
-
*/
|
|
184
|
-
stopEdit(): Promise<void>;
|
|
185
|
-
checkStopEditOutsideClick(event: MouseEvent): Promise<void>;
|
|
186
178
|
observeConfig(config: IGridConfig): void;
|
|
187
179
|
updatePaginationTooltip(): void;
|
|
188
180
|
observePaginationCounterMode(newValue: any): void;
|
|
189
181
|
onSelectionChange(evt: CustomEvent): void;
|
|
190
|
-
handleClick(event: MouseEvent): Promise<void>;
|
|
191
182
|
private setSelection;
|
|
192
183
|
private onSelectAllRecords;
|
|
193
184
|
private onSelectPageRecords;
|
|
@@ -216,7 +207,6 @@ export declare class EzGrid {
|
|
|
216
207
|
private _hidePaginationDescription;
|
|
217
208
|
private _showPaginationDescription;
|
|
218
209
|
disconnectedCallback(): void;
|
|
219
|
-
connectedCallback(): void;
|
|
220
210
|
componentWillRender(): void;
|
|
221
211
|
componentDidRender(): void;
|
|
222
212
|
componentWillLoad(): void;
|
|
@@ -24,6 +24,7 @@ export type SlotBuilder = (item: ListItem, group?: ListGroup) => HTMLElement | s
|
|
|
24
24
|
export declare class EzList {
|
|
25
25
|
_listItems: ListItem[];
|
|
26
26
|
_listGroupItems: ListGroup[];
|
|
27
|
+
_selectedItem: ListItem;
|
|
27
28
|
private _dragStartItem;
|
|
28
29
|
private _listItemsHistory;
|
|
29
30
|
private _groupContainer;
|
|
@@ -31,6 +32,7 @@ export declare class EzList {
|
|
|
31
32
|
private _itemContainer;
|
|
32
33
|
private _draggingElement;
|
|
33
34
|
private _changeDeboucingTimeout;
|
|
35
|
+
private _keyboardManager;
|
|
34
36
|
/**
|
|
35
37
|
* Define a lista inicial do componente.
|
|
36
38
|
*/
|
|
@@ -65,6 +67,10 @@ export declare class EzList {
|
|
|
65
67
|
* Quando verdadeiro, ativa o feedback visual ao efetuar houver nos itens da lista.
|
|
66
68
|
*/
|
|
67
69
|
hoverFeedback: boolean;
|
|
70
|
+
/**
|
|
71
|
+
* Desabilita os atalhos de teclado.
|
|
72
|
+
*/
|
|
73
|
+
disableShortcuts: boolean;
|
|
68
74
|
/**
|
|
69
75
|
* Emitido quando acontece a alteração de estado da lista.
|
|
70
76
|
*/
|
|
@@ -73,6 +79,10 @@ export declare class EzList {
|
|
|
73
79
|
* Emitido sempre que um item da lista for selecionado.
|
|
74
80
|
*/
|
|
75
81
|
ezSelectItem: EventEmitter<ListItem>;
|
|
82
|
+
/**
|
|
83
|
+
* Emitido sempre que um item da lista for clicado.
|
|
84
|
+
*/
|
|
85
|
+
ezClickItem: EventEmitter<ListItem>;
|
|
76
86
|
/**
|
|
77
87
|
* Emitido quando acontece a alteração de um item do checkbox.
|
|
78
88
|
*/
|
|
@@ -81,6 +91,14 @@ export declare class EzList {
|
|
|
81
91
|
* Emitido quando ocorre um duplo clique em um item da lista.
|
|
82
92
|
*/
|
|
83
93
|
ezDoubleClick?: EventEmitter<ListItem>;
|
|
94
|
+
/**
|
|
95
|
+
* Seleciona o próximo item.
|
|
96
|
+
*/
|
|
97
|
+
selectNextItem(): Promise<void>;
|
|
98
|
+
/**
|
|
99
|
+
* Seleciona o item anterior.
|
|
100
|
+
*/
|
|
101
|
+
selectPreviousItem(): Promise<void>;
|
|
84
102
|
/**
|
|
85
103
|
* Limpa o histórico da lista.
|
|
86
104
|
*/
|
|
@@ -112,6 +130,7 @@ export declare class EzList {
|
|
|
112
130
|
componentWillLoad(): void;
|
|
113
131
|
componentWillRender(): void;
|
|
114
132
|
componentDidLoad(): void;
|
|
133
|
+
disconnectCallback(): void;
|
|
115
134
|
onDrop(ev: any, dragEndItem: ListItemGroup): void;
|
|
116
135
|
onDropLastIndex(ev: any, groupDropped?: any): void;
|
|
117
136
|
onDropGroup(groupSelected: any): void;
|
|
@@ -122,9 +141,12 @@ export declare class EzList {
|
|
|
122
141
|
removeOverGroupClass(ev: any, group: any): void;
|
|
123
142
|
onDragStart(item: any, group?: any, index?: any): void;
|
|
124
143
|
selectFirstItem(): void;
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
144
|
+
private getFlatedItems;
|
|
145
|
+
private getSelectedIndex;
|
|
146
|
+
nextOption(): void;
|
|
147
|
+
previousOption(): void;
|
|
148
|
+
private bindKeyboardManager;
|
|
149
|
+
private unbindKeyboardManager;
|
|
128
150
|
getDivGroupId(groupName: String): string;
|
|
129
151
|
getGroupOverlayId(groupName: string): string;
|
|
130
152
|
onDragOverGroup(event: DragEvent, group: ListGroup): void;
|
|
@@ -134,5 +156,6 @@ export declare class EzList {
|
|
|
134
156
|
hideOverlays(): void;
|
|
135
157
|
getContainerItemBuilder(slotPosition: 'left' | 'right', item: ListItem, group?: ListGroup, className?: string): HTMLElement;
|
|
136
158
|
doubleClickItem(item: ListItem): void;
|
|
159
|
+
onClickItem(item: ListItem): void;
|
|
137
160
|
render(): any;
|
|
138
161
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { EventEmitter } from "../../stencil-public-runtime";
|
|
2
2
|
import { IEzCheckBoxListPosition } from '../ez-combo-box/ez-combo-box';
|
|
3
|
-
import { TFocusOptions } from "../ez-text-input/ez-text-input";
|
|
4
3
|
export declare class EzSearch {
|
|
5
4
|
private _textInput;
|
|
6
5
|
private _optionsList;
|
|
@@ -108,12 +107,7 @@ export declare class EzSearch {
|
|
|
108
107
|
* Se true, desabilita pré-load das opções ao carregar componente
|
|
109
108
|
*/
|
|
110
109
|
suppressPreLoad: boolean;
|
|
111
|
-
/**
|
|
112
|
-
* Se true o campo de texto receberá o foco ao ser renderizado.
|
|
113
|
-
*/
|
|
114
|
-
autoFocus: boolean;
|
|
115
110
|
observeErrorMessage(): void;
|
|
116
|
-
private getValue;
|
|
117
111
|
private validateNewValue;
|
|
118
112
|
observeValue(newValue: IOption | string, oldValue: IOption | string): Promise<void>;
|
|
119
113
|
observeOptions(newOptions: IOption[], oldOptions: IOption[]): void;
|
|
@@ -121,7 +115,7 @@ export declare class EzSearch {
|
|
|
121
115
|
/**
|
|
122
116
|
* Aplica o foco no campo.
|
|
123
117
|
*/
|
|
124
|
-
setFocus(
|
|
118
|
+
setFocus(): Promise<void>;
|
|
125
119
|
/**
|
|
126
120
|
* Remove o foco do campo.
|
|
127
121
|
*/
|
|
@@ -172,11 +166,9 @@ export declare class EzSearch {
|
|
|
172
166
|
private showNoResultMessage;
|
|
173
167
|
private getFieldLabel;
|
|
174
168
|
private resetOptions;
|
|
175
|
-
private handleInitialValue;
|
|
176
169
|
componentWillLoad(): void;
|
|
177
170
|
componentDidRender(): void;
|
|
178
|
-
componentDidLoad():
|
|
179
|
-
disconnectedCallback(): void;
|
|
171
|
+
componentDidLoad(): void;
|
|
180
172
|
private handlerIconClick;
|
|
181
173
|
private buildNumberArgument;
|
|
182
174
|
private onTextInputChangeHandler;
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
1
|
import { SplitOptions } from 'split-grid';
|
|
3
|
-
import IPanelSizeInfo from './interfaces/IPanelSizeInfo';
|
|
4
2
|
export declare class SplitPanel {
|
|
5
3
|
direction: 'row' | 'column';
|
|
6
4
|
/**
|
|
@@ -12,13 +10,11 @@ export declare class SplitPanel {
|
|
|
12
10
|
_panelID: string;
|
|
13
11
|
_mutationObserver: MutationObserver;
|
|
14
12
|
_buildInProgress: boolean;
|
|
15
|
-
resizeEnd: EventEmitter<IPanelSizeInfo>;
|
|
16
13
|
rebuildLayout(): void;
|
|
17
14
|
private buildItems;
|
|
18
15
|
componentDidLoad(): void;
|
|
19
16
|
disconnectedCallback(): void;
|
|
20
17
|
initSplit(): void;
|
|
21
|
-
handlePanelDragEnd(): void;
|
|
22
18
|
getGutters(): SplitOptions;
|
|
23
19
|
addItemGutter(item: HTMLEzSplitItemElement): void;
|
|
24
20
|
getElementStyle(): {
|