@omnia/fx 7.10.0-preview.36 → 7.10.0-preview.38
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/headingconfigurations/HeadingConfigurationFactory.d.ts +2 -1
- package/internal-do-not-import-from-here/ux/layoutcanvas/editor/settings/block/Header.d.ts +4 -9
- package/internal-do-not-import-from-here/ux/layoutcanvas/editor/settings/blocktitle/BlockTitle.d.ts +4 -6
- package/internal-do-not-import-from-here/ux/layoutcanvas/editor/settings/section/Header.d.ts +3 -7
- package/internal-do-not-import-from-here/ux/layoutcanvas/stores/BlockCatalogStore.d.ts +13 -1
- package/package.json +2 -2
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,29 +1,24 @@
|
|
|
1
1
|
import { BlockInstance } from "../../../..";
|
|
2
|
-
import { HeadingSettings } from "../../../../../models";
|
|
3
2
|
import { LayoutCanvasStore } from "../../..";
|
|
4
3
|
import { VueComponentBase } from "../../../..";
|
|
5
|
-
import { BlockTitleSettingsStore
|
|
4
|
+
import { BlockTitleSettingsStore } from "../../../../../stores";
|
|
6
5
|
import { OmniaSpfxSettingsProvider } from "internal/fx/spfx/services/SpfxWPSettingProvider";
|
|
7
|
-
import { SettingsService } from "../../../../../services";
|
|
8
6
|
export default class HeaderItem extends VueComponentBase {
|
|
9
7
|
blockTitleSettingsStore: BlockTitleSettingsStore;
|
|
10
8
|
editorStore: LayoutCanvasStore;
|
|
11
9
|
blockInstance: BlockInstance;
|
|
12
10
|
private omniaUxLoc;
|
|
13
11
|
spfxSettingsService: OmniaSpfxSettingsProvider;
|
|
14
|
-
|
|
15
|
-
multilingualStore: MultilingualStore;
|
|
12
|
+
private localizationService;
|
|
16
13
|
private item;
|
|
17
14
|
private settings;
|
|
18
15
|
private model;
|
|
19
|
-
private
|
|
16
|
+
private headerLevels;
|
|
20
17
|
mounted(): void;
|
|
21
|
-
created():
|
|
22
|
-
private loadTextStylesSettings;
|
|
18
|
+
created(): void;
|
|
23
19
|
private headerValueChanged;
|
|
24
20
|
private onIconValueChanged;
|
|
25
21
|
private onHeaderLevelValueChanged;
|
|
26
22
|
private updateSpfxSettings;
|
|
27
|
-
private createHeadingItem;
|
|
28
23
|
render(): VueTsxSupport.JSX.Element;
|
|
29
24
|
}
|
package/internal-do-not-import-from-here/ux/layoutcanvas/editor/settings/blocktitle/BlockTitle.d.ts
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { VueComponentBase } from "../../../..";
|
|
2
2
|
import { IWebComponentInstance, OmniaContext } from "../../../../..";
|
|
3
|
-
import {
|
|
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";
|
|
7
|
-
import { SettingsService } from "../../../../../services";
|
|
8
7
|
export declare class BlockTitleComponent extends VueComponentBase implements IWebComponentInstance, IBlockTitleComponent {
|
|
9
8
|
title: string;
|
|
10
9
|
multilingualtitle: string | MultilingualString;
|
|
@@ -16,18 +15,17 @@ export declare class BlockTitleComponent extends VueComponentBase implements IWe
|
|
|
16
15
|
blockInstance: BlockInstance;
|
|
17
16
|
directionStore: DirectionRuleStore;
|
|
18
17
|
omniaContext: OmniaContext;
|
|
19
|
-
headingSettingsService: SettingsService<HeadingSettings>;
|
|
20
18
|
private model;
|
|
21
19
|
private useAccessibilityFeature;
|
|
22
20
|
private textStylesSettings;
|
|
23
|
-
|
|
21
|
+
private headerLevels;
|
|
22
|
+
mounted(): void;
|
|
24
23
|
onSectionUpdated(): void;
|
|
25
|
-
private loadTextStylesSettings;
|
|
26
24
|
getFormatedTitleStringValue(title: string): string;
|
|
27
25
|
getFormattedTitleString(): string;
|
|
28
26
|
getTextAlignment(): TextAlignment;
|
|
29
27
|
renderBlockIcon(title: string): VueTsxSupport.JSX.Element;
|
|
30
28
|
renderTitle(title: string): VueTsxSupport.JSX.Element;
|
|
31
|
-
renderTitleWithHeaderLevel(heading:
|
|
29
|
+
renderTitleWithHeaderLevel(heading: HeaderLevel, title: string): import("vue").VNode;
|
|
32
30
|
render(): VueTsxSupport.JSX.Element;
|
|
33
31
|
}
|
package/internal-do-not-import-from-here/ux/layoutcanvas/editor/settings/section/Header.d.ts
CHANGED
|
@@ -1,21 +1,18 @@
|
|
|
1
|
-
import { HeadingSettings } from "@omnia/fx/models";
|
|
2
1
|
import { LayoutCanvasStore } from "../../..";
|
|
3
2
|
import { BlockTitleSettingsStore, MultilingualStore } from "@omnia/fx/stores";
|
|
4
3
|
import { VueComponentBase } from "@omnia/fx/ux";
|
|
5
|
-
import { SettingsService } from "../../../../../services";
|
|
6
4
|
export default class HeaderSectionItem extends VueComponentBase {
|
|
7
5
|
editorStore: LayoutCanvasStore;
|
|
8
6
|
private subscriptionHandler;
|
|
9
7
|
multilingualStore: MultilingualStore;
|
|
10
8
|
blockTitleSettingsStore: BlockTitleSettingsStore;
|
|
11
|
-
|
|
9
|
+
private localizationService;
|
|
12
10
|
private omniaUxLoc;
|
|
13
11
|
private section;
|
|
14
12
|
private model;
|
|
15
|
-
private
|
|
13
|
+
private headerLevels;
|
|
16
14
|
mounted(): void;
|
|
17
|
-
created():
|
|
18
|
-
private loadTextStylesSettings;
|
|
15
|
+
created(): void;
|
|
19
16
|
/**
|
|
20
17
|
* Watch for section changes
|
|
21
18
|
* */
|
|
@@ -23,6 +20,5 @@ export default class HeaderSectionItem extends VueComponentBase {
|
|
|
23
20
|
private onIconValueChanged;
|
|
24
21
|
private onHeaderLevelValueChanged;
|
|
25
22
|
private onHeaderValueChanged;
|
|
26
|
-
private createHeadingItem;
|
|
27
23
|
render(): VueTsxSupport.JSX.Element;
|
|
28
24
|
}
|
|
@@ -22,7 +22,19 @@ export declare class BlockCatalogStore extends Store {
|
|
|
22
22
|
filterBlockRegistrationOnFeatureDependency(blockRegistration: BlockRegistration): boolean;
|
|
23
23
|
filterBlockRegistrationByBackendRuntimes(blockRegistration: BlockRegistration): boolean;
|
|
24
24
|
filterBlockRegistrationByClientRuntimes(blockRegistration: BlockRegistration): boolean;
|
|
25
|
-
|
|
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;
|
|
26
38
|
filterBlockRegistrationByDisableAuth(blockRegistration: BlockRegistration): boolean;
|
|
27
39
|
/**
|
|
28
40
|
* Implementation of mutations
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@omnia/fx",
|
|
3
3
|
"license": "MIT",
|
|
4
|
-
"version": "7.10.0-preview.
|
|
4
|
+
"version": "7.10.0-preview.38",
|
|
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.10.0-preview.
|
|
23
|
+
"@omnia/fx-models": "7.10.0-preview.38",
|
|
24
24
|
"@microsoft/signalr": "6.0.1",
|
|
25
25
|
"broadcast-channel": "4.8.0",
|
|
26
26
|
"dayjs": "1.10.7",
|