@motifx-community/ui 0.1.0-beta.13 → 0.1.0-beta.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +379 -0
- package/README.md +2 -0
- package/dist/components/chart/Chart.d.ts +6 -4
- package/dist/components/chart/ChartPlot.d.ts +2 -1
- package/dist/components/chart/plot-view.d.ts +10 -2
- package/dist/components/chat/Chat.d.ts +276 -0
- package/dist/components/chat/ChatComposer.d.ts +172 -0
- package/dist/components/chat/ChatReply.d.ts +53 -0
- package/dist/components/chat/ChatWriter.d.ts +119 -0
- package/dist/components/chat/chat-ask-form.d.ts +64 -0
- package/dist/components/chat/chat-asked-entry.d.ts +21 -0
- package/dist/components/chat/chat-attachment-entry.d.ts +18 -0
- package/dist/components/chat/chat-choices-view.d.ts +40 -0
- package/dist/components/chat/chat-command.d.ts +7 -0
- package/dist/components/chat/chat-compaction-entry.d.ts +19 -0
- package/dist/components/chat/chat-composer-props.d.ts +63 -0
- package/dist/components/chat/chat-context-changed-event-args.d.ts +8 -0
- package/dist/components/chat/chat-context-item.d.ts +14 -0
- package/dist/components/chat/chat-copy-button.d.ts +11 -0
- package/dist/components/chat/chat-entry.d.ts +20 -0
- package/dist/components/chat/chat-flow-view.d.ts +32 -0
- package/dist/components/chat/chat-form-entry.d.ts +24 -0
- package/dist/components/chat/chat-form-view.d.ts +48 -0
- package/dist/components/chat/chat-history-event-args.d.ts +31 -0
- package/dist/components/chat/chat-load-older-event-args.d.ts +17 -0
- package/dist/components/chat/chat-look.d.ts +33 -0
- package/dist/components/chat/chat-mention.d.ts +21 -0
- package/dist/components/chat/chat-message-status.d.ts +2 -0
- package/dist/components/chat/chat-message.d.ts +23 -0
- package/dist/components/chat/chat-notice-entry.d.ts +20 -0
- package/dist/components/chat/chat-option.d.ts +7 -0
- package/dist/components/chat/chat-part.d.ts +110 -0
- package/dist/components/chat/chat-plan-entry.d.ts +25 -0
- package/dist/components/chat/chat-props.d.ts +70 -0
- package/dist/components/chat/chat-question-view.d.ts +41 -0
- package/dist/components/chat/chat-request.d.ts +173 -0
- package/dist/components/chat/chat-role.d.ts +2 -0
- package/dist/components/chat/chat-search-bar.d.ts +27 -0
- package/dist/components/chat/chat-search.d.ts +33 -0
- package/dist/components/chat/chat-send-event-args.d.ts +12 -0
- package/dist/components/chat/chat-sources-entry.d.ts +22 -0
- package/dist/components/chat/chat-text-entry.d.ts +20 -0
- package/dist/components/chat/chat-text-part.d.ts +5 -0
- package/dist/components/chat/chat-thinking-entry.d.ts +32 -0
- package/dist/components/chat/chat-todo-entry.d.ts +15 -0
- package/dist/components/chat/chat-tool-entry.d.ts +66 -0
- package/dist/components/chat/chat-tool-init.d.ts +18 -0
- package/dist/components/chat/chat-turn-view.d.ts +53 -0
- package/dist/components/chat/chat-turn.d.ts +8 -0
- package/dist/components/chat/chat-value-changed-event-args.d.ts +6 -0
- package/dist/components/chat/index.d.ts +22 -0
- package/dist/components/contextmenu/ContextMenu.d.ts +4 -0
- package/dist/components/contextmenu/context-menu-props.d.ts +6 -0
- package/dist/components/datagrid/DataGrid.d.ts +0 -12
- package/dist/components/datagrid/column-type.d.ts +2 -1
- package/dist/components/datagrid/grid-column.d.ts +4 -1
- package/dist/components/datagrid/grid-date-interval.d.ts +2 -1
- package/dist/components/datagrid/grid-filter-value.d.ts +2 -7
- package/dist/components/datagrid/grid-header-filter-interval.d.ts +2 -2
- package/dist/components/datagrid/grid-settings.d.ts +6 -3
- package/dist/components/datagrid/grid-sheet-cell.d.ts +3 -6
- package/dist/components/datagrid/grid-sheet-column.d.ts +2 -9
- package/dist/components/datagrid/grid-sheet-merge.d.ts +2 -7
- package/dist/components/datagrid/grid-sheet-row.d.ts +2 -5
- package/dist/components/datagrid/grid-sheet.d.ts +3 -2
- package/dist/components/datagrid/grid-summary-item.d.ts +5 -2
- package/dist/components/datagrid/grid-summary-texts.d.ts +2 -0
- package/dist/components/datagrid/grid-summary-type.d.ts +5 -2
- package/dist/components/datagrid/grid-summary.d.ts +3 -2
- package/dist/components/datagrid/list-option.d.ts +2 -4
- package/dist/components/datagrid/model/ColumnModel.d.ts +21 -3
- package/dist/components/datagrid/model/FilterValues.d.ts +15 -7
- package/dist/components/datagrid/model/GridExport.d.ts +1 -1
- package/dist/components/datagrid/model/GridModel.d.ts +2 -2
- package/dist/components/datagrid/model/LookupTexts.d.ts +1 -1
- package/dist/components/datagrid/view/CellEditor.d.ts +1 -1
- package/dist/components/datagrid/view/ColumnStyles.d.ts +1 -1
- package/dist/components/datagrid/view/GridBody.d.ts +1 -1
- package/dist/components/datagrid/view/HeaderRow.d.ts +3 -1
- package/dist/components/draggable/Draggable.d.ts +14 -3
- package/dist/components/form/MxForm.d.ts +1 -1
- package/dist/components/markdown/Markdown.d.ts +87 -0
- package/dist/components/markdown/code-block.d.ts +57 -0
- package/dist/components/markdown/code-colorer.d.ts +11 -0
- package/dist/components/markdown/code-highlighter.d.ts +9 -0
- package/dist/components/markdown/code-run.d.ts +6 -0
- package/dist/components/markdown/diagram-renderer.d.ts +21 -0
- package/dist/components/markdown/entities.d.ts +2 -0
- package/dist/components/markdown/index.d.ts +8 -0
- package/dist/components/markdown/inline-writer.d.ts +85 -0
- package/dist/components/markdown/markdown-context.d.ts +53 -0
- package/dist/components/markdown/markdown-link-click-event-args.d.ts +9 -0
- package/dist/components/markdown/markdown-props.d.ts +40 -0
- package/dist/components/markdown/markdown-writer.d.ts +95 -0
- package/dist/components/markdown/math-block.d.ts +22 -0
- package/dist/components/markdown/math-renderer.d.ts +18 -0
- package/dist/components/markdown/safe-href.d.ts +5 -0
- package/dist/components/markdown/text-run.d.ts +7 -0
- package/dist/components/menubar/MenuBar.d.ts +4 -0
- package/dist/components/menubar/menu-bar-props.d.ts +6 -0
- package/dist/components/pivotgrid/PivotGrid.d.ts +415 -0
- package/dist/components/pivotgrid/index.d.ts +44 -0
- package/dist/components/pivotgrid/model/PivotArrangement.d.ts +29 -0
- package/dist/components/pivotgrid/model/PivotAxisWindow.d.ts +169 -0
- package/dist/components/pivotgrid/model/PivotCellRanges.d.ts +63 -0
- package/dist/components/pivotgrid/model/PivotCellWindow.d.ts +47 -0
- package/dist/components/pivotgrid/model/PivotChart.d.ts +49 -0
- package/dist/components/pivotgrid/model/PivotDisplay.d.ts +61 -0
- package/dist/components/pivotgrid/model/PivotDrill.d.ts +19 -0
- package/dist/components/pivotgrid/model/PivotExpansion.d.ts +44 -0
- package/dist/components/pivotgrid/model/PivotFields.d.ts +55 -0
- package/dist/components/pivotgrid/model/PivotFilterValues.d.ts +36 -0
- package/dist/components/pivotgrid/model/PivotLayout.d.ts +75 -0
- package/dist/components/pivotgrid/model/PivotLoader.d.ts +29 -0
- package/dist/components/pivotgrid/model/PivotSheet.d.ts +44 -0
- package/dist/components/pivotgrid/model/PivotStateStore.d.ts +19 -0
- package/dist/components/pivotgrid/model/PivotTable.d.ts +78 -0
- package/dist/components/pivotgrid/model/PivotTexts.d.ts +47 -0
- package/dist/components/pivotgrid/model/PivotWindows.d.ts +120 -0
- package/dist/components/pivotgrid/model/pivot-copy.d.ts +26 -0
- package/dist/components/pivotgrid/model/pivot-csv.d.ts +9 -0
- package/dist/components/pivotgrid/model/pivot-header-cell.d.ts +19 -0
- package/dist/components/pivotgrid/model/pivot-line-key.d.ts +17 -0
- package/dist/components/pivotgrid/model/pivot-line.d.ts +14 -0
- package/dist/components/pivotgrid/pivot-grid-area.d.ts +2 -0
- package/dist/components/pivotgrid/pivot-grid-cell-click-event-args.d.ts +5 -0
- package/dist/components/pivotgrid/pivot-grid-cell-context.d.ts +19 -0
- package/dist/components/pivotgrid/pivot-grid-cell-dbl-click-event-args.d.ts +5 -0
- package/dist/components/pivotgrid/pivot-grid-cell-range.d.ts +16 -0
- package/dist/components/pivotgrid/pivot-grid-cell-selection-changed-event-args.d.ts +6 -0
- package/dist/components/pivotgrid/pivot-grid-chart-data.d.ts +15 -0
- package/dist/components/pivotgrid/pivot-grid-chart-options.d.ts +19 -0
- package/dist/components/pivotgrid/pivot-grid-column-resized-event-args.d.ts +8 -0
- package/dist/components/pivotgrid/pivot-grid-column-resizing.d.ts +15 -0
- package/dist/components/pivotgrid/pivot-grid-column.d.ts +19 -0
- package/dist/components/pivotgrid/pivot-grid-content-ready-event-args.d.ts +6 -0
- package/dist/components/pivotgrid/pivot-grid-context-menu-preparing-event-args.d.ts +22 -0
- package/dist/components/pivotgrid/pivot-grid-copying-event-args.d.ts +10 -0
- package/dist/components/pivotgrid/pivot-grid-custom-summary-info.d.ts +15 -0
- package/dist/components/pivotgrid/pivot-grid-data-error-event-args.d.ts +5 -0
- package/dist/components/pivotgrid/pivot-grid-drill-down.d.ts +14 -0
- package/dist/components/pivotgrid/pivot-grid-expanded-event-args.d.ts +6 -0
- package/dist/components/pivotgrid/pivot-grid-expanding-event-args.d.ts +9 -0
- package/dist/components/pivotgrid/pivot-grid-export-cell.d.ts +21 -0
- package/dist/components/pivotgrid/pivot-grid-export-options.d.ts +16 -0
- package/dist/components/pivotgrid/pivot-grid-export.d.ts +17 -0
- package/dist/components/pivotgrid/pivot-grid-exported-event-args.d.ts +9 -0
- package/dist/components/pivotgrid/pivot-grid-exporting-event-args.d.ts +17 -0
- package/dist/components/pivotgrid/pivot-grid-field-chooser.d.ts +20 -0
- package/dist/components/pivotgrid/pivot-grid-field-panel.d.ts +16 -0
- package/dist/components/pivotgrid/pivot-grid-field.d.ts +110 -0
- package/dist/components/pivotgrid/pivot-grid-fields-changed-event-args.d.ts +8 -0
- package/dist/components/pivotgrid/pivot-grid-filter-value.d.ts +4 -0
- package/dist/components/pivotgrid/pivot-grid-group-interval.d.ts +7 -0
- package/dist/components/pivotgrid/pivot-grid-header-filter-items-request.d.ts +9 -0
- package/dist/components/pivotgrid/pivot-grid-header-filter-items.d.ts +7 -0
- package/dist/components/pivotgrid/pivot-grid-load-panel.d.ts +11 -0
- package/dist/components/pivotgrid/pivot-grid-props.d.ts +121 -0
- package/dist/components/pivotgrid/pivot-grid-sheet-options.d.ts +14 -0
- package/dist/components/pivotgrid/pivot-grid-sheet.d.ts +19 -0
- package/dist/components/pivotgrid/pivot-grid-state.d.ts +54 -0
- package/dist/components/pivotgrid/pivot-grid-summary-cell.d.ts +29 -0
- package/dist/components/pivotgrid/pivot-grid-summary-display-mode.d.ts +5 -0
- package/dist/components/pivotgrid/pivot-grid-summary-type.d.ts +5 -0
- package/dist/components/pivotgrid/view/PivotFieldChooser.d.ts +71 -0
- package/dist/components/pivotgrid/view/PivotFieldPanel.d.ts +92 -0
- package/dist/components/pivotgrid/view/PivotView.d.ts +263 -0
- package/dist/components/resizable/Resizable.d.ts +2 -0
- package/dist/components/ribbonmenu/RibbonKeyHints.d.ts +4 -0
- package/dist/components/ribbonmenu/RibbonMenu.d.ts +4 -1
- package/dist/components/ribbonmenu/ribbon-menu-custom-menu-opening-event-args.d.ts +8 -4
- package/dist/components/ribbonmenu/ribbon-menu-props.d.ts +6 -0
- package/dist/components/scheduler/view/TimeView.d.ts +2 -0
- package/dist/components/scrollview/ScrollView.d.ts +48 -1
- package/dist/components/scrollview/index.d.ts +1 -0
- package/dist/components/scrollview/scroll-end-changed-event-args.d.ts +7 -0
- package/dist/components/scrollview/scroll-view-props.d.ts +9 -0
- package/dist/components/splitter/Splitter.d.ts +1 -3
- package/dist/components/tabdocs/TabDocumentManager.d.ts +3 -2
- package/dist/components/textarea/TextArea.d.ts +11 -0
- package/dist/components/textarea/text-area-props.d.ts +12 -1
- package/dist/components/textbox/TextBox.d.ts +3 -0
- package/dist/components/textbox/text-box-props.d.ts +3 -0
- package/dist/components/toolbar/Toolbar.d.ts +70 -1
- package/dist/components/toolbar/index.d.ts +5 -0
- package/dist/components/toolbar/toolbar-added-item.d.ts +9 -0
- package/dist/components/toolbar/toolbar-custom-menu-opening-event-args.d.ts +23 -0
- package/dist/components/toolbar/toolbar-customization.d.ts +18 -0
- package/dist/components/toolbar/toolbar-customized-event-args.d.ts +7 -0
- package/dist/components/toolbar/toolbar-item-display.d.ts +2 -0
- package/dist/components/toolbar/toolbar-item.d.ts +11 -1
- package/dist/components/toolbar/toolbar-props.d.ts +26 -0
- package/dist/components/toolbar/toolbar-targets.d.ts +22 -0
- package/dist/core/clipboard.d.ts +11 -0
- package/dist/core/enter-key-hint.d.ts +2 -0
- package/dist/core/look-watch.d.ts +2 -2
- package/dist/core/measure/look.d.ts +1 -1
- package/dist/core/measure/on-layout.d.ts +1 -1
- package/dist/core/measure/scroll.d.ts +3 -1
- package/dist/core/save-text.d.ts +2 -0
- package/dist/core/ui-strings.d.ts +190 -0
- package/dist/excel/excel-pivot-customize-cell-args.d.ts +8 -0
- package/dist/excel/excel-pivot-export-options.d.ts +44 -0
- package/dist/excel/excel-pivot-export-result.d.ts +6 -0
- package/dist/excel/export-pivot-grid.d.ts +35 -0
- package/dist/excel/index.d.ts +4 -0
- package/dist/excel/index.js +190 -56
- package/dist/excel/index.js.map +1 -1
- package/dist/excel/write-sheet.d.ts +16 -0
- package/dist/{formula-guard-NYlpoA-t.js → formula-guard-Bx48S0u3.js} +2 -2
- package/dist/formula-guard-Bx48S0u3.js.map +1 -0
- package/dist/generated/tokens.d.ts +7527 -4097
- package/dist/index.d.ts +6 -0
- package/dist/index.js +65982 -49896
- package/dist/index.js.map +1 -1
- package/dist/locales/en.json +179 -1
- package/dist/locales/tr.json +179 -1
- package/dist/parts/customizer/Customizer.d.ts +12 -6
- package/dist/parts/customizer/customizer-display.d.ts +2 -0
- package/dist/parts/customizer/customizer-node.d.ts +5 -0
- package/dist/parts/customizer/customizer-source.d.ts +15 -3
- package/dist/parts/item-layout/layout-added-item.d.ts +2 -2
- package/dist/parts/menu/MenuList.d.ts +5 -0
- package/dist/parts/popup/Popup.d.ts +2 -0
- package/dist/{components/datagrid/model → parts/table}/CellFormatter.d.ts +8 -8
- package/dist/{components/datagrid/view → parts/table}/HeaderFilter.d.ts +16 -11
- package/dist/parts/table/OffsetList.d.ts +21 -0
- package/dist/parts/table/ScaledOffsets.d.ts +32 -0
- package/dist/{components/datagrid/model → parts/table}/ValueIntervals.d.ts +12 -5
- package/dist/{components/datagrid/model → parts/table}/ValueListAdapter.d.ts +4 -4
- package/dist/parts/table/date-interval.d.ts +2 -0
- package/dist/parts/table/date-type.d.ts +3 -0
- package/dist/{components/datagrid/model → parts/table}/filter-tree-node.d.ts +3 -1
- package/dist/parts/table/filter-value.d.ts +9 -0
- package/dist/parts/table/format-column.d.ts +14 -0
- package/dist/parts/table/header-filter-host.d.ts +27 -0
- package/dist/parts/table/option-of.d.ts +6 -0
- package/dist/parts/table/slice-sheet.d.ts +8 -0
- package/dist/parts/table/table-sheet-cell.d.ts +13 -0
- package/dist/parts/table/table-sheet-column.d.ts +11 -0
- package/dist/parts/table/table-sheet-merge.d.ts +9 -0
- package/dist/parts/table/table-sheet-row.d.ts +8 -0
- package/dist/parts/table/table-sheet.d.ts +24 -0
- package/dist/parts/table/value-interval.d.ts +6 -0
- package/dist/{components/datagrid/model → parts/table}/value-list.d.ts +7 -2
- package/dist/parts/table/value-loader.d.ts +8 -0
- package/dist/parts/table/value-option.d.ts +5 -0
- package/dist/parts/table/value-type.d.ts +5 -0
- package/dist/parts/table/values-result.d.ts +6 -0
- package/dist/parts/window/follow-pointer.d.ts +9 -3
- package/dist/parts/window-list/WindowList.d.ts +105 -0
- package/dist/parts/window-list/window-list-source.d.ts +10 -0
- package/dist/pdf/export-pivot-grid.d.ts +21 -0
- package/dist/pdf/index.d.ts +3 -0
- package/dist/pdf/index.js +143 -16
- package/dist/pdf/index.js.map +1 -1
- package/dist/pdf/pdf-customize-cell-args.d.ts +1 -1
- package/dist/pdf/pdf-pivot-cell-args.d.ts +25 -0
- package/dist/pdf/pdf-pivot-export-options.d.ts +61 -0
- package/dist/pdf/pdf-table.d.ts +38 -6
- package/dist/slice-sheet-C116M42H.js +43 -0
- package/dist/slice-sheet-C116M42H.js.map +1 -0
- package/dist/styles.css +4484 -177
- package/dist/tokens/index.d.ts +7527 -4097
- package/dist/tokens/index.js +7527 -4097
- package/dist/tokens/index.js.map +1 -1
- package/dist/{tr-BvKE8jSF.js → tr-BGbF9uCs.js} +359 -3
- package/dist/tr-BGbF9uCs.js.map +1 -0
- package/docs/accordion.md +1 -1
- package/docs/actionsheet.md +1 -1
- package/docs/appbar.md +1 -1
- package/docs/appmenu-api.md +1 -1
- package/docs/appmenu-programmatic.md +1 -1
- package/docs/appmenu-search.md +1 -1
- package/docs/appmenu.md +1 -1
- package/docs/avatar.md +1 -1
- package/docs/badge.md +1 -1
- package/docs/bar-gauge-angles.md +1 -1
- package/docs/bar-gauge-data.md +1 -1
- package/docs/bar-gauge-labels.md +1 -1
- package/docs/bar-gauge.md +1 -1
- package/docs/barcode.md +1 -1
- package/docs/bottomnavigation.md +1 -1
- package/docs/bottomsheet.md +1 -1
- package/docs/breadcrumb.md +1 -1
- package/docs/button.md +1 -1
- package/docs/buttongroup.md +1 -1
- package/docs/buttons.md +1 -1
- package/docs/calendar.md +1 -1
- package/docs/card.md +1 -1
- package/docs/chart-bars.md +1 -1
- package/docs/chart-candles.md +1 -1
- package/docs/chart-funnel.md +1 -1
- package/docs/chart-heatmap.md +1 -1
- package/docs/chart-lines.md +1 -1
- package/docs/chart-live.md +1 -1
- package/docs/chart-pie.md +1 -1
- package/docs/chart-radar.md +1 -1
- package/docs/chart-ranges.md +1 -1
- package/docs/chart-references.md +1 -1
- package/docs/chart-scatter.md +1 -1
- package/docs/chart-waterfall.md +1 -1
- package/docs/chart-zoom.md +1 -1
- package/docs/chart.md +1 -1
- package/docs/chat.md +1512 -0
- package/docs/checkbox.md +1 -1
- package/docs/chip.md +2 -2
- package/docs/choice.md +1 -1
- package/docs/colorbox.md +1 -1
- package/docs/combobox.md +1 -1
- package/docs/commands.md +1 -1
- package/docs/control.md +1 -1
- package/docs/data.md +1 -1
- package/docs/datagrid-api.md +3 -3
- package/docs/datagrid-bands.md +1 -1
- package/docs/datagrid-drag-select.md +1 -1
- package/docs/datagrid-drag.md +1 -1
- package/docs/datagrid-editing.md +1 -1
- package/docs/datagrid-filtering.md +2 -2
- package/docs/datagrid-forms.md +1 -1
- package/docs/datagrid-grouping.md +7 -7
- package/docs/datagrid-layout.md +2 -2
- package/docs/datagrid-lookups.md +1 -1
- package/docs/datagrid-master-detail.md +1 -1
- package/docs/datagrid-scrolling.md +1 -1
- package/docs/datagrid-selection.md +1 -1
- package/docs/datagrid.md +1 -1
- package/docs/datebox.md +1 -1
- package/docs/daterangebox.md +1 -1
- package/docs/display.md +1 -1
- package/docs/draggable.md +2 -2
- package/docs/drawer.md +1 -1
- package/docs/dropdown.md +1 -1
- package/docs/editors.md +1 -1
- package/docs/feedback.md +1 -1
- package/docs/fileuploader.md +1 -1
- package/docs/filterbuilder.md +1 -1
- package/docs/formlayout.md +1 -1
- package/docs/foundations.md +1 -1
- package/docs/gallery.md +1 -1
- package/docs/gauge-base.md +1 -1
- package/docs/gauge-circular.md +1 -1
- package/docs/gauge-dashboards.md +1 -1
- package/docs/gauge-linear.md +1 -1
- package/docs/gauge-markers.md +1 -1
- package/docs/gauge-marks.md +1 -1
- package/docs/gauge-ranges.md +1 -1
- package/docs/gauge-scales.md +1 -1
- package/docs/gauge.md +1 -1
- package/docs/home.md +1 -1
- package/docs/keyboard.md +1 -1
- package/docs/language.md +1 -1
- package/docs/layout.md +1 -1
- package/docs/listbox.md +1 -1
- package/docs/loadpanel.md +1 -1
- package/docs/lookup.md +1 -1
- package/docs/markdown.md +343 -0
- package/docs/menus-api.md +3 -1
- package/docs/menus-context.md +2 -1
- package/docs/menus-customization.md +5 -1
- package/docs/menus-merging.md +1 -1
- package/docs/menus-programmatic.md +1 -1
- package/docs/menus.md +1 -1
- package/docs/multiview.md +1 -1
- package/docs/navigation.md +1 -1
- package/docs/numberbox.md +1 -1
- package/docs/otpinput.md +1 -1
- package/docs/pagination.md +1 -1
- package/docs/pivotgrid-api.md +180 -0
- package/docs/pivotgrid-chart.md +132 -0
- package/docs/pivotgrid-drilldown.md +142 -0
- package/docs/pivotgrid-export.md +207 -0
- package/docs/pivotgrid-fields.md +245 -0
- package/docs/pivotgrid-keyboard.md +223 -0
- package/docs/pivotgrid-layout.md +663 -0
- package/docs/pivotgrid-panel.md +223 -0
- package/docs/pivotgrid-remote.md +397 -0
- package/docs/pivotgrid-sorting.md +379 -0
- package/docs/pivotgrid-state.md +245 -0
- package/docs/pivotgrid-summaries.md +330 -0
- package/docs/pivotgrid.md +295 -0
- package/docs/popover.md +1 -1
- package/docs/progress.md +1 -1
- package/docs/qrcode.md +1 -1
- package/docs/radiogroup.md +1 -1
- package/docs/rating.md +1 -1
- package/docs/resizable.md +1 -1
- package/docs/ribbonmenu-api.md +2 -1
- package/docs/ribbonmenu-commands.md +1 -1
- package/docs/ribbonmenu-customization.md +3 -2
- package/docs/ribbonmenu-display.md +1 -1
- package/docs/ribbonmenu-layouts.md +1 -1
- package/docs/ribbonmenu-programmatic.md +1 -1
- package/docs/ribbonmenu.md +3 -1
- package/docs/scheduler-agenda.md +1 -1
- package/docs/scheduler-big-data.md +1 -1
- package/docs/scheduler-editing.md +1 -1
- package/docs/scheduler-form.md +1 -1
- package/docs/scheduler-icalendar.md +1 -1
- package/docs/scheduler-mobile.md +1 -1
- package/docs/scheduler-recurrence.md +1 -1
- package/docs/scheduler-resources.md +1 -1
- package/docs/scheduler-timeline.md +1 -1
- package/docs/scheduler.md +1 -1
- package/docs/scrollview.md +1 -1
- package/docs/shortcuteditor.md +1 -1
- package/docs/showcase-home.md +1 -1
- package/docs/showcase-mail.md +39 -0
- package/docs/showcase.md +1 -1
- package/docs/signature.md +1 -1
- package/docs/skeleton.md +1 -1
- package/docs/slider.md +1 -1
- package/docs/sortable.md +3 -6
- package/docs/sparkline.md +1 -1
- package/docs/speeddial.md +1 -1
- package/docs/splitter.md +1 -1
- package/docs/stepper.md +1 -1
- package/docs/switch.md +1 -1
- package/docs/tabdocs-dock.md +1 -1
- package/docs/tabdocs-drag.md +1 -1
- package/docs/tabdocs-menus.md +1 -1
- package/docs/tabdocs-mobile.md +1 -1
- package/docs/tabdocs-tabs.md +1 -1
- package/docs/tabdocs-windows.md +1 -1
- package/docs/tabdocs-workspace.md +1 -1
- package/docs/tabdocs.md +1 -1
- package/docs/tabs.md +1 -1
- package/docs/tagbox.md +1 -1
- package/docs/textarea.md +4 -1
- package/docs/textbox.md +2 -1
- package/docs/tileview.md +1 -1
- package/docs/timeline.md +1 -1
- package/docs/toast.md +1 -1
- package/docs/tokens.md +687 -1
- package/docs/toolbar-api.md +80 -0
- package/docs/toolbar-customization.md +261 -0
- package/docs/toolbar.md +4 -52
- package/docs/tooltip.md +1 -1
- package/docs/treeview.md +1 -1
- package/docs/validationsummary.md +1 -1
- package/docs/window.md +1 -1
- package/docs/wizard.md +1 -1
- package/llms-full.txt +18989 -12344
- package/llms.txt +29 -2
- package/package.json +2 -2
- package/dist/components/datagrid/model/date-type.d.ts +0 -3
- package/dist/components/datagrid/model/option-of.d.ts +0 -6
- package/dist/components/datagrid/model/value-loader.d.ts +0 -8
- package/dist/formula-guard-NYlpoA-t.js.map +0 -1
- package/dist/tr-BvKE8jSF.js.map +0 -1
- /package/dist/{components/datagrid/model → core}/text-ranges.d.ts +0 -0
- /package/dist/{components/datagrid/model → parts/table}/ExtraHeights.d.ts +0 -0
- /package/dist/{components/datagrid/model → parts/table}/ScrollGeometry.d.ts +0 -0
- /package/dist/{components/datagrid/model → parts/table}/cell-list.d.ts +0 -0
- /package/dist/{components/datagrid/model → parts/table}/date-like.d.ts +0 -0
- /package/dist/{components/datagrid/view → parts/table}/editor-value.d.ts +0 -0
- /package/dist/{components/datagrid/model → parts/table}/formula-guard.d.ts +0 -0
- /package/dist/{components/datagrid/model → parts/table}/parse-date-text.d.ts +0 -0
- /package/dist/{components/datagrid/model → parts/table}/same-value.d.ts +0 -0
package/docs/markdown.md
ADDED
|
@@ -0,0 +1,343 @@
|
|
|
1
|
+
# Markdown
|
|
2
|
+
|
|
3
|
+
> AI chat · @motifx-community/ui 0.1.0-beta.14
|
|
4
|
+
|
|
5
|
+
Shows markdown, either all at once or as it arrives from a model. Each character appears the moment it is written. A mark whose meaning is not known yet shows as text until it is, then its element is made and the text continues inside it. Nothing that has been drawn is drawn again, while the text grows or when it ends.
|
|
6
|
+
|
|
7
|
+
## Import
|
|
8
|
+
|
|
9
|
+
```tsx
|
|
10
|
+
import { Markdown } from '@motifx-community/ui';
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Usage
|
|
14
|
+
|
|
15
|
+
```tsx
|
|
16
|
+
import { Markdown } from '@motifx-community/ui';
|
|
17
|
+
|
|
18
|
+
const TEXT = `## Release notes
|
|
19
|
+
|
|
20
|
+
The grid now **remembers** each user's columns, and the *filter row* keeps its values.
|
|
21
|
+
|
|
22
|
+
- Faster scrolling on large sources
|
|
23
|
+
- New \`selectAll()\` method
|
|
24
|
+
- also from the keyboard: Ctrl+A
|
|
25
|
+
- [x] Tested in every design language
|
|
26
|
+
- [ ] Documented in the migration guide
|
|
27
|
+
|
|
28
|
+
> Upgrading needs no code changes.
|
|
29
|
+
|
|
30
|
+
| Version | Date | Status |
|
|
31
|
+
|:--------|:----:|-------:|
|
|
32
|
+
| 1.4 | May | released |
|
|
33
|
+
| 1.5 | June | beta |
|
|
34
|
+
|
|
35
|
+
Read more at https://motifjs.com.`;
|
|
36
|
+
|
|
37
|
+
/** Markdown given at once: headings, lists, tasks, a quote, a table and a bare address. */
|
|
38
|
+
export default function Basic() {
|
|
39
|
+
return <Markdown text={TEXT} />;
|
|
40
|
+
}
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
```tsx
|
|
44
|
+
const view = new Markdown({ text: '# Hello\n\nSome **markdown**.' });
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
## Streaming
|
|
48
|
+
|
|
49
|
+
Call `append` with each piece as it comes, and `end` when the answer is complete. In JSX, bind `text` to the growing answer and `streaming` to whether it is still coming. Each new value adds only what is new.
|
|
50
|
+
|
|
51
|
+
```tsx
|
|
52
|
+
import { reactive, type ComponentBase } from '@motifx/core';
|
|
53
|
+
import { Button, Markdown, Stack } from '@motifx-community/ui';
|
|
54
|
+
|
|
55
|
+
const ANSWER = `Sure. A **debounced** search waits until typing pauses:
|
|
56
|
+
|
|
57
|
+
\`\`\`ts
|
|
58
|
+
let timer: number | undefined;
|
|
59
|
+
input.oninput = () => {
|
|
60
|
+
clearTimeout(timer);
|
|
61
|
+
timer = setTimeout(() => search(input.value), 300);
|
|
62
|
+
};
|
|
63
|
+
\`\`\`
|
|
64
|
+
|
|
65
|
+
| Delay | Feels |
|
|
66
|
+
|------:|:------|
|
|
67
|
+
| 100 ms | instant, many requests |
|
|
68
|
+
| 300 ms | the usual choice |
|
|
69
|
+
|
|
70
|
+
1. Keep the delay short.
|
|
71
|
+
2. Cancel the request a newer one replaces.
|
|
72
|
+
|
|
73
|
+
See [MDN on setTimeout](https://developer.mozilla.org/docs/Web/API/setTimeout) for details.`;
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* An answer that arrives a few characters at a time, as a model streams it. Every piece shows the moment it comes;
|
|
77
|
+
* a mark not understood yet (\`**\`, \`|\`, a fence) shows as text until it is, then takes its form.
|
|
78
|
+
*/
|
|
79
|
+
export default function Streaming() {
|
|
80
|
+
const s = reactive({ busy: false });
|
|
81
|
+
let view!: Markdown;
|
|
82
|
+
let timer: ReturnType<typeof setInterval> | undefined;
|
|
83
|
+
let at = 0;
|
|
84
|
+
|
|
85
|
+
const stop = () => {
|
|
86
|
+
clearInterval(timer);
|
|
87
|
+
timer = undefined;
|
|
88
|
+
s.busy = false;
|
|
89
|
+
};
|
|
90
|
+
const start = () => {
|
|
91
|
+
stop();
|
|
92
|
+
view.clear();
|
|
93
|
+
at = 0;
|
|
94
|
+
s.busy = true;
|
|
95
|
+
timer = setInterval(() => {
|
|
96
|
+
const piece = ANSWER.slice(at, at + 1 + Math.floor(Math.random() * 6));
|
|
97
|
+
at += piece.length;
|
|
98
|
+
view.append(piece);
|
|
99
|
+
if (at >= ANSWER.length) {
|
|
100
|
+
view.end();
|
|
101
|
+
stop();
|
|
102
|
+
}
|
|
103
|
+
}, 40);
|
|
104
|
+
};
|
|
105
|
+
|
|
106
|
+
return (
|
|
107
|
+
<Stack gap="md" ref={(c: ComponentBase) => c.motif.setDisposable(stop)}>
|
|
108
|
+
<Stack orientation="horizontal" gap="sm">
|
|
109
|
+
<Button text={() => (s.busy ? 'Streaming…' : 'Stream the answer')} enabled={() => !s.busy} onclick={start} />
|
|
110
|
+
<Button
|
|
111
|
+
text="Stop"
|
|
112
|
+
variant="outline"
|
|
113
|
+
enabled={() => s.busy}
|
|
114
|
+
onclick={() => {
|
|
115
|
+
stop();
|
|
116
|
+
view.end();
|
|
117
|
+
}}
|
|
118
|
+
/>
|
|
119
|
+
</Stack>
|
|
120
|
+
<Markdown ref={(m: Markdown) => (view = m)} />
|
|
121
|
+
</Stack>
|
|
122
|
+
);
|
|
123
|
+
}
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
```tsx
|
|
127
|
+
<Markdown text={() => this.answer.text} streaming={() => this.answer.busy} />
|
|
128
|
+
|
|
129
|
+
const view = new Markdown();
|
|
130
|
+
for await (const delta of stream) view.append(delta);
|
|
131
|
+
view.end();
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
Nothing waits to be shown. `**` appears as text until the next character says whether it opens bold text. `#` at the start of a line becomes a heading at the space that follows it. A line starting with `|` becomes a table when the delimiter line under it is complete. Once an element is made, it stays: unclosed bold text at the end of a paragraph stays bold.
|
|
135
|
+
|
|
136
|
+
## What is supported
|
|
137
|
+
|
|
138
|
+
| Element | Details |
|
|
139
|
+
| --- | --- |
|
|
140
|
+
| `Headings` | `#` to `######` and a space. A heading underlined with `===` or `---` is not supported: it would turn a finished paragraph into a heading. |
|
|
141
|
+
| `Emphasis` | `*em*`, `**strong**`, `***both***`, `~~deleted~~`, with CommonMark’s rules for where a run can open and close. `snake_case` stays text. |
|
|
142
|
+
| `Code` | Inline `` `code` ``, and fenced blocks with ```` ``` ```` or `~~~` and a language.` |
|
|
143
|
+
| `Lists` | Bullet (`-`, `*`, `+`) and ordered (`1.`, `1)`) lists, nested by indentation, with task items `- [ ]` and `- [x]`. |
|
|
144
|
+
| `Quotes` | `>`, with any block inside, nested quotes included. |
|
|
145
|
+
| `Tables` | Lines starting with `\|`, a delimiter line with `:` for the alignment, and `\\|` for a pipe in a cell. |
|
|
146
|
+
| `Links` | `[text](address "title")`, and bare addresses that start with `https://`, `http://` or `www.`. |
|
|
147
|
+
| `Images` | ``: shown only when `images` is on (see Links and images). |
|
|
148
|
+
| `Footnotes` | `[^label]` refers to a note written as `[^label]: text` at a line’s start; lines indented under it go on in it. References are numbered by the order they first appear. |
|
|
149
|
+
| `Math, diagrams` | `$…$`, `$$…$$` and ```` ```math ````, and fenced blocks in a diagram language, with a door (see Footnotes, math and diagrams). Without one, `$` is text and a diagram stays code.` |
|
|
150
|
+
| `Other` | Horizontal rules (`---`, `***`, `___`), hard line breaks (two spaces or `\` at the end of a line), escapes and entities (`&`, `'`). HTML is shown as text. |
|
|
151
|
+
|
|
152
|
+
## Code blocks and highlighting
|
|
153
|
+
|
|
154
|
+
A code block shows its language and a copy button. Any highlighter can colour it through `highlighter`. Each line takes its colours when it ends, and lines that are already drawn are never coloured again. A highlighter that loads later colours the blocks that start after it is ready.
|
|
155
|
+
|
|
156
|
+
```tsx
|
|
157
|
+
import { Markdown, type CodeHighlighter, type CodeRun } from '@motifx-community/ui';
|
|
158
|
+
|
|
159
|
+
const KEYWORDS = /\b(?:const|let|function|return|if|else|import|from|export|new|await|async)\b/g;
|
|
160
|
+
|
|
161
|
+
/** A small highlighter through the door: keywords in the accent colour. Any highlighter fits the same way. */
|
|
162
|
+
const keywords: CodeHighlighter = {
|
|
163
|
+
open: (language) =>
|
|
164
|
+
['ts', 'js', 'tsx'].includes(language)
|
|
165
|
+
? {
|
|
166
|
+
line(text) {
|
|
167
|
+
const runs: CodeRun[] = [];
|
|
168
|
+
let at = 0;
|
|
169
|
+
for (const m of text.matchAll(KEYWORDS)) {
|
|
170
|
+
if (m.index > at) runs.push({ text: text.slice(at, m.index) });
|
|
171
|
+
runs.push({ text: m[0], color: 'var(--mx-color-accent-fg)' });
|
|
172
|
+
at = m.index + m[0].length;
|
|
173
|
+
}
|
|
174
|
+
if (at < text.length) runs.push({ text: text.slice(at) });
|
|
175
|
+
return runs;
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
: null
|
|
179
|
+
};
|
|
180
|
+
|
|
181
|
+
const TEXT = `\`\`\`ts
|
|
182
|
+
import { Markdown } from '@motifx-community/ui';
|
|
183
|
+
|
|
184
|
+
export function answer(text: string) {
|
|
185
|
+
const view = new Markdown({ text });
|
|
186
|
+
return view;
|
|
187
|
+
}
|
|
188
|
+
\`\`\``;
|
|
189
|
+
|
|
190
|
+
/** Each line takes its colours when it ends; the copy button copies the code as written. */
|
|
191
|
+
export default function Highlighting() {
|
|
192
|
+
return <Markdown text={TEXT} highlighter={keywords} />;
|
|
193
|
+
}
|
|
194
|
+
```
|
|
195
|
+
|
|
196
|
+
| Member | Description |
|
|
197
|
+
| --- | --- |
|
|
198
|
+
| `CodeHighlighter.open(language)` | Called when a code block starts, with the first word of its fence (`''` for none). Return a `CodeColorer`, or `null` to keep the block plain. |
|
|
199
|
+
| `CodeColorer.line(text)` | Called once for each line as it ends. Return runs `{ text, className?, color? }`. Their texts joined must be the line exactly, or the line stays plain. |
|
|
200
|
+
| `CodeColorer.close()` | Optional. The block ended. |
|
|
201
|
+
|
|
202
|
+
## Long code and long texts
|
|
203
|
+
|
|
204
|
+
With `codeLines`, a code block longer than that many lines shows its first ones, fading out, and a button under it shows them all, then folds them again. A block streaming in folds once it grows past the limit, and its button counts the lines as they come. Every line stays in the block: the copy button copies them all.
|
|
205
|
+
|
|
206
|
+
```tsx
|
|
207
|
+
<Markdown text={() => this.answer.text} streaming={() => this.answer.busy} codeLines={20} />
|
|
208
|
+
```
|
|
209
|
+
|
|
210
|
+
A very long text given at once, a saved answer of a model, is drawn from its start a piece a frame: each piece is written for a few milliseconds, then the frame lays it out, so the page never stops for it. `isDrawing` is `true` meanwhile; what is appended waits behind the pieces, and the text ends after the last one. The result is the same as the text drawn at once.
|
|
211
|
+
|
|
212
|
+
## Footnotes, math and diagrams
|
|
213
|
+
|
|
214
|
+
A footnote’s reference becomes its number, raised, as soon as its `]` is followed by anything but `(`; its note, `[^1]: text`, is drawn where it is written, in a numbered list with the notes written right after it, and opens with a link back to the first reference. Math and diagrams come through doors, as code colours do: the kit draws no TeX and no diagram itself. Their text shows as it arrives; once it is complete (the closing `$`, the closing `$$` or fence, or the end of the text) the door draws it, and what it gives takes the text’s place. A `$` opens math only when text follows it, and a `$` closes it unless a digit follows, so prices stay text; math left open at the end of its line stays as written.
|
|
215
|
+
|
|
216
|
+
```tsx
|
|
217
|
+
import katex from 'katex';
|
|
218
|
+
import mermaid from 'mermaid';
|
|
219
|
+
|
|
220
|
+
const mathRenderer: MathRenderer = {
|
|
221
|
+
render(tex, display) {
|
|
222
|
+
const host = document.createElement('span');
|
|
223
|
+
katex.render(tex, host, { displayMode: display, throwOnError: false });
|
|
224
|
+
return host;
|
|
225
|
+
},
|
|
226
|
+
};
|
|
227
|
+
|
|
228
|
+
let count = 0;
|
|
229
|
+
const diagramRenderer: DiagramRenderer = {
|
|
230
|
+
draws: (language) => language === 'mermaid',
|
|
231
|
+
async render(code) {
|
|
232
|
+
const { svg } = await mermaid.render(`diagram-${++count}`, code);
|
|
233
|
+
const host = document.createElement('div');
|
|
234
|
+
host.innerHTML = svg;
|
|
235
|
+
return host;
|
|
236
|
+
},
|
|
237
|
+
};
|
|
238
|
+
|
|
239
|
+
<Markdown text={() => this.answer.text} mathRenderer={mathRenderer} diagramRenderer={diagramRenderer} />
|
|
240
|
+
```
|
|
241
|
+
|
|
242
|
+
| Member | Description |
|
|
243
|
+
| --- | --- |
|
|
244
|
+
| `MathRenderer.render(tex, display)` | Draws `tex`, a block of its own when `display` (`$$…$$`, ```` ```math ````), in the line otherwise. Return an element, which is placed as it is, or `null` to keep the TeX as written.` |
|
|
245
|
+
| `DiagramRenderer.draws(language)` | Whether it draws code fenced as `language` (`mermaid`). |
|
|
246
|
+
| `DiagramRenderer.render(code, language)` | Draws the code once it is complete. Return an element, a promise of one, or `null` to keep the code. |
|
|
247
|
+
|
|
248
|
+
## Links and images
|
|
249
|
+
|
|
250
|
+
HTML in the text is shown as text. A link takes only a safe address: a relative one, `#…`, `http:`, `https:`, `mailto:` or `tel:`. Any other address, such as `javascript:` or `data:`, leaves the link without an address. Images are off by default, because an image address in a model’s answer can send data to another site. Turn them on with `images` and limit them with `allowImage`.
|
|
251
|
+
|
|
252
|
+
```tsx
|
|
253
|
+
<Markdown text={() => this.answer.text} images allowImage={(src) => src.startsWith('https://cdn.example.com/')} />
|
|
254
|
+
```
|
|
255
|
+
|
|
256
|
+
## Accessibility
|
|
257
|
+
|
|
258
|
+
| Topic | Details |
|
|
259
|
+
| --- | --- |
|
|
260
|
+
| `Structure` | Real headings, lists, quotes, tables and links, so screen readers navigate them as usual. |
|
|
261
|
+
| `Task items` | The box has the role `img` and a name in the kit language: “Done” or “Not done”. |
|
|
262
|
+
| `Copy button` | A button named “Copy”, which says “Copied” for a moment after copying. |
|
|
263
|
+
| `Long code` | The button under a folded block says how many lines it shows (“Show all 40 lines”) and has `aria-expanded`. Folded, every line is still in the block: it is copied, and found by the browser’s find. |
|
|
264
|
+
| `Footnotes` | A reference is a link named “Footnote 1”; it moves the focus to its note, and the note’s first link, “Back to reference 1”, moves it back. The page’s address does not change. |
|
|
265
|
+
| `Motion` | Nothing moves. Text appears where it belongs. |
|
|
266
|
+
|
|
267
|
+
## Localization
|
|
268
|
+
|
|
269
|
+
| String | Used for |
|
|
270
|
+
| --- | --- |
|
|
271
|
+
| `markdownCopy, markdownCopied` | The copy button and what it says after copying. |
|
|
272
|
+
| `markdownTaskDone, markdownTaskOpen` | The names of the task boxes. |
|
|
273
|
+
| `markdownFootnote, markdownFootnoteBack` | The names of a footnote’s reference and of the link back to it. |
|
|
274
|
+
| `markdownShowLines, markdownShowFewer` | The button under a folded code block, and what it says once the block is open. |
|
|
275
|
+
|
|
276
|
+
## Styling
|
|
277
|
+
|
|
278
|
+
| Hook | Description |
|
|
279
|
+
| --- | --- |
|
|
280
|
+
| `.mx-markdown` | The component. |
|
|
281
|
+
| `.mx-markdown__paragraph, .mx-markdown__h1 … __h6` | Paragraphs and headings. |
|
|
282
|
+
| `.mx-markdown__strong, __em, __del, __code, __link, __break` | Inline elements. |
|
|
283
|
+
| `.mx-markdown__list, __item, __task` | Lists, their items (`data-task` on task items) and task boxes (`data-done`). |
|
|
284
|
+
| `.mx-markdown__quote, __rule` | Quotes and horizontal rules. |
|
|
285
|
+
| `.mx-markdown__block, __code-header, __language, __copy, __pre, __code-text` | A code block, its header, language, copy button, and code (`data-language`). |
|
|
286
|
+
| `.mx-markdown__code-more` | The button under a long code block; the block has `data-folded` while folded, and `--_code-lines` says how many lines it shows. |
|
|
287
|
+
| `.mx-markdown__table, __head, __body, __row, __cell` | Tables. Cells carry `data-align` (`start`, `center`, `end`). |
|
|
288
|
+
| `.mx-markdown__image, __img` | An image and its alternative text. |
|
|
289
|
+
| `.mx-markdown__footnote-ref, __footnote-link, __footnotes, __footnote, __footnote-back` | A footnote’s reference, the list of notes, a note and its link back. |
|
|
290
|
+
| `.mx-markdown__math, __math-block, __math-text` | Math in a line and in a block, and its TeX until it is drawn; `data-drawn` once the door drew it. A code block drawn by a door has `data-drawn` (`math`, `diagram`). |
|
|
291
|
+
|
|
292
|
+
### Component tokens
|
|
293
|
+
|
|
294
|
+
| Token | Description |
|
|
295
|
+
| --- | --- |
|
|
296
|
+
| `markdown.flow-gap, markdown.item-gap` | The space between blocks, and between list items. |
|
|
297
|
+
| `markdown.h1 … markdown.h6, markdown.paragraph, markdown.strong, markdown.link` | Units: the type of headings, paragraphs, strong text and links (`hover`). |
|
|
298
|
+
| `markdown.inline-code, markdown.quote, markdown.list, markdown.task, markdown.rule` | Units: inline code, the quote bar, the list indent, the task box (`done`) and rules. |
|
|
299
|
+
| `markdown.code-block, markdown.code-header, markdown.code-language, markdown.code-text` | Units: a code block’s frame, header, language and code. Use `white-space` on `code-text` to decide whether long lines wrap. |
|
|
300
|
+
| `markdown.table, markdown.cell, markdown.image` | Units: the table frame, cells (`head`) and images. |
|
|
301
|
+
| `markdown.footnote-ref, markdown.footnotes, markdown.footnote, markdown.footnote-back` | Units: a reference’s number, the list of notes, a note (`focus`) and its link back. |
|
|
302
|
+
| `markdown.math-block, markdown.math-text` | Units: display math, and TeX not drawn yet. `code-block` has `drawn` for math drawn in its place. |
|
|
303
|
+
| `markdown.copy, markdown.code-more (places)` | The variant, tone and size of the copy button and of the button under a long code block. |
|
|
304
|
+
|
|
305
|
+
## API reference
|
|
306
|
+
|
|
307
|
+
### Props
|
|
308
|
+
|
|
309
|
+
| Prop | Type | Default | Description |
|
|
310
|
+
| --- | --- | --- | --- |
|
|
311
|
+
| `text` | `Bind<string>` | `''` | The markdown. A new value that goes on from the last one adds only what is new; any other value is a new text. |
|
|
312
|
+
| `streaming` | `Bind<boolean>` | `false` | While `true`, `text` is still arriving. When it turns `false`, the text ends. Without it, a given text ends at once. |
|
|
313
|
+
| `highlighter` | `Bind<CodeHighlighter \| null>` | None | The door for any highlighter. Code stays plain without one. |
|
|
314
|
+
| `mathRenderer` | `Bind<MathRenderer \| null>` | None | The door for math: draws TeX once it is complete. Without one, `$` is text. |
|
|
315
|
+
| `diagramRenderer` | `Bind<DiagramRenderer \| null>` | None | The door for diagrams: draws a fenced block in a language it draws once its code is complete. |
|
|
316
|
+
| `images` | `Bind<boolean>` | `false` | Shows images. While off, an image is a link to its address. |
|
|
317
|
+
| `allowImage` | `Bind<((src: string) => boolean) \| null>` | Every safe address | With `images`, decides which addresses are shown. The others stay text. |
|
|
318
|
+
| `linkTarget` | `Bind<string>` | `'_blank'` | Where links open. `rel="noopener noreferrer"` comes with a target. Use `''` for the same tab. |
|
|
319
|
+
| `copyButton` | `Bind<boolean>` | `true` | Shows a copy button on code blocks. |
|
|
320
|
+
| `codeLines` | `Bind<number>` | `0` | A code block longer than this many lines shows that many, folded, and a button under it shows them all and folds them again. `0` shows every line. |
|
|
321
|
+
| `onLinkClick` | `(e: MarkdownLinkClickEventArgs) => void` | | A link was clicked. `e.href`, `e.event`. Set `e.cancel` to handle it yourself. |
|
|
322
|
+
| `visible` | see Control | | Properties shared by all controls. |
|
|
323
|
+
|
|
324
|
+
### Properties
|
|
325
|
+
|
|
326
|
+
| Property | Access | Description |
|
|
327
|
+
| --- | --- | --- |
|
|
328
|
+
| `every prop above` | read/write | Accepts a value or a function, the same as the prop. A changed setting reaches what is drawn after it. |
|
|
329
|
+
| `isEnded` | read-only | `true` once the text is complete. |
|
|
330
|
+
| `isDrawing` | read-only | `true` while a very long text given at once is still drawn, a piece a frame. |
|
|
331
|
+
|
|
332
|
+
### Methods
|
|
333
|
+
|
|
334
|
+
| Method | Description |
|
|
335
|
+
| --- | --- |
|
|
336
|
+
| `append(delta)` | Adds `delta`. What it completes takes its form, and the rest is on screen as text at once. |
|
|
337
|
+
| `end()` | The text is complete. What waits at the end is decided as at the end of a line. Nothing drawn is drawn again. |
|
|
338
|
+
| `clear()` | Removes everything, to start a new text. |
|
|
339
|
+
| `blockAt(index)` | The block drawn for the character at `index` of the text: a paragraph, heading, code block, rule, table row or footnote. `null` before the first block, or past what is written. A search uses it to show where it found a text. |
|
|
340
|
+
|
|
341
|
+
## Feedback
|
|
342
|
+
|
|
343
|
+
Loading issues…
|
package/docs/menus-api.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# MenuBar: API reference
|
|
2
2
|
|
|
3
|
-
> MenuBar · @motifx-community/ui 0.1.0-beta.
|
|
3
|
+
> MenuBar · @motifx-community/ui 0.1.0-beta.14
|
|
4
4
|
|
|
5
5
|
Every prop, property, method and event of `MenuBar` and `ContextMenu`, the fields of a menu item, and the styling hooks and tokens.
|
|
6
6
|
|
|
@@ -17,6 +17,7 @@ Every prop, property, method and event of `MenuBar` and `ContextMenu`, the field
|
|
|
17
17
|
| `commands` | `Bind<readonly MenuItem[]>` | The app’s commands | The commands the user can add in the customizer, each with a `key`. |
|
|
18
18
|
| `customizer` | `Bind<boolean>` | `true` | The menu of a right-click offers the customizer when `customizable` is on. |
|
|
19
19
|
| `customizerKeyboard` | `Bind<boolean>` | `true` | The customizer has a Keyboard page ([ShortcutEditor](shortcuteditor.md)). |
|
|
20
|
+
| `toolbarTargets` | `Bind<boolean>` | `true` | On an item that names a command, the menu of a right-click offers to add it to each customizable toolbar of the page, or to take it away ([Toolbar: Customization](toolbar-customization.md#send)); also when `customizable` is off. |
|
|
20
21
|
| `mergeHost` | `Bind<boolean>` | `false` | The app’s bar: other bars merge their items into it. |
|
|
21
22
|
| `mergeName` | `Bind<string>` | `'main'` | The name of the app’s bar, when there are several. |
|
|
22
23
|
| `mergeInto` | `Bind<string \| MenuBar \| null>` | `null` | The app’s bar to merge into: its name or the bar itself. |
|
|
@@ -35,6 +36,7 @@ Every prop, property, method and event of `MenuBar` and `ContextMenu`, the field
|
|
|
35
36
|
| `keyboard` | `Bind<boolean>` | `true` | The Menu key and Shift+F10 open the menu at the focused element. |
|
|
36
37
|
| `closeOnScroll` | `Bind<boolean>` | `true` | Scrolling the element out of view closes the menu. Until then, the menu follows the element. |
|
|
37
38
|
| `openOnHover` | `Bind<boolean>` | `true` | Hovering an item opens its submenu. |
|
|
39
|
+
| `toolbarTargets` | `Bind<boolean>` | `true` | In the open menu, a right-click on an item that names a command offers to add it to each customizable toolbar of the page, or to take it away ([Toolbar: Customization](toolbar-customization.md#send)). |
|
|
38
40
|
| `enabled` | `Bind<boolean>` | `true` | `false` shows the browser’s own menu. |
|
|
39
41
|
|
|
40
42
|
## MenuItem
|
package/docs/menus-context.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# MenuBar: ContextMenu
|
|
2
2
|
|
|
3
|
-
> MenuBar · @motifx-community/ui 0.1.0-beta.
|
|
3
|
+
> MenuBar · @motifx-community/ui 0.1.0-beta.14
|
|
4
4
|
|
|
5
5
|
The menu of an element: it opens on a right-click at the pointer, and with the Menu key or Shift+F10 at the focused element. Its items are the same as those of a menu bar.
|
|
6
6
|
|
|
@@ -118,6 +118,7 @@ export default function AttachedMenu() {
|
|
|
118
118
|
| `Closing` | Escape, a click outside or choosing an item closes the menu; focus returns to the element it opened on. |
|
|
119
119
|
| `Scrolling` | The menu follows the element it opened on while the page scrolls, and closes once the element is out of view (`closeOnScroll`). |
|
|
120
120
|
| `Room` | A menu taller than the window scrolls inside and keeps its scroll position. |
|
|
121
|
+
| `Inside the menu` | A right-click, the Menu key or Shift+F10 on an item that names a command of the app offers to add it to each customizable toolbar of the page or to take it away (`toolbarTargets`, see [Toolbar: Customization](toolbar-customization.md#send)). Elsewhere in the menu nothing opens, not even the browser’s own menu. |
|
|
121
122
|
|
|
122
123
|
The props, properties and events of `ContextMenu` are in the [API reference](menus-api.md).
|
|
123
124
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# MenuBar: Customization
|
|
2
2
|
|
|
3
|
-
> MenuBar · @motifx-community/ui 0.1.0-beta.
|
|
3
|
+
> MenuBar · @motifx-community/ui 0.1.0-beta.14
|
|
4
4
|
|
|
5
5
|
With `customizable`, the user arranges the bar: hides and moves items, renames them, adds commands and menus, and changes keyboard shortcuts. The items you give stay as they are; what the user changed is one object for the app to save.
|
|
6
6
|
|
|
@@ -89,6 +89,10 @@ bar.onCustomized((e) => localStorage.setItem('menu', JSON.stringify(e.customizat
|
|
|
89
89
|
| `texts` | `Record<string, string>` | The names the user gave to items. |
|
|
90
90
|
| `added` | `MenuBarAddedItem[]` | The commands and menus the user added, each with its `id` (`user:1`). |
|
|
91
91
|
|
|
92
|
+
## Sending commands to a toolbar
|
|
93
|
+
|
|
94
|
+
On an item that names a command of the app (`command: 'save'`), the menu of a right-click offers “Add to the “Quick access” toolbar” for each customizable toolbar of the page, or “Remove from…” where the command is shown already. The lines come with the bar’s own commands, or alone when the bar is not `customizable`; `toolbarTargets: false` leaves them out. See [Toolbar: Customization](toolbar-customization.md#send).
|
|
95
|
+
|
|
92
96
|
## Commands of your own in the menu
|
|
93
97
|
|
|
94
98
|
`onCustomMenuOpening` occurs before the menu of a right-click opens, with the item, its path and the commands about to be shown: add commands of your own, leave some out, or set `cancel`. It occurs without `customizable` too, with no commands of the bar, so a bar can have a right-click menu of the app’s own.
|
package/docs/menus-merging.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# MenuBar: Merging menus
|
|
2
2
|
|
|
3
|
-
> MenuBar · @motifx-community/ui 0.1.0-beta.
|
|
3
|
+
> MenuBar · @motifx-community/ui 0.1.0-beta.14
|
|
4
4
|
|
|
5
5
|
A page can have several bars: the app’s bar, and the bars of documents, windows and tabs. The bar of the document in use shows its items in the app’s bar, so the user always finds the commands in one place.
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# MenuBar: Programmatic changes
|
|
2
2
|
|
|
3
|
-
> MenuBar · @motifx-community/ui 0.1.0-beta.
|
|
3
|
+
> MenuBar · @motifx-community/ui 0.1.0-beta.14
|
|
4
4
|
|
|
5
5
|
The items of a bar can be changed while it runs: by path, without building the whole list again, or in place followed by `refresh()`. Items can also name app commands, which give them their text, keys, state and action.
|
|
6
6
|
|
package/docs/menus.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# MenuBar and ContextMenu
|
|
2
2
|
|
|
3
|
-
> MenuBar · @motifx-community/ui 0.1.0-beta.
|
|
3
|
+
> MenuBar · @motifx-community/ui 0.1.0-beta.14
|
|
4
4
|
|
|
5
5
|
An application menu bar (File, Edit, View) and a context menu that opens on right-click. Both use the same menu items, which support submenus, check and radio items, shortcuts and access keys. The bar can be customized by the user, changed by path and merged with the bars of documents and windows.
|
|
6
6
|
|
package/docs/multiview.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# MultiView
|
|
2
2
|
|
|
3
|
-
> Navigation · @motifx-community/ui 0.1.0-beta.
|
|
3
|
+
> Navigation · @motifx-community/ui 0.1.0-beta.14
|
|
4
4
|
|
|
5
5
|
Displays one page at a time from a horizontal set. Users move between pages with a swipe or drag, and you can navigate with `next()`, `previous()` and `goTo()`, or with [Tabs](tabs.md), a [Stepper](stepper.md) or buttons bound to the same value. It works like the panels of a tab control without the tab strip.
|
|
6
6
|
|
package/docs/navigation.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Navigation
|
|
2
2
|
|
|
3
|
-
> Navigation · @motifx-community/ui 0.1.0-beta.
|
|
3
|
+
> Navigation · @motifx-community/ui 0.1.0-beta.14
|
|
4
4
|
|
|
5
5
|
Navigation components move the reader around an application and lay out its screens: bars at the top and bottom, menus and toolbars, tabs, paths, steps and pages, panels that slide in, and the containers that arrange everything.
|
|
6
6
|
|
package/docs/numberbox.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# NumberBox
|
|
2
2
|
|
|
3
|
-
> Editors · @motifx-community/ui 0.1.0-beta.
|
|
3
|
+
> Editors · @motifx-community/ui 0.1.0-beta.14
|
|
4
4
|
|
|
5
5
|
A numeric input with arrow key support, PageUp and PageDown, spin buttons that repeat while held, min and max limits, exact decimal stepping, display formats such as currency and percent, and locale-aware input.
|
|
6
6
|
|
package/docs/otpinput.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# OtpInput
|
|
2
2
|
|
|
3
|
-
> Editors · @motifx-community/ui 0.1.0-beta.
|
|
3
|
+
> Editors · @motifx-community/ui 0.1.0-beta.14
|
|
4
4
|
|
|
5
5
|
A one-time code in a row of boxes. Typing, pasting a whole code, the code a phone offers from a message and screen readers work as in any text box, because the boxes are drawn over one real input.
|
|
6
6
|
|
package/docs/pagination.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Pagination
|
|
2
2
|
|
|
3
|
-
> Navigation · @motifx-community/ui 0.1.0-beta.
|
|
3
|
+
> Navigation · @motifx-community/ui 0.1.0-beta.14
|
|
4
4
|
|
|
5
5
|
Navigates through pages of items, with page size options, the current position, navigation buttons and a button for each nearby page. It switches to a compact layout when it does not fit, and it looks and works like the DataGrid pager.
|
|
6
6
|
|