@dooboostore/simple-web-component 1.0.25 → 1.0.26
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/README.md +3530 -59
- package/dist/esm-bundle/dooboostore-simple-web-component.esm.js +33 -52
- package/dist/esm-bundle/dooboostore-simple-web-component.esm.js.map +2 -2
- package/dist/umd-bundle/dooboostore-simple-web-component.umd.js +33 -52
- package/dist/umd-bundle/dooboostore-simple-web-component.umd.js.map +2 -2
- package/package.json +3 -3
|
@@ -5778,7 +5778,7 @@ _RenderTransactionDrawObj.DEFAULT_BEZIER = { p1x: 0.61, p1y: 1, p2x: 0.88, p2y:
|
|
|
5778
5778
|
// ../core/dist/esm/schedule/Schedule.js
|
|
5779
5779
|
var Schedule;
|
|
5780
5780
|
((Schedule2) => {
|
|
5781
|
-
Schedule2.SYMBOL = Symbol
|
|
5781
|
+
Schedule2.SYMBOL = Symbol("Schedule");
|
|
5782
5782
|
})(Schedule || (Schedule = {}));
|
|
5783
5783
|
|
|
5784
5784
|
// ../core/dist/esm/url/UrlUtils.js
|
|
@@ -5932,17 +5932,6 @@ var ReflectUtils;
|
|
|
5932
5932
|
Reflect.defineMetadata(metadataKey, value, target);
|
|
5933
5933
|
}
|
|
5934
5934
|
};
|
|
5935
|
-
ReflectUtils2.copyMetadata = (from, to, propertyKey) => {
|
|
5936
|
-
const keys = propertyKey ? Reflect.getOwnMetadataKeys(from, propertyKey) : Reflect.getOwnMetadataKeys(from);
|
|
5937
|
-
for (const key of keys) {
|
|
5938
|
-
const data = propertyKey ? Reflect.getOwnMetadata(key, from, propertyKey) : Reflect.getOwnMetadata(key, from);
|
|
5939
|
-
if (propertyKey) {
|
|
5940
|
-
Reflect.defineMetadata(key, data, to, propertyKey);
|
|
5941
|
-
} else {
|
|
5942
|
-
Reflect.defineMetadata(key, data, to);
|
|
5943
|
-
}
|
|
5944
|
-
}
|
|
5945
|
-
};
|
|
5946
5935
|
})(ReflectUtils || (ReflectUtils = {}));
|
|
5947
5936
|
|
|
5948
5937
|
// ../core/dist/esm/function/FunctionUtils.js
|
|
@@ -7586,7 +7575,7 @@ var isTargetScheme = (config) => {
|
|
|
7586
7575
|
var isTargetFactory = (config) => {
|
|
7587
7576
|
return "factory" in config && typeof config.factory === "function" && !("symbol" in config) && !("type" in config) && !("scheme" in config);
|
|
7588
7577
|
};
|
|
7589
|
-
var InjectMetadataKey = Symbol
|
|
7578
|
+
var InjectMetadataKey = Symbol("Inject");
|
|
7590
7579
|
var injectProcess = (config, target, propertyKey, parameterIndex) => {
|
|
7591
7580
|
if (propertyKey && typeof target === "object") {
|
|
7592
7581
|
const otarget = target;
|
|
@@ -8079,7 +8068,7 @@ var Lifecycle = /* @__PURE__ */ ((Lifecycle2) => {
|
|
|
8079
8068
|
})(Lifecycle || {});
|
|
8080
8069
|
var sims = /* @__PURE__ */ new Map();
|
|
8081
8070
|
var containers = /* @__PURE__ */ new Set();
|
|
8082
|
-
var SimMetadataKey = Symbol
|
|
8071
|
+
var SimMetadataKey = Symbol("Sim");
|
|
8083
8072
|
var isNotNullObjetInstance = (target) => target != null && target !== void 0 && typeof target === "object";
|
|
8084
8073
|
var simProcess = (config, inputTarget) => {
|
|
8085
8074
|
const target = (() => {
|
|
@@ -8132,7 +8121,7 @@ var getSim = (target) => {
|
|
|
8132
8121
|
} catch (e) {
|
|
8133
8122
|
}
|
|
8134
8123
|
};
|
|
8135
|
-
var PostConstructMetadataKey = Symbol
|
|
8124
|
+
var PostConstructMetadataKey = Symbol("PostConstruct");
|
|
8136
8125
|
var getPostConstructs = (target) => {
|
|
8137
8126
|
return ReflectUtils.getMetadata(PostConstructMetadataKey, target) ?? [];
|
|
8138
8127
|
};
|
|
@@ -8206,9 +8195,9 @@ var MetaDataPropertyAtomic = class extends MetaDataAtomic {
|
|
|
8206
8195
|
};
|
|
8207
8196
|
|
|
8208
8197
|
// ../simple-boot/dist/esm/decorators/aop/AOPDecorator.js
|
|
8209
|
-
var AfterMetadataKey = Symbol
|
|
8210
|
-
var BeforeMetadataKey = Symbol
|
|
8211
|
-
var AroundMetadataKey = Symbol
|
|
8198
|
+
var AfterMetadataKey = Symbol("After");
|
|
8199
|
+
var BeforeMetadataKey = Symbol("Before");
|
|
8200
|
+
var AroundMetadataKey = Symbol("Around");
|
|
8212
8201
|
var getAfter = (target, propertyKey) => {
|
|
8213
8202
|
return ReflectUtils.getMetadata(AfterMetadataKey, target, propertyKey);
|
|
8214
8203
|
};
|
|
@@ -8234,7 +8223,7 @@ var ExceptionHandlerSituationType = /* @__PURE__ */ ((ExceptionHandlerSituationT
|
|
|
8234
8223
|
ExceptionHandlerSituationType2["PARAMETER"] = "SIMPLE_BOOT_CORE://ExceptionHandler/PARAMETER";
|
|
8235
8224
|
return ExceptionHandlerSituationType2;
|
|
8236
8225
|
})(ExceptionHandlerSituationType || {});
|
|
8237
|
-
var ExceptionHandlerMetadataKey = Symbol
|
|
8226
|
+
var ExceptionHandlerMetadataKey = Symbol("ExceptionHandler");
|
|
8238
8227
|
var getExceptionHandlers = (target) => {
|
|
8239
8228
|
if (target !== null && void 0 !== target && typeof target === "object") {
|
|
8240
8229
|
target = target.constructor;
|
|
@@ -8401,7 +8390,7 @@ var isOnSimCreateProxyCompleted = (obj) => {
|
|
|
8401
8390
|
};
|
|
8402
8391
|
|
|
8403
8392
|
// ../simple-boot/dist/esm/decorators/SimNoProxy.js
|
|
8404
|
-
var SimNoProxyKey = Symbol
|
|
8393
|
+
var SimNoProxyKey = Symbol("Sim:NoProxy");
|
|
8405
8394
|
var getSimNoProxy = (target, propertyKey) => {
|
|
8406
8395
|
try {
|
|
8407
8396
|
if (propertyKey === void 0) {
|
|
@@ -8803,34 +8792,26 @@ var SimstanceManager = class _SimstanceManager {
|
|
|
8803
8792
|
}
|
|
8804
8793
|
run(otherInstanceSim = /* @__PURE__ */ new Map()) {
|
|
8805
8794
|
for (const [k, v] of Array.from(otherInstanceSim.entries())) {
|
|
8806
|
-
|
|
8807
|
-
|
|
8808
|
-
if (typeof k === "object"
|
|
8809
|
-
|
|
8795
|
+
if (typeof k === "symbol") {
|
|
8796
|
+
simProcess({ symbol: k }, v);
|
|
8797
|
+
} else if (typeof k === "object") {
|
|
8798
|
+
simProcess(k, v);
|
|
8799
|
+
} else {
|
|
8800
|
+
simProcess({ type: k }, v);
|
|
8810
8801
|
}
|
|
8811
8802
|
}
|
|
8812
8803
|
const myContainers = ConvertUtils.flatArray(this.option.container).filter(ValidUtils.isDefined);
|
|
8813
|
-
|
|
8814
|
-
|
|
8815
|
-
|
|
8816
|
-
|
|
8817
|
-
|
|
8818
|
-
|
|
8819
|
-
|
|
8820
|
-
|
|
8821
|
-
|
|
8822
|
-
if (targetContainers.length <= 0) {
|
|
8823
|
-
isInclude = true;
|
|
8824
|
-
} else {
|
|
8825
|
-
isInclude = myContainers.some((it) => targetContainers.includes(it));
|
|
8826
|
-
}
|
|
8827
|
-
if (isInclude) {
|
|
8828
|
-
filteredSet.add(impl);
|
|
8829
|
-
}
|
|
8830
|
-
});
|
|
8831
|
-
if (filteredSet.size > 0) {
|
|
8832
|
-
this.registerStore(type, filteredSet);
|
|
8804
|
+
Array.from(sims.entries()).forEach(([type, value]) => {
|
|
8805
|
+
const targetContainers = ConvertUtils.flatArray(getSim(type)?.container).filter(ValidUtils.isDefined);
|
|
8806
|
+
let isInclude = false;
|
|
8807
|
+
if (myContainers.length <= 0 && targetContainers.length <= 0) {
|
|
8808
|
+
isInclude = true;
|
|
8809
|
+
} else if (targetContainers.length <= 0) {
|
|
8810
|
+
isInclude = true;
|
|
8811
|
+
} else {
|
|
8812
|
+
isInclude = myContainers.some((it) => targetContainers.includes(it));
|
|
8833
8813
|
}
|
|
8814
|
+
this.registerStore(type, value);
|
|
8834
8815
|
});
|
|
8835
8816
|
this.callBindPostConstruct(this);
|
|
8836
8817
|
this.getSimAtomics().forEach((it) => {
|
|
@@ -9096,7 +9077,7 @@ var MethodNoSuch = class extends SimError {
|
|
|
9096
9077
|
};
|
|
9097
9078
|
|
|
9098
9079
|
// ../simple-boot/dist/esm/decorators/route/Router.js
|
|
9099
|
-
var RouterMetadataKey = Symbol
|
|
9080
|
+
var RouterMetadataKey = Symbol("Router");
|
|
9100
9081
|
var getRouter = (target) => {
|
|
9101
9082
|
if (target != null && typeof target === "object") {
|
|
9102
9083
|
target = target.constructor;
|
|
@@ -9106,7 +9087,7 @@ var getRouter = (target) => {
|
|
|
9106
9087
|
} catch (e) {
|
|
9107
9088
|
}
|
|
9108
9089
|
};
|
|
9109
|
-
var RouteMetadataKey = Symbol
|
|
9090
|
+
var RouteMetadataKey = Symbol("RouteMetadataKey");
|
|
9110
9091
|
|
|
9111
9092
|
// ../simple-boot/dist/esm/route/RouterModule.js
|
|
9112
9093
|
var RouterModule = class {
|
|
@@ -10528,7 +10509,7 @@ var __decorate = function(decorators, target, key, desc) {
|
|
|
10528
10509
|
};
|
|
10529
10510
|
var AlertFactory;
|
|
10530
10511
|
(function(AlertFactory2) {
|
|
10531
|
-
AlertFactory2.SYMBOL = Symbol
|
|
10512
|
+
AlertFactory2.SYMBOL = Symbol("AlertFactory");
|
|
10532
10513
|
})(AlertFactory || (AlertFactory = {}));
|
|
10533
10514
|
var DefaultAlertFactory = class DefaultAlertFactory2 {
|
|
10534
10515
|
create(data) {
|
|
@@ -10658,7 +10639,7 @@ var deleteCacheByKey = (simpleApplication, key) => {
|
|
|
10658
10639
|
var deleteCacheByKeyStartWith = (simpleApplication, key) => {
|
|
10659
10640
|
findCacheByKeyStartWith(simpleApplication, key).forEach(([key2, data]) => deleteCacheByKey(simpleApplication, key2));
|
|
10660
10641
|
};
|
|
10661
|
-
var CacheMetadataKey = Symbol
|
|
10642
|
+
var CacheMetadataKey = Symbol("Cache");
|
|
10662
10643
|
|
|
10663
10644
|
// ../simple-boot/dist/esm/cache/CacheManager.js
|
|
10664
10645
|
var __decorate3 = function(decorators, target, key, desc) {
|
|
@@ -10697,11 +10678,11 @@ CacheManager = __decorate3([
|
|
|
10697
10678
|
], CacheManager);
|
|
10698
10679
|
|
|
10699
10680
|
// ../simple-boot/dist/esm/decorators/event/EventListener.js
|
|
10700
|
-
var EventListenerMetadataKey = Symbol
|
|
10681
|
+
var EventListenerMetadataKey = Symbol("EventListener");
|
|
10701
10682
|
|
|
10702
10683
|
// ../simple-boot/dist/esm/decorators/validate/Validation.js
|
|
10703
|
-
var ValidMetadataKey = Symbol
|
|
10704
|
-
var ValidationMetadataKey = Symbol
|
|
10684
|
+
var ValidMetadataKey = Symbol("ValidMetadataKey");
|
|
10685
|
+
var ValidationMetadataKey = Symbol("ValidationMetadataKey");
|
|
10705
10686
|
|
|
10706
10687
|
// ../simple-boot/dist/esm/fetch/ApiService.js
|
|
10707
10688
|
var __decorate4 = function(decorators, target, key, desc) {
|
|
@@ -10717,7 +10698,7 @@ var _a3;
|
|
|
10717
10698
|
var _b;
|
|
10718
10699
|
var ApiServiceInterceptor;
|
|
10719
10700
|
(function(ApiServiceInterceptor2) {
|
|
10720
|
-
ApiServiceInterceptor2.TOKEN = Symbol
|
|
10701
|
+
ApiServiceInterceptor2.TOKEN = Symbol("ApiServiceInterceptor");
|
|
10721
10702
|
ApiServiceInterceptor2.resolveAll = (simstanceManager) => {
|
|
10722
10703
|
try {
|
|
10723
10704
|
return (simstanceManager.findSims(ApiServiceInterceptor2.TOKEN) ?? []).map((it) => it.getValue()).filter(ValidUtils.isDefined);
|