@omnia/fx 7.9.22-preview → 7.9.24-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.
@@ -1408,11 +1408,12 @@ export interface OmniaUxLocalization {
1408
1408
  BlockGallery: {
1409
1409
  Title: string;
1410
1410
  Settings: string;
1411
+ EnableModernDialogSwitch: string;
1411
1412
  BlockTemplates: {
1412
1413
  Title: string;
1413
1414
  Create: string;
1414
1415
  Fields: {
1415
- CodeSnippet: string;
1416
+ Definition: string;
1416
1417
  };
1417
1418
  InvalidJsonField: string;
1418
1419
  ErrorMsg: string;
@@ -1428,6 +1429,12 @@ export interface OmniaUxLocalization {
1428
1429
  Confirm: string;
1429
1430
  Header: string;
1430
1431
  };
1432
+ BlockDialogLayout: {
1433
+ Title: string;
1434
+ Authentication: string;
1435
+ Default: string;
1436
+ Spfx: string;
1437
+ };
1431
1438
  Tooltips: {
1432
1439
  Management: string;
1433
1440
  };
@@ -0,0 +1,5 @@
1
+ import { JourneyInstance } from "@omnia/fx-models";
2
+ declare const _default: import("vue-tsx-support")._TsxComponentV3<import("vue").default, {}, import("vue-tsx-support").PropsForOutside<{
3
+ journey: JourneyInstance;
4
+ }, "journey">, any, any, any>;
5
+ export default _default;
@@ -1,20 +1,20 @@
1
1
  export declare const BladeIds: {
2
2
  blockDialog: string;
3
+ blockDialogLayouts: string;
3
4
  blockTemplates: string;
4
5
  settings: string;
5
6
  addblock: string;
6
7
  addEditHeader: string;
7
- manageList: string;
8
8
  addEditTemplate: string;
9
9
  blockGallery: string;
10
10
  };
11
11
  export declare const BlockDialogRoute: {
12
12
  blockGallery: string[];
13
- blockDialog: {
13
+ blockDialogLayout: {
14
14
  home: string[];
15
+ blockDialog: string[];
15
16
  addBlock: string[];
16
17
  addEditHeader: string[];
17
- manageList: string[];
18
18
  };
19
19
  settings: {
20
20
  home: string[];
@@ -1,5 +1,6 @@
1
- import { BlockGallerySetting, BlockTemplate } from "@omnia/fx-models";
1
+ import { BlockGalleryDialogLayoutSetting, BlockGalleryGeneralSetting, BlockTemplate } from "@omnia/fx-models";
2
2
  export declare const useBlockGalleryFactory: () => {
3
3
  defaultBlockTemplate: () => BlockTemplate;
4
- defaultBlockGallerySetting: () => BlockGallerySetting;
4
+ defaultBlockGalleryDialogLayoutSetting: () => BlockGalleryDialogLayoutSetting;
5
+ defaultBlockGalleryGeneralSetting: () => BlockGalleryGeneralSetting;
5
6
  };
@@ -1,16 +1,17 @@
1
- import { BlockGalleryHeader, BlockGallerySetting, BlockGalleryItem, BlockGalleryItemView, MultilingualString, BlockTemplate } from "@omnia/fx-models";
1
+ import { BlockGalleryHeader, BlockGalleryDialogLayoutSetting, BlockGalleryItem, BlockGalleryItemView, MultilingualString, BlockTemplate, BlockDialogLayoutType, BlockGalleryGeneralSetting } from "@omnia/fx-models";
2
2
  import { MultilingualStore, Store } from "@omnia/fx/stores";
3
3
  import { BlockCatalogStore } from "../../layoutcanvas";
4
- import { SettingsService } from "@omnia/fx/services";
4
+ import { LocalizationService, SettingsService } from "@omnia/fx/services";
5
5
  export declare class BlockGalleryStore extends Store {
6
6
  blockCatalogStore: BlockCatalogStore;
7
7
  multilingualStore: MultilingualStore;
8
8
  settingsService: SettingsService<any>;
9
+ localizationService: LocalizationService;
9
10
  private blockTemplateService;
10
11
  private omniaBlocks;
11
12
  private ensureInitAdminView;
12
13
  private ensureInitRenderView;
13
- private blockGallerySetting;
14
+ private blockGalleryDialogLayoutSetting;
14
15
  private blockTemplateViews;
15
16
  private blockTemplateIdPrefix;
16
17
  private allBlocks;
@@ -19,6 +20,11 @@ export declare class BlockGalleryStore extends Store {
19
20
  private editingHeaderId;
20
21
  private selectingTemplateId;
21
22
  private isBlockDialogInAlterMode;
23
+ private editingDialogLayoutType;
24
+ private generalSetting;
25
+ private spfxBlocks;
26
+ private initSpfxDictionary;
27
+ private layoutBlockSettingForRender;
22
28
  protected onActivated(): void;
23
29
  getters: {
24
30
  blocks: () => {
@@ -28,13 +34,15 @@ export declare class BlockGalleryStore extends Store {
28
34
  [id: string]: BlockGalleryItemView;
29
35
  };
30
36
  header: (headerId: string) => BlockGalleryHeader;
31
- blockGallerySetting: () => BlockGallerySetting;
37
+ blockGalleryLayoutSetting: (layoutType: BlockDialogLayoutType) => BlockGalleryDialogLayoutSetting;
32
38
  orderedItems: () => BlockGalleryItem[];
33
39
  orderedItemTitle: (blockId: string) => string;
34
40
  editingHeaderId: () => string;
35
41
  editingTemplateId: () => number;
36
42
  isBlockDialogInAlterMode: () => boolean;
43
+ editingDialogLayoutType: () => BlockDialogLayoutType;
37
44
  };
45
+ private isBlockValidForLayout;
38
46
  mutations: {
39
47
  addSelectedBlocks: import("@omnia/fx/stores").StoreMutation<(selectedBlockIds: Array<string>) => void, (selectedBlockIds: string[]) => import("@omnia/fx-models").IMessageBusSubscriptionHandler>;
40
48
  removeSelectedBlock: import("@omnia/fx/stores").StoreMutation<(blockId: string) => void, (blockId: string) => import("@omnia/fx-models").IMessageBusSubscriptionHandler>;
@@ -50,16 +58,20 @@ export declare class BlockGalleryStore extends Store {
50
58
  switchToTemplateAddMode: import("@omnia/fx/stores").StoreMutation<() => void, () => import("@omnia/fx-models").IMessageBusSubscriptionHandler>;
51
59
  switchBlockDialogToAlterMode: import("@omnia/fx/stores").StoreMutation<() => void, () => import("@omnia/fx-models").IMessageBusSubscriptionHandler>;
52
60
  switchOffBlockDialogAlterMode: import("@omnia/fx/stores").StoreMutation<() => void, () => import("@omnia/fx-models").IMessageBusSubscriptionHandler>;
61
+ setEditingDialogLayout: import("@omnia/fx/stores").StoreMutation<(dialogLayoutType: BlockDialogLayoutType) => void, (dialogLayoutType: BlockDialogLayoutType) => import("@omnia/fx-models").IMessageBusSubscriptionHandler>;
53
62
  };
54
63
  actions: {
55
64
  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>>;
65
+ ensureLoadAllBlocksForRender: import("@omnia/fx/stores").StoreAction<unknown, (layoutType: BlockDialogLayoutType) => void, (result: void, layoutType: BlockDialogLayoutType) => void, (failureReason: any, layoutType: BlockDialogLayoutType) => void, (layoutType: BlockDialogLayoutType) => Promise<void>>;
57
66
  getOmniaBlocks: import("@omnia/fx/stores").StoreAction<unknown, () => void, (result: void) => void, (failureReason: any) => void, () => Promise<void>>;
58
- getBlockDialogSettings: import("@omnia/fx/stores").StoreAction<unknown, () => void, (result: void) => void, (failureReason: any) => void, () => Promise<void>>;
67
+ getBlockDialogSettings: import("@omnia/fx/stores").StoreAction<unknown, (layoutType: BlockDialogLayoutType) => void, (result: void, layoutType: BlockDialogLayoutType) => void, (failureReason: any, layoutType: BlockDialogLayoutType) => void, (layoutType: BlockDialogLayoutType) => Promise<void>>;
59
68
  updateBlockDialogSettings: import("@omnia/fx/stores").StoreAction<unknown, () => void, (result: void) => void, (failureReason: any) => void, () => Promise<void>>;
60
69
  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>>;
70
+ ensureGeneralSetting: import("@omnia/fx/stores").StoreAction<unknown, () => void, (result: BlockGalleryGeneralSetting) => void, (failureReason: any) => void, () => Promise<BlockGalleryGeneralSetting>>;
61
71
  };
72
+ private ensureSpfxBlockDictionary;
62
73
  private getBlockTemplateViews;
74
+ private getLayoutBlockSettingKey;
63
75
  private loadConfiguredBlockTemplates;
64
76
  private getBlockTemplateIdFromGalleryItem;
65
77
  private updateBlockDictionary;
@@ -0,0 +1,3 @@
1
+ export declare const blockGalleryStyle: {
2
+ listPrependIcon: string;
3
+ };
@@ -0,0 +1 @@
1
+ export * from "./General";
@@ -1,4 +1,4 @@
1
- import { LayoutItem, LayoutItemRegistration } from "@omnia/fx-models";
1
+ import { LayoutItem, LayoutItemRegistration, BlockDialogLayoutType } from "@omnia/fx-models";
2
2
  declare const _default: import("vue-tsx-support")._TsxComponentV3<import("vue").default, {}, import("vue-tsx-support").PropsForOutside<{
3
3
  visible: boolean;
4
4
  closeEvent: () => void;
@@ -7,5 +7,6 @@ declare const _default: import("vue-tsx-support")._TsxComponentV3<import("vue").
7
7
  filterValidBlock: (item: LayoutItemRegistration) => boolean;
8
8
  siblingId: string;
9
9
  postInsert: boolean;
10
- }, "container" | "visible" | "closeEvent" | "selectBlockEvent" | "filterValidBlock">, any, any, any>;
10
+ blockDialogLayoutType: BlockDialogLayoutType;
11
+ }, "visible" | "closeEvent" | "selectBlockEvent">, any, any, any>;
11
12
  export default _default;
@@ -4,6 +4,7 @@ import { LayoutItem, LayoutItemRegistration } from "../../../../models";
4
4
  import { VueComponentBase } from "../../..";
5
5
  import { FeatureStore } from "../../../../stores";
6
6
  import { BlockGalleryStore } from "internal/fx/ux/blockgallery/store";
7
+ import { SettingsService } from "@omnia/fx/services";
7
8
  export interface LayoutItemSelectorProps extends VueComponentBaseProps {
8
9
  container: LayoutItem;
9
10
  color: string;
@@ -21,6 +22,7 @@ export declare class LayoutItemSelector extends VueComponentBase<LayoutItemSelec
21
22
  layoutItemStore: BlockCatalogStore;
22
23
  featureStore: FeatureStore;
23
24
  blockGalleryStore: BlockGalleryStore;
25
+ settingsService: SettingsService<any>;
24
26
  private omniaUxLoc;
25
27
  private isModernDialog;
26
28
  private model;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@omnia/fx",
3
3
  "license": "MIT",
4
- "version": "7.9.22-preview",
4
+ "version": "7.9.24-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.22-preview",
23
+ "@omnia/fx-models": "7.9.24-preview",
24
24
  "@microsoft/signalr": "6.0.1",
25
25
  "broadcast-channel": "4.8.0",
26
26
  "dayjs": "1.10.7",