@omnia/fx-models 8.0.288-dev → 8.0.290-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,4 +1,4 @@
1
- import { guid } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
1
+ import { guid, ThemingSetting } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
2
2
  import { types } from "typestyle";
3
3
  import { LanguageSettings, VersionedLayoutId } from ".";
4
4
  import { ThemeType } from "./Enums";
@@ -46,6 +46,10 @@ export declare class BusinessProfileTheme extends BusinessProfileProperty implem
46
46
  warning: string;
47
47
  type: ThemeType;
48
48
  }
49
+ export declare class BusinessProfileThemingManager extends BusinessProfileProperty {
50
+ constructor();
51
+ businessProfileTheming: ThemingSetting;
52
+ }
49
53
  export interface CentralImageLocation {
50
54
  webUrl?: string;
51
55
  webTitle?: string;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TenantRegionalStyles = exports.OmniaBusinessProfileRelativePathValue = exports.BusinessProfileRelativePathValue = exports.BusinessProfileChromeLayout = exports.BusinessProfileFaviconSettings = exports.BusinessProfileHomeUrlSettings = exports.BusinessProfileLanguageSettings = exports.BusinessProfileMediaPicker = exports.BusinessProfileTheme = exports.BusinessProfilePathProperty = exports.BusinessProfileProperty = void 0;
3
+ exports.TenantRegionalStyles = exports.OmniaBusinessProfileRelativePathValue = exports.BusinessProfileRelativePathValue = exports.BusinessProfileChromeLayout = exports.BusinessProfileFaviconSettings = exports.BusinessProfileHomeUrlSettings = exports.BusinessProfileLanguageSettings = exports.BusinessProfileMediaPicker = exports.BusinessProfileThemingManager = exports.BusinessProfileTheme = exports.BusinessProfilePathProperty = exports.BusinessProfileProperty = void 0;
4
4
  const ManifestIds_1 = require("./ManifestIds");
5
5
  const NamedProperty_1 = require("./NamedProperty");
6
6
  class BusinessProfileProperty extends NamedProperty_1.OmniaNamedModel {
@@ -15,6 +15,12 @@ class BusinessProfileTheme extends BusinessProfileProperty {
15
15
  }
16
16
  }
17
17
  exports.BusinessProfileTheme = BusinessProfileTheme;
18
+ class BusinessProfileThemingManager extends BusinessProfileProperty {
19
+ constructor() {
20
+ super(ManifestIds_1.OmniaService.Id, "themingManager");
21
+ }
22
+ }
23
+ exports.BusinessProfileThemingManager = BusinessProfileThemingManager;
18
24
  class BusinessProfileMediaPicker extends BusinessProfileProperty {
19
25
  constructor() {
20
26
  super(ManifestIds_1.OmniaService.Id, "mediapicker");
package/Constants.d.ts CHANGED
@@ -31,6 +31,7 @@ export declare const Constants: {
31
31
  testdata: guid;
32
32
  keyboardEvents: guid;
33
33
  editorEvents: guid;
34
+ link: guid;
34
35
  };
35
36
  };
36
37
  filterEngine: {
package/Constants.js CHANGED
@@ -36,6 +36,7 @@ exports.Constants = {
36
36
  testdata: (0, models_1.guid)("ff9021ea-9a0f-424a-8c38-ae56849013cc"),
37
37
  keyboardEvents: (0, models_1.guid)("97fd7ca7-2c64-473e-b327-5225aeabe54f"),
38
38
  editorEvents: (0, models_1.guid)("6ad1cfa0-7ca1-430e-b381-f3a9a62dad51"),
39
+ link: (0, models_1.guid)("ffd2b3fb-8590-4030-8aae-c7b78c231bd9")
39
40
  }
40
41
  },
41
42
  filterEngine: {
package/Exposes.d.ts CHANGED
@@ -128,7 +128,7 @@ export * from "./enterprise-glossary";
128
128
  export * from "./enterprise-properties";
129
129
  export * from "./filterengine";
130
130
  export * from "./identities";
131
- export * from "./linkstatus";
131
+ export * from "./links";
132
132
  export * from "./media-gallery";
133
133
  export * from "./mediaflow";
134
134
  export * from "./omniasearch";
package/Exposes.js CHANGED
@@ -140,7 +140,7 @@ tslib_1.__exportStar(require("./enterprise-glossary"), exports);
140
140
  tslib_1.__exportStar(require("./enterprise-properties"), exports);
141
141
  tslib_1.__exportStar(require("./filterengine"), exports);
142
142
  tslib_1.__exportStar(require("./identities"), exports);
143
- tslib_1.__exportStar(require("./linkstatus"), exports);
143
+ tslib_1.__exportStar(require("./links"), exports);
144
144
  tslib_1.__exportStar(require("./media-gallery"), exports);
145
145
  tslib_1.__exportStar(require("./mediaflow"), exports);
146
146
  tslib_1.__exportStar(require("./omniasearch"), exports);
package/Icon.js CHANGED
@@ -37,9 +37,11 @@ class FontAwesomeIcon {
37
37
  return this;
38
38
  }
39
39
  setDefaultIconStyle() {
40
- const split = this.faClass.split(" ");
41
- if (this.faClass.split(" ").length === 1) {
42
- this.setIconStyle("fa-duotone");
40
+ if (this.faClass) {
41
+ const split = this.faClass.split(" ");
42
+ if (split.length === 1) {
43
+ this.setIconStyle("fa-duotone");
44
+ }
43
45
  }
44
46
  }
45
47
  setIconStyle(style) {
package/Tenant.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { OmniaNamedModel, IOmniaPropertyBag } from "./NamedProperty";
2
- import { TenantIdentifier, TypographyFontDefinition } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
2
+ import { TenantIdentifier, ThemingSetting, TypographyFontDefinition } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
3
3
  import { TimeFormats } from "./Enums";
4
4
  import { LanguageSettings } from "./Language";
5
5
  import { MultilingualString } from "./MultilingualString";
@@ -22,6 +22,10 @@ export declare class TenantLanguageSettings extends TenantProperty {
22
22
  excludeCountry?: boolean;
23
23
  constructor();
24
24
  }
25
+ export declare class TenantThemingManager extends TenantProperty {
26
+ constructor();
27
+ tenantTheming: ThemingSetting;
28
+ }
25
29
  export declare class TenantCSOMClientContextFallbackUrl extends TenantProperty {
26
30
  fallbackUrl: string;
27
31
  constructor();
package/Tenant.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TenantPreSetup = exports.TenantFaviconSettings = exports.TenantEnterpriseGlossary = exports.AllEnterprisePropertyDataTypesContentHashSettings = exports.AllEnterprisePropertiesContentHashSettings = exports.TenantApiSettings = exports.TenantPeopleInformation = exports.TenantTypographyFonts = exports.TenantAuthenticationSettings = exports.TenantInfoSettings = exports.TenantErrorInformation = exports.TenantCSOMClientContextFallbackUrl = exports.TenantLanguageSettings = exports.TenantRegionalSettings = exports.TenantProperty = void 0;
3
+ exports.TenantPreSetup = exports.TenantFaviconSettings = exports.TenantEnterpriseGlossary = exports.AllEnterprisePropertyDataTypesContentHashSettings = exports.AllEnterprisePropertiesContentHashSettings = exports.TenantApiSettings = exports.TenantPeopleInformation = exports.TenantTypographyFonts = exports.TenantAuthenticationSettings = exports.TenantInfoSettings = exports.TenantErrorInformation = exports.TenantCSOMClientContextFallbackUrl = exports.TenantThemingManager = exports.TenantLanguageSettings = exports.TenantRegionalSettings = exports.TenantProperty = void 0;
4
4
  const ManifestIds_1 = require("./ManifestIds");
5
5
  const NamedProperty_1 = require("./NamedProperty");
6
6
  class TenantProperty extends NamedProperty_1.OmniaNamedModel {
@@ -18,6 +18,12 @@ class TenantLanguageSettings extends TenantProperty {
18
18
  }
19
19
  }
20
20
  exports.TenantLanguageSettings = TenantLanguageSettings;
21
+ class TenantThemingManager extends TenantProperty {
22
+ constructor() {
23
+ super(ManifestIds_1.OmniaService.Id, "themingManager");
24
+ }
25
+ }
26
+ exports.TenantThemingManager = TenantThemingManager;
21
27
  class TenantCSOMClientContextFallbackUrl extends TenantProperty {
22
28
  constructor() {
23
29
  super(ManifestIds_1.OmniaService.Id, "csomclientcontextfallbackurl");
package/apps/App.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { guid } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
1
+ import { guid, ThemingSetting } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
2
2
  import { TargetingFilterProperty } from "../../sp/models";
3
3
  import { ProvisioningTemplateEnterpriseProperty } from "../enterprise-properties/EnterpriseProperty";
4
4
  import { AppCategories, AppInstanceScopedQueryTypes, AppInstanceStatus, AppTemplatePermissionLevel } from "../Enums";
@@ -7,6 +7,7 @@ import { Identity } from "../identities";
7
7
  import { MediaPickerImage } from "../media-picker";
8
8
  import { MultilingualString } from "../MultilingualString";
9
9
  import { RollupFilter } from "../RollupQuery";
10
+ import { AppRoutePropertyBagModel } from "../Routing";
10
11
  import { ServiceParam } from "../ServiceParam";
11
12
  import { AppProvisioningStepInfo } from "./AppProvisioning";
12
13
  export interface AppInstanceIdentities {
@@ -267,3 +268,7 @@ export interface AppInstanceActionProgressResult {
267
268
  message: string;
268
269
  percentage: number;
269
270
  }
271
+ export declare class AppThemingManager extends AppRoutePropertyBagModel {
272
+ constructor();
273
+ appTheming: ThemingSetting;
274
+ }
package/apps/App.js CHANGED
@@ -1,6 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ShowInPublicListingsMode = exports.UserAppTemplateAvailabilityOptions = void 0;
3
+ exports.AppThemingManager = exports.ShowInPublicListingsMode = exports.UserAppTemplateAvailabilityOptions = void 0;
4
+ const ManifestIds_1 = require("../ManifestIds");
5
+ const Routing_1 = require("../Routing");
4
6
  var UserAppTemplateAvailabilityOptions;
5
7
  (function (UserAppTemplateAvailabilityOptions) {
6
8
  UserAppTemplateAvailabilityOptions[UserAppTemplateAvailabilityOptions["All"] = 0] = "All";
@@ -13,3 +15,9 @@ var ShowInPublicListingsMode;
13
15
  ShowInPublicListingsMode[ShowInPublicListingsMode["PublicToProfileViewer"] = 1] = "PublicToProfileViewer";
14
16
  ShowInPublicListingsMode[ShowInPublicListingsMode["PublicToAppViewer"] = 2] = "PublicToAppViewer";
15
17
  })(ShowInPublicListingsMode || (exports.ShowInPublicListingsMode = ShowInPublicListingsMode = {}));
18
+ class AppThemingManager extends Routing_1.AppRoutePropertyBagModel {
19
+ constructor() {
20
+ super(ManifestIds_1.OmniaService.Id, "themingManager");
21
+ }
22
+ }
23
+ exports.AppThemingManager = AppThemingManager;
@@ -10,5 +10,5 @@ export interface FlowEditorActionRegistration {
10
10
  isActive?: (store: any) => boolean;
11
11
  isDisabled?: (store: any) => boolean;
12
12
  onClick?: (store: any) => void;
13
- component?: () => JSX.Element;
13
+ component?: (store: any) => JSX.Element;
14
14
  }
@@ -1,3 +1,4 @@
1
+ import { FlowEditorPlugin } from "@omnia/fx/ux";
1
2
  import { guid } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
2
3
  export interface FlowEditorPluginRegistration {
3
4
  id: guid;
@@ -5,5 +6,5 @@ export interface FlowEditorPluginRegistration {
5
6
  altText?: string;
6
7
  hidden?: boolean;
7
8
  mandatory?: boolean;
8
- plugin: (settings: any) => any;
9
+ plugin: (settings: any) => FlowEditorPlugin;
9
10
  }
@@ -75,6 +75,10 @@ export interface ThemeDefinitionV2 extends ThemeDefinitionReference {
75
75
  spacing: SpacingBlueprints;
76
76
  components: ComponentBlueprints;
77
77
  }
78
+ export interface ThemingSetting {
79
+ adminThemeId?: guid;
80
+ defaultThemeId?: guid;
81
+ }
78
82
  export interface ITemplateRegistration<TTemplateType = any> {
79
83
  id: guid;
80
84
  template: TTemplateType;
@@ -60,7 +60,7 @@ export interface VelcronComponentDefinition extends VelcronDefinition {
60
60
  icon?: any;
61
61
  }
62
62
  export type VelcronCustomComponentDefinition = VelcronComponentDefinition;
63
- export type BuiltInPropertyEditorType = "text" | "number" | "slider" | "switch" | "alignment" | "color" | "flow" | "icon" | "image" | "typography" | "spacing" | "color-schema-type" | "blueprint" | "background" | "grid" | "reference" | "select" | "property-resolver";
63
+ export type BuiltInPropertyEditorType = "text" | "number" | "slider" | "switch" | "alignment" | "color" | "flow" | "icon" | "image" | "typography" | "spacing" | "color-schema-type" | "blueprint" | "background" | "grid" | "reference" | "select" | "property-resolver" | "link-resolver";
64
64
  export type EditorLocation = "inline" | "pane" | "toolbar";
65
65
  export interface VelcronEditor<TSettings = any> {
66
66
  name?: string;
@@ -13,6 +13,7 @@ export interface BuiltInComponentRenderers {
13
13
  "velcron": unknown;
14
14
  "flex": unknown;
15
15
  "row": unknown;
16
+ "grid": unknown;
16
17
  "column": unknown;
17
18
  "card": unknown;
18
19
  "text": unknown;
@@ -175,6 +176,17 @@ export interface VelcronFlexDefinition extends VelcronDefinition, VelcronColorSt
175
176
  events?: VelcronOnPressEvent;
176
177
  border?: VelcronBorder;
177
178
  borderRadius?: VelcronDimensions;
179
+ width?: number | string;
180
+ minWidth?: number | string;
181
+ height?: number | string;
182
+ minHeight?: number | string;
183
+ }
184
+ export interface VelcronGridDefinition extends VelcronDefinition {
185
+ type: "grid";
186
+ minColumnWidth?: number | string;
187
+ columns?: number | Array<string>;
188
+ gapX?: number | string;
189
+ gapY?: number | string;
178
190
  }
179
191
  export interface VelcronFlexRowDefinition extends VelcronDefinition, VelcronColorStyling, VelcronDefinitionHasEffects, VelcronDefinitionHasOverflow {
180
192
  type: "row";
@@ -311,6 +323,10 @@ export interface VelcronLottieDefinition extends VelcronDefinition {
311
323
  direction?: VelcronBindableProp<"normal" | "reverse">;
312
324
  hover?: VelcronBindableProp<boolean>;
313
325
  }
326
+ export interface VelcronSlidePanelSlidesOptions {
327
+ foreach: string;
328
+ definition: VelcronDefinition;
329
+ }
314
330
  export interface VelcronSlidePanelDefinition extends VelcronDefinition {
315
331
  type: "slide-panel";
316
332
  slidesPerView?: VelcronBindableProp<number>;
@@ -322,6 +338,7 @@ export interface VelcronSlidePanelDefinition extends VelcronDefinition {
322
338
  loop?: VelcronBindableProp<boolean>;
323
339
  style?: VelcronCardStyling;
324
340
  events?: VelcronOnPressEvent;
341
+ slides?: VelcronSlidePanelSlidesOptions;
325
342
  }
326
343
  export interface VelcronEditorRendererDefinition extends VelcronDefinition {
327
344
  type: "editor";
@@ -36,6 +36,11 @@ export interface VelcronNumberEditorSettings {
36
36
  max: number;
37
37
  step: number;
38
38
  }
39
+ export interface VelcronReferencePropertyEditorSettings {
40
+ multiple: boolean;
41
+ min?: number;
42
+ max?: number;
43
+ }
39
44
  export interface VelcronPropertyMapping {
40
45
  state: string;
41
46
  title: string;
@@ -45,6 +50,8 @@ export interface VelcronPropertyMapping {
45
50
  export interface VelcronPropertyResolverEditorSettings {
46
51
  properties: Array<VelcronPropertyMapping>;
47
52
  }
53
+ export interface VelcronLinkResolverEditorSettings {
54
+ }
48
55
  export interface VelcronBlueprintEditorSettings {
49
56
  type: "container" | "icon" | "button";
50
57
  }
@@ -90,7 +97,7 @@ export interface VelcronImagePropertyEditor extends VelcronEditor<any> {
90
97
  export interface VelcronSpacingPropertyEditor extends VelcronEditor<VelcronSpacingEditorSettings> {
91
98
  type: "spacing";
92
99
  }
93
- export interface VelcronReferencePropertyEditor extends VelcronEditor<any> {
100
+ export interface VelcronReferencePropertyEditor extends VelcronEditor<VelcronReferencePropertyEditorSettings> {
94
101
  type: "reference";
95
102
  }
96
103
  export interface VelcronBlueprintEditor extends VelcronEditor<VelcronBlueprintEditorSettings> {
@@ -108,3 +115,6 @@ export interface VelcronSelectEditor extends VelcronEditor<VelcronSelectEditorSe
108
115
  export interface VelcronPropertyResolverEditor extends VelcronEditor<VelcronPropertyResolverEditorSettings> {
109
116
  type: "property-resolver";
110
117
  }
118
+ export interface VelcronLinkResolverEditor extends VelcronEditor<VelcronLinkResolverEditorSettings> {
119
+ type: "link-resolver";
120
+ }
@@ -0,0 +1,11 @@
1
+ import { guid, Id } from "@omnia/fx-models/internal-do-not-import-from-here/shared";
2
+ import { IconPickerModel } from "../Icon";
3
+ export type LinkProviderId = Id<guid, "LinkProviderId">;
4
+ export interface LinkItem {
5
+ providerId: LinkProviderId;
6
+ linkType?: string;
7
+ title: string;
8
+ url: string;
9
+ icon: IconPickerModel;
10
+ openInNewWindow: boolean;
11
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +1,2 @@
1
+ export * from "./LinkItem";
1
2
  export * from "./LinkStatus";
@@ -1,4 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./LinkItem"), exports);
4
5
  tslib_1.__exportStar(require("./LinkStatus"), exports);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@omnia/fx-models",
3
3
  "license": "MIT",
4
- "version": "8.0.288-dev",
4
+ "version": "8.0.290-dev",
5
5
  "description": "Provide Omnia Fx Models Stuffs.",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -1,6 +1,7 @@
1
1
  import { PropertyValue } from "../PropertyValue";
2
+ import { LinkItem } from "../../links";
2
3
  export declare class LinkPropertyValue extends PropertyValue {
3
- link: string;
4
- constructor(link: string);
4
+ link: LinkItem;
5
+ constructor(link: LinkItem);
5
6
  isEmpty(): boolean;
6
7
  }
@@ -1,5 +1,6 @@
1
- import { ApiPath } from "../Extends";
1
+ import { IExtendApiManifestWithConfiguration } from "../Extends";
2
2
  import { ILinkItemHandler } from "../../ux/models/linkpicker/LinkItemHandler";
3
+ import { LinkProviderId } from "../links";
3
4
  export interface ILinkItemHandlerRegistrationApi {
4
5
  registerLinkRenderer: (linkItemHandler: ILinkItemHandler) => boolean;
5
6
  }
@@ -11,7 +12,7 @@ declare module "./UxApi" {
11
12
  }
12
13
  interface IOmniaUxExtendApiManifest {
13
14
  linkItemHandler: {
14
- registration: ApiPath;
15
+ registration: IExtendApiManifestWithConfiguration<LinkProviderId>;
15
16
  };
16
17
  }
17
18
  }
File without changes
File without changes