@omnia/fx-spfx 7.8.97-preview → 7.8.99-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.
- package/internal-do-not-import-from-here/components/OmniaWPContainer.d.ts +17 -37
- package/internal-do-not-import-from-here/components/OmniaWPContainerSettings.d.ts +20 -27
- package/internal-do-not-import-from-here/components/renderer/Settings.d.ts +24 -0
- package/internal-do-not-import-from-here/components/shared.manifest.d.ts +1 -0
- package/internal-do-not-import-from-here/components/useOmniaWP.d.ts +69 -0
- package/package.json +2 -2
- package/internal-do-not-import-from-here/components/IOmniaWPContainerSettings.d.ts +0 -17
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { SettingsService } from "../../../fx/services";
|
|
2
|
-
import { VueComponentBase, BlockCatalogStore } from "../../ux";
|
|
3
1
|
export type WebComponentDefinition = {
|
|
4
2
|
id: string;
|
|
5
3
|
name: string;
|
|
@@ -8,39 +6,21 @@ export type WebComponentDefinition = {
|
|
|
8
6
|
html?: string;
|
|
9
7
|
};
|
|
10
8
|
};
|
|
11
|
-
|
|
9
|
+
declare const _default: (import("vue").VueConstructor<import("vue-tsx-support")._TsxComponentInstanceV3<import("vue/types/umd"), {}, import("vue-tsx-support").PropsForOutside<{
|
|
12
10
|
webpartid: string;
|
|
13
|
-
displaymode:
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
private pfxWPClasses;
|
|
30
|
-
created(): void;
|
|
31
|
-
mounted(): void;
|
|
32
|
-
private init;
|
|
33
|
-
private handleSettingsElementUpdated;
|
|
34
|
-
private subcribeOpenPaneEvent;
|
|
35
|
-
private populateComponentTitle;
|
|
36
|
-
private saveComponentSettings;
|
|
37
|
-
private onSelectComponentChanged;
|
|
38
|
-
private onDisplayModeChanged;
|
|
39
|
-
private subcribeMessage;
|
|
40
|
-
private saveSettings;
|
|
41
|
-
private closeSettings;
|
|
42
|
-
private closeSettingsComponentForm;
|
|
43
|
-
private renderSettingsComponent;
|
|
44
|
-
private renderDisplayComponent;
|
|
45
|
-
render(): VueTsxSupport.JSX.Element;
|
|
46
|
-
}
|
|
11
|
+
displaymode: unknown;
|
|
12
|
+
}, never>, any, any, any>> & {
|
|
13
|
+
propsDefinition: import("vue-tsx-support").PropsForOutside<{
|
|
14
|
+
webpartid: string;
|
|
15
|
+
displaymode: unknown;
|
|
16
|
+
}, never>;
|
|
17
|
+
}) | (import("vue").VueConstructor<import("vue-tsx-support")._TsxComponentInstanceV3<import("vue/types/umd") & import("vue").ShallowUnwrapRef<() => VueTsxSupport.JSX.Element>, {}, import("vue-tsx-support").PropsForOutside<{
|
|
18
|
+
webpartid: string;
|
|
19
|
+
displaymode: unknown;
|
|
20
|
+
}, never>, any, any, any>> & {
|
|
21
|
+
propsDefinition: import("vue-tsx-support").PropsForOutside<{
|
|
22
|
+
webpartid: string;
|
|
23
|
+
displaymode: unknown;
|
|
24
|
+
}, never>;
|
|
25
|
+
});
|
|
26
|
+
export default _default;
|
|
@@ -1,31 +1,24 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { IOmniaWPContainerSettings } from "./IOmniaWPContainerSettings";
|
|
3
|
-
import { VueComponentBase, BlockCatalogStore } from "../../ux";
|
|
4
|
-
import { BlockRegistration, GuidValue } from "../../models";
|
|
1
|
+
import { GuidValue } from "../../models";
|
|
5
2
|
import "./styles/OmniaWPContainerSettings.css";
|
|
6
|
-
|
|
3
|
+
declare const _default: (import("vue").VueConstructor<import("vue-tsx-support")._TsxComponentInstanceV3<import("vue/types/umd"), {}, import("vue-tsx-support").PropsForOutside<{
|
|
7
4
|
opened: boolean;
|
|
8
5
|
onClosed: () => void;
|
|
9
6
|
onChange: (blockManifestId: GuidValue, elementName: string) => void;
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
private renderDefaultBlocks;
|
|
29
|
-
private renderSearchResult;
|
|
30
|
-
render(): VueTsxSupport.JSX.Element;
|
|
31
|
-
}
|
|
7
|
+
}, never>, any, any, any>> & {
|
|
8
|
+
propsDefinition: import("vue-tsx-support").PropsForOutside<{
|
|
9
|
+
opened: boolean;
|
|
10
|
+
onClosed: () => void;
|
|
11
|
+
onChange: (blockManifestId: GuidValue, elementName: string) => void;
|
|
12
|
+
}, never>;
|
|
13
|
+
}) | (import("vue").VueConstructor<import("vue-tsx-support")._TsxComponentInstanceV3<import("vue/types/umd") & import("vue").ShallowUnwrapRef<() => VueTsxSupport.JSX.Element>, {}, import("vue-tsx-support").PropsForOutside<{
|
|
14
|
+
opened: boolean;
|
|
15
|
+
onClosed: () => void;
|
|
16
|
+
onChange: (blockManifestId: GuidValue, elementName: string) => void;
|
|
17
|
+
}, never>, any, any, any>> & {
|
|
18
|
+
propsDefinition: import("vue-tsx-support").PropsForOutside<{
|
|
19
|
+
opened: boolean;
|
|
20
|
+
onClosed: () => void;
|
|
21
|
+
onChange: (blockManifestId: GuidValue, elementName: string) => void;
|
|
22
|
+
}, never>;
|
|
23
|
+
});
|
|
24
|
+
export default _default;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { OmniaWPContainerSettingsModel } from "../../models";
|
|
2
|
+
import { OmniaWPState } from "../useOmniaWP";
|
|
3
|
+
declare const _default: (import("vue").VueConstructor<import("vue-tsx-support")._TsxComponentInstanceV3<import("vue/types/umd"), {}, import("vue-tsx-support").PropsForOutside<{
|
|
4
|
+
webpartid: string;
|
|
5
|
+
settings: OmniaWPContainerSettingsModel;
|
|
6
|
+
wpState: OmniaWPState;
|
|
7
|
+
}, "settings" | "webpartid" | "wpState">, any, any, any>> & {
|
|
8
|
+
propsDefinition: import("vue-tsx-support").PropsForOutside<{
|
|
9
|
+
webpartid: string;
|
|
10
|
+
settings: OmniaWPContainerSettingsModel;
|
|
11
|
+
wpState: OmniaWPState;
|
|
12
|
+
}, "settings" | "webpartid" | "wpState">;
|
|
13
|
+
}) | (import("vue").VueConstructor<import("vue-tsx-support")._TsxComponentInstanceV3<import("vue/types/umd") & import("vue").ShallowUnwrapRef<() => VueTsxSupport.JSX.Element>, {}, import("vue-tsx-support").PropsForOutside<{
|
|
14
|
+
webpartid: string;
|
|
15
|
+
settings: OmniaWPContainerSettingsModel;
|
|
16
|
+
wpState: OmniaWPState;
|
|
17
|
+
}, "settings" | "webpartid" | "wpState">, any, any, any>> & {
|
|
18
|
+
propsDefinition: import("vue-tsx-support").PropsForOutside<{
|
|
19
|
+
webpartid: string;
|
|
20
|
+
settings: OmniaWPContainerSettingsModel;
|
|
21
|
+
wpState: OmniaWPState;
|
|
22
|
+
}, "settings" | "webpartid" | "wpState">;
|
|
23
|
+
});
|
|
24
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { GuidValue, ILayoutCanvasExpansionItemInstance, WebComponentDefinition } from "@omnia/fx-models";
|
|
2
|
+
import { SpfxWebPartSettingMsg } from "../messagebus/internal/InternalTopics";
|
|
3
|
+
import { OmniaWPContainerSettingsModel } from "../models";
|
|
4
|
+
export interface OmniaWPState {
|
|
5
|
+
webComponents: WebComponentDefinition[];
|
|
6
|
+
displaySelectComponents: boolean;
|
|
7
|
+
displaySettingsComponentForm: boolean;
|
|
8
|
+
selectedComponentTag: string;
|
|
9
|
+
selectedSettingsComponentTag: string;
|
|
10
|
+
componentTitle: string;
|
|
11
|
+
settingsComponentDialog: {
|
|
12
|
+
visible: boolean;
|
|
13
|
+
};
|
|
14
|
+
isEditMode: boolean;
|
|
15
|
+
activeTab: number;
|
|
16
|
+
layoutItems: ILayoutCanvasExpansionItemInstance[];
|
|
17
|
+
customCssClases: string;
|
|
18
|
+
customCssStyle: string;
|
|
19
|
+
}
|
|
20
|
+
export default function useOmniaWP(webpartid: string): {
|
|
21
|
+
state: {
|
|
22
|
+
webComponents: {
|
|
23
|
+
title: string;
|
|
24
|
+
description?: string;
|
|
25
|
+
icon?: {
|
|
26
|
+
iconType: import("@omnia/fx-models").IconTypes;
|
|
27
|
+
role?: string;
|
|
28
|
+
};
|
|
29
|
+
featureDependencyIds?: {
|
|
30
|
+
toString: () => string;
|
|
31
|
+
}[];
|
|
32
|
+
requiresLicense?: {
|
|
33
|
+
toString: () => string;
|
|
34
|
+
}[];
|
|
35
|
+
requiredBackendRuntime?: import("@omnia/fx-models").OmniaBackendRuntimes[];
|
|
36
|
+
requiredClientRuntime?: import("@omnia/fx-models").OmniaClientRuntimes[];
|
|
37
|
+
}[];
|
|
38
|
+
displaySelectComponents: boolean;
|
|
39
|
+
displaySettingsComponentForm: boolean;
|
|
40
|
+
selectedComponentTag: string;
|
|
41
|
+
selectedSettingsComponentTag: string;
|
|
42
|
+
componentTitle: string;
|
|
43
|
+
settingsComponentDialog: {
|
|
44
|
+
visible: boolean;
|
|
45
|
+
};
|
|
46
|
+
isEditMode: boolean;
|
|
47
|
+
activeTab: number;
|
|
48
|
+
layoutItems: {
|
|
49
|
+
slots: {
|
|
50
|
+
header: () => JSX.Element;
|
|
51
|
+
content: () => JSX.Element | JSX.Element[];
|
|
52
|
+
};
|
|
53
|
+
definitionId: {
|
|
54
|
+
toString: () => string;
|
|
55
|
+
};
|
|
56
|
+
}[];
|
|
57
|
+
customCssClases: string;
|
|
58
|
+
customCssStyle: string;
|
|
59
|
+
};
|
|
60
|
+
populateComponentTitle: (componentManifestId: GuidValue, elementTag?: string) => void;
|
|
61
|
+
subscribeSpfxWebPartSettingTopic: (callback: (msg: SpfxWebPartSettingMsg) => void) => void;
|
|
62
|
+
subcribeMessage: (msg: SpfxWebPartSettingMsg, settings: OmniaWPContainerSettingsModel) => void;
|
|
63
|
+
saveComponentSettings: (value: any, settings: OmniaWPContainerSettingsModel) => Promise<void>;
|
|
64
|
+
onDisplayModeChanged: (mode: any) => void;
|
|
65
|
+
updateAdvanceCss: (settings: OmniaWPContainerSettingsModel) => void;
|
|
66
|
+
renderDisplayComponent: (manifestid?: GuidValue) => VueTsxSupport.JSX.Element;
|
|
67
|
+
renderSettingsComponent: (settings: OmniaWPContainerSettingsModel) => VueTsxSupport.JSX.Element;
|
|
68
|
+
init: (settings: OmniaWPContainerSettingsModel) => void;
|
|
69
|
+
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@omnia/fx-spfx",
|
|
3
3
|
"license": "MIT",
|
|
4
|
-
"version": "7.8.
|
|
4
|
+
"version": "7.8.99-preview",
|
|
5
5
|
"description": "Provide Omnia Fx Sharepoint Stuffs.",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
],
|
|
20
20
|
"author": "Omnia Digital Workplace AB",
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@omnia/fx": "7.8.
|
|
22
|
+
"@omnia/fx": "7.8.99-preview"
|
|
23
23
|
},
|
|
24
24
|
"typings": "./index.d.ts",
|
|
25
25
|
"bugs": {
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { GuidValue } from "../../models";
|
|
2
|
-
export interface IOmniaWPContainerSettings {
|
|
3
|
-
[name: string]: any;
|
|
4
|
-
onClosed?: () => void;
|
|
5
|
-
onChange?: (blockManifestId: GuidValue, elementName: string) => void;
|
|
6
|
-
}
|
|
7
|
-
declare global {
|
|
8
|
-
namespace VueTsxSupport.JSX {
|
|
9
|
-
interface Element {
|
|
10
|
-
}
|
|
11
|
-
interface ElementClass {
|
|
12
|
-
}
|
|
13
|
-
interface IntrinsicElements {
|
|
14
|
-
"omnia-fx-spfx-wp-settings": IOmniaWPContainerSettings;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
}
|