@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
package/docs/tabdocs.md
ADDED
|
@@ -0,0 +1,888 @@
|
|
|
1
|
+
# TabDocumentManager
|
|
2
|
+
|
|
3
|
+
> TabDocumentManager · @motifx-community/ui 0.1.0-beta.0
|
|
4
|
+
|
|
5
|
+
A document manager in the way code editors arrange files: documents in tabs, tabs in groups, groups split side by side and one under the other. A document's content is any component, a form, a grid or plain text, and it is moved, never made again, when its tab goes to another group. Everything the user does is a method too, asks first and reports after; the whole layout saves to JSON and comes back. Preview and pinned tabs, sizes and copies are on [Tabs](tabdocs-tabs.md); context menus, lists and keys on [Menus and keys](tabdocs-menus.md).
|
|
6
|
+
|
|
7
|
+
## Import
|
|
8
|
+
|
|
9
|
+
```tsx
|
|
10
|
+
import { TabDocument, TabDocumentManager } from '@motifx-community/ui';
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Documents, groups and splits
|
|
14
|
+
|
|
15
|
+
Make a manager, give it a size, and `open` documents in it. `split` opens a new group beside one; drag the line between two groups (or focus it and use the arrows), double click it to even the sizes, double click a tab to give its group all the room. The buttons at the end of each strip split and maximize.
|
|
16
|
+
|
|
17
|
+
```tsx
|
|
18
|
+
/** An order of the examples. */
|
|
19
|
+
export interface Order {
|
|
20
|
+
id: number;
|
|
21
|
+
customer: string;
|
|
22
|
+
city: string;
|
|
23
|
+
amount: number;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
const customers = ['Ada Lovelace', 'Alan Turing', 'Grace Hopper', 'Edsger Dijkstra', 'Barbara Liskov', 'Donald Knuth'];
|
|
27
|
+
const cities = ['İstanbul', 'Ankara', 'İzmir', 'Bursa', 'Antalya'];
|
|
28
|
+
|
|
29
|
+
/** `count` made-up orders, the same every time. */
|
|
30
|
+
export function makeOrders(count: number): Order[] {
|
|
31
|
+
return Array.from({ length: count }, (_, i) => ({
|
|
32
|
+
id: 1001 + i,
|
|
33
|
+
customer: customers[i % customers.length],
|
|
34
|
+
city: cities[(i * 7) % cities.length],
|
|
35
|
+
amount: Math.round(((i * 37) % 900) + 100),
|
|
36
|
+
}));
|
|
37
|
+
}
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
## Options
|
|
41
|
+
|
|
42
|
+
Every behaviour is a prop that takes a value or a function, followed live; a document's own `closable` and `contentLifetime` win over the manager's. Here Alpha cannot be closed and Gamma has unsaved changes.
|
|
43
|
+
|
|
44
|
+
```tsx
|
|
45
|
+
import type { ComponentBase } from '@motifx/core';
|
|
46
|
+
import { Button, confirm, DataGrid, FormLayout, type FormItem, type GridColumn } from '@motifx-community/ui';
|
|
47
|
+
import { makeOrders, type Order } from './orders';
|
|
48
|
+
|
|
49
|
+
const columns: GridColumn<Order>[] = [
|
|
50
|
+
{ field: 'id', title: 'No', type: 'number', width: 70 },
|
|
51
|
+
{ field: 'customer', title: 'Customer', width: 160 },
|
|
52
|
+
{ field: 'city', title: 'City', width: 110 },
|
|
53
|
+
{ field: 'amount', title: 'Amount', type: 'number', width: 100 },
|
|
54
|
+
];
|
|
55
|
+
|
|
56
|
+
/** A grid of orders that fills its tab. */
|
|
57
|
+
export function ordersGrid(count = 60): ComponentBase {
|
|
58
|
+
return <DataGrid rows={makeOrders(count)} rowKey="id" columns={columns} label="Orders" style="block-size: 100%" />;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/** The fields a customer is edited with. */
|
|
62
|
+
export interface Customer {
|
|
63
|
+
name: string;
|
|
64
|
+
email: string;
|
|
65
|
+
city: string;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/** The forms open over each customer: a copy of a document has a form of its own over the same object. */
|
|
69
|
+
const formsOf = new WeakMap<Customer, Set<FormLayout<Customer>>>();
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* A form over a customer: what is typed goes straight into it. The form reads the object as it is, so the other forms
|
|
73
|
+
* over the same customer are told to read the field again.
|
|
74
|
+
*/
|
|
75
|
+
export function customerForm(customer: Customer): ComponentBase {
|
|
76
|
+
const items: FormItem[] = [
|
|
77
|
+
{ field: 'name', label: 'Name', required: true },
|
|
78
|
+
{ field: 'email', label: 'Email', editor: 'email' },
|
|
79
|
+
{ field: 'city', label: 'City' },
|
|
80
|
+
];
|
|
81
|
+
const forms = formsOf.get(customer) ?? new Set<FormLayout<Customer>>();
|
|
82
|
+
formsOf.set(customer, forms);
|
|
83
|
+
return (
|
|
84
|
+
<div style="padding: var(--mx-space-4); max-inline-size: 32rem">
|
|
85
|
+
<FormLayout<Customer>
|
|
86
|
+
data={customer}
|
|
87
|
+
items={items}
|
|
88
|
+
ref={(form: FormLayout<Customer>) => {
|
|
89
|
+
forms.add(form);
|
|
90
|
+
form.motif.setDisposable(() => forms.delete(form));
|
|
91
|
+
}}
|
|
92
|
+
onFieldChanged={(e) => {
|
|
93
|
+
for (const other of forms) if (other.data === e.data && !other.isDisposed) other.refreshField(e.field);
|
|
94
|
+
}}
|
|
95
|
+
/>
|
|
96
|
+
</div>
|
|
97
|
+
);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/** A few paragraphs of plain text. */
|
|
101
|
+
export function notes(title: string): ComponentBase {
|
|
102
|
+
return (
|
|
103
|
+
<div style="padding: var(--mx-space-4); max-inline-size: 40rem">
|
|
104
|
+
<h3 style="margin-block-start: 0">{title}</h3>
|
|
105
|
+
<p>Any component can be a document: a form, a grid, a chart or plain text like this.</p>
|
|
106
|
+
<p>Drag the line between two groups, or focus it with Tab and use the arrow keys. A double click on it gives the groups the same size.</p>
|
|
107
|
+
</div>
|
|
108
|
+
);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
const CITIES = ['İstanbul', 'Ankara', 'İzmir', 'London', 'New York'];
|
|
112
|
+
|
|
113
|
+
/** A customer card: text fields and a drop-down list of cities over a reactive customer, and a button that asks in a dialog. */
|
|
114
|
+
export function customerCard(customer: Customer): ComponentBase {
|
|
115
|
+
const items: FormItem[] = [
|
|
116
|
+
{ field: 'name', label: 'Name', required: true },
|
|
117
|
+
{ field: 'email', label: 'Email', editor: 'email' },
|
|
118
|
+
{ field: 'city', label: 'City', editor: 'dropdown', editorProps: { items: CITIES } },
|
|
119
|
+
];
|
|
120
|
+
let card: ComponentBase | null = null;
|
|
121
|
+
// The dialog opens where the card is: in a new window, there.
|
|
122
|
+
const clear = async () => {
|
|
123
|
+
if (await confirm('Clear the customer card?', { title: 'Clear', host: card! })) Object.assign(customer, { name: '', email: '', city: '' });
|
|
124
|
+
};
|
|
125
|
+
return (
|
|
126
|
+
<div ref={(c: ComponentBase) => (card = c)} style="padding: var(--mx-space-4); max-inline-size: 32rem">
|
|
127
|
+
<FormLayout data={customer} items={items} />
|
|
128
|
+
<Button text="Clear…" variant="outline" onclick={clear} />
|
|
129
|
+
</div>
|
|
130
|
+
);
|
|
131
|
+
}
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
## From code, and the events
|
|
135
|
+
|
|
136
|
+
Each thing the user does is also a method (`open`, `close`, `activate`, `split`, `move`, `closeGroup`, `focusGroup`, `maximizeGroup`, `restoreGroups`, `evenSizes`, `resizeGroup`), asks first through a cancelable `on…ing` event and reports through `on…ed`, with `byUser` telling the two apart.
|
|
137
|
+
|
|
138
|
+
```tsx
|
|
139
|
+
import type { ComponentBase } from '@motifx/core';
|
|
140
|
+
import { Button, confirm, DataGrid, FormLayout, type FormItem, type GridColumn } from '@motifx-community/ui';
|
|
141
|
+
import { makeOrders, type Order } from './orders';
|
|
142
|
+
|
|
143
|
+
const columns: GridColumn<Order>[] = [
|
|
144
|
+
{ field: 'id', title: 'No', type: 'number', width: 70 },
|
|
145
|
+
{ field: 'customer', title: 'Customer', width: 160 },
|
|
146
|
+
{ field: 'city', title: 'City', width: 110 },
|
|
147
|
+
{ field: 'amount', title: 'Amount', type: 'number', width: 100 },
|
|
148
|
+
];
|
|
149
|
+
|
|
150
|
+
/** A grid of orders that fills its tab. */
|
|
151
|
+
export function ordersGrid(count = 60): ComponentBase {
|
|
152
|
+
return <DataGrid rows={makeOrders(count)} rowKey="id" columns={columns} label="Orders" style="block-size: 100%" />;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
/** The fields a customer is edited with. */
|
|
156
|
+
export interface Customer {
|
|
157
|
+
name: string;
|
|
158
|
+
email: string;
|
|
159
|
+
city: string;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
/** The forms open over each customer: a copy of a document has a form of its own over the same object. */
|
|
163
|
+
const formsOf = new WeakMap<Customer, Set<FormLayout<Customer>>>();
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* A form over a customer: what is typed goes straight into it. The form reads the object as it is, so the other forms
|
|
167
|
+
* over the same customer are told to read the field again.
|
|
168
|
+
*/
|
|
169
|
+
export function customerForm(customer: Customer): ComponentBase {
|
|
170
|
+
const items: FormItem[] = [
|
|
171
|
+
{ field: 'name', label: 'Name', required: true },
|
|
172
|
+
{ field: 'email', label: 'Email', editor: 'email' },
|
|
173
|
+
{ field: 'city', label: 'City' },
|
|
174
|
+
];
|
|
175
|
+
const forms = formsOf.get(customer) ?? new Set<FormLayout<Customer>>();
|
|
176
|
+
formsOf.set(customer, forms);
|
|
177
|
+
return (
|
|
178
|
+
<div style="padding: var(--mx-space-4); max-inline-size: 32rem">
|
|
179
|
+
<FormLayout<Customer>
|
|
180
|
+
data={customer}
|
|
181
|
+
items={items}
|
|
182
|
+
ref={(form: FormLayout<Customer>) => {
|
|
183
|
+
forms.add(form);
|
|
184
|
+
form.motif.setDisposable(() => forms.delete(form));
|
|
185
|
+
}}
|
|
186
|
+
onFieldChanged={(e) => {
|
|
187
|
+
for (const other of forms) if (other.data === e.data && !other.isDisposed) other.refreshField(e.field);
|
|
188
|
+
}}
|
|
189
|
+
/>
|
|
190
|
+
</div>
|
|
191
|
+
);
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
/** A few paragraphs of plain text. */
|
|
195
|
+
export function notes(title: string): ComponentBase {
|
|
196
|
+
return (
|
|
197
|
+
<div style="padding: var(--mx-space-4); max-inline-size: 40rem">
|
|
198
|
+
<h3 style="margin-block-start: 0">{title}</h3>
|
|
199
|
+
<p>Any component can be a document: a form, a grid, a chart or plain text like this.</p>
|
|
200
|
+
<p>Drag the line between two groups, or focus it with Tab and use the arrow keys. A double click on it gives the groups the same size.</p>
|
|
201
|
+
</div>
|
|
202
|
+
);
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
const CITIES = ['İstanbul', 'Ankara', 'İzmir', 'London', 'New York'];
|
|
206
|
+
|
|
207
|
+
/** A customer card: text fields and a drop-down list of cities over a reactive customer, and a button that asks in a dialog. */
|
|
208
|
+
export function customerCard(customer: Customer): ComponentBase {
|
|
209
|
+
const items: FormItem[] = [
|
|
210
|
+
{ field: 'name', label: 'Name', required: true },
|
|
211
|
+
{ field: 'email', label: 'Email', editor: 'email' },
|
|
212
|
+
{ field: 'city', label: 'City', editor: 'dropdown', editorProps: { items: CITIES } },
|
|
213
|
+
];
|
|
214
|
+
let card: ComponentBase | null = null;
|
|
215
|
+
// The dialog opens where the card is: in a new window, there.
|
|
216
|
+
const clear = async () => {
|
|
217
|
+
if (await confirm('Clear the customer card?', { title: 'Clear', host: card! })) Object.assign(customer, { name: '', email: '', city: '' });
|
|
218
|
+
};
|
|
219
|
+
return (
|
|
220
|
+
<div ref={(c: ComponentBase) => (card = c)} style="padding: var(--mx-space-4); max-inline-size: 32rem">
|
|
221
|
+
<FormLayout data={customer} items={items} />
|
|
222
|
+
<Button text="Clear…" variant="outline" onclick={clear} />
|
|
223
|
+
</div>
|
|
224
|
+
);
|
|
225
|
+
}
|
|
226
|
+
```
|
|
227
|
+
|
|
228
|
+
## Unsaved changes
|
|
229
|
+
|
|
230
|
+
`dirty` follows a function of the form's data: the tab shows a dot in place of its close button. `onClosing` sets `e.promise` to ask; the document closes when the promise says `true`.
|
|
231
|
+
|
|
232
|
+
```tsx
|
|
233
|
+
import type { ComponentBase } from '@motifx/core';
|
|
234
|
+
import { Button, confirm, DataGrid, FormLayout, type FormItem, type GridColumn } from '@motifx-community/ui';
|
|
235
|
+
import { makeOrders, type Order } from './orders';
|
|
236
|
+
|
|
237
|
+
const columns: GridColumn<Order>[] = [
|
|
238
|
+
{ field: 'id', title: 'No', type: 'number', width: 70 },
|
|
239
|
+
{ field: 'customer', title: 'Customer', width: 160 },
|
|
240
|
+
{ field: 'city', title: 'City', width: 110 },
|
|
241
|
+
{ field: 'amount', title: 'Amount', type: 'number', width: 100 },
|
|
242
|
+
];
|
|
243
|
+
|
|
244
|
+
/** A grid of orders that fills its tab. */
|
|
245
|
+
export function ordersGrid(count = 60): ComponentBase {
|
|
246
|
+
return <DataGrid rows={makeOrders(count)} rowKey="id" columns={columns} label="Orders" style="block-size: 100%" />;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
/** The fields a customer is edited with. */
|
|
250
|
+
export interface Customer {
|
|
251
|
+
name: string;
|
|
252
|
+
email: string;
|
|
253
|
+
city: string;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
/** The forms open over each customer: a copy of a document has a form of its own over the same object. */
|
|
257
|
+
const formsOf = new WeakMap<Customer, Set<FormLayout<Customer>>>();
|
|
258
|
+
|
|
259
|
+
/**
|
|
260
|
+
* A form over a customer: what is typed goes straight into it. The form reads the object as it is, so the other forms
|
|
261
|
+
* over the same customer are told to read the field again.
|
|
262
|
+
*/
|
|
263
|
+
export function customerForm(customer: Customer): ComponentBase {
|
|
264
|
+
const items: FormItem[] = [
|
|
265
|
+
{ field: 'name', label: 'Name', required: true },
|
|
266
|
+
{ field: 'email', label: 'Email', editor: 'email' },
|
|
267
|
+
{ field: 'city', label: 'City' },
|
|
268
|
+
];
|
|
269
|
+
const forms = formsOf.get(customer) ?? new Set<FormLayout<Customer>>();
|
|
270
|
+
formsOf.set(customer, forms);
|
|
271
|
+
return (
|
|
272
|
+
<div style="padding: var(--mx-space-4); max-inline-size: 32rem">
|
|
273
|
+
<FormLayout<Customer>
|
|
274
|
+
data={customer}
|
|
275
|
+
items={items}
|
|
276
|
+
ref={(form: FormLayout<Customer>) => {
|
|
277
|
+
forms.add(form);
|
|
278
|
+
form.motif.setDisposable(() => forms.delete(form));
|
|
279
|
+
}}
|
|
280
|
+
onFieldChanged={(e) => {
|
|
281
|
+
for (const other of forms) if (other.data === e.data && !other.isDisposed) other.refreshField(e.field);
|
|
282
|
+
}}
|
|
283
|
+
/>
|
|
284
|
+
</div>
|
|
285
|
+
);
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
/** A few paragraphs of plain text. */
|
|
289
|
+
export function notes(title: string): ComponentBase {
|
|
290
|
+
return (
|
|
291
|
+
<div style="padding: var(--mx-space-4); max-inline-size: 40rem">
|
|
292
|
+
<h3 style="margin-block-start: 0">{title}</h3>
|
|
293
|
+
<p>Any component can be a document: a form, a grid, a chart or plain text like this.</p>
|
|
294
|
+
<p>Drag the line between two groups, or focus it with Tab and use the arrow keys. A double click on it gives the groups the same size.</p>
|
|
295
|
+
</div>
|
|
296
|
+
);
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
const CITIES = ['İstanbul', 'Ankara', 'İzmir', 'London', 'New York'];
|
|
300
|
+
|
|
301
|
+
/** A customer card: text fields and a drop-down list of cities over a reactive customer, and a button that asks in a dialog. */
|
|
302
|
+
export function customerCard(customer: Customer): ComponentBase {
|
|
303
|
+
const items: FormItem[] = [
|
|
304
|
+
{ field: 'name', label: 'Name', required: true },
|
|
305
|
+
{ field: 'email', label: 'Email', editor: 'email' },
|
|
306
|
+
{ field: 'city', label: 'City', editor: 'dropdown', editorProps: { items: CITIES } },
|
|
307
|
+
];
|
|
308
|
+
let card: ComponentBase | null = null;
|
|
309
|
+
// The dialog opens where the card is: in a new window, there.
|
|
310
|
+
const clear = async () => {
|
|
311
|
+
if (await confirm('Clear the customer card?', { title: 'Clear', host: card! })) Object.assign(customer, { name: '', email: '', city: '' });
|
|
312
|
+
};
|
|
313
|
+
return (
|
|
314
|
+
<div ref={(c: ComponentBase) => (card = c)} style="padding: var(--mx-space-4); max-inline-size: 32rem">
|
|
315
|
+
<FormLayout data={customer} items={items} />
|
|
316
|
+
<Button text="Clear…" variant="outline" onclick={clear} />
|
|
317
|
+
</div>
|
|
318
|
+
);
|
|
319
|
+
}
|
|
320
|
+
```
|
|
321
|
+
|
|
322
|
+
## Saving and restoring the layout
|
|
323
|
+
|
|
324
|
+
`saveLayout()` writes plain JSON: the tree of splits with each child's share, the groups with their documents (`id`, `type`, `title`, `state`, `pinned`, `preview`), the active and recently used tabs, the active and maximized group. `loadLayout(json, factory)` builds it again; the factory makes each document by its `type`.
|
|
325
|
+
|
|
326
|
+
```tsx
|
|
327
|
+
/** An order of the examples. */
|
|
328
|
+
export interface Order {
|
|
329
|
+
id: number;
|
|
330
|
+
customer: string;
|
|
331
|
+
city: string;
|
|
332
|
+
amount: number;
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
const customers = ['Ada Lovelace', 'Alan Turing', 'Grace Hopper', 'Edsger Dijkstra', 'Barbara Liskov', 'Donald Knuth'];
|
|
336
|
+
const cities = ['İstanbul', 'Ankara', 'İzmir', 'Bursa', 'Antalya'];
|
|
337
|
+
|
|
338
|
+
/** `count` made-up orders, the same every time. */
|
|
339
|
+
export function makeOrders(count: number): Order[] {
|
|
340
|
+
return Array.from({ length: count }, (_, i) => ({
|
|
341
|
+
id: 1001 + i,
|
|
342
|
+
customer: customers[i % customers.length],
|
|
343
|
+
city: cities[(i * 7) % cities.length],
|
|
344
|
+
amount: Math.round(((i * 37) % 900) + 100),
|
|
345
|
+
}));
|
|
346
|
+
}
|
|
347
|
+
```
|
|
348
|
+
|
|
349
|
+
## Content lifetime
|
|
350
|
+
|
|
351
|
+
`contentLifetime` decides when a document's content is built and how long it lives. Whatever it is, moving a tab or splitting a group never builds the content again: the same component goes along.
|
|
352
|
+
|
|
353
|
+
| Lifetime | What happens |
|
|
354
|
+
| --- | --- |
|
|
355
|
+
| `keep (default)` | Built when the document opens; lives, with its state, until it closes. |
|
|
356
|
+
| `lazy` | Built the first time it is shown; then kept. |
|
|
357
|
+
| `dispose` | Built when shown, disposed when hidden; made again from `content` (or the manager's `factory`) the next time, with the document's `state`. A component given as it is cannot be made again, so it is kept. |
|
|
358
|
+
|
|
359
|
+
## Keyboard
|
|
360
|
+
|
|
361
|
+
The keys work while focus is inside the manager; each is a list of chords in `keys`, so any of them can be changed or turned off. A browser tab keeps Ctrl+W, Ctrl+Tab, Ctrl+Page Up / Down and often Ctrl+1…9 for itself, so the keys a manager starts with are ones a browser tab lets through, and the desktop key in brackets works too where it can (an installed app takes the desktop keys, `keyPreset`). The recently used list, back and forward, reopening and the other keys are on [Menus and keys](tabdocs-menus.md#keyboard).
|
|
362
|
+
|
|
363
|
+
| Key | What it does |
|
|
364
|
+
| --- | --- |
|
|
365
|
+
| `Alt + Page Down / Page Up (Ctrl + Page Down / Up)` | The next / previous tab of the active group, around the ends (`nextTab`, `previousTab`). |
|
|
366
|
+
| `Ctrl + Alt + W (Ctrl + W)` | Closes the active document (`closeTab`). |
|
|
367
|
+
| `Ctrl + Alt + 1 … 9 (Ctrl + 1 … 9)` | Focuses group 1 to 9 (`focusGroup`, written `Ctrl+Alt+{n}`). |
|
|
368
|
+
| `Ctrl + \` | Splits the active group to the right; the active document goes along when it is not the only one, or a copy of it (`splitRight`). |
|
|
369
|
+
| `Right / Left, Home / End (on a tab)` | The next / previous, first / last tab; it is activated too unless `activation` is manual (`stripNext`, `stripPrevious`, `stripFirst`, `stripLast`). |
|
|
370
|
+
| `Enter, Space (on a tab)` | Activates it. |
|
|
371
|
+
| `Delete (on a tab)` | Closes it (`closeFocusedTab`). |
|
|
372
|
+
| `Arrows, Home / End (on a splitter)` | Make the group before it smaller or larger by `resizeStep`, as small or as large as it can be (`resizeSmaller`, `resizeLarger`, `resizeMin`, `resizeMax`). |
|
|
373
|
+
| `Tab` | From the strip (one stop: the active tab) to the group buttons, the content, the splitter, the next group. |
|
|
374
|
+
|
|
375
|
+
## Accessibility
|
|
376
|
+
|
|
377
|
+
| Topic | How |
|
|
378
|
+
| --- | --- |
|
|
379
|
+
| `Groups` | Each group is a `group` named “Group 1”, “Group 2”…; with `label` the manager is a `region`. |
|
|
380
|
+
| `Tabs` | A `tablist` per group (“Documents in group 1”) of `tab`s, each controlling its `tabpanel`; a roving `tabindex` keeps one Tab stop per strip. A tab says “unsaved changes” while its document is dirty; `aria-keyshortcuts` names the key that closes it. |
|
|
381
|
+
| `Splitters` | `separator`s with `aria-orientation`, `aria-valuenow` (the share of the group before it, 0 to 100) and `aria-controls`. |
|
|
382
|
+
| `Announcements` | A polite live region says what was opened, closed, moved, split, maximized or restored (`announce`). |
|
|
383
|
+
| `Focus` | A group remembers what had focus in it; closing the focused tab moves focus to the tab that takes its place. |
|
|
384
|
+
|
|
385
|
+
## Localization
|
|
386
|
+
|
|
387
|
+
Every text comes from `uiLocale.strings` (`tabDocs…`: the group and strip names, “No open documents”, “unsaved changes”, the buttons, the announcements), in English and Turkish; `texts` changes some for one manager.
|
|
388
|
+
|
|
389
|
+
## Styling
|
|
390
|
+
|
|
391
|
+
| Hook | What it is |
|
|
392
|
+
| --- | --- |
|
|
393
|
+
| `.mx-tabdocs` | The root; `data-maximized` while a group is maximized, `data-resizing` while a splitter is dragged; `data-tab-size`, `data-pinned-size`, `data-pinned-row`, `data-wrap`, `data-scroll-buttons` from the props. |
|
|
394
|
+
| `.mx-tabdocs__split` | A split; `data-orientation`. |
|
|
395
|
+
| `.mx-tabdocs__sash` | A splitter (`role="separator"`). |
|
|
396
|
+
| `.mx-tabdocs__group` | A group; `data-active`, `data-empty`, `data-maximized`, `data-locked`. |
|
|
397
|
+
| `.mx-tabdocs__bar, __strip, __tabs, __pinned, __row, __scroll, __actions` | The strip row; the tab list with its scroll buttons; the `tablist`, its pinned row and the row of the others; the kit Toolbar with the group buttons. |
|
|
398
|
+
| `.mx-tabdocs__tab` | A tab; `aria-selected`, `data-dirty`, `data-close` (`always`, `active`), `data-pinned`, `data-preview`, `data-tone`, `data-icon`. |
|
|
399
|
+
| `.mx-tabdocs__icon, __letter, __title, __description, __badge, __pin, __close, __dirty` | The parts of a tab; a badge that is a dot has `data-dot`. |
|
|
400
|
+
| `.mx-tabdocs__popup, __list-title, __list-note, __list-dirty` | The "…" and recently used lists. |
|
|
401
|
+
| `.mx-tabdocs__panels, __panel, __empty` | The content area, a document's `tabpanel`, the empty group's text. |
|
|
402
|
+
|
|
403
|
+
### Component tokens
|
|
404
|
+
|
|
405
|
+
| Token | What it sets |
|
|
406
|
+
| --- | --- |
|
|
407
|
+
| `tabdocs.manager, group, bar, pinned, panel, empty` | Units: behind the groups, a group, its strip and the line under it, the pinned tabs' row, a panel, an empty group's text. |
|
|
408
|
+
| `tabdocs.tab, indicator, title, letter, pin, description, icon, badge, close, dirty` | Units: a tab (`hover`, `selected`, `before-selected`, `focus`, `dragging`, `title` …; its end side is the line between tabs), the bar on it (`selected`, `active` in the active group), its parts in their tones. |
|
|
409
|
+
| `tabdocs.scroll, scroll-icon, scrollbar, thumb, count, sash, sash-line` | Units: the scroll buttons, the thin scrollbar, the count on "…", a splitter and its line (`across`, `active`). |
|
|
410
|
+
| `tabdocs.tabs-height, tab-inset, tab-spacing, title-max, title-min, icon-room, close-room, pin-room, sash-thickness` | Sizes the layout counts with (a shrinking tab keeps its icon, its close button and a few letters). |
|
|
411
|
+
| `tabdocs.indicator-inset, indicator-inset-start, indicator-inset-end` | Where the bar on a tab stands. |
|
|
412
|
+
| `tabdocs.focus-width, focus-offset, touch-*` | The ring's room at a small toolbar's ends; the sizes for a finger. |
|
|
413
|
+
|
|
414
|
+
## API reference
|
|
415
|
+
|
|
416
|
+
### Props
|
|
417
|
+
|
|
418
|
+
| Prop | Type | Default | Description |
|
|
419
|
+
| --- | --- | --- | --- |
|
|
420
|
+
| `label` | `Bind<string>` | `''` | Names the manager: it becomes a `region` landmark. The same property as `text`. |
|
|
421
|
+
| `closeButton` | `Bind<'always' \| 'active' \| 'never'>` | `'always'` | Where tabs show a close button: every tab, the active one and the one under the pointer, none. A document with `closable: false` shows none. |
|
|
422
|
+
| `contentLifetime` | `Bind<'keep' \| 'lazy' \| 'dispose'>` | `'keep'` | When content is built and how long it lives (see below). A document's own value wins. |
|
|
423
|
+
| `closeEmptyGroups` | `Bind<boolean>` | `true` | A group left without documents closes; the last group never does. |
|
|
424
|
+
| `openPosition` | `Bind<'afterActive' \| 'end' \| 'start'>` | `'afterActive'` | Where `open` puts a tab when no `index` is given. |
|
|
425
|
+
| `afterClose` | `Bind<'recent' \| 'left' \| 'right'>` | `'recent'` | Which tab becomes active when the active one closes: the one used last, or a neighbour. |
|
|
426
|
+
| `activation` | `Bind<'auto' \| 'manual'>` | `'auto'` | `auto`: the arrow keys in a strip activate the tab they reach. `manual`: Enter or Space does. |
|
|
427
|
+
| `minGroupWidth, minGroupHeight` | `Bind<number>` | `160`, `100` | The smallest size of a group, in pixels; a splitter stops there. |
|
|
428
|
+
| `resizeStep` | `Bind<number>` | `10` | How far a splitter key moves a splitter, in pixels. |
|
|
429
|
+
| `groupActions` | `Bind<boolean>` | `true` | The split, maximize and "…" buttons at the end of each strip. |
|
|
430
|
+
| `maximizeOnDoubleClick` | `Bind<boolean>` | `true` | A double click on a tab maximizes its group, or restores the groups (a preview tab is kept open instead). |
|
|
431
|
+
| `keyPreset` | `Bind<'auto' \| 'browser' \| 'desktop'>` | `'auto'` | The keys a manager starts with: keys a browser tab lets through, or a desktop editor's; `auto` takes the desktop keys in an installed app. |
|
|
432
|
+
| `keys` | `Bind<Partial<TabDocumentKeys>>` | see Keyboard | Changes some keys; the others keep the preset's. An empty list turns a key off. |
|
|
433
|
+
| `factory` | `Bind<(doc) => ComponentBase \| null>` | `null` | Makes the content of a document that brings none, usually by its `type`. |
|
|
434
|
+
| `texts` | `Bind<Partial<UiStrings>>` | `{}` | Texts for this manager only, over `uiLocale.strings`. |
|
|
435
|
+
| `announce` | `Bind<boolean>` | `true` | Opened, closed, moved, split, maximized: said politely to screen readers. |
|
|
436
|
+
| `enabled / disabled, visible, tabStop, tabIndex` | see Control | | The shared properties of every control. |
|
|
437
|
+
|
|
438
|
+
### TabDocument
|
|
439
|
+
|
|
440
|
+
| Field | Type | Description |
|
|
441
|
+
| --- | --- | --- |
|
|
442
|
+
| `id` | `string` | Stays the same for the document's life; made up when left out. `findDocument(id)` finds it. |
|
|
443
|
+
| `type` | `string` | The key a layout is restored by: the `loadLayout` factory and the manager's `factory` read it. |
|
|
444
|
+
| `title, description` | `Bind<string>` | The tab's text; the description follows it, quieter, and tells two documents of the same title apart. |
|
|
445
|
+
| `icon, badge` | `Bind<IconSource \| null>`, `Bind<string \| number \| null>` | An icon before the title; a short text or count after it. |
|
|
446
|
+
| `tooltip` | `Bind<string>` | Shown when the pointer rests on the tab or the tab has focus. Default: the title and the description. |
|
|
447
|
+
| `dirty` | `Bind<boolean>` | Unsaved changes: a dot takes the close button's place (the button comes back under the pointer), and screen readers hear “unsaved changes”. |
|
|
448
|
+
| `closable` | `Bind<boolean>` | Default `true`. `false`: no close button, and the user cannot close it (code still can). |
|
|
449
|
+
| `pinned, preview` | `Bind<boolean>` | A pinned tab stays at the start; a preview tab gives its place to the next preview. Saved with the layout. See [Tabs](tabdocs-tabs.md). |
|
|
450
|
+
| `badge, tone, actions, clone, allowDuplicate` | | A count or a dot, a colour, toolbar buttons while active, a copy's content. See [Tabs](tabdocs-tabs.md) and [Menus and keys](tabdocs-menus.md). |
|
|
451
|
+
| `contentLifetime` | `Bind<ContentLifetime \| undefined>` | This document's own lifetime; `undefined` follows the manager. |
|
|
452
|
+
| `content` | `ComponentBase \| (doc) => ComponentBase` | The content: a component, or a function that makes it (and makes it again after `dispose`). |
|
|
453
|
+
| `state` | `Bind<unknown>` | The app's own data for the document, saved with the layout. |
|
|
454
|
+
| `manager, group, isOpen, isActive, contentComponent` | read-only, reactive | Where it is open, and the content made for it. |
|
|
455
|
+
| `activate(focus?), close()` | `boolean`, `Promise<boolean>` | The same as the manager's methods. |
|
|
456
|
+
|
|
457
|
+
### Properties
|
|
458
|
+
|
|
459
|
+
| Property | Access | Description |
|
|
460
|
+
| --- | --- | --- |
|
|
461
|
+
| `every prop above` | read/write, reactive | A value or a function, like the prop. |
|
|
462
|
+
| `groups` | read-only, reactive | The groups in layout order: left to right, top to bottom. |
|
|
463
|
+
| `documents` | read-only, reactive | Every open document, group by group. |
|
|
464
|
+
| `activeGroup, activeDocument` | read-only, reactive | The group that has focus or had it last, and its active document. |
|
|
465
|
+
| `maximizedGroup` | read-only, reactive | The maximized group, `null` when none is. |
|
|
466
|
+
| `recentDocuments, closedDocuments, canGoBack, canGoForward` | read-only, reactive | The documents used last, the ones `reopenClosed` can open, and the history. See [Menus and keys](tabdocs-menus.md). |
|
|
467
|
+
| `TabDocumentManager.browserKeys, TabDocumentManager.desktopKeys` | static | The two key presets. |
|
|
468
|
+
|
|
469
|
+
### TabGroup
|
|
470
|
+
|
|
471
|
+
| Member | Access | Description |
|
|
472
|
+
| --- | --- | --- |
|
|
473
|
+
| `documents, activeDocument, recentDocuments` | read-only, reactive | In strip order; the active one; the one used last first. |
|
|
474
|
+
| `index, isActive, isMaximized, isEmpty` | read-only, reactive | Its place in `groups`, from 0, and its state. |
|
|
475
|
+
| `locked` | read/write, reactive | A locked group takes no document opened without naming the group. `lock()` and `unlock()` ask first and announce it. |
|
|
476
|
+
| `previewDocument` | read-only, reactive | The group's preview tab's document, if it has one. |
|
|
477
|
+
| `open(doc, options?), activate(doc), closeAll(), close(), split(direction, doc?), maximize(), lock(), unlock(), focus()` | | The manager's methods for this group. |
|
|
478
|
+
|
|
479
|
+
### Methods
|
|
480
|
+
|
|
481
|
+
| Method | Returns | Description |
|
|
482
|
+
| --- | --- | --- |
|
|
483
|
+
| `open(doc, { group?, index?, active?, focus? })` | `TabDocument \| null` | Opens a `TabDocument` (or one made from options) in a group, the active one by default; a document already open is activated. `null` when `onOpening` cancels. |
|
|
484
|
+
| `close(doc)` | `Promise<boolean>` | Closes as the close button does; `false` when `onClosing` keeps it. |
|
|
485
|
+
| `closeAll(group?)` | `Promise<boolean>` | Closes the documents of a group, or of all of them; `false` when some stay. |
|
|
486
|
+
| `activate(doc, focus?)` | `boolean` | Makes it its group's active tab and its group the active group; `focus` moves focus into the content. |
|
|
487
|
+
| `activateNext(group?, focus?), activatePrevious(group?, focus?)` | `boolean` | The next or previous tab, around the ends (Ctrl + Page Down / Up). |
|
|
488
|
+
| `move(doc, group, index?)` | `boolean` | To another place in its group, or to another group. The content goes along as it is. |
|
|
489
|
+
| `split(group, direction, doc?)` | `TabGroup \| null` | A new group on the `'left'`, `'right'`, `'up'` or `'down'` side; `doc` moves into it. `group` `null`: along that edge of the whole layout. |
|
|
490
|
+
| `closeGroup(group)` | `Promise<boolean>` | Closes its documents, then the group. The last group stays, empty. |
|
|
491
|
+
| `focusGroup(group \| index)` | `boolean` | Makes it active and focuses what had focus in it last. |
|
|
492
|
+
| `maximizeGroup(group), restoreGroups()` | `boolean` | One group takes all the room; the others wait, out of sight, as they were. |
|
|
493
|
+
| `evenSizes()` | `boolean` | Every group of every split the same size. |
|
|
494
|
+
| `resizeGroup(group, size)` | `boolean` | A group's size along its split: pixels or a share (`'30%'`); the neighbour after it gives or takes the room. |
|
|
495
|
+
| `findDocument(id), contentOf(doc)` | `TabDocument \| null`, `ComponentBase \| null` | |
|
|
496
|
+
| `saveLayout()` | `TabLayout` | The layout as plain JSON (see below). |
|
|
497
|
+
| `loadLayout(layout, factory?)` | `boolean` | Puts a saved layout in place of the current one, whose documents close without asking. `factory(saved)` returns the document, its options or its content. |
|
|
498
|
+
|
|
499
|
+
### Events
|
|
500
|
+
|
|
501
|
+
| Event | What it carries |
|
|
502
|
+
| --- | --- |
|
|
503
|
+
| `onOpening(e), onOpened(e)` | `{ document, group, index, active, byUser }`; `opening` is cancelable and may change `group` and `index`. |
|
|
504
|
+
| `onClosing(e), onClosed(e)` | `{ document, group, index, byUser }`; `closing` is cancelable, or sets `e.promise` (`Promise<boolean>`) to ask first. |
|
|
505
|
+
| `onDocumentActivating(e), onDocumentActivated(e)` | `{ document, previous, group, byUser }`; `activating` (a tab is selected) is cancelable; `activated` also runs when another group becomes active. |
|
|
506
|
+
| `onMoving(e), onMoved(e)` | `{ document, from, fromIndex, to, toIndex, byUser }`; `moving` is cancelable. |
|
|
507
|
+
| `onSplitting(e), onSplit(e)` | `{ group, direction, document, byUser }` (and `newGroup` after); `splitting` is cancelable. `group` is `null` when the new group goes along an edge of the whole layout. |
|
|
508
|
+
| `onLayoutChanging(e), onLayoutChanged(e)` | `{ change, group, byUser }`, `change` one of `'split'`, `'closeGroup'`, `'resize'`, `'evenSizes'`, `'maximize'`, `'restore'`, `'move'` (a whole group moved or merged), `'load'`; `changing` is cancelable (a split asks through `onSplitting`). |
|
|
509
|
+
|
|
510
|
+
## Example files
|
|
511
|
+
|
|
512
|
+
`Overview.tsx`
|
|
513
|
+
|
|
514
|
+
```tsx
|
|
515
|
+
import { reactive } from '@motifx/core';
|
|
516
|
+
import { TabDocument, TabDocumentManager } from '@motifx-community/ui';
|
|
517
|
+
import { customerForm, notes, ordersGrid } from './contents';
|
|
518
|
+
|
|
519
|
+
/** Three kinds of content in two groups: a form, a grid and plain text. */
|
|
520
|
+
export default function Overview() {
|
|
521
|
+
const docs = new TabDocumentManager({ label: 'Workspace' });
|
|
522
|
+
docs.element.style.cssText = 'block-size: 28rem; inline-size: 100%';
|
|
523
|
+
|
|
524
|
+
const ada = reactive({ name: 'Ada Lovelace', email: 'ada@example.com', city: 'London' });
|
|
525
|
+
docs.open(new TabDocument({ id: 'ada', type: 'customer', title: () => ada.name || 'New customer', description: 'Customers', content: () => customerForm(ada) }));
|
|
526
|
+
docs.open(new TabDocument({ id: 'orders', type: 'orders', title: 'Orders', badge: 60, content: () => ordersGrid() }));
|
|
527
|
+
const readme = docs.open(new TabDocument({ id: 'readme', type: 'notes', title: 'Read me', content: () => notes('Read me') }))!;
|
|
528
|
+
docs.split(docs.groups[0], 'right', readme);
|
|
529
|
+
docs.activate(docs.findDocument('orders')!);
|
|
530
|
+
|
|
531
|
+
return <>{docs}</>;
|
|
532
|
+
}
|
|
533
|
+
```
|
|
534
|
+
|
|
535
|
+
`contents.tsx`
|
|
536
|
+
|
|
537
|
+
```tsx
|
|
538
|
+
import type { ComponentBase } from '@motifx/core';
|
|
539
|
+
import { Button, confirm, DataGrid, FormLayout, type FormItem, type GridColumn } from '@motifx-community/ui';
|
|
540
|
+
import { makeOrders, type Order } from './orders';
|
|
541
|
+
|
|
542
|
+
const columns: GridColumn<Order>[] = [
|
|
543
|
+
{ field: 'id', title: 'No', type: 'number', width: 70 },
|
|
544
|
+
{ field: 'customer', title: 'Customer', width: 160 },
|
|
545
|
+
{ field: 'city', title: 'City', width: 110 },
|
|
546
|
+
{ field: 'amount', title: 'Amount', type: 'number', width: 100 },
|
|
547
|
+
];
|
|
548
|
+
|
|
549
|
+
/** A grid of orders that fills its tab. */
|
|
550
|
+
export function ordersGrid(count = 60): ComponentBase {
|
|
551
|
+
return <DataGrid rows={makeOrders(count)} rowKey="id" columns={columns} label="Orders" style="block-size: 100%" />;
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
/** The fields a customer is edited with. */
|
|
555
|
+
export interface Customer {
|
|
556
|
+
name: string;
|
|
557
|
+
email: string;
|
|
558
|
+
city: string;
|
|
559
|
+
}
|
|
560
|
+
|
|
561
|
+
/** The forms open over each customer: a copy of a document has a form of its own over the same object. */
|
|
562
|
+
const formsOf = new WeakMap<Customer, Set<FormLayout<Customer>>>();
|
|
563
|
+
|
|
564
|
+
/**
|
|
565
|
+
* A form over a customer: what is typed goes straight into it. The form reads the object as it is, so the other forms
|
|
566
|
+
* over the same customer are told to read the field again.
|
|
567
|
+
*/
|
|
568
|
+
export function customerForm(customer: Customer): ComponentBase {
|
|
569
|
+
const items: FormItem[] = [
|
|
570
|
+
{ field: 'name', label: 'Name', required: true },
|
|
571
|
+
{ field: 'email', label: 'Email', editor: 'email' },
|
|
572
|
+
{ field: 'city', label: 'City' },
|
|
573
|
+
];
|
|
574
|
+
const forms = formsOf.get(customer) ?? new Set<FormLayout<Customer>>();
|
|
575
|
+
formsOf.set(customer, forms);
|
|
576
|
+
return (
|
|
577
|
+
<div style="padding: var(--mx-space-4); max-inline-size: 32rem">
|
|
578
|
+
<FormLayout<Customer>
|
|
579
|
+
data={customer}
|
|
580
|
+
items={items}
|
|
581
|
+
ref={(form: FormLayout<Customer>) => {
|
|
582
|
+
forms.add(form);
|
|
583
|
+
form.motif.setDisposable(() => forms.delete(form));
|
|
584
|
+
}}
|
|
585
|
+
onFieldChanged={(e) => {
|
|
586
|
+
for (const other of forms) if (other.data === e.data && !other.isDisposed) other.refreshField(e.field);
|
|
587
|
+
}}
|
|
588
|
+
/>
|
|
589
|
+
</div>
|
|
590
|
+
);
|
|
591
|
+
}
|
|
592
|
+
|
|
593
|
+
/** A few paragraphs of plain text. */
|
|
594
|
+
export function notes(title: string): ComponentBase {
|
|
595
|
+
return (
|
|
596
|
+
<div style="padding: var(--mx-space-4); max-inline-size: 40rem">
|
|
597
|
+
<h3 style="margin-block-start: 0">{title}</h3>
|
|
598
|
+
<p>Any component can be a document: a form, a grid, a chart or plain text like this.</p>
|
|
599
|
+
<p>Drag the line between two groups, or focus it with Tab and use the arrow keys. A double click on it gives the groups the same size.</p>
|
|
600
|
+
</div>
|
|
601
|
+
);
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
const CITIES = ['İstanbul', 'Ankara', 'İzmir', 'London', 'New York'];
|
|
605
|
+
|
|
606
|
+
/** A customer card: text fields and a drop-down list of cities over a reactive customer, and a button that asks in a dialog. */
|
|
607
|
+
export function customerCard(customer: Customer): ComponentBase {
|
|
608
|
+
const items: FormItem[] = [
|
|
609
|
+
{ field: 'name', label: 'Name', required: true },
|
|
610
|
+
{ field: 'email', label: 'Email', editor: 'email' },
|
|
611
|
+
{ field: 'city', label: 'City', editor: 'dropdown', editorProps: { items: CITIES } },
|
|
612
|
+
];
|
|
613
|
+
let card: ComponentBase | null = null;
|
|
614
|
+
// The dialog opens where the card is: in a new window, there.
|
|
615
|
+
const clear = async () => {
|
|
616
|
+
if (await confirm('Clear the customer card?', { title: 'Clear', host: card! })) Object.assign(customer, { name: '', email: '', city: '' });
|
|
617
|
+
};
|
|
618
|
+
return (
|
|
619
|
+
<div ref={(c: ComponentBase) => (card = c)} style="padding: var(--mx-space-4); max-inline-size: 32rem">
|
|
620
|
+
<FormLayout data={customer} items={items} />
|
|
621
|
+
<Button text="Clear…" variant="outline" onclick={clear} />
|
|
622
|
+
</div>
|
|
623
|
+
);
|
|
624
|
+
}
|
|
625
|
+
```
|
|
626
|
+
|
|
627
|
+
`orders.ts`
|
|
628
|
+
|
|
629
|
+
```tsx
|
|
630
|
+
/** An order of the examples. */
|
|
631
|
+
export interface Order {
|
|
632
|
+
id: number;
|
|
633
|
+
customer: string;
|
|
634
|
+
city: string;
|
|
635
|
+
amount: number;
|
|
636
|
+
}
|
|
637
|
+
|
|
638
|
+
const customers = ['Ada Lovelace', 'Alan Turing', 'Grace Hopper', 'Edsger Dijkstra', 'Barbara Liskov', 'Donald Knuth'];
|
|
639
|
+
const cities = ['İstanbul', 'Ankara', 'İzmir', 'Bursa', 'Antalya'];
|
|
640
|
+
|
|
641
|
+
/** `count` made-up orders, the same every time. */
|
|
642
|
+
export function makeOrders(count: number): Order[] {
|
|
643
|
+
return Array.from({ length: count }, (_, i) => ({
|
|
644
|
+
id: 1001 + i,
|
|
645
|
+
customer: customers[i % customers.length],
|
|
646
|
+
city: cities[(i * 7) % cities.length],
|
|
647
|
+
amount: Math.round(((i * 37) % 900) + 100),
|
|
648
|
+
}));
|
|
649
|
+
}
|
|
650
|
+
```
|
|
651
|
+
|
|
652
|
+
`Options.tsx`
|
|
653
|
+
|
|
654
|
+
```tsx
|
|
655
|
+
import { reactive } from '@motifx/core';
|
|
656
|
+
import { RadioGroup, Stack, Switch, TabDocument, TabDocumentManager, type ContentLifetime, type TabCloseButton } from '@motifx-community/ui';
|
|
657
|
+
import { notes } from './contents';
|
|
658
|
+
|
|
659
|
+
/** Every behaviour is a prop, followed live: here bound to the switches above the manager. */
|
|
660
|
+
export default function Options() {
|
|
661
|
+
const s = reactive({
|
|
662
|
+
closeButton: 'always' as TabCloseButton,
|
|
663
|
+
lifetime: 'keep' as ContentLifetime,
|
|
664
|
+
closeEmptyGroups: true,
|
|
665
|
+
groupActions: true,
|
|
666
|
+
manual: false,
|
|
667
|
+
built: 0,
|
|
668
|
+
});
|
|
669
|
+
|
|
670
|
+
const docs = new TabDocumentManager({
|
|
671
|
+
label: 'Live options',
|
|
672
|
+
closeButton: () => s.closeButton,
|
|
673
|
+
contentLifetime: () => s.lifetime,
|
|
674
|
+
closeEmptyGroups: () => s.closeEmptyGroups,
|
|
675
|
+
groupActions: () => s.groupActions,
|
|
676
|
+
activation: () => (s.manual ? 'manual' : 'auto'),
|
|
677
|
+
});
|
|
678
|
+
docs.element.style.cssText = 'block-size: 28rem; inline-size: 100%';
|
|
679
|
+
for (const name of ['Alpha', 'Beta', 'Gamma', 'Delta']) {
|
|
680
|
+
docs.open(
|
|
681
|
+
new TabDocument({
|
|
682
|
+
id: name.toLowerCase(),
|
|
683
|
+
title: name,
|
|
684
|
+
dirty: name === 'Gamma',
|
|
685
|
+
closable: name !== 'Alpha',
|
|
686
|
+
content: () => {
|
|
687
|
+
s.built++;
|
|
688
|
+
return notes(name);
|
|
689
|
+
},
|
|
690
|
+
}),
|
|
691
|
+
);
|
|
692
|
+
}
|
|
693
|
+
|
|
694
|
+
return (
|
|
695
|
+
<>
|
|
696
|
+
<Stack orientation="horizontal" wrap align="center" gap="lg">
|
|
697
|
+
<RadioGroup
|
|
698
|
+
label="Close button"
|
|
699
|
+
orientation="horizontal"
|
|
700
|
+
items={[
|
|
701
|
+
{ value: 'always', text: 'Always' },
|
|
702
|
+
{ value: 'active', text: 'Active and hover' },
|
|
703
|
+
{ value: 'never', text: 'Never' },
|
|
704
|
+
]}
|
|
705
|
+
itemText="text"
|
|
706
|
+
itemValue="value"
|
|
707
|
+
x-model={() => s.closeButton}
|
|
708
|
+
/>
|
|
709
|
+
<RadioGroup
|
|
710
|
+
label="Content lifetime"
|
|
711
|
+
orientation="horizontal"
|
|
712
|
+
items={[
|
|
713
|
+
{ value: 'keep', text: 'Keep' },
|
|
714
|
+
{ value: 'lazy', text: 'Lazy' },
|
|
715
|
+
{ value: 'dispose', text: 'Dispose' },
|
|
716
|
+
]}
|
|
717
|
+
itemText="text"
|
|
718
|
+
itemValue="value"
|
|
719
|
+
x-model={() => s.lifetime}
|
|
720
|
+
/>
|
|
721
|
+
</Stack>
|
|
722
|
+
<Stack orientation="horizontal" wrap align="center" gap="lg">
|
|
723
|
+
<Switch label="Close empty groups" x-model={() => s.closeEmptyGroups} />
|
|
724
|
+
<Switch label="Group buttons" x-model={() => s.groupActions} />
|
|
725
|
+
<Switch label="Manual activation" x-model={() => s.manual} />
|
|
726
|
+
<output class="td-built">{() => `contents built: ${s.built}`}</output>
|
|
727
|
+
</Stack>
|
|
728
|
+
{docs}
|
|
729
|
+
</>
|
|
730
|
+
);
|
|
731
|
+
}
|
|
732
|
+
```
|
|
733
|
+
|
|
734
|
+
`FromCode.tsx`
|
|
735
|
+
|
|
736
|
+
```tsx
|
|
737
|
+
import { reactive } from '@motifx/core';
|
|
738
|
+
import { Button, Stack, TabDocumentManager, type SplitDirection } from '@motifx-community/ui';
|
|
739
|
+
import { notes } from './contents';
|
|
740
|
+
|
|
741
|
+
/** Everything the user does is a method too; the events report each change, by the user or by code. */
|
|
742
|
+
export default function FromCode() {
|
|
743
|
+
const log = reactive({ lines: [] as { id: number; text: string }[], next: 0, opened: 0 });
|
|
744
|
+
const write = (text: string) => {
|
|
745
|
+
log.lines.unshift({ id: log.next++, text });
|
|
746
|
+
if (log.lines.length > 6) log.lines.pop();
|
|
747
|
+
};
|
|
748
|
+
|
|
749
|
+
const docs = new TabDocumentManager({ label: 'Driven from code' });
|
|
750
|
+
docs.element.style.cssText = 'block-size: 28rem; inline-size: 100%';
|
|
751
|
+
docs.onOpened((e) => write(`opened ${e.document.title} in group ${e.group.index + 1}`));
|
|
752
|
+
docs.onClosed((e) => write(`closed ${e.document.title}${e.byUser ? ' (user)' : ''}`));
|
|
753
|
+
docs.onDocumentActivated((e) => write(`active: ${e.document?.title ?? 'none'}${e.byUser ? ' (user)' : ''}`));
|
|
754
|
+
docs.onMoved((e) => write(`moved ${e.document.title} to group ${e.to.index + 1}`));
|
|
755
|
+
docs.onLayoutChanged((e) => write(`layout: ${e.change}${e.byUser ? ' (user)' : ''}`));
|
|
756
|
+
|
|
757
|
+
const open = () => {
|
|
758
|
+
const n = ++log.opened;
|
|
759
|
+
docs.open({ id: `page-${n}`, type: 'page', title: `Page ${n}`, content: () => notes(`Page ${n}`) });
|
|
760
|
+
};
|
|
761
|
+
const split = (direction: SplitDirection) => {
|
|
762
|
+
const group = docs.activeGroup;
|
|
763
|
+
if (group) docs.split(group, direction, group.documents.length > 1 ? (group.activeDocument ?? undefined) : undefined);
|
|
764
|
+
};
|
|
765
|
+
const moveOn = () => {
|
|
766
|
+
const doc = docs.activeDocument;
|
|
767
|
+
const groups = docs.groups;
|
|
768
|
+
if (doc?.group && groups.length > 1) docs.move(doc, groups[(groups.indexOf(doc.group) + 1) % groups.length]);
|
|
769
|
+
};
|
|
770
|
+
const toggleMaximize = () => {
|
|
771
|
+
const group = docs.activeGroup;
|
|
772
|
+
if (docs.maximizedGroup) docs.restoreGroups();
|
|
773
|
+
else if (group) docs.maximizeGroup(group);
|
|
774
|
+
};
|
|
775
|
+
|
|
776
|
+
open();
|
|
777
|
+
open();
|
|
778
|
+
|
|
779
|
+
return (
|
|
780
|
+
<>
|
|
781
|
+
<Stack orientation="horizontal" wrap align="center">
|
|
782
|
+
<Button text="Open" variant="outline" onclick={open} />
|
|
783
|
+
<Button text="Close active" variant="outline" onclick={() => docs.activeDocument && docs.close(docs.activeDocument)} />
|
|
784
|
+
<Button text="Split right" variant="outline" onclick={() => split('right')} />
|
|
785
|
+
<Button text="Split down" variant="outline" onclick={() => split('down')} />
|
|
786
|
+
<Button text="Move to next group" variant="outline" onclick={moveOn} />
|
|
787
|
+
<Button text={() => (docs.maximizedGroup ? 'Restore groups' : 'Maximize group')} variant="outline" onclick={toggleMaximize} />
|
|
788
|
+
<Button text="Even sizes" variant="outline" onclick={() => docs.evenSizes()} />
|
|
789
|
+
<Button text="Next tab" variant="ghost" onclick={() => docs.activateNext(null, true)} />
|
|
790
|
+
<Button text="Focus group 1" variant="ghost" onclick={() => docs.focusGroup(0)} />
|
|
791
|
+
</Stack>
|
|
792
|
+
{docs}
|
|
793
|
+
<output class="td-state">{() => `${docs.groups.length} group(s), ${docs.documents.length} document(s), active: ${docs.activeDocument?.title ?? 'none'}`}</output>
|
|
794
|
+
<ul class="td-log">
|
|
795
|
+
{log.lines.map((line) => (
|
|
796
|
+
<li key={line.id}>{line.text}</li>
|
|
797
|
+
))}
|
|
798
|
+
</ul>
|
|
799
|
+
</>
|
|
800
|
+
);
|
|
801
|
+
}
|
|
802
|
+
```
|
|
803
|
+
|
|
804
|
+
`UnsavedChanges.tsx`
|
|
805
|
+
|
|
806
|
+
```tsx
|
|
807
|
+
import { reactive } from '@motifx/core';
|
|
808
|
+
import { confirm, TabDocument, TabDocumentManager } from '@motifx-community/ui';
|
|
809
|
+
import { customerForm, type Customer } from './contents';
|
|
810
|
+
|
|
811
|
+
const people: Customer[] = [
|
|
812
|
+
{ name: 'Grace Hopper', email: 'grace@example.com', city: 'New York' },
|
|
813
|
+
{ name: 'Alan Turing', email: 'alan@example.com', city: 'London' },
|
|
814
|
+
];
|
|
815
|
+
|
|
816
|
+
/** Edit a field: the tab shows a dot in place of its close button, and closing it asks first (`e.promise`). */
|
|
817
|
+
export default function UnsavedChanges() {
|
|
818
|
+
const docs = new TabDocumentManager({ label: 'Customers' });
|
|
819
|
+
docs.element.style.cssText = 'block-size: 28rem; inline-size: 100%';
|
|
820
|
+
|
|
821
|
+
for (const person of people) {
|
|
822
|
+
const saved = { ...person };
|
|
823
|
+
const customer = reactive({ ...person });
|
|
824
|
+
docs.open(
|
|
825
|
+
new TabDocument({
|
|
826
|
+
id: person.email,
|
|
827
|
+
type: 'customer',
|
|
828
|
+
title: () => customer.name || 'New customer',
|
|
829
|
+
dirty: () => customer.name !== saved.name || customer.email !== saved.email || customer.city !== saved.city,
|
|
830
|
+
content: () => customerForm(customer),
|
|
831
|
+
}),
|
|
832
|
+
);
|
|
833
|
+
}
|
|
834
|
+
|
|
835
|
+
docs.onClosing((e) => {
|
|
836
|
+
if (e.document.dirty) e.promise = confirm(`${e.document.title} has unsaved changes. Close it anyway?`, { title: 'Close', tone: 'caution' });
|
|
837
|
+
});
|
|
838
|
+
|
|
839
|
+
return <>{docs}</>;
|
|
840
|
+
}
|
|
841
|
+
```
|
|
842
|
+
|
|
843
|
+
`SaveRestore.tsx`
|
|
844
|
+
|
|
845
|
+
```tsx
|
|
846
|
+
import { reactive } from '@motifx/core';
|
|
847
|
+
import { Button, Stack, TabDocument, TabDocumentManager, type TabLayout, type TabLayoutDocument } from '@motifx-community/ui';
|
|
848
|
+
import { notes, ordersGrid } from './contents';
|
|
849
|
+
|
|
850
|
+
/** Makes a saved document again by its type; its `state` brings what it needs. */
|
|
851
|
+
function restore(saved: TabLayoutDocument): TabDocument {
|
|
852
|
+
if (saved.type === 'orders') return new TabDocument({ ...saved, content: () => ordersGrid((saved.state as { count: number }).count) });
|
|
853
|
+
return new TabDocument({ ...saved, content: () => notes(saved.title) });
|
|
854
|
+
}
|
|
855
|
+
|
|
856
|
+
/** The layout as JSON: change it (split, move, resize, close), save, change it again, restore. */
|
|
857
|
+
export default function SaveRestore() {
|
|
858
|
+
const s = reactive({ json: '', saved: null as TabLayout | null });
|
|
859
|
+
const docs = new TabDocumentManager({ label: 'Saved layout' });
|
|
860
|
+
docs.element.style.cssText = 'block-size: 28rem; inline-size: 100%';
|
|
861
|
+
docs.open(restore({ id: 'orders', type: 'orders', title: 'Orders', state: { count: 40 } }));
|
|
862
|
+
docs.open(restore({ id: 'notes', type: 'notes', title: 'Notes' }));
|
|
863
|
+
docs.open(restore({ id: 'todo', type: 'notes', title: 'To do' }));
|
|
864
|
+
docs.split(docs.groups[0], 'down', docs.findDocument('todo')!);
|
|
865
|
+
|
|
866
|
+
const save = () => {
|
|
867
|
+
s.saved = docs.saveLayout();
|
|
868
|
+
s.json = JSON.stringify(s.saved, null, 2);
|
|
869
|
+
};
|
|
870
|
+
const load = () => {
|
|
871
|
+
if (s.saved) docs.loadLayout(s.saved, restore);
|
|
872
|
+
};
|
|
873
|
+
save();
|
|
874
|
+
|
|
875
|
+
return (
|
|
876
|
+
<>
|
|
877
|
+
<Stack orientation="horizontal" wrap align="center">
|
|
878
|
+
<Button text="Save layout" variant="outline" onclick={save} />
|
|
879
|
+
<Button text="Restore layout" variant="outline" enabled={() => !!s.saved} onclick={load} />
|
|
880
|
+
</Stack>
|
|
881
|
+
{docs}
|
|
882
|
+
<pre class="td-json" tabindex="0" style="max-block-size: 14rem; overflow: auto; inline-size: 100%">
|
|
883
|
+
{() => s.json}
|
|
884
|
+
</pre>
|
|
885
|
+
</>
|
|
886
|
+
);
|
|
887
|
+
}
|
|
888
|
+
```
|