@omnia/fx 8.0.506-dev → 8.0.507-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.
@@ -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":["defineJourneyMenuSettings","useBlockJourneyMenuSettings","useDefineLayoutEditorCanvas","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":["defineJourneyMenuSettings","defineLayoutEditorCanvas","useBlockJourneyMenuSettings","useDefineLayoutEditorCanvas","useJourneyMenuSettingsStore"]}}}
@@ -1,4 +1,4 @@
1
- import { DisplayBreakpointTypes, guid, EditorChromeConfiguration, NotificationMessage, IIcon, EditorChromeNavigationConfiguration, Future } from "@omnia/fx-models";
1
+ import { DisplayBreakpointTypes, guid, EditorChromeConfiguration, NotificationMessage, IIcon, EditorChromeNavigationConfiguration, Future, EditorChromeView } from "@omnia/fx-models";
2
2
  export declare const useEditorChromeStore: () => {
3
3
  state: {
4
4
  finishedLoading: boolean;
@@ -20,6 +20,10 @@ export declare const useEditorChromeStore: () => {
20
20
  };
21
21
  };
22
22
  };
23
+ editorView: {
24
+ active: EditorChromeView;
25
+ items: EditorChromeView[];
26
+ };
23
27
  configuration: {
24
28
  activeIndex: number;
25
29
  active: EditorChromeConfiguration;
@@ -135,10 +139,17 @@ export declare const useEditorChromeStore: () => {
135
139
  setZoom: (level: number) => void;
136
140
  resetZoom: () => void;
137
141
  };
142
+ editorView: () => {
143
+ register: (editorView: EditorChromeView | EditorChromeView[]) => void;
144
+ setAsActive: (id: guid | EditorChromeView) => void;
145
+ clearActive: () => void;
146
+ remove: (editorViewId: guid) => void;
147
+ };
138
148
  configuration: () => {
149
+ clearActive: () => void;
139
150
  syncEditor: () => void;
140
151
  update: (configuration: EditorChromeConfiguration) => void;
141
- register: (configuration: EditorChromeConfiguration) => void;
152
+ register: (configuration: EditorChromeConfiguration | EditorChromeConfiguration[]) => void;
142
153
  setAsActive: (configuration: EditorChromeConfiguration) => void;
143
154
  };
144
155
  showNotification: (message: NotificationMessage) => void;
@@ -174,6 +185,17 @@ export declare const useEditorChromeStore: () => {
174
185
  dispose: () => void;
175
186
  }>;
176
187
  get: {
188
+ editorView: () => {
189
+ getActive: () => EditorChromeView;
190
+ getAll: () => EditorChromeView[];
191
+ getById: (id: guid) => EditorChromeView;
192
+ hasActive: () => boolean;
193
+ };
194
+ configuration: () => {
195
+ getVisible: () => EditorChromeConfiguration[];
196
+ getAll: () => EditorChromeConfiguration[];
197
+ getActive: () => EditorChromeConfiguration;
198
+ };
177
199
  operations: () => {
178
200
  getAll: () => guid[];
179
201
  has: (operationId: guid) => boolean;
@@ -1,37 +1,16 @@
1
- import { DefineEmit, DefineProp, DefinePropTheming, DefineSlot, DefineVModel, JourneySelectBladeElement, JourneySelectItem, JourneySelectPropertyMapping, useJourneySelectStore } from "@omnia/fx/ux";
1
+ import { OMultiSelectionStyles } from "@omnia/fx-models";
2
+ import { DefineProp, DefinePropTheming, DefineSlot, DefineVModel, ItemType, ItemValueType, JourneySelectItem } from "@omnia/fx/ux";
2
3
  import { VNodeChild } from "vue";
3
- import { ActionDefinition } from "@omnia/fx-models";
4
- type BaseProps<TItem> = DefinePropTheming & DefineVModel<"", Array<any> | any> & DefineProp<"getApi", (store: ReturnType<typeof useJourneySelectStore>) => void, false, null, "callback to get a reference to the store"> & DefineProp<"items", Array<TItem>, false, null, "Items to select from"> & DefineProp<"toned", boolean, false, null, "Sets the component to toned"> & DefineProp<"multiple", boolean, false, null, "If it is allowed to select multiple or single"> & DefineProp<"propertyValueMapping", JourneySelectPropertyMapping<TItem>, false, null, "Property value mappings"> & DefineProp<"returnSelectionAsObject", boolean, false, null, "Changes the selection behavior to return the object directly rather than the value specified with item-value"> & DefineProp<"label", string, null, null, "The label of the component"> & DefineProp<"labelAdd", string, null, null, "The add label of the component"> & DefineProp<"titleAdd", string, null, null, "The add title of the add blade"> & DefineProp<"titleEdit", string, null, null, "The edit title of the edit blade"> & DefineProp<"disableSearch", boolean, false, null, "Disables the automatic search"> & DefineProp<"disableSave", boolean, false, null, "If it is allowed save"> & DefineProp<"sortable", boolean, false, null, "If it is allowed to sort"> & DefineProp<"readonly", boolean, false, null, "Disable add and delete"> & DefineProp<"list", boolean, false, null, "Always render the items as a list"> & DefineProp<"confirmDelete", boolean, false, null, "If you confirm before delete from the items"> & DefineProp<"noAddConfirm", boolean, false, null, "If items are added without a save button"> & DefineProp<"bladelessAdd", boolean, false, null, "If addis not a blade and only fires events"> & DefineProp<"bladeless", boolean, false, null, "If add/edit is not a blade and only fires events"> & DefineProp<"actions", ActionDefinition[], false, null, "Actions to display in the blade header of the selection blade"> & DefineProp<"itemSettingable", (item: TItem) => boolean, false, null, "Item has settings or not."> & DefineProp<"itemDeletable", (item: TItem) => boolean, false, null, "Item can be deleted or not."> & DefineSlot<"selectionItemRender", (item: JourneySelectItem<any>, index: number, isSelected: boolean) => VNodeChild> & DefineSlot<"selectionRender", () => VNodeChild> & DefineSlot<"selectedItemRenderer", (item: JourneySelectItem<any>, index: number) => VNodeChild> & DefineSlot<"settingsRender", (item: JourneySelectItem<any>, index: number) => VNodeChild> & DefineSlot<"settingsRenderV2", (item: {
5
- SettingsRenderer: JourneySelectBladeElement;
6
- item: JourneySelectItem<any>;
7
- index: number;
8
- }) => VNodeChild> & DefineSlot<"selectionRenderV2", (item: {
9
- SelectionRenderer: JourneySelectBladeElement;
10
- }) => VNodeChild> & DefineSlot<"actions", () => VNodeChild> & DefineEmit<"showAdd", () => true> & DefineEmit<"showEdit", (item: TItem, index: number) => true> & DefineEmit<"search", (searchText: string) => true> & DefineEmit<"click:clear", () => true> & DefineProp<"onClickAdd", (item: Array<TItem> | TItem) => void | boolean | Promise<boolean>> & DefineProp<"onRemoveItem", (item: TItem) => void | boolean | Promise<boolean>> & DefineProp<"onClickUpdate", (item: TItem, index: number) => void | boolean | Promise<boolean>> & DefineProp<"onClickDelete", (item: TItem, index: number) => void | boolean | Promise<boolean>>;
11
- declare const _default: <TItem extends unknown = any>(props: import("@omnia/fx/ux").ExtractProps<BaseProps<TItem>> & {
4
+ type OJourneySelectV2Props<TItem, TReturnObject extends boolean> = DefinePropTheming & DefineProp<"class", String | String[]> & DefineVModel<"", any, false, null, true, "The v-model of the component"> & DefineProp<"label", string, false, null, "Sets the label of the component."> & DefineProp<"items", TItem, false, null, "TItem must be an array of objects or array of strings. When using objects, will look for a title, value and disabled keys. This can be changed using the item-title, item-value and item-disabled props."> & DefineProp<"itemTitle", ItemValueType<ItemType<TItem>>, false, null, "Property on supplied items that contains its title."> & DefineProp<"itemValue", ItemValueType<ItemType<TItem>>, false, null, "Property on supplied items that contains its value."> & DefineProp<"returnObject", TReturnObject, false, null, "Changes the selection behavior to return the object directly rather than the value specified with item-value."> & DefineProp<"multiple", boolean, false, false, "Multiple selection."> & DefineProp<"disabled", boolean, false, false, "Removes the ability to click or target the input."> & DefineProp<"multiSelectionStyle", OMultiSelectionStyles, false, null, "The style of multi select"> & DefineProp<"itemDeletable", (item: ItemType<TItem>) => boolean, false, null, "Item can be deleted or not."> & DefineSlot<"item", (item: JourneySelectItem<any>, index: number, isSelected: boolean) => VNodeChild> & DefineSlot<"selection", (item: JourneySelectItem<any>, index: number) => VNodeChild>;
5
+ declare const _default: <TItem extends readonly any[], TReturnObject extends boolean>(props: import("@omnia/fx/ux").ExtractProps<OJourneySelectV2Props<TItem, TReturnObject>> & {
12
6
  "onUpdate:modelValue"?: (value: any) => any;
13
- "onClick:clear"?: () => any;
14
- onSearch?: (searchText: string) => any;
15
- onShowAdd?: () => any;
16
- onShowEdit?: (item: TItem, index: number) => any;
17
7
  } & {
18
8
  "v-slots"?: {
19
- selectionItemRender?: (item: JourneySelectItem<any>, index: number, isSelected: boolean) => VNodeChild;
20
- selectionRender?: () => VNodeChild;
21
- selectedItemRenderer?: (item: JourneySelectItem<any>, index: number) => VNodeChild;
22
- settingsRender?: (item: JourneySelectItem<any>, index: number) => VNodeChild;
23
- settingsRenderV2?: (item: {
24
- SettingsRenderer: JourneySelectBladeElement;
25
- item: JourneySelectItem<any>;
26
- index: number;
27
- }) => VNodeChild;
28
- selectionRenderV2?: (item: {
29
- SelectionRenderer: JourneySelectBladeElement;
30
- }) => VNodeChild;
31
- actions?: () => VNodeChild;
9
+ item?: (item: JourneySelectItem<any>, index: number, isSelected: boolean) => VNodeChild;
10
+ selection?: (item: JourneySelectItem<any>, index: number) => VNodeChild;
32
11
  } & Omit<{
33
12
  default?: import("vue").Slot;
34
13
  $stable?: boolean;
35
- }, "actions" | "selectionItemRender" | "selectionRender" | "selectedItemRenderer" | "settingsRender" | "settingsRenderV2" | "selectionRenderV2">;
36
- } & {} & Omit<import("@omnia/fx/ux").VueComponentBaseProps, "actions" | "label" | "colorSchemaType" | "list" | "multiple" | "colors" | "toned" | "v-model" | "modelValue" | "slot:actions" | "emit:update:modelValue" | "items" | "readonly" | "emit:search" | "getApi" | "emit:click:clear" | "itemDeletable" | "sortable" | "propertyValueMapping" | "returnSelectionAsObject" | "labelAdd" | "titleAdd" | "titleEdit" | "disableSearch" | "disableSave" | "confirmDelete" | "noAddConfirm" | "bladelessAdd" | "bladeless" | "itemSettingable" | "slot:selectionItemRender" | "slot:selectionRender" | "slot:selectedItemRenderer" | "slot:settingsRender" | "slot:settingsRenderV2" | "slot:selectionRenderV2" | "emit:showAdd" | "emit:showEdit" | "onClickAdd" | "onRemoveItem" | "onClickUpdate" | "onClickDelete"> & import("@omnia/fx/ux").VNodeEvents) => any;
14
+ }, "item" | "selection">;
15
+ } & {} & Omit<import("@omnia/fx/ux").VueComponentBaseProps, "label" | "colorSchemaType" | "class" | "multiple" | "disabled" | "colors" | "v-model" | "modelValue" | "emit:update:modelValue" | "items" | "itemValue" | "slot:item" | "slot:selection" | "itemTitle" | "returnObject" | "multiSelectionStyle" | "itemDeletable"> & import("@omnia/fx/ux").VNodeEvents) => any;
37
16
  export default _default;
@@ -0,0 +1,37 @@
1
+ import { DefineEmit, DefineProp, DefinePropTheming, DefineSlot, DefineVModel, JourneySelectBladeElement, JourneySelectItem, JourneySelectPropertyMapping, useJourneySelectStore } from "@omnia/fx/ux";
2
+ import { VNodeChild } from "vue";
3
+ import { ActionDefinition } from "@omnia/fx-models";
4
+ type BaseProps<TItem> = DefinePropTheming & DefineVModel<"", Array<any> | any> & DefineProp<"getApi", (store: ReturnType<typeof useJourneySelectStore>) => void, false, null, "callback to get a reference to the store"> & DefineProp<"items", Array<TItem>, false, null, "Items to select from"> & DefineProp<"toned", boolean, false, null, "Sets the component to toned"> & DefineProp<"multiple", boolean, false, null, "If it is allowed to select multiple or single"> & DefineProp<"propertyValueMapping", JourneySelectPropertyMapping<TItem>, false, null, "Property value mappings"> & DefineProp<"returnSelectionAsObject", boolean, false, null, "Changes the selection behavior to return the object directly rather than the value specified with item-value"> & DefineProp<"label", string, null, null, "The label of the component"> & DefineProp<"labelAdd", string, null, null, "The add label of the component"> & DefineProp<"titleAdd", string, null, null, "The add title of the add blade"> & DefineProp<"titleEdit", string, null, null, "The edit title of the edit blade"> & DefineProp<"disableSearch", boolean, false, null, "Disables the automatic search"> & DefineProp<"disableSave", boolean, false, null, "If it is allowed save"> & DefineProp<"sortable", boolean, false, null, "If it is allowed to sort"> & DefineProp<"readonly", boolean, false, null, "Disable add and delete"> & DefineProp<"list", boolean, false, null, "Always render the items as a list"> & DefineProp<"confirmDelete", boolean, false, null, "If you confirm before delete from the items"> & DefineProp<"noAddConfirm", boolean, false, null, "If items are added without a save button"> & DefineProp<"bladelessAdd", boolean, false, null, "If addis not a blade and only fires events"> & DefineProp<"bladeless", boolean, false, null, "If add/edit is not a blade and only fires events"> & DefineProp<"actions", ActionDefinition[], false, null, "Actions to display in the blade header of the selection blade"> & DefineProp<"itemSettingable", (item: TItem) => boolean, false, null, "Item has settings or not."> & DefineProp<"itemDeletable", (item: TItem) => boolean, false, null, "Item can be deleted or not."> & DefineSlot<"selectionItemRender", (item: JourneySelectItem<any>, index: number, isSelected: boolean) => VNodeChild> & DefineSlot<"selectionRender", () => VNodeChild> & DefineSlot<"selectedItemRenderer", (item: JourneySelectItem<any>, index: number) => VNodeChild> & DefineSlot<"settingsRender", (item: JourneySelectItem<any>, index: number) => VNodeChild> & DefineSlot<"settingsRenderV2", (item: {
5
+ SettingsRenderer: JourneySelectBladeElement;
6
+ item: JourneySelectItem<any>;
7
+ index: number;
8
+ }) => VNodeChild> & DefineSlot<"selectionRenderV2", (item: {
9
+ SelectionRenderer: JourneySelectBladeElement;
10
+ }) => VNodeChild> & DefineSlot<"actions", () => VNodeChild> & DefineEmit<"showAdd", () => true> & DefineEmit<"showEdit", (item: TItem, index: number) => true> & DefineEmit<"search", (searchText: string) => true> & DefineEmit<"click:clear", () => true> & DefineProp<"onClickAdd", (item: Array<TItem> | TItem) => void | boolean | Promise<boolean>> & DefineProp<"onRemoveItem", (item: TItem) => void | boolean | Promise<boolean>> & DefineProp<"onClickUpdate", (item: TItem, index: number) => void | boolean | Promise<boolean>> & DefineProp<"onClickDelete", (item: TItem, index: number) => void | boolean | Promise<boolean>>;
11
+ declare const _default: <TItem extends unknown = any>(props: import("@omnia/fx/ux").ExtractProps<BaseProps<TItem>> & {
12
+ "onUpdate:modelValue"?: (value: any) => any;
13
+ "onClick:clear"?: () => any;
14
+ onSearch?: (searchText: string) => any;
15
+ onShowAdd?: () => any;
16
+ onShowEdit?: (item: TItem, index: number) => any;
17
+ } & {
18
+ "v-slots"?: {
19
+ selectionItemRender?: (item: JourneySelectItem<any>, index: number, isSelected: boolean) => VNodeChild;
20
+ selectionRender?: () => VNodeChild;
21
+ selectedItemRenderer?: (item: JourneySelectItem<any>, index: number) => VNodeChild;
22
+ settingsRender?: (item: JourneySelectItem<any>, index: number) => VNodeChild;
23
+ settingsRenderV2?: (item: {
24
+ SettingsRenderer: JourneySelectBladeElement;
25
+ item: JourneySelectItem<any>;
26
+ index: number;
27
+ }) => VNodeChild;
28
+ selectionRenderV2?: (item: {
29
+ SelectionRenderer: JourneySelectBladeElement;
30
+ }) => VNodeChild;
31
+ actions?: () => VNodeChild;
32
+ } & Omit<{
33
+ default?: import("vue").Slot;
34
+ $stable?: boolean;
35
+ }, "actions" | "selectionItemRender" | "selectionRender" | "selectedItemRenderer" | "settingsRender" | "settingsRenderV2" | "selectionRenderV2">;
36
+ } & {} & Omit<import("@omnia/fx/ux").VueComponentBaseProps, "actions" | "label" | "colorSchemaType" | "list" | "multiple" | "colors" | "toned" | "v-model" | "modelValue" | "slot:actions" | "emit:update:modelValue" | "items" | "readonly" | "emit:search" | "getApi" | "emit:click:clear" | "itemDeletable" | "sortable" | "propertyValueMapping" | "returnSelectionAsObject" | "labelAdd" | "titleAdd" | "titleEdit" | "disableSearch" | "disableSave" | "confirmDelete" | "noAddConfirm" | "bladelessAdd" | "bladeless" | "itemSettingable" | "slot:selectionItemRender" | "slot:selectionRender" | "slot:selectedItemRenderer" | "slot:settingsRender" | "slot:settingsRenderV2" | "slot:selectionRenderV2" | "emit:showAdd" | "emit:showEdit" | "onClickAdd" | "onRemoveItem" | "onClickUpdate" | "onClickDelete"> & import("@omnia/fx/ux").VNodeEvents) => any;
37
+ export default _default;
@@ -1,6 +1,5 @@
1
- import { EditorChromeConfiguration, guid, ILayoutFileContext, ILayoutMediaContext } from "@omnia/fx-models";
1
+ import { EditorChromeConfiguration, ILayoutFileContext, ILayoutMediaContext } from "@omnia/fx-models";
2
2
  import { useEditorChromeStore } from "../../editorchrome";
3
- import { useLayoutCanvasStore } from "../..";
4
3
  export interface LayoutEditorCanvasSettings {
5
4
  blockProvider?: string;
6
5
  deisgnModes?: "design" | "write" | "design preview" | "write preview" | "design write" | "design write preview";
@@ -8,160 +7,9 @@ export interface LayoutEditorCanvasSettings {
8
7
  mediaContext?: ILayoutMediaContext;
9
8
  fileContext?: ILayoutFileContext;
10
9
  }
11
- export declare function useDefineLayoutEditorCanvas(settings: LayoutEditorCanvasSettings): {
10
+ export declare const defineLayoutEditorCanvas: () => {
11
+ configuration: EditorChromeConfiguration;
12
+ };
13
+ export declare const useDefineLayoutEditorCanvas: () => {
12
14
  configuration: EditorChromeConfiguration;
13
- editorCanvasStore: {
14
- state: {
15
- compatibilityMode: boolean;
16
- layout: {
17
- definition: import("@omnia/fx-models").LayoutDefinition;
18
- ownerLayoutItemsOverride: import("@omnia/fx-models").LayoutItem[];
19
- originalId: guid;
20
- };
21
- id: guid;
22
- settings: {
23
- providers: {
24
- block: string;
25
- mediaContext: ILayoutMediaContext;
26
- fileContext: ILayoutFileContext;
27
- dependencyProviders: string[];
28
- };
29
- };
30
- };
31
- actions: import("../../mobile").StoreReturnDefineAction<{
32
- hooks: () => import("../../mobile").StoreReturnDefineAction<{
33
- blockinstanceCreated: (blockInstance: import("@omnia/fx-models").IBlockInstance) => void;
34
- layoutSectionRenderer: (layoutSectionRenderer: import("@omnia/fx-models").ILayoutSectionRenderer) => void;
35
- }>;
36
- layout: () => import("../../mobile").StoreReturnDefineAction<{
37
- set: (layout: import("@omnia/fx-models").Layout) => void;
38
- }>;
39
- providers: () => {
40
- set: {
41
- dependencyProviders: (providers: Array<string>) => void;
42
- block: (blockProvider: string) => void;
43
- mediaContext: (mediaContext: ILayoutMediaContext) => void;
44
- fileContext: (fileContext: ILayoutFileContext) => void;
45
- };
46
- };
47
- notify: (blockManifestId: string) => void;
48
- init: () => {
49
- readOnlyCanvas: (blockProvider: string, mediaContext: ILayoutMediaContext, fileContext: ILayoutFileContext) => void;
50
- editableCanvas: (editorChromeStore: ReturnType<typeof useEditorChromeStore>, blockProvider: string, mediaContext: ILayoutMediaContext, fileContext: ILayoutFileContext) => void;
51
- };
52
- }>;
53
- get: {
54
- layout: {
55
- loaded: () => import("@omnia/fx-models").LoadedLayout;
56
- };
57
- block: {
58
- readonly instances: {
59
- [blockManifestId: string]: Set<{
60
- instance: import("../..").IBlockInstanceExtendsInternal<void>;
61
- }>;
62
- };
63
- readonly settings: import("../..").ReactiveLayoutItemsSettingsStore;
64
- settingsProvider: () => import("../..").BlockSettingsProvider;
65
- renderMode: () => import("@omnia/fx-models").BlockRenderingModes;
66
- };
67
- providers: {
68
- block: string;
69
- mediaContext: ILayoutMediaContext;
70
- fileContext: ILayoutFileContext;
71
- };
72
- };
73
- rules: {
74
- isEditMode: () => boolean;
75
- };
76
- readonly editor: {
77
- state: {
78
- editorMode: import("@omnia/fx-models").LayoutCanvasMode;
79
- id: guid;
80
- settings: {
81
- authDisabled: boolean;
82
- breakpointSettingsEnabled: boolean;
83
- };
84
- drawerMode: "settings" | "editing" | "layout-structure" | "clipboard";
85
- selected: {
86
- layoutItem: import("@omnia/fx-models").LayoutItem;
87
- clipBoardItem: import("@omnia/fx-models").ClipboardLayoutItem;
88
- displayBreakPoint: import("@omnia/fx-models").DisplayBreakPoint;
89
- layoutItem4Action: import("@omnia/fx-models").LayoutItem;
90
- };
91
- active: {
92
- layoutItemAction: import("@omnia/fx-models").LayoutItemActionState;
93
- };
94
- };
95
- actions: import("../../mobile").StoreReturnDefineAction<{
96
- scrollToLayoutItem: (item: import("@omnia/fx-models").LayoutItem) => void;
97
- selection: () => import("../../mobile").StoreReturnDefineAction<{
98
- execActiveAction: (container: import("@omnia/fx-models").LayoutItem, siblingId?: string, postInsert?: boolean) => void;
99
- toggleActiveAction: (item: import("@omnia/fx-models").LayoutItem | import("@omnia/fx-models").ClipboardLayoutItem, action: import("@omnia/fx-models").LayoutItemActionState) => void;
100
- removeActiveAction: () => void;
101
- removeLayoutItemSelection: () => void;
102
- setLayoutItem: (item: import("@omnia/fx-models").LayoutItem, settingsPanelAction?: "toggle" | "show" | "hide") => void;
103
- }>;
104
- enableDisplayBreakpointSettings: (enable: boolean) => void;
105
- block: () => {
106
- set: {
107
- suggestedBlocks: (blocks: string[]) => void;
108
- };
109
- ensureRemoveDeletedBlocks: (layout: import("@omnia/fx-models").Layout) => void;
110
- };
111
- show: () => import("../../mobile").StoreReturnDefineAction<{
112
- settingsPanel: (action: "show" | "hide" | "toggle") => void;
113
- layoutStructurePanel: (action: "show" | "hide" | "toggle") => void;
114
- clipboardPanel: (action: "show" | "hide" | "toggle") => void;
115
- }>;
116
- layout: () => import("../../mobile").StoreReturnDefineAction<{
117
- copyItem: (item2Copy: import("@omnia/fx-models").LayoutItem, container: import("@omnia/fx-models").LayoutItem, siblingId?: string, postInsert?: boolean) => import("../..").CopiedLayoutItemResult;
118
- moveItem: (item2Move: import("@omnia/fx-models").LayoutItem, container: import("@omnia/fx-models").LayoutItem, siblingId?: string, postInsert?: boolean) => void;
119
- addItem: (itemreference: import("@omnia/fx-models").AddItemToLayoutPayLoad) => void;
120
- insertClipboardItem: (clipboard: import("@omnia/fx-models").ClipboardLayoutItem, container: import("@omnia/fx-models").LayoutItem, siblingId?: string, postInsert?: boolean) => import("../..").CopiedLayoutItemResult;
121
- deleteItem: (itemreference: import("@omnia/fx-models").DeleteItemFromLayoutPayLoad) => void;
122
- changeSectionType: (section: import("@omnia/fx-models").Section, type: import("@omnia/fx-models").SectionTypes) => void;
123
- }>;
124
- configureDrawer: (header: {
125
- icon?: import("@omnia/fx-models").IIcon;
126
- title?: string;
127
- enabled?: boolean;
128
- }, customScroll?: boolean) => void;
129
- setEditorMode: (mode: import("@omnia/fx-models").LayoutCanvasMode) => void;
130
- hooks: () => import("../../mobile").StoreReturnDefineAction<{
131
- onBlockRemoved(block: import("@omnia/fx-models").Block): void;
132
- onLayoutItemMoved(layoutItem: import("@omnia/fx-models").LayoutItem): void;
133
- onBlockCopiedHook(originalBlock: import("@omnia/fx-models").Block, newBlock: import("@omnia/fx-models").Block): void;
134
- onLayoutItemPasted(layoutItem: import("@omnia/fx-models").ClipboardLayoutItem): void;
135
- }>;
136
- init: (canvasStore: ReturnType<typeof useLayoutCanvasStore>, editorChromeStoreRef: ReturnType<typeof useEditorChromeStore>) => void;
137
- }>;
138
- get: {
139
- settingsDefinitions: import("../..").LayoutDefinitionBuilder;
140
- layout: {
141
- active: () => import("@omnia/fx-models").Layout;
142
- };
143
- block: {
144
- suggestions: () => string[];
145
- renderMode: () => import("@omnia/fx-models").BlockRenderingModes;
146
- };
147
- };
148
- rules: {
149
- isSettingsActive: () => boolean;
150
- isLayoutStructureActive: () => boolean;
151
- isClipboardActive: () => boolean;
152
- activeItem: {
153
- isSection(): boolean;
154
- };
155
- showSelectors: () => boolean;
156
- isLayoutItemLocked: (item: import("@omnia/fx-models").LayoutItem) => boolean;
157
- isTemplateEnabledLayout: () => boolean;
158
- isAdvancedModeActivated: () => boolean;
159
- isAuthDisabled: () => boolean;
160
- };
161
- } & {
162
- dispose?: () => void;
163
- };
164
- } & {
165
- dispose?: () => void;
166
- };
167
15
  };
@@ -18,5 +18,5 @@ declare function CellComponent(props: TdHTMLAttributes, ctx: SetupContext): impo
18
18
  declare function RichTextComponent(props: {
19
19
  text: string;
20
20
  media?: IIcon | MediaPickerMedia | string;
21
- }, ctx: SetupContext): import("vue/jsx-runtime").JSX.Element;
21
+ }): import("vue/jsx-runtime").JSX.Element;
22
22
  export {};
@@ -243,9 +243,9 @@ import wc2bfe7d758b5b405d96018f930505c918 from './ux/enterpriseproperties/settin
243
243
  import wcfaee0b6397494a9abca9c480856e2498 from './ux/flow/editor/FlowEditor';
244
244
  import wc9f6fd018560b4c8cbd36f39c6d079bb7 from './ux/flow/renderer/FlowRenderer';
245
245
  import wc2f4b3c8e5d6a4f7bbc9d1e0a2b3c4d5e from './ux/image/scalingsettings/ScalingSettings';
246
- import wc1760d6fe433f46388d4840077b6a6bec from './ux/journey/selection/JourneySelect';
246
+ import wc1760d6fe433f46388d4840077b6a6bec from './ux/journey/selection/JourneySelectBase';
247
247
  import wc58e999e5a1184a7fbea90061fc377f91 from './ux/journey/selection/JourneySelectionListRenderer';
248
- import wc806ee9675e9943459e5d30369a919c86 from './ux/journey/selection/JourneySelectV2';
248
+ import wc806ee9675e9943459e5d30369a919c86 from './ux/journey/selection/JourneySelect';
249
249
  import wc8e03e2f7fb024945bc51138b77d06088 from './ux/layoutcanvas/editor/LayoutEditorCanvas_old';
250
250
  import wc4aed54beb02341e3a6cbde5af5fb6c78 from './ux/layoutcanvas/layoutactionhandler/LayoutAction';
251
251
  import wc02c473f7041b40038ceecdf09e6ba4ca from './ux/layoutcanvas/layoutactionhandler/LayoutActionSettings';
@@ -1706,13 +1706,6 @@ declare global {
1706
1706
  $props: TProp & Omit<VueComponentBaseProps, keyof TProp>;
1707
1707
  };
1708
1708
  } : typeof wc828a4c20542945858e792ec584148a5c;
1709
- "select": typeof wc1760d6fe433f46388d4840077b6a6bec extends {
1710
- propsDefinition: infer TProp;
1711
- } ? {
1712
- new (...args: any[]): {
1713
- $props: TProp & Omit<VueComponentBaseProps, keyof TProp>;
1714
- };
1715
- } : typeof wc1760d6fe433f46388d4840077b6a6bec;
1716
1709
  "selection": {
1717
1710
  "list": typeof wc58e999e5a1184a7fbea90061fc377f91 extends {
1718
1711
  propsDefinition: infer TProp;
@@ -1722,13 +1715,21 @@ declare global {
1722
1715
  };
1723
1716
  } : typeof wc58e999e5a1184a7fbea90061fc377f91;
1724
1717
  };
1725
- "selectv2": typeof wc806ee9675e9943459e5d30369a919c86 extends {
1718
+ "select": (typeof wc806ee9675e9943459e5d30369a919c86 extends {
1726
1719
  propsDefinition: infer TProp;
1727
1720
  } ? {
1728
1721
  new (...args: any[]): {
1729
1722
  $props: TProp & Omit<VueComponentBaseProps, keyof TProp>;
1730
1723
  };
1731
- } : typeof wc806ee9675e9943459e5d30369a919c86;
1724
+ } : typeof wc806ee9675e9943459e5d30369a919c86) & {
1725
+ "base": typeof wc1760d6fe433f46388d4840077b6a6bec extends {
1726
+ propsDefinition: infer TProp;
1727
+ } ? {
1728
+ new (...args: any[]): {
1729
+ $props: TProp & Omit<VueComponentBaseProps, keyof TProp>;
1730
+ };
1731
+ } : typeof wc1760d6fe433f46388d4840077b6a6bec;
1732
+ };
1732
1733
  };
1733
1734
  "settings": {
1734
1735
  "journey": {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@omnia/fx",
3
3
  "license": "MIT",
4
- "version": "8.0.506-dev",
4
+ "version": "8.0.507-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.506-dev",
23
+ "@omnia/fx-models": "8.0.507-dev",
24
24
  "@microsoft/signalr": "6.0.1",
25
25
  "broadcast-channel": "4.8.0",
26
26
  "dayjs": "1.11.7",
@@ -1,16 +0,0 @@
1
- import { OMultiSelectionStyles } from "@omnia/fx-models";
2
- import { DefineProp, DefinePropTheming, DefineSlot, DefineVModel, ItemType, ItemValueType, JourneySelectItem } from "@omnia/fx/ux";
3
- import { VNodeChild } from "vue";
4
- type OJourneySelectV2Props<TItem, TReturnObject extends boolean> = DefinePropTheming & DefineProp<"class", String | String[]> & DefineVModel<"", any, false, null, true, "The v-model of the component"> & DefineProp<"label", string, false, null, "Sets the label of the component."> & DefineProp<"items", TItem, false, null, "TItem must be an array of objects or array of strings. When using objects, will look for a title, value and disabled keys. This can be changed using the item-title, item-value and item-disabled props."> & DefineProp<"itemTitle", ItemValueType<ItemType<TItem>>, false, null, "Property on supplied items that contains its title."> & DefineProp<"itemValue", ItemValueType<ItemType<TItem>>, false, null, "Property on supplied items that contains its value."> & DefineProp<"returnObject", TReturnObject, false, null, "Changes the selection behavior to return the object directly rather than the value specified with item-value."> & DefineProp<"multiple", boolean, false, false, "Multiple selection."> & DefineProp<"disabled", boolean, false, false, "Removes the ability to click or target the input."> & DefineProp<"multiSelectionStyle", OMultiSelectionStyles, false, null, "The style of multi select"> & DefineProp<"itemDeletable", (item: ItemType<TItem>) => boolean, false, null, "Item can be deleted or not."> & DefineSlot<"item", (item: JourneySelectItem<any>, index: number, isSelected: boolean) => VNodeChild> & DefineSlot<"selection", (item: JourneySelectItem<any>, index: number) => VNodeChild>;
5
- declare const _default: <TItem extends readonly any[], TReturnObject extends boolean>(props: import("@omnia/fx/ux").ExtractProps<OJourneySelectV2Props<TItem, TReturnObject>> & {
6
- "onUpdate:modelValue"?: (value: any) => any;
7
- } & {
8
- "v-slots"?: {
9
- item?: (item: JourneySelectItem<any>, index: number, isSelected: boolean) => VNodeChild;
10
- selection?: (item: JourneySelectItem<any>, index: number) => VNodeChild;
11
- } & Omit<{
12
- default?: import("vue").Slot;
13
- $stable?: boolean;
14
- }, "item" | "selection">;
15
- } & {} & Omit<import("@omnia/fx/ux").VueComponentBaseProps, "label" | "colorSchemaType" | "class" | "multiple" | "disabled" | "colors" | "v-model" | "modelValue" | "emit:update:modelValue" | "items" | "itemValue" | "slot:item" | "slot:selection" | "itemTitle" | "returnObject" | "multiSelectionStyle" | "itemDeletable"> & import("@omnia/fx/ux").VNodeEvents) => any;
16
- export default _default;