@nmshd/content 2.0.0-alpha.21 → 2.0.0-alpha.24
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 +1 -1
- package/dist/attributes/AbstractAttributeQuery.js +2 -1
- package/dist/attributes/AbstractAttributeQuery.js.map +1 -1
- package/dist/attributes/RelationshipAttribute.d.ts +1 -0
- package/dist/attributes/RelationshipAttribute.js +5 -4
- package/dist/attributes/RelationshipAttribute.js.map +1 -1
- package/dist/attributes/hints/RenderHints.d.ts +6 -2
- package/dist/attributes/hints/RenderHints.js +3 -0
- package/dist/attributes/hints/RenderHints.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 +2 -0
- package/dist/attributes/types/person/Sex.js +6 -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/lib-web/nmshd.content.js +246 -14
- package/lib-web/nmshd.content.min.js +1 -1
- package/package.json +1 -1
package/lib-web/nmshd.content.js
CHANGED
|
@@ -82,7 +82,8 @@ class AbstractAttributeQuery extends transport_1.CoreSerializable {
|
|
|
82
82
|
__decorate([
|
|
83
83
|
(0, ts_serval_1.serialize)(),
|
|
84
84
|
(0, ts_serval_1.validate)({
|
|
85
|
-
customValidator: (v) => (v === "" ? "must not be an empty string" : undefined)
|
|
85
|
+
customValidator: (v) => (v === "" ? "must not be an empty string" : undefined),
|
|
86
|
+
nullable: true
|
|
86
87
|
}),
|
|
87
88
|
__metadata("design:type", String)
|
|
88
89
|
], AbstractAttributeQuery.prototype, "valueType", void 0);
|
|
@@ -357,9 +358,10 @@ var RelationshipAttributeConfidentiality;
|
|
|
357
358
|
RelationshipAttributeConfidentiality["Protected"] = "protected";
|
|
358
359
|
})(RelationshipAttributeConfidentiality = exports.RelationshipAttributeConfidentiality || (exports.RelationshipAttributeConfidentiality = {}));
|
|
359
360
|
let RelationshipAttribute = class RelationshipAttribute extends AbstractAttribute_1.AbstractAttribute {
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
361
|
+
static preFrom(value) {
|
|
362
|
+
if (typeof value.isTechnical === "undefined")
|
|
363
|
+
value.isTechnical = false;
|
|
364
|
+
return value;
|
|
363
365
|
}
|
|
364
366
|
static from(value) {
|
|
365
367
|
return this.fromAny(value);
|
|
@@ -378,7 +380,7 @@ __decorate([
|
|
|
378
380
|
__decorate([
|
|
379
381
|
(0, ts_serval_1.serialize)(),
|
|
380
382
|
(0, ts_serval_1.validate)({ nullable: true }),
|
|
381
|
-
__metadata("design:type",
|
|
383
|
+
__metadata("design:type", Boolean)
|
|
382
384
|
], RelationshipAttribute.prototype, "isTechnical", void 0);
|
|
383
385
|
__decorate([
|
|
384
386
|
(0, ts_serval_1.serialize)(),
|
|
@@ -1509,6 +1511,9 @@ var RenderHintsDataType;
|
|
|
1509
1511
|
RenderHintsDataType["DateTimePeriod"] = "DateTimePeriod";
|
|
1510
1512
|
RenderHintsDataType["Time"] = "Time";
|
|
1511
1513
|
RenderHintsDataType["TimePeriod"] = "TimePeriod";
|
|
1514
|
+
RenderHintsDataType["Day"] = "Day";
|
|
1515
|
+
RenderHintsDataType["Month"] = "Month";
|
|
1516
|
+
RenderHintsDataType["Year"] = "Year";
|
|
1512
1517
|
})(RenderHintsDataType = exports.RenderHintsDataType || (exports.RenderHintsDataType = {}));
|
|
1513
1518
|
let RenderHints = RenderHints_1 = class RenderHints extends ts_serval_1.Serializable {
|
|
1514
1519
|
static from(value) {
|
|
@@ -1816,6 +1821,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
1816
1821
|
exports.AbstractBoolean = void 0;
|
|
1817
1822
|
const ts_serval_1 = __webpack_require__(/*! @js-soft/ts-serval */ "@js-soft/ts-serval");
|
|
1818
1823
|
const AbstractAttributeValue_1 = __webpack_require__(/*! ../AbstractAttributeValue */ "./dist/attributes/AbstractAttributeValue.js");
|
|
1824
|
+
const hints_1 = __webpack_require__(/*! ../hints */ "./dist/attributes/hints/index.js");
|
|
1819
1825
|
class AbstractBoolean extends AbstractAttributeValue_1.AbstractAttributeValue {
|
|
1820
1826
|
static preFrom(value) {
|
|
1821
1827
|
if (typeof value === "boolean")
|
|
@@ -1825,6 +1831,15 @@ class AbstractBoolean extends AbstractAttributeValue_1.AbstractAttributeValue {
|
|
|
1825
1831
|
toString() {
|
|
1826
1832
|
return `${this.value}`;
|
|
1827
1833
|
}
|
|
1834
|
+
static get valueHints() {
|
|
1835
|
+
return hints_1.ValueHints.from({});
|
|
1836
|
+
}
|
|
1837
|
+
static get renderHints() {
|
|
1838
|
+
return hints_1.RenderHints.from({
|
|
1839
|
+
editType: hints_1.RenderHintsEditType.InputLike,
|
|
1840
|
+
technicalType: hints_1.RenderHintsTechnicalType.Boolean
|
|
1841
|
+
});
|
|
1842
|
+
}
|
|
1828
1843
|
}
|
|
1829
1844
|
__decorate([
|
|
1830
1845
|
(0, ts_serval_1.serialize)(),
|
|
@@ -1856,6 +1871,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
1856
1871
|
exports.AbstractFloat = void 0;
|
|
1857
1872
|
const ts_serval_1 = __webpack_require__(/*! @js-soft/ts-serval */ "@js-soft/ts-serval");
|
|
1858
1873
|
const AbstractAttributeValue_1 = __webpack_require__(/*! ../AbstractAttributeValue */ "./dist/attributes/AbstractAttributeValue.js");
|
|
1874
|
+
const hints_1 = __webpack_require__(/*! ../hints */ "./dist/attributes/hints/index.js");
|
|
1859
1875
|
class AbstractFloat extends AbstractAttributeValue_1.AbstractAttributeValue {
|
|
1860
1876
|
static preFrom(value) {
|
|
1861
1877
|
if (typeof value === "number")
|
|
@@ -1865,6 +1881,15 @@ class AbstractFloat extends AbstractAttributeValue_1.AbstractAttributeValue {
|
|
|
1865
1881
|
toString() {
|
|
1866
1882
|
return `${this.value}`;
|
|
1867
1883
|
}
|
|
1884
|
+
static get valueHints() {
|
|
1885
|
+
return hints_1.ValueHints.from({});
|
|
1886
|
+
}
|
|
1887
|
+
static get renderHints() {
|
|
1888
|
+
return hints_1.RenderHints.from({
|
|
1889
|
+
editType: hints_1.RenderHintsEditType.ButtonLike,
|
|
1890
|
+
technicalType: hints_1.RenderHintsTechnicalType.Float
|
|
1891
|
+
});
|
|
1892
|
+
}
|
|
1868
1893
|
}
|
|
1869
1894
|
__decorate([
|
|
1870
1895
|
(0, ts_serval_1.serialize)(),
|
|
@@ -1911,7 +1936,7 @@ class AbstractInteger extends AbstractAttributeValue_1.AbstractAttributeValue {
|
|
|
1911
1936
|
}
|
|
1912
1937
|
static get renderHints() {
|
|
1913
1938
|
return hints_1.RenderHints.from({
|
|
1914
|
-
editType: hints_1.RenderHintsEditType.
|
|
1939
|
+
editType: hints_1.RenderHintsEditType.ButtonLike,
|
|
1915
1940
|
technicalType: hints_1.RenderHintsTechnicalType.Integer
|
|
1916
1941
|
});
|
|
1917
1942
|
}
|
|
@@ -1949,6 +1974,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
1949
1974
|
exports.AbstractString = void 0;
|
|
1950
1975
|
const ts_serval_1 = __webpack_require__(/*! @js-soft/ts-serval */ "@js-soft/ts-serval");
|
|
1951
1976
|
const AbstractAttributeValue_1 = __webpack_require__(/*! ../AbstractAttributeValue */ "./dist/attributes/AbstractAttributeValue.js");
|
|
1977
|
+
const hints_1 = __webpack_require__(/*! ../hints */ "./dist/attributes/hints/index.js");
|
|
1952
1978
|
class AbstractString extends AbstractAttributeValue_1.AbstractAttributeValue {
|
|
1953
1979
|
static preFrom(value) {
|
|
1954
1980
|
if (typeof value === "string")
|
|
@@ -1958,10 +1984,21 @@ class AbstractString extends AbstractAttributeValue_1.AbstractAttributeValue {
|
|
|
1958
1984
|
toString() {
|
|
1959
1985
|
return `${this.value}`;
|
|
1960
1986
|
}
|
|
1987
|
+
static get valueHints() {
|
|
1988
|
+
return hints_1.ValueHints.from({
|
|
1989
|
+
max: 200
|
|
1990
|
+
});
|
|
1991
|
+
}
|
|
1992
|
+
static get renderHints() {
|
|
1993
|
+
return hints_1.RenderHints.from({
|
|
1994
|
+
editType: hints_1.RenderHintsEditType.InputLike,
|
|
1995
|
+
technicalType: hints_1.RenderHintsTechnicalType.String
|
|
1996
|
+
});
|
|
1997
|
+
}
|
|
1961
1998
|
}
|
|
1962
1999
|
__decorate([
|
|
1963
2000
|
(0, ts_serval_1.serialize)(),
|
|
1964
|
-
(0, ts_serval_1.validate)(),
|
|
2001
|
+
(0, ts_serval_1.validate)({ max: 200 }),
|
|
1965
2002
|
__metadata("design:type", String)
|
|
1966
2003
|
], AbstractString.prototype, "value", void 0);
|
|
1967
2004
|
exports.AbstractString = AbstractString;
|
|
@@ -3020,13 +3057,28 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
3020
3057
|
exports.AbstractDateString = void 0;
|
|
3021
3058
|
const ts_serval_1 = __webpack_require__(/*! @js-soft/ts-serval */ "@js-soft/ts-serval");
|
|
3022
3059
|
const luxon_1 = __webpack_require__(/*! luxon */ "./node_modules/luxon/build/cjs-browser/luxon.js");
|
|
3060
|
+
const hints_1 = __webpack_require__(/*! ../../../attributes/hints */ "./dist/attributes/hints/index.js");
|
|
3023
3061
|
const AbstractString_1 = __webpack_require__(/*! ../AbstractString */ "./dist/attributes/types/AbstractString.js");
|
|
3024
3062
|
class AbstractDateString extends AbstractString_1.AbstractString {
|
|
3063
|
+
static get valueHints() {
|
|
3064
|
+
return super.valueHints.copyWith({
|
|
3065
|
+
min: 10,
|
|
3066
|
+
max: 10
|
|
3067
|
+
});
|
|
3068
|
+
}
|
|
3069
|
+
static get renderHints() {
|
|
3070
|
+
return super.renderHints.copyWith({
|
|
3071
|
+
editType: hints_1.RenderHintsEditType.SelectLike,
|
|
3072
|
+
dataType: hints_1.RenderHintsDataType.Date
|
|
3073
|
+
});
|
|
3074
|
+
}
|
|
3025
3075
|
}
|
|
3026
3076
|
AbstractDateString.format = "yyyy-MM-dd";
|
|
3027
3077
|
__decorate([
|
|
3028
3078
|
(0, ts_serval_1.serialize)(),
|
|
3029
3079
|
(0, ts_serval_1.validate)({
|
|
3080
|
+
min: 10,
|
|
3081
|
+
max: 10,
|
|
3030
3082
|
customValidator: (v) => !luxon_1.DateTime.fromFormat(v, AbstractDateString.format).isValid
|
|
3031
3083
|
? `must match the following format: '${AbstractDateString.format}'`
|
|
3032
3084
|
: undefined
|
|
@@ -3057,11 +3109,24 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
3057
3109
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
3058
3110
|
exports.AbstractDay = void 0;
|
|
3059
3111
|
const ts_serval_1 = __webpack_require__(/*! @js-soft/ts-serval */ "@js-soft/ts-serval");
|
|
3112
|
+
const hints_1 = __webpack_require__(/*! ../../../attributes/hints */ "./dist/attributes/hints/index.js");
|
|
3060
3113
|
const AbstractInteger_1 = __webpack_require__(/*! ../AbstractInteger */ "./dist/attributes/types/AbstractInteger.js");
|
|
3061
3114
|
/**
|
|
3062
3115
|
* day values start with 1 = first day of month
|
|
3063
3116
|
*/
|
|
3064
3117
|
class AbstractDay extends AbstractInteger_1.AbstractInteger {
|
|
3118
|
+
static get valueHints() {
|
|
3119
|
+
return super.valueHints.copyWith({
|
|
3120
|
+
min: 1,
|
|
3121
|
+
max: 31
|
|
3122
|
+
});
|
|
3123
|
+
}
|
|
3124
|
+
static get renderHints() {
|
|
3125
|
+
return super.renderHints.copyWith({
|
|
3126
|
+
editType: hints_1.RenderHintsEditType.ButtonLike,
|
|
3127
|
+
dataType: hints_1.RenderHintsDataType.Day
|
|
3128
|
+
});
|
|
3129
|
+
}
|
|
3065
3130
|
}
|
|
3066
3131
|
__decorate([
|
|
3067
3132
|
(0, ts_serval_1.serialize)(),
|
|
@@ -3094,6 +3159,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
3094
3159
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
3095
3160
|
exports.AbstractMonth = void 0;
|
|
3096
3161
|
const ts_serval_1 = __webpack_require__(/*! @js-soft/ts-serval */ "@js-soft/ts-serval");
|
|
3162
|
+
const hints_1 = __webpack_require__(/*! ../../../attributes/hints */ "./dist/attributes/hints/index.js");
|
|
3097
3163
|
const AbstractInteger_1 = __webpack_require__(/*! ../AbstractInteger */ "./dist/attributes/types/AbstractInteger.js");
|
|
3098
3164
|
/**
|
|
3099
3165
|
* Month values: 1 (january) - 12 (december)
|
|
@@ -3123,6 +3189,12 @@ class AbstractMonth extends AbstractInteger_1.AbstractInteger {
|
|
|
3123
3189
|
max: 12
|
|
3124
3190
|
});
|
|
3125
3191
|
}
|
|
3192
|
+
static get renderHints() {
|
|
3193
|
+
return super.renderHints.copyWith({
|
|
3194
|
+
editType: hints_1.RenderHintsEditType.ButtonLike,
|
|
3195
|
+
dataType: hints_1.RenderHintsDataType.Month
|
|
3196
|
+
});
|
|
3197
|
+
}
|
|
3126
3198
|
}
|
|
3127
3199
|
__decorate([
|
|
3128
3200
|
(0, ts_serval_1.serialize)(),
|
|
@@ -3157,8 +3229,21 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
3157
3229
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
3158
3230
|
exports.AbstractYear = void 0;
|
|
3159
3231
|
const ts_serval_1 = __webpack_require__(/*! @js-soft/ts-serval */ "@js-soft/ts-serval");
|
|
3232
|
+
const hints_1 = __webpack_require__(/*! ../../../attributes/hints */ "./dist/attributes/hints/index.js");
|
|
3160
3233
|
const AbstractInteger_1 = __webpack_require__(/*! ../AbstractInteger */ "./dist/attributes/types/AbstractInteger.js");
|
|
3161
3234
|
class AbstractYear extends AbstractInteger_1.AbstractInteger {
|
|
3235
|
+
static get valueHints() {
|
|
3236
|
+
return super.valueHints.copyWith({
|
|
3237
|
+
min: 1,
|
|
3238
|
+
max: 9999
|
|
3239
|
+
});
|
|
3240
|
+
}
|
|
3241
|
+
static get renderHints() {
|
|
3242
|
+
return super.renderHints.copyWith({
|
|
3243
|
+
editType: hints_1.RenderHintsEditType.ButtonLike,
|
|
3244
|
+
dataType: hints_1.RenderHintsDataType.Year
|
|
3245
|
+
});
|
|
3246
|
+
}
|
|
3162
3247
|
}
|
|
3163
3248
|
__decorate([
|
|
3164
3249
|
(0, ts_serval_1.serialize)(),
|
|
@@ -3821,6 +3906,12 @@ exports.Age = void 0;
|
|
|
3821
3906
|
const ts_serval_1 = __webpack_require__(/*! @js-soft/ts-serval */ "@js-soft/ts-serval");
|
|
3822
3907
|
const AbstractInteger_1 = __webpack_require__(/*! ../AbstractInteger */ "./dist/attributes/types/AbstractInteger.js");
|
|
3823
3908
|
let Age = class Age extends AbstractInteger_1.AbstractInteger {
|
|
3909
|
+
static get valueHints() {
|
|
3910
|
+
return super.valueHints.copyWith({
|
|
3911
|
+
min: 0,
|
|
3912
|
+
max: 151
|
|
3913
|
+
});
|
|
3914
|
+
}
|
|
3824
3915
|
};
|
|
3825
3916
|
__decorate([
|
|
3826
3917
|
(0, ts_serval_1.serialize)(),
|
|
@@ -3937,6 +4028,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
3937
4028
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
3938
4029
|
exports.Sex = exports.BiologicalSex = void 0;
|
|
3939
4030
|
const ts_serval_1 = __webpack_require__(/*! @js-soft/ts-serval */ "@js-soft/ts-serval");
|
|
4031
|
+
const hints_1 = __webpack_require__(/*! ../../../attributes/hints */ "./dist/attributes/hints/index.js");
|
|
3940
4032
|
const AbstractString_1 = __webpack_require__(/*! ../AbstractString */ "./dist/attributes/types/AbstractString.js");
|
|
3941
4033
|
/**
|
|
3942
4034
|
* Biologisches Geschlecht
|
|
@@ -3948,6 +4040,11 @@ var BiologicalSex;
|
|
|
3948
4040
|
BiologicalSex["X"] = "intersex";
|
|
3949
4041
|
})(BiologicalSex = exports.BiologicalSex || (exports.BiologicalSex = {}));
|
|
3950
4042
|
let Sex = class Sex extends AbstractString_1.AbstractString {
|
|
4043
|
+
static get valueHints() {
|
|
4044
|
+
return super.valueHints.copyWith({
|
|
4045
|
+
values: Object.keys(BiologicalSex).map((value) => hints_1.ValueHintsValue.from({ key: value, displayName: `i18n://attributes.values.sex.${value}` }))
|
|
4046
|
+
});
|
|
4047
|
+
}
|
|
3951
4048
|
};
|
|
3952
4049
|
__decorate([
|
|
3953
4050
|
(0, ts_serval_1.serialize)(),
|
|
@@ -4399,9 +4496,23 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
4399
4496
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
4400
4497
|
exports.AbstractCountry = void 0;
|
|
4401
4498
|
const ts_serval_1 = __webpack_require__(/*! @js-soft/ts-serval */ "@js-soft/ts-serval");
|
|
4499
|
+
const hints_1 = __webpack_require__(/*! ../../../attributes/hints */ "./dist/attributes/hints/index.js");
|
|
4402
4500
|
const CountriesAlpha2_1 = __webpack_require__(/*! ../../constants/CountriesAlpha2 */ "./dist/attributes/constants/CountriesAlpha2.js");
|
|
4403
4501
|
const AbstractString_1 = __webpack_require__(/*! ../AbstractString */ "./dist/attributes/types/AbstractString.js");
|
|
4404
4502
|
class AbstractCountry extends AbstractString_1.AbstractString {
|
|
4503
|
+
static get valueHints() {
|
|
4504
|
+
return super.valueHints.copyWith({
|
|
4505
|
+
min: 2,
|
|
4506
|
+
max: 2,
|
|
4507
|
+
values: Object.values(CountriesAlpha2_1.CountryAlpha2).map((value) => hints_1.ValueHintsValue.from({ key: value, displayName: `i18n://attributes.values.countries.${value}` }))
|
|
4508
|
+
});
|
|
4509
|
+
}
|
|
4510
|
+
static get renderHints() {
|
|
4511
|
+
return super.renderHints.copyWith({
|
|
4512
|
+
editType: hints_1.RenderHintsEditType.SelectLike,
|
|
4513
|
+
dataType: hints_1.RenderHintsDataType.Country
|
|
4514
|
+
});
|
|
4515
|
+
}
|
|
4405
4516
|
}
|
|
4406
4517
|
__decorate([
|
|
4407
4518
|
(0, ts_serval_1.serialize)(),
|
|
@@ -4434,12 +4545,27 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
4434
4545
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
4435
4546
|
exports.AbstractDataURL = void 0;
|
|
4436
4547
|
const ts_serval_1 = __webpack_require__(/*! @js-soft/ts-serval */ "@js-soft/ts-serval");
|
|
4548
|
+
const hints_1 = __webpack_require__(/*! ../../../attributes/hints */ "./dist/attributes/hints/index.js");
|
|
4437
4549
|
const AbstractString_1 = __webpack_require__(/*! ../AbstractString */ "./dist/attributes/types/AbstractString.js");
|
|
4438
4550
|
class AbstractDataURL extends AbstractString_1.AbstractString {
|
|
4551
|
+
static get valueHints() {
|
|
4552
|
+
return super.valueHints.copyWith({
|
|
4553
|
+
min: 7,
|
|
4554
|
+
max: 4096
|
|
4555
|
+
});
|
|
4556
|
+
}
|
|
4557
|
+
static get renderHints() {
|
|
4558
|
+
return super.renderHints.copyWith({
|
|
4559
|
+
editType: hints_1.RenderHintsEditType.Upload,
|
|
4560
|
+
dataType: hints_1.RenderHintsDataType.DataURL
|
|
4561
|
+
});
|
|
4562
|
+
}
|
|
4439
4563
|
}
|
|
4440
4564
|
__decorate([
|
|
4441
4565
|
(0, ts_serval_1.serialize)(),
|
|
4442
4566
|
(0, ts_serval_1.validate)({
|
|
4567
|
+
min: 7,
|
|
4568
|
+
max: 4096,
|
|
4443
4569
|
customValidator: (v) => (v.length > 4096 ? "must be less than 4096 characters" : undefined)
|
|
4444
4570
|
}),
|
|
4445
4571
|
__metadata("design:type", String)
|
|
@@ -4468,12 +4594,28 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
4468
4594
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
4469
4595
|
exports.AbstractEMailAddress = void 0;
|
|
4470
4596
|
const ts_serval_1 = __webpack_require__(/*! @js-soft/ts-serval */ "@js-soft/ts-serval");
|
|
4597
|
+
const hints_1 = __webpack_require__(/*! ../../../attributes/hints */ "./dist/attributes/hints/index.js");
|
|
4471
4598
|
const AbstractString_1 = __webpack_require__(/*! ../AbstractString */ "./dist/attributes/types/AbstractString.js");
|
|
4472
4599
|
class AbstractEMailAddress extends AbstractString_1.AbstractString {
|
|
4600
|
+
static get valueHints() {
|
|
4601
|
+
return super.valueHints.copyWith({
|
|
4602
|
+
min: 3,
|
|
4603
|
+
max: 200,
|
|
4604
|
+
pattern: "/^[A-Z0-9._%+-]+@[A-Z0-9.-]+.[A-Z]{2,}$/i"
|
|
4605
|
+
});
|
|
4606
|
+
}
|
|
4607
|
+
static get renderHints() {
|
|
4608
|
+
return super.renderHints.copyWith({
|
|
4609
|
+
editType: hints_1.RenderHintsEditType.InputLike,
|
|
4610
|
+
dataType: hints_1.RenderHintsDataType.EMailAddress
|
|
4611
|
+
});
|
|
4612
|
+
}
|
|
4473
4613
|
}
|
|
4474
4614
|
__decorate([
|
|
4475
4615
|
(0, ts_serval_1.serialize)(),
|
|
4476
4616
|
(0, ts_serval_1.validate)({
|
|
4617
|
+
min: 3,
|
|
4618
|
+
max: 200,
|
|
4477
4619
|
regExp: new RegExp("^[A-Z0-9._%+-]+@[A-Z0-9.-]+.[A-Z]{2,}$", "i")
|
|
4478
4620
|
}),
|
|
4479
4621
|
__metadata("design:type", String)
|
|
@@ -4487,14 +4629,45 @@ exports.AbstractEMailAddress = AbstractEMailAddress;
|
|
|
4487
4629
|
/*!****************************************************************!*\
|
|
4488
4630
|
!*** ./dist/attributes/types/strings/AbstractFileReference.js ***!
|
|
4489
4631
|
\****************************************************************/
|
|
4490
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__)
|
|
4632
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
4491
4633
|
|
|
4492
4634
|
|
|
4635
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
4636
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4637
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4638
|
+
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;
|
|
4639
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
4640
|
+
};
|
|
4641
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
4642
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
4643
|
+
};
|
|
4493
4644
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
4494
4645
|
exports.AbstractFileReference = void 0;
|
|
4646
|
+
const ts_serval_1 = __webpack_require__(/*! @js-soft/ts-serval */ "@js-soft/ts-serval");
|
|
4647
|
+
const hints_1 = __webpack_require__(/*! ../../../attributes/hints */ "./dist/attributes/hints/index.js");
|
|
4495
4648
|
const AbstractString_1 = __webpack_require__(/*! ../AbstractString */ "./dist/attributes/types/AbstractString.js");
|
|
4496
4649
|
class AbstractFileReference extends AbstractString_1.AbstractString {
|
|
4650
|
+
static get valueHints() {
|
|
4651
|
+
return super.valueHints.copyWith({
|
|
4652
|
+
min: 30,
|
|
4653
|
+
max: 1024
|
|
4654
|
+
});
|
|
4655
|
+
}
|
|
4656
|
+
static get renderHints() {
|
|
4657
|
+
return super.renderHints.copyWith({
|
|
4658
|
+
editType: hints_1.RenderHintsEditType.SelectLike,
|
|
4659
|
+
dataType: hints_1.RenderHintsDataType.FileReference
|
|
4660
|
+
});
|
|
4661
|
+
}
|
|
4497
4662
|
}
|
|
4663
|
+
__decorate([
|
|
4664
|
+
(0, ts_serval_1.serialize)(),
|
|
4665
|
+
(0, ts_serval_1.validate)({
|
|
4666
|
+
min: 30,
|
|
4667
|
+
max: 1024
|
|
4668
|
+
}),
|
|
4669
|
+
__metadata("design:type", String)
|
|
4670
|
+
], AbstractFileReference.prototype, "value", void 0);
|
|
4498
4671
|
exports.AbstractFileReference = AbstractFileReference;
|
|
4499
4672
|
//# sourceMappingURL=AbstractFileReference.js.map
|
|
4500
4673
|
|
|
@@ -4519,12 +4692,26 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
4519
4692
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
4520
4693
|
exports.AbstractHEXColor = void 0;
|
|
4521
4694
|
const ts_serval_1 = __webpack_require__(/*! @js-soft/ts-serval */ "@js-soft/ts-serval");
|
|
4695
|
+
const hints_1 = __webpack_require__(/*! ../../../attributes/hints */ "./dist/attributes/hints/index.js");
|
|
4522
4696
|
const AbstractString_1 = __webpack_require__(/*! ../AbstractString */ "./dist/attributes/types/AbstractString.js");
|
|
4523
4697
|
class AbstractHEXColor extends AbstractString_1.AbstractString {
|
|
4698
|
+
static get valueHints() {
|
|
4699
|
+
return super.valueHints.copyWith({
|
|
4700
|
+
min: 4,
|
|
4701
|
+
max: 9,
|
|
4702
|
+
pattern: "^#([0-9A-F]{3}){1,2}$/i"
|
|
4703
|
+
});
|
|
4704
|
+
}
|
|
4705
|
+
static get renderHints() {
|
|
4706
|
+
return super.renderHints.copyWith({
|
|
4707
|
+
editType: hints_1.RenderHintsEditType.InputLike,
|
|
4708
|
+
dataType: hints_1.RenderHintsDataType.HEXColor
|
|
4709
|
+
});
|
|
4710
|
+
}
|
|
4524
4711
|
}
|
|
4525
4712
|
__decorate([
|
|
4526
4713
|
(0, ts_serval_1.serialize)(),
|
|
4527
|
-
(0, ts_serval_1.validate)({ regExp: new RegExp("^#([0-9A-F]{3}){1,2}$", "i") }),
|
|
4714
|
+
(0, ts_serval_1.validate)({ min: 4, max: 9, regExp: new RegExp("^#([0-9A-F]{3}){1,2}$", "i") }),
|
|
4528
4715
|
__metadata("design:type", String)
|
|
4529
4716
|
], AbstractHEXColor.prototype, "value", void 0);
|
|
4530
4717
|
exports.AbstractHEXColor = AbstractHEXColor;
|
|
@@ -4551,13 +4738,29 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
4551
4738
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
4552
4739
|
exports.AbstractLanguage = void 0;
|
|
4553
4740
|
const ts_serval_1 = __webpack_require__(/*! @js-soft/ts-serval */ "@js-soft/ts-serval");
|
|
4741
|
+
const hints_1 = __webpack_require__(/*! ../../../attributes/hints */ "./dist/attributes/hints/index.js");
|
|
4554
4742
|
const LanguagesISO639_1 = __webpack_require__(/*! ../../constants/LanguagesISO639 */ "./dist/attributes/constants/LanguagesISO639.js");
|
|
4555
4743
|
const AbstractString_1 = __webpack_require__(/*! ../AbstractString */ "./dist/attributes/types/AbstractString.js");
|
|
4556
4744
|
class AbstractLanguage extends AbstractString_1.AbstractString {
|
|
4745
|
+
static get valueHints() {
|
|
4746
|
+
return super.valueHints.copyWith({
|
|
4747
|
+
min: 2,
|
|
4748
|
+
max: 2,
|
|
4749
|
+
values: Object.values(LanguagesISO639_1.LanguageISO639).map((value) => hints_1.ValueHintsValue.from({ key: value, displayName: `i18n://attributes.values.languages.${value}` }))
|
|
4750
|
+
});
|
|
4751
|
+
}
|
|
4752
|
+
static get renderHints() {
|
|
4753
|
+
return super.renderHints.copyWith({
|
|
4754
|
+
editType: hints_1.RenderHintsEditType.SelectLike,
|
|
4755
|
+
dataType: hints_1.RenderHintsDataType.Language
|
|
4756
|
+
});
|
|
4757
|
+
}
|
|
4557
4758
|
}
|
|
4558
4759
|
__decorate([
|
|
4559
4760
|
(0, ts_serval_1.serialize)(),
|
|
4560
4761
|
(0, ts_serval_1.validate)({
|
|
4762
|
+
min: 2,
|
|
4763
|
+
max: 2,
|
|
4561
4764
|
customValidator: (v) => !Object.values(LanguagesISO639_1.LanguageISO639).includes(v) ? `must be one of: ${Object.values(LanguagesISO639_1.LanguageISO639)}` : undefined
|
|
4562
4765
|
}),
|
|
4563
4766
|
__metadata("design:type", String)
|
|
@@ -4586,12 +4789,26 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
4586
4789
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
4587
4790
|
exports.AbstractPhoneNumber = void 0;
|
|
4588
4791
|
const ts_serval_1 = __webpack_require__(/*! @js-soft/ts-serval */ "@js-soft/ts-serval");
|
|
4792
|
+
const hints_1 = __webpack_require__(/*! ../../../attributes/hints */ "./dist/attributes/hints/index.js");
|
|
4589
4793
|
const AbstractString_1 = __webpack_require__(/*! ../AbstractString */ "./dist/attributes/types/AbstractString.js");
|
|
4590
4794
|
class AbstractPhoneNumber extends AbstractString_1.AbstractString {
|
|
4795
|
+
static get valueHints() {
|
|
4796
|
+
return super.valueHints.copyWith({
|
|
4797
|
+
min: 3,
|
|
4798
|
+
max: 100,
|
|
4799
|
+
pattern: "/^[d+-x#*()/[] ]{3,100}$/"
|
|
4800
|
+
});
|
|
4801
|
+
}
|
|
4802
|
+
static get renderHints() {
|
|
4803
|
+
return super.renderHints.copyWith({
|
|
4804
|
+
editType: hints_1.RenderHintsEditType.InputLike,
|
|
4805
|
+
dataType: hints_1.RenderHintsDataType.PhoneNumber
|
|
4806
|
+
});
|
|
4807
|
+
}
|
|
4591
4808
|
}
|
|
4592
4809
|
__decorate([
|
|
4593
4810
|
(0, ts_serval_1.serialize)(),
|
|
4594
|
-
(0, ts_serval_1.validate)({ regExp: new RegExp(/^[\d+\-x#*()/[\] ]{3,100}$/) }),
|
|
4811
|
+
(0, ts_serval_1.validate)({ min: 3, max: 100, regExp: new RegExp(/^[\d+\-x#*()/[\] ]{3,100}$/) }),
|
|
4595
4812
|
__metadata("design:type", String)
|
|
4596
4813
|
], AbstractPhoneNumber.prototype, "value", void 0);
|
|
4597
4814
|
exports.AbstractPhoneNumber = AbstractPhoneNumber;
|
|
@@ -4618,12 +4835,27 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
4618
4835
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
4619
4836
|
exports.AbstractURL = void 0;
|
|
4620
4837
|
const ts_serval_1 = __webpack_require__(/*! @js-soft/ts-serval */ "@js-soft/ts-serval");
|
|
4838
|
+
const hints_1 = __webpack_require__(/*! ../../../attributes/hints */ "./dist/attributes/hints/index.js");
|
|
4621
4839
|
const AbstractString_1 = __webpack_require__(/*! ../AbstractString */ "./dist/attributes/types/AbstractString.js");
|
|
4622
4840
|
class AbstractURL extends AbstractString_1.AbstractString {
|
|
4841
|
+
static get valueHints() {
|
|
4842
|
+
return super.valueHints.copyWith({
|
|
4843
|
+
min: 3,
|
|
4844
|
+
max: 1024
|
|
4845
|
+
});
|
|
4846
|
+
}
|
|
4847
|
+
static get renderHints() {
|
|
4848
|
+
return super.renderHints.copyWith({
|
|
4849
|
+
editType: hints_1.RenderHintsEditType.InputLike,
|
|
4850
|
+
dataType: hints_1.RenderHintsDataType.URL
|
|
4851
|
+
});
|
|
4852
|
+
}
|
|
4623
4853
|
}
|
|
4624
4854
|
__decorate([
|
|
4625
4855
|
(0, ts_serval_1.serialize)(),
|
|
4626
4856
|
(0, ts_serval_1.validate)({
|
|
4857
|
+
min: 3,
|
|
4858
|
+
max: 1024,
|
|
4627
4859
|
regExp: new RegExp(
|
|
4628
4860
|
// eslint-disable-next-line no-useless-escape
|
|
4629
4861
|
/^((([A-Za-z]{3,9}:(?:\/\/)?)(?:[\-;:&=\+\$,\w]+@)?[A-Za-z0-9\.\-]+|(?:www\.|[\-;:&=\+\$,\w]+@)[A-Za-z0-9\.\-]+)((?:\/[\+~%\/\.\w\-_]*)?\??(?:[\-\+=&;%@\.\w_]*)#?(?:[\.\!\/\\\w]*))?)$/i)
|
|
@@ -4682,10 +4914,10 @@ const ts_serval_1 = __webpack_require__(/*! @js-soft/ts-serval */ "@js-soft/ts-s
|
|
|
4682
4914
|
const crypto_1 = __webpack_require__(/*! @nmshd/crypto */ "@nmshd/crypto");
|
|
4683
4915
|
const transport_1 = __webpack_require__(/*! @nmshd/transport */ "@nmshd/transport");
|
|
4684
4916
|
exports.buildInformation = {
|
|
4685
|
-
version: "2.0.0-alpha.
|
|
4686
|
-
build: "
|
|
4687
|
-
date: "2022-05-
|
|
4688
|
-
commit: "
|
|
4917
|
+
version: "2.0.0-alpha.24",
|
|
4918
|
+
build: "53",
|
|
4919
|
+
date: "2022-05-30T10:45:27+00:00",
|
|
4920
|
+
commit: "e95b1b48074cfbaa433dea4b4d3e4562dc20ca56",
|
|
4689
4921
|
dependencies: {"@js-soft/logging-abstractions":"^1.0.0"},
|
|
4690
4922
|
libraries: {
|
|
4691
4923
|
serval: ts_serval_1.buildInformation,
|