@omnia/fx 7.10.0-preview.27 → 7.10.0-preview.28
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/stores/BlockTitleSettingsStore.d.ts +4 -2
- package/internal-do-not-import-from-here/ux/UxModels.d.ts +1 -0
- package/internal-do-not-import-from-here/ux/layoutcanvas/editor/settings/block/Header.d.ts +10 -2
- package/internal-do-not-import-from-here/ux/layoutcanvas/editor/settings/blocktitle/BlockTitle.css.d.ts +2 -1
- package/internal-do-not-import-from-here/ux/layoutcanvas/editor/settings/blocktitle/BlockTitle.d.ts +8 -2
- package/internal-do-not-import-from-here/ux/layoutcanvas/editor/settings/section/Header.d.ts +9 -2
- package/package.json +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Store } from "./Store";
|
|
2
|
-
import { IIcon, BlockTitleSettings } from "../models";
|
|
2
|
+
import { IIcon, BlockTitleSettings, GuidValue } from "../models";
|
|
3
3
|
import { BlockTitleGlobalSettingsStore } from "./BlockTitleGlobalSettingsStore";
|
|
4
4
|
import { DirectionRuleStore } from "./DirectionRuleStore";
|
|
5
5
|
export interface SettingsValue {
|
|
@@ -7,6 +7,7 @@ export interface SettingsValue {
|
|
|
7
7
|
blockTitleSettings: BlockTitleSettings;
|
|
8
8
|
icon: IIcon;
|
|
9
9
|
customSettings: boolean;
|
|
10
|
+
titleFormatting?: GuidValue;
|
|
10
11
|
}
|
|
11
12
|
export declare class BlockTitleSettingsStore extends Store {
|
|
12
13
|
blockTitleGlobalSettingsStore: BlockTitleGlobalSettingsStore;
|
|
@@ -36,8 +37,9 @@ export declare class BlockTitleSettingsStore extends Store {
|
|
|
36
37
|
setLayoutInheritage: (key: any) => void;
|
|
37
38
|
setComponentIcon: (key: any, icon: IIcon) => void;
|
|
38
39
|
removeComponentIcon: (key: any) => void;
|
|
39
|
-
setComponentSettings: (key: any, blockTitleSettings: BlockTitleSettings, icon?: IIcon) => void;
|
|
40
|
+
setComponentSettings: (key: any, blockTitleSettings: BlockTitleSettings, icon?: IIcon, titleFormatting?: GuidValue) => void;
|
|
40
41
|
revertComponentToGlobalSettings: (key: any) => void;
|
|
42
|
+
setComponentTitleFormatting: (key: any, titleFormatting: GuidValue) => void;
|
|
41
43
|
};
|
|
42
44
|
/**
|
|
43
45
|
* Implementation of actions
|
|
@@ -1,21 +1,29 @@
|
|
|
1
1
|
import { BlockInstance } from "../../../..";
|
|
2
|
+
import { HeadingSettings } from "../../../../../models";
|
|
2
3
|
import { LayoutCanvasStore } from "../../..";
|
|
3
4
|
import { VueComponentBase } from "../../../..";
|
|
4
|
-
import { BlockTitleSettingsStore } from "../../../../../stores";
|
|
5
|
+
import { BlockTitleSettingsStore, MultilingualStore } from "../../../../../stores";
|
|
5
6
|
import { OmniaSpfxSettingsProvider } from "internal/fx/spfx/services/SpfxWPSettingProvider";
|
|
7
|
+
import { SettingsService } from "../../../../../services";
|
|
6
8
|
export default class HeaderItem extends VueComponentBase {
|
|
7
9
|
blockTitleSettingsStore: BlockTitleSettingsStore;
|
|
8
10
|
editorStore: LayoutCanvasStore;
|
|
9
11
|
blockInstance: BlockInstance;
|
|
10
12
|
private omniaUxLoc;
|
|
11
13
|
spfxSettingsService: OmniaSpfxSettingsProvider;
|
|
14
|
+
headingSettingsService: SettingsService<HeadingSettings>;
|
|
15
|
+
multilingualStore: MultilingualStore;
|
|
12
16
|
private item;
|
|
13
17
|
private settings;
|
|
14
18
|
private model;
|
|
19
|
+
private textStylesSettings;
|
|
15
20
|
mounted(): void;
|
|
16
|
-
created(): void
|
|
21
|
+
created(): Promise<void>;
|
|
22
|
+
private loadTextStylesSettings;
|
|
17
23
|
private headerValueChanged;
|
|
18
24
|
private onIconValueChanged;
|
|
25
|
+
private onTitleFormattingValueChanged;
|
|
19
26
|
private updateSpfxSettings;
|
|
27
|
+
private createHeadingItem;
|
|
20
28
|
render(): VueTsxSupport.JSX.Element;
|
|
21
29
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IconSizes, BlockTitleIconSettings, BlockTitleSettings, TextAlignment } from "../../../../../models";
|
|
1
|
+
import { IconSizes, BlockTitleIconSettings, BlockTitleSettings, TextAlignment, HeadingConfiguration } from "../../../../../models";
|
|
2
2
|
import { ITheming } from "../../../..";
|
|
3
3
|
export declare const BlockTitleStyles: {
|
|
4
4
|
safeGetSpacingPixels(value: any, spacing: any): string;
|
|
@@ -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: (heading: HeadingConfiguration) => string;
|
|
10
11
|
};
|
package/internal-do-not-import-from-here/ux/layoutcanvas/editor/settings/blocktitle/BlockTitle.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { VueComponentBase } from "../../../..";
|
|
2
2
|
import { IWebComponentInstance, OmniaContext } from "../../../../..";
|
|
3
|
-
import { MultilingualString, TextAlignment } from "../../../../../models";
|
|
3
|
+
import { HeadingConfiguration, HeadingSettings, 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";
|
|
7
8
|
export declare class BlockTitleComponent extends VueComponentBase implements IWebComponentInstance, IBlockTitleComponent {
|
|
8
9
|
title: string;
|
|
9
10
|
multilingualtitle: string | MultilingualString;
|
|
@@ -14,13 +15,18 @@ export declare class BlockTitleComponent extends VueComponentBase implements IWe
|
|
|
14
15
|
blockInstance: BlockInstance;
|
|
15
16
|
directionStore: DirectionRuleStore;
|
|
16
17
|
omniaContext: OmniaContext;
|
|
18
|
+
headingSettingsService: SettingsService<HeadingSettings>;
|
|
17
19
|
private model;
|
|
18
20
|
private useAccessibilityFeature;
|
|
19
|
-
|
|
21
|
+
private textStylesSettings;
|
|
22
|
+
mounted(): Promise<void>;
|
|
20
23
|
onSectionUpdated(): void;
|
|
24
|
+
private loadTextStylesSettings;
|
|
21
25
|
getFormatedTitleStringValue(title: string): string;
|
|
22
26
|
getFormattedTitleString(): string;
|
|
23
27
|
getTextAlignment(): TextAlignment;
|
|
24
28
|
renderBlockIcon(title: string): VueTsxSupport.JSX.Element;
|
|
29
|
+
renderTitle(title: string): VueTsxSupport.JSX.Element;
|
|
30
|
+
renderTitleWithFormatting(heading: HeadingConfiguration, title: string): import("vue").VNode;
|
|
25
31
|
render(): VueTsxSupport.JSX.Element;
|
|
26
32
|
}
|
package/internal-do-not-import-from-here/ux/layoutcanvas/editor/settings/section/Header.d.ts
CHANGED
|
@@ -1,21 +1,28 @@
|
|
|
1
|
+
import { HeadingSettings } from "@omnia/fx/models";
|
|
1
2
|
import { LayoutCanvasStore } from "../../..";
|
|
2
3
|
import { BlockTitleSettingsStore, MultilingualStore } from "@omnia/fx/stores";
|
|
3
4
|
import { VueComponentBase } from "@omnia/fx/ux";
|
|
5
|
+
import { SettingsService } from "../../../../../services";
|
|
4
6
|
export default class HeaderSectionItem extends VueComponentBase {
|
|
5
7
|
editorStore: LayoutCanvasStore;
|
|
6
8
|
private subscriptionHandler;
|
|
7
|
-
|
|
9
|
+
multilingualStore: MultilingualStore;
|
|
8
10
|
blockTitleSettingsStore: BlockTitleSettingsStore;
|
|
11
|
+
headingSettingsService: SettingsService<HeadingSettings>;
|
|
9
12
|
private omniaUxLoc;
|
|
10
13
|
private section;
|
|
11
14
|
private model;
|
|
15
|
+
private textStylesSettings;
|
|
12
16
|
mounted(): void;
|
|
13
|
-
created(): void
|
|
17
|
+
created(): Promise<void>;
|
|
18
|
+
private loadTextStylesSettings;
|
|
14
19
|
/**
|
|
15
20
|
* Watch for section changes
|
|
16
21
|
* */
|
|
17
22
|
private onSectionChange;
|
|
18
23
|
private onIconValueChanged;
|
|
24
|
+
private onTitleFormattingValueChanged;
|
|
19
25
|
private onHeaderValueChanged;
|
|
26
|
+
private createHeadingItem;
|
|
20
27
|
render(): VueTsxSupport.JSX.Element;
|
|
21
28
|
}
|
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.28",
|
|
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.28",
|
|
24
24
|
"@microsoft/signalr": "6.0.1",
|
|
25
25
|
"broadcast-channel": "4.8.0",
|
|
26
26
|
"dayjs": "1.10.7",
|