@omnia/fx 7.11.5 → 7.11.6
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/MultilingualStore.d.ts +2 -0
- package/internal-do-not-import-from-here/ux/layoutcanvas/editor/settings/section/items/AccordionListingSettingsPanel.d.ts +2 -1
- package/internal-do-not-import-from-here/ux/layoutcanvas/editor/settings/section/items/StepListingSettingsPanel.d.ts +2 -1
- package/internal-do-not-import-from-here/ux/layoutcanvas/editor/settings/section/items/TabListingSettingsPanel.d.ts +2 -1
- package/internal-do-not-import-from-here/ux/layoutcanvas/factories/EditorLayoutItemFactory.d.ts +6 -6
- package/internal-do-not-import-from-here/ux/layoutcanvas/factories/LayoutItemFactory.d.ts +6 -6
- package/internal-do-not-import-from-here/ux/layoutcanvas/shared/layoutitemsdesigner/StepperSectionDesigner.d.ts +2 -1
- package/internal-do-not-import-from-here/ux/layoutcanvas/stores/BlockCatalogStore.d.ts +2 -0
- package/internal-do-not-import-from-here/ux/layoutcanvas/stores/LayoutCanvasStore.d.ts +5 -1
- package/package.json +2 -2
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { IMessageBusSubscriptionHandler, MultilingualString, MultilingualScopes, ScopedLanguageSetting, IMultilingualStore } from "../models";
|
|
2
2
|
import { Store } from "./Store";
|
|
3
|
+
import { MultilingualContext } from "../ux";
|
|
3
4
|
export declare class MultilingualStore extends Store implements IMultilingualStore {
|
|
4
5
|
private localizationService;
|
|
5
6
|
private omniaContext;
|
|
@@ -22,6 +23,7 @@ export declare class MultilingualStore extends Store implements IMultilingualSto
|
|
|
22
23
|
* @param scope - The scope for which language settings to use
|
|
23
24
|
*/
|
|
24
25
|
stringValue: (multilingualString: MultilingualString, scope?: MultilingualScopes) => string;
|
|
26
|
+
resolveLanguageTag: (multilingualContext?: MultilingualContext) => string;
|
|
25
27
|
};
|
|
26
28
|
private internalMutations;
|
|
27
29
|
private actions;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { LayoutCanvasStore } from "../../../..";
|
|
2
2
|
import { AccordionedSectionSettings, Section } from "../../../../../../models";
|
|
3
|
-
import { VueComponentBase } from "../../../../..";
|
|
3
|
+
import { VueComponentBase, MultilingualContext } from "../../../../..";
|
|
4
4
|
import { MultilingualStore } from "../../../../../../stores";
|
|
5
5
|
export interface AccordionListingSettingsPanelProps {
|
|
6
6
|
section: Section<AccordionedSectionSettings>;
|
|
@@ -10,6 +10,7 @@ export declare class AccordionListingSettingsPanel extends VueComponentBase<Acco
|
|
|
10
10
|
layoutCanvasStore: LayoutCanvasStore;
|
|
11
11
|
multilingualStore: MultilingualStore;
|
|
12
12
|
private omniaUxLoc;
|
|
13
|
+
multilingualContext: MultilingualContext;
|
|
13
14
|
private addSectionItem;
|
|
14
15
|
private deleteSectionItem;
|
|
15
16
|
private toggleCustomAnchorName;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Section, StepperSectionSettings } from "../../../../../../models";
|
|
2
|
-
import { LayoutCanvasStore, VueComponentBase } from "../../../../..";
|
|
2
|
+
import { LayoutCanvasStore, VueComponentBase, MultilingualContext } from "../../../../..";
|
|
3
3
|
import { MultilingualStore } from "../../../../../../stores";
|
|
4
4
|
export interface StepListingSettingsPanelProps {
|
|
5
5
|
section: Section<StepperSectionSettings>;
|
|
@@ -9,6 +9,7 @@ export declare class StepListingSettingsPanel extends VueComponentBase<StepListi
|
|
|
9
9
|
layoutCanvasStore: LayoutCanvasStore;
|
|
10
10
|
multilingualStore: MultilingualStore;
|
|
11
11
|
private omniaUxLoc;
|
|
12
|
+
multilingualContext: MultilingualContext;
|
|
12
13
|
private allLabelOptions;
|
|
13
14
|
private selectedLabelOption;
|
|
14
15
|
created(): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Section, TabbedSectionSettings } from "../../../../../../models";
|
|
2
|
-
import { VueComponentBase, LayoutCanvasStore } from "../../../../..";
|
|
2
|
+
import { VueComponentBase, LayoutCanvasStore, MultilingualContext } from "../../../../..";
|
|
3
3
|
import { MultilingualStore } from "../../../../../../stores";
|
|
4
4
|
export interface TabListingSettingsPanelProps {
|
|
5
5
|
section: Section<TabbedSectionSettings>;
|
|
@@ -8,6 +8,7 @@ export declare class TabListingSettingsPanel extends VueComponentBase<TabListing
|
|
|
8
8
|
section: Section<TabbedSectionSettings>;
|
|
9
9
|
layoutCanvasStore: LayoutCanvasStore;
|
|
10
10
|
multilingualStore: MultilingualStore;
|
|
11
|
+
multilingualContext: MultilingualContext;
|
|
11
12
|
private omniaUxLoc;
|
|
12
13
|
mounted(): void;
|
|
13
14
|
private addSectionItem;
|
package/internal-do-not-import-from-here/ux/layoutcanvas/factories/EditorLayoutItemFactory.d.ts
CHANGED
|
@@ -6,9 +6,9 @@ export declare class EditorLayoutItemFactory {
|
|
|
6
6
|
static createSection(layout: LoadedLayout, type: SectionTypes): Section;
|
|
7
7
|
static createDelegatedSection(layout: LayoutItem): Section;
|
|
8
8
|
static createColumn(layout: LoadedLayout): SectionItem<ColumnedSectionItemSettings>;
|
|
9
|
-
static createTab(layout: LoadedLayout): SectionItem<TabbedSectionItemSettings>;
|
|
10
|
-
static createAccordion(layout: LoadedLayout): SectionItem<AccordionedSectionItemSettings>;
|
|
11
|
-
static createStep(layout: LoadedLayout): SectionItem<SteppedSectionItemSettings>;
|
|
9
|
+
static createTab(layout: LoadedLayout, languageTag?: string): SectionItem<TabbedSectionItemSettings>;
|
|
10
|
+
static createAccordion(layout: LoadedLayout, languageTag?: string): SectionItem<AccordionedSectionItemSettings>;
|
|
11
|
+
static createStep(layout: LoadedLayout, languageTag?: string): SectionItem<SteppedSectionItemSettings>;
|
|
12
12
|
static createSectionWithColumns(layout: LoadedLayout, columns: number): Section;
|
|
13
13
|
static createBlock(layout: LoadedLayout, manifestId: GuidValue, elementName?: string): Block;
|
|
14
14
|
static createBlockFromRegistration(layout: LoadedLayout, registration: BlockRegistration): Block;
|
|
@@ -18,7 +18,7 @@ export declare class EditorLayoutItemFactory {
|
|
|
18
18
|
static createThreeColumSectionArray(layout: LoadedLayout): Array<Section>;
|
|
19
19
|
static createThreeColumPageSectionArray(layout: LoadedLayout): Array<Section>;
|
|
20
20
|
static createThreeColumnHeroSectionArray(layout: LoadedLayout): Array<Section>;
|
|
21
|
-
static createOneTabSectionArray(layout: LoadedLayout): Array<Section>;
|
|
22
|
-
static createAccordionSectionArray(layout: LoadedLayout): Array<Section>;
|
|
23
|
-
static createStepperSectionArray(layout: LoadedLayout): Array<Section>;
|
|
21
|
+
static createOneTabSectionArray(layout: LoadedLayout, languageTag?: string): Array<Section>;
|
|
22
|
+
static createAccordionSectionArray(layout: LoadedLayout, languageTag?: string): Array<Section>;
|
|
23
|
+
static createStepperSectionArray(layout: LoadedLayout, languageTag?: string): Array<Section>;
|
|
24
24
|
}
|
|
@@ -8,17 +8,17 @@ export declare class LayoutItemFactory {
|
|
|
8
8
|
static createLayout(parentLayoutId?: string): LayoutDefinition;
|
|
9
9
|
static createSection(type: SectionTypes): Section;
|
|
10
10
|
static createColumn(): SectionItem<ColumnedSectionItemSettings>;
|
|
11
|
-
static createTab(): SectionItem<TabbedSectionItemSettings>;
|
|
12
|
-
static createAccordion(): SectionItem<AccordionedSectionItemSettings>;
|
|
13
|
-
static createStep(): SectionItem<SteppedSectionItemSettings>;
|
|
11
|
+
static createTab(languageTag?: string): SectionItem<TabbedSectionItemSettings>;
|
|
12
|
+
static createAccordion(languageTag?: string): SectionItem<AccordionedSectionItemSettings>;
|
|
13
|
+
static createStep(languageTag?: string): SectionItem<SteppedSectionItemSettings>;
|
|
14
14
|
static createBlock(manifestId: GuidValue, elementName?: string): Block;
|
|
15
15
|
static getDefaultLockSettings(): BlockLockSettings;
|
|
16
16
|
static getDefaultLayoutSettings(): LayoutSettings;
|
|
17
17
|
static getDefaultSectionSettings(type: SectionTypes): SectionSettings;
|
|
18
18
|
static getDefaultColumnSettings(): ColumnedSectionItemSettings;
|
|
19
|
-
static getDefaultTabSettings(): TabbedSectionItemSettings;
|
|
20
|
-
static getDefaultAccordionSettings(): AccordionedSectionItemSettings;
|
|
21
|
-
static getDefaultStepSettings(): SteppedSectionItemSettings;
|
|
19
|
+
static getDefaultTabSettings(languageTag?: string): TabbedSectionItemSettings;
|
|
20
|
+
static getDefaultAccordionSettings(languageTag?: string): AccordionedSectionItemSettings;
|
|
21
|
+
static getDefaultStepSettings(languageTag?: string): SteppedSectionItemSettings;
|
|
22
22
|
static getDefaultBlockSettings(): BlockLayoutSettings;
|
|
23
23
|
static getDefaultImageBackground(): ImageBackground;
|
|
24
24
|
static getDefaultLabelText(): string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Section, SectionItem, SteppedSectionItemSettings, StepperSectionSettings } from "../../../../models";
|
|
2
|
-
import { LayoutCanvasStore, VueComponentBase } from "../../..";
|
|
2
|
+
import { LayoutCanvasStore, VueComponentBase, MultilingualContext } from "../../..";
|
|
3
3
|
import { MultilingualStore } from "../../../../stores";
|
|
4
4
|
import { OmniaContext, SubscriptionHandler } from "../../../..";
|
|
5
5
|
import { OmniaUxLocalization } from "../../../UxModels";
|
|
@@ -19,6 +19,7 @@ export declare class StepperSectionDesigner extends VueComponentBase<StepperSect
|
|
|
19
19
|
subscriptionHandler: SubscriptionHandler;
|
|
20
20
|
omniaContext: OmniaContext;
|
|
21
21
|
anchorLink: AnchorLink;
|
|
22
|
+
multilingualContext: MultilingualContext;
|
|
22
23
|
private stepperCurrentStep;
|
|
23
24
|
private readyToSetVisible;
|
|
24
25
|
private isShowOverlay;
|
|
@@ -4,8 +4,9 @@ import { LayoutEditorThemingManager, SectionOverride } from "../shared";
|
|
|
4
4
|
import { BlockSettingsProvider, LayoutDefinitionBuilder } from "../shared";
|
|
5
5
|
import { MessageBusExposeOnlySubscription } from "../../..";
|
|
6
6
|
import { ThemeStore } from "../../theming";
|
|
7
|
-
import { Store, StoreState } from "../../../stores";
|
|
7
|
+
import { MultilingualStore, Store, StoreState } from "../../../stores";
|
|
8
8
|
import { ServiceContainerContext } from "../../../core";
|
|
9
|
+
import { MultilingualContext } from "../../MultilingualContext";
|
|
9
10
|
export interface IBlockInstanceExtends<TSettings = void> extends IBlockInstance<TSettings> {
|
|
10
11
|
settings: TSettings;
|
|
11
12
|
serviceContainerContext: ServiceContainerContext;
|
|
@@ -16,6 +17,8 @@ type BlockInstancesByManifestResult<TSettings = void> = {
|
|
|
16
17
|
export declare class LayoutCanvasStore extends Store implements ILayoutCanvasStore {
|
|
17
18
|
themeStore: ThemeStore;
|
|
18
19
|
private serviceContainerContext;
|
|
20
|
+
multilingualStore: MultilingualStore;
|
|
21
|
+
multilingualContext: MultilingualContext;
|
|
19
22
|
layout: StoreState<LoadedLayout>;
|
|
20
23
|
previewUrl: StoreState<string>;
|
|
21
24
|
provider: StoreState<string>;
|
|
@@ -148,6 +151,7 @@ export declare class LayoutCanvasStore extends Store implements ILayoutCanvasSto
|
|
|
148
151
|
private recursiveEnsureOwnerLayoutId;
|
|
149
152
|
private getOwnerLayoutItemsOverride;
|
|
150
153
|
private recursiveEnsureProperties;
|
|
154
|
+
private ensureTabDefaultSettings;
|
|
151
155
|
private deleteItem;
|
|
152
156
|
private addItem;
|
|
153
157
|
private moveItem;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@omnia/fx",
|
|
3
3
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
4
|
-
"version": "7.11.
|
|
4
|
+
"version": "7.11.6",
|
|
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.11.
|
|
23
|
+
"@omnia/fx-models": "7.11.6",
|
|
24
24
|
"@microsoft/signalr": "6.0.1",
|
|
25
25
|
"broadcast-channel": "4.8.0",
|
|
26
26
|
"dayjs": "1.10.7",
|