@ni/nimble-components 27.1.1 → 27.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/all-components-bundle.js +3 -1
- package/dist/all-components-bundle.js.map +1 -1
- package/dist/all-components-bundle.min.js +3524 -3522
- package/dist/all-components-bundle.min.js.map +1 -1
- package/dist/esm/theme-provider/design-token-comments.js +1 -0
- package/dist/esm/theme-provider/design-token-comments.js.map +1 -1
- package/dist/esm/theme-provider/design-token-names.js +1 -0
- package/dist/esm/theme-provider/design-token-names.js.map +1 -1
- package/dist/esm/theme-provider/design-tokens.d.ts +1 -0
- package/dist/esm/theme-provider/design-tokens.js +1 -0
- package/dist/esm/theme-provider/design-tokens.js.map +1 -1
- package/dist/tokens-internal.scss +6 -0
- package/dist/tokens.scss +3 -0
- package/package.json +2 -31
- package/dist/esm/.storybook/blocks/StoryLayout.d.ts +0 -51
- package/dist/esm/src/all-components.d.ts +0 -62
- package/dist/esm/src/anchor/index.d.ts +0 -36
- package/dist/esm/src/anchor/styles.d.ts +0 -1
- package/dist/esm/src/anchor/template.d.ts +0 -4
- package/dist/esm/src/anchor/types.d.ts +0 -9
- package/dist/esm/src/anchor-base/index.d.ts +0 -6
- package/dist/esm/src/anchor-button/index.d.ts +0 -37
- package/dist/esm/src/anchor-button/styles.d.ts +0 -1
- package/dist/esm/src/anchor-button/template.d.ts +0 -4
- package/dist/esm/src/anchor-button/types.d.ts +0 -5
- package/dist/esm/src/anchor-menu-item/index.d.ts +0 -36
- package/dist/esm/src/anchor-menu-item/styles.d.ts +0 -1
- package/dist/esm/src/anchor-menu-item/template.d.ts +0 -4
- package/dist/esm/src/anchor-tab/index.d.ts +0 -30
- package/dist/esm/src/anchor-tab/styles.d.ts +0 -1
- package/dist/esm/src/anchor-tab/template.d.ts +0 -4
- package/dist/esm/src/anchor-tabs/index.d.ts +0 -60
- package/dist/esm/src/anchor-tabs/styles.d.ts +0 -1
- package/dist/esm/src/anchor-tabs/template.d.ts +0 -4
- package/dist/esm/src/anchor-tree-item/index.d.ts +0 -57
- package/dist/esm/src/anchor-tree-item/styles.d.ts +0 -1
- package/dist/esm/src/anchor-tree-item/template.d.ts +0 -4
- package/dist/esm/src/anchored-region/index.d.ts +0 -12
- package/dist/esm/src/anchored-region/styles.d.ts +0 -1
- package/dist/esm/src/banner/index.d.ts +0 -47
- package/dist/esm/src/banner/styles.d.ts +0 -1
- package/dist/esm/src/banner/template.d.ts +0 -2
- package/dist/esm/src/banner/types.d.ts +0 -19
- package/dist/esm/src/breadcrumb/index.d.ts +0 -14
- package/dist/esm/src/breadcrumb/styles.d.ts +0 -1
- package/dist/esm/src/breadcrumb/types.d.ts +0 -9
- package/dist/esm/src/breadcrumb-item/index.d.ts +0 -12
- package/dist/esm/src/breadcrumb-item/styles.d.ts +0 -1
- package/dist/esm/src/button/index.d.ts +0 -32
- package/dist/esm/src/button/styles.d.ts +0 -1
- package/dist/esm/src/button/types.d.ts +0 -7
- package/dist/esm/src/card/index.d.ts +0 -12
- package/dist/esm/src/card/styles.d.ts +0 -1
- package/dist/esm/src/card/template.d.ts +0 -2
- package/dist/esm/src/card-button/index.d.ts +0 -18
- package/dist/esm/src/card-button/styles.d.ts +0 -1
- package/dist/esm/src/checkbox/index.d.ts +0 -12
- package/dist/esm/src/checkbox/styles.d.ts +0 -1
- package/dist/esm/src/combobox/index.d.ts +0 -234
- package/dist/esm/src/combobox/models/combobox-form-associated.d.ts +0 -16
- package/dist/esm/src/combobox/styles.d.ts +0 -1
- package/dist/esm/src/combobox/template.d.ts +0 -4
- package/dist/esm/src/combobox/types.d.ts +0 -2
- package/dist/esm/src/dialog/index.d.ts +0 -70
- package/dist/esm/src/dialog/styles.d.ts +0 -1
- package/dist/esm/src/dialog/template.d.ts +0 -2
- package/dist/esm/src/drawer/index.d.ts +0 -55
- package/dist/esm/src/drawer/styles.d.ts +0 -1
- package/dist/esm/src/drawer/template.d.ts +0 -2
- package/dist/esm/src/drawer/types.d.ts +0 -5
- package/dist/esm/src/icon-base/index.d.ts +0 -19
- package/dist/esm/src/icon-base/styles.d.ts +0 -1
- package/dist/esm/src/icon-base/template.d.ts +0 -2
- package/dist/esm/src/icon-base/types.d.ts +0 -12
- package/dist/esm/src/icons/add.d.ts +0 -13
- package/dist/esm/src/icons/all-icons.d.ts +0 -185
- package/dist/esm/src/icons/arrow-down-right-and-arrow-up-left.d.ts +0 -13
- package/dist/esm/src/icons/arrow-down.d.ts +0 -13
- package/dist/esm/src/icons/arrow-expander-down.d.ts +0 -13
- package/dist/esm/src/icons/arrow-expander-left.d.ts +0 -13
- package/dist/esm/src/icons/arrow-expander-right.d.ts +0 -13
- package/dist/esm/src/icons/arrow-expander-up.d.ts +0 -13
- package/dist/esm/src/icons/arrow-in-circle.d.ts +0 -13
- package/dist/esm/src/icons/arrow-left-from-line.d.ts +0 -13
- package/dist/esm/src/icons/arrow-out-circle.d.ts +0 -13
- package/dist/esm/src/icons/arrow-partial-rotate-left.d.ts +0 -13
- package/dist/esm/src/icons/arrow-right-to-line.d.ts +0 -13
- package/dist/esm/src/icons/arrow-rotate-right.d.ts +0 -13
- package/dist/esm/src/icons/arrow-u-rotate-left.d.ts +0 -13
- package/dist/esm/src/icons/arrow-up-left-and-arrow-down-right.d.ts +0 -13
- package/dist/esm/src/icons/arrow-up-right-from-square.d.ts +0 -13
- package/dist/esm/src/icons/arrow-up.d.ts +0 -13
- package/dist/esm/src/icons/arrows-maximize.d.ts +0 -13
- package/dist/esm/src/icons/arrows-repeat.d.ts +0 -13
- package/dist/esm/src/icons/at.d.ts +0 -13
- package/dist/esm/src/icons/bars.d.ts +0 -13
- package/dist/esm/src/icons/bell-and-comment.d.ts +0 -13
- package/dist/esm/src/icons/bell-circle.d.ts +0 -13
- package/dist/esm/src/icons/bell-solid-circle.d.ts +0 -13
- package/dist/esm/src/icons/bell.d.ts +0 -13
- package/dist/esm/src/icons/block-with-ribbon.d.ts +0 -13
- package/dist/esm/src/icons/bold-b.d.ts +0 -13
- package/dist/esm/src/icons/book-magnifying-glass.d.ts +0 -13
- package/dist/esm/src/icons/calendar-check-lines.d.ts +0 -13
- package/dist/esm/src/icons/calendar-day.d.ts +0 -13
- package/dist/esm/src/icons/calendar.d.ts +0 -13
- package/dist/esm/src/icons/chart-diagram-child-focus.d.ts +0 -13
- package/dist/esm/src/icons/chart-diagram-parent-focus-two-child.d.ts +0 -13
- package/dist/esm/src/icons/chart-diagram-parent-focus.d.ts +0 -13
- package/dist/esm/src/icons/chart-diagram.d.ts +0 -13
- package/dist/esm/src/icons/check-dot.d.ts +0 -13
- package/dist/esm/src/icons/check-large.d.ts +0 -13
- package/dist/esm/src/icons/check.d.ts +0 -13
- package/dist/esm/src/icons/circle-broken.d.ts +0 -13
- package/dist/esm/src/icons/circle-check.d.ts +0 -13
- package/dist/esm/src/icons/circle-filled.d.ts +0 -13
- package/dist/esm/src/icons/circle-partial-broken.d.ts +0 -13
- package/dist/esm/src/icons/circle-slash.d.ts +0 -13
- package/dist/esm/src/icons/circle-x.d.ts +0 -13
- package/dist/esm/src/icons/circle.d.ts +0 -13
- package/dist/esm/src/icons/clipboard.d.ts +0 -13
- package/dist/esm/src/icons/clock-cog.d.ts +0 -13
- package/dist/esm/src/icons/clock-exclamation.d.ts +0 -13
- package/dist/esm/src/icons/clock-triangle.d.ts +0 -13
- package/dist/esm/src/icons/clock.d.ts +0 -13
- package/dist/esm/src/icons/clone.d.ts +0 -13
- package/dist/esm/src/icons/cloud-upload.d.ts +0 -13
- package/dist/esm/src/icons/cloud-with-arrow.d.ts +0 -13
- package/dist/esm/src/icons/cloud.d.ts +0 -13
- package/dist/esm/src/icons/cog-database-inset.d.ts +0 -13
- package/dist/esm/src/icons/cog-database.d.ts +0 -13
- package/dist/esm/src/icons/cog-small-cog.d.ts +0 -13
- package/dist/esm/src/icons/cog-zoomed.d.ts +0 -13
- package/dist/esm/src/icons/cog.d.ts +0 -13
- package/dist/esm/src/icons/comment.d.ts +0 -13
- package/dist/esm/src/icons/computer-and-monitor.d.ts +0 -13
- package/dist/esm/src/icons/copy-text.d.ts +0 -13
- package/dist/esm/src/icons/copy.d.ts +0 -13
- package/dist/esm/src/icons/dashboard-builder-legend.d.ts +0 -13
- package/dist/esm/src/icons/dashboard-builder-templates.d.ts +0 -13
- package/dist/esm/src/icons/dashboard-builder-tile.d.ts +0 -13
- package/dist/esm/src/icons/dashboard-builder.d.ts +0 -13
- package/dist/esm/src/icons/database-check.d.ts +0 -13
- package/dist/esm/src/icons/database.d.ts +0 -13
- package/dist/esm/src/icons/desktop.d.ts +0 -13
- package/dist/esm/src/icons/donut-chart.d.ts +0 -13
- package/dist/esm/src/icons/dot-solid-dot-stroke-measurement.d.ts +0 -13
- package/dist/esm/src/icons/dot-solid-dot-stroke.d.ts +0 -13
- package/dist/esm/src/icons/down-right-from-square.d.ts +0 -13
- package/dist/esm/src/icons/download.d.ts +0 -13
- package/dist/esm/src/icons/electronic-chip-zoomed.d.ts +0 -13
- package/dist/esm/src/icons/exclamation-mark.d.ts +0 -13
- package/dist/esm/src/icons/eye-dash.d.ts +0 -13
- package/dist/esm/src/icons/eye.d.ts +0 -13
- package/dist/esm/src/icons/fancy-a.d.ts +0 -13
- package/dist/esm/src/icons/file-arrow-curved-right.d.ts +0 -13
- package/dist/esm/src/icons/file-drawer.d.ts +0 -13
- package/dist/esm/src/icons/file-search.d.ts +0 -13
- package/dist/esm/src/icons/file.d.ts +0 -13
- package/dist/esm/src/icons/filter.d.ts +0 -13
- package/dist/esm/src/icons/floppy-disk-checkmark.d.ts +0 -13
- package/dist/esm/src/icons/floppy-disk-pen.d.ts +0 -13
- package/dist/esm/src/icons/floppy-disk-star-arrow-right.d.ts +0 -13
- package/dist/esm/src/icons/floppy-disk-three-dots.d.ts +0 -13
- package/dist/esm/src/icons/floppy-disk.d.ts +0 -13
- package/dist/esm/src/icons/folder-open.d.ts +0 -13
- package/dist/esm/src/icons/folder.d.ts +0 -13
- package/dist/esm/src/icons/forward-slash.d.ts +0 -13
- package/dist/esm/src/icons/four-dots-square.d.ts +0 -13
- package/dist/esm/src/icons/function.d.ts +0 -13
- package/dist/esm/src/icons/gauge-simple.d.ts +0 -13
- package/dist/esm/src/icons/grid-three-by-three.d.ts +0 -13
- package/dist/esm/src/icons/grid-two-by-two.d.ts +0 -13
- package/dist/esm/src/icons/hammer.d.ts +0 -13
- package/dist/esm/src/icons/hashtag.d.ts +0 -13
- package/dist/esm/src/icons/home.d.ts +0 -13
- package/dist/esm/src/icons/horizontal-triangle-outline.d.ts +0 -13
- package/dist/esm/src/icons/hourglass.d.ts +0 -13
- package/dist/esm/src/icons/indent.d.ts +0 -13
- package/dist/esm/src/icons/indeterminant-checkbox.d.ts +0 -13
- package/dist/esm/src/icons/info-circle.d.ts +0 -13
- package/dist/esm/src/icons/info.d.ts +0 -13
- package/dist/esm/src/icons/inward-squares-three.d.ts +0 -13
- package/dist/esm/src/icons/italic-i.d.ts +0 -13
- package/dist/esm/src/icons/key.d.ts +0 -13
- package/dist/esm/src/icons/laptop.d.ts +0 -13
- package/dist/esm/src/icons/layer-group.d.ts +0 -13
- package/dist/esm/src/icons/lightning-bolt.d.ts +0 -13
- package/dist/esm/src/icons/link-cancel.d.ts +0 -13
- package/dist/esm/src/icons/link.d.ts +0 -13
- package/dist/esm/src/icons/list-tree-database.d.ts +0 -13
- package/dist/esm/src/icons/list-tree.d.ts +0 -13
- package/dist/esm/src/icons/list.d.ts +0 -13
- package/dist/esm/src/icons/lock.d.ts +0 -13
- package/dist/esm/src/icons/magnifying-glass.d.ts +0 -13
- package/dist/esm/src/icons/markdown.d.ts +0 -13
- package/dist/esm/src/icons/minus-wide.d.ts +0 -13
- package/dist/esm/src/icons/minus.d.ts +0 -13
- package/dist/esm/src/icons/mobile.d.ts +0 -13
- package/dist/esm/src/icons/ni.d.ts +0 -13
- package/dist/esm/src/icons/notebook.d.ts +0 -13
- package/dist/esm/src/icons/number-list.d.ts +0 -13
- package/dist/esm/src/icons/outdent.d.ts +0 -13
- package/dist/esm/src/icons/outward-squares-three.d.ts +0 -13
- package/dist/esm/src/icons/paste.d.ts +0 -13
- package/dist/esm/src/icons/pause.d.ts +0 -13
- package/dist/esm/src/icons/pencil.d.ts +0 -13
- package/dist/esm/src/icons/play.d.ts +0 -13
- package/dist/esm/src/icons/pot-with-lid.d.ts +0 -13
- package/dist/esm/src/icons/question.d.ts +0 -13
- package/dist/esm/src/icons/rectangle-check-lines.d.ts +0 -13
- package/dist/esm/src/icons/running-arrow.d.ts +0 -13
- package/dist/esm/src/icons/screen-check-lines-calendar.d.ts +0 -13
- package/dist/esm/src/icons/screen-check-lines.d.ts +0 -13
- package/dist/esm/src/icons/server.d.ts +0 -13
- package/dist/esm/src/icons/share-nodes.d.ts +0 -13
- package/dist/esm/src/icons/shield-check.d.ts +0 -13
- package/dist/esm/src/icons/shield-xmark.d.ts +0 -13
- package/dist/esm/src/icons/signal-bars.d.ts +0 -13
- package/dist/esm/src/icons/sine-graph.d.ts +0 -13
- package/dist/esm/src/icons/skip-arrow.d.ts +0 -13
- package/dist/esm/src/icons/spinner.d.ts +0 -13
- package/dist/esm/src/icons/square-check.d.ts +0 -13
- package/dist/esm/src/icons/square-t.d.ts +0 -13
- package/dist/esm/src/icons/square-x.d.ts +0 -13
- package/dist/esm/src/icons/stop-square.d.ts +0 -13
- package/dist/esm/src/icons/systemlink.d.ts +0 -13
- package/dist/esm/src/icons/t.d.ts +0 -13
- package/dist/esm/src/icons/tablet.d.ts +0 -13
- package/dist/esm/src/icons/tag.d.ts +0 -13
- package/dist/esm/src/icons/tags.d.ts +0 -13
- package/dist/esm/src/icons/target-crosshairs-progress.d.ts +0 -13
- package/dist/esm/src/icons/target-crosshairs.d.ts +0 -13
- package/dist/esm/src/icons/three-circles-ascending-container.d.ts +0 -13
- package/dist/esm/src/icons/three-dots-line.d.ts +0 -13
- package/dist/esm/src/icons/three-vertical-lines.d.ts +0 -13
- package/dist/esm/src/icons/thumbtack.d.ts +0 -13
- package/dist/esm/src/icons/tile-size.d.ts +0 -13
- package/dist/esm/src/icons/times.d.ts +0 -13
- package/dist/esm/src/icons/trash.d.ts +0 -13
- package/dist/esm/src/icons/triangle-filled.d.ts +0 -13
- package/dist/esm/src/icons/triangle-two-lines-horizontal.d.ts +0 -13
- package/dist/esm/src/icons/triangle.d.ts +0 -13
- package/dist/esm/src/icons/true-false-rectangle.d.ts +0 -13
- package/dist/esm/src/icons/two-squares-in-brackets.d.ts +0 -13
- package/dist/esm/src/icons/two-triangles-between-lines.d.ts +0 -13
- package/dist/esm/src/icons/unlink.d.ts +0 -13
- package/dist/esm/src/icons/unlock.d.ts +0 -13
- package/dist/esm/src/icons/up-right-from-square.d.ts +0 -13
- package/dist/esm/src/icons/upload.d.ts +0 -13
- package/dist/esm/src/icons/user.d.ts +0 -13
- package/dist/esm/src/icons/watch.d.ts +0 -13
- package/dist/esm/src/icons/waveform.d.ts +0 -13
- package/dist/esm/src/icons/webvi-custom.d.ts +0 -13
- package/dist/esm/src/icons/webvi-host.d.ts +0 -13
- package/dist/esm/src/icons/window-code.d.ts +0 -13
- package/dist/esm/src/icons/window-text.d.ts +0 -13
- package/dist/esm/src/icons/wrench-hammer.d.ts +0 -13
- package/dist/esm/src/icons/xmark-check.d.ts +0 -13
- package/dist/esm/src/icons/xmark.d.ts +0 -13
- package/dist/esm/src/label-provider/base/index.d.ts +0 -19
- package/dist/esm/src/label-provider/core/index.d.ts +0 -41
- package/dist/esm/src/label-provider/core/label-token-defaults.d.ts +0 -6
- package/dist/esm/src/label-provider/core/label-tokens.d.ts +0 -9
- package/dist/esm/src/label-provider/rich-text/index.d.ts +0 -29
- package/dist/esm/src/label-provider/rich-text/label-token-defaults.d.ts +0 -6
- package/dist/esm/src/label-provider/rich-text/label-tokens.d.ts +0 -5
- package/dist/esm/src/label-provider/table/index.d.ts +0 -65
- package/dist/esm/src/label-provider/table/label-token-defaults.d.ts +0 -6
- package/dist/esm/src/label-provider/table/label-tokens.d.ts +0 -17
- package/dist/esm/src/list-option/index.d.ts +0 -37
- package/dist/esm/src/list-option/styles.d.ts +0 -1
- package/dist/esm/src/list-option/template.d.ts +0 -8
- package/dist/esm/src/listbox/index.d.ts +0 -12
- package/dist/esm/src/listbox/styles.d.ts +0 -1
- package/dist/esm/src/mapping/base/index.d.ts +0 -10
- package/dist/esm/src/mapping/base/template.d.ts +0 -1
- package/dist/esm/src/mapping/base/types.d.ts +0 -3
- package/dist/esm/src/mapping/icon/index.d.ts +0 -28
- package/dist/esm/src/mapping/spinner/index.d.ts +0 -17
- package/dist/esm/src/mapping/text/index.d.ts +0 -16
- package/dist/esm/src/mapping/user/index.d.ts +0 -15
- package/dist/esm/src/menu/index.d.ts +0 -12
- package/dist/esm/src/menu/styles.d.ts +0 -1
- package/dist/esm/src/menu-button/index.d.ts +0 -54
- package/dist/esm/src/menu-button/styles.d.ts +0 -1
- package/dist/esm/src/menu-button/template.d.ts +0 -2
- package/dist/esm/src/menu-button/types.d.ts +0 -22
- package/dist/esm/src/menu-item/index.d.ts +0 -13
- package/dist/esm/src/menu-item/styles.d.ts +0 -1
- package/dist/esm/src/number-field/index.d.ts +0 -25
- package/dist/esm/src/number-field/styles.d.ts +0 -1
- package/dist/esm/src/number-field/types.d.ts +0 -9
- package/dist/esm/src/patterns/button/styles.d.ts +0 -2
- package/dist/esm/src/patterns/button/types.d.ts +0 -49
- package/dist/esm/src/patterns/dialog/types.d.ts +0 -6
- package/dist/esm/src/patterns/dropdown/styles.d.ts +0 -1
- package/dist/esm/src/patterns/dropdown/types.d.ts +0 -33
- package/dist/esm/src/patterns/error/styles.d.ts +0 -1
- package/dist/esm/src/patterns/error/template.d.ts +0 -2
- package/dist/esm/src/patterns/error/types.d.ts +0 -10
- package/dist/esm/src/patterns/expand-collapse/styles.d.ts +0 -1
- package/dist/esm/src/radio/index.d.ts +0 -12
- package/dist/esm/src/radio/styles.d.ts +0 -1
- package/dist/esm/src/radio-group/index.d.ts +0 -14
- package/dist/esm/src/radio-group/styles.d.ts +0 -1
- package/dist/esm/src/rich-text/base/index.d.ts +0 -49
- package/dist/esm/src/rich-text/base/types.d.ts +0 -5
- package/dist/esm/src/rich-text/editor/index.d.ts +0 -270
- package/dist/esm/src/rich-text/editor/models/create-tiptap-editor.d.ts +0 -5
- package/dist/esm/src/rich-text/editor/styles.d.ts +0 -1
- package/dist/esm/src/rich-text/editor/template.d.ts +0 -2
- package/dist/esm/src/rich-text/editor/testing/rich-text-editor-utils.d.ts +0 -6
- package/dist/esm/src/rich-text/editor/testing/rich-text-editor.pageobject.d.ts +0 -75
- package/dist/esm/src/rich-text/editor/testing/types.d.ts +0 -31
- package/dist/esm/src/rich-text/editor/types.d.ts +0 -27
- package/dist/esm/src/rich-text/mention-listbox/index.d.ts +0 -116
- package/dist/esm/src/rich-text/mention-listbox/styles.d.ts +0 -1
- package/dist/esm/src/rich-text/mention-listbox/template.d.ts +0 -2
- package/dist/esm/src/rich-text/mention-listbox/types.d.ts +0 -7
- package/dist/esm/src/rich-text/models/configuration.d.ts +0 -10
- package/dist/esm/src/rich-text/models/editor-configuration.d.ts +0 -10
- package/dist/esm/src/rich-text/models/markdown-parser-mention-configuration.d.ts +0 -14
- package/dist/esm/src/rich-text/models/markdown-parser.d.ts +0 -31
- package/dist/esm/src/rich-text/models/markdown-serializer.d.ts +0 -10
- package/dist/esm/src/rich-text/models/mention-extension-configuration.d.ts +0 -19
- package/dist/esm/src/rich-text/models/rich-text-tracker.d.ts +0 -19
- package/dist/esm/src/rich-text/models/rich-text-validator.d.ts +0 -15
- package/dist/esm/src/rich-text/models/testing/markdown-parser-utils.d.ts +0 -5
- package/dist/esm/src/rich-text/viewer/index.d.ts +0 -37
- package/dist/esm/src/rich-text/viewer/styles.d.ts +0 -1
- package/dist/esm/src/rich-text/viewer/template.d.ts +0 -2
- package/dist/esm/src/rich-text/viewer/testing/rich-text-viewer.pageobject.d.ts +0 -27
- package/dist/esm/src/rich-text-mention/base/index.d.ts +0 -53
- package/dist/esm/src/rich-text-mention/base/models/mapping-config.d.ts +0 -8
- package/dist/esm/src/rich-text-mention/base/models/mention-internals.d.ts +0 -47
- package/dist/esm/src/rich-text-mention/base/models/mention-validator.d.ts +0 -30
- package/dist/esm/src/rich-text-mention/base/template.d.ts +0 -2
- package/dist/esm/src/rich-text-mention/base/types.d.ts +0 -10
- package/dist/esm/src/rich-text-mention/base/view/index.d.ts +0 -20
- package/dist/esm/src/rich-text-mention/users/index.d.ts +0 -20
- package/dist/esm/src/rich-text-mention/users/models/mapping-user-config.d.ts +0 -6
- package/dist/esm/src/rich-text-mention/users/models/rich-text-mention-users-validator.d.ts +0 -15
- package/dist/esm/src/rich-text-mention/users/view/index.d.ts +0 -12
- package/dist/esm/src/rich-text-mention/users/view/styles.d.ts +0 -1
- package/dist/esm/src/rich-text-mention/users/view/template.d.ts +0 -2
- package/dist/esm/src/rich-text-mention/users/view/testing/rich-text-mention-users-view.pageobject.d.ts +0 -9
- package/dist/esm/src/select/index.d.ts +0 -281
- package/dist/esm/src/select/models/select-form-associated.d.ts +0 -16
- package/dist/esm/src/select/styles.d.ts +0 -1
- package/dist/esm/src/select/template.d.ts +0 -4
- package/dist/esm/src/select/testing/select.pageobject.d.ts +0 -39
- package/dist/esm/src/select/types.d.ts +0 -14
- package/dist/esm/src/spinner/index.d.ts +0 -20
- package/dist/esm/src/spinner/styles.d.ts +0 -1
- package/dist/esm/src/spinner/template.d.ts +0 -2
- package/dist/esm/src/spinner/types.d.ts +0 -9
- package/dist/esm/src/switch/index.d.ts +0 -12
- package/dist/esm/src/switch/styles.d.ts +0 -1
- package/dist/esm/src/switch/template.d.ts +0 -2
- package/dist/esm/src/tab/index.d.ts +0 -12
- package/dist/esm/src/tab/styles.d.ts +0 -1
- package/dist/esm/src/tab-panel/index.d.ts +0 -12
- package/dist/esm/src/tab-panel/styles.d.ts +0 -1
- package/dist/esm/src/table/components/cell/index.d.ts +0 -30
- package/dist/esm/src/table/components/cell/styles.d.ts +0 -1
- package/dist/esm/src/table/components/cell/template.d.ts +0 -2
- package/dist/esm/src/table/components/group-row/index.d.ts +0 -42
- package/dist/esm/src/table/components/group-row/styles.d.ts +0 -1
- package/dist/esm/src/table/components/group-row/template.d.ts +0 -2
- package/dist/esm/src/table/components/header/index.d.ts +0 -21
- package/dist/esm/src/table/components/header/styles.d.ts +0 -1
- package/dist/esm/src/table/components/header/template.d.ts +0 -2
- package/dist/esm/src/table/components/row/index.d.ts +0 -89
- package/dist/esm/src/table/components/row/styles.d.ts +0 -1
- package/dist/esm/src/table/components/row/template.d.ts +0 -2
- package/dist/esm/src/table/index.d.ts +0 -225
- package/dist/esm/src/table/models/array-to-tree.d.ts +0 -17
- package/dist/esm/src/table/models/data-hierarchy-manager.d.ts +0 -15
- package/dist/esm/src/table/models/expansion-manager.d.ts +0 -33
- package/dist/esm/src/table/models/interactive-selection-manager.d.ts +0 -18
- package/dist/esm/src/table/models/selection-managers/disabled-selection-manager.d.ts +0 -11
- package/dist/esm/src/table/models/selection-managers/multi-selection-manager.d.ts +0 -20
- package/dist/esm/src/table/models/selection-managers/selection-manager-base.d.ts +0 -19
- package/dist/esm/src/table/models/selection-managers/single-selection-manager.d.ts +0 -11
- package/dist/esm/src/table/models/sort-operations.d.ts +0 -7
- package/dist/esm/src/table/models/table-layout-manager.d.ts +0 -62
- package/dist/esm/src/table/models/table-update-tracker.d.ts +0 -33
- package/dist/esm/src/table/models/table-validator.d.ts +0 -32
- package/dist/esm/src/table/models/virtualizer.d.ts +0 -27
- package/dist/esm/src/table/styles.d.ts +0 -1
- package/dist/esm/src/table/template.d.ts +0 -2
- package/dist/esm/src/table/testing/table.pageobject.d.ts +0 -112
- package/dist/esm/src/table/types.d.ts +0 -186
- package/dist/esm/src/table-column/anchor/cell-view/index.d.ts +0 -22
- package/dist/esm/src/table-column/anchor/cell-view/styles.d.ts +0 -1
- package/dist/esm/src/table-column/anchor/cell-view/template.d.ts +0 -2
- package/dist/esm/src/table-column/anchor/index.d.ts +0 -78
- package/dist/esm/src/table-column/base/cell-view/index.d.ts +0 -22
- package/dist/esm/src/table-column/base/cell-view/template.d.ts +0 -3
- package/dist/esm/src/table-column/base/group-header-view/index.d.ts +0 -15
- package/dist/esm/src/table-column/base/group-header-view/template.d.ts +0 -3
- package/dist/esm/src/table-column/base/index.d.ts +0 -36
- package/dist/esm/src/table-column/base/models/column-internals.d.ts +0 -135
- package/dist/esm/src/table-column/base/models/column-validator.d.ts +0 -18
- package/dist/esm/src/table-column/base/styles.d.ts +0 -1
- package/dist/esm/src/table-column/base/template.d.ts +0 -2
- package/dist/esm/src/table-column/base/types.d.ts +0 -39
- package/dist/esm/src/table-column/date-text/cell-view/index.d.ts +0 -14
- package/dist/esm/src/table-column/date-text/group-header-view/index.d.ts +0 -15
- package/dist/esm/src/table-column/date-text/index.d.ts +0 -93
- package/dist/esm/src/table-column/date-text/models/format-helper.d.ts +0 -2
- package/dist/esm/src/table-column/date-text/models/table-column-date-text-validator.d.ts +0 -10
- package/dist/esm/src/table-column/date-text/testing/table-column-date-text.pageobject.d.ts +0 -9
- package/dist/esm/src/table-column/date-text/types.d.ts +0 -23
- package/dist/esm/src/table-column/duration-text/cell-view/index.d.ts +0 -14
- package/dist/esm/src/table-column/duration-text/group-header-view/index.d.ts +0 -15
- package/dist/esm/src/table-column/duration-text/index.d.ts +0 -51
- package/dist/esm/src/table-column/duration-text/models/duration-formatter.d.ts +0 -14
- package/dist/esm/src/table-column/duration-text/testing/table-column-duration-text.pageobject.d.ts +0 -8
- package/dist/esm/src/table-column/enum-base/index.d.ts +0 -47
- package/dist/esm/src/table-column/enum-base/models/mapping-config.d.ts +0 -7
- package/dist/esm/src/table-column/enum-base/models/mapping-icon-config.d.ts +0 -17
- package/dist/esm/src/table-column/enum-base/models/mapping-key-resolver.d.ts +0 -8
- package/dist/esm/src/table-column/enum-base/models/mapping-spinner-config.d.ts +0 -14
- package/dist/esm/src/table-column/enum-base/models/mapping-text-config.d.ts +0 -6
- package/dist/esm/src/table-column/enum-base/models/table-column-enum-base-validator.d.ts +0 -14
- package/dist/esm/src/table-column/enum-base/styles.d.ts +0 -1
- package/dist/esm/src/table-column/enum-base/template.d.ts +0 -3
- package/dist/esm/src/table-column/enum-base/types.d.ts +0 -10
- package/dist/esm/src/table-column/icon/cell-view/index.d.ts +0 -27
- package/dist/esm/src/table-column/icon/cell-view/styles.d.ts +0 -1
- package/dist/esm/src/table-column/icon/cell-view/template.d.ts +0 -2
- package/dist/esm/src/table-column/icon/group-header-view/index.d.ts +0 -23
- package/dist/esm/src/table-column/icon/group-header-view/styles.d.ts +0 -1
- package/dist/esm/src/table-column/icon/group-header-view/template.d.ts +0 -2
- package/dist/esm/src/table-column/icon/index.d.ts +0 -45
- package/dist/esm/src/table-column/icon/models/table-column-icon-validator.d.ts +0 -18
- package/dist/esm/src/table-column/icon/testing/table-column-icon.pageobject.d.ts +0 -23
- package/dist/esm/src/table-column/icon/types.d.ts +0 -8
- package/dist/esm/src/table-column/mixins/fractional-width-column.d.ts +0 -11
- package/dist/esm/src/table-column/mixins/groupable-column.d.ts +0 -11
- package/dist/esm/src/table-column/mixins/placeholder.d.ts +0 -9
- package/dist/esm/src/table-column/number-text/cell-view/index.d.ts +0 -15
- package/dist/esm/src/table-column/number-text/group-header-view/index.d.ts +0 -15
- package/dist/esm/src/table-column/number-text/index.d.ts +0 -73
- package/dist/esm/src/table-column/number-text/models/number-text-unit-format.d.ts +0 -23
- package/dist/esm/src/table-column/number-text/models/table-column-number-text-validator.d.ts +0 -15
- package/dist/esm/src/table-column/number-text/template.d.ts +0 -2
- package/dist/esm/src/table-column/number-text/types.d.ts +0 -18
- package/dist/esm/src/table-column/testing/table-column-formatted-text.pageobject.d.ts +0 -14
- package/dist/esm/src/table-column/text/cell-view/index.d.ts +0 -14
- package/dist/esm/src/table-column/text/group-header-view/index.d.ts +0 -15
- package/dist/esm/src/table-column/text/index.d.ts +0 -45
- package/dist/esm/src/table-column/text-base/cell-view/index.d.ts +0 -37
- package/dist/esm/src/table-column/text-base/cell-view/styles.d.ts +0 -1
- package/dist/esm/src/table-column/text-base/cell-view/template.d.ts +0 -2
- package/dist/esm/src/table-column/text-base/cell-view/types.d.ts +0 -8
- package/dist/esm/src/table-column/text-base/group-header-view/index.d.ts +0 -29
- package/dist/esm/src/table-column/text-base/group-header-view/styles.d.ts +0 -1
- package/dist/esm/src/table-column/text-base/group-header-view/template.d.ts +0 -2
- package/dist/esm/src/table-column/text-base/index.d.ts +0 -27
- package/dist/esm/src/tabs/index.d.ts +0 -13
- package/dist/esm/src/tabs/styles.d.ts +0 -1
- package/dist/esm/src/tabs-toolbar/index.d.ts +0 -12
- package/dist/esm/src/tabs-toolbar/styles.d.ts +0 -1
- package/dist/esm/src/tabs-toolbar/template.d.ts +0 -2
- package/dist/esm/src/testing/async-helpers.d.ts +0 -10
- package/dist/esm/src/text-area/index.d.ts +0 -68
- package/dist/esm/src/text-area/styles.d.ts +0 -1
- package/dist/esm/src/text-area/template.d.ts +0 -4
- package/dist/esm/src/text-area/types.d.ts +0 -7
- package/dist/esm/src/text-field/index.d.ts +0 -32
- package/dist/esm/src/text-field/styles.d.ts +0 -1
- package/dist/esm/src/text-field/types.d.ts +0 -15
- package/dist/esm/src/theme-provider/design-token-comments.d.ts +0 -6
- package/dist/esm/src/theme-provider/design-token-names.d.ts +0 -19
- package/dist/esm/src/theme-provider/design-tokens-static.d.ts +0 -10
- package/dist/esm/src/theme-provider/design-tokens.d.ts +0 -83
- package/dist/esm/src/theme-provider/index.d.ts +0 -30
- package/dist/esm/src/theme-provider/styles.d.ts +0 -1
- package/dist/esm/src/theme-provider/template.d.ts +0 -2
- package/dist/esm/src/theme-provider/types.d.ts +0 -6
- package/dist/esm/src/toggle-button/index.d.ts +0 -36
- package/dist/esm/src/toggle-button/styles.d.ts +0 -1
- package/dist/esm/src/toggle-button/template.d.ts +0 -4
- package/dist/esm/src/toggle-button/types.d.ts +0 -5
- package/dist/esm/src/toolbar/index.d.ts +0 -12
- package/dist/esm/src/toolbar/styles.d.ts +0 -1
- package/dist/esm/src/tooltip/index.d.ts +0 -20
- package/dist/esm/src/tooltip/styles.d.ts +0 -1
- package/dist/esm/src/tooltip/template.d.ts +0 -2
- package/dist/esm/src/tooltip/types.d.ts +0 -10
- package/dist/esm/src/tree-item/index.d.ts +0 -23
- package/dist/esm/src/tree-item/styles.d.ts +0 -1
- package/dist/esm/src/tree-view/index.d.ts +0 -29
- package/dist/esm/src/tree-view/styles.d.ts +0 -1
- package/dist/esm/src/tree-view/template.d.ts +0 -2
- package/dist/esm/src/tree-view/types.d.ts +0 -8
- package/dist/esm/src/unit/base/template.d.ts +0 -1
- package/dist/esm/src/unit/base/unit.d.ts +0 -9
- package/dist/esm/src/unit/byte/index.d.ts +0 -19
- package/dist/esm/src/unit/volt/index.d.ts +0 -13
- package/dist/esm/src/utilities/directive/overflow.d.ts +0 -36
- package/dist/esm/src/utilities/models/converter.d.ts +0 -2
- package/dist/esm/src/utilities/models/document-element-lang.d.ts +0 -9
- package/dist/esm/src/utilities/models/string-normalizers.d.ts +0 -5
- package/dist/esm/src/utilities/models/tracker.d.ts +0 -21
- package/dist/esm/src/utilities/models/update-tracker.d.ts +0 -7
- package/dist/esm/src/utilities/models/validator.d.ts +0 -11
- package/dist/esm/src/utilities/style/accessibly-hidden.d.ts +0 -6
- package/dist/esm/src/utilities/style/appearance.d.ts +0 -11
- package/dist/esm/src/utilities/style/colors.d.ts +0 -8
- package/dist/esm/src/utilities/style/direction.d.ts +0 -34
- package/dist/esm/src/utilities/style/focus.d.ts +0 -11
- package/dist/esm/src/utilities/style/multivalue-property-stylesheet-behavior.d.ts +0 -37
- package/dist/esm/src/utilities/style/prefers-reduced-motion.d.ts +0 -4
- package/dist/esm/src/utilities/style/theme.d.ts +0 -37
- package/dist/esm/src/utilities/style/types.d.ts +0 -5
- package/dist/esm/src/utilities/style/user-select.d.ts +0 -5
- package/dist/esm/src/utilities/unit-format/decimal-unit-format.d.ts +0 -19
- package/dist/esm/src/utilities/unit-format/default-unit-format.d.ts +0 -22
- package/dist/esm/src/utilities/unit-format/scaled-unit/scaled-unit.d.ts +0 -16
- package/dist/esm/src/utilities/unit-format/scaled-unit-format/intl-number-format-scaled-unit-format.d.ts +0 -11
- package/dist/esm/src/utilities/unit-format/scaled-unit-format/manually-translated-scaled-unit-format.d.ts +0 -43
- package/dist/esm/src/utilities/unit-format/scaled-unit-format/scaled-unit-format.d.ts +0 -10
- package/dist/esm/src/utilities/unit-format/unit-format.d.ts +0 -16
- package/dist/esm/src/utilities/unit-format/unit-scale/byte-1024-unit-scale.d.ts +0 -9
- package/dist/esm/src/utilities/unit-format/unit-scale/byte-unit-scale.d.ts +0 -9
- package/dist/esm/src/utilities/unit-format/unit-scale/passthrough-unit-scale.d.ts +0 -9
- package/dist/esm/src/utilities/unit-format/unit-scale/unit-scale.d.ts +0 -15
- package/dist/esm/src/utilities/unit-format/unit-scale/utilities/metrix-prefixes.d.ts +0 -1
- package/dist/esm/src/utilities/unit-format/unit-scale/volt-unit-scale.d.ts +0 -9
- package/dist/esm/src/utilities/wait-until-custom-elements-defined-async.d.ts +0 -1
- package/dist/esm/src/wafer-map/index.d.ts +0 -145
- package/dist/esm/src/wafer-map/modules/computations.d.ts +0 -39
- package/dist/esm/src/wafer-map/modules/create-matrix-renderer.d.ts +0 -10
- package/dist/esm/src/wafer-map/modules/data-manager.d.ts +0 -30
- package/dist/esm/src/wafer-map/modules/experimental/computations.d.ts +0 -30
- package/dist/esm/src/wafer-map/modules/experimental/data-manager.d.ts +0 -21
- package/dist/esm/src/wafer-map/modules/experimental/hover-handler.d.ts +0 -19
- package/dist/esm/src/wafer-map/modules/experimental/prerendering.d.ts +0 -18
- package/dist/esm/src/wafer-map/modules/experimental/worker-renderer.d.ts +0 -13
- package/dist/esm/src/wafer-map/modules/hover-handler.d.ts +0 -20
- package/dist/esm/src/wafer-map/modules/prerendering.d.ts +0 -30
- package/dist/esm/src/wafer-map/modules/rendering.d.ts +0 -19
- package/dist/esm/src/wafer-map/modules/wafer-map-update-tracker.d.ts +0 -25
- package/dist/esm/src/wafer-map/modules/wafer-map-validator.d.ts +0 -16
- package/dist/esm/src/wafer-map/modules/zoom-handler.d.ts +0 -22
- package/dist/esm/src/wafer-map/styles.d.ts +0 -1
- package/dist/esm/src/wafer-map/template.d.ts +0 -2
- package/dist/esm/src/wafer-map/types.d.ts +0 -79
- package/dist/esm/src/wafer-map/workers/matrix-renderer.d.ts +0 -1
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import type { RichTextEditor } from '..';
|
|
2
|
-
import { ArrowKeyButton, MappingConfiguration, ToolbarButton } from './types';
|
|
3
|
-
/**
|
|
4
|
-
* Page object for the `nimble-rich-text-editor` component.
|
|
5
|
-
*/
|
|
6
|
-
export declare class RichTextEditorPageObject {
|
|
7
|
-
private readonly richTextEditorElement;
|
|
8
|
-
constructor(richTextEditorElement: RichTextEditor);
|
|
9
|
-
editorSectionHasChildNodes(): boolean;
|
|
10
|
-
getEditorSectionFirstElementChildClassName(): string;
|
|
11
|
-
clickEditorShortcutKeys(shortcutKey: string, isShiftKey: boolean): Promise<void>;
|
|
12
|
-
pressEnterKeyInEditor(): Promise<void>;
|
|
13
|
-
pressEscapeKeyInEditor(): Promise<void>;
|
|
14
|
-
pressArrowKeyInEditor(arrowButton: ArrowKeyButton): Promise<void>;
|
|
15
|
-
pressShiftEnterKeysInEditor(): Promise<void>;
|
|
16
|
-
pressTabKeyInEditor(): Promise<void>;
|
|
17
|
-
pressShiftTabKeysInEditor(): Promise<void>;
|
|
18
|
-
/**
|
|
19
|
-
* In testing environment, when clicking on the footer button, it may not persist in the same state if any editor transaction occurs in between.
|
|
20
|
-
* This behavior is likely due to dynamic modifications of formatting button states based on cursor positions during editor transactions.
|
|
21
|
-
* Setting the "force" parameter to true activates the formatting button state; when set to false, it deactivates the state.
|
|
22
|
-
* If unset, the state toggles by interacting with it once.
|
|
23
|
-
*/
|
|
24
|
-
toggleFooterButton(button: ToolbarButton, force?: boolean): Promise<void>;
|
|
25
|
-
clickUserMentionButton(): Promise<void>;
|
|
26
|
-
getMentionButtonIcon(buttonIndex: number): string | undefined;
|
|
27
|
-
getMentionButtonTitle(buttonIndex: number): string;
|
|
28
|
-
getMentionButtonLabel(buttonIndex: number): string;
|
|
29
|
-
getButtonCheckedState(button: ToolbarButton): boolean;
|
|
30
|
-
getButtonTabIndex(button: ToolbarButton): number;
|
|
31
|
-
spaceKeyActivatesButton(button: ToolbarButton): void;
|
|
32
|
-
enterKeyActivatesButton(button: ToolbarButton): void;
|
|
33
|
-
pasteToEditor(text: string): void;
|
|
34
|
-
pasteHTMLToEditor(htmlString: string): void;
|
|
35
|
-
setEditorTextContent(value: string): Promise<void>;
|
|
36
|
-
setCursorPosition(position: number): Promise<void>;
|
|
37
|
-
replaceEditorContent(value: string): Promise<void>;
|
|
38
|
-
sliceEditorContent(from: number, to: number): Promise<void>;
|
|
39
|
-
getEditorLastChildAttribute(attribute: string): string;
|
|
40
|
-
isMentionListboxOpened(): boolean;
|
|
41
|
-
getEditorMentionViewAttributeValues(attribute: string): string[];
|
|
42
|
-
getEditorFirstChildTagName(): string;
|
|
43
|
-
getEditorFirstChildTextContent(): string;
|
|
44
|
-
getEditorTextContents(): string[];
|
|
45
|
-
getEditorTagNames(): string[];
|
|
46
|
-
getMarkdownRenderedTagNames(): string[];
|
|
47
|
-
getEditorLeafContents(): string[];
|
|
48
|
-
getEditorTagNamesWithClosingTags(): string[];
|
|
49
|
-
getFormattingButtonTextContent(toolbarButton: ToolbarButton): string;
|
|
50
|
-
getFormattingButtonTitle(toolbarButton: ToolbarButton): string;
|
|
51
|
-
isRichTextEditorActiveElement(): boolean;
|
|
52
|
-
getEditorTabIndex(): string;
|
|
53
|
-
setFooterHidden(footerHidden: boolean): Promise<void>;
|
|
54
|
-
isFooterHidden(): boolean;
|
|
55
|
-
setDisabled(disabled: boolean): Promise<void>;
|
|
56
|
-
isButtonDisabled(button: ToolbarButton): boolean;
|
|
57
|
-
getPlaceholderValue(): string;
|
|
58
|
-
getParsedHtmlFromMarkdown(markdown: string, mappings?: MappingConfiguration[]): string;
|
|
59
|
-
focusOutEditor(): Promise<void>;
|
|
60
|
-
getMentionListboxItemsName(): string[];
|
|
61
|
-
getSelectedOption(): string;
|
|
62
|
-
clickMentionListboxOption(index: number): Promise<void>;
|
|
63
|
-
moveCursorToStart(): void;
|
|
64
|
-
getCursorPosition(): number;
|
|
65
|
-
private getEditorSection;
|
|
66
|
-
private getFooter;
|
|
67
|
-
private getTiptapEditor;
|
|
68
|
-
private getFormattingButton;
|
|
69
|
-
private getUserMentionButton;
|
|
70
|
-
private getMentionButtons;
|
|
71
|
-
private getMentionListbox;
|
|
72
|
-
private getAllListItemsInMentionBox;
|
|
73
|
-
private getEditorLastChildElement;
|
|
74
|
-
private getParserMentionConfigForUser;
|
|
75
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import type { MappingUser } from '../../../mapping/user';
|
|
2
|
-
import type { RichTextMentionTest } from '../../../rich-text-mention/base/tests/rich-text-mention.fixtures';
|
|
3
|
-
import type { RichTextMentionUsers } from '../../../rich-text-mention/users';
|
|
4
|
-
export declare const ToolbarButton: {
|
|
5
|
-
readonly bold: 0;
|
|
6
|
-
readonly italics: 1;
|
|
7
|
-
readonly bulletList: 2;
|
|
8
|
-
readonly numberedList: 3;
|
|
9
|
-
};
|
|
10
|
-
export type ToolbarButton = (typeof ToolbarButton)[keyof typeof ToolbarButton];
|
|
11
|
-
export declare const ArrowKeyButton: {
|
|
12
|
-
readonly up: "ArrowUp";
|
|
13
|
-
readonly down: "ArrowDown";
|
|
14
|
-
readonly left: "ArrowLeft";
|
|
15
|
-
readonly right: "ArrowRight";
|
|
16
|
-
};
|
|
17
|
-
export type ArrowKeyButton = (typeof ArrowKeyButton)[keyof typeof ArrowKeyButton];
|
|
18
|
-
export type LabelProvider = 'toggleBold' | 'toggleItalics' | 'toggleBulletedList' | 'toggleNumberedList';
|
|
19
|
-
export type ToolbarButtonKey = keyof typeof ToolbarButton;
|
|
20
|
-
export interface UserMentionElements {
|
|
21
|
-
userMentionElement: RichTextMentionUsers;
|
|
22
|
-
mappingElements: MappingUser[];
|
|
23
|
-
}
|
|
24
|
-
export interface TestMentionElements {
|
|
25
|
-
testMentionElement: RichTextMentionTest;
|
|
26
|
-
mappingElements: MappingUser[];
|
|
27
|
-
}
|
|
28
|
-
export interface MappingConfiguration {
|
|
29
|
-
key?: string;
|
|
30
|
-
displayName?: string;
|
|
31
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import type { SuggestionProps } from '@tiptap/suggestion';
|
|
2
|
-
/**
|
|
3
|
-
* TipTap node types.
|
|
4
|
-
* @public
|
|
5
|
-
*/
|
|
6
|
-
export declare const TipTapNodeName: {
|
|
7
|
-
readonly bulletList: "bulletList";
|
|
8
|
-
readonly numberedList: "orderedList";
|
|
9
|
-
};
|
|
10
|
-
export type TipTapNodeName = (typeof TipTapNodeName)[keyof typeof TipTapNodeName];
|
|
11
|
-
export interface MentionExtensionConfig {
|
|
12
|
-
name: string;
|
|
13
|
-
key: string;
|
|
14
|
-
character: string;
|
|
15
|
-
viewElement: string;
|
|
16
|
-
}
|
|
17
|
-
export interface FormatButtonsState {
|
|
18
|
-
bold: boolean;
|
|
19
|
-
italics: boolean;
|
|
20
|
-
}
|
|
21
|
-
export interface MentionDetail {
|
|
22
|
-
href: string;
|
|
23
|
-
displayName: string;
|
|
24
|
-
}
|
|
25
|
-
export declare const mentionPluginPrefix = "mention-plugin-";
|
|
26
|
-
export type ActiveMentionCommandEmitter = (command?: SuggestionProps['command']) => void;
|
|
27
|
-
export type ActiveMentionCharacterEmitter = (character: string) => void;
|
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
import { ListboxElement as FoundationListbox, ListboxOption } from '@microsoft/fast-foundation';
|
|
2
|
-
import type { AnchoredRegion } from '../../anchored-region';
|
|
3
|
-
import type { MentionListboxShowOptions } from './types';
|
|
4
|
-
declare global {
|
|
5
|
-
interface HTMLElementTagNameMap {
|
|
6
|
-
'nimble-rich-text-mention-listbox': RichTextMentionListbox;
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* A rich text mention listbox which acts as a popup for "@mention" support in editor
|
|
11
|
-
*/
|
|
12
|
-
export declare class RichTextMentionListbox extends FoundationListbox {
|
|
13
|
-
/**
|
|
14
|
-
* @internal
|
|
15
|
-
*/
|
|
16
|
-
open?: boolean;
|
|
17
|
-
/**
|
|
18
|
-
* @internal
|
|
19
|
-
*/
|
|
20
|
-
region?: AnchoredRegion;
|
|
21
|
-
/**
|
|
22
|
-
* @internal
|
|
23
|
-
*/
|
|
24
|
-
filter: string;
|
|
25
|
-
/**
|
|
26
|
-
* The collection of currently filtered options.
|
|
27
|
-
* The approach is defined based on the `Combobox.filteredOptions` implementation.
|
|
28
|
-
*
|
|
29
|
-
* @internal
|
|
30
|
-
*/
|
|
31
|
-
filteredOptions: ListboxOption[];
|
|
32
|
-
private anchorElement?;
|
|
33
|
-
private regionNotifier?;
|
|
34
|
-
private readonly anchorElementIntersectionObserver;
|
|
35
|
-
/**
|
|
36
|
-
* @public
|
|
37
|
-
*/
|
|
38
|
-
close(): void;
|
|
39
|
-
/**
|
|
40
|
-
* The list of options.
|
|
41
|
-
*
|
|
42
|
-
* @public
|
|
43
|
-
* @remarks
|
|
44
|
-
* Overrides `Listbox.options`.
|
|
45
|
-
*/
|
|
46
|
-
get options(): ListboxOption[];
|
|
47
|
-
set options(value: ListboxOption[]);
|
|
48
|
-
/**
|
|
49
|
-
* Triggers when the mention plugin is activated upon pressing the `key`
|
|
50
|
-
*
|
|
51
|
-
* @public
|
|
52
|
-
*/
|
|
53
|
-
show(options: MentionListboxShowOptions): void;
|
|
54
|
-
/**
|
|
55
|
-
* Handle keydown actions for listbox navigation and selection.
|
|
56
|
-
*
|
|
57
|
-
* @param e - the keyboard event
|
|
58
|
-
* @public
|
|
59
|
-
*/
|
|
60
|
-
keydownHandler(event: KeyboardEvent): boolean;
|
|
61
|
-
/**
|
|
62
|
-
* Filter available options by filter value.
|
|
63
|
-
* The method is defined based on the `Combobox.filterOptions` and `Combobox.inputHandler` implementation.
|
|
64
|
-
*
|
|
65
|
-
* @internal
|
|
66
|
-
*/
|
|
67
|
-
filterOptions(): void;
|
|
68
|
-
/**
|
|
69
|
-
* Synchronize the form-associated proxy and update the value property of the element.
|
|
70
|
-
*
|
|
71
|
-
* @param prev - the previous collection of slotted option elements
|
|
72
|
-
* @param next - the next collection of slotted option elements
|
|
73
|
-
*
|
|
74
|
-
* @internal
|
|
75
|
-
*/
|
|
76
|
-
slottedOptionsChanged(prev: Element[] | undefined, next: Element[]): void;
|
|
77
|
-
/**
|
|
78
|
-
* Triggers the `suggestionProps` command to notify the tiptap editor to select the option.
|
|
79
|
-
* The method is defined based on the `Listbox.clickHandler` implementation.
|
|
80
|
-
*
|
|
81
|
-
* @internal
|
|
82
|
-
*/
|
|
83
|
-
clickHandler(e: MouseEvent): boolean;
|
|
84
|
-
/**
|
|
85
|
-
* Observes the anchor element using intersection observer.
|
|
86
|
-
* Once the anchor element intersects, the anchor region will be closed.
|
|
87
|
-
*
|
|
88
|
-
* @internal
|
|
89
|
-
*/
|
|
90
|
-
anchorElementChanged(prev: HTMLElement, next: HTMLElement): void;
|
|
91
|
-
/**
|
|
92
|
-
* Observes the anchor region.
|
|
93
|
-
*
|
|
94
|
-
* @internal
|
|
95
|
-
*/
|
|
96
|
-
regionChanged(): void;
|
|
97
|
-
/**
|
|
98
|
-
* Handles the events of the anchored region.
|
|
99
|
-
* Repositions the listbox scroll bar when the `initialLayoutComplete` event is triggered.
|
|
100
|
-
* Other events will be passed to the base class.
|
|
101
|
-
*
|
|
102
|
-
* @internal
|
|
103
|
-
*/
|
|
104
|
-
handleChange(source: unknown, args: string): void;
|
|
105
|
-
/**
|
|
106
|
-
* Focus the control and scroll the first selected option into view.
|
|
107
|
-
*
|
|
108
|
-
* @internal
|
|
109
|
-
* @remarks
|
|
110
|
-
* Overrides: `Listbox.focusAndScrollOptionIntoView`
|
|
111
|
-
*/
|
|
112
|
-
protected focusAndScrollOptionIntoView(): void;
|
|
113
|
-
private emitMentionSelected;
|
|
114
|
-
private setOpen;
|
|
115
|
-
}
|
|
116
|
-
export declare const richTextMentionListboxTag = "nimble-rich-text-mention-listbox";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const styles: import("@microsoft/fast-element").ElementStyles;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { RichTextMention } from '../../rich-text-mention/base';
|
|
2
|
-
import { MarkdownParserMentionConfiguration } from './markdown-parser-mention-configuration';
|
|
3
|
-
/**
|
|
4
|
-
* Base class for Configuration, contains mention configuration required for RichTextMarkdownParser
|
|
5
|
-
*/
|
|
6
|
-
export declare class Configuration {
|
|
7
|
-
parserMentionConfig: MarkdownParserMentionConfiguration[];
|
|
8
|
-
protected isValid: boolean;
|
|
9
|
-
constructor(mentionElements: RichTextMention[]);
|
|
10
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { RichTextMention } from '../../rich-text-mention/base';
|
|
2
|
-
import { Configuration } from './configuration';
|
|
3
|
-
import { MentionExtensionConfiguration } from './mention-extension-configuration';
|
|
4
|
-
/**
|
|
5
|
-
* EditorConfiguration which will hold mentionExtensionConfig for configuring editor's mention extension and RichTextMarkdownSerializer
|
|
6
|
-
*/
|
|
7
|
-
export declare class EditorConfiguration extends Configuration {
|
|
8
|
-
mentionExtensionConfig: MentionExtensionConfiguration[];
|
|
9
|
-
constructor(mentionElements: RichTextMention[]);
|
|
10
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { MentionInternals } from '../../rich-text-mention/base/models/mention-internals';
|
|
2
|
-
/**
|
|
3
|
-
* A configuration object for a Markdown parser, to be used by the viewer and editor components.
|
|
4
|
-
* This object maintains the necessary internal values for handling mentions within the Markdown parser.
|
|
5
|
-
*/
|
|
6
|
-
export declare class MarkdownParserMentionConfiguration {
|
|
7
|
-
readonly viewElement: string;
|
|
8
|
-
private readonly regexPattern;
|
|
9
|
-
private readonly mappingConfigs?;
|
|
10
|
-
constructor(mentionInternals: MentionInternals);
|
|
11
|
-
isValidMentionHref(mentionHref: string): boolean;
|
|
12
|
-
getDisplayName(mentionHref: string): string | undefined;
|
|
13
|
-
private extractMentionId;
|
|
14
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import type { MarkdownParserMentionConfiguration } from './markdown-parser-mention-configuration';
|
|
2
|
-
export interface ParseResult {
|
|
3
|
-
fragment: HTMLElement | DocumentFragment;
|
|
4
|
-
mentionedHrefs: string[];
|
|
5
|
-
}
|
|
6
|
-
/**
|
|
7
|
-
* Provides markdown parser for rich text components
|
|
8
|
-
*/
|
|
9
|
-
export declare class RichTextMarkdownParser {
|
|
10
|
-
private static readonly mentionedHrefs;
|
|
11
|
-
private static readonly updatedSchema;
|
|
12
|
-
private static readonly markdownParser;
|
|
13
|
-
private static readonly domSerializer;
|
|
14
|
-
/**
|
|
15
|
-
* The markdown parser is static (shared across all rich text components) because it is expensive to create.
|
|
16
|
-
* To configure parse calls with the mention configurations which can be unique per component instance
|
|
17
|
-
* we store static configuration in this member and access it from Prosemirror callbacks.
|
|
18
|
-
*/
|
|
19
|
-
private static mentionConfigs?;
|
|
20
|
-
/**
|
|
21
|
-
* This function takes a markdown string, parses it using the ProseMirror MarkdownParser, serializes the parsed content into a
|
|
22
|
-
* DOM structure using a DOMSerializer, and returns the serialized result.
|
|
23
|
-
* If the markdown parser returns null, it will clear the viewer component by creating an empty document fragment.
|
|
24
|
-
*/
|
|
25
|
-
static parseMarkdownToDOM(value: string, markdownParserMentionConfig?: MarkdownParserMentionConfiguration[]): ParseResult;
|
|
26
|
-
private static initializeMarkdownParser;
|
|
27
|
-
private static getCustomSchemaConfiguration;
|
|
28
|
-
private static setup;
|
|
29
|
-
private static cleanup;
|
|
30
|
-
private static startsWithHttpOrHttps;
|
|
31
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { Node } from 'prosemirror-model';
|
|
2
|
-
/**
|
|
3
|
-
* Provides markdown serializer for rich text components
|
|
4
|
-
*/
|
|
5
|
-
export declare class RichTextMarkdownSerializer {
|
|
6
|
-
private readonly markdownSerializer;
|
|
7
|
-
constructor(mentionList: string[]);
|
|
8
|
-
serializeDOMToMarkdown(doc: Node): string;
|
|
9
|
-
private initializeMarkdownSerializerForTipTap;
|
|
10
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import type { ViewTemplate } from '@microsoft/fast-element';
|
|
2
|
-
import type { MentionInternals } from '../../rich-text-mention/base/models/mention-internals';
|
|
3
|
-
import type { MappingConfigs, MentionUpdateEmitter } from '../../rich-text-mention/base/types';
|
|
4
|
-
/**
|
|
5
|
-
* A configuration object for a Mention extension, to be used by the editor for loading mention plugins in tiptap.
|
|
6
|
-
* This object maintains the necessary internal values for loading mention extension.
|
|
7
|
-
*/
|
|
8
|
-
export declare class MentionExtensionConfiguration {
|
|
9
|
-
private static instance;
|
|
10
|
-
readonly iconTemplate: ViewTemplate;
|
|
11
|
-
readonly viewElement: string;
|
|
12
|
-
readonly character: string;
|
|
13
|
-
readonly name: string;
|
|
14
|
-
readonly key: string;
|
|
15
|
-
readonly mappingConfigs?: MappingConfigs;
|
|
16
|
-
readonly buttonLabel: string;
|
|
17
|
-
readonly mentionUpdateEmitter: MentionUpdateEmitter;
|
|
18
|
-
constructor(mentionInternals: MentionInternals);
|
|
19
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { UpdateTracker } from '../../utilities/models/update-tracker';
|
|
2
|
-
import type { RichText } from '../base';
|
|
3
|
-
declare const trackedItems: readonly ["pattern", "mappingConfigs", "buttonLabel"];
|
|
4
|
-
/**
|
|
5
|
-
* Helper class to track what updates are needed to the rich text components based on configuration
|
|
6
|
-
* changes.
|
|
7
|
-
*/
|
|
8
|
-
export declare class RichTextUpdateTracker extends UpdateTracker<typeof trackedItems> {
|
|
9
|
-
private readonly richText;
|
|
10
|
-
private updateQueued;
|
|
11
|
-
constructor(richText: RichText);
|
|
12
|
-
get updatePattern(): boolean;
|
|
13
|
-
get updateMappingConfigs(): boolean;
|
|
14
|
-
get updateButtonLabel(): boolean;
|
|
15
|
-
trackMentionInternalsPropertyChanged(changedMentionInternalsProperty: string): void;
|
|
16
|
-
trackMentionElementsInstancesChanged(): void;
|
|
17
|
-
protected queueUpdate(): void;
|
|
18
|
-
}
|
|
19
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { RichTextMention } from '../../rich-text-mention/base';
|
|
2
|
-
import type { RichTextValidity } from '../base/types';
|
|
3
|
-
/**
|
|
4
|
-
* Helper class for the nimble rich text components to validate that the configuration
|
|
5
|
-
* is valid and report which aspects of the configuration are valid or invalid.
|
|
6
|
-
*/
|
|
7
|
-
export declare class RichTextValidator {
|
|
8
|
-
private invalidMentionConfiguration;
|
|
9
|
-
private duplicateMentionConfiguration;
|
|
10
|
-
getValidity(): RichTextValidity;
|
|
11
|
-
isValid(): boolean;
|
|
12
|
-
validate(mentions: RichTextMention[]): void;
|
|
13
|
-
private validateMentionConfigurations;
|
|
14
|
-
private validateDuplicateMentionConfigurations;
|
|
15
|
-
}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export declare const getTagsFromElement: (doc: DocumentFragment | HTMLElement) => string[];
|
|
2
|
-
export declare const getLeafContentsFromElement: (doc: DocumentFragment | HTMLElement) => string[];
|
|
3
|
-
export declare const getLastChildElementAttribute: (attribute: string, doc: DocumentFragment | HTMLElement) => string;
|
|
4
|
-
export declare const lastChildElementHasAttribute: (attribute: string, doc: DocumentFragment | HTMLElement) => boolean;
|
|
5
|
-
export declare function getLastChildElement(doc: DocumentFragment | HTMLElement): Element | null | undefined;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { RichText } from '../base';
|
|
2
|
-
declare global {
|
|
3
|
-
interface HTMLElementTagNameMap {
|
|
4
|
-
'nimble-rich-text-viewer': RichTextViewer;
|
|
5
|
-
}
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* A nimble styled rich text viewer
|
|
9
|
-
*/
|
|
10
|
-
export declare class RichTextViewer extends RichText {
|
|
11
|
-
/**
|
|
12
|
-
*
|
|
13
|
-
* @public
|
|
14
|
-
* Markdown string to render its corresponding rich text content in the component.
|
|
15
|
-
*/
|
|
16
|
-
markdown: string;
|
|
17
|
-
/**
|
|
18
|
-
* @internal
|
|
19
|
-
*/
|
|
20
|
-
viewer: HTMLDivElement;
|
|
21
|
-
private mentionedHrefs;
|
|
22
|
-
/**
|
|
23
|
-
* @internal
|
|
24
|
-
*/
|
|
25
|
-
connectedCallback(): void;
|
|
26
|
-
/**
|
|
27
|
-
* @internal
|
|
28
|
-
*/
|
|
29
|
-
markdownChanged(): void;
|
|
30
|
-
/**
|
|
31
|
-
* @internal
|
|
32
|
-
*/
|
|
33
|
-
configurationChanged(): void;
|
|
34
|
-
getMentionedHrefs(): string[];
|
|
35
|
-
private updateView;
|
|
36
|
-
}
|
|
37
|
-
export declare const richTextViewerTag = "nimble-rich-text-viewer";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const styles: import("@microsoft/fast-element").ElementStyles;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import type { RichTextViewer } from '..';
|
|
2
|
-
/**
|
|
3
|
-
* Page object for the `nimble-rich-text-viewer` component.
|
|
4
|
-
*/
|
|
5
|
-
export declare class RichTextViewerPageObject {
|
|
6
|
-
private readonly richTextViewerElement;
|
|
7
|
-
constructor(richTextViewerElement: RichTextViewer);
|
|
8
|
-
getRenderedMarkdownLastChildContents(): string;
|
|
9
|
-
getRenderedMarkdownLastChildAttribute(attribute: string): string;
|
|
10
|
-
/**
|
|
11
|
-
* Retrieves tag names for the rendered markdown content in document order
|
|
12
|
-
* @returns An array of tag names in document order
|
|
13
|
-
*/
|
|
14
|
-
getRenderedMarkdownTagNames(): string[];
|
|
15
|
-
/**
|
|
16
|
-
* @returns An array of tag names with the closing tags (eg: '/P') in a document order
|
|
17
|
-
*/
|
|
18
|
-
getRenderedMarkdownTagNamesWithClosingTags(): string[];
|
|
19
|
-
/**
|
|
20
|
-
* Retrieves text contents for the rendered markdown content in document order
|
|
21
|
-
* @returns An array of text contents of last elements in a tree
|
|
22
|
-
*/
|
|
23
|
-
getRenderedMarkdownLeafContents(): string[];
|
|
24
|
-
getRenderedMarkdownAttributeValues(attribute: string): string[];
|
|
25
|
-
private getMarkdownRenderedElement;
|
|
26
|
-
private getLastChildMarkdownRenderedElement;
|
|
27
|
-
}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { Notifier, Subscriber } from '@microsoft/fast-element';
|
|
2
|
-
import { FoundationElement } from '@microsoft/fast-foundation';
|
|
3
|
-
import type { MappingConfig } from './models/mapping-config';
|
|
4
|
-
import type { RichTextMentionValidator, RichTextMentionValidity } from './models/mention-validator';
|
|
5
|
-
import { MentionInternals, MentionInternalsOptions } from './models/mention-internals';
|
|
6
|
-
import { Mapping } from '../../mapping/base';
|
|
7
|
-
/**
|
|
8
|
-
* The base class for Mention configuration
|
|
9
|
-
*/
|
|
10
|
-
export declare abstract class RichTextMention<TValidator extends RichTextMentionValidator = RichTextMentionValidator> extends FoundationElement implements Subscriber {
|
|
11
|
-
/**
|
|
12
|
-
* @internal
|
|
13
|
-
*/
|
|
14
|
-
readonly mentionInternals: MentionInternals;
|
|
15
|
-
/**
|
|
16
|
-
* A regex used to extract user ID from user key (url) while parsing and serializing a markdown.
|
|
17
|
-
*/
|
|
18
|
-
pattern?: string;
|
|
19
|
-
/**
|
|
20
|
-
* @public
|
|
21
|
-
*/
|
|
22
|
-
buttonLabel?: string;
|
|
23
|
-
/** @internal */
|
|
24
|
-
mappingNotifiers: Notifier[];
|
|
25
|
-
/** @internal */
|
|
26
|
-
mappingElements: Mapping<unknown>[];
|
|
27
|
-
/**
|
|
28
|
-
* @public
|
|
29
|
-
*/
|
|
30
|
-
checkValidity(): boolean;
|
|
31
|
-
/**
|
|
32
|
-
* @public
|
|
33
|
-
*/
|
|
34
|
-
get validity(): RichTextMentionValidity;
|
|
35
|
-
/**
|
|
36
|
-
* @internal
|
|
37
|
-
*/
|
|
38
|
-
emitMentionUpdate(filter: string): void;
|
|
39
|
-
/**
|
|
40
|
-
* @internal
|
|
41
|
-
*/
|
|
42
|
-
handleChange(source: unknown, args: unknown): void;
|
|
43
|
-
protected abstract getObservedMappingProperty(): string[];
|
|
44
|
-
protected abstract getMentionInternalsOptions(): MentionInternalsOptions<TValidator>;
|
|
45
|
-
protected abstract createMappingConfig(mapping: Mapping<unknown>): MappingConfig;
|
|
46
|
-
private getMappingConfigs;
|
|
47
|
-
private updateMappingConfigs;
|
|
48
|
-
private mappingElementsChanged;
|
|
49
|
-
private patternChanged;
|
|
50
|
-
private buttonLabelChanged;
|
|
51
|
-
private removeMappingElementObservers;
|
|
52
|
-
private observeMappingElements;
|
|
53
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Common state shared across Mapping Config
|
|
3
|
-
*/
|
|
4
|
-
export declare abstract class MappingConfig {
|
|
5
|
-
readonly mentionHref: string | undefined;
|
|
6
|
-
readonly displayName: string | undefined;
|
|
7
|
-
constructor(mentionHref: string | undefined, displayName: string | undefined);
|
|
8
|
-
}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { ViewTemplate } from '@microsoft/fast-element';
|
|
2
|
-
import type { MappingConfigs, MentionUpdateEmitter } from '../types';
|
|
3
|
-
import type { RichTextMentionValidator } from './mention-validator';
|
|
4
|
-
export interface MentionInternalsOptions<TValidator extends RichTextMentionValidator = RichTextMentionValidator> {
|
|
5
|
-
readonly icon: string;
|
|
6
|
-
readonly character: string;
|
|
7
|
-
readonly viewElement: string;
|
|
8
|
-
readonly validator: TValidator;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* Internal mention state
|
|
12
|
-
*/
|
|
13
|
-
export declare class MentionInternals<TValidator extends RichTextMentionValidator = RichTextMentionValidator> {
|
|
14
|
-
/**
|
|
15
|
-
* Mappings configured for the mention node
|
|
16
|
-
*/
|
|
17
|
-
mappingConfigs?: MappingConfigs;
|
|
18
|
-
/**
|
|
19
|
-
* Regex used to extract user ID from user key (url)
|
|
20
|
-
*/
|
|
21
|
-
pattern?: string;
|
|
22
|
-
/**
|
|
23
|
-
* Label to use as accessible name and title of mention button
|
|
24
|
-
*/
|
|
25
|
-
buttonLabel?: string;
|
|
26
|
-
/**
|
|
27
|
-
* Template of the Icon to display on RichTextEditor Toolbar
|
|
28
|
-
*/
|
|
29
|
-
readonly iconTemplate: ViewTemplate;
|
|
30
|
-
/**
|
|
31
|
-
* Character to show respective mention list
|
|
32
|
-
*/
|
|
33
|
-
readonly character: string;
|
|
34
|
-
/**
|
|
35
|
-
* Mention view element to render in rich text components
|
|
36
|
-
*/
|
|
37
|
-
readonly viewElement: string;
|
|
38
|
-
/**
|
|
39
|
-
* The validator for the mention element.
|
|
40
|
-
*/
|
|
41
|
-
readonly validator: TValidator;
|
|
42
|
-
/**
|
|
43
|
-
* Function to invoke to emit a mention-update event
|
|
44
|
-
*/
|
|
45
|
-
readonly mentionUpdateEmitter: MentionUpdateEmitter;
|
|
46
|
-
constructor(options: MentionInternalsOptions<TValidator>, mentionUpdateEmitter: MentionUpdateEmitter);
|
|
47
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import type { Mapping } from '../../../mapping/base';
|
|
2
|
-
import { Validator, ValidityObject } from '../../../utilities/models/validator';
|
|
3
|
-
export interface RichTextMentionValidity extends ValidityObject {
|
|
4
|
-
}
|
|
5
|
-
type FlagNames<T> = T extends readonly (infer U)[] ? U : never;
|
|
6
|
-
export declare const baseValidityFlagNames: readonly ["duplicateMappingMentionHref", "missingMentionHrefValue", "mentionHrefNotValidUrl", "mentionHrefDoesNotMatchPattern", "missingPatternAttribute", "unsupportedPatternValue"];
|
|
7
|
-
/**
|
|
8
|
-
* Validator for RichTextMention
|
|
9
|
-
*/
|
|
10
|
-
export declare class RichTextMentionValidator<ValidityFlagNames extends readonly string[] = typeof baseValidityFlagNames> extends Validator<typeof baseValidityFlagNames | ValidityFlagNames> {
|
|
11
|
-
constructor(configValidityKeys: ValidityFlagNames);
|
|
12
|
-
validate(mappings: Mapping<unknown>[], pattern: string | undefined): void;
|
|
13
|
-
/**
|
|
14
|
-
* @returns an object containing flags for various ways the configuation can be invalid
|
|
15
|
-
*/
|
|
16
|
-
getValidity(): RichTextMentionValidity;
|
|
17
|
-
/**
|
|
18
|
-
* Sets a particular validity condition flag's value, e.g. "hasInvalidFooValue" = true
|
|
19
|
-
*/
|
|
20
|
-
protected setConditionValue(name: FlagNames<typeof baseValidityFlagNames | ValidityFlagNames>, isInvalid: boolean): void;
|
|
21
|
-
private validateMissingPattern;
|
|
22
|
-
private validatePattern;
|
|
23
|
-
private validateUniqueMentionHref;
|
|
24
|
-
private validateNoMissingMentionHref;
|
|
25
|
-
private validateHrefForUrl;
|
|
26
|
-
private validateHrefForPattern;
|
|
27
|
-
private isInvalidUrl;
|
|
28
|
-
private isInvalidRegex;
|
|
29
|
-
}
|
|
30
|
-
export {};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import type { RichTextMention } from '.';
|
|
2
|
-
export declare const template: import("@microsoft/fast-element").ViewTemplate<RichTextMention<import("./models/mention-validator").RichTextMentionValidator<readonly ["duplicateMappingMentionHref", "missingMentionHrefValue", "mentionHrefNotValidUrl", "mentionHrefDoesNotMatchPattern", "missingPatternAttribute", "unsupportedPatternValue"]>>, any>;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { MappingConfig } from './models/mapping-config';
|
|
2
|
-
/**
|
|
3
|
-
* The type of the detail associated with the `mention-update`
|
|
4
|
-
* event on the banner.
|
|
5
|
-
*/
|
|
6
|
-
export interface MentionUpdateEventDetail {
|
|
7
|
-
filter: string;
|
|
8
|
-
}
|
|
9
|
-
export type MappingConfigs = ReadonlyMap<string, MappingConfig>;
|
|
10
|
-
export type MentionUpdateEmitter = (filter: string) => void;
|