typecomposer 0.0.50 → 0.0.52
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/cjs/core/element/action/DropDown.d.ts +1 -1
- package/dist/cjs/core/element/action/DropDown.js +7 -7
- package/dist/cjs/core/element/action/DropDown.js.map +1 -1
- package/dist/cjs/core/element/base/Elements.js +8 -11
- package/dist/cjs/core/element/base/Elements.js.map +1 -1
- package/dist/cjs/core/element/layers/TablePane.js +2 -4
- package/dist/cjs/core/element/layers/TablePane.js.map +1 -1
- package/dist/cjs/core/element/text/TextFieldElement.js +1 -8
- package/dist/cjs/core/element/text/TextFieldElement.js.map +1 -1
- package/dist/cjs/core/ref/Ref.d.ts +14 -3
- package/dist/cjs/core/ref/Ref.js +118 -68
- package/dist/cjs/core/ref/Ref.js.map +1 -1
- package/dist/cjs/core/ref/RefDefineProperty.d.ts +7 -8
- package/dist/cjs/core/ref/RefDefineProperty.js +208 -13
- package/dist/cjs/core/ref/RefDefineProperty.js.map +1 -1
- package/dist/cjs/core/ref/RefNumber.d.ts +2 -8
- package/dist/cjs/core/ref/RefNumber.js +7 -25
- package/dist/cjs/core/ref/RefNumber.js.map +1 -1
- package/dist/cjs/core/ref/RefString.d.ts +2 -8
- package/dist/cjs/core/ref/RefString.js +9 -27
- package/dist/cjs/core/ref/RefString.js.map +1 -1
- package/dist/cjs/core/ref/index.d.ts +1 -1
- package/dist/cjs/core/ref/index.js +2 -1
- package/dist/cjs/core/ref/index.js.map +1 -1
- package/dist/cjs/global/global.js +57 -0
- package/dist/cjs/global/global.js.map +1 -1
- package/dist/cjs/styles/index.js +0 -616
- package/dist/cjs/styles/index.js.map +1 -1
- package/dist/esm/core/element/action/DropDown.d.ts +1 -1
- package/dist/esm/core/element/action/DropDown.js +7 -7
- package/dist/esm/core/element/action/DropDown.js.map +1 -1
- package/dist/esm/core/element/base/Elements.js +9 -12
- package/dist/esm/core/element/base/Elements.js.map +1 -1
- package/dist/esm/core/element/layers/TablePane.js +2 -4
- package/dist/esm/core/element/layers/TablePane.js.map +1 -1
- package/dist/esm/core/element/text/TextFieldElement.js +2 -9
- package/dist/esm/core/element/text/TextFieldElement.js.map +1 -1
- package/dist/esm/core/ref/Ref.d.ts +14 -3
- package/dist/esm/core/ref/Ref.js +118 -68
- package/dist/esm/core/ref/Ref.js.map +1 -1
- package/dist/esm/core/ref/RefDefineProperty.d.ts +7 -8
- package/dist/esm/core/ref/RefDefineProperty.js +207 -12
- package/dist/esm/core/ref/RefDefineProperty.js.map +1 -1
- package/dist/esm/core/ref/RefNumber.d.ts +2 -8
- package/dist/esm/core/ref/RefNumber.js +7 -25
- package/dist/esm/core/ref/RefNumber.js.map +1 -1
- package/dist/esm/core/ref/RefString.d.ts +2 -8
- package/dist/esm/core/ref/RefString.js +9 -27
- package/dist/esm/core/ref/RefString.js.map +1 -1
- package/dist/esm/core/ref/index.d.ts +1 -1
- package/dist/esm/core/ref/index.js +1 -1
- package/dist/esm/core/ref/index.js.map +1 -1
- package/dist/esm/global/global.js +57 -0
- package/dist/esm/global/global.js.map +1 -1
- package/dist/esm/styles/index.js +0 -616
- package/dist/esm/styles/index.js.map +1 -1
- package/package.json +2 -2
- package/styles/components/TablePane.scss +83 -0
- package/styles/style.scss +3 -0
package/dist/cjs/core/ref/Ref.js
CHANGED
|
@@ -1,80 +1,75 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ref = exports.refType = exports.isRef = void 0;
|
|
3
|
+
exports.Ref = exports.ref = exports.refType = exports.isRef = void 0;
|
|
4
4
|
const RefString_1 = require("./RefString");
|
|
5
5
|
const RefDefineProperty_1 = require("./RefDefineProperty");
|
|
6
6
|
const RefNumber_1 = require("./RefNumber");
|
|
7
|
-
function subscribe(target, prop, refPropertyKey) {
|
|
8
|
-
// @ts-ignore
|
|
9
|
-
return this.__subscribe__(target, prop, refPropertyKey);
|
|
10
|
-
}
|
|
11
|
-
//@ts-ignore
|
|
12
|
-
function onChange(fun, target) {
|
|
13
|
-
// @ts-ignore
|
|
14
|
-
this.__onChange__(fun, target);
|
|
15
|
-
}
|
|
16
|
-
function toString() {
|
|
17
|
-
// @ts-ignore
|
|
18
|
-
return this.__parent__ ? JSON.stringify(this) : JSON.stringify(this.value);
|
|
19
|
-
}
|
|
20
|
-
function toJSON() {
|
|
21
|
-
// @ts-ignore
|
|
22
|
-
return this.__parent__ ? JSON.parse(JSON.stringify(this)) : JSON.parse(JSON.stringify(this.value));
|
|
23
|
-
}
|
|
24
7
|
function updateRef(proxy, value) {
|
|
25
8
|
for (const key in value) {
|
|
26
9
|
const _value = value[key];
|
|
27
|
-
if (typeof _value
|
|
10
|
+
if (typeof _value === "object" && !(_value instanceof RefString_1.RefString) && !(_value instanceof RefNumber_1.RefNumber) && !(value instanceof HTMLElement)) {
|
|
28
11
|
if (proxy[key] === undefined)
|
|
29
|
-
|
|
12
|
+
proxy[key] = RefProxy(_value, proxy);
|
|
30
13
|
else
|
|
31
14
|
updateRef(proxy[key], _value);
|
|
32
15
|
}
|
|
33
16
|
else
|
|
34
|
-
|
|
17
|
+
proxy[key] = _value;
|
|
35
18
|
}
|
|
36
19
|
return true;
|
|
37
20
|
}
|
|
38
21
|
function RefProxy(target, parent) {
|
|
39
|
-
|
|
40
|
-
const proxy = new Proxy(target, {
|
|
22
|
+
const proxy = RefDefineProperty_1.RefProxyProperties.assignProperties(new Proxy(target, {
|
|
41
23
|
get: (target, prop, receiver) => {
|
|
42
|
-
const value =
|
|
43
|
-
if (
|
|
24
|
+
const value = target[prop];
|
|
25
|
+
if (typeof value == "string" && proxy["__parent__"])
|
|
44
26
|
return new RefString_1.RefString(value, prop, proxy);
|
|
45
|
-
if (
|
|
27
|
+
else if (typeof value == "number" && proxy["__parent__"])
|
|
46
28
|
return new RefNumber_1.RefNumber(value, prop, proxy);
|
|
47
29
|
return value;
|
|
48
30
|
},
|
|
49
31
|
set: (target, prop, value, receiver) => {
|
|
32
|
+
if (typeof target[prop] === "function")
|
|
33
|
+
return true;
|
|
50
34
|
if (value instanceof RefString_1.RefString || value instanceof RefNumber_1.RefNumber)
|
|
51
35
|
value = value?.valueOf();
|
|
52
|
-
const result = typeof value === "object" && typeof target[prop] == "object" ? updateRef(target[prop], value) != undefined :
|
|
36
|
+
const result = typeof value === "object" && typeof target[prop] == "object" ? updateRef(target[prop], value) != undefined : (target[prop] = value);
|
|
53
37
|
// @ts-ignore
|
|
54
38
|
proxy.__notify__(prop, value);
|
|
55
|
-
return
|
|
39
|
+
return true;
|
|
56
40
|
},
|
|
57
41
|
deleteProperty: (target, prop) => {
|
|
58
42
|
const result = Reflect.deleteProperty(target, prop);
|
|
59
43
|
// @ts-ignore
|
|
60
44
|
proxy.__notify__(prop, undefined);
|
|
61
|
-
return
|
|
45
|
+
return true;
|
|
62
46
|
},
|
|
63
|
-
});
|
|
64
|
-
|
|
65
|
-
const
|
|
66
|
-
|
|
67
|
-
|
|
47
|
+
}), target, parent);
|
|
48
|
+
try {
|
|
49
|
+
for (const key of Object.keys(target)) {
|
|
50
|
+
const value = target[key];
|
|
51
|
+
if (typeof value === "object" && !(value instanceof RefString_1.RefString) && !(value instanceof RefNumber_1.RefNumber) && !(value instanceof HTMLElement)) {
|
|
52
|
+
if (refType(value))
|
|
53
|
+
target[key] = value;
|
|
54
|
+
else
|
|
55
|
+
target[key] = RefProxy(value, proxy);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
catch (e) {
|
|
60
|
+
console.error(e);
|
|
68
61
|
}
|
|
69
|
-
RefDefineProperty_1.RefProperties.definePropertieParent(proxy, parent);
|
|
70
|
-
RefDefineProperty_1.RefProperties.definePropertieSubscribe(proxy);
|
|
71
|
-
RefDefineProperty_1.RefProperties.definePropertieOnChange(proxy);
|
|
72
|
-
RefDefineProperty_1.RefProperties.definePropertieNotify(proxy);
|
|
73
|
-
RefDefineProperty_1.RefProperties.definePropertieListOnChange(proxy);
|
|
74
62
|
return proxy;
|
|
75
63
|
}
|
|
76
64
|
function isRef(obj) {
|
|
77
|
-
return typeof obj == "object" &&
|
|
65
|
+
return (typeof obj == "object" &&
|
|
66
|
+
"__subscribe__" in obj &&
|
|
67
|
+
"__onChange__" in obj &&
|
|
68
|
+
"onChange" in obj &&
|
|
69
|
+
"value" in obj &&
|
|
70
|
+
"__parent__" in obj &&
|
|
71
|
+
"__notify__" in obj &&
|
|
72
|
+
obj["__parent__"] == undefined);
|
|
78
73
|
}
|
|
79
74
|
exports.isRef = isRef;
|
|
80
75
|
function refType(base) {
|
|
@@ -89,32 +84,75 @@ function refType(base) {
|
|
|
89
84
|
// @ts-ignore
|
|
90
85
|
this.__onChange__(fun, target);
|
|
91
86
|
}
|
|
87
|
+
function get_property_key(v, parent) {
|
|
88
|
+
if (v["__refPropertyKey__"] != undefined)
|
|
89
|
+
return v["__refPropertyKey__"];
|
|
90
|
+
if (parent == undefined)
|
|
91
|
+
return undefined;
|
|
92
|
+
for (const key in parent) {
|
|
93
|
+
if (parent[key] === v)
|
|
94
|
+
return key;
|
|
95
|
+
}
|
|
96
|
+
return undefined;
|
|
97
|
+
}
|
|
92
98
|
if (isRef(base))
|
|
93
99
|
return base;
|
|
94
100
|
if (base instanceof RefString_1.RefString || base instanceof RefNumber_1.RefNumber) {
|
|
101
|
+
//const a = { __subscribe__, __onChange__, toString: () => "", toJSON: () => base, value: base as T, onChange: __onChange__, subscribe: __subscribe__ };
|
|
102
|
+
//// get e set para value
|
|
103
|
+
//Object.defineProperty(a, "value", {
|
|
104
|
+
// get: () => {
|
|
105
|
+
// return base.value;
|
|
106
|
+
// },
|
|
107
|
+
// set: (value: any) => {
|
|
108
|
+
// base.value = value?.valueOf() || value;
|
|
109
|
+
// },
|
|
110
|
+
//});
|
|
111
|
+
//// @ts-ignore
|
|
112
|
+
//a.__subscribe__ = base.__subscribe__.bind(base);
|
|
113
|
+
//// @ts-ignore
|
|
114
|
+
//a.__onChange__ = base.onChange.bind(base);
|
|
115
|
+
//a.subscribe = base.__subscribe__.bind(base);
|
|
116
|
+
//// @ts-ignore
|
|
117
|
+
//a.toString = base.toString.bind(base);
|
|
118
|
+
//// @ts-ignore
|
|
119
|
+
//a.toJSON = () => {
|
|
120
|
+
// return { value: base.toString() };
|
|
121
|
+
//};
|
|
122
|
+
//a.onChange = base.onChange.bind(base);
|
|
123
|
+
//return base["__parent__"]).call(base["__parent__"], base);
|
|
124
|
+
}
|
|
125
|
+
if ("__subscribe__" in base && "__onChange__" in base && "__parent__" in base && "__notify__" in base) {
|
|
95
126
|
const a = { __subscribe__, __onChange__, toString: () => "", toJSON: () => base, value: base, onChange: __onChange__, subscribe: __subscribe__ };
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
127
|
+
a.subscribe = base.__subscribe__.bind(base);
|
|
128
|
+
a.onChange = base.__onChange__.bind(base);
|
|
129
|
+
a.toString = base.__toString__.bind(base);
|
|
130
|
+
a.toJSON = base.__toJSON__.bind(base);
|
|
131
|
+
a["__parent__"] = base.__parent__;
|
|
132
|
+
a["__subscribe__"] = base.__subscribe__.bind(base);
|
|
133
|
+
a["__onChange__"] = base.__onChange__.bind(base);
|
|
134
|
+
a["__list_change__"] = base.__list_change__;
|
|
135
|
+
a["__notify__"] = base.__notify__.bind(base);
|
|
136
|
+
a["__setValue__"] = base.__setValue__.bind(base);
|
|
137
|
+
a["__toString__"] = base.__toString__.bind(base);
|
|
138
|
+
a["__toJSON__"] = base.__toJSON__.bind(base);
|
|
139
|
+
a["__refPropertyKey__"] = get_property_key(base, base.__parent__);
|
|
140
|
+
return new Proxy(a, {
|
|
141
|
+
get: (target, prop, receiver) => {
|
|
142
|
+
return Reflect.get(target, prop, receiver);
|
|
100
143
|
},
|
|
101
|
-
set: (value) => {
|
|
102
|
-
|
|
144
|
+
set: (target, prop, value, receiver) => {
|
|
145
|
+
if (prop == "value") {
|
|
146
|
+
const refPropertyKey = a["__refPropertyKey__"];
|
|
147
|
+
if (refPropertyKey != undefined) {
|
|
148
|
+
const parent = a["__parent__"];
|
|
149
|
+
parent?.__setValue__(value, refPropertyKey);
|
|
150
|
+
}
|
|
151
|
+
return true;
|
|
152
|
+
}
|
|
153
|
+
return Reflect.set(target, prop, value, receiver);
|
|
103
154
|
},
|
|
104
155
|
});
|
|
105
|
-
// @ts-ignore
|
|
106
|
-
a.__subscribe__ = base.__subscribe__.bind(base);
|
|
107
|
-
// @ts-ignore
|
|
108
|
-
a.__onChange__ = base.onChange.bind(base);
|
|
109
|
-
a.subscribe = base.__subscribe__.bind(base);
|
|
110
|
-
// @ts-ignore
|
|
111
|
-
a.toString = base.toString.bind(base);
|
|
112
|
-
// @ts-ignore
|
|
113
|
-
a.toJSON = () => {
|
|
114
|
-
return { value: base.toString() };
|
|
115
|
-
};
|
|
116
|
-
a.onChange = base.onChange.bind(base);
|
|
117
|
-
return a;
|
|
118
156
|
}
|
|
119
157
|
return undefined;
|
|
120
158
|
}
|
|
@@ -124,15 +162,27 @@ function ref(value) {
|
|
|
124
162
|
value = value.value;
|
|
125
163
|
}
|
|
126
164
|
//@ts-ignore
|
|
127
|
-
const r = RefProxy({ value: value
|
|
128
|
-
|
|
129
|
-
// @ts-ignore
|
|
130
|
-
(r.onChange) = onChange.bind(r);
|
|
131
|
-
// @ts-ignore
|
|
132
|
-
r.toString = toString.bind(r);
|
|
133
|
-
// @ts-ignore
|
|
134
|
-
r.toJSON = toJSON.bind(r);
|
|
135
|
-
return r;
|
|
165
|
+
const r = RefProxy({ value: value }, this);
|
|
166
|
+
return RefDefineProperty_1.RefProperties.assignProperties(r);
|
|
136
167
|
}
|
|
137
168
|
exports.ref = ref;
|
|
169
|
+
var Ref;
|
|
170
|
+
(function (Ref) {
|
|
171
|
+
/**
|
|
172
|
+
*
|
|
173
|
+
* @param ref
|
|
174
|
+
* @param target
|
|
175
|
+
* @param prop
|
|
176
|
+
* @param refPropertyKey
|
|
177
|
+
* @returns
|
|
178
|
+
* */
|
|
179
|
+
function subscribe(ref, target, prop, refPropertyKey) {
|
|
180
|
+
const base = refType(ref);
|
|
181
|
+
// @ts-ignore
|
|
182
|
+
if (base)
|
|
183
|
+
return base.__subscribe__(target, prop, refPropertyKey);
|
|
184
|
+
return undefined;
|
|
185
|
+
}
|
|
186
|
+
Ref.subscribe = subscribe;
|
|
187
|
+
})(Ref || (exports.Ref = Ref = {}));
|
|
138
188
|
//# sourceMappingURL=Ref.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Ref.js","sourceRoot":"","sources":["../../../../src/core/ref/Ref.ts"],"names":[],"mappings":";;;AAAA,2CAAwC;AACxC,
|
|
1
|
+
{"version":3,"file":"Ref.js","sourceRoot":"","sources":["../../../../src/core/ref/Ref.ts"],"names":[],"mappings":";;;AAAA,2CAAwC;AACxC,2DAAwE;AAExE,2CAAwC;AAExC,SAAS,SAAS,CAAmB,KAAU,EAAE,KAAQ;IACvD,KAAK,MAAM,GAAG,IAAI,KAAK,EAAE,CAAC;QACxB,MAAM,MAAM,GAAQ,KAAK,CAAC,GAAG,CAAC,CAAC;QAC/B,IAAI,OAAO,MAAM,KAAK,QAAQ,IAAI,CAAC,CAAC,MAAM,YAAY,qBAAS,CAAC,IAAI,CAAC,CAAC,MAAM,YAAY,qBAAS,CAAC,IAAI,CAAC,CAAC,KAAK,YAAY,WAAW,CAAC,EAAE,CAAC;YACtI,IAAI,KAAK,CAAC,GAAG,CAAC,KAAK,SAAS;gBAAE,KAAK,CAAC,GAAG,CAAC,GAAG,QAAQ,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;;gBAC9D,SAAS,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC,CAAC;QACrC,CAAC;;YAAM,KAAK,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC;IAC7B,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC;AAED,SAAS,QAAQ,CAAmB,MAAS,EAAE,MAAW;IACxD,MAAM,KAA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G;IAClB;;;;;;;SAOK;IACL,SAAgB,SAAS,CAAC,GAAQ,EAAE,MAAW,EAAE,IAA8C,EAAE,cAAgC;QAC/H,MAAM,IAAI,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC;QAC1B,aAAa;QACb,IAAI,IAAI;YAAE,OAAO,IAAI,CAAC,aAAa,CAAC,MAAM,EAAE,IAAI,EAAE,cAAc,CAAC,CAAC;QAClE,OAAO,SAAS,CAAC;IACnB,CAAC;IALe,aAAS,YAKxB,CAAA;AACH,CAAC,EAfgB,GAAG,mBAAH,GAAG,QAenB"}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
export declare namespace RefProxyProperties {
|
|
2
|
+
function assignProperties(proxy: any, target: any, parent: any): any;
|
|
3
|
+
}
|
|
2
4
|
export declare namespace RefProperties {
|
|
3
|
-
function
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
function
|
|
7
|
-
function baseNotify(subscriber: subscribeRef<any>, prop: string | symbol | undefined, value: any): void;
|
|
8
|
-
function definePropertieNotify(proxy: any): void;
|
|
9
|
-
function definePropertieSetValue(proxy: any): void;
|
|
5
|
+
function assignProperties(proxy: any): any;
|
|
6
|
+
}
|
|
7
|
+
export declare namespace RefStringAndNumber {
|
|
8
|
+
function assignProperties(proxy: any, parent: any, refPropertyKey: string | symbol): any;
|
|
10
9
|
}
|
|
@@ -1,19 +1,36 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.RefProperties = void 0;
|
|
3
|
+
exports.RefStringAndNumber = exports.RefProperties = exports.RefProxyProperties = void 0;
|
|
4
4
|
const RefMap_1 = require("./RefMap");
|
|
5
5
|
const RefString_1 = require("./RefString");
|
|
6
|
-
var
|
|
7
|
-
(function (
|
|
8
|
-
function
|
|
6
|
+
var RefProxyProperties;
|
|
7
|
+
(function (RefProxyProperties) {
|
|
8
|
+
function assignProperties(proxy, target, parent) {
|
|
9
|
+
definePropertieTargetAndParent(proxy, target, parent);
|
|
10
|
+
definePropertieSubscribe(proxy);
|
|
11
|
+
definePropertieOnChange(proxy);
|
|
12
|
+
definePropertieListOnChange(proxy);
|
|
13
|
+
definePropertieNotify(proxy);
|
|
14
|
+
definePropertieSetValue(proxy);
|
|
15
|
+
definePropertieToString(proxy);
|
|
16
|
+
definePropertieToJSON(proxy);
|
|
17
|
+
return proxy;
|
|
18
|
+
}
|
|
19
|
+
RefProxyProperties.assignProperties = assignProperties;
|
|
20
|
+
function definePropertieTargetAndParent(proxy, target, parent) {
|
|
9
21
|
Object.defineProperty(proxy, "__parent__", {
|
|
10
22
|
value: parent,
|
|
11
23
|
configurable: false,
|
|
12
24
|
enumerable: false,
|
|
13
25
|
writable: false,
|
|
14
26
|
});
|
|
27
|
+
Object.defineProperty(proxy, "__target__", {
|
|
28
|
+
value: target,
|
|
29
|
+
configurable: false,
|
|
30
|
+
enumerable: false,
|
|
31
|
+
writable: false,
|
|
32
|
+
});
|
|
15
33
|
}
|
|
16
|
-
RefProperties.definePropertieParent = definePropertieParent;
|
|
17
34
|
function definePropertieSubscribe(proxy) {
|
|
18
35
|
Object.defineProperty(proxy, "__subscribe__", {
|
|
19
36
|
value: function (target, prop, refPropertyKey) {
|
|
@@ -41,7 +58,6 @@ var RefProperties;
|
|
|
41
58
|
writable: false,
|
|
42
59
|
});
|
|
43
60
|
}
|
|
44
|
-
RefProperties.definePropertieSubscribe = definePropertieSubscribe;
|
|
45
61
|
function definePropertieOnChange(proxy) {
|
|
46
62
|
Object.defineProperty(proxy, "__onChange__", {
|
|
47
63
|
value: function (fun) {
|
|
@@ -55,7 +71,6 @@ var RefProperties;
|
|
|
55
71
|
writable: false,
|
|
56
72
|
});
|
|
57
73
|
}
|
|
58
|
-
RefProperties.definePropertieOnChange = definePropertieOnChange;
|
|
59
74
|
function definePropertieListOnChange(proxy) {
|
|
60
75
|
const subscribers = [];
|
|
61
76
|
Object.defineProperty(proxy, "__list_change__", {
|
|
@@ -65,7 +80,6 @@ var RefProperties;
|
|
|
65
80
|
writable: false,
|
|
66
81
|
});
|
|
67
82
|
}
|
|
68
|
-
RefProperties.definePropertieListOnChange = definePropertieListOnChange;
|
|
69
83
|
function baseNotify(subscriber, prop, value) {
|
|
70
84
|
if (subscriber.refPropertyKey && subscriber.refPropertyKey !== prop)
|
|
71
85
|
return;
|
|
@@ -78,7 +92,6 @@ var RefProperties;
|
|
|
78
92
|
target[subscriber.prop] = value;
|
|
79
93
|
}
|
|
80
94
|
}
|
|
81
|
-
RefProperties.baseNotify = baseNotify;
|
|
82
95
|
function baseNotifyChange(proxy, parents) {
|
|
83
96
|
const subscribersChange = proxy?.__list_change__ || [];
|
|
84
97
|
for (const subscriber of subscribersChange) {
|
|
@@ -89,7 +102,7 @@ var RefProperties;
|
|
|
89
102
|
if (subscriber.isUnsubscribed)
|
|
90
103
|
continue;
|
|
91
104
|
if (subscriber.fun)
|
|
92
|
-
subscriber.fun(proxy);
|
|
105
|
+
subscriber.fun(proxy.__parent__ ? proxy : proxy.value);
|
|
93
106
|
}
|
|
94
107
|
if (proxy.__parent__) {
|
|
95
108
|
parents.push(proxy);
|
|
@@ -112,7 +125,6 @@ var RefProperties;
|
|
|
112
125
|
writable: false,
|
|
113
126
|
});
|
|
114
127
|
}
|
|
115
|
-
RefProperties.definePropertieNotify = definePropertieNotify;
|
|
116
128
|
function definePropertieSetValue(proxy) {
|
|
117
129
|
Object.defineProperty(proxy, "__setValue__", {
|
|
118
130
|
value: function (value, propertyKey) {
|
|
@@ -130,12 +142,195 @@ var RefProperties;
|
|
|
130
142
|
else
|
|
131
143
|
proxy.value = value;
|
|
132
144
|
}
|
|
133
|
-
},
|
|
145
|
+
}.bind(proxy),
|
|
134
146
|
configurable: false,
|
|
135
147
|
enumerable: false,
|
|
136
148
|
writable: false,
|
|
137
149
|
});
|
|
138
150
|
}
|
|
139
|
-
|
|
151
|
+
function definePropertieToString(proxy) {
|
|
152
|
+
Object.defineProperty(proxy, "__toString__", {
|
|
153
|
+
value: function () {
|
|
154
|
+
try {
|
|
155
|
+
return this.__parent__ ? JSON.stringify(this) : JSON.stringify(this.value);
|
|
156
|
+
}
|
|
157
|
+
catch (e) {
|
|
158
|
+
return undefined;
|
|
159
|
+
}
|
|
160
|
+
}.bind(proxy),
|
|
161
|
+
configurable: false,
|
|
162
|
+
enumerable: false,
|
|
163
|
+
writable: false,
|
|
164
|
+
});
|
|
165
|
+
}
|
|
166
|
+
function definePropertieToJSON(proxy) {
|
|
167
|
+
Object.defineProperty(proxy, "__toJSON__", {
|
|
168
|
+
value: function () {
|
|
169
|
+
try {
|
|
170
|
+
return JSON.parse(this.__toString__());
|
|
171
|
+
}
|
|
172
|
+
catch (e) {
|
|
173
|
+
return undefined;
|
|
174
|
+
}
|
|
175
|
+
}.bind(proxy),
|
|
176
|
+
configurable: false,
|
|
177
|
+
enumerable: false,
|
|
178
|
+
writable: false,
|
|
179
|
+
});
|
|
180
|
+
}
|
|
181
|
+
})(RefProxyProperties || (exports.RefProxyProperties = RefProxyProperties = {}));
|
|
182
|
+
var RefProperties;
|
|
183
|
+
(function (RefProperties) {
|
|
184
|
+
function assignProperties(proxy) {
|
|
185
|
+
Object.defineProperty(proxy, "toString", {
|
|
186
|
+
value: function () {
|
|
187
|
+
return this.__toString__();
|
|
188
|
+
}.bind(proxy),
|
|
189
|
+
configurable: false,
|
|
190
|
+
enumerable: false,
|
|
191
|
+
writable: false,
|
|
192
|
+
});
|
|
193
|
+
Object.defineProperty(proxy, "toJSON", {
|
|
194
|
+
value: function () {
|
|
195
|
+
return this.__toJSON__();
|
|
196
|
+
}.bind(proxy),
|
|
197
|
+
configurable: false,
|
|
198
|
+
enumerable: false,
|
|
199
|
+
writable: false,
|
|
200
|
+
});
|
|
201
|
+
Object.defineProperty(proxy, "subscribe", {
|
|
202
|
+
value: function (target, prop, refPropertyKey) {
|
|
203
|
+
return this.__subscribe__(target, prop, refPropertyKey);
|
|
204
|
+
}.bind(proxy),
|
|
205
|
+
configurable: false,
|
|
206
|
+
enumerable: false,
|
|
207
|
+
writable: false,
|
|
208
|
+
});
|
|
209
|
+
Object.defineProperty(proxy, "onChange", {
|
|
210
|
+
value: function (fun) {
|
|
211
|
+
return this.__onChange__(fun);
|
|
212
|
+
}.bind(proxy),
|
|
213
|
+
configurable: false,
|
|
214
|
+
enumerable: false,
|
|
215
|
+
writable: false,
|
|
216
|
+
});
|
|
217
|
+
return proxy;
|
|
218
|
+
}
|
|
219
|
+
RefProperties.assignProperties = assignProperties;
|
|
140
220
|
})(RefProperties || (exports.RefProperties = RefProperties = {}));
|
|
221
|
+
var RefStringAndNumber;
|
|
222
|
+
(function (RefStringAndNumber) {
|
|
223
|
+
function assignProperties(proxy, parent, refPropertyKey) {
|
|
224
|
+
definePropertieParent(proxy, parent);
|
|
225
|
+
definePropertieParent(proxy, parent);
|
|
226
|
+
definePropertieSubscribe(proxy);
|
|
227
|
+
definePropertieOnChange(proxy);
|
|
228
|
+
definePropertieListOnChange(proxy);
|
|
229
|
+
definePropertieNotify(proxy);
|
|
230
|
+
definePropertieSetValue(proxy);
|
|
231
|
+
definePropertieToString(proxy);
|
|
232
|
+
definePropertieToJSON(proxy);
|
|
233
|
+
definePropertieRefPropertyKey(proxy, refPropertyKey);
|
|
234
|
+
return proxy;
|
|
235
|
+
}
|
|
236
|
+
RefStringAndNumber.assignProperties = assignProperties;
|
|
237
|
+
function definePropertieRefPropertyKey(proxy, refPropertyKey) {
|
|
238
|
+
Object.defineProperty(proxy, "__refPropertyKey__", {
|
|
239
|
+
value: refPropertyKey,
|
|
240
|
+
configurable: false,
|
|
241
|
+
enumerable: false,
|
|
242
|
+
writable: false,
|
|
243
|
+
});
|
|
244
|
+
}
|
|
245
|
+
function definePropertieParent(proxy, parent) {
|
|
246
|
+
Object.defineProperty(proxy, "__parent__", {
|
|
247
|
+
value: parent,
|
|
248
|
+
configurable: false,
|
|
249
|
+
enumerable: false,
|
|
250
|
+
writable: false,
|
|
251
|
+
});
|
|
252
|
+
}
|
|
253
|
+
function definePropertieSubscribe(proxy) {
|
|
254
|
+
Object.defineProperty(proxy, "__subscribe__", {
|
|
255
|
+
value: function (target, prop) {
|
|
256
|
+
if (this.__parent__) {
|
|
257
|
+
this.__parent__.__subscribe__(target, prop, this.__refPropertyKey__);
|
|
258
|
+
}
|
|
259
|
+
}.bind(proxy),
|
|
260
|
+
configurable: false,
|
|
261
|
+
enumerable: false,
|
|
262
|
+
writable: false,
|
|
263
|
+
});
|
|
264
|
+
}
|
|
265
|
+
function definePropertieOnChange(proxy) {
|
|
266
|
+
Object.defineProperty(proxy, "__onChange__", {
|
|
267
|
+
value: function (fun, target) {
|
|
268
|
+
if (this.__parent__) {
|
|
269
|
+
this.__parent__.__onChange_(target, fun);
|
|
270
|
+
}
|
|
271
|
+
}.bind(proxy),
|
|
272
|
+
configurable: false,
|
|
273
|
+
enumerable: false,
|
|
274
|
+
writable: false,
|
|
275
|
+
});
|
|
276
|
+
}
|
|
277
|
+
function definePropertieListOnChange(proxy) {
|
|
278
|
+
Object.defineProperty(proxy, "__list_change__", {
|
|
279
|
+
value: proxy.__parent__?.__list_change__ || [],
|
|
280
|
+
configurable: false,
|
|
281
|
+
enumerable: false,
|
|
282
|
+
writable: false,
|
|
283
|
+
});
|
|
284
|
+
}
|
|
285
|
+
// __setValue__
|
|
286
|
+
function definePropertieSetValue(proxy) {
|
|
287
|
+
Object.defineProperty(proxy, "__setValue__", {
|
|
288
|
+
value: function (value, refPropertyKey) {
|
|
289
|
+
// @ts-ignore
|
|
290
|
+
if (typeof value == "object" && value instanceof RefString_1.RefString) {
|
|
291
|
+
// @ts-ignore
|
|
292
|
+
value = value.valueOf();
|
|
293
|
+
}
|
|
294
|
+
this._value = value;
|
|
295
|
+
if (this.__parent__)
|
|
296
|
+
this.__parent__.__setValue__(value, refPropertyKey);
|
|
297
|
+
}.bind(proxy),
|
|
298
|
+
configurable: false,
|
|
299
|
+
enumerable: false,
|
|
300
|
+
writable: false,
|
|
301
|
+
});
|
|
302
|
+
}
|
|
303
|
+
function definePropertieToString(proxy) {
|
|
304
|
+
Object.defineProperty(proxy, "__toString__", {
|
|
305
|
+
value: function () {
|
|
306
|
+
return this._value.toString();
|
|
307
|
+
}.bind(proxy),
|
|
308
|
+
configurable: false,
|
|
309
|
+
enumerable: false,
|
|
310
|
+
writable: false,
|
|
311
|
+
});
|
|
312
|
+
}
|
|
313
|
+
function definePropertieToJSON(proxy) {
|
|
314
|
+
Object.defineProperty(proxy, "__toJSON__", {
|
|
315
|
+
value: function () {
|
|
316
|
+
return { value: this._value.toString() };
|
|
317
|
+
}.bind(proxy),
|
|
318
|
+
configurable: false,
|
|
319
|
+
enumerable: false,
|
|
320
|
+
writable: false,
|
|
321
|
+
});
|
|
322
|
+
}
|
|
323
|
+
function definePropertieNotify(proxy) {
|
|
324
|
+
Object.defineProperty(proxy, "__notify__", {
|
|
325
|
+
value: function (prop, value) {
|
|
326
|
+
if (this.__parent__) {
|
|
327
|
+
this.__parent__.__notify__(prop, value);
|
|
328
|
+
}
|
|
329
|
+
}.bind(proxy),
|
|
330
|
+
configurable: false,
|
|
331
|
+
enumerable: false,
|
|
332
|
+
writable: false,
|
|
333
|
+
});
|
|
334
|
+
}
|
|
335
|
+
})(RefStringAndNumber || (exports.RefStringAndNumber = RefStringAndNumber = {}));
|
|
141
336
|
//# sourceMappingURL=RefDefineProperty.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RefDefineProperty.js","sourceRoot":"","sources":["../../../../src/core/ref/RefDefineProperty.ts"],"names":[],"mappings":";;;AAAA,qCAAkC;AAClC,2CAAwC;AAGxC,IAAiB,
|
|
1
|
+
{"version":3,"file":"RefDefineProperty.js","sourceRoot":"","sources":["../../../../src/core/ref/RefDefineProperty.ts"],"names":[],"mappings":";;;AAAA,qCAAkC;AAClC,2CAAwC;AAGxC,IAAiB,kBAAkB,CAsKlC;AAtKD,WAAiB,kBAAkB;IACjC,SAAgB,gBAAgB,CAAC,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;gBAChD,IAAI,IAAI,CAAC,UAAU,EAAE,CAAC;oBACpB,IAAI,CAAC,UAAU,CAAC,UAAU,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;gBAC1C,CAAC;YACH,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC;YACb,YAAY,EAAE,KAAK;YACnB,UAAU,EAAE,KAAK;YACjB,QAAQ,EAAE,KAAK;SAChB,CAAC,CAAC;IACL,CAAC;AACH,CAAC,EAxHgB,kBAAkB,kCAAlB,kBAAkB,QAwHlC"}
|
|
@@ -1,16 +1,10 @@
|
|
|
1
1
|
export declare class RefNumber extends Number {
|
|
2
2
|
private _value;
|
|
3
|
-
|
|
4
|
-
private __parent__;
|
|
5
|
-
constructor(_value: number, refPropertyKey: string | symbol, __parent__: {
|
|
6
|
-
__subscribe__(target: any, propertyKey: string | symbol, refPropertyKey: string | symbol): void;
|
|
7
|
-
} & any);
|
|
8
|
-
__setValue__(value: number, refPropertyKey: string | symbol): void;
|
|
9
|
-
__subscribe__(target: {}, propertyKey: string | symbol): void;
|
|
10
|
-
onChange(fun: (value: any) => void, target?: {}): void;
|
|
3
|
+
constructor(_value: number, refPropertyKey: string | symbol, parent: any);
|
|
11
4
|
get value(): number;
|
|
12
5
|
set value(_value: number);
|
|
13
6
|
equals(value: number): boolean;
|
|
14
7
|
valueOf(): number;
|
|
15
8
|
toString(): string;
|
|
9
|
+
static typeofNumber(value: any): boolean;
|
|
16
10
|
}
|