@stemy/ngx-utils 11.0.0 → 11.0.1
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/bundles/stemy-ngx-utils.umd.js +16 -7
- package/bundles/stemy-ngx-utils.umd.js.map +1 -1
- package/bundles/stemy-ngx-utils.umd.min.js +1 -1
- package/bundles/stemy-ngx-utils.umd.min.js.map +1 -1
- package/esm2015/ngx-utils/common-types.js +4 -1
- package/esm2015/ngx-utils/ngx-utils.module.js +8 -10
- package/esm2015/ngx-utils/services/config.service.js +3 -2
- package/esm2015/public_api.js +2 -2
- package/fesm2015/stemy-ngx-utils.js +13 -11
- package/fesm2015/stemy-ngx-utils.js.map +1 -1
- package/ngx-utils/common-types.d.ts +6 -1
- package/package.json +1 -1
- package/public_api.d.ts +1 -1
- package/stemy-ngx-utils.metadata.json +1 -1
|
@@ -754,7 +754,15 @@
|
|
|
754
754
|
var CONFIG_SERVICE = new core.InjectionToken("config-service");
|
|
755
755
|
var BASE_CONFIG = new core.InjectionToken("base-config");
|
|
756
756
|
var SCRIPT_PARAMS = new core.InjectionToken("script-params");
|
|
757
|
-
var ERROR_HANDLER = new core.InjectionToken("error-handler-callback");
|
|
757
|
+
var ERROR_HANDLER = new core.InjectionToken("error-handler-callback");
|
|
758
|
+
// --- Valued promise ---
|
|
759
|
+
var ValuedPromise = /** @class */ (function (_super) {
|
|
760
|
+
__extends(ValuedPromise, _super);
|
|
761
|
+
function ValuedPromise() {
|
|
762
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
763
|
+
}
|
|
764
|
+
return ValuedPromise;
|
|
765
|
+
}(Promise));
|
|
758
766
|
|
|
759
767
|
var AjaxRequestHandler = /** @class */ (function () {
|
|
760
768
|
function AjaxRequestHandler(pattern, callback) {
|
|
@@ -3152,7 +3160,8 @@
|
|
|
3152
3160
|
_this.http.get(configUrl).toPromise().then(function (response) {
|
|
3153
3161
|
resolve(response);
|
|
3154
3162
|
}, function () {
|
|
3155
|
-
|
|
3163
|
+
console.error("Config file not found at: " + configUrl);
|
|
3164
|
+
resolve({});
|
|
3156
3165
|
});
|
|
3157
3166
|
});
|
|
3158
3167
|
};
|
|
@@ -5799,15 +5808,14 @@
|
|
|
5799
5808
|
{
|
|
5800
5809
|
provide: CONFIG_SERVICE,
|
|
5801
5810
|
useExisting: (!config ? null : config.configService) || ConfigService
|
|
5802
|
-
}
|
|
5803
|
-
], (config && config.configService ? [
|
|
5811
|
+
},
|
|
5804
5812
|
{
|
|
5805
5813
|
provide: core.APP_INITIALIZER,
|
|
5806
|
-
useFactory: loadConfig,
|
|
5814
|
+
useFactory: (!config ? null : config.initializeApp) || loadConfig,
|
|
5807
5815
|
multi: true,
|
|
5808
|
-
deps: [CONFIG_SERVICE]
|
|
5816
|
+
deps: [(!config ? null : config.initializeApp) ? core.Injector : CONFIG_SERVICE]
|
|
5809
5817
|
}
|
|
5810
|
-
]
|
|
5818
|
+
])
|
|
5811
5819
|
};
|
|
5812
5820
|
};
|
|
5813
5821
|
return NgxUtilsModule;
|
|
@@ -5929,6 +5937,7 @@
|
|
|
5929
5937
|
exports.UnorderedListItemDirective = UnorderedListItemDirective;
|
|
5930
5938
|
exports.UnorderedListTemplateDirective = UnorderedListTemplateDirective;
|
|
5931
5939
|
exports.UnorederedListTemplate = UnorederedListTemplate;
|
|
5940
|
+
exports.ValuedPromise = ValuedPromise;
|
|
5932
5941
|
exports.ValuesPipe = ValuesPipe;
|
|
5933
5942
|
exports.Vector = Vector;
|
|
5934
5943
|
exports.ɵa = pipes;
|