xml-model 0.2.7 → 0.2.9
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/build/main/defaults/index.js +6 -6
- package/build/main/defaults/models.js +7 -7
- package/build/main/errors.d.ts +22 -3
- package/build/main/errors.js +73 -16
- package/build/main/helper/merge-maps.js +8 -8
- package/build/main/index.d.ts +1 -0
- package/build/main/index.js +15 -0
- package/build/main/middleware.js +9 -13
- package/build/main/model/index.js +70 -56
- package/build/main/model/property.js +18 -18
- package/build/main/model/types.js +41 -119
- package/build/main/model.spec.js +19 -19
- package/build/main/types.js +6 -16
- package/build/main/xml/index.js +10 -10
- package/build/module/defaults/index.js +6 -6
- package/build/module/defaults/models.js +7 -7
- package/build/module/errors.d.ts +22 -3
- package/build/module/errors.js +71 -14
- package/build/module/helper/merge-maps.js +8 -8
- package/build/module/index.d.ts +1 -0
- package/build/module/index.js +1 -0
- package/build/module/middleware.js +9 -13
- package/build/module/model/index.js +71 -57
- package/build/module/model/property.js +18 -18
- package/build/module/model/types.js +41 -119
- package/build/module/model.spec.js +19 -19
- package/build/module/types.js +6 -16
- package/build/module/xml/index.js +10 -10
- package/package.json +2 -2
|
@@ -13,7 +13,7 @@ const __RΦ = { m: (k, v) => (t, ...a) => t && Reflect.metadata ? Reflect.metada
|
|
|
13
13
|
__RΦ.t[id] = t = l;
|
|
14
14
|
}
|
|
15
15
|
return t;
|
|
16
|
-
}, t: { [
|
|
16
|
+
}, t: { [1621]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(777), p: [__RΦ.a(1616)] }) }, [777]: { LΦ: t => LΦ_0.IΦConstructor }, [1616]: { LΦ: t => Object }, [1620]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(1617), p: [__RΦ.a(1616)] }) }, [1617]: { LΦ: t => LΦ_1.IΦCreateXMLModelPropertyOptions }, [1623]: { LΦ: t => Object }, [1624]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(235), p: [__RΦ.a(1616)] }) }, [235]: { LΦ: t => LΦ_1.IΦXMLModelPropertyOptions }, [783]: { LΦ: t => LΦ_0.ReflectedProperty }, [13]: { LΦ: t => String }, [4]: { RΦ: t => ({ TΦ: "~" }) }, [20]: { LΦ: t => Boolean }, [96]: { RΦ: t => ({ TΦ: "[", e: __RΦ.a(93) }) }, [93]: { LΦ: t => LΦ_2.IΦXMLElement }, [1]: { RΦ: t => ({ TΦ: "~" }) }, [100]: { RΦ: t => ({ TΦ: "O", m: [{ n: "elements", f: "", t: __RΦ.a(96) }] }) }, [2103]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(777), p: [__RΦ.a(2102)] }) }, [2102]: { LΦ: t => Object }, [2105]: { LΦ: t => Object }, [2106]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(235), p: [__RΦ.a(2102)] }) }, [22]: { RΦ: t => ({ TΦ: "V" }) }, [2118]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(777), p: [__RΦ.a(2117)] }) }, [2117]: { LΦ: t => Object }, [2120]: { LΦ: t => Object }, [2129]: { RΦ: t => ({ TΦ: "|", t: [__RΦ.a(10), __RΦ.a(2121)] }) }, [10]: { RΦ: t => ({ TΦ: "u" }) }, [2121]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(235), p: [__RΦ.a(2117)] }) }, [2135]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(777), p: [__RΦ.a(2134)] }) }, [2134]: { LΦ: t => Object }, [2137]: { LΦ: t => Object }, [2161]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(235), p: [__RΦ.a(2134)] }) }, [2168]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(1617), p: [__RΦ.a(2167)] }) }, [2167]: { LΦ: t => Object }, [2170]: { RΦ: t => ({ TΦ: "F", r: __RΦ.a(22), p: [{ n: "prototype", t: () => __RΦ.a(1), b: void 0, v: null }, { n: "property", t: () => __RΦ.a(2172), b: void 0, v: null }], f: "" }) }, [2172]: { LΦ: t => Object } } };
|
|
17
17
|
import { reflect } from "typescript-rtti";
|
|
18
18
|
import * as LΦ_1 from "./types";
|
|
19
19
|
import * as LΦ_2 from "../types";
|
|
@@ -23,7 +23,7 @@ function resolvePropertyConversionOptions(options, constructor, property) {
|
|
|
23
23
|
const _options = {
|
|
24
24
|
name: property,
|
|
25
25
|
get reflected() {
|
|
26
|
-
const reflectedClass = reflect(constructor, { TΦ: "c", t: void 0, p: [__RΦ.a(
|
|
26
|
+
const reflectedClass = reflect(constructor, { TΦ: "c", t: void 0, p: [__RΦ.a(1621)], r: void 0, tp: [] });
|
|
27
27
|
return (reflectedClass.getOwnProperty(property) ||
|
|
28
28
|
reflectedClass.getProperty(property)); // patch bug in typescript-rtti
|
|
29
29
|
// TODO: remove when typescript-rtti is patched
|
|
@@ -33,22 +33,22 @@ function resolvePropertyConversionOptions(options, constructor, property) {
|
|
|
33
33
|
},
|
|
34
34
|
inline: !!options.inline,
|
|
35
35
|
ignored: !!options.ignore,
|
|
36
|
-
isSourceElement: __RΦ.f((...args) => defaults.propertySourceElementsFilter(...args), [__RΦ.m("rt:p", [{ n: "args", t: () => __RΦ.a(4), v: null, f: "3" }]), __RΦ.m("rt:f", "F>"), __RΦ.m("rt:t", () => __RΦ.a(20))], "isSourceElement"),
|
|
36
|
+
isSourceElement: __RΦ.f((...args) => defaults.propertySourceElementsFilter(...args), [__RΦ.m("rt:p", [{ n: "args", t: () => __RΦ.a(4), b: void 0, v: null, f: "3" }]), __RΦ.m("rt:f", "F>"), __RΦ.m("rt:t", () => __RΦ.a(20))], "isSourceElement"),
|
|
37
37
|
resolveElements: options.resolveElements
|
|
38
38
|
? options.resolveElements
|
|
39
|
-
: __RΦ.f((...args) => defaults.propertyResolveSourceElements(...args), [__RΦ.m("rt:p", [{ n: "args", t: () => __RΦ.a(4), v: null, f: "3" }]), __RΦ.m("rt:f", "F>"), __RΦ.m("rt:t", () => __RΦ.a(
|
|
40
|
-
fromXML: __RΦ.f((context) => (options.fromXML || defaults.propertyFromXML)(context), [__RΦ.m("rt:p", [{ n: "context", t: () => __RΦ.a(4), v: null }]), __RΦ.m("rt:f", "F>"), __RΦ.m("rt:t", () => __RΦ.a(1))], "fromXML"),
|
|
41
|
-
toXML: __RΦ.f((context) => (options.toXML || defaults.propertyToXML)(context), [__RΦ.m("rt:p", [{ n: "context", t: () => __RΦ.a(4), v: null }]), __RΦ.m("rt:f", "F>"), __RΦ.m("rt:t", () => __RΦ.a(
|
|
39
|
+
: __RΦ.f((...args) => defaults.propertyResolveSourceElements(...args), [__RΦ.m("rt:p", [{ n: "args", t: () => __RΦ.a(4), b: void 0, v: null, f: "3" }]), __RΦ.m("rt:f", "F>"), __RΦ.m("rt:t", () => __RΦ.a(96))], ""),
|
|
40
|
+
fromXML: __RΦ.f((context) => (options.fromXML || defaults.propertyFromXML)(context), [__RΦ.m("rt:p", [{ n: "context", t: () => __RΦ.a(4), b: void 0, v: null }]), __RΦ.m("rt:f", "F>"), __RΦ.m("rt:t", () => __RΦ.a(1))], "fromXML"),
|
|
41
|
+
toXML: __RΦ.f((context) => (options.toXML || defaults.propertyToXML)(context), [__RΦ.m("rt:p", [{ n: "context", t: () => __RΦ.a(4), b: void 0, v: null }]), __RΦ.m("rt:f", "F>"), __RΦ.m("rt:t", () => __RΦ.a(100))], "toXML"),
|
|
42
42
|
};
|
|
43
43
|
if (options === null || options === void 0 ? void 0 : options.model)
|
|
44
44
|
_options.model = options.model;
|
|
45
45
|
if (options === null || options === void 0 ? void 0 : options.sourceElements) {
|
|
46
46
|
const _sourceElements = options.sourceElements;
|
|
47
47
|
if (typeof _sourceElements === "string") {
|
|
48
|
-
_options.isSourceElement = __RΦ.f((element) => element.name === _sourceElements, [__RΦ.m("rt:p", [{ n: "element", t: () => __RΦ.a(4), v: null }]), __RΦ.m("rt:f", "F>"), __RΦ.m("rt:t", () => __RΦ.a(20))], "");
|
|
48
|
+
_options.isSourceElement = __RΦ.f((element) => element.name === _sourceElements, [__RΦ.m("rt:p", [{ n: "element", t: () => __RΦ.a(4), b: void 0, v: null }]), __RΦ.m("rt:f", "F>"), __RΦ.m("rt:t", () => __RΦ.a(20))], "");
|
|
49
49
|
}
|
|
50
50
|
else if (_sourceElements && _sourceElements instanceof RegExp) {
|
|
51
|
-
_options.isSourceElement = __RΦ.f((element) => _sourceElements.test(element.name || ""), [__RΦ.m("rt:p", [{ n: "element", t: () => __RΦ.a(4), v: null }]), __RΦ.m("rt:f", "F>"), __RΦ.m("rt:t", () => __RΦ.a(20))], "");
|
|
51
|
+
_options.isSourceElement = __RΦ.f((element) => _sourceElements.test(element.name || ""), [__RΦ.m("rt:p", [{ n: "element", t: () => __RΦ.a(4), b: void 0, v: null }]), __RΦ.m("rt:f", "F>"), __RΦ.m("rt:t", () => __RΦ.a(20))], "");
|
|
52
52
|
}
|
|
53
53
|
else {
|
|
54
54
|
_options.isSourceElement = _sourceElements;
|
|
@@ -56,9 +56,9 @@ function resolvePropertyConversionOptions(options, constructor, property) {
|
|
|
56
56
|
}
|
|
57
57
|
return _options;
|
|
58
58
|
}
|
|
59
|
-
__RΦ.m("rt:p", [{ n: "options", t: () => __RΦ.a(
|
|
59
|
+
__RΦ.m("rt:p", [{ n: "options", t: () => __RΦ.a(1620), b: void 0, v: null }, { n: "constructor", t: () => __RΦ.a(1621), b: void 0, v: null }, { n: "property", t: () => __RΦ.a(1623), b: void 0, v: null }])(resolvePropertyConversionOptions);
|
|
60
60
|
__RΦ.m("rt:f", "F")(resolvePropertyConversionOptions);
|
|
61
|
-
__RΦ.m("rt:t", () => __RΦ.a(
|
|
61
|
+
__RΦ.m("rt:t", () => __RΦ.a(1624))(resolvePropertyConversionOptions);
|
|
62
62
|
const PropertyOptions = new Map();
|
|
63
63
|
function storePropertyConversionOptions(constructor, property, options) {
|
|
64
64
|
let map = PropertyOptions.get(constructor);
|
|
@@ -68,7 +68,7 @@ function storePropertyConversionOptions(constructor, property, options) {
|
|
|
68
68
|
}
|
|
69
69
|
map.set(property, options);
|
|
70
70
|
}
|
|
71
|
-
__RΦ.m("rt:p", [{ n: "constructor", t: () => __RΦ.a(
|
|
71
|
+
__RΦ.m("rt:p", [{ n: "constructor", t: () => __RΦ.a(2103), b: void 0, v: null }, { n: "property", t: () => __RΦ.a(2105), b: void 0, v: null }, { n: "options", t: () => __RΦ.a(2106), b: void 0, v: null }])(storePropertyConversionOptions);
|
|
72
72
|
__RΦ.m("rt:f", "F")(storePropertyConversionOptions);
|
|
73
73
|
__RΦ.m("rt:t", () => __RΦ.a(22))(storePropertyConversionOptions);
|
|
74
74
|
function findPropertyConversionOptions(constructor, property) {
|
|
@@ -77,23 +77,23 @@ function findPropertyConversionOptions(constructor, property) {
|
|
|
77
77
|
return options.get(property);
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
|
-
__RΦ.m("rt:p", [{ n: "constructor", t: () => __RΦ.a(
|
|
80
|
+
__RΦ.m("rt:p", [{ n: "constructor", t: () => __RΦ.a(2118), b: void 0, v: null }, { n: "property", t: () => __RΦ.a(2120), b: void 0, v: null }])(findPropertyConversionOptions);
|
|
81
81
|
__RΦ.m("rt:f", "F")(findPropertyConversionOptions);
|
|
82
|
-
__RΦ.m("rt:t", () => __RΦ.a(
|
|
82
|
+
__RΦ.m("rt:t", () => __RΦ.a(2129))(findPropertyConversionOptions);
|
|
83
83
|
export function getPropertyConversionOptions(constructor, property) {
|
|
84
84
|
const options = findPropertyConversionOptions(constructor, property);
|
|
85
85
|
return options || resolvePropertyConversionOptions({}, constructor, property);
|
|
86
86
|
}
|
|
87
|
-
__RΦ.m("rt:p", [{ n: "constructor", t: () => __RΦ.a(
|
|
87
|
+
__RΦ.m("rt:p", [{ n: "constructor", t: () => __RΦ.a(2135), b: void 0, v: null }, { n: "property", t: () => __RΦ.a(2137), b: void 0, v: null }])(getPropertyConversionOptions);
|
|
88
88
|
__RΦ.m("rt:f", "F")(getPropertyConversionOptions);
|
|
89
|
-
__RΦ.m("rt:t", () => __RΦ.a(
|
|
89
|
+
__RΦ.m("rt:t", () => __RΦ.a(2161))(getPropertyConversionOptions);
|
|
90
90
|
function PropDecoratorFactory(options) {
|
|
91
91
|
return __RΦ.f(function (prototype, property) {
|
|
92
92
|
const _options = resolvePropertyConversionOptions(options || {}, prototype.constructor, property);
|
|
93
93
|
storePropertyConversionOptions(prototype.constructor, property, _options);
|
|
94
|
-
}, [__RΦ.m("rt:p", [{ n: "prototype", t: () => __RΦ.a(1), v: null }, { n: "property", t: () => __RΦ.a(
|
|
94
|
+
}, [__RΦ.m("rt:p", [{ n: "prototype", t: () => __RΦ.a(1), b: void 0, v: null }, { n: "property", t: () => __RΦ.a(2172), b: void 0, v: null }]), __RΦ.m("rt:f", "M."), __RΦ.m("rt:t", () => __RΦ.a(22))], "");
|
|
95
95
|
}
|
|
96
|
-
__RΦ.m("rt:p", [{ n: "options", t: () => __RΦ.a(
|
|
96
|
+
__RΦ.m("rt:p", [{ n: "options", t: () => __RΦ.a(2168), b: void 0, v: null, f: "?" }])(PropDecoratorFactory);
|
|
97
97
|
__RΦ.m("rt:f", "F")(PropDecoratorFactory);
|
|
98
|
-
__RΦ.m("rt:t", () => __RΦ.a(
|
|
98
|
+
__RΦ.m("rt:t", () => __RΦ.a(2170))(PropDecoratorFactory);
|
|
99
99
|
export { PropDecoratorFactory as Prop };
|
|
@@ -13,69 +13,41 @@ const __RΦ = { m: (k, v) => (t, ...a) => t && Reflect.metadata ? Reflect.metada
|
|
|
13
13
|
__RΦ.t[id] = t = l;
|
|
14
14
|
}
|
|
15
15
|
return t;
|
|
16
|
-
}, t: { [
|
|
16
|
+
}, t: { [1335]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(235), p: [__RΦ.a(1323)] }) }, [235]: { TΦ: "5", name: "XMLModelPropertyOptions" }, [1323]: { LΦ: t => Object }, [1339]: { LΦ: t => Object }, [337]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(235), p: [__RΦ.a(299)] }) }, [299]: { LΦ: t => Object }, [96]: { RΦ: t => ({ TΦ: "[", e: __RΦ.a(93) }) }, [93]: { LΦ: t => LΦ_0.IΦXMLElement }, [1177]: { LΦ: t => Object }, [783]: { LΦ: t => LΦ_1.ReflectedProperty }, [13]: { LΦ: t => String }, [20]: { LΦ: t => Boolean }, [272]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(269), p: [__RΦ.a(1)] }) }, [269]: { LΦ: t => LΦ_2.XMLModel }, [1]: { RΦ: t => ({ TΦ: "~" }) }, [241]: { RΦ: t => ({ TΦ: "F", r: __RΦ.a(20), p: [{ n: "element", t: () => __RΦ.a(93), b: void 0, v: null }, { n: "context", t: () => __RΦ.a(318), b: void 0, v: null }], f: "" }) }, [318]: { RΦ: t => ({ TΦ: "m", t: __RΦ.a(319), p: [__RΦ.a(301), __RΦ.a(302)], m: [{ n: "model", f: "", t: __RΦ.a(3262) }, { n: "xml", f: "", t: __RΦ.a(100) }, { n: "property", f: "", t: __RΦ.a(235) }] }) }, [319]: { LΦ: t => Object }, [301]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(298), p: [__RΦ.a(236)] }) }, [298]: { TΦ: "5", name: "PropertyFromXMLContext" }, [236]: { LΦ: t => Object }, [302]: { LΦ: t => "elements" }, [3262]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(269), p: [__RΦ.a(236)] }) }, [100]: { RΦ: t => ({ TΦ: "O", m: [{ n: "elements", f: "", t: __RΦ.a(96) }] }) }, [245]: { RΦ: t => ({ TΦ: "F", r: __RΦ.a(96), p: [{ n: "context", t: () => __RΦ.a(318), b: void 0, v: null }], f: "" }) }, [255]: { RΦ: t => ({ TΦ: "F", r: __RΦ.a(1178), p: [{ n: "context", t: () => __RΦ.a(301), b: void 0, v: null }], f: "" }) }, [1178]: { LΦ: t => Object }, [275]: { RΦ: t => ({ TΦ: "F", r: __RΦ.a(100), p: [{ n: "context", t: () => __RΦ.a(1325), b: void 0, v: null }], f: "" }) }, [1325]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(1322), p: [__RΦ.a(236)] }) }, [1322]: { TΦ: "5", name: "PropertyToXMLContext" }, [2081]: { RΦ: t => ({ TΦ: "|", t: [__RΦ.a(13), __RΦ.a(74), __RΦ.a(2080)] }) }, [74]: { LΦ: t => RegExp }, [2080]: { RΦ: t => ({ TΦ: "O", m: [] }) }, [2012]: { RΦ: t => ({ TΦ: "O", m: [] }) }, [2056]: { RΦ: t => ({ TΦ: "O", m: [] }) }, [2031]: { RΦ: t => ({ TΦ: "O", m: [] }) }, [349]: { RΦ: t => ({ TΦ: "|", t: [__RΦ.a(10), __RΦ.a(272)] }) }, [10]: { RΦ: t => ({ TΦ: "u" }) }, [530]: { RΦ: t => ({ TΦ: "|", t: [__RΦ.a(12), __RΦ.a(216)] }) }, [12]: { RΦ: t => ({ TΦ: "n" }) }, [216]: { TΦ: "5", name: "ConversionOptions" }, [230]: { RΦ: t => ({ TΦ: "[", e: __RΦ.a(229) }) }, [229]: { RΦ: t => ({ TΦ: "O", m: [] }) }, [574]: { RΦ: t => ({ TΦ: "m", t: __RΦ.a(575), p: [__RΦ.a(221)], m: [] }) }, [575]: { LΦ: t => Object }, [221]: { LΦ: t => Object }, [605]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(269), p: [__RΦ.a(221)] }) }, [259]: { LΦ: t => Object }, [1300]: { RΦ: t => ({ TΦ: "m", t: __RΦ.a(1301), p: [__RΦ.a(259)], m: [] }) }, [1301]: { LΦ: t => Object }, [1304]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(269), p: [__RΦ.a(259)] }) }, [1750]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(269), p: [__RΦ.a(199)] }) }, [199]: { LΦ: t => Object }, [578]: { RΦ: t => ({ TΦ: "O", m: [{ n: "fromXML", f: "", t: __RΦ.a(585) }, { n: "toXML", f: "", t: __RΦ.a(1366) }, { n: "options", f: "", t: __RΦ.a(1573) }] }) }, [585]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(216), p: [__RΦ.a(581), __RΦ.a(583)] }) }, [581]: { RΦ: t => ({ TΦ: "m", t: __RΦ.a(582), p: [__RΦ.a(223), __RΦ.a(211)], m: [{ n: "model", f: "", t: __RΦ.a(1750) }, { n: "xml", f: "", t: __RΦ.a(100) }] }) }, [582]: { LΦ: t => Object }, [223]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(220), p: [__RΦ.a(199)] }) }, [220]: { TΦ: "5", name: "fromXMLContext" }, [211]: { LΦ: t => "properties" }, [583]: { RΦ: t => ({ TΦ: "m", t: __RΦ.a(584), p: [__RΦ.a(199)], m: [] }) }, [584]: { LΦ: t => Object }, [1366]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(216), p: [__RΦ.a(1362), __RΦ.a(1364)] }) }, [1362]: { RΦ: t => ({ TΦ: "m", t: __RΦ.a(1363), p: [__RΦ.a(261), __RΦ.a(211)], m: [{ n: "object", f: "", t: __RΦ.a(199) }, { n: "model", f: "", t: __RΦ.a(1750) }] }) }, [1363]: { LΦ: t => Object }, [261]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(258), p: [__RΦ.a(199)] }) }, [258]: { TΦ: "5", name: "toXMLContext" }, [1364]: { RΦ: t => ({ TΦ: "m", t: __RΦ.a(1365), p: [__RΦ.a(199)], m: [] }) }, [1365]: { LΦ: t => Object }, [1573]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(1066), p: [__RΦ.a(1571), __RΦ.a(1572)] }) }, [1066]: { LΦ: t => Map }, [1571]: { LΦ: t => Object }, [1572]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(235), p: [__RΦ.a(199)] }) }, [224]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(216), p: [__RΦ.a(223), __RΦ.a(199)] }) }, [262]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(216), p: [__RΦ.a(261), __RΦ.a(100)] }) }, [2522]: { RΦ: t => ({ TΦ: "|", t: [__RΦ.a(10), __RΦ.a(2521)] }) }, [2521]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(269), p: [__RΦ.a(2270)] }) }, [2270]: { LΦ: t => Object }, [2289]: { RΦ: t => ({ TΦ: "O", m: [] }) }, [2279]: { RΦ: t => ({ TΦ: "O", m: [] }) } } };
|
|
17
17
|
var IΦPropertyToXMLContext = { name: "PropertyToXMLContext", prototype: {}, identity: Symbol("PropertyToXMLContext (interface)") };
|
|
18
18
|
export { IΦPropertyToXMLContext };
|
|
19
|
-
(t => __RΦ.t[
|
|
19
|
+
(t => __RΦ.t[1322] = t)(IΦPropertyToXMLContext);
|
|
20
20
|
__RΦ.m("rt:P", ["property", "value"])(IΦPropertyToXMLContext);
|
|
21
21
|
__RΦ.m("rt:m", [])(IΦPropertyToXMLContext);
|
|
22
22
|
__RΦ.m("rt:i", [() => IΦOmit])(IΦPropertyToXMLContext);
|
|
23
23
|
__RΦ.m("rt:f", "Ie")(IΦPropertyToXMLContext);
|
|
24
|
-
__RΦ.m("rt:t", () => __RΦ.a(
|
|
24
|
+
__RΦ.m("rt:t", () => __RΦ.a(1335))(IΦPropertyToXMLContext.prototype, "property");
|
|
25
25
|
__RΦ.m("rt:f", "P")(IΦPropertyToXMLContext.prototype, "property");
|
|
26
|
-
__RΦ.m("rt:t", () => __RΦ.a(
|
|
27
|
-
__RΦ.m("rt:f", "P")(IΦPropertyToXMLContext.prototype, "value");
|
|
28
|
-
__RΦ.m("rt:t", () => __RΦ.a(1363))(IΦPropertyToXMLContext.prototype, "property");
|
|
29
|
-
__RΦ.m("rt:f", "P")(IΦPropertyToXMLContext.prototype, "property");
|
|
30
|
-
__RΦ.m("rt:t", () => __RΦ.a(1367))(IΦPropertyToXMLContext.prototype, "value");
|
|
26
|
+
__RΦ.m("rt:t", () => __RΦ.a(1339))(IΦPropertyToXMLContext.prototype, "value");
|
|
31
27
|
__RΦ.m("rt:f", "P")(IΦPropertyToXMLContext.prototype, "value");
|
|
32
28
|
import * as LΦ_0 from "../types";
|
|
33
29
|
var IΦPropertyFromXMLContext = { name: "PropertyFromXMLContext", prototype: {}, identity: Symbol("PropertyFromXMLContext (interface)") };
|
|
34
30
|
export { IΦPropertyFromXMLContext };
|
|
35
|
-
(t => __RΦ.t[
|
|
31
|
+
(t => __RΦ.t[298] = t)(IΦPropertyFromXMLContext);
|
|
36
32
|
__RΦ.m("rt:P", ["property", "elements"])(IΦPropertyFromXMLContext);
|
|
37
33
|
__RΦ.m("rt:m", [])(IΦPropertyFromXMLContext);
|
|
38
34
|
__RΦ.m("rt:i", [() => IΦOmit])(IΦPropertyFromXMLContext);
|
|
39
35
|
__RΦ.m("rt:f", "Ie")(IΦPropertyFromXMLContext);
|
|
40
|
-
__RΦ.m("rt:t", () => __RΦ.a(
|
|
41
|
-
__RΦ.m("rt:f", "P")(IΦPropertyFromXMLContext.prototype, "property");
|
|
42
|
-
__RΦ.m("rt:t", () => __RΦ.a(107))(IΦPropertyFromXMLContext.prototype, "elements");
|
|
43
|
-
__RΦ.m("rt:f", "P")(IΦPropertyFromXMLContext.prototype, "elements");
|
|
44
|
-
__RΦ.m("rt:t", () => __RΦ.a(493))(IΦPropertyFromXMLContext.prototype, "property");
|
|
36
|
+
__RΦ.m("rt:t", () => __RΦ.a(337))(IΦPropertyFromXMLContext.prototype, "property");
|
|
45
37
|
__RΦ.m("rt:f", "P")(IΦPropertyFromXMLContext.prototype, "property");
|
|
46
|
-
__RΦ.m("rt:t", () => __RΦ.a(
|
|
38
|
+
__RΦ.m("rt:t", () => __RΦ.a(96))(IΦPropertyFromXMLContext.prototype, "elements");
|
|
47
39
|
__RΦ.m("rt:f", "P")(IΦPropertyFromXMLContext.prototype, "elements");
|
|
48
40
|
import * as LΦ_1 from "typescript-rtti";
|
|
49
41
|
import * as LΦ_2 from "../model";
|
|
50
42
|
var IΦXMLModelPropertyOptions = { name: "XMLModelPropertyOptions", prototype: {}, identity: Symbol("XMLModelPropertyOptions (interface)") };
|
|
51
43
|
export { IΦXMLModelPropertyOptions };
|
|
52
|
-
(t => __RΦ.t[
|
|
44
|
+
(t => __RΦ.t[235] = t)(IΦXMLModelPropertyOptions);
|
|
53
45
|
__RΦ.m("rt:P", ["name", "reflected", "tagname", "ignored", "inline", "model", "isSourceElement", "resolveElements", "fromXML", "toXML"])(IΦXMLModelPropertyOptions);
|
|
54
46
|
__RΦ.m("rt:m", [])(IΦXMLModelPropertyOptions);
|
|
55
47
|
__RΦ.m("rt:f", "Ie")(IΦXMLModelPropertyOptions);
|
|
56
|
-
__RΦ.m("rt:t", () => __RΦ.a(
|
|
57
|
-
__RΦ.m("rt:f", "P")(IΦXMLModelPropertyOptions.prototype, "name");
|
|
58
|
-
__RΦ.m("rt:t", () => __RΦ.a(497))(IΦXMLModelPropertyOptions.prototype, "reflected");
|
|
59
|
-
__RΦ.m("rt:f", "P")(IΦXMLModelPropertyOptions.prototype, "reflected");
|
|
60
|
-
__RΦ.m("rt:t", () => __RΦ.a(13))(IΦXMLModelPropertyOptions.prototype, "tagname");
|
|
61
|
-
__RΦ.m("rt:f", "P")(IΦXMLModelPropertyOptions.prototype, "tagname");
|
|
62
|
-
__RΦ.m("rt:t", () => __RΦ.a(20))(IΦXMLModelPropertyOptions.prototype, "ignored");
|
|
63
|
-
__RΦ.m("rt:f", "P")(IΦXMLModelPropertyOptions.prototype, "ignored");
|
|
64
|
-
__RΦ.m("rt:t", () => __RΦ.a(20))(IΦXMLModelPropertyOptions.prototype, "inline");
|
|
65
|
-
__RΦ.m("rt:f", "P")(IΦXMLModelPropertyOptions.prototype, "inline");
|
|
66
|
-
__RΦ.m("rt:t", () => __RΦ.a(505))(IΦXMLModelPropertyOptions.prototype, "model");
|
|
67
|
-
__RΦ.m("rt:f", "P?")(IΦXMLModelPropertyOptions.prototype, "model");
|
|
68
|
-
__RΦ.m("rt:t", () => __RΦ.a(357))(IΦXMLModelPropertyOptions.prototype, "isSourceElement");
|
|
69
|
-
__RΦ.m("rt:f", "P")(IΦXMLModelPropertyOptions.prototype, "isSourceElement");
|
|
70
|
-
__RΦ.m("rt:t", () => __RΦ.a(1214))(IΦXMLModelPropertyOptions.prototype, "resolveElements");
|
|
71
|
-
__RΦ.m("rt:f", "P")(IΦXMLModelPropertyOptions.prototype, "resolveElements");
|
|
72
|
-
__RΦ.m("rt:t", () => __RΦ.a(1216))(IΦXMLModelPropertyOptions.prototype, "fromXML");
|
|
73
|
-
__RΦ.m("rt:f", "P")(IΦXMLModelPropertyOptions.prototype, "fromXML");
|
|
74
|
-
__RΦ.m("rt:t", () => __RΦ.a(1218))(IΦXMLModelPropertyOptions.prototype, "toXML");
|
|
75
|
-
__RΦ.m("rt:f", "P")(IΦXMLModelPropertyOptions.prototype, "toXML");
|
|
76
|
-
__RΦ.m("rt:t", () => __RΦ.a(496))(IΦXMLModelPropertyOptions.prototype, "name");
|
|
48
|
+
__RΦ.m("rt:t", () => __RΦ.a(1177))(IΦXMLModelPropertyOptions.prototype, "name");
|
|
77
49
|
__RΦ.m("rt:f", "P")(IΦXMLModelPropertyOptions.prototype, "name");
|
|
78
|
-
__RΦ.m("rt:t", () => __RΦ.a(
|
|
50
|
+
__RΦ.m("rt:t", () => __RΦ.a(783))(IΦXMLModelPropertyOptions.prototype, "reflected");
|
|
79
51
|
__RΦ.m("rt:f", "P")(IΦXMLModelPropertyOptions.prototype, "reflected");
|
|
80
52
|
__RΦ.m("rt:t", () => __RΦ.a(13))(IΦXMLModelPropertyOptions.prototype, "tagname");
|
|
81
53
|
__RΦ.m("rt:f", "P")(IΦXMLModelPropertyOptions.prototype, "tagname");
|
|
@@ -83,148 +55,98 @@ __RΦ.m("rt:t", () => __RΦ.a(20))(IΦXMLModelPropertyOptions.prototype, "ignore
|
|
|
83
55
|
__RΦ.m("rt:f", "P")(IΦXMLModelPropertyOptions.prototype, "ignored");
|
|
84
56
|
__RΦ.m("rt:t", () => __RΦ.a(20))(IΦXMLModelPropertyOptions.prototype, "inline");
|
|
85
57
|
__RΦ.m("rt:f", "P")(IΦXMLModelPropertyOptions.prototype, "inline");
|
|
86
|
-
__RΦ.m("rt:t", () => __RΦ.a(
|
|
58
|
+
__RΦ.m("rt:t", () => __RΦ.a(272))(IΦXMLModelPropertyOptions.prototype, "model");
|
|
87
59
|
__RΦ.m("rt:f", "P?")(IΦXMLModelPropertyOptions.prototype, "model");
|
|
88
|
-
__RΦ.m("rt:t", () => __RΦ.a(
|
|
60
|
+
__RΦ.m("rt:t", () => __RΦ.a(241))(IΦXMLModelPropertyOptions.prototype, "isSourceElement");
|
|
89
61
|
__RΦ.m("rt:f", "P")(IΦXMLModelPropertyOptions.prototype, "isSourceElement");
|
|
90
|
-
__RΦ.m("rt:t", () => __RΦ.a(
|
|
62
|
+
__RΦ.m("rt:t", () => __RΦ.a(245))(IΦXMLModelPropertyOptions.prototype, "resolveElements");
|
|
91
63
|
__RΦ.m("rt:f", "P")(IΦXMLModelPropertyOptions.prototype, "resolveElements");
|
|
92
|
-
__RΦ.m("rt:t", () => __RΦ.a(
|
|
64
|
+
__RΦ.m("rt:t", () => __RΦ.a(255))(IΦXMLModelPropertyOptions.prototype, "fromXML");
|
|
93
65
|
__RΦ.m("rt:f", "P")(IΦXMLModelPropertyOptions.prototype, "fromXML");
|
|
94
|
-
__RΦ.m("rt:t", () => __RΦ.a(
|
|
66
|
+
__RΦ.m("rt:t", () => __RΦ.a(275))(IΦXMLModelPropertyOptions.prototype, "toXML");
|
|
95
67
|
__RΦ.m("rt:f", "P")(IΦXMLModelPropertyOptions.prototype, "toXML");
|
|
96
68
|
var IΦCreateXMLModelPropertyOptions = { name: "CreateXMLModelPropertyOptions", prototype: {}, identity: Symbol("CreateXMLModelPropertyOptions (interface)") };
|
|
97
69
|
export { IΦCreateXMLModelPropertyOptions };
|
|
98
|
-
(t => __RΦ.t[
|
|
70
|
+
(t => __RΦ.t[1617] = t)(IΦCreateXMLModelPropertyOptions);
|
|
99
71
|
__RΦ.m("rt:P", ["tagname", "sourceElements", "resolveElements", "toXML", "fromXML", "inline", "ignore", "model"])(IΦCreateXMLModelPropertyOptions);
|
|
100
72
|
__RΦ.m("rt:m", [])(IΦCreateXMLModelPropertyOptions);
|
|
101
73
|
__RΦ.m("rt:f", "Ie")(IΦCreateXMLModelPropertyOptions);
|
|
102
74
|
__RΦ.m("rt:t", () => __RΦ.a(13))(IΦCreateXMLModelPropertyOptions.prototype, "tagname");
|
|
103
75
|
__RΦ.m("rt:f", "P?")(IΦCreateXMLModelPropertyOptions.prototype, "tagname");
|
|
104
|
-
__RΦ.m("rt:t", () => __RΦ.a(
|
|
76
|
+
__RΦ.m("rt:t", () => __RΦ.a(2081))(IΦCreateXMLModelPropertyOptions.prototype, "sourceElements");
|
|
105
77
|
__RΦ.m("rt:f", "P?")(IΦCreateXMLModelPropertyOptions.prototype, "sourceElements");
|
|
106
|
-
__RΦ.m("rt:t", () => __RΦ.a(
|
|
78
|
+
__RΦ.m("rt:t", () => __RΦ.a(2012))(IΦCreateXMLModelPropertyOptions.prototype, "resolveElements");
|
|
107
79
|
__RΦ.m("rt:f", "P?")(IΦCreateXMLModelPropertyOptions.prototype, "resolveElements");
|
|
108
|
-
__RΦ.m("rt:t", () => __RΦ.a(
|
|
80
|
+
__RΦ.m("rt:t", () => __RΦ.a(2056))(IΦCreateXMLModelPropertyOptions.prototype, "toXML");
|
|
109
81
|
__RΦ.m("rt:f", "P?")(IΦCreateXMLModelPropertyOptions.prototype, "toXML");
|
|
110
|
-
__RΦ.m("rt:t", () => __RΦ.a(
|
|
82
|
+
__RΦ.m("rt:t", () => __RΦ.a(2031))(IΦCreateXMLModelPropertyOptions.prototype, "fromXML");
|
|
111
83
|
__RΦ.m("rt:f", "P?")(IΦCreateXMLModelPropertyOptions.prototype, "fromXML");
|
|
112
84
|
__RΦ.m("rt:t", () => __RΦ.a(20))(IΦCreateXMLModelPropertyOptions.prototype, "inline");
|
|
113
85
|
__RΦ.m("rt:f", "P?")(IΦCreateXMLModelPropertyOptions.prototype, "inline");
|
|
114
86
|
__RΦ.m("rt:t", () => __RΦ.a(20))(IΦCreateXMLModelPropertyOptions.prototype, "ignore");
|
|
115
87
|
__RΦ.m("rt:f", "P?")(IΦCreateXMLModelPropertyOptions.prototype, "ignore");
|
|
116
|
-
__RΦ.m("rt:t", () => __RΦ.a(
|
|
117
|
-
__RΦ.m("rt:f", "P?")(IΦCreateXMLModelPropertyOptions.prototype, "model");
|
|
118
|
-
__RΦ.m("rt:t", () => __RΦ.a(13))(IΦCreateXMLModelPropertyOptions.prototype, "tagname");
|
|
119
|
-
__RΦ.m("rt:f", "P?")(IΦCreateXMLModelPropertyOptions.prototype, "tagname");
|
|
120
|
-
__RΦ.m("rt:t", () => __RΦ.a(1379))(IΦCreateXMLModelPropertyOptions.prototype, "sourceElements");
|
|
121
|
-
__RΦ.m("rt:f", "P?")(IΦCreateXMLModelPropertyOptions.prototype, "sourceElements");
|
|
122
|
-
__RΦ.m("rt:t", () => __RΦ.a(1270))(IΦCreateXMLModelPropertyOptions.prototype, "resolveElements");
|
|
123
|
-
__RΦ.m("rt:f", "P?")(IΦCreateXMLModelPropertyOptions.prototype, "resolveElements");
|
|
124
|
-
__RΦ.m("rt:t", () => __RΦ.a(1339))(IΦCreateXMLModelPropertyOptions.prototype, "toXML");
|
|
125
|
-
__RΦ.m("rt:f", "P?")(IΦCreateXMLModelPropertyOptions.prototype, "toXML");
|
|
126
|
-
__RΦ.m("rt:t", () => __RΦ.a(1292))(IΦCreateXMLModelPropertyOptions.prototype, "fromXML");
|
|
127
|
-
__RΦ.m("rt:f", "P?")(IΦCreateXMLModelPropertyOptions.prototype, "fromXML");
|
|
128
|
-
__RΦ.m("rt:t", () => __RΦ.a(20))(IΦCreateXMLModelPropertyOptions.prototype, "inline");
|
|
129
|
-
__RΦ.m("rt:f", "P?")(IΦCreateXMLModelPropertyOptions.prototype, "inline");
|
|
130
|
-
__RΦ.m("rt:t", () => __RΦ.a(20))(IΦCreateXMLModelPropertyOptions.prototype, "ignore");
|
|
131
|
-
__RΦ.m("rt:f", "P?")(IΦCreateXMLModelPropertyOptions.prototype, "ignore");
|
|
132
|
-
__RΦ.m("rt:t", () => __RΦ.a(506))(IΦCreateXMLModelPropertyOptions.prototype, "model");
|
|
88
|
+
__RΦ.m("rt:t", () => __RΦ.a(349))(IΦCreateXMLModelPropertyOptions.prototype, "model");
|
|
133
89
|
__RΦ.m("rt:f", "P?")(IΦCreateXMLModelPropertyOptions.prototype, "model");
|
|
134
90
|
var IΦConversionOptions = { name: "ConversionOptions", prototype: {}, identity: Symbol("ConversionOptions (interface)") };
|
|
135
|
-
(t => __RΦ.t[
|
|
91
|
+
(t => __RΦ.t[216] = t)(IΦConversionOptions);
|
|
136
92
|
__RΦ.m("rt:P", ["parent", "middlewares"])(IΦConversionOptions);
|
|
137
93
|
__RΦ.m("rt:m", [])(IΦConversionOptions);
|
|
138
94
|
__RΦ.m("rt:f", "I")(IΦConversionOptions);
|
|
139
|
-
__RΦ.m("rt:t", () => __RΦ.a(
|
|
140
|
-
__RΦ.m("rt:f", "P")(IΦConversionOptions.prototype, "parent");
|
|
141
|
-
__RΦ.m("rt:t", () => __RΦ.a(613))(IΦConversionOptions.prototype, "middlewares");
|
|
142
|
-
__RΦ.m("rt:f", "P")(IΦConversionOptions.prototype, "middlewares");
|
|
143
|
-
__RΦ.m("rt:t", () => __RΦ.a(610))(IΦConversionOptions.prototype, "parent");
|
|
95
|
+
__RΦ.m("rt:t", () => __RΦ.a(530))(IΦConversionOptions.prototype, "parent");
|
|
144
96
|
__RΦ.m("rt:f", "P")(IΦConversionOptions.prototype, "parent");
|
|
145
|
-
__RΦ.m("rt:t", () => __RΦ.a(
|
|
97
|
+
__RΦ.m("rt:t", () => __RΦ.a(230))(IΦConversionOptions.prototype, "middlewares");
|
|
146
98
|
__RΦ.m("rt:f", "P")(IΦConversionOptions.prototype, "middlewares");
|
|
147
99
|
var IΦfromXMLContext = { name: "fromXMLContext", prototype: {}, identity: Symbol("fromXMLContext (interface)") };
|
|
148
100
|
export { IΦfromXMLContext };
|
|
149
|
-
(t => __RΦ.t[
|
|
101
|
+
(t => __RΦ.t[220] = t)(IΦfromXMLContext);
|
|
150
102
|
__RΦ.m("rt:P", ["xml", "properties", "model"])(IΦfromXMLContext);
|
|
151
103
|
__RΦ.m("rt:m", [])(IΦfromXMLContext);
|
|
152
104
|
__RΦ.m("rt:f", "Ie")(IΦfromXMLContext);
|
|
153
|
-
__RΦ.m("rt:t", () => __RΦ.a(
|
|
105
|
+
__RΦ.m("rt:t", () => __RΦ.a(100))(IΦfromXMLContext.prototype, "xml");
|
|
154
106
|
__RΦ.m("rt:f", "P")(IΦfromXMLContext.prototype, "xml");
|
|
155
|
-
__RΦ.m("rt:t", () => __RΦ.a(
|
|
107
|
+
__RΦ.m("rt:t", () => __RΦ.a(574))(IΦfromXMLContext.prototype, "properties");
|
|
156
108
|
__RΦ.m("rt:f", "P")(IΦfromXMLContext.prototype, "properties");
|
|
157
|
-
__RΦ.m("rt:t", () => __RΦ.a(
|
|
158
|
-
__RΦ.m("rt:f", "P")(IΦfromXMLContext.prototype, "model");
|
|
159
|
-
__RΦ.m("rt:t", () => __RΦ.a(111))(IΦfromXMLContext.prototype, "xml");
|
|
160
|
-
__RΦ.m("rt:f", "P")(IΦfromXMLContext.prototype, "xml");
|
|
161
|
-
__RΦ.m("rt:t", () => __RΦ.a(656))(IΦfromXMLContext.prototype, "properties");
|
|
162
|
-
__RΦ.m("rt:f", "P")(IΦfromXMLContext.prototype, "properties");
|
|
163
|
-
__RΦ.m("rt:t", () => __RΦ.a(519))(IΦfromXMLContext.prototype, "model");
|
|
109
|
+
__RΦ.m("rt:t", () => __RΦ.a(605))(IΦfromXMLContext.prototype, "model");
|
|
164
110
|
__RΦ.m("rt:f", "P")(IΦfromXMLContext.prototype, "model");
|
|
165
111
|
var IΦtoXMLContext = { name: "toXMLContext", prototype: {}, identity: Symbol("toXMLContext (interface)") };
|
|
166
112
|
export { IΦtoXMLContext };
|
|
167
|
-
(t => __RΦ.t[
|
|
113
|
+
(t => __RΦ.t[258] = t)(IΦtoXMLContext);
|
|
168
114
|
__RΦ.m("rt:P", ["object", "properties", "model"])(IΦtoXMLContext);
|
|
169
115
|
__RΦ.m("rt:m", [])(IΦtoXMLContext);
|
|
170
116
|
__RΦ.m("rt:f", "Ie")(IΦtoXMLContext);
|
|
171
|
-
__RΦ.m("rt:t", () => __RΦ.a(
|
|
172
|
-
__RΦ.m("rt:f", "P")(IΦtoXMLContext.prototype, "object");
|
|
173
|
-
__RΦ.m("rt:t", () => __RΦ.a(888))(IΦtoXMLContext.prototype, "properties");
|
|
174
|
-
__RΦ.m("rt:f", "P")(IΦtoXMLContext.prototype, "properties");
|
|
175
|
-
__RΦ.m("rt:t", () => __RΦ.a(926))(IΦtoXMLContext.prototype, "model");
|
|
176
|
-
__RΦ.m("rt:f", "P")(IΦtoXMLContext.prototype, "model");
|
|
177
|
-
__RΦ.m("rt:t", () => __RΦ.a(861))(IΦtoXMLContext.prototype, "object");
|
|
117
|
+
__RΦ.m("rt:t", () => __RΦ.a(259))(IΦtoXMLContext.prototype, "object");
|
|
178
118
|
__RΦ.m("rt:f", "P")(IΦtoXMLContext.prototype, "object");
|
|
179
|
-
__RΦ.m("rt:t", () => __RΦ.a(
|
|
119
|
+
__RΦ.m("rt:t", () => __RΦ.a(1300))(IΦtoXMLContext.prototype, "properties");
|
|
180
120
|
__RΦ.m("rt:f", "P")(IΦtoXMLContext.prototype, "properties");
|
|
181
|
-
__RΦ.m("rt:t", () => __RΦ.a(
|
|
121
|
+
__RΦ.m("rt:t", () => __RΦ.a(1304))(IΦtoXMLContext.prototype, "model");
|
|
182
122
|
__RΦ.m("rt:f", "P")(IΦtoXMLContext.prototype, "model");
|
|
183
123
|
var IΦXMLModelOptions = { name: "XMLModelOptions", prototype: {}, identity: Symbol("XMLModelOptions (interface)") };
|
|
184
124
|
export { IΦXMLModelOptions };
|
|
185
|
-
(t => __RΦ.t[
|
|
125
|
+
(t => __RΦ.t[198] = t)(IΦXMLModelOptions);
|
|
186
126
|
__RΦ.m("rt:P", ["parent", "properties", "fromXML", "toXML", "tagname"])(IΦXMLModelOptions);
|
|
187
127
|
__RΦ.m("rt:m", [])(IΦXMLModelOptions);
|
|
188
128
|
__RΦ.m("rt:f", "Ie")(IΦXMLModelOptions);
|
|
189
|
-
__RΦ.m("rt:t", () => __RΦ.a(
|
|
129
|
+
__RΦ.m("rt:t", () => __RΦ.a(1750))(IΦXMLModelOptions.prototype, "parent");
|
|
190
130
|
__RΦ.m("rt:f", "P?")(IΦXMLModelOptions.prototype, "parent");
|
|
191
|
-
__RΦ.m("rt:t", () => __RΦ.a(
|
|
131
|
+
__RΦ.m("rt:t", () => __RΦ.a(578))(IΦXMLModelOptions.prototype, "properties");
|
|
192
132
|
__RΦ.m("rt:f", "P")(IΦXMLModelOptions.prototype, "properties");
|
|
193
|
-
__RΦ.m("rt:t", () => __RΦ.a(
|
|
133
|
+
__RΦ.m("rt:t", () => __RΦ.a(224))(IΦXMLModelOptions.prototype, "fromXML");
|
|
194
134
|
__RΦ.m("rt:f", "P")(IΦXMLModelOptions.prototype, "fromXML");
|
|
195
|
-
__RΦ.m("rt:t", () => __RΦ.a(
|
|
196
|
-
__RΦ.m("rt:f", "P")(IΦXMLModelOptions.prototype, "toXML");
|
|
197
|
-
__RΦ.m("rt:t", () => __RΦ.a(13))(IΦXMLModelOptions.prototype, "tagname");
|
|
198
|
-
__RΦ.m("rt:f", "P")(IΦXMLModelOptions.prototype, "tagname");
|
|
199
|
-
__RΦ.m("rt:t", () => __RΦ.a(528))(IΦXMLModelOptions.prototype, "parent");
|
|
200
|
-
__RΦ.m("rt:f", "P?")(IΦXMLModelOptions.prototype, "parent");
|
|
201
|
-
__RΦ.m("rt:t", () => __RΦ.a(660))(IΦXMLModelOptions.prototype, "properties");
|
|
202
|
-
__RΦ.m("rt:f", "P")(IΦXMLModelOptions.prototype, "properties");
|
|
203
|
-
__RΦ.m("rt:t", () => __RΦ.a(607))(IΦXMLModelOptions.prototype, "fromXML");
|
|
204
|
-
__RΦ.m("rt:f", "P")(IΦXMLModelOptions.prototype, "fromXML");
|
|
205
|
-
__RΦ.m("rt:t", () => __RΦ.a(864))(IΦXMLModelOptions.prototype, "toXML");
|
|
135
|
+
__RΦ.m("rt:t", () => __RΦ.a(262))(IΦXMLModelOptions.prototype, "toXML");
|
|
206
136
|
__RΦ.m("rt:f", "P")(IΦXMLModelOptions.prototype, "toXML");
|
|
207
137
|
__RΦ.m("rt:t", () => __RΦ.a(13))(IΦXMLModelOptions.prototype, "tagname");
|
|
208
138
|
__RΦ.m("rt:f", "P")(IΦXMLModelOptions.prototype, "tagname");
|
|
209
139
|
var IΦCreateXMLModelOptions = { name: "CreateXMLModelOptions", prototype: {}, identity: Symbol("CreateXMLModelOptions (interface)") };
|
|
210
140
|
export { IΦCreateXMLModelOptions };
|
|
211
|
-
(t => __RΦ.t[
|
|
141
|
+
(t => __RΦ.t[2269] = t)(IΦCreateXMLModelOptions);
|
|
212
142
|
__RΦ.m("rt:P", ["parent", "fromXML", "toXML", "tagname"])(IΦCreateXMLModelOptions);
|
|
213
143
|
__RΦ.m("rt:m", [])(IΦCreateXMLModelOptions);
|
|
214
144
|
__RΦ.m("rt:f", "Ie")(IΦCreateXMLModelOptions);
|
|
215
|
-
__RΦ.m("rt:t", () => __RΦ.a(
|
|
216
|
-
__RΦ.m("rt:f", "P?")(IΦCreateXMLModelOptions.prototype, "parent");
|
|
217
|
-
__RΦ.m("rt:t", () => __RΦ.a(1644))(IΦCreateXMLModelOptions.prototype, "fromXML");
|
|
218
|
-
__RΦ.m("rt:f", "P?")(IΦCreateXMLModelOptions.prototype, "fromXML");
|
|
219
|
-
__RΦ.m("rt:t", () => __RΦ.a(1634))(IΦCreateXMLModelOptions.prototype, "toXML");
|
|
220
|
-
__RΦ.m("rt:f", "P?")(IΦCreateXMLModelOptions.prototype, "toXML");
|
|
221
|
-
__RΦ.m("rt:t", () => __RΦ.a(13))(IΦCreateXMLModelOptions.prototype, "tagname");
|
|
222
|
-
__RΦ.m("rt:f", "P?")(IΦCreateXMLModelOptions.prototype, "tagname");
|
|
223
|
-
__RΦ.m("rt:t", () => __RΦ.a(1912))(IΦCreateXMLModelOptions.prototype, "parent");
|
|
145
|
+
__RΦ.m("rt:t", () => __RΦ.a(2522))(IΦCreateXMLModelOptions.prototype, "parent");
|
|
224
146
|
__RΦ.m("rt:f", "P?")(IΦCreateXMLModelOptions.prototype, "parent");
|
|
225
|
-
__RΦ.m("rt:t", () => __RΦ.a(
|
|
147
|
+
__RΦ.m("rt:t", () => __RΦ.a(2289))(IΦCreateXMLModelOptions.prototype, "fromXML");
|
|
226
148
|
__RΦ.m("rt:f", "P?")(IΦCreateXMLModelOptions.prototype, "fromXML");
|
|
227
|
-
__RΦ.m("rt:t", () => __RΦ.a(
|
|
149
|
+
__RΦ.m("rt:t", () => __RΦ.a(2279))(IΦCreateXMLModelOptions.prototype, "toXML");
|
|
228
150
|
__RΦ.m("rt:f", "P?")(IΦCreateXMLModelOptions.prototype, "toXML");
|
|
229
151
|
__RΦ.m("rt:t", () => __RΦ.a(13))(IΦCreateXMLModelOptions.prototype, "tagname");
|
|
230
152
|
__RΦ.m("rt:f", "P?")(IΦCreateXMLModelOptions.prototype, "tagname");
|
|
@@ -19,7 +19,7 @@ const __RΦ = { m: (k, v) => (t, ...a) => t && Reflect.metadata ? Reflect.metada
|
|
|
19
19
|
__RΦ.t[id] = t = l;
|
|
20
20
|
}
|
|
21
21
|
return t;
|
|
22
|
-
}, t: { [
|
|
22
|
+
}, t: { [2833]: { RΦ: t => ({ TΦ: "O", m: [{ n: "prototype", f: "", t: __RΦ.a(2834) }] }) }, [2834]: { TΦ: "5", name: "A" }, [2785]: { RΦ: t => ({ TΦ: "O", m: [{ n: "name", f: "", t: __RΦ.a(13) }, { n: "nbPages", f: "", t: __RΦ.a(14) }] }) }, [13]: { LΦ: t => String }, [14]: { LΦ: t => Number }, [2804]: { RΦ: t => ({ TΦ: "[", e: __RΦ.a(2748) }) }, [2748]: { TΦ: "5", name: "Book" }, [4]: { RΦ: t => ({ TΦ: "~" }) }, [22]: { RΦ: t => ({ TΦ: "V" }) }, [89]: { RΦ: t => ({ TΦ: "m", t: __RΦ.a(90), p: [], m: [] }) }, [90]: { LΦ: t => Object }, [20]: { LΦ: t => Boolean }, [2849]: { RΦ: t => ({ TΦ: "[", e: __RΦ.a(2847) }) }, [2847]: { TΦ: "5", name: "B" }, [624]: { RΦ: t => ({ TΦ: "|", t: [__RΦ.a(47), __RΦ.a(124)] }) }, [47]: { LΦ: t => 0 }, [124]: { LΦ: t => 1 }, [8]: { RΦ: t => ({ TΦ: "U" }) } } };
|
|
23
23
|
import "mocha";
|
|
24
24
|
import { expect, assert } from "chai";
|
|
25
25
|
import "reflect-metadata";
|
|
@@ -39,12 +39,12 @@ Book = __decorate([
|
|
|
39
39
|
},
|
|
40
40
|
})
|
|
41
41
|
], Book);
|
|
42
|
-
(t => __RΦ.t[
|
|
42
|
+
(t => __RΦ.t[2748] = t)(Book);
|
|
43
43
|
__RΦ.m("rt:SP", [])(Book);
|
|
44
44
|
__RΦ.m("rt:P", ["name", "nbPages"])(Book);
|
|
45
45
|
__RΦ.m("rt:Sm", [])(Book);
|
|
46
46
|
__RΦ.m("rt:m", ["fromXML"])(Book);
|
|
47
|
-
__RΦ.m("rt:p", [{ n: "options", t: () => __RΦ.a(
|
|
47
|
+
__RΦ.m("rt:p", [{ n: "options", t: () => __RΦ.a(2785), b: void 0, v: null }])(Book);
|
|
48
48
|
__RΦ.m("rt:f", "C")(Book);
|
|
49
49
|
__RΦ.m("rt:t", () => __RΦ.a(13))(Book.prototype, "name");
|
|
50
50
|
__RΦ.m("rt:f", "P")(Book.prototype, "name");
|
|
@@ -64,16 +64,16 @@ Library = __decorate([
|
|
|
64
64
|
},
|
|
65
65
|
})
|
|
66
66
|
], Library);
|
|
67
|
-
(t => __RΦ.t[
|
|
67
|
+
(t => __RΦ.t[2788] = t)(Library);
|
|
68
68
|
__RΦ.m("rt:SP", [])(Library);
|
|
69
69
|
__RΦ.m("rt:P", ["name", "books"])(Library);
|
|
70
70
|
__RΦ.m("rt:Sm", [])(Library);
|
|
71
71
|
__RΦ.m("rt:m", ["fromXML"])(Library);
|
|
72
|
-
__RΦ.m("rt:p", [{ n: "name", t: () => __RΦ.a(13), v: null }, { n: "books", t: () => __RΦ.a(
|
|
72
|
+
__RΦ.m("rt:p", [{ n: "name", t: () => __RΦ.a(13), b: void 0, v: null }, { n: "books", t: () => __RΦ.a(2804), b: void 0, v: null, f: "3" }])(Library);
|
|
73
73
|
__RΦ.m("rt:f", "C")(Library);
|
|
74
74
|
__RΦ.m("rt:t", () => __RΦ.a(13))(Library.prototype, "name");
|
|
75
75
|
__RΦ.m("rt:f", "P")(Library.prototype, "name");
|
|
76
|
-
__RΦ.m("rt:t", () => __RΦ.a(
|
|
76
|
+
__RΦ.m("rt:t", () => __RΦ.a(2804))(Library.prototype, "books");
|
|
77
77
|
__RΦ.m("rt:f", "P")(Library.prototype, "books");
|
|
78
78
|
describe("Library Example", __RΦ.f(() => {
|
|
79
79
|
const library = new Library("test");
|
|
@@ -88,7 +88,7 @@ describe("Library Example", __RΦ.f(() => {
|
|
|
88
88
|
.map(__RΦ.f((book) => ` <book>
|
|
89
89
|
<name>${book.name}</name>
|
|
90
90
|
<nb-pages>${book.nbPages}</nb-pages>
|
|
91
|
-
</book>`, [__RΦ.m("rt:p", [{ n: "book", t: () => __RΦ.a(4), v: null }]), __RΦ.m("rt:f", "F>"), __RΦ.m("rt:t", () => __RΦ.a(13))], ""))
|
|
91
|
+
</book>`, [__RΦ.m("rt:p", [{ n: "book", t: () => __RΦ.a(4), b: void 0, v: null }]), __RΦ.m("rt:f", "F>"), __RΦ.m("rt:t", () => __RΦ.a(13))], ""))
|
|
92
92
|
.join("")}
|
|
93
93
|
</books>
|
|
94
94
|
</library>`));
|
|
@@ -111,7 +111,7 @@ let A = class A {
|
|
|
111
111
|
if (record)
|
|
112
112
|
Object.entries(record).forEach(__RΦ.f(([key, val]) => {
|
|
113
113
|
this[key] = val;
|
|
114
|
-
}, [__RΦ.m("rt:p", [{ n: "
|
|
114
|
+
}, [__RΦ.m("rt:p", [{ n: void 0, t: () => __RΦ.a(4), b: [{ n: "key", t: () => __RΦ.a(13), b: void 0, v: null }, { n: "val", t: () => __RΦ.a(8), b: void 0, v: null }], v: null, f: "[" }]), __RΦ.m("rt:f", "F>"), __RΦ.m("rt:t", () => __RΦ.a(22))], ""));
|
|
115
115
|
}
|
|
116
116
|
};
|
|
117
117
|
__decorate([
|
|
@@ -127,20 +127,20 @@ A = __decorate([
|
|
|
127
127
|
},
|
|
128
128
|
})
|
|
129
129
|
], A);
|
|
130
|
-
(t => __RΦ.t[
|
|
130
|
+
(t => __RΦ.t[2834] = t)(A);
|
|
131
131
|
__RΦ.m("rt:SP", [])(A);
|
|
132
132
|
__RΦ.m("rt:P", ["propA", "propB", "propC", "propD"])(A);
|
|
133
133
|
__RΦ.m("rt:Sm", [])(A);
|
|
134
134
|
__RΦ.m("rt:m", ["fromXML"])(A);
|
|
135
|
-
__RΦ.m("rt:p", [{ n: "record", t: () => __RΦ.a(
|
|
135
|
+
__RΦ.m("rt:p", [{ n: "record", t: () => __RΦ.a(89), b: void 0, v: null, f: "?" }])(A);
|
|
136
136
|
__RΦ.m("rt:f", "C")(A);
|
|
137
137
|
__RΦ.m("rt:t", () => __RΦ.a(13))(A.prototype, "propA");
|
|
138
138
|
__RΦ.m("rt:f", "P")(A.prototype, "propA");
|
|
139
139
|
__RΦ.m("rt:t", () => __RΦ.a(20))(A.prototype, "propB");
|
|
140
140
|
__RΦ.m("rt:f", "P")(A.prototype, "propB");
|
|
141
|
-
__RΦ.m("rt:t", () => __RΦ.a(
|
|
141
|
+
__RΦ.m("rt:t", () => __RΦ.a(2849))(A.prototype, "propC");
|
|
142
142
|
__RΦ.m("rt:f", "P")(A.prototype, "propC");
|
|
143
|
-
__RΦ.m("rt:t", () => __RΦ.a(
|
|
143
|
+
__RΦ.m("rt:t", () => __RΦ.a(624))(A.prototype, "propD");
|
|
144
144
|
__RΦ.m("rt:f", "P")(A.prototype, "propD");
|
|
145
145
|
let B = class B {
|
|
146
146
|
constructor(record) {
|
|
@@ -148,7 +148,7 @@ let B = class B {
|
|
|
148
148
|
if (record)
|
|
149
149
|
Object.entries(record).forEach(__RΦ.f(([key, val]) => {
|
|
150
150
|
this[key] = val;
|
|
151
|
-
}, [__RΦ.m("rt:p", [{ n: "
|
|
151
|
+
}, [__RΦ.m("rt:p", [{ n: void 0, t: () => __RΦ.a(4), b: [{ n: "key", t: () => __RΦ.a(13), b: void 0, v: null }, { n: "val", t: () => __RΦ.a(8), b: void 0, v: null }], v: null, f: "[" }]), __RΦ.m("rt:f", "F>"), __RΦ.m("rt:t", () => __RΦ.a(22))], ""));
|
|
152
152
|
}
|
|
153
153
|
};
|
|
154
154
|
B = __decorate([
|
|
@@ -158,12 +158,12 @@ B = __decorate([
|
|
|
158
158
|
},
|
|
159
159
|
})
|
|
160
160
|
], B);
|
|
161
|
-
(t => __RΦ.t[
|
|
161
|
+
(t => __RΦ.t[2847] = t)(B);
|
|
162
162
|
__RΦ.m("rt:SP", [])(B);
|
|
163
163
|
__RΦ.m("rt:P", ["propA"])(B);
|
|
164
164
|
__RΦ.m("rt:Sm", [])(B);
|
|
165
165
|
__RΦ.m("rt:m", ["fromXML"])(B);
|
|
166
|
-
__RΦ.m("rt:p", [{ n: "record", t: () => __RΦ.a(
|
|
166
|
+
__RΦ.m("rt:p", [{ n: "record", t: () => __RΦ.a(89), b: void 0, v: null, f: "?" }])(B);
|
|
167
167
|
__RΦ.m("rt:f", "C")(B);
|
|
168
168
|
__RΦ.m("rt:t", () => __RΦ.a(14))(B.prototype, "propA");
|
|
169
169
|
__RΦ.m("rt:f", "P")(B.prototype, "propA");
|
|
@@ -177,12 +177,12 @@ describe("Edgy Cases", __RΦ.f(() => {
|
|
|
177
177
|
const instanceXMLString = XML.stringify(XML.parse(`<a>
|
|
178
178
|
<prop-a>${instance.propA}</prop-a>
|
|
179
179
|
<prop-b>${instance.propB}</prop-b>
|
|
180
|
-
${instance.propC.map(__RΦ.f((b) => `<b><prop-a>${b.propA}</prop-a></b>`, [__RΦ.m("rt:p", [{ n: "b", t: () => __RΦ.a(4), v: null }]), __RΦ.m("rt:f", "F>"), __RΦ.m("rt:t", () => __RΦ.a(13))], "")).join("")}
|
|
180
|
+
${instance.propC.map(__RΦ.f((b) => `<b><prop-a>${b.propA}</prop-a></b>`, [__RΦ.m("rt:p", [{ n: "b", t: () => __RΦ.a(4), b: void 0, v: null }]), __RΦ.m("rt:f", "F>"), __RΦ.m("rt:t", () => __RΦ.a(13))], "")).join("")}
|
|
181
181
|
<propd>${instance.propD}</propd>
|
|
182
182
|
</a>`));
|
|
183
183
|
it("should give right type infos", __RΦ.f(() => {
|
|
184
|
-
const reflectedA = reflect(A, { TΦ: "c", t: void 0, p: [__RΦ.a(
|
|
185
|
-
assert(reflectedA === reflect(A, { TΦ: "c", t: void 0, p: [__RΦ.a(
|
|
184
|
+
const reflectedA = reflect(A, { TΦ: "c", t: void 0, p: [__RΦ.a(2833)], r: void 0, tp: [] });
|
|
185
|
+
assert(reflectedA === reflect(A, { TΦ: "c", t: void 0, p: [__RΦ.a(2833)], r: void 0, tp: [] }));
|
|
186
186
|
expect(reflectedA.getProperty("propA").type.isClass(String)).to.be.true;
|
|
187
187
|
expect(reflectedA.getProperty("propB").type.isClass(Boolean)).to.be.true;
|
|
188
188
|
const ModelAPropCType = reflectedA.getProperty("propC").type;
|
|
@@ -209,7 +209,7 @@ let C = class C extends B {
|
|
|
209
209
|
C = __decorate([
|
|
210
210
|
Model()
|
|
211
211
|
], C);
|
|
212
|
-
(t => __RΦ.t[
|
|
212
|
+
(t => __RΦ.t[2892] = t)(C);
|
|
213
213
|
__RΦ.m("rt:SP", [])(C);
|
|
214
214
|
__RΦ.m("rt:P", ["propB"])(C);
|
|
215
215
|
__RΦ.m("rt:Sm", [])(C);
|
package/build/module/types.js
CHANGED
|
@@ -13,16 +13,16 @@ const __RΦ = { m: (k, v) => (t, ...a) => t && Reflect.metadata ? Reflect.metada
|
|
|
13
13
|
__RΦ.t[id] = t = l;
|
|
14
14
|
}
|
|
15
15
|
return t;
|
|
16
|
-
}, t: { [13]: { LΦ: t => String }, [
|
|
16
|
+
}, t: { [13]: { LΦ: t => String }, [91]: { TΦ: "5", name: "XMLAttributes" }, [96]: { RΦ: t => ({ TΦ: "[", e: __RΦ.a(93) }) }, [93]: { TΦ: "5", name: "XMLElement" }, [98]: { RΦ: t => ({ TΦ: "|", t: [__RΦ.a(13), __RΦ.a(14), __RΦ.a(17), __RΦ.a(19)] }) }, [14]: { LΦ: t => Number }, [17]: { RΦ: t => ({ TΦ: "0" }) }, [19]: { RΦ: t => ({ TΦ: "1" }) } } };
|
|
17
17
|
var IΦXMLAttributes = { name: "XMLAttributes", prototype: {}, identity: Symbol("XMLAttributes (interface)") };
|
|
18
18
|
export { IΦXMLAttributes };
|
|
19
|
-
(t => __RΦ.t[
|
|
19
|
+
(t => __RΦ.t[91] = t)(IΦXMLAttributes);
|
|
20
20
|
__RΦ.m("rt:P", [])(IΦXMLAttributes);
|
|
21
21
|
__RΦ.m("rt:m", [])(IΦXMLAttributes);
|
|
22
22
|
__RΦ.m("rt:f", "Ie")(IΦXMLAttributes);
|
|
23
23
|
var IΦXMLElement = { name: "XMLElement", prototype: {}, identity: Symbol("XMLElement (interface)") };
|
|
24
24
|
export { IΦXMLElement };
|
|
25
|
-
(t => __RΦ.t[
|
|
25
|
+
(t => __RΦ.t[93] = t)(IΦXMLElement);
|
|
26
26
|
__RΦ.m("rt:P", ["type", "name", "attributes", "elements", "text"])(IΦXMLElement);
|
|
27
27
|
__RΦ.m("rt:m", [])(IΦXMLElement);
|
|
28
28
|
__RΦ.m("rt:f", "Ie")(IΦXMLElement);
|
|
@@ -30,19 +30,9 @@ __RΦ.m("rt:t", () => __RΦ.a(13))(IΦXMLElement.prototype, "type");
|
|
|
30
30
|
__RΦ.m("rt:f", "P?")(IΦXMLElement.prototype, "type");
|
|
31
31
|
__RΦ.m("rt:t", () => __RΦ.a(13))(IΦXMLElement.prototype, "name");
|
|
32
32
|
__RΦ.m("rt:f", "P?")(IΦXMLElement.prototype, "name");
|
|
33
|
-
__RΦ.m("rt:t", () => __RΦ.a(
|
|
33
|
+
__RΦ.m("rt:t", () => __RΦ.a(91))(IΦXMLElement.prototype, "attributes");
|
|
34
34
|
__RΦ.m("rt:f", "P?")(IΦXMLElement.prototype, "attributes");
|
|
35
|
-
__RΦ.m("rt:t", () => __RΦ.a(
|
|
35
|
+
__RΦ.m("rt:t", () => __RΦ.a(96))(IΦXMLElement.prototype, "elements");
|
|
36
36
|
__RΦ.m("rt:f", "P?")(IΦXMLElement.prototype, "elements");
|
|
37
|
-
__RΦ.m("rt:t", () => __RΦ.a(
|
|
38
|
-
__RΦ.m("rt:f", "P?")(IΦXMLElement.prototype, "text");
|
|
39
|
-
__RΦ.m("rt:t", () => __RΦ.a(13))(IΦXMLElement.prototype, "type");
|
|
40
|
-
__RΦ.m("rt:f", "P?")(IΦXMLElement.prototype, "type");
|
|
41
|
-
__RΦ.m("rt:t", () => __RΦ.a(13))(IΦXMLElement.prototype, "name");
|
|
42
|
-
__RΦ.m("rt:f", "P?")(IΦXMLElement.prototype, "name");
|
|
43
|
-
__RΦ.m("rt:t", () => __RΦ.a(103))(IΦXMLElement.prototype, "attributes");
|
|
44
|
-
__RΦ.m("rt:f", "P?")(IΦXMLElement.prototype, "attributes");
|
|
45
|
-
__RΦ.m("rt:t", () => __RΦ.a(107))(IΦXMLElement.prototype, "elements");
|
|
46
|
-
__RΦ.m("rt:f", "P?")(IΦXMLElement.prototype, "elements");
|
|
47
|
-
__RΦ.m("rt:t", () => __RΦ.a(109))(IΦXMLElement.prototype, "text");
|
|
37
|
+
__RΦ.m("rt:t", () => __RΦ.a(98))(IΦXMLElement.prototype, "text");
|
|
48
38
|
__RΦ.m("rt:f", "P?")(IΦXMLElement.prototype, "text");
|