@nmshd/content 2.0.0-alpha.23 → 2.0.0-alpha.26
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/dist/attributes/AbstractAttributeQuery.d.ts +3 -3
- package/dist/attributes/AbstractAttributeQuery.js +1 -2
- package/dist/attributes/AbstractAttributeQuery.js.map +1 -1
- package/dist/attributes/AbstractComplexValue.d.ts +3 -2
- package/dist/attributes/AbstractComplexValue.js.map +1 -1
- package/dist/attributes/IdentityAttribute.d.ts +1 -0
- package/dist/attributes/IdentityAttribute.js +3 -0
- package/dist/attributes/IdentityAttribute.js.map +1 -1
- package/dist/attributes/IdentityAttributeQuery.d.ts +1 -0
- package/dist/attributes/IdentityAttributeQuery.js +3 -0
- package/dist/attributes/IdentityAttributeQuery.js.map +1 -1
- package/dist/attributes/RelationshipAttribute.d.ts +1 -0
- package/dist/attributes/RelationshipAttribute.js +3 -0
- package/dist/attributes/RelationshipAttribute.js.map +1 -1
- package/dist/attributes/RelationshipAttributeQuery.d.ts +1 -0
- package/dist/attributes/RelationshipAttributeQuery.js +3 -0
- package/dist/attributes/RelationshipAttributeQuery.js.map +1 -1
- package/dist/attributes/hints/RenderHints.d.ts +12 -9
- package/dist/attributes/hints/RenderHints.js +6 -5
- package/dist/attributes/hints/RenderHints.js.map +1 -1
- package/dist/attributes/hints/ValueHints.d.ts +2 -2
- package/dist/attributes/hints/ValueHints.js +2 -1
- package/dist/attributes/hints/ValueHints.js.map +1 -1
- package/dist/attributes/types/AbstractBoolean.d.ts +3 -0
- package/dist/attributes/types/AbstractBoolean.js +10 -0
- package/dist/attributes/types/AbstractBoolean.js.map +1 -1
- package/dist/attributes/types/AbstractFloat.d.ts +3 -0
- package/dist/attributes/types/AbstractFloat.js +10 -0
- package/dist/attributes/types/AbstractFloat.js.map +1 -1
- package/dist/attributes/types/AbstractInteger.js +1 -1
- package/dist/attributes/types/AbstractInteger.js.map +1 -1
- package/dist/attributes/types/AbstractString.d.ts +3 -0
- package/dist/attributes/types/AbstractString.js +13 -1
- package/dist/attributes/types/AbstractString.js.map +1 -1
- package/dist/attributes/types/dates/AbstractDateString.d.ts +3 -0
- package/dist/attributes/types/dates/AbstractDateString.js +15 -0
- package/dist/attributes/types/dates/AbstractDateString.js.map +1 -1
- package/dist/attributes/types/dates/AbstractDay.d.ts +3 -0
- package/dist/attributes/types/dates/AbstractDay.js +13 -0
- package/dist/attributes/types/dates/AbstractDay.js.map +1 -1
- package/dist/attributes/types/dates/AbstractMonth.d.ts +2 -0
- package/dist/attributes/types/dates/AbstractMonth.js +7 -0
- package/dist/attributes/types/dates/AbstractMonth.js.map +1 -1
- package/dist/attributes/types/dates/AbstractYear.d.ts +3 -0
- package/dist/attributes/types/dates/AbstractYear.js +13 -0
- package/dist/attributes/types/dates/AbstractYear.js.map +1 -1
- package/dist/attributes/types/person/Age.d.ts +2 -0
- package/dist/attributes/types/person/Age.js +6 -0
- package/dist/attributes/types/person/Age.js.map +1 -1
- package/dist/attributes/types/person/Sex.d.ts +3 -0
- package/dist/attributes/types/person/Sex.js +11 -0
- package/dist/attributes/types/person/Sex.js.map +1 -1
- package/dist/attributes/types/strings/AbstractCountry.d.ts +3 -0
- package/dist/attributes/types/strings/AbstractCountry.js +14 -0
- package/dist/attributes/types/strings/AbstractCountry.js.map +1 -1
- package/dist/attributes/types/strings/AbstractDataURL.d.ts +3 -0
- package/dist/attributes/types/strings/AbstractDataURL.js +15 -0
- package/dist/attributes/types/strings/AbstractDataURL.js.map +1 -1
- package/dist/attributes/types/strings/AbstractEMailAddress.d.ts +3 -0
- package/dist/attributes/types/strings/AbstractEMailAddress.js +16 -0
- package/dist/attributes/types/strings/AbstractEMailAddress.js.map +1 -1
- package/dist/attributes/types/strings/AbstractFileReference.d.ts +4 -0
- package/dist/attributes/types/strings/AbstractFileReference.js +31 -0
- package/dist/attributes/types/strings/AbstractFileReference.js.map +1 -1
- package/dist/attributes/types/strings/AbstractHEXColor.d.ts +3 -0
- package/dist/attributes/types/strings/AbstractHEXColor.js +15 -1
- package/dist/attributes/types/strings/AbstractHEXColor.js.map +1 -1
- package/dist/attributes/types/strings/AbstractLanguage.d.ts +3 -0
- package/dist/attributes/types/strings/AbstractLanguage.js +16 -0
- package/dist/attributes/types/strings/AbstractLanguage.js.map +1 -1
- package/dist/attributes/types/strings/AbstractPhoneNumber.d.ts +3 -0
- package/dist/attributes/types/strings/AbstractPhoneNumber.js +15 -1
- package/dist/attributes/types/strings/AbstractPhoneNumber.js.map +1 -1
- package/dist/attributes/types/strings/AbstractURL.d.ts +3 -0
- package/dist/attributes/types/strings/AbstractURL.js +15 -0
- package/dist/attributes/types/strings/AbstractURL.js.map +1 -1
- package/dist/buildInformation.js +4 -4
- package/dist/requests/items/createAttribute/CreateAttributeAcceptResponseItem.d.ts +13 -0
- package/dist/requests/items/createAttribute/CreateAttributeAcceptResponseItem.js +29 -0
- package/dist/requests/items/createAttribute/CreateAttributeAcceptResponseItem.js.map +1 -0
- package/dist/requests/items/createAttribute/CreateAttributeRequestItem.d.ts +13 -0
- package/dist/requests/items/createAttribute/CreateAttributeRequestItem.js +29 -0
- package/dist/requests/items/createAttribute/CreateAttributeRequestItem.js.map +1 -0
- package/dist/requests/items/readAttribute/ReadAttributeRequestItem.d.ts +3 -2
- package/dist/requests/items/readAttribute/ReadAttributeRequestItem.js.map +1 -1
- package/lib-web/nmshd.content.js +262 -17
- package/lib-web/nmshd.content.min.js +1 -1
- package/package.json +3 -3
|
@@ -11,8 +11,21 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.AbstractYear = void 0;
|
|
13
13
|
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
14
|
+
const hints_1 = require("../../../attributes/hints");
|
|
14
15
|
const AbstractInteger_1 = require("../AbstractInteger");
|
|
15
16
|
class AbstractYear extends AbstractInteger_1.AbstractInteger {
|
|
17
|
+
static get valueHints() {
|
|
18
|
+
return super.valueHints.copyWith({
|
|
19
|
+
min: 1,
|
|
20
|
+
max: 9999
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
static get renderHints() {
|
|
24
|
+
return super.renderHints.copyWith({
|
|
25
|
+
editType: hints_1.RenderHintsEditType.SelectLike,
|
|
26
|
+
dataType: hints_1.RenderHintsDataType.Year
|
|
27
|
+
});
|
|
28
|
+
}
|
|
16
29
|
}
|
|
17
30
|
__decorate([
|
|
18
31
|
(0, ts_serval_1.serialize)(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AbstractYear.js","sourceRoot":"","sources":["../../../../src/attributes/types/dates/AbstractYear.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAAwD;AACxD,wDAAoD;AAEpD,MAAsB,YAAa,SAAQ,iCAAe;
|
|
1
|
+
{"version":3,"file":"AbstractYear.js","sourceRoot":"","sources":["../../../../src/attributes/types/dates/AbstractYear.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAAwD;AACxD,qDAA6G;AAC7G,wDAAoD;AAEpD,MAAsB,YAAa,SAAQ,iCAAe;IAQ/C,MAAM,KAAc,UAAU;QACjC,OAAO,KAAK,CAAC,UAAU,CAAC,QAAQ,CAAC;YAC7B,GAAG,EAAE,CAAC;YACN,GAAG,EAAE,IAAI;SACZ,CAAC,CAAA;IACN,CAAC;IAEM,MAAM,KAAc,WAAW;QAClC,OAAO,KAAK,CAAC,WAAW,CAAC,QAAQ,CAAC;YAC9B,QAAQ,EAAE,2BAAmB,CAAC,UAAU;YACxC,QAAQ,EAAE,2BAAmB,CAAC,IAAI;SACrC,CAAC,CAAA;IACN,CAAC;CACJ;AAfG;IALC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC;QACN,eAAe,EAAE,CAAC,CAAC,EAAE,EAAE,CACnB,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,IAAI,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,6CAA6C,CAAC,CAAC,CAAC,SAAS;KAC5G,CAAC;;2CAC2B;AANjC,oCAqBC"}
|
|
@@ -13,6 +13,12 @@ exports.Age = void 0;
|
|
|
13
13
|
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
14
14
|
const AbstractInteger_1 = require("../AbstractInteger");
|
|
15
15
|
let Age = class Age extends AbstractInteger_1.AbstractInteger {
|
|
16
|
+
static get valueHints() {
|
|
17
|
+
return super.valueHints.copyWith({
|
|
18
|
+
min: 0,
|
|
19
|
+
max: 151
|
|
20
|
+
});
|
|
21
|
+
}
|
|
16
22
|
};
|
|
17
23
|
__decorate([
|
|
18
24
|
(0, ts_serval_1.serialize)(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Age.js","sourceRoot":"","sources":["../../../../src/attributes/types/person/Age.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA8D;
|
|
1
|
+
{"version":3,"file":"Age.js","sourceRoot":"","sources":["../../../../src/attributes/types/person/Age.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA8D;AAE9D,wDAAoD;AAGpD,IAAa,GAAG,GAAhB,MAAa,GAAI,SAAQ,iCAAe;IAQ7B,MAAM,KAAc,UAAU;QACjC,OAAO,KAAK,CAAC,UAAU,CAAC,QAAQ,CAAC;YAC7B,GAAG,EAAE,CAAC;YACN,GAAG,EAAE,GAAG;SACX,CAAC,CAAA;IACN,CAAC;CACJ,CAAA;AARG;IALC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC;QACN,eAAe,EAAE,CAAC,CAAC,EAAE,EAAE,CACnB,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,4CAA4C,CAAC,CAAC,CAAC,SAAS;KAC1G,CAAC;;kCAC2B;AANpB,GAAG;IADf,IAAA,gBAAI,EAAC,KAAK,CAAC;GACC,GAAG,CAcf;AAdY,kBAAG"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { RenderHints, ValueHints } from "../../../attributes/hints";
|
|
1
2
|
import { AbstractString } from "../AbstractString";
|
|
2
3
|
/**
|
|
3
4
|
* Biologisches Geschlecht
|
|
@@ -9,4 +10,6 @@ export declare enum BiologicalSex {
|
|
|
9
10
|
}
|
|
10
11
|
export declare class Sex extends AbstractString {
|
|
11
12
|
value: BiologicalSex;
|
|
13
|
+
static get valueHints(): ValueHints;
|
|
14
|
+
static get renderHints(): RenderHints;
|
|
12
15
|
}
|
|
@@ -11,6 +11,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.Sex = exports.BiologicalSex = void 0;
|
|
13
13
|
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
14
|
+
const hints_1 = require("../../../attributes/hints");
|
|
14
15
|
const AbstractString_1 = require("../AbstractString");
|
|
15
16
|
/**
|
|
16
17
|
* Biologisches Geschlecht
|
|
@@ -22,6 +23,16 @@ var BiologicalSex;
|
|
|
22
23
|
BiologicalSex["X"] = "intersex";
|
|
23
24
|
})(BiologicalSex = exports.BiologicalSex || (exports.BiologicalSex = {}));
|
|
24
25
|
let Sex = class Sex extends AbstractString_1.AbstractString {
|
|
26
|
+
static get valueHints() {
|
|
27
|
+
return super.valueHints.copyWith({
|
|
28
|
+
values: Object.values(BiologicalSex).map((value) => hints_1.ValueHintsValue.from({ key: value, displayName: `i18n://attributes.values.sex.${value}` }))
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
static get renderHints() {
|
|
32
|
+
return super.renderHints.copyWith({
|
|
33
|
+
editType: hints_1.RenderHintsEditType.ButtonLike
|
|
34
|
+
});
|
|
35
|
+
}
|
|
25
36
|
};
|
|
26
37
|
__decorate([
|
|
27
38
|
(0, ts_serval_1.serialize)(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Sex.js","sourceRoot":"","sources":["../../../../src/attributes/types/person/Sex.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA8D;AAC9D,sDAAkD;AAElD;;GAEG;AACH,IAAY,aAIX;AAJD,WAAY,aAAa;IACrB,2BAAU,CAAA;IACV,6BAAY,CAAA;IACZ,+BAAc,CAAA;AAClB,CAAC,EAJW,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAIxB;AAED,IAAa,GAAG,GAAhB,MAAa,GAAI,SAAQ,+BAAc;
|
|
1
|
+
{"version":3,"file":"Sex.js","sourceRoot":"","sources":["../../../../src/attributes/types/person/Sex.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA8D;AAC9D,qDAAyG;AACzG,sDAAkD;AAElD;;GAEG;AACH,IAAY,aAIX;AAJD,WAAY,aAAa;IACrB,2BAAU,CAAA;IACV,6BAAY,CAAA;IACZ,+BAAc,CAAA;AAClB,CAAC,EAJW,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAIxB;AAED,IAAa,GAAG,GAAhB,MAAa,GAAI,SAAQ,+BAAc;IAQ5B,MAAM,KAAc,UAAU;QACjC,OAAO,KAAK,CAAC,UAAU,CAAC,QAAQ,CAAC;YAC7B,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAC/C,uBAAe,CAAC,IAAI,CAAC,EAAE,GAAG,EAAE,KAAK,EAAE,WAAW,EAAE,gCAAgC,KAAK,EAAE,EAAE,CAAC,CAC7F;SACJ,CAAC,CAAA;IACN,CAAC;IAEM,MAAM,KAAc,WAAW;QAClC,OAAO,KAAK,CAAC,WAAW,CAAC,QAAQ,CAAC;YAC9B,QAAQ,EAAE,2BAAmB,CAAC,UAAU;SAC3C,CAAC,CAAA;IACN,CAAC;CACJ,CAAA;AAfG;IALC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC;QACN,eAAe,EAAE,CAAC,CAAC,EAAE,EAAE,CACnB,CAAC,MAAM,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,mBAAmB,MAAM,CAAC,MAAM,CAAC,aAAa,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS;KAChH,CAAC;;kCACkC;AAN3B,GAAG;IADf,IAAA,gBAAI,EAAC,KAAK,CAAC;GACC,GAAG,CAqBf;AArBY,kBAAG"}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
+
import { RenderHints, ValueHints } from "../../../attributes/hints";
|
|
1
2
|
import { CountryAlpha2 } from "../../constants/CountriesAlpha2";
|
|
2
3
|
import { AbstractString } from "../AbstractString";
|
|
3
4
|
export declare abstract class AbstractCountry extends AbstractString {
|
|
4
5
|
value: CountryAlpha2;
|
|
6
|
+
static get valueHints(): ValueHints;
|
|
7
|
+
static get renderHints(): RenderHints;
|
|
5
8
|
}
|
|
@@ -11,9 +11,23 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.AbstractCountry = void 0;
|
|
13
13
|
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
14
|
+
const hints_1 = require("../../../attributes/hints");
|
|
14
15
|
const CountriesAlpha2_1 = require("../../constants/CountriesAlpha2");
|
|
15
16
|
const AbstractString_1 = require("../AbstractString");
|
|
16
17
|
class AbstractCountry extends AbstractString_1.AbstractString {
|
|
18
|
+
static get valueHints() {
|
|
19
|
+
return super.valueHints.copyWith({
|
|
20
|
+
min: 2,
|
|
21
|
+
max: 2,
|
|
22
|
+
values: Object.values(CountriesAlpha2_1.CountryAlpha2).map((value) => hints_1.ValueHintsValue.from({ key: value, displayName: `i18n://attributes.values.countries.${value}` }))
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
static get renderHints() {
|
|
26
|
+
return super.renderHints.copyWith({
|
|
27
|
+
editType: hints_1.RenderHintsEditType.SelectLike,
|
|
28
|
+
dataType: hints_1.RenderHintsDataType.Country
|
|
29
|
+
});
|
|
30
|
+
}
|
|
17
31
|
}
|
|
18
32
|
__decorate([
|
|
19
33
|
(0, ts_serval_1.serialize)(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AbstractCountry.js","sourceRoot":"","sources":["../../../../src/attributes/types/strings/AbstractCountry.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAAwD;AACxD,qEAA+D;AAC/D,sDAAkD;AAElD,MAAsB,eAAgB,SAAQ,+BAAc;
|
|
1
|
+
{"version":3,"file":"AbstractCountry.js","sourceRoot":"","sources":["../../../../src/attributes/types/strings/AbstractCountry.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAAwD;AACxD,qDAMkC;AAClC,qEAA+D;AAC/D,sDAAkD;AAElD,MAAsB,eAAgB,SAAQ,+BAAc;IAQjD,MAAM,KAAc,UAAU;QACjC,OAAO,KAAK,CAAC,UAAU,CAAC,QAAQ,CAAC;YAC7B,GAAG,EAAE,CAAC;YACN,GAAG,EAAE,CAAC;YACN,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,+BAAa,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAC/C,uBAAe,CAAC,IAAI,CAAC,EAAE,GAAG,EAAE,KAAK,EAAE,WAAW,EAAE,sCAAsC,KAAK,EAAE,EAAE,CAAC,CACnG;SACJ,CAAC,CAAA;IACN,CAAC;IAEM,MAAM,KAAc,WAAW;QAClC,OAAO,KAAK,CAAC,WAAW,CAAC,QAAQ,CAAC;YAC9B,QAAQ,EAAE,2BAAmB,CAAC,UAAU;YACxC,QAAQ,EAAE,2BAAmB,CAAC,OAAO;SACxC,CAAC,CAAA;IACN,CAAC;CACJ;AAlBG;IALC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC;QACN,eAAe,EAAE,CAAC,CAAC,EAAE,EAAE,CACnB,CAAC,MAAM,CAAC,MAAM,CAAC,+BAAa,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,mBAAmB,MAAM,CAAC,MAAM,CAAC,+BAAa,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS;KAChH,CAAC;;8CACkC;AANxC,0CAwBC"}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
+
import { RenderHints, ValueHints } from "../../../attributes/hints";
|
|
1
2
|
import { AbstractString } from "../AbstractString";
|
|
2
3
|
export declare abstract class AbstractDataURL extends AbstractString {
|
|
3
4
|
value: string;
|
|
5
|
+
static get valueHints(): ValueHints;
|
|
6
|
+
static get renderHints(): RenderHints;
|
|
4
7
|
}
|
|
@@ -11,12 +11,27 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.AbstractDataURL = void 0;
|
|
13
13
|
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
14
|
+
const hints_1 = require("../../../attributes/hints");
|
|
14
15
|
const AbstractString_1 = require("../AbstractString");
|
|
15
16
|
class AbstractDataURL extends AbstractString_1.AbstractString {
|
|
17
|
+
static get valueHints() {
|
|
18
|
+
return super.valueHints.copyWith({
|
|
19
|
+
min: 7,
|
|
20
|
+
max: 4096
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
static get renderHints() {
|
|
24
|
+
return super.renderHints.copyWith({
|
|
25
|
+
editType: hints_1.RenderHintsEditType.Upload,
|
|
26
|
+
dataType: hints_1.RenderHintsDataType.DataURL
|
|
27
|
+
});
|
|
28
|
+
}
|
|
16
29
|
}
|
|
17
30
|
__decorate([
|
|
18
31
|
(0, ts_serval_1.serialize)(),
|
|
19
32
|
(0, ts_serval_1.validate)({
|
|
33
|
+
min: 7,
|
|
34
|
+
max: 4096,
|
|
20
35
|
customValidator: (v) => (v.length > 4096 ? "must be less than 4096 characters" : undefined)
|
|
21
36
|
}),
|
|
22
37
|
__metadata("design:type", String)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AbstractDataURL.js","sourceRoot":"","sources":["../../../../src/attributes/types/strings/AbstractDataURL.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAAwD;AACxD,sDAAkD;AAElD,MAAsB,eAAgB,SAAQ,+BAAc;
|
|
1
|
+
{"version":3,"file":"AbstractDataURL.js","sourceRoot":"","sources":["../../../../src/attributes/types/strings/AbstractDataURL.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAAwD;AACxD,qDAA6G;AAC7G,sDAAkD;AAElD,MAAsB,eAAgB,SAAQ,+BAAc;IASjD,MAAM,KAAc,UAAU;QACjC,OAAO,KAAK,CAAC,UAAU,CAAC,QAAQ,CAAC;YAC7B,GAAG,EAAE,CAAC;YACN,GAAG,EAAE,IAAI;SACZ,CAAC,CAAA;IACN,CAAC;IAEM,MAAM,KAAc,WAAW;QAClC,OAAO,KAAK,CAAC,WAAW,CAAC,QAAQ,CAAC;YAC9B,QAAQ,EAAE,2BAAmB,CAAC,MAAM;YACpC,QAAQ,EAAE,2BAAmB,CAAC,OAAO;SACxC,CAAC,CAAA;IACN,CAAC;CACJ;AAfG;IANC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC;QACN,GAAG,EAAE,CAAC;QACN,GAAG,EAAE,IAAI;QACT,eAAe,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC,CAAC,mCAAmC,CAAC,CAAC,CAAC,SAAS,CAAC;KAC9F,CAAC;;8CAC2B;AAPjC,0CAsBC"}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
+
import { RenderHints, ValueHints } from "../../../attributes/hints";
|
|
1
2
|
import { AbstractString } from "../AbstractString";
|
|
2
3
|
export declare abstract class AbstractEMailAddress extends AbstractString {
|
|
3
4
|
value: string;
|
|
5
|
+
static get valueHints(): ValueHints;
|
|
6
|
+
static get renderHints(): RenderHints;
|
|
4
7
|
}
|
|
@@ -11,12 +11,28 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.AbstractEMailAddress = void 0;
|
|
13
13
|
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
14
|
+
const hints_1 = require("../../../attributes/hints");
|
|
14
15
|
const AbstractString_1 = require("../AbstractString");
|
|
15
16
|
class AbstractEMailAddress extends AbstractString_1.AbstractString {
|
|
17
|
+
static get valueHints() {
|
|
18
|
+
return super.valueHints.copyWith({
|
|
19
|
+
min: 3,
|
|
20
|
+
max: 200,
|
|
21
|
+
pattern: "/^[A-Z0-9._%+-]+@[A-Z0-9.-]+.[A-Z]{2,}$/i"
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
static get renderHints() {
|
|
25
|
+
return super.renderHints.copyWith({
|
|
26
|
+
editType: hints_1.RenderHintsEditType.InputLike,
|
|
27
|
+
dataType: hints_1.RenderHintsDataType.EMailAddress
|
|
28
|
+
});
|
|
29
|
+
}
|
|
16
30
|
}
|
|
17
31
|
__decorate([
|
|
18
32
|
(0, ts_serval_1.serialize)(),
|
|
19
33
|
(0, ts_serval_1.validate)({
|
|
34
|
+
min: 3,
|
|
35
|
+
max: 200,
|
|
20
36
|
regExp: new RegExp("^[A-Z0-9._%+-]+@[A-Z0-9.-]+.[A-Z]{2,}$", "i")
|
|
21
37
|
}),
|
|
22
38
|
__metadata("design:type", String)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AbstractEMailAddress.js","sourceRoot":"","sources":["../../../../src/attributes/types/strings/AbstractEMailAddress.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAAwD;AACxD,sDAAkD;AAElD,MAAsB,oBAAqB,SAAQ,+BAAc;
|
|
1
|
+
{"version":3,"file":"AbstractEMailAddress.js","sourceRoot":"","sources":["../../../../src/attributes/types/strings/AbstractEMailAddress.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAAwD;AACxD,qDAA6G;AAC7G,sDAAkD;AAElD,MAAsB,oBAAqB,SAAQ,+BAAc;IAUtD,MAAM,KAAc,UAAU;QACjC,OAAO,KAAK,CAAC,UAAU,CAAC,QAAQ,CAAC;YAC7B,GAAG,EAAE,CAAC;YACN,GAAG,EAAE,GAAG;YACR,OAAO,EAAE,2CAA2C;SACvD,CAAC,CAAA;IACN,CAAC;IAEM,MAAM,KAAc,WAAW;QAClC,OAAO,KAAK,CAAC,WAAW,CAAC,QAAQ,CAAC;YAC9B,QAAQ,EAAE,2BAAmB,CAAC,SAAS;YACvC,QAAQ,EAAE,2BAAmB,CAAC,YAAY;SAC7C,CAAC,CAAA;IACN,CAAC;CACJ;AAhBG;IANC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC;QACN,GAAG,EAAE,CAAC;QACN,GAAG,EAAE,GAAG;QACR,MAAM,EAAE,IAAI,MAAM,CAAC,wCAAwC,EAAE,GAAG,CAAC;KACpE,CAAC;;mDAC2B;AARjC,oDAwBC"}
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import { RenderHints, ValueHints } from "../../../attributes/hints";
|
|
1
2
|
import { AbstractString } from "../AbstractString";
|
|
2
3
|
export declare class AbstractFileReference extends AbstractString {
|
|
4
|
+
value: string;
|
|
5
|
+
static get valueHints(): ValueHints;
|
|
6
|
+
static get renderHints(): RenderHints;
|
|
3
7
|
}
|
|
@@ -1,8 +1,39 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
2
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
12
|
exports.AbstractFileReference = void 0;
|
|
13
|
+
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
14
|
+
const hints_1 = require("../../../attributes/hints");
|
|
4
15
|
const AbstractString_1 = require("../AbstractString");
|
|
5
16
|
class AbstractFileReference extends AbstractString_1.AbstractString {
|
|
17
|
+
static get valueHints() {
|
|
18
|
+
return super.valueHints.copyWith({
|
|
19
|
+
min: 30,
|
|
20
|
+
max: 1024
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
static get renderHints() {
|
|
24
|
+
return super.renderHints.copyWith({
|
|
25
|
+
editType: hints_1.RenderHintsEditType.SelectLike,
|
|
26
|
+
dataType: hints_1.RenderHintsDataType.FileReference
|
|
27
|
+
});
|
|
28
|
+
}
|
|
6
29
|
}
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, ts_serval_1.serialize)(),
|
|
32
|
+
(0, ts_serval_1.validate)({
|
|
33
|
+
min: 30,
|
|
34
|
+
max: 1024
|
|
35
|
+
}),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], AbstractFileReference.prototype, "value", void 0);
|
|
7
38
|
exports.AbstractFileReference = AbstractFileReference;
|
|
8
39
|
//# sourceMappingURL=AbstractFileReference.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AbstractFileReference.js","sourceRoot":"","sources":["../../../../src/attributes/types/strings/AbstractFileReference.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AbstractFileReference.js","sourceRoot":"","sources":["../../../../src/attributes/types/strings/AbstractFileReference.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAAwD;AACxD,qDAA6G;AAC7G,sDAAkD;AAElD,MAAa,qBAAsB,SAAQ,+BAAc;IAQ9C,MAAM,KAAc,UAAU;QACjC,OAAO,KAAK,CAAC,UAAU,CAAC,QAAQ,CAAC;YAC7B,GAAG,EAAE,EAAE;YACP,GAAG,EAAE,IAAI;SACZ,CAAC,CAAA;IACN,CAAC;IAEM,MAAM,KAAc,WAAW;QAClC,OAAO,KAAK,CAAC,WAAW,CAAC,QAAQ,CAAC;YAC9B,QAAQ,EAAE,2BAAmB,CAAC,UAAU;YACxC,QAAQ,EAAE,2BAAmB,CAAC,aAAa;SAC9C,CAAC,CAAA;IACN,CAAC;CACJ;AAfG;IALC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC;QACN,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,IAAI;KACZ,CAAC;;oDAC2B;AANjC,sDAqBC"}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
+
import { RenderHints, ValueHints } from "../../../attributes/hints";
|
|
1
2
|
import { AbstractString } from "../AbstractString";
|
|
2
3
|
export declare abstract class AbstractHEXColor extends AbstractString {
|
|
3
4
|
value: string;
|
|
5
|
+
static get valueHints(): ValueHints;
|
|
6
|
+
static get renderHints(): RenderHints;
|
|
4
7
|
}
|
|
@@ -11,12 +11,26 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.AbstractHEXColor = void 0;
|
|
13
13
|
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
14
|
+
const hints_1 = require("../../../attributes/hints");
|
|
14
15
|
const AbstractString_1 = require("../AbstractString");
|
|
15
16
|
class AbstractHEXColor extends AbstractString_1.AbstractString {
|
|
17
|
+
static get valueHints() {
|
|
18
|
+
return super.valueHints.copyWith({
|
|
19
|
+
min: 4,
|
|
20
|
+
max: 9,
|
|
21
|
+
pattern: "^#([0-9A-F]{3}){1,2}$/i"
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
static get renderHints() {
|
|
25
|
+
return super.renderHints.copyWith({
|
|
26
|
+
editType: hints_1.RenderHintsEditType.InputLike,
|
|
27
|
+
dataType: hints_1.RenderHintsDataType.HEXColor
|
|
28
|
+
});
|
|
29
|
+
}
|
|
16
30
|
}
|
|
17
31
|
__decorate([
|
|
18
32
|
(0, ts_serval_1.serialize)(),
|
|
19
|
-
(0, ts_serval_1.validate)({ regExp: new RegExp("^#([0-9A-F]{3}){1,2}$", "i") }),
|
|
33
|
+
(0, ts_serval_1.validate)({ min: 4, max: 9, regExp: new RegExp("^#([0-9A-F]{3}){1,2}$", "i") }),
|
|
20
34
|
__metadata("design:type", String)
|
|
21
35
|
], AbstractHEXColor.prototype, "value", void 0);
|
|
22
36
|
exports.AbstractHEXColor = AbstractHEXColor;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AbstractHEXColor.js","sourceRoot":"","sources":["../../../../src/attributes/types/strings/AbstractHEXColor.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAAwD;AACxD,sDAAkD;AAElD,MAAsB,gBAAiB,SAAQ,+BAAc;
|
|
1
|
+
{"version":3,"file":"AbstractHEXColor.js","sourceRoot":"","sources":["../../../../src/attributes/types/strings/AbstractHEXColor.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAAwD;AACxD,qDAA6G;AAC7G,sDAAkD;AAElD,MAAsB,gBAAiB,SAAQ,+BAAc;IAKlD,MAAM,KAAc,UAAU;QACjC,OAAO,KAAK,CAAC,UAAU,CAAC,QAAQ,CAAC;YAC7B,GAAG,EAAE,CAAC;YACN,GAAG,EAAE,CAAC;YACN,OAAO,EAAE,yBAAyB;SACrC,CAAC,CAAA;IACN,CAAC;IAEM,MAAM,KAAc,WAAW;QAClC,OAAO,KAAK,CAAC,WAAW,CAAC,QAAQ,CAAC;YAC9B,QAAQ,EAAE,2BAAmB,CAAC,SAAS;YACvC,QAAQ,EAAE,2BAAmB,CAAC,QAAQ;SACzC,CAAC,CAAA;IACN,CAAC;CACJ;AAhBG;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,MAAM,EAAE,IAAI,MAAM,CAAC,uBAAuB,EAAE,GAAG,CAAC,EAAE,CAAC;;+CAClD;AAHjC,4CAmBC"}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
+
import { RenderHints, ValueHints } from "../../../attributes/hints";
|
|
1
2
|
import { LanguageISO639 } from "../../constants/LanguagesISO639";
|
|
2
3
|
import { AbstractString } from "../AbstractString";
|
|
3
4
|
export declare abstract class AbstractLanguage extends AbstractString {
|
|
4
5
|
value: LanguageISO639;
|
|
6
|
+
static get valueHints(): ValueHints;
|
|
7
|
+
static get renderHints(): RenderHints;
|
|
5
8
|
}
|
|
@@ -11,13 +11,29 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.AbstractLanguage = void 0;
|
|
13
13
|
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
14
|
+
const hints_1 = require("../../../attributes/hints");
|
|
14
15
|
const LanguagesISO639_1 = require("../../constants/LanguagesISO639");
|
|
15
16
|
const AbstractString_1 = require("../AbstractString");
|
|
16
17
|
class AbstractLanguage extends AbstractString_1.AbstractString {
|
|
18
|
+
static get valueHints() {
|
|
19
|
+
return super.valueHints.copyWith({
|
|
20
|
+
min: 2,
|
|
21
|
+
max: 2,
|
|
22
|
+
values: Object.values(LanguagesISO639_1.LanguageISO639).map((value) => hints_1.ValueHintsValue.from({ key: value, displayName: `i18n://attributes.values.languages.${value}` }))
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
static get renderHints() {
|
|
26
|
+
return super.renderHints.copyWith({
|
|
27
|
+
editType: hints_1.RenderHintsEditType.SelectLike,
|
|
28
|
+
dataType: hints_1.RenderHintsDataType.Language
|
|
29
|
+
});
|
|
30
|
+
}
|
|
17
31
|
}
|
|
18
32
|
__decorate([
|
|
19
33
|
(0, ts_serval_1.serialize)(),
|
|
20
34
|
(0, ts_serval_1.validate)({
|
|
35
|
+
min: 2,
|
|
36
|
+
max: 2,
|
|
21
37
|
customValidator: (v) => !Object.values(LanguagesISO639_1.LanguageISO639).includes(v) ? `must be one of: ${Object.values(LanguagesISO639_1.LanguageISO639)}` : undefined
|
|
22
38
|
}),
|
|
23
39
|
__metadata("design:type", String)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AbstractLanguage.js","sourceRoot":"","sources":["../../../../src/attributes/types/strings/AbstractLanguage.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAAwD;AACxD,qEAAgE;AAChE,sDAAkD;AAElD,MAAsB,gBAAiB,SAAQ,+BAAc;
|
|
1
|
+
{"version":3,"file":"AbstractLanguage.js","sourceRoot":"","sources":["../../../../src/attributes/types/strings/AbstractLanguage.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAAwD;AACxD,qDAMkC;AAClC,qEAAgE;AAChE,sDAAkD;AAElD,MAAsB,gBAAiB,SAAQ,+BAAc;IAUlD,MAAM,KAAc,UAAU;QACjC,OAAO,KAAK,CAAC,UAAU,CAAC,QAAQ,CAAC;YAC7B,GAAG,EAAE,CAAC;YACN,GAAG,EAAE,CAAC;YACN,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,gCAAc,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAChD,uBAAe,CAAC,IAAI,CAAC,EAAE,GAAG,EAAE,KAAK,EAAE,WAAW,EAAE,sCAAsC,KAAK,EAAE,EAAE,CAAC,CACnG;SACJ,CAAC,CAAA;IACN,CAAC;IAEM,MAAM,KAAc,WAAW;QAClC,OAAO,KAAK,CAAC,WAAW,CAAC,QAAQ,CAAC;YAC9B,QAAQ,EAAE,2BAAmB,CAAC,UAAU;YACxC,QAAQ,EAAE,2BAAmB,CAAC,QAAQ;SACzC,CAAC,CAAA;IACN,CAAC;CACJ;AAlBG;IAPC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC;QACN,GAAG,EAAE,CAAC;QACN,GAAG,EAAE,CAAC;QACN,eAAe,EAAE,CAAC,CAAC,EAAE,EAAE,CACnB,CAAC,MAAM,CAAC,MAAM,CAAC,gCAAc,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,mBAAmB,MAAM,CAAC,MAAM,CAAC,gCAAc,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS;KAClH,CAAC;;+CACmC;AARzC,4CA0BC"}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
+
import { RenderHints, ValueHints } from "../../../attributes/hints";
|
|
1
2
|
import { AbstractString } from "../AbstractString";
|
|
2
3
|
export declare abstract class AbstractPhoneNumber extends AbstractString {
|
|
3
4
|
value: string;
|
|
5
|
+
static get valueHints(): ValueHints;
|
|
6
|
+
static get renderHints(): RenderHints;
|
|
4
7
|
}
|
|
@@ -11,12 +11,26 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.AbstractPhoneNumber = void 0;
|
|
13
13
|
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
14
|
+
const hints_1 = require("../../../attributes/hints");
|
|
14
15
|
const AbstractString_1 = require("../AbstractString");
|
|
15
16
|
class AbstractPhoneNumber extends AbstractString_1.AbstractString {
|
|
17
|
+
static get valueHints() {
|
|
18
|
+
return super.valueHints.copyWith({
|
|
19
|
+
min: 3,
|
|
20
|
+
max: 100,
|
|
21
|
+
pattern: "/^[d+-x#*()/[] ]{3,100}$/"
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
static get renderHints() {
|
|
25
|
+
return super.renderHints.copyWith({
|
|
26
|
+
editType: hints_1.RenderHintsEditType.InputLike,
|
|
27
|
+
dataType: hints_1.RenderHintsDataType.PhoneNumber
|
|
28
|
+
});
|
|
29
|
+
}
|
|
16
30
|
}
|
|
17
31
|
__decorate([
|
|
18
32
|
(0, ts_serval_1.serialize)(),
|
|
19
|
-
(0, ts_serval_1.validate)({ regExp: new RegExp(/^[\d+\-x#*()/[\] ]{3,100}$/) }),
|
|
33
|
+
(0, ts_serval_1.validate)({ min: 3, max: 100, regExp: new RegExp(/^[\d+\-x#*()/[\] ]{3,100}$/) }),
|
|
20
34
|
__metadata("design:type", String)
|
|
21
35
|
], AbstractPhoneNumber.prototype, "value", void 0);
|
|
22
36
|
exports.AbstractPhoneNumber = AbstractPhoneNumber;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AbstractPhoneNumber.js","sourceRoot":"","sources":["../../../../src/attributes/types/strings/AbstractPhoneNumber.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAAwD;AACxD,sDAAkD;AAElD,MAAsB,mBAAoB,SAAQ,+BAAc;
|
|
1
|
+
{"version":3,"file":"AbstractPhoneNumber.js","sourceRoot":"","sources":["../../../../src/attributes/types/strings/AbstractPhoneNumber.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAAwD;AACxD,qDAA6G;AAC7G,sDAAkD;AAElD,MAAsB,mBAAoB,SAAQ,+BAAc;IAKrD,MAAM,KAAc,UAAU;QACjC,OAAO,KAAK,CAAC,UAAU,CAAC,QAAQ,CAAC;YAC7B,GAAG,EAAE,CAAC;YACN,GAAG,EAAE,GAAG;YACR,OAAO,EAAE,2BAA2B;SACvC,CAAC,CAAA;IACN,CAAC;IAEM,MAAM,KAAc,WAAW;QAClC,OAAO,KAAK,CAAC,WAAW,CAAC,QAAQ,CAAC;YAC9B,QAAQ,EAAE,2BAAmB,CAAC,SAAS;YACvC,QAAQ,EAAE,2BAAmB,CAAC,WAAW;SAC5C,CAAC,CAAA;IACN,CAAC;CACJ;AAhBG;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,MAAM,CAAC,4BAA4B,CAAC,EAAE,CAAC;;kDACpD;AAHjC,kDAmBC"}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
+
import { RenderHints, ValueHints } from "../../../attributes/hints";
|
|
1
2
|
import { AbstractString } from "../AbstractString";
|
|
2
3
|
export declare abstract class AbstractURL extends AbstractString {
|
|
3
4
|
value: string;
|
|
5
|
+
static get valueHints(): ValueHints;
|
|
6
|
+
static get renderHints(): RenderHints;
|
|
4
7
|
}
|
|
@@ -11,12 +11,27 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.AbstractURL = void 0;
|
|
13
13
|
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
14
|
+
const hints_1 = require("../../../attributes/hints");
|
|
14
15
|
const AbstractString_1 = require("../AbstractString");
|
|
15
16
|
class AbstractURL extends AbstractString_1.AbstractString {
|
|
17
|
+
static get valueHints() {
|
|
18
|
+
return super.valueHints.copyWith({
|
|
19
|
+
min: 3,
|
|
20
|
+
max: 1024
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
static get renderHints() {
|
|
24
|
+
return super.renderHints.copyWith({
|
|
25
|
+
editType: hints_1.RenderHintsEditType.InputLike,
|
|
26
|
+
dataType: hints_1.RenderHintsDataType.URL
|
|
27
|
+
});
|
|
28
|
+
}
|
|
16
29
|
}
|
|
17
30
|
__decorate([
|
|
18
31
|
(0, ts_serval_1.serialize)(),
|
|
19
32
|
(0, ts_serval_1.validate)({
|
|
33
|
+
min: 3,
|
|
34
|
+
max: 1024,
|
|
20
35
|
regExp: new RegExp(
|
|
21
36
|
// eslint-disable-next-line no-useless-escape
|
|
22
37
|
/^((([A-Za-z]{3,9}:(?:\/\/)?)(?:[\-;:&=\+\$,\w]+@)?[A-Za-z0-9\.\-]+|(?:www\.|[\-;:&=\+\$,\w]+@)[A-Za-z0-9\.\-]+)((?:\/[\+~%\/\.\w\-_]*)?\??(?:[\-\+=&;%@\.\w_]*)#?(?:[\.\!\/\\\w]*))?)$/i)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AbstractURL.js","sourceRoot":"","sources":["../../../../src/attributes/types/strings/AbstractURL.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAAwD;AACxD,sDAAkD;AAElD,MAAsB,WAAY,SAAQ,+BAAc;
|
|
1
|
+
{"version":3,"file":"AbstractURL.js","sourceRoot":"","sources":["../../../../src/attributes/types/strings/AbstractURL.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAAwD;AACxD,qDAA6G;AAC7G,sDAAkD;AAElD,MAAsB,WAAY,SAAQ,+BAAc;IAY7C,MAAM,KAAc,UAAU;QACjC,OAAO,KAAK,CAAC,UAAU,CAAC,QAAQ,CAAC;YAC7B,GAAG,EAAE,CAAC;YACN,GAAG,EAAE,IAAI;SACZ,CAAC,CAAA;IACN,CAAC;IAEM,MAAM,KAAc,WAAW;QAClC,OAAO,KAAK,CAAC,WAAW,CAAC,QAAQ,CAAC;YAC9B,QAAQ,EAAE,2BAAmB,CAAC,SAAS;YACvC,QAAQ,EAAE,2BAAmB,CAAC,GAAG;SACpC,CAAC,CAAA;IACN,CAAC;CACJ;AAfG;IATC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC;QACN,GAAG,EAAE,CAAC;QACN,GAAG,EAAE,IAAI;QACT,MAAM,EAAE,IAAI,MAAM;QACd,6CAA6C;QAC7C,yLAAyL,CAC5L;KACJ,CAAC;;0CAC2B;AAVjC,kCAyBC"}
|
package/dist/buildInformation.js
CHANGED
|
@@ -5,10 +5,10 @@ const ts_serval_1 = require("@js-soft/ts-serval");
|
|
|
5
5
|
const crypto_1 = require("@nmshd/crypto");
|
|
6
6
|
const transport_1 = require("@nmshd/transport");
|
|
7
7
|
exports.buildInformation = {
|
|
8
|
-
version: "2.0.0-alpha.
|
|
9
|
-
build: "
|
|
10
|
-
date: "2022-
|
|
11
|
-
commit: "
|
|
8
|
+
version: "2.0.0-alpha.26",
|
|
9
|
+
build: "56",
|
|
10
|
+
date: "2022-06-01T14:59:40+00:00",
|
|
11
|
+
commit: "e17046b22ed10ace0f3d161b8e2d01c516917249",
|
|
12
12
|
dependencies: {"@js-soft/logging-abstractions":"^1.0.0"},
|
|
13
13
|
libraries: {
|
|
14
14
|
serval: ts_serval_1.buildInformation,
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ISerializable, Serializable } from "@js-soft/ts-serval";
|
|
2
|
+
import { CoreId, ICoreId } from "@nmshd/transport";
|
|
3
|
+
import { ContentJSON } from "../../../ContentJSON";
|
|
4
|
+
export interface CreateAttributeAcceptResponseItemJSON extends ContentJSON {
|
|
5
|
+
attributeId: string;
|
|
6
|
+
}
|
|
7
|
+
export interface ICreateAttributeAcceptResponseItem extends ISerializable {
|
|
8
|
+
attributeId: ICoreId;
|
|
9
|
+
}
|
|
10
|
+
export declare class CreateAttributeAcceptResponseItem extends Serializable implements ICreateAttributeAcceptResponseItem {
|
|
11
|
+
attributeId: CoreId;
|
|
12
|
+
static from(value: ICreateAttributeAcceptResponseItem | CreateAttributeAcceptResponseItemJSON): CreateAttributeAcceptResponseItem;
|
|
13
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.CreateAttributeAcceptResponseItem = void 0;
|
|
13
|
+
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
14
|
+
const transport_1 = require("@nmshd/transport");
|
|
15
|
+
let CreateAttributeAcceptResponseItem = class CreateAttributeAcceptResponseItem extends ts_serval_1.Serializable {
|
|
16
|
+
static from(value) {
|
|
17
|
+
return this.fromAny(value);
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, ts_serval_1.serialize)(),
|
|
22
|
+
(0, ts_serval_1.validate)(),
|
|
23
|
+
__metadata("design:type", transport_1.CoreId)
|
|
24
|
+
], CreateAttributeAcceptResponseItem.prototype, "attributeId", void 0);
|
|
25
|
+
CreateAttributeAcceptResponseItem = __decorate([
|
|
26
|
+
(0, ts_serval_1.type)("CreateAttributeAcceptResponseItem")
|
|
27
|
+
], CreateAttributeAcceptResponseItem);
|
|
28
|
+
exports.CreateAttributeAcceptResponseItem = CreateAttributeAcceptResponseItem;
|
|
29
|
+
//# sourceMappingURL=CreateAttributeAcceptResponseItem.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CreateAttributeAcceptResponseItem.js","sourceRoot":"","sources":["../../../../src/requests/items/createAttribute/CreateAttributeAcceptResponseItem.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA2F;AAC3F,gDAAkD;AAYlD,IAAa,iCAAiC,GAA9C,MAAa,iCAAkC,SAAQ,wBAAY;IAKxD,MAAM,CAAC,IAAI,CACd,KAAiF;QAEjF,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAC9B,CAAC;CACJ,CAAA;AAPG;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;8BACS,kBAAM;sEAAA;AAHjB,iCAAiC;IAD7C,IAAA,gBAAI,EAAC,mCAAmC,CAAC;GAC7B,iCAAiC,CAU7C;AAVY,8EAAiC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { RequestItemJSON } from "../..";
|
|
2
|
+
import { IdentityAttribute, IdentityAttributeJSON, IIdentityAttribute, IRelationshipAttribute, RelationshipAttribute, RelationshipAttributeJSON } from "../../../attributes";
|
|
3
|
+
import { IRequestItem, RequestItem } from "../../RequestItem";
|
|
4
|
+
export interface CreateAttributeRequestItemJSON extends RequestItemJSON {
|
|
5
|
+
attribute: IdentityAttributeJSON | RelationshipAttributeJSON;
|
|
6
|
+
}
|
|
7
|
+
export interface ICreateAttributeRequestItem extends IRequestItem {
|
|
8
|
+
attribute: IIdentityAttribute | IRelationshipAttribute;
|
|
9
|
+
}
|
|
10
|
+
export declare class CreateAttributeRequestItem extends RequestItem implements ICreateAttributeRequestItem {
|
|
11
|
+
attribute: IdentityAttribute | RelationshipAttribute;
|
|
12
|
+
static from(value: ICreateAttributeRequestItem | CreateAttributeRequestItemJSON): CreateAttributeRequestItem;
|
|
13
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.CreateAttributeRequestItem = void 0;
|
|
13
|
+
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
14
|
+
const RequestItem_1 = require("../../RequestItem");
|
|
15
|
+
let CreateAttributeRequestItem = class CreateAttributeRequestItem extends RequestItem_1.RequestItem {
|
|
16
|
+
static from(value) {
|
|
17
|
+
return this.fromAny(value);
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, ts_serval_1.serialize)(),
|
|
22
|
+
(0, ts_serval_1.validate)(),
|
|
23
|
+
__metadata("design:type", Object)
|
|
24
|
+
], CreateAttributeRequestItem.prototype, "attribute", void 0);
|
|
25
|
+
CreateAttributeRequestItem = __decorate([
|
|
26
|
+
(0, ts_serval_1.type)("CreateAttributeRequestItem")
|
|
27
|
+
], CreateAttributeRequestItem);
|
|
28
|
+
exports.CreateAttributeRequestItem = CreateAttributeRequestItem;
|
|
29
|
+
//# sourceMappingURL=CreateAttributeRequestItem.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CreateAttributeRequestItem.js","sourceRoot":"","sources":["../../../../src/requests/items/createAttribute/CreateAttributeRequestItem.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA8D;AAU9D,mDAA6D;AAW7D,IAAa,0BAA0B,GAAvC,MAAa,0BAA2B,SAAQ,yBAAW;IAKhD,MAAM,CAAC,IAAI,CACd,KAAmE;QAEnE,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAC9B,CAAC;CACJ,CAAA;AAPG;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;;6DACgD;AAHlD,0BAA0B;IADtC,IAAA,gBAAI,EAAC,4BAA4B,CAAC;GACtB,0BAA0B,CAUtC;AAVY,gEAA0B"}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { AbstractAttributeQuery, IAbstractAttributeQuery } from "../../../attributes/AbstractAttributeQuery";
|
|
1
|
+
import { AbstractAttributeQuery, AbstractAttributeQueryJSON, IAbstractAttributeQuery } from "../../../attributes/AbstractAttributeQuery";
|
|
2
2
|
import { IRequestItem, RequestItem, RequestItemJSON } from "../../RequestItem";
|
|
3
3
|
export interface ReadAttributeRequestItemJSON extends RequestItemJSON {
|
|
4
|
+
query: AbstractAttributeQueryJSON;
|
|
4
5
|
}
|
|
5
6
|
export interface IReadAttributeRequestItem extends IRequestItem {
|
|
6
7
|
query: IAbstractAttributeQuery;
|
|
7
8
|
}
|
|
8
9
|
export declare class ReadAttributeRequestItem extends RequestItem implements IReadAttributeRequestItem {
|
|
9
10
|
query: AbstractAttributeQuery;
|
|
10
|
-
static from(value: IReadAttributeRequestItem): ReadAttributeRequestItem;
|
|
11
|
+
static from(value: IReadAttributeRequestItem | ReadAttributeRequestItemJSON): ReadAttributeRequestItem;
|
|
11
12
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReadAttributeRequestItem.js","sourceRoot":"","sources":["../../../../src/requests/items/readAttribute/ReadAttributeRequestItem.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA8D;AAC9D,
|
|
1
|
+
{"version":3,"file":"ReadAttributeRequestItem.js","sourceRoot":"","sources":["../../../../src/requests/items/readAttribute/ReadAttributeRequestItem.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA8D;AAC9D,uFAImD;AACnD,mDAA8E;AAW9E,IAAa,wBAAwB,GAArC,MAAa,wBAAyB,SAAQ,yBAAW;IAK9C,MAAM,CAAC,IAAI,CAAC,KAA+D;QAC9E,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAC9B,CAAC;CACJ,CAAA;AALG;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;8BACG,+CAAsB;uDAAA;AAH3B,wBAAwB;IADpC,IAAA,gBAAI,EAAC,0BAA0B,CAAC;GACpB,wBAAwB,CAQpC;AARY,4DAAwB"}
|