@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
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import type { ChatFormPart, ChatPermission, ChatPlanPart, ChatQuestionsPart } from './chat-request';
|
|
2
|
+
import type { ChatTextPart } from './chat-text-part';
|
|
3
|
+
/** A piece of a reply's thinking. Drawn open while it is written; then one line, "Thought for 3s", that opens. */
|
|
4
|
+
export interface ChatThinkingPart {
|
|
5
|
+
kind: 'thinking';
|
|
6
|
+
/** The thinking as markdown, when the app shows it. */
|
|
7
|
+
text?: string;
|
|
8
|
+
/** Short notes on what the thinking is about, newest last: the newest stands under its line while it runs. */
|
|
9
|
+
notes?: string[];
|
|
10
|
+
/** When it started, in milliseconds since the epoch (`Date.now()`). */
|
|
11
|
+
started?: number;
|
|
12
|
+
/** How long it took, in seconds; set when it ends. A thinking with no text or notes, shorter than a second, is not drawn. */
|
|
13
|
+
seconds?: number;
|
|
14
|
+
}
|
|
15
|
+
/** Where a tool call stands. `assembling`: its arguments are still arriving; `waiting`: it waits for the user's approval. */
|
|
16
|
+
export type ChatToolStatus = 'assembling' | 'waiting' | 'running' | 'done' | 'error' | 'denied';
|
|
17
|
+
/**
|
|
18
|
+
* How much of a tool call shows without being asked: `line` (its name and outcome), `summary` (what went in and what
|
|
19
|
+
* came out, a few lines of each) or `full`. A property of the tool, not of the call: the same tool reads the same way
|
|
20
|
+
* every time. A failed call and one waiting for approval always open.
|
|
21
|
+
*/
|
|
22
|
+
export type ChatToolDensity = 'line' | 'summary' | 'full';
|
|
23
|
+
/** How a tool call's input and output are drawn: as text, as a terminal's, or as a diff (`+` and `-` lines). */
|
|
24
|
+
export type ChatToolLook = 'text' | 'terminal' | 'diff';
|
|
25
|
+
/** A call of a tool: one row from the first sign of it to its end. */
|
|
26
|
+
export interface ChatToolPart {
|
|
27
|
+
kind: 'tool';
|
|
28
|
+
id: string;
|
|
29
|
+
/** The tool's name as the model called it. */
|
|
30
|
+
name: string;
|
|
31
|
+
/** The name a person reads; by default `name`. */
|
|
32
|
+
label?: string;
|
|
33
|
+
/** What the call does, in a line: a file, a command, a pattern. */
|
|
34
|
+
title?: string;
|
|
35
|
+
status: ChatToolStatus;
|
|
36
|
+
/** What went in, as text. */
|
|
37
|
+
input?: string;
|
|
38
|
+
/** What came out, as text. */
|
|
39
|
+
output?: string;
|
|
40
|
+
look?: ChatToolLook;
|
|
41
|
+
density?: ChatToolDensity;
|
|
42
|
+
/** While the arguments arrive: the file they name, and how many bytes came. */
|
|
43
|
+
file?: string;
|
|
44
|
+
bytes?: number;
|
|
45
|
+
/** When the call was first heard of, in milliseconds since the epoch: the seconds it waits show from it. */
|
|
46
|
+
started?: number;
|
|
47
|
+
/** What a sub-agent the call ran wrote: its own text and calls, drawn inside the call. */
|
|
48
|
+
parts?: ChatPart[];
|
|
49
|
+
/** The call asked before it ran (`call.permission()`), and what the user said. */
|
|
50
|
+
permission?: ChatPermission;
|
|
51
|
+
}
|
|
52
|
+
/** One task of a to-do list. */
|
|
53
|
+
export interface ChatTodoItem {
|
|
54
|
+
text: string;
|
|
55
|
+
status: 'pending' | 'active' | 'done';
|
|
56
|
+
}
|
|
57
|
+
/** The model's to-do list, as it last wrote it. */
|
|
58
|
+
export interface ChatTodoPart {
|
|
59
|
+
kind: 'todo';
|
|
60
|
+
items: ChatTodoItem[];
|
|
61
|
+
}
|
|
62
|
+
/** A line in the flow: the reply stopped (`stopped`), failed (`error`), is tried again (`retry`), or anything else (`info`). */
|
|
63
|
+
export interface ChatNoticePart {
|
|
64
|
+
kind: 'notice';
|
|
65
|
+
tone: 'info' | 'stopped' | 'error' | 'retry';
|
|
66
|
+
/** By default, the kit's text for its tone; for a retry, why it is tried again ("Overloaded"). */
|
|
67
|
+
text?: string;
|
|
68
|
+
/** A retry: when it is tried again, in milliseconds since the epoch. The line counts the seconds down to it. */
|
|
69
|
+
until?: number;
|
|
70
|
+
/** A retry: which try this is, of how many. */
|
|
71
|
+
attempt?: number;
|
|
72
|
+
attempts?: number;
|
|
73
|
+
}
|
|
74
|
+
/** The conversation before it was summed up for the model: a line across the flow, the summary opens under it. */
|
|
75
|
+
export interface ChatCompactionPart {
|
|
76
|
+
kind: 'compaction';
|
|
77
|
+
/** The summary, as markdown. */
|
|
78
|
+
text?: string;
|
|
79
|
+
}
|
|
80
|
+
/** A file attached to a message: a chip, an image with its picture. */
|
|
81
|
+
export interface ChatAttachmentPart {
|
|
82
|
+
kind: 'attachment';
|
|
83
|
+
name: string;
|
|
84
|
+
/** Its media type (`image/png`): an image shows its picture. */
|
|
85
|
+
type?: string;
|
|
86
|
+
/** Its size in bytes. */
|
|
87
|
+
size?: number;
|
|
88
|
+
/** Where its picture is, for an image the app keeps elsewhere; by default it is read from `file` while it is shown. */
|
|
89
|
+
url?: string;
|
|
90
|
+
/** The file itself, while the page has it. */
|
|
91
|
+
file?: File;
|
|
92
|
+
}
|
|
93
|
+
/** A source a reply names: a page it read, a document it quotes. */
|
|
94
|
+
export interface ChatSource {
|
|
95
|
+
title: string;
|
|
96
|
+
/** Where it is: its chip is a link there, and shows its site. */
|
|
97
|
+
url?: string;
|
|
98
|
+
/** What the reply took from it; the chip's hint. */
|
|
99
|
+
snippet?: string;
|
|
100
|
+
}
|
|
101
|
+
/** The sources of a reply, as numbered chips. */
|
|
102
|
+
export interface ChatSourcesPart {
|
|
103
|
+
kind: 'sources';
|
|
104
|
+
items: ChatSource[];
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* A piece of a message, drawn in order: text, thinking, tool calls, a to-do list, notices, a plan, questions, a form,
|
|
108
|
+
* sources, files, a summary.
|
|
109
|
+
*/
|
|
110
|
+
export type ChatPart = ChatTextPart | ChatThinkingPart | ChatToolPart | ChatTodoPart | ChatNoticePart | ChatPlanPart | ChatQuestionsPart | ChatFormPart | ChatSourcesPart | ChatAttachmentPart | ChatCompactionPart;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { Component, ComponentBase } from '@motifx/core';
|
|
2
|
+
import { type ChatEntry } from './chat-entry';
|
|
3
|
+
import type { ChatLook } from './chat-look';
|
|
4
|
+
import type { ChatPlanPart } from './chat-request';
|
|
5
|
+
/**
|
|
6
|
+
* A plan the model wrote, in its box. While it waits, the ways to go on are in the composer's place and a line under it
|
|
7
|
+
* says so, with "Answer" to go there; then what the user took, or that nobody answered.
|
|
8
|
+
*/
|
|
9
|
+
export declare class ChatPlanEntry implements ChatEntry {
|
|
10
|
+
private readonly plan;
|
|
11
|
+
private readonly live;
|
|
12
|
+
readonly row: Component<HTMLDivElement>;
|
|
13
|
+
private readonly title;
|
|
14
|
+
private readonly asking;
|
|
15
|
+
private readonly state;
|
|
16
|
+
private readonly button;
|
|
17
|
+
private readonly answer;
|
|
18
|
+
private readonly markdown;
|
|
19
|
+
constructor(plan: ChatPlanPart, look: ChatLook, live: () => boolean);
|
|
20
|
+
append(): void;
|
|
21
|
+
found(index: number): ComponentBase | null;
|
|
22
|
+
drawing(): boolean;
|
|
23
|
+
update(): void;
|
|
24
|
+
drawTexts(): void;
|
|
25
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import type { Bind } from '@motifx/core';
|
|
2
|
+
import type { ControlProps } from '../../core/control';
|
|
3
|
+
import type { CodeHighlighter } from '../markdown/code-highlighter';
|
|
4
|
+
import type { DiagramRenderer } from '../markdown/diagram-renderer';
|
|
5
|
+
import type { MathRenderer } from '../markdown/math-renderer';
|
|
6
|
+
import type { ChatComposerProps } from './chat-composer-props';
|
|
7
|
+
import type { ChatFeedbackEventArgs, ChatForkEventArgs, ChatRetryEventArgs, ChatRewindEventArgs } from './chat-history-event-args';
|
|
8
|
+
import type { ChatLoadOlderEventArgs } from './chat-load-older-event-args';
|
|
9
|
+
import type { ChatMessage } from './chat-message';
|
|
10
|
+
import type { ChatSendEventArgs } from './chat-send-event-args';
|
|
11
|
+
import type { Chat } from './Chat';
|
|
12
|
+
/** Props of `Chat`. Each prop is also a settable property, and a function is tracked. */
|
|
13
|
+
export interface ChatProps extends ControlProps {
|
|
14
|
+
/**
|
|
15
|
+
* The messages, oldest first. The chat keeps the array and the objects it is given: `add`, `prepend` and `remove`
|
|
16
|
+
* change this array, and a reply is written into its message. Another array is another conversation; rows of messages
|
|
17
|
+
* that are in both are kept.
|
|
18
|
+
*/
|
|
19
|
+
messages?: Bind<ChatMessage[]>;
|
|
20
|
+
/** There are older messages to load: near the top, and with the button above the first message. */
|
|
21
|
+
hasOlder?: Bind<boolean>;
|
|
22
|
+
/** The hint in the empty message box. The default is the kit's "Message". */
|
|
23
|
+
placeholder?: Bind<string>;
|
|
24
|
+
/** Colours the code blocks of messages drawn after it is set. */
|
|
25
|
+
highlighter?: Bind<CodeHighlighter | null>;
|
|
26
|
+
/** Draws the math of messages drawn after it is set (`$…$`, `$$…$$`). The default is none: `$` is text. */
|
|
27
|
+
mathRenderer?: Bind<MathRenderer | null>;
|
|
28
|
+
/** Draws the diagrams of messages drawn after it is set (a fenced `mermaid` block). The default is none. */
|
|
29
|
+
diagramRenderer?: Bind<DiagramRenderer | null>;
|
|
30
|
+
/** Where links in messages open, and the sources' links. The default is `'_blank'`. */
|
|
31
|
+
linkTarget?: Bind<string>;
|
|
32
|
+
/**
|
|
33
|
+
* A code block in a reply longer than this many lines shows that many, and a button under it shows them all; for
|
|
34
|
+
* messages drawn after it is set. The default is `0`: every line shows.
|
|
35
|
+
*/
|
|
36
|
+
codeLines?: Bind<number>;
|
|
37
|
+
/** The accessible name of the conversation. The default is the kit's "Conversation". */
|
|
38
|
+
label?: Bind<string>;
|
|
39
|
+
/**
|
|
40
|
+
* Props of the composer, given to it as they are: its modes, models, thinking, context meter, history and their
|
|
41
|
+
* events. Its `onSend` and `onStop` are the chat's own; use the chat's.
|
|
42
|
+
*/
|
|
43
|
+
composer?: Omit<ChatComposerProps, 'onSend' | 'onStop'>;
|
|
44
|
+
/**
|
|
45
|
+
* A message of the user is sent; it is added unless `e.cancel` is set. Start the reply here with `chat.reply()`. One
|
|
46
|
+
* sent while a reply is written waits above the box and is sent when the replies end.
|
|
47
|
+
*/
|
|
48
|
+
onSend?: (e: ChatSendEventArgs & {
|
|
49
|
+
message: ChatMessage;
|
|
50
|
+
}) => void;
|
|
51
|
+
/** The user stopped the reply; its `signal` is aborted already. */
|
|
52
|
+
onStop?: (e: {
|
|
53
|
+
source: Chat;
|
|
54
|
+
}) => void;
|
|
55
|
+
/** Older messages are wanted: near the top, or from the button. */
|
|
56
|
+
onLoadOlder?: (e: ChatLoadOlderEventArgs) => void;
|
|
57
|
+
/** Occurs before the conversation goes back to before a message of the user (its rewind or edit button). Set `e.cancel` to keep it. */
|
|
58
|
+
onRewind?: (e: ChatRewindEventArgs) => void;
|
|
59
|
+
/** Given, a message of the user has a fork button: open another conversation with `e.messages`. */
|
|
60
|
+
onFork?: (e: ChatForkEventArgs) => void;
|
|
61
|
+
/** Given, a failed or stopped last reply has a button to try again: it is gone, write the new one with `chat.reply()`. */
|
|
62
|
+
onRetry?: (e: ChatRetryEventArgs) => void;
|
|
63
|
+
/**
|
|
64
|
+
* Given, the last reply has a button that asks for another in its place once it ended (a failed one too, unless
|
|
65
|
+
* `onRetry` is given): it is gone, write the new one with `chat.reply()`.
|
|
66
|
+
*/
|
|
67
|
+
onRegenerate?: (e: ChatRetryEventArgs) => void;
|
|
68
|
+
/** Given, a reply that ended has buttons to say it was good or bad; what the user said is in `e.message.feedback`. */
|
|
69
|
+
onFeedback?: (e: ChatFeedbackEventArgs) => void;
|
|
70
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type { Component } from '@motifx/core';
|
|
2
|
+
import type { ChatLook } from './chat-look';
|
|
3
|
+
import type { ChatMessage } from './chat-message';
|
|
4
|
+
/**
|
|
5
|
+
* The user's message at the top of a turn: its time and its actions, the text in its box exactly as it was written (it
|
|
6
|
+
* is not markdown: what was typed is what shows), and the files it carries as chips under it. A long one shows its
|
|
7
|
+
* first lines, and a button opens the rest. Its actions copy it, edit it in place and send it again, go back to before
|
|
8
|
+
* it (its text back in the box), and start another conversation from it when the app takes forks.
|
|
9
|
+
*/
|
|
10
|
+
export declare class ChatQuestionView {
|
|
11
|
+
private readonly message;
|
|
12
|
+
private readonly look;
|
|
13
|
+
readonly row: Component<HTMLDivElement>;
|
|
14
|
+
/** The id of the box with its text, which names the turn; `''` when it has no text. */
|
|
15
|
+
readonly bubbleId: string;
|
|
16
|
+
private readonly time;
|
|
17
|
+
private readonly bubble;
|
|
18
|
+
private readonly files;
|
|
19
|
+
private readonly more;
|
|
20
|
+
private readonly copy;
|
|
21
|
+
private readonly editButton;
|
|
22
|
+
private readonly rewindButton;
|
|
23
|
+
private readonly forkButton;
|
|
24
|
+
/** While the message is edited: the box and its buttons, in place of the bubble. */
|
|
25
|
+
private editor;
|
|
26
|
+
private expanded;
|
|
27
|
+
constructor(message: ChatMessage, look: ChatLook);
|
|
28
|
+
/** The box with its text, for a search: a long one opens, to show what was found. */
|
|
29
|
+
found(): Component<HTMLDivElement>;
|
|
30
|
+
drawTexts(): void;
|
|
31
|
+
/** The text as it was written. */
|
|
32
|
+
private get said();
|
|
33
|
+
private action;
|
|
34
|
+
/** A button that shows its icon alone: its name, and its tooltip. */
|
|
35
|
+
private name;
|
|
36
|
+
/** The message in a box in place of its bubble: Enter sends it in its place, Escape or Cancel goes back. */
|
|
37
|
+
private edit;
|
|
38
|
+
private sendEdit;
|
|
39
|
+
/** Back to the bubble; `focus`: the edit button takes the focus. */
|
|
40
|
+
private endEdit;
|
|
41
|
+
}
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
import type { ChatToolPart } from './chat-part';
|
|
2
|
+
/**
|
|
3
|
+
* What the user said to a tool call that asked before it ran: `yes`, `always` (yes, and do not ask again for what the
|
|
4
|
+
* call's `always` named), or `no`, with what to do instead when they wrote it.
|
|
5
|
+
*/
|
|
6
|
+
export interface ChatPermissionAnswer {
|
|
7
|
+
choice: 'yes' | 'always' | 'no';
|
|
8
|
+
text?: string;
|
|
9
|
+
}
|
|
10
|
+
/** A tool call that asks before it runs: the choices stand under it until the user answers. */
|
|
11
|
+
export interface ChatPermission {
|
|
12
|
+
/** The second choice, naming what would not be asked again ("Yes, and allow npm commands"); without it there is none. */
|
|
13
|
+
always?: string;
|
|
14
|
+
/** What the user said; missing while the call waits, and when the reply ended first. */
|
|
15
|
+
answer?: ChatPermissionAnswer;
|
|
16
|
+
}
|
|
17
|
+
/** A way to go on with a plan, as the app names it ("Yes, and accept the edits"). */
|
|
18
|
+
export interface ChatPlanChoice {
|
|
19
|
+
value: string;
|
|
20
|
+
label: string;
|
|
21
|
+
}
|
|
22
|
+
/** What the user said to a plan: the `value` of the choice they took, or `no` to keep planning, with what to change. */
|
|
23
|
+
export interface ChatPlanAnswer {
|
|
24
|
+
choice: string;
|
|
25
|
+
text?: string;
|
|
26
|
+
}
|
|
27
|
+
/** A plan the model wrote, waiting for the user to approve it. */
|
|
28
|
+
export interface ChatPlanPart {
|
|
29
|
+
kind: 'plan';
|
|
30
|
+
id: string;
|
|
31
|
+
/** The plan as markdown. */
|
|
32
|
+
text: string;
|
|
33
|
+
/** The ways to go on; by default one, "Yes, go ahead". "No, keep planning" always stands last. */
|
|
34
|
+
choices?: ChatPlanChoice[];
|
|
35
|
+
/** What the user said; missing while it waits, and when the reply ended first. */
|
|
36
|
+
answer?: ChatPlanAnswer;
|
|
37
|
+
}
|
|
38
|
+
/** An option of a question: its label is what the answer carries. */
|
|
39
|
+
export interface ChatQuestionOption {
|
|
40
|
+
label: string;
|
|
41
|
+
/** A line under the label. */
|
|
42
|
+
description?: string;
|
|
43
|
+
/** Markdown shown beside the options while the option is focused: a layout, a piece of code. */
|
|
44
|
+
preview?: string;
|
|
45
|
+
}
|
|
46
|
+
/** A question the model asks: with options a choice (one, or several with `multiple`), without them a text. */
|
|
47
|
+
export interface ChatQuestion {
|
|
48
|
+
/** What the answer names it by; by default its position, from `1`. */
|
|
49
|
+
id?: string;
|
|
50
|
+
text: string;
|
|
51
|
+
/** A word or two for its tab when there are several questions; by default `text`. */
|
|
52
|
+
header?: string;
|
|
53
|
+
options?: ChatQuestionOption[];
|
|
54
|
+
multiple?: boolean;
|
|
55
|
+
/** The answers cannot be sent without this one. */
|
|
56
|
+
required?: boolean;
|
|
57
|
+
/** A choice ends with "Other", where the user writes their own answer; `false` leaves it out. */
|
|
58
|
+
other?: boolean;
|
|
59
|
+
}
|
|
60
|
+
/** The answer to one question: the labels of the options taken, or the text written. */
|
|
61
|
+
export interface ChatQuestionAnswer {
|
|
62
|
+
id: string;
|
|
63
|
+
values: string[];
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* What the user said to the questions. `declined`: they left the decision to the model ("Decide for me") and `answers`
|
|
67
|
+
* is empty; otherwise the questions they answered, a question left empty not among them.
|
|
68
|
+
*/
|
|
69
|
+
export interface ChatQuestionsAnswer {
|
|
70
|
+
declined: boolean;
|
|
71
|
+
answers: ChatQuestionAnswer[];
|
|
72
|
+
}
|
|
73
|
+
/** Questions the model asked: the form takes the composer's place, the flow keeps the questions and their answers. */
|
|
74
|
+
export interface ChatQuestionsPart {
|
|
75
|
+
kind: 'questions';
|
|
76
|
+
id: string;
|
|
77
|
+
questions: ChatQuestion[];
|
|
78
|
+
/** What the user said; missing while they wait, and when the reply ended first. */
|
|
79
|
+
answer?: ChatQuestionsAnswer;
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* A text field of a form; with `enum` (or `oneOf`) a choice of one of its values. `format` checks the text and picks
|
|
83
|
+
* its box: `email`, `uri`, `date`, `date-time`.
|
|
84
|
+
*/
|
|
85
|
+
export interface ChatFormText {
|
|
86
|
+
type: 'string';
|
|
87
|
+
title?: string;
|
|
88
|
+
description?: string;
|
|
89
|
+
minLength?: number;
|
|
90
|
+
maxLength?: number;
|
|
91
|
+
format?: 'email' | 'uri' | 'date' | 'date-time';
|
|
92
|
+
/** The values to choose from, and the names shown for them. */
|
|
93
|
+
enum?: string[];
|
|
94
|
+
enumNames?: string[];
|
|
95
|
+
/** The values to choose from (`const`), each with its name. */
|
|
96
|
+
oneOf?: {
|
|
97
|
+
const: string;
|
|
98
|
+
title?: string;
|
|
99
|
+
}[];
|
|
100
|
+
default?: string;
|
|
101
|
+
}
|
|
102
|
+
/** A number field; `integer` takes whole numbers. */
|
|
103
|
+
export interface ChatFormNumber {
|
|
104
|
+
type: 'number' | 'integer';
|
|
105
|
+
title?: string;
|
|
106
|
+
description?: string;
|
|
107
|
+
minimum?: number;
|
|
108
|
+
maximum?: number;
|
|
109
|
+
default?: number;
|
|
110
|
+
}
|
|
111
|
+
/** A yes or no. */
|
|
112
|
+
export interface ChatFormBoolean {
|
|
113
|
+
type: 'boolean';
|
|
114
|
+
title?: string;
|
|
115
|
+
description?: string;
|
|
116
|
+
default?: boolean;
|
|
117
|
+
}
|
|
118
|
+
/** A choice of several of the values of `items` (`enum`, or `anyOf` values with names). */
|
|
119
|
+
export interface ChatFormChoices {
|
|
120
|
+
type: 'array';
|
|
121
|
+
title?: string;
|
|
122
|
+
description?: string;
|
|
123
|
+
items: {
|
|
124
|
+
type?: 'string';
|
|
125
|
+
enum?: string[];
|
|
126
|
+
anyOf?: {
|
|
127
|
+
const: string;
|
|
128
|
+
title?: string;
|
|
129
|
+
}[];
|
|
130
|
+
};
|
|
131
|
+
minItems?: number;
|
|
132
|
+
maxItems?: number;
|
|
133
|
+
default?: string[];
|
|
134
|
+
}
|
|
135
|
+
/** A field of a form, as MCP's elicitation describes one. */
|
|
136
|
+
export type ChatFormField = ChatFormText | ChatFormNumber | ChatFormBoolean | ChatFormChoices;
|
|
137
|
+
/** What a form asks for, MCP's `requestedSchema`: a flat object of fields, some required. */
|
|
138
|
+
export interface ChatFormSchema {
|
|
139
|
+
type: 'object';
|
|
140
|
+
properties: Record<string, ChatFormField>;
|
|
141
|
+
required?: string[];
|
|
142
|
+
}
|
|
143
|
+
/** A value the user gave a field. */
|
|
144
|
+
export type ChatFormValue = string | number | boolean | string[];
|
|
145
|
+
/**
|
|
146
|
+
* What the user did with a form, MCP's elicitation result: `accept` with what they wrote in `content` (a field left
|
|
147
|
+
* empty is not in it), `decline`, or `cancel` (they dismissed it).
|
|
148
|
+
*/
|
|
149
|
+
export interface ChatFormAnswer {
|
|
150
|
+
action: 'accept' | 'decline' | 'cancel';
|
|
151
|
+
content?: Record<string, ChatFormValue>;
|
|
152
|
+
}
|
|
153
|
+
/** A form a reply asks the user to fill in: it takes the composer's place, the flow keeps what was asked and said. */
|
|
154
|
+
export interface ChatFormPart {
|
|
155
|
+
kind: 'form';
|
|
156
|
+
id: string;
|
|
157
|
+
/** What it asks for, as the asker wrote it. */
|
|
158
|
+
message: string;
|
|
159
|
+
schema: ChatFormSchema;
|
|
160
|
+
/** Who asks: an MCP server's name. */
|
|
161
|
+
source?: string;
|
|
162
|
+
/** What the user did; missing while it waits, and when the reply ended first. */
|
|
163
|
+
answer?: ChatFormAnswer;
|
|
164
|
+
}
|
|
165
|
+
/** A part that waits for the user: a tool call asking before it runs, a plan, questions, a form. */
|
|
166
|
+
export type ChatRequestPart = ChatToolPart | ChatPlanPart | ChatQuestionsPart | ChatFormPart;
|
|
167
|
+
/** What the user said to a request. */
|
|
168
|
+
export type ChatAnswer = ChatPermissionAnswer | ChatPlanAnswer | ChatQuestionsAnswer | ChatFormAnswer;
|
|
169
|
+
/** A request waiting for the user: `answer` writes what they said and lets the reply go on; `null`, the reply ended. */
|
|
170
|
+
export interface ChatWaiting {
|
|
171
|
+
readonly part: ChatRequestPart;
|
|
172
|
+
answer(value: ChatAnswer | null): void;
|
|
173
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { Component } from '@motifx/core';
|
|
2
|
+
import { TextBox } from '../textbox/TextBox';
|
|
3
|
+
/**
|
|
4
|
+
* The search over the conversation, at its top: the text to find, which result shows of how many, a button to the
|
|
5
|
+
* result above and one to the result below, and one that closes it. The conversation ends at the bottom, as a
|
|
6
|
+
* terminal's: Enter goes up to the older result, Shift+Enter down to the newer one, and Escape closes it.
|
|
7
|
+
*/
|
|
8
|
+
export declare class ChatSearchBar {
|
|
9
|
+
readonly row: Component<HTMLDivElement>;
|
|
10
|
+
readonly box: TextBox;
|
|
11
|
+
private readonly count;
|
|
12
|
+
private readonly previous;
|
|
13
|
+
private readonly next;
|
|
14
|
+
private readonly close;
|
|
15
|
+
private shown;
|
|
16
|
+
constructor(find: (query: string) => void, move: (step: number) => void, close: () => void);
|
|
17
|
+
/** The text searched for. */
|
|
18
|
+
get query(): string;
|
|
19
|
+
/** Writes `query` in the box without searching: the chat searches it itself. */
|
|
20
|
+
set query(value: string);
|
|
21
|
+
focus(): void;
|
|
22
|
+
/** Which result shows (`at` from 0) of how many found for `query`. */
|
|
23
|
+
drawCount(at: number, count: number, query: string): void;
|
|
24
|
+
drawTexts(): void;
|
|
25
|
+
private button;
|
|
26
|
+
private name;
|
|
27
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { ChatMessage } from './chat-message';
|
|
2
|
+
import type { ChatPart } from './chat-part';
|
|
3
|
+
import type { ChatTurn } from './chat-turn';
|
|
4
|
+
/** Where a search found its text: in a part of a message of a turn, from `start` to `end` of the part's text. */
|
|
5
|
+
export interface ChatFound {
|
|
6
|
+
turn: ChatTurn;
|
|
7
|
+
message: ChatMessage;
|
|
8
|
+
part: ChatPart;
|
|
9
|
+
start: number;
|
|
10
|
+
end: number;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Finds a text in the messages of the conversation, the turns off the page too: in what the user wrote, the model's
|
|
14
|
+
* texts and its plans, without case in the kit's language. A part's text in lower case is kept until it changes, so
|
|
15
|
+
* each letter typed searches again at once.
|
|
16
|
+
*/
|
|
17
|
+
export declare class ChatSearch {
|
|
18
|
+
query: string;
|
|
19
|
+
found: ChatFound[];
|
|
20
|
+
/** The result shown: an index of `found`, or `-1`. */
|
|
21
|
+
at: number;
|
|
22
|
+
/** The messages changed since the search: it runs again before it moves. */
|
|
23
|
+
stale: boolean;
|
|
24
|
+
private readonly lowered;
|
|
25
|
+
/** Searches the turns for `query`; the result shown is the last one, nearest the end. */
|
|
26
|
+
run(turns: readonly ChatTurn[], query: string): void;
|
|
27
|
+
/** Searches again after the messages changed, staying on the result shown while it is still found. */
|
|
28
|
+
again(turns: readonly ChatTurn[]): void;
|
|
29
|
+
/** Goes `step` results on, around the ends; `false` when there is none. */
|
|
30
|
+
move(step: number): boolean;
|
|
31
|
+
clear(): void;
|
|
32
|
+
private collect;
|
|
33
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ComponentBase } from '@motifx/core';
|
|
2
|
+
import type { ChatContextItem } from './chat-context-item';
|
|
3
|
+
/** The arguments of a send. Set `cancel` to keep the text and the files in the box (nothing is sent). */
|
|
4
|
+
export interface ChatSendEventArgs {
|
|
5
|
+
text: string;
|
|
6
|
+
/** The files attached to it. */
|
|
7
|
+
attachments: File[];
|
|
8
|
+
/** The context items that go with it (those `on`). */
|
|
9
|
+
contextItems: ChatContextItem[];
|
|
10
|
+
cancel: boolean;
|
|
11
|
+
source: ComponentBase;
|
|
12
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { Component } from '@motifx/core';
|
|
2
|
+
import { type ChatEntry } from './chat-entry';
|
|
3
|
+
import type { ChatLook } from './chat-look';
|
|
4
|
+
import type { ChatSourcesPart } from './chat-part';
|
|
5
|
+
/**
|
|
6
|
+
* The sources of a reply, a numbered chip each: its title and its site. A chip with a safe address is a link there,
|
|
7
|
+
* opened where the chat's links open; what the reply took from the source is its hint. Sources added later follow.
|
|
8
|
+
*/
|
|
9
|
+
export declare class ChatSourcesEntry implements ChatEntry {
|
|
10
|
+
private readonly sources;
|
|
11
|
+
private readonly look;
|
|
12
|
+
readonly row: Component<HTMLDivElement>;
|
|
13
|
+
private readonly list;
|
|
14
|
+
private drawn;
|
|
15
|
+
constructor(sources: ChatSourcesPart, look: ChatLook);
|
|
16
|
+
append(): void;
|
|
17
|
+
update(): void;
|
|
18
|
+
drawTexts(): void;
|
|
19
|
+
private chip;
|
|
20
|
+
/** The site of an address, without `www.`; nothing for an address with no host. */
|
|
21
|
+
private siteOf;
|
|
22
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { Component, ComponentBase } from '@motifx/core';
|
|
2
|
+
import { type ChatEntry } from './chat-entry';
|
|
3
|
+
import type { ChatLook } from './chat-look';
|
|
4
|
+
import type { ChatTextPart } from './chat-text-part';
|
|
5
|
+
/** Markdown of a reply. Text still being written stays open, and each piece is added to what is drawn. */
|
|
6
|
+
export declare class ChatTextEntry implements ChatEntry {
|
|
7
|
+
private readonly look;
|
|
8
|
+
private readonly date?;
|
|
9
|
+
readonly row: Component<HTMLDivElement>;
|
|
10
|
+
private readonly time;
|
|
11
|
+
private readonly markdown;
|
|
12
|
+
constructor(textPart: ChatTextPart, look: ChatLook, open: boolean, date?: Date | undefined);
|
|
13
|
+
append(delta: string): void;
|
|
14
|
+
update(): void;
|
|
15
|
+
found(index: number): ComponentBase | null;
|
|
16
|
+
drawing(): boolean;
|
|
17
|
+
/** The text is complete: what is still pending takes its form. */
|
|
18
|
+
end(): void;
|
|
19
|
+
drawTexts(): void;
|
|
20
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { Component } from '@motifx/core';
|
|
2
|
+
import { type ChatEntry } from './chat-entry';
|
|
3
|
+
import type { ChatLook } from './chat-look';
|
|
4
|
+
import type { ChatThinkingPart } from './chat-part';
|
|
5
|
+
/**
|
|
6
|
+
* A reply's thinking: one line that says it thinks (and its newest note) while it runs, then "Thought for 3s". The
|
|
7
|
+
* line opens what was written: the thinking as markdown and its notes.
|
|
8
|
+
*/
|
|
9
|
+
export declare class ChatThinkingEntry implements ChatEntry {
|
|
10
|
+
private readonly thinking;
|
|
11
|
+
private readonly look;
|
|
12
|
+
private readonly live;
|
|
13
|
+
readonly row: Component<HTMLDivElement>;
|
|
14
|
+
private readonly head;
|
|
15
|
+
private readonly label;
|
|
16
|
+
private readonly note;
|
|
17
|
+
private readonly body;
|
|
18
|
+
private readonly notes;
|
|
19
|
+
private markdown;
|
|
20
|
+
private drawnNotes;
|
|
21
|
+
private expanded;
|
|
22
|
+
private timer;
|
|
23
|
+
/** `live`: its message is being written; thinking of a message that is not, and has no seconds, reads as done. */
|
|
24
|
+
constructor(thinking: ChatThinkingPart, look: ChatLook, live: boolean);
|
|
25
|
+
append(delta: string): void;
|
|
26
|
+
update(): void;
|
|
27
|
+
drawTexts(): void;
|
|
28
|
+
private get isDone();
|
|
29
|
+
private drawOpen;
|
|
30
|
+
private writer;
|
|
31
|
+
private stopTimer;
|
|
32
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { Component } from '@motifx/core';
|
|
2
|
+
import { type ChatEntry } from './chat-entry';
|
|
3
|
+
import type { ChatTodoPart } from './chat-part';
|
|
4
|
+
/** The model's to-do list: each task with its state. A new version of the list changes the rows in place. */
|
|
5
|
+
export declare class ChatTodoEntry implements ChatEntry {
|
|
6
|
+
private readonly todo;
|
|
7
|
+
readonly row: Component<HTMLDivElement>;
|
|
8
|
+
private readonly title;
|
|
9
|
+
private readonly list;
|
|
10
|
+
private readonly rows;
|
|
11
|
+
constructor(todo: ChatTodoPart);
|
|
12
|
+
append(): void;
|
|
13
|
+
update(): void;
|
|
14
|
+
drawTexts(): void;
|
|
15
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import type { Component } from '@motifx/core';
|
|
2
|
+
import { type ChatEntry } from './chat-entry';
|
|
3
|
+
import type { ChatFlowView } from './chat-flow-view';
|
|
4
|
+
import type { ChatLook } from './chat-look';
|
|
5
|
+
import type { ChatToolPart } from './chat-part';
|
|
6
|
+
/**
|
|
7
|
+
* A tool call, one row from the first sign of it to its end. While its arguments arrive it is a line that says which
|
|
8
|
+
* tool, the file it names, how much came and for how long; then its name, what it does, and what went in (`IN`) and
|
|
9
|
+
* came out (`OUT`). How much is open is the tool's `density`; a failed call and one waiting for approval open. The
|
|
10
|
+
* labels `IN` and `OUT` are markers and stay as they are in every language. While a call that asks before it runs
|
|
11
|
+
* waits, its choices are in the composer's place and a line under it says so, with "Answer" to go there; then what the
|
|
12
|
+
* user said. A sub-agent's text and calls are drawn inside it.
|
|
13
|
+
*/
|
|
14
|
+
export declare class ChatToolEntry implements ChatEntry {
|
|
15
|
+
private readonly call;
|
|
16
|
+
private readonly makeFlow;
|
|
17
|
+
private readonly live;
|
|
18
|
+
readonly row: Component<HTMLDivElement>;
|
|
19
|
+
private readonly main;
|
|
20
|
+
private readonly head;
|
|
21
|
+
private readonly name;
|
|
22
|
+
private readonly title;
|
|
23
|
+
private readonly wait;
|
|
24
|
+
private readonly box;
|
|
25
|
+
private readonly inRow;
|
|
26
|
+
private readonly inCode;
|
|
27
|
+
private readonly outRow;
|
|
28
|
+
private readonly outCode;
|
|
29
|
+
/** The permission: that it waits while the call waits, what the user said after. */
|
|
30
|
+
private readonly request;
|
|
31
|
+
private readonly asking;
|
|
32
|
+
private readonly askState;
|
|
33
|
+
private readonly askButton;
|
|
34
|
+
private readonly answer;
|
|
35
|
+
private inner;
|
|
36
|
+
private expanded;
|
|
37
|
+
/** What the sides show; `null` until first drawn, so a side with nothing is hidden from the start. */
|
|
38
|
+
private drawnInput;
|
|
39
|
+
private drawnOutput;
|
|
40
|
+
private added;
|
|
41
|
+
private removed;
|
|
42
|
+
private timer;
|
|
43
|
+
/** `live`: its message is being written; its last sub-agent text stays open, its request can be answered. */
|
|
44
|
+
constructor(call: ChatToolPart, look: ChatLook, makeFlow: () => ChatFlowView, live: () => boolean);
|
|
45
|
+
/** The output grew. */
|
|
46
|
+
append(): void;
|
|
47
|
+
update(): void;
|
|
48
|
+
drawTexts(): void;
|
|
49
|
+
/** The flow of the sub-agent the call runs, made the first time it writes. */
|
|
50
|
+
flow(): ChatFlowView;
|
|
51
|
+
/** The sub-agent's flow, when it wrote. */
|
|
52
|
+
get innerFlow(): ChatFlowView | null;
|
|
53
|
+
/** While the call waits for the user a line says so; then what they said, or that nobody answered. */
|
|
54
|
+
private drawRequest;
|
|
55
|
+
private drawAnswer;
|
|
56
|
+
private get isRunning();
|
|
57
|
+
private side;
|
|
58
|
+
private drawCode;
|
|
59
|
+
/** A diff, line by line: added, removed or the same, as its first character says. */
|
|
60
|
+
private drawDiff;
|
|
61
|
+
/** What the call waits on: the file and the kilobytes while it assembles, the seconds while it runs, a diff's count. */
|
|
62
|
+
private drawWait;
|
|
63
|
+
/** `line` opens on a click; `summary` shows a few lines of each side and a click shows them all; `full` shows all. */
|
|
64
|
+
private drawOpen;
|
|
65
|
+
private stopTimer;
|
|
66
|
+
}
|