@omnia/fx 7.9.16-preview → 7.9.17-preview
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.
- package/internal-do-not-import-from-here/ux/UxModels.d.ts +1 -0
- package/internal-do-not-import-from-here/ux/blockgallery/SettingsBlade.d.ts +6 -0
- package/internal-do-not-import-from-here/ux/blockgallery/admin/Constants.d.ts +4 -0
- package/internal-do-not-import-from-here/ux/blockgallery/services/BlockTemplateService.d.ts +2 -2
- package/internal-do-not-import-from-here/ux/blockgallery/store/BlockGalleryStore.d.ts +10 -5
- package/internal-do-not-import-from-here/ux/layoutcanvas/editor/layoutItemselector/AddContentDialog.d.ts +11 -0
- package/internal-do-not-import-from-here/ux/layoutcanvas/editor/layoutItemselector/LayoutItemSelector.d.ts +5 -0
- package/internal-do-not-import-from-here/ux/layoutcanvas/stores/LayoutCanvasStore.d.ts +2 -1
- package/internal-do-not-import-from-here/ux/permissioninput/loc/localize.d.ts +1 -0
- package/package.json +2 -2
@@ -0,0 +1,6 @@
|
|
1
|
+
import { JourneyInstance } from "@omnia/fx-models";
|
2
|
+
interface IAdminBlade {
|
3
|
+
journey: JourneyInstance;
|
4
|
+
}
|
5
|
+
declare const _default: import("vue-tsx-support")._TsxComponentV3<import("vue").default, {}, import("vue-tsx-support").PropsForOutside<IAdminBlade, never>, any, any, any>;
|
6
|
+
export default _default;
|
@@ -1,6 +1,7 @@
|
|
1
1
|
export declare const BladeIds: {
|
2
2
|
blockDialog: string;
|
3
3
|
blockTemplates: string;
|
4
|
+
settings: string;
|
4
5
|
addblock: string;
|
5
6
|
addEditHeader: string;
|
6
7
|
manageList: string;
|
@@ -15,6 +16,9 @@ export declare const BlockDialogRoute: {
|
|
15
16
|
addEditHeader: string[];
|
16
17
|
manageList: string[];
|
17
18
|
};
|
19
|
+
settings: {
|
20
|
+
home: string[];
|
21
|
+
};
|
18
22
|
blockTemplates: {
|
19
23
|
home: string[];
|
20
24
|
addEditTemplate: string[];
|
@@ -1,9 +1,9 @@
|
|
1
|
-
import { BlockTemplate, BlockTemplateView
|
1
|
+
import { BlockTemplate, BlockTemplateView } from "@omnia/fx-models";
|
2
2
|
export declare const useBlockTemplateService: () => {
|
3
3
|
add: (blockTemplate: BlockTemplate) => import("@omnia/fx-models").Future<BlockTemplate>;
|
4
4
|
update: (blockTemplate: BlockTemplate) => import("@omnia/fx-models").Future<unknown>;
|
5
5
|
remove: (id: number) => import("@omnia/fx-models").Future<number>;
|
6
6
|
loadAll: () => import("@omnia/fx-models").Future<BlockTemplateView[]>;
|
7
|
-
loadPagingAsync: (itemQuery: ItemQuery) => import("@omnia/fx-models").Future<ItemQueryResult<BlockTemplateView>>;
|
8
7
|
getById: (id: number) => import("@omnia/fx-models").Future<BlockTemplate>;
|
8
|
+
getByIds: (blockTemplateIds: number[]) => import("@omnia/fx-models").Future<BlockTemplate[]>;
|
9
9
|
};
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { BlockGalleryHeader, BlockGalleryItem, BlockGalleryItemView, MultilingualString, BlockTemplate } from "@omnia/fx-models";
|
1
|
+
import { BlockGalleryHeader, BlockGallerySetting, BlockGalleryItem, BlockGalleryItemView, MultilingualString, BlockTemplate } from "@omnia/fx-models";
|
2
2
|
import { MultilingualStore, Store } from "@omnia/fx/stores";
|
3
3
|
import { BlockCatalogStore } from "../../layoutcanvas";
|
4
4
|
import { SettingsService } from "@omnia/fx/services";
|
@@ -8,9 +8,10 @@ export declare class BlockGalleryStore extends Store {
|
|
8
8
|
settingsService: SettingsService<any>;
|
9
9
|
private blockTemplateService;
|
10
10
|
private omniaBlocks;
|
11
|
-
private
|
11
|
+
private ensureInitAdminView;
|
12
|
+
private ensureInitRenderView;
|
12
13
|
private blockGallerySetting;
|
13
|
-
private
|
14
|
+
private blockTemplateViews;
|
14
15
|
private blockTemplateIdPrefix;
|
15
16
|
private allBlocks;
|
16
17
|
private blockGalleryFactory;
|
@@ -27,6 +28,7 @@ export declare class BlockGalleryStore extends Store {
|
|
27
28
|
[id: string]: BlockGalleryItemView;
|
28
29
|
};
|
29
30
|
header: (headerId: string) => BlockGalleryHeader;
|
31
|
+
blockGallerySetting: () => BlockGallerySetting;
|
30
32
|
orderedItems: () => BlockGalleryItem[];
|
31
33
|
orderedItemTitle: (blockId: string) => string;
|
32
34
|
editingHeaderId: () => string;
|
@@ -50,13 +52,16 @@ export declare class BlockGalleryStore extends Store {
|
|
50
52
|
switchOffBlockDialogAlterMode: import("@omnia/fx/stores").StoreMutation<() => void, () => import("@omnia/fx-models").IMessageBusSubscriptionHandler>;
|
51
53
|
};
|
52
54
|
actions: {
|
53
|
-
|
55
|
+
ensureLoadAllBlocksForAdminView: import("@omnia/fx/stores").StoreAction<unknown, (forceReload?: boolean) => void, (result: void, forceReload?: boolean) => void, (failureReason: any, forceReload?: boolean) => void, (forceReload?: boolean) => Promise<void>>;
|
56
|
+
ensureLoadAllBlocksForRender: import("@omnia/fx/stores").StoreAction<unknown, (forceReload?: boolean) => void, (result: void, forceReload?: boolean) => void, (failureReason: any, forceReload?: boolean) => void, (forceReload?: boolean) => Promise<void>>;
|
54
57
|
getOmniaBlocks: import("@omnia/fx/stores").StoreAction<unknown, () => void, (result: void) => void, (failureReason: any) => void, () => Promise<void>>;
|
55
58
|
getBlockDialogSettings: import("@omnia/fx/stores").StoreAction<unknown, () => void, (result: void) => void, (failureReason: any) => void, () => Promise<void>>;
|
56
59
|
updateBlockDialogSettings: import("@omnia/fx/stores").StoreAction<unknown, () => void, (result: void) => void, (failureReason: any) => void, () => Promise<void>>;
|
57
60
|
addOrUpdateBlockTemplate: import("@omnia/fx/stores").StoreAction<unknown, (blockTemplate: BlockTemplate, isEdit: boolean) => void, (result: void, blockTemplate: BlockTemplate, isEdit: boolean) => void, (failureReason: any, blockTemplate: BlockTemplate, isEdit: boolean) => void, (blockTemplate: BlockTemplate, isEdit: boolean) => Promise<void>>;
|
58
61
|
};
|
59
|
-
private
|
62
|
+
private getBlockTemplateViews;
|
63
|
+
private loadConfiguredBlockTemplates;
|
64
|
+
private getBlockTemplateIdFromGalleryItem;
|
60
65
|
private updateBlockDictionary;
|
61
66
|
private updateBlockDictionaryItem;
|
62
67
|
}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import { LayoutItem, LayoutItemRegistration } from "@omnia/fx-models";
|
2
|
+
declare const _default: import("vue-tsx-support")._TsxComponentV3<import("vue").default, {}, import("vue-tsx-support").PropsForOutside<{
|
3
|
+
visible: boolean;
|
4
|
+
closeEvent: () => void;
|
5
|
+
selectBlockEvent: (item: LayoutItemRegistration) => void;
|
6
|
+
container: LayoutItem;
|
7
|
+
filterValidBlock: (item: LayoutItemRegistration) => boolean;
|
8
|
+
siblingId: string;
|
9
|
+
postInsert: boolean;
|
10
|
+
}, "container" | "visible" | "closeEvent" | "selectBlockEvent" | "filterValidBlock">, any, any, any>;
|
11
|
+
export default _default;
|
@@ -3,6 +3,7 @@ import { VueComponentBaseProps } from "../../..";
|
|
3
3
|
import { LayoutItem, LayoutItemRegistration } from "../../../../models";
|
4
4
|
import { VueComponentBase } from "../../..";
|
5
5
|
import { FeatureStore } from "../../../../stores";
|
6
|
+
import { BlockGalleryStore } from "internal/fx/ux/blockgallery/store";
|
6
7
|
export interface LayoutItemSelectorProps extends VueComponentBaseProps {
|
7
8
|
container: LayoutItem;
|
8
9
|
color: string;
|
@@ -19,9 +20,13 @@ export declare class LayoutItemSelector extends VueComponentBase<LayoutItemSelec
|
|
19
20
|
layoutEditorStore: LayoutCanvasStore;
|
20
21
|
layoutItemStore: BlockCatalogStore;
|
21
22
|
featureStore: FeatureStore;
|
23
|
+
blockGalleryStore: BlockGalleryStore;
|
22
24
|
private omniaUxLoc;
|
25
|
+
private isModernDialog;
|
23
26
|
private model;
|
24
27
|
beforeDestroy(): void;
|
28
|
+
created(): void;
|
29
|
+
private init;
|
25
30
|
private filterValidBlockRegistration;
|
26
31
|
/**
|
27
32
|
* Eventhandler for adding a layout item
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { Layout, LayoutEditorModes, LayoutItem, DisplayBreakPoint, LayoutItemActionState, SettingsPanelState, DisplayBreakPointSetting, DeleteItemFromLayoutPayLoad, AddItemToLayoutPayLoad, LayoutItemRegistration, LoadedLayout, ILayoutCanvasStore, LayoutCanvasModes, BlockRenderingModes, IBlockInstance, ILayoutSectionRenderer, GuidValue, Block, LayoutDrawerState, LayoutDrawerTabs, SectionSettings, SectionTypes, Section, LayoutInheritanceBehaviors, ThemeDefinition, ClipboardLayoutItem } from "../../../models";
|
1
|
+
import { Layout, LayoutEditorModes, LayoutItem, DisplayBreakPoint, LayoutItemActionState, SettingsPanelState, DisplayBreakPointSetting, DeleteItemFromLayoutPayLoad, AddItemToLayoutPayLoad, LayoutItemRegistration, LoadedLayout, ILayoutCanvasStore, LayoutCanvasModes, BlockRenderingModes, IBlockInstance, ILayoutSectionRenderer, GuidValue, Block, LayoutDrawerState, LayoutDrawerTabs, SectionSettings, SectionTypes, Section, LayoutInheritanceBehaviors, ThemeDefinition, ClipboardLayoutItem, BlockTemplate } from "../../../models";
|
2
2
|
import { EditorLayoutItemFactory } from "../factories";
|
3
3
|
import { LayoutEditorThemingManager } from "../shared";
|
4
4
|
import { BlockSettingsProvider, LayoutDefinitionBuilder } from "../shared";
|
@@ -105,6 +105,7 @@ export declare class LayoutCanvasStore extends Store implements ILayoutCanvasSto
|
|
105
105
|
changeSectionType: import("../../../stores").StoreMutation<(section: Section, type: SectionTypes) => void, (section: Section<SectionSettings>, type: SectionTypes) => import("@omnia/fx-models").IMessageBusSubscriptionHandler>;
|
106
106
|
copyItemInLayout: import("../../../stores").StoreMutation<(item2Copy: LayoutItem, container: LayoutItem, siblingId?: string, postInsert?: boolean) => void, (item2Copy: LayoutItem, container: LayoutItem, siblingId?: string, postInsert?: boolean) => import("@omnia/fx-models").IMessageBusSubscriptionHandler>;
|
107
107
|
insertClipboardItemIntoLayout: import("../../../stores").StoreMutation<(clipboard: ClipboardLayoutItem, container: LayoutItem, siblingId?: string, postInsert?: boolean) => void, (clipboard: ClipboardLayoutItem, container: LayoutItem, siblingId?: string, postInsert?: boolean) => import("@omnia/fx-models").IMessageBusSubscriptionHandler>;
|
108
|
+
insertBlockTemplateToLayout: import("../../../stores").StoreMutation<(blockTemplate: BlockTemplate, container: LayoutItem, siblingId?: string, postInsert?: boolean) => void, (blockTemplate: BlockTemplate, container: LayoutItem, siblingId?: string, postInsert?: boolean) => import("@omnia/fx-models").IMessageBusSubscriptionHandler>;
|
108
109
|
addItem2Layout: import("../../../stores").StoreMutation<(itemreference: AddItemToLayoutPayLoad) => void, (itemreference: AddItemToLayoutPayLoad) => import("@omnia/fx-models").IMessageBusSubscriptionHandler>;
|
109
110
|
deleteItemFromLayout: import("../../../stores").StoreMutation<(itemreference: DeleteItemFromLayoutPayLoad) => void, (itemreference: DeleteItemFromLayoutPayLoad) => import("@omnia/fx-models").IMessageBusSubscriptionHandler>;
|
110
111
|
};
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@omnia/fx",
|
3
3
|
"license": "MIT",
|
4
|
-
"version": "7.9.
|
4
|
+
"version": "7.9.17-preview",
|
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": "7.9.
|
23
|
+
"@omnia/fx-models": "7.9.17-preview",
|
24
24
|
"@microsoft/signalr": "6.0.1",
|
25
25
|
"broadcast-channel": "4.8.0",
|
26
26
|
"dayjs": "1.10.7",
|