@omnia/fx-models 8.0.228-dev → 8.0.230-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.
- package/package.json +1 -1
- package/properties/PropertyValue.d.ts +1 -0
- package/properties/definitions/TermSetPropertyDefinition.d.ts +1 -1
- package/properties/definitions/TermSetPropertyDefinition.js +3 -3
- package/properties/values/BirthdayPropertyValue.d.ts +1 -1
- package/properties/values/BirthdayPropertyValue.js +3 -3
- package/properties/values/BooleanPropertyValue.d.ts +1 -1
- package/properties/values/BooleanPropertyValue.js +3 -3
- package/properties/values/BusinessProfilePropertyValue.d.ts +1 -0
- package/properties/values/BusinessProfilePropertyValue.js +3 -0
- package/properties/values/DatePropertyValue.d.ts +1 -4
- package/properties/values/DatePropertyValue.js +3 -3
- package/properties/values/DateTimePropertyValue.d.ts +1 -1
- package/properties/values/DateTimePropertyValue.js +3 -3
- package/properties/values/EmailPropertyValue.d.ts +1 -1
- package/properties/values/EmailPropertyValue.js +3 -3
- package/properties/values/HtmlPropertyValue.d.ts +1 -1
- package/properties/values/HtmlPropertyValue.js +3 -3
- package/properties/values/IdentityPropertyValue.d.ts +1 -1
- package/properties/values/IdentityPropertyValue.js +2 -2
- package/properties/values/ImagePropertyValue.d.ts +1 -1
- package/properties/values/ImagePropertyValue.js +3 -3
- package/properties/values/IntegerPropertyValue.d.ts +1 -1
- package/properties/values/IntegerPropertyValue.js +3 -3
- package/properties/values/LanguagePropertyValue.d.ts +1 -1
- package/properties/values/LanguagePropertyValue.js +3 -3
- package/properties/values/LinkPropertyValue.d.ts +1 -1
- package/properties/values/LinkPropertyValue.js +3 -3
- package/properties/values/MediaPropertyValue.d.ts +1 -0
- package/properties/values/MediaPropertyValue.js +3 -0
- package/properties/values/MultilineTextPropertyValue.d.ts +1 -0
- package/properties/values/MultilineTextPropertyValue.js +3 -0
- package/properties/values/MultilingualTextPropertyValue.d.ts +1 -0
- package/properties/values/MultilingualTextPropertyValue.js +3 -0
- package/properties/values/PhoneNumberPropertyValue.d.ts +1 -0
- package/properties/values/PhoneNumberPropertyValue.js +3 -0
- package/properties/values/TagsPropertyValue.d.ts +1 -1
- package/properties/values/TagsPropertyValue.js +3 -3
- package/properties/values/TextPropertyValue.d.ts +1 -1
- package/properties/values/TextPropertyValue.js +3 -3
- package/properties/values/TimePropertyValue.d.ts +1 -0
- package/properties/values/TimePropertyValue.js +3 -0
- package/properties/values/UserTypePropertyValue.d.ts +1 -0
- package/properties/values/UserTypePropertyValue.js +3 -0
package/package.json
CHANGED
@@ -22,7 +22,7 @@ export declare class SharePointTermSetPropertyValue extends PropertyValue {
|
|
22
22
|
constructor(termIds: guid[]);
|
23
23
|
containValue(other: SharePointTermSetPropertyValue): boolean;
|
24
24
|
appendValue(other: SharePointTermSetPropertyValue): SharePointTermSetPropertyValue;
|
25
|
-
|
25
|
+
isEmpty(): boolean;
|
26
26
|
}
|
27
27
|
export declare class SharePointTermSetPropertyDefinition extends PropertyDefinition<SharePointTermSetPropertyValue, SharePointTermSetPropertyDisplaySettings, SharePointTermSetPropertyEditorSettings, SharePointTermSetPropertySetupSettings> {
|
28
28
|
id: guid;
|
@@ -9,9 +9,6 @@ class SharePointTermSetPropertyValue extends PropertyValue_1.PropertyValue {
|
|
9
9
|
constructor(termIds) {
|
10
10
|
super();
|
11
11
|
this.termIds = termIds;
|
12
|
-
this.getValue = () => {
|
13
|
-
return this.termIds.map(termId => termId.toString());
|
14
|
-
};
|
15
12
|
}
|
16
13
|
containValue(other) {
|
17
14
|
if (this?.termIds?.length == 0)
|
@@ -29,6 +26,9 @@ class SharePointTermSetPropertyValue extends PropertyValue_1.PropertyValue {
|
|
29
26
|
});
|
30
27
|
return new SharePointTermSetPropertyValue(termIds);
|
31
28
|
}
|
29
|
+
isEmpty() {
|
30
|
+
return this?.termIds?.length == 0;
|
31
|
+
}
|
32
32
|
}
|
33
33
|
exports.SharePointTermSetPropertyValue = SharePointTermSetPropertyValue;
|
34
34
|
class SharePointTermSetPropertyDefinition extends PropertyDefinition_1.PropertyDefinition {
|
@@ -6,10 +6,10 @@ class BirthdayPropertyValue extends PropertyValue_1.PropertyValue {
|
|
6
6
|
constructor(birthday, timeZoneId) {
|
7
7
|
super();
|
8
8
|
this.timeZoneId = timeZoneId;
|
9
|
-
this.getValue = () => {
|
10
|
-
return this.birthday;
|
11
|
-
};
|
12
9
|
this.birthday = birthday.toJSON();
|
13
10
|
}
|
11
|
+
isEmpty() {
|
12
|
+
return !this.birthday;
|
13
|
+
}
|
14
14
|
}
|
15
15
|
exports.BirthdayPropertyValue = BirthdayPropertyValue;
|
@@ -6,9 +6,9 @@ class BooleanPropertyValue extends PropertyValue_1.PropertyValue {
|
|
6
6
|
constructor(boolean) {
|
7
7
|
super();
|
8
8
|
this.boolean = boolean;
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
}
|
10
|
+
isEmpty() {
|
11
|
+
return !this.boolean;
|
12
12
|
}
|
13
13
|
}
|
14
14
|
exports.BooleanPropertyValue = BooleanPropertyValue;
|
@@ -5,11 +5,11 @@ const PropertyValue_1 = require("../PropertyValue");
|
|
5
5
|
class DatePropertyValue extends PropertyValue_1.PropertyValue {
|
6
6
|
constructor(date, timeZoneId) {
|
7
7
|
super();
|
8
|
-
this.getValue = () => {
|
9
|
-
return { date: this.date, timeZoneId: this.timeZoneId };
|
10
|
-
};
|
11
8
|
this.date = date.toJSON();
|
12
9
|
this.timeZoneId = timeZoneId.toString();
|
13
10
|
}
|
11
|
+
isEmpty() {
|
12
|
+
return this.date == null;
|
13
|
+
}
|
14
14
|
}
|
15
15
|
exports.DatePropertyValue = DatePropertyValue;
|
@@ -6,10 +6,10 @@ class DateTimePropertyValue extends PropertyValue_1.PropertyValue {
|
|
6
6
|
constructor(dateTime, timeZoneId) {
|
7
7
|
super();
|
8
8
|
this.timeZoneId = timeZoneId;
|
9
|
-
this.getValue = () => {
|
10
|
-
return this.dateTime;
|
11
|
-
};
|
12
9
|
this.dateTime = dateTime.toJSON();
|
13
10
|
}
|
11
|
+
isEmpty() {
|
12
|
+
return this.dateTime == null;
|
13
|
+
}
|
14
14
|
}
|
15
15
|
exports.DateTimePropertyValue = DateTimePropertyValue;
|
@@ -6,9 +6,9 @@ class EmailPropertyValue extends PropertyValue_1.PropertyValue {
|
|
6
6
|
constructor(email) {
|
7
7
|
super();
|
8
8
|
this.email = email;
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
}
|
10
|
+
isEmpty() {
|
11
|
+
return !this.email;
|
12
12
|
}
|
13
13
|
}
|
14
14
|
exports.EmailPropertyValue = EmailPropertyValue;
|
@@ -6,9 +6,9 @@ class HtmlPropertyValue extends PropertyValue_1.PropertyValue {
|
|
6
6
|
constructor(html) {
|
7
7
|
super();
|
8
8
|
this.html = html;
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
}
|
10
|
+
isEmpty() {
|
11
|
+
return this.html == null || this.html.trim() == "" || this.html.trim() == "<p></p>";
|
12
12
|
}
|
13
13
|
}
|
14
14
|
exports.HtmlPropertyValue = HtmlPropertyValue;
|
@@ -7,8 +7,8 @@ class IdentityPropertyValue extends PropertyValue_1.PropertyValue {
|
|
7
7
|
super();
|
8
8
|
this.identities = identities;
|
9
9
|
}
|
10
|
-
|
11
|
-
return this.identities;
|
10
|
+
isEmpty() {
|
11
|
+
return this.identities?.length == 0;
|
12
12
|
}
|
13
13
|
}
|
14
14
|
exports.IdentityPropertyValue = IdentityPropertyValue;
|
@@ -6,9 +6,9 @@ class ImagePropertyValue extends PropertyValue_1.PropertyValue {
|
|
6
6
|
constructor(image) {
|
7
7
|
super();
|
8
8
|
this.image = image;
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
}
|
10
|
+
isEmpty() {
|
11
|
+
return !this.image;
|
12
12
|
}
|
13
13
|
}
|
14
14
|
exports.ImagePropertyValue = ImagePropertyValue;
|
@@ -6,9 +6,9 @@ class IntegerPropertyValue extends PropertyValue_1.PropertyValue {
|
|
6
6
|
constructor(integer) {
|
7
7
|
super();
|
8
8
|
this.integer = integer;
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
}
|
10
|
+
isEmpty() {
|
11
|
+
return typeof this.integer !== "number" || this.integer == null;
|
12
12
|
}
|
13
13
|
}
|
14
14
|
exports.IntegerPropertyValue = IntegerPropertyValue;
|
@@ -6,9 +6,9 @@ class LanguagePropertyValue extends PropertyValue_1.PropertyValue {
|
|
6
6
|
constructor(language) {
|
7
7
|
super();
|
8
8
|
this.language = language;
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
}
|
10
|
+
isEmpty() {
|
11
|
+
return !this.language;
|
12
12
|
}
|
13
13
|
}
|
14
14
|
exports.LanguagePropertyValue = LanguagePropertyValue;
|
@@ -6,9 +6,9 @@ class LinkPropertyValue extends PropertyValue_1.PropertyValue {
|
|
6
6
|
constructor(link) {
|
7
7
|
super();
|
8
8
|
this.link = link;
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
}
|
10
|
+
isEmpty() {
|
11
|
+
return !this.link;
|
12
12
|
}
|
13
13
|
}
|
14
14
|
exports.LinkPropertyValue = LinkPropertyValue;
|
@@ -7,5 +7,8 @@ class MultilingualTextPropertyValue extends PropertyValue_1.PropertyValue {
|
|
7
7
|
super();
|
8
8
|
this.multilingualText = multilingualText;
|
9
9
|
}
|
10
|
+
isEmpty() {
|
11
|
+
return !this.multilingualText;
|
12
|
+
}
|
10
13
|
}
|
11
14
|
exports.MultilingualTextPropertyValue = MultilingualTextPropertyValue;
|
@@ -6,9 +6,9 @@ class TagsPropertyValue extends PropertyValue_1.PropertyValue {
|
|
6
6
|
constructor(tags) {
|
7
7
|
super();
|
8
8
|
this.tags = tags;
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
}
|
10
|
+
isEmpty() {
|
11
|
+
return this.tags?.length == 0;
|
12
12
|
}
|
13
13
|
}
|
14
14
|
exports.TagsPropertyValue = TagsPropertyValue;
|
@@ -6,9 +6,9 @@ class TextPropertyValue extends PropertyValue_1.PropertyValue {
|
|
6
6
|
constructor(text) {
|
7
7
|
super();
|
8
8
|
this.text = text;
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
}
|
10
|
+
isEmpty() {
|
11
|
+
return this.text == null || this.text.trim() == "";
|
12
12
|
}
|
13
13
|
}
|
14
14
|
exports.TextPropertyValue = TextPropertyValue;
|
@@ -3,5 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.TimePropertyValue = void 0;
|
4
4
|
const PropertyValue_1 = require("../PropertyValue");
|
5
5
|
class TimePropertyValue extends PropertyValue_1.PropertyValue {
|
6
|
+
isEmpty() {
|
7
|
+
return this.time == null || this.time.toJSON() == null;
|
8
|
+
}
|
6
9
|
}
|
7
10
|
exports.TimePropertyValue = TimePropertyValue;
|