@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
|
@@ -5916,7 +5916,7 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
5916
5916
|
// ../core/dist/esm/schedule/Schedule.js
|
|
5917
5917
|
var Schedule;
|
|
5918
5918
|
((Schedule2) => {
|
|
5919
|
-
Schedule2.SYMBOL = Symbol
|
|
5919
|
+
Schedule2.SYMBOL = Symbol("Schedule");
|
|
5920
5920
|
})(Schedule || (Schedule = {}));
|
|
5921
5921
|
|
|
5922
5922
|
// ../core/dist/esm/url/UrlUtils.js
|
|
@@ -6070,17 +6070,6 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
6070
6070
|
Reflect.defineMetadata(metadataKey, value, target);
|
|
6071
6071
|
}
|
|
6072
6072
|
};
|
|
6073
|
-
ReflectUtils2.copyMetadata = (from, to, propertyKey) => {
|
|
6074
|
-
const keys = propertyKey ? Reflect.getOwnMetadataKeys(from, propertyKey) : Reflect.getOwnMetadataKeys(from);
|
|
6075
|
-
for (const key of keys) {
|
|
6076
|
-
const data = propertyKey ? Reflect.getOwnMetadata(key, from, propertyKey) : Reflect.getOwnMetadata(key, from);
|
|
6077
|
-
if (propertyKey) {
|
|
6078
|
-
Reflect.defineMetadata(key, data, to, propertyKey);
|
|
6079
|
-
} else {
|
|
6080
|
-
Reflect.defineMetadata(key, data, to);
|
|
6081
|
-
}
|
|
6082
|
-
}
|
|
6083
|
-
};
|
|
6084
6073
|
})(ReflectUtils || (ReflectUtils = {}));
|
|
6085
6074
|
|
|
6086
6075
|
// ../core/dist/esm/function/FunctionUtils.js
|
|
@@ -7724,7 +7713,7 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
7724
7713
|
var isTargetFactory = (config) => {
|
|
7725
7714
|
return "factory" in config && typeof config.factory === "function" && !("symbol" in config) && !("type" in config) && !("scheme" in config);
|
|
7726
7715
|
};
|
|
7727
|
-
var InjectMetadataKey = Symbol
|
|
7716
|
+
var InjectMetadataKey = Symbol("Inject");
|
|
7728
7717
|
var injectProcess = (config, target, propertyKey, parameterIndex) => {
|
|
7729
7718
|
if (propertyKey && typeof target === "object") {
|
|
7730
7719
|
const otarget = target;
|
|
@@ -8217,7 +8206,7 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
8217
8206
|
})(Lifecycle || {});
|
|
8218
8207
|
var sims = /* @__PURE__ */ new Map();
|
|
8219
8208
|
var containers = /* @__PURE__ */ new Set();
|
|
8220
|
-
var SimMetadataKey = Symbol
|
|
8209
|
+
var SimMetadataKey = Symbol("Sim");
|
|
8221
8210
|
var isNotNullObjetInstance = (target) => target != null && target !== void 0 && typeof target === "object";
|
|
8222
8211
|
var simProcess = (config, inputTarget) => {
|
|
8223
8212
|
const target = (() => {
|
|
@@ -8270,7 +8259,7 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
8270
8259
|
} catch (e) {
|
|
8271
8260
|
}
|
|
8272
8261
|
};
|
|
8273
|
-
var PostConstructMetadataKey = Symbol
|
|
8262
|
+
var PostConstructMetadataKey = Symbol("PostConstruct");
|
|
8274
8263
|
var getPostConstructs = (target) => {
|
|
8275
8264
|
return ReflectUtils.getMetadata(PostConstructMetadataKey, target) ?? [];
|
|
8276
8265
|
};
|
|
@@ -8344,9 +8333,9 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
8344
8333
|
};
|
|
8345
8334
|
|
|
8346
8335
|
// ../simple-boot/dist/esm/decorators/aop/AOPDecorator.js
|
|
8347
|
-
var AfterMetadataKey = Symbol
|
|
8348
|
-
var BeforeMetadataKey = Symbol
|
|
8349
|
-
var AroundMetadataKey = Symbol
|
|
8336
|
+
var AfterMetadataKey = Symbol("After");
|
|
8337
|
+
var BeforeMetadataKey = Symbol("Before");
|
|
8338
|
+
var AroundMetadataKey = Symbol("Around");
|
|
8350
8339
|
var getAfter = (target, propertyKey) => {
|
|
8351
8340
|
return ReflectUtils.getMetadata(AfterMetadataKey, target, propertyKey);
|
|
8352
8341
|
};
|
|
@@ -8372,7 +8361,7 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
8372
8361
|
ExceptionHandlerSituationType2["PARAMETER"] = "SIMPLE_BOOT_CORE://ExceptionHandler/PARAMETER";
|
|
8373
8362
|
return ExceptionHandlerSituationType2;
|
|
8374
8363
|
})(ExceptionHandlerSituationType || {});
|
|
8375
|
-
var ExceptionHandlerMetadataKey = Symbol
|
|
8364
|
+
var ExceptionHandlerMetadataKey = Symbol("ExceptionHandler");
|
|
8376
8365
|
var getExceptionHandlers = (target) => {
|
|
8377
8366
|
if (target !== null && void 0 !== target && typeof target === "object") {
|
|
8378
8367
|
target = target.constructor;
|
|
@@ -8539,7 +8528,7 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
8539
8528
|
};
|
|
8540
8529
|
|
|
8541
8530
|
// ../simple-boot/dist/esm/decorators/SimNoProxy.js
|
|
8542
|
-
var SimNoProxyKey = Symbol
|
|
8531
|
+
var SimNoProxyKey = Symbol("Sim:NoProxy");
|
|
8543
8532
|
var getSimNoProxy = (target, propertyKey) => {
|
|
8544
8533
|
try {
|
|
8545
8534
|
if (propertyKey === void 0) {
|
|
@@ -8941,34 +8930,26 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
8941
8930
|
}
|
|
8942
8931
|
run(otherInstanceSim = /* @__PURE__ */ new Map()) {
|
|
8943
8932
|
for (const [k, v] of Array.from(otherInstanceSim.entries())) {
|
|
8944
|
-
|
|
8945
|
-
|
|
8946
|
-
if (typeof k === "object"
|
|
8947
|
-
|
|
8933
|
+
if (typeof k === "symbol") {
|
|
8934
|
+
simProcess({ symbol: k }, v);
|
|
8935
|
+
} else if (typeof k === "object") {
|
|
8936
|
+
simProcess(k, v);
|
|
8937
|
+
} else {
|
|
8938
|
+
simProcess({ type: k }, v);
|
|
8948
8939
|
}
|
|
8949
8940
|
}
|
|
8950
8941
|
const myContainers = ConvertUtils.flatArray(this.option.container).filter(ValidUtils.isDefined);
|
|
8951
|
-
|
|
8952
|
-
|
|
8953
|
-
|
|
8954
|
-
|
|
8955
|
-
|
|
8956
|
-
|
|
8957
|
-
|
|
8958
|
-
|
|
8959
|
-
|
|
8960
|
-
if (targetContainers.length <= 0) {
|
|
8961
|
-
isInclude = true;
|
|
8962
|
-
} else {
|
|
8963
|
-
isInclude = myContainers.some((it) => targetContainers.includes(it));
|
|
8964
|
-
}
|
|
8965
|
-
if (isInclude) {
|
|
8966
|
-
filteredSet.add(impl);
|
|
8967
|
-
}
|
|
8968
|
-
});
|
|
8969
|
-
if (filteredSet.size > 0) {
|
|
8970
|
-
this.registerStore(type, filteredSet);
|
|
8942
|
+
Array.from(sims.entries()).forEach(([type, value]) => {
|
|
8943
|
+
const targetContainers = ConvertUtils.flatArray(getSim(type)?.container).filter(ValidUtils.isDefined);
|
|
8944
|
+
let isInclude = false;
|
|
8945
|
+
if (myContainers.length <= 0 && targetContainers.length <= 0) {
|
|
8946
|
+
isInclude = true;
|
|
8947
|
+
} else if (targetContainers.length <= 0) {
|
|
8948
|
+
isInclude = true;
|
|
8949
|
+
} else {
|
|
8950
|
+
isInclude = myContainers.some((it) => targetContainers.includes(it));
|
|
8971
8951
|
}
|
|
8952
|
+
this.registerStore(type, value);
|
|
8972
8953
|
});
|
|
8973
8954
|
this.callBindPostConstruct(this);
|
|
8974
8955
|
this.getSimAtomics().forEach((it) => {
|
|
@@ -9234,7 +9215,7 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
9234
9215
|
};
|
|
9235
9216
|
|
|
9236
9217
|
// ../simple-boot/dist/esm/decorators/route/Router.js
|
|
9237
|
-
var RouterMetadataKey = Symbol
|
|
9218
|
+
var RouterMetadataKey = Symbol("Router");
|
|
9238
9219
|
var getRouter = (target) => {
|
|
9239
9220
|
if (target != null && typeof target === "object") {
|
|
9240
9221
|
target = target.constructor;
|
|
@@ -9244,7 +9225,7 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
9244
9225
|
} catch (e) {
|
|
9245
9226
|
}
|
|
9246
9227
|
};
|
|
9247
|
-
var RouteMetadataKey = Symbol
|
|
9228
|
+
var RouteMetadataKey = Symbol("RouteMetadataKey");
|
|
9248
9229
|
|
|
9249
9230
|
// ../simple-boot/dist/esm/route/RouterModule.js
|
|
9250
9231
|
var RouterModule = class {
|
|
@@ -10666,7 +10647,7 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
10666
10647
|
};
|
|
10667
10648
|
var AlertFactory;
|
|
10668
10649
|
(function(AlertFactory2) {
|
|
10669
|
-
AlertFactory2.SYMBOL = Symbol
|
|
10650
|
+
AlertFactory2.SYMBOL = Symbol("AlertFactory");
|
|
10670
10651
|
})(AlertFactory || (AlertFactory = {}));
|
|
10671
10652
|
var DefaultAlertFactory = class DefaultAlertFactory2 {
|
|
10672
10653
|
create(data) {
|
|
@@ -10796,7 +10777,7 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
10796
10777
|
var deleteCacheByKeyStartWith = (simpleApplication, key) => {
|
|
10797
10778
|
findCacheByKeyStartWith(simpleApplication, key).forEach(([key2, data]) => deleteCacheByKey(simpleApplication, key2));
|
|
10798
10779
|
};
|
|
10799
|
-
var CacheMetadataKey = Symbol
|
|
10780
|
+
var CacheMetadataKey = Symbol("Cache");
|
|
10800
10781
|
|
|
10801
10782
|
// ../simple-boot/dist/esm/cache/CacheManager.js
|
|
10802
10783
|
var __decorate3 = function(decorators, target, key, desc) {
|
|
@@ -10835,11 +10816,11 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
10835
10816
|
], CacheManager);
|
|
10836
10817
|
|
|
10837
10818
|
// ../simple-boot/dist/esm/decorators/event/EventListener.js
|
|
10838
|
-
var EventListenerMetadataKey = Symbol
|
|
10819
|
+
var EventListenerMetadataKey = Symbol("EventListener");
|
|
10839
10820
|
|
|
10840
10821
|
// ../simple-boot/dist/esm/decorators/validate/Validation.js
|
|
10841
|
-
var ValidMetadataKey = Symbol
|
|
10842
|
-
var ValidationMetadataKey = Symbol
|
|
10822
|
+
var ValidMetadataKey = Symbol("ValidMetadataKey");
|
|
10823
|
+
var ValidationMetadataKey = Symbol("ValidationMetadataKey");
|
|
10843
10824
|
|
|
10844
10825
|
// ../simple-boot/dist/esm/fetch/ApiService.js
|
|
10845
10826
|
var __decorate4 = function(decorators, target, key, desc) {
|
|
@@ -10855,7 +10836,7 @@ var dooboostoreSimpleWebComponent = (() => {
|
|
|
10855
10836
|
var _b;
|
|
10856
10837
|
var ApiServiceInterceptor;
|
|
10857
10838
|
(function(ApiServiceInterceptor2) {
|
|
10858
|
-
ApiServiceInterceptor2.TOKEN = Symbol
|
|
10839
|
+
ApiServiceInterceptor2.TOKEN = Symbol("ApiServiceInterceptor");
|
|
10859
10840
|
ApiServiceInterceptor2.resolveAll = (simstanceManager) => {
|
|
10860
10841
|
try {
|
|
10861
10842
|
return (simstanceManager.findSims(ApiServiceInterceptor2.TOKEN) ?? []).map((it) => it.getValue()).filter(ValidUtils.isDefined);
|