@nmshd/content 2.0.0-alpha.22 → 2.0.0-alpha.25
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/AbstractComplexValue.d.ts +3 -2
- package/dist/attributes/AbstractComplexValue.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 +244 -13
- package/lib-web/nmshd.content.min.js +1 -1
- package/package.json +1 -1
package/lib-web/nmshd.content.js
CHANGED
|
@@ -358,9 +358,10 @@ var RelationshipAttributeConfidentiality;
|
|
|
358
358
|
RelationshipAttributeConfidentiality["Protected"] = "protected";
|
|
359
359
|
})(RelationshipAttributeConfidentiality = exports.RelationshipAttributeConfidentiality || (exports.RelationshipAttributeConfidentiality = {}));
|
|
360
360
|
let RelationshipAttribute = class RelationshipAttribute extends AbstractAttribute_1.AbstractAttribute {
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
361
|
+
static preFrom(value) {
|
|
362
|
+
if (typeof value.isTechnical === "undefined")
|
|
363
|
+
value.isTechnical = false;
|
|
364
|
+
return value;
|
|
364
365
|
}
|
|
365
366
|
static from(value) {
|
|
366
367
|
return this.fromAny(value);
|
|
@@ -379,7 +380,7 @@ __decorate([
|
|
|
379
380
|
__decorate([
|
|
380
381
|
(0, ts_serval_1.serialize)(),
|
|
381
382
|
(0, ts_serval_1.validate)({ nullable: true }),
|
|
382
|
-
__metadata("design:type",
|
|
383
|
+
__metadata("design:type", Boolean)
|
|
383
384
|
], RelationshipAttribute.prototype, "isTechnical", void 0);
|
|
384
385
|
__decorate([
|
|
385
386
|
(0, ts_serval_1.serialize)(),
|
|
@@ -1510,6 +1511,9 @@ var RenderHintsDataType;
|
|
|
1510
1511
|
RenderHintsDataType["DateTimePeriod"] = "DateTimePeriod";
|
|
1511
1512
|
RenderHintsDataType["Time"] = "Time";
|
|
1512
1513
|
RenderHintsDataType["TimePeriod"] = "TimePeriod";
|
|
1514
|
+
RenderHintsDataType["Day"] = "Day";
|
|
1515
|
+
RenderHintsDataType["Month"] = "Month";
|
|
1516
|
+
RenderHintsDataType["Year"] = "Year";
|
|
1513
1517
|
})(RenderHintsDataType = exports.RenderHintsDataType || (exports.RenderHintsDataType = {}));
|
|
1514
1518
|
let RenderHints = RenderHints_1 = class RenderHints extends ts_serval_1.Serializable {
|
|
1515
1519
|
static from(value) {
|
|
@@ -1817,6 +1821,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
1817
1821
|
exports.AbstractBoolean = void 0;
|
|
1818
1822
|
const ts_serval_1 = __webpack_require__(/*! @js-soft/ts-serval */ "@js-soft/ts-serval");
|
|
1819
1823
|
const AbstractAttributeValue_1 = __webpack_require__(/*! ../AbstractAttributeValue */ "./dist/attributes/AbstractAttributeValue.js");
|
|
1824
|
+
const hints_1 = __webpack_require__(/*! ../hints */ "./dist/attributes/hints/index.js");
|
|
1820
1825
|
class AbstractBoolean extends AbstractAttributeValue_1.AbstractAttributeValue {
|
|
1821
1826
|
static preFrom(value) {
|
|
1822
1827
|
if (typeof value === "boolean")
|
|
@@ -1826,6 +1831,15 @@ class AbstractBoolean extends AbstractAttributeValue_1.AbstractAttributeValue {
|
|
|
1826
1831
|
toString() {
|
|
1827
1832
|
return `${this.value}`;
|
|
1828
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
|
+
}
|
|
1829
1843
|
}
|
|
1830
1844
|
__decorate([
|
|
1831
1845
|
(0, ts_serval_1.serialize)(),
|
|
@@ -1857,6 +1871,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
1857
1871
|
exports.AbstractFloat = void 0;
|
|
1858
1872
|
const ts_serval_1 = __webpack_require__(/*! @js-soft/ts-serval */ "@js-soft/ts-serval");
|
|
1859
1873
|
const AbstractAttributeValue_1 = __webpack_require__(/*! ../AbstractAttributeValue */ "./dist/attributes/AbstractAttributeValue.js");
|
|
1874
|
+
const hints_1 = __webpack_require__(/*! ../hints */ "./dist/attributes/hints/index.js");
|
|
1860
1875
|
class AbstractFloat extends AbstractAttributeValue_1.AbstractAttributeValue {
|
|
1861
1876
|
static preFrom(value) {
|
|
1862
1877
|
if (typeof value === "number")
|
|
@@ -1866,6 +1881,15 @@ class AbstractFloat extends AbstractAttributeValue_1.AbstractAttributeValue {
|
|
|
1866
1881
|
toString() {
|
|
1867
1882
|
return `${this.value}`;
|
|
1868
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
|
+
}
|
|
1869
1893
|
}
|
|
1870
1894
|
__decorate([
|
|
1871
1895
|
(0, ts_serval_1.serialize)(),
|
|
@@ -1912,7 +1936,7 @@ class AbstractInteger extends AbstractAttributeValue_1.AbstractAttributeValue {
|
|
|
1912
1936
|
}
|
|
1913
1937
|
static get renderHints() {
|
|
1914
1938
|
return hints_1.RenderHints.from({
|
|
1915
|
-
editType: hints_1.RenderHintsEditType.
|
|
1939
|
+
editType: hints_1.RenderHintsEditType.ButtonLike,
|
|
1916
1940
|
technicalType: hints_1.RenderHintsTechnicalType.Integer
|
|
1917
1941
|
});
|
|
1918
1942
|
}
|
|
@@ -1950,6 +1974,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
1950
1974
|
exports.AbstractString = void 0;
|
|
1951
1975
|
const ts_serval_1 = __webpack_require__(/*! @js-soft/ts-serval */ "@js-soft/ts-serval");
|
|
1952
1976
|
const AbstractAttributeValue_1 = __webpack_require__(/*! ../AbstractAttributeValue */ "./dist/attributes/AbstractAttributeValue.js");
|
|
1977
|
+
const hints_1 = __webpack_require__(/*! ../hints */ "./dist/attributes/hints/index.js");
|
|
1953
1978
|
class AbstractString extends AbstractAttributeValue_1.AbstractAttributeValue {
|
|
1954
1979
|
static preFrom(value) {
|
|
1955
1980
|
if (typeof value === "string")
|
|
@@ -1959,10 +1984,21 @@ class AbstractString extends AbstractAttributeValue_1.AbstractAttributeValue {
|
|
|
1959
1984
|
toString() {
|
|
1960
1985
|
return `${this.value}`;
|
|
1961
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
|
+
}
|
|
1962
1998
|
}
|
|
1963
1999
|
__decorate([
|
|
1964
2000
|
(0, ts_serval_1.serialize)(),
|
|
1965
|
-
(0, ts_serval_1.validate)(),
|
|
2001
|
+
(0, ts_serval_1.validate)({ max: 200 }),
|
|
1966
2002
|
__metadata("design:type", String)
|
|
1967
2003
|
], AbstractString.prototype, "value", void 0);
|
|
1968
2004
|
exports.AbstractString = AbstractString;
|
|
@@ -3021,13 +3057,28 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
3021
3057
|
exports.AbstractDateString = void 0;
|
|
3022
3058
|
const ts_serval_1 = __webpack_require__(/*! @js-soft/ts-serval */ "@js-soft/ts-serval");
|
|
3023
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");
|
|
3024
3061
|
const AbstractString_1 = __webpack_require__(/*! ../AbstractString */ "./dist/attributes/types/AbstractString.js");
|
|
3025
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
|
+
}
|
|
3026
3075
|
}
|
|
3027
3076
|
AbstractDateString.format = "yyyy-MM-dd";
|
|
3028
3077
|
__decorate([
|
|
3029
3078
|
(0, ts_serval_1.serialize)(),
|
|
3030
3079
|
(0, ts_serval_1.validate)({
|
|
3080
|
+
min: 10,
|
|
3081
|
+
max: 10,
|
|
3031
3082
|
customValidator: (v) => !luxon_1.DateTime.fromFormat(v, AbstractDateString.format).isValid
|
|
3032
3083
|
? `must match the following format: '${AbstractDateString.format}'`
|
|
3033
3084
|
: undefined
|
|
@@ -3058,11 +3109,24 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
3058
3109
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
3059
3110
|
exports.AbstractDay = void 0;
|
|
3060
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");
|
|
3061
3113
|
const AbstractInteger_1 = __webpack_require__(/*! ../AbstractInteger */ "./dist/attributes/types/AbstractInteger.js");
|
|
3062
3114
|
/**
|
|
3063
3115
|
* day values start with 1 = first day of month
|
|
3064
3116
|
*/
|
|
3065
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
|
+
}
|
|
3066
3130
|
}
|
|
3067
3131
|
__decorate([
|
|
3068
3132
|
(0, ts_serval_1.serialize)(),
|
|
@@ -3095,6 +3159,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
3095
3159
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
3096
3160
|
exports.AbstractMonth = void 0;
|
|
3097
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");
|
|
3098
3163
|
const AbstractInteger_1 = __webpack_require__(/*! ../AbstractInteger */ "./dist/attributes/types/AbstractInteger.js");
|
|
3099
3164
|
/**
|
|
3100
3165
|
* Month values: 1 (january) - 12 (december)
|
|
@@ -3124,6 +3189,12 @@ class AbstractMonth extends AbstractInteger_1.AbstractInteger {
|
|
|
3124
3189
|
max: 12
|
|
3125
3190
|
});
|
|
3126
3191
|
}
|
|
3192
|
+
static get renderHints() {
|
|
3193
|
+
return super.renderHints.copyWith({
|
|
3194
|
+
editType: hints_1.RenderHintsEditType.ButtonLike,
|
|
3195
|
+
dataType: hints_1.RenderHintsDataType.Month
|
|
3196
|
+
});
|
|
3197
|
+
}
|
|
3127
3198
|
}
|
|
3128
3199
|
__decorate([
|
|
3129
3200
|
(0, ts_serval_1.serialize)(),
|
|
@@ -3158,8 +3229,21 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
3158
3229
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
3159
3230
|
exports.AbstractYear = void 0;
|
|
3160
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");
|
|
3161
3233
|
const AbstractInteger_1 = __webpack_require__(/*! ../AbstractInteger */ "./dist/attributes/types/AbstractInteger.js");
|
|
3162
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
|
+
}
|
|
3163
3247
|
}
|
|
3164
3248
|
__decorate([
|
|
3165
3249
|
(0, ts_serval_1.serialize)(),
|
|
@@ -3822,6 +3906,12 @@ exports.Age = void 0;
|
|
|
3822
3906
|
const ts_serval_1 = __webpack_require__(/*! @js-soft/ts-serval */ "@js-soft/ts-serval");
|
|
3823
3907
|
const AbstractInteger_1 = __webpack_require__(/*! ../AbstractInteger */ "./dist/attributes/types/AbstractInteger.js");
|
|
3824
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
|
+
}
|
|
3825
3915
|
};
|
|
3826
3916
|
__decorate([
|
|
3827
3917
|
(0, ts_serval_1.serialize)(),
|
|
@@ -3938,6 +4028,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
3938
4028
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
3939
4029
|
exports.Sex = exports.BiologicalSex = void 0;
|
|
3940
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");
|
|
3941
4032
|
const AbstractString_1 = __webpack_require__(/*! ../AbstractString */ "./dist/attributes/types/AbstractString.js");
|
|
3942
4033
|
/**
|
|
3943
4034
|
* Biologisches Geschlecht
|
|
@@ -3949,6 +4040,11 @@ var BiologicalSex;
|
|
|
3949
4040
|
BiologicalSex["X"] = "intersex";
|
|
3950
4041
|
})(BiologicalSex = exports.BiologicalSex || (exports.BiologicalSex = {}));
|
|
3951
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
|
+
}
|
|
3952
4048
|
};
|
|
3953
4049
|
__decorate([
|
|
3954
4050
|
(0, ts_serval_1.serialize)(),
|
|
@@ -4400,9 +4496,23 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
4400
4496
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
4401
4497
|
exports.AbstractCountry = void 0;
|
|
4402
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");
|
|
4403
4500
|
const CountriesAlpha2_1 = __webpack_require__(/*! ../../constants/CountriesAlpha2 */ "./dist/attributes/constants/CountriesAlpha2.js");
|
|
4404
4501
|
const AbstractString_1 = __webpack_require__(/*! ../AbstractString */ "./dist/attributes/types/AbstractString.js");
|
|
4405
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
|
+
}
|
|
4406
4516
|
}
|
|
4407
4517
|
__decorate([
|
|
4408
4518
|
(0, ts_serval_1.serialize)(),
|
|
@@ -4435,12 +4545,27 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
4435
4545
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
4436
4546
|
exports.AbstractDataURL = void 0;
|
|
4437
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");
|
|
4438
4549
|
const AbstractString_1 = __webpack_require__(/*! ../AbstractString */ "./dist/attributes/types/AbstractString.js");
|
|
4439
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
|
+
}
|
|
4440
4563
|
}
|
|
4441
4564
|
__decorate([
|
|
4442
4565
|
(0, ts_serval_1.serialize)(),
|
|
4443
4566
|
(0, ts_serval_1.validate)({
|
|
4567
|
+
min: 7,
|
|
4568
|
+
max: 4096,
|
|
4444
4569
|
customValidator: (v) => (v.length > 4096 ? "must be less than 4096 characters" : undefined)
|
|
4445
4570
|
}),
|
|
4446
4571
|
__metadata("design:type", String)
|
|
@@ -4469,12 +4594,28 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
4469
4594
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
4470
4595
|
exports.AbstractEMailAddress = void 0;
|
|
4471
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");
|
|
4472
4598
|
const AbstractString_1 = __webpack_require__(/*! ../AbstractString */ "./dist/attributes/types/AbstractString.js");
|
|
4473
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
|
+
}
|
|
4474
4613
|
}
|
|
4475
4614
|
__decorate([
|
|
4476
4615
|
(0, ts_serval_1.serialize)(),
|
|
4477
4616
|
(0, ts_serval_1.validate)({
|
|
4617
|
+
min: 3,
|
|
4618
|
+
max: 200,
|
|
4478
4619
|
regExp: new RegExp("^[A-Z0-9._%+-]+@[A-Z0-9.-]+.[A-Z]{2,}$", "i")
|
|
4479
4620
|
}),
|
|
4480
4621
|
__metadata("design:type", String)
|
|
@@ -4488,14 +4629,45 @@ exports.AbstractEMailAddress = AbstractEMailAddress;
|
|
|
4488
4629
|
/*!****************************************************************!*\
|
|
4489
4630
|
!*** ./dist/attributes/types/strings/AbstractFileReference.js ***!
|
|
4490
4631
|
\****************************************************************/
|
|
4491
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__)
|
|
4632
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
4492
4633
|
|
|
4493
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
|
+
};
|
|
4494
4644
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
4495
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");
|
|
4496
4648
|
const AbstractString_1 = __webpack_require__(/*! ../AbstractString */ "./dist/attributes/types/AbstractString.js");
|
|
4497
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
|
+
}
|
|
4498
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);
|
|
4499
4671
|
exports.AbstractFileReference = AbstractFileReference;
|
|
4500
4672
|
//# sourceMappingURL=AbstractFileReference.js.map
|
|
4501
4673
|
|
|
@@ -4520,12 +4692,26 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
4520
4692
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
4521
4693
|
exports.AbstractHEXColor = void 0;
|
|
4522
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");
|
|
4523
4696
|
const AbstractString_1 = __webpack_require__(/*! ../AbstractString */ "./dist/attributes/types/AbstractString.js");
|
|
4524
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
|
+
}
|
|
4525
4711
|
}
|
|
4526
4712
|
__decorate([
|
|
4527
4713
|
(0, ts_serval_1.serialize)(),
|
|
4528
|
-
(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") }),
|
|
4529
4715
|
__metadata("design:type", String)
|
|
4530
4716
|
], AbstractHEXColor.prototype, "value", void 0);
|
|
4531
4717
|
exports.AbstractHEXColor = AbstractHEXColor;
|
|
@@ -4552,13 +4738,29 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
4552
4738
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
4553
4739
|
exports.AbstractLanguage = void 0;
|
|
4554
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");
|
|
4555
4742
|
const LanguagesISO639_1 = __webpack_require__(/*! ../../constants/LanguagesISO639 */ "./dist/attributes/constants/LanguagesISO639.js");
|
|
4556
4743
|
const AbstractString_1 = __webpack_require__(/*! ../AbstractString */ "./dist/attributes/types/AbstractString.js");
|
|
4557
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
|
+
}
|
|
4558
4758
|
}
|
|
4559
4759
|
__decorate([
|
|
4560
4760
|
(0, ts_serval_1.serialize)(),
|
|
4561
4761
|
(0, ts_serval_1.validate)({
|
|
4762
|
+
min: 2,
|
|
4763
|
+
max: 2,
|
|
4562
4764
|
customValidator: (v) => !Object.values(LanguagesISO639_1.LanguageISO639).includes(v) ? `must be one of: ${Object.values(LanguagesISO639_1.LanguageISO639)}` : undefined
|
|
4563
4765
|
}),
|
|
4564
4766
|
__metadata("design:type", String)
|
|
@@ -4587,12 +4789,26 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
4587
4789
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
4588
4790
|
exports.AbstractPhoneNumber = void 0;
|
|
4589
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");
|
|
4590
4793
|
const AbstractString_1 = __webpack_require__(/*! ../AbstractString */ "./dist/attributes/types/AbstractString.js");
|
|
4591
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
|
+
}
|
|
4592
4808
|
}
|
|
4593
4809
|
__decorate([
|
|
4594
4810
|
(0, ts_serval_1.serialize)(),
|
|
4595
|
-
(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}$/) }),
|
|
4596
4812
|
__metadata("design:type", String)
|
|
4597
4813
|
], AbstractPhoneNumber.prototype, "value", void 0);
|
|
4598
4814
|
exports.AbstractPhoneNumber = AbstractPhoneNumber;
|
|
@@ -4619,12 +4835,27 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
4619
4835
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
4620
4836
|
exports.AbstractURL = void 0;
|
|
4621
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");
|
|
4622
4839
|
const AbstractString_1 = __webpack_require__(/*! ../AbstractString */ "./dist/attributes/types/AbstractString.js");
|
|
4623
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
|
+
}
|
|
4624
4853
|
}
|
|
4625
4854
|
__decorate([
|
|
4626
4855
|
(0, ts_serval_1.serialize)(),
|
|
4627
4856
|
(0, ts_serval_1.validate)({
|
|
4857
|
+
min: 3,
|
|
4858
|
+
max: 1024,
|
|
4628
4859
|
regExp: new RegExp(
|
|
4629
4860
|
// eslint-disable-next-line no-useless-escape
|
|
4630
4861
|
/^((([A-Za-z]{3,9}:(?:\/\/)?)(?:[\-;:&=\+\$,\w]+@)?[A-Za-z0-9\.\-]+|(?:www\.|[\-;:&=\+\$,\w]+@)[A-Za-z0-9\.\-]+)((?:\/[\+~%\/\.\w\-_]*)?\??(?:[\-\+=&;%@\.\w_]*)#?(?:[\.\!\/\\\w]*))?)$/i)
|
|
@@ -4683,10 +4914,10 @@ const ts_serval_1 = __webpack_require__(/*! @js-soft/ts-serval */ "@js-soft/ts-s
|
|
|
4683
4914
|
const crypto_1 = __webpack_require__(/*! @nmshd/crypto */ "@nmshd/crypto");
|
|
4684
4915
|
const transport_1 = __webpack_require__(/*! @nmshd/transport */ "@nmshd/transport");
|
|
4685
4916
|
exports.buildInformation = {
|
|
4686
|
-
version: "2.0.0-alpha.
|
|
4687
|
-
build: "
|
|
4688
|
-
date: "2022-05-
|
|
4689
|
-
commit: "
|
|
4917
|
+
version: "2.0.0-alpha.25",
|
|
4918
|
+
build: "54",
|
|
4919
|
+
date: "2022-05-31T11:36:42+00:00",
|
|
4920
|
+
commit: "66ebdad277bba7973e0806b129cdb120f5f97ddc",
|
|
4690
4921
|
dependencies: {"@js-soft/logging-abstractions":"^1.0.0"},
|
|
4691
4922
|
libraries: {
|
|
4692
4923
|
serval: ts_serval_1.buildInformation,
|