@omnia/fx 8.0.245-dev → 8.0.247-dev

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.
Files changed (24) hide show
  1. package/internal-do-not-import-from-here/ux/admin/queryableproperties/QueryablePropertiesAddBlade.d.ts +52 -66
  2. package/internal-do-not-import-from-here/ux/admin/queryableproperties/QueryablePropertiesHomeBlade.d.ts +54 -75
  3. package/internal-do-not-import-from-here/ux/admin/queryableproperties/QueryablePropertiesInfoBlade.d.ts +50 -50
  4. package/internal-do-not-import-from-here/ux/markdown2/commands/EditorCommands.d.ts +6 -3
  5. package/internal-do-not-import-from-here/ux/markdown2/commands/helpers/Nodehelper.d.ts +2 -1
  6. package/internal-do-not-import-from-here/ux/markdown2/models/MarkdownPlugin.d.ts +6 -1
  7. package/internal-do-not-import-from-here/ux/markdown2/parsers/HtmlParser.d.ts +6 -0
  8. package/internal-do-not-import-from-here/ux/markdown2/parsers/MarkdownParser.d.ts +7 -0
  9. package/internal-do-not-import-from-here/ux/markdown2/plugins/colorstyle/ColorStylePlugin.d.ts +3 -0
  10. package/internal-do-not-import-from-here/ux/markdown2/plugins/text/TextPlugin.d.ts +3 -0
  11. package/internal-do-not-import-from-here/ux/markdown2/plugins/typography/TypographyPlugin.d.ts +3 -0
  12. package/internal-do-not-import-from-here/ux/markdown2/plugins/velcron/VelcronPlugin.d.ts +3 -0
  13. package/internal-do-not-import-from-here/ux/markdown2/stores/MarkdownStore.d.ts +20 -18
  14. package/internal-do-not-import-from-here/ux/markdown2/stores/MarkdownToolbarStore.d.ts +100 -90
  15. package/internal-do-not-import-from-here/ux/oxide/datatable/DataTable.d.ts +15 -5
  16. package/internal-do-not-import-from-here/ux/oxide/datatable/RowRenderer.d.ts +73 -1
  17. package/internal-do-not-import-from-here/ux/oxide/draggable/Draggable.d.ts +5 -8
  18. package/package.json +2 -2
  19. package/internal-do-not-import-from-here/ux/markdown2/plugins/ColorStylePlugin.d.ts +0 -3
  20. package/internal-do-not-import-from-here/ux/markdown2/plugins/TextPlugin.d.ts +0 -3
  21. package/internal-do-not-import-from-here/ux/markdown2/plugins/TypographyPlugin.d.ts +0 -3
  22. package/internal-do-not-import-from-here/ux/markdown2/plugins/VelcronPlugin.d.ts +0 -3
  23. /package/internal-do-not-import-from-here/ux/markdown2/plugins/{buttons → colorstyle}/ColorButton.d.ts +0 -0
  24. /package/internal-do-not-import-from-here/ux/markdown2/plugins/{buttons → typography}/TypographyButton.d.ts +0 -0
@@ -8,6 +8,7 @@ export declare const useMarkdownToolbarStore: () => {
8
8
  editMode: boolean;
9
9
  toolbarActions: MarkdownEditorActionRegistration[];
10
10
  editor: HTMLDivElement;
11
+ selectedPluginNodes: Node[];
11
12
  telePorts: JSX.Element[];
12
13
  id: string;
13
14
  selectedRange: Range;
@@ -17,6 +18,7 @@ export declare const useMarkdownToolbarStore: () => {
17
18
  onMutatedEditMode: import("@omnia/fx").MessageBusExposeOnlySubscription<boolean>;
18
19
  onMutatedToolbarActions: import("@omnia/fx").MessageBusExposeOnlySubscription<MarkdownEditorActionRegistration[]>;
19
20
  onMutatedEditor: import("@omnia/fx").MessageBusExposeOnlySubscription<HTMLDivElement>;
21
+ onMutatedSelectedPluginNodes: import("@omnia/fx").MessageBusExposeOnlySubscription<Node[]>;
20
22
  onMutatedTelePorts: import("@omnia/fx").MessageBusExposeOnlySubscription<JSX.Element[]>;
21
23
  onMutatedId: import("@omnia/fx").MessageBusExposeOnlySubscription<string>;
22
24
  onMutatedSelectedRange: import("@omnia/fx").MessageBusExposeOnlySubscription<Range>;
@@ -26,9 +28,6 @@ export declare const useMarkdownToolbarStore: () => {
26
28
  registerPlugin: {
27
29
  subscribe(fn: (pluginSettings: import("@omnia/fx-models").MarkdownPluginSettings) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
28
30
  };
29
- toHtml: {
30
- subscribe(fn: (markdown: string) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
31
- };
32
31
  toMarkdown: {
33
32
  subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
34
33
  };
@@ -61,11 +60,8 @@ export declare const useMarkdownToolbarStore: () => {
61
60
  registerPlugin: {
62
61
  subscribe(fn: (result: void, pluginSettings: import("@omnia/fx-models").MarkdownPluginSettings) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
63
62
  };
64
- toHtml: {
65
- subscribe(fn: (result: string, markdown: string) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
66
- };
67
63
  toMarkdown: {
68
- subscribe(fn: (result: void) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
64
+ subscribe(fn: (result: string) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
69
65
  };
70
66
  setContent: {
71
67
  subscribe(fn: (result: void, markdown: string) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
@@ -86,9 +82,9 @@ export declare const useMarkdownToolbarStore: () => {
86
82
  };
87
83
  formatting: {
88
84
  subscribe(fn: (result: {
89
- add: (element: HTMLElement, toggleIfExists?: boolean) => void;
90
- toggle: (element: HTMLElement) => void;
91
- remove: (element: HTMLElement, toggleIfExists?: boolean) => void;
85
+ add: (element: HTMLElement, toogleIfExists?: boolean, matchByDataTypeOnly?: boolean) => void;
86
+ toggle: (element: HTMLElement, matchByDataTypeOnly?: boolean) => void;
87
+ remove: (element: HTMLElement, matchByDataTypeOnly?: boolean) => void;
92
88
  }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
93
89
  };
94
90
  element: {
@@ -109,9 +105,6 @@ export declare const useMarkdownToolbarStore: () => {
109
105
  registerPlugin: {
110
106
  subscribe(fn: (failureReason: any, pluginSettings: import("@omnia/fx-models").MarkdownPluginSettings) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
111
107
  };
112
- toHtml: {
113
- subscribe(fn: (failureReason: any, markdown: string) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
114
- };
115
108
  toMarkdown: {
116
109
  subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
117
110
  };
@@ -142,8 +135,7 @@ export declare const useMarkdownToolbarStore: () => {
142
135
  };
143
136
  } & {
144
137
  registerPlugin: (pluginSettings: import("@omnia/fx-models").MarkdownPluginSettings) => void;
145
- toHtml: (markdown: string) => string;
146
- toMarkdown: () => void;
138
+ toMarkdown: () => string;
147
139
  setContent: (markdown: string) => void;
148
140
  setEditorMode: (editMode: boolean) => void;
149
141
  setEditorContainer: (el: HTMLDivElement) => void;
@@ -152,9 +144,9 @@ export declare const useMarkdownToolbarStore: () => {
152
144
  add: (action: MarkdownEditorActionRegistration | MarkdownEditorActionRegistration[]) => void;
153
145
  };
154
146
  formatting: () => {
155
- add: (element: HTMLElement, toggleIfExists?: boolean) => void;
156
- toggle: (element: HTMLElement) => void;
157
- remove: (element: HTMLElement, toggleIfExists?: boolean) => void;
147
+ add: (element: HTMLElement, toogleIfExists?: boolean, matchByDataTypeOnly?: boolean) => void;
148
+ toggle: (element: HTMLElement, matchByDataTypeOnly?: boolean) => void;
149
+ remove: (element: HTMLElement, matchByDataTypeOnly?: boolean) => void;
158
150
  };
159
151
  element: () => {
160
152
  createForComponent: (componentName: string) => HTMLDivElement;
@@ -168,6 +160,16 @@ export declare const useMarkdownToolbarStore: () => {
168
160
  };
169
161
  get: {
170
162
  plugins: import("../models/MarkdownPlugin").MarkdownPlugin[];
163
+ selection: {
164
+ has: {
165
+ dataType: (dataType: string) => boolean;
166
+ elementName: (elementName: string) => boolean;
167
+ };
168
+ get: {
169
+ byDataType: (dataType: string) => Node;
170
+ byElementName: (elementName: string) => Node;
171
+ };
172
+ };
171
173
  };
172
174
  } & {
173
175
  dispose?: () => void;
@@ -182,6 +184,7 @@ export declare const useMarkdownToolbarStore: () => {
182
184
  editMode: boolean;
183
185
  toolbarActions: MarkdownEditorActionRegistration[];
184
186
  editor: HTMLDivElement;
187
+ selectedPluginNodes: Node[];
185
188
  telePorts: JSX.Element[];
186
189
  id: string;
187
190
  selectedRange: Range;
@@ -191,6 +194,7 @@ export declare const useMarkdownToolbarStore: () => {
191
194
  onMutatedEditMode: import("@omnia/fx").MessageBusExposeOnlySubscription<boolean>;
192
195
  onMutatedToolbarActions: import("@omnia/fx").MessageBusExposeOnlySubscription<MarkdownEditorActionRegistration[]>;
193
196
  onMutatedEditor: import("@omnia/fx").MessageBusExposeOnlySubscription<HTMLDivElement>;
197
+ onMutatedSelectedPluginNodes: import("@omnia/fx").MessageBusExposeOnlySubscription<Node[]>;
194
198
  onMutatedTelePorts: import("@omnia/fx").MessageBusExposeOnlySubscription<JSX.Element[]>;
195
199
  onMutatedId: import("@omnia/fx").MessageBusExposeOnlySubscription<string>;
196
200
  onMutatedSelectedRange: import("@omnia/fx").MessageBusExposeOnlySubscription<Range>;
@@ -200,9 +204,6 @@ export declare const useMarkdownToolbarStore: () => {
200
204
  registerPlugin: {
201
205
  subscribe(fn: (pluginSettings: import("@omnia/fx-models").MarkdownPluginSettings) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
202
206
  };
203
- toHtml: {
204
- subscribe(fn: (markdown: string) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
205
- };
206
207
  toMarkdown: {
207
208
  subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
208
209
  };
@@ -235,11 +236,8 @@ export declare const useMarkdownToolbarStore: () => {
235
236
  registerPlugin: {
236
237
  subscribe(fn: (result: void, pluginSettings: import("@omnia/fx-models").MarkdownPluginSettings) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
237
238
  };
238
- toHtml: {
239
- subscribe(fn: (result: string, markdown: string) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
240
- };
241
239
  toMarkdown: {
242
- subscribe(fn: (result: void) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
240
+ subscribe(fn: (result: string) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
243
241
  };
244
242
  setContent: {
245
243
  subscribe(fn: (result: void, markdown: string) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
@@ -260,9 +258,9 @@ export declare const useMarkdownToolbarStore: () => {
260
258
  };
261
259
  formatting: {
262
260
  subscribe(fn: (result: {
263
- add: (element: HTMLElement, toggleIfExists?: boolean) => void;
264
- toggle: (element: HTMLElement) => void;
265
- remove: (element: HTMLElement, toggleIfExists?: boolean) => void;
261
+ add: (element: HTMLElement, toogleIfExists?: boolean, matchByDataTypeOnly?: boolean) => void;
262
+ toggle: (element: HTMLElement, matchByDataTypeOnly?: boolean) => void;
263
+ remove: (element: HTMLElement, matchByDataTypeOnly?: boolean) => void;
266
264
  }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
267
265
  };
268
266
  element: {
@@ -283,9 +281,6 @@ export declare const useMarkdownToolbarStore: () => {
283
281
  registerPlugin: {
284
282
  subscribe(fn: (failureReason: any, pluginSettings: import("@omnia/fx-models").MarkdownPluginSettings) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
285
283
  };
286
- toHtml: {
287
- subscribe(fn: (failureReason: any, markdown: string) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
288
- };
289
284
  toMarkdown: {
290
285
  subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
291
286
  };
@@ -316,8 +311,7 @@ export declare const useMarkdownToolbarStore: () => {
316
311
  };
317
312
  } & {
318
313
  registerPlugin: (pluginSettings: import("@omnia/fx-models").MarkdownPluginSettings) => void;
319
- toHtml: (markdown: string) => string;
320
- toMarkdown: () => void;
314
+ toMarkdown: () => string;
321
315
  setContent: (markdown: string) => void;
322
316
  setEditorMode: (editMode: boolean) => void;
323
317
  setEditorContainer: (el: HTMLDivElement) => void;
@@ -326,9 +320,9 @@ export declare const useMarkdownToolbarStore: () => {
326
320
  add: (action: MarkdownEditorActionRegistration | MarkdownEditorActionRegistration[]) => void;
327
321
  };
328
322
  formatting: () => {
329
- add: (element: HTMLElement, toggleIfExists?: boolean) => void;
330
- toggle: (element: HTMLElement) => void;
331
- remove: (element: HTMLElement, toggleIfExists?: boolean) => void;
323
+ add: (element: HTMLElement, toogleIfExists?: boolean, matchByDataTypeOnly?: boolean) => void;
324
+ toggle: (element: HTMLElement, matchByDataTypeOnly?: boolean) => void;
325
+ remove: (element: HTMLElement, matchByDataTypeOnly?: boolean) => void;
332
326
  };
333
327
  element: () => {
334
328
  createForComponent: (componentName: string) => HTMLDivElement;
@@ -342,6 +336,16 @@ export declare const useMarkdownToolbarStore: () => {
342
336
  };
343
337
  get: {
344
338
  plugins: import("../models/MarkdownPlugin").MarkdownPlugin[];
339
+ selection: {
340
+ has: {
341
+ dataType: (dataType: string) => boolean;
342
+ elementName: (elementName: string) => boolean;
343
+ };
344
+ get: {
345
+ byDataType: (dataType: string) => Node;
346
+ byElementName: (elementName: string) => Node;
347
+ };
348
+ };
345
349
  };
346
350
  } & {
347
351
  dispose?: () => void;
@@ -358,6 +362,7 @@ export declare const useMarkdownToolbarStore: () => {
358
362
  editMode: boolean;
359
363
  toolbarActions: MarkdownEditorActionRegistration[];
360
364
  editor: HTMLDivElement;
365
+ selectedPluginNodes: Node[];
361
366
  telePorts: JSX.Element[];
362
367
  id: string;
363
368
  selectedRange: Range;
@@ -367,6 +372,7 @@ export declare const useMarkdownToolbarStore: () => {
367
372
  onMutatedEditMode: import("@omnia/fx").MessageBusExposeOnlySubscription<boolean>;
368
373
  onMutatedToolbarActions: import("@omnia/fx").MessageBusExposeOnlySubscription<MarkdownEditorActionRegistration[]>;
369
374
  onMutatedEditor: import("@omnia/fx").MessageBusExposeOnlySubscription<HTMLDivElement>;
375
+ onMutatedSelectedPluginNodes: import("@omnia/fx").MessageBusExposeOnlySubscription<Node[]>;
370
376
  onMutatedTelePorts: import("@omnia/fx").MessageBusExposeOnlySubscription<JSX.Element[]>;
371
377
  onMutatedId: import("@omnia/fx").MessageBusExposeOnlySubscription<string>;
372
378
  onMutatedSelectedRange: import("@omnia/fx").MessageBusExposeOnlySubscription<Range>;
@@ -376,9 +382,6 @@ export declare const useMarkdownToolbarStore: () => {
376
382
  registerPlugin: {
377
383
  subscribe(fn: (pluginSettings: import("@omnia/fx-models").MarkdownPluginSettings) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
378
384
  };
379
- toHtml: {
380
- subscribe(fn: (markdown: string) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
381
- };
382
385
  toMarkdown: {
383
386
  subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
384
387
  };
@@ -411,11 +414,8 @@ export declare const useMarkdownToolbarStore: () => {
411
414
  registerPlugin: {
412
415
  subscribe(fn: (result: void, pluginSettings: import("@omnia/fx-models").MarkdownPluginSettings) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
413
416
  };
414
- toHtml: {
415
- subscribe(fn: (result: string, markdown: string) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
416
- };
417
417
  toMarkdown: {
418
- subscribe(fn: (result: void) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
418
+ subscribe(fn: (result: string) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
419
419
  };
420
420
  setContent: {
421
421
  subscribe(fn: (result: void, markdown: string) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
@@ -436,9 +436,9 @@ export declare const useMarkdownToolbarStore: () => {
436
436
  };
437
437
  formatting: {
438
438
  subscribe(fn: (result: {
439
- add: (element: HTMLElement, toggleIfExists?: boolean) => void;
440
- toggle: (element: HTMLElement) => void;
441
- remove: (element: HTMLElement, toggleIfExists?: boolean) => void;
439
+ add: (element: HTMLElement, toogleIfExists?: boolean, matchByDataTypeOnly?: boolean) => void;
440
+ toggle: (element: HTMLElement, matchByDataTypeOnly?: boolean) => void;
441
+ remove: (element: HTMLElement, matchByDataTypeOnly?: boolean) => void;
442
442
  }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
443
443
  };
444
444
  element: {
@@ -459,9 +459,6 @@ export declare const useMarkdownToolbarStore: () => {
459
459
  registerPlugin: {
460
460
  subscribe(fn: (failureReason: any, pluginSettings: import("@omnia/fx-models").MarkdownPluginSettings) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
461
461
  };
462
- toHtml: {
463
- subscribe(fn: (failureReason: any, markdown: string) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
464
- };
465
462
  toMarkdown: {
466
463
  subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
467
464
  };
@@ -492,8 +489,7 @@ export declare const useMarkdownToolbarStore: () => {
492
489
  };
493
490
  } & {
494
491
  registerPlugin: (pluginSettings: import("@omnia/fx-models").MarkdownPluginSettings) => void;
495
- toHtml: (markdown: string) => string;
496
- toMarkdown: () => void;
492
+ toMarkdown: () => string;
497
493
  setContent: (markdown: string) => void;
498
494
  setEditorMode: (editMode: boolean) => void;
499
495
  setEditorContainer: (el: HTMLDivElement) => void;
@@ -502,9 +498,9 @@ export declare const useMarkdownToolbarStore: () => {
502
498
  add: (action: MarkdownEditorActionRegistration | MarkdownEditorActionRegistration[]) => void;
503
499
  };
504
500
  formatting: () => {
505
- add: (element: HTMLElement, toggleIfExists?: boolean) => void;
506
- toggle: (element: HTMLElement) => void;
507
- remove: (element: HTMLElement, toggleIfExists?: boolean) => void;
501
+ add: (element: HTMLElement, toogleIfExists?: boolean, matchByDataTypeOnly?: boolean) => void;
502
+ toggle: (element: HTMLElement, matchByDataTypeOnly?: boolean) => void;
503
+ remove: (element: HTMLElement, matchByDataTypeOnly?: boolean) => void;
508
504
  };
509
505
  element: () => {
510
506
  createForComponent: (componentName: string) => HTMLDivElement;
@@ -518,6 +514,16 @@ export declare const useMarkdownToolbarStore: () => {
518
514
  };
519
515
  get: {
520
516
  plugins: import("../models/MarkdownPlugin").MarkdownPlugin[];
517
+ selection: {
518
+ has: {
519
+ dataType: (dataType: string) => boolean;
520
+ elementName: (elementName: string) => boolean;
521
+ };
522
+ get: {
523
+ byDataType: (dataType: string) => Node;
524
+ byElementName: (elementName: string) => Node;
525
+ };
526
+ };
521
527
  };
522
528
  } & {
523
529
  dispose?: () => void;
@@ -535,6 +541,7 @@ export declare const useMarkdownToolbarStore: () => {
535
541
  editMode: boolean;
536
542
  toolbarActions: MarkdownEditorActionRegistration[];
537
543
  editor: HTMLDivElement;
544
+ selectedPluginNodes: Node[];
538
545
  telePorts: JSX.Element[];
539
546
  id: string;
540
547
  selectedRange: Range;
@@ -544,6 +551,7 @@ export declare const useMarkdownToolbarStore: () => {
544
551
  onMutatedEditMode: import("@omnia/fx").MessageBusExposeOnlySubscription<boolean>;
545
552
  onMutatedToolbarActions: import("@omnia/fx").MessageBusExposeOnlySubscription<MarkdownEditorActionRegistration[]>;
546
553
  onMutatedEditor: import("@omnia/fx").MessageBusExposeOnlySubscription<HTMLDivElement>;
554
+ onMutatedSelectedPluginNodes: import("@omnia/fx").MessageBusExposeOnlySubscription<Node[]>;
547
555
  onMutatedTelePorts: import("@omnia/fx").MessageBusExposeOnlySubscription<JSX.Element[]>;
548
556
  onMutatedId: import("@omnia/fx").MessageBusExposeOnlySubscription<string>;
549
557
  onMutatedSelectedRange: import("@omnia/fx").MessageBusExposeOnlySubscription<Range>;
@@ -553,9 +561,6 @@ export declare const useMarkdownToolbarStore: () => {
553
561
  registerPlugin: {
554
562
  subscribe(fn: (pluginSettings: import("@omnia/fx-models").MarkdownPluginSettings) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
555
563
  };
556
- toHtml: {
557
- subscribe(fn: (markdown: string) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
558
- };
559
564
  toMarkdown: {
560
565
  subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
561
566
  };
@@ -588,11 +593,8 @@ export declare const useMarkdownToolbarStore: () => {
588
593
  registerPlugin: {
589
594
  subscribe(fn: (result: void, pluginSettings: import("@omnia/fx-models").MarkdownPluginSettings) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
590
595
  };
591
- toHtml: {
592
- subscribe(fn: (result: string, markdown: string) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
593
- };
594
596
  toMarkdown: {
595
- subscribe(fn: (result: void) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
597
+ subscribe(fn: (result: string) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
596
598
  };
597
599
  setContent: {
598
600
  subscribe(fn: (result: void, markdown: string) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
@@ -613,9 +615,9 @@ export declare const useMarkdownToolbarStore: () => {
613
615
  };
614
616
  formatting: {
615
617
  subscribe(fn: (result: {
616
- add: (element: HTMLElement, toggleIfExists?: boolean) => void;
617
- toggle: (element: HTMLElement) => void;
618
- remove: (element: HTMLElement, toggleIfExists?: boolean) => void;
618
+ add: (element: HTMLElement, toogleIfExists?: boolean, matchByDataTypeOnly?: boolean) => void;
619
+ toggle: (element: HTMLElement, matchByDataTypeOnly?: boolean) => void;
620
+ remove: (element: HTMLElement, matchByDataTypeOnly?: boolean) => void;
619
621
  }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
620
622
  };
621
623
  element: {
@@ -636,9 +638,6 @@ export declare const useMarkdownToolbarStore: () => {
636
638
  registerPlugin: {
637
639
  subscribe(fn: (failureReason: any, pluginSettings: import("@omnia/fx-models").MarkdownPluginSettings) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
638
640
  };
639
- toHtml: {
640
- subscribe(fn: (failureReason: any, markdown: string) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
641
- };
642
641
  toMarkdown: {
643
642
  subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
644
643
  };
@@ -669,8 +668,7 @@ export declare const useMarkdownToolbarStore: () => {
669
668
  };
670
669
  } & {
671
670
  registerPlugin: (pluginSettings: import("@omnia/fx-models").MarkdownPluginSettings) => void;
672
- toHtml: (markdown: string) => string;
673
- toMarkdown: () => void;
671
+ toMarkdown: () => string;
674
672
  setContent: (markdown: string) => void;
675
673
  setEditorMode: (editMode: boolean) => void;
676
674
  setEditorContainer: (el: HTMLDivElement) => void;
@@ -679,9 +677,9 @@ export declare const useMarkdownToolbarStore: () => {
679
677
  add: (action: MarkdownEditorActionRegistration | MarkdownEditorActionRegistration[]) => void;
680
678
  };
681
679
  formatting: () => {
682
- add: (element: HTMLElement, toggleIfExists?: boolean) => void;
683
- toggle: (element: HTMLElement) => void;
684
- remove: (element: HTMLElement, toggleIfExists?: boolean) => void;
680
+ add: (element: HTMLElement, toogleIfExists?: boolean, matchByDataTypeOnly?: boolean) => void;
681
+ toggle: (element: HTMLElement, matchByDataTypeOnly?: boolean) => void;
682
+ remove: (element: HTMLElement, matchByDataTypeOnly?: boolean) => void;
685
683
  };
686
684
  element: () => {
687
685
  createForComponent: (componentName: string) => HTMLDivElement;
@@ -695,6 +693,16 @@ export declare const useMarkdownToolbarStore: () => {
695
693
  };
696
694
  get: {
697
695
  plugins: import("../models/MarkdownPlugin").MarkdownPlugin[];
696
+ selection: {
697
+ has: {
698
+ dataType: (dataType: string) => boolean;
699
+ elementName: (elementName: string) => boolean;
700
+ };
701
+ get: {
702
+ byDataType: (dataType: string) => Node;
703
+ byElementName: (elementName: string) => Node;
704
+ };
705
+ };
698
706
  };
699
707
  } & {
700
708
  dispose?: () => void;
@@ -712,6 +720,7 @@ export declare const useMarkdownToolbarStore: () => {
712
720
  editMode: boolean;
713
721
  toolbarActions: MarkdownEditorActionRegistration[];
714
722
  editor: HTMLDivElement;
723
+ selectedPluginNodes: Node[];
715
724
  telePorts: JSX.Element[];
716
725
  id: string;
717
726
  selectedRange: Range;
@@ -721,6 +730,7 @@ export declare const useMarkdownToolbarStore: () => {
721
730
  onMutatedEditMode: import("@omnia/fx").MessageBusExposeOnlySubscription<boolean>;
722
731
  onMutatedToolbarActions: import("@omnia/fx").MessageBusExposeOnlySubscription<MarkdownEditorActionRegistration[]>;
723
732
  onMutatedEditor: import("@omnia/fx").MessageBusExposeOnlySubscription<HTMLDivElement>;
733
+ onMutatedSelectedPluginNodes: import("@omnia/fx").MessageBusExposeOnlySubscription<Node[]>;
724
734
  onMutatedTelePorts: import("@omnia/fx").MessageBusExposeOnlySubscription<JSX.Element[]>;
725
735
  onMutatedId: import("@omnia/fx").MessageBusExposeOnlySubscription<string>;
726
736
  onMutatedSelectedRange: import("@omnia/fx").MessageBusExposeOnlySubscription<Range>;
@@ -730,9 +740,6 @@ export declare const useMarkdownToolbarStore: () => {
730
740
  registerPlugin: {
731
741
  subscribe(fn: (pluginSettings: import("@omnia/fx-models").MarkdownPluginSettings) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
732
742
  };
733
- toHtml: {
734
- subscribe(fn: (markdown: string) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
735
- };
736
743
  toMarkdown: {
737
744
  subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
738
745
  };
@@ -765,11 +772,8 @@ export declare const useMarkdownToolbarStore: () => {
765
772
  registerPlugin: {
766
773
  subscribe(fn: (result: void, pluginSettings: import("@omnia/fx-models").MarkdownPluginSettings) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
767
774
  };
768
- toHtml: {
769
- subscribe(fn: (result: string, markdown: string) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
770
- };
771
775
  toMarkdown: {
772
- subscribe(fn: (result: void) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
776
+ subscribe(fn: (result: string) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
773
777
  };
774
778
  setContent: {
775
779
  subscribe(fn: (result: void, markdown: string) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
@@ -790,9 +794,9 @@ export declare const useMarkdownToolbarStore: () => {
790
794
  };
791
795
  formatting: {
792
796
  subscribe(fn: (result: {
793
- add: (element: HTMLElement, toggleIfExists?: boolean) => void;
794
- toggle: (element: HTMLElement) => void;
795
- remove: (element: HTMLElement, toggleIfExists?: boolean) => void;
797
+ add: (element: HTMLElement, toogleIfExists?: boolean, matchByDataTypeOnly?: boolean) => void;
798
+ toggle: (element: HTMLElement, matchByDataTypeOnly?: boolean) => void;
799
+ remove: (element: HTMLElement, matchByDataTypeOnly?: boolean) => void;
796
800
  }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
797
801
  };
798
802
  element: {
@@ -813,9 +817,6 @@ export declare const useMarkdownToolbarStore: () => {
813
817
  registerPlugin: {
814
818
  subscribe(fn: (failureReason: any, pluginSettings: import("@omnia/fx-models").MarkdownPluginSettings) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
815
819
  };
816
- toHtml: {
817
- subscribe(fn: (failureReason: any, markdown: string) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
818
- };
819
820
  toMarkdown: {
820
821
  subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
821
822
  };
@@ -846,8 +847,7 @@ export declare const useMarkdownToolbarStore: () => {
846
847
  };
847
848
  } & {
848
849
  registerPlugin: (pluginSettings: import("@omnia/fx-models").MarkdownPluginSettings) => void;
849
- toHtml: (markdown: string) => string;
850
- toMarkdown: () => void;
850
+ toMarkdown: () => string;
851
851
  setContent: (markdown: string) => void;
852
852
  setEditorMode: (editMode: boolean) => void;
853
853
  setEditorContainer: (el: HTMLDivElement) => void;
@@ -856,9 +856,9 @@ export declare const useMarkdownToolbarStore: () => {
856
856
  add: (action: MarkdownEditorActionRegistration | MarkdownEditorActionRegistration[]) => void;
857
857
  };
858
858
  formatting: () => {
859
- add: (element: HTMLElement, toggleIfExists?: boolean) => void;
860
- toggle: (element: HTMLElement) => void;
861
- remove: (element: HTMLElement, toggleIfExists?: boolean) => void;
859
+ add: (element: HTMLElement, toogleIfExists?: boolean, matchByDataTypeOnly?: boolean) => void;
860
+ toggle: (element: HTMLElement, matchByDataTypeOnly?: boolean) => void;
861
+ remove: (element: HTMLElement, matchByDataTypeOnly?: boolean) => void;
862
862
  };
863
863
  element: () => {
864
864
  createForComponent: (componentName: string) => HTMLDivElement;
@@ -872,6 +872,16 @@ export declare const useMarkdownToolbarStore: () => {
872
872
  };
873
873
  get: {
874
874
  plugins: import("../models/MarkdownPlugin").MarkdownPlugin[];
875
+ selection: {
876
+ has: {
877
+ dataType: (dataType: string) => boolean;
878
+ elementName: (elementName: string) => boolean;
879
+ };
880
+ get: {
881
+ byDataType: (dataType: string) => Node;
882
+ byElementName: (elementName: string) => Node;
883
+ };
884
+ };
875
885
  };
876
886
  } & {
877
887
  dispose?: () => void;
@@ -1,11 +1,20 @@
1
- import { DataTableHeader, DefineEmit, DefineProp, DefinePropTheming, DefineSlot, DefineVModel, IDataTableRowRenderer, SortItem } from "@omnia/fx/ux";
2
- import { ComponentPublicInstance } from "vue";
1
+ import { ConstructComponentProps, DataTableHeader, DefineEmit, DefineProp, DefinePropTheming, DefineSlot, DefineVModel, IDataTableRowRenderer, SortItem } from "@omnia/fx/ux";
2
+ import { ComponentPublicInstance, TdHTMLAttributes, VNodeChild } from "vue";
3
+ import { PublicDataTableRowProps } from "./RowRenderer";
4
+ type CellElement = (props: ConstructComponentProps<Pick<TdHTMLAttributes, "colspan" | "rowspan" | "headers">>) => any;
5
+ type RowElement = (props: ConstructComponentProps<PublicDataTableRowProps>) => any;
6
+ export interface IDataTableRow<T = any> {
7
+ value: T;
8
+ index: number;
9
+ Row: RowElement;
10
+ Cell: CellElement;
11
+ }
3
12
  declare const defaultHeaders: DataTableHeader[];
4
13
  declare const defaultItems: any[];
5
- export type DataTableProps<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<"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<"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<"showLoadMore", boolean, false, false, "Shows the button to fetch more data."> & DefineProp<"itemsPerPage", number, false, -1, "Changes how many items per page should be visible. If set a paging footer is displayed."> & DefineProp<"headers", DataTableHeader[], false, typeof defaultHeaders, "An array of objects that each describe a header column."> & DefineVModel<"items", T[], false, typeof defaultItems, false, "An array of strings or objects used for automatically generating children components."> & DefineEmit<"update:sortBy", (item: SortItem[]) => void> & DefineEmit<"update:expanded", (expanded: string[]) => void> & DefineEmit<"update:sortBy", (sort: SortItem[]) => void> & DefineEmit<"click:loadMore", () => void> & DefineSlot<"item", (row: IDataTableRowRenderer<T>) => void> & DefineSlot<`header.${string}`, (header: DataTableHeader) => void> & DefineSlot<`item.${string}`, (e: {
14
+ export type DataTableProps<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<"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<"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<"showLoadMore", boolean, false, false, "Shows the button to fetch more data."> & DefineProp<"itemsPerPage", number, false, -1, "Changes how many items per page should be visible. If set a paging footer is displayed."> & 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:sortBy", (item: SortItem[]) => void> & DefineEmit<"update:expanded", (expanded: string[]) => void> & DefineEmit<"update:sortBy", (sort: SortItem[]) => void> & DefineEmit<"click:loadMore", () => void> & DefineSlot<"item", (row: IDataTableRowRenderer<T>) => void> & DefineSlot<"row", (row: IDataTableRow<T>) => VNodeChild> & DefineSlot<`header.${string}`, (header: DataTableHeader) => void> & DefineSlot<`item.${string}`, (e: {
6
15
  item: T;
7
16
  }) => void>;
8
- declare const _default: <T extends unknown>(props: import("@omnia/fx/ux").ConstructComponentProps<DataTableProps<T>>) => {
17
+ declare const _default: <T extends unknown>(props: ConstructComponentProps<DataTableProps<T>>) => {
9
18
  $: import("vue").ComponentInternalInstance;
10
19
  $data: {};
11
20
  $props: {};
@@ -50,9 +59,10 @@ declare const _default: <T extends unknown>(props: import("@omnia/fx/ux").Constr
50
59
  item: T;
51
60
  }) => void;
52
61
  item?: (row: IDataTableRowRenderer<T>) => void;
62
+ row?: (row: IDataTableRow<T>) => VNodeChild;
53
63
  } & Omit<{
54
64
  default?: import("vue").Slot;
55
- }, "item" | `header.${string}` | `item.${string}`>;
65
+ }, "row" | "item" | `header.${string}` | `item.${string}`>;
56
66
  } & {
57
67
  "onUpdate:expanded"?: (expanded: string[]) => any;
58
68
  "onUpdate:sortBy"?: (item: SortItem[]) => any;
@@ -1,5 +1,5 @@
1
1
  import { IIcon } from "@omnia/fx-models";
2
- import { IDataTableRowRenderer } from "@omnia/fx/ux";
2
+ import { DefineEmit, DefineProp, DefineSlot, IDataTableRowRenderer } from "@omnia/fx/ux";
3
3
  import { VNodeChild } from "vue";
4
4
  export declare class DataTableRowRenderer implements IDataTableRowRenderer {
5
5
  value: any;
@@ -25,3 +25,75 @@ export declare class DataTableRowRenderer implements IDataTableRowRenderer {
25
25
  addIcon(icon: IIcon): void;
26
26
  addAction(node: VNodeChild): Pick<IDataTableRowRenderer, "addCell" | "addAction">;
27
27
  }
28
+ export type PublicDataTableRowProps = DefineProp<"active", boolean, false, false> & DefineProp<"remove", boolean, false, false> & DefineProp<"icon", IIcon> & DefineSlot<"actions", () => VNodeChild>;
29
+ declare const _default: (props: import("@omnia/fx/ux").ConstructComponentProps<{
30
+ active?: boolean;
31
+ } & {
32
+ remove?: boolean;
33
+ } & {
34
+ icon?: IIcon;
35
+ } & DefineSlot<"actions", () => VNodeChild> & DefineEmit<"click:navigation", (e: MouseEvent) => void> & {
36
+ drag?: boolean;
37
+ } & {
38
+ draggableIcon?: () => VNodeChild;
39
+ }>) => {
40
+ $: import("vue").ComponentInternalInstance;
41
+ $data: {};
42
+ $props: {};
43
+ $attrs: {
44
+ [x: string]: unknown;
45
+ };
46
+ $refs: {
47
+ [x: string]: unknown;
48
+ };
49
+ $slots: Readonly<{
50
+ [name: string]: import("vue").Slot<any>;
51
+ }>;
52
+ $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>;
53
+ $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>;
54
+ $emit: (event: string, ...args: any[]) => void;
55
+ $el: any;
56
+ $options: import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}> & {
57
+ beforeCreate?: (() => void) | (() => void)[];
58
+ created?: (() => void) | (() => void)[];
59
+ beforeMount?: (() => void) | (() => void)[];
60
+ mounted?: (() => void) | (() => void)[];
61
+ beforeUpdate?: (() => void) | (() => void)[];
62
+ updated?: (() => void) | (() => void)[];
63
+ activated?: (() => void) | (() => void)[];
64
+ deactivated?: (() => void) | (() => void)[];
65
+ beforeDestroy?: (() => void) | (() => void)[];
66
+ beforeUnmount?: (() => void) | (() => void)[];
67
+ destroyed?: (() => void) | (() => void)[];
68
+ unmounted?: (() => void) | (() => void)[];
69
+ renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
70
+ renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
71
+ errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>, info: string) => boolean | void)[];
72
+ };
73
+ $forceUpdate: () => void;
74
+ $nextTick: typeof import("vue").nextTick;
75
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R, args_2: (cleanupFn: () => void) => void) => any : (args_0: any, args_1: any, args_2: (cleanupFn: () => void) => void) => any, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
76
+ } & Omit<{}, never> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {} & {
77
+ propsDefinition: import("@omnia/fx/ux").ExtractProps<{
78
+ active?: boolean;
79
+ } & {
80
+ remove?: boolean;
81
+ } & {
82
+ icon?: IIcon;
83
+ } & DefineSlot<"actions", () => VNodeChild> & DefineEmit<"click:navigation", (e: MouseEvent) => void> & {
84
+ drag?: boolean;
85
+ } & {
86
+ draggableIcon?: () => VNodeChild;
87
+ }> & {
88
+ "v-slots"?: {
89
+ actions?: () => VNodeChild;
90
+ } & Omit<{
91
+ default?: import("vue").Slot;
92
+ }, "actions">;
93
+ } & {
94
+ "onClick:navigation"?: (e: MouseEvent) => any;
95
+ } & Omit<import("@omnia/fx/ux").VueComponentBaseProps, "icon" | "drag" | "active" | "remove" | "draggableIcon">;
96
+ } & import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
97
+ [key: string]: any;
98
+ }>;
99
+ export default _default;