@wavemaker/app-ng-runtime 11.5.2-next.140998 → 11.5.2-next.141004
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.
- app-ng-runtime/build-task/bundles/index.umd.js +1 -1
- app-ng-runtime/build-task/esm2020/data/form/form-field/form-field.build.mjs +2 -2
- app-ng-runtime/build-task/fesm2015/index.mjs +1 -1
- app-ng-runtime/build-task/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/build-task/fesm2020/index.mjs +1 -1
- app-ng-runtime/build-task/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/base/bundles/index.umd.js +40 -10
- app-ng-runtime/components/base/esm2020/pipes/custom-pipes.mjs +24 -11
- app-ng-runtime/components/base/esm2020/pipes/wm-pipe.mjs +17 -0
- app-ng-runtime/components/base/esm2020/widgets/common/partial/partial.directive.mjs +2 -1
- app-ng-runtime/components/base/fesm2015/index.mjs +40 -10
- app-ng-runtime/components/base/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/base/fesm2020/index.mjs +40 -10
- app-ng-runtime/components/base/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/base/pipes/custom-pipes.d.ts +5 -2
- app-ng-runtime/components/base/pipes/wm-pipe.d.ts +9 -0
- app-ng-runtime/components/chart/bundles/index.umd.js +54 -35
- app-ng-runtime/components/chart/esm2020/chart.component.mjs +8 -6
- app-ng-runtime/components/chart/esm2020/chart.utils.mjs +50 -13
- app-ng-runtime/components/chart/fesm2015/index.mjs +56 -17
- app-ng-runtime/components/chart/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/chart/fesm2020/index.mjs +56 -17
- app-ng-runtime/components/chart/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/containers/wizard/bundles/index.umd.js +14 -3
- app-ng-runtime/components/containers/wizard/esm2020/wizard.component.mjs +13 -4
- app-ng-runtime/components/containers/wizard/esm2020/wizard.props.mjs +2 -1
- app-ng-runtime/components/containers/wizard/fesm2015/index.mjs +14 -3
- app-ng-runtime/components/containers/wizard/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/containers/wizard/fesm2020/index.mjs +13 -3
- app-ng-runtime/components/containers/wizard/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/containers/wizard/wizard.component.d.ts +2 -0
- app-ng-runtime/components/data/form/bundles/index.umd.js +41 -27
- app-ng-runtime/components/data/form/esm2020/form-field/form-field.directive.mjs +28 -19
- app-ng-runtime/components/data/form/esm2020/form.component.mjs +19 -7
- app-ng-runtime/components/data/form/fesm2015/index.mjs +45 -27
- app-ng-runtime/components/data/form/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/data/form/fesm2020/index.mjs +45 -24
- app-ng-runtime/components/data/form/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/data/form/form-field/form-field.directive.d.ts +2 -0
- app-ng-runtime/components/data/table/bundles/index.umd.js +3 -2
- app-ng-runtime/components/data/table/esm2020/table.component.mjs +4 -3
- app-ng-runtime/components/data/table/fesm2015/index.mjs +3 -2
- app-ng-runtime/components/data/table/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/data/table/fesm2020/index.mjs +3 -2
- app-ng-runtime/components/data/table/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/data/table/table.component.d.ts +1 -1
- app-ng-runtime/components/input/default/bundles/index.umd.js +231 -192
- app-ng-runtime/components/input/default/esm2020/caption-position.directive.mjs +2 -2
- app-ng-runtime/components/input/default/esm2020/number/number.component.mjs +7 -6
- app-ng-runtime/components/input/default/esm2020/number/number.props.mjs +4 -2
- app-ng-runtime/components/input/default/esm2020/select/select.component.mjs +58 -35
- app-ng-runtime/components/input/default/esm2020/text/calendar/input-calendar.component.mjs +7 -6
- app-ng-runtime/components/input/default/esm2020/text/calendar/input-calendar.props.mjs +4 -2
- app-ng-runtime/components/input/default/esm2020/text/color/input-color.component.mjs +7 -6
- app-ng-runtime/components/input/default/esm2020/text/color/input-color.props.mjs +4 -2
- app-ng-runtime/components/input/default/esm2020/text/email/input-email.component.mjs +7 -6
- app-ng-runtime/components/input/default/esm2020/text/email/input-email.props.mjs +4 -2
- app-ng-runtime/components/input/default/esm2020/text/number/input-number.component.mjs +5 -5
- app-ng-runtime/components/input/default/esm2020/text/number/input-number.props.mjs +4 -2
- app-ng-runtime/components/input/default/esm2020/text/text/input-text.component.mjs +8 -7
- app-ng-runtime/components/input/default/esm2020/text/text/input-text.props.mjs +4 -2
- app-ng-runtime/components/input/default/esm2020/textarea/textarea.component.mjs +5 -5
- app-ng-runtime/components/input/default/esm2020/textarea/textarea.props.mjs +3 -1
- app-ng-runtime/components/input/default/fesm2015/index.mjs +113 -74
- app-ng-runtime/components/input/default/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/input/default/fesm2020/index.mjs +110 -74
- app-ng-runtime/components/input/default/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/input/default/number/number.component.d.ts +2 -0
- app-ng-runtime/components/input/default/select/select.component.d.ts +4 -1
- app-ng-runtime/components/input/default/text/calendar/input-calendar.component.d.ts +2 -0
- app-ng-runtime/components/input/default/text/color/input-color.component.d.ts +2 -0
- app-ng-runtime/components/input/default/text/email/input-email.component.d.ts +2 -0
- app-ng-runtime/components/input/default/text/number/input-number.component.d.ts +2 -0
- app-ng-runtime/components/input/default/text/text/input-text.component.d.ts +2 -0
- app-ng-runtime/components/input/default/textarea/textarea.component.d.ts +2 -0
- app-ng-runtime/components/input/epoch/base-date-time.component.d.ts +2 -2
- app-ng-runtime/components/input/epoch/bundles/index.umd.js +50 -25
- app-ng-runtime/components/input/epoch/esm2020/base-date-time.component.mjs +36 -14
- app-ng-runtime/components/input/epoch/esm2020/date/date.component.mjs +5 -5
- app-ng-runtime/components/input/epoch/esm2020/date-time/date-time.component.mjs +6 -5
- app-ng-runtime/components/input/epoch/esm2020/time/time.component.mjs +7 -5
- app-ng-runtime/components/input/epoch/fesm2015/index.mjs +50 -25
- app-ng-runtime/components/input/epoch/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/input/epoch/fesm2020/index.mjs +50 -25
- app-ng-runtime/components/input/epoch/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/navigation/menu/bundles/index.umd.js +15 -5
- app-ng-runtime/components/navigation/menu/esm2020/menu.component.mjs +12 -4
- app-ng-runtime/components/navigation/menu/esm2020/menu.props.mjs +2 -1
- app-ng-runtime/components/navigation/menu/esm2020/nav/nav.component.mjs +3 -3
- app-ng-runtime/components/navigation/menu/esm2020/nav/nav.props.mjs +2 -1
- app-ng-runtime/components/navigation/menu/fesm2015/index.mjs +15 -5
- app-ng-runtime/components/navigation/menu/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/navigation/menu/fesm2020/index.mjs +15 -5
- app-ng-runtime/components/navigation/menu/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/navigation/menu/menu.component.d.ts +3 -0
- app-ng-runtime/components/navigation/menu/nav/nav.component.d.ts +1 -0
- app-ng-runtime/components/navigation/popover/bundles/index.umd.js +2 -1
- app-ng-runtime/components/navigation/popover/esm2020/popover.component.mjs +3 -2
- app-ng-runtime/components/navigation/popover/fesm2015/index.mjs +2 -1
- app-ng-runtime/components/navigation/popover/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/navigation/popover/fesm2020/index.mjs +2 -1
- app-ng-runtime/components/navigation/popover/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/prefab/bundles/index.umd.js +1 -0
- app-ng-runtime/components/prefab/esm2020/prefab-container/prefab-container.directive.mjs +2 -1
- app-ng-runtime/components/prefab/fesm2015/index.mjs +1 -0
- app-ng-runtime/components/prefab/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/prefab/fesm2020/index.mjs +1 -0
- app-ng-runtime/components/prefab/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/core/bundles/index.umd.js +2 -1
- app-ng-runtime/core/esm2020/utils/utils.mjs +3 -2
- app-ng-runtime/core/fesm2015/index.mjs +2 -1
- app-ng-runtime/core/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/core/fesm2020/index.mjs +2 -1
- app-ng-runtime/core/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/package.json +1 -1
- app-ng-runtime/runtime/base/bundles/index.umd.js +26 -1
- app-ng-runtime/runtime/base/components/base-page.component.d.ts +1 -0
- app-ng-runtime/runtime/base/esm2020/components/base-page.component.mjs +26 -1
- app-ng-runtime/runtime/base/esm2020/services/pipe-provider.service.mjs +2 -2
- app-ng-runtime/runtime/base/fesm2015/index.mjs +26 -1
- app-ng-runtime/runtime/base/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/runtime/base/fesm2020/index.mjs +26 -1
- app-ng-runtime/runtime/base/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/scripts/@wavemaker/nvd3/build/nv.d3.min.js +1 -0
- app-ng-runtime/scripts/d3/d3.min.js +2 -5
- app-ng-runtime/scripts/datatable/datatable.js +3 -3
- app-ng-runtime/scripts/@wavemaker.com/nvd3/build/nv.d3.min.js +0 -13
|
@@ -1855,6 +1855,7 @@ class PartialDirective extends StylableComponent {
|
|
|
1855
1855
|
}
|
|
1856
1856
|
ngOnDestroy() {
|
|
1857
1857
|
this.callback('destroy');
|
|
1858
|
+
super.ngOnDestroy();
|
|
1858
1859
|
}
|
|
1859
1860
|
}
|
|
1860
1861
|
PartialDirective.initializeProps = registerProps();
|
|
@@ -2328,6 +2329,23 @@ TextContentDirective.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: TextCo
|
|
|
2328
2329
|
type: Input
|
|
2329
2330
|
}] }); })();
|
|
2330
2331
|
|
|
2332
|
+
class WmPipe {
|
|
2333
|
+
constructor(pipeName, customPipeManager) {
|
|
2334
|
+
this.pipeName = pipeName;
|
|
2335
|
+
this.customPipeManager = customPipeManager;
|
|
2336
|
+
this.pipeRef = this.customPipeManager ? this.customPipeManager.getCustomPipe(pipeName) : null;
|
|
2337
|
+
this.isCustomPipe = this.pipeRef && _.isFunction(this.pipeRef.formatter);
|
|
2338
|
+
}
|
|
2339
|
+
customFormatter(data, args) {
|
|
2340
|
+
try {
|
|
2341
|
+
return this.pipeRef.formatter(...args);
|
|
2342
|
+
}
|
|
2343
|
+
catch (error) {
|
|
2344
|
+
return data;
|
|
2345
|
+
}
|
|
2346
|
+
}
|
|
2347
|
+
}
|
|
2348
|
+
|
|
2331
2349
|
const getEpochValue = data => {
|
|
2332
2350
|
let epoch;
|
|
2333
2351
|
// For data in form of string number ('123'), convert to number (123). And don't parse date objects.
|
|
@@ -2356,23 +2374,33 @@ TrailingZeroDecimalPipe.ɵpipe = /*@__PURE__*/ i0.ɵɵdefinePipe({ name: "traili
|
|
|
2356
2374
|
name: 'trailingZeroDecimalPipe'
|
|
2357
2375
|
}]
|
|
2358
2376
|
}], function () { return [{ type: i1$1.DecimalPipe }]; }, null); })();
|
|
2359
|
-
class ToDatePipe {
|
|
2377
|
+
class ToDatePipe extends WmPipe {
|
|
2378
|
+
// This method calls the custom formatter fn after applying the exisitng date pattern
|
|
2379
|
+
returnFn(data, args) {
|
|
2380
|
+
if (this.isCustomPipe) {
|
|
2381
|
+
if (args) {
|
|
2382
|
+
args[0] = data;
|
|
2383
|
+
}
|
|
2384
|
+
return this.customFormatter(data, args);
|
|
2385
|
+
}
|
|
2386
|
+
return data;
|
|
2387
|
+
}
|
|
2360
2388
|
transform(data, format, timezone, compInstance) {
|
|
2361
2389
|
let timestamp;
|
|
2362
2390
|
// 'null' is to be treated as a special case, If user wants to enter null value, empty string will be passed to the backend
|
|
2363
2391
|
if (data === 'null' || data === '') {
|
|
2364
|
-
return '';
|
|
2392
|
+
return this.returnFn('', arguments);
|
|
2365
2393
|
}
|
|
2366
2394
|
if (!isDefined(data)) {
|
|
2367
|
-
return '';
|
|
2395
|
+
return this.returnFn('', arguments);
|
|
2368
2396
|
}
|
|
2369
2397
|
timestamp = getEpochValue(data);
|
|
2370
2398
|
if (timestamp) {
|
|
2371
2399
|
if (format === 'timestamp') {
|
|
2372
|
-
return timestamp;
|
|
2400
|
+
return this.returnFn(timestamp, arguments);
|
|
2373
2401
|
}
|
|
2374
2402
|
if (format === 'UTC') {
|
|
2375
|
-
return new Date(timestamp).toISOString();
|
|
2403
|
+
return this.returnFn(new Date(timestamp).toISOString(), arguments);
|
|
2376
2404
|
}
|
|
2377
2405
|
let formattedVal;
|
|
2378
2406
|
const timeZone = this.i18nService ? this.i18nService.getTimezone(compInstance) : timezone;
|
|
@@ -2382,23 +2410,25 @@ class ToDatePipe {
|
|
|
2382
2410
|
else {
|
|
2383
2411
|
formattedVal = this.datePipe.transform(timestamp, format);
|
|
2384
2412
|
}
|
|
2385
|
-
return formattedVal;
|
|
2413
|
+
return this.returnFn(formattedVal, arguments);
|
|
2386
2414
|
}
|
|
2387
|
-
return '';
|
|
2415
|
+
return this.returnFn('', arguments);
|
|
2388
2416
|
}
|
|
2389
|
-
constructor(datePipe, i18nService) {
|
|
2417
|
+
constructor(datePipe, i18nService, customPipeManager) {
|
|
2418
|
+
super('toDate', customPipeManager);
|
|
2390
2419
|
this.datePipe = datePipe;
|
|
2391
2420
|
this.i18nService = i18nService;
|
|
2421
|
+
this.customPipeManager = customPipeManager;
|
|
2392
2422
|
}
|
|
2393
2423
|
}
|
|
2394
|
-
ToDatePipe.ɵfac = function ToDatePipe_Factory(t) { return new (t || ToDatePipe)(i0.ɵɵdirectiveInject(i1$1.DatePipe, 16), i0.ɵɵdirectiveInject(i1.AbstractI18nService, 16)); };
|
|
2424
|
+
ToDatePipe.ɵfac = function ToDatePipe_Factory(t) { return new (t || ToDatePipe)(i0.ɵɵdirectiveInject(i1$1.DatePipe, 16), i0.ɵɵdirectiveInject(i1.AbstractI18nService, 16), i0.ɵɵdirectiveInject(i1.CustomPipeManager, 16)); };
|
|
2395
2425
|
ToDatePipe.ɵpipe = /*@__PURE__*/ i0.ɵɵdefinePipe({ name: "toDate", type: ToDatePipe, pure: true });
|
|
2396
2426
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ToDatePipe, [{
|
|
2397
2427
|
type: Pipe,
|
|
2398
2428
|
args: [{
|
|
2399
2429
|
name: 'toDate'
|
|
2400
2430
|
}]
|
|
2401
|
-
}], function () { return [{ type: i1$1.DatePipe }, { type: i1.AbstractI18nService }]; }, null); })();
|
|
2431
|
+
}], function () { return [{ type: i1$1.DatePipe }, { type: i1.AbstractI18nService }, { type: i1.CustomPipeManager }]; }, null); })();
|
|
2402
2432
|
class ToNumberPipe {
|
|
2403
2433
|
transform(data, fracSize) {
|
|
2404
2434
|
if (fracSize && !String(fracSize).match(/^(\d+)?\.((\d+)(-(\d+))?)?$/)) {
|