@omnia/fx-models 8.0.270-dev → 8.0.272-dev

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.
@@ -1,10 +1,11 @@
1
1
  import { TextAlignment, BorderPositions, IconPositions, IconSizes } from "./Enums";
2
2
  import { IIcon } from "./Icon";
3
- import { Spacing } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
3
+ import { Spacing, VelcronRendererResolverReference } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
4
4
  import { BusinessProfileProperty } from "./BusinessProfile";
5
5
  import { ShapeDividerSettings } from "./ShapeDividerSettingsModel";
6
6
  export declare class BusinessProfileBlockTitleSettings extends BusinessProfileProperty implements BlockTitleSettings {
7
7
  constructor();
8
+ viewTemplate: VelcronRendererResolverReference;
8
9
  bgColor: string;
9
10
  textColor: string;
10
11
  textAlign: TextAlignment;
@@ -33,19 +34,19 @@ export interface BlockTitleIconSettings {
33
34
  spacing: Spacing;
34
35
  }
35
36
  export interface BlockTitleSettings {
36
- bgColor: string;
37
- textColor: string;
38
- textAlign: TextAlignment;
39
- paddingRight: number | any;
40
- paddingLeft: number | any;
41
- paddingTop: number | any;
42
- paddingBottom: number | any;
43
- fontSize: number;
44
- separatorSize: number;
45
- separatorColor: string;
46
- separatorPosition: BorderPositions;
47
- iconSettings: BlockTitleIconSettings;
48
- borderRadius: number;
49
- followTheming: boolean;
50
- shapeDivider: ShapeDividerSettings;
37
+ bgColor?: string;
38
+ textColor?: string;
39
+ textAlign?: TextAlignment;
40
+ paddingRight?: number | any;
41
+ paddingLeft?: number | any;
42
+ paddingTop?: number | any;
43
+ paddingBottom?: number | any;
44
+ fontSize?: number;
45
+ separatorSize?: number;
46
+ separatorColor?: string;
47
+ separatorPosition?: BorderPositions;
48
+ iconSettings?: BlockTitleIconSettings;
49
+ borderRadius?: number;
50
+ followTheming?: boolean;
51
+ shapeDivider?: ShapeDividerSettings;
51
52
  }
package/Constants.d.ts CHANGED
@@ -19,10 +19,12 @@ export declare const Constants: {
19
19
  flow: {
20
20
  plugins: {
21
21
  text: guid;
22
+ textAlignment: guid;
22
23
  element: guid;
23
24
  bold: guid;
24
25
  italic: guid;
25
26
  color: guid;
27
+ spacing: guid;
26
28
  typography: guid;
27
29
  velcron: guid;
28
30
  source: guid;
package/Constants.js CHANGED
@@ -24,10 +24,12 @@ exports.Constants = {
24
24
  flow: {
25
25
  plugins: {
26
26
  text: (0, models_1.guid)("a9edb1ed-9e97-4c1b-a3ec-9f66d1a97ff9"),
27
+ textAlignment: (0, models_1.guid)("9729a6d1-7219-4a2e-b306-bfe1a3ad40e5"),
27
28
  element: (0, models_1.guid)("32d51673-2a5a-4159-83c4-2c7960da8856"),
28
29
  bold: (0, models_1.guid)("678ed68f-db27-444a-bc06-f86f8e6c86dc"),
29
30
  italic: (0, models_1.guid)("4d6a3d2b-41c1-484a-ad4d-fe566c8be86e"),
30
31
  color: (0, models_1.guid)("5b6dd221-0d30-4405-95c3-ca637f69d8ca"),
32
+ spacing: (0, models_1.guid)("c8acf700-23be-4ad2-80fa-ee462cff807e"),
31
33
  typography: (0, models_1.guid)("cfc8e261-fe4b-4449-ab9a-19dfe0293ced"),
32
34
  velcron: (0, models_1.guid)("7c254dea-a4fc-486c-9189-618663e657a2"),
33
35
  source: (0, models_1.guid)("9a0e6adc-5102-4628-ab10-e97391a77668"),
package/Exposes.d.ts CHANGED
@@ -68,6 +68,7 @@ export * from "./PropertiesBlockStyles";
68
68
  export * from "./PropertyArchive";
69
69
  export * from "./QueryFilter";
70
70
  export * from "./QueryablePropertyMessage";
71
+ export * from "./BlockTitleSettings";
71
72
  export * from "./Queue";
72
73
  export * from "./RichTextEditorExtension";
73
74
  export * from "./RollupMetricSettings";
@@ -93,6 +94,7 @@ export * from "./Theming";
93
94
  export * from "./ThemingMenuNode";
94
95
  export * from "./TimePeriodSettings";
95
96
  export * from "./TimeZone";
97
+ export * from "./TitleRenderer";
96
98
  export * from "./Token";
97
99
  export * from "./TokenDefinition";
98
100
  export * from "./Translation";
package/Exposes.js CHANGED
@@ -74,6 +74,7 @@ tslib_1.__exportStar(require("./PropertiesBlockStyles"), exports);
74
74
  tslib_1.__exportStar(require("./PropertyArchive"), exports);
75
75
  tslib_1.__exportStar(require("./QueryFilter"), exports);
76
76
  tslib_1.__exportStar(require("./QueryablePropertyMessage"), exports);
77
+ tslib_1.__exportStar(require("./BlockTitleSettings"), exports);
77
78
  tslib_1.__exportStar(require("./Queue"), exports);
78
79
  tslib_1.__exportStar(require("./RichTextEditorExtension"), exports);
79
80
  tslib_1.__exportStar(require("./RollupMetricSettings"), exports);
@@ -99,6 +100,7 @@ tslib_1.__exportStar(require("./Theming"), exports);
99
100
  tslib_1.__exportStar(require("./ThemingMenuNode"), exports);
100
101
  tslib_1.__exportStar(require("./TimePeriodSettings"), exports);
101
102
  tslib_1.__exportStar(require("./TimeZone"), exports);
103
+ tslib_1.__exportStar(require("./TitleRenderer"), exports);
102
104
  tslib_1.__exportStar(require("./Token"), exports);
103
105
  tslib_1.__exportStar(require("./TokenDefinition"), exports);
104
106
  tslib_1.__exportStar(require("./Translation"), exports);
package/Layout.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { MultilingualString, ThemeDefinition, IIcon, Spacing, IconPickerModel, WebComponentDefinition, OmniaBlock, guid, RadialGradientShapes, BlockTitleSettings, LayoutItemActions, LayoutEditorModes, BlockRenderingModes, TabbedDisplayModes, TabbedIconPositions, LayoutDrawerTabs, ILayoutCanvasDefinitionBuilder, MediaPickerImage, IMessageBusTopicSubscription, MediaPickerStorageProviderContext, OmniaBackendRuntimes, OmniaClientRuntimes, LayoutCanvasModes, HorizontalAlignments, SpacingValue, ColorValue, VerticalAlignments, ContainerVariant, ContainerBlueprint, ColorSchemaTypes, ColorSchema, ChromeBlueprint, BlueprintVariant, TabsBlueprint } from ".";
1
+ import { TitleRendererValue, MultilingualString, ThemeDefinition, IIcon, Spacing, IconPickerModel, WebComponentDefinition, OmniaBlock, guid, RadialGradientShapes, BlockTitleSettings, LayoutItemActions, LayoutEditorModes, BlockRenderingModes, TabbedDisplayModes, TabbedIconPositions, LayoutDrawerTabs, ILayoutCanvasDefinitionBuilder, MediaPickerImage, IMessageBusTopicSubscription, MediaPickerStorageProviderContext, OmniaBackendRuntimes, OmniaClientRuntimes, LayoutCanvasModes, HorizontalAlignments, SpacingValue, ColorValue, VerticalAlignments, ContainerVariant, ContainerBlueprint, ColorSchemaTypes, ColorSchema, ChromeBlueprint, BlueprintVariant, TabsBlueprint } from ".";
2
2
  import { MessageBusTopicMediator } from "../";
3
3
  import { TargetingFilterProperty } from "../sp";
4
4
  import { ShapeDividerSettings } from "./ShapeDividerSettingsModel";
@@ -149,8 +149,10 @@ export interface SectionSettings extends LayoutItemSettings {
149
149
  marginSectionTop: SpacingValue;
150
150
  marginSectionBottom: SpacingValue;
151
151
  targetingFilterProperties: TargetingFilterProperty;
152
- titleSettings: BlockTitleSettings;
153
- sectionTitle: string | MultilingualString;
152
+ anchorName?: string;
153
+ titleSettings?: BlockTitleSettings;
154
+ titleRenderer?: TitleRendererValue;
155
+ sectionTitle?: string | MultilingualString;
154
156
  useFullSpace: boolean;
155
157
  icon: IIcon;
156
158
  useCustomTheme: boolean;
@@ -0,0 +1,6 @@
1
+ import { VelcronRendererResolverReference } from "@omnia/fx-models";
2
+ export type TitleRendererValue = TitleRendererSettings | string;
3
+ export interface TitleRendererSettings {
4
+ renderer: VelcronRendererResolverReference;
5
+ state: any;
6
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -61,7 +61,7 @@ export interface VelcronComponentDefinition extends VelcronDefinition {
61
61
  }
62
62
  export type VelcronCustomComponentDefinition = VelcronComponentDefinition;
63
63
  export type BuiltInPropertyEditorType = "text" | "number" | "slider" | "switch" | "alignment" | "color" | "markdown" | "icon" | "image" | "typography" | "spacing" | "color-schema-type" | "blueprint" | "background" | "grid" | "reference" | "select" | "property-resolver";
64
- export type EditorLocation = "inline " | "pane" | "toolbar";
64
+ export type EditorLocation = "inline" | "pane" | "toolbar";
65
65
  export interface VelcronEditor<TSettings = any> {
66
66
  name?: string;
67
67
  icon?: IFontAwesomeIcon;
@@ -36,11 +36,12 @@ export interface VelcronNumberEditorSettings {
36
36
  max: number;
37
37
  step: number;
38
38
  }
39
+ export interface VelcronPropertyMapping {
40
+ name: string;
41
+ definitionId: guid;
42
+ }
39
43
  export interface VelcronPropertyResolverEditorSettings {
40
- properties: Array<{
41
- name: string;
42
- definitionId: guid;
43
- }>;
44
+ properties: Array<VelcronPropertyMapping>;
44
45
  }
45
46
  export interface VelcronBlueprintEditorSettings {
46
47
  type: "container" | "icon";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@omnia/fx-models",
3
3
  "license": "MIT",
4
- "version": "8.0.270-dev",
4
+ "version": "8.0.272-dev",
5
5
  "description": "Provide Omnia Fx Models Stuffs.",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -0,0 +1,17 @@
1
+ import { ApiPath } from "../Extends";
2
+ import { ILinkItemHandler } from "../../ux/models/linkpicker/LinkItemHandler";
3
+ export interface ILinkItemHandlerRegistrationApi {
4
+ registerLinkRenderer: (linkItemHandler: ILinkItemHandler) => boolean;
5
+ }
6
+ declare module "./UxApi" {
7
+ interface IOmniaUxApi {
8
+ linkItemHandler: {
9
+ registration: Promise<ILinkItemHandlerRegistrationApi>;
10
+ };
11
+ }
12
+ interface IOmniaUxExtendApiManifest {
13
+ linkItemHandler: {
14
+ registration: ApiPath;
15
+ };
16
+ }
17
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,17 @@
1
+ import { ApiPath } from "../Extends";
2
+ import { LinkPickerRegistration } from "../../ux/models/linkpicker";
3
+ export interface ILinkProviderRegistrationApi {
4
+ registerLinkProviders: (items: LinkPickerRegistration | LinkPickerRegistration[]) => void;
5
+ }
6
+ declare module "./UxApi" {
7
+ interface IOmniaUxApi {
8
+ linkProvider: {
9
+ registration: Promise<ILinkProviderRegistrationApi>;
10
+ };
11
+ }
12
+ interface IOmniaUxExtendApiManifest {
13
+ linkProvider: {
14
+ registration: ApiPath;
15
+ };
16
+ }
17
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/ux/index.d.ts CHANGED
@@ -24,4 +24,6 @@ export * from "./RouterApi";
24
24
  export * from "./ScopedPermissionApi";
25
25
  export * from "./FlowEditorApi";
26
26
  export * from "./FontApi";
27
+ export * from "./LinkPickerApi";
28
+ export * from "./LinkItemHandlerApi";
27
29
  export { type Directives, type DirectiveDefinition, type IInternalDirectiveRegistration } from "./Directive";
package/ux/index.js CHANGED
@@ -27,3 +27,5 @@ tslib_1.__exportStar(require("./RouterApi"), exports);
27
27
  tslib_1.__exportStar(require("./ScopedPermissionApi"), exports);
28
28
  tslib_1.__exportStar(require("./FlowEditorApi"), exports);
29
29
  tslib_1.__exportStar(require("./FontApi"), exports);
30
+ tslib_1.__exportStar(require("./LinkPickerApi"), exports);
31
+ tslib_1.__exportStar(require("./LinkItemHandlerApi"), exports);