@omnia/fx 8.0.530-dev → 8.0.531-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 (18) hide show
  1. package/internal-do-not-import-from-here/manifests/omnia.fx.ux.editor.manifest.json +1 -1
  2. package/internal-do-not-import-from-here/ux/admin/systemlayout/SystemLayoutJourney_old.d.ts +10 -0
  3. package/internal-do-not-import-from-here/ux/editorchrome/define/EditorChromeConfigurationHelper.d.ts +15 -0
  4. package/internal-do-not-import-from-here/ux/editorchrome/define/index.d.ts +1 -0
  5. package/internal-do-not-import-from-here/ux/journey/JourneyMenu.d.ts +2 -2
  6. package/internal-do-not-import-from-here/ux/layoutcanvas/editor/DefineLayoutEditorCanvas.d.ts +28 -2
  7. package/internal-do-not-import-from-here/ux/layoutcanvas/editor/LayoutEditorCanvas.d.ts +14 -1
  8. package/internal-do-not-import-from-here/ux/layoutcanvas/stores/LayoutCanvasEditorStore.d.ts +14 -1
  9. package/internal-do-not-import-from-here/ux/layoutcanvas/stores/LayoutCanvasStoreV2.d.ts +14 -1
  10. package/internal-do-not-import-from-here/ux/oxide/dialog/Dialog.d.ts +4 -3
  11. package/internal-do-not-import-from-here/ux/versionedlayout/blade/Shared.d.ts +2 -0
  12. package/internal-do-not-import-from-here/ux/versionedlayout/editor/VersionedLayoutCreation.d.ts +10 -0
  13. package/internal-do-not-import-from-here/ux/versionedlayout/editor/VersionedLayoutEditor.d.ts +3 -1
  14. package/internal-do-not-import-from-here/ux/versionedlayout/editor/views/DefineDefaultView.d.ts +5 -0
  15. package/internal-do-not-import-from-here/ux/versionedlayout/stores/VersionedLayoutEditorStoreV2.d.ts +6 -1
  16. package/internal-do-not-import-from-here/wctypings.d.ts +7 -9
  17. package/package.json +2 -2
  18. package/internal-do-not-import-from-here/ux/versionedlayout/editor/helpers/ConfigurationHelper.d.ts +0 -43
@@ -1 +1 @@
1
- {"name":"omniaWebpackJsonp['bb000000-0000-bbbb-0000-0000000000bb']['e0d8cdbf-5683-4f1b-883b-da203e8193a4']","content":{"./node_modules/@omnia/fx/ux/editor/index.js":{"id":"9a97c476-5a09-4522-b16d-db752dc06c7e","buildMeta":{"exportsType":"namespace"},"expo.js":["defineEditorChromeConfiguration","defineEditorChromeView","defineJourneyMenuSettings","defineLayoutEditorCanvas","useBlockJourneyMenuSettings","useJourneyMenuSettingsStore"]}}}
1
+ {"name":"omniaWebpackJsonp['bb000000-0000-bbbb-0000-0000000000bb']['e0d8cdbf-5683-4f1b-883b-da203e8193a4']","content":{"./node_modules/@omnia/fx/ux/editor/index.js":{"id":"9a97c476-5a09-4522-b16d-db752dc06c7e","buildMeta":{"exportsType":"namespace"},"expo.js":["defineEditorChromeConfiguration","defineEditorChromeView","defineJourneyMenuSettings","defineLayoutEditorCanvas","useBlockJourneyMenuSettings","useEditorChromeConfigurationHelper","useJourneyMenuSettingsStore"]}}}
@@ -0,0 +1,10 @@
1
+ import { AdminNavigationBuiltInCategory } from "@omnia/fx-models";
2
+ declare const _default: (props: import("@omnia/fx/ux").ExtractProps<{
3
+ category?: AdminNavigationBuiltInCategory;
4
+ }> & {} & {
5
+ "v-slots"?: {} & Omit<{
6
+ default?: import("vue").Slot;
7
+ $stable?: boolean;
8
+ }, never>;
9
+ } & {} & Omit<import("@omnia/fx/ux").VueComponentBaseProps, "category"> & import("@omnia/fx/ux").VNodeEvents) => any;
10
+ export default _default;
@@ -0,0 +1,15 @@
1
+ import { ChromeActionItem, EditorChromeConfiguration } from "@omnia/fx-models";
2
+ export declare function useEditorChromeConfigurationHelper(): {
3
+ add: {
4
+ actionToLeftFooter: (configuration: EditorChromeConfiguration | EditorChromeConfiguration[], action: ChromeActionItem) => void;
5
+ actionToRightFooter: (configuration: EditorChromeConfiguration | EditorChromeConfiguration[], action: ChromeActionItem) => void;
6
+ actionToCenterFooter: (configuration: EditorChromeConfiguration | EditorChromeConfiguration[], action: ChromeActionItem) => void;
7
+ actionToExtendedRightFooter: (configuration: EditorChromeConfiguration | EditorChromeConfiguration[], action: ChromeActionItem) => void;
8
+ actionsToToolbar: (configuration: EditorChromeConfiguration | EditorChromeConfiguration[], actions: ChromeActionItem[], location: "left" | "right" | "center" | "extendedRight") => void;
9
+ };
10
+ ensure: {
11
+ allToolbars: (configuration: EditorChromeConfiguration | EditorChromeConfiguration[]) => void;
12
+ footerToolbar: (configuration: EditorChromeConfiguration) => void;
13
+ headerToolbar: (configuration: EditorChromeConfiguration) => void;
14
+ };
15
+ };
@@ -1,2 +1,3 @@
1
1
  export * from "./DefineEditorChromeConfiguration";
2
2
  export * from "./DefineEditorChromeView";
3
+ export * from "./EditorChromeConfigurationHelper";
@@ -1,9 +1,9 @@
1
1
  import { guid, IIcon, JourneyMenuItem, JourneySwitchMenuItem } from "@omnia/fx-models";
2
- import { BladeSizeTypes, useJourneyStore, DefineProp, DefineSlot, DefineEmit } from "@omnia/fx/ux";
2
+ import { BladeSizeTypes, useJourneyMenuStore, DefineProp, DefineSlot, DefineEmit } from "@omnia/fx/ux";
3
3
  import { VNodeChild } from "vue";
4
4
  import { type SwitchValue } from "./JourneyBlade";
5
5
  declare const defaultItems: any[];
6
- export type JourneyMenuProps = DefineProp<"getApi", (store: ReturnType<typeof useJourneyStore>) => void, false, null, "callback to get a reference to the journey store. The store is used to navigate the journey blades."> & DefineProp<"title", string, false, null, "Specify the title of the blade."> & DefineProp<"id", guid, false, null, "The id of the blade. Used to identify the blade in the journey store."> & DefineProp<"save", boolean, false, false, "Specify if the blade should show a save button. If a save button is shown, a cancel button will also be shown."> & DefineProp<"switch", SwitchValue, false, null, "Specify if the blade should show switch."> & DefineProp<"onSave", () => boolean | Promise<boolean>, false, null, "Trigger when user click save, return true if ok to close the blade."> & DefineProp<"onSwitch", (value: boolean) => boolean | Promise<boolean>, false, null, "Trigger when user toggle switch, return true if ok to close the blade."> & DefineProp<"icon", IIcon, false, null, "Specify an icon for the blade header. This should be used to hightlight the blade type such as create blades, edit blades etc."> & DefineProp<"size", BladeSizeTypes, false, "x-small", "Specify the size of the blade. Small will show the header buttons as icons."> & DefineProp<"loading", boolean, false, false, "Displays linear progress bar."> & DefineProp<"items", JourneyMenuItem[], false, typeof defaultItems, "An array of menu items used for automatically generating menu items"> & DefineSlot<"selection", (selected: JourneyMenuItem) => VNodeChild, "Custom renderer selected node."> & DefineSlot<"actionsFooter", () => VNodeChild> & DefineEmit<"itemSelected", (item: JourneyMenuItem) => true> & DefineEmit<"valueChanged", (item: JourneySwitchMenuItem) => true>;
6
+ export type JourneyMenuProps = DefineProp<"getApi", (store: ReturnType<typeof useJourneyMenuStore>) => void, false, null, "callback to get a reference to the journey store. The store is used to navigate the journey blades."> & DefineProp<"title", string, false, null, "Specify the title of the blade."> & DefineProp<"id", guid, false, null, "The id of the blade. Used to identify the blade in the journey store."> & DefineProp<"save", boolean, false, false, "Specify if the blade should show a save button. If a save button is shown, a cancel button will also be shown."> & DefineProp<"switch", SwitchValue, false, null, "Specify if the blade should show switch."> & DefineProp<"onSave", () => boolean | Promise<boolean>, false, null, "Trigger when user click save, return true if ok to close the blade."> & DefineProp<"onSwitch", (value: boolean) => boolean | Promise<boolean>, false, null, "Trigger when user toggle switch, return true if ok to close the blade."> & DefineProp<"icon", IIcon, false, null, "Specify an icon for the blade header. This should be used to hightlight the blade type such as create blades, edit blades etc."> & DefineProp<"size", BladeSizeTypes, false, "x-small", "Specify the size of the blade. Small will show the header buttons as icons."> & DefineProp<"loading", boolean, false, false, "Displays linear progress bar."> & DefineProp<"items", JourneyMenuItem[], false, typeof defaultItems, "An array of menu items used for automatically generating menu items"> & DefineSlot<"selection", (selected: JourneyMenuItem) => VNodeChild, "Custom renderer selected node."> & DefineSlot<"actionsFooter", () => VNodeChild> & DefineEmit<"itemSelected", (item: JourneyMenuItem) => true> & DefineEmit<"valueChanged", (item: JourneySwitchMenuItem) => true>;
7
7
  declare const _default: (props: import("@omnia/fx/ux").ExtractProps<JourneyMenuProps> & {
8
8
  onValueChanged?: (item: JourneySwitchMenuItem) => any;
9
9
  onItemSelected?: (item: JourneyMenuItem) => any;
@@ -77,6 +77,9 @@ export declare function defineLayoutEditorCanvas(settings: LayoutEditorCanvasSet
77
77
  state: {
78
78
  editorMode: import("@omnia/fx-models").LayoutCanvasEditorMode;
79
79
  canvasMode: import("@omnia/fx-models").LayoutCanvasMode;
80
+ history: {
81
+ editorMode: import("@omnia/fx-models").LayoutCanvasEditorMode[];
82
+ };
80
83
  id: guid;
81
84
  settings: {
82
85
  authDisabled: boolean;
@@ -101,6 +104,9 @@ export declare function defineLayoutEditorCanvas(settings: LayoutEditorCanvasSet
101
104
  events: import("../../mobile").StoreEvents<{
102
105
  editorMode: import("@omnia/fx-models").LayoutCanvasEditorMode;
103
106
  canvasMode: import("@omnia/fx-models").LayoutCanvasMode;
107
+ history: {
108
+ editorMode: import("@omnia/fx-models").LayoutCanvasEditorMode[];
109
+ };
104
110
  id: guid;
105
111
  settings: {
106
112
  authDisabled: boolean;
@@ -159,8 +165,15 @@ export declare function defineLayoutEditorCanvas(settings: LayoutEditorCanvasSet
159
165
  title?: string;
160
166
  enabled?: boolean;
161
167
  }, customScroll?: boolean) => void;
162
- setEditorMode: (mode: import("@omnia/fx-models").LayoutCanvasEditorMode) => void;
168
+ setEditorMode: (mode: import("@omnia/fx-models").LayoutCanvasEditorMode, toggle?: boolean) => void;
163
169
  setCanvasMode: (mode: import("@omnia/fx-models").LayoutCanvasMode) => void;
170
+ history: () => {
171
+ editorMode: {
172
+ back: () => import("@omnia/fx-models").LayoutCanvasEditorMode;
173
+ add: (mode: import("@omnia/fx-models").LayoutCanvasEditorMode) => void;
174
+ clear: () => void;
175
+ };
176
+ };
164
177
  hooks: () => import("../../mobile").StoreReturnDefineAction<{
165
178
  onBlockRemoved(block: import("@omnia/fx-models").Block): void;
166
179
  onLayoutItemMoved(layoutItem: import("@omnia/fx-models").LayoutItem): void;
@@ -203,6 +216,9 @@ export declare function defineLayoutEditorCanvas(settings: LayoutEditorCanvasSet
203
216
  state: {
204
217
  editorMode: import("@omnia/fx-models").LayoutCanvasEditorMode;
205
218
  canvasMode: import("@omnia/fx-models").LayoutCanvasMode;
219
+ history: {
220
+ editorMode: import("@omnia/fx-models").LayoutCanvasEditorMode[];
221
+ };
206
222
  id: guid;
207
223
  settings: {
208
224
  authDisabled: boolean;
@@ -227,6 +243,9 @@ export declare function defineLayoutEditorCanvas(settings: LayoutEditorCanvasSet
227
243
  events: import("../../mobile").StoreEvents<{
228
244
  editorMode: import("@omnia/fx-models").LayoutCanvasEditorMode;
229
245
  canvasMode: import("@omnia/fx-models").LayoutCanvasMode;
246
+ history: {
247
+ editorMode: import("@omnia/fx-models").LayoutCanvasEditorMode[];
248
+ };
230
249
  id: guid;
231
250
  settings: {
232
251
  authDisabled: boolean;
@@ -285,8 +304,15 @@ export declare function defineLayoutEditorCanvas(settings: LayoutEditorCanvasSet
285
304
  title?: string;
286
305
  enabled?: boolean;
287
306
  }, customScroll?: boolean) => void;
288
- setEditorMode: (mode: import("@omnia/fx-models").LayoutCanvasEditorMode) => void;
307
+ setEditorMode: (mode: import("@omnia/fx-models").LayoutCanvasEditorMode, toggle?: boolean) => void;
289
308
  setCanvasMode: (mode: import("@omnia/fx-models").LayoutCanvasMode) => void;
309
+ history: () => {
310
+ editorMode: {
311
+ back: () => import("@omnia/fx-models").LayoutCanvasEditorMode;
312
+ add: (mode: import("@omnia/fx-models").LayoutCanvasEditorMode) => void;
313
+ clear: () => void;
314
+ };
315
+ };
290
316
  hooks: () => import("../../mobile").StoreReturnDefineAction<{
291
317
  onBlockRemoved(block: import("@omnia/fx-models").Block): void;
292
318
  onLayoutItemMoved(layoutItem: import("@omnia/fx-models").LayoutItem): void;
@@ -69,6 +69,9 @@ declare const _default: (props: import("@omnia/fx/ux").ExtractProps<{
69
69
  state: {
70
70
  editorMode: import("@omnia/fx-models").LayoutCanvasEditorMode;
71
71
  canvasMode: import("@omnia/fx-models").LayoutCanvasMode;
72
+ history: {
73
+ editorMode: import("@omnia/fx-models").LayoutCanvasEditorMode[];
74
+ };
72
75
  id: import("@omnia/fx-models").guid;
73
76
  settings: {
74
77
  authDisabled: boolean;
@@ -93,6 +96,9 @@ declare const _default: (props: import("@omnia/fx/ux").ExtractProps<{
93
96
  events: import("../../mobile").StoreEvents<{
94
97
  editorMode: import("@omnia/fx-models").LayoutCanvasEditorMode;
95
98
  canvasMode: import("@omnia/fx-models").LayoutCanvasMode;
99
+ history: {
100
+ editorMode: import("@omnia/fx-models").LayoutCanvasEditorMode[];
101
+ };
96
102
  id: import("@omnia/fx-models").guid;
97
103
  settings: {
98
104
  authDisabled: boolean;
@@ -151,8 +157,15 @@ declare const _default: (props: import("@omnia/fx/ux").ExtractProps<{
151
157
  title?: string;
152
158
  enabled?: boolean;
153
159
  }, customScroll?: boolean) => void;
154
- setEditorMode: (mode: import("@omnia/fx-models").LayoutCanvasEditorMode) => void;
160
+ setEditorMode: (mode: import("@omnia/fx-models").LayoutCanvasEditorMode, toggle?: boolean) => void;
155
161
  setCanvasMode: (mode: import("@omnia/fx-models").LayoutCanvasMode) => void;
162
+ history: () => {
163
+ editorMode: {
164
+ back: () => import("@omnia/fx-models").LayoutCanvasEditorMode;
165
+ add: (mode: import("@omnia/fx-models").LayoutCanvasEditorMode) => void;
166
+ clear: () => void;
167
+ };
168
+ };
156
169
  hooks: () => import("../../mobile").StoreReturnDefineAction<{
157
170
  onBlockRemoved(block: import("@omnia/fx-models").Block): void;
158
171
  onLayoutItemMoved(layoutItem: import("@omnia/fx-models").LayoutItem): void;
@@ -5,6 +5,9 @@ export declare const useLayoutCanvasEditorStore: () => {
5
5
  state: {
6
6
  editorMode: LayoutCanvasEditorMode;
7
7
  canvasMode: LayoutCanvasMode;
8
+ history: {
9
+ editorMode: LayoutCanvasEditorMode[];
10
+ };
8
11
  id: guid;
9
12
  settings: {
10
13
  authDisabled: boolean;
@@ -29,6 +32,9 @@ export declare const useLayoutCanvasEditorStore: () => {
29
32
  events: import("@omnia/fx/stores").StoreEvents<{
30
33
  editorMode: LayoutCanvasEditorMode;
31
34
  canvasMode: LayoutCanvasMode;
35
+ history: {
36
+ editorMode: LayoutCanvasEditorMode[];
37
+ };
32
38
  id: guid;
33
39
  settings: {
34
40
  authDisabled: boolean;
@@ -87,8 +93,15 @@ export declare const useLayoutCanvasEditorStore: () => {
87
93
  title?: string;
88
94
  enabled?: boolean;
89
95
  }, customScroll?: boolean) => void;
90
- setEditorMode: (mode: LayoutCanvasEditorMode) => void;
96
+ setEditorMode: (mode: LayoutCanvasEditorMode, toggle?: boolean) => void;
91
97
  setCanvasMode: (mode: LayoutCanvasMode) => void;
98
+ history: () => {
99
+ editorMode: {
100
+ back: () => LayoutCanvasEditorMode;
101
+ add: (mode: LayoutCanvasEditorMode) => void;
102
+ clear: () => void;
103
+ };
104
+ };
92
105
  hooks: () => import("@omnia/fx/stores").StoreReturnDefineAction<{
93
106
  onBlockRemoved(block: Block): void;
94
107
  onLayoutItemMoved(layoutItem: LayoutItem): void;
@@ -82,6 +82,9 @@ export declare const useLayoutCanvasStore: () => {
82
82
  state: {
83
83
  editorMode: import("@omnia/fx-models").LayoutCanvasEditorMode;
84
84
  canvasMode: import("@omnia/fx-models").LayoutCanvasMode;
85
+ history: {
86
+ editorMode: import("@omnia/fx-models").LayoutCanvasEditorMode[];
87
+ };
85
88
  id: guid;
86
89
  settings: {
87
90
  authDisabled: boolean;
@@ -106,6 +109,9 @@ export declare const useLayoutCanvasStore: () => {
106
109
  events: import("@omnia/fx/stores").StoreEvents<{
107
110
  editorMode: import("@omnia/fx-models").LayoutCanvasEditorMode;
108
111
  canvasMode: import("@omnia/fx-models").LayoutCanvasMode;
112
+ history: {
113
+ editorMode: import("@omnia/fx-models").LayoutCanvasEditorMode[];
114
+ };
109
115
  id: guid;
110
116
  settings: {
111
117
  authDisabled: boolean;
@@ -164,8 +170,15 @@ export declare const useLayoutCanvasStore: () => {
164
170
  title?: string;
165
171
  enabled?: boolean;
166
172
  }, customScroll?: boolean) => void;
167
- setEditorMode: (mode: import("@omnia/fx-models").LayoutCanvasEditorMode) => void;
173
+ setEditorMode: (mode: import("@omnia/fx-models").LayoutCanvasEditorMode, toggle?: boolean) => void;
168
174
  setCanvasMode: (mode: import("@omnia/fx-models").LayoutCanvasMode) => void;
175
+ history: () => {
176
+ editorMode: {
177
+ back: () => import("@omnia/fx-models").LayoutCanvasEditorMode;
178
+ add: (mode: import("@omnia/fx-models").LayoutCanvasEditorMode) => void;
179
+ clear: () => void;
180
+ };
181
+ };
169
182
  hooks: () => import("@omnia/fx/stores").StoreReturnDefineAction<{
170
183
  onBlockRemoved(block: Block): void;
171
184
  onLayoutItemMoved(layoutItem: LayoutItem): void;
@@ -3,7 +3,7 @@ import { DefineEmit, DefineProp, DefinePropTheming, DefineSlot, DefineVModel } f
3
3
  import { VNodeChild } from "vue";
4
4
  export * from "./Dialog.stylex";
5
5
  export type DialogLocation = "left" | "center" | "right";
6
- type DialogProps = DefinePropTheming & DefineProp<"class", String | String[]> & DefineProp<"toned", boolean, false, false, "If dialog is toned"> & DefineVModel<"", boolean, false, null, false, "The v-model of the component."> & DefineProp<"persistent", boolean, false, false, "Specify if the dialog is closed if clicked outside of the dialog."> & DefineProp<"eager", boolean, false, false, "Forces the component’s content to render when it mounts."> & DefineProp<"title", string, false, null, "Specify the title of the dialog."> & DefineProp<"subTitle", string, false, null, "Specify a subtitle for the dialog and the title is displayed in a breadcrumb style where the subTittle is prominent."> & DefineProp<"icon", IIcon, false, null, "Specify an icon for the dialog. This is almost mandatory and is used to hightlight the dialog context."> & DefineProp<"hiddenCloseButton", boolean, false, false, "Hide the close button of the dialog."> & DefineProp<"disabledFullScreenOnMobile", boolean, false, false, "Not allow auto full sreen on mobile."> & DefineProp<"backButton", boolean, false, false, "I a back button is displayed to close the dialog."> & DefineProp<"size", ODialogSizes, false, "medium", "Specify the size of the dialog. Default is mediumsize."> & DefineProp<"attach", string, false, null, "Specifies which DOM element the overlay content should teleport to."> & DefineProp<"variant", ODialogTypes, false, "default", "Applies a distinct style to the component."> & DefineProp<"contentHeight", OContentHeight, false, "static", "Sets the content responsive strategy for the dialog . With dynamic it will adapt to the content height. This should only be used with content that does not change size."> & DefineProp<"customScrolling", boolean, false, false, "Disables the default scrolling behavior of the dialog. This should be used when the dialog contains a custom scrollable element such as a o.tab or a component with custom scrollable requirements."> & DefineProp<"horizontalScroll", boolean, false, false, "Adds a horizontal scrollbar to the dialog. This should be used when the dialog contains a custom vertiacl scrollable element such as a <o-journey> or a component with custom scrollable requirements."> & DefineProp<"journey", boolean, false, false, "The dialog is a journey dialog where the header supports navigation."> & DefineProp<"canClose", (request: ODialogBuiltinButtons, buttonInstance: ODialogButtonInstance) => Future<void>, false, null, "Function that can control if the dialog is allowed to be closed. When the promise is resolved the dialog will close. If the promise is rejected the dialog will not close."> & DefineProp<"canBack", (request: ODialogBuiltinButtons, buttonInstance: ODialogButtonInstance) => Future<void>, false, null, "Function that can control if the dialog is allowed to be closed. When the promise is resolved the dialog will close. If the promise is rejected the dialog will not close."> & DefineProp<"buttonApi", (confirm: ODialogButtonInstance, cancel: ODialogButtonInstance) => void, false, null, "Function that can get reference to the buttons to control the state of them."> & DefineSlot<"fixedContent", () => VNodeChild> & DefineSlot<"activator", () => VNodeChild> & DefineSlot<"headerButtons", () => VNodeChild> & DefineSlot<"actions", () => VNodeChild> & DefineSlot<"navigation", (apis: {
6
+ type DialogProps = DefinePropTheming & DefineProp<"class", String | String[]> & DefineProp<"toned", boolean, false, false, "If dialog is toned"> & DefineVModel<"", boolean, false, null, false, "The v-model of the component."> & DefineProp<"persistent", boolean, false, false, "Specify if the dialog is closed if clicked outside of the dialog."> & DefineProp<"eager", boolean, false, false, "Forces the component’s content to render when it mounts."> & DefineProp<"title", string, false, null, "Specify the title of the dialog."> & DefineProp<"subTitle", string, false, null, "Specify a subtitle for the dialog and the title is displayed in a breadcrumb style where the subTittle is prominent."> & DefineProp<"icon", IIcon, false, null, "Specify an icon for the dialog. This is almost mandatory and is used to hightlight the dialog context."> & DefineProp<"hiddenCloseButton", boolean, false, false, "Hide the close button of the dialog."> & DefineProp<"disabledFullScreenOnMobile", boolean, false, false, "Not allow auto full sreen on mobile."> & DefineProp<"backButton", boolean, false, false, "I a back button is displayed to close the dialog."> & DefineProp<"size", ODialogSizes, false, "medium", "Specify the size of the dialog. Default is mediumsize."> & DefineProp<"attach", string, false, null, "Specifies which DOM element the overlay content should teleport to."> & DefineProp<"variant", ODialogTypes, false, "default", "Applies a distinct style to the component."> & DefineProp<"contentHeight", OContentHeight, false, "static", "Sets the content responsive strategy for the dialog . With dynamic it will adapt to the content height. This should only be used with content that does not change size."> & DefineProp<"customScrolling", boolean, false, false, "Disables the default scrolling behavior of the dialog. This should be used when the dialog contains a custom scrollable element such as a o.tab or a component with custom scrollable requirements."> & DefineProp<"horizontalScroll", boolean, false, false, "Adds a horizontal scrollbar to the dialog. This should be used when the dialog contains a custom vertiacl scrollable element such as a <o-journey> or a component with custom scrollable requirements."> & DefineProp<"journey", boolean, false, false, "The dialog is a journey dialog where the header supports navigation."> & DefineProp<"canClose", (request: ODialogBuiltinButtons, buttonInstance: ODialogButtonInstance) => Future<void>, false, null, "Function that can control if the dialog is allowed to be closed. When the promise is resolved the dialog will close. If the promise is rejected the dialog will not close."> & DefineProp<"canBack", (request: ODialogBuiltinButtons, buttonInstance: ODialogButtonInstance) => Future<void>, false, null, "Function that can control if the dialog is allowed to be closed. When the promise is resolved the dialog will close. If the promise is rejected the dialog will not close."> & DefineProp<"buttonApi", (confirm: ODialogButtonInstance, cancel: ODialogButtonInstance) => void, false, null, "Function that can get reference to the buttons to control the state of them."> & DefineSlot<"fixedContent", () => VNodeChild> & DefineSlot<"activator", () => VNodeChild> & DefineSlot<"headerButtons", () => VNodeChild> & DefineSlot<"actions", () => VNodeChild> & DefineSlot<"icon", () => VNodeChild> & DefineSlot<"navigation", (apis: {
7
7
  hideNavigation: () => void;
8
8
  showNavigation: () => void;
9
9
  }) => VNodeChild> & DefineSlot<"header", () => VNodeChild> & DefineEmit<"click:close", () => void> & DefineEmit<"click:cancel", () => void> & DefineEmit<"click:confirm", () => void> & DefineEmit<"click:backButton", () => void> & DefineProp<"location", DialogLocation, false, "center", "Sets location of the dialog.">;
@@ -19,6 +19,7 @@ declare const _default: (props: import("@omnia/fx/ux").ExtractProps<DialogProps>
19
19
  activator?: () => VNodeChild;
20
20
  headerButtons?: () => VNodeChild;
21
21
  actions?: () => VNodeChild;
22
+ icon?: () => VNodeChild;
22
23
  navigation?: (apis: {
23
24
  hideNavigation: () => void;
24
25
  showNavigation: () => void;
@@ -27,6 +28,6 @@ declare const _default: (props: import("@omnia/fx/ux").ExtractProps<DialogProps>
27
28
  } & Omit<{
28
29
  default?: import("vue").Slot;
29
30
  $stable?: boolean;
30
- }, "actions" | "header" | "activator" | "navigation" | "fixedContent" | "headerButtons">;
31
- } & {} & Omit<import("@omnia/fx/ux").VueComponentBaseProps, "icon" | "title" | "colorSchemaType" | "variant" | "size" | "class" | "colors" | "toned" | "v-model" | "modelValue" | "slot:actions" | "emit:update:modelValue" | "eager" | "persistent" | "location" | "attach" | "journey" | "subTitle" | "hiddenCloseButton" | "disabledFullScreenOnMobile" | "backButton" | "contentHeight" | "customScrolling" | "horizontalScroll" | "canClose" | "canBack" | "buttonApi" | "slot:fixedContent" | "slot:activator" | "slot:headerButtons" | "slot:navigation" | "slot:header" | "emit:click:close" | "emit:click:cancel" | "emit:click:confirm" | "emit:click:backButton"> & import("@omnia/fx/ux").VNodeEvents) => any;
31
+ }, "icon" | "actions" | "header" | "activator" | "navigation" | "fixedContent" | "headerButtons">;
32
+ } & {} & Omit<import("@omnia/fx/ux").VueComponentBaseProps, "icon" | "title" | "colorSchemaType" | "variant" | "size" | "class" | "colors" | "toned" | "v-model" | "modelValue" | "slot:actions" | "emit:update:modelValue" | "eager" | "persistent" | "location" | "attach" | "journey" | "subTitle" | "hiddenCloseButton" | "disabledFullScreenOnMobile" | "backButton" | "contentHeight" | "customScrolling" | "horizontalScroll" | "canClose" | "canBack" | "buttonApi" | "slot:fixedContent" | "slot:activator" | "slot:headerButtons" | "slot:icon" | "slot:navigation" | "slot:header" | "emit:click:close" | "emit:click:cancel" | "emit:click:confirm" | "emit:click:backButton"> & import("@omnia/fx/ux").VNodeEvents) => any;
32
33
  export default _default;
@@ -6,6 +6,8 @@ export interface VersionedLayoutEditorSettings<T extends VersionedLayoutDefiniti
6
6
  sort?: (a: VersionedLayout, b: VersionedLayout) => number;
7
7
  businessProfileId?: guid;
8
8
  checkDeletable?: (layout: VersionedLayout) => Promise<boolean>;
9
+ enableAlias?: boolean;
10
+ onBeforeCreate?: (layout: VersionedLayoutDefinition) => VersionedLayoutDefinition | Promise<VersionedLayoutDefinition>;
9
11
  enableAlternateLayouts?: boolean;
10
12
  hideBreakpointPreview?: boolean;
11
13
  profileAdminEditable?: boolean;
@@ -0,0 +1,10 @@
1
+ import { DefineSlot } from "@omnia/fx/ux";
2
+ declare const _default: (props: import("@omnia/fx/ux").ExtractProps<DefineSlot<"activator", () => JSX.Element>> & {} & {
3
+ "v-slots"?: {
4
+ activator?: () => JSX.Element;
5
+ } & Omit<{
6
+ default?: import("vue").Slot;
7
+ $stable?: boolean;
8
+ }, "activator">;
9
+ } & {} & Omit<import("@omnia/fx/ux").VueComponentBaseProps, "slot:activator"> & import("@omnia/fx/ux").VNodeEvents) => any;
10
+ export default _default;
@@ -9,6 +9,8 @@ declare const _default: (props: import("@omnia/fx/ux").ExtractProps<{
9
9
  icon?: IIcon;
10
10
  } & {
11
11
  title?: string;
12
+ } & {
13
+ showLayoutNavigation?: boolean;
12
14
  } & {
13
15
  subTitle?: string;
14
16
  } & {
@@ -24,5 +26,5 @@ declare const _default: (props: import("@omnia/fx/ux").ExtractProps<{
24
26
  default?: import("vue").Slot;
25
27
  $stable?: boolean;
26
28
  }, "navigation">;
27
- } & {} & Omit<import("@omnia/fx/ux").VueComponentBaseProps, "icon" | "title" | "settings" | "appInstanceId" | "serviceContainerContext" | "subTitle" | "slot:navigation" | "getApi" | "emit:close"> & import("@omnia/fx/ux").VNodeEvents) => any;
29
+ } & {} & Omit<import("@omnia/fx/ux").VueComponentBaseProps, "icon" | "title" | "settings" | "appInstanceId" | "serviceContainerContext" | "subTitle" | "slot:navigation" | "getApi" | "emit:close" | "showLayoutNavigation"> & import("@omnia/fx/ux").VNodeEvents) => any;
28
30
  export default _default;
@@ -3,6 +3,7 @@ export declare const defineDefaultEditorView: (param1: EditorChromeConfiguration
3
3
  state: {
4
4
  id: guid;
5
5
  settings: import("@omnia/fx/ux").VersionedLayoutEditorSettings<import("@omnia/fx-models").VersionedLayoutDefinition>;
6
+ layouts: import("@omnia/fx-models").VersionedLayout[];
6
7
  versioning: {
7
8
  originalVersion: import("@omnia/fx-models").IVersionedData<import("@omnia/fx-models").VersionedLayoutDefinition>;
8
9
  selectedVersion: import("@omnia/fx-models").IVersionInformation;
@@ -28,6 +29,7 @@ export declare const defineDefaultEditorView: (param1: EditorChromeConfiguration
28
29
  events: import("../../../mobile").StoreEvents<{
29
30
  id: guid;
30
31
  settings: import("@omnia/fx/ux").VersionedLayoutEditorSettings<import("@omnia/fx-models").VersionedLayoutDefinition>;
32
+ layouts: import("@omnia/fx-models").VersionedLayout[];
31
33
  versioning: {
32
34
  originalVersion: import("@omnia/fx-models").IVersionedData<import("@omnia/fx-models").VersionedLayoutDefinition>;
33
35
  selectedVersion: import("@omnia/fx-models").IVersionInformation;
@@ -78,6 +80,8 @@ export declare const defineDefaultEditorView: (param1: EditorChromeConfiguration
78
80
  set: (layout: import("@omnia/fx-models").VersionedLayout) => Promise<void>;
79
81
  setVersion: (versionedData: import("@omnia/fx-models").IVersionedData<import("@omnia/fx-models").VersionedLayoutDefinition>, mergeWithoutCache: boolean) => Promise<import("@omnia/fx-models").Layout>;
80
82
  setDefault: () => Promise<void>;
83
+ loadAll: () => Promise<void>;
84
+ create: (title: import("@omnia/fx-models").MultilingualString, urlSegment: string) => Promise<import("@omnia/fx-models").VersionedLayout>;
81
85
  };
82
86
  editor: () => {
83
87
  set: {
@@ -361,6 +365,7 @@ export declare const defineDefaultEditorView: (param1: EditorChromeConfiguration
361
365
  versioning: {
362
366
  hasReverted: () => boolean;
363
367
  };
368
+ isFirstMinorVersion: () => boolean;
364
369
  isCheckedOutToMe: () => boolean;
365
370
  isCheckedOut: () => boolean;
366
371
  isDefaultLayout: () => boolean;
@@ -1,4 +1,4 @@
1
- import { EditorChromeConfiguration, EditorChromeNavigationConfiguration, EditorChromePanel, EditorChromeView, guid, IVersionedData, IVersionInformation, IVersionReference, Layout, LayoutCanvasEditorMode, VersionedLayout, VersionedLayoutDefinition } from "@omnia/fx-models";
1
+ import { EditorChromeConfiguration, EditorChromeNavigationConfiguration, EditorChromePanel, EditorChromeView, guid, IVersionedData, IVersionInformation, IVersionReference, Layout, LayoutCanvasEditorMode, MultilingualString, VersionedLayout, VersionedLayoutDefinition } from "@omnia/fx-models";
2
2
  import { useEditorChromeStore, useLayoutCanvasStore, VersionedLayoutEditorSettings } from "@omnia/fx/ux";
3
3
  export interface EditorViews {
4
4
  default: () => {
@@ -10,6 +10,7 @@ export declare const useVersionedLayoutEditorStore: () => {
10
10
  state: {
11
11
  id: guid;
12
12
  settings: VersionedLayoutEditorSettings<VersionedLayoutDefinition>;
13
+ layouts: VersionedLayout[];
13
14
  versioning: {
14
15
  originalVersion: IVersionedData<VersionedLayoutDefinition>;
15
16
  selectedVersion: IVersionInformation;
@@ -35,6 +36,7 @@ export declare const useVersionedLayoutEditorStore: () => {
35
36
  events: import("@omnia/fx/stores").StoreEvents<{
36
37
  id: guid;
37
38
  settings: VersionedLayoutEditorSettings<VersionedLayoutDefinition>;
39
+ layouts: VersionedLayout[];
38
40
  versioning: {
39
41
  originalVersion: IVersionedData<VersionedLayoutDefinition>;
40
42
  selectedVersion: IVersionInformation;
@@ -85,6 +87,8 @@ export declare const useVersionedLayoutEditorStore: () => {
85
87
  set: (layout: VersionedLayout) => Promise<void>;
86
88
  setVersion: (versionedData: IVersionedData<VersionedLayoutDefinition>, mergeWithoutCache: boolean) => Promise<Layout>;
87
89
  setDefault: () => Promise<void>;
90
+ loadAll: () => Promise<void>;
91
+ create: (title: MultilingualString, urlSegment: string) => Promise<VersionedLayout>;
88
92
  };
89
93
  editor: () => {
90
94
  set: {
@@ -368,6 +372,7 @@ export declare const useVersionedLayoutEditorStore: () => {
368
372
  versioning: {
369
373
  hasReverted: () => boolean;
370
374
  };
375
+ isFirstMinorVersion: () => boolean;
371
376
  isCheckedOutToMe: () => boolean;
372
377
  isCheckedOut: () => boolean;
373
378
  isDefaultLayout: () => boolean;
@@ -5458,15 +5458,13 @@ declare global {
5458
5458
  };
5459
5459
  } : typeof wc4a4631845ea24fbb8cabdbb9b06772da;
5460
5460
  };
5461
- "omnia": {
5462
- "logo": typeof wcd0b8420c01d54ab28be011c92c8f0d24 extends {
5463
- propsDefinition: infer TProp;
5464
- } ? {
5465
- new (...args: any[]): {
5466
- $props: TProp & Omit<VueComponentBaseProps, keyof TProp>;
5467
- };
5468
- } : typeof wcd0b8420c01d54ab28be011c92c8f0d24;
5469
- };
5461
+ "logo": typeof wcd0b8420c01d54ab28be011c92c8f0d24 extends {
5462
+ propsDefinition: infer TProp;
5463
+ } ? {
5464
+ new (...args: any[]): {
5465
+ $props: TProp & Omit<VueComponentBaseProps, keyof TProp>;
5466
+ };
5467
+ } : typeof wcd0b8420c01d54ab28be011c92c8f0d24;
5470
5468
  "main": typeof wc1ed9f2ec3580492cb211d719c9b15ad1 extends {
5471
5469
  propsDefinition: infer TProp;
5472
5470
  } ? {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@omnia/fx",
3
3
  "license": "MIT",
4
- "version": "8.0.530-dev",
4
+ "version": "8.0.531-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": "Omnia Digital Workplace AB",
22
22
  "dependencies": {
23
- "@omnia/fx-models": "8.0.530-dev",
23
+ "@omnia/fx-models": "8.0.531-dev",
24
24
  "@microsoft/signalr": "6.0.1",
25
25
  "broadcast-channel": "4.8.0",
26
26
  "dayjs": "1.11.7",
@@ -1,43 +0,0 @@
1
- import { ChromeActionItem, EditorChromeConfiguration } from "@omnia/fx-models";
2
- export declare class ConfigurationHelper {
3
- /**
4
- * Ensures an array exists, returns empty array if undefined
5
- */
6
- static ensureArray<T>(array: T[] | undefined): T[];
7
- /**
8
- * Ensures footer toolbar exists on configuration
9
- */
10
- static ensureFooterToolbar(configuration: EditorChromeConfiguration): void;
11
- /**
12
- * Ensures header toolbar exists on configuration
13
- */
14
- static ensureHeaderToolbar(configuration: EditorChromeConfiguration): void;
15
- /**
16
- * Adds an action to an array if it doesn't already exist (based on id)
17
- */
18
- static addActionToArray(actions: Array<ChromeActionItem>, action: ChromeActionItem): void;
19
- /**
20
- * Adds an action to the left footer toolbar actions of configuration(s)
21
- */
22
- static addActionToLeftFooter(configuration: EditorChromeConfiguration | EditorChromeConfiguration[], action: ChromeActionItem): void;
23
- /**
24
- * Adds an action to the right footer toolbar actions of configuration(s)
25
- */
26
- static addActionToRightFooter(configuration: EditorChromeConfiguration | EditorChromeConfiguration[], action: ChromeActionItem): void;
27
- /**
28
- * Adds an action to the center footer toolbar actions of configuration(s)
29
- */
30
- static addActionToCenterFooter(configuration: EditorChromeConfiguration | EditorChromeConfiguration[], action: ChromeActionItem): void;
31
- /**
32
- * Adds an action to the extended right footer toolbar actions of configuration(s)
33
- */
34
- static addActionToExtendedRightFooter(configuration: EditorChromeConfiguration | EditorChromeConfiguration[], action: ChromeActionItem): void;
35
- /**
36
- * Adds multiple actions to a specific toolbar location
37
- */
38
- static addActionsToToolbar(configuration: EditorChromeConfiguration | EditorChromeConfiguration[], actions: ChromeActionItem[], location: "left" | "right" | "center" | "extendedRight"): void;
39
- /**
40
- * Ensures all standard toolbar arrays exist on configuration(s)
41
- */
42
- static ensureAllToolbars(configuration: EditorChromeConfiguration | EditorChromeConfiguration[]): void;
43
- }