@motifx-community/ui 0.1.0-beta.12 → 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 +414 -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 +4 -2
- 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/dropdown/drop-down-props.d.ts +5 -2
- package/dist/components/form/MxForm.d.ts +1 -1
- package/dist/components/listbox/item-template.d.ts +4 -0
- 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/DocumentTab.d.ts +0 -1
- package/dist/components/tabdocs/PhoneBar.d.ts +0 -1
- 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/components/treeview/TreeView.d.ts +8 -4
- package/dist/components/treeview/tree-view-item-template.d.ts +4 -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/show-icon.d.ts +3 -3
- 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 +66924 -50915
- 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/list/OptionList.d.ts +4 -3
- package/dist/parts/list/option-parts.d.ts +1 -1
- 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 +4527 -201
- 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 +2 -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 +4 -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 +4 -3
- 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 +4 -3
- 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 +3 -3
- 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 +4 -3
- 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 +3 -3
- package/docs/validationsummary.md +1 -1
- package/docs/window.md +1 -1
- package/docs/wizard.md +1 -1
- package/llms-full.txt +19005 -12353
- package/llms.txt +29 -2
- package/package.json +5 -5
- 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
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import type { Component } from '@motifx/core';
|
|
2
|
+
import type { ChatQuestionsAnswer, ChatQuestionsPart } from './chat-request';
|
|
3
|
+
/**
|
|
4
|
+
* The questions of a reply, in the composer's place until they are answered. One question stands at a time; with
|
|
5
|
+
* several, a tab for each (marked when answered) and where it is, `2 / 3`. A question with options takes one (and goes
|
|
6
|
+
* to the next) or several, and "Other" opens a box for the user's own words; options with a preview show it beside them
|
|
7
|
+
* while focused. The number keys take an option, the arrow keys move between them, Escape stops the reply. "Decide for
|
|
8
|
+
* me" leaves the decision to the model; sending with a required question empty goes to it.
|
|
9
|
+
*/
|
|
10
|
+
export declare class ChatAskForm {
|
|
11
|
+
private readonly answered;
|
|
12
|
+
private readonly stop;
|
|
13
|
+
readonly row: Component<HTMLDivElement>;
|
|
14
|
+
private readonly header;
|
|
15
|
+
private readonly tabs;
|
|
16
|
+
private readonly count;
|
|
17
|
+
private readonly body;
|
|
18
|
+
private readonly bodyId;
|
|
19
|
+
private readonly previous;
|
|
20
|
+
private readonly next;
|
|
21
|
+
private readonly decline;
|
|
22
|
+
private readonly submit;
|
|
23
|
+
private tabParts;
|
|
24
|
+
/** The options of the question shown, "Other" last. */
|
|
25
|
+
private options;
|
|
26
|
+
private preview;
|
|
27
|
+
private otherBox;
|
|
28
|
+
private freeBox;
|
|
29
|
+
private missing;
|
|
30
|
+
private asked;
|
|
31
|
+
private drafts;
|
|
32
|
+
private index;
|
|
33
|
+
constructor(answered: (part: ChatQuestionsPart, answer: ChatQuestionsAnswer) => void, stop: () => void);
|
|
34
|
+
/** The questions on the form; `null` while it is closed. */
|
|
35
|
+
get part(): ChatQuestionsPart | null;
|
|
36
|
+
open(asked: ChatQuestionsPart): void;
|
|
37
|
+
close(): void;
|
|
38
|
+
/** The question shown takes the focus: its option taken, its first, or its box. */
|
|
39
|
+
focus(): boolean;
|
|
40
|
+
drawTexts(): void;
|
|
41
|
+
private get question();
|
|
42
|
+
private button;
|
|
43
|
+
/** Draws question `i`; `focus`: it takes the focus. */
|
|
44
|
+
private show;
|
|
45
|
+
private option;
|
|
46
|
+
private clearBody;
|
|
47
|
+
/** What the boxes hold goes to the draft. */
|
|
48
|
+
private sync;
|
|
49
|
+
/** Option `k` was taken: "Other" opens its box; one taken of a single choice goes to the next question. */
|
|
50
|
+
private pick;
|
|
51
|
+
private otherEntered;
|
|
52
|
+
/** To the next question, or to sending after the last. */
|
|
53
|
+
private forward;
|
|
54
|
+
private isTaken;
|
|
55
|
+
/** The answer of question `i`: the labels taken, in the options' order, then "Other"'s text; or the text written. */
|
|
56
|
+
private values;
|
|
57
|
+
/** The options taken, the tabs answered, where it is, the ends, and a required question still empty. */
|
|
58
|
+
private drawState;
|
|
59
|
+
private drawPreview;
|
|
60
|
+
private send;
|
|
61
|
+
/** "Decide for me": the model goes on with what it thinks best. */
|
|
62
|
+
private leave;
|
|
63
|
+
private key;
|
|
64
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { Component } from '@motifx/core';
|
|
2
|
+
import { type ChatEntry } from './chat-entry';
|
|
3
|
+
import type { ChatLook } from './chat-look';
|
|
4
|
+
import type { ChatQuestionsPart } from './chat-request';
|
|
5
|
+
/**
|
|
6
|
+
* Questions the model asked, as the flow keeps them: how many and where they stand, then each question with its answer
|
|
7
|
+
* under it. The form is under the conversation, in the composer's place; while it waits, "Answer" takes the focus there.
|
|
8
|
+
*/
|
|
9
|
+
export declare class ChatAskedEntry implements ChatEntry {
|
|
10
|
+
private readonly asked;
|
|
11
|
+
private readonly live;
|
|
12
|
+
readonly row: Component<HTMLDivElement>;
|
|
13
|
+
private readonly count;
|
|
14
|
+
private readonly state;
|
|
15
|
+
private readonly button;
|
|
16
|
+
private readonly answers;
|
|
17
|
+
constructor(asked: ChatQuestionsPart, look: ChatLook, live: () => boolean);
|
|
18
|
+
append(): void;
|
|
19
|
+
update(): void;
|
|
20
|
+
drawTexts(): void;
|
|
21
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { Component } from '@motifx/core';
|
|
2
|
+
import { Chip } from '../chip/Chip';
|
|
3
|
+
import type { ChipProps } from '../chip/chip-props';
|
|
4
|
+
import { type ChatEntry } from './chat-entry';
|
|
5
|
+
import type { ChatAttachmentPart } from './chat-part';
|
|
6
|
+
/**
|
|
7
|
+
* A file as a chip: an image with its picture (read from the file while the chip lives), anything else with a file
|
|
8
|
+
* glyph. `props` adds to the chip's own (`removable` in the composer).
|
|
9
|
+
*/
|
|
10
|
+
export declare function attachmentChip(file: ChatAttachmentPart, props?: ChipProps): Chip;
|
|
11
|
+
/** A file in the model's flow: its chip. */
|
|
12
|
+
export declare class ChatAttachmentEntry implements ChatEntry {
|
|
13
|
+
readonly row: Component<HTMLDivElement>;
|
|
14
|
+
constructor(file: ChatAttachmentPart);
|
|
15
|
+
append(): void;
|
|
16
|
+
update(): void;
|
|
17
|
+
drawTexts(): void;
|
|
18
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { Component } from '@motifx/core';
|
|
2
|
+
import type { ChatToolPart } from './chat-part';
|
|
3
|
+
import type { ChatAnswer, ChatPlanPart } from './chat-request';
|
|
4
|
+
/**
|
|
5
|
+
* The choices of a request, in the composer's place until one is taken: a tool call asking before it runs, a plan
|
|
6
|
+
* asking to go on. Its question, then the choices, numbered as a question's options are: a click, or the number's key,
|
|
7
|
+
* takes one, and the arrow keys move between them. A choice that asks for a text opens a box under them: Enter there
|
|
8
|
+
* takes the choice with what was written, Escape goes back to it. Escape elsewhere stops the reply.
|
|
9
|
+
*/
|
|
10
|
+
export declare class ChatChoicesView {
|
|
11
|
+
private readonly answered;
|
|
12
|
+
private readonly stop;
|
|
13
|
+
readonly row: Component<HTMLDivElement>;
|
|
14
|
+
private readonly said;
|
|
15
|
+
private readonly list;
|
|
16
|
+
private readonly box;
|
|
17
|
+
private buttons;
|
|
18
|
+
private labels;
|
|
19
|
+
private items;
|
|
20
|
+
/** The choice the box is for; `-1` while it was not opened. */
|
|
21
|
+
private boxFor;
|
|
22
|
+
private asked;
|
|
23
|
+
constructor(answered: (part: ChatPlanPart | ChatToolPart, answer: ChatAnswer) => void, stop: () => void);
|
|
24
|
+
/** The request shown; `null` while it is closed. */
|
|
25
|
+
get part(): ChatPlanPart | ChatToolPart | null;
|
|
26
|
+
open(asked: ChatPlanPart | ChatToolPart): void;
|
|
27
|
+
close(): void;
|
|
28
|
+
/** The box when it is open, else the first choice. */
|
|
29
|
+
focus(): boolean;
|
|
30
|
+
/** The language changed: the question and the choices. */
|
|
31
|
+
drawTexts(): void;
|
|
32
|
+
private question;
|
|
33
|
+
/** A plan's choices (by default "Yes, go ahead"), then "No, keep planning"; a call's "Yes", `always` when given, "No". */
|
|
34
|
+
private choiceList;
|
|
35
|
+
/** Choice `i` was taken: one that asks for a text opens the box first, and goes with what it holds. */
|
|
36
|
+
private take;
|
|
37
|
+
/** The choice the open box is for is marked as taken. */
|
|
38
|
+
private drawTaken;
|
|
39
|
+
private key;
|
|
40
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { Component } from '@motifx/core';
|
|
2
|
+
import { type ChatEntry } from './chat-entry';
|
|
3
|
+
import type { ChatLook } from './chat-look';
|
|
4
|
+
import type { ChatCompactionPart } from './chat-part';
|
|
5
|
+
/**
|
|
6
|
+
* Where the conversation was summed up for the model: a line across the flow with "Conversation summarized" on it,
|
|
7
|
+
* which opens the summary under it when there is one.
|
|
8
|
+
*/
|
|
9
|
+
export declare class ChatCompactionEntry implements ChatEntry {
|
|
10
|
+
readonly row: Component<HTMLDivElement>;
|
|
11
|
+
private readonly head;
|
|
12
|
+
private readonly body;
|
|
13
|
+
private expanded;
|
|
14
|
+
constructor(compaction: ChatCompactionPart, look: ChatLook);
|
|
15
|
+
append(): void;
|
|
16
|
+
update(): void;
|
|
17
|
+
drawTexts(): void;
|
|
18
|
+
private drawOpen;
|
|
19
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import type { Bind } from '@motifx/core';
|
|
2
|
+
import type { ControlProps } from '../../core/control';
|
|
3
|
+
import type { ChatComposer } from './ChatComposer';
|
|
4
|
+
import type { ChatCommand } from './chat-command';
|
|
5
|
+
import type { ChatContextChangedEventArgs } from './chat-context-changed-event-args';
|
|
6
|
+
import type { ChatContextItem } from './chat-context-item';
|
|
7
|
+
import type { ChatMentionEventArgs } from './chat-mention';
|
|
8
|
+
import type { ChatOption } from './chat-option';
|
|
9
|
+
import type { ChatSendEventArgs } from './chat-send-event-args';
|
|
10
|
+
import type { ChatValueChangedEventArgs } from './chat-value-changed-event-args';
|
|
11
|
+
/** Props of `ChatComposer`. Each prop is also a settable property, and a function is tracked. */
|
|
12
|
+
export interface ChatComposerProps extends ControlProps {
|
|
13
|
+
/** The hint in the empty box. The default is the kit's "Message". */
|
|
14
|
+
placeholder?: Bind<string>;
|
|
15
|
+
/** A reply is being written: the send button becomes a stop button, and what Enter sends is queued by the chat. */
|
|
16
|
+
busy?: Bind<boolean>;
|
|
17
|
+
/** The most lines the box grows to before it scrolls. The default is `8`. */
|
|
18
|
+
maxRows?: Bind<number>;
|
|
19
|
+
/**
|
|
20
|
+
* Files can be attached: picked with the attach button, pasted or dropped. Each shows as a chip above the box, and
|
|
21
|
+
* they go with the message (`e.attachments`). The default is `false`.
|
|
22
|
+
*/
|
|
23
|
+
attachments?: Bind<boolean>;
|
|
24
|
+
/** The files taken, as the browser's file input reads it: `.pdf`, `image/png`, `image/*`, comma-separated. The default is any. */
|
|
25
|
+
accept?: Bind<string>;
|
|
26
|
+
/**
|
|
27
|
+
* What the app adds to the next message by itself (the open file, a selection), as chips among the tools. The
|
|
28
|
+
* composer keeps the array and its objects: a chip's toggle writes `on`, its remove button takes the item out.
|
|
29
|
+
*/
|
|
30
|
+
contextItems?: Bind<ChatContextItem[]>;
|
|
31
|
+
/** The commands `/` lists: typed at the start of the box, or from the commands button. */
|
|
32
|
+
commands?: Bind<readonly ChatCommand[]>;
|
|
33
|
+
/** The ways the model can work, as the app names them ("Ask before edits", "Plan"). With them a button shows the one in use, and Shift+Tab in the box goes to the next. */
|
|
34
|
+
modes?: Bind<readonly ChatOption[]>;
|
|
35
|
+
/** The `value` of the mode in use; by default the first. The user changes it (`onModeChanged`). */
|
|
36
|
+
mode?: Bind<string>;
|
|
37
|
+
/** The models the user can pick; with them a button shows the one in use. */
|
|
38
|
+
models?: Bind<readonly ChatOption[]>;
|
|
39
|
+
/** The `value` of the model in use; by default the first. The user changes it (`onModelChanged`). */
|
|
40
|
+
model?: Bind<string>;
|
|
41
|
+
/** Whether the model thinks first. Set, the model's menu has a check box for it (`onThinkingChanged`). */
|
|
42
|
+
thinking?: Bind<boolean>;
|
|
43
|
+
/** How full the model's context is, from `0` to `1`. Set, a ring shows it with its percent; `null` hides it. */
|
|
44
|
+
usage?: Bind<number | null>;
|
|
45
|
+
/** What was sent before, oldest first: Arrow Up at the start of the box brings it back. What is sent is added. */
|
|
46
|
+
history?: Bind<readonly string[]>;
|
|
47
|
+
/** Occurs when the user sends the text (Enter, or the send button). */
|
|
48
|
+
onSend?: (e: ChatSendEventArgs) => void;
|
|
49
|
+
/** Occurs when the user stops the reply (the stop button, or Escape while busy). */
|
|
50
|
+
onStop?: (e: {
|
|
51
|
+
source: ChatComposer;
|
|
52
|
+
}) => void;
|
|
53
|
+
/** Occurs when the user turns a context item on or off, or takes it off. */
|
|
54
|
+
onContextChanged?: (e: ChatContextChangedEventArgs) => void;
|
|
55
|
+
/** Occurs when the user writes after `@`: give what fits `e.query` in `e.items`, or a promise of them in `e.promise`. */
|
|
56
|
+
onMention?: (e: ChatMentionEventArgs) => void;
|
|
57
|
+
/** Occurs when the user picks another mode (the menu, or Shift+Tab). */
|
|
58
|
+
onModeChanged?: (e: ChatValueChangedEventArgs<string>) => void;
|
|
59
|
+
/** Occurs when the user picks another model. */
|
|
60
|
+
onModelChanged?: (e: ChatValueChangedEventArgs<string>) => void;
|
|
61
|
+
/** Occurs when the user turns thinking on or off. */
|
|
62
|
+
onThinkingChanged?: (e: ChatValueChangedEventArgs<boolean>) => void;
|
|
63
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ComponentBase } from '@motifx/core';
|
|
2
|
+
import type { ChatContextItem } from './chat-context-item';
|
|
3
|
+
/** The user turned a context item on or off (`item.on`), or took it off (`removed`: it left the array). */
|
|
4
|
+
export interface ChatContextChangedEventArgs {
|
|
5
|
+
item: ChatContextItem;
|
|
6
|
+
removed: boolean;
|
|
7
|
+
source: ComponentBase;
|
|
8
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { IconSource } from '../../core/icon-source';
|
|
2
|
+
/**
|
|
3
|
+
* Something the app adds to the next message by itself, shown as a chip among the composer's tools: the open file, a
|
|
4
|
+
* selection. The user can leave it out (the chip toggles `on`) or take it off.
|
|
5
|
+
*/
|
|
6
|
+
export interface ChatContextItem {
|
|
7
|
+
label: string;
|
|
8
|
+
/** By default a file glyph. */
|
|
9
|
+
icon?: IconSource;
|
|
10
|
+
/** It goes with the message. The default is `true`. */
|
|
11
|
+
on?: boolean;
|
|
12
|
+
/** The app's own data for it: a path, a range. */
|
|
13
|
+
data?: unknown;
|
|
14
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Button } from '../button/Button';
|
|
2
|
+
/** A button that copies a text, its icon alone: named "Copy", then "Copied" for a moment. */
|
|
3
|
+
export declare class ChatCopyButton {
|
|
4
|
+
private readonly read;
|
|
5
|
+
readonly button: Button;
|
|
6
|
+
private copied;
|
|
7
|
+
private timer;
|
|
8
|
+
constructor(read: () => string);
|
|
9
|
+
drawTexts(): void;
|
|
10
|
+
private copy;
|
|
11
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { Component, ComponentBase } from '@motifx/core';
|
|
2
|
+
/** The row of one part in a turn's flow: a dot at its start, then what the part draws. */
|
|
3
|
+
export interface ChatEntry {
|
|
4
|
+
readonly row: Component<HTMLDivElement>;
|
|
5
|
+
/** Text arrived for the part (markdown, thinking, a tool's output). */
|
|
6
|
+
append(delta: string): void;
|
|
7
|
+
/** The part changed: its state is drawn again. */
|
|
8
|
+
update(): void;
|
|
9
|
+
/** The kit language changed. */
|
|
10
|
+
drawTexts(): void;
|
|
11
|
+
/** What shows the character at `index` of the part's text, for a search: the block of its markdown. */
|
|
12
|
+
found?(index: number): ComponentBase | null;
|
|
13
|
+
/** Its markdown, a long one, is still drawn a piece a frame. */
|
|
14
|
+
drawing?(): boolean;
|
|
15
|
+
}
|
|
16
|
+
/** The frame every entry shares: the row (`data-kind`), its dot and the column beside it. */
|
|
17
|
+
export declare function entryFrame(kind: string): {
|
|
18
|
+
row: Component<HTMLDivElement>;
|
|
19
|
+
main: Component<HTMLDivElement>;
|
|
20
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { Component, ComponentBase } from '@motifx/core';
|
|
2
|
+
import type { ChatLook } from './chat-look';
|
|
3
|
+
import type { ChatPart } from './chat-part';
|
|
4
|
+
/**
|
|
5
|
+
* What the model did in a turn, in order: one entry per part, each with its dot. A part added later is drawn at the
|
|
6
|
+
* end; a part that changes draws its own entry again; text being written is added to its markdown.
|
|
7
|
+
*/
|
|
8
|
+
export declare class ChatFlowView {
|
|
9
|
+
private readonly look;
|
|
10
|
+
private readonly live;
|
|
11
|
+
readonly row: Component<HTMLDivElement>;
|
|
12
|
+
private readonly entries;
|
|
13
|
+
/** The text being written: it ends when anything else comes, or when the reply ends. */
|
|
14
|
+
private writing;
|
|
15
|
+
constructor(look: ChatLook, live: () => boolean);
|
|
16
|
+
/** Draws `part` at the end. `open`: text still being written; `time`: the time shown above it. */
|
|
17
|
+
add(part: ChatPart, open?: boolean, time?: Date): void;
|
|
18
|
+
append(part: ChatPart, delta: string): void;
|
|
19
|
+
update(part: ChatPart): void;
|
|
20
|
+
/** What shows the character at `index` of `part`'s text, for a search; the part's row when nothing smaller does. */
|
|
21
|
+
found(part: ChatPart, index: number): ComponentBase | null;
|
|
22
|
+
/** A long markdown of the flow, or of a sub-agent's, is still drawn a piece a frame. */
|
|
23
|
+
drawing(): boolean;
|
|
24
|
+
/** The flow of the sub-agent a tool call runs. */
|
|
25
|
+
innerOf(part: ChatPart): ChatFlowView | null;
|
|
26
|
+
/** The text being written is complete. */
|
|
27
|
+
close(): void;
|
|
28
|
+
/** The reply ended: every entry, a sub-agent's too, is drawn as it stands. */
|
|
29
|
+
refresh(): void;
|
|
30
|
+
drawTexts(): void;
|
|
31
|
+
private make;
|
|
32
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { Component } from '@motifx/core';
|
|
2
|
+
import { type ChatEntry } from './chat-entry';
|
|
3
|
+
import type { ChatLook } from './chat-look';
|
|
4
|
+
import type { ChatFormPart } from './chat-request';
|
|
5
|
+
/**
|
|
6
|
+
* A form a reply asked the user to fill in, as the flow keeps it: who asks and where it stands, what it asks for, then
|
|
7
|
+
* each field the user filled in with what they wrote. The form is under the conversation, in the composer's place;
|
|
8
|
+
* while it waits, "Answer" takes the focus there.
|
|
9
|
+
*/
|
|
10
|
+
export declare class ChatFormEntry implements ChatEntry {
|
|
11
|
+
private readonly asked;
|
|
12
|
+
private readonly live;
|
|
13
|
+
readonly row: Component<HTMLDivElement>;
|
|
14
|
+
private readonly title;
|
|
15
|
+
private readonly state;
|
|
16
|
+
private readonly button;
|
|
17
|
+
private readonly list;
|
|
18
|
+
constructor(asked: ChatFormPart, look: ChatLook, live: () => boolean);
|
|
19
|
+
append(): void;
|
|
20
|
+
update(): void;
|
|
21
|
+
drawTexts(): void;
|
|
22
|
+
/** A value as the user chose it: the name of a choice, yes or no, the values of several. */
|
|
23
|
+
private said;
|
|
24
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import type { Component, ComponentBase } from '@motifx/core';
|
|
2
|
+
import type { ChatFormAnswer, ChatFormPart } from './chat-request';
|
|
3
|
+
/**
|
|
4
|
+
* A form a reply asks the user to fill in, in the composer's place until they send it, decline it or dismiss it: who
|
|
5
|
+
* asks, what for, then a field for each of its schema's (a box for a text, a number or a date, round buttons or a
|
|
6
|
+
* drop-down for a choice of one, tags for several, a check box for a yes or no), checked as the schema says. Enter in
|
|
7
|
+
* a box sends it, Escape dismisses it.
|
|
8
|
+
*/
|
|
9
|
+
export declare class ChatFormView {
|
|
10
|
+
private readonly answered;
|
|
11
|
+
readonly row: Component<HTMLDivElement>;
|
|
12
|
+
private readonly from;
|
|
13
|
+
private readonly said;
|
|
14
|
+
private readonly body;
|
|
15
|
+
private readonly cancel;
|
|
16
|
+
private readonly decline;
|
|
17
|
+
private readonly submit;
|
|
18
|
+
private fields;
|
|
19
|
+
private data;
|
|
20
|
+
private asked;
|
|
21
|
+
constructor(answered: (part: ChatFormPart, answer: ChatFormAnswer) => void);
|
|
22
|
+
/** The form shown; `null` while it is closed. */
|
|
23
|
+
get part(): ChatFormPart | null;
|
|
24
|
+
open(asked: ChatFormPart): void;
|
|
25
|
+
close(): void;
|
|
26
|
+
/** The first field takes the focus; a form with none, its send button. */
|
|
27
|
+
focus(): boolean;
|
|
28
|
+
drawTexts(): void;
|
|
29
|
+
private button;
|
|
30
|
+
/** What a field holds before the user writes: its default, as its editor takes it. */
|
|
31
|
+
private start;
|
|
32
|
+
/** The form's item for a field: its editor, its label and help, and its checks. */
|
|
33
|
+
private item;
|
|
34
|
+
/** The choices of a text field, when it is a choice of one. */
|
|
35
|
+
private choices;
|
|
36
|
+
private choiceList;
|
|
37
|
+
/** The fields are checked; what the user gave goes, a field left empty not with it. */
|
|
38
|
+
private send;
|
|
39
|
+
/** A field's value as the schema writes it: a date as text, a whole number whole; `null` when it is empty. */
|
|
40
|
+
private valueOf;
|
|
41
|
+
/** A date written as text: `YYYY-MM-DD` is that day where the user is, not at midnight in Greenwich. */
|
|
42
|
+
private dateOf;
|
|
43
|
+
/** A date as `YYYY-MM-DD`, the day it is where the user is. */
|
|
44
|
+
private dayOf;
|
|
45
|
+
private leave;
|
|
46
|
+
/** The editor of a field, for tests and for the chat's focus. */
|
|
47
|
+
editorOf(key: string): ComponentBase | undefined;
|
|
48
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { ComponentBase } from '@motifx/core';
|
|
2
|
+
import type { ChatFeedback, ChatMessage } from './chat-message';
|
|
3
|
+
/** The conversation goes back to before `message` (a message of the user): `removed` are it and what came after it. Set `cancel` to keep them. */
|
|
4
|
+
export interface ChatRewindEventArgs {
|
|
5
|
+
message: ChatMessage;
|
|
6
|
+
removed: ChatMessage[];
|
|
7
|
+
cancel: boolean;
|
|
8
|
+
source: ComponentBase;
|
|
9
|
+
}
|
|
10
|
+
/** The user starts another conversation from `message`: `messages` are those before it, for the new conversation to open with. */
|
|
11
|
+
export interface ChatForkEventArgs {
|
|
12
|
+
message: ChatMessage;
|
|
13
|
+
messages: ChatMessage[];
|
|
14
|
+
source: ComponentBase;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* The user asks for the reply `message` again: it failed or stopped (`onRetry`), or they want another (`onRegenerate`).
|
|
18
|
+
* It is gone; write the new one with `reply()`.
|
|
19
|
+
*/
|
|
20
|
+
export interface ChatRetryEventArgs {
|
|
21
|
+
message: ChatMessage;
|
|
22
|
+
/** The user's message it answered, when the turn has one. */
|
|
23
|
+
question: ChatMessage | null;
|
|
24
|
+
source: ComponentBase;
|
|
25
|
+
}
|
|
26
|
+
/** The user said the reply `message` was good or bad, or took it back (`null`); it is in `message.feedback` already. */
|
|
27
|
+
export interface ChatFeedbackEventArgs {
|
|
28
|
+
message: ChatMessage;
|
|
29
|
+
feedback: ChatFeedback | null;
|
|
30
|
+
source: ComponentBase;
|
|
31
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { Chat } from './Chat';
|
|
2
|
+
import type { ChatMessage } from './chat-message';
|
|
3
|
+
/**
|
|
4
|
+
* The arguments of `onLoadOlder`. Add the older messages with `chat.prepend()`, then call `release()` or set `promise`.
|
|
5
|
+
* A promise that rejects, or `fail()`, shows the button to try again.
|
|
6
|
+
*/
|
|
7
|
+
export interface ChatLoadOlderEventArgs {
|
|
8
|
+
/** The oldest message shown: load what came before it. `null` when there is none. */
|
|
9
|
+
before: ChatMessage | null;
|
|
10
|
+
/** Ends the loading. `done = true` says there is nothing older, and the chat stops asking. */
|
|
11
|
+
release: (done?: boolean) => void;
|
|
12
|
+
/** The loading failed: the chat offers to try again. */
|
|
13
|
+
fail: () => void;
|
|
14
|
+
/** A promise to wait for: the loading ends when it settles. */
|
|
15
|
+
promise?: Promise<unknown>;
|
|
16
|
+
source: Chat;
|
|
17
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { CodeHighlighter } from '../markdown/code-highlighter';
|
|
2
|
+
import type { DiagramRenderer } from '../markdown/diagram-renderer';
|
|
3
|
+
import type { MathRenderer } from '../markdown/math-renderer';
|
|
4
|
+
import type { ChatFeedback, ChatMessage } from './chat-message';
|
|
5
|
+
import type { ChatRequestPart } from './chat-request';
|
|
6
|
+
import type { ChatTurn } from './chat-turn';
|
|
7
|
+
/** What the parts of a turn take from the chat when they are made, and what they ask of it. */
|
|
8
|
+
export interface ChatLook {
|
|
9
|
+
highlighter: CodeHighlighter | null;
|
|
10
|
+
mathRenderer: MathRenderer | null;
|
|
11
|
+
diagramRenderer: DiagramRenderer | null;
|
|
12
|
+
linkTarget: string;
|
|
13
|
+
/** A code block longer than this many lines is folded to them; `0` folds none. */
|
|
14
|
+
codeLines: number;
|
|
15
|
+
/** A time of day, as the chat writes it in the kit language. */
|
|
16
|
+
time(date: Date): string;
|
|
17
|
+
/** The user wants to answer a request waiting in the flow: what is in the composer's place takes the focus. */
|
|
18
|
+
ask(part: ChatRequestPart): void;
|
|
19
|
+
/** The user goes back to before `message`, its text back in the box. */
|
|
20
|
+
rewind(message: ChatMessage): void;
|
|
21
|
+
/** The user sends `text` in place of `message`. */
|
|
22
|
+
resend(message: ChatMessage, text: string): void;
|
|
23
|
+
/** Set when the app takes forks: the user starts another conversation from `message`. */
|
|
24
|
+
fork: ((message: ChatMessage) => void) | null;
|
|
25
|
+
/** Set when the app takes retries: the user asks again for the reply `message`, which failed or stopped. */
|
|
26
|
+
retry: ((message: ChatMessage) => void) | null;
|
|
27
|
+
/** Set when the app takes regenerations: the user asks for another reply in the place of `message`. */
|
|
28
|
+
regenerate: ((message: ChatMessage) => void) | null;
|
|
29
|
+
/** Set when the app takes feedback: the user says the reply `message` was good or bad, or takes it back. */
|
|
30
|
+
feedback: ((message: ChatMessage, feedback: ChatFeedback | null) => void) | null;
|
|
31
|
+
/** `turn` is the conversation's last: its reply can be tried again. */
|
|
32
|
+
isLatest(turn: ChatTurn): boolean;
|
|
33
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { ComponentBase } from '@motifx/core';
|
|
2
|
+
import type { IconSource } from '../../core/icon-source';
|
|
3
|
+
/** What the app suggests after `@`: a file, a symbol, a person. */
|
|
4
|
+
export interface ChatMention {
|
|
5
|
+
label: string;
|
|
6
|
+
/** What goes in the text after `@`; by default `label`. */
|
|
7
|
+
value?: string;
|
|
8
|
+
/** A dimmer line beside the label: a folder. */
|
|
9
|
+
description?: string;
|
|
10
|
+
icon?: IconSource;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* The user writes after `@`: give what fits `query` in `items`, or a promise of them in `promise`. The menu shows the
|
|
14
|
+
* answer to the latest query only; with neither, it closes.
|
|
15
|
+
*/
|
|
16
|
+
export interface ChatMentionEventArgs {
|
|
17
|
+
query: string;
|
|
18
|
+
items?: readonly ChatMention[];
|
|
19
|
+
promise?: Promise<readonly ChatMention[]>;
|
|
20
|
+
source: ComponentBase;
|
|
21
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { ChatMessageStatus } from './chat-message-status';
|
|
2
|
+
import type { ChatPart } from './chat-part';
|
|
3
|
+
import type { ChatRole } from './chat-role';
|
|
4
|
+
/**
|
|
5
|
+
* A message of the conversation. The chat keeps the object it is given and writes a streaming reply into it (`parts`,
|
|
6
|
+
* `status`, `error`), so the app holds the same message as the screen.
|
|
7
|
+
*/
|
|
8
|
+
export interface ChatMessage {
|
|
9
|
+
id: string | number;
|
|
10
|
+
role: ChatRole;
|
|
11
|
+
parts: ChatPart[];
|
|
12
|
+
/** The name shown above the message. By default, the kit's name for its role. */
|
|
13
|
+
author?: string;
|
|
14
|
+
time?: Date;
|
|
15
|
+
/** The default is `'done'`. */
|
|
16
|
+
status?: ChatMessageStatus;
|
|
17
|
+
/** What went wrong, shown under a message whose status is `error`. */
|
|
18
|
+
error?: string;
|
|
19
|
+
/** What the user said of a reply with its buttons (`onFeedback`). */
|
|
20
|
+
feedback?: ChatFeedback;
|
|
21
|
+
}
|
|
22
|
+
/** Whether a reply was good or bad, as the user said. */
|
|
23
|
+
export type ChatFeedback = 'good' | 'bad';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { Component } from '@motifx/core';
|
|
2
|
+
import { type ChatEntry } from './chat-entry';
|
|
3
|
+
import type { ChatNoticePart } from './chat-part';
|
|
4
|
+
/**
|
|
5
|
+
* A line in the flow: the reply stopped or failed, is tried again, or anything the app says there. A retry counts the
|
|
6
|
+
* seconds down to its next try, and says which try it is of how many and why.
|
|
7
|
+
*/
|
|
8
|
+
export declare class ChatNoticeEntry implements ChatEntry {
|
|
9
|
+
private readonly notice;
|
|
10
|
+
readonly row: Component<HTMLDivElement>;
|
|
11
|
+
private readonly label;
|
|
12
|
+
private timer;
|
|
13
|
+
constructor(notice: ChatNoticePart);
|
|
14
|
+
append(): void;
|
|
15
|
+
update(): void;
|
|
16
|
+
drawTexts(): void;
|
|
17
|
+
/** Whole seconds to the next try; `0` once it is due, or when the notice is not a retry. */
|
|
18
|
+
private left;
|
|
19
|
+
private stopTimer;
|
|
20
|
+
}
|