@omnia/fx 8.0.250-dev → 8.0.251-dev

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,6 +2,7 @@ import { MarkdownPluginRegistration, guid } from "@omnia/fx-models";
2
2
  export declare const useMarkdownPluginStore: () => {
3
3
  state: {
4
4
  plugins: MarkdownPluginRegistration[];
5
+ hiddenPlugins: MarkdownPluginRegistration[];
5
6
  };
6
7
  get: {
7
8
  byId(id: guid): MarkdownPluginRegistration;
@@ -37,6 +38,7 @@ export declare const useMarkdownPluginStore: () => {
37
38
  };
38
39
  events: {
39
40
  onMutatedPlugins: import("internal/fx/core").MessageBusExposeOnlySubscription<MarkdownPluginRegistration[]>;
41
+ onMutatedHiddenPlugins: import("internal/fx/core").MessageBusExposeOnlySubscription<MarkdownPluginRegistration[]>;
40
42
  } & Record<string, import("@omnia/fx-models").IMessageBusTopicPublishSubscriber<any>>;
41
43
  } & {
42
44
  dispose?: () => void;
@@ -20,11 +20,11 @@ export declare function useEditorCommands(state: {
20
20
  };
21
21
  evenhandlers: {
22
22
  backspace: () => void;
23
+ enter: () => void;
23
24
  };
24
25
  formatting: {
25
- add: (element: HTMLElement, toggleIfExists?: boolean, matchByDataTypeOnly?: boolean) => void;
26
- toggle: (element: HTMLElement, matchByDataTypeOnly?: boolean) => void;
27
- remove: (element: HTMLElement, matchByDataTypeOnly?: boolean) => void;
26
+ add: (element: HTMLElement, toggleIfExists?: boolean, matchByNameAndDataType?: boolean) => void;
27
+ remove: (element: HTMLElement, matchByNameAndDataType?: boolean) => void;
28
28
  };
29
29
  element: {
30
30
  add: (element: HTMLElement) => void;
@@ -32,4 +32,29 @@ export declare function useEditorCommands(state: {
32
32
  createText: () => HTMLParagraphElement;
33
33
  createComponent: (componentName: string) => HTMLDivElement;
34
34
  };
35
+ helpers: {
36
+ editor: {
37
+ storeCursorPosition: (state: {
38
+ selectedRange: Range;
39
+ }) => void;
40
+ ensureSelectionIsInEditor: (range: Range) => void;
41
+ };
42
+ editorNode: {
43
+ getEditorNodeBySelectors: (nodes: EditorNode[], selectors: {
44
+ name?: string;
45
+ id?: string;
46
+ dataType?: string;
47
+ }) => EditorNode;
48
+ getEditorNodesInArrayByElement: (element: HTMLElement, nodes: EditorNode[], matchByNameAndDataType: boolean, deep: boolean) => EditorNode[];
49
+ getSelectedEditorNodes: (nodeSelectionIds: NodeIdSelection, content: EditorContent) => EditorNode[];
50
+ removeIds: (nodes: EditorNode[]) => void;
51
+ };
52
+ htmlNode: {
53
+ getNodeIdsForRange: (range: Range) => NodeIdSelection;
54
+ removeNodes: (nodes2Remove: EditorNode[], editor: HTMLElement) => void;
55
+ getHtmlElementById: (id: number, element: HTMLElement) => HTMLElement;
56
+ surroundSelectionWithElement: (element: HTMLElement, nodeSelection: NodeIdSelection, range: Range) => void;
57
+ surroundContents: (element: HTMLElement, nodeSelection: NodeIdSelection, range: Range) => void;
58
+ };
59
+ };
35
60
  };
@@ -6,6 +6,7 @@ export declare function useEditorNodeHelper(): {
6
6
  id?: string;
7
7
  dataType?: string;
8
8
  }) => EditorNode;
9
- getEditorNodesInArrayByElement: (element: HTMLElement, nodes: Array<EditorNode>, matchByDataTypeOnly: boolean, deep: boolean) => Array<EditorNode>;
9
+ getEditorNodesInArrayByElement: (element: HTMLElement, nodes: Array<EditorNode>, matchByNameAndDataType: boolean, deep: boolean) => Array<EditorNode>;
10
10
  getSelectedEditorNodes: (nodeSelectionIds: NodeIdSelection, content: EditorContent) => Array<EditorNode>;
11
+ removeIds: (nodes: Array<EditorNode>) => void;
11
12
  };
@@ -1,9 +1,9 @@
1
1
  import { EditorNode, NodeIdSelection } from "../../models/EditorModels";
2
2
  export type builtIndataTypes = "text" | "formatting";
3
3
  export declare function useHtmlNodeHelper(): {
4
- getNodeIdsForSelection: (range: Range) => NodeIdSelection;
4
+ getNodeIdsForRange: (range: Range) => NodeIdSelection;
5
5
  removeNodes: (nodes2Remove: Array<EditorNode>, editor: HTMLElement) => void;
6
6
  getHtmlElementById: (id: number, element: HTMLElement) => HTMLElement;
7
- addElementToSelectionContainers: (nodeSelection: NodeIdSelection, element: HTMLElement, editor: HTMLElement) => void;
8
- surroundContents: (element: HTMLElement, range: Range) => void;
7
+ surroundSelectionWithElement: (element: HTMLElement, nodeSelection: NodeIdSelection, range: Range) => void;
8
+ surroundContents: (element: HTMLElement, nodeSelection: NodeIdSelection, range: Range) => void;
9
9
  };
@@ -0,0 +1,3 @@
1
+ export declare const testDataPlugin: () => import("../../models/EditorPlugin").EditorPlugin & {
2
+ dispose?: () => void;
3
+ };
@@ -16,17 +16,17 @@ export declare const useMarkdownStore: () => {
16
16
  selectedRange: Range;
17
17
  };
18
18
  events: {
19
- onMutatedEditorContent: import("@omnia/fx-models/internal-do-not-import-from-here/shared").MessageBusExposeOnlySubscription<EditorContent>;
20
- onMutatedPlugins: import("@omnia/fx-models/internal-do-not-import-from-here/shared").MessageBusExposeOnlySubscription<EditorPlugin[]>;
21
- onMutatedEditMode: import("@omnia/fx-models/internal-do-not-import-from-here/shared").MessageBusExposeOnlySubscription<boolean>;
22
- onMutatedMaxNodeId: import("@omnia/fx-models/internal-do-not-import-from-here/shared").MessageBusExposeOnlySubscription<number>;
23
- onMutatedToolbarActions: import("@omnia/fx-models/internal-do-not-import-from-here/shared").MessageBusExposeOnlySubscription<MarkdownEditorActionRegistration[]>;
24
- onMutatedEditor: import("@omnia/fx-models/internal-do-not-import-from-here/shared").MessageBusExposeOnlySubscription<HTMLDivElement>;
25
- onMutatedSelectedNodes: import("@omnia/fx-models/internal-do-not-import-from-here/shared").MessageBusExposeOnlySubscription<EditorNode[]>;
26
- onMutatedSelectedNodeIds: import("@omnia/fx-models/internal-do-not-import-from-here/shared").MessageBusExposeOnlySubscription<NodeIdSelection>;
27
- onMutatedTelePorts: import("@omnia/fx-models/internal-do-not-import-from-here/shared").MessageBusExposeOnlySubscription<JSX.Element[]>;
28
- onMutatedId: import("@omnia/fx-models/internal-do-not-import-from-here/shared").MessageBusExposeOnlySubscription<string>;
29
- onMutatedSelectedRange: import("@omnia/fx-models/internal-do-not-import-from-here/shared").MessageBusExposeOnlySubscription<Range>;
19
+ onMutatedEditorContent: import("@omnia/fx").MessageBusExposeOnlySubscription<EditorContent>;
20
+ onMutatedPlugins: import("@omnia/fx").MessageBusExposeOnlySubscription<EditorPlugin[]>;
21
+ onMutatedEditMode: import("@omnia/fx").MessageBusExposeOnlySubscription<boolean>;
22
+ onMutatedMaxNodeId: import("@omnia/fx").MessageBusExposeOnlySubscription<number>;
23
+ onMutatedToolbarActions: import("@omnia/fx").MessageBusExposeOnlySubscription<MarkdownEditorActionRegistration[]>;
24
+ onMutatedEditor: import("@omnia/fx").MessageBusExposeOnlySubscription<HTMLDivElement>;
25
+ onMutatedSelectedNodes: import("@omnia/fx").MessageBusExposeOnlySubscription<EditorNode[]>;
26
+ onMutatedSelectedNodeIds: import("@omnia/fx").MessageBusExposeOnlySubscription<NodeIdSelection>;
27
+ onMutatedTelePorts: import("@omnia/fx").MessageBusExposeOnlySubscription<JSX.Element[]>;
28
+ onMutatedId: import("@omnia/fx").MessageBusExposeOnlySubscription<string>;
29
+ onMutatedSelectedRange: import("@omnia/fx").MessageBusExposeOnlySubscription<Range>;
30
30
  } & Record<string, import("@omnia/fx-models").IMessageBusTopicPublishSubscriber<any>>;
31
31
  actions: {
32
32
  onDispatching: {
@@ -86,9 +86,9 @@ export declare const useMarkdownStore: () => {
86
86
  };
87
87
  formatting: {
88
88
  subscribe(fn: (result: {
89
- add: (element: HTMLElement, toogleIfExists?: boolean, matchByDataTypeOnly?: boolean) => void;
90
- toggle: (element: HTMLElement, matchByDataTypeOnly?: boolean) => void;
91
- remove: (element: HTMLElement, matchByDataTypeOnly?: boolean) => void;
89
+ add: (element: HTMLElement, matchByNameAndDataType?: boolean) => void;
90
+ toggle: (element: HTMLElement, matchByNameAndDataType?: boolean) => void;
91
+ remove: (element: HTMLElement, matchByNameAndDataType?: boolean) => void;
92
92
  }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
93
93
  };
94
94
  element: {
@@ -151,9 +151,9 @@ export declare const useMarkdownStore: () => {
151
151
  add: (action: MarkdownEditorActionRegistration | MarkdownEditorActionRegistration[]) => void;
152
152
  };
153
153
  formatting: () => {
154
- add: (element: HTMLElement, toogleIfExists?: boolean, matchByDataTypeOnly?: boolean) => void;
155
- toggle: (element: HTMLElement, matchByDataTypeOnly?: boolean) => void;
156
- remove: (element: HTMLElement, matchByDataTypeOnly?: boolean) => void;
154
+ add: (element: HTMLElement, matchByNameAndDataType?: boolean) => void;
155
+ toggle: (element: HTMLElement, matchByNameAndDataType?: boolean) => void;
156
+ remove: (element: HTMLElement, matchByNameAndDataType?: boolean) => void;
157
157
  };
158
158
  element: () => {
159
159
  createForComponent: (componentName: string) => HTMLDivElement;
@@ -168,8 +168,8 @@ export declare const useMarkdownStore: () => {
168
168
  get: {
169
169
  plugins: EditorPlugin[];
170
170
  content: {
171
- asJSON: () => EditorContent;
172
- asString: () => string;
171
+ asJSON: (cleanIds?: boolean) => EditorContent;
172
+ asString: (cleanIds?: boolean) => string;
173
173
  };
174
174
  selection: {
175
175
  has: {
@@ -87,9 +87,9 @@ export declare const useMarkdownToolbarStore: () => {
87
87
  };
88
88
  formatting: {
89
89
  subscribe(fn: (result: {
90
- add: (element: HTMLElement, toogleIfExists?: boolean, matchByDataTypeOnly?: boolean) => void;
91
- toggle: (element: HTMLElement, matchByDataTypeOnly?: boolean) => void;
92
- remove: (element: HTMLElement, matchByDataTypeOnly?: boolean) => void;
90
+ add: (element: HTMLElement, matchByNameAndDataType?: boolean) => void;
91
+ toggle: (element: HTMLElement, matchByNameAndDataType?: boolean) => void;
92
+ remove: (element: HTMLElement, matchByNameAndDataType?: boolean) => void;
93
93
  }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
94
94
  };
95
95
  element: {
@@ -152,9 +152,9 @@ export declare const useMarkdownToolbarStore: () => {
152
152
  add: (action: MarkdownEditorActionRegistration | MarkdownEditorActionRegistration[]) => void;
153
153
  };
154
154
  formatting: () => {
155
- add: (element: HTMLElement, toogleIfExists?: boolean, matchByDataTypeOnly?: boolean) => void;
156
- toggle: (element: HTMLElement, matchByDataTypeOnly?: boolean) => void;
157
- remove: (element: HTMLElement, matchByDataTypeOnly?: boolean) => void;
155
+ add: (element: HTMLElement, matchByNameAndDataType?: boolean) => void;
156
+ toggle: (element: HTMLElement, matchByNameAndDataType?: boolean) => void;
157
+ remove: (element: HTMLElement, matchByNameAndDataType?: boolean) => void;
158
158
  };
159
159
  element: () => {
160
160
  createForComponent: (componentName: string) => HTMLDivElement;
@@ -169,8 +169,8 @@ export declare const useMarkdownToolbarStore: () => {
169
169
  get: {
170
170
  plugins: import("../models/EditorPlugin").EditorPlugin[];
171
171
  content: {
172
- asJSON: () => import("../models/EditorModels").EditorContent;
173
- asString: () => string;
172
+ asJSON: (cleanIds?: boolean) => import("../models/EditorModels").EditorContent;
173
+ asString: (cleanIds?: boolean) => string;
174
174
  };
175
175
  selection: {
176
176
  has: {
@@ -282,9 +282,9 @@ export declare const useMarkdownToolbarStore: () => {
282
282
  };
283
283
  formatting: {
284
284
  subscribe(fn: (result: {
285
- add: (element: HTMLElement, toogleIfExists?: boolean, matchByDataTypeOnly?: boolean) => void;
286
- toggle: (element: HTMLElement, matchByDataTypeOnly?: boolean) => void;
287
- remove: (element: HTMLElement, matchByDataTypeOnly?: boolean) => void;
285
+ add: (element: HTMLElement, matchByNameAndDataType?: boolean) => void;
286
+ toggle: (element: HTMLElement, matchByNameAndDataType?: boolean) => void;
287
+ remove: (element: HTMLElement, matchByNameAndDataType?: boolean) => void;
288
288
  }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
289
289
  };
290
290
  element: {
@@ -347,9 +347,9 @@ export declare const useMarkdownToolbarStore: () => {
347
347
  add: (action: MarkdownEditorActionRegistration | MarkdownEditorActionRegistration[]) => void;
348
348
  };
349
349
  formatting: () => {
350
- add: (element: HTMLElement, toogleIfExists?: boolean, matchByDataTypeOnly?: boolean) => void;
351
- toggle: (element: HTMLElement, matchByDataTypeOnly?: boolean) => void;
352
- remove: (element: HTMLElement, matchByDataTypeOnly?: boolean) => void;
350
+ add: (element: HTMLElement, matchByNameAndDataType?: boolean) => void;
351
+ toggle: (element: HTMLElement, matchByNameAndDataType?: boolean) => void;
352
+ remove: (element: HTMLElement, matchByNameAndDataType?: boolean) => void;
353
353
  };
354
354
  element: () => {
355
355
  createForComponent: (componentName: string) => HTMLDivElement;
@@ -364,8 +364,8 @@ export declare const useMarkdownToolbarStore: () => {
364
364
  get: {
365
365
  plugins: import("../models/EditorPlugin").EditorPlugin[];
366
366
  content: {
367
- asJSON: () => import("../models/EditorModels").EditorContent;
368
- asString: () => string;
367
+ asJSON: (cleanIds?: boolean) => import("../models/EditorModels").EditorContent;
368
+ asString: (cleanIds?: boolean) => string;
369
369
  };
370
370
  selection: {
371
371
  has: {
@@ -479,9 +479,9 @@ export declare const useMarkdownToolbarStore: () => {
479
479
  };
480
480
  formatting: {
481
481
  subscribe(fn: (result: {
482
- add: (element: HTMLElement, toogleIfExists?: boolean, matchByDataTypeOnly?: boolean) => void;
483
- toggle: (element: HTMLElement, matchByDataTypeOnly?: boolean) => void;
484
- remove: (element: HTMLElement, matchByDataTypeOnly?: boolean) => void;
482
+ add: (element: HTMLElement, matchByNameAndDataType?: boolean) => void;
483
+ toggle: (element: HTMLElement, matchByNameAndDataType?: boolean) => void;
484
+ remove: (element: HTMLElement, matchByNameAndDataType?: boolean) => void;
485
485
  }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
486
486
  };
487
487
  element: {
@@ -544,9 +544,9 @@ export declare const useMarkdownToolbarStore: () => {
544
544
  add: (action: MarkdownEditorActionRegistration | MarkdownEditorActionRegistration[]) => void;
545
545
  };
546
546
  formatting: () => {
547
- add: (element: HTMLElement, toogleIfExists?: boolean, matchByDataTypeOnly?: boolean) => void;
548
- toggle: (element: HTMLElement, matchByDataTypeOnly?: boolean) => void;
549
- remove: (element: HTMLElement, matchByDataTypeOnly?: boolean) => void;
547
+ add: (element: HTMLElement, matchByNameAndDataType?: boolean) => void;
548
+ toggle: (element: HTMLElement, matchByNameAndDataType?: boolean) => void;
549
+ remove: (element: HTMLElement, matchByNameAndDataType?: boolean) => void;
550
550
  };
551
551
  element: () => {
552
552
  createForComponent: (componentName: string) => HTMLDivElement;
@@ -561,8 +561,8 @@ export declare const useMarkdownToolbarStore: () => {
561
561
  get: {
562
562
  plugins: import("../models/EditorPlugin").EditorPlugin[];
563
563
  content: {
564
- asJSON: () => import("../models/EditorModels").EditorContent;
565
- asString: () => string;
564
+ asJSON: (cleanIds?: boolean) => import("../models/EditorModels").EditorContent;
565
+ asString: (cleanIds?: boolean) => string;
566
566
  };
567
567
  selection: {
568
568
  has: {
@@ -677,9 +677,9 @@ export declare const useMarkdownToolbarStore: () => {
677
677
  };
678
678
  formatting: {
679
679
  subscribe(fn: (result: {
680
- add: (element: HTMLElement, toogleIfExists?: boolean, matchByDataTypeOnly?: boolean) => void;
681
- toggle: (element: HTMLElement, matchByDataTypeOnly?: boolean) => void;
682
- remove: (element: HTMLElement, matchByDataTypeOnly?: boolean) => void;
680
+ add: (element: HTMLElement, matchByNameAndDataType?: boolean) => void;
681
+ toggle: (element: HTMLElement, matchByNameAndDataType?: boolean) => void;
682
+ remove: (element: HTMLElement, matchByNameAndDataType?: boolean) => void;
683
683
  }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
684
684
  };
685
685
  element: {
@@ -742,9 +742,9 @@ export declare const useMarkdownToolbarStore: () => {
742
742
  add: (action: MarkdownEditorActionRegistration | MarkdownEditorActionRegistration[]) => void;
743
743
  };
744
744
  formatting: () => {
745
- add: (element: HTMLElement, toogleIfExists?: boolean, matchByDataTypeOnly?: boolean) => void;
746
- toggle: (element: HTMLElement, matchByDataTypeOnly?: boolean) => void;
747
- remove: (element: HTMLElement, matchByDataTypeOnly?: boolean) => void;
745
+ add: (element: HTMLElement, matchByNameAndDataType?: boolean) => void;
746
+ toggle: (element: HTMLElement, matchByNameAndDataType?: boolean) => void;
747
+ remove: (element: HTMLElement, matchByNameAndDataType?: boolean) => void;
748
748
  };
749
749
  element: () => {
750
750
  createForComponent: (componentName: string) => HTMLDivElement;
@@ -759,8 +759,8 @@ export declare const useMarkdownToolbarStore: () => {
759
759
  get: {
760
760
  plugins: import("../models/EditorPlugin").EditorPlugin[];
761
761
  content: {
762
- asJSON: () => import("../models/EditorModels").EditorContent;
763
- asString: () => string;
762
+ asJSON: (cleanIds?: boolean) => import("../models/EditorModels").EditorContent;
763
+ asString: (cleanIds?: boolean) => string;
764
764
  };
765
765
  selection: {
766
766
  has: {
@@ -875,9 +875,9 @@ export declare const useMarkdownToolbarStore: () => {
875
875
  };
876
876
  formatting: {
877
877
  subscribe(fn: (result: {
878
- add: (element: HTMLElement, toogleIfExists?: boolean, matchByDataTypeOnly?: boolean) => void;
879
- toggle: (element: HTMLElement, matchByDataTypeOnly?: boolean) => void;
880
- remove: (element: HTMLElement, matchByDataTypeOnly?: boolean) => void;
878
+ add: (element: HTMLElement, matchByNameAndDataType?: boolean) => void;
879
+ toggle: (element: HTMLElement, matchByNameAndDataType?: boolean) => void;
880
+ remove: (element: HTMLElement, matchByNameAndDataType?: boolean) => void;
881
881
  }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
882
882
  };
883
883
  element: {
@@ -940,9 +940,9 @@ export declare const useMarkdownToolbarStore: () => {
940
940
  add: (action: MarkdownEditorActionRegistration | MarkdownEditorActionRegistration[]) => void;
941
941
  };
942
942
  formatting: () => {
943
- add: (element: HTMLElement, toogleIfExists?: boolean, matchByDataTypeOnly?: boolean) => void;
944
- toggle: (element: HTMLElement, matchByDataTypeOnly?: boolean) => void;
945
- remove: (element: HTMLElement, matchByDataTypeOnly?: boolean) => void;
943
+ add: (element: HTMLElement, matchByNameAndDataType?: boolean) => void;
944
+ toggle: (element: HTMLElement, matchByNameAndDataType?: boolean) => void;
945
+ remove: (element: HTMLElement, matchByNameAndDataType?: boolean) => void;
946
946
  };
947
947
  element: () => {
948
948
  createForComponent: (componentName: string) => HTMLDivElement;
@@ -957,8 +957,8 @@ export declare const useMarkdownToolbarStore: () => {
957
957
  get: {
958
958
  plugins: import("../models/EditorPlugin").EditorPlugin[];
959
959
  content: {
960
- asJSON: () => import("../models/EditorModels").EditorContent;
961
- asString: () => string;
960
+ asJSON: (cleanIds?: boolean) => import("../models/EditorModels").EditorContent;
961
+ asString: (cleanIds?: boolean) => string;
962
962
  };
963
963
  selection: {
964
964
  has: {
@@ -7,7 +7,11 @@ export interface IDataTableRow<T = any> {
7
7
  Row: RowElement;
8
8
  Cell: CellElement;
9
9
  }
10
- export type DataTablePropsBase<T> = DefinePropTheming & DefineVModel<"expanded", Array<string>, false, null, false, "Whether the item is expanded or not."> & DefineVModel<"sortBy", SortItem[], false, null, false, "Changes which item property (or properties) should be used for sort order."> & DefineProp<"mustSort", boolean, false, false, "If true then one can not disable sorting, it will always switch between ascending and descending."> & DefineProp<"showSelect", boolean, false, false, "Shows a checkbox for each row."> & DefineProp<"itemSelectable", SelectItemKey<T>, false, false, "SProperty on supplied items that indicates whether the item is selectable."> & DefineProp<"height", string | number, false, null, "Sets and explicit height of the tablet."> & DefineProp<"noDataText", string, false, null, "Text shown when no items are provided to the component."> & DefineProp<"itemValue", ItemValueType<T>, false, null, "Property on supplied items that contains its value."> & DefineProp<"loading", boolean, false, false, "Displays linear progress bar."> & DefineProp<"drag", boolean, false, false, "Enable draggable row."> & DefineProp<"hover", boolean, false, false, "Property on supplied items that contains its value."> & DefineProp<"showExpand", boolean, false, false, "Shows the expand toggle in default rows."> & DefineProp<"headers", DataTableHeader[], false, typeof defaultHeaders, "An array of objects that each describe a header column."> & DefineVModel<"items", T[], false, typeof defaultItems, true, "An array of strings or objects used for automatically generating children components."> & DefineEmit<"update:expanded", (expanded: string[]) => void, "Emits when the expanded property of the options prop is updated."> & DefineEmit<"update:sortBy", (sort: SortItem[]) => void, "Emits when the sortBy property of the options prop is updated."> & DefineEmit<"update:options", (options: any) => void, "Emits when one of the options properties is updated."> & DefineEmit<"update:page", (page: number) => void, "Emits when the page property of the options prop is updated."> & DefineEmit<"click:loadMore", () => void> & DefineSlot<"item", (row: IDataTableRowRenderer<T>) => void, "Deprecated, Use slot row instead."> & DefineSlot<"row", (row: IDataTableRow<T>) => VNodeChild> & DefineSlot<`header.${string}`, (header: DataTableHeader) => void> & DefineSlot<`item.${string}`, (e: {
10
+ export type DataTablePropsBase<T> = DefinePropTheming & DefineVModel<"expanded", Array<string>, false, null, false, "Whether the item is expanded or not."> & DefineVModel<"sortBy", SortItem[], false, null, false, "Changes which item property (or properties) should be used for sort order."> & DefineProp<"mustSort", boolean, false, false, "If true then one can not disable sorting, it will always switch between ascending and descending."> & DefineProp<"showSelect", boolean, false, false, "Shows a checkbox for each row."> & DefineProp<"itemSelectable", SelectItemKey<T>, false, false, "SProperty on supplied items that indicates whether the item is selectable."> & DefineProp<"height", string | number, false, null, "Sets and explicit height of the tablet."> & DefineProp<"noDataText", string, false, null, "Text shown when no items are provided to the component."> & DefineProp<"itemValue", ItemValueType<T>, false, null, "Property on supplied items that contains its value."> & DefineProp<"loading", boolean, false, false, "Displays linear progress bar."> & DefineProp<"drag", boolean, false, false, "Enable draggable row."> & DefineProp<"hover", boolean, false, false, "Property on supplied items that contains its value."> & DefineProp<"showExpand", boolean, false, false, "Shows the expand toggle in default rows."> & DefineProp<"headers", DataTableHeader[], false, typeof defaultHeaders, "An array of objects that each describe a header column."> & DefineVModel<"items", T[], false, typeof defaultItems, true, "An array of strings or objects used for automatically generating children components."> & DefineEmit<"update:expanded", (expanded: string[]) => void, "Emits when the expanded property of the options prop is updated."> & DefineEmit<"update:sortBy", (sort: SortItem[]) => void, "Emits when the sortBy property of the options prop is updated."> & DefineEmit<"update:options", (options: {
11
+ page: number;
12
+ itemsPerPage: number;
13
+ sortBy: SortItem[];
14
+ }) => void, "Emits when one of the options properties is updated."> & DefineEmit<"update:page", (page: number) => void, "Emits when the page property of the options prop is updated."> & DefineEmit<"click:loadMore", () => void> & DefineSlot<"item", (row: IDataTableRowRenderer<T>) => void, "Deprecated, Use slot row instead."> & DefineSlot<"row", (row: IDataTableRow<T>) => VNodeChild> & DefineSlot<`header.${string}`, (header: DataTableHeader) => void> & DefineSlot<`item.${string}`, (e: {
11
15
  item: T;
12
16
  }) => void>;
13
17
  type DefaultProps = {};
@@ -65,7 +69,11 @@ declare const _default: <T extends unknown, TVariant extends "default" | "client
65
69
  "onUpdate:items"?: (value: T[]) => void;
66
70
  } & {
67
71
  items?: T[];
68
- } & DefineEmit<"update:expanded", (expanded: string[]) => void, "Emits when the expanded property of the options prop is updated."> & DefineEmit<"update:sortBy", (sort: SortItem[]) => void, "Emits when the sortBy property of the options prop is updated."> & DefineEmit<"update:options", (options: any) => void, "Emits when one of the options properties is updated."> & DefineEmit<"update:page", (page: number) => void, "Emits when the page property of the options prop is updated."> & DefineEmit<"click:loadMore", () => void> & DefineSlot<"item", (row: IDataTableRowRenderer<T>) => void, "Deprecated, Use slot row instead."> & DefineSlot<"row", (row: IDataTableRow<T>) => VNodeChild> & DefineSlot<`header.${string}`, (header: DataTableHeader) => void> & DefineSlot<`item.${string}`, (e: {
72
+ } & DefineEmit<"update:expanded", (expanded: string[]) => void, "Emits when the expanded property of the options prop is updated."> & DefineEmit<"update:sortBy", (sort: SortItem[]) => void, "Emits when the sortBy property of the options prop is updated."> & DefineEmit<"update:options", (options: {
73
+ page: number;
74
+ itemsPerPage: number;
75
+ sortBy: SortItem[];
76
+ }) => void, "Emits when one of the options properties is updated."> & DefineEmit<"update:page", (page: number) => void, "Emits when the page property of the options prop is updated."> & DefineEmit<"click:loadMore", () => void> & DefineSlot<"item", (row: IDataTableRowRenderer<T>) => void, "Deprecated, Use slot row instead."> & DefineSlot<"row", (row: IDataTableRow<T>) => VNodeChild> & DefineSlot<`header.${string}`, (header: DataTableHeader) => void> & DefineSlot<`item.${string}`, (e: {
69
77
  item: T;
70
78
  }) => void> & (TVariant extends "client-pagination-scroll" ? {
71
79
  showLoadMore?: boolean;
@@ -159,7 +167,11 @@ declare const _default: <T extends unknown, TVariant extends "default" | "client
159
167
  "onUpdate:items"?: (value: T[]) => void;
160
168
  } & {
161
169
  items?: T[];
162
- } & DefineEmit<"update:expanded", (expanded: string[]) => void, "Emits when the expanded property of the options prop is updated."> & DefineEmit<"update:sortBy", (sort: SortItem[]) => void, "Emits when the sortBy property of the options prop is updated."> & DefineEmit<"update:options", (options: any) => void, "Emits when one of the options properties is updated."> & DefineEmit<"update:page", (page: number) => void, "Emits when the page property of the options prop is updated."> & DefineEmit<"click:loadMore", () => void> & DefineSlot<"item", (row: IDataTableRowRenderer<T>) => void, "Deprecated, Use slot row instead."> & DefineSlot<"row", (row: IDataTableRow<T>) => VNodeChild> & DefineSlot<`header.${string}`, (header: DataTableHeader) => void> & DefineSlot<`item.${string}`, (e: {
170
+ } & DefineEmit<"update:expanded", (expanded: string[]) => void, "Emits when the expanded property of the options prop is updated."> & DefineEmit<"update:sortBy", (sort: SortItem[]) => void, "Emits when the sortBy property of the options prop is updated."> & DefineEmit<"update:options", (options: {
171
+ page: number;
172
+ itemsPerPage: number;
173
+ sortBy: SortItem[];
174
+ }) => void, "Emits when one of the options properties is updated."> & DefineEmit<"update:page", (page: number) => void, "Emits when the page property of the options prop is updated."> & DefineEmit<"click:loadMore", () => void> & DefineSlot<"item", (row: IDataTableRowRenderer<T>) => void, "Deprecated, Use slot row instead."> & DefineSlot<"row", (row: IDataTableRow<T>) => VNodeChild> & DefineSlot<`header.${string}`, (header: DataTableHeader) => void> & DefineSlot<`item.${string}`, (e: {
163
175
  item: T;
164
176
  }) => void> & (TVariant extends "client-pagination-scroll" ? {
165
177
  showLoadMore?: boolean;
@@ -216,7 +228,11 @@ declare const _default: <T extends unknown, TVariant extends "default" | "client
216
228
  "onUpdate:items"?: (value: T[]) => void;
217
229
  } & {
218
230
  items?: T[];
219
- } & DefineEmit<"update:expanded", (expanded: string[]) => void, "Emits when the expanded property of the options prop is updated."> & DefineEmit<"update:sortBy", (sort: SortItem[]) => void, "Emits when the sortBy property of the options prop is updated."> & DefineEmit<"update:options", (options: any) => void, "Emits when one of the options properties is updated."> & DefineEmit<"update:page", (page: number) => void, "Emits when the page property of the options prop is updated."> & DefineEmit<"click:loadMore", () => void> & DefineSlot<"item", (row: IDataTableRowRenderer<T>) => void, "Deprecated, Use slot row instead."> & DefineSlot<"row", (row: IDataTableRow<T>) => VNodeChild> & DefineSlot<`header.${string}`, (header: DataTableHeader) => void> & DefineSlot<`item.${string}`, (e: {
231
+ } & DefineEmit<"update:expanded", (expanded: string[]) => void, "Emits when the expanded property of the options prop is updated."> & DefineEmit<"update:sortBy", (sort: SortItem[]) => void, "Emits when the sortBy property of the options prop is updated."> & DefineEmit<"update:options", (options: {
232
+ page: number;
233
+ itemsPerPage: number;
234
+ sortBy: SortItem[];
235
+ }) => void, "Emits when one of the options properties is updated."> & DefineEmit<"update:page", (page: number) => void, "Emits when the page property of the options prop is updated."> & DefineEmit<"click:loadMore", () => void> & DefineSlot<"item", (row: IDataTableRowRenderer<T>) => void, "Deprecated, Use slot row instead."> & DefineSlot<"row", (row: IDataTableRow<T>) => VNodeChild> & DefineSlot<`header.${string}`, (header: DataTableHeader) => void> & DefineSlot<`item.${string}`, (e: {
220
236
  item: T;
221
237
  }) => void> & (TVariant extends "client-pagination-scroll" ? {
222
238
  showLoadMore?: boolean;
@@ -272,7 +288,11 @@ declare const _default: <T extends unknown, TVariant extends "default" | "client
272
288
  "onUpdate:items"?: (value: T[]) => void;
273
289
  } & {
274
290
  items?: T[];
275
- } & DefineEmit<"update:expanded", (expanded: string[]) => void, "Emits when the expanded property of the options prop is updated."> & DefineEmit<"update:sortBy", (sort: SortItem[]) => void, "Emits when the sortBy property of the options prop is updated."> & DefineEmit<"update:options", (options: any) => void, "Emits when one of the options properties is updated."> & DefineEmit<"update:page", (page: number) => void, "Emits when the page property of the options prop is updated."> & DefineEmit<"click:loadMore", () => void> & DefineSlot<"item", (row: IDataTableRowRenderer<T>) => void, "Deprecated, Use slot row instead."> & DefineSlot<"row", (row: IDataTableRow<T>) => VNodeChild> & DefineSlot<`header.${string}`, (header: DataTableHeader) => void> & DefineSlot<`item.${string}`, (e: {
291
+ } & DefineEmit<"update:expanded", (expanded: string[]) => void, "Emits when the expanded property of the options prop is updated."> & DefineEmit<"update:sortBy", (sort: SortItem[]) => void, "Emits when the sortBy property of the options prop is updated."> & DefineEmit<"update:options", (options: {
292
+ page: number;
293
+ itemsPerPage: number;
294
+ sortBy: SortItem[];
295
+ }) => void, "Emits when one of the options properties is updated."> & DefineEmit<"update:page", (page: number) => void, "Emits when the page property of the options prop is updated."> & DefineEmit<"click:loadMore", () => void> & DefineSlot<"item", (row: IDataTableRowRenderer<T>) => void, "Deprecated, Use slot row instead."> & DefineSlot<"row", (row: IDataTableRow<T>) => VNodeChild> & DefineSlot<`header.${string}`, (header: DataTableHeader) => void> & DefineSlot<`item.${string}`, (e: {
276
296
  item: T;
277
297
  }) => void> & (TVariant extends "client-pagination-scroll" ? {
278
298
  showLoadMore?: boolean;
@@ -330,7 +350,11 @@ declare const _default: <T extends unknown, TVariant extends "default" | "client
330
350
  "onUpdate:items"?: (value: T[]) => void;
331
351
  } & {
332
352
  items?: T[];
333
- } & DefineEmit<"update:expanded", (expanded: string[]) => void, "Emits when the expanded property of the options prop is updated."> & DefineEmit<"update:sortBy", (sort: SortItem[]) => void, "Emits when the sortBy property of the options prop is updated."> & DefineEmit<"update:options", (options: any) => void, "Emits when one of the options properties is updated."> & DefineEmit<"update:page", (page: number) => void, "Emits when the page property of the options prop is updated."> & DefineEmit<"click:loadMore", () => void> & DefineSlot<"item", (row: IDataTableRowRenderer<T>) => void, "Deprecated, Use slot row instead."> & DefineSlot<"row", (row: IDataTableRow<T>) => VNodeChild> & DefineSlot<`header.${string}`, (header: DataTableHeader) => void> & DefineSlot<`item.${string}`, (e: {
353
+ } & DefineEmit<"update:expanded", (expanded: string[]) => void, "Emits when the expanded property of the options prop is updated."> & DefineEmit<"update:sortBy", (sort: SortItem[]) => void, "Emits when the sortBy property of the options prop is updated."> & DefineEmit<"update:options", (options: {
354
+ page: number;
355
+ itemsPerPage: number;
356
+ sortBy: SortItem[];
357
+ }) => void, "Emits when one of the options properties is updated."> & DefineEmit<"update:page", (page: number) => void, "Emits when the page property of the options prop is updated."> & DefineEmit<"click:loadMore", () => void> & DefineSlot<"item", (row: IDataTableRowRenderer<T>) => void, "Deprecated, Use slot row instead."> & DefineSlot<"row", (row: IDataTableRow<T>) => VNodeChild> & DefineSlot<`header.${string}`, (header: DataTableHeader) => void> & DefineSlot<`item.${string}`, (e: {
334
358
  item: T;
335
359
  }) => void> & (TVariant extends "client-pagination-scroll" ? {
336
360
  showLoadMore?: boolean;
@@ -386,7 +410,11 @@ declare const _default: <T extends unknown, TVariant extends "default" | "client
386
410
  "onUpdate:items"?: (value: T[]) => void;
387
411
  } & {
388
412
  items?: T[];
389
- } & DefineEmit<"update:expanded", (expanded: string[]) => void, "Emits when the expanded property of the options prop is updated."> & DefineEmit<"update:sortBy", (sort: SortItem[]) => void, "Emits when the sortBy property of the options prop is updated."> & DefineEmit<"update:options", (options: any) => void, "Emits when one of the options properties is updated."> & DefineEmit<"update:page", (page: number) => void, "Emits when the page property of the options prop is updated."> & DefineEmit<"click:loadMore", () => void> & DefineSlot<"item", (row: IDataTableRowRenderer<T>) => void, "Deprecated, Use slot row instead."> & DefineSlot<"row", (row: IDataTableRow<T>) => VNodeChild> & DefineSlot<`header.${string}`, (header: DataTableHeader) => void> & DefineSlot<`item.${string}`, (e: {
413
+ } & DefineEmit<"update:expanded", (expanded: string[]) => void, "Emits when the expanded property of the options prop is updated."> & DefineEmit<"update:sortBy", (sort: SortItem[]) => void, "Emits when the sortBy property of the options prop is updated."> & DefineEmit<"update:options", (options: {
414
+ page: number;
415
+ itemsPerPage: number;
416
+ sortBy: SortItem[];
417
+ }) => void, "Emits when one of the options properties is updated."> & DefineEmit<"update:page", (page: number) => void, "Emits when the page property of the options prop is updated."> & DefineEmit<"click:loadMore", () => void> & DefineSlot<"item", (row: IDataTableRowRenderer<T>) => void, "Deprecated, Use slot row instead."> & DefineSlot<"row", (row: IDataTableRow<T>) => VNodeChild> & DefineSlot<`header.${string}`, (header: DataTableHeader) => void> & DefineSlot<`item.${string}`, (e: {
390
418
  item: T;
391
419
  }) => void> & (TVariant extends "client-pagination-scroll" ? {
392
420
  showLoadMore?: boolean;
@@ -443,7 +471,11 @@ declare const _default: <T extends unknown, TVariant extends "default" | "client
443
471
  "onUpdate:items"?: (value: T[]) => void;
444
472
  } & {
445
473
  items?: T[];
446
- } & DefineEmit<"update:expanded", (expanded: string[]) => void, "Emits when the expanded property of the options prop is updated."> & DefineEmit<"update:sortBy", (sort: SortItem[]) => void, "Emits when the sortBy property of the options prop is updated."> & DefineEmit<"update:options", (options: any) => void, "Emits when one of the options properties is updated."> & DefineEmit<"update:page", (page: number) => void, "Emits when the page property of the options prop is updated."> & DefineEmit<"click:loadMore", () => void> & DefineSlot<"item", (row: IDataTableRowRenderer<T>) => void, "Deprecated, Use slot row instead."> & DefineSlot<"row", (row: IDataTableRow<T>) => VNodeChild> & DefineSlot<`header.${string}`, (header: DataTableHeader) => void> & DefineSlot<`item.${string}`, (e: {
474
+ } & DefineEmit<"update:expanded", (expanded: string[]) => void, "Emits when the expanded property of the options prop is updated."> & DefineEmit<"update:sortBy", (sort: SortItem[]) => void, "Emits when the sortBy property of the options prop is updated."> & DefineEmit<"update:options", (options: {
475
+ page: number;
476
+ itemsPerPage: number;
477
+ sortBy: SortItem[];
478
+ }) => void, "Emits when one of the options properties is updated."> & DefineEmit<"update:page", (page: number) => void, "Emits when the page property of the options prop is updated."> & DefineEmit<"click:loadMore", () => void> & DefineSlot<"item", (row: IDataTableRowRenderer<T>) => void, "Deprecated, Use slot row instead."> & DefineSlot<"row", (row: IDataTableRow<T>) => VNodeChild> & DefineSlot<`header.${string}`, (header: DataTableHeader) => void> & DefineSlot<`item.${string}`, (e: {
447
479
  item: T;
448
480
  }) => void> & (TVariant extends "client-pagination-scroll" ? {
449
481
  showLoadMore?: boolean;
@@ -499,7 +531,11 @@ declare const _default: <T extends unknown, TVariant extends "default" | "client
499
531
  "onUpdate:items"?: (value: T[]) => void;
500
532
  } & {
501
533
  items?: T[];
502
- } & DefineEmit<"update:expanded", (expanded: string[]) => void, "Emits when the expanded property of the options prop is updated."> & DefineEmit<"update:sortBy", (sort: SortItem[]) => void, "Emits when the sortBy property of the options prop is updated."> & DefineEmit<"update:options", (options: any) => void, "Emits when one of the options properties is updated."> & DefineEmit<"update:page", (page: number) => void, "Emits when the page property of the options prop is updated."> & DefineEmit<"click:loadMore", () => void> & DefineSlot<"item", (row: IDataTableRowRenderer<T>) => void, "Deprecated, Use slot row instead."> & DefineSlot<"row", (row: IDataTableRow<T>) => VNodeChild> & DefineSlot<`header.${string}`, (header: DataTableHeader) => void> & DefineSlot<`item.${string}`, (e: {
534
+ } & DefineEmit<"update:expanded", (expanded: string[]) => void, "Emits when the expanded property of the options prop is updated."> & DefineEmit<"update:sortBy", (sort: SortItem[]) => void, "Emits when the sortBy property of the options prop is updated."> & DefineEmit<"update:options", (options: {
535
+ page: number;
536
+ itemsPerPage: number;
537
+ sortBy: SortItem[];
538
+ }) => void, "Emits when one of the options properties is updated."> & DefineEmit<"update:page", (page: number) => void, "Emits when the page property of the options prop is updated."> & DefineEmit<"click:loadMore", () => void> & DefineSlot<"item", (row: IDataTableRowRenderer<T>) => void, "Deprecated, Use slot row instead."> & DefineSlot<"row", (row: IDataTableRow<T>) => VNodeChild> & DefineSlot<`header.${string}`, (header: DataTableHeader) => void> & DefineSlot<`item.${string}`, (e: {
503
539
  item: T;
504
540
  }) => void> & (TVariant extends "client-pagination-scroll" ? {
505
541
  showLoadMore?: boolean;
@@ -555,7 +591,11 @@ declare const _default: <T extends unknown, TVariant extends "default" | "client
555
591
  "onUpdate:items"?: (value: T[]) => void;
556
592
  } & {
557
593
  items?: T[];
558
- } & DefineEmit<"update:expanded", (expanded: string[]) => void, "Emits when the expanded property of the options prop is updated."> & DefineEmit<"update:sortBy", (sort: SortItem[]) => void, "Emits when the sortBy property of the options prop is updated."> & DefineEmit<"update:options", (options: any) => void, "Emits when one of the options properties is updated."> & DefineEmit<"update:page", (page: number) => void, "Emits when the page property of the options prop is updated."> & DefineEmit<"click:loadMore", () => void> & DefineSlot<"item", (row: IDataTableRowRenderer<T>) => void, "Deprecated, Use slot row instead."> & DefineSlot<"row", (row: IDataTableRow<T>) => VNodeChild> & DefineSlot<`header.${string}`, (header: DataTableHeader) => void> & DefineSlot<`item.${string}`, (e: {
594
+ } & DefineEmit<"update:expanded", (expanded: string[]) => void, "Emits when the expanded property of the options prop is updated."> & DefineEmit<"update:sortBy", (sort: SortItem[]) => void, "Emits when the sortBy property of the options prop is updated."> & DefineEmit<"update:options", (options: {
595
+ page: number;
596
+ itemsPerPage: number;
597
+ sortBy: SortItem[];
598
+ }) => void, "Emits when one of the options properties is updated."> & DefineEmit<"update:page", (page: number) => void, "Emits when the page property of the options prop is updated."> & DefineEmit<"click:loadMore", () => void> & DefineSlot<"item", (row: IDataTableRowRenderer<T>) => void, "Deprecated, Use slot row instead."> & DefineSlot<"row", (row: IDataTableRow<T>) => VNodeChild> & DefineSlot<`header.${string}`, (header: DataTableHeader) => void> & DefineSlot<`item.${string}`, (e: {
559
599
  item: T;
560
600
  }) => void> & (TVariant extends "client-pagination-scroll" ? {
561
601
  showLoadMore?: boolean;
@@ -611,7 +651,11 @@ declare const _default: <T extends unknown, TVariant extends "default" | "client
611
651
  "onUpdate:items"?: (value: T[]) => void;
612
652
  } & {
613
653
  items?: T[];
614
- } & DefineEmit<"update:expanded", (expanded: string[]) => void, "Emits when the expanded property of the options prop is updated."> & DefineEmit<"update:sortBy", (sort: SortItem[]) => void, "Emits when the sortBy property of the options prop is updated."> & DefineEmit<"update:options", (options: any) => void, "Emits when one of the options properties is updated."> & DefineEmit<"update:page", (page: number) => void, "Emits when the page property of the options prop is updated."> & DefineEmit<"click:loadMore", () => void> & DefineSlot<"item", (row: IDataTableRowRenderer<T>) => void, "Deprecated, Use slot row instead."> & DefineSlot<"row", (row: IDataTableRow<T>) => VNodeChild> & DefineSlot<`header.${string}`, (header: DataTableHeader) => void> & DefineSlot<`item.${string}`, (e: {
654
+ } & DefineEmit<"update:expanded", (expanded: string[]) => void, "Emits when the expanded property of the options prop is updated."> & DefineEmit<"update:sortBy", (sort: SortItem[]) => void, "Emits when the sortBy property of the options prop is updated."> & DefineEmit<"update:options", (options: {
655
+ page: number;
656
+ itemsPerPage: number;
657
+ sortBy: SortItem[];
658
+ }) => void, "Emits when one of the options properties is updated."> & DefineEmit<"update:page", (page: number) => void, "Emits when the page property of the options prop is updated."> & DefineEmit<"click:loadMore", () => void> & DefineSlot<"item", (row: IDataTableRowRenderer<T>) => void, "Deprecated, Use slot row instead."> & DefineSlot<"row", (row: IDataTableRow<T>) => VNodeChild> & DefineSlot<`header.${string}`, (header: DataTableHeader) => void> & DefineSlot<`item.${string}`, (e: {
615
659
  item: T;
616
660
  }) => void> & (TVariant extends "client-pagination-scroll" ? {
617
661
  showLoadMore?: boolean;
@@ -667,7 +711,11 @@ declare const _default: <T extends unknown, TVariant extends "default" | "client
667
711
  "onUpdate:items"?: (value: T[]) => void;
668
712
  } & {
669
713
  items?: T[];
670
- } & DefineEmit<"update:expanded", (expanded: string[]) => void, "Emits when the expanded property of the options prop is updated."> & DefineEmit<"update:sortBy", (sort: SortItem[]) => void, "Emits when the sortBy property of the options prop is updated."> & DefineEmit<"update:options", (options: any) => void, "Emits when one of the options properties is updated."> & DefineEmit<"update:page", (page: number) => void, "Emits when the page property of the options prop is updated."> & DefineEmit<"click:loadMore", () => void> & DefineSlot<"item", (row: IDataTableRowRenderer<T>) => void, "Deprecated, Use slot row instead."> & DefineSlot<"row", (row: IDataTableRow<T>) => VNodeChild> & DefineSlot<`header.${string}`, (header: DataTableHeader) => void> & DefineSlot<`item.${string}`, (e: {
714
+ } & DefineEmit<"update:expanded", (expanded: string[]) => void, "Emits when the expanded property of the options prop is updated."> & DefineEmit<"update:sortBy", (sort: SortItem[]) => void, "Emits when the sortBy property of the options prop is updated."> & DefineEmit<"update:options", (options: {
715
+ page: number;
716
+ itemsPerPage: number;
717
+ sortBy: SortItem[];
718
+ }) => void, "Emits when one of the options properties is updated."> & DefineEmit<"update:page", (page: number) => void, "Emits when the page property of the options prop is updated."> & DefineEmit<"click:loadMore", () => void> & DefineSlot<"item", (row: IDataTableRowRenderer<T>) => void, "Deprecated, Use slot row instead."> & DefineSlot<"row", (row: IDataTableRow<T>) => VNodeChild> & DefineSlot<`header.${string}`, (header: DataTableHeader) => void> & DefineSlot<`item.${string}`, (e: {
671
719
  item: T;
672
720
  }) => void> & (TVariant extends "client-pagination-scroll" ? {
673
721
  showLoadMore?: boolean;
@@ -1,4 +1,4 @@
1
- import { VelcronAppDefinition, VelcronDefinition, VelcronDefinitionRegistration, ContainerBlueprint, ContainerVariant, VelcronSectionInstance, guid, BorderSelectorActionRegistration } from "@omnia/fx-models";
1
+ import { VelcronAppDefinition, VelcronDefinition, VelcronDefinitionRegistration, ContainerBlueprint, ContainerVariant, VelcronSectionInstance, guid, BorderSelectorActionRegistration, MarkdownPluginSettings } from "@omnia/fx-models";
2
2
  type InsertMode = "add" | "change";
3
3
  export interface InsertOptions {
4
4
  preInsert?: boolean;
@@ -77,6 +77,9 @@ export declare const useVelcronContentEditorStore: () => {
77
77
  setMarkdownEditorStore: {
78
78
  subscribe(fn: (store: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
79
79
  };
80
+ plugins: {
81
+ subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
82
+ };
80
83
  selectorActions: {
81
84
  subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
82
85
  };
@@ -103,6 +106,11 @@ export declare const useVelcronContentEditorStore: () => {
103
106
  setMarkdownEditorStore: {
104
107
  subscribe(fn: (result: void, store: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
105
108
  };
109
+ plugins: {
110
+ subscribe(fn: (result: {
111
+ register: (pluginSettings: MarkdownPluginSettings | MarkdownPluginSettings[]) => void;
112
+ }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
113
+ };
106
114
  selectorActions: {
107
115
  subscribe(fn: (result: {
108
116
  hideDefaultSelector: () => void;
@@ -163,6 +171,9 @@ export declare const useVelcronContentEditorStore: () => {
163
171
  setMarkdownEditorStore: {
164
172
  subscribe(fn: (failureReason: any, store: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
165
173
  };
174
+ plugins: {
175
+ subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
176
+ };
166
177
  selectorActions: {
167
178
  subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
168
179
  };
@@ -187,6 +198,9 @@ export declare const useVelcronContentEditorStore: () => {
187
198
  };
188
199
  } & {
189
200
  setMarkdownEditorStore(store: any): void;
201
+ plugins: () => {
202
+ register: (pluginSettings: MarkdownPluginSettings | MarkdownPluginSettings[]) => void;
203
+ };
190
204
  selectorActions: () => {
191
205
  hideDefaultSelector: () => void;
192
206
  showCopySelector(): void;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@omnia/fx",
3
3
  "license": "MIT",
4
- "version": "8.0.250-dev",
4
+ "version": "8.0.251-dev",
5
5
  "description": "Provide Omnia Fx typings and tooling for clientside Omnia development.",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1",
@@ -20,7 +20,7 @@
20
20
  ],
21
21
  "author": "Precio Fishbone",
22
22
  "dependencies": {
23
- "@omnia/fx-models": "8.0.250-dev",
23
+ "@omnia/fx-models": "8.0.251-dev",
24
24
  "@microsoft/signalr": "6.0.1",
25
25
  "broadcast-channel": "4.8.0",
26
26
  "dayjs": "1.11.7",
@@ -1,27 +0,0 @@
1
- export type builtIndataTypes = "text" | "formatting";
2
- export declare function useEditorCommands(state: {
3
- editor: HTMLDivElement;
4
- selectedRange: Range;
5
- maxNodeId: number;
6
- }): {
7
- selection: {
8
- pluginNodes: () => any[];
9
- };
10
- actions: {
11
- storeCursorPosition: () => void;
12
- };
13
- evenhandlers: {
14
- backspace: () => void;
15
- };
16
- formatting: {
17
- add: (element: HTMLElement, toggleIfExists?: boolean, matchByDataTypeOnly?: boolean) => void;
18
- toggle: (element: HTMLElement, matchByDataTypeOnly?: boolean) => void;
19
- remove: (element: HTMLElement, matchByDataTypeOnly?: boolean) => void;
20
- };
21
- element: {
22
- add: (element: HTMLElement) => void;
23
- create: (tagName: string, dataType: builtIndataTypes | string) => HTMLElement;
24
- createText: () => HTMLParagraphElement;
25
- createComponent: (componentName: string) => HTMLDivElement;
26
- };
27
- };
@@ -1,7 +0,0 @@
1
- export type builtIndataTypes = "text" | "formatting";
2
- export declare function useHtmlNodeHelper(): {
3
- getPluginNodes: (element: Node) => Node[];
4
- removeExistingFormatting: (element: HTMLElement, range: Range, matchByDataTypeOnly: boolean) => boolean;
5
- removeNodeAndKeepContent: (node: Node) => void;
6
- surroundContents: (element: HTMLElement, range: Range) => void;
7
- };