@omnia/fx-models 7.8.24-preview → 7.8.25-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/shared/models/SharedConstants.d.ts +1 -0
- package/internal-do-not-import-from-here/shared/models/SharedConstants.js +1 -0
- package/package.json +1 -1
- package/properties/definitions/PhoneNumberPropertyDefinition.d.ts +4 -0
- package/properties/values/BirthdayPropertyValue.js +1 -1
- package/properties/values/DatePropertyValue.js +2 -2
- package/properties/values/DateTimePropertyValue.js +1 -1
package/package.json
CHANGED
|
@@ -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> {
|
|
@@ -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;
|