@stemy/ngx-utils 13.5.2 → 13.5.5
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/esm2020/ngx-utils/common-types.mjs +1 -1
- package/esm2020/ngx-utils/components/dynamic-table/dynamic-table.component.mjs +1 -1
- package/esm2020/ngx-utils/directives/async-method.base.mjs +8 -4
- package/esm2020/ngx-utils/utils/loader.utils.mjs +3 -3
- package/esm2020/public_api.mjs +1 -1
- package/fesm2015/stemy-ngx-utils.mjs +9 -5
- package/fesm2015/stemy-ngx-utils.mjs.map +1 -1
- package/fesm2020/stemy-ngx-utils.mjs +9 -5
- package/fesm2020/stemy-ngx-utils.mjs.map +1 -1
- package/ngx-utils/common-types.d.ts +2 -0
- package/ngx-utils/components/dynamic-table/dynamic-table.component.d.ts +5 -3
- package/ngx-utils/directives/async-method.base.d.ts +1 -1
- package/ngx-utils/utils/loader.utils.d.ts +2 -2
- package/package.json +1 -1
- package/public_api.d.ts +1 -1
|
@@ -1275,11 +1275,11 @@ class JSONfn {
|
|
|
1275
1275
|
}
|
|
1276
1276
|
|
|
1277
1277
|
class LoaderUtils {
|
|
1278
|
-
static loadScript(src, async = false) {
|
|
1278
|
+
static loadScript(src, async = false, type = "text/javascript") {
|
|
1279
1279
|
this.scriptPromises[src] = this.scriptPromises[src] || new Promise((resolve, reject) => {
|
|
1280
1280
|
// Load script
|
|
1281
1281
|
const script = document.createElement("script");
|
|
1282
|
-
script.type =
|
|
1282
|
+
script.type = type;
|
|
1283
1283
|
script.src = src;
|
|
1284
1284
|
script.async = async;
|
|
1285
1285
|
if (script.readyState) {
|
|
@@ -4361,7 +4361,11 @@ class AsyncMethodBase {
|
|
|
4361
4361
|
getMethod() {
|
|
4362
4362
|
return async () => null;
|
|
4363
4363
|
}
|
|
4364
|
-
click() {
|
|
4364
|
+
click(ev) {
|
|
4365
|
+
if (ev) {
|
|
4366
|
+
ev.preventDefault();
|
|
4367
|
+
ev.stopPropagation();
|
|
4368
|
+
}
|
|
4365
4369
|
if (this.disabled)
|
|
4366
4370
|
return;
|
|
4367
4371
|
this.callMethod();
|
|
@@ -4393,7 +4397,7 @@ class AsyncMethodBase {
|
|
|
4393
4397
|
}
|
|
4394
4398
|
}
|
|
4395
4399
|
AsyncMethodBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: AsyncMethodBase, deps: [{ token: TOASTER_SERVICE }], target: i0.ɵɵFactoryTarget.Directive });
|
|
4396
|
-
AsyncMethodBase.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.4.0", type: AsyncMethodBase, selector: "[__asmb__]", inputs: { disabled: "disabled", context: "context" }, outputs: { onSuccess: "onSuccess", onError: "onError" }, host: { listeners: { "click": "click()" }, properties: { "class.disabled": "this.isDisabled", "class.loading": "this.isLoading" } }, ngImport: i0 });
|
|
4400
|
+
AsyncMethodBase.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.4.0", type: AsyncMethodBase, selector: "[__asmb__]", inputs: { disabled: "disabled", context: "context" }, outputs: { onSuccess: "onSuccess", onError: "onError" }, host: { listeners: { "click": "click($event)" }, properties: { "class.disabled": "this.isDisabled", "class.loading": "this.isLoading" } }, ngImport: i0 });
|
|
4397
4401
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: AsyncMethodBase, decorators: [{
|
|
4398
4402
|
type: Directive,
|
|
4399
4403
|
args: [{
|
|
@@ -4418,7 +4422,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImpor
|
|
|
4418
4422
|
args: ["class.loading"]
|
|
4419
4423
|
}], click: [{
|
|
4420
4424
|
type: HostListener,
|
|
4421
|
-
args: ["click"]
|
|
4425
|
+
args: ["click", ["$event"]]
|
|
4422
4426
|
}] } });
|
|
4423
4427
|
|
|
4424
4428
|
class AsyncMethodDirective extends AsyncMethodBase {
|