@motifx-community/ui 0.0.0-stage → 0.1.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of @motifx-community/ui might be problematic. Click here for more details.
- package/CHANGELOG.md +1803 -0
- package/LICENSE +21 -0
- package/README.md +139 -3
- package/dist/components/accordion/Accordion.d.ts +100 -0
- package/dist/components/accordion/AccordionItem.d.ts +66 -0
- package/dist/components/accordion/accordion-chevron.d.ts +2 -0
- package/dist/components/accordion/accordion-expanded-event-args.d.ts +9 -0
- package/dist/components/accordion/accordion-expanding-event-args.d.ts +10 -0
- package/dist/components/accordion/accordion-item-props.d.ts +25 -0
- package/dist/components/accordion/accordion-props.d.ts +38 -0
- package/dist/components/accordion/accordion-variant.d.ts +2 -0
- package/dist/components/accordion/index.d.ts +8 -0
- package/dist/components/actionsheet/ActionSheet.d.ts +61 -0
- package/dist/components/actionsheet/action-sheet-props.d.ts +17 -0
- package/dist/components/actionsheet/index.d.ts +2 -0
- package/dist/components/avatar/Avatar.d.ts +54 -0
- package/dist/components/avatar/AvatarGroup.d.ts +41 -0
- package/dist/components/avatar/avatar-group-layout.d.ts +2 -0
- package/dist/components/avatar/avatar-group-props.d.ts +17 -0
- package/dist/components/avatar/avatar-props.d.ts +25 -0
- package/dist/components/avatar/avatar-shape.d.ts +2 -0
- package/dist/components/avatar/avatar-size.d.ts +2 -0
- package/dist/components/avatar/avatar-status.d.ts +2 -0
- package/dist/components/avatar/avatar-tone.d.ts +2 -0
- package/dist/components/avatar/index.d.ts +11 -0
- package/dist/components/avatar/initials-of.d.ts +6 -0
- package/dist/components/avatar/tone-of-name.d.ts +3 -0
- package/dist/components/badge/Badge.d.ts +53 -0
- package/dist/components/badge/badge-position.d.ts +2 -0
- package/dist/components/badge/badge-props.d.ts +27 -0
- package/dist/components/badge/badge-tone.d.ts +2 -0
- package/dist/components/badge/badge-variant.d.ts +2 -0
- package/dist/components/badge/index.d.ts +5 -0
- package/dist/components/breadcrumb/Breadcrumb.d.ts +56 -0
- package/dist/components/breadcrumb/breadcrumb-item-click-event-args.d.ts +10 -0
- package/dist/components/breadcrumb/breadcrumb-item.d.ts +13 -0
- package/dist/components/breadcrumb/breadcrumb-props.d.ts +21 -0
- package/dist/components/breadcrumb/index.d.ts +4 -0
- package/dist/components/button/Button.d.ts +117 -0
- package/dist/components/button/button-props.d.ts +45 -0
- package/dist/components/button/button-size.d.ts +3 -0
- package/dist/components/button/button-tone.d.ts +2 -0
- package/dist/components/button/button-variant.d.ts +2 -0
- package/dist/components/buttongroup/ButtonGroup.d.ts +79 -0
- package/dist/components/buttongroup/button-group-item-click-event-args.d.ts +8 -0
- package/dist/components/buttongroup/button-group-item.d.ts +15 -0
- package/dist/components/buttongroup/button-group-props.d.ts +36 -0
- package/dist/components/buttongroup/button-group-selection.d.ts +2 -0
- package/dist/components/buttongroup/button-group-value-changed-event-args.d.ts +8 -0
- package/dist/components/buttongroup/index.d.ts +6 -0
- package/dist/components/calendar/Calendar.d.ts +70 -0
- package/dist/components/calendar/calendar-props.d.ts +26 -0
- package/dist/components/calendar/calendar-view.d.ts +2 -0
- package/dist/components/calendar/index.d.ts +3 -0
- package/dist/components/card/Card.d.ts +92 -0
- package/dist/components/card/card-orientation.d.ts +2 -0
- package/dist/components/card/card-props.d.ts +44 -0
- package/dist/components/card/card-selected-changed-event-args.d.ts +7 -0
- package/dist/components/card/card-variant.d.ts +2 -0
- package/dist/components/card/index.d.ts +5 -0
- package/dist/components/checkbox/CheckBox.d.ts +34 -0
- package/dist/components/checkbox/ToggleField.d.ts +26 -0
- package/dist/components/checkbox/check-box-props.d.ts +7 -0
- package/dist/components/checkbox/index.d.ts +5 -0
- package/dist/components/checkbox/label-position.d.ts +2 -0
- package/dist/components/checkbox/toggle-field-props.d.ts +10 -0
- package/dist/components/chip/Chip.d.ts +86 -0
- package/dist/components/chip/ChipGroup.d.ts +45 -0
- package/dist/components/chip/chip-group-props.d.ts +16 -0
- package/dist/components/chip/chip-group-selection.d.ts +2 -0
- package/dist/components/chip/chip-group-value-changed-event-args.d.ts +8 -0
- package/dist/components/chip/chip-props.d.ts +34 -0
- package/dist/components/chip/chip-remove-event-args.d.ts +7 -0
- package/dist/components/chip/chip-selected-changed-event-args.d.ts +7 -0
- package/dist/components/chip/chip-tone.d.ts +2 -0
- package/dist/components/chip/chip-variant.d.ts +2 -0
- package/dist/components/chip/index.d.ts +10 -0
- package/dist/components/colorbox/ColorBox.d.ts +55 -0
- package/dist/components/colorbox/color-box-apply.d.ts +2 -0
- package/dist/components/colorbox/color-box-props.d.ts +15 -0
- package/dist/components/colorbox/index.d.ts +3 -0
- package/dist/components/colorpicker/ColorPicker.d.ts +66 -0
- package/dist/components/colorpicker/color-changed-event-args.d.ts +8 -0
- package/dist/components/colorpicker/color-picker-props.d.ts +17 -0
- package/dist/components/colorpicker/index.d.ts +4 -0
- package/dist/components/combobox/Autocomplete.d.ts +17 -0
- package/dist/components/combobox/ComboBox.d.ts +103 -0
- package/dist/components/combobox/combo-box-props.d.ts +37 -0
- package/dist/components/combobox/index.d.ts +3 -0
- package/dist/components/contextmenu/ContextMenu.d.ts +96 -0
- package/dist/components/contextmenu/attach-context-menu.d.ts +12 -0
- package/dist/components/contextmenu/context-menu-opening-event-args.d.ts +16 -0
- package/dist/components/contextmenu/context-menu-presentation.d.ts +2 -0
- package/dist/components/contextmenu/context-menu-props.d.ts +30 -0
- package/dist/components/contextmenu/context-menu-target.d.ts +3 -0
- package/dist/components/contextmenu/index.d.ts +6 -0
- package/dist/components/datagrid/DataGrid.d.ts +1194 -0
- package/dist/components/datagrid/band-cell-context.d.ts +7 -0
- package/dist/components/datagrid/band-layout.d.ts +7 -0
- package/dist/components/datagrid/built-in-action.d.ts +3 -0
- package/dist/components/datagrid/cell-context.d.ts +14 -0
- package/dist/components/datagrid/column-features.d.ts +68 -0
- package/dist/components/datagrid/column-filter.d.ts +20 -0
- package/dist/components/datagrid/column-layout.d.ts +10 -0
- package/dist/components/datagrid/column-option-name.d.ts +7 -0
- package/dist/components/datagrid/column-resize-mode.d.ts +2 -0
- package/dist/components/datagrid/column-type.d.ts +2 -0
- package/dist/components/datagrid/data-grid-props.d.ts +353 -0
- package/dist/components/datagrid/detail-context.d.ts +13 -0
- package/dist/components/datagrid/editor-context.d.ts +26 -0
- package/dist/components/datagrid/grid-action-item.d.ts +4 -0
- package/dist/components/datagrid/grid-action-location.d.ts +2 -0
- package/dist/components/datagrid/grid-action-ran-event-args.d.ts +17 -0
- package/dist/components/datagrid/grid-action-run.d.ts +10 -0
- package/dist/components/datagrid/grid-action-running-event-args.d.ts +13 -0
- package/dist/components/datagrid/grid-action.d.ts +55 -0
- package/dist/components/datagrid/grid-adaptive-detail-row-preparing-event-args.d.ts +14 -0
- package/dist/components/datagrid/grid-adaptive-detail.d.ts +25 -0
- package/dist/components/datagrid/grid-adaptive-form-options.d.ts +10 -0
- package/dist/components/datagrid/grid-adaptive-row-expanded-event-args.d.ts +7 -0
- package/dist/components/datagrid/grid-adaptive-row-expanding-event-args.d.ts +8 -0
- package/dist/components/datagrid/grid-band.d.ts +38 -0
- package/dist/components/datagrid/grid-bar-action.d.ts +14 -0
- package/dist/components/datagrid/grid-built-in-actions.d.ts +14 -0
- package/dist/components/datagrid/grid-cell-click-event-args.d.ts +16 -0
- package/dist/components/datagrid/grid-cell-extend-keys.d.ts +22 -0
- package/dist/components/datagrid/grid-cell-point.d.ts +10 -0
- package/dist/components/datagrid/grid-cell-prepared-event-args.d.ts +13 -0
- package/dist/components/datagrid/grid-cell-range.d.ts +11 -0
- package/dist/components/datagrid/grid-cell-selection-changed-event-args.d.ts +7 -0
- package/dist/components/datagrid/grid-cell-selection-changing-event-args.d.ts +9 -0
- package/dist/components/datagrid/grid-cell-summary-item.d.ts +2 -0
- package/dist/components/datagrid/grid-cell-summary.d.ts +14 -0
- package/dist/components/datagrid/grid-cell-value.d.ts +9 -0
- package/dist/components/datagrid/grid-changes.d.ts +10 -0
- package/dist/components/datagrid/grid-column-form-item.d.ts +16 -0
- package/dist/components/datagrid/grid-column-item.d.ts +4 -0
- package/dist/components/datagrid/grid-column.d.ts +190 -0
- package/dist/components/datagrid/grid-content-ready-event-args.d.ts +5 -0
- package/dist/components/datagrid/grid-context-menu-preparing-event-args.d.ts +15 -0
- package/dist/components/datagrid/grid-copying-event-args.d.ts +13 -0
- package/dist/components/datagrid/grid-custom-summary-info.d.ts +17 -0
- package/dist/components/datagrid/grid-data-error-event-args.d.ts +8 -0
- package/dist/components/datagrid/grid-date-interval.d.ts +2 -0
- package/dist/components/datagrid/grid-edit-canceled-event-args.d.ts +4 -0
- package/dist/components/datagrid/grid-edit-canceling-event-args.d.ts +8 -0
- package/dist/components/datagrid/grid-edit-form.d.ts +22 -0
- package/dist/components/datagrid/grid-edit-popup.d.ts +22 -0
- package/dist/components/datagrid/grid-editing-cell.d.ts +6 -0
- package/dist/components/datagrid/grid-editing-start-event-args.d.ts +14 -0
- package/dist/components/datagrid/grid-editor-prepared-event-args.d.ts +18 -0
- package/dist/components/datagrid/grid-editor-preparing-event-args.d.ts +19 -0
- package/dist/components/datagrid/grid-export-cell.d.ts +26 -0
- package/dist/components/datagrid/grid-export-options.d.ts +35 -0
- package/dist/components/datagrid/grid-export-settings.d.ts +19 -0
- package/dist/components/datagrid/grid-export-texts.d.ts +11 -0
- package/dist/components/datagrid/grid-exported-event-args.d.ts +8 -0
- package/dist/components/datagrid/grid-exporting-event-args.d.ts +17 -0
- package/dist/components/datagrid/grid-filter-builder-closed-event-args.d.ts +6 -0
- package/dist/components/datagrid/grid-filter-builder-closing-event-args.d.ts +10 -0
- package/dist/components/datagrid/grid-filter-builder-opened-event-args.d.ts +7 -0
- package/dist/components/datagrid/grid-filter-builder-opening-event-args.d.ts +6 -0
- package/dist/components/datagrid/grid-filter-builder-options.d.ts +7 -0
- package/dist/components/datagrid/grid-filter-builder-popup.d.ts +22 -0
- package/dist/components/datagrid/grid-filter-changed-event-args.d.ts +12 -0
- package/dist/components/datagrid/grid-filter-changing-event-args.d.ts +15 -0
- package/dist/components/datagrid/grid-filter-operator.d.ts +2 -0
- package/dist/components/datagrid/grid-filter-panel-text-info.d.ts +6 -0
- package/dist/components/datagrid/grid-filter-value.d.ts +9 -0
- package/dist/components/datagrid/grid-filters.d.ts +3 -0
- package/dist/components/datagrid/grid-focused-cell-changed-event-args.d.ts +6 -0
- package/dist/components/datagrid/grid-focused-cell-changing-event-args.d.ts +13 -0
- package/dist/components/datagrid/grid-focused-row-changed-event-args.d.ts +7 -0
- package/dist/components/datagrid/grid-focused-row-changing-event-args.d.ts +7 -0
- package/dist/components/datagrid/grid-group-dropping-event-args.d.ts +11 -0
- package/dist/components/datagrid/grid-group-summary-item.d.ts +12 -0
- package/dist/components/datagrid/grid-grouping-changed-event-args.d.ts +7 -0
- package/dist/components/datagrid/grid-grouping-changing-event-args.d.ts +10 -0
- package/dist/components/datagrid/grid-header-filter-interval.d.ts +7 -0
- package/dist/components/datagrid/grid-header-filter-items-request.d.ts +12 -0
- package/dist/components/datagrid/grid-header-filter-items.d.ts +7 -0
- package/dist/components/datagrid/grid-init-new-row-event-args.d.ts +9 -0
- package/dist/components/datagrid/grid-key-handling-event-args.d.ts +11 -0
- package/dist/components/datagrid/grid-layout-changing-event-args.d.ts +7 -0
- package/dist/components/datagrid/grid-layout.d.ts +16 -0
- package/dist/components/datagrid/grid-load-panel.d.ts +11 -0
- package/dist/components/datagrid/grid-lookup.d.ts +47 -0
- package/dist/components/datagrid/grid-master-detail.d.ts +38 -0
- package/dist/components/datagrid/grid-mode.d.ts +2 -0
- package/dist/components/datagrid/grid-more-rows-loaded-event-args.d.ts +6 -0
- package/dist/components/datagrid/grid-more-rows-loading-event-args.d.ts +6 -0
- package/dist/components/datagrid/grid-option-changed-event-args.d.ts +14 -0
- package/dist/components/datagrid/grid-page-changed-event-args.d.ts +5 -0
- package/dist/components/datagrid/grid-page-changing-event-args.d.ts +6 -0
- package/dist/components/datagrid/grid-page-size-changed-event-args.d.ts +5 -0
- package/dist/components/datagrid/grid-page-size-changing-event-args.d.ts +6 -0
- package/dist/components/datagrid/grid-pasting-event-args.d.ts +7 -0
- package/dist/components/datagrid/grid-row-click-event-args.d.ts +13 -0
- package/dist/components/datagrid/grid-row-drag-event-args.d.ts +36 -0
- package/dist/components/datagrid/grid-row-dragging.d.ts +71 -0
- package/dist/components/datagrid/grid-row-drop-event-args.d.ts +9 -0
- package/dist/components/datagrid/grid-row-expanded-event-args.d.ts +10 -0
- package/dist/components/datagrid/grid-row-expanding-event-args.d.ts +15 -0
- package/dist/components/datagrid/grid-row-extend-keys.d.ts +7 -0
- package/dist/components/datagrid/grid-row-inserted-event-args.d.ts +6 -0
- package/dist/components/datagrid/grid-row-inserting-event-args.d.ts +7 -0
- package/dist/components/datagrid/grid-row-prepared-event-args.d.ts +14 -0
- package/dist/components/datagrid/grid-row-removed-event-args.d.ts +5 -0
- package/dist/components/datagrid/grid-row-removing-event-args.d.ts +6 -0
- package/dist/components/datagrid/grid-row-type.d.ts +2 -0
- package/dist/components/datagrid/grid-row-updated-event-args.d.ts +7 -0
- package/dist/components/datagrid/grid-row-updating-event-args.d.ts +9 -0
- package/dist/components/datagrid/grid-row-validating-event-args.d.ts +22 -0
- package/dist/components/datagrid/grid-saved-event-args.d.ts +7 -0
- package/dist/components/datagrid/grid-saving-event-args.d.ts +10 -0
- package/dist/components/datagrid/grid-search-text-changed-event-args.d.ts +4 -0
- package/dist/components/datagrid/grid-search-text-changing-event-args.d.ts +6 -0
- package/dist/components/datagrid/grid-selection-changed-event-args.d.ts +7 -0
- package/dist/components/datagrid/grid-selection-changing-event-args.d.ts +9 -0
- package/dist/components/datagrid/grid-selection.d.ts +16 -0
- package/dist/components/datagrid/grid-settings-props.d.ts +6 -0
- package/dist/components/datagrid/grid-settings.d.ts +354 -0
- package/dist/components/datagrid/grid-sheet-cell.d.ts +9 -0
- package/dist/components/datagrid/grid-sheet-column.d.ts +14 -0
- package/dist/components/datagrid/grid-sheet-merge.d.ts +9 -0
- package/dist/components/datagrid/grid-sheet-options.d.ts +24 -0
- package/dist/components/datagrid/grid-sheet-row.d.ts +8 -0
- package/dist/components/datagrid/grid-sheet.d.ts +24 -0
- package/dist/components/datagrid/grid-sort-changed-event-args.d.ts +7 -0
- package/dist/components/datagrid/grid-sort-changing-event-args.d.ts +9 -0
- package/dist/components/datagrid/grid-state-value.d.ts +19 -0
- package/dist/components/datagrid/grid-summary-changed-event-args.d.ts +7 -0
- package/dist/components/datagrid/grid-summary-item.d.ts +37 -0
- package/dist/components/datagrid/grid-summary-text-info.d.ts +7 -0
- package/dist/components/datagrid/grid-summary-texts.d.ts +15 -0
- package/dist/components/datagrid/grid-summary-type.d.ts +2 -0
- package/dist/components/datagrid/grid-summary-value.d.ts +10 -0
- package/dist/components/datagrid/grid-summary.d.ts +25 -0
- package/dist/components/datagrid/grid-toolbar-item-click-event-args.d.ts +9 -0
- package/dist/components/datagrid/grid-toolbar-item-name.d.ts +6 -0
- package/dist/components/datagrid/grid-toolbar-item.d.ts +34 -0
- package/dist/components/datagrid/grid-toolbar-preparing-event-args.d.ts +9 -0
- package/dist/components/datagrid/grid-toolbar.d.ts +15 -0
- package/dist/components/datagrid/grid-validation-callback-args.d.ts +13 -0
- package/dist/components/datagrid/grid-validation-rule.d.ts +74 -0
- package/dist/components/datagrid/grid-values-request.d.ts +13 -0
- package/dist/components/datagrid/grid-values-result.d.ts +6 -0
- package/dist/components/datagrid/grid-visible-row.d.ts +12 -0
- package/dist/components/datagrid/group-cell-context.d.ts +22 -0
- package/dist/components/datagrid/header-cell-context.d.ts +9 -0
- package/dist/components/datagrid/index.d.ts +161 -0
- package/dist/components/datagrid/layout-storage.d.ts +6 -0
- package/dist/components/datagrid/list-option.d.ts +5 -0
- package/dist/components/datagrid/model/ActionRunner.d.ts +28 -0
- package/dist/components/datagrid/model/ActionSets.d.ts +64 -0
- package/dist/components/datagrid/model/AdaptiveRow.d.ts +24 -0
- package/dist/components/datagrid/model/CellFormatter.d.ts +41 -0
- package/dist/components/datagrid/model/CellRanges.d.ts +88 -0
- package/dist/components/datagrid/model/CellRules.d.ts +34 -0
- package/dist/components/datagrid/model/ColumnModel.d.ts +251 -0
- package/dist/components/datagrid/model/ColumnWindow.d.ts +32 -0
- package/dist/components/datagrid/model/DetailRows.d.ts +42 -0
- package/dist/components/datagrid/model/ExtraHeights.d.ts +33 -0
- package/dist/components/datagrid/model/FilterModel.d.ts +113 -0
- package/dist/components/datagrid/model/FilterValues.d.ts +47 -0
- package/dist/components/datagrid/model/GridClipboard.d.ts +42 -0
- package/dist/components/datagrid/model/GridData.d.ts +193 -0
- package/dist/components/datagrid/model/GridEvents.d.ts +157 -0
- package/dist/components/datagrid/model/GridExport.d.ts +70 -0
- package/dist/components/datagrid/model/GridGroups.d.ts +61 -0
- package/dist/components/datagrid/model/GridModel.d.ts +475 -0
- package/dist/components/datagrid/model/GridNotices.d.ts +22 -0
- package/dist/components/datagrid/model/GridRowsAdapter.d.ts +19 -0
- package/dist/components/datagrid/model/GridSearch.d.ts +68 -0
- package/dist/components/datagrid/model/GridSummaries.d.ts +91 -0
- package/dist/components/datagrid/model/GroupView.d.ts +40 -0
- package/dist/components/datagrid/model/LayoutStore.d.ts +16 -0
- package/dist/components/datagrid/model/LiveOptions.d.ts +15 -0
- package/dist/components/datagrid/model/LookupTexts.d.ts +72 -0
- package/dist/components/datagrid/model/LookupValues.d.ts +23 -0
- package/dist/components/datagrid/model/RowDragOptions.d.ts +28 -0
- package/dist/components/datagrid/model/RowSelection.d.ts +86 -0
- package/dist/components/datagrid/model/ScrollGeometry.d.ts +84 -0
- package/dist/components/datagrid/model/Switches.d.ts +36 -0
- package/dist/components/datagrid/model/ValueIntervals.d.ts +27 -0
- package/dist/components/datagrid/model/ValueListAdapter.d.ts +17 -0
- package/dist/components/datagrid/model/action-entry.d.ts +22 -0
- package/dist/components/datagrid/model/action-target.d.ts +16 -0
- package/dist/components/datagrid/model/adaptive-detail-values.d.ts +11 -0
- package/dist/components/datagrid/model/added-row.d.ts +6 -0
- package/dist/components/datagrid/model/adjustment.d.ts +10 -0
- package/dist/components/datagrid/model/band-node.d.ts +8 -0
- package/dist/components/datagrid/model/builder-fields.d.ts +10 -0
- package/dist/components/datagrid/model/cell-corner.d.ts +8 -0
- package/dist/components/datagrid/model/cell-range-entry.d.ts +7 -0
- package/dist/components/datagrid/model/cell-value.d.ts +3 -0
- package/dist/components/datagrid/model/clipboard-content.d.ts +11 -0
- package/dist/components/datagrid/model/column-feature-names.d.ts +2 -0
- package/dist/components/datagrid/model/column-zone.d.ts +3 -0
- package/dist/components/datagrid/model/data-state.d.ts +11 -0
- package/dist/components/datagrid/model/date-like.d.ts +2 -0
- package/dist/components/datagrid/model/day-condition.d.ts +6 -0
- package/dist/components/datagrid/model/default-settings.d.ts +2 -0
- package/dist/components/datagrid/model/delimited-text.d.ts +4 -0
- package/dist/components/datagrid/model/export-table.d.ts +20 -0
- package/dist/components/datagrid/model/filter-tree-node.d.ts +11 -0
- package/dist/components/datagrid/model/filter-value-state.d.ts +8 -0
- package/dist/components/datagrid/model/formula-guard.d.ts +2 -0
- package/dist/components/datagrid/model/grid-data-options.d.ts +42 -0
- package/dist/components/datagrid/model/grid-state.d.ts +41 -0
- package/dist/components/datagrid/model/group-item-entry.d.ts +11 -0
- package/dist/components/datagrid/model/group-level.d.ts +12 -0
- package/dist/components/datagrid/model/group-node.d.ts +21 -0
- package/dist/components/datagrid/model/group-nodes.d.ts +7 -0
- package/dist/components/datagrid/model/html-table.d.ts +2 -0
- package/dist/components/datagrid/model/list-separator.d.ts +2 -0
- package/dist/components/datagrid/model/lookup-cell.d.ts +7 -0
- package/dist/components/datagrid/model/master-detail-values.d.ts +16 -0
- package/dist/components/datagrid/model/nothing-entered.d.ts +3 -0
- package/dist/components/datagrid/model/option-of.d.ts +6 -0
- package/dist/components/datagrid/model/parse-date-text.d.ts +6 -0
- package/dist/components/datagrid/model/paste-result.d.ts +9 -0
- package/dist/components/datagrid/model/placed-item.d.ts +19 -0
- package/dist/components/datagrid/model/range-box.d.ts +8 -0
- package/dist/components/datagrid/model/range-look.d.ts +18 -0
- package/dist/components/datagrid/model/read-field.d.ts +5 -0
- package/dist/components/datagrid/model/row-dragging-values.d.ts +24 -0
- package/dist/components/datagrid/model/row-run.d.ts +2 -0
- package/dist/components/datagrid/model/row-status.d.ts +2 -0
- package/dist/components/datagrid/model/rows-sorting.d.ts +7 -0
- package/dist/components/datagrid/model/run-panel.d.ts +7 -0
- package/dist/components/datagrid/model/same-value.d.ts +2 -0
- package/dist/components/datagrid/model/sticky-offset.d.ts +8 -0
- package/dist/components/datagrid/model/stored-layout.d.ts +15 -0
- package/dist/components/datagrid/model/summary-part.d.ts +7 -0
- package/dist/components/datagrid/model/text-ranges.d.ts +6 -0
- package/dist/components/datagrid/model/value-list.d.ts +12 -0
- package/dist/components/datagrid/model/value-loader.d.ts +8 -0
- package/dist/components/datagrid/new-row-options.d.ts +8 -0
- package/dist/components/datagrid/row-change.d.ts +7 -0
- package/dist/components/datagrid/row-state.d.ts +17 -0
- package/dist/components/datagrid/selection-mode.d.ts +2 -0
- package/dist/components/datagrid/sticky-side.d.ts +2 -0
- package/dist/components/datagrid/view/ActionWidths.d.ts +23 -0
- package/dist/components/datagrid/view/AdaptiveForm.d.ts +38 -0
- package/dist/components/datagrid/view/BandRows.d.ts +43 -0
- package/dist/components/datagrid/view/BarButtons.d.ts +53 -0
- package/dist/components/datagrid/view/CellEditor.d.ts +83 -0
- package/dist/components/datagrid/view/CellTip.d.ts +24 -0
- package/dist/components/datagrid/view/ColumnMenu.d.ts +59 -0
- package/dist/components/datagrid/view/ColumnStyles.d.ts +31 -0
- package/dist/components/datagrid/view/DetailRow.d.ts +56 -0
- package/dist/components/datagrid/view/DragSelect.d.ts +50 -0
- package/dist/components/datagrid/view/EditForm.d.ts +59 -0
- package/dist/components/datagrid/view/FilterBuilderWindow.d.ts +26 -0
- package/dist/components/datagrid/view/FilterCell.d.ts +42 -0
- package/dist/components/datagrid/view/FilterPanel.d.ts +21 -0
- package/dist/components/datagrid/view/FilterRow.d.ts +29 -0
- package/dist/components/datagrid/view/GridBody.d.ts +216 -0
- package/dist/components/datagrid/view/GridPager.d.ts +69 -0
- package/dist/components/datagrid/view/GridRow.d.ts +95 -0
- package/dist/components/datagrid/view/GridToolbar.d.ts +79 -0
- package/dist/components/datagrid/view/GroupFooterRow.d.ts +32 -0
- package/dist/components/datagrid/view/GroupPanel.d.ts +41 -0
- package/dist/components/datagrid/view/GroupRow.d.ts +62 -0
- package/dist/components/datagrid/view/HeaderFilter.d.ts +55 -0
- package/dist/components/datagrid/view/HeaderRow.d.ts +72 -0
- package/dist/components/datagrid/view/MenuPopup.d.ts +19 -0
- package/dist/components/datagrid/view/RowActions.d.ts +30 -0
- package/dist/components/datagrid/view/RowDrag.d.ts +79 -0
- package/dist/components/datagrid/view/TotalRow.d.ts +28 -0
- package/dist/components/datagrid/view/action-button.d.ts +10 -0
- package/dist/components/datagrid/view/adaptive-form-host.d.ts +8 -0
- package/dist/components/datagrid/view/check-mark.d.ts +4 -0
- package/dist/components/datagrid/view/column-node.d.ts +7 -0
- package/dist/components/datagrid/view/detail-host.d.ts +12 -0
- package/dist/components/datagrid/view/drag-handle.d.ts +2 -0
- package/dist/components/datagrid/view/drag-select-host.d.ts +20 -0
- package/dist/components/datagrid/view/drop-place.d.ts +16 -0
- package/dist/components/datagrid/view/edit-form-host.d.ts +11 -0
- package/dist/components/datagrid/view/editor-host.d.ts +7 -0
- package/dist/components/datagrid/view/editor-kind.d.ts +2 -0
- package/dist/components/datagrid/view/editor-value.d.ts +8 -0
- package/dist/components/datagrid/view/expand-button.d.ts +4 -0
- package/dist/components/datagrid/view/export-command.d.ts +8 -0
- package/dist/components/datagrid/view/export-values.d.ts +7 -0
- package/dist/components/datagrid/view/filter-builder-window-host.d.ts +15 -0
- package/dist/components/datagrid/view/filter-panel-host.d.ts +8 -0
- package/dist/components/datagrid/view/form-values.d.ts +9 -0
- package/dist/components/datagrid/view/ghost-target.d.ts +2 -0
- package/dist/components/datagrid/view/group-panel-host.d.ts +15 -0
- package/dist/components/datagrid/view/header-host.d.ts +24 -0
- package/dist/components/datagrid/view/next-frame.d.ts +4 -0
- package/dist/components/datagrid/view/operator-texts.d.ts +6 -0
- package/dist/components/datagrid/view/pager-host.d.ts +11 -0
- package/dist/components/datagrid/view/place-in-order.d.ts +6 -0
- package/dist/components/datagrid/view/popup-values.d.ts +12 -0
- package/dist/components/datagrid/view/resolved-action.d.ts +16 -0
- package/dist/components/datagrid/view/row-drag-host.d.ts +14 -0
- package/dist/components/datagrid/view/row-drop-place.d.ts +15 -0
- package/dist/components/datagrid/view/row-notices.d.ts +14 -0
- package/dist/components/datagrid/view/summary-cell.d.ts +8 -0
- package/dist/components/datagrid/view/toolbar-host.d.ts +32 -0
- package/dist/components/datagrid/view/toolbar-values.d.ts +7 -0
- package/dist/components/datebox/DateBox.d.ts +77 -0
- package/dist/components/datebox/date-box-props.d.ts +26 -0
- package/dist/components/datebox/index.d.ts +2 -0
- package/dist/components/drawer/Drawer.d.ts +68 -0
- package/dist/components/drawer/drawer-mode.d.ts +2 -0
- package/dist/components/drawer/drawer-props.d.ts +23 -0
- package/dist/components/drawer/drawer-side.d.ts +2 -0
- package/dist/components/drawer/index.d.ts +4 -0
- package/dist/components/dropdown/DropDown.d.ts +96 -0
- package/dist/components/dropdown/drop-down-item.d.ts +10 -0
- package/dist/components/dropdown/drop-down-props.d.ts +36 -0
- package/dist/components/dropdown/index.d.ts +3 -0
- package/dist/components/filterbuilder/FilterBuilder.d.ts +158 -0
- package/dist/components/filterbuilder/FilterBuilderModel.d.ts +79 -0
- package/dist/components/filterbuilder/default-operations.d.ts +4 -0
- package/dist/components/filterbuilder/filter-builder-condition.d.ts +12 -0
- package/dist/components/filterbuilder/filter-builder-custom-operation.d.ts +35 -0
- package/dist/components/filterbuilder/filter-builder-data-type.d.ts +2 -0
- package/dist/components/filterbuilder/filter-builder-editor-context.d.ts +15 -0
- package/dist/components/filterbuilder/filter-builder-editor-prepared-event-args.d.ts +14 -0
- package/dist/components/filterbuilder/filter-builder-editor-preparing-event-args.d.ts +21 -0
- package/dist/components/filterbuilder/filter-builder-field.d.ts +39 -0
- package/dist/components/filterbuilder/filter-builder-group-operation.d.ts +2 -0
- package/dist/components/filterbuilder/filter-builder-group.d.ts +10 -0
- package/dist/components/filterbuilder/filter-builder-item-added-event-args.d.ts +10 -0
- package/dist/components/filterbuilder/filter-builder-item-adding-event-args.d.ts +11 -0
- package/dist/components/filterbuilder/filter-builder-item-change.d.ts +2 -0
- package/dist/components/filterbuilder/filter-builder-item-changed-event-args.d.ts +11 -0
- package/dist/components/filterbuilder/filter-builder-item-changing-event-args.d.ts +13 -0
- package/dist/components/filterbuilder/filter-builder-item-removed-event-args.d.ts +10 -0
- package/dist/components/filterbuilder/filter-builder-item-removing-event-args.d.ts +11 -0
- package/dist/components/filterbuilder/filter-builder-item.d.ts +3 -0
- package/dist/components/filterbuilder/filter-builder-lookup.d.ts +13 -0
- package/dist/components/filterbuilder/filter-builder-model-options.d.ts +14 -0
- package/dist/components/filterbuilder/filter-builder-operation.d.ts +3 -0
- package/dist/components/filterbuilder/filter-builder-props.d.ts +57 -0
- package/dist/components/filterbuilder/filter-builder-value-changed-event-args.d.ts +9 -0
- package/dist/components/filterbuilder/filter-builder-value-info.d.ts +7 -0
- package/dist/components/filterbuilder/filter-text.d.ts +8 -0
- package/dist/components/filterbuilder/index.d.ts +27 -0
- package/dist/components/form/MxForm.d.ts +195 -0
- package/dist/components/form/confirm.d.ts +10 -0
- package/dist/components/form/form-close-reason.d.ts +2 -0
- package/dist/components/form/form-closed-event-args.d.ts +8 -0
- package/dist/components/form/form-closing-event-args.d.ts +10 -0
- package/dist/components/form/form-event-args.d.ts +5 -0
- package/dist/components/form/form-host.d.ts +3 -0
- package/dist/components/form/form-props.d.ts +68 -0
- package/dist/components/form/form-result.d.ts +2 -0
- package/dist/components/form/form-start-position.d.ts +2 -0
- package/dist/components/form/form-window-state.d.ts +1 -0
- package/dist/components/form/index.d.ts +15 -0
- package/dist/components/form/message-box-button.d.ts +10 -0
- package/dist/components/form/message-box-options.d.ts +18 -0
- package/dist/components/form/message-box-tone.d.ts +2 -0
- package/dist/components/form/message-box.d.ts +10 -0
- package/dist/components/formlayout/FormLayout.d.ts +78 -0
- package/dist/components/formlayout/form-editor-factory.d.ts +3 -0
- package/dist/components/formlayout/form-editor-type.d.ts +2 -0
- package/dist/components/formlayout/form-item.d.ts +44 -0
- package/dist/components/formlayout/form-layout-props.d.ts +31 -0
- package/dist/components/formlayout/form-tab.d.ts +9 -0
- package/dist/components/formlayout/form-template-context.d.ts +9 -0
- package/dist/components/formlayout/index.d.ts +7 -0
- package/dist/components/layout/ChildSettings.d.ts +41 -0
- package/dist/components/layout/DockPanel.d.ts +42 -0
- package/dist/components/layout/Grid.d.ts +57 -0
- package/dist/components/layout/GroupBox.d.ts +54 -0
- package/dist/components/layout/Panel.d.ts +28 -0
- package/dist/components/layout/SplitContainer.d.ts +86 -0
- package/dist/components/layout/Stack.d.ts +45 -0
- package/dist/components/layout/dock-child-props.d.ts +16 -0
- package/dist/components/layout/dock-panel-props.d.ts +10 -0
- package/dist/components/layout/dock.d.ts +6 -0
- package/dist/components/layout/grid-cell.d.ts +11 -0
- package/dist/components/layout/grid-flow.d.ts +2 -0
- package/dist/components/layout/grid-justify.d.ts +2 -0
- package/dist/components/layout/grid-props.d.ts +34 -0
- package/dist/components/layout/grid-tracks.d.ts +5 -0
- package/dist/components/layout/group-box-props.d.ts +22 -0
- package/dist/components/layout/group-box-toggled-event-args.d.ts +7 -0
- package/dist/components/layout/group-box-variant.d.ts +2 -0
- package/dist/components/layout/index.d.ts +33 -0
- package/dist/components/layout/layout-align.d.ts +2 -0
- package/dist/components/layout/layout-orientation.d.ts +2 -0
- package/dist/components/layout/layout-space.d.ts +5 -0
- package/dist/components/layout/panel-props.d.ts +17 -0
- package/dist/components/layout/panel-scroll.d.ts +2 -0
- package/dist/components/layout/panel-variant.d.ts +2 -0
- package/dist/components/layout/set-padding.d.ts +6 -0
- package/dist/components/layout/set-space.d.ts +3 -0
- package/dist/components/layout/space-value.d.ts +3 -0
- package/dist/components/layout/split-container-props.d.ts +34 -0
- package/dist/components/layout/split-panel.d.ts +2 -0
- package/dist/components/layout/split-position.d.ts +2 -0
- package/dist/components/layout/splitter-moved-event-args.d.ts +10 -0
- package/dist/components/layout/stack-child-props.d.ts +6 -0
- package/dist/components/layout/stack-justify.d.ts +2 -0
- package/dist/components/layout/stack-props.d.ts +25 -0
- package/dist/components/layout/track-list.d.ts +3 -0
- package/dist/components/listbox/ListBox.d.ts +112 -0
- package/dist/components/listbox/all-values.d.ts +7 -0
- package/dist/components/listbox/index.d.ts +4 -0
- package/dist/components/listbox/item-template.d.ts +2 -0
- package/dist/components/listbox/list-box-props.d.ts +38 -0
- package/dist/components/listbox/list-rows.d.ts +12 -0
- package/dist/components/listbox/list-selection-mode.d.ts +2 -0
- package/dist/components/listbox/select-all-row.d.ts +5 -0
- package/dist/components/listbox/select-all-state.d.ts +3 -0
- package/dist/components/listbox/value-items.d.ts +21 -0
- package/dist/components/lookup/Lookup.d.ts +33 -0
- package/dist/components/lookup/index.d.ts +3 -0
- package/dist/components/lookup/lookup-column.d.ts +11 -0
- package/dist/components/lookup/lookup-props.d.ts +12 -0
- package/dist/components/menubar/MenuBar.d.ts +59 -0
- package/dist/components/menubar/index.d.ts +2 -0
- package/dist/components/menubar/menu-bar-props.d.ts +17 -0
- package/dist/components/numberbox/NumberBox.d.ts +115 -0
- package/dist/components/numberbox/decimal-math.d.ts +7 -0
- package/dist/components/numberbox/index.d.ts +3 -0
- package/dist/components/numberbox/number-box-props.d.ts +44 -0
- package/dist/components/numberbox/number-text.d.ts +12 -0
- package/dist/components/numberbox/spin-layout.d.ts +2 -0
- package/dist/components/pagination/Pagination.d.ts +92 -0
- package/dist/components/pagination/index.d.ts +4 -0
- package/dist/components/pagination/page-changed-event-args.d.ts +10 -0
- package/dist/components/pagination/pagination-mode.d.ts +2 -0
- package/dist/components/pagination/pagination-props.d.ts +32 -0
- package/dist/components/progress/ProgressBar.d.ts +67 -0
- package/dist/components/progress/ProgressWave.d.ts +53 -0
- package/dist/components/progress/Spinner.d.ts +50 -0
- package/dist/components/progress/index.d.ts +8 -0
- package/dist/components/progress/progress-bar-props.d.ts +33 -0
- package/dist/components/progress/progress-label-position.d.ts +2 -0
- package/dist/components/progress/progress-shape.d.ts +2 -0
- package/dist/components/progress/progress-tone.d.ts +2 -0
- package/dist/components/progress/spinner-label-position.d.ts +2 -0
- package/dist/components/progress/spinner-props.d.ts +20 -0
- package/dist/components/progress/wave-geometry.d.ts +19 -0
- package/dist/components/radiogroup/RadioGroup.d.ts +73 -0
- package/dist/components/radiogroup/index.d.ts +4 -0
- package/dist/components/radiogroup/radio-group-orientation.d.ts +2 -0
- package/dist/components/radiogroup/radio-group-props.d.ts +20 -0
- package/dist/components/radiogroup/radio-item.d.ts +15 -0
- package/dist/components/rating/Rating.d.ts +52 -0
- package/dist/components/rating/index.d.ts +3 -0
- package/dist/components/rating/rating-props.d.ts +20 -0
- package/dist/components/rating/rating-tone.d.ts +2 -0
- package/dist/components/scheduler/AppointmentEditor.d.ts +232 -0
- package/dist/components/scheduler/RecurrenceEditor.d.ts +66 -0
- package/dist/components/scheduler/Scheduler.d.ts +515 -0
- package/dist/components/scheduler/agenda-row-context.d.ts +15 -0
- package/dist/components/scheduler/appointment-added-event-args.d.ts +7 -0
- package/dist/components/scheduler/appointment-adding-event-args.d.ts +10 -0
- package/dist/components/scheduler/appointment-click-event-args.d.ts +13 -0
- package/dist/components/scheduler/appointment-deleted-event-args.d.ts +9 -0
- package/dist/components/scheduler/appointment-deleting-event-args.d.ts +13 -0
- package/dist/components/scheduler/appointment-form-context.d.ts +11 -0
- package/dist/components/scheduler/appointment-form-data.d.ts +10 -0
- package/dist/components/scheduler/appointment-template-context.d.ts +15 -0
- package/dist/components/scheduler/appointment-updated-event-args.d.ts +12 -0
- package/dist/components/scheduler/appointment-updating-event-args.d.ts +15 -0
- package/dist/components/scheduler/cell-click-event-args.d.ts +9 -0
- package/dist/components/scheduler/cell-template-context.d.ts +16 -0
- package/dist/components/scheduler/content-ready-event-args.d.ts +9 -0
- package/dist/components/scheduler/data-error-event-args.d.ts +16 -0
- package/dist/components/scheduler/date-changed-event-args.d.ts +10 -0
- package/dist/components/scheduler/date-changing-event-args.d.ts +9 -0
- package/dist/components/scheduler/date-template-context.d.ts +13 -0
- package/dist/components/scheduler/drag-event-args.d.ts +21 -0
- package/dist/components/scheduler/form-bind.d.ts +4 -0
- package/dist/components/scheduler/form-items.d.ts +10 -0
- package/dist/components/scheduler/form-opening-event-args.d.ts +20 -0
- package/dist/components/scheduler/icalendar-export-options.d.ts +10 -0
- package/dist/components/scheduler/icalendar-exported-event-args.d.ts +6 -0
- package/dist/components/scheduler/icalendar-exporting-event-args.d.ts +10 -0
- package/dist/components/scheduler/icalendar-import-result.d.ts +6 -0
- package/dist/components/scheduler/icalendar-imported-event-args.d.ts +5 -0
- package/dist/components/scheduler/icalendar-importing-event-args.d.ts +8 -0
- package/dist/components/scheduler/index.d.ts +73 -0
- package/dist/components/scheduler/model/AppointmentStore.d.ts +27 -0
- package/dist/components/scheduler/model/ICalendarBridge.d.ts +44 -0
- package/dist/components/scheduler/model/Occurrences.d.ts +39 -0
- package/dist/components/scheduler/model/RecurrenceDraft.d.ts +56 -0
- package/dist/components/scheduler/model/ResourceKind.d.ts +35 -0
- package/dist/components/scheduler/model/Resources.d.ts +53 -0
- package/dist/components/scheduler/model/SchedulerModel.d.ts +377 -0
- package/dist/components/scheduler/model/SeriesEdit.d.ts +49 -0
- package/dist/components/scheduler/model/SeriesWriter.d.ts +18 -0
- package/dist/components/scheduler/model/agenda-day.d.ts +14 -0
- package/dist/components/scheduler/model/agenda-piece.d.ts +21 -0
- package/dist/components/scheduler/model/any-piece.d.ts +6 -0
- package/dist/components/scheduler/model/blocked-spans.d.ts +14 -0
- package/dist/components/scheduler/model/cell-place.d.ts +5 -0
- package/dist/components/scheduler/model/column-edge.d.ts +2 -0
- package/dist/components/scheduler/model/day-block.d.ts +6 -0
- package/dist/components/scheduler/model/draft.d.ts +15 -0
- package/dist/components/scheduler/model/group-resource.d.ts +8 -0
- package/dist/components/scheduler/model/header-cell.d.ts +16 -0
- package/dist/components/scheduler/model/header-row.d.ts +8 -0
- package/dist/components/scheduler/model/line-piece.d.ts +29 -0
- package/dist/components/scheduler/model/make-groups.d.ts +14 -0
- package/dist/components/scheduler/model/occurrence-info.d.ts +8 -0
- package/dist/components/scheduler/model/overlap-mode.d.ts +2 -0
- package/dist/components/scheduler/model/place-lanes.d.ts +10 -0
- package/dist/components/scheduler/model/place-stack.d.ts +17 -0
- package/dist/components/scheduler/model/place-timed.d.ts +18 -0
- package/dist/components/scheduler/model/range-filter-options.d.ts +8 -0
- package/dist/components/scheduler/model/range-filter.d.ts +13 -0
- package/dist/components/scheduler/model/resolved-view.d.ts +23 -0
- package/dist/components/scheduler/model/resource-entry.d.ts +5 -0
- package/dist/components/scheduler/model/same-value.d.ts +2 -0
- package/dist/components/scheduler/model/scale-cell.d.ts +14 -0
- package/dist/components/scheduler/model/scheduler-column.d.ts +21 -0
- package/dist/components/scheduler/model/scheduler-day.d.ts +21 -0
- package/dist/components/scheduler/model/scheduler-group.d.ts +14 -0
- package/dist/components/scheduler/model/scrolling-mode.d.ts +5 -0
- package/dist/components/scheduler/model/series-plan.d.ts +9 -0
- package/dist/components/scheduler/model/series-run.d.ts +14 -0
- package/dist/components/scheduler/model/series-scope.d.ts +2 -0
- package/dist/components/scheduler/model/series-write.d.ts +8 -0
- package/dist/components/scheduler/model/strip-piece.d.ts +29 -0
- package/dist/components/scheduler/model/strip-row.d.ts +17 -0
- package/dist/components/scheduler/model/time-slot.d.ts +8 -0
- package/dist/components/scheduler/model/time-tick.d.ts +14 -0
- package/dist/components/scheduler/model/timed-piece.d.ts +31 -0
- package/dist/components/scheduler/model/timeline-row.d.ts +27 -0
- package/dist/components/scheduler/model/to-date.d.ts +2 -0
- package/dist/components/scheduler/model/view-dates.d.ts +7 -0
- package/dist/components/scheduler/model/view-kind.d.ts +6 -0
- package/dist/components/scheduler/more-list-context.d.ts +7 -0
- package/dist/components/scheduler/more-opening-event-args.d.ts +8 -0
- package/dist/components/scheduler/presentation-changed-event-args.d.ts +8 -0
- package/dist/components/scheduler/presentation-changing-event-args.d.ts +11 -0
- package/dist/components/scheduler/printed-event-args.d.ts +5 -0
- package/dist/components/scheduler/printing-event-args.d.ts +6 -0
- package/dist/components/scheduler/recurrence-editor-props.d.ts +30 -0
- package/dist/components/scheduler/resource-header-context.d.ts +17 -0
- package/dist/components/scheduler/scheduler-blocked-time.d.ts +16 -0
- package/dist/components/scheduler/scheduler-cell.d.ts +9 -0
- package/dist/components/scheduler/scheduler-editing.d.ts +24 -0
- package/dist/components/scheduler/scheduler-fields.d.ts +39 -0
- package/dist/components/scheduler/scheduler-form-item.d.ts +27 -0
- package/dist/components/scheduler/scheduler-form-tab.d.ts +9 -0
- package/dist/components/scheduler/scheduler-form.d.ts +26 -0
- package/dist/components/scheduler/scheduler-keys.d.ts +22 -0
- package/dist/components/scheduler/scheduler-presentation-kind.d.ts +2 -0
- package/dist/components/scheduler/scheduler-presentation.d.ts +2 -0
- package/dist/components/scheduler/scheduler-props.d.ts +210 -0
- package/dist/components/scheduler/scheduler-range.d.ts +5 -0
- package/dist/components/scheduler/scheduler-resource.d.ts +33 -0
- package/dist/components/scheduler/scheduler-tablet-when.d.ts +2 -0
- package/dist/components/scheduler/scheduler-templates.d.ts +34 -0
- package/dist/components/scheduler/scheduler-time-check.d.ts +19 -0
- package/dist/components/scheduler/scheduler-view-type.d.ts +6 -0
- package/dist/components/scheduler/scheduler-view.d.ts +33 -0
- package/dist/components/scheduler/selection-changed-event-args.d.ts +7 -0
- package/dist/components/scheduler/series-action.d.ts +2 -0
- package/dist/components/scheduler/series-answered-event-args.d.ts +12 -0
- package/dist/components/scheduler/series-asking-event-args.d.ts +18 -0
- package/dist/components/scheduler/series-edit-mode.d.ts +3 -0
- package/dist/components/scheduler/time-template-context.d.ts +11 -0
- package/dist/components/scheduler/time-zoom-changed-event-args.d.ts +7 -0
- package/dist/components/scheduler/time-zoom-changing-event-args.d.ts +8 -0
- package/dist/components/scheduler/tooltip-template-context.d.ts +14 -0
- package/dist/components/scheduler/view/AgendaView.d.ts +50 -0
- package/dist/components/scheduler/view/AppointmentBox.d.ts +58 -0
- package/dist/components/scheduler/view/AppointmentDrag.d.ts +66 -0
- package/dist/components/scheduler/view/AppointmentTooltip.d.ts +40 -0
- package/dist/components/scheduler/view/CellAttributes.d.ts +8 -0
- package/dist/components/scheduler/view/CellWriter.d.ts +35 -0
- package/dist/components/scheduler/view/GroupHeads.d.ts +32 -0
- package/dist/components/scheduler/view/KeyedParts.d.ts +27 -0
- package/dist/components/scheduler/view/MonthView.d.ts +58 -0
- package/dist/components/scheduler/view/MoreList.d.ts +32 -0
- package/dist/components/scheduler/view/SchedulerFormat.d.ts +43 -0
- package/dist/components/scheduler/view/SchedulerTouch.d.ts +38 -0
- package/dist/components/scheduler/view/TimeView.d.ts +101 -0
- package/dist/components/scheduler/view/TimelineLine.d.ts +77 -0
- package/dist/components/scheduler/view/TimelineScale.d.ts +22 -0
- package/dist/components/scheduler/view/TimelineScaleCell.d.ts +37 -0
- package/dist/components/scheduler/view/TimelineView.d.ts +72 -0
- package/dist/components/scheduler/view/ask-series-scope.d.ts +21 -0
- package/dist/components/scheduler/view/cell-spot.d.ts +8 -0
- package/dist/components/scheduler/view/cell-words.d.ts +7 -0
- package/dist/components/scheduler/view/scheduler-host.d.ts +87 -0
- package/dist/components/scheduler/view/timeline-scroll.d.ts +7 -0
- package/dist/components/scheduler/view/touch-host.d.ts +21 -0
- package/dist/components/scheduler/view-changed-event-args.d.ts +7 -0
- package/dist/components/scheduler/view-changing-event-args.d.ts +9 -0
- package/dist/components/sheet/BottomSheet.d.ts +82 -0
- package/dist/components/sheet/bottom-sheet-detent.d.ts +6 -0
- package/dist/components/sheet/bottom-sheet-props.d.ts +27 -0
- package/dist/components/sheet/detent-changed-event-args.d.ts +8 -0
- package/dist/components/sheet/detent-changing-event-args.d.ts +11 -0
- package/dist/components/sheet/index.d.ts +5 -0
- package/dist/components/skeleton/Skeleton.d.ts +45 -0
- package/dist/components/skeleton/index.d.ts +4 -0
- package/dist/components/skeleton/skeleton-animation.d.ts +2 -0
- package/dist/components/skeleton/skeleton-props.d.ts +21 -0
- package/dist/components/skeleton/skeleton-shape.d.ts +2 -0
- package/dist/components/slider/Slider.d.ts +114 -0
- package/dist/components/slider/index.d.ts +5 -0
- package/dist/components/slider/slider-orientation.d.ts +2 -0
- package/dist/components/slider/slider-props.d.ts +40 -0
- package/dist/components/slider/slider-show-value.d.ts +2 -0
- package/dist/components/slider/slider-value.d.ts +2 -0
- package/dist/components/switch/Switch.d.ts +32 -0
- package/dist/components/switch/index.d.ts +3 -0
- package/dist/components/switch/switch-props.d.ts +12 -0
- package/dist/components/switch/switch-state-text.d.ts +2 -0
- package/dist/components/tabdocs/AutoHideStrip.d.ts +31 -0
- package/dist/components/tabdocs/DockDropTarget.d.ts +34 -0
- package/dist/components/tabdocs/DockGuides.d.ts +35 -0
- package/dist/components/tabdocs/DocumentList.d.ts +76 -0
- package/dist/components/tabdocs/DocumentTab.d.ts +66 -0
- package/dist/components/tabdocs/DropMarks.d.ts +16 -0
- package/dist/components/tabdocs/LayoutDropTarget.d.ts +39 -0
- package/dist/components/tabdocs/MoveByKeys.d.ts +31 -0
- package/dist/components/tabdocs/NewWindowDropTarget.d.ts +19 -0
- package/dist/components/tabdocs/PhoneBar.d.ts +33 -0
- package/dist/components/tabdocs/PhoneList.d.ts +54 -0
- package/dist/components/tabdocs/PhoneTools.d.ts +20 -0
- package/dist/components/tabdocs/SplitSash.d.ts +23 -0
- package/dist/components/tabdocs/TabBarSettings.d.ts +35 -0
- package/dist/components/tabdocs/TabBrowserWindow.d.ts +60 -0
- package/dist/components/tabdocs/TabDockArea.d.ts +91 -0
- package/dist/components/tabdocs/TabDocument.d.ts +129 -0
- package/dist/components/tabdocs/TabDocumentManager.d.ts +1073 -0
- package/dist/components/tabdocs/TabDrag.d.ts +76 -0
- package/dist/components/tabdocs/TabGroup.d.ts +156 -0
- package/dist/components/tabdocs/TabMenus.d.ts +34 -0
- package/dist/components/tabdocs/TabPresenter.d.ts +105 -0
- package/dist/components/tabdocs/TabSplit.d.ts +40 -0
- package/dist/components/tabdocs/TabWindow.d.ts +82 -0
- package/dist/components/tabdocs/WindowByKeys.d.ts +18 -0
- package/dist/components/tabdocs/content-lifetime.d.ts +6 -0
- package/dist/components/tabdocs/dock-guide-hit.d.ts +10 -0
- package/dist/components/tabdocs/document-activated-event-args.d.ts +11 -0
- package/dist/components/tabdocs/document-activating-event-args.d.ts +12 -0
- package/dist/components/tabdocs/document-changed-event-args.d.ts +10 -0
- package/dist/components/tabdocs/document-changing-event-args.d.ts +11 -0
- package/dist/components/tabdocs/document-closed-event-args.d.ts +10 -0
- package/dist/components/tabdocs/document-closing-event-args.d.ts +18 -0
- package/dist/components/tabdocs/document-moved-event-args.d.ts +12 -0
- package/dist/components/tabdocs/document-moving-event-args.d.ts +14 -0
- package/dist/components/tabdocs/document-opened-event-args.d.ts +10 -0
- package/dist/components/tabdocs/document-opening-event-args.d.ts +13 -0
- package/dist/components/tabdocs/document-showing-event-args.d.ts +19 -0
- package/dist/components/tabdocs/document-shown-event-args.d.ts +11 -0
- package/dist/components/tabdocs/group-locked-event-args.d.ts +8 -0
- package/dist/components/tabdocs/group-locking-event-args.d.ts +9 -0
- package/dist/components/tabdocs/group-split-event-args.d.ts +15 -0
- package/dist/components/tabdocs/group-splitting-event-args.d.ts +17 -0
- package/dist/components/tabdocs/index.d.ts +102 -0
- package/dist/components/tabdocs/keep-scroll.d.ts +6 -0
- package/dist/components/tabdocs/layout-changed-event-args.d.ts +17 -0
- package/dist/components/tabdocs/layout-changing-event-args.d.ts +19 -0
- package/dist/components/tabdocs/layout-item.d.ts +4 -0
- package/dist/components/tabdocs/pinned-tab-size.d.ts +2 -0
- package/dist/components/tabdocs/place-node.d.ts +6 -0
- package/dist/components/tabdocs/presentation-changed-event-args.d.ts +8 -0
- package/dist/components/tabdocs/presentation-changing-event-args.d.ts +11 -0
- package/dist/components/tabdocs/sash-owner.d.ts +15 -0
- package/dist/components/tabdocs/screen-offsets.d.ts +9 -0
- package/dist/components/tabdocs/split-direction.d.ts +2 -0
- package/dist/components/tabdocs/tab-after-close.d.ts +2 -0
- package/dist/components/tabdocs/tab-auto-hidden-event-args.d.ts +9 -0
- package/dist/components/tabdocs/tab-auto-hiding-event-args.d.ts +10 -0
- package/dist/components/tabdocs/tab-bar-button-size.d.ts +2 -0
- package/dist/components/tabdocs/tab-bar-button.d.ts +2 -0
- package/dist/components/tabdocs/tab-close-button.d.ts +2 -0
- package/dist/components/tabdocs/tab-content-clone.d.ts +4 -0
- package/dist/components/tabdocs/tab-content-factory.d.ts +4 -0
- package/dist/components/tabdocs/tab-context-menu-event-args.d.ts +16 -0
- package/dist/components/tabdocs/tab-copy-modifier.d.ts +2 -0
- package/dist/components/tabdocs/tab-dock-guide-kind.d.ts +2 -0
- package/dist/components/tabdocs/tab-dock-presentation.d.ts +5 -0
- package/dist/components/tabdocs/tab-dock-side.d.ts +2 -0
- package/dist/components/tabdocs/tab-docked-event-args.d.ts +16 -0
- package/dist/components/tabdocs/tab-docking-event-args.d.ts +21 -0
- package/dist/components/tabdocs/tab-document-content.d.ts +4 -0
- package/dist/components/tabdocs/tab-document-keys.d.ts +105 -0
- package/dist/components/tabdocs/tab-document-manager-props.d.ts +351 -0
- package/dist/components/tabdocs/tab-document-options.d.ts +57 -0
- package/dist/components/tabdocs/tab-drag-ended-event-args.d.ts +11 -0
- package/dist/components/tabdocs/tab-drag-starting-event-args.d.ts +14 -0
- package/dist/components/tabdocs/tab-drag-subject.d.ts +16 -0
- package/dist/components/tabdocs/tab-drop-event-args.d.ts +20 -0
- package/dist/components/tabdocs/tab-drop-marks.d.ts +5 -0
- package/dist/components/tabdocs/tab-drop-place.d.ts +25 -0
- package/dist/components/tabdocs/tab-drop-side.d.ts +2 -0
- package/dist/components/tabdocs/tab-drop-target-kind.d.ts +10 -0
- package/dist/components/tabdocs/tab-drop-target.d.ts +23 -0
- package/dist/components/tabdocs/tab-dropped-event-args.d.ts +13 -0
- package/dist/components/tabdocs/tab-error-event-args.d.ts +17 -0
- package/dist/components/tabdocs/tab-floated-event-args.d.ts +13 -0
- package/dist/components/tabdocs/tab-floating-event-args.d.ts +16 -0
- package/dist/components/tabdocs/tab-key-preset.d.ts +6 -0
- package/dist/components/tabdocs/tab-keys.d.ts +12 -0
- package/dist/components/tabdocs/tab-layout-area.d.ts +13 -0
- package/dist/components/tabdocs/tab-layout-bar.d.ts +12 -0
- package/dist/components/tabdocs/tab-layout-browser-window.d.ts +10 -0
- package/dist/components/tabdocs/tab-layout-change.d.ts +2 -0
- package/dist/components/tabdocs/tab-layout-document.d.ts +9 -0
- package/dist/components/tabdocs/tab-layout-factory.d.ts +9 -0
- package/dist/components/tabdocs/tab-layout-group.d.ts +16 -0
- package/dist/components/tabdocs/tab-layout-hidden.d.ts +16 -0
- package/dist/components/tabdocs/tab-layout-node.d.ts +3 -0
- package/dist/components/tabdocs/tab-layout-split.d.ts +10 -0
- package/dist/components/tabdocs/tab-layout-window.d.ts +17 -0
- package/dist/components/tabdocs/tab-layout.d.ts +23 -0
- package/dist/components/tabdocs/tab-list-scope.d.ts +2 -0
- package/dist/components/tabdocs/tab-menu-command.d.ts +2 -0
- package/dist/components/tabdocs/tab-narrow-bars.d.ts +2 -0
- package/dist/components/tabdocs/tab-new-document.d.ts +5 -0
- package/dist/components/tabdocs/tab-new-window-close-action.d.ts +2 -0
- package/dist/components/tabdocs/tab-new-window-fallback.d.ts +2 -0
- package/dist/components/tabdocs/tab-new-window-options.d.ts +8 -0
- package/dist/components/tabdocs/tab-new-window-title.d.ts +7 -0
- package/dist/components/tabdocs/tab-open-options.d.ts +16 -0
- package/dist/components/tabdocs/tab-open-position.d.ts +2 -0
- package/dist/components/tabdocs/tab-open-window.d.ts +7 -0
- package/dist/components/tabdocs/tab-presentation-kind.d.ts +2 -0
- package/dist/components/tabdocs/tab-presentation.d.ts +2 -0
- package/dist/components/tabdocs/tab-rect.d.ts +7 -0
- package/dist/components/tabdocs/tab-restore-windows.d.ts +7 -0
- package/dist/components/tabdocs/tab-show-description.d.ts +2 -0
- package/dist/components/tabdocs/tab-show-options.d.ts +15 -0
- package/dist/components/tabdocs/tab-size.d.ts +2 -0
- package/dist/components/tabdocs/tab-slide-event-args.d.ts +16 -0
- package/dist/components/tabdocs/tab-tablet-when.d.ts +2 -0
- package/dist/components/tabdocs/tab-tone.d.ts +2 -0
- package/dist/components/tabdocs/tab-toolbar-items.d.ts +4 -0
- package/dist/components/tabdocs/tab-window-closed-event-args.d.ts +14 -0
- package/dist/components/tabdocs/tab-window-closing-event-args.d.ts +18 -0
- package/dist/components/tabdocs/tab-window-opened-event-args.d.ts +14 -0
- package/dist/components/tabdocs/tab-window-opening-event-args.d.ts +21 -0
- package/dist/components/tabdocs/tab-window-request.d.ts +11 -0
- package/dist/components/tabs/PanelContent.d.ts +20 -0
- package/dist/components/tabs/Tab.d.ts +71 -0
- package/dist/components/tabs/Tabs.d.ts +126 -0
- package/dist/components/tabs/index.d.ts +11 -0
- package/dist/components/tabs/tab-close-event-args.d.ts +11 -0
- package/dist/components/tabs/tab-props.d.ts +27 -0
- package/dist/components/tabs/tab-selecting-event-args.d.ts +12 -0
- package/dist/components/tabs/tab-selection-changed-event-args.d.ts +13 -0
- package/dist/components/tabs/tabs-activation.d.ts +2 -0
- package/dist/components/tabs/tabs-placement.d.ts +2 -0
- package/dist/components/tabs/tabs-props.d.ts +41 -0
- package/dist/components/tabs/tabs-variant.d.ts +2 -0
- package/dist/components/tagbox/TagBox.d.ts +140 -0
- package/dist/components/tagbox/index.d.ts +2 -0
- package/dist/components/tagbox/tag-box-props.d.ts +56 -0
- package/dist/components/textarea/TextArea.d.ts +76 -0
- package/dist/components/textarea/index.d.ts +3 -0
- package/dist/components/textarea/text-area-props.d.ts +36 -0
- package/dist/components/textarea/text-area-resize.d.ts +2 -0
- package/dist/components/textbox/TextBox.d.ts +89 -0
- package/dist/components/textbox/text-box-props.d.ts +41 -0
- package/dist/components/textbox/text-box-type.d.ts +1 -0
- package/dist/components/toast/Toast.d.ts +63 -0
- package/dist/components/toast/Toaster.d.ts +68 -0
- package/dist/components/toast/index.d.ts +9 -0
- package/dist/components/toast/show-toast.d.ts +20 -0
- package/dist/components/toast/toast-action.d.ts +7 -0
- package/dist/components/toast/toast-close-reason.d.ts +2 -0
- package/dist/components/toast/toast-position.d.ts +2 -0
- package/dist/components/toast/toast-props.d.ts +28 -0
- package/dist/components/toast/toast-tone.d.ts +2 -0
- package/dist/components/toast/toaster-props.d.ts +17 -0
- package/dist/components/toolbar/Toolbar.d.ts +93 -0
- package/dist/components/toolbar/ToolbarSeparator.d.ts +6 -0
- package/dist/components/toolbar/index.d.ts +9 -0
- package/dist/components/toolbar/toolbar-item-click-event-args.d.ts +9 -0
- package/dist/components/toolbar/toolbar-item-overflow.d.ts +2 -0
- package/dist/components/toolbar/toolbar-item-type.d.ts +2 -0
- package/dist/components/toolbar/toolbar-item.d.ts +36 -0
- package/dist/components/toolbar/toolbar-orientation.d.ts +2 -0
- package/dist/components/toolbar/toolbar-overflow.d.ts +2 -0
- package/dist/components/toolbar/toolbar-props.d.ts +25 -0
- package/dist/components/tooltip/Tooltip.d.ts +57 -0
- package/dist/components/tooltip/add-tooltip.d.ts +11 -0
- package/dist/components/tooltip/index.d.ts +5 -0
- package/dist/components/tooltip/tooltip-hub.d.ts +12 -0
- package/dist/components/tooltip/tooltip-props.d.ts +25 -0
- package/dist/components/tooltip/tooltip-show-on.d.ts +2 -0
- package/dist/components/tooltip/tooltip-target.d.ts +3 -0
- package/dist/components/treeview/TreeModel.d.ts +43 -0
- package/dist/components/treeview/TreeView.d.ts +218 -0
- package/dist/components/treeview/index.d.ts +16 -0
- package/dist/components/treeview/tree-check-state.d.ts +2 -0
- package/dist/components/treeview/tree-fields.d.ts +7 -0
- package/dist/components/treeview/tree-node.d.ts +12 -0
- package/dist/components/treeview/tree-row.d.ts +9 -0
- package/dist/components/treeview/tree-view-check-changed-event-args.d.ts +13 -0
- package/dist/components/treeview/tree-view-expand-on.d.ts +2 -0
- package/dist/components/treeview/tree-view-expanded-event-args.d.ts +8 -0
- package/dist/components/treeview/tree-view-expanding-event-args.d.ts +11 -0
- package/dist/components/treeview/tree-view-item-click-event-args.d.ts +8 -0
- package/dist/components/treeview/tree-view-item-template.d.ts +2 -0
- package/dist/components/treeview/tree-view-load-children.d.ts +2 -0
- package/dist/components/treeview/tree-view-props.d.ts +75 -0
- package/dist/components/treeview/tree-view-selection-changed-event-args.d.ts +10 -0
- package/dist/components/treeview/tree-view-selection-mode.d.ts +2 -0
- package/dist/core/UiLocale.d.ts +52 -0
- package/dist/core/access-key.d.ts +32 -0
- package/dist/core/after-press.d.ts +5 -0
- package/dist/core/back-button.d.ts +15 -0
- package/dist/core/connect-i18n.d.ts +11 -0
- package/dist/core/container.d.ts +52 -0
- package/dist/core/control-map.d.ts +7 -0
- package/dist/core/control-size.d.ts +2 -0
- package/dist/core/control.d.ts +156 -0
- package/dist/core/document-watch.d.ts +10 -0
- package/dist/core/draw-parts.d.ts +36 -0
- package/dist/core/enable.d.ts +16 -0
- package/dist/core/every.d.ts +5 -0
- package/dist/core/fill-template.d.ts +2 -0
- package/dist/core/fill-text.d.ts +6 -0
- package/dist/core/focus-guard.d.ts +2 -0
- package/dist/core/focus.d.ts +32 -0
- package/dist/core/follow.d.ts +7 -0
- package/dist/core/function-value.d.ts +6 -0
- package/dist/core/given-field.d.ts +12 -0
- package/dist/core/glyphs.d.ts +67 -0
- package/dist/core/icon-node.d.ts +10 -0
- package/dist/core/icon-source.d.ts +3 -0
- package/dist/core/input-mode.d.ts +2 -0
- package/dist/core/keyboard.d.ts +55 -0
- package/dist/core/language-look.d.ts +18 -0
- package/dist/core/later.d.ts +4 -0
- package/dist/core/locale-source.d.ts +9 -0
- package/dist/core/look-watch.d.ts +2 -0
- package/dist/core/mirror-page.d.ts +9 -0
- package/dist/core/next-frame.d.ts +6 -0
- package/dist/core/next-id.d.ts +1 -0
- package/dist/core/node-kind.d.ts +10 -0
- package/dist/core/on-language.d.ts +9 -0
- package/dist/core/on-re-state.d.ts +6 -0
- package/dist/core/page-documents.d.ts +21 -0
- package/dist/core/platform.d.ts +2 -0
- package/dist/core/press-origin.d.ts +2 -0
- package/dist/core/prop-binding.d.ts +25 -0
- package/dist/core/resize-watch.d.ts +21 -0
- package/dist/core/ui-locale-changed-event-args.d.ts +5 -0
- package/dist/core/ui-locale.d.ts +13 -0
- package/dist/core/ui-pack-module.d.ts +5 -0
- package/dist/core/ui-pack.d.ts +3 -0
- package/dist/core/ui-strings.d.ts +573 -0
- package/dist/core/window-stack.d.ts +21 -0
- package/dist/defineProperty-C0rC37pP.js +39 -0
- package/dist/excel/cell-range.d.ts +11 -0
- package/dist/excel/date-format.d.ts +6 -0
- package/dist/excel/excel-customize-cell-args.d.ts +8 -0
- package/dist/excel/excel-export-options.d.ts +50 -0
- package/dist/excel/export-data-grid.d.ts +21 -0
- package/dist/excel/index.d.ts +6 -0
- package/dist/excel/index.js +244 -0
- package/dist/excel/index.js.map +1 -0
- package/dist/excel/number-format.d.ts +6 -0
- package/dist/formula-guard-NYlpoA-t.js +10 -0
- package/dist/formula-guard-NYlpoA-t.js.map +1 -0
- package/dist/generated/tokens.d.ts +17580 -0
- package/dist/index.d.ts +157 -0
- package/dist/index.js +79642 -0
- package/dist/index.js.map +1 -0
- package/dist/locales/en.json +556 -0
- package/dist/locales/tr.json +556 -0
- package/dist/parts/color/color-hsva.d.ts +7 -0
- package/dist/parts/color/color-rgba.d.ts +7 -0
- package/dist/parts/color/colors.d.ts +11 -0
- package/dist/parts/data/DataItems.d.ts +50 -0
- package/dist/parts/data/KeyedItems.d.ts +91 -0
- package/dist/parts/data/keyed-item.d.ts +9 -0
- package/dist/parts/data/text-search.d.ts +12 -0
- package/dist/parts/dates/add-days.d.ts +1 -0
- package/dist/parts/dates/add-months.d.ts +2 -0
- package/dist/parts/dates/date-kind.d.ts +2 -0
- package/dist/parts/dates/date-part.d.ts +1 -0
- package/dist/parts/dates/date-pattern-of.d.ts +4 -0
- package/dist/parts/dates/date-pattern.d.ts +7 -0
- package/dist/parts/dates/date-to-digits.d.ts +3 -0
- package/dist/parts/dates/day-start.d.ts +2 -0
- package/dist/parts/dates/digits-to-date.d.ts +3 -0
- package/dist/parts/dates/first-day-of-week.d.ts +2 -0
- package/dist/parts/dates/iso-week.d.ts +2 -0
- package/dist/parts/dates/same-day.d.ts +1 -0
- package/dist/parts/dates/time-zone.d.ts +53 -0
- package/dist/parts/drag/DragGhost.d.ts +57 -0
- package/dist/parts/drag/scroll-step.d.ts +6 -0
- package/dist/parts/field/Field.d.ts +130 -0
- package/dist/parts/field/box-area.d.ts +2 -0
- package/dist/parts/field/enter-key-event-args.d.ts +6 -0
- package/dist/parts/field/field-button-click-event-args.d.ts +7 -0
- package/dist/parts/field/field-button.d.ts +18 -0
- package/dist/parts/field/field-label-mode.d.ts +2 -0
- package/dist/parts/field/field-props.d.ts +44 -0
- package/dist/parts/field/field-variant.d.ts +2 -0
- package/dist/parts/field/same-as-written.d.ts +5 -0
- package/dist/parts/field/validate-on.d.ts +2 -0
- package/dist/parts/field/validated-event-args.d.ts +7 -0
- package/dist/parts/field/value-changed-event-args.d.ts +10 -0
- package/dist/parts/icalendar/add-duration.d.ts +9 -0
- package/dist/parts/icalendar/date-property.d.ts +4 -0
- package/dist/parts/icalendar/escape-text.d.ts +2 -0
- package/dist/parts/icalendar/event-lines.d.ts +3 -0
- package/dist/parts/icalendar/fold-line.d.ts +2 -0
- package/dist/parts/icalendar/format-content-line.d.ts +3 -0
- package/dist/parts/icalendar/format-offset.d.ts +2 -0
- package/dist/parts/icalendar/icalendar-component.d.ts +8 -0
- package/dist/parts/icalendar/icalendar-date.d.ts +6 -0
- package/dist/parts/icalendar/icalendar-event.d.ts +25 -0
- package/dist/parts/icalendar/icalendar-moment.d.ts +12 -0
- package/dist/parts/icalendar/icalendar-observance.d.ts +15 -0
- package/dist/parts/icalendar/icalendar-property.d.ts +9 -0
- package/dist/parts/icalendar/icalendar-time-zone.d.ts +7 -0
- package/dist/parts/icalendar/icalendar-write-options.d.ts +15 -0
- package/dist/parts/icalendar/icalendar.d.ts +13 -0
- package/dist/parts/icalendar/observance-moment.d.ts +7 -0
- package/dist/parts/icalendar/parse-icalendar.d.ts +11 -0
- package/dist/parts/icalendar/read-components.d.ts +3 -0
- package/dist/parts/icalendar/read-content-line.d.ts +3 -0
- package/dist/parts/icalendar/read-duration.d.ts +5 -0
- package/dist/parts/icalendar/read-event.d.ts +4 -0
- package/dist/parts/icalendar/read-icalendar-dates.d.ts +4 -0
- package/dist/parts/icalendar/read-offset.d.ts +2 -0
- package/dist/parts/icalendar/read-time-zone.d.ts +4 -0
- package/dist/parts/icalendar/same-form.d.ts +3 -0
- package/dist/parts/icalendar/short-zone-name.d.ts +2 -0
- package/dist/parts/icalendar/time-zone-lines.d.ts +10 -0
- package/dist/parts/icalendar/unescape-text.d.ts +2 -0
- package/dist/parts/icalendar/unfold-lines.d.ts +2 -0
- package/dist/parts/icalendar/write-icalendar.d.ts +9 -0
- package/dist/parts/list/OptionList.d.ts +88 -0
- package/dist/parts/list/item-field.d.ts +2 -0
- package/dist/parts/list/item-own-value.d.ts +2 -0
- package/dist/parts/list/item-source.d.ts +8 -0
- package/dist/parts/list/list-move.d.ts +2 -0
- package/dist/parts/list/option-chosen-event-args.d.ts +5 -0
- package/dist/parts/list/read-item-field.d.ts +6 -0
- package/dist/parts/mask/InputMask.d.ts +41 -0
- package/dist/parts/mask/MaskedText.d.ts +38 -0
- package/dist/parts/mask/input-mask-options.d.ts +11 -0
- package/dist/parts/mask/mask-char.d.ts +4 -0
- package/dist/parts/mask/mask-chars.d.ts +3 -0
- package/dist/parts/mask/mask-slot.d.ts +8 -0
- package/dist/parts/mask/parse-mask.d.ts +4 -0
- package/dist/parts/menu/MenuList.d.ts +74 -0
- package/dist/parts/menu/line-after.d.ts +4 -0
- package/dist/parts/menu/menu-item-click-event-args.d.ts +10 -0
- package/dist/parts/menu/menu-item.d.ts +37 -0
- package/dist/parts/overlay/OverlayPanel.d.ts +123 -0
- package/dist/parts/overlay/css-length.d.ts +2 -0
- package/dist/parts/overlay/inert-around.d.ts +5 -0
- package/dist/parts/overlay/overlay-close-reason.d.ts +2 -0
- package/dist/parts/overlay/overlay-closed-event-args.d.ts +6 -0
- package/dist/parts/overlay/overlay-closing-event-args.d.ts +8 -0
- package/dist/parts/overlay/overlay-container.d.ts +3 -0
- package/dist/parts/overlay/overlay-event-args.d.ts +5 -0
- package/dist/parts/overlay/overlay-opening-event-args.d.ts +6 -0
- package/dist/parts/overlay/overlay-panel-props.d.ts +48 -0
- package/dist/parts/overlay/swipe-tracker.d.ts +11 -0
- package/dist/parts/popup/Popup.d.ts +41 -0
- package/dist/parts/popup/place-popup.d.ts +7 -0
- package/dist/parts/popup/popup-close-reason.d.ts +2 -0
- package/dist/parts/popup/popup-open-options.d.ts +7 -0
- package/dist/parts/popup/popup-placement.d.ts +6 -0
- package/dist/parts/recurrence/add-rule-date.d.ts +6 -0
- package/dist/parts/recurrence/describe-recurrence.d.ts +16 -0
- package/dist/parts/recurrence/filter-rule-dates.d.ts +3 -0
- package/dist/parts/recurrence/format-recurrence-rule.d.ts +3 -0
- package/dist/parts/recurrence/format-rule-date.d.ts +3 -0
- package/dist/parts/recurrence/parse-recurrence-rule.d.ts +11 -0
- package/dist/parts/recurrence/parse-rule-date.d.ts +3 -0
- package/dist/parts/recurrence/read-rule-dates.d.ts +7 -0
- package/dist/parts/recurrence/recurrence-dates-options.d.ts +7 -0
- package/dist/parts/recurrence/recurrence-dates.d.ts +14 -0
- package/dist/parts/recurrence/recurrence-frequency.d.ts +2 -0
- package/dist/parts/recurrence/recurrence-rule.d.ts +33 -0
- package/dist/parts/recurrence/rule-date.d.ts +10 -0
- package/dist/parts/recurrence/rule-weekday.d.ts +7 -0
- package/dist/parts/recurrence/weekday-codes.d.ts +2 -0
- package/dist/parts/validation/ValidationGroup.d.ts +25 -0
- package/dist/parts/validation/check-rules.d.ts +4 -0
- package/dist/parts/validation/validate-fields.d.ts +10 -0
- package/dist/parts/validation/validate-targets.d.ts +3 -0
- package/dist/parts/validation/validation-message.d.ts +2 -0
- package/dist/parts/validation/validation-result.d.ts +6 -0
- package/dist/parts/validation/validation-rule.d.ts +55 -0
- package/dist/parts/validation/validation-target.d.ts +8 -0
- package/dist/parts/window/follow-pointer.d.ts +5 -0
- package/dist/parts/window/resize-box.d.ts +13 -0
- package/dist/parts/window/resize-frame.d.ts +2 -0
- package/dist/parts/window/window-box.d.ts +7 -0
- package/dist/parts/window/window-edge.d.ts +2 -0
- package/dist/pdf/export-data-grid.d.ts +23 -0
- package/dist/pdf/index.d.ts +8 -0
- package/dist/pdf/index.js +355 -0
- package/dist/pdf/index.js.map +1 -0
- package/dist/pdf/pdf-cell.d.ts +33 -0
- package/dist/pdf/pdf-custom-draw-cell-args.d.ts +17 -0
- package/dist/pdf/pdf-customize-cell-args.d.ts +7 -0
- package/dist/pdf/pdf-export-options.d.ts +59 -0
- package/dist/pdf/pdf-export-result.d.ts +7 -0
- package/dist/pdf/pdf-margin.d.ts +7 -0
- package/dist/pdf/pdf-row-exporting-args.d.ts +7 -0
- package/dist/pdf/pdf-table.d.ts +49 -0
- package/dist/styles.css +27373 -0
- package/dist/tokens/index.d.ts +19290 -0
- package/dist/tokens/index.js +17611 -0
- package/dist/tokens/index.js.map +1 -0
- package/docs/accordion.md +295 -0
- package/docs/actionsheet.md +209 -0
- package/docs/avatar.md +238 -0
- package/docs/badge.md +193 -0
- package/docs/bottomsheet.md +316 -0
- package/docs/breadcrumb.md +125 -0
- package/docs/button.md +416 -0
- package/docs/buttongroup.md +141 -0
- package/docs/calendar.md +136 -0
- package/docs/card.md +254 -0
- package/docs/checkbox.md +336 -0
- package/docs/chip.md +278 -0
- package/docs/colorbox.md +153 -0
- package/docs/combobox.md +214 -0
- package/docs/control.md +232 -0
- package/docs/datagrid-api.md +417 -0
- package/docs/datagrid-bands.md +317 -0
- package/docs/datagrid-drag-select.md +326 -0
- package/docs/datagrid-drag.md +341 -0
- package/docs/datagrid-editing.md +537 -0
- package/docs/datagrid-filtering.md +455 -0
- package/docs/datagrid-forms.md +402 -0
- package/docs/datagrid-grouping.md +419 -0
- package/docs/datagrid-layout.md +540 -0
- package/docs/datagrid-lookups.md +363 -0
- package/docs/datagrid-master-detail.md +326 -0
- package/docs/datagrid-scrolling.md +348 -0
- package/docs/datagrid-selection.md +599 -0
- package/docs/datagrid.md +362 -0
- package/docs/datebox.md +201 -0
- package/docs/drawer.md +229 -0
- package/docs/dropdown.md +317 -0
- package/docs/filterbuilder.md +601 -0
- package/docs/formlayout.md +118 -0
- package/docs/getting-started.md +105 -0
- package/docs/home.md +54 -0
- package/docs/keyboard.md +188 -0
- package/docs/layout.md +584 -0
- package/docs/listbox.md +374 -0
- package/docs/lookup.md +128 -0
- package/docs/menus.md +312 -0
- package/docs/numberbox.md +309 -0
- package/docs/pagination.md +115 -0
- package/docs/progress.md +401 -0
- package/docs/radiogroup.md +324 -0
- package/docs/rating.md +124 -0
- package/docs/scheduler-agenda.md +597 -0
- package/docs/scheduler-big-data.md +253 -0
- package/docs/scheduler-editing.md +545 -0
- package/docs/scheduler-form.md +631 -0
- package/docs/scheduler-icalendar.md +591 -0
- package/docs/scheduler-mobile.md +664 -0
- package/docs/scheduler-recurrence.md +420 -0
- package/docs/scheduler-resources.md +702 -0
- package/docs/scheduler-timeline.md +632 -0
- package/docs/scheduler.md +592 -0
- package/docs/showcase.md +5 -0
- package/docs/skeleton.md +131 -0
- package/docs/slider.md +361 -0
- package/docs/switch.md +242 -0
- package/docs/tabdocs-dock.md +877 -0
- package/docs/tabdocs-drag.md +554 -0
- package/docs/tabdocs-menus.md +689 -0
- package/docs/tabdocs-mobile.md +277 -0
- package/docs/tabdocs-tabs.md +830 -0
- package/docs/tabdocs-windows.md +657 -0
- package/docs/tabdocs-workspace.md +409 -0
- package/docs/tabdocs.md +888 -0
- package/docs/tabs.md +456 -0
- package/docs/tagbox.md +361 -0
- package/docs/textarea.md +305 -0
- package/docs/textbox.md +449 -0
- package/docs/toast.md +313 -0
- package/docs/tokens.md +3903 -0
- package/docs/toolbar.md +462 -0
- package/docs/tooltip.md +339 -0
- package/docs/treeview.md +763 -0
- package/docs/window.md +556 -0
- package/llms-full.txt +33665 -0
- package/llms.txt +127 -0
- package/package.json +116 -6
|
@@ -0,0 +1,599 @@
|
|
|
1
|
+
# DataGrid: Selection and export
|
|
2
|
+
|
|
3
|
+
> DataGrid · @motifx-community/ui 0.1.0-beta.0
|
|
4
|
+
|
|
5
|
+
## Selection
|
|
6
|
+
|
|
7
|
+
`selection` is `single` (the selection follows the active row) or `multiple`, with a check box column. A click selects a row, Ctrl adds or takes out, Shift selects a range; Shift+Space, Shift+arrows and Ctrl+A do it from the keyboard. The header check box selects every row of the filter — on a server too: the grid keeps a state, “all but these keys”, never the rows. `selection` gives that state, `selectionFilter` the same as a filter for the server. Selected rows wear the design language's own selection look, as its lists and trees do: its fill and text colour, and its frame, raised effect or bar at the start where it has them; the hover and the active row's tint lie over it, the keyboard focus ring on top, and a selected row stays one row high.
|
|
8
|
+
|
|
9
|
+
```tsx
|
|
10
|
+
import { data } from '@motifx-community/data';
|
|
11
|
+
|
|
12
|
+
/** Rows in memory that answer a little later, the way a server does; for the examples. */
|
|
13
|
+
export class SlowAdapter<T extends object, K> extends data.ArrayAdapter<T, K> {
|
|
14
|
+
constructor(
|
|
15
|
+
options: data.ArrayAdapterOptions<T>,
|
|
16
|
+
private readonly delayMs = 300,
|
|
17
|
+
) {
|
|
18
|
+
super(options);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
override async load(options: data.LoadOptions = {}): Promise<data.LoadResult<T>> {
|
|
22
|
+
await new Promise((done) => setTimeout(done, this.delayMs));
|
|
23
|
+
return super.load(options);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
## Copy and paste
|
|
29
|
+
|
|
30
|
+
Ctrl+C copies the selected rows, or the active cell, as tab-separated text and an HTML table: a spreadsheet or a document takes it as a table. Ctrl+V on a cell writes tab-separated text — from a spreadsheet, or copied here — into the editable cells from that cell rightwards and downwards. Each value is read by the column type (numbers and dates in the locale, yes or no, a list option by its text) and goes into the row's draft with its checks, as if typed; cells that cannot be edited keep their values. The rows below the active one are saved as the save mode says.
|
|
31
|
+
|
|
32
|
+
```tsx
|
|
33
|
+
/** An order, as the examples' made-up server keeps it. */
|
|
34
|
+
export interface Order {
|
|
35
|
+
id: number;
|
|
36
|
+
customer: string;
|
|
37
|
+
city: string;
|
|
38
|
+
date: string;
|
|
39
|
+
status: string;
|
|
40
|
+
paid: boolean;
|
|
41
|
+
amount: number;
|
|
42
|
+
note: string;
|
|
43
|
+
}
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
## Export
|
|
47
|
+
|
|
48
|
+
`exportCsv()` saves the rows of the filter, in the sort order, with the visible columns in their order, as a CSV file a spreadsheet opens as it is: UTF-8 with a byte order mark, the locale's separator (`;` where decimals take a comma), the column titles first, and text that would run as a formula made harmless. `exportRows()` gives the same rows as objects. Rows in memory are taken as they are; a server's are asked for in parts through the data source, so its filter, search and sort apply and nothing on the screen changes. `exportButton` puts an “Export” button in the toolbar; `exportable` takes a column out.
|
|
49
|
+
|
|
50
|
+
```tsx
|
|
51
|
+
import { data } from '@motifx-community/data';
|
|
52
|
+
|
|
53
|
+
/** Rows in memory that answer a little later, the way a server does; for the examples. */
|
|
54
|
+
export class SlowAdapter<T extends object, K> extends data.ArrayAdapter<T, K> {
|
|
55
|
+
constructor(
|
|
56
|
+
options: data.ArrayAdapterOptions<T>,
|
|
57
|
+
private readonly delayMs = 300,
|
|
58
|
+
) {
|
|
59
|
+
super(options);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
override async load(options: data.LoadOptions = {}): Promise<data.LoadResult<T>> {
|
|
63
|
+
await new Promise((done) => setTimeout(done, this.delayMs));
|
|
64
|
+
return super.load(options);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
## Export to Excel
|
|
70
|
+
|
|
71
|
+
As in DevExtreme, the grid does not carry an xlsx writer: the app brings ExcelJS (`npm i exceljs`, an optional peer dependency) and calls `exportDataGrid({ component, worksheet })` from `@motifx-community/ui/excel` — a separate entry, so apps that never export to Excel never load it. With `export: { formats: ['xlsx', 'csv'] }` the toolbar's export button becomes a menu (“Export all data to Excel”, “Export selected rows to Excel” with `allowExportSelectedData`); the Excel commands raise `onExporting` with `format: 'xlsx'` and `selectedRowsOnly`, and the handler writes the workbook and saves it, here as a Blob download with ExcelJS loaded on the first export.
|
|
72
|
+
|
|
73
|
+
```tsx
|
|
74
|
+
/** An order, as the examples' made-up server keeps it. */
|
|
75
|
+
export interface Order {
|
|
76
|
+
id: number;
|
|
77
|
+
customer: string;
|
|
78
|
+
city: string;
|
|
79
|
+
date: string;
|
|
80
|
+
status: string;
|
|
81
|
+
paid: boolean;
|
|
82
|
+
amount: number;
|
|
83
|
+
note: string;
|
|
84
|
+
}
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
The sheet holds the header row (frozen), the rows in the grid's order with its filter, search and grouping — every matching row, a server's loaded in parts while a panel over the rows shows the progress and a button that stops it — the group rows (“Column: value” with their summary items, those aligned by column under their columns) with outline levels Excel folds, the group footers and the totals. Numbers stay numbers with a number format made from the column's `Intl` format, dates stay dates, yes/no cells are Excel's `TRUE` / `FALSE` (`booleanText` writes the grid's text), lookup and list cells hold their texts, a column with a `format` function its text, and widths follow the grid. `customizeCell({ gridCell, excelCell })` changes any cell; `gridCell` has `rowType`, `column`, `data`, `value`, `groupIndex`, `groupSummaryItems` and `totalSummaryItemName`. The promise resolves with the cells written, `{ from, to }`.
|
|
88
|
+
|
|
89
|
+
| exportDataGrid option | Default | What it does |
|
|
90
|
+
| --- | --- | --- |
|
|
91
|
+
| `component, worksheet` | — | The grid, and the ExcelJS worksheet to write to (`workbook.addWorksheet('Orders')`). |
|
|
92
|
+
| `topLeftCell` | `{ row: 1, column: 1 }` | Where the first cell goes: `{ row, column }` or a reference such as `'B2'`. |
|
|
93
|
+
| `customizeCell` | — | `({ gridCell, excelCell }) => void` for every cell, after its value and style are set. |
|
|
94
|
+
| `autoFilterEnabled` | `false` | Excel’s filter buttons on the header row. |
|
|
95
|
+
| `keepColumnWidths` | `true` | Columns as wide as in the grid. |
|
|
96
|
+
| `selectedRowsOnly` | the toolbar’s command, else `false` | Only the selected rows (no group rows or summaries, as with CSV). |
|
|
97
|
+
| `loadPanel` | on | The panel over the rows while they load: `true` / `false`, or `{ enabled, text, showProgress, cancelButton }`. |
|
|
98
|
+
| `encodeExecutableContent` | `false` | Text a spreadsheet would run as a formula gets a `'` in front. |
|
|
99
|
+
| `headers, frozenHeader` | `true` | The row of column titles; it stays in view while the sheet scrolls. |
|
|
100
|
+
| `groups, outline, summaries` | `true` | Group rows; outline levels by group (at most 7); group summary items, footers and the totals. |
|
|
101
|
+
| `numberFormats, booleanText` | `true`, `false` | Excel number formats from the columns’ `Intl` formats; the grid’s yes/no text instead of `TRUE` / `FALSE`. |
|
|
102
|
+
| `pageSize, onProgress, signal` | the `exportPageSize` setting | Rows per request to a server; told after each part; stops the export (the promise rejects with an `AbortError`). |
|
|
103
|
+
|
|
104
|
+
## Export to PDF
|
|
105
|
+
|
|
106
|
+
The same way for PDF: the app brings jsPDF (`npm i jspdf`, an optional peer dependency) and calls `exportDataGrid({ jsPDFDocument, component })` from `@motifx-community/ui/pdf`, its own entry. Add `'pdf'` to `export.formats` and the toolbar's menu offers “Export all data to PDF” (and the selected rows); the command raises `onExporting` with `format: 'pdf'`, and the handler makes the document, draws the grid on it and saves it. The table is drawn with jsPDF's own calls, no table plugin: the header rows with bands merged over their columns, the rows in the grid's order with its filter, search and grouping and the texts and alignment the grid shows, the group rows across the row, the group footers and the totals. Columns take the grid's widths, narrowed to fit the page; rows that do not fit go on to the next page under the header rows again; right to left, the columns run from the right edge.
|
|
107
|
+
|
|
108
|
+
```tsx
|
|
109
|
+
/** An order, as the examples' made-up server keeps it. */
|
|
110
|
+
export interface Order {
|
|
111
|
+
id: number;
|
|
112
|
+
customer: string;
|
|
113
|
+
city: string;
|
|
114
|
+
date: string;
|
|
115
|
+
status: string;
|
|
116
|
+
paid: boolean;
|
|
117
|
+
amount: number;
|
|
118
|
+
note: string;
|
|
119
|
+
}
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
jsPDF's own fonts (Helvetica, Times, Courier) write Latin-1 only: Turkish letters such as İ, ş and ğ, and Cyrillic, Greek or Arabic text, need a TrueType font that has them, added to the document before the export (`doc.addFileToVFS`, `doc.addFont`, `doc.setFont`) — with a bold style too, which group rows and totals use. This example fetches Noto Sans the first time it exports and keeps jsPDF's font when it cannot. The promise resolves with where the table ends (`{ page, y }`), to go on writing under it.
|
|
123
|
+
|
|
124
|
+
| exportDataGrid option | Default | What it does |
|
|
125
|
+
| --- | --- | --- |
|
|
126
|
+
| `jsPDFDocument, component` | — | The jsPDF document to draw on (`new jsPDF()`; the table starts on its current page), and the grid. |
|
|
127
|
+
| `topLeft` | `{ x: 0, y: 0 }` | Where the table starts, from the top left margin, on its first page. |
|
|
128
|
+
| `margin` | 40 points on every side | Space kept free at the page’s edges: a number, or `{ top, right, bottom, left }`. |
|
|
129
|
+
| `columnWidths` | the grid’s, made to fit | Each column’s width, in order; one left out takes the grid’s. |
|
|
130
|
+
| `fitColumns` | `'shrink'` | Without `columnWidths`: the grid's widths narrowed when wider than the page (`'shrink'`), always as wide as it (`'fill'`), or as they are (`'none'`). |
|
|
131
|
+
| `repeatHeaders` | `true` | The header rows (bands included) again at the top of every page. |
|
|
132
|
+
| `indent` | `0` | How far the rows of a group sit in from its group row, per level. |
|
|
133
|
+
| `customizeCell` | — | `({ gridCell, pdfCell }) => void` for every cell before the rows are measured: `text`, `font` (`size`, `name`, `style`), `textColor`, `backgroundColor`, `borderColor`, `borderWidth`, the four `draw…Border`s, `horizontalAlign`, `verticalAlign`, `padding`, `wordWrapEnabled`. |
|
|
134
|
+
| `customDrawCell` | — | `({ doc, rect, gridCell, pdfCell, cancel }) => void` before a cell is drawn: draw it yourself (an image, a bar) and set `cancel` (the borders are still drawn). |
|
|
135
|
+
| `onRowExporting` | — | `({ rowCells, rowHeight }) => void` before a row is placed: a taller `rowHeight` (never less than its text needs). |
|
|
136
|
+
| `wordWrapEnabled, fontSize` | `false`, `10` | Long text on more lines (off: a line that does not fit ends in “…”); the cells’ font size in points. |
|
|
137
|
+
| `selectedRowsOnly` | the toolbar’s command, else `false` | Only the selected rows (no group rows or summaries, as with CSV and Excel). |
|
|
138
|
+
| `loadPanel` | on | The panel over the rows while they load, with the progress and a Stop button; `true` / `false`, or `{ enabled, text, showProgress, cancelButton }`. |
|
|
139
|
+
| `headers, groups, summaries` | `true` | The header rows; a row per group; group summary items, footers and the totals. |
|
|
140
|
+
| `pageSize, onProgress, signal` | the `exportPageSize` setting | Rows per request to a server; told after each part; stops the export (the promise rejects with an `AbortError`, nothing is drawn). |
|
|
141
|
+
|
|
142
|
+
## Example files
|
|
143
|
+
|
|
144
|
+
`Selection.tsx`
|
|
145
|
+
|
|
146
|
+
```tsx
|
|
147
|
+
import { reactive } from '@motifx/core';
|
|
148
|
+
import { data } from '@motifx-community/data';
|
|
149
|
+
import { Button, DataGrid, Stack, type GridAction, type GridSelection } from '@motifx-community/ui';
|
|
150
|
+
import { SlowAdapter } from '../../../shared/slow-adapter';
|
|
151
|
+
import type { Order } from './order';
|
|
152
|
+
import { columns, makeOrders } from './orders';
|
|
153
|
+
|
|
154
|
+
const MODES = ['none', 'single', 'multiple'] as const;
|
|
155
|
+
|
|
156
|
+
const describe = (sel: GridSelection | undefined) =>
|
|
157
|
+
!sel ? '' : sel.all ? `all but ${sel.except.length} (${sel.except.slice(0, 5).join(', ')})` : `${sel.keys.length} picked (${sel.keys.slice(0, 5).join(', ')})`;
|
|
158
|
+
|
|
159
|
+
/** Single and multiple selection; over 100,000 rows on a server "all" is a state, never the rows. */
|
|
160
|
+
export default function Selection() {
|
|
161
|
+
const s = reactive({ mode: 'multiple' as 'none' | 'single' | 'multiple', selection: undefined as GridSelection | undefined, note: '' });
|
|
162
|
+
// The server groups, so "all but these keys" goes to it as a filter.
|
|
163
|
+
const orders = new data.DataSource<Order, number>({ adapter: new SlowAdapter<Order, number>({ data: makeOrders(100_000), key: 'id' }, 200), loadMode: 'blocks', pageSize: 100 });
|
|
164
|
+
let grid: DataGrid<Order> | null = null;
|
|
165
|
+
let server: DataGrid<Order> | null = null;
|
|
166
|
+
|
|
167
|
+
const print: GridAction<Order> = { id: 'print', text: 'Print', onclick: (row) => (s.note = `Order ${row.id} sent to the printer`) };
|
|
168
|
+
const mail: GridAction<Order> = { id: 'mail', text: 'Mail the customer', disabled: (row) => !row.paid, onclick: (row) => (s.note = `Mail to ${row.customer}`) };
|
|
169
|
+
|
|
170
|
+
return (
|
|
171
|
+
<>
|
|
172
|
+
<Stack orientation="horizontal" wrap align="center" role="group" aria-label="Selection mode">
|
|
173
|
+
{MODES.map((mode) => (
|
|
174
|
+
<Button key={mode} text={mode} size="sm" variant={() => (s.mode === mode ? 'solid' : 'ghost')} aria-pressed={() => s.mode === mode} onclick={() => (s.mode = mode)} />
|
|
175
|
+
))}
|
|
176
|
+
</Stack>
|
|
177
|
+
<DataGrid
|
|
178
|
+
class="dg-selection"
|
|
179
|
+
style="block-size: 28rem"
|
|
180
|
+
rows={makeOrders(40)}
|
|
181
|
+
rowKey="id"
|
|
182
|
+
columns={columns}
|
|
183
|
+
label="Orders to select"
|
|
184
|
+
locale="en"
|
|
185
|
+
settings={{ selection: () => s.mode }}
|
|
186
|
+
onSelectionChanged={(e) => (s.selection = e.selection)}
|
|
187
|
+
ref={(g: DataGrid<Order>) => (grid = g)}
|
|
188
|
+
/>
|
|
189
|
+
<output class="dg-selection-state">{() => `${(grid?.selectedCount ?? 0).toLocaleString('en')} selected: ${describe(s.selection)}`}</output>
|
|
190
|
+
<DataGrid
|
|
191
|
+
class="dg-server-selection"
|
|
192
|
+
style="block-size: 28rem"
|
|
193
|
+
dataSource={orders}
|
|
194
|
+
columns={columns}
|
|
195
|
+
label="100,000 orders to select"
|
|
196
|
+
locale="en"
|
|
197
|
+
settings={{ selection: 'multiple' }}
|
|
198
|
+
actions={[print, mail]}
|
|
199
|
+
ref={(g: DataGrid<Order>) => (server = g)}
|
|
200
|
+
/>
|
|
201
|
+
<output class="dg-server-selection-state">{() => `${(server?.selectedCount ?? 0).toLocaleString('en')} selected: ${describe(server?.selection)}`}</output>
|
|
202
|
+
<output>{() => s.note}</output>
|
|
203
|
+
</>
|
|
204
|
+
);
|
|
205
|
+
}
|
|
206
|
+
```
|
|
207
|
+
|
|
208
|
+
`orders.ts`
|
|
209
|
+
|
|
210
|
+
```tsx
|
|
211
|
+
import type { GridColumn } from '@motifx-community/ui';
|
|
212
|
+
import type { Order } from './order';
|
|
213
|
+
|
|
214
|
+
const CUSTOMERS = ['Ada Lovelace', 'Grace Hopper', 'Alan Turing', 'Cahit Arf', 'Katherine Johnson', 'Edsger Dijkstra', 'Barbara Liskov', 'Donald Knuth', 'İlhan Koman', 'Margaret Hamilton'];
|
|
215
|
+
const CITIES = ['Ankara', 'Antalya', 'Bursa', 'İstanbul', 'İzmir', 'Konya', 'Trabzon'];
|
|
216
|
+
const STATUSES = ['Draft', 'Approved', 'Shipped', 'Delivered', 'Cancelled'];
|
|
217
|
+
const NOTES = ['', 'Leave at the door', 'Call before delivery', 'Gift wrap, please, with a card that says happy birthday', '', 'Fragile'];
|
|
218
|
+
|
|
219
|
+
/** `n` made-up orders, the same ones every time. */
|
|
220
|
+
export function makeOrders(n: number): Order[] {
|
|
221
|
+
const day = Date.UTC(2026, 0, 1);
|
|
222
|
+
return Array.from({ length: n }, (_, i) => ({
|
|
223
|
+
id: i + 1,
|
|
224
|
+
customer: CUSTOMERS[(i * 7) % CUSTOMERS.length],
|
|
225
|
+
city: CITIES[(i * 3) % CITIES.length],
|
|
226
|
+
date: new Date(day + ((i * 37) % 300) * 86_400_000).toISOString().slice(0, 10),
|
|
227
|
+
status: STATUSES[i % STATUSES.length],
|
|
228
|
+
paid: i % 3 === 0,
|
|
229
|
+
amount: ((i * 7919) % 100_000) / 100,
|
|
230
|
+
note: NOTES[i % NOTES.length],
|
|
231
|
+
}));
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
const money = new Intl.NumberFormat('en', { minimumFractionDigits: 2, maximumFractionDigits: 2 });
|
|
235
|
+
|
|
236
|
+
/** The order columns: the number pinned to the start, the amount to the end. */
|
|
237
|
+
export const columns: GridColumn<Order>[] = [
|
|
238
|
+
{ field: 'id', title: 'No', type: 'number', width: 80, sticky: 'start', editable: false },
|
|
239
|
+
{ field: 'customer', title: 'Customer', width: 180, flex: 1, required: true },
|
|
240
|
+
{ field: 'city', title: 'City', type: 'list', width: 120, options: CITIES },
|
|
241
|
+
{ field: 'date', title: 'Date', type: 'date', width: 130, editable: false, creatable: true },
|
|
242
|
+
{ field: 'status', title: 'Status', type: 'list', width: 120, options: STATUSES, required: true },
|
|
243
|
+
{ field: 'paid', title: 'Paid', type: 'boolean', width: 80 },
|
|
244
|
+
{ field: 'note', title: 'Note', width: 200 },
|
|
245
|
+
{
|
|
246
|
+
field: 'amount',
|
|
247
|
+
title: 'Amount',
|
|
248
|
+
type: 'number',
|
|
249
|
+
width: 120,
|
|
250
|
+
sticky: 'end',
|
|
251
|
+
required: true,
|
|
252
|
+
validate: (v) => (typeof v === 'number' && v < 0 ? 'The amount cannot be negative.' : null),
|
|
253
|
+
format: (v) => (typeof v === 'number' ? money.format(v) : ''),
|
|
254
|
+
},
|
|
255
|
+
];
|
|
256
|
+
|
|
257
|
+
/** The same columns with a filter cell and a header filter on most of them. */
|
|
258
|
+
export const filterColumns: GridColumn<Order>[] = columns.map((c) => ({ ...c, filterRow: c.field !== 'note', headerFilter: c.field !== 'note' && c.field !== 'id' }));
|
|
259
|
+
|
|
260
|
+
const today = () => new Date().toISOString().slice(0, 10);
|
|
261
|
+
|
|
262
|
+
/** What a new order starts with. */
|
|
263
|
+
export const newOrder = () => ({ date: today(), status: 'Draft', paid: false });
|
|
264
|
+
```
|
|
265
|
+
|
|
266
|
+
`order.ts`
|
|
267
|
+
|
|
268
|
+
```tsx
|
|
269
|
+
/** An order, as the examples' made-up server keeps it. */
|
|
270
|
+
export interface Order {
|
|
271
|
+
id: number;
|
|
272
|
+
customer: string;
|
|
273
|
+
city: string;
|
|
274
|
+
date: string;
|
|
275
|
+
status: string;
|
|
276
|
+
paid: boolean;
|
|
277
|
+
amount: number;
|
|
278
|
+
note: string;
|
|
279
|
+
}
|
|
280
|
+
```
|
|
281
|
+
|
|
282
|
+
`slow-adapter.ts`
|
|
283
|
+
|
|
284
|
+
```tsx
|
|
285
|
+
import { data } from '@motifx-community/data';
|
|
286
|
+
|
|
287
|
+
/** Rows in memory that answer a little later, the way a server does; for the examples. */
|
|
288
|
+
export class SlowAdapter<T extends object, K> extends data.ArrayAdapter<T, K> {
|
|
289
|
+
constructor(
|
|
290
|
+
options: data.ArrayAdapterOptions<T>,
|
|
291
|
+
private readonly delayMs = 300,
|
|
292
|
+
) {
|
|
293
|
+
super(options);
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
override async load(options: data.LoadOptions = {}): Promise<data.LoadResult<T>> {
|
|
297
|
+
await new Promise((done) => setTimeout(done, this.delayMs));
|
|
298
|
+
return super.load(options);
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
```
|
|
302
|
+
|
|
303
|
+
`Clipboard.tsx`
|
|
304
|
+
|
|
305
|
+
```tsx
|
|
306
|
+
import { reactive } from '@motifx/core';
|
|
307
|
+
import { Button, CheckBox, DataGrid, Stack } from '@motifx-community/ui';
|
|
308
|
+
import type { Order } from './order';
|
|
309
|
+
import { columns, makeOrders } from './orders';
|
|
310
|
+
|
|
311
|
+
/** Ctrl+C and Ctrl+V as tab-separated text, and the same from code. */
|
|
312
|
+
export default function Clipboard() {
|
|
313
|
+
const s = reactive({ raw: false, headers: false, newRows: false, copied: '' });
|
|
314
|
+
let grid: DataGrid<Order> | null = null;
|
|
315
|
+
|
|
316
|
+
return (
|
|
317
|
+
<>
|
|
318
|
+
<Stack orientation="horizontal" wrap align="center">
|
|
319
|
+
<CheckBox label="Values, not the shown text" x-model={() => s.raw} />
|
|
320
|
+
<CheckBox label="Column titles" x-model={() => s.headers} />
|
|
321
|
+
<CheckBox label="New rows from extra lines" x-model={() => s.newRows} />
|
|
322
|
+
</Stack>
|
|
323
|
+
<DataGrid
|
|
324
|
+
class="dg-clipboard"
|
|
325
|
+
style="block-size: 28rem"
|
|
326
|
+
rows={makeOrders(20)}
|
|
327
|
+
rowKey="id"
|
|
328
|
+
columns={columns}
|
|
329
|
+
label="Orders to copy"
|
|
330
|
+
locale="en"
|
|
331
|
+
saveMode="batch"
|
|
332
|
+
settings={{
|
|
333
|
+
editable: true,
|
|
334
|
+
addRows: true,
|
|
335
|
+
selection: 'multiple',
|
|
336
|
+
copyValues: () => (s.raw ? 'raw' : 'shown'),
|
|
337
|
+
copyHeaders: () => s.headers,
|
|
338
|
+
pasteNewRows: () => s.newRows,
|
|
339
|
+
}}
|
|
340
|
+
ref={(g: DataGrid<Order>) => (grid = g)}
|
|
341
|
+
/>
|
|
342
|
+
<Stack orientation="horizontal" wrap align="center">
|
|
343
|
+
<Button text="Copy from code" variant="outline" onclick={() => (s.copied = grid?.copy() ?? '')} />
|
|
344
|
+
<Button text="Paste two lines at the active cell" variant="outline" onclick={() => grid?.paste('Ada Lovelace\tİzmir\nGrace Hopper\tAnkara')} />
|
|
345
|
+
<output class="dg-copied">{() => (s.copied ? `Copied: ${s.copied.replace(/\t/g, ' → ').replace(/\r?\n/g, ' ¶ ')}` : '')}</output>
|
|
346
|
+
</Stack>
|
|
347
|
+
</>
|
|
348
|
+
);
|
|
349
|
+
}
|
|
350
|
+
```
|
|
351
|
+
|
|
352
|
+
`Export.tsx`
|
|
353
|
+
|
|
354
|
+
```tsx
|
|
355
|
+
import { reactive } from '@motifx/core';
|
|
356
|
+
import { Button, DataGrid, Stack } from '@motifx-community/ui';
|
|
357
|
+
import type { Order } from './order';
|
|
358
|
+
import { columns, filterColumns, makeOrders } from './orders';
|
|
359
|
+
import { pagedOrders } from './paged-orders';
|
|
360
|
+
|
|
361
|
+
/** The bar's "Export" button, rows as objects, and 100,000 rows of a server saved in parts. */
|
|
362
|
+
export default function Export() {
|
|
363
|
+
const s = reactive({ exported: '', progress: '' });
|
|
364
|
+
let grid: DataGrid<Order> | null = null;
|
|
365
|
+
|
|
366
|
+
const firstTwo = async () => {
|
|
367
|
+
const rows = (await grid?.exportRows({ values: 'raw' })) ?? [];
|
|
368
|
+
s.exported = JSON.stringify(rows.slice(0, 2));
|
|
369
|
+
};
|
|
370
|
+
|
|
371
|
+
// A grid made with `new` exports without being shown; this one reads the orders of the paged grid.
|
|
372
|
+
const exportServer = async () => {
|
|
373
|
+
const server = new DataGrid<Order>({ dataSource: pagedOrders, columns, label: 'Orders by page', locale: 'en' });
|
|
374
|
+
s.progress = 'starting…';
|
|
375
|
+
try {
|
|
376
|
+
await server.exportCsv({ pageSize: 10_000, fileName: 'orders', onProgress: (n, total) => (s.progress = `${n.toLocaleString('en')} of ${total.toLocaleString('en')}`) });
|
|
377
|
+
s.progress += ' — saved';
|
|
378
|
+
} catch {
|
|
379
|
+
s.progress = 'failed';
|
|
380
|
+
} finally {
|
|
381
|
+
server.dispose();
|
|
382
|
+
}
|
|
383
|
+
};
|
|
384
|
+
|
|
385
|
+
return (
|
|
386
|
+
<>
|
|
387
|
+
<DataGrid
|
|
388
|
+
class="dg-export"
|
|
389
|
+
style="block-size: 28rem"
|
|
390
|
+
rows={makeOrders(60)}
|
|
391
|
+
rowKey="id"
|
|
392
|
+
columns={filterColumns}
|
|
393
|
+
label="Orders to export"
|
|
394
|
+
locale="en"
|
|
395
|
+
settings={{ exportButton: true, filterRow: true }}
|
|
396
|
+
ref={(g: DataGrid<Order>) => (grid = g)}
|
|
397
|
+
/>
|
|
398
|
+
<Stack orientation="horizontal" wrap align="center">
|
|
399
|
+
<Button text="The first two rows as objects" variant="outline" onclick={firstTwo} />
|
|
400
|
+
<Button text="Export the 100,000 orders by page" variant="outline" onclick={() => void exportServer()} />
|
|
401
|
+
</Stack>
|
|
402
|
+
<output class="dg-exported">{() => s.exported}</output>
|
|
403
|
+
<output class="dg-export-progress">{() => (s.progress ? `Server export: ${s.progress}` : '')}</output>
|
|
404
|
+
</>
|
|
405
|
+
);
|
|
406
|
+
}
|
|
407
|
+
```
|
|
408
|
+
|
|
409
|
+
`paged-orders.ts`
|
|
410
|
+
|
|
411
|
+
```tsx
|
|
412
|
+
import { reactive } from '@motifx/core';
|
|
413
|
+
import { data } from '@motifx-community/data';
|
|
414
|
+
import { SlowAdapter } from '../../../shared/slow-adapter';
|
|
415
|
+
import type { Order } from './order';
|
|
416
|
+
import { makeOrders } from './orders';
|
|
417
|
+
|
|
418
|
+
/** How many times the server below was asked for rows. */
|
|
419
|
+
export const pagedLoads = reactive({ count: 0 });
|
|
420
|
+
|
|
421
|
+
const server = new SlowAdapter<Order, number>({ data: makeOrders(100_000), key: 'id' }, 250);
|
|
422
|
+
server.onLoading(() => pagedLoads.count++);
|
|
423
|
+
|
|
424
|
+
/** 100,000 orders on a server, loaded a page at a time; the paged grid shows them, the export reads them. */
|
|
425
|
+
export const pagedOrders = new data.DataSource<Order, number>({ adapter: server, loadMode: 'page', pageSize: 20 });
|
|
426
|
+
```
|
|
427
|
+
|
|
428
|
+
`ExcelExport.tsx`
|
|
429
|
+
|
|
430
|
+
```tsx
|
|
431
|
+
import { reactive } from '@motifx/core';
|
|
432
|
+
import { DataGrid, type GridExportingEventArgs, type GridSummary } from '@motifx-community/ui';
|
|
433
|
+
import { exportDataGrid } from '@motifx-community/ui/excel';
|
|
434
|
+
import type { Order } from './order';
|
|
435
|
+
import { columns, makeOrders } from './orders';
|
|
436
|
+
|
|
437
|
+
/** Saves a file through a link the browser downloads. */
|
|
438
|
+
function saveFile(blob: Blob, name: string) {
|
|
439
|
+
const url = URL.createObjectURL(blob);
|
|
440
|
+
const link = document.createElement('a');
|
|
441
|
+
link.href = url;
|
|
442
|
+
link.download = name;
|
|
443
|
+
link.click();
|
|
444
|
+
setTimeout(() => URL.revokeObjectURL(url), 1000);
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
/** The toolbar's export menu: Excel through ExcelJS and `exportDataGrid`, CSV by the grid itself. */
|
|
448
|
+
export default function ExcelExport() {
|
|
449
|
+
const s = reactive({ saved: '' });
|
|
450
|
+
// Grouped by city; the amount in `Intl` options, which become its Excel number format.
|
|
451
|
+
const byCity = columns.map((c) =>
|
|
452
|
+
c.field === 'city' ? { ...c, groupIndex: 0 } : c.field === 'amount' ? { ...c, width: 150, format: { minimumFractionDigits: 2, maximumFractionDigits: 2 } } : c,
|
|
453
|
+
);
|
|
454
|
+
const summary: GridSummary<Order> = {
|
|
455
|
+
totalItems: [
|
|
456
|
+
{ column: 'id', summaryType: 'count', showInColumn: 'customer' },
|
|
457
|
+
{ column: 'amount', summaryType: 'sum' },
|
|
458
|
+
],
|
|
459
|
+
groupItems: [
|
|
460
|
+
{ column: 'amount', summaryType: 'sum', alignByColumn: true },
|
|
461
|
+
{ column: 'amount', summaryType: 'max', showInGroupFooter: true },
|
|
462
|
+
],
|
|
463
|
+
};
|
|
464
|
+
|
|
465
|
+
// The grid raises onExporting for 'xlsx'; the file is written here, as with DevExtreme. ExcelJS
|
|
466
|
+
// loads the first time, so the page does not carry it until someone exports.
|
|
467
|
+
const onExporting = async (e: GridExportingEventArgs) => {
|
|
468
|
+
if (e.format !== 'xlsx') return;
|
|
469
|
+
const { default: ExcelJS } = await import('exceljs');
|
|
470
|
+
const workbook = new ExcelJS.Workbook();
|
|
471
|
+
const worksheet = workbook.addWorksheet('Orders');
|
|
472
|
+
const range = await exportDataGrid({
|
|
473
|
+
component: e.component,
|
|
474
|
+
worksheet,
|
|
475
|
+
selectedRowsOnly: e.selectedRowsOnly,
|
|
476
|
+
autoFilterEnabled: true,
|
|
477
|
+
customizeCell: ({ gridCell, excelCell }) => {
|
|
478
|
+
if (gridCell.rowType === 'data' && gridCell.column?.field === 'status' && gridCell.value === 'Cancelled') excelCell.font = { color: { argb: 'FFB42318' } };
|
|
479
|
+
},
|
|
480
|
+
});
|
|
481
|
+
const buffer = await workbook.xlsx.writeBuffer();
|
|
482
|
+
saveFile(new Blob([buffer], { type: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' }), 'Orders.xlsx');
|
|
483
|
+
s.saved = `Orders.xlsx: rows ${range.from.row}–${range.to.row}, columns ${range.from.column}–${range.to.column}`;
|
|
484
|
+
};
|
|
485
|
+
|
|
486
|
+
return (
|
|
487
|
+
<>
|
|
488
|
+
<DataGrid
|
|
489
|
+
class="dg-excel"
|
|
490
|
+
style="block-size: 32rem"
|
|
491
|
+
rows={makeOrders(200)}
|
|
492
|
+
rowKey="id"
|
|
493
|
+
columns={byCity}
|
|
494
|
+
label="Orders for Excel"
|
|
495
|
+
locale="en"
|
|
496
|
+
summary={summary}
|
|
497
|
+
settings={{ exportButton: true, selection: 'multiple' }}
|
|
498
|
+
export={{ formats: ['xlsx', 'csv'], allowExportSelectedData: true }}
|
|
499
|
+
onExporting={onExporting}
|
|
500
|
+
/>
|
|
501
|
+
<output class="dg-excel-saved">{() => s.saved}</output>
|
|
502
|
+
</>
|
|
503
|
+
);
|
|
504
|
+
}
|
|
505
|
+
```
|
|
506
|
+
|
|
507
|
+
`PdfExport.tsx`
|
|
508
|
+
|
|
509
|
+
```tsx
|
|
510
|
+
import { reactive } from '@motifx/core';
|
|
511
|
+
import { DataGrid, type GridExportingEventArgs, type GridSummary } from '@motifx-community/ui';
|
|
512
|
+
import { exportDataGrid } from '@motifx-community/ui/pdf';
|
|
513
|
+
import type { jsPDF } from 'jspdf';
|
|
514
|
+
import type { Order } from './order';
|
|
515
|
+
import { columns, makeOrders } from './orders';
|
|
516
|
+
|
|
517
|
+
// jsPDF's own fonts write Latin-1 only: "İzmir" and "İlhan Koman" need a font that has their letters.
|
|
518
|
+
const FONT = 'https://cdn.jsdelivr.net/npm/@expo-google-fonts/noto-sans@0.2.3/';
|
|
519
|
+
let font: Promise<{ regular: string; bold: string }> | null = null;
|
|
520
|
+
|
|
521
|
+
async function base64(url: string): Promise<string> {
|
|
522
|
+
const bytes = new Uint8Array(await (await fetch(url)).arrayBuffer());
|
|
523
|
+
let text = '';
|
|
524
|
+
for (let i = 0; i < bytes.length; i += 0x8000) text += String.fromCharCode(...bytes.subarray(i, i + 0x8000));
|
|
525
|
+
return btoa(text);
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
/** Noto Sans in the document, fetched once; without the network the document keeps jsPDF's own font. */
|
|
529
|
+
async function useNotoSans(doc: jsPDF) {
|
|
530
|
+
font ??= Promise.all([base64(`${FONT}NotoSans_400Regular.ttf`), base64(`${FONT}NotoSans_700Bold.ttf`)]).then(([regular, bold]) => ({ regular, bold }));
|
|
531
|
+
try {
|
|
532
|
+
const { regular, bold } = await font;
|
|
533
|
+
doc.addFileToVFS('NotoSans-Regular.ttf', regular);
|
|
534
|
+
doc.addFont('NotoSans-Regular.ttf', 'NotoSans', 'normal');
|
|
535
|
+
doc.addFileToVFS('NotoSans-Bold.ttf', bold);
|
|
536
|
+
doc.addFont('NotoSans-Bold.ttf', 'NotoSans', 'bold');
|
|
537
|
+
doc.setFont('NotoSans', 'normal');
|
|
538
|
+
} catch {
|
|
539
|
+
font = null;
|
|
540
|
+
}
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
/** The toolbar's export menu with PDF: `onExporting` draws the grid on a jsPDF document and saves it. */
|
|
544
|
+
export default function PdfExport() {
|
|
545
|
+
const s = reactive({ saved: '' });
|
|
546
|
+
const byCity = columns.map((c) => (c.field === 'city' ? { ...c, groupIndex: 0 } : c));
|
|
547
|
+
const summary: GridSummary<Order> = {
|
|
548
|
+
totalItems: [{ column: 'amount', summaryType: 'sum' }],
|
|
549
|
+
groupItems: [
|
|
550
|
+
{ column: 'id', summaryType: 'count' },
|
|
551
|
+
{ column: 'amount', summaryType: 'sum', showInGroupFooter: true },
|
|
552
|
+
],
|
|
553
|
+
};
|
|
554
|
+
|
|
555
|
+
// As with DevExtreme, the grid raises onExporting for 'pdf' and the file is made here. jsPDF loads
|
|
556
|
+
// the first time someone exports.
|
|
557
|
+
const onExporting = async (e: GridExportingEventArgs) => {
|
|
558
|
+
if (e.format !== 'pdf') return;
|
|
559
|
+
const { jsPDF } = await import('jspdf');
|
|
560
|
+
const doc = new jsPDF({ orientation: 'landscape' });
|
|
561
|
+
await useNotoSans(doc);
|
|
562
|
+
doc.setFontSize(14);
|
|
563
|
+
doc.text('Orders by city', 14, 14);
|
|
564
|
+
const end = await exportDataGrid({
|
|
565
|
+
jsPDFDocument: doc,
|
|
566
|
+
component: e.component,
|
|
567
|
+
selectedRowsOnly: e.selectedRowsOnly,
|
|
568
|
+
topLeft: { y: 6 },
|
|
569
|
+
margin: 14,
|
|
570
|
+
indent: 4,
|
|
571
|
+
customizeCell: ({ gridCell, pdfCell }) => {
|
|
572
|
+
if (gridCell.rowType === 'group') pdfCell.backgroundColor = '#EEF2F8';
|
|
573
|
+
if (gridCell.rowType === 'data' && gridCell.column?.field === 'status' && gridCell.value === 'Cancelled') pdfCell.textColor = '#B42318';
|
|
574
|
+
},
|
|
575
|
+
});
|
|
576
|
+
doc.save('Orders.pdf');
|
|
577
|
+
s.saved = `Orders.pdf: ${doc.getNumberOfPages()} pages, the table ends on page ${end.page}`;
|
|
578
|
+
};
|
|
579
|
+
|
|
580
|
+
return (
|
|
581
|
+
<>
|
|
582
|
+
<DataGrid
|
|
583
|
+
class="dg-pdf"
|
|
584
|
+
style="block-size: 28rem"
|
|
585
|
+
rows={makeOrders(120)}
|
|
586
|
+
rowKey="id"
|
|
587
|
+
columns={byCity}
|
|
588
|
+
label="Orders for PDF"
|
|
589
|
+
locale="en"
|
|
590
|
+
summary={summary}
|
|
591
|
+
settings={{ exportButton: true, selection: 'multiple' }}
|
|
592
|
+
export={{ formats: ['pdf', 'csv'], allowExportSelectedData: true }}
|
|
593
|
+
onExporting={onExporting}
|
|
594
|
+
/>
|
|
595
|
+
<output class="dg-pdf-saved">{() => s.saved}</output>
|
|
596
|
+
</>
|
|
597
|
+
);
|
|
598
|
+
}
|
|
599
|
+
```
|