@ni/nimble-components 20.15.0 → 20.16.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 +12525 -11724
- package/dist/all-components-bundle.js.map +1 -1
- package/dist/all-components-bundle.min.js +2993 -2857
- package/dist/all-components-bundle.min.js.map +1 -1
- package/dist/esm/label-provider/table/index.d.ts +6 -0
- package/dist/esm/label-provider/table/index.js +9 -1
- package/dist/esm/label-provider/table/index.js.map +1 -1
- package/dist/esm/label-provider/table/label-token-defaults.js +2 -0
- package/dist/esm/label-provider/table/label-token-defaults.js.map +1 -1
- package/dist/esm/label-provider/table/label-tokens.d.ts +2 -0
- package/dist/esm/label-provider/table/label-tokens.js +8 -0
- package/dist/esm/label-provider/table/label-tokens.js.map +1 -1
- package/dist/esm/patterns/expand-collapse/styles.d.ts +1 -0
- package/dist/esm/patterns/expand-collapse/styles.js +27 -0
- package/dist/esm/patterns/expand-collapse/styles.js.map +1 -0
- package/dist/esm/rich-text/base/index.d.ts +36 -0
- package/dist/esm/rich-text/base/index.js +73 -0
- package/dist/esm/rich-text/base/index.js.map +1 -0
- package/dist/esm/rich-text/editor/index.d.ts +25 -27
- package/dist/esm/rich-text/editor/index.js +95 -173
- package/dist/esm/rich-text/editor/index.js.map +1 -1
- package/dist/esm/rich-text/editor/models/create-tiptap-editor.d.ts +3 -0
- package/dist/esm/rich-text/editor/models/create-tiptap-editor.js +228 -0
- package/dist/esm/rich-text/editor/models/create-tiptap-editor.js.map +1 -0
- package/dist/esm/rich-text/editor/styles.js +9 -1
- package/dist/esm/rich-text/editor/styles.js.map +1 -1
- package/dist/esm/rich-text/editor/template.js +2 -2
- package/dist/esm/rich-text/editor/template.js.map +1 -1
- package/dist/esm/rich-text/editor/testing/rich-text-editor.pageobject.d.ts +4 -0
- package/dist/esm/rich-text/editor/testing/rich-text-editor.pageobject.js +24 -4
- package/dist/esm/rich-text/editor/testing/rich-text-editor.pageobject.js.map +1 -1
- package/dist/esm/rich-text/editor/testing/types.d.ts +15 -0
- package/dist/esm/rich-text/editor/testing/types.js.map +1 -1
- package/dist/esm/rich-text/editor/types.d.ts +1 -0
- package/dist/esm/rich-text/editor/types.js +1 -0
- package/dist/esm/rich-text/editor/types.js.map +1 -1
- package/dist/esm/rich-text/models/configuration.d.ts +10 -0
- package/dist/esm/rich-text/models/configuration.js +15 -0
- package/dist/esm/rich-text/models/configuration.js.map +1 -0
- package/dist/esm/rich-text/models/editor-configuration.d.ts +10 -0
- package/dist/esm/rich-text/models/editor-configuration.js +14 -0
- package/dist/esm/rich-text/models/editor-configuration.js.map +1 -0
- package/dist/esm/rich-text/models/markdown-parser-mention-configuration.d.ts +2 -2
- package/dist/esm/rich-text/models/markdown-parser-mention-configuration.js +5 -1
- package/dist/esm/rich-text/models/markdown-parser-mention-configuration.js.map +1 -1
- package/dist/esm/rich-text/models/markdown-parser.d.ts +8 -1
- package/dist/esm/rich-text/models/markdown-parser.js +20 -4
- package/dist/esm/rich-text/models/markdown-parser.js.map +1 -1
- package/dist/esm/rich-text/models/markdown-serializer.d.ts +4 -3
- package/dist/esm/rich-text/models/markdown-serializer.js +16 -5
- package/dist/esm/rich-text/models/markdown-serializer.js.map +1 -1
- package/dist/esm/rich-text/models/mention-extension-configuration.d.ts +15 -0
- package/dist/esm/rich-text/models/mention-extension-configuration.js +18 -0
- package/dist/esm/rich-text/models/mention-extension-configuration.js.map +1 -0
- package/dist/esm/rich-text/viewer/index.d.ts +5 -23
- package/dist/esm/rich-text/viewer/index.js +13 -61
- package/dist/esm/rich-text/viewer/index.js.map +1 -1
- package/dist/esm/rich-text/viewer/styles.js +2 -1
- package/dist/esm/rich-text/viewer/styles.js.map +1 -1
- package/dist/esm/rich-text-mention/base/index.d.ts +17 -16
- package/dist/esm/rich-text-mention/base/index.js +34 -20
- package/dist/esm/rich-text-mention/base/index.js.map +1 -1
- package/dist/esm/rich-text-mention/base/models/mention-internals.d.ts +9 -4
- package/dist/esm/rich-text-mention/base/models/mention-internals.js +6 -2
- package/dist/esm/rich-text-mention/base/models/mention-internals.js.map +1 -1
- package/dist/esm/rich-text-mention/base/models/mention-validator.d.ts +3 -5
- package/dist/esm/rich-text-mention/base/models/mention-validator.js +6 -10
- package/dist/esm/rich-text-mention/base/models/mention-validator.js.map +1 -1
- package/dist/esm/rich-text-mention/base/template.d.ts +1 -1
- package/dist/esm/rich-text-mention/base/template.js +1 -1
- package/dist/esm/rich-text-mention/base/template.js.map +1 -1
- package/dist/esm/rich-text-mention/base/types.d.ts +10 -0
- package/dist/esm/rich-text-mention/base/types.js +2 -0
- package/dist/esm/rich-text-mention/base/types.js.map +1 -0
- package/dist/esm/rich-text-mention/users/index.d.ts +2 -3
- package/dist/esm/rich-text-mention/users/index.js +1 -6
- package/dist/esm/rich-text-mention/users/index.js.map +1 -1
- package/dist/esm/rich-text-mention/{base → users}/models/mapping-user-config.d.ts +1 -1
- package/dist/esm/rich-text-mention/{base → users}/models/mapping-user-config.js +1 -1
- package/dist/esm/rich-text-mention/users/models/mapping-user-config.js.map +1 -0
- package/dist/esm/rich-text-mention/users/models/rich-text-mention-users-validator.d.ts +4 -2
- package/dist/esm/rich-text-mention/users/models/rich-text-mention-users-validator.js +11 -2
- package/dist/esm/rich-text-mention/users/models/rich-text-mention-users-validator.js.map +1 -1
- package/dist/esm/rich-text-mention/users/view/styles.js +8 -3
- package/dist/esm/rich-text-mention/users/view/styles.js.map +1 -1
- package/dist/esm/table/components/cell/styles.js +2 -2
- package/dist/esm/table/components/cell/styles.js.map +1 -1
- package/dist/esm/table/components/group-row/styles.js +3 -22
- package/dist/esm/table/components/group-row/styles.js.map +1 -1
- package/dist/esm/table/components/group-row/template.js +2 -1
- package/dist/esm/table/components/group-row/template.js.map +1 -1
- package/dist/esm/table/components/row/index.d.ts +12 -0
- package/dist/esm/table/components/row/index.js +37 -4
- package/dist/esm/table/components/row/index.js.map +1 -1
- package/dist/esm/table/components/row/styles.js +20 -1
- package/dist/esm/table/components/row/styles.js.map +1 -1
- package/dist/esm/table/components/row/template.js +28 -7
- package/dist/esm/table/components/row/template.js.map +1 -1
- package/dist/esm/table/index.js +4 -3
- package/dist/esm/table/index.js.map +1 -1
- package/dist/esm/table/types.d.ts +8 -0
- package/package.json +3 -1
- package/dist/esm/rich-text-mention/base/models/mapping-user-config.js.map +0 -1
|
@@ -7,6 +7,8 @@ declare global {
|
|
|
7
7
|
declare const supportedLabels: {
|
|
8
8
|
readonly groupCollapse: import("@microsoft/fast-foundation").DesignToken<string>;
|
|
9
9
|
readonly groupExpand: import("@microsoft/fast-foundation").DesignToken<string>;
|
|
10
|
+
readonly rowCollapse: import("@microsoft/fast-foundation").DesignToken<string>;
|
|
11
|
+
readonly rowExpand: import("@microsoft/fast-foundation").DesignToken<string>;
|
|
10
12
|
readonly groupsCollapseAll: import("@microsoft/fast-foundation").DesignToken<string>;
|
|
11
13
|
readonly cellActionMenu: import("@microsoft/fast-foundation").DesignToken<string>;
|
|
12
14
|
readonly columnHeaderGrouped: import("@microsoft/fast-foundation").DesignToken<string>;
|
|
@@ -23,6 +25,8 @@ declare const supportedLabels: {
|
|
|
23
25
|
export declare class LabelProviderTable extends LabelProviderBase<typeof supportedLabels> implements DesignTokensFor<typeof supportedLabels> {
|
|
24
26
|
groupCollapse: string | undefined;
|
|
25
27
|
groupExpand: string | undefined;
|
|
28
|
+
rowCollapse: string | undefined;
|
|
29
|
+
rowExpand: string | undefined;
|
|
26
30
|
groupsCollapseAll: string | undefined;
|
|
27
31
|
cellActionMenu: string | undefined;
|
|
28
32
|
columnHeaderGrouped: string | undefined;
|
|
@@ -35,6 +39,8 @@ export declare class LabelProviderTable extends LabelProviderBase<typeof support
|
|
|
35
39
|
protected readonly supportedLabels: {
|
|
36
40
|
readonly groupCollapse: import("@microsoft/fast-foundation").DesignToken<string>;
|
|
37
41
|
readonly groupExpand: import("@microsoft/fast-foundation").DesignToken<string>;
|
|
42
|
+
readonly rowCollapse: import("@microsoft/fast-foundation").DesignToken<string>;
|
|
43
|
+
readonly rowExpand: import("@microsoft/fast-foundation").DesignToken<string>;
|
|
38
44
|
readonly groupsCollapseAll: import("@microsoft/fast-foundation").DesignToken<string>;
|
|
39
45
|
readonly cellActionMenu: import("@microsoft/fast-foundation").DesignToken<string>;
|
|
40
46
|
readonly columnHeaderGrouped: import("@microsoft/fast-foundation").DesignToken<string>;
|
|
@@ -2,10 +2,12 @@ import { __decorate } from "tslib";
|
|
|
2
2
|
import { attr } from '@microsoft/fast-element';
|
|
3
3
|
import { DesignSystem } from '@microsoft/fast-foundation';
|
|
4
4
|
import { LabelProviderBase } from '../base';
|
|
5
|
-
import { tableCellActionMenuLabel, tableColumnHeaderGroupedLabel, tableColumnHeaderSortedAscendingLabel, tableColumnHeaderSortedDescendingLabel, tableGroupCollapseLabel, tableGroupExpandLabel, tableGroupSelectAllLabel, tableGroupsCollapseAllLabel, tableRowOperationColumnLabel, tableRowSelectLabel, tableSelectAllLabel } from './label-tokens';
|
|
5
|
+
import { tableCellActionMenuLabel, tableColumnHeaderGroupedLabel, tableColumnHeaderSortedAscendingLabel, tableColumnHeaderSortedDescendingLabel, tableGroupCollapseLabel, tableGroupExpandLabel, tableGroupSelectAllLabel, tableGroupsCollapseAllLabel, tableRowCollapseLabel, tableRowExpandLabel, tableRowOperationColumnLabel, tableRowSelectLabel, tableSelectAllLabel } from './label-tokens';
|
|
6
6
|
const supportedLabels = {
|
|
7
7
|
groupCollapse: tableGroupCollapseLabel,
|
|
8
8
|
groupExpand: tableGroupExpandLabel,
|
|
9
|
+
rowCollapse: tableRowCollapseLabel,
|
|
10
|
+
rowExpand: tableRowExpandLabel,
|
|
9
11
|
groupsCollapseAll: tableGroupsCollapseAllLabel,
|
|
10
12
|
cellActionMenu: tableCellActionMenuLabel,
|
|
11
13
|
columnHeaderGrouped: tableColumnHeaderGroupedLabel,
|
|
@@ -31,6 +33,12 @@ __decorate([
|
|
|
31
33
|
__decorate([
|
|
32
34
|
attr({ attribute: 'group-expand' })
|
|
33
35
|
], LabelProviderTable.prototype, "groupExpand", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
attr({ attribute: 'row-collapse' })
|
|
38
|
+
], LabelProviderTable.prototype, "rowCollapse", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
attr({ attribute: 'row-expand' })
|
|
41
|
+
], LabelProviderTable.prototype, "rowExpand", void 0);
|
|
34
42
|
__decorate([
|
|
35
43
|
attr({ attribute: 'groups-collapse-all' })
|
|
36
44
|
], LabelProviderTable.prototype, "groupsCollapseAll", void 0);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/label-provider/table/index.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAmB,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAC7D,OAAO,EACH,wBAAwB,EACxB,6BAA6B,EAC7B,qCAAqC,EACrC,sCAAsC,EACtC,uBAAuB,EACvB,qBAAqB,EACrB,wBAAwB,EACxB,2BAA2B,EAC3B,4BAA4B,EAC5B,mBAAmB,EACnB,mBAAmB,EACtB,MAAM,gBAAgB,CAAC;AAQxB,MAAM,eAAe,GAAG;IACpB,aAAa,EAAE,uBAAuB;IACtC,WAAW,EAAE,qBAAqB;IAClC,iBAAiB,EAAE,2BAA2B;IAC9C,cAAc,EAAE,wBAAwB;IACxC,mBAAmB,EAAE,6BAA6B;IAClD,2BAA2B,EAAE,qCAAqC;IAClE,4BAA4B,EAAE,sCAAsC;IACpE,SAAS,EAAE,mBAAmB;IAC9B,cAAc,EAAE,wBAAwB;IACxC,SAAS,EAAE,mBAAmB;IAC9B,kBAAkB,EAAE,4BAA4B;CAC1C,CAAC;AAEX;;GAEG;AACH,MAAM,OAAO,kBACT,SAAQ,iBAAyC;IADrD;;
|
|
1
|
+
{"version":3,"file":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IAAI,CAAC,EAAE,SAAS,EAAE,qBAAqB,EAAE,CAAC;6DACE;AAG7C;IADC,IAAI,CAAC,EAAE,SAAS,EAAE,kBAAkB,EAAE,CAAC;0DACE;AAG1C;IADC,IAAI,CAAC,EAAE,SAAS,EAAE,uBAAuB,EAAE,CAAC;+DACE;AAG/C;IADC,IAAI,CAAC,EAAE,SAAS,EAAE,gCAAgC,EAAE,CAAC;uEACC;AAGvD;IADC,IAAI,CAAC,EAAE,SAAS,EAAE,iCAAiC,EAAE,CAAC;wEACC;AAGxD;IADC,IAAI,CAAC,EAAE,SAAS,EAAE,YAAY,EAAE,CAAC;qDACG;AAGrC;IADC,IAAI,CAAC,EAAE,SAAS,EAAE,kBAAkB,EAAE,CAAC;0DACE;AAG1C;IADC,IAAI,CAAC,EAAE,SAAS,EAAE,YAAY,EAAE,CAAC;qDACG;AAGrC;IADC,IAAI,CAAC,EAAE,SAAS,EAAE,sBAAsB,EAAE,CAAC;8DACE;AAKlD,MAAM,wBAAwB,GAAG,kBAAkB,CAAC,OAAO,CAAC;IACxD,QAAQ,EAAE,sBAAsB;CACnC,CAAC,CAAC;AAEH,YAAY,CAAC,WAAW,EAAE;KACrB,UAAU,CAAC,QAAQ,CAAC;KACpB,QAAQ,CAAC,wBAAwB,EAAE,CAAC,CAAC;AAC1C,MAAM,CAAC,MAAM,qBAAqB,GAAG,YAAY,CAAC,MAAM,CAAC,kBAAkB,CAAC,CAAC"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export const tableLabelDefaults = {
|
|
2
2
|
tableGroupCollapseLabel: 'Collapse group',
|
|
3
3
|
tableGroupExpandLabel: 'Expand group',
|
|
4
|
+
tableRowCollapseLabel: 'Collapse row',
|
|
5
|
+
tableRowExpandLabel: 'Expand row',
|
|
4
6
|
tableGroupsCollapseAllLabel: 'Collapse all groups',
|
|
5
7
|
tableCellActionMenuLabel: 'Options',
|
|
6
8
|
tableColumnHeaderGroupedLabel: 'Grouped',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"label-token-defaults.js","sourceRoot":"","sources":["../../../../src/label-provider/table/label-token-defaults.ts"],"names":[],"mappings":"AAIA,MAAM,CAAC,MAAM,kBAAkB,GAA4C;IACvE,uBAAuB,EAAE,gBAAgB;IACzC,qBAAqB,EAAE,cAAc;IACrC,2BAA2B,EAAE,qBAAqB;IAClD,wBAAwB,EAAE,SAAS;IACnC,6BAA6B,EAAE,SAAS;IACxC,qCAAqC,EAAE,kBAAkB;IACzD,sCAAsC,EAAE,mBAAmB;IAC3D,mBAAmB,EAAE,iBAAiB;IACtC,wBAAwB,EAAE,0BAA0B;IACpD,mBAAmB,EAAE,YAAY;IACjC,4BAA4B,EAAE,gBAAgB;CACjD,CAAC"}
|
|
1
|
+
{"version":3,"file":"label-token-defaults.js","sourceRoot":"","sources":["../../../../src/label-provider/table/label-token-defaults.ts"],"names":[],"mappings":"AAIA,MAAM,CAAC,MAAM,kBAAkB,GAA4C;IACvE,uBAAuB,EAAE,gBAAgB;IACzC,qBAAqB,EAAE,cAAc;IACrC,qBAAqB,EAAE,cAAc;IACrC,mBAAmB,EAAE,YAAY;IACjC,2BAA2B,EAAE,qBAAqB;IAClD,wBAAwB,EAAE,SAAS;IACnC,6BAA6B,EAAE,SAAS;IACxC,qCAAqC,EAAE,kBAAkB;IACzD,sCAAsC,EAAE,mBAAmB;IAC3D,mBAAmB,EAAE,iBAAiB;IACtC,wBAAwB,EAAE,0BAA0B;IACpD,mBAAmB,EAAE,YAAY;IACjC,4BAA4B,EAAE,gBAAgB;CACjD,CAAC"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { DesignToken } from '@microsoft/fast-foundation';
|
|
2
2
|
export declare const tableGroupCollapseLabel: DesignToken<string>;
|
|
3
3
|
export declare const tableGroupExpandLabel: DesignToken<string>;
|
|
4
|
+
export declare const tableRowCollapseLabel: DesignToken<string>;
|
|
5
|
+
export declare const tableRowExpandLabel: DesignToken<string>;
|
|
4
6
|
export declare const tableGroupsCollapseAllLabel: DesignToken<string>;
|
|
5
7
|
export declare const tableCellActionMenuLabel: DesignToken<string>;
|
|
6
8
|
export declare const tableColumnHeaderGroupedLabel: DesignToken<string>;
|
|
@@ -8,6 +8,14 @@ export const tableGroupExpandLabel = DesignToken.create({
|
|
|
8
8
|
name: 'table-group-expand-label',
|
|
9
9
|
cssCustomPropertyName: null
|
|
10
10
|
}).withDefault(tableLabelDefaults.tableGroupExpandLabel);
|
|
11
|
+
export const tableRowCollapseLabel = DesignToken.create({
|
|
12
|
+
name: 'table-row-collapse-label',
|
|
13
|
+
cssCustomPropertyName: null
|
|
14
|
+
}).withDefault(tableLabelDefaults.tableRowCollapseLabel);
|
|
15
|
+
export const tableRowExpandLabel = DesignToken.create({
|
|
16
|
+
name: 'table-row-expand-label',
|
|
17
|
+
cssCustomPropertyName: null
|
|
18
|
+
}).withDefault(tableLabelDefaults.tableRowExpandLabel);
|
|
11
19
|
export const tableGroupsCollapseAllLabel = DesignToken.create({
|
|
12
20
|
name: 'table-groups-collapse-all-label',
|
|
13
21
|
cssCustomPropertyName: null
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"label-tokens.js","sourceRoot":"","sources":["../../../../src/label-provider/table/label-tokens.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAE5D,MAAM,CAAC,MAAM,uBAAuB,GAAG,WAAW,CAAC,MAAM,CAAS;IAC9D,IAAI,EAAE,4BAA4B;IAClC,qBAAqB,EAAE,IAAI;CAC9B,CAAC,CAAC,WAAW,CAAC,kBAAkB,CAAC,uBAAuB,CAAC,CAAC;AAE3D,MAAM,CAAC,MAAM,qBAAqB,GAAG,WAAW,CAAC,MAAM,CAAS;IAC5D,IAAI,EAAE,0BAA0B;IAChC,qBAAqB,EAAE,IAAI;CAC9B,CAAC,CAAC,WAAW,CAAC,kBA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mBAAmB,CAAC,CAAC;AAEvD,MAAM,CAAC,MAAM,wBAAwB,GAAG,WAAW,CAAC,MAAM,CAAS;IAC/D,IAAI,EAAE,8BAA8B;IACpC,qBAAqB,EAAE,IAAI;CAC9B,CAAC,CAAC,WAAW,CAAC,kBAAkB,CAAC,wBAAwB,CAAC,CAAC;AAE5D,MAAM,CAAC,MAAM,mBAAmB,GAAG,WAAW,CAAC,MAAM,CAAS;IAC1D,IAAI,EAAE,wBAAwB;IAC9B,qBAAqB,EAAE,IAAI;CAC9B,CAAC,CAAC,WAAW,CAAC,kBAAkB,CAAC,mBAAmB,CAAC,CAAC;AAEvD,MAAM,CAAC,MAAM,4BAA4B,GAAG,WAAW,CAAC,MAAM,CAAS;IACnE,IAAI,EAAE,kCAAkC;IACxC,qBAAqB,EAAE,IAAI;CAC9B,CAAC,CAAC,WAAW,CAAC,kBAAkB,CAAC,4BAA4B,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const styles: import("@microsoft/fast-element").ElementStyles;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { css } from '@microsoft/fast-element';
|
|
2
|
+
import { controlSlimHeight, mediumDelay } from '../../theme-provider/design-tokens';
|
|
3
|
+
export const styles = css `
|
|
4
|
+
:host .animating {
|
|
5
|
+
transition: ${mediumDelay} ease-in;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.expand-collapse-button {
|
|
9
|
+
height: ${controlSlimHeight};
|
|
10
|
+
align-self: center;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.expander-icon {
|
|
14
|
+
transform: rotate(0deg);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
:host([expanded]) .expander-icon {
|
|
18
|
+
transform: rotate(90deg);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
@media (prefers-reduced-motion) {
|
|
22
|
+
:host .animating {
|
|
23
|
+
transition-duration: 0s;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
`;
|
|
27
|
+
//# sourceMappingURL=styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../src/patterns/expand-collapse/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,yBAAyB,CAAC;AAC9C,OAAO,EACH,iBAAiB,EACjB,WAAW,EACd,MAAM,oCAAoC,CAAC;AAE5C,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;;sBAEH,WAAW;;;;kBAIf,iBAAiB;;;;;;;;;;;;;;;;;CAiBlC,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { type Notifier } from '@microsoft/fast-element';
|
|
2
|
+
import { FoundationElement } from '@microsoft/fast-foundation';
|
|
3
|
+
import { RichTextMention } from '../../rich-text-mention/base';
|
|
4
|
+
import { Configuration } from '../models/configuration';
|
|
5
|
+
/**
|
|
6
|
+
* Base class for rich text components
|
|
7
|
+
*/
|
|
8
|
+
export declare abstract class RichText extends FoundationElement {
|
|
9
|
+
/**
|
|
10
|
+
* @internal
|
|
11
|
+
*/
|
|
12
|
+
mentionInternalsNotifiers: Notifier[];
|
|
13
|
+
/**
|
|
14
|
+
* @internal
|
|
15
|
+
*/
|
|
16
|
+
readonly childItems: Element[];
|
|
17
|
+
/**
|
|
18
|
+
* @internal
|
|
19
|
+
*/
|
|
20
|
+
configuration?: Configuration;
|
|
21
|
+
protected mentionElements: RichTextMention[];
|
|
22
|
+
/**
|
|
23
|
+
* @internal
|
|
24
|
+
*/
|
|
25
|
+
abstract getMentionedHrefs(): string[];
|
|
26
|
+
/**
|
|
27
|
+
* @internal
|
|
28
|
+
*/
|
|
29
|
+
handleChange(source: unknown, args: unknown): void;
|
|
30
|
+
protected mentionElementsChanged(_old: unknown, _new: unknown): void;
|
|
31
|
+
protected createConfig(): Configuration;
|
|
32
|
+
private childItemsChanged;
|
|
33
|
+
private updateMentionElementsFromChildItems;
|
|
34
|
+
private observeMentionInternals;
|
|
35
|
+
private removeMentionInternalsObservers;
|
|
36
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { Observable, observable } from '@microsoft/fast-element';
|
|
3
|
+
import { FoundationElement } from '@microsoft/fast-foundation';
|
|
4
|
+
import { RichTextMention } from '../../rich-text-mention/base';
|
|
5
|
+
import { MentionInternals } from '../../rich-text-mention/base/models/mention-internals';
|
|
6
|
+
import { Configuration } from '../models/configuration';
|
|
7
|
+
import { MarkdownParserMentionConfiguration } from '../models/markdown-parser-mention-configuration';
|
|
8
|
+
/**
|
|
9
|
+
* Base class for rich text components
|
|
10
|
+
*/
|
|
11
|
+
export class RichText extends FoundationElement {
|
|
12
|
+
constructor() {
|
|
13
|
+
super(...arguments);
|
|
14
|
+
/**
|
|
15
|
+
* @internal
|
|
16
|
+
*/
|
|
17
|
+
this.mentionInternalsNotifiers = [];
|
|
18
|
+
/**
|
|
19
|
+
* @internal
|
|
20
|
+
*/
|
|
21
|
+
this.childItems = [];
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* @internal
|
|
25
|
+
*/
|
|
26
|
+
handleChange(source, args) {
|
|
27
|
+
if (source instanceof MentionInternals
|
|
28
|
+
&& MarkdownParserMentionConfiguration.isObservedMentionInternalsProperty(args)) {
|
|
29
|
+
this.configuration = this.createConfig();
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
mentionElementsChanged(_old, _new) {
|
|
33
|
+
this.observeMentionInternals();
|
|
34
|
+
this.configuration = this.createConfig();
|
|
35
|
+
}
|
|
36
|
+
createConfig() {
|
|
37
|
+
return new Configuration(this.mentionElements);
|
|
38
|
+
}
|
|
39
|
+
childItemsChanged(_prev, _next) {
|
|
40
|
+
void this.updateMentionElementsFromChildItems();
|
|
41
|
+
}
|
|
42
|
+
async updateMentionElementsFromChildItems() {
|
|
43
|
+
const definedElements = this.childItems.map(async (item) => (item.matches(':not(:defined)')
|
|
44
|
+
? customElements.whenDefined(item.localName)
|
|
45
|
+
: Promise.resolve()));
|
|
46
|
+
await Promise.all(definedElements);
|
|
47
|
+
this.mentionElements = this.childItems.filter((x) => x instanceof RichTextMention);
|
|
48
|
+
}
|
|
49
|
+
observeMentionInternals() {
|
|
50
|
+
this.removeMentionInternalsObservers();
|
|
51
|
+
for (const mention of this.mentionElements) {
|
|
52
|
+
const notifierInternals = Observable.getNotifier(mention.mentionInternals);
|
|
53
|
+
notifierInternals.subscribe(this);
|
|
54
|
+
this.mentionInternalsNotifiers.push(notifierInternals);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
removeMentionInternalsObservers() {
|
|
58
|
+
this.mentionInternalsNotifiers.forEach(notifier => {
|
|
59
|
+
notifier.unsubscribe(this);
|
|
60
|
+
});
|
|
61
|
+
this.mentionInternalsNotifiers = [];
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
__decorate([
|
|
65
|
+
observable
|
|
66
|
+
], RichText.prototype, "childItems", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
observable
|
|
69
|
+
], RichText.prototype, "configuration", void 0);
|
|
70
|
+
__decorate([
|
|
71
|
+
observable
|
|
72
|
+
], RichText.prototype, "mentionElements", void 0);
|
|
73
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/rich-text/base/index.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,UAAU,EAAiB,MAAM,yBAAyB,CAAC;AAChF,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC/D,OAAO,EAAE,gBAAgB,EAAE,MAAM,uDAAuD,CAAC;AACzF,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAE,kCAAkC,EAAE,MAA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AAI,CAAC,+BAA+B,EAAE,CAAC;QAEvC,KAAK,MAAM,OAAO,IAAI,IAAI,CAAC,eAAe,EAAE;YACxC,MAAM,iBAAiB,GAAG,UAAU,CAAC,WAAW,CAC5C,OAAO,CAAC,gBAAgB,CAC3B,CAAC;YACF,iBAAiB,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;YAClC,IAAI,CAAC,yBAAyB,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;SAC1D;IACL,CAAC;IAEO,+BAA+B;QACnC,IAAI,CAAC,yBAAyB,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE;YAC9C,QAAQ,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;QAC/B,CAAC,CAAC,CAAC;QACH,IAAI,CAAC,yBAAyB,GAAG,EAAE,CAAC;IACxC,CAAC;CACJ;AAvEG;IADC,UAAU;4CACgC;AAM3C;IADC,UAAU;+CAC0B;AAGrC;IADC,UAAU;iDACmC"}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { ARIAGlobalStatesAndProperties
|
|
2
|
-
import { Editor } from '@tiptap/core';
|
|
1
|
+
import { ARIAGlobalStatesAndProperties } from '@microsoft/fast-foundation';
|
|
3
2
|
import type { ToggleButton } from '../../toggle-button';
|
|
4
3
|
import type { ErrorPattern } from '../../patterns/error/types';
|
|
4
|
+
import { RichTextMarkdownSerializer } from '../models/markdown-serializer';
|
|
5
|
+
import { RichText } from '../base';
|
|
6
|
+
import { EditorConfiguration } from '../models/editor-configuration';
|
|
5
7
|
declare global {
|
|
6
8
|
interface HTMLElementTagNameMap {
|
|
7
9
|
'nimble-rich-text-editor': RichTextEditor;
|
|
@@ -10,7 +12,7 @@ declare global {
|
|
|
10
12
|
/**
|
|
11
13
|
* A nimble styled rich text editor
|
|
12
14
|
*/
|
|
13
|
-
export declare class RichTextEditor extends
|
|
15
|
+
export declare class RichTextEditor extends RichText implements ErrorPattern {
|
|
14
16
|
/**
|
|
15
17
|
* @internal
|
|
16
18
|
*/
|
|
@@ -18,7 +20,15 @@ export declare class RichTextEditor extends FoundationElement implements ErrorPa
|
|
|
18
20
|
/**
|
|
19
21
|
* @internal
|
|
20
22
|
*/
|
|
21
|
-
tiptapEditor: Editor;
|
|
23
|
+
tiptapEditor: import("@tiptap/core").Editor;
|
|
24
|
+
/**
|
|
25
|
+
* @internal
|
|
26
|
+
*/
|
|
27
|
+
readonly xmlSerializer: XMLSerializer;
|
|
28
|
+
/**
|
|
29
|
+
* @internal
|
|
30
|
+
*/
|
|
31
|
+
richTextMarkdownSerializer: RichTextMarkdownSerializer;
|
|
22
32
|
/**
|
|
23
33
|
* Whether to disable user from editing and interacting with toolbar buttons
|
|
24
34
|
*
|
|
@@ -85,8 +95,6 @@ export declare class RichTextEditor extends FoundationElement implements ErrorPa
|
|
|
85
95
|
editorContainer: HTMLDivElement;
|
|
86
96
|
private resizeObserver?;
|
|
87
97
|
private updateScrollbarWidthQueued;
|
|
88
|
-
private readonly xmlSerializer;
|
|
89
|
-
private readonly validAbsoluteLinkRegex;
|
|
90
98
|
/**
|
|
91
99
|
* @internal
|
|
92
100
|
*/
|
|
@@ -103,11 +111,15 @@ export declare class RichTextEditor extends FoundationElement implements ErrorPa
|
|
|
103
111
|
* Update the placeholder text and view of the editor.
|
|
104
112
|
* @internal
|
|
105
113
|
*/
|
|
106
|
-
placeholderChanged(): void;
|
|
114
|
+
placeholderChanged(_prev: unknown, _next: unknown): void;
|
|
107
115
|
/**
|
|
108
116
|
* @internal
|
|
109
117
|
*/
|
|
110
|
-
ariaLabelChanged(): void;
|
|
118
|
+
ariaLabelChanged(_prev: unknown, _next: unknown): void;
|
|
119
|
+
/**
|
|
120
|
+
* @internal
|
|
121
|
+
*/
|
|
122
|
+
configurationChanged(prev: EditorConfiguration | undefined, next: EditorConfiguration): void;
|
|
111
123
|
/**
|
|
112
124
|
* Toggle the bold mark and focus back to the editor
|
|
113
125
|
* @internal
|
|
@@ -162,26 +174,11 @@ export declare class RichTextEditor extends FoundationElement implements ErrorPa
|
|
|
162
174
|
* @internal
|
|
163
175
|
*/
|
|
164
176
|
stopEventPropagation(event: Event): boolean;
|
|
177
|
+
getMentionedHrefs(): string[];
|
|
178
|
+
protected createConfig(): EditorConfiguration;
|
|
179
|
+
private isMentionExtensionConfigUnchanged;
|
|
165
180
|
private createEditor;
|
|
166
|
-
|
|
167
|
-
* This method finds the Link mark in the pasted content and update its Text node.
|
|
168
|
-
* If there is no text node, pass the node's fragment recursively and updates only node containing Link mark.
|
|
169
|
-
* If the Text node does not contains Link mark, push the same node to `updatedNodes`.
|
|
170
|
-
*
|
|
171
|
-
* @param fragment Fragment containing the pasted content. [Fragment](https://prosemirror.net/docs/ref/#model.Fragment)
|
|
172
|
-
* @returns modified fragment from the `updatedNode` after updating the valid link text with its href value.
|
|
173
|
-
*/
|
|
174
|
-
private readonly updateLinkNodes;
|
|
175
|
-
private createTiptapEditor;
|
|
176
|
-
/**
|
|
177
|
-
* Extending the default link mark schema defined in the TipTap.
|
|
178
|
-
*
|
|
179
|
-
* "excludes": https://prosemirror.net/docs/ref/#model.MarkSpec.excludes
|
|
180
|
-
* "inclusive": https://prosemirror.net/docs/ref/#model.MarkSpec.inclusive
|
|
181
|
-
* "parseHTML": https://tiptap.dev/guide/custom-extensions#parse-html
|
|
182
|
-
* "renderHTML": https://tiptap.dev/guide/custom-extensions/#render-html
|
|
183
|
-
*/
|
|
184
|
-
private getCustomLinkExtension;
|
|
181
|
+
private initializeEditor;
|
|
185
182
|
/**
|
|
186
183
|
* This function takes the Fragment from parseMarkdownToDOM function and return the serialized string using XMLSerializer
|
|
187
184
|
*/
|
|
@@ -202,6 +199,7 @@ export declare class RichTextEditor extends FoundationElement implements ErrorPa
|
|
|
202
199
|
* https://tiptap.dev/api/events#update
|
|
203
200
|
*/
|
|
204
201
|
private bindEditorUpdateEvent;
|
|
202
|
+
private disableEditor;
|
|
205
203
|
/**
|
|
206
204
|
* Stopping the native input event propagation emitted by the contenteditable element in the Tiptap
|
|
207
205
|
* since there is an issue (linked below) in ProseMirror where selecting the text and removing it
|