master-components-react 4.2.40 → 4.2.41
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.
|
@@ -324,11 +324,11 @@ Valid keys: `+JSON.stringify(Object.keys(X),null," "));var ce=pe(M,re,A,B,R+"."
|
|
|
324
324
|
* of the MIT license. See the LICENSE file in the root of the project for details.
|
|
325
325
|
*
|
|
326
326
|
* https://github.com/DevExpress/devextreme-react
|
|
327
|
-
*/var Le=Ht&&Ht.__extends||function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(n[a]=r[a])},e(t,i)};return function(t,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");e(t,i);function n(){this.constructor=t}t.prototype=i===null?Object.create(i):(n.prototype=i.prototype,new n)}}();Object.defineProperty(_e,"__esModule",{value:!0});_e.Lookup=qk=_e.LoadPanel=_e.Label=_e.KeyboardNavigation=_e.Item=_e.Hide=jk=_e.HeaderFilter=_e.GroupPanel=_e.GroupOperationDescriptions=_e.GroupItem=_e.GroupingTexts=Kk=_e.Grouping=_e.From=_e.FormItem=_e.Format=_e.Form=Uk=_e.FilterRow=_e.FilterPanelTexts=_e.FilterPanel=_e.FilterOperationDescriptions=_e.FilterBuilderPopup=_e.FilterBuilder=_e.FieldLookup=_e.Field=_e.ExportTexts=_e.Export=_e.EmailRule=_e.EditingTexts=Gk=_e.Editing=_e.DataGridHeaderFilterTexts=_e.DataGridHeaderFilter=_e.CustomRule=_e.CustomOperation=_e.CursorOffset=_e.CompareRule=_e.ColumnLookup=_e.ColumnHeaderFilter=_e.ColumnFixingTexts=_e.ColumnFixing=_e.ColumnChooser=jc=_e.Column=_e.Collision=_e.ColCountByScreen=_e.Change=_e.Button=_e.BoundaryOffset=_e.At=_e.AsyncRule=_e.Animation=zk=_e.DataGrid=void 0;_e.ValueFormat=_e.ValidationRule=$m=_e.TotalItem=_e.ToolbarItem=_e.Toolbar=_e.To=_e.Texts=_e.SummaryTexts=Nm=_e.Summary=_e.StringLengthRule=_e.StateStoring=_e.Sorting=_e.SortByGroupSummaryInfo=_e.Show=eB=_e.Selection=Qk=_e.SearchPanel=Jk=_e.Scrolling=_e.RowDragging=_e.RequiredRule=_e.RemoteOperations=_e.RangeRule=_e.Position=_e.Popup=_e.PatternRule=Zk=_e.Paging=Xk=_e.Pager=_e.OperationDescriptions=_e.Offset=_e.NumericRule=_e.My=Yk=_e.MasterDetail=void 0;var vse=roe,ye=Bk,_se=yf,Pe=YC,XC=function(e){Le(t,e);function t(){var i=e!==null&&e.apply(this,arguments)||this;return i._WidgetClass=vse.default,i.useRequestAnimationFrameFlag=!0,i.subscribableOptions=["columns","editing","editing.changes","editing.editColumnName","editing.editRowKey","filterPanel","filterPanel.filterEnabled","filterValue","focusedColumnIndex","focusedRowIndex","focusedRowKey","paging","paging.pageIndex","paging.pageSize","searchPanel","searchPanel.text","selectedRowKeys","selectionFilter"],i.independentEvents=["onAdaptiveDetailRowPreparing","onCellClick","onCellDblClick","onCellPrepared","onContentReady","onContextMenuPreparing","onDataErrorOccurred","onDisposing","onEditCanceled","onEditCanceling","onEditingStart","onEditorPrepared","onEditorPreparing","onExported","onExporting","onFileSaving","onFocusedCellChanging","onFocusedRowChanging","onInitialized","onInitNewRow","onKeyDown","onRowClick","onRowCollapsed","onRowCollapsing","onRowDblClick","onRowExpanded","onRowExpanding","onRowInserted","onRowInserting","onRowPrepared","onRowRemoved","onRowRemoving","onRowUpdated","onRowUpdating","onRowValidating","onSaved","onSaving","onToolbarPreparing"],i._defaults={defaultColumns:"columns",defaultEditing:"editing",defaultFilterPanel:"filterPanel",defaultFilterValue:"filterValue",defaultFocusedColumnIndex:"focusedColumnIndex",defaultFocusedRowIndex:"focusedRowIndex",defaultFocusedRowKey:"focusedRowKey",defaultPaging:"paging",defaultSearchPanel:"searchPanel",defaultSelectedRowKeys:"selectedRowKeys",defaultSelectionFilter:"selectionFilter"},i._expectedChildren={column:{optionName:"columns",isCollectionItem:!0},columnChooser:{optionName:"columnChooser",isCollectionItem:!1},columnFixing:{optionName:"columnFixing",isCollectionItem:!1},dataGridHeaderFilter:{optionName:"headerFilter",isCollectionItem:!1},editing:{optionName:"editing",isCollectionItem:!1},export:{optionName:"export",isCollectionItem:!1},filterBuilder:{optionName:"filterBuilder",isCollectionItem:!1},filterBuilderPopup:{optionName:"filterBuilderPopup",isCollectionItem:!1},filterPanel:{optionName:"filterPanel",isCollectionItem:!1},filterRow:{optionName:"filterRow",isCollectionItem:!1},grouping:{optionName:"grouping",isCollectionItem:!1},groupPanel:{optionName:"groupPanel",isCollectionItem:!1},headerFilter:{optionName:"headerFilter",isCollectionItem:!1},keyboardNavigation:{optionName:"keyboardNavigation",isCollectionItem:!1},loadPanel:{optionName:"loadPanel",isCollectionItem:!1},masterDetail:{optionName:"masterDetail",isCollectionItem:!1},pager:{optionName:"pager",isCollectionItem:!1},paging:{optionName:"paging",isCollectionItem:!1},remoteOperations:{optionName:"remoteOperations",isCollectionItem:!1},rowDragging:{optionName:"rowDragging",isCollectionItem:!1},scrolling:{optionName:"scrolling",isCollectionItem:!1},searchPanel:{optionName:"searchPanel",isCollectionItem:!1},selection:{optionName:"selection",isCollectionItem:!1},sortByGroupSummaryInfo:{optionName:"sortByGroupSummaryInfo",isCollectionItem:!0},sorting:{optionName:"sorting",isCollectionItem:!1},stateStoring:{optionName:"stateStoring",isCollectionItem:!1},summary:{optionName:"summary",isCollectionItem:!1},toolbar:{optionName:"toolbar",isCollectionItem:!1}},i._templateProps=[{tmplOption:"dataRowTemplate",render:"dataRowRender",component:"dataRowComponent",keyFn:"dataRowKeyFn"},{tmplOption:"rowTemplate",render:"rowRender",component:"rowComponent",keyFn:"rowKeyFn"}],i}return Object.defineProperty(t.prototype,"instance",{get:function(){return this._instance},enumerable:!1,configurable:!0}),t}(_se.Component),zk=_e.DataGrid=XC;XC.propTypes={accessKey:ye.string,activeStateEnabled:ye.bool,allowColumnReordering:ye.bool,allowColumnResizing:ye.bool,autoNavigateToFocusedRow:ye.bool,cacheEnabled:ye.bool,cellHintEnabled:ye.bool,columnAutoWidth:ye.bool,columnChooser:ye.object,columnFixing:ye.object,columnHidingEnabled:ye.bool,columnMinWidth:ye.number,columnResizingMode:ye.oneOf(["nextColumn","widget"]),columns:ye.array,columnWidth:ye.oneOfType([ye.number,ye.oneOf(["auto"])]),customizeColumns:ye.func,customizeExportData:ye.func,dataSource:ye.oneOfType([ye.array,ye.object,ye.string]),dateSerializationFormat:ye.string,disabled:ye.bool,editing:ye.object,elementAttr:ye.object,errorRowEnabled:ye.bool,export:ye.object,filterBuilder:ye.object,filterBuilderPopup:ye.object,filterPanel:ye.object,filterRow:ye.object,filterSyncEnabled:ye.oneOfType([ye.bool,ye.oneOf(["auto"])]),filterValue:ye.oneOfType([ye.array,ye.func,ye.string]),focusedColumnIndex:ye.number,focusedRowEnabled:ye.bool,focusedRowIndex:ye.number,focusStateEnabled:ye.bool,grouping:ye.object,groupPanel:ye.object,headerFilter:ye.object,height:ye.oneOfType([ye.func,ye.number,ye.string]),highlightChanges:ye.bool,hint:ye.string,hoverStateEnabled:ye.bool,keyboardNavigation:ye.object,keyExpr:ye.oneOfType([ye.array,ye.string]),loadPanel:ye.object,masterDetail:ye.object,noDataText:ye.string,onAdaptiveDetailRowPreparing:ye.func,onCellClick:ye.func,onCellDblClick:ye.func,onCellHoverChanged:ye.func,onCellPrepared:ye.func,onContentReady:ye.func,onContextMenuPreparing:ye.func,onDataErrorOccurred:ye.func,onDisposing:ye.func,onEditCanceled:ye.func,onEditCanceling:ye.func,onEditingStart:ye.func,onEditorPrepared:ye.func,onEditorPreparing:ye.func,onExported:ye.func,onExporting:ye.func,onFileSaving:ye.func,onFocusedCellChanged:ye.func,onFocusedCellChanging:ye.func,onFocusedRowChanged:ye.func,onFocusedRowChanging:ye.func,onInitialized:ye.func,onInitNewRow:ye.func,onKeyDown:ye.func,onOptionChanged:ye.func,onRowClick:ye.func,onRowCollapsed:ye.func,onRowCollapsing:ye.func,onRowDblClick:ye.func,onRowExpanded:ye.func,onRowExpanding:ye.func,onRowInserted:ye.func,onRowInserting:ye.func,onRowPrepared:ye.func,onRowRemoved:ye.func,onRowRemoving:ye.func,onRowUpdated:ye.func,onRowUpdating:ye.func,onRowValidating:ye.func,onSaved:ye.func,onSaving:ye.func,onSelectionChanged:ye.func,onToolbarPreparing:ye.func,pager:ye.object,paging:ye.object,remoteOperations:ye.oneOfType([ye.bool,ye.object,ye.oneOf(["auto"])]),renderAsync:ye.bool,repaintChangesOnly:ye.bool,rowAlternationEnabled:ye.bool,rowDragging:ye.object,rtlEnabled:ye.bool,scrolling:ye.object,searchPanel:ye.object,selectedRowKeys:ye.array,selection:ye.object,selectionFilter:ye.oneOfType([ye.array,ye.func,ye.string]),showBorders:ye.bool,showColumnHeaders:ye.bool,showColumnLines:ye.bool,showRowLines:ye.bool,sortByGroupSummaryInfo:ye.array,sorting:ye.object,stateStoring:ye.object,summary:ye.object,tabIndex:ye.number,toolbar:ye.object,twoWayBindingEnabled:ye.bool,visible:ye.bool,width:ye.oneOfType([ye.func,ye.number,ye.string]),wordWrapEnabled:ye.bool};var mse=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="animation",t.ExpectedChildren={hide:{optionName:"hide",isCollectionItem:!1},show:{optionName:"show",isCollectionItem:!1}},t}(Pe.default);_e.Animation=mse;var gse=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="validationRules",t.IsCollectionItem=!0,t.PredefinedProps={type:"async"},t}(Pe.default);_e.AsyncRule=gse;var Cse=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="at",t}(Pe.default);_e.At=Cse;var yse=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="boundaryOffset",t}(Pe.default);_e.BoundaryOffset=yse;var xse=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="buttons",t.IsCollectionItem=!0,t.TemplateProps=[{tmplOption:"template",render:"render",component:"component",keyFn:"keyFn"}],t}(Pe.default);_e.Button=xse;var bse=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="changes",t.IsCollectionItem=!0,t}(Pe.default);_e.Change=bse;var Sse=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="colCountByScreen",t}(Pe.default);_e.ColCountByScreen=Sse;var wse=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="collision",t}(Pe.default);_e.Collision=wse;var Ese=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="columns",t.IsCollectionItem=!0,t.DefaultsProps={defaultFilterValue:"filterValue",defaultFilterValues:"filterValues",defaultGroupIndex:"groupIndex",defaultSelectedFilterOperation:"selectedFilterOperation",defaultSortIndex:"sortIndex",defaultSortOrder:"sortOrder",defaultVisible:"visible",defaultVisibleIndex:"visibleIndex"},t.ExpectedChildren={AsyncRule:{optionName:"validationRules",isCollectionItem:!0},button:{optionName:"buttons",isCollectionItem:!0},columnHeaderFilter:{optionName:"headerFilter",isCollectionItem:!1},columnLookup:{optionName:"lookup",isCollectionItem:!1},CompareRule:{optionName:"validationRules",isCollectionItem:!0},CustomRule:{optionName:"validationRules",isCollectionItem:!0},EmailRule:{optionName:"validationRules",isCollectionItem:!0},format:{optionName:"format",isCollectionItem:!1},formItem:{optionName:"formItem",isCollectionItem:!1},headerFilter:{optionName:"headerFilter",isCollectionItem:!1},lookup:{optionName:"lookup",isCollectionItem:!1},NumericRule:{optionName:"validationRules",isCollectionItem:!0},PatternRule:{optionName:"validationRules",isCollectionItem:!0},RangeRule:{optionName:"validationRules",isCollectionItem:!0},RequiredRule:{optionName:"validationRules",isCollectionItem:!0},StringLengthRule:{optionName:"validationRules",isCollectionItem:!0},validationRule:{optionName:"validationRules",isCollectionItem:!0}},t.TemplateProps=[{tmplOption:"cellTemplate",render:"cellRender",component:"cellComponent",keyFn:"cellKeyFn"},{tmplOption:"editCellTemplate",render:"editCellRender",component:"editCellComponent",keyFn:"editCellKeyFn"},{tmplOption:"groupCellTemplate",render:"groupCellRender",component:"groupCellComponent",keyFn:"groupCellKeyFn"},{tmplOption:"headerCellTemplate",render:"headerCellRender",component:"headerCellComponent",keyFn:"headerCellKeyFn"}],t}(Pe.default),jc=_e.Column=Ese,Ise=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="columnChooser",t}(Pe.default);_e.ColumnChooser=Ise;var Tse=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="columnFixing",t.ExpectedChildren={columnFixingTexts:{optionName:"texts",isCollectionItem:!1},texts:{optionName:"texts",isCollectionItem:!1}},t}(Pe.default);_e.ColumnFixing=Tse;var Ase=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="texts",t}(Pe.default);_e.ColumnFixingTexts=Ase;var Dse=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="headerFilter",t}(Pe.default);_e.ColumnHeaderFilter=Dse;var Ose=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="lookup",t}(Pe.default);_e.ColumnLookup=Ose;var Rse=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="validationRules",t.IsCollectionItem=!0,t.PredefinedProps={type:"compare"},t}(Pe.default);_e.CompareRule=Rse;var kse=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="cursorOffset",t}(Pe.default);_e.CursorOffset=kse;var Bse=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="customOperations",t.IsCollectionItem=!0,t.TemplateProps=[{tmplOption:"editorTemplate",render:"editorRender",component:"editorComponent",keyFn:"editorKeyFn"}],t}(Pe.default);_e.CustomOperation=Bse;var Lse=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="validationRules",t.IsCollectionItem=!0,t.PredefinedProps={type:"custom"},t}(Pe.default);_e.CustomRule=Lse;var Pse=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="headerFilter",t.ExpectedChildren={dataGridHeaderFilterTexts:{optionName:"texts",isCollectionItem:!1},texts:{optionName:"texts",isCollectionItem:!1}},t}(Pe.default);_e.DataGridHeaderFilter=Pse;var Fse=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="texts",t}(Pe.default);_e.DataGridHeaderFilterTexts=Fse;var Mse=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="editing",t.DefaultsProps={defaultChanges:"changes",defaultEditColumnName:"editColumnName",defaultEditRowKey:"editRowKey"},t.ExpectedChildren={change:{optionName:"changes",isCollectionItem:!0},editingTexts:{optionName:"texts",isCollectionItem:!1},form:{optionName:"form",isCollectionItem:!1},popup:{optionName:"popup",isCollectionItem:!1},texts:{optionName:"texts",isCollectionItem:!1}},t}(Pe.default),Gk=_e.Editing=Mse,Vse=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="texts",t}(Pe.default);_e.EditingTexts=Vse;var Nse=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="validationRules",t.IsCollectionItem=!0,t.PredefinedProps={type:"email"},t}(Pe.default);_e.EmailRule=Nse;var $se=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="export",t.ExpectedChildren={exportTexts:{optionName:"texts",isCollectionItem:!1},texts:{optionName:"texts",isCollectionItem:!1}},t}(Pe.default);_e.Export=$se;var Hse=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="texts",t}(Pe.default);_e.ExportTexts=Hse;var Wse=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="fields",t.IsCollectionItem=!0,t.ExpectedChildren={fieldLookup:{optionName:"lookup",isCollectionItem:!1},format:{optionName:"format",isCollectionItem:!1},lookup:{optionName:"lookup",isCollectionItem:!1}},t.TemplateProps=[{tmplOption:"editorTemplate",render:"editorRender",component:"editorComponent",keyFn:"editorKeyFn"}],t}(Pe.default);_e.Field=Wse;var zse=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="lookup",t}(Pe.default);_e.FieldLookup=zse;var Gse=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="filterBuilder",t.DefaultsProps={defaultValue:"value"},t.ExpectedChildren={customOperation:{optionName:"customOperations",isCollectionItem:!0},field:{optionName:"fields",isCollectionItem:!0},filterOperationDescriptions:{optionName:"filterOperationDescriptions",isCollectionItem:!1},groupOperationDescriptions:{optionName:"groupOperationDescriptions",isCollectionItem:!1}},t}(Pe.default);_e.FilterBuilder=Gse;var Use=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="filterBuilderPopup",t.DefaultsProps={defaultHeight:"height",defaultPosition:"position",defaultVisible:"visible",defaultWidth:"width"},t.TemplateProps=[{tmplOption:"contentTemplate",render:"contentRender",component:"contentComponent",keyFn:"contentKeyFn"},{tmplOption:"titleTemplate",render:"titleRender",component:"titleComponent",keyFn:"titleKeyFn"}],t}(Pe.default);_e.FilterBuilderPopup=Use;var Kse=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="filterOperationDescriptions",t}(Pe.default);_e.FilterOperationDescriptions=Kse;var jse=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="filterPanel",t.DefaultsProps={defaultFilterEnabled:"filterEnabled"},t.ExpectedChildren={filterPanelTexts:{optionName:"texts",isCollectionItem:!1},texts:{optionName:"texts",isCollectionItem:!1}},t}(Pe.default);_e.FilterPanel=jse;var qse=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="texts",t}(Pe.default);_e.FilterPanelTexts=qse;var Yse=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="filterRow",t.ExpectedChildren={operationDescriptions:{optionName:"operationDescriptions",isCollectionItem:!1}},t}(Pe.default),Uk=_e.FilterRow=Yse,Xse=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="form",t.DefaultsProps={defaultFormData:"formData"},t.ExpectedChildren={colCountByScreen:{optionName:"colCountByScreen",isCollectionItem:!1}},t}(Pe.default);_e.Form=Xse;var Zse=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="format",t}(Pe.default);_e.Format=Zse;var Jse=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="formItem",t.ExpectedChildren={AsyncRule:{optionName:"validationRules",isCollectionItem:!0},CompareRule:{optionName:"validationRules",isCollectionItem:!0},CustomRule:{optionName:"validationRules",isCollectionItem:!0},EmailRule:{optionName:"validationRules",isCollectionItem:!0},label:{optionName:"label",isCollectionItem:!1},NumericRule:{optionName:"validationRules",isCollectionItem:!0},PatternRule:{optionName:"validationRules",isCollectionItem:!0},RangeRule:{optionName:"validationRules",isCollectionItem:!0},RequiredRule:{optionName:"validationRules",isCollectionItem:!0},StringLengthRule:{optionName:"validationRules",isCollectionItem:!0},validationRule:{optionName:"validationRules",isCollectionItem:!0}},t.TemplateProps=[{tmplOption:"template",render:"render",component:"component",keyFn:"keyFn"}],t}(Pe.default);_e.FormItem=Jse;var Qse=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="from",t.ExpectedChildren={position:{optionName:"position",isCollectionItem:!1}},t}(Pe.default);_e.From=Qse;var ele=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="grouping",t.ExpectedChildren={groupingTexts:{optionName:"texts",isCollectionItem:!1},texts:{optionName:"texts",isCollectionItem:!1}},t}(Pe.default),Kk=_e.Grouping=ele,tle=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="texts",t}(Pe.default);_e.GroupingTexts=tle;var ile=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="groupItems",t.IsCollectionItem=!0,t.ExpectedChildren={valueFormat:{optionName:"valueFormat",isCollectionItem:!1}},t}(Pe.default);_e.GroupItem=ile;var nle=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="groupOperationDescriptions",t}(Pe.default);_e.GroupOperationDescriptions=nle;var rle=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="groupPanel",t}(Pe.default);_e.GroupPanel=rle;var ale=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="headerFilter",t}(Pe.default),jk=_e.HeaderFilter=ale,ole=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="hide",t.ExpectedChildren={from:{optionName:"from",isCollectionItem:!1},to:{optionName:"to",isCollectionItem:!1}},t}(Pe.default);_e.Hide=ole;var sle=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="items",t.IsCollectionItem=!0,t.TemplateProps=[{tmplOption:"menuItemTemplate",render:"menuItemRender",component:"menuItemComponent",keyFn:"menuItemKeyFn"},{tmplOption:"template",render:"render",component:"component",keyFn:"keyFn"}],t}(Pe.default);_e.Item=sle;var lle=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="keyboardNavigation",t}(Pe.default);_e.KeyboardNavigation=lle;var ule=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="label",t}(Pe.default);_e.Label=ule;var dle=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="loadPanel",t}(Pe.default),qk=_e.LoadPanel=dle,cle=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="lookup",t}(Pe.default);_e.Lookup=cle;var hle=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="masterDetail",t.TemplateProps=[{tmplOption:"template",render:"render",component:"component",keyFn:"keyFn"}],t}(Pe.default),Yk=_e.MasterDetail=hle,fle=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="my",t}(Pe.default);_e.My=fle;var ple=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="validationRules",t.IsCollectionItem=!0,t.PredefinedProps={type:"numeric"},t}(Pe.default);_e.NumericRule=ple;var vle=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="offset",t}(Pe.default);_e.Offset=vle;var _le=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="operationDescriptions",t}(Pe.default);_e.OperationDescriptions=_le;var mle=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="pager",t}(Pe.default),Xk=_e.Pager=mle,gle=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="paging",t.DefaultsProps={defaultPageIndex:"pageIndex",defaultPageSize:"pageSize"},t}(Pe.default),Zk=_e.Paging=gle,Cle=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="validationRules",t.IsCollectionItem=!0,t.PredefinedProps={type:"pattern"},t}(Pe.default);_e.PatternRule=Cle;var yle=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="popup",t.DefaultsProps={defaultHeight:"height",defaultPosition:"position",defaultVisible:"visible",defaultWidth:"width"},t.ExpectedChildren={animation:{optionName:"animation",isCollectionItem:!1},position:{optionName:"position",isCollectionItem:!1},toolbarItem:{optionName:"toolbarItems",isCollectionItem:!0}},t.TemplateProps=[{tmplOption:"contentTemplate",render:"contentRender",component:"contentComponent",keyFn:"contentKeyFn"},{tmplOption:"titleTemplate",render:"titleRender",component:"titleComponent",keyFn:"titleKeyFn"}],t}(Pe.default);_e.Popup=yle;var xle=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="position",t}(Pe.default);_e.Position=xle;var ble=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="validationRules",t.IsCollectionItem=!0,t.PredefinedProps={type:"range"},t}(Pe.default);_e.RangeRule=ble;var Sle=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="remoteOperations",t}(Pe.default);_e.RemoteOperations=Sle;var wle=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="validationRules",t.IsCollectionItem=!0,t.PredefinedProps={type:"required"},t}(Pe.default);_e.RequiredRule=wle;var Ele=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="rowDragging",t.ExpectedChildren={cursorOffset:{optionName:"cursorOffset",isCollectionItem:!1}},t.TemplateProps=[{tmplOption:"dragTemplate",render:"dragRender",component:"dragComponent",keyFn:"dragKeyFn"}],t}(Pe.default);_e.RowDragging=Ele;var Ile=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="scrolling",t}(Pe.default),Jk=_e.Scrolling=Ile,Tle=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="searchPanel",t.DefaultsProps={defaultText:"text"},t}(Pe.default),Qk=_e.SearchPanel=Tle,Ale=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="selection",t}(Pe.default),eB=_e.Selection=Ale,Dle=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="show",t}(Pe.default);_e.Show=Dle;var Ole=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="sortByGroupSummaryInfo",t.IsCollectionItem=!0,t}(Pe.default);_e.SortByGroupSummaryInfo=Ole;var Rle=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="sorting",t}(Pe.default);_e.Sorting=Rle;var kle=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="stateStoring",t}(Pe.default);_e.StateStoring=kle;var Ble=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="validationRules",t.IsCollectionItem=!0,t.PredefinedProps={type:"stringLength"},t}(Pe.default);_e.StringLengthRule=Ble;var Lle=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="summary",t.ExpectedChildren={groupItem:{optionName:"groupItems",isCollectionItem:!0},summaryTexts:{optionName:"texts",isCollectionItem:!1},texts:{optionName:"texts",isCollectionItem:!1},totalItem:{optionName:"totalItems",isCollectionItem:!0}},t}(Pe.default),Nm=_e.Summary=Lle,Ple=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="texts",t}(Pe.default);_e.SummaryTexts=Ple;var Fle=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="texts",t}(Pe.default);_e.Texts=Fle;var Mle=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="to",t}(Pe.default);_e.To=Mle;var Vle=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="toolbar",t.ExpectedChildren={item:{optionName:"items",isCollectionItem:!0}},t}(Pe.default);_e.Toolbar=Vle;var Nle=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="toolbarItems",t.IsCollectionItem=!0,t.TemplateProps=[{tmplOption:"template",render:"render",component:"component",keyFn:"keyFn"}],t}(Pe.default);_e.ToolbarItem=Nle;var $le=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="totalItems",t.IsCollectionItem=!0,t.ExpectedChildren={valueFormat:{optionName:"valueFormat",isCollectionItem:!1}},t}(Pe.default),$m=_e.TotalItem=$le,Hle=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="validationRules",t.IsCollectionItem=!0,t.PredefinedProps={type:"required"},t}(Pe.default);_e.ValidationRule=Hle;var Wle=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="valueFormat",t}(Pe.default);_e.ValueFormat=Wle;_e.default=XC;const zle="ColumnConfigure-module__configureWrapper",Gle="ColumnConfigure-module__iconWrapper",Ule="ColumnConfigure-module__notVisible",Kle="ColumnConfigure-module__iconDrag",jle="ColumnConfigure-module__dark",Cs={configureWrapper:zle,iconWrapper:Gle,notVisible:Ule,iconDrag:Kle,dark:jle},qle=e=>E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 6 10",...e,children:E.jsx("path",{fill:"#15181A",d:"M2 1a1 1 0 11-2 0 1 1 0 012 0zM6 1a1 1 0 11-2 0 1 1 0 012 0zM2 5a1 1 0 11-2 0 1 1 0 012 0zM6 5a1 1 0 11-2 0 1 1 0 012 0zM2 9a1 1 0 11-2 0 1 1 0 012 0zM6 9a1 1 0 11-2 0 1 1 0 012 0z"})}),Yle=({items:e,change:t,theme:i})=>{const n=le.useRef(e),[r,a]=le.useState(null),[o,s]=le.useState(!1),[l,u]=le.useState(!1),d=le.useRef(null),c=le.useRef(null);le.useEffect(()=>(document.addEventListener("click",h),()=>{document.removeEventListener("click",h)}),[]);const h=L=>{L.composedPath().includes(c.current)||s(!1)},f=(L,D)=>{a(D),L.dataTransfer.effectAllowed="move",L.dataTransfer.setData("text/plain",D)},p=L=>{L.preventDefault()},v=(L,D)=>{if(D===r)return;const $=[...n.current],G=$[r];$.splice(r,1),$.splice(D,0,G),n.current=$,a(D)},g=()=>{a(null),C(),t(n.current)},C=()=>{u(L=>!L)};le.useEffect(()=>{n.current=n.current.map((L,D)=>({...L,orderIndex:D}))},[r]);const x=L=>{n.current=n.current.map((D,$)=>$===L?{...D,visible:!D.visible}:D),u(D=>!D)},S=()=>{s(L=>!L)};return E.jsxs("div",{className:`${i==="dark"?Cs.dark:""} ${Cs.configureWrapper} ${o?Cs.active:""}`,ref:c,children:[E.jsx("div",{className:Cs.iconWrapper,onClick:S,children:E.jsx(PI,{})}),o&&E.jsx("ul",{className:"draggable-list",ref:d,children:n.current.map((L,D)=>E.jsxs("li",{className:`draggable-item${D===r?" dragged":""} ${L.visible?"":Cs.notVisible}`,draggable:!0,onDragStart:$=>f($,D),onDragOver:p,onDragEnter:$=>v($,D),onDragEnd:g,children:[E.jsx("div",{className:Cs.iconDrag,children:E.jsx(qle,{})}),E.jsx(Bu,{checked:L.visible||!1,change:()=>(x(D),t(n.current))}),E.jsx("span",{children:L.columnName})]},D))})]})},Xle="Actions-module__actionsWrapper",Zle="Actions-module__moreActionsButton",Jle="Actions-module__actionIcon",Qle="Actions-module__actionLabel",eue="Actions-module__dark",tue="Actions-module__staticColor",iue="Actions-module__defaultIcons",eo={actionsWrapper:Xle,moreActionsButton:Zle,actionIcon:Jle,actionLabel:Qle,dark:eue,staticColor:tue,defaultIcons:iue},tB=()=>E.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20",children:[E.jsx("path",{stroke:"#15181A",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",d:"M9.167 1.667H7.5c-4.167 0-5.833 1.666-5.833 5.833v5c0 4.167 1.666 5.833 5.833 5.833h5c4.167 0 5.833-1.666 5.833-5.833v-1.667"}),E.jsx("path",{stroke:"#15181A",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:"1.5",d:"M13.367 2.517L6.8 9.083c-.25.25-.5.742-.55 1.1l-.358 2.509c-.134.908.508 1.541 1.416 1.416l2.509-.358c.35-.05.841-.3 1.1-.55l6.566-6.567c1.134-1.133 1.667-2.45 0-4.116-1.666-1.667-2.983-1.134-4.116 0zM12.425 3.458a5.954 5.954 0 004.117 4.117"})]}),nue=({actions:e,onExpand:t,rowID:i,visible:n,rowData:r,theme:a})=>{const o=le.useRef(null),s=le.useRef(null),l=le.useRef({top:0,left:0}),u=p=>{t&&typeof t=="function"&&(t(!n),d())},d=()=>{const p=o.current.getBoundingClientRect(),v=s.current.getBoundingClientRect();l.current.top=p.top+v.height+20,l.current.left=p.left-v.width/1.5},c=(p,v)=>{r[v.disableKey]||v.event&&typeof v.event=="function"&&v.event(v.type,r)},h=p=>{let v;const g=["delete","edit"];if(p.type&&g.includes(p.type))switch(p.type==="delete"&&(p.style={color:"#D92D20"}),String(p.type)){case"delete":{v=E.jsx(zm,{});break}case"edit":{v=E.jsx(tB,{});break}}else v="no_icon";return v},f=p=>p.labelIcon&&typeof p.labelIcon=="function"?p.labelIcon():null;return E.jsxs("div",{id:`datagrid_action_data_id_${i}`,className:`${a==="dark"?eo.dark:""}${eo.actionsWrapper} datagrid_action_data_controller`,onClick:p=>p.stopPropagation(),children:[E.jsxs("div",{className:eo.moreActionsButton,onClick:p=>u(),ref:o,children:[E.jsx("div",{}),E.jsx("div",{}),E.jsx("div",{})]}),E.jsx("ul",{ref:s,children:e&&e.map((p,v)=>p.hiddenActionRows&&Array.isArray(p.hiddenActionRows)&&p.hiddenActionRows.includes(i)?null:E.jsxs("li",{onClick:C=>c(C,p),style:{cursor:r[p.disableKey]?"not-allowed":"pointer"},children:[E.jsx("div",{className:`
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
`,style:{opacity:r[p.disableKey]?.5:1},children:h(p)&&h(p)!=="no_icon"?h(p):p==null?void 0:p.icon()}),E.jsxs("div",{className:eo.actionLabel,children:[E.jsx("p",{style:{...p==null?void 0:p.style,opacity:r[p.disableKey]?.5:1},children:p==null?void 0:p.label})," ",f(p)]})]},v))})]})},rue="DeleteAll-module__deleteAllWrapper",aue="DeleteAll-module__iconContainer",oue="DeleteAll-module__deleteItemsCountLabel",sue="DeleteAll-module__dark",lue="DeleteAll-module__datagridDeleteAllAction",Ml={deleteAllWrapper:rue,iconContainer:aue,deleteItemsCountLabel:oue,dark:sue,datagridDeleteAllAction:lue},uue=le.forwardRef((e,t)=>{const[i,n]=le.useState(0),r=o=>{n(o)};le.useImperativeHandle(t,()=>({setValue:r}));const a=()=>{e.onDeleteAll&&typeof e.onDeleteAll=="function"&&e.onDeleteAll()};return E.jsxs("div",{ref:t,className:`${(e==null?void 0:e.theme)==="dark"?Ml.dark:""} ${Ml.datagridDeleteAllAction} ${Ml.deleteAllWrapper}`,children:[E.jsx("div",{className:Ml.iconContainer,onClick:a,children:E.jsx(tB,{})}),E.jsx("div",{className:Ml.deleteItemsCountLabel,children:E.jsxs("span",{children:["Delete ",i," Checked Item"]})})]})}),due=({data:e,customColumns:t,summary:i,keyExpr:n,theme:r,height:a,focusedRowEnabled:o=!0,rowAlternationEnabled:s,columnAutoWidth:l=!0,withCustomStore:u,withGrouping:d,groupDefaultCollapsed:c,storeKey:h,loadFunction:f,updateFunction:p,insertFunction:v,removeFunction:g,withColumnConfigure:C,withDeleteAll:x,withMasterDetail:S,detailTemplate:L,editingOptions:D,scrollMode:$,pagerOptions:G,selection:z,filterOptions:q,defaultPageIndex:ie,searchPanel:Z,onEvent:H,onPageChange:ee,selectionChanged:I,focusedRowChanging:U,focusedRowChanged:P,onRowClick:Y,onWheelClick:se,showPagination:te=!0,refresh:X,diselectAll:j,customActions:y,onColumnConfigure:T,onDeleteAll:A,onDelete:B,onEdit:R,withCustomActions:M,multiExpand:V,onFilterValueChange:J,onRowExpand:re,onRowCollaps:pe,onOptionChanged:ce,onRowPrepared:Ae,onFocusedCellChanged:b,ShowLoader:ae=!0,noDataText:ue,onLoading:F,hideActions:N,allowColumnResizing:Q=!0,disableOverflow:me,onActionExpand:he})=>{const[ne,be]=le.useState(!1),De=le.useRef(t),Ie=le.useRef(null),[Ne,rt]=le.useState(""),Je=le.useRef({Refresh:()=>Ie.current.instance.getDataSource().reload(),SelectedRowKeys:()=>Ie.current.instance.getSelectedRowKeys(),DeselectAll:()=>{var Ce;return(Ce=Ie.current)==null?void 0:Ce.instance.deselectAll()}}),[Et,ht]=le.useState([{label:"Edit",type:"edit",event:(Ce,fe)=>Ha(Ce,fe)},{label:"Delete",type:"delete",event:(Ce,fe)=>$a(Ce,fe)}]),Gt=le.useRef(null),mi=Ce=>{Et&&Et.length&&fi()},st=()=>{Et&&Et.length&&fi()},fi=()=>{document.querySelectorAll(".datagrid_action_data_controller > ul").forEach(fe=>{fe.style.display="none",fe.style.pointerEvents="none"})},Mi=new zs({key:h??"id",load:f,update:p,insert:v,remove:g,onLoading:F}),bt=(Ce,fe)=>{if(H&&typeof H=="function"&&H(fe,Ce),fe==="onContentReady"){const K=document.querySelector(".dx-pager"),Ee=document.querySelector("#pagination-container");let Re=!1;K?Re=!K.classList.contains("dx-hidden"):Re=!1,Ee.style.display=Re?"block":"none"}},fn=Ce=>{o&&(z==null?void 0:z.mode)==="multiple"&&x&&Gt.current.setValue(Ce.selectedRowKeys.length),I&&typeof I=="function"&&I(Ce)},Ki=Ce=>{U&&typeof U=="function"&&U(Ce)},Vi=Ce=>{P&&typeof P=="function"&&P(Ce)},Ge=Ce=>{b&&typeof b=="function"&&b(Ce)},ft=Ce=>{Y&&typeof Y=="function"&&Y(Ce.data)},qt=(Ce,fe)=>{Ce.button===1&&(se&&typeof se=="function"&&se(fe.data),Ce.preventDefault())},Ni=Ce=>{Ce.rowElement&&Ce.data&&Ce.rowElement.addEventListener("mousedown",fe=>qt(fe,Ce)),Ae&&typeof Ae=="function"&&Ae(Ce)},We=()=>{A&&typeof A=="function"&&A(Je.current.SelectedRowKeys())},It=Ce=>{ce&&typeof ce=="function"&&ce(Ce),Ce.fullName==="paging.pageIndex"&&ee&&typeof ee=="function"&&ee(Ce.value+1)},Di=Ce=>{let K=document.querySelector(`#datagrid_action_data_id_${Ce[n]}`),Ee=document.querySelectorAll(".datagrid_action_data_controller > ul"),Re=K.querySelector("ul");const qe=document.querySelectorAll(".dx-datagrid-rowsview .dx-row > td");qe&&qe.forEach(lt=>{lt.querySelector("ul")?lt.style.overflow="unset":lt.style.overflow="hidden"});const Tt=K.getBoundingClientRect(),Vt=document.querySelector(".gridWrapper").getBoundingClientRect();let pt={display:"block",position:"absolute",pointerEvents:"all",top:"20px",left:"-70px"};Tt.bottom>Vt.bottom-150&&(pt.top="unset",pt.bottom="100%",pt.left="-100px"),Ee.forEach(lt=>{lt.style.display="none",lt.style.pointerEvents="none"}),Object.assign(Re.style,pt)},_t=Ce=>{De.current=Ce,be(fe=>!fe),T&&typeof T=="function"&&T(De.current)},Mt=Ce=>{V||Ce.component.collapseAll(-1),re&&typeof re=="function"&&re(Ce)},Ir=Ce=>{pe&&typeof pe=="function"&&pe(Ce)},qo=Ce=>{Ce.parentType==="filterRow"&&(Ce.editorElement.onchange=fe=>{const K={columnKey:Ce.dataField,columnName:Ce.caption,filterValue:fe.target.value};J&&typeof J=="function"&&J(K)})},$a=(Ce,fe)=>{B&&typeof B=="function"&&B(fe)},Ha=(Ce,fe)=>{R&&typeof R=="function"&&R(fe)};le.useEffect(()=>{y&&y.length&&ht(Ce=>{const fe=Ce;return y.forEach(K=>{fe.some(Ee=>Ee.type===K.type)||fe.push(K)}),fe})},[y]),le.useEffect(()=>{X&&(Je.current.Refresh(),console.info("DataSource Refresh....."))},[X]),le.useEffect(()=>{j&&Je.current.DeselectAll()},[j]),le.useEffect(()=>{if(Array.isArray(me)&&me.length>0){const Ce=()=>{me.forEach(Ee=>{document.querySelectorAll(`.dx-datagrid-rowsview .dx-row td:nth-child(${Ee})`).forEach(qe=>{qe.style.overflow="unset"})})};Ce();const fe=new MutationObserver(()=>{Ce()}),K=document.querySelector(".dx-datagrid-rowsview");return K&&fe.observe(K,{childList:!0,subtree:!0}),()=>fe.disconnect()}},[me]);const nl=()=>{const Ce=Ie.current.instance,fe=Ce.pageIndex();fe>0&&Ce.pageIndex(fe-1)},rl=()=>{const Ce=Ie.current.instance,fe=Ce.pageIndex(),K=Ce.pageCount();fe<K-1&&Ce.pageIndex(fe+1)};return le.useEffect(()=>{De.current=t,be(Ce=>!Ce)},[t]),le.useEffect(()=>(document.addEventListener("click",mi),document.addEventListener("wheel",st),()=>{document.removeEventListener("click",mi),document.removeEventListener("wheel",st)}),[]),le.useEffect(()=>{const Ce=document.querySelector(".dx-pager"),fe=document.querySelector("#pagination-container");let K=!1;Ce?K=!Ce.classList.contains("dx-hidden"):K=!1,fe.style.display=K?"block":"none"},[e,Mi,X]),E.jsxs(E.Fragment,{children:[E.jsx("div",{className:r==="dark"?"dark":"","data-grid-confirm-delete":!0,style:{display:"none"}}),E.jsxs("div",{style:{height:"100%",position:"relative"},className:`gridWrapper __dx_DataGrid_Component__ light ${r&&!["dark","light"].includes(r)?"light":r}`,children:[(C||x&&(z==null?void 0:z.mode)==="multiple")&&E.jsxs("div",{className:"__dx_DataGrid_Toolbar",children:[E.jsx("div",{className:"__dx_DataGrid_Toolbar_Leftside",children:x&&(z==null?void 0:z.mode)==="multiple"&&E.jsx(uue,{theme:r,ref:Gt,onDeleteAll:We})}),E.jsx("div",{className:"__dx_DataGrid_Toolbar_Righttside",children:C&&E.jsx("div",{className:"column_configure_wrapper",children:E.jsx(Yle,{theme:r,items:De.current.sort((Ce,fe)=>Ce.orderIndex-fe.orderIndex),change:Ce=>_t(Ce)})})})]}),E.jsxs("div",{id:"pagination-container",children:[E.jsx("div",{className:"custom-pagination-controls",style:{position:"absolute",bottom:"18px",right:"24px",zIndex:"100"},children:E.jsxs("button",{className:"custom-pagination-button",onClick:rl,size:"sm",style:{backgroundColor:"transparent",border:"1px solid #D5D7DA",borderRadius:"8px",height:"32px",padding:"16px 12px",color:"#414651",fontFamily:"Inter-SemiBold, sans-serif",fontSize:"14px",cursor:"pointer",display:"flex",alignItems:"center",gap:"4px"},children:["Next"," ",E.jsx("svg",{width:"20",height:"21",viewBox:"0 0 20 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:E.jsx("path",{d:"M4.1665 10.5001H15.8332M15.8332 10.5001L9.99984 4.66675M15.8332 10.5001L9.99984 16.3334",stroke:"#414651",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"})})]})}),E.jsx("div",{className:"custom-pagination-controls",style:{position:"absolute",bottom:"18px",left:"24px",zIndex:"100"},children:E.jsxs("button",{className:"custom-pagination-button",onClick:nl,size:"sm",style:{backgroundColor:"transparent",border:"1px solid #D5D7DA",borderRadius:"8px",height:"32px",padding:"16px 12px",color:"#414651",fontSize:"14px",cursor:"pointer",display:"flex",alignItems:"center",gap:"4px",fontFamily:"Inter-SemiBold"},children:[E.jsx("svg",{width:"20",height:"21",viewBox:"0 0 20 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:E.jsx("path",{d:"M15.8334 10.5001H4.16675M4.16675 10.5001L10.0001 16.3334M4.16675 10.5001L10.0001 4.66675",stroke:"#414651",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"})})," ","Previous"]})})]}),E.jsxs(zk,{height:a||"100%",ref:Ie,onRowPrepared:Ni,onFocusedCellChanged:Ge,dataSource:u?Mi:e,remoteOperations:!0,keyExpr:n??"id",allowColumnReordering:!1,allowColumnResizing:Q,columnAutoWidth:l,noDataText:ue??"No Data",showColumnLines:!1,showRowLines:!0,rowAlternationEnabled:s,showBorders:!1,hoverStateEnabled:!0,onEditorPreparing:qo,onEditingStart:Ce=>bt(Ce,"onEditingStart"),onInitNewRow:Ce=>bt(Ce,"onInitNewRow"),onRowInserting:Ce=>bt(Ce,"onRowInserting"),onRowInserted:Ce=>bt(Ce,"onRowInserted"),onRowUpdating:Ce=>bt(Ce,"onRowUpdating"),onRowUpdated:Ce=>bt(Ce,"onRowUpdated"),onRowRemoving:Ce=>bt(Ce,"onRowRemoving"),onRowRemoved:Ce=>bt(Ce,"onRowRemoved"),onSaving:Ce=>bt(Ce,"onSaving"),onSaved:Ce=>bt(Ce,"onSaved"),onEditCanceling:Ce=>bt(Ce,"onEditCanceling"),onEditCanceled:Ce=>bt(Ce,"onEditCanceled"),onContentReady:Ce=>bt(Ce,"onContentReady"),onOptionChanged:Ce=>It(Ce),focusedRowEnabled:o,autoNavigateToFocusedRow:!1,onFocusedRowChanging:Ki,onFocusedRowChanged:Vi,onRowClick:ft,onRowExpanding:Mt,onRowCollapsed:Ir,onSelectionChanged:fn,children:[d&&E.jsx(Kk,{autoExpandAll:c}),E.jsx(eB,{mode:(z==null?void 0:z.mode)??"single",selectAllMode:(z==null?void 0:z.selectAllMode)??["allPages","page"][0],showCheckBoxesMode:"always"}),D&&E.jsx(Gk,{mode:(D==null?void 0:D.mode)??"row",allowUpdating:(D==null?void 0:D.allowUpdating)??!1,allowDeleting:(D==null?void 0:D.allowDeleting)??!1,allowAdding:!1}),E.jsx(Uk,{visible:(q==null?void 0:q.filterRow)??!1,applyFilter:"auto"}),E.jsx(Qk,{visible:(Z==null?void 0:Z.visible)??!1,width:(Z==null?void 0:Z.width)??256,placeholder:(Z==null?void 0:Z.placeholder)??"Search..."}),E.jsx(jk,{allowSearch:!0,visible:(q==null?void 0:q.headerFilter)??!1}),De&&De.current.map((Ce,fe)=>Ce.group?E.jsx(jc,{groupIndex:0,dataField:Ce.columnKey},fe):E.jsx(jc,{dataField:Ce.columnKey,caption:Ce.columnName,alignment:Ce.alignment?Ce.alignment:Ce.dataType==="number"?"right":"left",width:Ce.width,visible:Ce.visible,dataType:Ce.dataType,format:Ce.format==="date"?"M/d/yyyy, HH:mm":Ce.dataType==="number"&&Ce.fixedNumber?{type:"fixedPoint",precision:2}:Ce.format,fixed:Ce.fixed,cellRender:Ce.template,selectedFilterOperation:Ce.defaultFilterOperation,allowFiltering:Ce.allowFiltering,allowHeaderFiltering:Ce.allowHeaderFiltering,allowSorting:Ce.allowSorting,allowEditing:Ce.allowEditing,visibleIndex:Ce.orderIndex,defaultSortOrder:Ce.sortOrderType},fe)),i&&i.length&&!u&&E.jsx(Nm,{children:i&&i.map((Ce,fe)=>E.jsx($m,{column:Ce.column,summaryType:"custom",customizeText:Ce.total},fe))}),i&&i.length&&u&&E.jsx(Nm,{children:i.map((Ce,fe)=>E.jsx($m,{column:Ce.column,summaryType:Ce.summaryType,displayFormat:Ce.displayFormat}))}),!!M&&Et&&Et.length&&E.jsx(jc,{dataField:null,caption:"Actions",alignment:"left",width:100,fixed:!1,fixedPosition:"right",allowFiltering:!1,allowSorting:!1,cellRender:Ce=>{if(!N||N.length===0||N&&N.length>0&&!N.includes(Ce.data[n]))return E.jsx(nue,{theme:r,rowData:Ce.data,rowID:Ce.data[n],actions:Et.filter(fe=>fe.disabledForKeys&&fe.disabledForKeys.length?!fe.disabledForKeys.includes(Ce.data[n]):fe),hiddenActionTypes:[B?"":"delete",R?"":"edit"],onExpand:fe=>{Di(Ce.data),he&&typeof he=="function"&&he(Ce.data)}})}}),S&&E.jsx(Yk,{enabled:!0,component:L}),E.jsx(qk,{enabled:ae}),E.jsx(Jk,{useNative:!0,mode:$??"none"}),E.jsx(Zk,{defaultPageIndex:ie?ie-1:null,defaultPageSize:G==null?void 0:G.defaultPageSize}),E.jsx(Xk,{visible:G==null?void 0:G.visible,allowedPageSizes:G==null?void 0:G.allowedPageSizes,showPageSizeSelector:G==null?void 0:G.showPageSizeSelector,showInfo:G==null?void 0:G.showInfo,showNavigationButtons:G==null?void 0:G.showNavigationButtons})]})]})]})},cue="Tabs-module__tabContainer",hue="Tabs-module__vertical",fue="Tabs-module__underline",pue="Tabs-module__singleTab",vue="Tabs-module__active",_ue="Tabs-module__button",mue="Tabs-module__buttonBorder",gue="Tabs-module__buttonMinimal",Cue="Tabs-module__dark",yue="Tabs-module__underLine",to={tabContainer:cue,vertical:hue,underline:fue,singleTab:pue,active:vue,button:_ue,buttonBorder:mue,buttonMinimal:gue,dark:Cue,underLine:yue},xue=({tabsData:e,type:t="underline",vertical:i=!1,onItemClick:n,tabContainerStyle:r,singleTabStyle:a,theme:o})=>{const[s,l]=le.useState(!1),u=d=>{d.active=!0,e.forEach(c=>{c.id===d.id?c.active=!0:c.active=!1}),n&&typeof n=="function"&&n(d),l(c=>!c)};return E.jsx("div",{style:r??{},className:`${o==="dark"?to.dark:""} ${to.tabContainer} ${to[t]} ${i?to.vertical:""}`,children:e.map(d=>E.jsx("div",{style:a??{},className:`${to.singleTab} ${d.active?to.active:""}`,onClick:()=>u(d),children:typeof d.label=="function"?E.jsx("span",{className:to.labelWrapper,children:d.label()}):d.label},d.id))})},bue="FileBlock-module__fileBlockWrapper",Sue="FileBlock-module__fileName",wue="FileBlock-module__texts",Eue="FileBlock-module__deleteFile",Iue="FileBlock-module__dark",ys={fileBlockWrapper:bue,fileName:Sue,texts:wue,deleteFile:Eue,dark:Iue},Tue=()=>E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"20",viewBox:"0 0 16 20",fill:"none",children:E.jsx("path",{d:"M9.66665 1.89118V5.33329C9.66665 5.8 9.66665 6.03336 9.75747 6.21162C9.83737 6.36842 9.96485 6.4959 10.1217 6.5758C10.2999 6.66663 10.5333 6.66663 11 6.66663H14.4421M14.6666 8.32348V14.3333C14.6666 15.7334 14.6666 16.4335 14.3942 16.9683C14.1545 17.4387 13.772 17.8211 13.3016 18.0608C12.7668 18.3333 12.0668 18.3333 10.6666 18.3333H5.33331C3.93318 18.3333 3.23312 18.3333 2.69834 18.0608C2.22793 17.8211 1.84548 17.4387 1.6058 16.9683C1.33331 16.4335 1.33331 15.7334 1.33331 14.3333V5.66663C1.33331 4.26649 1.33331 3.56643 1.6058 3.03165C1.84548 2.56124 2.22793 2.17879 2.69834 1.93911C3.23312 1.66663 3.93318 1.66663 5.33331 1.66663H8.00979C8.62127 1.66663 8.92701 1.66663 9.21473 1.7357C9.46982 1.79694 9.71368 1.89795 9.93736 2.03503C10.1897 2.18963 10.4058 2.40582 10.8382 2.8382L13.4951 5.49505C13.9275 5.92743 14.1436 6.14362 14.2982 6.39591C14.4353 6.61959 14.5363 6.86346 14.5976 7.11855C14.6666 7.40627 14.6666 7.712 14.6666 8.32348Z",stroke:"#A4A7AE",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"})}),Aue=({theme:e,file:t,onDelete:i,fileBlockWrapperStyle:n,fileNameStyle:r,textsStyle:a,nameStyle:o,sizeStyle:s,clearIcon:l,fileIcon:u})=>{const d=()=>{i&&typeof i=="function"&&i(t)};return E.jsx("div",{className:`${e==="dark"?ys.dark:""} ${ys.fileBlockWrapper}`,style:n??{},children:E.jsxs("div",{className:ys.fileName,style:r??{},children:[E.jsx("div",{style:{display:"flex",alignItems:"center"},children:u??E.jsx(Tue,{})}),E.jsxs("div",{className:ys.texts,style:a??{},children:[E.jsx("span",{title:t&&(t!=null&&t.fileName)?t.fileName:"-",style:o??{},children:t&&(t!=null&&t.fileName)?t.fileName:"-"}),E.jsx("span",{style:s??{},className:ys.size,children:t&&(t!=null&&t.unitSize)?t==null?void 0:t.unitSize:""})]}),E.jsx("div",{className:ys.deleteFile,onClick:d,children:l??E.jsx(zm,{width:16})})]})})},Due="FileUploader-module__fileUploaderWrapper",Oue="FileUploader-module__rowStyle",Rue="FileUploader-module__fileUploaderContent",kue="FileUploader-module__labels",Bue="FileUploader-module__draganddrop",Lue="FileUploader-module__uploadSvg",Pue="FileUploader-module__title",Fue="FileUploader-module__brandColor",Mue="FileUploader-module__subTitle",Vue="FileUploader-module__uploadAction",Nue="FileUploader-module__dark",sn={fileUploaderWrapper:Due,rowStyle:Oue,fileUploaderContent:Rue,labels:kue,draganddrop:Bue,uploadSvg:Lue,title:Pue,brandColor:Fue,subTitle:Mue,uploadAction:Vue,dark:Nue},yI=e=>E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"21",height:"20",viewBox:"0 0 21 20",fill:"none",children:E.jsx("path",{d:"M7.16675 13.3333L10.5001 10M10.5001 10L13.8334 13.3333M10.5001 10V17.5M17.1667 13.9524C18.1847 13.1117 18.8334 11.8399 18.8334 10.4167C18.8334 7.88536 16.7814 5.83333 14.2501 5.83333C14.068 5.83333 13.8976 5.73833 13.8052 5.58145C12.7185 3.73736 10.7121 2.5 8.41675 2.5C4.96497 2.5 2.16675 5.29822 2.16675 8.75C2.16675 10.4718 2.86295 12.0309 3.98921 13.1613",stroke:"#414651",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"})}),$ue=({multiple:e=!0,onChange:t,maxSize:i,withFileValidation:n,acceptedFileFormats:r,title:a,subTitle:o,withResults:s=!0,onFormatError:l,onMaxSizeError:u,defaultValue:d,type:c="default",withIcon:h=!0,uploadIcon:f,fileUploaderWrapperStyle:p,fileUploaderContentStyle:v,draganddropStyle:g,labelsStyle:C,titleStyle:x,clickToUploadStyle:S,subTitleStyle:L,fileBlockWrapperStyle:D,fileNameStyle:$,textsStyle:G,nameStyle:z,sizeStyle:q,clearIcon:ie,theme:Z})=>{const H=le.useRef(crypto.randomUUID()),[ee,I]=le.useState(!1),[U,P]=le.useState(!1),Y=le.useRef([]);le.useEffect(()=>{d&&(Y.current=d)},[]);const se=M=>{P(M)},te=M=>{M.preventDefault(),se(!0)},X=M=>{M.preventDefault(),se(!1)},j=M=>{M.preventDefault(),se(!0)},y=M=>{M.preventDefault(),R(M.dataTransfer.files),se(!1)},T=M=>{Y.current=Y.current.filter((V,J)=>V.fileID!==M.fileID),I(V=>!V),B()},A=M=>{R(M.target.files)},B=()=>{t&&typeof t=="function"&&t(Y.current)},R=async M=>{let V=M,J=[];for(let re=0;re<V.length;re++){let pe={fileName:V[re].name,size:V[re].size,unitSize:HP(V[re].size),type:V[re].type,format:WP(V[re].name),base64:await zP(V[re]),fileID:crypto.randomUUID()};if(n&&r&&!r.includes(pe.format.toLowerCase())){l&&typeof l=="function"&&l(pe.format.toLowerCase());return}i&&V[re].size>i?u&&typeof u=="function"&&u({Error:"Max_Size_Error",MaxSize:i}):J.push(pe)}e?Y.current=[...Y.current,...J]:(J=J.slice(-1),Y.current=J),I(re=>!re),B()};return E.jsxs("div",{className:`${Z==="dark"?sn.dark:""} ${sn.fileUploaderWrapper} ${c==="row"?sn.rowStyle:""}`,style:p??{},children:[E.jsxs("div",{style:{width:"100%",display:"flex",alignItems:"center"},children:[E.jsxs("div",{style:v??{},className:`${sn.fileUploaderContent} `,onDragEnter:te,onDragLeave:X,onDragOver:j,onDrop:y,children:[E.jsxs("div",{className:sn.draganddrop,style:g??{},children:[c!=="row"&&h&&E.jsx("div",{className:sn.uploadSvg,children:f||E.jsx(yI,{})}),E.jsxs("div",{className:`${sn.labels} `,style:C??{},htmlFor:H.current,children:[a&&typeof a=="function"?a():E.jsx("div",{style:x??{},className:sn.title,children:a||E.jsx("div",{children:E.jsxs(E.Fragment,{children:[E.jsx("span",{style:S??{},className:c!=="row"?sn.brandColor:"",children:c!=="row"?"Click to upload":"Click to "}),E.jsxs("span",{className:c==="row"?sn.brandColor:"",children:[" ",c!=="row"?"or drag and drop":"upload"]})]})})}),o&&typeof o=="function"?o():E.jsx("p",{style:L??{},className:sn.subTitle,children:o??""})]})]}),E.jsx("div",{className:sn.uploadAction,children:E.jsx("input",{type:"file",name:"",id:H.current,multiple:!!e,onChange:A,accept:""})})]}),c==="row"&&h&&E.jsx("div",{className:sn.uploadSvg,children:f||E.jsxs("div",{children:[E.jsx(yI,{}),E.jsx("div",{className:sn.uploadAction,children:E.jsx("input",{type:"file",name:"",id:H.current,multiple:!!e,onChange:A,accept:""})})]})})]}),Y&&Y.current&&Y.current.length&&s?Y.current.map((M,V)=>E.jsx(Aue,{theme:Z,fileBlockWrapperStyle:D,fileNameStyle:$,textsStyle:G,nameStyle:z,sizeStyle:q,clearIcon:ie,file:M,onDelete:T},V)):""]})},Hue=()=>{const e=document.createElement("style");e.setAttribute("id","toast_notification_style_key"),e.innerHTML=`
|
|
327
|
+
*/var Le=Ht&&Ht.__extends||function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(n[a]=r[a])},e(t,i)};return function(t,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");e(t,i);function n(){this.constructor=t}t.prototype=i===null?Object.create(i):(n.prototype=i.prototype,new n)}}();Object.defineProperty(_e,"__esModule",{value:!0});_e.Lookup=qk=_e.LoadPanel=_e.Label=_e.KeyboardNavigation=_e.Item=_e.Hide=jk=_e.HeaderFilter=_e.GroupPanel=_e.GroupOperationDescriptions=_e.GroupItem=_e.GroupingTexts=Kk=_e.Grouping=_e.From=_e.FormItem=_e.Format=_e.Form=Uk=_e.FilterRow=_e.FilterPanelTexts=_e.FilterPanel=_e.FilterOperationDescriptions=_e.FilterBuilderPopup=_e.FilterBuilder=_e.FieldLookup=_e.Field=_e.ExportTexts=_e.Export=_e.EmailRule=_e.EditingTexts=Gk=_e.Editing=_e.DataGridHeaderFilterTexts=_e.DataGridHeaderFilter=_e.CustomRule=_e.CustomOperation=_e.CursorOffset=_e.CompareRule=_e.ColumnLookup=_e.ColumnHeaderFilter=_e.ColumnFixingTexts=_e.ColumnFixing=_e.ColumnChooser=jc=_e.Column=_e.Collision=_e.ColCountByScreen=_e.Change=_e.Button=_e.BoundaryOffset=_e.At=_e.AsyncRule=_e.Animation=zk=_e.DataGrid=void 0;_e.ValueFormat=_e.ValidationRule=$m=_e.TotalItem=_e.ToolbarItem=_e.Toolbar=_e.To=_e.Texts=_e.SummaryTexts=Nm=_e.Summary=_e.StringLengthRule=_e.StateStoring=_e.Sorting=_e.SortByGroupSummaryInfo=_e.Show=eB=_e.Selection=Qk=_e.SearchPanel=Jk=_e.Scrolling=_e.RowDragging=_e.RequiredRule=_e.RemoteOperations=_e.RangeRule=_e.Position=_e.Popup=_e.PatternRule=Zk=_e.Paging=Xk=_e.Pager=_e.OperationDescriptions=_e.Offset=_e.NumericRule=_e.My=Yk=_e.MasterDetail=void 0;var vse=roe,ye=Bk,_se=yf,Pe=YC,XC=function(e){Le(t,e);function t(){var i=e!==null&&e.apply(this,arguments)||this;return i._WidgetClass=vse.default,i.useRequestAnimationFrameFlag=!0,i.subscribableOptions=["columns","editing","editing.changes","editing.editColumnName","editing.editRowKey","filterPanel","filterPanel.filterEnabled","filterValue","focusedColumnIndex","focusedRowIndex","focusedRowKey","paging","paging.pageIndex","paging.pageSize","searchPanel","searchPanel.text","selectedRowKeys","selectionFilter"],i.independentEvents=["onAdaptiveDetailRowPreparing","onCellClick","onCellDblClick","onCellPrepared","onContentReady","onContextMenuPreparing","onDataErrorOccurred","onDisposing","onEditCanceled","onEditCanceling","onEditingStart","onEditorPrepared","onEditorPreparing","onExported","onExporting","onFileSaving","onFocusedCellChanging","onFocusedRowChanging","onInitialized","onInitNewRow","onKeyDown","onRowClick","onRowCollapsed","onRowCollapsing","onRowDblClick","onRowExpanded","onRowExpanding","onRowInserted","onRowInserting","onRowPrepared","onRowRemoved","onRowRemoving","onRowUpdated","onRowUpdating","onRowValidating","onSaved","onSaving","onToolbarPreparing"],i._defaults={defaultColumns:"columns",defaultEditing:"editing",defaultFilterPanel:"filterPanel",defaultFilterValue:"filterValue",defaultFocusedColumnIndex:"focusedColumnIndex",defaultFocusedRowIndex:"focusedRowIndex",defaultFocusedRowKey:"focusedRowKey",defaultPaging:"paging",defaultSearchPanel:"searchPanel",defaultSelectedRowKeys:"selectedRowKeys",defaultSelectionFilter:"selectionFilter"},i._expectedChildren={column:{optionName:"columns",isCollectionItem:!0},columnChooser:{optionName:"columnChooser",isCollectionItem:!1},columnFixing:{optionName:"columnFixing",isCollectionItem:!1},dataGridHeaderFilter:{optionName:"headerFilter",isCollectionItem:!1},editing:{optionName:"editing",isCollectionItem:!1},export:{optionName:"export",isCollectionItem:!1},filterBuilder:{optionName:"filterBuilder",isCollectionItem:!1},filterBuilderPopup:{optionName:"filterBuilderPopup",isCollectionItem:!1},filterPanel:{optionName:"filterPanel",isCollectionItem:!1},filterRow:{optionName:"filterRow",isCollectionItem:!1},grouping:{optionName:"grouping",isCollectionItem:!1},groupPanel:{optionName:"groupPanel",isCollectionItem:!1},headerFilter:{optionName:"headerFilter",isCollectionItem:!1},keyboardNavigation:{optionName:"keyboardNavigation",isCollectionItem:!1},loadPanel:{optionName:"loadPanel",isCollectionItem:!1},masterDetail:{optionName:"masterDetail",isCollectionItem:!1},pager:{optionName:"pager",isCollectionItem:!1},paging:{optionName:"paging",isCollectionItem:!1},remoteOperations:{optionName:"remoteOperations",isCollectionItem:!1},rowDragging:{optionName:"rowDragging",isCollectionItem:!1},scrolling:{optionName:"scrolling",isCollectionItem:!1},searchPanel:{optionName:"searchPanel",isCollectionItem:!1},selection:{optionName:"selection",isCollectionItem:!1},sortByGroupSummaryInfo:{optionName:"sortByGroupSummaryInfo",isCollectionItem:!0},sorting:{optionName:"sorting",isCollectionItem:!1},stateStoring:{optionName:"stateStoring",isCollectionItem:!1},summary:{optionName:"summary",isCollectionItem:!1},toolbar:{optionName:"toolbar",isCollectionItem:!1}},i._templateProps=[{tmplOption:"dataRowTemplate",render:"dataRowRender",component:"dataRowComponent",keyFn:"dataRowKeyFn"},{tmplOption:"rowTemplate",render:"rowRender",component:"rowComponent",keyFn:"rowKeyFn"}],i}return Object.defineProperty(t.prototype,"instance",{get:function(){return this._instance},enumerable:!1,configurable:!0}),t}(_se.Component),zk=_e.DataGrid=XC;XC.propTypes={accessKey:ye.string,activeStateEnabled:ye.bool,allowColumnReordering:ye.bool,allowColumnResizing:ye.bool,autoNavigateToFocusedRow:ye.bool,cacheEnabled:ye.bool,cellHintEnabled:ye.bool,columnAutoWidth:ye.bool,columnChooser:ye.object,columnFixing:ye.object,columnHidingEnabled:ye.bool,columnMinWidth:ye.number,columnResizingMode:ye.oneOf(["nextColumn","widget"]),columns:ye.array,columnWidth:ye.oneOfType([ye.number,ye.oneOf(["auto"])]),customizeColumns:ye.func,customizeExportData:ye.func,dataSource:ye.oneOfType([ye.array,ye.object,ye.string]),dateSerializationFormat:ye.string,disabled:ye.bool,editing:ye.object,elementAttr:ye.object,errorRowEnabled:ye.bool,export:ye.object,filterBuilder:ye.object,filterBuilderPopup:ye.object,filterPanel:ye.object,filterRow:ye.object,filterSyncEnabled:ye.oneOfType([ye.bool,ye.oneOf(["auto"])]),filterValue:ye.oneOfType([ye.array,ye.func,ye.string]),focusedColumnIndex:ye.number,focusedRowEnabled:ye.bool,focusedRowIndex:ye.number,focusStateEnabled:ye.bool,grouping:ye.object,groupPanel:ye.object,headerFilter:ye.object,height:ye.oneOfType([ye.func,ye.number,ye.string]),highlightChanges:ye.bool,hint:ye.string,hoverStateEnabled:ye.bool,keyboardNavigation:ye.object,keyExpr:ye.oneOfType([ye.array,ye.string]),loadPanel:ye.object,masterDetail:ye.object,noDataText:ye.string,onAdaptiveDetailRowPreparing:ye.func,onCellClick:ye.func,onCellDblClick:ye.func,onCellHoverChanged:ye.func,onCellPrepared:ye.func,onContentReady:ye.func,onContextMenuPreparing:ye.func,onDataErrorOccurred:ye.func,onDisposing:ye.func,onEditCanceled:ye.func,onEditCanceling:ye.func,onEditingStart:ye.func,onEditorPrepared:ye.func,onEditorPreparing:ye.func,onExported:ye.func,onExporting:ye.func,onFileSaving:ye.func,onFocusedCellChanged:ye.func,onFocusedCellChanging:ye.func,onFocusedRowChanged:ye.func,onFocusedRowChanging:ye.func,onInitialized:ye.func,onInitNewRow:ye.func,onKeyDown:ye.func,onOptionChanged:ye.func,onRowClick:ye.func,onRowCollapsed:ye.func,onRowCollapsing:ye.func,onRowDblClick:ye.func,onRowExpanded:ye.func,onRowExpanding:ye.func,onRowInserted:ye.func,onRowInserting:ye.func,onRowPrepared:ye.func,onRowRemoved:ye.func,onRowRemoving:ye.func,onRowUpdated:ye.func,onRowUpdating:ye.func,onRowValidating:ye.func,onSaved:ye.func,onSaving:ye.func,onSelectionChanged:ye.func,onToolbarPreparing:ye.func,pager:ye.object,paging:ye.object,remoteOperations:ye.oneOfType([ye.bool,ye.object,ye.oneOf(["auto"])]),renderAsync:ye.bool,repaintChangesOnly:ye.bool,rowAlternationEnabled:ye.bool,rowDragging:ye.object,rtlEnabled:ye.bool,scrolling:ye.object,searchPanel:ye.object,selectedRowKeys:ye.array,selection:ye.object,selectionFilter:ye.oneOfType([ye.array,ye.func,ye.string]),showBorders:ye.bool,showColumnHeaders:ye.bool,showColumnLines:ye.bool,showRowLines:ye.bool,sortByGroupSummaryInfo:ye.array,sorting:ye.object,stateStoring:ye.object,summary:ye.object,tabIndex:ye.number,toolbar:ye.object,twoWayBindingEnabled:ye.bool,visible:ye.bool,width:ye.oneOfType([ye.func,ye.number,ye.string]),wordWrapEnabled:ye.bool};var mse=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="animation",t.ExpectedChildren={hide:{optionName:"hide",isCollectionItem:!1},show:{optionName:"show",isCollectionItem:!1}},t}(Pe.default);_e.Animation=mse;var gse=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="validationRules",t.IsCollectionItem=!0,t.PredefinedProps={type:"async"},t}(Pe.default);_e.AsyncRule=gse;var Cse=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="at",t}(Pe.default);_e.At=Cse;var yse=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="boundaryOffset",t}(Pe.default);_e.BoundaryOffset=yse;var xse=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="buttons",t.IsCollectionItem=!0,t.TemplateProps=[{tmplOption:"template",render:"render",component:"component",keyFn:"keyFn"}],t}(Pe.default);_e.Button=xse;var bse=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="changes",t.IsCollectionItem=!0,t}(Pe.default);_e.Change=bse;var Sse=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="colCountByScreen",t}(Pe.default);_e.ColCountByScreen=Sse;var wse=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="collision",t}(Pe.default);_e.Collision=wse;var Ese=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="columns",t.IsCollectionItem=!0,t.DefaultsProps={defaultFilterValue:"filterValue",defaultFilterValues:"filterValues",defaultGroupIndex:"groupIndex",defaultSelectedFilterOperation:"selectedFilterOperation",defaultSortIndex:"sortIndex",defaultSortOrder:"sortOrder",defaultVisible:"visible",defaultVisibleIndex:"visibleIndex"},t.ExpectedChildren={AsyncRule:{optionName:"validationRules",isCollectionItem:!0},button:{optionName:"buttons",isCollectionItem:!0},columnHeaderFilter:{optionName:"headerFilter",isCollectionItem:!1},columnLookup:{optionName:"lookup",isCollectionItem:!1},CompareRule:{optionName:"validationRules",isCollectionItem:!0},CustomRule:{optionName:"validationRules",isCollectionItem:!0},EmailRule:{optionName:"validationRules",isCollectionItem:!0},format:{optionName:"format",isCollectionItem:!1},formItem:{optionName:"formItem",isCollectionItem:!1},headerFilter:{optionName:"headerFilter",isCollectionItem:!1},lookup:{optionName:"lookup",isCollectionItem:!1},NumericRule:{optionName:"validationRules",isCollectionItem:!0},PatternRule:{optionName:"validationRules",isCollectionItem:!0},RangeRule:{optionName:"validationRules",isCollectionItem:!0},RequiredRule:{optionName:"validationRules",isCollectionItem:!0},StringLengthRule:{optionName:"validationRules",isCollectionItem:!0},validationRule:{optionName:"validationRules",isCollectionItem:!0}},t.TemplateProps=[{tmplOption:"cellTemplate",render:"cellRender",component:"cellComponent",keyFn:"cellKeyFn"},{tmplOption:"editCellTemplate",render:"editCellRender",component:"editCellComponent",keyFn:"editCellKeyFn"},{tmplOption:"groupCellTemplate",render:"groupCellRender",component:"groupCellComponent",keyFn:"groupCellKeyFn"},{tmplOption:"headerCellTemplate",render:"headerCellRender",component:"headerCellComponent",keyFn:"headerCellKeyFn"}],t}(Pe.default),jc=_e.Column=Ese,Ise=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="columnChooser",t}(Pe.default);_e.ColumnChooser=Ise;var Tse=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="columnFixing",t.ExpectedChildren={columnFixingTexts:{optionName:"texts",isCollectionItem:!1},texts:{optionName:"texts",isCollectionItem:!1}},t}(Pe.default);_e.ColumnFixing=Tse;var Ase=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="texts",t}(Pe.default);_e.ColumnFixingTexts=Ase;var Dse=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="headerFilter",t}(Pe.default);_e.ColumnHeaderFilter=Dse;var Ose=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="lookup",t}(Pe.default);_e.ColumnLookup=Ose;var Rse=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="validationRules",t.IsCollectionItem=!0,t.PredefinedProps={type:"compare"},t}(Pe.default);_e.CompareRule=Rse;var kse=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="cursorOffset",t}(Pe.default);_e.CursorOffset=kse;var Bse=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="customOperations",t.IsCollectionItem=!0,t.TemplateProps=[{tmplOption:"editorTemplate",render:"editorRender",component:"editorComponent",keyFn:"editorKeyFn"}],t}(Pe.default);_e.CustomOperation=Bse;var Lse=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="validationRules",t.IsCollectionItem=!0,t.PredefinedProps={type:"custom"},t}(Pe.default);_e.CustomRule=Lse;var Pse=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="headerFilter",t.ExpectedChildren={dataGridHeaderFilterTexts:{optionName:"texts",isCollectionItem:!1},texts:{optionName:"texts",isCollectionItem:!1}},t}(Pe.default);_e.DataGridHeaderFilter=Pse;var Fse=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="texts",t}(Pe.default);_e.DataGridHeaderFilterTexts=Fse;var Mse=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="editing",t.DefaultsProps={defaultChanges:"changes",defaultEditColumnName:"editColumnName",defaultEditRowKey:"editRowKey"},t.ExpectedChildren={change:{optionName:"changes",isCollectionItem:!0},editingTexts:{optionName:"texts",isCollectionItem:!1},form:{optionName:"form",isCollectionItem:!1},popup:{optionName:"popup",isCollectionItem:!1},texts:{optionName:"texts",isCollectionItem:!1}},t}(Pe.default),Gk=_e.Editing=Mse,Vse=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="texts",t}(Pe.default);_e.EditingTexts=Vse;var Nse=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="validationRules",t.IsCollectionItem=!0,t.PredefinedProps={type:"email"},t}(Pe.default);_e.EmailRule=Nse;var $se=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="export",t.ExpectedChildren={exportTexts:{optionName:"texts",isCollectionItem:!1},texts:{optionName:"texts",isCollectionItem:!1}},t}(Pe.default);_e.Export=$se;var Hse=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="texts",t}(Pe.default);_e.ExportTexts=Hse;var Wse=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="fields",t.IsCollectionItem=!0,t.ExpectedChildren={fieldLookup:{optionName:"lookup",isCollectionItem:!1},format:{optionName:"format",isCollectionItem:!1},lookup:{optionName:"lookup",isCollectionItem:!1}},t.TemplateProps=[{tmplOption:"editorTemplate",render:"editorRender",component:"editorComponent",keyFn:"editorKeyFn"}],t}(Pe.default);_e.Field=Wse;var zse=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="lookup",t}(Pe.default);_e.FieldLookup=zse;var Gse=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="filterBuilder",t.DefaultsProps={defaultValue:"value"},t.ExpectedChildren={customOperation:{optionName:"customOperations",isCollectionItem:!0},field:{optionName:"fields",isCollectionItem:!0},filterOperationDescriptions:{optionName:"filterOperationDescriptions",isCollectionItem:!1},groupOperationDescriptions:{optionName:"groupOperationDescriptions",isCollectionItem:!1}},t}(Pe.default);_e.FilterBuilder=Gse;var Use=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="filterBuilderPopup",t.DefaultsProps={defaultHeight:"height",defaultPosition:"position",defaultVisible:"visible",defaultWidth:"width"},t.TemplateProps=[{tmplOption:"contentTemplate",render:"contentRender",component:"contentComponent",keyFn:"contentKeyFn"},{tmplOption:"titleTemplate",render:"titleRender",component:"titleComponent",keyFn:"titleKeyFn"}],t}(Pe.default);_e.FilterBuilderPopup=Use;var Kse=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="filterOperationDescriptions",t}(Pe.default);_e.FilterOperationDescriptions=Kse;var jse=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="filterPanel",t.DefaultsProps={defaultFilterEnabled:"filterEnabled"},t.ExpectedChildren={filterPanelTexts:{optionName:"texts",isCollectionItem:!1},texts:{optionName:"texts",isCollectionItem:!1}},t}(Pe.default);_e.FilterPanel=jse;var qse=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="texts",t}(Pe.default);_e.FilterPanelTexts=qse;var Yse=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="filterRow",t.ExpectedChildren={operationDescriptions:{optionName:"operationDescriptions",isCollectionItem:!1}},t}(Pe.default),Uk=_e.FilterRow=Yse,Xse=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="form",t.DefaultsProps={defaultFormData:"formData"},t.ExpectedChildren={colCountByScreen:{optionName:"colCountByScreen",isCollectionItem:!1}},t}(Pe.default);_e.Form=Xse;var Zse=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="format",t}(Pe.default);_e.Format=Zse;var Jse=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="formItem",t.ExpectedChildren={AsyncRule:{optionName:"validationRules",isCollectionItem:!0},CompareRule:{optionName:"validationRules",isCollectionItem:!0},CustomRule:{optionName:"validationRules",isCollectionItem:!0},EmailRule:{optionName:"validationRules",isCollectionItem:!0},label:{optionName:"label",isCollectionItem:!1},NumericRule:{optionName:"validationRules",isCollectionItem:!0},PatternRule:{optionName:"validationRules",isCollectionItem:!0},RangeRule:{optionName:"validationRules",isCollectionItem:!0},RequiredRule:{optionName:"validationRules",isCollectionItem:!0},StringLengthRule:{optionName:"validationRules",isCollectionItem:!0},validationRule:{optionName:"validationRules",isCollectionItem:!0}},t.TemplateProps=[{tmplOption:"template",render:"render",component:"component",keyFn:"keyFn"}],t}(Pe.default);_e.FormItem=Jse;var Qse=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="from",t.ExpectedChildren={position:{optionName:"position",isCollectionItem:!1}},t}(Pe.default);_e.From=Qse;var ele=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="grouping",t.ExpectedChildren={groupingTexts:{optionName:"texts",isCollectionItem:!1},texts:{optionName:"texts",isCollectionItem:!1}},t}(Pe.default),Kk=_e.Grouping=ele,tle=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="texts",t}(Pe.default);_e.GroupingTexts=tle;var ile=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="groupItems",t.IsCollectionItem=!0,t.ExpectedChildren={valueFormat:{optionName:"valueFormat",isCollectionItem:!1}},t}(Pe.default);_e.GroupItem=ile;var nle=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="groupOperationDescriptions",t}(Pe.default);_e.GroupOperationDescriptions=nle;var rle=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="groupPanel",t}(Pe.default);_e.GroupPanel=rle;var ale=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="headerFilter",t}(Pe.default),jk=_e.HeaderFilter=ale,ole=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="hide",t.ExpectedChildren={from:{optionName:"from",isCollectionItem:!1},to:{optionName:"to",isCollectionItem:!1}},t}(Pe.default);_e.Hide=ole;var sle=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="items",t.IsCollectionItem=!0,t.TemplateProps=[{tmplOption:"menuItemTemplate",render:"menuItemRender",component:"menuItemComponent",keyFn:"menuItemKeyFn"},{tmplOption:"template",render:"render",component:"component",keyFn:"keyFn"}],t}(Pe.default);_e.Item=sle;var lle=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="keyboardNavigation",t}(Pe.default);_e.KeyboardNavigation=lle;var ule=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="label",t}(Pe.default);_e.Label=ule;var dle=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="loadPanel",t}(Pe.default),qk=_e.LoadPanel=dle,cle=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="lookup",t}(Pe.default);_e.Lookup=cle;var hle=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="masterDetail",t.TemplateProps=[{tmplOption:"template",render:"render",component:"component",keyFn:"keyFn"}],t}(Pe.default),Yk=_e.MasterDetail=hle,fle=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="my",t}(Pe.default);_e.My=fle;var ple=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="validationRules",t.IsCollectionItem=!0,t.PredefinedProps={type:"numeric"},t}(Pe.default);_e.NumericRule=ple;var vle=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="offset",t}(Pe.default);_e.Offset=vle;var _le=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="operationDescriptions",t}(Pe.default);_e.OperationDescriptions=_le;var mle=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="pager",t}(Pe.default),Xk=_e.Pager=mle,gle=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="paging",t.DefaultsProps={defaultPageIndex:"pageIndex",defaultPageSize:"pageSize"},t}(Pe.default),Zk=_e.Paging=gle,Cle=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="validationRules",t.IsCollectionItem=!0,t.PredefinedProps={type:"pattern"},t}(Pe.default);_e.PatternRule=Cle;var yle=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="popup",t.DefaultsProps={defaultHeight:"height",defaultPosition:"position",defaultVisible:"visible",defaultWidth:"width"},t.ExpectedChildren={animation:{optionName:"animation",isCollectionItem:!1},position:{optionName:"position",isCollectionItem:!1},toolbarItem:{optionName:"toolbarItems",isCollectionItem:!0}},t.TemplateProps=[{tmplOption:"contentTemplate",render:"contentRender",component:"contentComponent",keyFn:"contentKeyFn"},{tmplOption:"titleTemplate",render:"titleRender",component:"titleComponent",keyFn:"titleKeyFn"}],t}(Pe.default);_e.Popup=yle;var xle=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="position",t}(Pe.default);_e.Position=xle;var ble=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="validationRules",t.IsCollectionItem=!0,t.PredefinedProps={type:"range"},t}(Pe.default);_e.RangeRule=ble;var Sle=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="remoteOperations",t}(Pe.default);_e.RemoteOperations=Sle;var wle=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="validationRules",t.IsCollectionItem=!0,t.PredefinedProps={type:"required"},t}(Pe.default);_e.RequiredRule=wle;var Ele=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="rowDragging",t.ExpectedChildren={cursorOffset:{optionName:"cursorOffset",isCollectionItem:!1}},t.TemplateProps=[{tmplOption:"dragTemplate",render:"dragRender",component:"dragComponent",keyFn:"dragKeyFn"}],t}(Pe.default);_e.RowDragging=Ele;var Ile=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="scrolling",t}(Pe.default),Jk=_e.Scrolling=Ile,Tle=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="searchPanel",t.DefaultsProps={defaultText:"text"},t}(Pe.default),Qk=_e.SearchPanel=Tle,Ale=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="selection",t}(Pe.default),eB=_e.Selection=Ale,Dle=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="show",t}(Pe.default);_e.Show=Dle;var Ole=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="sortByGroupSummaryInfo",t.IsCollectionItem=!0,t}(Pe.default);_e.SortByGroupSummaryInfo=Ole;var Rle=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="sorting",t}(Pe.default);_e.Sorting=Rle;var kle=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="stateStoring",t}(Pe.default);_e.StateStoring=kle;var Ble=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="validationRules",t.IsCollectionItem=!0,t.PredefinedProps={type:"stringLength"},t}(Pe.default);_e.StringLengthRule=Ble;var Lle=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="summary",t.ExpectedChildren={groupItem:{optionName:"groupItems",isCollectionItem:!0},summaryTexts:{optionName:"texts",isCollectionItem:!1},texts:{optionName:"texts",isCollectionItem:!1},totalItem:{optionName:"totalItems",isCollectionItem:!0}},t}(Pe.default),Nm=_e.Summary=Lle,Ple=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="texts",t}(Pe.default);_e.SummaryTexts=Ple;var Fle=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="texts",t}(Pe.default);_e.Texts=Fle;var Mle=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="to",t}(Pe.default);_e.To=Mle;var Vle=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="toolbar",t.ExpectedChildren={item:{optionName:"items",isCollectionItem:!0}},t}(Pe.default);_e.Toolbar=Vle;var Nle=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="toolbarItems",t.IsCollectionItem=!0,t.TemplateProps=[{tmplOption:"template",render:"render",component:"component",keyFn:"keyFn"}],t}(Pe.default);_e.ToolbarItem=Nle;var $le=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="totalItems",t.IsCollectionItem=!0,t.ExpectedChildren={valueFormat:{optionName:"valueFormat",isCollectionItem:!1}},t}(Pe.default),$m=_e.TotalItem=$le,Hle=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="validationRules",t.IsCollectionItem=!0,t.PredefinedProps={type:"required"},t}(Pe.default);_e.ValidationRule=Hle;var Wle=function(e){Le(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.OptionName="valueFormat",t}(Pe.default);_e.ValueFormat=Wle;_e.default=XC;const zle="ColumnConfigure-module__configureWrapper",Gle="ColumnConfigure-module__iconWrapper",Ule="ColumnConfigure-module__notVisible",Kle="ColumnConfigure-module__iconDrag",jle="ColumnConfigure-module__dark",Cs={configureWrapper:zle,iconWrapper:Gle,notVisible:Ule,iconDrag:Kle,dark:jle},qle=e=>E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 6 10",...e,children:E.jsx("path",{fill:"#15181A",d:"M2 1a1 1 0 11-2 0 1 1 0 012 0zM6 1a1 1 0 11-2 0 1 1 0 012 0zM2 5a1 1 0 11-2 0 1 1 0 012 0zM6 5a1 1 0 11-2 0 1 1 0 012 0zM2 9a1 1 0 11-2 0 1 1 0 012 0zM6 9a1 1 0 11-2 0 1 1 0 012 0z"})}),Yle=({items:e,change:t,theme:i})=>{const n=le.useRef(e),[r,a]=le.useState(null),[o,s]=le.useState(!1),[l,u]=le.useState(!1),d=le.useRef(null),c=le.useRef(null);le.useEffect(()=>(document.addEventListener("click",h),()=>{document.removeEventListener("click",h)}),[]);const h=L=>{L.composedPath().includes(c.current)||s(!1)},f=(L,D)=>{a(D),L.dataTransfer.effectAllowed="move",L.dataTransfer.setData("text/plain",D)},p=L=>{L.preventDefault()},v=(L,D)=>{if(D===r)return;const $=[...n.current],G=$[r];$.splice(r,1),$.splice(D,0,G),n.current=$,a(D)},g=()=>{a(null),C(),t(n.current)},C=()=>{u(L=>!L)};le.useEffect(()=>{n.current=n.current.map((L,D)=>({...L,orderIndex:D}))},[r]);const x=L=>{n.current=n.current.map((D,$)=>$===L?{...D,visible:!D.visible}:D),u(D=>!D)},S=()=>{s(L=>!L)};return E.jsxs("div",{className:`${i==="dark"?Cs.dark:""} ${Cs.configureWrapper} ${o?Cs.active:""}`,ref:c,children:[E.jsx("div",{className:Cs.iconWrapper,onClick:S,children:E.jsx(PI,{})}),o&&E.jsx("ul",{className:"draggable-list",ref:d,children:n.current.map((L,D)=>E.jsxs("li",{className:`draggable-item${D===r?" dragged":""} ${L.visible?"":Cs.notVisible}`,draggable:!0,onDragStart:$=>f($,D),onDragOver:p,onDragEnter:$=>v($,D),onDragEnd:g,children:[E.jsx("div",{className:Cs.iconDrag,children:E.jsx(qle,{})}),E.jsx(Bu,{checked:L.visible||!1,change:()=>(x(D),t(n.current))}),E.jsx("span",{children:L.columnName})]},D))})]})},Xle="Actions-module__actionsWrapper",Zle="Actions-module__moreActionsButton",Jle="Actions-module__actionIcon",Qle="Actions-module__actionLabel",eue="Actions-module__dark",tue="Actions-module__staticColor",iue="Actions-module__defaultIcons",eo={actionsWrapper:Xle,moreActionsButton:Zle,actionIcon:Jle,actionLabel:Qle,dark:eue,staticColor:tue,defaultIcons:iue},tB=()=>E.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20",children:[E.jsx("path",{stroke:"#15181A",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",d:"M9.167 1.667H7.5c-4.167 0-5.833 1.666-5.833 5.833v5c0 4.167 1.666 5.833 5.833 5.833h5c4.167 0 5.833-1.666 5.833-5.833v-1.667"}),E.jsx("path",{stroke:"#15181A",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:"1.5",d:"M13.367 2.517L6.8 9.083c-.25.25-.5.742-.55 1.1l-.358 2.509c-.134.908.508 1.541 1.416 1.416l2.509-.358c.35-.05.841-.3 1.1-.55l6.566-6.567c1.134-1.133 1.667-2.45 0-4.116-1.666-1.667-2.983-1.134-4.116 0zM12.425 3.458a5.954 5.954 0 004.117 4.117"})]}),nue=({actions:e,onExpand:t,rowID:i,visible:n,rowData:r,hiddenActionTypes:a,theme:o})=>{const s=le.useRef(null),l=le.useRef(null),u=le.useRef({top:0,left:0}),d=v=>{t&&typeof t=="function"&&(t(!n),c())},c=()=>{const v=s.current.getBoundingClientRect(),g=l.current.getBoundingClientRect();u.current.top=v.top+g.height+20,u.current.left=v.left-g.width/1.5},h=(v,g)=>{r[g.disableKey]||g.event&&typeof g.event=="function"&&g.event(g.type,r)},f=v=>{let g;const C=["delete","edit"];if(v.type&&C.includes(v.type))switch(v.type==="delete"&&(v.style={color:"#D92D20"}),String(v.type)){case"delete":{g=E.jsx(zm,{});break}case"edit":{g=E.jsx(tB,{});break}}else g="no_icon";return g},p=v=>v.labelIcon&&typeof v.labelIcon=="function"?v.labelIcon():null;return E.jsxs("div",{id:`datagrid_action_data_id_${i}`,className:`${o==="dark"?eo.dark:""}${eo.actionsWrapper} datagrid_action_data_controller`,onClick:v=>v.stopPropagation(),children:[E.jsxs("div",{className:eo.moreActionsButton,onClick:v=>d(),ref:s,children:[E.jsx("div",{}),E.jsx("div",{}),E.jsx("div",{})]}),E.jsx("ul",{ref:l,children:e&&e.map((v,g)=>v.hiddenActionRows&&Array.isArray(v.hiddenActionRows)&&v.hiddenActionRows.includes(i)?null:E.jsxs("li",{onClick:x=>h(x,v),style:{display:a&&a.includes(v.type)?"none":"flex",cursor:r[v.disableKey]?"not-allowed":"pointer"},children:[E.jsx("div",{className:`
|
|
328
|
+
${["delete"].includes(v.type)?eo.staticColor:""}
|
|
329
|
+
${eo.actionIcon}
|
|
330
|
+
${f(v)&&f(v)!=="no_icon"?eo.defaultIcons:""}
|
|
331
|
+
`,style:{opacity:r[v.disableKey]?.5:1},children:f(v)&&f(v)!=="no_icon"?f(v):v==null?void 0:v.icon()}),E.jsxs("div",{className:eo.actionLabel,children:[E.jsx("p",{style:{...v==null?void 0:v.style,opacity:r[v.disableKey]?.5:1},children:v==null?void 0:v.label})," ",p(v)]})]},g))})]})},rue="DeleteAll-module__deleteAllWrapper",aue="DeleteAll-module__iconContainer",oue="DeleteAll-module__deleteItemsCountLabel",sue="DeleteAll-module__dark",lue="DeleteAll-module__datagridDeleteAllAction",Ml={deleteAllWrapper:rue,iconContainer:aue,deleteItemsCountLabel:oue,dark:sue,datagridDeleteAllAction:lue},uue=le.forwardRef((e,t)=>{const[i,n]=le.useState(0),r=o=>{n(o)};le.useImperativeHandle(t,()=>({setValue:r}));const a=()=>{e.onDeleteAll&&typeof e.onDeleteAll=="function"&&e.onDeleteAll()};return E.jsxs("div",{ref:t,className:`${(e==null?void 0:e.theme)==="dark"?Ml.dark:""} ${Ml.datagridDeleteAllAction} ${Ml.deleteAllWrapper}`,children:[E.jsx("div",{className:Ml.iconContainer,onClick:a,children:E.jsx(tB,{})}),E.jsx("div",{className:Ml.deleteItemsCountLabel,children:E.jsxs("span",{children:["Delete ",i," Checked Item"]})})]})}),due=({data:e,customColumns:t,summary:i,keyExpr:n,theme:r,height:a,focusedRowEnabled:o=!0,rowAlternationEnabled:s,columnAutoWidth:l=!0,withCustomStore:u,withGrouping:d,groupDefaultCollapsed:c,storeKey:h,loadFunction:f,updateFunction:p,insertFunction:v,removeFunction:g,withColumnConfigure:C,withDeleteAll:x,withMasterDetail:S,detailTemplate:L,editingOptions:D,scrollMode:$,pagerOptions:G,selection:z,filterOptions:q,defaultPageIndex:ie,searchPanel:Z,onEvent:H,onPageChange:ee,selectionChanged:I,focusedRowChanging:U,focusedRowChanged:P,onRowClick:Y,onWheelClick:se,showPagination:te=!0,refresh:X,diselectAll:j,customActions:y,onColumnConfigure:T,onDeleteAll:A,onDelete:B,onEdit:R,withCustomActions:M,multiExpand:V,onFilterValueChange:J,onRowExpand:re,onRowCollaps:pe,onOptionChanged:ce,onRowPrepared:Ae,onFocusedCellChanged:b,ShowLoader:ae=!0,noDataText:ue,onLoading:F,hideActions:N,allowColumnResizing:Q=!0,disableOverflow:me,onActionExpand:he})=>{const[ne,be]=le.useState(!1),De=le.useRef(t),Ie=le.useRef(null),[Ne,rt]=le.useState(""),Je=le.useRef({Refresh:()=>Ie.current.instance.getDataSource().reload(),SelectedRowKeys:()=>Ie.current.instance.getSelectedRowKeys(),DeselectAll:()=>{var Ce;return(Ce=Ie.current)==null?void 0:Ce.instance.deselectAll()}}),[Et,ht]=le.useState([{label:"Edit",type:"edit",event:(Ce,fe)=>Ha(Ce,fe)},{label:"Delete",type:"delete",event:(Ce,fe)=>$a(Ce,fe)}]),Gt=le.useRef(null),mi=Ce=>{Et&&Et.length&&fi()},st=()=>{Et&&Et.length&&fi()},fi=()=>{document.querySelectorAll(".datagrid_action_data_controller > ul").forEach(fe=>{fe.style.display="none",fe.style.pointerEvents="none"})},Mi=new zs({key:h??"id",load:f,update:p,insert:v,remove:g,onLoading:F}),bt=(Ce,fe)=>{if(H&&typeof H=="function"&&H(fe,Ce),fe==="onContentReady"){const K=document.querySelector(".dx-pager"),Ee=document.querySelector("#pagination-container");let Re=!1;K?Re=!K.classList.contains("dx-hidden"):Re=!1,Ee.style.display=Re?"block":"none"}},fn=Ce=>{o&&(z==null?void 0:z.mode)==="multiple"&&x&&Gt.current.setValue(Ce.selectedRowKeys.length),I&&typeof I=="function"&&I(Ce)},Ki=Ce=>{U&&typeof U=="function"&&U(Ce)},Vi=Ce=>{P&&typeof P=="function"&&P(Ce)},Ge=Ce=>{b&&typeof b=="function"&&b(Ce)},ft=Ce=>{Y&&typeof Y=="function"&&Y(Ce.data)},qt=(Ce,fe)=>{Ce.button===1&&(se&&typeof se=="function"&&se(fe.data),Ce.preventDefault())},Ni=Ce=>{Ce.rowElement&&Ce.data&&Ce.rowElement.addEventListener("mousedown",fe=>qt(fe,Ce)),Ae&&typeof Ae=="function"&&Ae(Ce)},We=()=>{A&&typeof A=="function"&&A(Je.current.SelectedRowKeys())},It=Ce=>{ce&&typeof ce=="function"&&ce(Ce),Ce.fullName==="paging.pageIndex"&&ee&&typeof ee=="function"&&ee(Ce.value+1)},Di=Ce=>{let K=document.querySelector(`#datagrid_action_data_id_${Ce[n]}`),Ee=document.querySelectorAll(".datagrid_action_data_controller > ul"),Re=K.querySelector("ul");const qe=document.querySelectorAll(".dx-datagrid-rowsview .dx-row > td");qe&&qe.forEach(lt=>{lt.querySelector("ul")?lt.style.overflow="unset":lt.style.overflow="hidden"});const Tt=K.getBoundingClientRect(),Vt=document.querySelector(".gridWrapper").getBoundingClientRect();let pt={display:"block",position:"absolute",pointerEvents:"all",top:"20px",left:"-70px"};Tt.bottom>Vt.bottom-150&&(pt.top="unset",pt.bottom="100%",pt.left="-100px"),Ee.forEach(lt=>{lt.style.display="none",lt.style.pointerEvents="none"}),Object.assign(Re.style,pt)},_t=Ce=>{De.current=Ce,be(fe=>!fe),T&&typeof T=="function"&&T(De.current)},Mt=Ce=>{V||Ce.component.collapseAll(-1),re&&typeof re=="function"&&re(Ce)},Ir=Ce=>{pe&&typeof pe=="function"&&pe(Ce)},qo=Ce=>{Ce.parentType==="filterRow"&&(Ce.editorElement.onchange=fe=>{const K={columnKey:Ce.dataField,columnName:Ce.caption,filterValue:fe.target.value};J&&typeof J=="function"&&J(K)})},$a=(Ce,fe)=>{B&&typeof B=="function"&&B(fe)},Ha=(Ce,fe)=>{R&&typeof R=="function"&&R(fe)};le.useEffect(()=>{y&&y.length&&ht(Ce=>{const fe=Ce;return y.forEach(K=>{fe.some(Ee=>Ee.type===K.type)||fe.push(K)}),fe})},[y]),le.useEffect(()=>{X&&(Je.current.Refresh(),console.info("DataSource Refresh....."))},[X]),le.useEffect(()=>{j&&Je.current.DeselectAll()},[j]),le.useEffect(()=>{if(Array.isArray(me)&&me.length>0){const Ce=()=>{me.forEach(Ee=>{document.querySelectorAll(`.dx-datagrid-rowsview .dx-row td:nth-child(${Ee})`).forEach(qe=>{qe.style.overflow="unset"})})};Ce();const fe=new MutationObserver(()=>{Ce()}),K=document.querySelector(".dx-datagrid-rowsview");return K&&fe.observe(K,{childList:!0,subtree:!0}),()=>fe.disconnect()}},[me]);const nl=()=>{const Ce=Ie.current.instance,fe=Ce.pageIndex();fe>0&&Ce.pageIndex(fe-1)},rl=()=>{const Ce=Ie.current.instance,fe=Ce.pageIndex(),K=Ce.pageCount();fe<K-1&&Ce.pageIndex(fe+1)};return le.useEffect(()=>{De.current=t,be(Ce=>!Ce)},[t]),le.useEffect(()=>(document.addEventListener("click",mi),document.addEventListener("wheel",st),()=>{document.removeEventListener("click",mi),document.removeEventListener("wheel",st)}),[]),le.useEffect(()=>{const Ce=document.querySelector(".dx-pager"),fe=document.querySelector("#pagination-container");let K=!1;Ce?K=!Ce.classList.contains("dx-hidden"):K=!1,fe.style.display=K?"block":"none"},[e,Mi,X]),E.jsxs(E.Fragment,{children:[E.jsx("div",{className:r==="dark"?"dark":"","data-grid-confirm-delete":!0,style:{display:"none"}}),E.jsxs("div",{style:{height:"100%",position:"relative"},className:`gridWrapper __dx_DataGrid_Component__ light ${r&&!["dark","light"].includes(r)?"light":r}`,children:[(C||x&&(z==null?void 0:z.mode)==="multiple")&&E.jsxs("div",{className:"__dx_DataGrid_Toolbar",children:[E.jsx("div",{className:"__dx_DataGrid_Toolbar_Leftside",children:x&&(z==null?void 0:z.mode)==="multiple"&&E.jsx(uue,{theme:r,ref:Gt,onDeleteAll:We})}),E.jsx("div",{className:"__dx_DataGrid_Toolbar_Righttside",children:C&&E.jsx("div",{className:"column_configure_wrapper",children:E.jsx(Yle,{theme:r,items:De.current.sort((Ce,fe)=>Ce.orderIndex-fe.orderIndex),change:Ce=>_t(Ce)})})})]}),E.jsxs("div",{id:"pagination-container",children:[E.jsx("div",{className:"custom-pagination-controls",style:{position:"absolute",bottom:"18px",right:"24px",zIndex:"100"},children:E.jsxs("button",{className:"custom-pagination-button",onClick:rl,size:"sm",style:{backgroundColor:"transparent",border:"1px solid #D5D7DA",borderRadius:"8px",height:"32px",padding:"16px 12px",color:"#414651",fontFamily:"Inter-SemiBold, sans-serif",fontSize:"14px",cursor:"pointer",display:"flex",alignItems:"center",gap:"4px"},children:["Next"," ",E.jsx("svg",{width:"20",height:"21",viewBox:"0 0 20 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:E.jsx("path",{d:"M4.1665 10.5001H15.8332M15.8332 10.5001L9.99984 4.66675M15.8332 10.5001L9.99984 16.3334",stroke:"#414651",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"})})]})}),E.jsx("div",{className:"custom-pagination-controls",style:{position:"absolute",bottom:"18px",left:"24px",zIndex:"100"},children:E.jsxs("button",{className:"custom-pagination-button",onClick:nl,size:"sm",style:{backgroundColor:"transparent",border:"1px solid #D5D7DA",borderRadius:"8px",height:"32px",padding:"16px 12px",color:"#414651",fontSize:"14px",cursor:"pointer",display:"flex",alignItems:"center",gap:"4px",fontFamily:"Inter-SemiBold"},children:[E.jsx("svg",{width:"20",height:"21",viewBox:"0 0 20 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:E.jsx("path",{d:"M15.8334 10.5001H4.16675M4.16675 10.5001L10.0001 16.3334M4.16675 10.5001L10.0001 4.66675",stroke:"#414651",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"})})," ","Previous"]})})]}),E.jsxs(zk,{height:a||"100%",ref:Ie,onRowPrepared:Ni,onFocusedCellChanged:Ge,dataSource:u?Mi:e,remoteOperations:!0,keyExpr:n??"id",allowColumnReordering:!1,allowColumnResizing:Q,columnAutoWidth:l,noDataText:ue??"No Data",showColumnLines:!1,showRowLines:!0,rowAlternationEnabled:s,showBorders:!1,hoverStateEnabled:!0,onEditorPreparing:qo,onEditingStart:Ce=>bt(Ce,"onEditingStart"),onInitNewRow:Ce=>bt(Ce,"onInitNewRow"),onRowInserting:Ce=>bt(Ce,"onRowInserting"),onRowInserted:Ce=>bt(Ce,"onRowInserted"),onRowUpdating:Ce=>bt(Ce,"onRowUpdating"),onRowUpdated:Ce=>bt(Ce,"onRowUpdated"),onRowRemoving:Ce=>bt(Ce,"onRowRemoving"),onRowRemoved:Ce=>bt(Ce,"onRowRemoved"),onSaving:Ce=>bt(Ce,"onSaving"),onSaved:Ce=>bt(Ce,"onSaved"),onEditCanceling:Ce=>bt(Ce,"onEditCanceling"),onEditCanceled:Ce=>bt(Ce,"onEditCanceled"),onContentReady:Ce=>bt(Ce,"onContentReady"),onOptionChanged:Ce=>It(Ce),focusedRowEnabled:o,autoNavigateToFocusedRow:!1,onFocusedRowChanging:Ki,onFocusedRowChanged:Vi,onRowClick:ft,onRowExpanding:Mt,onRowCollapsed:Ir,onSelectionChanged:fn,children:[d&&E.jsx(Kk,{autoExpandAll:c}),E.jsx(eB,{mode:(z==null?void 0:z.mode)??"single",selectAllMode:(z==null?void 0:z.selectAllMode)??["allPages","page"][0],showCheckBoxesMode:"always"}),D&&E.jsx(Gk,{mode:(D==null?void 0:D.mode)??"row",allowUpdating:(D==null?void 0:D.allowUpdating)??!1,allowDeleting:(D==null?void 0:D.allowDeleting)??!1,allowAdding:!1}),E.jsx(Uk,{visible:(q==null?void 0:q.filterRow)??!1,applyFilter:"auto"}),E.jsx(Qk,{visible:(Z==null?void 0:Z.visible)??!1,width:(Z==null?void 0:Z.width)??256,placeholder:(Z==null?void 0:Z.placeholder)??"Search..."}),E.jsx(jk,{allowSearch:!0,visible:(q==null?void 0:q.headerFilter)??!1}),De&&De.current.map((Ce,fe)=>Ce.group?E.jsx(jc,{groupIndex:0,dataField:Ce.columnKey},fe):E.jsx(jc,{dataField:Ce.columnKey,caption:Ce.columnName,alignment:Ce.alignment?Ce.alignment:Ce.dataType==="number"?"right":"left",width:Ce.width,visible:Ce.visible,dataType:Ce.dataType,format:Ce.format==="date"?"M/d/yyyy, HH:mm":Ce.dataType==="number"&&Ce.fixedNumber?{type:"fixedPoint",precision:2}:Ce.format,fixed:Ce.fixed,cellRender:Ce.template,selectedFilterOperation:Ce.defaultFilterOperation,allowFiltering:Ce.allowFiltering,allowHeaderFiltering:Ce.allowHeaderFiltering,allowSorting:Ce.allowSorting,allowEditing:Ce.allowEditing,visibleIndex:Ce.orderIndex,defaultSortOrder:Ce.sortOrderType},fe)),i&&i.length&&!u&&E.jsx(Nm,{children:i&&i.map((Ce,fe)=>E.jsx($m,{column:Ce.column,summaryType:"custom",customizeText:Ce.total},fe))}),i&&i.length&&u&&E.jsx(Nm,{children:i.map((Ce,fe)=>E.jsx($m,{column:Ce.column,summaryType:Ce.summaryType,displayFormat:Ce.displayFormat}))}),!!M&&Et&&Et.length&&E.jsx(jc,{dataField:null,caption:"Actions",alignment:"left",width:100,fixed:!1,fixedPosition:"right",allowFiltering:!1,allowSorting:!1,cellRender:Ce=>{if(!N||N.length===0||N&&N.length>0&&!N.includes(Ce.data[n]))return E.jsx(nue,{theme:r,rowData:Ce.data,rowID:Ce.data[n],actions:Et.filter(fe=>fe.disabledForKeys&&fe.disabledForKeys.length?!fe.disabledForKeys.includes(Ce.data[n]):fe),hiddenActionTypes:[B?"":"delete",R?"":"edit"],onExpand:fe=>{Di(Ce.data),he&&typeof he=="function"&&he(Ce.data)}})}}),S&&E.jsx(Yk,{enabled:!0,component:L}),E.jsx(qk,{enabled:ae}),E.jsx(Jk,{useNative:!0,mode:$??"none"}),E.jsx(Zk,{defaultPageIndex:ie?ie-1:null,defaultPageSize:G==null?void 0:G.defaultPageSize}),E.jsx(Xk,{visible:G==null?void 0:G.visible,allowedPageSizes:G==null?void 0:G.allowedPageSizes,showPageSizeSelector:G==null?void 0:G.showPageSizeSelector,showInfo:G==null?void 0:G.showInfo,showNavigationButtons:G==null?void 0:G.showNavigationButtons})]})]})]})},cue="Tabs-module__tabContainer",hue="Tabs-module__vertical",fue="Tabs-module__underline",pue="Tabs-module__singleTab",vue="Tabs-module__active",_ue="Tabs-module__button",mue="Tabs-module__buttonBorder",gue="Tabs-module__buttonMinimal",Cue="Tabs-module__dark",yue="Tabs-module__underLine",to={tabContainer:cue,vertical:hue,underline:fue,singleTab:pue,active:vue,button:_ue,buttonBorder:mue,buttonMinimal:gue,dark:Cue,underLine:yue},xue=({tabsData:e,type:t="underline",vertical:i=!1,onItemClick:n,tabContainerStyle:r,singleTabStyle:a,theme:o})=>{const[s,l]=le.useState(!1),u=d=>{d.active=!0,e.forEach(c=>{c.id===d.id?c.active=!0:c.active=!1}),n&&typeof n=="function"&&n(d),l(c=>!c)};return E.jsx("div",{style:r??{},className:`${o==="dark"?to.dark:""} ${to.tabContainer} ${to[t]} ${i?to.vertical:""}`,children:e.map(d=>E.jsx("div",{style:a??{},className:`${to.singleTab} ${d.active?to.active:""}`,onClick:()=>u(d),children:typeof d.label=="function"?E.jsx("span",{className:to.labelWrapper,children:d.label()}):d.label},d.id))})},bue="FileBlock-module__fileBlockWrapper",Sue="FileBlock-module__fileName",wue="FileBlock-module__texts",Eue="FileBlock-module__deleteFile",Iue="FileBlock-module__dark",ys={fileBlockWrapper:bue,fileName:Sue,texts:wue,deleteFile:Eue,dark:Iue},Tue=()=>E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"20",viewBox:"0 0 16 20",fill:"none",children:E.jsx("path",{d:"M9.66665 1.89118V5.33329C9.66665 5.8 9.66665 6.03336 9.75747 6.21162C9.83737 6.36842 9.96485 6.4959 10.1217 6.5758C10.2999 6.66663 10.5333 6.66663 11 6.66663H14.4421M14.6666 8.32348V14.3333C14.6666 15.7334 14.6666 16.4335 14.3942 16.9683C14.1545 17.4387 13.772 17.8211 13.3016 18.0608C12.7668 18.3333 12.0668 18.3333 10.6666 18.3333H5.33331C3.93318 18.3333 3.23312 18.3333 2.69834 18.0608C2.22793 17.8211 1.84548 17.4387 1.6058 16.9683C1.33331 16.4335 1.33331 15.7334 1.33331 14.3333V5.66663C1.33331 4.26649 1.33331 3.56643 1.6058 3.03165C1.84548 2.56124 2.22793 2.17879 2.69834 1.93911C3.23312 1.66663 3.93318 1.66663 5.33331 1.66663H8.00979C8.62127 1.66663 8.92701 1.66663 9.21473 1.7357C9.46982 1.79694 9.71368 1.89795 9.93736 2.03503C10.1897 2.18963 10.4058 2.40582 10.8382 2.8382L13.4951 5.49505C13.9275 5.92743 14.1436 6.14362 14.2982 6.39591C14.4353 6.61959 14.5363 6.86346 14.5976 7.11855C14.6666 7.40627 14.6666 7.712 14.6666 8.32348Z",stroke:"#A4A7AE",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"})}),Aue=({theme:e,file:t,onDelete:i,fileBlockWrapperStyle:n,fileNameStyle:r,textsStyle:a,nameStyle:o,sizeStyle:s,clearIcon:l,fileIcon:u})=>{const d=()=>{i&&typeof i=="function"&&i(t)};return E.jsx("div",{className:`${e==="dark"?ys.dark:""} ${ys.fileBlockWrapper}`,style:n??{},children:E.jsxs("div",{className:ys.fileName,style:r??{},children:[E.jsx("div",{style:{display:"flex",alignItems:"center"},children:u??E.jsx(Tue,{})}),E.jsxs("div",{className:ys.texts,style:a??{},children:[E.jsx("span",{title:t&&(t!=null&&t.fileName)?t.fileName:"-",style:o??{},children:t&&(t!=null&&t.fileName)?t.fileName:"-"}),E.jsx("span",{style:s??{},className:ys.size,children:t&&(t!=null&&t.unitSize)?t==null?void 0:t.unitSize:""})]}),E.jsx("div",{className:ys.deleteFile,onClick:d,children:l??E.jsx(zm,{width:16})})]})})},Due="FileUploader-module__fileUploaderWrapper",Oue="FileUploader-module__rowStyle",Rue="FileUploader-module__fileUploaderContent",kue="FileUploader-module__labels",Bue="FileUploader-module__draganddrop",Lue="FileUploader-module__uploadSvg",Pue="FileUploader-module__title",Fue="FileUploader-module__brandColor",Mue="FileUploader-module__subTitle",Vue="FileUploader-module__uploadAction",Nue="FileUploader-module__dark",sn={fileUploaderWrapper:Due,rowStyle:Oue,fileUploaderContent:Rue,labels:kue,draganddrop:Bue,uploadSvg:Lue,title:Pue,brandColor:Fue,subTitle:Mue,uploadAction:Vue,dark:Nue},yI=e=>E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"21",height:"20",viewBox:"0 0 21 20",fill:"none",children:E.jsx("path",{d:"M7.16675 13.3333L10.5001 10M10.5001 10L13.8334 13.3333M10.5001 10V17.5M17.1667 13.9524C18.1847 13.1117 18.8334 11.8399 18.8334 10.4167C18.8334 7.88536 16.7814 5.83333 14.2501 5.83333C14.068 5.83333 13.8976 5.73833 13.8052 5.58145C12.7185 3.73736 10.7121 2.5 8.41675 2.5C4.96497 2.5 2.16675 5.29822 2.16675 8.75C2.16675 10.4718 2.86295 12.0309 3.98921 13.1613",stroke:"#414651",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"})}),$ue=({multiple:e=!0,onChange:t,maxSize:i,withFileValidation:n,acceptedFileFormats:r,title:a,subTitle:o,withResults:s=!0,onFormatError:l,onMaxSizeError:u,defaultValue:d,type:c="default",withIcon:h=!0,uploadIcon:f,fileUploaderWrapperStyle:p,fileUploaderContentStyle:v,draganddropStyle:g,labelsStyle:C,titleStyle:x,clickToUploadStyle:S,subTitleStyle:L,fileBlockWrapperStyle:D,fileNameStyle:$,textsStyle:G,nameStyle:z,sizeStyle:q,clearIcon:ie,theme:Z})=>{const H=le.useRef(crypto.randomUUID()),[ee,I]=le.useState(!1),[U,P]=le.useState(!1),Y=le.useRef([]);le.useEffect(()=>{d&&(Y.current=d)},[]);const se=M=>{P(M)},te=M=>{M.preventDefault(),se(!0)},X=M=>{M.preventDefault(),se(!1)},j=M=>{M.preventDefault(),se(!0)},y=M=>{M.preventDefault(),R(M.dataTransfer.files),se(!1)},T=M=>{Y.current=Y.current.filter((V,J)=>V.fileID!==M.fileID),I(V=>!V),B()},A=M=>{R(M.target.files)},B=()=>{t&&typeof t=="function"&&t(Y.current)},R=async M=>{let V=M,J=[];for(let re=0;re<V.length;re++){let pe={fileName:V[re].name,size:V[re].size,unitSize:HP(V[re].size),type:V[re].type,format:WP(V[re].name),base64:await zP(V[re]),fileID:crypto.randomUUID()};if(n&&r&&!r.includes(pe.format.toLowerCase())){l&&typeof l=="function"&&l(pe.format.toLowerCase());return}i&&V[re].size>i?u&&typeof u=="function"&&u({Error:"Max_Size_Error",MaxSize:i}):J.push(pe)}e?Y.current=[...Y.current,...J]:(J=J.slice(-1),Y.current=J),I(re=>!re),B()};return E.jsxs("div",{className:`${Z==="dark"?sn.dark:""} ${sn.fileUploaderWrapper} ${c==="row"?sn.rowStyle:""}`,style:p??{},children:[E.jsxs("div",{style:{width:"100%",display:"flex",alignItems:"center"},children:[E.jsxs("div",{style:v??{},className:`${sn.fileUploaderContent} `,onDragEnter:te,onDragLeave:X,onDragOver:j,onDrop:y,children:[E.jsxs("div",{className:sn.draganddrop,style:g??{},children:[c!=="row"&&h&&E.jsx("div",{className:sn.uploadSvg,children:f||E.jsx(yI,{})}),E.jsxs("div",{className:`${sn.labels} `,style:C??{},htmlFor:H.current,children:[a&&typeof a=="function"?a():E.jsx("div",{style:x??{},className:sn.title,children:a||E.jsx("div",{children:E.jsxs(E.Fragment,{children:[E.jsx("span",{style:S??{},className:c!=="row"?sn.brandColor:"",children:c!=="row"?"Click to upload":"Click to "}),E.jsxs("span",{className:c==="row"?sn.brandColor:"",children:[" ",c!=="row"?"or drag and drop":"upload"]})]})})}),o&&typeof o=="function"?o():E.jsx("p",{style:L??{},className:sn.subTitle,children:o??""})]})]}),E.jsx("div",{className:sn.uploadAction,children:E.jsx("input",{type:"file",name:"",id:H.current,multiple:!!e,onChange:A,accept:""})})]}),c==="row"&&h&&E.jsx("div",{className:sn.uploadSvg,children:f||E.jsxs("div",{children:[E.jsx(yI,{}),E.jsx("div",{className:sn.uploadAction,children:E.jsx("input",{type:"file",name:"",id:H.current,multiple:!!e,onChange:A,accept:""})})]})})]}),Y&&Y.current&&Y.current.length&&s?Y.current.map((M,V)=>E.jsx(Aue,{theme:Z,fileBlockWrapperStyle:D,fileNameStyle:$,textsStyle:G,nameStyle:z,sizeStyle:q,clearIcon:ie,file:M,onDelete:T},V)):""]})},Hue=()=>{const e=document.createElement("style");e.setAttribute("id","toast_notification_style_key"),e.innerHTML=`
|
|
332
332
|
.notifications_wrapper{
|
|
333
333
|
position: fixed;
|
|
334
334
|
z-index: 9999999;
|
|
@@ -72370,76 +72370,77 @@ const jle = "ColumnConfigure-module__configureWrapper", qle = "ColumnConfigure-m
|
|
|
72370
72370
|
d: "M13.367 2.517L6.8 9.083c-.25.25-.5.742-.55 1.1l-.358 2.509c-.134.908.508 1.541 1.416 1.416l2.509-.358c.35-.05.841-.3 1.1-.55l6.566-6.567c1.134-1.133 1.667-2.45 0-4.116-1.666-1.667-2.983-1.134-4.116 0zM12.425 3.458a5.954 5.954 0 004.117 4.117"
|
|
72371
72371
|
}
|
|
72372
72372
|
)
|
|
72373
|
-
] }), sue = ({ actions: e, onExpand: t, rowID: i, visible: n, rowData: r,
|
|
72374
|
-
const
|
|
72373
|
+
] }), sue = ({ actions: e, onExpand: t, rowID: i, visible: n, rowData: r, hiddenActionTypes: a, theme: o }) => {
|
|
72374
|
+
const s = Xe(null), l = Xe(null), u = Xe({
|
|
72375
72375
|
top: 0,
|
|
72376
72376
|
left: 0
|
|
72377
|
-
}),
|
|
72378
|
-
t && typeof t == "function" && (t(!n),
|
|
72379
|
-
},
|
|
72380
|
-
const
|
|
72381
|
-
|
|
72382
|
-
},
|
|
72383
|
-
r[
|
|
72384
|
-
},
|
|
72385
|
-
let
|
|
72386
|
-
const
|
|
72387
|
-
if (
|
|
72388
|
-
switch (
|
|
72377
|
+
}), d = (v) => {
|
|
72378
|
+
t && typeof t == "function" && (t(!n), c());
|
|
72379
|
+
}, c = () => {
|
|
72380
|
+
const v = s.current.getBoundingClientRect(), g = l.current.getBoundingClientRect();
|
|
72381
|
+
u.current.top = v.top + g.height + 20, u.current.left = v.left - g.width / 1.5;
|
|
72382
|
+
}, h = (v, g) => {
|
|
72383
|
+
r[g.disableKey] || g.event && typeof g.event == "function" && g.event(g.type, r);
|
|
72384
|
+
}, f = (v) => {
|
|
72385
|
+
let g;
|
|
72386
|
+
const C = ["delete", "edit"];
|
|
72387
|
+
if (v.type && C.includes(v.type))
|
|
72388
|
+
switch (v.type === "delete" && (v.style = { color: "#D92D20" }), String(v.type)) {
|
|
72389
72389
|
case "delete": {
|
|
72390
|
-
|
|
72390
|
+
g = /* @__PURE__ */ E.jsx(Km, {});
|
|
72391
72391
|
break;
|
|
72392
72392
|
}
|
|
72393
72393
|
case "edit": {
|
|
72394
|
-
|
|
72394
|
+
g = /* @__PURE__ */ E.jsx(Qk, {});
|
|
72395
72395
|
break;
|
|
72396
72396
|
}
|
|
72397
72397
|
}
|
|
72398
|
-
else
|
|
72399
|
-
return
|
|
72400
|
-
},
|
|
72398
|
+
else g = "no_icon";
|
|
72399
|
+
return g;
|
|
72400
|
+
}, p = (v) => v.labelIcon && typeof v.labelIcon == "function" ? v.labelIcon() : null;
|
|
72401
72401
|
return /* @__PURE__ */ E.jsxs(
|
|
72402
72402
|
"div",
|
|
72403
72403
|
{
|
|
72404
72404
|
id: `datagrid_action_data_id_${i}`,
|
|
72405
|
-
className: `${
|
|
72406
|
-
onClick: (
|
|
72405
|
+
className: `${o === "dark" ? no.dark : ""}${no.actionsWrapper} datagrid_action_data_controller`,
|
|
72406
|
+
onClick: (v) => v.stopPropagation(),
|
|
72407
72407
|
children: [
|
|
72408
|
-
/* @__PURE__ */ E.jsxs("div", { className: no.moreActionsButton, onClick: (
|
|
72408
|
+
/* @__PURE__ */ E.jsxs("div", { className: no.moreActionsButton, onClick: (v) => d(), ref: s, children: [
|
|
72409
72409
|
/* @__PURE__ */ E.jsx("div", {}),
|
|
72410
72410
|
/* @__PURE__ */ E.jsx("div", {}),
|
|
72411
72411
|
/* @__PURE__ */ E.jsx("div", {})
|
|
72412
72412
|
] }),
|
|
72413
|
-
/* @__PURE__ */ E.jsx("ul", { ref:
|
|
72413
|
+
/* @__PURE__ */ E.jsx("ul", { ref: l, children: e && e.map((v, g) => v.hiddenActionRows && Array.isArray(v.hiddenActionRows) && v.hiddenActionRows.includes(i) ? null : /* @__PURE__ */ E.jsxs(
|
|
72414
72414
|
"li",
|
|
72415
72415
|
{
|
|
72416
|
-
onClick: (
|
|
72416
|
+
onClick: (x) => h(x, v),
|
|
72417
72417
|
style: {
|
|
72418
|
-
|
|
72418
|
+
display: a && a.includes(v.type) ? "none" : "flex",
|
|
72419
|
+
cursor: r[v.disableKey] ? "not-allowed" : "pointer"
|
|
72419
72420
|
},
|
|
72420
72421
|
children: [
|
|
72421
72422
|
/* @__PURE__ */ E.jsx(
|
|
72422
72423
|
"div",
|
|
72423
72424
|
{
|
|
72424
72425
|
className: `
|
|
72425
|
-
|
|
72426
|
-
|
|
72427
|
-
|
|
72428
|
-
|
|
72426
|
+
${["delete"].includes(v.type) ? no.staticColor : ""}
|
|
72427
|
+
${no.actionIcon}
|
|
72428
|
+
${f(v) && f(v) !== "no_icon" ? no.defaultIcons : ""}
|
|
72429
|
+
`,
|
|
72429
72430
|
style: {
|
|
72430
|
-
opacity: r[
|
|
72431
|
+
opacity: r[v.disableKey] ? 0.5 : 1
|
|
72431
72432
|
},
|
|
72432
|
-
children:
|
|
72433
|
+
children: f(v) && f(v) !== "no_icon" ? f(v) : v == null ? void 0 : v.icon()
|
|
72433
72434
|
}
|
|
72434
72435
|
),
|
|
72435
72436
|
/* @__PURE__ */ E.jsxs("div", { className: no.actionLabel, children: [
|
|
72436
|
-
/* @__PURE__ */ E.jsx("p", { style: { ...
|
|
72437
|
+
/* @__PURE__ */ E.jsx("p", { style: { ...v == null ? void 0 : v.style, opacity: r[v.disableKey] ? 0.5 : 1 }, children: v == null ? void 0 : v.label }),
|
|
72437
72438
|
" ",
|
|
72438
|
-
|
|
72439
|
+
p(v)
|
|
72439
72440
|
] })
|
|
72440
72441
|
]
|
|
72441
72442
|
},
|
|
72442
|
-
|
|
72443
|
+
g
|
|
72443
72444
|
)) })
|
|
72444
72445
|
]
|
|
72445
72446
|
}
|