@omnia/fx 7.9.2-preview → 7.9.2
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/core/Cookies.d.ts +2 -1
- package/internal-do-not-import-from-here/core/http/HttpClient.d.ts +4 -2
- package/internal-do-not-import-from-here/core/utils/Utils.d.ts +3 -1
- package/internal-do-not-import-from-here/manifests/omnia.fx.manifest.json +1 -1
- package/internal-do-not-import-from-here/services/BusinessProfileService.d.ts +1 -0
- package/internal-do-not-import-from-here/services/SecurityRoles.d.ts +1 -0
- package/internal-do-not-import-from-here/services/SemanticSearchService.d.ts +2 -2
- package/internal-do-not-import-from-here/services/TargetingPropertyService.d.ts +1 -0
- package/internal-do-not-import-from-here/services/identities/IdentityService.d.ts +5 -0
- package/internal-do-not-import-from-here/services/permissions/PermissionService.d.ts +1 -0
- package/internal-do-not-import-from-here/stores/ArchivedIdentityStore.d.ts +23 -0
- package/internal-do-not-import-from-here/stores/AzureAdUserStore.d.ts +1 -0
- package/internal-do-not-import-from-here/stores/BlockTitleSettingsStore.d.ts +4 -2
- package/internal-do-not-import-from-here/stores/TargetingPropertyStore.d.ts +1 -0
- package/internal-do-not-import-from-here/stores/index.d.ts +1 -0
- package/internal-do-not-import-from-here/ux/Exposes.d.ts +0 -1
- package/internal-do-not-import-from-here/ux/UxModels.d.ts +53 -2
- package/internal-do-not-import-from-here/ux/actionhandler/ActionHandler.d.ts +2 -2
- package/internal-do-not-import-from-here/ux/admin/chrome/AdminChrome.d.ts +5 -0
- package/internal-do-not-import-from-here/ux/analytics/metric/Metric.d.ts +8 -0
- package/internal-do-not-import-from-here/ux/app/appinstance/view/listing/ListView.d.ts +0 -4
- package/internal-do-not-import-from-here/ux/authenticationchecker/AuthenticationChecker.d.ts +3 -1
- package/internal-do-not-import-from-here/ux/blockgallery/AddEditBlockBlade.d.ts +6 -0
- package/internal-do-not-import-from-here/ux/blockgallery/AddEditHeaderBlade.d.ts +6 -0
- package/internal-do-not-import-from-here/ux/blockgallery/AddEditTemplateBlade.d.ts +6 -0
- package/internal-do-not-import-from-here/ux/blockgallery/AdminBlade.d.ts +12 -0
- package/internal-do-not-import-from-here/ux/blockgallery/BlockDialogBlade.d.ts +6 -0
- package/internal-do-not-import-from-here/ux/blockgallery/BlockDialogLayoutListBlade.d.ts +5 -0
- package/internal-do-not-import-from-here/ux/blockgallery/BlockTemplatesBlade.d.ts +6 -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/AdminRegistration.d.ts +1 -0
- package/internal-do-not-import-from-here/ux/blockgallery/admin/Constants.d.ts +26 -0
- package/internal-do-not-import-from-here/ux/blockgallery/admin/TenantBlockTemplateJourney.d.ts +6 -0
- package/internal-do-not-import-from-here/ux/blockgallery/apis/Registration.d.ts +1 -0
- package/internal-do-not-import-from-here/ux/blockgallery/factory/Factory.d.ts +6 -0
- package/internal-do-not-import-from-here/ux/blockgallery/factory/index.d.ts +1 -0
- package/internal-do-not-import-from-here/ux/blockgallery/services/BlockTemplateService.d.ts +9 -0
- package/internal-do-not-import-from-here/ux/blockgallery/services/index.d.ts +1 -0
- package/internal-do-not-import-from-here/ux/blockgallery/store/BlockGalleryStore.d.ts +94 -0
- package/internal-do-not-import-from-here/ux/blockgallery/store/index.d.ts +1 -0
- package/internal-do-not-import-from-here/ux/blockgallery/style/General.d.ts +4 -0
- package/internal-do-not-import-from-here/ux/blockgallery/style/index.d.ts +1 -0
- package/internal-do-not-import-from-here/ux/dialog/Dialog.d.ts +8 -4
- package/internal-do-not-import-from-here/ux/dialog/IDialog.d.ts +8 -1
- package/internal-do-not-import-from-here/ux/editorchrome/action_toolbar/ActionToolbar.d.ts +6 -0
- package/internal-do-not-import-from-here/ux/editorchrome/chrome/EditorChrome.d.ts +3 -0
- package/internal-do-not-import-from-here/ux/editorchrome/chrome/IEditorChrome.d.ts +3 -0
- package/internal-do-not-import-from-here/ux/enterpriseproperties/EnterprisePropertyComponentProps.d.ts +1 -0
- package/internal-do-not-import-from-here/ux/enterpriseproperties/display/mediafield/IMediaFieldDisplay.d.ts +15 -0
- package/internal-do-not-import-from-here/ux/enterpriseproperties/display/mediafield/MediaFieldDisplay.d.ts +18 -0
- package/internal-do-not-import-from-here/ux/enterpriseproperties/display/mediafield/index.d.ts +1 -0
- package/internal-do-not-import-from-here/ux/enterpriseproperties/edit/index.d.ts +1 -0
- package/internal-do-not-import-from-here/ux/enterpriseproperties/edit/mediafield/IMediaFieldEdit.d.ts +16 -0
- package/internal-do-not-import-from-here/ux/enterpriseproperties/edit/mediafield/MediaFieldEdit.d.ts +32 -0
- package/internal-do-not-import-from-here/ux/enterpriseproperties/edit/mediafield/index.d.ts +1 -0
- package/internal-do-not-import-from-here/ux/enterpriseproperties/edit/richtextfield/RichTextFieldEdit.d.ts +1 -0
- package/internal-do-not-import-from-here/ux/headingconfigurations/HeadingConfigurationFactory.d.ts +2 -1
- package/internal-do-not-import-from-here/ux/identities/IdentityRenderer.d.ts +6 -1
- package/internal-do-not-import-from-here/ux/identities/loc/localize.d.ts +1 -0
- package/internal-do-not-import-from-here/ux/languagepicker/ILanguagePicker.d.ts +3 -2
- package/internal-do-not-import-from-here/ux/languagepicker/LanguagePicker.d.ts +6 -2
- package/internal-do-not-import-from-here/ux/layoutcanvas/editor/layoutItemselector/AddContentDialog.d.ts +12 -0
- package/internal-do-not-import-from-here/ux/layoutcanvas/editor/layoutItemselector/LayoutItemSelector.d.ts +7 -0
- package/internal-do-not-import-from-here/ux/layoutcanvas/editor/settings/block/Header.d.ts +3 -0
- package/internal-do-not-import-from-here/ux/layoutcanvas/editor/settings/blocktitle/BlockTitle.css.d.ts +1 -0
- package/internal-do-not-import-from-here/ux/layoutcanvas/editor/settings/blocktitle/BlockTitle.d.ts +5 -1
- package/internal-do-not-import-from-here/ux/layoutcanvas/editor/settings/blocktitle/IBlockTitle.d.ts +4 -0
- package/internal-do-not-import-from-here/ux/layoutcanvas/editor/settings/section/Header.d.ts +4 -1
- package/internal-do-not-import-from-here/ux/layoutcanvas/shared/layoutitemsdesigner/StepperSectionDesigner.d.ts +3 -0
- package/internal-do-not-import-from-here/ux/layoutcanvas/stores/BlockCatalogStore.d.ts +14 -1
- package/internal-do-not-import-from-here/ux/layoutcanvas/stores/LayoutCanvasStore.d.ts +2 -1
- package/internal-do-not-import-from-here/ux/mediapickerproviders/mediaproviderbase/GridViewMediaProviderComponent.d.ts +2 -0
- package/internal-do-not-import-from-here/ux/mediapickerproviders/unsplash/UnsplashProvider.d.ts +2 -0
- package/internal-do-not-import-from-here/ux/mediapickerproviders/unsplash/models/UnsplashImage.d.ts +4 -0
- package/internal-do-not-import-from-here/ux/mediapickerproviders/unsplash/services/UnsplashImageService.d.ts +5 -2
- package/internal-do-not-import-from-here/ux/models/enterpriseproperties/PersonFieldDisplayStyles.d.ts +1 -0
- package/internal-do-not-import-from-here/ux/organizationtree/OrganizationTree.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/permissioninput/loc/localize.d.ts +1 -0
- package/internal-do-not-import-from-here/ux/profilecard/ProfileCard.d.ts +2 -1
- package/internal-do-not-import-from-here/ux/profilecard/index.d.ts +1 -0
- package/internal-do-not-import-from-here/ux/profilecard/loc/localize.d.ts +1 -0
- package/internal-do-not-import-from-here/ux/properties/builtins/identity/IdentityDisplay.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/social/Comment.d.ts +6 -1
- package/internal-do-not-import-from-here/wctypings.d.ts +2 -2
- package/package.json +3 -3
- package/internal-do-not-import-from-here/ux/skeletonhandler/ISkeletonLoader.d.ts +0 -13
- package/internal-do-not-import-from-here/ux/skeletonhandler/SkeletonLoader.d.ts +0 -7
- package/internal-do-not-import-from-here/ux/skeletonhandler/index.d.ts +0 -1
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { BlockDialogLayoutInfo, BlockGalleryDialogLayoutSetting, BlockGalleryGeneralSetting, BlockGalleryHeader, BlockGalleryItem, BlockGalleryItemView, BlockTemplate, MultilingualString } from "@omnia/fx-models";
|
|
2
|
+
import { LocalizationService, SettingsService } from "@omnia/fx/services";
|
|
3
|
+
import { MultilingualStore, Store } from "@omnia/fx/stores";
|
|
4
|
+
import { OmniaUxLocalization } from "../../UxModels";
|
|
5
|
+
import { BlockCatalogStore } from "../../layoutcanvas";
|
|
6
|
+
import * as _ from "lodash";
|
|
7
|
+
export { _ };
|
|
8
|
+
export declare class BlockGalleryStore extends Store {
|
|
9
|
+
blockCatalogStore: BlockCatalogStore;
|
|
10
|
+
multilingualStore: MultilingualStore;
|
|
11
|
+
settingsService: SettingsService<any>;
|
|
12
|
+
localizationService: LocalizationService;
|
|
13
|
+
uxLoc: OmniaUxLocalization;
|
|
14
|
+
private blockTemplateService;
|
|
15
|
+
private omniaBlocks;
|
|
16
|
+
private ensureInitAdminView;
|
|
17
|
+
private ensureInitRenderView;
|
|
18
|
+
private blockGalleryDialogLayoutSetting;
|
|
19
|
+
private blockTemplateViews;
|
|
20
|
+
private blockTemplateIdPrefix;
|
|
21
|
+
private allBlocks;
|
|
22
|
+
private blockGalleryFactory;
|
|
23
|
+
private hasPendingChanges;
|
|
24
|
+
private editingHeaderId;
|
|
25
|
+
private selectingTemplateId;
|
|
26
|
+
private isBlockDialogInAlterMode;
|
|
27
|
+
private editingDialogLayoutType;
|
|
28
|
+
private generalSetting;
|
|
29
|
+
private spfxBlocks;
|
|
30
|
+
private initSpfxDictionary;
|
|
31
|
+
private layoutBlockSettingForRender;
|
|
32
|
+
private dialogLayouts;
|
|
33
|
+
private registeredDialogLayoutProviders;
|
|
34
|
+
protected onActivated(): Promise<void>;
|
|
35
|
+
getters: {
|
|
36
|
+
blocks: () => {
|
|
37
|
+
[id: string]: BlockGalleryItemView;
|
|
38
|
+
};
|
|
39
|
+
availableBlocksToAdd: () => {
|
|
40
|
+
[id: string]: BlockGalleryItemView;
|
|
41
|
+
};
|
|
42
|
+
header: (headerId: string) => BlockGalleryHeader;
|
|
43
|
+
blockGalleryLayoutSetting: (layoutType: string) => BlockGalleryDialogLayoutSetting;
|
|
44
|
+
orderedItems: () => BlockGalleryItem[];
|
|
45
|
+
orderedItemTitle: (blockId: string) => string;
|
|
46
|
+
editingHeaderId: () => string;
|
|
47
|
+
editingTemplateId: () => number;
|
|
48
|
+
isBlockDialogInAlterMode: () => boolean;
|
|
49
|
+
editingDialogLayoutType: () => string;
|
|
50
|
+
dialogLayouts: () => BlockDialogLayoutInfo[];
|
|
51
|
+
getDialogLayoutType: (layoutProvider: string) => string;
|
|
52
|
+
};
|
|
53
|
+
private isCompatibleWithAuthenticationLayoutOnly;
|
|
54
|
+
private isBlockValidForLayout;
|
|
55
|
+
mutations: {
|
|
56
|
+
addSelectedBlocks: import("@omnia/fx/stores").StoreMutation<(selectedBlockIds: Array<string>) => void, (selectedBlockIds: string[]) => import("@omnia/fx-models").IMessageBusSubscriptionHandler>;
|
|
57
|
+
removeSelectedBlock: import("@omnia/fx/stores").StoreMutation<(blockId: string) => void, (blockId: string) => import("@omnia/fx-models").IMessageBusSubscriptionHandler>;
|
|
58
|
+
removeHeader: import("@omnia/fx/stores").StoreMutation<(id: string) => void, (id: string) => import("@omnia/fx-models").IMessageBusSubscriptionHandler>;
|
|
59
|
+
addNewHeader: import("@omnia/fx/stores").StoreMutation<(headerTitle: MultilingualString) => void, (headerTitle: MultilingualString) => import("@omnia/fx-models").IMessageBusSubscriptionHandler>;
|
|
60
|
+
editHeader: import("@omnia/fx/stores").StoreMutation<(header: BlockGalleryHeader) => void, (header: BlockGalleryHeader) => import("@omnia/fx-models").IMessageBusSubscriptionHandler>;
|
|
61
|
+
signalChanges: import("@omnia/fx/stores").StoreMutation<() => void, () => import("@omnia/fx-models").IMessageBusSubscriptionHandler>;
|
|
62
|
+
resetChanges: import("@omnia/fx/stores").StoreMutation<() => void, () => import("@omnia/fx-models").IMessageBusSubscriptionHandler>;
|
|
63
|
+
updateOrganizedBlocks: import("@omnia/fx/stores").StoreMutation<(organizedBlocks: BlockGalleryItem[]) => void, (organizedBlocks: BlockGalleryItem[]) => import("@omnia/fx-models").IMessageBusSubscriptionHandler>;
|
|
64
|
+
switchToAddHeaderMode: import("@omnia/fx/stores").StoreMutation<() => void, () => import("@omnia/fx-models").IMessageBusSubscriptionHandler>;
|
|
65
|
+
switchToEditHeaderMode: import("@omnia/fx/stores").StoreMutation<(headerId: string) => void, (headerId: string) => import("@omnia/fx-models").IMessageBusSubscriptionHandler>;
|
|
66
|
+
switchToTemplateEditMode: import("@omnia/fx/stores").StoreMutation<(templateId: number) => void, (templateId: number) => import("@omnia/fx-models").IMessageBusSubscriptionHandler>;
|
|
67
|
+
switchToTemplateAddMode: import("@omnia/fx/stores").StoreMutation<() => void, () => import("@omnia/fx-models").IMessageBusSubscriptionHandler>;
|
|
68
|
+
switchBlockDialogToAlterMode: import("@omnia/fx/stores").StoreMutation<() => void, () => import("@omnia/fx-models").IMessageBusSubscriptionHandler>;
|
|
69
|
+
switchOffBlockDialogAlterMode: import("@omnia/fx/stores").StoreMutation<() => void, () => import("@omnia/fx-models").IMessageBusSubscriptionHandler>;
|
|
70
|
+
setEditingDialogLayout: import("@omnia/fx/stores").StoreMutation<(dialogLayoutType: string) => void, (dialogLayoutType: string) => import("@omnia/fx-models").IMessageBusSubscriptionHandler>;
|
|
71
|
+
};
|
|
72
|
+
actions: {
|
|
73
|
+
ensureLoadAllBlocksForAdminView: import("@omnia/fx/stores").StoreAction<unknown, (forceReload?: boolean) => void, (result: void, forceReload?: boolean) => void, (failureReason: any, forceReload?: boolean) => void, (forceReload?: boolean) => Promise<void>>;
|
|
74
|
+
ensureLoadAllBlocksForRender: import("@omnia/fx/stores").StoreAction<unknown, (layoutType: string) => void, (result: void, layoutType: string) => void, (failureReason: any, layoutType: string) => void, (layoutType: string) => Promise<void>>;
|
|
75
|
+
updateBlockDialogSettings: import("@omnia/fx/stores").StoreAction<unknown, () => void, (result: void) => void, (failureReason: any) => void, () => Promise<void>>;
|
|
76
|
+
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>>;
|
|
77
|
+
removeBlockTemplate: import("@omnia/fx/stores").StoreAction<unknown, (blockTemplateId: number) => void, (result: boolean, blockTemplateId: number) => void, (failureReason: any, blockTemplateId: number) => void, (blockTemplateId: number) => Promise<boolean>>;
|
|
78
|
+
ensureGeneralSetting: import("@omnia/fx/stores").StoreAction<unknown, () => void, (result: BlockGalleryGeneralSetting) => void, (failureReason: any) => void, () => Promise<BlockGalleryGeneralSetting>>;
|
|
79
|
+
};
|
|
80
|
+
private ensureOmniaBlocks;
|
|
81
|
+
private loadBlockDialogSettings;
|
|
82
|
+
private ensureDefaultBlocksIfDialogLayoutIsEmpty;
|
|
83
|
+
private getIdOfLayoutItemRegistrationBlock;
|
|
84
|
+
private insertDefaultHeader;
|
|
85
|
+
private insertDefaultBlocks;
|
|
86
|
+
private ensureSpfxBlockDictionary;
|
|
87
|
+
private loadBlockTemplateViews;
|
|
88
|
+
private getLayoutBlockSettingKey;
|
|
89
|
+
private loadConfiguredBlockTemplates;
|
|
90
|
+
private getBlockTemplateIdFromGalleryItem;
|
|
91
|
+
private updateBlockDictionary;
|
|
92
|
+
private updateBlockDictionaryItem;
|
|
93
|
+
private getDialogLayoutProviders;
|
|
94
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./BlockGalleryStore";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./General";
|
|
@@ -22,8 +22,9 @@ declare const dialogComponent: (import("vue").VueConstructor<import("vue-tsx-sup
|
|
|
22
22
|
valueBind: DialogModel;
|
|
23
23
|
position: DialogPositions;
|
|
24
24
|
onClickOutside: (closeDialog: (prompt: boolean, title?: string) => void, event?: Event) => void;
|
|
25
|
-
unreadableReader: boolean;
|
|
26
25
|
noClickAnimation: boolean;
|
|
26
|
+
ariaLabelTitle: string;
|
|
27
|
+
ariaHiddenContent: boolean;
|
|
27
28
|
renderBody: () => JSX.Element;
|
|
28
29
|
eager: boolean;
|
|
29
30
|
}, never>, any, any, any>> & {
|
|
@@ -50,8 +51,9 @@ declare const dialogComponent: (import("vue").VueConstructor<import("vue-tsx-sup
|
|
|
50
51
|
valueBind: DialogModel;
|
|
51
52
|
position: DialogPositions;
|
|
52
53
|
onClickOutside: (closeDialog: (prompt: boolean, title?: string) => void, event?: Event) => void;
|
|
53
|
-
unreadableReader: boolean;
|
|
54
54
|
noClickAnimation: boolean;
|
|
55
|
+
ariaLabelTitle: string;
|
|
56
|
+
ariaHiddenContent: boolean;
|
|
55
57
|
renderBody: () => JSX.Element;
|
|
56
58
|
eager: boolean;
|
|
57
59
|
}, never>;
|
|
@@ -78,8 +80,9 @@ declare const dialogComponent: (import("vue").VueConstructor<import("vue-tsx-sup
|
|
|
78
80
|
valueBind: DialogModel;
|
|
79
81
|
position: DialogPositions;
|
|
80
82
|
onClickOutside: (closeDialog: (prompt: boolean, title?: string) => void, event?: Event) => void;
|
|
81
|
-
unreadableReader: boolean;
|
|
82
83
|
noClickAnimation: boolean;
|
|
84
|
+
ariaLabelTitle: string;
|
|
85
|
+
ariaHiddenContent: boolean;
|
|
83
86
|
renderBody: () => JSX.Element;
|
|
84
87
|
eager: boolean;
|
|
85
88
|
}, never>, any, any, any>> & {
|
|
@@ -106,8 +109,9 @@ declare const dialogComponent: (import("vue").VueConstructor<import("vue-tsx-sup
|
|
|
106
109
|
valueBind: DialogModel;
|
|
107
110
|
position: DialogPositions;
|
|
108
111
|
onClickOutside: (closeDialog: (prompt: boolean, title?: string) => void, event?: Event) => void;
|
|
109
|
-
unreadableReader: boolean;
|
|
110
112
|
noClickAnimation: boolean;
|
|
113
|
+
ariaLabelTitle: string;
|
|
114
|
+
ariaHiddenContent: boolean;
|
|
111
115
|
renderBody: () => JSX.Element;
|
|
112
116
|
eager: boolean;
|
|
113
117
|
}, never>;
|
|
@@ -23,12 +23,19 @@ export interface IDialogProperties {
|
|
|
23
23
|
light?: boolean;
|
|
24
24
|
dark?: boolean;
|
|
25
25
|
hideCloseButton?: boolean;
|
|
26
|
-
unreadableReader?: boolean;
|
|
27
26
|
noClickAnimation?: boolean;
|
|
28
27
|
/**
|
|
29
28
|
* Force the dialog to render on mounted (e.g rendered but not shown)
|
|
30
29
|
*/
|
|
31
30
|
eager?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Add aria-labelledby for dialog
|
|
33
|
+
*/
|
|
34
|
+
ariaLabelTitle?: string;
|
|
35
|
+
/**
|
|
36
|
+
* Add aria-hidden for dialog content
|
|
37
|
+
*/
|
|
38
|
+
ariaHiddenContent?: boolean;
|
|
32
39
|
}
|
|
33
40
|
export interface IDialogSlots {
|
|
34
41
|
default: () => void;
|
|
@@ -5,11 +5,17 @@ export interface IActionToolbar {
|
|
|
5
5
|
styles?: Partial<typeof ActionToolbarStyles>;
|
|
6
6
|
changeMode: (editorDisplayMode: EditorDisplayModes) => void;
|
|
7
7
|
roles?: string[];
|
|
8
|
+
contextParams?: {
|
|
9
|
+
[key: string]: string;
|
|
10
|
+
};
|
|
8
11
|
}
|
|
9
12
|
export declare class ActionToolbar extends VueComponentBase<IActionToolbar> {
|
|
10
13
|
styles?: Partial<typeof ActionToolbarStyles>;
|
|
11
14
|
changeMode: (editorDisplayMode: EditorDisplayModes) => void;
|
|
12
15
|
roles?: string[];
|
|
16
|
+
contextParams?: {
|
|
17
|
+
[key: string]: string;
|
|
18
|
+
};
|
|
13
19
|
editorStore: EditorChromeStore;
|
|
14
20
|
private actionToolbarClasses;
|
|
15
21
|
created(): void;
|
|
@@ -8,6 +8,9 @@ export declare class EditorChromeComponent extends VueComponentBase implements I
|
|
|
8
8
|
renderNavigationDrawer?: () => JSX.Element;
|
|
9
9
|
navigationDrawerTitle: string;
|
|
10
10
|
actionToolbarRoles?: string[];
|
|
11
|
+
contextParams?: {
|
|
12
|
+
[key: string]: string;
|
|
13
|
+
};
|
|
11
14
|
closeEditor: () => void;
|
|
12
15
|
renderNavigationDrawerBottom?: () => JSX.Element;
|
|
13
16
|
hideCloseButton?: boolean;
|
|
@@ -5,6 +5,9 @@ export interface IEditorChrome extends IEditorChromeProperties {
|
|
|
5
5
|
[name: string]: any;
|
|
6
6
|
renderNavigationDrawer?: (h: any) => JSX.Element;
|
|
7
7
|
actionToolbarRoles?: string[];
|
|
8
|
+
contextParams?: {
|
|
9
|
+
[key: string]: string;
|
|
10
|
+
};
|
|
8
11
|
closeEditor: () => void;
|
|
9
12
|
navigationDrawerTitle?: string;
|
|
10
13
|
renderNavigationDrawerBottom?: (h: any) => JSX.Element;
|
|
@@ -5,6 +5,7 @@ export interface EnterprisePropertyComponentProps {
|
|
|
5
5
|
}
|
|
6
6
|
export interface EnterprisePropertyEditProps<TSettings extends EnterprisePropertyItemSettings = EnterprisePropertyItemSettings> extends EnterprisePropertyComponentProps {
|
|
7
7
|
disabled: boolean;
|
|
8
|
+
disableAutofocus?: boolean;
|
|
8
9
|
hideDetails?: boolean;
|
|
9
10
|
dark?: boolean;
|
|
10
11
|
required?: boolean;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { EnterprisePropertyDisplayProps } from "../../EnterprisePropertyComponentProps";
|
|
2
|
+
import { TsxAllowUnknowProperties } from "../../..";
|
|
3
|
+
export interface IMediaFieldDisplay extends EnterprisePropertyDisplayProps {
|
|
4
|
+
}
|
|
5
|
+
declare global {
|
|
6
|
+
namespace VueTsxSupport.JSX {
|
|
7
|
+
interface Element {
|
|
8
|
+
}
|
|
9
|
+
interface ElementClass {
|
|
10
|
+
}
|
|
11
|
+
interface IntrinsicElements {
|
|
12
|
+
"omfx-enterpriseproperties-mediafield-display": TsxAllowUnknowProperties<IMediaFieldDisplay>;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import Vue from "vue";
|
|
2
|
+
import { IWebComponentInstance } from "../../../..";
|
|
3
|
+
import { EnterprisePropertyDefinition, MediaPickerMedia } from "../../../../models";
|
|
4
|
+
import { IMediaFieldDisplay } from "./IMediaFieldDisplay";
|
|
5
|
+
export declare class MediaFieldDisplayComponent extends Vue implements IWebComponentInstance, IMediaFieldDisplay {
|
|
6
|
+
valueBind: MediaPickerMedia;
|
|
7
|
+
property: EnterprisePropertyDefinition;
|
|
8
|
+
wrapWithParentContent: (internalName: string, propertyContent: JSX.Element) => JSX.Element;
|
|
9
|
+
private mediaType;
|
|
10
|
+
private preSelectedMedia;
|
|
11
|
+
mounted(): void;
|
|
12
|
+
created(): void;
|
|
13
|
+
private initContent;
|
|
14
|
+
private renderMedia;
|
|
15
|
+
private renderImage;
|
|
16
|
+
private renderVideo;
|
|
17
|
+
render(): VueTsxSupport.JSX.Element;
|
|
18
|
+
}
|
package/internal-do-not-import-from-here/ux/enterpriseproperties/display/mediafield/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./IMediaFieldDisplay";
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { EnterprisePropertyMediaItemSettings, MediaPickerStorageProviderContext } from "../../../../models";
|
|
2
|
+
import { EnterprisePropertyEditProps } from "../../EnterprisePropertyComponentProps";
|
|
3
|
+
export interface IMediaFieldEdit extends EnterprisePropertyEditProps<EnterprisePropertyMediaItemSettings> {
|
|
4
|
+
mediaPickerStorageProviderContext: MediaPickerStorageProviderContext;
|
|
5
|
+
}
|
|
6
|
+
declare global {
|
|
7
|
+
namespace VueTsxSupport.JSX {
|
|
8
|
+
interface Element {
|
|
9
|
+
}
|
|
10
|
+
interface ElementClass {
|
|
11
|
+
}
|
|
12
|
+
interface IntrinsicElements {
|
|
13
|
+
"omfx-enterpriseproperties-mediafield-edit": IMediaFieldEdit;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
package/internal-do-not-import-from-here/ux/enterpriseproperties/edit/mediafield/MediaFieldEdit.d.ts
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { IWebComponentInstance } from "../../../..";
|
|
2
|
+
import { IMediaFieldEdit } from "./IMediaFieldEdit";
|
|
3
|
+
import { EnterprisePropertyDefinition, MediaPickerMedia, MediaPickerStorageProviderContext } from "../../../../models";
|
|
4
|
+
import { VueComponentBase } from "../../../VueComponentBase";
|
|
5
|
+
import { MediaPickerStore } from "../../../../stores";
|
|
6
|
+
export declare class MediaFieldEdit extends VueComponentBase implements IWebComponentInstance, IMediaFieldEdit {
|
|
7
|
+
valueBind: {
|
|
8
|
+
[propertyInternalName: string]: MediaPickerMedia;
|
|
9
|
+
};
|
|
10
|
+
onValueChanged: (value: MediaPickerMedia) => void;
|
|
11
|
+
disabled: boolean;
|
|
12
|
+
property: EnterprisePropertyDefinition;
|
|
13
|
+
mediaPickerStore: MediaPickerStore;
|
|
14
|
+
mediaPickerStorageProviderContext: MediaPickerStorageProviderContext;
|
|
15
|
+
private mediaType;
|
|
16
|
+
private preSelectedMedia;
|
|
17
|
+
private imageSettings;
|
|
18
|
+
private showAddMedia;
|
|
19
|
+
mounted(): void;
|
|
20
|
+
initImageSettings(): void;
|
|
21
|
+
created(): void;
|
|
22
|
+
private initContent;
|
|
23
|
+
saveSelectedMedia(result: MediaPickerMedia): void;
|
|
24
|
+
closed(): void;
|
|
25
|
+
removeMedia(): void;
|
|
26
|
+
renderTooltip(): VueTsxSupport.JSX.Element;
|
|
27
|
+
renderEditButtons(): VueTsxSupport.JSX.Element;
|
|
28
|
+
renderMedia(): VueTsxSupport.JSX.Element;
|
|
29
|
+
renderImage(): JSX.Element;
|
|
30
|
+
renderVideo(): VueTsxSupport.JSX.Element;
|
|
31
|
+
render(): VueTsxSupport.JSX.Element;
|
|
32
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./IMediaFieldEdit";
|
|
@@ -15,6 +15,7 @@ export declare class RichTextFieldEdit extends VueComponentBase implements IWebC
|
|
|
15
15
|
box?: boolean;
|
|
16
16
|
settings: EnterprisePropertyRichTextItemSettings;
|
|
17
17
|
queryable?: boolean;
|
|
18
|
+
disableAutofocus?: boolean;
|
|
18
19
|
private loc;
|
|
19
20
|
private mediaPickerService;
|
|
20
21
|
multilingualStore: MultilingualStore;
|
package/internal-do-not-import-from-here/ux/headingconfigurations/HeadingConfigurationFactory.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { HeadingConfiguration, HeadingStyleConfiguration } from "@omnia/fx-models";
|
|
1
|
+
import { HeadingConfiguration, HeadingStyleConfiguration, HeaderLevel } from "@omnia/fx-models";
|
|
2
2
|
export declare const HeadingConfigurationFactory: {
|
|
3
3
|
create(): Array<HeadingConfiguration>;
|
|
4
4
|
createInitial(): HeadingConfiguration;
|
|
5
5
|
createDefaultHeadingStyle(): HeadingStyleConfiguration;
|
|
6
6
|
getHeadingStyle(heading: HeadingConfiguration, useImportant?: boolean): any;
|
|
7
|
+
getHeaderLevels(): Array<HeaderLevel>;
|
|
7
8
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IResolvedIdentity, Identity } from "@omnia/fx-models";
|
|
2
|
+
import { IIdentityPickerStore } from "@omnia/fx/stores";
|
|
2
3
|
export type RenderSlotsType = {
|
|
3
4
|
left?: () => JSX.Element;
|
|
4
5
|
right?: () => JSX.Element;
|
|
@@ -69,6 +70,7 @@ declare const _default: (import("vue").VueConstructor<import("vue-tsx-support").
|
|
|
69
70
|
};
|
|
70
71
|
class?: string;
|
|
71
72
|
};
|
|
73
|
+
identityStore: IIdentityPickerStore;
|
|
72
74
|
}, "valueBind">, any, any, any>> & {
|
|
73
75
|
propsDefinition: import("vue-tsx-support").PropsForOutside<{
|
|
74
76
|
valueBind: Identity[];
|
|
@@ -112,6 +114,7 @@ declare const _default: (import("vue").VueConstructor<import("vue-tsx-support").
|
|
|
112
114
|
};
|
|
113
115
|
class?: string;
|
|
114
116
|
};
|
|
117
|
+
identityStore: IIdentityPickerStore;
|
|
115
118
|
}, "valueBind">;
|
|
116
119
|
}) | (import("vue").VueConstructor<import("vue-tsx-support")._TsxComponentInstanceV3<import("vue/types/umd") & import("vue").ShallowUnwrapRef<() => VueTsxSupport.JSX.Element>, {}, import("vue-tsx-support").PropsForOutside<{
|
|
117
120
|
valueBind: Identity[];
|
|
@@ -155,6 +158,7 @@ declare const _default: (import("vue").VueConstructor<import("vue-tsx-support").
|
|
|
155
158
|
};
|
|
156
159
|
class?: string;
|
|
157
160
|
};
|
|
161
|
+
identityStore: IIdentityPickerStore;
|
|
158
162
|
}, "valueBind">, any, any, any>> & {
|
|
159
163
|
propsDefinition: import("vue-tsx-support").PropsForOutside<{
|
|
160
164
|
valueBind: Identity[];
|
|
@@ -198,6 +202,7 @@ declare const _default: (import("vue").VueConstructor<import("vue-tsx-support").
|
|
|
198
202
|
};
|
|
199
203
|
class?: string;
|
|
200
204
|
};
|
|
205
|
+
identityStore: IIdentityPickerStore;
|
|
201
206
|
}, "valueBind">;
|
|
202
207
|
});
|
|
203
208
|
export default _default;
|
|
@@ -20,15 +20,16 @@ export interface ILanguagePicker {
|
|
|
20
20
|
/**Make it clearable*/
|
|
21
21
|
clearable?: boolean;
|
|
22
22
|
/**Language model */
|
|
23
|
-
valueBind: Language;
|
|
23
|
+
valueBind: Language | Language[];
|
|
24
24
|
/**On model change */
|
|
25
|
-
onValueChanged?: (language: Language) => void;
|
|
25
|
+
onValueChanged?: (language: Language | Language[]) => void;
|
|
26
26
|
/**Scoped slots */
|
|
27
27
|
scopedSlots?: ScopedSlots<IVSelectScopedSlots>;
|
|
28
28
|
/**Custom styles by StyleFlow */
|
|
29
29
|
styles?: typeof LanguagePickerStyles;
|
|
30
30
|
/**On load language */
|
|
31
31
|
loadLanguage?: () => Promise<Array<Language>>;
|
|
32
|
+
multiple?: boolean;
|
|
32
33
|
}
|
|
33
34
|
declare global {
|
|
34
35
|
namespace VueTsxSupport.JSX {
|
|
@@ -5,10 +5,10 @@ import { Language } from "../../models";
|
|
|
5
5
|
import { ScopedSlots, LanguagePickerStyles } from "..";
|
|
6
6
|
import { IVSelectScopedSlots } from "../vuetify";
|
|
7
7
|
export declare class LanguagePicker extends Vue implements IWebComponentInstance, ILanguagePicker {
|
|
8
|
-
valueBind: Language;
|
|
8
|
+
valueBind: Language | Language[];
|
|
9
9
|
disabled?: boolean;
|
|
10
10
|
label?: string;
|
|
11
|
-
onValueChanged?: (language: Language) => void;
|
|
11
|
+
onValueChanged?: (language: Language | Language[]) => void;
|
|
12
12
|
filled?: boolean;
|
|
13
13
|
hideDetails?: boolean;
|
|
14
14
|
dark?: boolean;
|
|
@@ -18,6 +18,7 @@ export declare class LanguagePicker extends Vue implements IWebComponentInstance
|
|
|
18
18
|
enableContextSettings?: boolean;
|
|
19
19
|
loadLanguage?: () => Promise<Array<Language>>;
|
|
20
20
|
clearable?: boolean;
|
|
21
|
+
multiple?: boolean;
|
|
21
22
|
scopedSlots?: ScopedSlots<IVSelectScopedSlots>;
|
|
22
23
|
styles?: typeof LanguagePickerStyles;
|
|
23
24
|
private localizationService;
|
|
@@ -34,10 +35,13 @@ export declare class LanguagePicker extends Vue implements IWebComponentInstance
|
|
|
34
35
|
created(): void;
|
|
35
36
|
mounted(): void;
|
|
36
37
|
beforeDestroy(): void;
|
|
38
|
+
get getValues(): Language[];
|
|
37
39
|
private setLanguages;
|
|
38
40
|
private loadLanguageFromCustomHandler;
|
|
39
41
|
private loadAllLanguages;
|
|
42
|
+
private normalizeLanguageValue;
|
|
40
43
|
private populateModel;
|
|
44
|
+
private findLanguages;
|
|
41
45
|
private updateSelectedLanguage;
|
|
42
46
|
render(): VueTsxSupport.JSX.Element;
|
|
43
47
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
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
|
+
blockDialogLayoutType: string;
|
|
11
|
+
}, "visible" | "closeEvent" | "selectBlockEvent">, any, any, any>;
|
|
12
|
+
export default _default;
|
|
@@ -3,6 +3,8 @@ 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";
|
|
7
|
+
import { SettingsService } from "@omnia/fx/services";
|
|
6
8
|
export interface LayoutItemSelectorProps extends VueComponentBaseProps {
|
|
7
9
|
container: LayoutItem;
|
|
8
10
|
color: string;
|
|
@@ -19,9 +21,14 @@ export declare class LayoutItemSelector extends VueComponentBase<LayoutItemSelec
|
|
|
19
21
|
layoutEditorStore: LayoutCanvasStore;
|
|
20
22
|
layoutItemStore: BlockCatalogStore;
|
|
21
23
|
featureStore: FeatureStore;
|
|
24
|
+
blockGalleryStore: BlockGalleryStore;
|
|
25
|
+
settingsService: SettingsService<any>;
|
|
22
26
|
private omniaUxLoc;
|
|
27
|
+
private isModernDialog;
|
|
23
28
|
private model;
|
|
24
29
|
beforeDestroy(): void;
|
|
30
|
+
created(): void;
|
|
31
|
+
private init;
|
|
25
32
|
private filterValidBlockRegistration;
|
|
26
33
|
/**
|
|
27
34
|
* Eventhandler for adding a layout item
|
|
@@ -9,13 +9,16 @@ export default class HeaderItem extends VueComponentBase {
|
|
|
9
9
|
blockInstance: BlockInstance;
|
|
10
10
|
private omniaUxLoc;
|
|
11
11
|
spfxSettingsService: OmniaSpfxSettingsProvider;
|
|
12
|
+
private localizationService;
|
|
12
13
|
private item;
|
|
13
14
|
private settings;
|
|
14
15
|
private model;
|
|
16
|
+
private headerLevels;
|
|
15
17
|
mounted(): void;
|
|
16
18
|
created(): void;
|
|
17
19
|
private headerValueChanged;
|
|
18
20
|
private onIconValueChanged;
|
|
21
|
+
private onHeaderLevelValueChanged;
|
|
19
22
|
private updateSpfxSettings;
|
|
20
23
|
render(): VueTsxSupport.JSX.Element;
|
|
21
24
|
}
|
|
@@ -7,4 +7,5 @@ export declare const BlockTitleStyles: {
|
|
|
7
7
|
iconWrapperButton: (settings: BlockTitleIconSettings) => string;
|
|
8
8
|
iconInButton: (settings: BlockTitleIconSettings, theming: ITheming) => string;
|
|
9
9
|
wrapper: (settings: BlockTitleSettings, textAlignment: TextAlignment, theming: ITheming) => string;
|
|
10
|
+
headingWrapper: (theming: ITheming, settings: BlockTitleSettings) => string;
|
|
10
11
|
};
|
package/internal-do-not-import-from-here/ux/layoutcanvas/editor/settings/blocktitle/BlockTitle.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { VueComponentBase } from "../../../..";
|
|
2
2
|
import { IWebComponentInstance } from "../../../../..";
|
|
3
|
-
import { MultilingualString, TextAlignment } from "../../../../../models";
|
|
3
|
+
import { HeaderLevel, MultilingualString, TextAlignment } from "../../../../../models";
|
|
4
4
|
import { BlockTitleSettingsStore, DirectionRuleStore, MultilingualStore } from "../../../../../stores";
|
|
5
5
|
import { IBlockTitleComponent } from "./IBlockTitle";
|
|
6
6
|
import { BlockInstance } from "../../../../BlockInstance";
|
|
@@ -9,16 +9,20 @@ export declare class BlockTitleComponent extends VueComponentBase implements IWe
|
|
|
9
9
|
multilingualtitle: string | MultilingualString;
|
|
10
10
|
settingsKey: any;
|
|
11
11
|
alternativeContent?: JSX.Element;
|
|
12
|
+
wrapWithHeaderLevel?: (headerElement: JSX.Element) => JSX.Element;
|
|
12
13
|
multilingualStore: MultilingualStore;
|
|
13
14
|
blockTitleSettingsStore: BlockTitleSettingsStore;
|
|
14
15
|
blockInstance: BlockInstance;
|
|
15
16
|
directionStore: DirectionRuleStore;
|
|
16
17
|
private model;
|
|
18
|
+
private headerLevels;
|
|
17
19
|
mounted(): void;
|
|
18
20
|
onSectionUpdated(): void;
|
|
19
21
|
getFormatedTitleStringValue(title: string): string;
|
|
20
22
|
getFormattedTitleString(): string;
|
|
21
23
|
getTextAlignment(): TextAlignment;
|
|
22
24
|
renderBlockIcon(title: string): VueTsxSupport.JSX.Element;
|
|
25
|
+
renderTitle(title: string): VueTsxSupport.JSX.Element;
|
|
26
|
+
renderTitleWithHeaderLevel(heading: HeaderLevel, title: string): import("vue").VNode;
|
|
23
27
|
render(): VueTsxSupport.JSX.Element;
|
|
24
28
|
}
|
package/internal-do-not-import-from-here/ux/layoutcanvas/editor/settings/blocktitle/IBlockTitle.d.ts
CHANGED
|
@@ -4,7 +4,11 @@ export interface IBlockTitleComponent {
|
|
|
4
4
|
title?: string;
|
|
5
5
|
multilingualtitle?: MultilingualString | string;
|
|
6
6
|
settingsKey: any;
|
|
7
|
+
/**
|
|
8
|
+
* @deprecated Use wrapWithHeaderLevel instead.
|
|
9
|
+
*/
|
|
7
10
|
alternativeContent?: JSX.Element;
|
|
11
|
+
wrapWithHeaderLevel?: (headerElement: JSX.Element) => JSX.Element;
|
|
8
12
|
}
|
|
9
13
|
declare global {
|
|
10
14
|
namespace VueTsxSupport.JSX {
|
package/internal-do-not-import-from-here/ux/layoutcanvas/editor/settings/section/Header.d.ts
CHANGED
|
@@ -4,11 +4,13 @@ import { VueComponentBase } from "@omnia/fx/ux";
|
|
|
4
4
|
export default class HeaderSectionItem extends VueComponentBase {
|
|
5
5
|
editorStore: LayoutCanvasStore;
|
|
6
6
|
private subscriptionHandler;
|
|
7
|
-
|
|
7
|
+
multilingualStore: MultilingualStore;
|
|
8
8
|
blockTitleSettingsStore: BlockTitleSettingsStore;
|
|
9
|
+
private localizationService;
|
|
9
10
|
private omniaUxLoc;
|
|
10
11
|
private section;
|
|
11
12
|
private model;
|
|
13
|
+
private headerLevels;
|
|
12
14
|
mounted(): void;
|
|
13
15
|
created(): void;
|
|
14
16
|
/**
|
|
@@ -16,6 +18,7 @@ export default class HeaderSectionItem extends VueComponentBase {
|
|
|
16
18
|
* */
|
|
17
19
|
private onSectionChange;
|
|
18
20
|
private onIconValueChanged;
|
|
21
|
+
private onHeaderLevelValueChanged;
|
|
19
22
|
private onHeaderValueChanged;
|
|
20
23
|
render(): VueTsxSupport.JSX.Element;
|
|
21
24
|
}
|
|
@@ -28,12 +28,15 @@ export declare class StepperSectionDesigner extends VueComponentBase<StepperSect
|
|
|
28
28
|
created(): void;
|
|
29
29
|
beforeDestroy(): void;
|
|
30
30
|
private hasValidAnchorLinkSettings;
|
|
31
|
+
private handleTokenExistsOnSpfx;
|
|
32
|
+
private getIndexByAnchorName;
|
|
31
33
|
private handleAnchorLink;
|
|
32
34
|
private getDefaultLabel;
|
|
33
35
|
private getPreferredLabel;
|
|
34
36
|
private getCustomAnchorName;
|
|
35
37
|
private silentNavigateIfNeeded;
|
|
36
38
|
private renderStepLabel;
|
|
39
|
+
private getSpfxPath;
|
|
37
40
|
private getAnchorName;
|
|
38
41
|
get items(): SectionItem<SteppedSectionItemSettings>[];
|
|
39
42
|
private get inLayoutDesignMode();
|
|
@@ -14,6 +14,7 @@ export declare class BlockCatalogStore extends Store {
|
|
|
14
14
|
onActivated(): void;
|
|
15
15
|
onDisposing(): void;
|
|
16
16
|
areItemsLoaded(): boolean;
|
|
17
|
+
getItems(): LayoutItemRegistration[];
|
|
17
18
|
getCategoriesForContainer(container: LayoutItem): Array<string>;
|
|
18
19
|
getItemsForContainer(container: LayoutItem): Array<LayoutItemRegistration>;
|
|
19
20
|
searchItemsForContainer(container: LayoutItem, searchText: string): Array<LayoutItemRegistration>;
|
|
@@ -21,7 +22,19 @@ export declare class BlockCatalogStore extends Store {
|
|
|
21
22
|
filterBlockRegistrationOnFeatureDependency(blockRegistration: BlockRegistration): boolean;
|
|
22
23
|
filterBlockRegistrationByBackendRuntimes(blockRegistration: BlockRegistration): boolean;
|
|
23
24
|
filterBlockRegistrationByClientRuntimes(blockRegistration: BlockRegistration): boolean;
|
|
24
|
-
|
|
25
|
+
/**
|
|
26
|
+
* Validate if block is valid for layout provider.
|
|
27
|
+
* @param blockRegistration
|
|
28
|
+
* @param layoutProvider
|
|
29
|
+
* @returns
|
|
30
|
+
*/
|
|
31
|
+
filterBlockRegistrationOnLayoutDependency(blockRegistration: BlockRegistration, layoutProvider: string): boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Validate if block is valid for current environment (backend/client runtime) and feature dependencies.
|
|
34
|
+
* @param block
|
|
35
|
+
* @returns
|
|
36
|
+
*/
|
|
37
|
+
isBlockValidForEnvironment(block: BlockRegistration): boolean;
|
|
25
38
|
filterBlockRegistrationByDisableAuth(blockRegistration: BlockRegistration): boolean;
|
|
26
39
|
/**
|
|
27
40
|
* Implementation of mutations
|
|
@@ -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
|
};
|