@wavemaker/app-ng-runtime 11.5.0-next.24745 → 11.5.0-next.24747
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/components/base/bundles/index.umd.js +23 -9
- app-ng-runtime/components/base/esm2020/widgets/common/base/base-field-validations.mjs +12 -9
- app-ng-runtime/components/base/esm2020/widgets/common/partial-param/partial-param.directive.mjs +13 -2
- app-ng-runtime/components/base/fesm2015/index.mjs +23 -9
- app-ng-runtime/components/base/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/base/fesm2020/index.mjs +23 -9
- app-ng-runtime/components/base/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/base/widgets/common/base/base-field-validations.d.ts +1 -0
- app-ng-runtime/components/base/widgets/common/partial-param/partial-param.directive.d.ts +1 -0
- app-ng-runtime/components/data/list/bundles/index.umd.js +8 -6
- app-ng-runtime/components/data/list/esm2020/list-item.directive.mjs +11 -9
- app-ng-runtime/components/data/list/fesm2015/index.mjs +10 -8
- app-ng-runtime/components/data/list/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/data/list/fesm2020/index.mjs +8 -8
- app-ng-runtime/components/data/list/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/data/list/list-item.directive.d.ts +3 -2
- app-ng-runtime/components/input/default/bundles/index.umd.js +1 -1
- app-ng-runtime/components/input/default/esm2020/base-form-custom.component.mjs +2 -2
- app-ng-runtime/components/input/default/fesm2015/index.mjs +1 -1
- app-ng-runtime/components/input/default/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/input/default/fesm2020/index.mjs +1 -1
- app-ng-runtime/components/input/default/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/core/bundles/index.umd.js +12 -40
- app-ng-runtime/core/esm2020/utils/utils.mjs +12 -40
- app-ng-runtime/core/esm2020/utils/watcher.mjs +2 -2
- app-ng-runtime/core/fesm2015/index.mjs +12 -40
- app-ng-runtime/core/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/core/fesm2020/index.mjs +12 -40
- app-ng-runtime/core/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/core/utils/utils.d.ts +2 -2
- app-ng-runtime/package.json +1 -1
- app-ng-runtime/variables/bundles/index.umd.js +2 -1
- app-ng-runtime/variables/esm2020/service/variables.service.mjs +3 -2
- app-ng-runtime/variables/fesm2015/index.mjs +2 -1
- app-ng-runtime/variables/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/variables/fesm2020/index.mjs +2 -1
- app-ng-runtime/variables/fesm2020/index.mjs.map +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { ViewContainerRef,
|
|
2
|
+
import { ViewContainerRef, Directive, Optional, HostBinding, HostListener, Input, Component, Attribute, ContentChild, ContentChildren, ViewChild, ViewChildren, NgModule } from '@angular/core';
|
|
3
3
|
import * as i1$1 from '@angular/common';
|
|
4
4
|
import { CommonModule } from '@angular/common';
|
|
5
5
|
import * as i1 from '@wm/components/base';
|
|
@@ -7,7 +7,7 @@ import { register, PROP_BOOLEAN, PROP_STRING, PROP_ANY, PROP_NUMBER, StylableCom
|
|
|
7
7
|
import * as i2$1 from '@wm/components/data/pagination';
|
|
8
8
|
import { PaginationComponent, PaginationModule } from '@wm/components/data/pagination';
|
|
9
9
|
import * as i2 from '@wm/core';
|
|
10
|
-
import { isMobileApp,
|
|
10
|
+
import { isMobileApp, $watch, getClonedObject, isDefined, $appDigest, noop, generateGUId, $invokeWatchers, DataSource, isDataSourceEqual, isObject, isMobile, switchClass, setListClass, isNumber } from '@wm/core';
|
|
11
11
|
import { ButtonComponent } from '@wm/components/input';
|
|
12
12
|
import { Subject } from 'rxjs';
|
|
13
13
|
import { SwipeAnimation } from '@swipey';
|
|
@@ -86,9 +86,10 @@ class ListItemDirective {
|
|
|
86
86
|
set wmListItem(val) {
|
|
87
87
|
this.item = val;
|
|
88
88
|
}
|
|
89
|
-
constructor(inj, elRef, app) {
|
|
89
|
+
constructor(inj, elRef, app, _viewParent) {
|
|
90
90
|
this.inj = inj;
|
|
91
91
|
this.app = app;
|
|
92
|
+
this._viewParent = _viewParent;
|
|
92
93
|
this.destroy = new Subject();
|
|
93
94
|
this.destroy$ = this.destroy.asObservable();
|
|
94
95
|
this.itemClass = '';
|
|
@@ -97,9 +98,6 @@ class ListItemDirective {
|
|
|
97
98
|
this.disableItem = false;
|
|
98
99
|
this.viewContainerRef = inj.get(ViewContainerRef);
|
|
99
100
|
this.nativeElement = elRef.nativeElement;
|
|
100
|
-
let viewParentApp = this.inj ? this.inj.get(App) : inject(App);
|
|
101
|
-
let _viewParent = findParent(this.inj._lView, viewParentApp);
|
|
102
|
-
// @ts-ignore
|
|
103
101
|
this.listComponent = _viewParent;
|
|
104
102
|
// this.context = (<NgForOfContext<ListItemDirective>>(<any>inj).view.context);
|
|
105
103
|
this.context = this.inj._lView[8];
|
|
@@ -164,7 +162,7 @@ class ListItemDirective {
|
|
|
164
162
|
this.setUpCUDHandlers();
|
|
165
163
|
}
|
|
166
164
|
}
|
|
167
|
-
ListItemDirective.ɵfac = function ListItemDirective_Factory(t) { return new (t || ListItemDirective)(i0.ɵɵdirectiveInject(i0.Injector), i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i2.App)); };
|
|
165
|
+
ListItemDirective.ɵfac = function ListItemDirective_Factory(t) { return new (t || ListItemDirective)(i0.ɵɵdirectiveInject(i0.Injector), i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i2.App), i0.ɵɵdirectiveInject(ListComponent, 8)); };
|
|
168
166
|
ListItemDirective.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: ListItemDirective, selectors: [["", "wmListItem", ""]], hostVars: 4, hostBindings: function ListItemDirective_HostBindings(rf, ctx) { if (rf & 1) {
|
|
169
167
|
i0.ɵɵlistener("focus", function ListItemDirective_focus_HostBindingHandler() { return ctx.onFocus(); });
|
|
170
168
|
} if (rf & 2) {
|
|
@@ -176,7 +174,9 @@ ListItemDirective.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: ListItemD
|
|
|
176
174
|
selector: '[wmListItem]',
|
|
177
175
|
exportAs: 'listItemRef'
|
|
178
176
|
}]
|
|
179
|
-
}], function () { return [{ type: i0.Injector }, { type: i0.ElementRef }, { type: i2.App }
|
|
177
|
+
}], function () { return [{ type: i0.Injector }, { type: i0.ElementRef }, { type: i2.App }, { type: ListComponent, decorators: [{
|
|
178
|
+
type: Optional
|
|
179
|
+
}] }]; }, { isActive: [{
|
|
180
180
|
type: HostBinding,
|
|
181
181
|
args: ['class.active']
|
|
182
182
|
}], disableItem: [{
|