@omnia/fx-models 7.7.21-preview → 7.7.21
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/AppManagementSharedStyles.d.ts +1 -0
- package/AzureAdEnvironment.d.ts +9 -0
- package/AzureAdEnvironment.js +2 -0
- package/Constants.d.ts +1 -0
- package/Constants.js +1 -0
- package/Enums.d.ts +8 -2
- package/Enums.js +10 -3
- package/Exposes.d.ts +1 -0
- package/Exposes.js +1 -0
- package/FilterEngineStyles.d.ts +0 -1
- package/Layout.d.ts +1 -0
- package/ManifestIds.d.ts +2 -3
- package/ManifestIds.js +7 -7
- package/README.md +2 -2
- package/Tenant.d.ts +6 -1
- package/Tenant.js +4 -0
- package/identities/IdentityCreationRequest.d.ts +1 -0
- package/internal-do-not-import-from-here/shared/models/SharedConstants.d.ts +1 -0
- package/internal-do-not-import-from-here/shared/models/SharedConstants.js +1 -0
- package/package.json +7 -9
- package/properties/definitions/PhoneNumberPropertyDefinition.d.ts +4 -0
- package/properties/definitions/TermSetPropertyDefinition.js +7 -5
- package/properties/values/BirthdayPropertyValue.js +1 -1
- package/properties/values/DatePropertyValue.js +2 -2
- package/properties/values/DateTimePropertyValue.js +1 -1
|
@@ -11,6 +11,7 @@ export declare const AppManagementConstantStyles: {
|
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
13
|
export declare const AppManagementSharedStyles: {
|
|
14
|
+
stepWrapper?: types.NestedCSSProperties;
|
|
14
15
|
headerTableStyle?: types.NestedCSSProperties;
|
|
15
16
|
headerExpansionPanelStyle?: types.NestedCSSProperties;
|
|
16
17
|
titleDefaultStyle?: types.NestedCSSProperties;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Guid } from "../shared";
|
|
2
|
+
import { AzurePermissionResource } from "./AzurePermissionResource";
|
|
3
|
+
export interface AzureAdEnvironment {
|
|
4
|
+
tenantId: Guid;
|
|
5
|
+
appId: Guid;
|
|
6
|
+
requiredPermissions: AzurePermissionResource[];
|
|
7
|
+
adminConsentUrl: string;
|
|
8
|
+
appClientSecretExpires: Date;
|
|
9
|
+
}
|
package/Constants.d.ts
CHANGED
package/Constants.js
CHANGED
package/Enums.d.ts
CHANGED
|
@@ -440,7 +440,8 @@ export declare enum UserPickingType {
|
|
|
440
440
|
NoDefault = 0,
|
|
441
441
|
FixedValue = 1,
|
|
442
442
|
CurrentUser = 2,
|
|
443
|
-
SelectedUser = 3
|
|
443
|
+
SelectedUser = 3,
|
|
444
|
+
CurrentGroup = 4
|
|
444
445
|
}
|
|
445
446
|
export declare enum PropertyIndexedType {
|
|
446
447
|
Text = 1,
|
|
@@ -527,7 +528,8 @@ export declare enum StaticEndpoint {
|
|
|
527
528
|
MagicLinkSuccess = "/api/magiclink/success",
|
|
528
529
|
MagicLinkFailure = "/api/magiclink/failure",
|
|
529
530
|
MagicLink = "/api/magiclink",
|
|
530
|
-
SharepointServerLogin = "/spsignin"
|
|
531
|
+
SharepointServerLogin = "/spsignin",
|
|
532
|
+
NotFound = "/_system/404"
|
|
531
533
|
}
|
|
532
534
|
export declare enum QueueMessageStatus {
|
|
533
535
|
Unassigned = 0,
|
|
@@ -553,6 +555,10 @@ export declare enum TimeFormats {
|
|
|
553
555
|
hour24 = 1,
|
|
554
556
|
hour12 = 2
|
|
555
557
|
}
|
|
558
|
+
export declare enum FirstDayOfWeeks {
|
|
559
|
+
Monday = 1,
|
|
560
|
+
Sunday = 2
|
|
561
|
+
}
|
|
556
562
|
export declare enum PermissionRoles {
|
|
557
563
|
TenantAdmin = "67daa6ca-168e-458f-96c8-4162b77fc99f"
|
|
558
564
|
}
|
package/Enums.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
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 = void 0;
|
|
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;
|
|
5
5
|
var BuiltInEnterprisePropertyInternalNames;
|
|
6
6
|
(function (BuiltInEnterprisePropertyInternalNames) {
|
|
7
7
|
BuiltInEnterprisePropertyInternalNames["Title"] = "title";
|
|
@@ -344,6 +344,7 @@ var UserPickingType;
|
|
|
344
344
|
UserPickingType[UserPickingType["FixedValue"] = 1] = "FixedValue";
|
|
345
345
|
UserPickingType[UserPickingType["CurrentUser"] = 2] = "CurrentUser";
|
|
346
346
|
UserPickingType[UserPickingType["SelectedUser"] = 3] = "SelectedUser";
|
|
347
|
+
UserPickingType[UserPickingType["CurrentGroup"] = 4] = "CurrentGroup";
|
|
347
348
|
})(UserPickingType = exports.UserPickingType || (exports.UserPickingType = {}));
|
|
348
349
|
var PropertyIndexedType;
|
|
349
350
|
(function (PropertyIndexedType) {
|
|
@@ -439,6 +440,7 @@ var StaticEndpoint;
|
|
|
439
440
|
StaticEndpoint["MagicLink"] = "/api/magiclink";
|
|
440
441
|
// onprem only
|
|
441
442
|
StaticEndpoint["SharepointServerLogin"] = "/spsignin";
|
|
443
|
+
StaticEndpoint["NotFound"] = "/_system/404";
|
|
442
444
|
})(StaticEndpoint = exports.StaticEndpoint || (exports.StaticEndpoint = {}));
|
|
443
445
|
var QueueMessageStatus;
|
|
444
446
|
(function (QueueMessageStatus) {
|
|
@@ -469,6 +471,11 @@ var TimeFormats;
|
|
|
469
471
|
TimeFormats[TimeFormats["hour24"] = 1] = "hour24";
|
|
470
472
|
TimeFormats[TimeFormats["hour12"] = 2] = "hour12";
|
|
471
473
|
})(TimeFormats = exports.TimeFormats || (exports.TimeFormats = {}));
|
|
474
|
+
var FirstDayOfWeeks;
|
|
475
|
+
(function (FirstDayOfWeeks) {
|
|
476
|
+
FirstDayOfWeeks[FirstDayOfWeeks["Monday"] = 1] = "Monday";
|
|
477
|
+
FirstDayOfWeeks[FirstDayOfWeeks["Sunday"] = 2] = "Sunday";
|
|
478
|
+
})(FirstDayOfWeeks = exports.FirstDayOfWeeks || (exports.FirstDayOfWeeks = {}));
|
|
472
479
|
var PermissionRoles;
|
|
473
480
|
(function (PermissionRoles) {
|
|
474
481
|
PermissionRoles["TenantAdmin"] = "67daa6ca-168e-458f-96c8-4162b77fc99f";
|
|
@@ -765,7 +772,7 @@ var IdentityUserIdTypeMatch;
|
|
|
765
772
|
(function (IdentityUserIdTypeMatch) {
|
|
766
773
|
//Example: {Id: c:0\u002b.w|s-1-5-21-1111812947-3881384297-199475092-571, Entitype: 'SecGroup'}
|
|
767
774
|
IdentityUserIdTypeMatch["SPOnpremAdGroup"] = "c:0+";
|
|
768
|
-
//Example: { Id: i:0#.w|
|
|
775
|
+
//Example: { Id: i:0#.w|YOURDOMAIN\\administrator, EntityType: "User" }
|
|
769
776
|
IdentityUserIdTypeMatch["SPOnpremAdUser"] = "\\";
|
|
770
777
|
//Empty not yet use
|
|
771
778
|
IdentityUserIdTypeMatch["AzureAdGroup"] = "";
|
package/Exposes.d.ts
CHANGED
|
@@ -66,6 +66,7 @@ export * from "./PropertiesBlockStyles";
|
|
|
66
66
|
export * from "./IPropertiesApi";
|
|
67
67
|
export * from "./TokenDefinition";
|
|
68
68
|
export * from "./AzurePermissionResource";
|
|
69
|
+
export * from "./AzureAdEnvironment";
|
|
69
70
|
export * from "./AppTemplatePropertySetSetting";
|
|
70
71
|
export * from "./FileStorage";
|
|
71
72
|
export * from "./ShapeDividerSettingsModel";
|
package/Exposes.js
CHANGED
|
@@ -72,6 +72,7 @@ tslib_1.__exportStar(require("./PropertiesBlockStyles"), exports);
|
|
|
72
72
|
tslib_1.__exportStar(require("./IPropertiesApi"), exports);
|
|
73
73
|
tslib_1.__exportStar(require("./TokenDefinition"), exports);
|
|
74
74
|
tslib_1.__exportStar(require("./AzurePermissionResource"), exports);
|
|
75
|
+
tslib_1.__exportStar(require("./AzureAdEnvironment"), exports);
|
|
75
76
|
tslib_1.__exportStar(require("./AppTemplatePropertySetSetting"), exports);
|
|
76
77
|
tslib_1.__exportStar(require("./FileStorage"), exports);
|
|
77
78
|
tslib_1.__exportStar(require("./ShapeDividerSettingsModel"), exports);
|
package/FilterEngineStyles.d.ts
CHANGED
|
@@ -16,7 +16,6 @@ export declare const FilterEngineStyles: {
|
|
|
16
16
|
avatarOptionStyle: types.NestedCSSProperties;
|
|
17
17
|
searchBoxDefaultStyle: types.NestedCSSProperties;
|
|
18
18
|
searchValueBoxDefaultStyle: types.NestedCSSProperties;
|
|
19
|
-
searchTextColor: types.NestedCSSProperties;
|
|
20
19
|
treeNodeText: (isSelected: boolean) => types.NestedCSSProperties;
|
|
21
20
|
treeNodeResultCount: (theme: ITheming, isSelected: boolean) => types.NestedCSSProperties;
|
|
22
21
|
dialogContent: (theming: ITheming) => types.NestedCSSProperties;
|
package/Layout.d.ts
CHANGED
|
@@ -187,6 +187,7 @@ export interface StepperSectionSettings extends SectionSettings {
|
|
|
187
187
|
nonLinear: boolean;
|
|
188
188
|
labelSettings: StepperLabelSettings;
|
|
189
189
|
scrollToTopOnSelectedStep: boolean;
|
|
190
|
+
paging?: boolean;
|
|
190
191
|
}
|
|
191
192
|
export interface StepperLabelSettings {
|
|
192
193
|
none: boolean;
|
package/ManifestIds.d.ts
CHANGED
|
@@ -2,9 +2,6 @@ import { Guid } from "@omnia/fx-models/internal-do-not-import-from-here/shared/m
|
|
|
2
2
|
export declare class OmniaService {
|
|
3
3
|
static get Id(): Guid;
|
|
4
4
|
}
|
|
5
|
-
export declare class OmniaSearchQueryService {
|
|
6
|
-
static get Id(): Guid;
|
|
7
|
-
}
|
|
8
5
|
export declare class OmniaGroupManifests {
|
|
9
6
|
static get FxConsole(): Guid;
|
|
10
7
|
static get Fx(): Guid;
|
|
@@ -117,6 +114,7 @@ export declare class OmniaResourceManifests {
|
|
|
117
114
|
static get UserPropertiesProvider(): Guid;
|
|
118
115
|
static get UserPropertiesByMicrosoftGraphProvider(): Guid;
|
|
119
116
|
static get UserPropertiesBySharePointProvider(): Guid;
|
|
117
|
+
static get UserTokenProvider(): Guid;
|
|
120
118
|
static get FxUxPropertyDataSourceApi(): Guid;
|
|
121
119
|
static get IdentityPropertyApi(): Guid;
|
|
122
120
|
static get BuiltinExtendedPropertiesRegistration(): Guid;
|
|
@@ -382,6 +380,7 @@ export declare class OmniaWebComponentManifests {
|
|
|
382
380
|
static get EmoticonComponent(): Guid;
|
|
383
381
|
static get UrlInputComponent(): Guid;
|
|
384
382
|
static get FxUxProfileCardRenderer(): Guid;
|
|
383
|
+
static get FxUxProfileSwtichingBtn(): Guid;
|
|
385
384
|
static get FxUxProfileCardComponent(): Guid;
|
|
386
385
|
static get FxUxProfileCardDialogComponent(): Guid;
|
|
387
386
|
static get FxUxProfileCardCore(): Guid;
|
package/ManifestIds.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.OmniaWebComponentManifests = exports.OmniaResourceManifests = exports.OmniaGroupManifests = exports.
|
|
3
|
+
exports.OmniaWebComponentManifests = exports.OmniaResourceManifests = exports.OmniaGroupManifests = exports.OmniaService = void 0;
|
|
4
4
|
const models_1 = require("@omnia/fx-models/internal-do-not-import-from-here/shared/models");
|
|
5
5
|
class OmniaService {
|
|
6
6
|
static get Id() {
|
|
@@ -8,12 +8,6 @@ class OmniaService {
|
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
10
|
exports.OmniaService = OmniaService;
|
|
11
|
-
class OmniaSearchQueryService {
|
|
12
|
-
static get Id() {
|
|
13
|
-
return new models_1.Guid("c3697581-9a94-483f-b0d0-a877aaa63c91");
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
exports.OmniaSearchQueryService = OmniaSearchQueryService;
|
|
17
11
|
class OmniaGroupManifests {
|
|
18
12
|
static get FxConsole() {
|
|
19
13
|
return new models_1.Guid("a7545e1c-9704-4a11-97df-25943ea19390");
|
|
@@ -379,6 +373,9 @@ class OmniaResourceManifests {
|
|
|
379
373
|
static get UserPropertiesBySharePointProvider() {
|
|
380
374
|
return new models_1.Guid("9a37a669-cb46-443a-b833-9155755f6cc3");
|
|
381
375
|
}
|
|
376
|
+
static get UserTokenProvider() {
|
|
377
|
+
return new models_1.Guid("59ec874f-663b-4ad3-a13e-963c6dfec287");
|
|
378
|
+
}
|
|
382
379
|
static get FxUxPropertyDataSourceApi() {
|
|
383
380
|
return new models_1.Guid("8cf8a6b0-8ae5-4d6a-9e11-0f422243b885");
|
|
384
381
|
}
|
|
@@ -1164,6 +1161,9 @@ class OmniaWebComponentManifests {
|
|
|
1164
1161
|
static get FxUxProfileCardRenderer() {
|
|
1165
1162
|
return new models_1.Guid("6d1d84cb-2106-43c5-9ca8-437fc36c75a1");
|
|
1166
1163
|
}
|
|
1164
|
+
static get FxUxProfileSwtichingBtn() {
|
|
1165
|
+
return new models_1.Guid("6b7b970b-2844-43ab-b7a8-6f0afa4462e3");
|
|
1166
|
+
}
|
|
1167
1167
|
static get FxUxProfileCardComponent() {
|
|
1168
1168
|
return new models_1.Guid("6489472f-d8d2-4a1b-9413-537fde528566");
|
|
1169
1169
|
}
|
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Omnia Fx Tooling
|
|
2
2
|
|
|
3
|
-
Omnia Fx Tooling is a product from
|
|
3
|
+
Omnia Fx Tooling is a product from Omnia Digital Workplace AB. In order to use Omnia Fx you need a product license for one of the following products:
|
|
4
4
|
|
|
5
5
|
### Documentation
|
|
6
|
-
https://github.com/
|
|
6
|
+
https://github.com/omniaintranet/OmniaDocs
|
package/Tenant.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { OmniaNamedModel, IOmniaPropertyBag } from "./NamedProperty";
|
|
2
2
|
import { TenantIdentifier } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
|
|
3
|
-
import { TimeFormats } from "./Enums";
|
|
3
|
+
import { FirstDayOfWeeks, TimeFormats } from "./Enums";
|
|
4
4
|
import { LanguageSettings } from "./Language";
|
|
5
5
|
import { MultilingualString } from "./MultilingualString";
|
|
6
6
|
export interface ITenant extends TenantIdentifier {
|
|
@@ -16,6 +16,7 @@ export declare class TenantRegionalSettings extends TenantProperty {
|
|
|
16
16
|
constructor();
|
|
17
17
|
dateFormat: string;
|
|
18
18
|
timeFormat: TimeFormats;
|
|
19
|
+
firstDayOfWeek: FirstDayOfWeeks;
|
|
19
20
|
}
|
|
20
21
|
export declare class TenantLanguageSettings extends TenantProperty {
|
|
21
22
|
languages: Array<LanguageSettings>;
|
|
@@ -37,7 +38,11 @@ export declare class TenantInfoSettings extends TenantProperty {
|
|
|
37
38
|
constructor();
|
|
38
39
|
}
|
|
39
40
|
export declare class TenantAuthenticationSettings extends TenantProperty {
|
|
41
|
+
static DefaultOmniaTokenExpiredHours: number;
|
|
42
|
+
static MinOmniaTokenExpiredHours: number;
|
|
43
|
+
static MaxOmniaTokenExpiredHours: number;
|
|
40
44
|
enableITPCompatibility: boolean;
|
|
45
|
+
omniaTokenExpiredHours: number;
|
|
41
46
|
constructor();
|
|
42
47
|
}
|
|
43
48
|
export declare class TenantPeopleInformation extends TenantProperty {
|
package/Tenant.js
CHANGED
|
@@ -44,9 +44,13 @@ exports.TenantInfoSettings = TenantInfoSettings;
|
|
|
44
44
|
class TenantAuthenticationSettings extends TenantProperty {
|
|
45
45
|
constructor() {
|
|
46
46
|
super(ManifestIds_1.OmniaService.Id, "tenantauthentication");
|
|
47
|
+
this.omniaTokenExpiredHours = TenantAuthenticationSettings.DefaultOmniaTokenExpiredHours;
|
|
47
48
|
}
|
|
48
49
|
}
|
|
49
50
|
exports.TenantAuthenticationSettings = TenantAuthenticationSettings;
|
|
51
|
+
TenantAuthenticationSettings.DefaultOmniaTokenExpiredHours = 24;
|
|
52
|
+
TenantAuthenticationSettings.MinOmniaTokenExpiredHours = 1;
|
|
53
|
+
TenantAuthenticationSettings.MaxOmniaTokenExpiredHours = 96;
|
|
50
54
|
class TenantPeopleInformation extends TenantProperty {
|
|
51
55
|
constructor() {
|
|
52
56
|
super(ManifestIds_1.OmniaService.Id, "peopleinformation");
|
|
@@ -16,6 +16,7 @@ export interface UserRequestFormDisplaySetting {
|
|
|
16
16
|
userTypeId: GuidValue;
|
|
17
17
|
userTypeDisplayName: MultilingualString;
|
|
18
18
|
propertyBindings: Array<PropertyBindingDisplay>;
|
|
19
|
+
magicLinkExpiration: number;
|
|
19
20
|
}
|
|
20
21
|
export declare enum ConfirmEmailStatus {
|
|
21
22
|
Incomplete = 0,
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@omnia/fx-models",
|
|
3
3
|
"license": "MIT",
|
|
4
|
-
"version": "7.7.21
|
|
4
|
+
"version": "7.7.21",
|
|
5
5
|
"description": "Provide Omnia Fx Models Stuffs.",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
8
8
|
},
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
11
|
-
"url": "git+https://github.com/
|
|
11
|
+
"url": "git+https://github.com/omniaintranet/OmniaFx"
|
|
12
12
|
},
|
|
13
13
|
"keywords": [
|
|
14
14
|
"omnia",
|
|
@@ -17,13 +17,11 @@
|
|
|
17
17
|
"office365",
|
|
18
18
|
"sharepoint"
|
|
19
19
|
],
|
|
20
|
-
"author": "
|
|
21
|
-
"dependencies": {
|
|
22
|
-
|
|
23
|
-
},
|
|
20
|
+
"author": "Omnia Digital Workplace AB",
|
|
21
|
+
"dependencies": {},
|
|
24
22
|
"typings": "./index.d.ts",
|
|
25
23
|
"bugs": {
|
|
26
|
-
"url": "https://github.com/
|
|
24
|
+
"url": "https://github.com/omniaintranet/OmniaFx/issues"
|
|
27
25
|
},
|
|
28
|
-
"homepage": "https://github.com/
|
|
29
|
-
}
|
|
26
|
+
"homepage": "https://github.com/omniaintranet/OmniaFx#readme"
|
|
27
|
+
}
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import { Guid } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
|
|
2
|
+
import { LockStatusExcludeChildren, PropertyLockStatusType } from "../../../ux";
|
|
2
3
|
import { PropertyDefinition, PropertyDisplaySettingsBase } from "../PropertyDefinition";
|
|
3
4
|
import { PhoneNumberPropertyValue } from "../values";
|
|
4
5
|
export declare class PhoneDisplaySettings extends PropertyDisplaySettingsBase {
|
|
6
|
+
locks?: PropertyLockStatusType<LockStatusExcludeChildren<Omit<PhoneDisplaySettings, "locks">, "label">>;
|
|
5
7
|
}
|
|
6
8
|
export type PhoneEditorSettings = {
|
|
9
|
+
locks?: PropertyLockStatusType<Omit<PhoneEditorSettings, "locks">>;
|
|
7
10
|
required: boolean;
|
|
11
|
+
multiple?: boolean;
|
|
8
12
|
};
|
|
9
13
|
export declare const PhoneNumberPropertyDefinitionId: Guid;
|
|
10
14
|
export declare class PhoneNumberPropertyDefinition extends PropertyDefinition<PhoneNumberPropertyValue, PhoneDisplaySettings, PhoneEditorSettings> {
|
|
@@ -11,7 +11,7 @@ class SharePointTermSetPropertyValue extends PropertyValue_1.PropertyValue {
|
|
|
11
11
|
this.termIds = termIds;
|
|
12
12
|
}
|
|
13
13
|
containValue(other) {
|
|
14
|
-
if (this?.termIds?.length == 0)
|
|
14
|
+
if (this?.termIds?.length == 0 && other?.termIds?.length == 0)
|
|
15
15
|
return true;
|
|
16
16
|
if (other?.termIds?.length > 0) {
|
|
17
17
|
return this.termIds.filter(termId => other.termIds.findIndex(id => termId.toString() == id.toString()) > -1).length == this.termIds.length;
|
|
@@ -19,10 +19,12 @@ class SharePointTermSetPropertyValue extends PropertyValue_1.PropertyValue {
|
|
|
19
19
|
return false;
|
|
20
20
|
}
|
|
21
21
|
appendValue(other) {
|
|
22
|
-
|
|
23
|
-
other?.termIds?.forEach(termId =>
|
|
24
|
-
|
|
25
|
-
|
|
22
|
+
const termIds = this?.termIds || [];
|
|
23
|
+
other?.termIds?.forEach(termId => {
|
|
24
|
+
const exist = termIds.find(q => q.toString() == termId.toString());
|
|
25
|
+
if (!exist) {
|
|
26
|
+
termIds.push(termId);
|
|
27
|
+
}
|
|
26
28
|
});
|
|
27
29
|
return new SharePointTermSetPropertyValue(termIds);
|
|
28
30
|
}
|
|
@@ -6,7 +6,7 @@ class BirthdayPropertyValue extends PropertyValue_1.PropertyValue {
|
|
|
6
6
|
constructor(birthday, timeZoneId) {
|
|
7
7
|
super();
|
|
8
8
|
this.timeZoneId = timeZoneId;
|
|
9
|
-
this.birthday = birthday.toJSON();
|
|
9
|
+
this.birthday = birthday ? birthday.toJSON() : undefined;
|
|
10
10
|
}
|
|
11
11
|
isEmpty() {
|
|
12
12
|
return !this.birthday;
|
|
@@ -5,8 +5,8 @@ const PropertyValue_1 = require("../PropertyValue");
|
|
|
5
5
|
class DatePropertyValue extends PropertyValue_1.PropertyValue {
|
|
6
6
|
constructor(date, timeZoneId) {
|
|
7
7
|
super();
|
|
8
|
-
this.date = date.toJSON();
|
|
9
|
-
this.timeZoneId = timeZoneId.toString();
|
|
8
|
+
this.date = date ? date.toJSON() : undefined;
|
|
9
|
+
this.timeZoneId = timeZoneId ? timeZoneId.toString() : undefined;
|
|
10
10
|
}
|
|
11
11
|
isEmpty() {
|
|
12
12
|
return this.date == null;
|
|
@@ -6,7 +6,7 @@ class DateTimePropertyValue extends PropertyValue_1.PropertyValue {
|
|
|
6
6
|
constructor(dateTime, timeZoneId) {
|
|
7
7
|
super();
|
|
8
8
|
this.timeZoneId = timeZoneId;
|
|
9
|
-
this.dateTime = dateTime.toJSON();
|
|
9
|
+
this.dateTime = dateTime ? dateTime.toJSON() : undefined;
|
|
10
10
|
}
|
|
11
11
|
isEmpty() {
|
|
12
12
|
return this.dateTime == null;
|