UNPKG

devextreme-react

Version:

DevExtreme React UI and Visualization Components

1,381 lines (1,380 loc) • 53.6 kB
/*! * devextreme-react * Version: 24.2.6 * Build date: Mon Mar 17 2025 * * Copyright (c) 2012 - 2025 Developer Express Inc. ALL RIGHTS RESERVED * * This software may be modified and distributed under the terms * of the MIT license. See the LICENSE file in the root of the project for details. * * https://github.com/DevExpress/devextreme-react */ "use client"; "use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; var desc = Object.getOwnPropertyDescriptor(m, k); if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { desc = { enumerable: true, get: function() { return m[k]; } }; } Object.defineProperty(o, k2, desc); }) : (function(o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[k]; })); var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { Object.defineProperty(o, "default", { enumerable: true, value: v }); }) : function(o, v) { o["default"] = v; }); var __importStar = (this && this.__importStar) || function (mod) { if (mod && mod.__esModule) return mod; var result = {}; if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); __setModuleDefault(result, mod); return result; }; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.Hide = exports.HeaderFilter = exports.GroupPanel = exports.GroupOperationDescriptions = exports.GroupItem = exports.GroupingTexts = exports.Grouping = exports.From = exports.FormItem = exports.Format = exports.Form = exports.FilterRow = exports.FilterPanelTexts = exports.FilterPanel = exports.FilterOperationDescriptions = exports.FilterBuilderPopup = exports.FilterBuilder = exports.FieldLookup = exports.Field = exports.ExportTexts = exports.Export = exports.EmailRule = exports.EditingTexts = exports.Editing = exports.DataGridSelection = exports.DataGridHeaderFilterTexts = exports.DataGridHeaderFilterSearch = exports.DataGridHeaderFilter = exports.CustomRule = exports.CustomOperation = exports.CursorOffset = exports.CompareRule = exports.ColumnLookup = exports.ColumnHeaderFilterSearch = exports.ColumnHeaderFilter = exports.ColumnFixingTexts = exports.ColumnFixing = exports.ColumnChooserSelection = exports.ColumnChooserSearch = exports.ColumnChooser = exports.Column = exports.Collision = exports.ColCountByScreen = exports.Change = exports.Button = exports.BoundaryOffset = exports.At = exports.AsyncRule = exports.Animation = exports.DataGrid = void 0; exports.ValueFormat = exports.ValidationRule = exports.TotalItem = exports.ToolbarItem = exports.Toolbar = exports.To = exports.Texts = exports.SummaryTexts = exports.Summary = exports.StringLengthRule = exports.StateStoring = exports.Sorting = exports.SortByGroupSummaryInfo = exports.Show = exports.Selection = exports.SearchPanel = exports.Search = exports.Scrolling = exports.RowDragging = exports.RequiredRule = exports.RemoteOperations = exports.RangeRule = exports.Position = exports.Popup = exports.PatternRule = exports.Paging = exports.Pager = exports.OperationDescriptions = exports.Offset = exports.NumericRule = exports.My = exports.MasterDetail = exports.Lookup = exports.LoadPanel = exports.Label = exports.KeyboardNavigation = exports.Item = exports.Icons = void 0; const React = __importStar(require("react")); const react_1 = require("react"); const data_grid_1 = __importDefault(require("devextreme/ui/data_grid")); const component_1 = require("./core/component"); const nested_option_1 = __importDefault(require("./core/nested-option")); const DataGrid = (0, react_1.memo)((0, react_1.forwardRef)((props, ref) => { const baseRef = (0, react_1.useRef)(null); (0, react_1.useImperativeHandle)(ref, () => ({ instance() { return baseRef.current?.getInstance(); } }), [baseRef.current]); const subscribableOptions = (0, react_1.useMemo)(() => (["columns", "editing", "editing.changes", "editing.editColumnName", "editing.editRowKey", "filterPanel", "filterPanel.filterEnabled", "filterValue", "focusedColumnIndex", "focusedRowIndex", "focusedRowKey", "groupPanel", "groupPanel.visible", "paging", "paging.pageIndex", "paging.pageSize", "searchPanel", "searchPanel.text", "selectedRowKeys", "selectionFilter"]), []); const independentEvents = (0, react_1.useMemo)(() => (["onAdaptiveDetailRowPreparing", "onCellClick", "onCellDblClick", "onCellPrepared", "onContentReady", "onContextMenuPreparing", "onDataErrorOccurred", "onDisposing", "onEditCanceled", "onEditCanceling", "onEditingStart", "onEditorPrepared", "onEditorPreparing", "onExporting", "onFocusedCellChanging", "onFocusedRowChanging", "onInitialized", "onInitNewRow", "onKeyDown", "onRowClick", "onRowCollapsed", "onRowCollapsing", "onRowDblClick", "onRowExpanded", "onRowExpanding", "onRowInserted", "onRowInserting", "onRowPrepared", "onRowRemoved", "onRowRemoving", "onRowUpdated", "onRowUpdating", "onRowValidating", "onSaved", "onSaving", "onToolbarPreparing"]), []); const defaults = (0, react_1.useMemo)(() => ({ defaultColumns: "columns", defaultEditing: "editing", defaultFilterPanel: "filterPanel", defaultFilterValue: "filterValue", defaultFocusedColumnIndex: "focusedColumnIndex", defaultFocusedRowIndex: "focusedRowIndex", defaultFocusedRowKey: "focusedRowKey", defaultGroupPanel: "groupPanel", defaultPaging: "paging", defaultSearchPanel: "searchPanel", defaultSelectedRowKeys: "selectedRowKeys", defaultSelectionFilter: "selectionFilter", }), []); const expectedChildren = (0, react_1.useMemo)(() => ({ column: { optionName: "columns", isCollectionItem: true }, columnChooser: { optionName: "columnChooser", isCollectionItem: false }, columnFixing: { optionName: "columnFixing", isCollectionItem: false }, dataGridHeaderFilter: { optionName: "headerFilter", isCollectionItem: false }, dataGridSelection: { optionName: "selection", isCollectionItem: false }, editing: { optionName: "editing", isCollectionItem: false }, export: { optionName: "export", isCollectionItem: false }, filterBuilder: { optionName: "filterBuilder", isCollectionItem: false }, filterBuilderPopup: { optionName: "filterBuilderPopup", isCollectionItem: false }, filterPanel: { optionName: "filterPanel", isCollectionItem: false }, filterRow: { optionName: "filterRow", isCollectionItem: false }, grouping: { optionName: "grouping", isCollectionItem: false }, groupPanel: { optionName: "groupPanel", isCollectionItem: false }, headerFilter: { optionName: "headerFilter", isCollectionItem: false }, keyboardNavigation: { optionName: "keyboardNavigation", isCollectionItem: false }, loadPanel: { optionName: "loadPanel", isCollectionItem: false }, masterDetail: { optionName: "masterDetail", isCollectionItem: false }, pager: { optionName: "pager", isCollectionItem: false }, paging: { optionName: "paging", isCollectionItem: false }, remoteOperations: { optionName: "remoteOperations", isCollectionItem: false }, rowDragging: { optionName: "rowDragging", isCollectionItem: false }, scrolling: { optionName: "scrolling", isCollectionItem: false }, searchPanel: { optionName: "searchPanel", isCollectionItem: false }, selection: { optionName: "selection", isCollectionItem: false }, sortByGroupSummaryInfo: { optionName: "sortByGroupSummaryInfo", isCollectionItem: true }, sorting: { optionName: "sorting", isCollectionItem: false }, stateStoring: { optionName: "stateStoring", isCollectionItem: false }, summary: { optionName: "summary", isCollectionItem: false }, toolbar: { optionName: "toolbar", isCollectionItem: false } }), []); const templateProps = (0, react_1.useMemo)(() => ([ { tmplOption: "dataRowTemplate", render: "dataRowRender", component: "dataRowComponent" }, { tmplOption: "rowTemplate", render: "rowRender", component: "rowComponent" }, ]), []); return (React.createElement((component_1.Component), { WidgetClass: data_grid_1.default, ref: baseRef, useRequestAnimationFrameFlag: true, subscribableOptions, independentEvents, defaults, expectedChildren, templateProps, ...props, })); })); exports.DataGrid = DataGrid; const _componentAnimation = (props) => { return React.createElement((nested_option_1.default), { ...props, elementDescriptor: { OptionName: "animation", ExpectedChildren: { hide: { optionName: "hide", isCollectionItem: false }, show: { optionName: "show", isCollectionItem: false } }, }, }); }; const Animation = Object.assign(_componentAnimation, { componentType: "option", }); exports.Animation = Animation; const _componentAsyncRule = (props) => { return React.createElement((nested_option_1.default), { ...props, elementDescriptor: { OptionName: "validationRules", IsCollectionItem: true, PredefinedProps: { type: "async" }, }, }); }; const AsyncRule = Object.assign(_componentAsyncRule, { componentType: "option", }); exports.AsyncRule = AsyncRule; const _componentAt = (props) => { return React.createElement((nested_option_1.default), { ...props, elementDescriptor: { OptionName: "at", }, }); }; const At = Object.assign(_componentAt, { componentType: "option", }); exports.At = At; const _componentBoundaryOffset = (props) => { return React.createElement((nested_option_1.default), { ...props, elementDescriptor: { OptionName: "boundaryOffset", }, }); }; const BoundaryOffset = Object.assign(_componentBoundaryOffset, { componentType: "option", }); exports.BoundaryOffset = BoundaryOffset; const _componentButton = (props) => { return React.createElement((nested_option_1.default), { ...props, elementDescriptor: { OptionName: "buttons", IsCollectionItem: true, TemplateProps: [{ tmplOption: "template", render: "render", component: "component" }], }, }); }; const Button = Object.assign(_componentButton, { componentType: "option", }); exports.Button = Button; const _componentChange = (props) => { return React.createElement((nested_option_1.default), { ...props, elementDescriptor: { OptionName: "changes", IsCollectionItem: true, }, }); }; const Change = Object.assign(_componentChange, { componentType: "option", }); exports.Change = Change; const _componentColCountByScreen = (props) => { return React.createElement((nested_option_1.default), { ...props, elementDescriptor: { OptionName: "colCountByScreen", }, }); }; const ColCountByScreen = Object.assign(_componentColCountByScreen, { componentType: "option", }); exports.ColCountByScreen = ColCountByScreen; const _componentCollision = (props) => { return React.createElement((nested_option_1.default), { ...props, elementDescriptor: { OptionName: "collision", }, }); }; const Collision = Object.assign(_componentCollision, { componentType: "option", }); exports.Collision = Collision; const _componentColumn = (props) => { return React.createElement((nested_option_1.default), { ...props, elementDescriptor: { OptionName: "columns", IsCollectionItem: true, DefaultsProps: { defaultFilterValue: "filterValue", defaultFilterValues: "filterValues", defaultGroupIndex: "groupIndex", defaultSelectedFilterOperation: "selectedFilterOperation", defaultSortIndex: "sortIndex", defaultSortOrder: "sortOrder", defaultVisible: "visible", defaultVisibleIndex: "visibleIndex" }, ExpectedChildren: { AsyncRule: { optionName: "validationRules", isCollectionItem: true }, button: { optionName: "buttons", isCollectionItem: true }, columnHeaderFilter: { optionName: "headerFilter", isCollectionItem: false }, columnLookup: { optionName: "lookup", isCollectionItem: false }, CompareRule: { optionName: "validationRules", isCollectionItem: true }, CustomRule: { optionName: "validationRules", isCollectionItem: true }, EmailRule: { optionName: "validationRules", isCollectionItem: true }, format: { optionName: "format", isCollectionItem: false }, formItem: { optionName: "formItem", isCollectionItem: false }, headerFilter: { optionName: "headerFilter", isCollectionItem: false }, lookup: { optionName: "lookup", isCollectionItem: false }, NumericRule: { optionName: "validationRules", isCollectionItem: true }, PatternRule: { optionName: "validationRules", isCollectionItem: true }, RangeRule: { optionName: "validationRules", isCollectionItem: true }, RequiredRule: { optionName: "validationRules", isCollectionItem: true }, StringLengthRule: { optionName: "validationRules", isCollectionItem: true }, validationRule: { optionName: "validationRules", isCollectionItem: true } }, TemplateProps: [{ tmplOption: "cellTemplate", render: "cellRender", component: "cellComponent" }, { tmplOption: "editCellTemplate", render: "editCellRender", component: "editCellComponent" }, { tmplOption: "groupCellTemplate", render: "groupCellRender", component: "groupCellComponent" }, { tmplOption: "headerCellTemplate", render: "headerCellRender", component: "headerCellComponent" }], }, }); }; const Column = Object.assign(_componentColumn, { componentType: "option", }); exports.Column = Column; const _componentColumnChooser = (props) => { return React.createElement((nested_option_1.default), { ...props, elementDescriptor: { OptionName: "columnChooser", ExpectedChildren: { columnChooserSearch: { optionName: "search", isCollectionItem: false }, columnChooserSelection: { optionName: "selection", isCollectionItem: false }, position: { optionName: "position", isCollectionItem: false }, search: { optionName: "search", isCollectionItem: false }, selection: { optionName: "selection", isCollectionItem: false } }, }, }); }; const ColumnChooser = Object.assign(_componentColumnChooser, { componentType: "option", }); exports.ColumnChooser = ColumnChooser; const _componentColumnChooserSearch = (props) => { return React.createElement((nested_option_1.default), { ...props, elementDescriptor: { OptionName: "search", }, }); }; const ColumnChooserSearch = Object.assign(_componentColumnChooserSearch, { componentType: "option", }); exports.ColumnChooserSearch = ColumnChooserSearch; const _componentColumnChooserSelection = (props) => { return React.createElement((nested_option_1.default), { ...props, elementDescriptor: { OptionName: "selection", }, }); }; const ColumnChooserSelection = Object.assign(_componentColumnChooserSelection, { componentType: "option", }); exports.ColumnChooserSelection = ColumnChooserSelection; const _componentColumnFixing = (props) => { return React.createElement((nested_option_1.default), { ...props, elementDescriptor: { OptionName: "columnFixing", ExpectedChildren: { columnFixingTexts: { optionName: "texts", isCollectionItem: false }, icons: { optionName: "icons", isCollectionItem: false }, texts: { optionName: "texts", isCollectionItem: false } }, }, }); }; const ColumnFixing = Object.assign(_componentColumnFixing, { componentType: "option", }); exports.ColumnFixing = ColumnFixing; const _componentColumnFixingTexts = (props) => { return React.createElement((nested_option_1.default), { ...props, elementDescriptor: { OptionName: "texts", }, }); }; const ColumnFixingTexts = Object.assign(_componentColumnFixingTexts, { componentType: "option", }); exports.ColumnFixingTexts = ColumnFixingTexts; const _componentColumnHeaderFilter = (props) => { return React.createElement((nested_option_1.default), { ...props, elementDescriptor: { OptionName: "headerFilter", ExpectedChildren: { columnHeaderFilterSearch: { optionName: "search", isCollectionItem: false }, search: { optionName: "search", isCollectionItem: false } }, }, }); }; const ColumnHeaderFilter = Object.assign(_componentColumnHeaderFilter, { componentType: "option", }); exports.ColumnHeaderFilter = ColumnHeaderFilter; const _componentColumnHeaderFilterSearch = (props) => { return React.createElement((nested_option_1.default), { ...props, elementDescriptor: { OptionName: "search", }, }); }; const ColumnHeaderFilterSearch = Object.assign(_componentColumnHeaderFilterSearch, { componentType: "option", }); exports.ColumnHeaderFilterSearch = ColumnHeaderFilterSearch; const _componentColumnLookup = (props) => { return React.createElement((nested_option_1.default), { ...props, elementDescriptor: { OptionName: "lookup", }, }); }; const ColumnLookup = Object.assign(_componentColumnLookup, { componentType: "option", }); exports.ColumnLookup = ColumnLookup; const _componentCompareRule = (props) => { return React.createElement((nested_option_1.default), { ...props, elementDescriptor: { OptionName: "validationRules", IsCollectionItem: true, PredefinedProps: { type: "compare" }, }, }); }; const CompareRule = Object.assign(_componentCompareRule, { componentType: "option", }); exports.CompareRule = CompareRule; const _componentCursorOffset = (props) => { return React.createElement((nested_option_1.default), { ...props, elementDescriptor: { OptionName: "cursorOffset", }, }); }; const CursorOffset = Object.assign(_componentCursorOffset, { componentType: "option", }); exports.CursorOffset = CursorOffset; const _componentCustomOperation = (props) => { return React.createElement((nested_option_1.default), { ...props, elementDescriptor: { OptionName: "customOperations", IsCollectionItem: true, TemplateProps: [{ tmplOption: "editorTemplate", render: "editorRender", component: "editorComponent" }], }, }); }; const CustomOperation = Object.assign(_componentCustomOperation, { componentType: "option", }); exports.CustomOperation = CustomOperation; const _componentCustomRule = (props) => { return React.createElement((nested_option_1.default), { ...props, elementDescriptor: { OptionName: "validationRules", IsCollectionItem: true, PredefinedProps: { type: "custom" }, }, }); }; const CustomRule = Object.assign(_componentCustomRule, { componentType: "option", }); exports.CustomRule = CustomRule; const _componentDataGridHeaderFilter = (props) => { return React.createElement((nested_option_1.default), { ...props, elementDescriptor: { OptionName: "headerFilter", ExpectedChildren: { dataGridHeaderFilterSearch: { optionName: "search", isCollectionItem: false }, dataGridHeaderFilterTexts: { optionName: "texts", isCollectionItem: false }, search: { optionName: "search", isCollectionItem: false }, texts: { optionName: "texts", isCollectionItem: false } }, }, }); }; const DataGridHeaderFilter = Object.assign(_componentDataGridHeaderFilter, { componentType: "option", }); exports.DataGridHeaderFilter = DataGridHeaderFilter; const _componentDataGridHeaderFilterSearch = (props) => { return React.createElement((nested_option_1.default), { ...props, elementDescriptor: { OptionName: "search", }, }); }; const DataGridHeaderFilterSearch = Object.assign(_componentDataGridHeaderFilterSearch, { componentType: "option", }); exports.DataGridHeaderFilterSearch = DataGridHeaderFilterSearch; const _componentDataGridHeaderFilterTexts = (props) => { return React.createElement((nested_option_1.default), { ...props, elementDescriptor: { OptionName: "texts", }, }); }; const DataGridHeaderFilterTexts = Object.assign(_componentDataGridHeaderFilterTexts, { componentType: "option", }); exports.DataGridHeaderFilterTexts = DataGridHeaderFilterTexts; const _componentDataGridSelection = (props) => { return React.createElement((nested_option_1.default), { ...props, elementDescriptor: { OptionName: "selection", }, }); }; const DataGridSelection = Object.assign(_componentDataGridSelection, { componentType: "option", }); exports.DataGridSelection = DataGridSelection; const _componentEditing = (props) => { return React.createElement((nested_option_1.default), { ...props, elementDescriptor: { OptionName: "editing", DefaultsProps: { defaultChanges: "changes", defaultEditColumnName: "editColumnName", defaultEditRowKey: "editRowKey" }, ExpectedChildren: { change: { optionName: "changes", isCollectionItem: true }, editingTexts: { optionName: "texts", isCollectionItem: false }, form: { optionName: "form", isCollectionItem: false }, popup: { optionName: "popup", isCollectionItem: false }, texts: { optionName: "texts", isCollectionItem: false } }, }, }); }; const Editing = Object.assign(_componentEditing, { componentType: "option", }); exports.Editing = Editing; const _componentEditingTexts = (props) => { return React.createElement((nested_option_1.default), { ...props, elementDescriptor: { OptionName: "texts", }, }); }; const EditingTexts = Object.assign(_componentEditingTexts, { componentType: "option", }); exports.EditingTexts = EditingTexts; const _componentEmailRule = (props) => { return React.createElement((nested_option_1.default), { ...props, elementDescriptor: { OptionName: "validationRules", IsCollectionItem: true, PredefinedProps: { type: "email" }, }, }); }; const EmailRule = Object.assign(_componentEmailRule, { componentType: "option", }); exports.EmailRule = EmailRule; const _componentExport = (props) => { return React.createElement((nested_option_1.default), { ...props, elementDescriptor: { OptionName: "export", ExpectedChildren: { exportTexts: { optionName: "texts", isCollectionItem: false }, texts: { optionName: "texts", isCollectionItem: false } }, }, }); }; const Export = Object.assign(_componentExport, { componentType: "option", }); exports.Export = Export; const _componentExportTexts = (props) => { return React.createElement((nested_option_1.default), { ...props, elementDescriptor: { OptionName: "texts", }, }); }; const ExportTexts = Object.assign(_componentExportTexts, { componentType: "option", }); exports.ExportTexts = ExportTexts; const _componentField = (props) => { return React.createElement((nested_option_1.default), { ...props, elementDescriptor: { OptionName: "fields", IsCollectionItem: true, ExpectedChildren: { fieldLookup: { optionName: "lookup", isCollectionItem: false }, format: { optionName: "format", isCollectionItem: false }, lookup: { optionName: "lookup", isCollectionItem: false } }, TemplateProps: [{ tmplOption: "editorTemplate", render: "editorRender", component: "editorComponent" }], }, }); }; const Field = Object.assign(_componentField, { componentType: "option", }); exports.Field = Field; const _componentFieldLookup = (props) => { return React.createElement((nested_option_1.default), { ...props, elementDescriptor: { OptionName: "lookup", }, }); }; const FieldLookup = Object.assign(_componentFieldLookup, { componentType: "option", }); exports.FieldLookup = FieldLookup; const _componentFilterBuilder = (props) => { return React.createElement((nested_option_1.default), { ...props, elementDescriptor: { OptionName: "filterBuilder", DefaultsProps: { defaultValue: "value" }, ExpectedChildren: { customOperation: { optionName: "customOperations", isCollectionItem: true }, field: { optionName: "fields", isCollectionItem: true }, filterOperationDescriptions: { optionName: "filterOperationDescriptions", isCollectionItem: false }, groupOperationDescriptions: { optionName: "groupOperationDescriptions", isCollectionItem: false } }, }, }); }; const FilterBuilder = Object.assign(_componentFilterBuilder, { componentType: "option", }); exports.FilterBuilder = FilterBuilder; const _componentFilterBuilderPopup = (props) => { return React.createElement((nested_option_1.default), { ...props, elementDescriptor: { OptionName: "filterBuilderPopup", DefaultsProps: { defaultHeight: "height", defaultPosition: "position", defaultVisible: "visible", defaultWidth: "width" }, ExpectedChildren: { animation: { optionName: "animation", isCollectionItem: false }, position: { optionName: "position", isCollectionItem: false }, toolbarItem: { optionName: "toolbarItems", isCollectionItem: true } }, TemplateProps: [{ tmplOption: "contentTemplate", render: "contentRender", component: "contentComponent" }, { tmplOption: "titleTemplate", render: "titleRender", component: "titleComponent" }], }, }); }; const FilterBuilderPopup = Object.assign(_componentFilterBuilderPopup, { componentType: "option", }); exports.FilterBuilderPopup = FilterBuilderPopup; const _componentFilterOperationDescriptions = (props) => { return React.createElement((nested_option_1.default), { ...props, elementDescriptor: { OptionName: "filterOperationDescriptions", }, }); }; const FilterOperationDescriptions = Object.assign(_componentFilterOperationDescriptions, { componentType: "option", }); exports.FilterOperationDescriptions = FilterOperationDescriptions; const _componentFilterPanel = (props) => { return React.createElement((nested_option_1.default), { ...props, elementDescriptor: { OptionName: "filterPanel", DefaultsProps: { defaultFilterEnabled: "filterEnabled" }, ExpectedChildren: { filterPanelTexts: { optionName: "texts", isCollectionItem: false }, texts: { optionName: "texts", isCollectionItem: false } }, }, }); }; const FilterPanel = Object.assign(_componentFilterPanel, { componentType: "option", }); exports.FilterPanel = FilterPanel; const _componentFilterPanelTexts = (props) => { return React.createElement((nested_option_1.default), { ...props, elementDescriptor: { OptionName: "texts", }, }); }; const FilterPanelTexts = Object.assign(_componentFilterPanelTexts, { componentType: "option", }); exports.FilterPanelTexts = FilterPanelTexts; const _componentFilterRow = (props) => { return React.createElement((nested_option_1.default), { ...props, elementDescriptor: { OptionName: "filterRow", ExpectedChildren: { operationDescriptions: { optionName: "operationDescriptions", isCollectionItem: false } }, }, }); }; const FilterRow = Object.assign(_componentFilterRow, { componentType: "option", }); exports.FilterRow = FilterRow; const _componentForm = (props) => { return React.createElement((nested_option_1.default), { ...props, elementDescriptor: { OptionName: "form", DefaultsProps: { defaultFormData: "formData" }, ExpectedChildren: { colCountByScreen: { optionName: "colCountByScreen", isCollectionItem: false } }, }, }); }; const Form = Object.assign(_componentForm, { componentType: "option", }); exports.Form = Form; const _componentFormat = (props) => { return React.createElement((nested_option_1.default), { ...props, elementDescriptor: { OptionName: "format", }, }); }; const Format = Object.assign(_componentFormat, { componentType: "option", }); exports.Format = Format; const _componentFormItem = (props) => { return React.createElement((nested_option_1.default), { ...props, elementDescriptor: { OptionName: "formItem", ExpectedChildren: { AsyncRule: { optionName: "validationRules", isCollectionItem: true }, CompareRule: { optionName: "validationRules", isCollectionItem: true }, CustomRule: { optionName: "validationRules", isCollectionItem: true }, EmailRule: { optionName: "validationRules", isCollectionItem: true }, label: { optionName: "label", isCollectionItem: false }, NumericRule: { optionName: "validationRules", isCollectionItem: true }, PatternRule: { optionName: "validationRules", isCollectionItem: true }, RangeRule: { optionName: "validationRules", isCollectionItem: true }, RequiredRule: { optionName: "validationRules", isCollectionItem: true }, StringLengthRule: { optionName: "validationRules", isCollectionItem: true }, validationRule: { optionName: "validationRules", isCollectionItem: true } }, TemplateProps: [{ tmplOption: "template", render: "render", component: "component" }], }, }); }; const FormItem = Object.assign(_componentFormItem, { componentType: "option", }); exports.FormItem = FormItem; const _componentFrom = (props) => { return React.createElement((nested_option_1.default), { ...props, elementDescriptor: { OptionName: "from", ExpectedChildren: { position: { optionName: "position", isCollectionItem: false } }, }, }); }; const From = Object.assign(_componentFrom, { componentType: "option", }); exports.From = From; const _componentGrouping = (props) => { return React.createElement((nested_option_1.default), { ...props, elementDescriptor: { OptionName: "grouping", ExpectedChildren: { groupingTexts: { optionName: "texts", isCollectionItem: false }, texts: { optionName: "texts", isCollectionItem: false } }, }, }); }; const Grouping = Object.assign(_componentGrouping, { componentType: "option", }); exports.Grouping = Grouping; const _componentGroupingTexts = (props) => { return React.createElement((nested_option_1.default), { ...props, elementDescriptor: { OptionName: "texts", }, }); }; const GroupingTexts = Object.assign(_componentGroupingTexts, { componentType: "option", }); exports.GroupingTexts = GroupingTexts; const _componentGroupItem = (props) => { return React.createElement((nested_option_1.default), { ...props, elementDescriptor: { OptionName: "groupItems", IsCollectionItem: true, ExpectedChildren: { valueFormat: { optionName: "valueFormat", isCollectionItem: false } }, }, }); }; const GroupItem = Object.assign(_componentGroupItem, { componentType: "option", }); exports.GroupItem = GroupItem; const _componentGroupOperationDescriptions = (props) => { return React.createElement((nested_option_1.default), { ...props, elementDescriptor: { OptionName: "groupOperationDescriptions", }, }); }; const GroupOperationDescriptions = Object.assign(_componentGroupOperationDescriptions, { componentType: "option", }); exports.GroupOperationDescriptions = GroupOperationDescriptions; const _componentGroupPanel = (props) => { return React.createElement((nested_option_1.default), { ...props, elementDescriptor: { OptionName: "groupPanel", DefaultsProps: { defaultVisible: "visible" }, }, }); }; const GroupPanel = Object.assign(_componentGroupPanel, { componentType: "option", }); exports.GroupPanel = GroupPanel; const _componentHeaderFilter = (props) => { return React.createElement((nested_option_1.default), { ...props, elementDescriptor: { OptionName: "headerFilter", ExpectedChildren: { columnHeaderFilterSearch: { optionName: "search", isCollectionItem: false }, dataGridHeaderFilterSearch: { optionName: "search", isCollectionItem: false }, dataGridHeaderFilterTexts: { optionName: "texts", isCollectionItem: false } }, }, }); }; const HeaderFilter = Object.assign(_componentHeaderFilter, { componentType: "option", }); exports.HeaderFilter = HeaderFilter; const _componentHide = (props) => { return React.createElement((nested_option_1.default), { ...props, elementDescriptor: { OptionName: "hide", ExpectedChildren: { from: { optionName: "from", isCollectionItem: false }, to: { optionName: "to", isCollectionItem: false } }, }, }); }; const Hide = Object.assign(_componentHide, { componentType: "option", }); exports.Hide = Hide; const _componentIcons = (props) => { return React.createElement((nested_option_1.default), { ...props, elementDescriptor: { OptionName: "icons", }, }); }; const Icons = Object.assign(_componentIcons, { componentType: "option", }); exports.Icons = Icons; const _componentItem = (props) => { return React.createElement((nested_option_1.default), { ...props, elementDescriptor: { OptionName: "items", IsCollectionItem: true, TemplateProps: [{ tmplOption: "menuItemTemplate", render: "menuItemRender", component: "menuItemComponent" }, { tmplOption: "template", render: "render", component: "component" }], }, }); }; const Item = Object.assign(_componentItem, { componentType: "option", }); exports.Item = Item; const _componentKeyboardNavigation = (props) => { return React.createElement((nested_option_1.default), { ...props, elementDescriptor: { OptionName: "keyboardNavigation", }, }); }; const KeyboardNavigation = Object.assign(_componentKeyboardNavigation, { componentType: "option", }); exports.KeyboardNavigation = KeyboardNavigation; const _componentLabel = (props) => { return React.createElement((nested_option_1.default), { ...props, elementDescriptor: { OptionName: "label", TemplateProps: [{ tmplOption: "template", render: "render", component: "component" }], }, }); }; const Label = Object.assign(_componentLabel, { componentType: "option", }); exports.Label = Label; const _componentLoadPanel = (props) => { return React.createElement((nested_option_1.default), { ...props, elementDescriptor: { OptionName: "loadPanel", }, }); }; const LoadPanel = Object.assign(_componentLoadPanel, { componentType: "option", }); exports.LoadPanel = LoadPanel; const _componentLookup = (props) => { return React.createElement((nested_option_1.default), { ...props, elementDescriptor: { OptionName: "lookup", }, }); }; const Lookup = Object.assign(_componentLookup, { componentType: "option", }); exports.Lookup = Lookup; const _componentMasterDetail = (props) => { return React.createElement((nested_option_1.default), { ...props, elementDescriptor: { OptionName: "masterDetail", TemplateProps: [{ tmplOption: "template", render: "render", component: "component" }], }, }); }; const MasterDetail = Object.assign(_componentMasterDetail, { componentType: "option", }); exports.MasterDetail = MasterDetail; const _componentMy = (props) => { return React.createElement((nested_option_1.default), { ...props, elementDescriptor: { OptionName: "my", }, }); }; const My = Object.assign(_componentMy, { componentType: "option", }); exports.My = My; const _componentNumericRule = (props) => { return React.createElement((nested_option_1.default), { ...props, elementDescriptor: { OptionName: "validationRules", IsCollectionItem: true, PredefinedProps: { type: "numeric" }, }, }); }; const NumericRule = Object.assign(_componentNumericRule, { componentType: "option", }); exports.NumericRule = NumericRule; const _componentOffset = (props) => { return React.createElement((nested_option_1.default), { ...props, elementDescriptor: { OptionName: "offset", }, }); }; const Offset = Object.assign(_componentOffset, { componentType: "option", }); exports.Offset = Offset; const _componentOperationDescriptions = (props) => { return React.createElement((nested_option_1.default), { ...props, elementDescriptor: { OptionName: "operationDescriptions", }, }); }; const OperationDescriptions = Object.assign(_componentOperationDescriptions, { componentType: "option", }); exports.OperationDescriptions = OperationDescriptions; const _componentPager = (props) => { return React.createElement((nested_option_1.default), { ...props, elementDescriptor: { OptionName: "pager", }, }); }; const Pager = Object.assign(_componentPager, { componentType: "option", }); exports.Pager = Pager; const _componentPaging = (props) => { return React.createElement((nested_option_1.default), { ...props, elementDescriptor: { OptionName: "paging", DefaultsProps: { defaultPageIndex: "pageIndex", defaultPageSize: "pageSize" }, }, }); }; const Paging = Object.assign(_componentPaging, { componentType: "option", }); exports.Paging = Paging; const _componentPatternRule = (props) => { return React.createElement((nested_option_1.default), { ...props, elementDescriptor: { OptionName: "validationRules", IsCollectionItem: true, PredefinedProps: { type: "pattern" }, }, }); }; const PatternRule = Object.assign(_componentPatternRule, { componentType: "option", }); exports.PatternRule = PatternRule; const _componentPopup = (props) => { return React.createElement((nested_option_1.default), { ...props, elementDescriptor: { OptionName: "popup", DefaultsProps: { defaultHeight: "height", defaultPosition: "position", defaultVisible: "visible", defaultWidth: "width" }, ExpectedChildren: { animation: { optionName: "animation", isCollectionItem: false }, position: { optionName: "position", isCollectionItem: false }, toolbarItem: { optionName: "toolbarItems", isCollectionItem: true } }, TemplateProps: [{ tmplOption: "contentTemplate", render: "contentRender", component: "contentComponent" }, { tmplOption: "titleTemplate", render: "titleRender", component: "titleComponent" }], }, }); }; const Popup = Object.assign(_componentPopup, { componentType: "option", }); exports.Popup = Popup; const _componentPosition = (props) => { return React.createElement((nested_option_1.default), { ...props, elementDescriptor: { OptionName: "position", ExpectedChildren: { at: { optionName: "at", isCollectionItem: false }, boundaryOffset: { optionName: "boundaryOffset", isCollectionItem: false }, collision: { optionName: "collision", isCollectionItem: false }, my: { optionName: "my", isCollectionItem: false }, offset: { optionName: "offset", isCollectionItem: false } }, }, }); }; const Position = Object.assign(_componentPosition, { componentType: "option", }); exports.Position = Position; const _componentRangeRule = (props) => { return React.createElement((nested_option_1.default), { ...props, elementDescriptor: { OptionName: "validationRules", IsCollectionItem: true, PredefinedProps: { type: "range" }, }, }); }; const RangeRule = Object.assign(_componentRangeRule, { componentType: "option", }); exports.RangeRule = RangeRule; const _componentRemoteOperations = (props) => { return React.createElement((nested_option_1.default), { ...props, elementDescriptor: { OptionName: "remoteOperations", }, }); }; const RemoteOperations = Object.assign(_componentRemoteOperations, { componentType: "option", }); exports.RemoteOperations = RemoteOperations; const _componentRequiredRule = (props) => { return React.createElement((nested_option_1.default), { ...props, elementDescriptor: { OptionName: "validationRules", IsCollectionItem: true, PredefinedProps: { type: "required" }, }, }); }; const RequiredRule = Object.assign(_componentRequiredRule, { componentType: "option", }); exports.RequiredRule = RequiredRule; const _componentRowDragging = (props) => { return React.createElement((nested_option_1.default), { ...props, elementDescriptor: { OptionName: "rowDragging", ExpectedChildren: { cursorOffset: { optionName: "cursorOffset", isCollectionItem: false } }, TemplateProps: [{ tmplOption: "dragTemplate", render: "dragRender", component: "dragComponent" }], }, }); }; const RowDragging = Object.assign(_componentRowDragging, { componentType: "option", }); exports.RowDragging = RowDragging; const _componentScrolling = (props) => { return React.createElement((nested_option_1.default), { ...props, elementDescriptor: { OptionName: "scrolling", }, }); }; const Scrolling = Object.assign(_componentScrolling, { componentType: "option", }); exports.Scrolling = Scrolling; const _componentSearch = (props) => { return React.createElement((nested_option_1.default), { ...props, elementDescriptor: { OptionName: "search", }, }); }; const Search = Object.assign(_componentSearch, { componentType: "option", }); exports.Search = Search; const _componentSearchPanel = (props) => { return React.createElement((nested_option_1.default), { ...props, elementDescriptor: { OptionName: "searchPanel", DefaultsProps: { defaultText: "text" }, }, }); }; const SearchPanel = Object.assign(_componentSearchPanel, { componentType: "option", }); exports.SearchPanel = SearchPanel; const _componentSelection = (props) => { return React.createElement((nested_option_1.default), { ...props, elementDescriptor: { OptionName: "selection", }, }); }; const Selection = Object.assign(_componentSelection, { componentType: "option", }); exports.Selection = Selection; const _componentShow = (props) => { return React.createElement((nested_option_1.default), { ...props, elementDescriptor: { OptionName: "show", ExpectedChildren: { from: { optionName: "from", isCollectionItem: false }, to: { optionName: "to", isCollectionItem: false } }, }, }); }; const Show = Object.assign(_componentShow, { componentType: "option", }); exports.Show = Show; const _componentSortByGroupSummaryInfo = (props) => { return React.createElement((nested_option_1.default), { ...props, elementDescriptor: { OptionName: "sortByGroupSummaryInfo", IsCollectionItem: true, }, }); }; const SortByGroupSummaryInfo = Object.assign(_componentSortByGroupSummaryInfo, { componentType: "option", }); exports.SortByGroupSummaryInfo = SortByGroupSummaryInfo; const _componentSorting = (props) => { return React.createElement((nested_option_1.default), { ...props, elementDescriptor: { OptionName: "sorting", }, }); }; const Sorting = Object.assign(_componentSorting, { componentType: "option", }); exports.Sorting = Sorting; const _componentStateStoring = (props) => { return React.createElement((nested_option_1.default), { ...props, elementDescriptor: { OptionName: "stateStoring", }, }); }; const StateStoring = Object.assign(_componentStateStoring, { componentType: "option", }); exports.StateStoring = StateStoring; const _componentStringLengthRule = (props) => { return React.createElement((nested_option_1.default), { ...props, elementDescriptor: { OptionName: "validationRules", IsCollectionItem: true, PredefinedProps: { type: "stringLength" }, }, }); }; const StringLengthRule = Object.assign(_componentStringLengthRule, { componentType: "option", }); exports.StringLengthRule = StringLengthRule; const _componentSummary = (props) => { return React.createElement((nested_option_1.default), { ...props, elementDescriptor: { OptionName: "summary", ExpectedChildren: { groupItem: { optionName: "groupItems", isCollectionItem: true }, summaryTexts: { optionName: "texts", isCollectionItem: false }, texts: { optionName: "texts", isCollectionItem: false }, totalItem: { optionName: "totalItems", isCollectionItem: true } }, }, }); }; const S