@omnia/fx 8.0.276-dev → 8.0.277-dev

Sign up to get free protection for your applications and to get access to all the features.
Files changed (28) hide show
  1. package/internal-do-not-import-from-here/ux/admin/businessprofile/settings/language/LanguageSettings.d.ts +4 -1
  2. package/internal-do-not-import-from-here/ux/admin/businessprofile/settings/language/loc/localize.d.ts +1 -0
  3. package/internal-do-not-import-from-here/ux/admin/settings/blades/tenantregional/components/LanguageSettings.d.ts +4 -1
  4. package/internal-do-not-import-from-here/ux/admin/settings/blades/tenantregional/loc/localize.d.ts +1 -0
  5. package/internal-do-not-import-from-here/ux/enterpriseproperties/renderers/EnterprisePropertyValue.d.ts +1 -1
  6. package/internal-do-not-import-from-here/ux/flow/editor/FlowEditor.d.ts +0 -2
  7. package/internal-do-not-import-from-here/ux/flow/editor/FlowEditorToolbar.css.d.ts +1 -0
  8. package/internal-do-not-import-from-here/ux/flow/editor/commands/helpers/index.d.ts +1 -1
  9. package/internal-do-not-import-from-here/ux/flow/editor/models/EditorPlugin.d.ts +2 -2
  10. package/internal-do-not-import-from-here/ux/flow/editor/parsers/HtmlParser.d.ts +1 -1
  11. package/internal-do-not-import-from-here/ux/flow/editor/parsers/JSONParser.d.ts +1 -1
  12. package/internal-do-not-import-from-here/ux/flow/editor/stores/FlowEditorStore.d.ts +5 -7
  13. package/internal-do-not-import-from-here/ux/flow/editor/stores/FlowEditorToolbarStore.d.ts +24 -31
  14. package/internal-do-not-import-from-here/ux/mediapickerproviders/unsplash/Handler.d.ts +6 -0
  15. package/internal-do-not-import-from-here/ux/oxide/expansionpanel/ExpansionPanel.d.ts +1 -1
  16. package/internal-do-not-import-from-here/ux/oxide/expansionpanel/ExpansionPanels.d.ts +9 -3
  17. package/internal-do-not-import-from-here/ux/properties/property-picker/PropertyInput.d.ts +0 -18
  18. package/internal-do-not-import-from-here/ux/use/UseDraggable.d.ts +29 -1
  19. package/internal-do-not-import-from-here/ux/velcron/core/models/VelcronDefinitions.d.ts +7 -4
  20. package/internal-do-not-import-from-here/ux/velcron/core/models/VelcronPropertyEditorDefinitions.d.ts +4 -3
  21. package/internal-do-not-import-from-here/ux/velcron/core/models/VelcronState.d.ts +8 -0
  22. package/internal-do-not-import-from-here/ux/velcron/core/templatebuilder/VelcronEditorBuilder.d.ts +1 -1
  23. package/internal-do-not-import-from-here/ux/velcron/editor/models/ComponentPropertyDescriptorTemplates.d.ts +2 -0
  24. package/internal-do-not-import-from-here/ux/velcron/editor/templates/ContentTemplates.d.ts +2 -0
  25. package/internal-do-not-import-from-here/ux/velcron/renderer/VelcronRenderer.d.ts +1 -1
  26. package/internal-do-not-import-from-here/ux/velcron/renderer/editors/PropertyResolverEditor.d.ts +5 -5
  27. package/package.json +2 -2
  28. /package/internal-do-not-import-from-here/ux/flow/editor/commands/helpers/{Editorhelper.d.ts → EditorHelper.d.ts} +0 -0
@@ -1,2 +1,5 @@
1
- declare const _default: (props: import("@omnia/fx/ux").ConstructComponentProps<Record<string, any>>) => any;
1
+ import { BusinessProfileLanguageSettings } from "@omnia/fx-models";
2
+ declare const _default: (props: import("@omnia/fx/ux").ConstructComponentProps<{
3
+ settings?: BusinessProfileLanguageSettings;
4
+ }>) => any;
2
5
  export default _default;
@@ -7,5 +7,6 @@ export declare namespace LanguageLocalization {
7
7
  Language: string;
8
8
  AddLanguage: string;
9
9
  ExcludeCountry: string;
10
+ LanguageDefault: string;
10
11
  }
11
12
  }
@@ -1,2 +1,5 @@
1
- declare const _default: (props: import("@omnia/fx/ux").ConstructComponentProps<Record<string, any>>) => any;
1
+ import { TenantLanguageSettings } from "@omnia/fx-models";
2
+ declare const _default: (props: import("@omnia/fx/ux").ConstructComponentProps<{
3
+ settings?: TenantLanguageSettings;
4
+ }>) => any;
2
5
  export default _default;
@@ -14,5 +14,6 @@ export declare namespace TenantRegionalLocalization {
14
14
  Hour24: string;
15
15
  Hour12: string;
16
16
  ExcludeCountry: string;
17
+ LanguageDefault: string;
17
18
  }
18
19
  }
@@ -635,10 +635,10 @@ declare const _default: {
635
635
  } & {
636
636
  renderer?: () => VNodeChild | void;
637
637
  };
638
- editMode?: boolean;
639
638
  wrapWithParentContent?: (internalName: string, propertyContent: JSX.Element) => JSX.Element;
640
639
  displaySettings?: EnterprisePropertiesDisplaySettings;
641
640
  editorSettings?: EnterprisePropertyEditorSettings<import("@omnia/fx-models").EnterprisePropertyItemSettings>;
641
+ editMode?: boolean;
642
642
  }>, never>;
643
643
  };
644
644
  export default _default;
@@ -14,8 +14,6 @@ declare const _default: (props: import("@omnia/fx/ux").ConstructComponentProps<{
14
14
  placeholder?: string;
15
15
  } & {
16
16
  toolbar?: boolean;
17
- } & {
18
- edit?: boolean;
19
17
  } & {
20
18
  getApi?: (store: ReturnType<typeof useFlowEditorStore>) => void;
21
19
  } & {
@@ -1,5 +1,6 @@
1
1
  export declare const FlowEditorToolbarStyles: {
2
2
  wrapper: string;
3
+ transparent: string;
3
4
  divider: string;
4
5
  show: string;
5
6
  hide: string;
@@ -1,3 +1,3 @@
1
1
  export * from "./EditorNodeHelper";
2
- export * from "./Editorhelper";
2
+ export * from "./EditorHelper";
3
3
  export * from "./HtmlNodehelper";
@@ -1,4 +1,4 @@
1
- import { FlowEditorActionRegistration } from "@omnia/fx-models";
1
+ import { FlowEditorActionRegistration, Future } from "@omnia/fx-models";
2
2
  import { FlowEditorStore, FlowEditorToolbarStore, useColorSchemaStore } from "@omnia/fx/ux";
3
3
  import { FlowNode } from "@omnia/fx/ux";
4
4
  export interface FlowEditorPlugin {
@@ -33,7 +33,7 @@ export interface ElementConverter {
33
33
  }
34
34
  export interface FlowEditorContentPlugin extends FlowEditorPlugin {
35
35
  toJSON: <TElementType extends HTMLElement = HTMLElement>(context: FlowToJsonContext<TElementType>) => FlowNode;
36
- toHtml: <TNodeType extends FlowNode = FlowNode>(context: FlowToHtmlContext<TNodeType>) => HTMLElement;
36
+ toHtml: <TNodeType extends FlowNode = FlowNode>(context: FlowToHtmlContext<TNodeType>) => HTMLElement | Future<HTMLElement> | Promise<HTMLElement>;
37
37
  elementConverter?: ElementConverter;
38
38
  }
39
39
  export interface FlowEditorPluginHook extends FlowEditorPlugin {
@@ -4,5 +4,5 @@ export declare function useHtmlParser(state: {
4
4
  editor: HTMLDivElement;
5
5
  plugins: Array<FlowEditorPlugin>;
6
6
  }): {
7
- toJSON: () => FlowContent;
7
+ toJSON: () => Promise<FlowContent | undefined>;
8
8
  };
@@ -4,5 +4,5 @@ export declare function useJSONParser(state: {
4
4
  editor: HTMLDivElement;
5
5
  plugins: Array<FlowEditorPlugin>;
6
6
  }, pluginContext: FlowEditorPluginContext): {
7
- loadJSONToEditor: (editorContent: FlowContent) => any;
7
+ loadJSONToEditor: (editorContent: FlowContent) => Promise<any>;
8
8
  };
@@ -1,12 +1,12 @@
1
- import { FlowEditorActionRegistration, FlowEditorPluginSettings, guid } from "@omnia/fx-models";
1
+ import { FlowEditorActionRegistration, FlowEditorPluginSettings, guid, Future } from "@omnia/fx-models";
2
2
  import { FlowEditorPlugin, FlowEditorPluginContext, NodeSelection } from "../models";
3
3
  import { FlowContent } from "@omnia/fx/ux";
4
4
  export declare const useFlowEditorStore: () => {
5
5
  state: {
6
6
  editorContent: FlowContent;
7
7
  plugins: FlowEditorPlugin[];
8
+ pluginsLoadedPromise: Future<void>;
8
9
  hideToolbar: boolean;
9
- editMode: boolean;
10
10
  maxNodeId: number;
11
11
  toolbarActions: FlowEditorActionRegistration[];
12
12
  editor: HTMLDivElement;
@@ -25,8 +25,8 @@ export declare const useFlowEditorStore: () => {
25
25
  events: {
26
26
  onMutatedEditorContent: import("@omnia/fx").MessageBusExposeOnlySubscription<FlowContent>;
27
27
  onMutatedPlugins: import("@omnia/fx").MessageBusExposeOnlySubscription<FlowEditorPlugin[]>;
28
+ onMutatedPluginsLoadedPromise: import("@omnia/fx").MessageBusExposeOnlySubscription<Future<void>>;
28
29
  onMutatedHideToolbar: import("@omnia/fx").MessageBusExposeOnlySubscription<boolean>;
29
- onMutatedEditMode: import("@omnia/fx").MessageBusExposeOnlySubscription<boolean>;
30
30
  onMutatedMaxNodeId: import("@omnia/fx").MessageBusExposeOnlySubscription<number>;
31
31
  onMutatedToolbarActions: import("@omnia/fx").MessageBusExposeOnlySubscription<FlowEditorActionRegistration[]>;
32
32
  onMutatedEditor: import("@omnia/fx").MessageBusExposeOnlySubscription<HTMLDivElement>;
@@ -88,7 +88,7 @@ export declare const useFlowEditorStore: () => {
88
88
  };
89
89
  content: {
90
90
  subscribe(fn: (result: {
91
- sync: () => FlowContent;
91
+ sync: () => void;
92
92
  set: {
93
93
  byObject: (content: FlowContent) => void;
94
94
  byString: (content: string) => void;
@@ -97,7 +97,6 @@ export declare const useFlowEditorStore: () => {
97
97
  };
98
98
  set: {
99
99
  subscribe(fn: (result: {
100
- mode: (editMode: boolean) => void;
101
100
  container: (el: HTMLDivElement) => void;
102
101
  focus: () => void;
103
102
  placeHolderVisibility: () => void;
@@ -263,14 +262,13 @@ export declare const useFlowEditorStore: () => {
263
262
  };
264
263
  };
265
264
  content: () => {
266
- sync: () => FlowContent;
265
+ sync: () => void;
267
266
  set: {
268
267
  byObject: (content: FlowContent) => void;
269
268
  byString: (content: string) => void;
270
269
  };
271
270
  };
272
271
  set: () => {
273
- mode: (editMode: boolean) => void;
274
272
  container: (el: HTMLDivElement) => void;
275
273
  focus: () => void;
276
274
  placeHolderVisibility: () => void;
@@ -6,8 +6,8 @@ export declare const useFlowEditorToolbarStore: () => {
6
6
  state: {
7
7
  editorContent: import("../../..").FlowContent;
8
8
  plugins: import("..").FlowEditorPlugin[];
9
+ pluginsLoadedPromise: import("@omnia/fx-models").Future<void>;
9
10
  hideToolbar: boolean;
10
- editMode: boolean;
11
11
  maxNodeId: number;
12
12
  toolbarActions: FlowEditorActionRegistration[];
13
13
  editor: HTMLDivElement;
@@ -26,8 +26,8 @@ export declare const useFlowEditorToolbarStore: () => {
26
26
  events: {
27
27
  onMutatedEditorContent: import("@omnia/fx").MessageBusExposeOnlySubscription<import("../../..").FlowContent>;
28
28
  onMutatedPlugins: import("@omnia/fx").MessageBusExposeOnlySubscription<import("..").FlowEditorPlugin[]>;
29
+ onMutatedPluginsLoadedPromise: import("@omnia/fx").MessageBusExposeOnlySubscription<import("@omnia/fx-models").Future<void>>;
29
30
  onMutatedHideToolbar: import("@omnia/fx").MessageBusExposeOnlySubscription<boolean>;
30
- onMutatedEditMode: import("@omnia/fx").MessageBusExposeOnlySubscription<boolean>;
31
31
  onMutatedMaxNodeId: import("@omnia/fx").MessageBusExposeOnlySubscription<number>;
32
32
  onMutatedToolbarActions: import("@omnia/fx").MessageBusExposeOnlySubscription<FlowEditorActionRegistration[]>;
33
33
  onMutatedEditor: import("@omnia/fx").MessageBusExposeOnlySubscription<HTMLDivElement>;
@@ -89,7 +89,7 @@ export declare const useFlowEditorToolbarStore: () => {
89
89
  };
90
90
  content: {
91
91
  subscribe(fn: (result: {
92
- sync: () => import("../../..").FlowContent;
92
+ sync: () => void;
93
93
  set: {
94
94
  byObject: (content: import("../../..").FlowContent) => void;
95
95
  byString: (content: string) => void;
@@ -98,7 +98,6 @@ export declare const useFlowEditorToolbarStore: () => {
98
98
  };
99
99
  set: {
100
100
  subscribe(fn: (result: {
101
- mode: (editMode: boolean) => void;
102
101
  container: (el: HTMLDivElement) => void;
103
102
  focus: () => void;
104
103
  placeHolderVisibility: () => void;
@@ -264,14 +263,13 @@ export declare const useFlowEditorToolbarStore: () => {
264
263
  };
265
264
  };
266
265
  content: () => {
267
- sync: () => import("../../..").FlowContent;
266
+ sync: () => void;
268
267
  set: {
269
268
  byObject: (content: import("../../..").FlowContent) => void;
270
269
  byString: (content: string) => void;
271
270
  };
272
271
  };
273
272
  set: () => {
274
- mode: (editMode: boolean) => void;
275
273
  container: (el: HTMLDivElement) => void;
276
274
  focus: () => void;
277
275
  placeHolderVisibility: () => void;
@@ -420,8 +418,8 @@ export declare const useFlowEditorToolbarStore: () => {
420
418
  state: {
421
419
  editorContent: import("../../..").FlowContent;
422
420
  plugins: import("..").FlowEditorPlugin[];
421
+ pluginsLoadedPromise: import("@omnia/fx-models").Future<void>;
423
422
  hideToolbar: boolean;
424
- editMode: boolean;
425
423
  maxNodeId: number;
426
424
  toolbarActions: FlowEditorActionRegistration[];
427
425
  editor: HTMLDivElement;
@@ -440,8 +438,8 @@ export declare const useFlowEditorToolbarStore: () => {
440
438
  events: {
441
439
  onMutatedEditorContent: import("@omnia/fx").MessageBusExposeOnlySubscription<import("../../..").FlowContent>;
442
440
  onMutatedPlugins: import("@omnia/fx").MessageBusExposeOnlySubscription<import("..").FlowEditorPlugin[]>;
441
+ onMutatedPluginsLoadedPromise: import("@omnia/fx").MessageBusExposeOnlySubscription<import("@omnia/fx-models").Future<void>>;
443
442
  onMutatedHideToolbar: import("@omnia/fx").MessageBusExposeOnlySubscription<boolean>;
444
- onMutatedEditMode: import("@omnia/fx").MessageBusExposeOnlySubscription<boolean>;
445
443
  onMutatedMaxNodeId: import("@omnia/fx").MessageBusExposeOnlySubscription<number>;
446
444
  onMutatedToolbarActions: import("@omnia/fx").MessageBusExposeOnlySubscription<FlowEditorActionRegistration[]>;
447
445
  onMutatedEditor: import("@omnia/fx").MessageBusExposeOnlySubscription<HTMLDivElement>;
@@ -503,7 +501,7 @@ export declare const useFlowEditorToolbarStore: () => {
503
501
  };
504
502
  content: {
505
503
  subscribe(fn: (result: {
506
- sync: () => import("../../..").FlowContent;
504
+ sync: () => void;
507
505
  set: {
508
506
  byObject: (content: import("../../..").FlowContent) => void;
509
507
  byString: (content: string) => void;
@@ -512,7 +510,6 @@ export declare const useFlowEditorToolbarStore: () => {
512
510
  };
513
511
  set: {
514
512
  subscribe(fn: (result: {
515
- mode: (editMode: boolean) => void;
516
513
  container: (el: HTMLDivElement) => void;
517
514
  focus: () => void;
518
515
  placeHolderVisibility: () => void;
@@ -678,14 +675,13 @@ export declare const useFlowEditorToolbarStore: () => {
678
675
  };
679
676
  };
680
677
  content: () => {
681
- sync: () => import("../../..").FlowContent;
678
+ sync: () => void;
682
679
  set: {
683
680
  byObject: (content: import("../../..").FlowContent) => void;
684
681
  byString: (content: string) => void;
685
682
  };
686
683
  };
687
684
  set: () => {
688
- mode: (editMode: boolean) => void;
689
685
  container: (el: HTMLDivElement) => void;
690
686
  focus: () => void;
691
687
  placeHolderVisibility: () => void;
@@ -845,8 +841,8 @@ export declare const useFlowEditorToolbarStore: () => {
845
841
  state: {
846
842
  editorContent: import("../../..").FlowContent;
847
843
  plugins: import("..").FlowEditorPlugin[];
844
+ pluginsLoadedPromise: import("@omnia/fx-models").Future<void>;
848
845
  hideToolbar: boolean;
849
- editMode: boolean;
850
846
  maxNodeId: number;
851
847
  toolbarActions: FlowEditorActionRegistration[];
852
848
  editor: HTMLDivElement;
@@ -865,8 +861,8 @@ export declare const useFlowEditorToolbarStore: () => {
865
861
  events: {
866
862
  onMutatedEditorContent: import("@omnia/fx").MessageBusExposeOnlySubscription<import("../../..").FlowContent>;
867
863
  onMutatedPlugins: import("@omnia/fx").MessageBusExposeOnlySubscription<import("..").FlowEditorPlugin[]>;
864
+ onMutatedPluginsLoadedPromise: import("@omnia/fx").MessageBusExposeOnlySubscription<import("@omnia/fx-models").Future<void>>;
868
865
  onMutatedHideToolbar: import("@omnia/fx").MessageBusExposeOnlySubscription<boolean>;
869
- onMutatedEditMode: import("@omnia/fx").MessageBusExposeOnlySubscription<boolean>;
870
866
  onMutatedMaxNodeId: import("@omnia/fx").MessageBusExposeOnlySubscription<number>;
871
867
  onMutatedToolbarActions: import("@omnia/fx").MessageBusExposeOnlySubscription<FlowEditorActionRegistration[]>;
872
868
  onMutatedEditor: import("@omnia/fx").MessageBusExposeOnlySubscription<HTMLDivElement>;
@@ -928,7 +924,7 @@ export declare const useFlowEditorToolbarStore: () => {
928
924
  };
929
925
  content: {
930
926
  subscribe(fn: (result: {
931
- sync: () => import("../../..").FlowContent;
927
+ sync: () => void;
932
928
  set: {
933
929
  byObject: (content: import("../../..").FlowContent) => void;
934
930
  byString: (content: string) => void;
@@ -937,7 +933,6 @@ export declare const useFlowEditorToolbarStore: () => {
937
933
  };
938
934
  set: {
939
935
  subscribe(fn: (result: {
940
- mode: (editMode: boolean) => void;
941
936
  container: (el: HTMLDivElement) => void;
942
937
  focus: () => void;
943
938
  placeHolderVisibility: () => void;
@@ -1103,14 +1098,13 @@ export declare const useFlowEditorToolbarStore: () => {
1103
1098
  };
1104
1099
  };
1105
1100
  content: () => {
1106
- sync: () => import("../../..").FlowContent;
1101
+ sync: () => void;
1107
1102
  set: {
1108
1103
  byObject: (content: import("../../..").FlowContent) => void;
1109
1104
  byString: (content: string) => void;
1110
1105
  };
1111
1106
  };
1112
1107
  set: () => {
1113
- mode: (editMode: boolean) => void;
1114
1108
  container: (el: HTMLDivElement) => void;
1115
1109
  focus: () => void;
1116
1110
  placeHolderVisibility: () => void;
@@ -1270,8 +1264,8 @@ export declare const useFlowEditorToolbarStore: () => {
1270
1264
  state: {
1271
1265
  editorContent: import("../../..").FlowContent;
1272
1266
  plugins: import("..").FlowEditorPlugin[];
1267
+ pluginsLoadedPromise: import("@omnia/fx-models").Future<void>;
1273
1268
  hideToolbar: boolean;
1274
- editMode: boolean;
1275
1269
  maxNodeId: number;
1276
1270
  toolbarActions: FlowEditorActionRegistration[];
1277
1271
  editor: HTMLDivElement;
@@ -1290,8 +1284,8 @@ export declare const useFlowEditorToolbarStore: () => {
1290
1284
  events: {
1291
1285
  onMutatedEditorContent: import("@omnia/fx").MessageBusExposeOnlySubscription<import("../../..").FlowContent>;
1292
1286
  onMutatedPlugins: import("@omnia/fx").MessageBusExposeOnlySubscription<import("..").FlowEditorPlugin[]>;
1287
+ onMutatedPluginsLoadedPromise: import("@omnia/fx").MessageBusExposeOnlySubscription<import("@omnia/fx-models").Future<void>>;
1293
1288
  onMutatedHideToolbar: import("@omnia/fx").MessageBusExposeOnlySubscription<boolean>;
1294
- onMutatedEditMode: import("@omnia/fx").MessageBusExposeOnlySubscription<boolean>;
1295
1289
  onMutatedMaxNodeId: import("@omnia/fx").MessageBusExposeOnlySubscription<number>;
1296
1290
  onMutatedToolbarActions: import("@omnia/fx").MessageBusExposeOnlySubscription<FlowEditorActionRegistration[]>;
1297
1291
  onMutatedEditor: import("@omnia/fx").MessageBusExposeOnlySubscription<HTMLDivElement>;
@@ -1353,7 +1347,7 @@ export declare const useFlowEditorToolbarStore: () => {
1353
1347
  };
1354
1348
  content: {
1355
1349
  subscribe(fn: (result: {
1356
- sync: () => import("../../..").FlowContent;
1350
+ sync: () => void;
1357
1351
  set: {
1358
1352
  byObject: (content: import("../../..").FlowContent) => void;
1359
1353
  byString: (content: string) => void;
@@ -1362,7 +1356,6 @@ export declare const useFlowEditorToolbarStore: () => {
1362
1356
  };
1363
1357
  set: {
1364
1358
  subscribe(fn: (result: {
1365
- mode: (editMode: boolean) => void;
1366
1359
  container: (el: HTMLDivElement) => void;
1367
1360
  focus: () => void;
1368
1361
  placeHolderVisibility: () => void;
@@ -1528,14 +1521,13 @@ export declare const useFlowEditorToolbarStore: () => {
1528
1521
  };
1529
1522
  };
1530
1523
  content: () => {
1531
- sync: () => import("../../..").FlowContent;
1524
+ sync: () => void;
1532
1525
  set: {
1533
1526
  byObject: (content: import("../../..").FlowContent) => void;
1534
1527
  byString: (content: string) => void;
1535
1528
  };
1536
1529
  };
1537
1530
  set: () => {
1538
- mode: (editMode: boolean) => void;
1539
1531
  container: (el: HTMLDivElement) => void;
1540
1532
  focus: () => void;
1541
1533
  placeHolderVisibility: () => void;
@@ -1695,8 +1687,8 @@ export declare const useFlowEditorToolbarStore: () => {
1695
1687
  state: {
1696
1688
  editorContent: import("../../..").FlowContent;
1697
1689
  plugins: import("..").FlowEditorPlugin[];
1690
+ pluginsLoadedPromise: import("@omnia/fx-models").Future<void>;
1698
1691
  hideToolbar: boolean;
1699
- editMode: boolean;
1700
1692
  maxNodeId: number;
1701
1693
  toolbarActions: FlowEditorActionRegistration[];
1702
1694
  editor: HTMLDivElement;
@@ -1715,8 +1707,8 @@ export declare const useFlowEditorToolbarStore: () => {
1715
1707
  events: {
1716
1708
  onMutatedEditorContent: import("@omnia/fx").MessageBusExposeOnlySubscription<import("../../..").FlowContent>;
1717
1709
  onMutatedPlugins: import("@omnia/fx").MessageBusExposeOnlySubscription<import("..").FlowEditorPlugin[]>;
1710
+ onMutatedPluginsLoadedPromise: import("@omnia/fx").MessageBusExposeOnlySubscription<import("@omnia/fx-models").Future<void>>;
1718
1711
  onMutatedHideToolbar: import("@omnia/fx").MessageBusExposeOnlySubscription<boolean>;
1719
- onMutatedEditMode: import("@omnia/fx").MessageBusExposeOnlySubscription<boolean>;
1720
1712
  onMutatedMaxNodeId: import("@omnia/fx").MessageBusExposeOnlySubscription<number>;
1721
1713
  onMutatedToolbarActions: import("@omnia/fx").MessageBusExposeOnlySubscription<FlowEditorActionRegistration[]>;
1722
1714
  onMutatedEditor: import("@omnia/fx").MessageBusExposeOnlySubscription<HTMLDivElement>;
@@ -1778,7 +1770,7 @@ export declare const useFlowEditorToolbarStore: () => {
1778
1770
  };
1779
1771
  content: {
1780
1772
  subscribe(fn: (result: {
1781
- sync: () => import("../../..").FlowContent;
1773
+ sync: () => void;
1782
1774
  set: {
1783
1775
  byObject: (content: import("../../..").FlowContent) => void;
1784
1776
  byString: (content: string) => void;
@@ -1787,7 +1779,6 @@ export declare const useFlowEditorToolbarStore: () => {
1787
1779
  };
1788
1780
  set: {
1789
1781
  subscribe(fn: (result: {
1790
- mode: (editMode: boolean) => void;
1791
1782
  container: (el: HTMLDivElement) => void;
1792
1783
  focus: () => void;
1793
1784
  placeHolderVisibility: () => void;
@@ -1953,14 +1944,13 @@ export declare const useFlowEditorToolbarStore: () => {
1953
1944
  };
1954
1945
  };
1955
1946
  content: () => {
1956
- sync: () => import("../../..").FlowContent;
1947
+ sync: () => void;
1957
1948
  set: {
1958
1949
  byObject: (content: import("../../..").FlowContent) => void;
1959
1950
  byString: (content: string) => void;
1960
1951
  };
1961
1952
  };
1962
1953
  set: () => {
1963
- mode: (editMode: boolean) => void;
1964
1954
  container: (el: HTMLDivElement) => void;
1965
1955
  focus: () => void;
1966
1956
  placeHolderVisibility: () => void;
@@ -2113,7 +2103,10 @@ export declare const useFlowEditorToolbarStore: () => {
2113
2103
  setVisibility: (show: boolean) => void;
2114
2104
  };
2115
2105
  get: {
2116
- isActiveStore(): boolean;
2106
+ is: {
2107
+ activeStore(): boolean;
2108
+ hidden(): boolean;
2109
+ };
2117
2110
  actionsGroupedAndSorted(): FlowEditorActionRegistration[][];
2118
2111
  };
2119
2112
  } & {
@@ -0,0 +1,6 @@
1
+ import { ImageItem } from "@omnia/fx-models";
2
+ import { BaseProviderImageHandler } from "@omnia/fx/stores";
3
+ export declare class UnsplashProviderHandler extends BaseProviderImageHandler {
4
+ private imageService;
5
+ search(searchText: string, offset?: number): Promise<ImageItem[]>;
6
+ }
@@ -1,6 +1,6 @@
1
1
  import { DefineProp, DefinePropTheming, DefineSlot } from "@omnia/fx/ux";
2
2
  import { IIcon } from "@omnia/fx/models";
3
3
  import { VNodeChild } from "vue";
4
- type ExpansionPanelProps = DefinePropTheming & DefineProp<"class", String | String[]> & DefineProp<"title", string, false, null, "The title of the expansion panel."> & DefineProp<"icon", IIcon, false, null, "The icon of the expansion panel."> & DefineProp<"toned", boolean, false, false> & DefineProp<"hideExpandIcon", boolean, false, false, "If true, the expand icon will be hidden."> & DefineProp<"eager", boolean, false, false, "Forces the component’s content to render when it mounts. This is useful if you have content that will not be rendered in the DOM that you want crawled for SEO or you want to disable lazy load."> & DefineSlot<"header", () => VNodeChild> & DefineSlot<"default", () => VNodeChild> & DefineSlot<"actions", () => VNodeChild>;
4
+ type ExpansionPanelProps = DefinePropTheming & DefineProp<"class", String | String[]> & DefineProp<"title", string, false, null, "The title of the expansion panel."> & DefineProp<"icon", IIcon, false, null, "The icon of the expansion panel."> & DefineProp<"toned", boolean, false, false> & DefineProp<"hideExpandIcon", boolean, false, false, "If true, the expand icon will be hidden."> & DefineProp<"eager", boolean, false, false, "Forces the component’s content to render when it mounts. This is useful if you have content that will not be rendered in the DOM that you want crawled for SEO or you want to disable lazy load."> & DefineSlot<"prepend", () => VNodeChild> & DefineSlot<"header", () => VNodeChild> & DefineSlot<"default", () => VNodeChild> & DefineSlot<"actions", () => VNodeChild>;
5
5
  declare const _default: (props: import("@omnia/fx/ux").ConstructComponentProps<ExpansionPanelProps>) => any;
6
6
  export default _default;
@@ -1,5 +1,11 @@
1
1
  import { OPanelTypes } from "@omnia/fx-models";
2
- import { DefineProp, DefinePropTheming, DefineVModel } from "@omnia/fx/ux";
3
- type ExpansionPanelsProps = DefinePropTheming & DefineProp<"class", String | String[]> & DefineVModel<"", number | Array<number>, false, null, false, "The v-model of the component."> & DefineProp<"variant", OPanelTypes, false, null, "Applies a distinct style to the component."> & DefineProp<"expandAll", boolean, false, false, "Expands all panels"> & DefineProp<"mandatory", boolean, false, false, "Forces at least one item to always be selected (if available)."> & DefineProp<"toned", boolean, false, false, "Applies the toned color schema to all panels."> & DefineProp<"multiple", boolean, false, false, "Allows one to select multiple items.">;
4
- declare const _default: (props: import("@omnia/fx/ux").ConstructComponentProps<ExpansionPanelsProps>) => any;
2
+ import { DefineProp, DefinePropTheming, DefineSlot, DefineVModel, ItemValueType } from "@omnia/fx/ux";
3
+ import { VNodeChild } from "vue";
4
+ export interface IExpansionPanel<T> {
5
+ value: T;
6
+ index: number;
7
+ ExpansionPanel: typeof o.expansion.panel;
8
+ }
9
+ type ExpansionPanelsProps<T> = DefinePropTheming & DefineProp<"class", String | String[]> & DefineVModel<"", number | Array<number>, false, null, false, "The v-model of the component."> & DefineVModel<"items", T[], false, null, false, "An array of strings or objects used for automatically generating children components."> & DefineProp<"drag", boolean, false, false, "Enable draggable row."> & DefineProp<"variant", OPanelTypes, false, null, "Applies a distinct style to the component."> & DefineProp<"expandAll", boolean, false, false, "Expands all panels"> & DefineProp<"mandatory", boolean, false, false, "Forces at least one item to always be selected (if available)."> & DefineProp<"toned", boolean, false, false, "Applies the toned color schema to all panels."> & DefineProp<"multiple", boolean, false, false, "Allows one to select multiple items."> & DefineProp<"itemValue", ItemValueType<T>, false, null, "Property on supplied items that contains its value."> & DefineSlot<"item", (item: IExpansionPanel<T>) => VNodeChild>;
10
+ declare const _default: <T extends unknown>(props: import("@omnia/fx/ux").ConstructComponentProps<ExpansionPanelsProps<T>>) => any;
5
11
  export default _default;
@@ -1,4 +1,3 @@
1
- import { guid, PropertyDefinition } from "@omnia/fx-models";
2
1
  import { PropertyRegistration } from "../models/PropertyInput";
3
2
  import { IDataSourcePropertyCreator } from "@omnia/fx/services";
4
3
  declare const _default: {
@@ -15,10 +14,6 @@ declare const _default: {
15
14
  type: import("vue").PropType<PropertyRegistration[]>;
16
15
  required: false;
17
16
  };
18
- selectableProperties: {
19
- type: import("vue").PropType<guid[] | PropertyDefinition<any, any, any, import("@omnia/fx-models").PropertySetupBase>[]>;
20
- required: false;
21
- };
22
17
  hideConfiguration: {
23
18
  type: import("vue").PropType<boolean>;
24
19
  required: false;
@@ -122,10 +117,6 @@ declare const _default: {
122
117
  type: import("vue").PropType<PropertyRegistration[]>;
123
118
  required: false;
124
119
  };
125
- selectableProperties: {
126
- type: import("vue").PropType<guid[] | PropertyDefinition<any, any, any, import("@omnia/fx-models").PropertySetupBase>[]>;
127
- required: false;
128
- };
129
120
  hideConfiguration: {
130
121
  type: import("vue").PropType<boolean>;
131
122
  required: false;
@@ -231,10 +222,6 @@ declare const _default: {
231
222
  type: import("vue").PropType<PropertyRegistration[]>;
232
223
  required: false;
233
224
  };
234
- selectableProperties: {
235
- type: import("vue").PropType<guid[] | PropertyDefinition<any, any, any, import("@omnia/fx-models").PropertySetupBase>[]>;
236
- required: false;
237
- };
238
225
  hideConfiguration: {
239
226
  type: import("vue").PropType<boolean>;
240
227
  required: false;
@@ -337,10 +324,6 @@ declare const _default: {
337
324
  type: import("vue").PropType<PropertyRegistration[]>;
338
325
  required: false;
339
326
  };
340
- selectableProperties: {
341
- type: import("vue").PropType<guid[] | PropertyDefinition<any, any, any, import("@omnia/fx-models").PropertySetupBase>[]>;
342
- required: false;
343
- };
344
327
  hideConfiguration: {
345
328
  type: import("vue").PropType<boolean>;
346
329
  required: false;
@@ -501,7 +484,6 @@ declare const _default: {
501
484
  "onUpdate:modelValue"?: (value: PropertyRegistration) => any | void;
502
485
  hideDetails?: boolean;
503
486
  hideConfiguration?: boolean;
504
- selectableProperties?: guid[] | PropertyDefinition<any, any, any, import("@omnia/fx-models").PropertySetupBase>[];
505
487
  loadingProperties?: boolean;
506
488
  propertyCreator?: IDataSourcePropertyCreator;
507
489
  propertyRegistrations?: PropertyRegistration[];
@@ -8,7 +8,35 @@ export declare const DraggableStyles: {
8
8
  };
9
9
  export declare function useDraggable(): {
10
10
  Draggable: DraggableComponentTypings;
11
- readonly DraggableIcon: JSX.Element;
11
+ readonly DraggableIcon: (props: ConstructComponentProps<{
12
+ colorSchemaType?: "background" | "primary" | "secondary" | import("@omnia/fx-models").ColorSchemaTypes | "accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "neutral" | "warning" | "notification" | "error" | "info" | "success" | "dynamic";
13
+ } & {
14
+ container?: boolean;
15
+ } & {
16
+ colors?: import("..").ColorSchemaStoreType;
17
+ } & {
18
+ class?: String | String[];
19
+ } & {
20
+ filled?: boolean;
21
+ } & {
22
+ icon?: import("@omnia/fx-models").IIcon;
23
+ } & {
24
+ toned?: boolean;
25
+ } & {
26
+ colorType?: "base" | "onBase" | "container" | "onContainer";
27
+ } & {
28
+ variant?: "background" | "default";
29
+ } & {
30
+ size?: "small" | "default" | "x-large" | "x-small" | "large";
31
+ } & {
32
+ animation?: "flip" | "bounce" | "spin" | "beat";
33
+ } & {
34
+ customSize?: number;
35
+ } & {
36
+ disabled?: boolean;
37
+ } & {
38
+ blueprint?: import("@omnia/fx-models").IconBlueprint;
39
+ }>) => any;
12
40
  draggableContainerRef: Ref<any>;
13
41
  draggableItemClass: string;
14
42
  disabledItemClass: string;
@@ -1,4 +1,4 @@
1
- import { VelcronOnUpdatedEvent, VelcronOnClosedEvent, VelcronOnCloseRequestedEvent, VelcronOnPressEvent, VelcronSpacing, VelcronStyling, VelcronCustomComponentDefinition, VelcronAppDefinition, VelcronRendererResolverReference, EventHook, Future, TextBlueprint, VelcronBindableProp, VelcronEditor, ContainerBlueprint, BackgroundDefinition, ContainerVariant, IconBlueprint } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
1
+ import { VelcronOnUpdatedEvent, VelcronOnClosedEvent, VelcronOnCloseRequestedEvent, VelcronOnPressEvent, VelcronSpacing, VelcronStyling, VelcronCustomComponentDefinition, VelcronAppDefinition, VelcronRendererResolverReference, EventHook, Future, TextBlueprint, VelcronBindableProp, VelcronEditor, ContainerBlueprint, BackgroundDefinition, ContainerVariant, IconBlueprint, ButtonBlueprint } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
2
2
  import { VelcroncomponentArrayType, VelcronPrimitiveType } from "./VelcronTypes";
3
3
  import { AssignOperators, VelcronHorizontalAlignments, VelcronIconTypes, VelcronActionTypes, VelcronVerticalAlignments } from "./Enums";
4
4
  import { DynamicState, VelcronDefinition, VelcronEffects, useVelcronThemingStore } from "..";
@@ -240,13 +240,14 @@ export interface VelcronVideoDefinition extends VelcronDefinition {
240
240
  autoplay?: VelcronBindableProp<boolean>;
241
241
  muted?: VelcronBindableProp<boolean>;
242
242
  }
243
- export interface VelcronButtonDefinition extends VelcronDefinition {
243
+ export interface VelcronButtonDefinition extends VelcronDefinition, VelcronColorStyling {
244
244
  type: "button";
245
245
  text: string;
246
246
  icon?: VelcronIcon;
247
247
  disabled?: boolean;
248
248
  events?: VelcronOnPressEvent;
249
249
  size?: string;
250
+ blueprint?: VelcronBindableProp<ButtonBlueprint>;
250
251
  }
251
252
  export interface VelcronTextInputDefinition extends VelcronDefinition {
252
253
  type: "text-input";
@@ -372,8 +373,10 @@ export interface VelcronPropertyDefinitionValue {
372
373
  configuration: PropertyConfiguration<PropertyDefinition<any, any, any, PropertySetupBase>>;
373
374
  }
374
375
  export interface VelcronPropertyDefinitionValueResolver {
375
- name: string;
376
- source: IDataSourcePropertySelection;
376
+ source?: IDataSourcePropertySelection;
377
+ }
378
+ export interface VelcronPropertyEditorValue {
379
+ [key: string]: VelcronPropertyDefinitionValueResolver;
377
380
  }
378
381
  export type VelcronRenderProps<TDefinition> = {
379
382
  definition: TDefinition;
@@ -37,15 +37,16 @@ export interface VelcronNumberEditorSettings {
37
37
  step: number;
38
38
  }
39
39
  export interface VelcronPropertyMapping {
40
- name: string;
40
+ state: string;
41
+ title: string;
41
42
  definitionId: guid;
42
- dataSourceId?: guid;
43
+ dataSourceIds?: guid[];
43
44
  }
44
45
  export interface VelcronPropertyResolverEditorSettings {
45
46
  properties: Array<VelcronPropertyMapping>;
46
47
  }
47
48
  export interface VelcronBlueprintEditorSettings {
48
- type: "container" | "icon";
49
+ type: "container" | "icon" | "button";
49
50
  }
50
51
  export interface VelcronBackgroundEditorSettings {
51
52
  type: "image" | "video";
@@ -71,8 +71,10 @@ export interface VelcronImageState {
71
71
  }
72
72
  export declare const VelcronImagesStateBinding: {
73
73
  main: {
74
+ mediapickerImage: string;
74
75
  editor: string;
75
76
  url: string;
77
+ value: string;
76
78
  ratio: string;
77
79
  caption: string;
78
80
  width: string;
@@ -81,6 +83,7 @@ export declare const VelcronImagesStateBinding: {
81
83
  alt1: {
82
84
  editor: string;
83
85
  url: string;
86
+ value: string;
84
87
  ratio: string;
85
88
  caption: string;
86
89
  width: string;
@@ -89,6 +92,7 @@ export declare const VelcronImagesStateBinding: {
89
92
  alt2: {
90
93
  editor: string;
91
94
  url: string;
95
+ value: string;
92
96
  ratio: string;
93
97
  caption: string;
94
98
  width: string;
@@ -129,8 +133,10 @@ export declare const VelcronStateBinding: {
129
133
  };
130
134
  images: {
131
135
  main: {
136
+ mediapickerImage: string;
132
137
  editor: string;
133
138
  url: string;
139
+ value: string;
134
140
  ratio: string;
135
141
  caption: string;
136
142
  width: string;
@@ -139,6 +145,7 @@ export declare const VelcronStateBinding: {
139
145
  alt1: {
140
146
  editor: string;
141
147
  url: string;
148
+ value: string;
142
149
  ratio: string;
143
150
  caption: string;
144
151
  width: string;
@@ -147,6 +154,7 @@ export declare const VelcronStateBinding: {
147
154
  alt2: {
148
155
  editor: string;
149
156
  url: string;
157
+ value: string;
150
158
  ratio: string;
151
159
  caption: string;
152
160
  width: string;
@@ -3,7 +3,7 @@ export declare class VelcronEditorBuilder {
3
3
  private editors;
4
4
  private formatStateMapping;
5
5
  add(): {
6
- blueprintEditor: (name: string, stateMapping: string, type: "container") => VelcronEditorBuilder;
6
+ blueprintEditor: (name: string, stateMapping: string, type: "container" | "icon" | "button") => VelcronEditorBuilder;
7
7
  spacingEditor: (name: string, stateMapping: string, individualSelection?: boolean) => VelcronEditorBuilder;
8
8
  imageEditor: (name: string, stateMapping: string) => VelcronEditorBuilder;
9
9
  colorSchemaEditor: (name: string, stateMapping: string) => VelcronEditorBuilder;
@@ -2,6 +2,7 @@ import { VelcronComponentPropertyDescriptor } from "./VelcronDescriptors";
2
2
  export declare const ComponentPropertyDescriptorTemplates: {
3
3
  colorSchema: VelcronComponentPropertyDescriptor;
4
4
  containerBlueprint: VelcronComponentPropertyDescriptor;
5
+ buttonBlueprint: VelcronComponentPropertyDescriptor;
5
6
  iconBlueprint: VelcronComponentPropertyDescriptor;
6
7
  margin: VelcronComponentPropertyDescriptor;
7
8
  padding: VelcronComponentPropertyDescriptor;
@@ -10,6 +11,7 @@ export declare const ComponentPropertyDescriptorTemplates: {
10
11
  overflowX: VelcronComponentPropertyDescriptor;
11
12
  overflowY: VelcronComponentPropertyDescriptor;
12
13
  wrap: VelcronComponentPropertyDescriptor;
14
+ wordBreak: VelcronComponentPropertyDescriptor;
13
15
  gapX: VelcronComponentPropertyDescriptor;
14
16
  gapY: VelcronComponentPropertyDescriptor;
15
17
  alignX: VelcronComponentPropertyDescriptor;
@@ -6,4 +6,6 @@ export declare const VelcronContentComponentTemplates: {
6
6
  SummaryTemplate: VelcronComponentTemplateDescriptor;
7
7
  TextTemplate: VelcronComponentTemplateDescriptor;
8
8
  SectionTemplate: VelcronComponentTemplateDescriptor;
9
+ MainImageTemplate: VelcronComponentTemplateDescriptor;
10
+ MainImagePickerTemplate: VelcronComponentTemplateDescriptor;
9
11
  };
@@ -173,8 +173,8 @@ declare const _default: {
173
173
  colorSchemaType?: "background" | "primary" | "secondary" | ColorSchemaTypes | "accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "neutral" | "warning" | "notification" | "error" | "info" | "success" | "dynamic";
174
174
  colors?: import("@omnia/fx/ux").ColorSchemaStoreType;
175
175
  themeDefinition?: ThemeDefinitionV2;
176
- editMode?: boolean;
177
176
  context?: VelcronRenderContext;
177
+ editMode?: boolean;
178
178
  eventHandlers?: VelcronRenderContextEventHandlers;
179
179
  }>, "onSetup:context" | "onState:updated"> & {
180
180
  "onSetup:context"?: (context: VelcronRenderContext) => any;
@@ -1,15 +1,15 @@
1
- import { EditorLocation, VelcronPropertyDefinitionValueResolver, VelcronPropertyResolverEditorSettings } from "@omnia/fx-models";
1
+ import { EditorLocation, VelcronPropertyEditorValue, VelcronPropertyResolverEditorSettings } from "@omnia/fx-models";
2
2
  declare const _default: (props: import("@omnia/fx/ux").ConstructComponentProps<{
3
3
  location?: EditorLocation;
4
4
  } & {
5
5
  settings?: VelcronPropertyResolverEditorSettings;
6
6
  } & {
7
- "emit:update:modelValue": (value: VelcronPropertyDefinitionValueResolver[]) => void;
7
+ "emit:update:modelValue": (value: VelcronPropertyEditorValue) => void;
8
8
  } & {
9
- "v-model"?: VelcronPropertyDefinitionValueResolver[];
9
+ "v-model"?: VelcronPropertyEditorValue;
10
10
  } & {
11
- "onUpdate:modelValue"?: (value: VelcronPropertyDefinitionValueResolver[]) => void;
11
+ "onUpdate:modelValue"?: (value: VelcronPropertyEditorValue) => void;
12
12
  } & {
13
- modelValue?: VelcronPropertyDefinitionValueResolver[];
13
+ modelValue?: VelcronPropertyEditorValue;
14
14
  }>) => any;
15
15
  export default _default;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@omnia/fx",
3
3
  "license": "MIT",
4
- "version": "8.0.276-dev",
4
+ "version": "8.0.277-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.276-dev",
23
+ "@omnia/fx-models": "8.0.277-dev",
24
24
  "@microsoft/signalr": "6.0.1",
25
25
  "broadcast-channel": "4.8.0",
26
26
  "dayjs": "1.11.7",