@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
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { AbstractAttributeValue, AbstractAttributeValueJSON, IAbstractAttributeValue } from "./AbstractAttributeValue";
|
|
2
|
-
export interface AbstractComplexValueJSON extends AbstractAttributeValueJSON {
|
|
2
|
+
export interface AbstractComplexValueJSON extends AbstractAttributeValueJSON, Record<string, unknown> {
|
|
3
3
|
}
|
|
4
|
-
export interface IAbstractComplexValue extends IAbstractAttributeValue {
|
|
4
|
+
export interface IAbstractComplexValue extends IAbstractAttributeValue, Record<string, unknown> {
|
|
5
5
|
}
|
|
6
6
|
export declare abstract class AbstractComplexValue extends AbstractAttributeValue implements IAbstractComplexValue {
|
|
7
|
+
[key: string]: unknown;
|
|
7
8
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AbstractComplexValue.js","sourceRoot":"","sources":["../../src/attributes/AbstractComplexValue.ts"],"names":[],"mappings":";;;AAAA,qEAAsH;AAMtH,MAAsB,oBAAqB,SAAQ,+CAAsB;
|
|
1
|
+
{"version":3,"file":"AbstractComplexValue.js","sourceRoot":"","sources":["../../src/attributes/AbstractComplexValue.ts"],"names":[],"mappings":";;;AAAA,qEAAsH;AAMtH,MAAsB,oBAAqB,SAAQ,+CAAsB;CAExE;AAFD,oDAEC"}
|
|
@@ -47,5 +47,6 @@ export declare class RelationshipAttribute<TValueClass extends AbstractAttribute
|
|
|
47
47
|
key: string;
|
|
48
48
|
isTechnical: boolean;
|
|
49
49
|
confidentiality: RelationshipAttributeConfidentiality;
|
|
50
|
+
protected static preFrom(value: any): any;
|
|
50
51
|
static from<TValueClass extends AbstractAttributeValue = AbstractAttributeValue, TValueInterface extends IAbstractAttributeValue = IAbstractAttributeValue, TValueJSONInterface extends AbstractAttributeValueJSON = AbstractAttributeValueJSON>(value: IRelationshipAttribute<TValueInterface> | RelationshipAttributeJSON<TValueJSONInterface>): RelationshipAttribute<TValueClass>;
|
|
51
52
|
}
|
|
@@ -45,9 +45,10 @@ var RelationshipAttributeConfidentiality;
|
|
|
45
45
|
RelationshipAttributeConfidentiality["Protected"] = "protected";
|
|
46
46
|
})(RelationshipAttributeConfidentiality = exports.RelationshipAttributeConfidentiality || (exports.RelationshipAttributeConfidentiality = {}));
|
|
47
47
|
let RelationshipAttribute = class RelationshipAttribute extends AbstractAttribute_1.AbstractAttribute {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
48
|
+
static preFrom(value) {
|
|
49
|
+
if (typeof value.isTechnical === "undefined")
|
|
50
|
+
value.isTechnical = false;
|
|
51
|
+
return value;
|
|
51
52
|
}
|
|
52
53
|
static from(value) {
|
|
53
54
|
return this.fromAny(value);
|
|
@@ -66,7 +67,7 @@ __decorate([
|
|
|
66
67
|
__decorate([
|
|
67
68
|
(0, ts_serval_1.serialize)(),
|
|
68
69
|
(0, ts_serval_1.validate)({ nullable: true }),
|
|
69
|
-
__metadata("design:type",
|
|
70
|
+
__metadata("design:type", Boolean)
|
|
70
71
|
], RelationshipAttribute.prototype, "isTechnical", void 0);
|
|
71
72
|
__decorate([
|
|
72
73
|
(0, ts_serval_1.serialize)(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RelationshipAttribute.js","sourceRoot":"","sources":["../../src/attributes/RelationshipAttribute.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA8D;AAC9D,2DAAkG;AAClG,qEAAsH;AAEtH,IAAY,oCA6BX;AA7BD,WAAY,oCAAoC;IAC5C;;;;;;;;;OASG;IACH,yDAAiB,CAAA;IACjB;;;;;;OAMG;IACH,2DAAmB,CAAA;IACnB;;;;;;;OAOG;IACH,+DAAuB,CAAA;AAC3B,CAAC,EA7BW,oCAAoC,GAApC,4CAAoC,KAApC,4CAAoC,QA6B/C;AAoBD,IAAa,qBAAqB,GAAlC,MAAa,qBACT,SAAQ,qCAAiB;
|
|
1
|
+
{"version":3,"file":"RelationshipAttribute.js","sourceRoot":"","sources":["../../src/attributes/RelationshipAttribute.ts"],"names":[],"mappings":";;;;;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BAAI,EAAC,uBAAuB,CAAC;GACjB,qBAAqB,CAyCjC;AAzCY,sDAAqB"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Serializable } from "@js-soft/ts-serval";
|
|
2
|
+
import { ContentJSON } from "../../ContentJSON";
|
|
2
3
|
export declare enum RenderHintsTechnicalType {
|
|
3
4
|
Boolean = "Boolean",
|
|
4
5
|
Float = "Float",
|
|
@@ -30,9 +31,12 @@ export declare enum RenderHintsDataType {
|
|
|
30
31
|
DateTime = "DateTime",
|
|
31
32
|
DateTimePeriod = "DateTimePeriod",
|
|
32
33
|
Time = "Time",
|
|
33
|
-
TimePeriod = "TimePeriod"
|
|
34
|
+
TimePeriod = "TimePeriod",
|
|
35
|
+
Day = "Day",
|
|
36
|
+
Month = "Month",
|
|
37
|
+
Year = "Year"
|
|
34
38
|
}
|
|
35
|
-
export interface RenderHintsJSON {
|
|
39
|
+
export interface RenderHintsJSON extends ContentJSON {
|
|
36
40
|
technicalType: RenderHintsTechnicalType;
|
|
37
41
|
editType: RenderHintsEditType;
|
|
38
42
|
dataType?: RenderHintsDataType;
|
|
@@ -47,6 +47,9 @@ var RenderHintsDataType;
|
|
|
47
47
|
RenderHintsDataType["DateTimePeriod"] = "DateTimePeriod";
|
|
48
48
|
RenderHintsDataType["Time"] = "Time";
|
|
49
49
|
RenderHintsDataType["TimePeriod"] = "TimePeriod";
|
|
50
|
+
RenderHintsDataType["Day"] = "Day";
|
|
51
|
+
RenderHintsDataType["Month"] = "Month";
|
|
52
|
+
RenderHintsDataType["Year"] = "Year";
|
|
50
53
|
})(RenderHintsDataType = exports.RenderHintsDataType || (exports.RenderHintsDataType = {}));
|
|
51
54
|
let RenderHints = RenderHints_1 = class RenderHints extends ts_serval_1.Serializable {
|
|
52
55
|
static from(value) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RenderHints.js","sourceRoot":"","sources":["../../../src/attributes/hints/RenderHints.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,kDAA4E;
|
|
1
|
+
{"version":3,"file":"RenderHints.js","sourceRoot":"","sources":["../../../src/attributes/hints/RenderHints.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,kDAA4E;AAG5E,IAAY,wBAMX;AAND,WAAY,wBAAwB;IAChC,+CAAmB,CAAA;IACnB,2CAAe,CAAA;IACf,+CAAmB,CAAA;IACnB,6CAAiB,CAAA;IACjB,6CAAiB,CAAA;AACrB,CAAC,EANW,wBAAwB,GAAxB,gCAAwB,KAAxB,gCAAwB,QAMnC;AAED,IAAY,mBASX;AATD,WAAY,mBAAmB;IAC3B,8CAAuB,CAAA;IACvB,gDAAyB,CAAA;IACzB,0DAAmC,CAAA;IACnC,gDAAyB,CAAA;IACzB,gDAAyB,CAAA;IACzB,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,wCAAiB,CAAA;AACrB,CAAC,EATW,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAS9B;AAED,IAAY,mBAkBX;AAlBD,WAAY,mBAAmB;IAC3B,0CAAmB,CAAA;IACnB,0CAAmB,CAAA;IACnB,oDAA6B,CAAA;IAC7B,4CAAqB,CAAA;IACrB,4CAAqB,CAAA;IACrB,kDAA2B,CAAA;IAC3B,kCAAW,CAAA;IACX,sDAA+B,CAAA;IAC/B,oCAAa,CAAA;IACb,gDAAyB,CAAA;IACzB,4CAAqB,CAAA;IACrB,wDAAiC,CAAA;IACjC,oCAAa,CAAA;IACb,gDAAyB,CAAA;IACzB,kCAAW,CAAA;IACX,sCAAe,CAAA;IACf,oCAAa,CAAA;AACjB,CAAC,EAlBW,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAkB9B;AAeD,IAAa,WAAW,mBAAxB,MAAa,WAAY,SAAQ,wBAAY;IAalC,MAAM,CAAC,IAAI,CAAC,KAAmB;QAClC,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAC9B,CAAC;IAEe,MAAM;QAClB,OAA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B,mBAAmB;IAD/B,IAAA,gBAAI,EAAC,aAAa,CAAC;GACP,mBAAmB,CAwB/B;AAxBY,kDAAmB"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AbstractAttributeValue, AbstractAttributeValueJSON, IAbstractAttributeValue } from "../AbstractAttributeValue";
|
|
2
|
+
import { RenderHints, ValueHints } from "../hints";
|
|
2
3
|
export declare type AbstractBooleanJSON = IAbstractBooleanJSON | number;
|
|
3
4
|
export interface IAbstractBooleanJSON extends AbstractAttributeValueJSON {
|
|
4
5
|
value: boolean;
|
|
@@ -10,4 +11,6 @@ export declare class AbstractBoolean extends AbstractAttributeValue implements I
|
|
|
10
11
|
value: boolean;
|
|
11
12
|
static preFrom(value: any): any;
|
|
12
13
|
toString(): string;
|
|
14
|
+
static get valueHints(): ValueHints;
|
|
15
|
+
static get renderHints(): RenderHints;
|
|
13
16
|
}
|
|
@@ -12,6 +12,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.AbstractBoolean = void 0;
|
|
13
13
|
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
14
14
|
const AbstractAttributeValue_1 = require("../AbstractAttributeValue");
|
|
15
|
+
const hints_1 = require("../hints");
|
|
15
16
|
class AbstractBoolean extends AbstractAttributeValue_1.AbstractAttributeValue {
|
|
16
17
|
static preFrom(value) {
|
|
17
18
|
if (typeof value === "boolean")
|
|
@@ -21,6 +22,15 @@ class AbstractBoolean extends AbstractAttributeValue_1.AbstractAttributeValue {
|
|
|
21
22
|
toString() {
|
|
22
23
|
return `${this.value}`;
|
|
23
24
|
}
|
|
25
|
+
static get valueHints() {
|
|
26
|
+
return hints_1.ValueHints.from({});
|
|
27
|
+
}
|
|
28
|
+
static get renderHints() {
|
|
29
|
+
return hints_1.RenderHints.from({
|
|
30
|
+
editType: hints_1.RenderHintsEditType.InputLike,
|
|
31
|
+
technicalType: hints_1.RenderHintsTechnicalType.Boolean
|
|
32
|
+
});
|
|
33
|
+
}
|
|
24
34
|
}
|
|
25
35
|
__decorate([
|
|
26
36
|
(0, ts_serval_1.serialize)(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AbstractBoolean.js","sourceRoot":"","sources":["../../../src/attributes/types/AbstractBoolean.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAAwD;AACxD,sEAAuH;
|
|
1
|
+
{"version":3,"file":"AbstractBoolean.js","sourceRoot":"","sources":["../../../src/attributes/types/AbstractBoolean.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAAwD;AACxD,sEAAuH;AACvH,oCAAiG;AAYjG,MAAa,eAAgB,SAAQ,+CAAsB;IAKhD,MAAM,CAAU,OAAO,CAAC,KAAU;QACrC,IAAI,OAAO,KAAK,KAAK,SAAS;YAAE,KAAK,GAAG,EAAE,KAAK,EAAE,CAAA;QACjD,OAAO,KAAK,CAAA;IAChB,CAAC;IAEe,QAAQ;QACpB,OAAO,GAAG,IAAI,CAAC,KAAK,EAAE,CAAA;IAC1B,CAAC;IAEM,MAAM,KAAK,UAAU;QACxB,OAAO,kBAAU,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;IAC9B,CAAC;IAEM,MAAM,KAAK,WAAW;QACzB,OAAO,mBAAW,CAAC,IAAI,CAAC;YACpB,QAAQ,EAAE,2BAAmB,CAAC,SAAS;YACvC,aAAa,EAAE,gCAAwB,CAAC,OAAO;SAClD,CAAC,CAAA;IACN,CAAC;CACJ;AArBG;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;;8CACU;AAHzB,0CAwBC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AbstractAttributeValue, AbstractAttributeValueJSON, IAbstractAttributeValue } from "../AbstractAttributeValue";
|
|
2
|
+
import { RenderHints, ValueHints } from "../hints";
|
|
2
3
|
export declare type AbstractFloatJSON = IAbstractFloatJSON | number;
|
|
3
4
|
export interface IAbstractFloatJSON extends AbstractAttributeValueJSON {
|
|
4
5
|
value: number;
|
|
@@ -10,4 +11,6 @@ export declare class AbstractFloat extends AbstractAttributeValue implements IAb
|
|
|
10
11
|
value: number;
|
|
11
12
|
static preFrom(value: any): any;
|
|
12
13
|
toString(): string;
|
|
14
|
+
static get valueHints(): ValueHints;
|
|
15
|
+
static get renderHints(): RenderHints;
|
|
13
16
|
}
|
|
@@ -12,6 +12,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.AbstractFloat = void 0;
|
|
13
13
|
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
14
14
|
const AbstractAttributeValue_1 = require("../AbstractAttributeValue");
|
|
15
|
+
const hints_1 = require("../hints");
|
|
15
16
|
class AbstractFloat extends AbstractAttributeValue_1.AbstractAttributeValue {
|
|
16
17
|
static preFrom(value) {
|
|
17
18
|
if (typeof value === "number")
|
|
@@ -21,6 +22,15 @@ class AbstractFloat extends AbstractAttributeValue_1.AbstractAttributeValue {
|
|
|
21
22
|
toString() {
|
|
22
23
|
return `${this.value}`;
|
|
23
24
|
}
|
|
25
|
+
static get valueHints() {
|
|
26
|
+
return hints_1.ValueHints.from({});
|
|
27
|
+
}
|
|
28
|
+
static get renderHints() {
|
|
29
|
+
return hints_1.RenderHints.from({
|
|
30
|
+
editType: hints_1.RenderHintsEditType.ButtonLike,
|
|
31
|
+
technicalType: hints_1.RenderHintsTechnicalType.Float
|
|
32
|
+
});
|
|
33
|
+
}
|
|
24
34
|
}
|
|
25
35
|
__decorate([
|
|
26
36
|
(0, ts_serval_1.serialize)(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AbstractFloat.js","sourceRoot":"","sources":["../../../src/attributes/types/AbstractFloat.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAAwD;AACxD,sEAAuH;
|
|
1
|
+
{"version":3,"file":"AbstractFloat.js","sourceRoot":"","sources":["../../../src/attributes/types/AbstractFloat.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAAwD;AACxD,sEAAuH;AACvH,oCAAiG;AAYjG,MAAa,aAAc,SAAQ,+CAAsB;IAK9C,MAAM,CAAU,OAAO,CAAC,KAAU;QACrC,IAAI,OAAO,KAAK,KAAK,QAAQ;YAAE,KAAK,GAAG,EAAE,KAAK,EAAE,CAAA;QAChD,OAAO,KAAK,CAAA;IAChB,CAAC;IAEe,QAAQ;QACpB,OAAO,GAAG,IAAI,CAAC,KAAK,EAAE,CAAA;IAC1B,CAAC;IAEM,MAAM,KAAK,UAAU;QACxB,OAAO,kBAAU,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;IAC9B,CAAC;IAEM,MAAM,KAAK,WAAW;QACzB,OAAO,mBAAW,CAAC,IAAI,CAAC;YACpB,QAAQ,EAAE,2BAAmB,CAAC,UAAU;YACxC,aAAa,EAAE,gCAAwB,CAAC,KAAK;SAChD,CAAC,CAAA;IACN,CAAC;CACJ;AArBG;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;;4CACS;AAHxB,sCAwBC"}
|
|
@@ -27,7 +27,7 @@ class AbstractInteger extends AbstractAttributeValue_1.AbstractAttributeValue {
|
|
|
27
27
|
}
|
|
28
28
|
static get renderHints() {
|
|
29
29
|
return hints_1.RenderHints.from({
|
|
30
|
-
editType: hints_1.RenderHintsEditType.
|
|
30
|
+
editType: hints_1.RenderHintsEditType.ButtonLike,
|
|
31
31
|
technicalType: hints_1.RenderHintsTechnicalType.Integer
|
|
32
32
|
});
|
|
33
33
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AbstractInteger.js","sourceRoot":"","sources":["../../../src/attributes/types/AbstractInteger.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAAwD;AACxD,sEAAuH;AACvH,oCAAiG;AAYjG,MAAa,eAAgB,SAAQ,+CAAsB;IAKhD,MAAM,CAAU,OAAO,CAAC,KAAU;QACrC,IAAI,OAAO,KAAK,KAAK,QAAQ;YAAE,KAAK,GAAG,EAA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C,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,oBAAoB,CAAC,CAAC,CAAC,SAAS,CAAC,EAAE,CAAC;;8CAC5E;AAHxB,0CA4BC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AbstractAttributeValue, AbstractAttributeValueJSON, IAbstractAttributeValue } from "../AbstractAttributeValue";
|
|
2
|
+
import { RenderHints, ValueHints } from "../hints";
|
|
2
3
|
export declare type AbstractStringJSON = IAbstractStringJSON | string;
|
|
3
4
|
export interface IAbstractStringJSON extends AbstractAttributeValueJSON {
|
|
4
5
|
value: string;
|
|
@@ -10,4 +11,6 @@ export declare class AbstractString extends AbstractAttributeValue implements IA
|
|
|
10
11
|
value: string;
|
|
11
12
|
static preFrom(value: any): any;
|
|
12
13
|
toString(): string;
|
|
14
|
+
static get valueHints(): ValueHints;
|
|
15
|
+
static get renderHints(): RenderHints;
|
|
13
16
|
}
|
|
@@ -12,6 +12,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.AbstractString = void 0;
|
|
13
13
|
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
14
14
|
const AbstractAttributeValue_1 = require("../AbstractAttributeValue");
|
|
15
|
+
const hints_1 = require("../hints");
|
|
15
16
|
class AbstractString extends AbstractAttributeValue_1.AbstractAttributeValue {
|
|
16
17
|
static preFrom(value) {
|
|
17
18
|
if (typeof value === "string")
|
|
@@ -21,10 +22,21 @@ class AbstractString extends AbstractAttributeValue_1.AbstractAttributeValue {
|
|
|
21
22
|
toString() {
|
|
22
23
|
return `${this.value}`;
|
|
23
24
|
}
|
|
25
|
+
static get valueHints() {
|
|
26
|
+
return hints_1.ValueHints.from({
|
|
27
|
+
max: 200
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
static get renderHints() {
|
|
31
|
+
return hints_1.RenderHints.from({
|
|
32
|
+
editType: hints_1.RenderHintsEditType.InputLike,
|
|
33
|
+
technicalType: hints_1.RenderHintsTechnicalType.String
|
|
34
|
+
});
|
|
35
|
+
}
|
|
24
36
|
}
|
|
25
37
|
__decorate([
|
|
26
38
|
(0, ts_serval_1.serialize)(),
|
|
27
|
-
(0, ts_serval_1.validate)(),
|
|
39
|
+
(0, ts_serval_1.validate)({ max: 200 }),
|
|
28
40
|
__metadata("design:type", String)
|
|
29
41
|
], AbstractString.prototype, "value", void 0);
|
|
30
42
|
exports.AbstractString = AbstractString;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AbstractString.js","sourceRoot":"","sources":["../../../src/attributes/types/AbstractString.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAAwD;AACxD,sEAAuH;
|
|
1
|
+
{"version":3,"file":"AbstractString.js","sourceRoot":"","sources":["../../../src/attributes/types/AbstractString.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAAwD;AACxD,sEAAuH;AACvH,oCAAiG;AAYjG,MAAa,cAAe,SAAQ,+CAAsB;IAK/C,MAAM,CAAU,OAAO,CAAC,KAAU;QACrC,IAAI,OAAO,KAAK,KAAK,QAAQ;YAAE,KAAK,GAAG,EAAE,KAAK,EAAE,CAAA;QAChD,OAAO,KAAK,CAAA;IAChB,CAAC;IAEe,QAAQ;QACpB,OAAO,GAAG,IAAI,CAAC,KAAK,EAAE,CAAA;IAC1B,CAAC;IAEM,MAAM,KAAK,UAAU;QACxB,OAAO,kBAAU,CAAC,IAAI,CAAC;YACnB,GAAG,EAAE,GAAG;SACX,CAAC,CAAA;IACN,CAAC;IAEM,MAAM,KAAK,WAAW;QACzB,OAAO,mBAAW,CAAC,IAAI,CAAC;YACpB,QAAQ,EAAE,2BAAmB,CAAC,SAAS;YACvC,aAAa,EAAE,gCAAwB,CAAC,MAAM;SACjD,CAAC,CAAA;IACN,CAAC;CACJ;AAvBG;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;;6CACH;AAHxB,wCA0BC"}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
+
import { RenderHints, ValueHints } from "../../../attributes/hints";
|
|
1
2
|
import { AbstractString } from "../AbstractString";
|
|
2
3
|
export declare abstract class AbstractDateString extends AbstractString {
|
|
3
4
|
private static readonly format;
|
|
4
5
|
value: string;
|
|
6
|
+
static get valueHints(): ValueHints;
|
|
7
|
+
static get renderHints(): RenderHints;
|
|
5
8
|
}
|
|
@@ -12,13 +12,28 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.AbstractDateString = void 0;
|
|
13
13
|
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
14
14
|
const luxon_1 = require("luxon");
|
|
15
|
+
const hints_1 = require("../../../attributes/hints");
|
|
15
16
|
const AbstractString_1 = require("../AbstractString");
|
|
16
17
|
class AbstractDateString extends AbstractString_1.AbstractString {
|
|
18
|
+
static get valueHints() {
|
|
19
|
+
return super.valueHints.copyWith({
|
|
20
|
+
min: 10,
|
|
21
|
+
max: 10
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
static get renderHints() {
|
|
25
|
+
return super.renderHints.copyWith({
|
|
26
|
+
editType: hints_1.RenderHintsEditType.SelectLike,
|
|
27
|
+
dataType: hints_1.RenderHintsDataType.Date
|
|
28
|
+
});
|
|
29
|
+
}
|
|
17
30
|
}
|
|
18
31
|
AbstractDateString.format = "yyyy-MM-dd";
|
|
19
32
|
__decorate([
|
|
20
33
|
(0, ts_serval_1.serialize)(),
|
|
21
34
|
(0, ts_serval_1.validate)({
|
|
35
|
+
min: 10,
|
|
36
|
+
max: 10,
|
|
22
37
|
customValidator: (v) => !luxon_1.DateTime.fromFormat(v, AbstractDateString.format).isValid
|
|
23
38
|
? `must match the following format: '${AbstractDateString.format}'`
|
|
24
39
|
: undefined
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AbstractDateString.js","sourceRoot":"","sources":["../../../../src/attributes/types/dates/AbstractDateString.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAAwD;AACxD,iCAAgC;AAChC,sDAAkD;AAElD,MAAsB,kBAAmB,SAAQ,+BAAc;;
|
|
1
|
+
{"version":3,"file":"AbstractDateString.js","sourceRoot":"","sources":["../../../../src/attributes/types/dates/AbstractDateString.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAAwD;AACxD,iCAAgC;AAChC,qDAA6G;AAC7G,sDAAkD;AAElD,MAAsB,kBAAmB,SAAQ,+BAAc;IAcpD,MAAM,KAAc,UAAU;QACjC,OAAO,KAAK,CAAC,UAAU,CAAC,QAAQ,CAAC;YAC7B,GAAG,EAAE,EAAE;YACP,GAAG,EAAE,EAAE;SACV,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;;AAzBuB,yBAAM,GAAG,YAAY,CAAA;AAW7C;IATC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC;QACN,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,eAAe,EAAE,CAAC,CAAC,EAAE,EAAE,CACnB,CAAC,gBAAQ,CAAC,UAAU,CAAC,CAAC,EAAE,kBAAkB,CAAC,MAAM,CAAC,CAAC,OAAO;YACtD,CAAC,CAAC,qCAAqC,kBAAkB,CAAC,MAAM,GAAG;YACnE,CAAC,CAAC,SAAS;KACtB,CAAC;;iDAC2B;AAZjC,gDA2BC"}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
+
import { RenderHints, ValueHints } from "../../../attributes/hints";
|
|
1
2
|
import { AbstractInteger } from "../AbstractInteger";
|
|
2
3
|
/**
|
|
3
4
|
* day values start with 1 = first day of month
|
|
4
5
|
*/
|
|
5
6
|
export declare abstract class AbstractDay extends AbstractInteger {
|
|
6
7
|
value: number;
|
|
8
|
+
static get valueHints(): ValueHints;
|
|
9
|
+
static get renderHints(): RenderHints;
|
|
7
10
|
}
|
|
@@ -11,11 +11,24 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.AbstractDay = 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
|
/**
|
|
16
17
|
* day values start with 1 = first day of month
|
|
17
18
|
*/
|
|
18
19
|
class AbstractDay extends AbstractInteger_1.AbstractInteger {
|
|
20
|
+
static get valueHints() {
|
|
21
|
+
return super.valueHints.copyWith({
|
|
22
|
+
min: 1,
|
|
23
|
+
max: 31
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
static get renderHints() {
|
|
27
|
+
return super.renderHints.copyWith({
|
|
28
|
+
editType: hints_1.RenderHintsEditType.ButtonLike,
|
|
29
|
+
dataType: hints_1.RenderHintsDataType.Day
|
|
30
|
+
});
|
|
31
|
+
}
|
|
19
32
|
}
|
|
20
33
|
__decorate([
|
|
21
34
|
(0, ts_serval_1.serialize)(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AbstractDay.js","sourceRoot":"","sources":["../../../../src/attributes/types/dates/AbstractDay.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAAwD;AACxD,wDAAoD;AAEpD;;GAEG;AACH,MAAsB,WAAY,SAAQ,iCAAe;
|
|
1
|
+
{"version":3,"file":"AbstractDay.js","sourceRoot":"","sources":["../../../../src/attributes/types/dates/AbstractDay.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAAwD;AACxD,qDAA6G;AAC7G,wDAAoD;AAEpD;;GAEG;AACH,MAAsB,WAAY,SAAQ,iCAAe;IAQ9C,MAAM,KAAc,UAAU;QACjC,OAAO,KAAK,CAAC,UAAU,CAAC,QAAQ,CAAC;YAC7B,GAAG,EAAE,CAAC;YACN,GAAG,EAAE,EAAE;SACV,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,GAAG;SACpC,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,EAAE,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,2CAA2C,CAAC,CAAC,CAAC,SAAS;KACxG,CAAC;;0CAC2B;AANjC,kCAqBC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { RenderHints } from "../../../attributes/hints";
|
|
1
2
|
import { ValueHints } from "../../hints/ValueHints";
|
|
2
3
|
import { AbstractInteger } from "../AbstractInteger";
|
|
3
4
|
/**
|
|
@@ -23,5 +24,6 @@ declare enum Month {
|
|
|
23
24
|
export declare class AbstractMonth extends AbstractInteger {
|
|
24
25
|
value: Month;
|
|
25
26
|
static get valueHints(): ValueHints;
|
|
27
|
+
static get renderHints(): RenderHints;
|
|
26
28
|
}
|
|
27
29
|
export {};
|
|
@@ -11,6 +11,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.AbstractMonth = 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
|
/**
|
|
16
17
|
* Month values: 1 (january) - 12 (december)
|
|
@@ -40,6 +41,12 @@ class AbstractMonth extends AbstractInteger_1.AbstractInteger {
|
|
|
40
41
|
max: 12
|
|
41
42
|
});
|
|
42
43
|
}
|
|
44
|
+
static get renderHints() {
|
|
45
|
+
return super.renderHints.copyWith({
|
|
46
|
+
editType: hints_1.RenderHintsEditType.ButtonLike,
|
|
47
|
+
dataType: hints_1.RenderHintsDataType.Month
|
|
48
|
+
});
|
|
49
|
+
}
|
|
43
50
|
}
|
|
44
51
|
__decorate([
|
|
45
52
|
(0, ts_serval_1.serialize)(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AbstractMonth.js","sourceRoot":"","sources":["../../../../src/attributes/types/dates/AbstractMonth.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAAwD;
|
|
1
|
+
{"version":3,"file":"AbstractMonth.js","sourceRoot":"","sources":["../../../../src/attributes/types/dates/AbstractMonth.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAAwD;AACxD,qDAAiG;AAEjG,wDAAoD;AAEpD;;GAEG;AACH,IAAK,KAaJ;AAbD,WAAK,KAAK;IACN,uCAAW,CAAA;IACX,yCAAY,CAAA;IACZ,mCAAS,CAAA;IACT,mCAAS,CAAA;IACT,+BAAO,CAAA;IACP,iCAAQ,CAAA;IACR,iCAAQ,CAAA;IACR,qCAAU,CAAA;IACV,2CAAa,CAAA;IACb,wCAAY,CAAA;IACZ,0CAAa,CAAA;IACb,0CAAa,CAAA;AACjB,CAAC,EAbI,KAAK,KAAL,KAAK,QAaT;AAED;;GAEG;AACH,MAAa,aAAc,SAAQ,iCAAe;IAUvC,MAAM,KAAc,UAAU;QACjC,OAAO,KAAK,CAAC,UAAU,CAAC,QAAQ,CAAC;YAC7B,GAAG,EAAE,CAAC;YACN,GAAG,EAAE,EAAE;SACV,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,KAAK;SACtC,CAAC,CAAA;IACN,CAAC;CACJ;AAfG;IAPC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC;QACN,eAAe,EAAE,CAAC,CAAC,EAAE,EAAE,CACnB,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC;YAC7B,CAAC,CAAC,oCAAoC,KAAK,CAAC,OAAO,QAAQ,KAAK,CAAC,QAAQ,EAAE;YAC3E,CAAC,CAAC,SAAS;KACtB,CAAC;;4CAC0B;AARhC,sCAuBC"}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
+
import { RenderHints, ValueHints } from "../../../attributes/hints";
|
|
1
2
|
import { AbstractInteger } from "../AbstractInteger";
|
|
2
3
|
export declare abstract class AbstractYear extends AbstractInteger {
|
|
3
4
|
value: number;
|
|
5
|
+
static get valueHints(): ValueHints;
|
|
6
|
+
static get renderHints(): RenderHints;
|
|
4
7
|
}
|
|
@@ -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.ButtonLike,
|
|
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 { ValueHints } from "../../../attributes/hints";
|
|
1
2
|
import { AbstractString } from "../AbstractString";
|
|
2
3
|
/**
|
|
3
4
|
* Biologisches Geschlecht
|
|
@@ -9,4 +10,5 @@ export declare enum BiologicalSex {
|
|
|
9
10
|
}
|
|
10
11
|
export declare class Sex extends AbstractString {
|
|
11
12
|
value: BiologicalSex;
|
|
13
|
+
static get valueHints(): ValueHints;
|
|
12
14
|
}
|
|
@@ -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,11 @@ 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.keys(BiologicalSex).map((value) => hints_1.ValueHintsValue.from({ key: value, displayName: `i18n://attributes.values.sex.${value}` }))
|
|
29
|
+
});
|
|
30
|
+
}
|
|
25
31
|
};
|
|
26
32
|
__decorate([
|
|
27
33
|
(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,qDAAuE;AACvE,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,IAAI,CAAC,aAAa,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAC7C,uBAAe,CAAC,IAAI,CAAC,EAAE,GAAG,EAAE,KAAK,EAAE,WAAW,EAAE,gCAAgC,KAAK,EAAE,EAAE,CAAC,CAC7F;SACJ,CAAC,CAAA;IACN,CAAC;CACJ,CAAA;AATG;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,CAef;AAfY,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
|
}
|