@omnia/fx-models 7.9.15-preview → 7.9.15
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/ActionHandler.d.ts +1 -1
- package/Constants.d.ts +1 -0
- package/Constants.js +2 -1
- package/Enums.d.ts +5 -0
- package/Enums.js +7 -1
- package/Exposes.d.ts +1 -0
- package/Exposes.js +1 -0
- package/Layout.d.ts +3 -0
- package/ManifestIds.d.ts +1 -1
- package/ManifestIds.js +3 -3
- package/analytics/BusinessProfileAnalyticsSettings.d.ts +2 -0
- package/analytics/BusinessProfileAnalyticsSettings.js +2 -0
- package/blockgallery/BlockGallery.d.ts +44 -0
- package/blockgallery/BlockGallery.js +20 -0
- package/blockgallery/BlockGalleryDialogLayoutProvider.d.ts +9 -0
- package/blockgallery/BlockGalleryDialogLayoutProvider.js +6 -0
- package/blockgallery/BlockTemplates.d.ts +15 -0
- package/blockgallery/BlockTemplates.js +2 -0
- package/blockgallery/Header.d.ts +5 -0
- package/blockgallery/Header.js +2 -0
- package/blockgallery/index.d.ts +4 -0
- package/blockgallery/index.js +7 -0
- package/identities/Identity.js +3 -0
- package/identities/UserIdentity.js +1 -1
- package/media-picker/Providers/MyComputerProvider.js +12 -1
- package/media-picker/Providers/index.d.ts +0 -1
- package/media-picker/Providers/index.js +0 -1
- package/package.json +2 -2
- package/properties/definitions/IdentityPropertyDefinition.d.ts +5 -0
- package/richtext-editor-extensions/HeadingExtension.d.ts +5 -0
- package/ux/BlockGalleryApi.d.ts +19 -0
- package/ux/BlockGalleryApi.js +2 -0
- package/ux/index.d.ts +1 -0
- package/ux/index.js +1 -0
package/ActionHandler.d.ts
CHANGED
|
@@ -73,6 +73,6 @@ export interface IActionHandlerInstanceProperties<TSettings extends IActionHandl
|
|
|
73
73
|
}
|
|
74
74
|
export interface IActionHandlerInstance extends IActionHandlerInstanceProperties {
|
|
75
75
|
initialized(): void | Promise<void>;
|
|
76
|
-
triggered(renderingCallback: (elementName: string, themeTargetId?: string, domProps?: Object) => void): any;
|
|
76
|
+
triggered(renderingCallback: (elementName: string, themeTargetId?: string, domProps?: Object) => void, setFocusedElementCallback?: () => Promise<HTMLElement>): any;
|
|
77
77
|
dispose(): void;
|
|
78
78
|
}
|
package/Constants.d.ts
CHANGED
package/Constants.js
CHANGED
|
@@ -197,7 +197,8 @@ exports.Constants = {
|
|
|
197
197
|
legacyAppPermissions: new models_1.Guid("36c6fe6a-d79e-4f87-9349-cff9d3e1ab71"),
|
|
198
198
|
appOnlyReadAccessToSharePointTermstore: new models_1.Guid("8095f802-38f0-426c-8d81-22cb22a2a019"),
|
|
199
199
|
provisionOmniaSearchUserData: new models_1.Guid("8fc1325d-4196-406e-8dca-ebb78824896f"),
|
|
200
|
-
aiEngine: new models_1.Guid("f976ad6f-987f-44e6-973a-097d81f73fc7")
|
|
200
|
+
aiEngine: new models_1.Guid("f976ad6f-987f-44e6-973a-097d81f73fc7"),
|
|
201
|
+
extraIDAdditionalUserProperties: new models_1.Guid("8a878ffd-f4d5-4048-9ab1-107bf7109dd9")
|
|
201
202
|
},
|
|
202
203
|
app: {
|
|
203
204
|
tableName: "AppInstances",
|
package/Enums.d.ts
CHANGED
|
@@ -525,6 +525,7 @@ export declare enum ThemeType {
|
|
|
525
525
|
export declare enum StaticEndpoint {
|
|
526
526
|
Logout = "/logout",
|
|
527
527
|
AuthSetup = "/authsetup",
|
|
528
|
+
AuthSetupConfirm = "/authsetup/confirm",
|
|
528
529
|
Login = "/login",
|
|
529
530
|
RequestAccount = "/requestaccount",
|
|
530
531
|
MagicLinkLogin = "/api/magiclink/complete",
|
|
@@ -593,6 +594,10 @@ export declare enum TimePeriodTypes {
|
|
|
593
594
|
Months = 1,
|
|
594
595
|
Days = 2
|
|
595
596
|
}
|
|
597
|
+
export declare enum DateOperator {
|
|
598
|
+
Add = 1,
|
|
599
|
+
Subtract = 2
|
|
600
|
+
}
|
|
596
601
|
export declare enum RichTextModes {
|
|
597
602
|
Limited = 0,
|
|
598
603
|
Full = 1
|
package/Enums.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.TimePeriodTypes = exports.TargetUser = exports.RedirectRuleType = exports.MultilingualScopes = exports.OmniaRoleTypes = exports.TargetResolverTypes = exports.PermissionRoles = exports.FirstDayOfWeeks = exports.TimeFormats = exports.CompareBusinessProfilePathType = exports.StatusMessageOverlayType = exports.HttpStatusCode = exports.QueueMessageStatus = exports.StaticEndpoint = exports.ThemeType = exports.FeatureInstanceStatus = exports.RoleDefinitions = exports.Parameters = exports.ParamTypes = exports.PropertyIndexedType = exports.UserPickingType = exports.BoolFilter = exports.PrincipalTypes = exports.AppInstanceScopedQueryTypes = exports.AppInstanceStatus = exports.VideoRatio = exports.AdminNavigationBuiltInCategory = exports.AdminVisibility = exports.AuthenticationValidationStatuses = exports.IconSources = exports.IconTypes = exports.LocaleNames = exports.LanguageTags = exports.BundleTargetTypes = exports.ServerManifestTypes = exports.ClientManifestTypes = exports.RuleLogicalOperator = exports.ResourceEvaluators = exports.ConsoleStateStorageMessageTypes = exports.ConsoleMessageTypes = exports.LogLevels = exports.ManifestLoadStatus = exports.LogSources = exports.AppTemplatePermissionLevel = exports.SecurityAccessType = exports.SecurityIdentities = exports.SecurityRoleScopes = exports.SecurityProviderTypes = exports.BuiltInAppInstanceInternalNames = exports.BuiltInEnterprisePropertyInternalNames = void 0;
|
|
4
|
-
exports.StatusFilter = exports.PersistentDiskTypes = exports.CookieKeys = exports.LocalServingMessageType = exports.DisplayBreakpointCodes = exports.OmniaMimeType = exports.IdentityUserIdTypeMatch = exports.OmniaClientRuntimes = exports.OmniaBackendRuntimes = exports.PropertyEditModeElementNameType = exports.DirectionRules = exports.MediaPickerEnums = exports.PropertyArchiveType = exports.ImageSources = exports.IconSizes = exports.BlockRenderingModes = exports.LayoutCanvasModes = exports.ChromeTypes = exports.LayoutItemActions = exports.LayoutEditorModes = exports.TabbedDisplayModes = exports.TabbedIconPositions = exports.Positions = exports.BorderPositions = exports.IconPositions = exports.TextAlignment = exports.LayoutItemTypes = exports.RadialGradientShapes = exports.LayoutDrawerTabs = exports.HorizontalAlignments = exports.BladeSizes = exports.ImageResolution = exports.ServiceLocatorUrlType = exports.AppInstanceAction = exports.VDataGridHeaderType = exports.VDataGridHeaderAlign = exports.ButtonSizes = exports.ButtonModes = exports.ButtonIconPosition = exports.ButtonTooltipPosition = exports.RichTextModes = void 0;
|
|
4
|
+
exports.StatusFilter = exports.PersistentDiskTypes = exports.CookieKeys = exports.LocalServingMessageType = exports.DisplayBreakpointCodes = exports.OmniaMimeType = exports.IdentityUserIdTypeMatch = exports.OmniaClientRuntimes = exports.OmniaBackendRuntimes = exports.PropertyEditModeElementNameType = exports.DirectionRules = exports.MediaPickerEnums = exports.PropertyArchiveType = exports.ImageSources = exports.IconSizes = exports.BlockRenderingModes = exports.LayoutCanvasModes = exports.ChromeTypes = exports.LayoutItemActions = exports.LayoutEditorModes = exports.TabbedDisplayModes = exports.TabbedIconPositions = exports.Positions = exports.BorderPositions = exports.IconPositions = exports.TextAlignment = exports.LayoutItemTypes = exports.RadialGradientShapes = exports.LayoutDrawerTabs = exports.HorizontalAlignments = exports.BladeSizes = exports.ImageResolution = exports.ServiceLocatorUrlType = exports.AppInstanceAction = exports.VDataGridHeaderType = exports.VDataGridHeaderAlign = exports.ButtonSizes = exports.ButtonModes = exports.ButtonIconPosition = exports.ButtonTooltipPosition = exports.RichTextModes = exports.DateOperator = void 0;
|
|
5
5
|
var BuiltInEnterprisePropertyInternalNames;
|
|
6
6
|
(function (BuiltInEnterprisePropertyInternalNames) {
|
|
7
7
|
BuiltInEnterprisePropertyInternalNames["Title"] = "title";
|
|
@@ -435,6 +435,7 @@ var StaticEndpoint;
|
|
|
435
435
|
(function (StaticEndpoint) {
|
|
436
436
|
StaticEndpoint["Logout"] = "/logout";
|
|
437
437
|
StaticEndpoint["AuthSetup"] = "/authsetup";
|
|
438
|
+
StaticEndpoint["AuthSetupConfirm"] = "/authsetup/confirm";
|
|
438
439
|
StaticEndpoint["Login"] = "/login";
|
|
439
440
|
StaticEndpoint["RequestAccount"] = "/requestaccount";
|
|
440
441
|
StaticEndpoint["MagicLinkLogin"] = "/api/magiclink/complete";
|
|
@@ -517,6 +518,11 @@ var TimePeriodTypes;
|
|
|
517
518
|
TimePeriodTypes[TimePeriodTypes["Months"] = 1] = "Months";
|
|
518
519
|
TimePeriodTypes[TimePeriodTypes["Days"] = 2] = "Days";
|
|
519
520
|
})(TimePeriodTypes = exports.TimePeriodTypes || (exports.TimePeriodTypes = {}));
|
|
521
|
+
var DateOperator;
|
|
522
|
+
(function (DateOperator) {
|
|
523
|
+
DateOperator[DateOperator["Add"] = 1] = "Add";
|
|
524
|
+
DateOperator[DateOperator["Subtract"] = 2] = "Subtract";
|
|
525
|
+
})(DateOperator = exports.DateOperator || (exports.DateOperator = {}));
|
|
520
526
|
var RichTextModes;
|
|
521
527
|
(function (RichTextModes) {
|
|
522
528
|
RichTextModes[RichTextModes["Limited"] = 0] = "Limited";
|
package/Exposes.d.ts
CHANGED
|
@@ -134,6 +134,7 @@ export * from "./semanticsearch";
|
|
|
134
134
|
export * from "./aiengine";
|
|
135
135
|
export * from "./filterbuilder";
|
|
136
136
|
export * from "./unsplash";
|
|
137
|
+
export * from "./blockgallery";
|
|
137
138
|
export * from "./FilePicker";
|
|
138
139
|
export * from "./FileIdentifier";
|
|
139
140
|
export * from "./UserAgent";
|
package/Exposes.js
CHANGED
|
@@ -146,6 +146,7 @@ tslib_1.__exportStar(require("./semanticsearch"), exports);
|
|
|
146
146
|
tslib_1.__exportStar(require("./aiengine"), exports);
|
|
147
147
|
tslib_1.__exportStar(require("./filterbuilder"), exports);
|
|
148
148
|
tslib_1.__exportStar(require("./unsplash"), exports);
|
|
149
|
+
tslib_1.__exportStar(require("./blockgallery"), exports);
|
|
149
150
|
//************************************************************************************ */
|
|
150
151
|
// End of folder exports
|
|
151
152
|
//************************************************************************************ */
|
package/Layout.d.ts
CHANGED
|
@@ -137,6 +137,7 @@ export interface SectionSettings extends LayoutItemSettings {
|
|
|
137
137
|
themeDefinition: ThemeDefinition;
|
|
138
138
|
hidden?: boolean;
|
|
139
139
|
disableLazyLoad?: boolean;
|
|
140
|
+
headerLevel?: GuidValue;
|
|
140
141
|
}
|
|
141
142
|
export interface ColumnedSectionSettings extends SectionSettings {
|
|
142
143
|
type: SectionTypes.Column;
|
|
@@ -239,6 +240,7 @@ export interface HeaderItemSettings {
|
|
|
239
240
|
titleSettings: BlockTitleSettings;
|
|
240
241
|
anchorName?: string;
|
|
241
242
|
scrollIntoViewDisabled: boolean;
|
|
243
|
+
headerLevel?: GuidValue;
|
|
242
244
|
}
|
|
243
245
|
export interface SpacingItemSettings {
|
|
244
246
|
paddingRight: number;
|
|
@@ -357,6 +359,7 @@ export interface BlockRegistration extends LayoutItemRegistration {
|
|
|
357
359
|
export interface ILayoutDependencyProvider {
|
|
358
360
|
}
|
|
359
361
|
export interface CustomRegistration extends LayoutItemRegistration {
|
|
362
|
+
id?: GuidValue;
|
|
360
363
|
sectionHandler: (layout: LoadedLayout) => Array<Section>;
|
|
361
364
|
iconComponent?: string;
|
|
362
365
|
}
|
package/ManifestIds.d.ts
CHANGED
|
@@ -154,6 +154,7 @@ export declare class OmniaResourceManifests {
|
|
|
154
154
|
}
|
|
155
155
|
export declare class OmniaWebComponentManifests {
|
|
156
156
|
static get AuthSetup(): Guid;
|
|
157
|
+
static get AuthSetupConfirm(): Guid;
|
|
157
158
|
static get AuthenticationBlock(): Guid;
|
|
158
159
|
static get AuthenticationCore(): Guid;
|
|
159
160
|
static get LoginOmniaView(): Guid;
|
|
@@ -197,7 +198,6 @@ export declare class OmniaWebComponentManifests {
|
|
|
197
198
|
static get FxUxMenuBlade(): Guid;
|
|
198
199
|
static get FxUxWizard(): Guid;
|
|
199
200
|
static get FxUxPeoplePicker(): Guid;
|
|
200
|
-
static get FxUxSkeletonLoader(): Guid;
|
|
201
201
|
static get FxUxIcon(): Guid;
|
|
202
202
|
static get FxUxButton(): Guid;
|
|
203
203
|
static get FxUxDatatable(): Guid;
|
package/ManifestIds.js
CHANGED
|
@@ -485,6 +485,9 @@ class OmniaWebComponentManifests {
|
|
|
485
485
|
static get AuthSetup() {
|
|
486
486
|
return new models_1.Guid("e4889269-c6ad-440d-a65f-3acdf5bb6152");
|
|
487
487
|
}
|
|
488
|
+
static get AuthSetupConfirm() {
|
|
489
|
+
return new models_1.Guid("49d5de1e-da62-481a-bf0a-5a317b99f3e9");
|
|
490
|
+
}
|
|
488
491
|
static get AuthenticationBlock() {
|
|
489
492
|
return new models_1.Guid("b273791e-a562-4033-97cd-c0a1c0f907cb");
|
|
490
493
|
}
|
|
@@ -604,9 +607,6 @@ class OmniaWebComponentManifests {
|
|
|
604
607
|
static get FxUxPeoplePicker() {
|
|
605
608
|
return new models_1.Guid("4893dcff-9223-448c-9259-367a1b4ad652");
|
|
606
609
|
}
|
|
607
|
-
static get FxUxSkeletonLoader() {
|
|
608
|
-
return new models_1.Guid("4ecc3b27-de00-4525-8b22-cba846f79ad9");
|
|
609
|
-
}
|
|
610
610
|
static get FxUxIcon() {
|
|
611
611
|
return new models_1.Guid("EC34A224-751B-4124-B150-3174AC3868F1");
|
|
612
612
|
}
|
|
@@ -8,4 +8,6 @@ export declare class BusinessProfileAnalyticsSettings extends BusinessProfilePro
|
|
|
8
8
|
shared: boolean;
|
|
9
9
|
connectedBusinessProfileId?: GuidValue;
|
|
10
10
|
constructor();
|
|
11
|
+
static checkIfAnalyticsSwitchToDisabled: (currenttSetting: BusinessProfileAnalyticsSettings, targetSetting: BusinessProfileAnalyticsSettings) => boolean;
|
|
12
|
+
static checkIfAnalyticsSwitchToEnabled: (currenttSetting: BusinessProfileAnalyticsSettings, targetSetting: BusinessProfileAnalyticsSettings) => boolean;
|
|
11
13
|
}
|
|
@@ -13,3 +13,5 @@ class BusinessProfileAnalyticsSettings extends BusinessProfile_1.BusinessProfile
|
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
15
|
exports.BusinessProfileAnalyticsSettings = BusinessProfileAnalyticsSettings;
|
|
16
|
+
BusinessProfileAnalyticsSettings.checkIfAnalyticsSwitchToDisabled = (currenttSetting, targetSetting) => targetSetting?.idSite !== currenttSetting?.idSite && !targetSetting?.enabled;
|
|
17
|
+
BusinessProfileAnalyticsSettings.checkIfAnalyticsSwitchToEnabled = (currenttSetting, targetSetting) => targetSetting?.idSite !== currenttSetting?.idSite && targetSetting?.enabled;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { BlockRegistration, BlockTemplate, BlockTemplateView, CustomRegistration, IconPickerModel } from "../Exposes";
|
|
2
|
+
import { BlockGalleryHeader } from "./Header";
|
|
3
|
+
export interface BlockGalleryDialogLayoutSetting {
|
|
4
|
+
headers: Array<BlockGalleryHeader>;
|
|
5
|
+
orderedItems: Array<BlockGalleryItem>;
|
|
6
|
+
}
|
|
7
|
+
export interface BlockGalleryGeneralSetting {
|
|
8
|
+
enabled?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare const BlockGalleryAuthenticationLayoutSettingsKey = "$omnia_block_gallery_authentication_layout_settings$";
|
|
11
|
+
export declare const BlockGalleryDefaultLayoutSettingsKey = "$omnia_block_gallery_default_layout_settings$";
|
|
12
|
+
export declare const BlockGallerySpfxLayoutSettingsKey = "$omnia_block_gallery_spfx_layout_settings$";
|
|
13
|
+
export declare const BlockGalleryGeneralSettingsKey = "$omnia_block_gallery_general_settings$";
|
|
14
|
+
export declare const BlockDialogLayoutDefaultType = "default_eb457948-b71b-4deb-a6c3-b6f436349ba7";
|
|
15
|
+
export declare const BlockDialogLayoutSpfxType = "spfx_51a61d06-d0b7-4c89-ac3d-914c3a398714";
|
|
16
|
+
export declare const BlockDialogLayoutAuthenticationType = "authentication_4eda1b4d-60ab-45ac-8dec-ba812d9e688b";
|
|
17
|
+
export interface BlockGalleryItem {
|
|
18
|
+
id: string;
|
|
19
|
+
type: BlockGalleryItemType;
|
|
20
|
+
}
|
|
21
|
+
export interface BlockGalleryItemView extends BlockGalleryItem {
|
|
22
|
+
title: string;
|
|
23
|
+
icon?: string;
|
|
24
|
+
iconPicker?: IconPickerModel;
|
|
25
|
+
description?: string;
|
|
26
|
+
item: CustomRegistration | BlockRegistration | BlockGalleryHeader | BlockTemplate | BlockTemplateView;
|
|
27
|
+
spfxCompatibility?: boolean;
|
|
28
|
+
}
|
|
29
|
+
export declare enum BlockGalleryItemType {
|
|
30
|
+
CustomRegistration = 1,
|
|
31
|
+
BlockRegistration = 2,
|
|
32
|
+
HeaderRegistration = 3,
|
|
33
|
+
BlockTemplate = 4
|
|
34
|
+
}
|
|
35
|
+
export interface BlockDialogLayoutInfo {
|
|
36
|
+
title: string;
|
|
37
|
+
icon: string;
|
|
38
|
+
layoutType: string;
|
|
39
|
+
}
|
|
40
|
+
export interface BlockDialogLayout extends BlockDialogLayoutInfo {
|
|
41
|
+
settingsKey?: string;
|
|
42
|
+
layoutProvider?: string;
|
|
43
|
+
getBlockGalleryDialogLayoutSetting?: () => Promise<BlockGalleryDialogLayoutSetting>;
|
|
44
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BlockGalleryItemType = exports.BlockDialogLayoutAuthenticationType = exports.BlockDialogLayoutSpfxType = exports.BlockDialogLayoutDefaultType = exports.BlockGalleryGeneralSettingsKey = exports.BlockGallerySpfxLayoutSettingsKey = exports.BlockGalleryDefaultLayoutSettingsKey = exports.BlockGalleryAuthenticationLayoutSettingsKey = void 0;
|
|
4
|
+
exports.BlockGalleryAuthenticationLayoutSettingsKey = "$omnia_block_gallery_authentication_layout_settings$";
|
|
5
|
+
exports.BlockGalleryDefaultLayoutSettingsKey = "$omnia_block_gallery_default_layout_settings$";
|
|
6
|
+
exports.BlockGallerySpfxLayoutSettingsKey = "$omnia_block_gallery_spfx_layout_settings$";
|
|
7
|
+
exports.BlockGalleryGeneralSettingsKey = "$omnia_block_gallery_general_settings$";
|
|
8
|
+
exports.BlockDialogLayoutDefaultType = "default_eb457948-b71b-4deb-a6c3-b6f436349ba7";
|
|
9
|
+
exports.BlockDialogLayoutSpfxType = "spfx_51a61d06-d0b7-4c89-ac3d-914c3a398714";
|
|
10
|
+
exports.BlockDialogLayoutAuthenticationType = "authentication_4eda1b4d-60ab-45ac-8dec-ba812d9e688b";
|
|
11
|
+
var BlockGalleryItemType;
|
|
12
|
+
(function (BlockGalleryItemType) {
|
|
13
|
+
//layout block
|
|
14
|
+
BlockGalleryItemType[BlockGalleryItemType["CustomRegistration"] = 1] = "CustomRegistration";
|
|
15
|
+
//normal webcomponent block
|
|
16
|
+
BlockGalleryItemType[BlockGalleryItemType["BlockRegistration"] = 2] = "BlockRegistration";
|
|
17
|
+
//header acts as old category
|
|
18
|
+
BlockGalleryItemType[BlockGalleryItemType["HeaderRegistration"] = 3] = "HeaderRegistration";
|
|
19
|
+
BlockGalleryItemType[BlockGalleryItemType["BlockTemplate"] = 4] = "BlockTemplate";
|
|
20
|
+
})(BlockGalleryItemType = exports.BlockGalleryItemType || (exports.BlockGalleryItemType = {}));
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { BlockDialogLayout, BlockGalleryDialogLayoutSetting } from ".";
|
|
2
|
+
export declare abstract class BlockGalleryDialogLayoutProvider implements BlockDialogLayout {
|
|
3
|
+
abstract readonly title: string;
|
|
4
|
+
abstract readonly icon: string;
|
|
5
|
+
abstract readonly layoutType: string;
|
|
6
|
+
abstract readonly layoutProvider?: string;
|
|
7
|
+
abstract readonly settingsKey?: string;
|
|
8
|
+
abstract readonly getBlockGalleryDialogLayoutSetting?: () => Promise<BlockGalleryDialogLayoutSetting>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { LayoutClipboard } from "../Clipboard";
|
|
2
|
+
import { IconPickerModel } from "../Icon";
|
|
3
|
+
import { MultilingualString } from "../MultilingualString";
|
|
4
|
+
export interface BlockTemplate {
|
|
5
|
+
id?: number;
|
|
6
|
+
title?: MultilingualString;
|
|
7
|
+
icon?: IconPickerModel;
|
|
8
|
+
description?: MultilingualString;
|
|
9
|
+
definition: LayoutClipboard;
|
|
10
|
+
}
|
|
11
|
+
export interface BlockTemplateView {
|
|
12
|
+
id?: number;
|
|
13
|
+
title?: MultilingualString;
|
|
14
|
+
icon?: IconPickerModel;
|
|
15
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./BlockTemplates"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./BlockGallery"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./Header"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./BlockGalleryDialogLayoutProvider"), exports);
|
package/identities/Identity.js
CHANGED
|
@@ -66,7 +66,7 @@ class ResolvedUserIdentity extends UserIdentity {
|
|
|
66
66
|
return resolvedUser.id == Enums_1.SecurityIdentities.AnonymousIdentity;
|
|
67
67
|
}
|
|
68
68
|
static getDisplayName(user, deletedUserText) {
|
|
69
|
-
return user.isRemoved && !user.displayName
|
|
69
|
+
return !user || (user.isRemoved && !user.displayName)
|
|
70
70
|
? deletedUserText
|
|
71
71
|
: user.displayName?.value.text + (user.isRemoved ? " *" : "");
|
|
72
72
|
}
|
|
@@ -8,13 +8,24 @@ const Icon_1 = require("../../Icon");
|
|
|
8
8
|
class MediaPickerMyComputerProvider {
|
|
9
9
|
constructor() {
|
|
10
10
|
this.hasEditorForMedia = (media) => {
|
|
11
|
+
if (!media || !media["providerId"]) {
|
|
12
|
+
return false;
|
|
13
|
+
}
|
|
14
|
+
const myComputerVideoMedia = media;
|
|
15
|
+
if (media
|
|
16
|
+
&& myComputerVideoMedia
|
|
17
|
+
&& myComputerVideoMedia.providerId.toString() === this.id.toString()
|
|
18
|
+
&& myComputerVideoMedia["omniaMediaType"] === Enums_1.MediaPickerEnums.OmniaMediaTypes.Video
|
|
19
|
+
&& !!myComputerVideoMedia.videoUrl
|
|
20
|
+
&& myComputerVideoMedia.videoUrl !== "") {
|
|
21
|
+
return true;
|
|
22
|
+
}
|
|
11
23
|
return false;
|
|
12
24
|
};
|
|
13
25
|
this.id = Constants_1.Constants.ux.components.mediaPicker.providerIds.myComputer;
|
|
14
26
|
this.category = "image";
|
|
15
27
|
this.name = "Omnia.Ux.MyComputerProvider.Title";
|
|
16
28
|
this.icon = new Icon_1.FontAwesomeIcon("far fa-desktop");
|
|
17
|
-
//this.providerElementName = "omfx-media-picker-mycomputer-provider";
|
|
18
29
|
this.providerComponentId = ManifestIds_1.OmniaWebComponentManifests.FxUxMyComputerProvider;
|
|
19
30
|
this.selectableMediaTypes = [Enums_1.MediaPickerEnums.OmniaMediaTypes.Image];
|
|
20
31
|
this.supportGalleryFeature = true;
|
|
@@ -7,6 +7,5 @@ export * from "./PexelProvider";
|
|
|
7
7
|
export * from "./YoutubeProvider";
|
|
8
8
|
export * from "./DallEProvider";
|
|
9
9
|
export * from "./MediaflowProvider";
|
|
10
|
-
export * from "./UnsplashProvider";
|
|
11
10
|
export * from "./IMediaPostProcess";
|
|
12
11
|
export * from "./MediaPickerFileHandlerProvider";
|
|
@@ -10,6 +10,5 @@ tslib_1.__exportStar(require("./PexelProvider"), exports);
|
|
|
10
10
|
tslib_1.__exportStar(require("./YoutubeProvider"), exports);
|
|
11
11
|
tslib_1.__exportStar(require("./DallEProvider"), exports);
|
|
12
12
|
tslib_1.__exportStar(require("./MediaflowProvider"), exports);
|
|
13
|
-
tslib_1.__exportStar(require("./UnsplashProvider"), exports);
|
|
14
13
|
tslib_1.__exportStar(require("./IMediaPostProcess"), exports);
|
|
15
14
|
tslib_1.__exportStar(require("./MediaPickerFileHandlerProvider"), exports);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@omnia/fx-models",
|
|
3
3
|
"license": "MIT",
|
|
4
|
-
"version": "7.9.15
|
|
4
|
+
"version": "7.9.15",
|
|
5
5
|
"description": "Provide Omnia Fx Models Stuffs.",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
@@ -24,4 +24,4 @@
|
|
|
24
24
|
"url": "https://github.com/omniaintranet/OmniaFx/issues"
|
|
25
25
|
},
|
|
26
26
|
"homepage": "https://github.com/omniaintranet/OmniaFx#readme"
|
|
27
|
-
}
|
|
27
|
+
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { PrincipalTypes } from "@omnia/fx-models";
|
|
1
2
|
import { Guid } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
|
|
2
3
|
import { LockStatusExcludeChildren, PropertyLockStatusType } from "../../../ux";
|
|
3
4
|
import { PropertyDefinition, PropertyDisplaySettingsBase } from "../PropertyDefinition";
|
|
@@ -7,11 +8,15 @@ export declare class IdentityPropertyDisplaySettings extends PropertyDisplaySett
|
|
|
7
8
|
hidePresence?: boolean;
|
|
8
9
|
showImage?: boolean;
|
|
9
10
|
showName?: boolean;
|
|
11
|
+
deletedUsersOnly?: boolean;
|
|
10
12
|
}
|
|
11
13
|
export type IdentityPropertyEditorSettings = {
|
|
12
14
|
locks?: PropertyLockStatusType<Omit<IdentityPropertyEditorSettings, "locks">>;
|
|
13
15
|
required?: boolean;
|
|
14
16
|
multiple?: boolean;
|
|
17
|
+
hideDynamicGroupSelection?: boolean;
|
|
18
|
+
type?: PrincipalTypes;
|
|
19
|
+
deletedUsersOnly?: boolean;
|
|
15
20
|
};
|
|
16
21
|
export declare const identityPropertyDefinitionId: Guid;
|
|
17
22
|
export declare class IdentityPropertyDefinition extends PropertyDefinition<IdentityPropertyValue, IdentityPropertyDisplaySettings, IdentityPropertyEditorSettings> {
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { BlockGalleryDialogLayoutProvider } from "@omnia/fx-models";
|
|
2
|
+
import { ApiPath } from "../Extends";
|
|
3
|
+
export interface IBlockGalleryDialogLayoutProviderRegistrationApi {
|
|
4
|
+
registerProvider: (provider: BlockGalleryDialogLayoutProvider) => void;
|
|
5
|
+
getProviders: () => BlockGalleryDialogLayoutProvider[];
|
|
6
|
+
}
|
|
7
|
+
export interface IBlockGalleryDialogLayoutApi {
|
|
8
|
+
registration: Promise<IBlockGalleryDialogLayoutProviderRegistrationApi>;
|
|
9
|
+
}
|
|
10
|
+
declare module "./UxApi" {
|
|
11
|
+
interface IOmniaUxApi {
|
|
12
|
+
blockGalleryDialogLayout: IBlockGalleryDialogLayoutApi;
|
|
13
|
+
}
|
|
14
|
+
interface IOmniaUxExtendApiManifest {
|
|
15
|
+
blockGalleryDialogLayout: {
|
|
16
|
+
registration: ApiPath;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
}
|
package/ux/index.d.ts
CHANGED
package/ux/index.js
CHANGED
|
@@ -21,3 +21,4 @@ tslib_1.__exportStar(require("./SidePanelApi"), exports);
|
|
|
21
21
|
tslib_1.__exportStar(require("./EnterprisePropertyToPropertySettingMappingApi"), exports);
|
|
22
22
|
tslib_1.__exportStar(require("./MediaGalleryApi"), exports);
|
|
23
23
|
tslib_1.__exportStar(require("./MediaPickerFileHandlerApi"), exports);
|
|
24
|
+
tslib_1.__exportStar(require("./BlockGalleryApi"), exports);
|