@wavemaker/app-ng-runtime 11.14.1-rc.6286 → 11.14.1-rc.6304
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/components/base/bundles/index.umd.js +9 -9
- package/components/base/esm2022/pipes/custom-pipes.mjs +10 -10
- package/components/base/esm2022/utils/widget-utils.mjs +3 -3
- package/components/base/fesm2022/index.mjs +10 -10
- package/components/base/fesm2022/index.mjs.map +1 -1
- package/components/base/pipes/custom-pipes.d.ts +5 -5
- package/core/bundles/index.umd.js +6 -0
- package/core/esm2022/public_api.mjs +2 -2
- package/core/esm2022/utils/utils.mjs +6 -2
- package/core/fesm2022/index.mjs +6 -1
- package/core/fesm2022/index.mjs.map +1 -1
- package/core/public_api.d.ts +1 -1
- package/core/utils/utils.d.ts +1 -0
- package/npm-shrinkwrap.json +2 -2
- package/package-lock.json +2 -2
- package/package.json +1 -1
- package/runtime/base/bundles/index.umd.js +2 -2
- package/runtime/base/esm2022/services/pipe-provider.service.mjs +4 -4
- package/runtime/base/fesm2022/index.mjs +2 -2
- package/runtime/base/fesm2022/index.mjs.map +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i1 from '@wm/core';
|
|
2
|
-
import { FormWidgetType, checkIsCustomPipeExpression, $parseExpr, isValidWebURL, _WM_APP_PROJECT, encodeUrl, stringStartsWith, prettifyLabel, deHyphenate, initCaps, getClonedObject, DataSource, debounce, processFilterExpBindNode, isDefined, MatchMode, $parseEvent, isEqualWithFields, getFormattedDate, isAndroid, isNumberType, DataType, setCSS, IDGenerator, toBoolean, isChangeFromWatch, $unwatch, resetChangeFromWatch, isObject as isObject$1, toDimension, $appDigest, removeClass, addClass, setCSSFromObj, App, findParent, setAttr, switchClass, removeAttr, $invokeWatchers, $watch, findValueOf, validateAccessRoles, ComponentType, noop as noop$1, VALIDATOR, isIos, isMobile, hasOffsetStr, AbstractI18nService, CURRENCY_INFO, replace as replace$1, transformFileURI, isLargeTabletLandscape, isLargeTabletPortrait } from '@wm/core';
|
|
2
|
+
import { FormWidgetType, checkIsCustomPipeExpression, $parseExpr, isValidWebURL, _WM_APP_PROJECT, isValidImageUrl, encodeUrl, stringStartsWith, prettifyLabel, deHyphenate, initCaps, getClonedObject, DataSource, debounce, processFilterExpBindNode, isDefined, MatchMode, $parseEvent, isEqualWithFields, getFormattedDate, isAndroid, isNumberType, DataType, setCSS, IDGenerator, toBoolean, isChangeFromWatch, $unwatch, resetChangeFromWatch, isObject as isObject$1, toDimension, $appDigest, removeClass, addClass, setCSSFromObj, App, findParent, setAttr, switchClass, removeAttr, $invokeWatchers, $watch, findValueOf, validateAccessRoles, ComponentType, noop as noop$1, VALIDATOR, isIos, isMobile, hasOffsetStr, AbstractI18nService, CURRENCY_INFO, replace as replace$1, transformFileURI, isLargeTabletLandscape, isLargeTabletPortrait } from '@wm/core';
|
|
3
3
|
import * as i0 from '@angular/core';
|
|
4
4
|
import { InjectionToken, forwardRef, ElementRef, inject, ViewContainerRef, Injector, Injectable, Inject, Optional, Directive, Self, ContentChildren, Attribute, Input, Component, Pipe, SecurityContext } from '@angular/core';
|
|
5
5
|
import { createFocusTrap } from '@wavemaker/focus-trap';
|
|
@@ -190,7 +190,7 @@ const getImageUrl = (urlString, shouldEncode, defaultUrl) => {
|
|
|
190
190
|
urlString = (defaultUrl || 'resources/images/imagelists/default-image.png');
|
|
191
191
|
}
|
|
192
192
|
}
|
|
193
|
-
if (urlString && !_WM_APP_PROJECT.isPreview && !
|
|
193
|
+
if (urlString && !_WM_APP_PROJECT.isPreview && !isValidImageUrl(urlString) && !urlString.startsWith(_WM_APP_PROJECT.cdnUrl) && !urlString.startsWith('services')) {
|
|
194
194
|
urlString = (_WM_APP_PROJECT.cdnUrl || '') + urlString;
|
|
195
195
|
}
|
|
196
196
|
urlString = shouldEncode ? encodeUrl(urlString) : urlString;
|
|
@@ -4315,14 +4315,14 @@ class ToDatePipe extends WmPipe {
|
|
|
4315
4315
|
}
|
|
4316
4316
|
return this.returnFn('', arguments, this.app.Variables);
|
|
4317
4317
|
}
|
|
4318
|
-
constructor(datePipe, i18nService, customPipeManager) {
|
|
4318
|
+
constructor(datePipe, i18nService, app, customPipeManager) {
|
|
4319
4319
|
super('toDate', customPipeManager);
|
|
4320
4320
|
this.datePipe = datePipe;
|
|
4321
4321
|
this.i18nService = i18nService;
|
|
4322
|
+
this.app = app;
|
|
4322
4323
|
this.customPipeManager = customPipeManager;
|
|
4323
|
-
this.app = inject(App);
|
|
4324
4324
|
}
|
|
4325
|
-
static { this.ɵfac = function ToDatePipe_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || ToDatePipe)(i0.ɵɵdirectiveInject(i1$1.DatePipe, 16), i0.ɵɵdirectiveInject(i1.AbstractI18nService, 16), i0.ɵɵdirectiveInject(i1.CustomPipeManager, 16)); }; }
|
|
4325
|
+
static { this.ɵfac = function ToDatePipe_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || ToDatePipe)(i0.ɵɵdirectiveInject(i1$1.DatePipe, 16), i0.ɵɵdirectiveInject(i1.AbstractI18nService, 16), i0.ɵɵdirectiveInject(i1.App, 16), i0.ɵɵdirectiveInject(i1.CustomPipeManager, 16)); }; }
|
|
4326
4326
|
static { this.ɵpipe = /*@__PURE__*/ i0.ɵɵdefinePipe({ name: "toDate", type: ToDatePipe, pure: true, standalone: true }); }
|
|
4327
4327
|
}
|
|
4328
4328
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ToDatePipe, [{
|
|
@@ -4331,7 +4331,7 @@ class ToDatePipe extends WmPipe {
|
|
|
4331
4331
|
standalone: true,
|
|
4332
4332
|
name: 'toDate'
|
|
4333
4333
|
}]
|
|
4334
|
-
}], () => [{ type: i1$1.DatePipe }, { type: i1.AbstractI18nService }, { type: i1.CustomPipeManager }], null); })();
|
|
4334
|
+
}], () => [{ type: i1$1.DatePipe }, { type: i1.AbstractI18nService }, { type: i1.App }, { type: i1.CustomPipeManager }], null); })();
|
|
4335
4335
|
class ToNumberPipe {
|
|
4336
4336
|
transform(data, fracSize) {
|
|
4337
4337
|
if (fracSize && !String(fracSize).match(/^(\d+)?\.((\d+)(-(\d+))?)?$/)) {
|
|
@@ -4419,9 +4419,9 @@ class SuffixPipe {
|
|
|
4419
4419
|
* Custom pipe: It is work as interceptor between the user custom pipe function and angular pipe
|
|
4420
4420
|
*/
|
|
4421
4421
|
class CustomPipe {
|
|
4422
|
-
constructor(custmeUserPipe) {
|
|
4422
|
+
constructor(app, custmeUserPipe) {
|
|
4423
|
+
this.app = app;
|
|
4423
4424
|
this.custmeUserPipe = custmeUserPipe;
|
|
4424
|
-
this.app = inject(App);
|
|
4425
4425
|
}
|
|
4426
4426
|
transform(data, pipename) {
|
|
4427
4427
|
let argumentArr = [];
|
|
@@ -4441,7 +4441,7 @@ class CustomPipe {
|
|
|
4441
4441
|
return data;
|
|
4442
4442
|
}
|
|
4443
4443
|
}
|
|
4444
|
-
static { this.ɵfac = function CustomPipe_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || CustomPipe)(i0.ɵɵdirectiveInject(i1.CustomPipeManager, 16)); }; }
|
|
4444
|
+
static { this.ɵfac = function CustomPipe_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || CustomPipe)(i0.ɵɵdirectiveInject(i1.App, 16), i0.ɵɵdirectiveInject(i1.CustomPipeManager, 16)); }; }
|
|
4445
4445
|
static { this.ɵpipe = /*@__PURE__*/ i0.ɵɵdefinePipe({ name: "custom", type: CustomPipe, pure: true, standalone: true }); }
|
|
4446
4446
|
}
|
|
4447
4447
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CustomPipe, [{
|
|
@@ -4450,7 +4450,7 @@ class CustomPipe {
|
|
|
4450
4450
|
standalone: true,
|
|
4451
4451
|
name: 'custom'
|
|
4452
4452
|
}]
|
|
4453
|
-
}], () => [{ type: i1.CustomPipeManager }], null); })();
|
|
4453
|
+
}], () => [{ type: i1.App }, { type: i1.CustomPipeManager }], null); })();
|
|
4454
4454
|
class TimeFromNowPipe {
|
|
4455
4455
|
transform(data) {
|
|
4456
4456
|
let timestamp;
|