@wavemaker/app-ng-runtime 11.8.0-next.141688 → 11.8.0-next.141689
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/build-task/bundles/index.umd.js +4 -4
- package/build-task/esm2022/advanced/carousel/carousel-template/carousel-template.build.mjs +3 -3
- package/build-task/esm2022/containers/repeat-template.build.mjs +3 -3
- package/build-task/fesm2022/index.mjs +4 -4
- package/build-task/fesm2022/index.mjs.map +1 -1
- package/components/advanced/carousel/bundles/index.umd.js +3 -2
- package/components/advanced/carousel/carousel-template/carousel-template.directive.d.ts +1 -1
- package/components/advanced/carousel/esm2022/carousel-template/carousel-template.directive.mjs +4 -3
- package/components/advanced/carousel/fesm2022/index.mjs +3 -2
- package/components/advanced/carousel/fesm2022/index.mjs.map +1 -1
- package/components/base/bundles/index.umd.js +45 -32
- package/components/base/directives/show-in-device.directive.d.ts +3 -6
- package/components/base/esm2022/directives/show-in-device.directive.mjs +12 -14
- package/components/base/esm2022/public_api.mjs +2 -1
- package/components/base/esm2022/widgets/common/base/base-field-validations.mjs +5 -7
- package/components/base/esm2022/widgets/common/base/base.component.mjs +22 -15
- package/components/base/esm2022/widgets/common/lazy-load/lazy-load.directive.mjs +13 -6
- package/components/base/esm2022/widgets/common/repeat-template/repeat-template.directive.mjs +4 -3
- package/components/base/fesm2022/index.mjs +45 -33
- package/components/base/fesm2022/index.mjs.map +1 -1
- package/components/base/public_api.d.ts +1 -0
- package/components/base/widgets/common/base/base.component.d.ts +18 -1
- package/components/base/widgets/common/lazy-load/lazy-load.directive.d.ts +2 -2
- package/components/base/widgets/common/repeat-template/repeat-template.directive.d.ts +1 -1
- package/components/basic/search/bundles/index.umd.js +10 -9
- package/components/basic/search/esm2022/search.component.mjs +11 -10
- package/components/basic/search/fesm2022/index.mjs +10 -9
- package/components/basic/search/fesm2022/index.mjs.map +1 -1
- package/components/data/form/bundles/index.umd.js +1 -1
- package/components/data/form/esm2022/form.component.mjs +2 -2
- package/components/data/form/fesm2022/index.mjs +1 -1
- package/components/data/form/fesm2022/index.mjs.map +1 -1
- package/components/data/list/bundles/index.umd.js +10 -7
- package/components/data/list/esm2022/list-item.directive.mjs +6 -1
- package/components/data/list/esm2022/list.component.mjs +7 -8
- package/components/data/list/fesm2022/index.mjs +11 -8
- package/components/data/list/fesm2022/index.mjs.map +1 -1
- package/components/data/list/list-item.directive.d.ts +4 -0
- package/components/data/pagination/bundles/index.umd.js +10 -9
- package/components/data/pagination/esm2022/pagination.component.mjs +11 -10
- package/components/data/pagination/fesm2022/index.mjs +10 -9
- package/components/data/pagination/fesm2022/index.mjs.map +1 -1
- package/components/data/table/bundles/index.umd.js +3 -1
- package/components/data/table/esm2022/table.component.mjs +4 -2
- package/components/data/table/fesm2022/index.mjs +3 -1
- package/components/data/table/fesm2022/index.mjs.map +1 -1
- package/components/input/color-picker/bundles/index.umd.js +2 -2
- package/components/input/color-picker/esm2022/color-picker.component.mjs +3 -3
- package/components/input/color-picker/fesm2022/index.mjs +2 -2
- package/components/input/color-picker/fesm2022/index.mjs.map +1 -1
- package/components/input/default/bundles/index.umd.js +37 -32
- package/components/input/default/esm2022/checkbox/checkbox.component.mjs +6 -5
- package/components/input/default/esm2022/select/select.component.mjs +6 -5
- package/components/input/default/esm2022/text/base/base-input.mjs +3 -2
- package/components/input/default/esm2022/text/calendar/input-calendar.component.mjs +5 -4
- package/components/input/default/esm2022/text/color/input-color.component.mjs +5 -4
- package/components/input/default/fesm2022/index.mjs +37 -32
- package/components/input/default/fesm2022/index.mjs.map +1 -1
- package/components/input/default/text/base/base-input.d.ts +1 -0
- package/components/input/epoch/bundles/index.umd.js +13 -11
- package/components/input/epoch/esm2022/date/date.component.mjs +2 -2
- package/components/input/epoch/esm2022/date-time/date-time.component.mjs +6 -5
- package/components/input/epoch/esm2022/time/time.component.mjs +6 -5
- package/components/input/epoch/fesm2022/index.mjs +13 -11
- package/components/input/epoch/fesm2022/index.mjs.map +1 -1
- package/components/input/rating/bundles/index.umd.js +12 -10
- package/components/input/rating/esm2022/rating.component.mjs +13 -11
- package/components/input/rating/fesm2022/index.mjs +12 -10
- package/components/input/rating/fesm2022/index.mjs.map +1 -1
- package/components/input/slider/bundles/index.umd.js +4 -3
- package/components/input/slider/esm2022/slider.component.mjs +5 -4
- package/components/input/slider/fesm2022/index.mjs +4 -3
- package/components/input/slider/fesm2022/index.mjs.map +1 -1
- package/components/navigation/menu/bundles/index.umd.js +10 -12
- package/components/navigation/menu/esm2022/menu.module.mjs +3 -2
- package/components/navigation/menu/esm2022/nav/nav-item/nav-item.directive.mjs +3 -2
- package/components/navigation/menu/esm2022/nav/nav.component.mjs +8 -12
- package/components/navigation/menu/fesm2022/index.mjs +11 -13
- package/components/navigation/menu/fesm2022/index.mjs.map +1 -1
- package/components/navigation/menu/nav/nav-item/nav-item.directive.d.ts +1 -1
- package/components/navigation/menu/nav/nav.component.d.ts +1 -2
- package/core/bundles/index.umd.js +23 -0
- package/core/esm2022/public_api.mjs +2 -1
- package/core/esm2022/services/custom-icons-loader.service.mjs +26 -0
- package/core/fesm2022/index.mjs +25 -3
- package/core/fesm2022/index.mjs.map +1 -1
- package/core/public_api.d.ts +1 -0
- package/core/services/custom-icons-loader.service.d.ts +7 -0
- package/package-lock.json +2 -2
- package/package.json +1 -1
- package/runtime/base/bundles/index.umd.js +19 -8
- package/runtime/base/components/app-component/app.component.d.ts +3 -1
- package/runtime/base/directives/accessroles.directive.d.ts +4 -3
- package/runtime/base/esm2022/components/app-component/app.component.mjs +9 -5
- package/runtime/base/esm2022/directives/accessroles.directive.mjs +14 -7
- package/runtime/base/esm2022/services/i18n.service.mjs +2 -2
- package/runtime/base/fesm2022/index.mjs +20 -9
- package/runtime/base/fesm2022/index.mjs.map +1 -1
- package/scripts/datatable/datatable.js +1 -1
package/components/base/esm2022/widgets/common/repeat-template/repeat-template.directive.mjs
CHANGED
|
@@ -15,12 +15,13 @@ export class RepeatTemplateDirective extends StylableComponent {
|
|
|
15
15
|
styler(this.nativeElement, this);
|
|
16
16
|
}
|
|
17
17
|
static { this.ɵfac = function RepeatTemplateDirective_Factory(t) { return new (t || RepeatTemplateDirective)(i0.ɵɵdirectiveInject(i0.Injector), i0.ɵɵdirectiveInject('EXPLICIT_CONTEXT', 8)); }; }
|
|
18
|
-
static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: RepeatTemplateDirective, selectors: [["", "wmRepeatTemplate", ""]], features: [i0.ɵɵInheritDefinitionFeature] }); }
|
|
18
|
+
static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: RepeatTemplateDirective, selectors: [["", "wmRepeatTemplate", ""]], exportAs: ["repeatItemRef"], features: [i0.ɵɵInheritDefinitionFeature] }); }
|
|
19
19
|
}
|
|
20
20
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(RepeatTemplateDirective, [{
|
|
21
21
|
type: Directive,
|
|
22
22
|
args: [{
|
|
23
|
-
selector: '[wmRepeatTemplate]'
|
|
23
|
+
selector: '[wmRepeatTemplate]',
|
|
24
|
+
exportAs: 'repeatItemRef'
|
|
24
25
|
}]
|
|
25
26
|
}], () => [{ type: i0.Injector }, { type: undefined, decorators: [{
|
|
26
27
|
type: Inject,
|
|
@@ -28,4 +29,4 @@ export class RepeatTemplateDirective extends StylableComponent {
|
|
|
28
29
|
}, {
|
|
29
30
|
type: Optional
|
|
30
31
|
}] }], null); })();
|
|
31
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
32
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVwZWF0LXRlbXBsYXRlLmRpcmVjdGl2ZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2NvbXBvbmVudHMvYmFzZS9zcmMvd2lkZ2V0cy9jb21tb24vcmVwZWF0LXRlbXBsYXRlL3JlcGV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1lbnQsIHRoaXMpO1xuICAgIH1cbn1cbiJdfQ==
|
|
@@ -1005,6 +1005,7 @@ class BaseComponent {
|
|
|
1005
1005
|
addClass(this.nativeElement, config.hostClass);
|
|
1006
1006
|
}
|
|
1007
1007
|
this.widgetId = this.generateWidgetId();
|
|
1008
|
+
this.trackId = this.generateWidgetId();
|
|
1008
1009
|
setAttr(this.nativeElement, 'widget-id', this.widgetId, true);
|
|
1009
1010
|
// register default property change handler and style change handler
|
|
1010
1011
|
this.registerStyleChangeListener(this.onStyleChange, this);
|
|
@@ -1437,21 +1438,27 @@ class BaseComponent {
|
|
|
1437
1438
|
unmute() {
|
|
1438
1439
|
this.isMuted = false;
|
|
1439
1440
|
}
|
|
1441
|
+
/**
|
|
1442
|
+
* After the Angular 17 upgrade, Angular is no longer sending ngTemplateContext to components in ng-template.
|
|
1443
|
+
* Wavemaker widgets inside ng-template require context to evaluate bind expressions.
|
|
1444
|
+
* So we're creating an injectionToken that returns the context as a value.
|
|
1445
|
+
* We are passing the injectionToken to the ngTemplateOutletInjector.
|
|
1446
|
+
* This injects the context into each widget in the ng-template.
|
|
1447
|
+
* In the widget component constructor we are getting the injectionToken using dependency injection.
|
|
1448
|
+
* If injectionToken is present, we extend the component context with the value of injectionToken.
|
|
1449
|
+
* @param contextKey
|
|
1450
|
+
* @param context
|
|
1451
|
+
* @returns injector
|
|
1452
|
+
*/
|
|
1440
1453
|
createCustomInjector(contextKey, context) {
|
|
1441
1454
|
if (this.customInjectorMap[contextKey]) {
|
|
1442
|
-
|
|
1443
|
-
return this.customInjectorMap[contextKey].injector;
|
|
1444
|
-
}
|
|
1445
|
-
delete this.customInjectorMap[contextKey];
|
|
1455
|
+
return this.customInjectorMap[contextKey].injector;
|
|
1446
1456
|
}
|
|
1447
|
-
const
|
|
1448
|
-
providers: [{ provide: 'EXPLICIT_CONTEXT',
|
|
1457
|
+
const injector = Injector.create({
|
|
1458
|
+
providers: [{ provide: 'EXPLICIT_CONTEXT', useFactory: () => context }]
|
|
1449
1459
|
});
|
|
1450
|
-
this.customInjectorMap[contextKey] = {
|
|
1451
|
-
|
|
1452
|
-
injector: inj
|
|
1453
|
-
};
|
|
1454
|
-
return inj;
|
|
1460
|
+
this.customInjectorMap[contextKey] = { context, injector };
|
|
1461
|
+
return injector;
|
|
1455
1462
|
}
|
|
1456
1463
|
/**
|
|
1457
1464
|
* After the host page is attached from cache, this function is called.
|
|
@@ -1720,12 +1727,13 @@ class RepeatTemplateDirective extends StylableComponent {
|
|
|
1720
1727
|
styler(this.nativeElement, this);
|
|
1721
1728
|
}
|
|
1722
1729
|
static { this.ɵfac = function RepeatTemplateDirective_Factory(t) { return new (t || RepeatTemplateDirective)(i0.ɵɵdirectiveInject(i0.Injector), i0.ɵɵdirectiveInject('EXPLICIT_CONTEXT', 8)); }; }
|
|
1723
|
-
static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: RepeatTemplateDirective, selectors: [["", "wmRepeatTemplate", ""]], features: [i0.ɵɵInheritDefinitionFeature] }); }
|
|
1730
|
+
static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: RepeatTemplateDirective, selectors: [["", "wmRepeatTemplate", ""]], exportAs: ["repeatItemRef"], features: [i0.ɵɵInheritDefinitionFeature] }); }
|
|
1724
1731
|
}
|
|
1725
1732
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(RepeatTemplateDirective, [{
|
|
1726
1733
|
type: Directive,
|
|
1727
1734
|
args: [{
|
|
1728
|
-
selector: '[wmRepeatTemplate]'
|
|
1735
|
+
selector: '[wmRepeatTemplate]',
|
|
1736
|
+
exportAs: 'repeatItemRef'
|
|
1729
1737
|
}]
|
|
1730
1738
|
}], () => [{ type: i0.Injector }, { type: undefined, decorators: [{
|
|
1731
1739
|
type: Inject,
|
|
@@ -1735,14 +1743,15 @@ class RepeatTemplateDirective extends StylableComponent {
|
|
|
1735
1743
|
}] }], null); })();
|
|
1736
1744
|
|
|
1737
1745
|
class LazyLoadDirective {
|
|
1738
|
-
constructor(inj, templateRef, viewContainer) {
|
|
1746
|
+
constructor(inj, templateRef, viewContainer, explicitContext = {}) {
|
|
1739
1747
|
this.templateRef = templateRef;
|
|
1740
1748
|
this.viewContainer = viewContainer;
|
|
1749
|
+
this.context = {};
|
|
1741
1750
|
let viewParentApp = inj ? inj.get(App) : inject(App);
|
|
1742
1751
|
let lView = inj._lView;
|
|
1743
1752
|
this.viewParent = findParent(lView, viewParentApp);
|
|
1744
1753
|
//this.context = (inj as any).view.context;
|
|
1745
|
-
this.context
|
|
1754
|
+
extend(this.context, inj._lView[8], explicitContext);
|
|
1746
1755
|
}
|
|
1747
1756
|
set lazyLoad(expr) {
|
|
1748
1757
|
this.unSubscribeFn = $watch(expr, this.viewParent, this.context, (val) => {
|
|
@@ -1755,7 +1764,7 @@ class LazyLoadDirective {
|
|
|
1755
1764
|
ngOnDestroy() {
|
|
1756
1765
|
this.unSubscribeFn();
|
|
1757
1766
|
}
|
|
1758
|
-
static { this.ɵfac = function LazyLoadDirective_Factory(t) { return new (t || LazyLoadDirective)(i0.ɵɵdirectiveInject(i0.Injector), i0.ɵɵdirectiveInject(i0.TemplateRef), i0.ɵɵdirectiveInject(i0.ViewContainerRef)); }; }
|
|
1767
|
+
static { this.ɵfac = function LazyLoadDirective_Factory(t) { return new (t || LazyLoadDirective)(i0.ɵɵdirectiveInject(i0.Injector), i0.ɵɵdirectiveInject(i0.TemplateRef), i0.ɵɵdirectiveInject(i0.ViewContainerRef), i0.ɵɵdirectiveInject('EXPLICIT_CONTEXT', 8)); }; }
|
|
1759
1768
|
static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: LazyLoadDirective, selectors: [["", "lazyLoad", ""]], inputs: { lazyLoad: "lazyLoad" } }); }
|
|
1760
1769
|
}
|
|
1761
1770
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LazyLoadDirective, [{
|
|
@@ -1763,7 +1772,12 @@ class LazyLoadDirective {
|
|
|
1763
1772
|
args: [{
|
|
1764
1773
|
selector: '[lazyLoad]'
|
|
1765
1774
|
}]
|
|
1766
|
-
}], () => [{ type: i0.Injector }, { type: i0.TemplateRef }, { type: i0.ViewContainerRef }
|
|
1775
|
+
}], () => [{ type: i0.Injector }, { type: i0.TemplateRef }, { type: i0.ViewContainerRef }, { type: undefined, decorators: [{
|
|
1776
|
+
type: Inject,
|
|
1777
|
+
args: ['EXPLICIT_CONTEXT']
|
|
1778
|
+
}, {
|
|
1779
|
+
type: Optional
|
|
1780
|
+
}] }], { lazyLoad: [{
|
|
1767
1781
|
type: Input
|
|
1768
1782
|
}] }); })();
|
|
1769
1783
|
|
|
@@ -2077,13 +2091,11 @@ class PartialContainerDirective {
|
|
|
2077
2091
|
}] }, { type: i0.ComponentFactoryResolver }, { type: i1.PartialRefProvider }], null); })();
|
|
2078
2092
|
|
|
2079
2093
|
class ShowInDeviceDirective {
|
|
2080
|
-
constructor(
|
|
2081
|
-
this.elRef = elRef;
|
|
2082
|
-
this.widget = widget;
|
|
2094
|
+
constructor(viewContainerRef, inj, templateRef, explicitContext) {
|
|
2083
2095
|
this.viewContainerRef = viewContainerRef;
|
|
2084
2096
|
this.templateRef = templateRef;
|
|
2085
|
-
|
|
2086
|
-
this.context
|
|
2097
|
+
this.context = {};
|
|
2098
|
+
extend(this.context, inj._lView[8], explicitContext);
|
|
2087
2099
|
window.addEventListener('resize', this.onResize.bind(this));
|
|
2088
2100
|
}
|
|
2089
2101
|
set wmShowInDevice(devices) {
|
|
@@ -2128,7 +2140,7 @@ class ShowInDeviceDirective {
|
|
|
2128
2140
|
ngOnDestroy() {
|
|
2129
2141
|
window.removeEventListener('resize', this.onResize);
|
|
2130
2142
|
}
|
|
2131
|
-
static { this.ɵfac = function ShowInDeviceDirective_Factory(t) { return new (t || ShowInDeviceDirective)(i0.ɵɵdirectiveInject(i0.
|
|
2143
|
+
static { this.ɵfac = function ShowInDeviceDirective_Factory(t) { return new (t || ShowInDeviceDirective)(i0.ɵɵdirectiveInject(i0.ViewContainerRef), i0.ɵɵdirectiveInject(i0.Injector), i0.ɵɵdirectiveInject(i0.TemplateRef), i0.ɵɵdirectiveInject('EXPLICIT_CONTEXT', 8)); }; }
|
|
2132
2144
|
static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: ShowInDeviceDirective, selectors: [["", "wmShowInDevice", ""]], inputs: { wmShowInDevice: "wmShowInDevice" } }); }
|
|
2133
2145
|
}
|
|
2134
2146
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ShowInDeviceDirective, [{
|
|
@@ -2136,10 +2148,12 @@ class ShowInDeviceDirective {
|
|
|
2136
2148
|
args: [{
|
|
2137
2149
|
selector: '[wmShowInDevice]'
|
|
2138
2150
|
}]
|
|
2139
|
-
}], () => [{ type: i0.
|
|
2151
|
+
}], () => [{ type: i0.ViewContainerRef }, { type: i0.Injector }, { type: i0.TemplateRef }, { type: undefined, decorators: [{
|
|
2140
2152
|
type: Inject,
|
|
2141
|
-
args: [
|
|
2142
|
-
}
|
|
2153
|
+
args: ['EXPLICIT_CONTEXT']
|
|
2154
|
+
}, {
|
|
2155
|
+
type: Optional
|
|
2156
|
+
}] }], { wmShowInDevice: [{
|
|
2143
2157
|
type: Input
|
|
2144
2158
|
}] }); })();
|
|
2145
2159
|
|
|
@@ -4703,9 +4717,8 @@ class BaseFieldValidations {
|
|
|
4703
4717
|
this.instance.validationmessage = get(err, 'errorMessage');
|
|
4704
4718
|
}
|
|
4705
4719
|
else {
|
|
4706
|
-
|
|
4707
|
-
|
|
4708
|
-
this.instance.validationmessage = (err[keys[0]]).toString();
|
|
4720
|
+
const keys$1 = keys(err);
|
|
4721
|
+
this.instance.validationmessage = (err[keys$1[0]]).toString();
|
|
4709
4722
|
}
|
|
4710
4723
|
return err;
|
|
4711
4724
|
}).then(response => {
|
|
@@ -4845,9 +4858,8 @@ class BaseFieldValidations {
|
|
|
4845
4858
|
this.instance.validationmessage = get(fieldErrors, 'errorMessage');
|
|
4846
4859
|
}
|
|
4847
4860
|
else {
|
|
4848
|
-
|
|
4849
|
-
const
|
|
4850
|
-
const key = keys[0];
|
|
4861
|
+
const keys$1 = keys(fieldErrors);
|
|
4862
|
+
const key = keys$1[0];
|
|
4851
4863
|
const validationMsgKey = get(DEFAULT_VALIDATOR, key) || this.formwidget.validateType;
|
|
4852
4864
|
if (validationMsgKey) {
|
|
4853
4865
|
const msg = get(this.defaultValidatorMessages, validationMsgKey) || this.instance.validationmessage;
|
|
@@ -5234,5 +5246,5 @@ const updateDeviceView = (element, isTablet = false) => {
|
|
|
5234
5246
|
* Generated bundle index. Do not edit.
|
|
5235
5247
|
*/
|
|
5236
5248
|
|
|
5237
|
-
export { ALLFIELDS, APPLY_STYLES_TYPE, AUTOCLOSE_TYPE, BaseComponent, BaseContainerComponent, BaseFieldValidations, ContainerDirective, Context, CustomPipe, DEBOUNCE_TIMES, DISPLAY_TYPE, DataSetItem, DatasetAwareNavComponent, DialogRef, DialogServiceImpl, EDIT_MODE, EVENTS_MAP, FileExtensionFromMimePipe, FileIconClassPipe, FileSizePipe, FilterPipe, INPUTMODE, ImagePipe, ItemTemplateDirective, LIVE_CONSTANTS, LazyLoadDirective, Live_Operations, MessageComponent, NAVIGATION_TYPE, NumberToStringPipe, PROP_ANY, PROP_BOOLEAN, PROP_NUMBER, PROP_STRING, PROP_TYPE, PartialContainerDirective, PartialDirective, PartialParamDirective, PartialParamHandlerDirective, PrefixPipe, PullToRefresh, RedrawableDirective, RepeatTemplateDirective, SanitizePipe, ShowInDeviceDirective, SmoothScrollDirective, StateClassPipe, StringToNumberPipe, StylableComponent, SuffixPipe, TextContentDirective, TimeFromNowPipe, ToCurrencyPipe, ToDatePipe, ToNumberPipe, TrailingZeroDecimalPipe, TrustAsPipe, WidgetConfig, WidgetRef, WmComponentsModule, applyFilterOnField, configureDnD, convertDataToObject, createArrayFrom, extractDataAsArray, extractDataSourceName, fetchDistinctValues, fetchRelatedFieldData, filterDate, getBackGroundImageUrl, getConditionalClasses, getContainerTargetClass, getDataTableFilterWidget, getDefaultValue, getDefaultViewModeWidget, getDistinctFieldProperties, getDistinctValues, getDistinctValuesForField, getEditModeWidget, getEmptyMatchMode, getEnableEmptyFilter, getEvaluatedData, getFieldLayoutConfig, getFieldTypeWidgetTypesMap, getImageUrl, getKeyboardFocusableElements, getMatchModeMsgs, getMatchModeTypesMap, getObjValueByKey, getOrderByExpr, getOrderedDataset, getRangeFieldValue, getRangeMatchMode, getRowOperationsColumn, getUniqObjsByDataField, getWatchIdentifier, getWidgetPropsByType, groupData, handleHeaderClick, hasLinkToCurrentPage, interpolateBindExpressions, isActiveNavItem, isBooleanAttr, isDataSetWidget, isDimensionProp, isStyle, parseValueByType, performDataOperation, prepareFieldDefs, propNameCSSKeyMap, provideAs, provideAsDialogRef, provideAsWidgetRef, refreshDataSource, register$1 as register, registerFormWidget, setFocusTrap, setHeaderConfig, setHeaderConfigForTable, setItemByCompare, styler, toggleAllHeaders, transformData, transformDataWithKeys, transformFormData, unsupportedStatePersistenceTypes, updateDeviceView };
|
|
5249
|
+
export { ALLFIELDS, APPLY_STYLES_TYPE, AUTOCLOSE_TYPE, BaseComponent, BaseContainerComponent, BaseFieldValidations, ContainerDirective, Context, CustomPipe, DEBOUNCE_TIMES, DISPLAY_TYPE, DataSetItem, DatasetAwareNavComponent, DialogRef, DialogServiceImpl, EDIT_MODE, EVENTS_MAP, FileExtensionFromMimePipe, FileIconClassPipe, FileSizePipe, FilterPipe, INPUTMODE, ImagePipe, ItemTemplateDirective, LIVE_CONSTANTS, LazyLoadDirective, Live_Operations, MessageComponent, NAVIGATION_TYPE, NumberToStringPipe, PROP_ANY, PROP_BOOLEAN, PROP_NUMBER, PROP_STRING, PROP_TYPE, PartialContainerDirective, PartialDirective, PartialParamDirective, PartialParamHandlerDirective, PrefixPipe, PullToRefresh, RedrawableDirective, RepeatTemplateDirective, SanitizePipe, ShowInDeviceDirective, SmoothScrollDirective, StateClassPipe, StringToNumberPipe, StylableComponent, SuffixPipe, TextContentDirective, TimeFromNowPipe, ToCurrencyPipe, ToDatePipe, ToNumberPipe, TrailingZeroDecimalPipe, TrustAsPipe, WidgetConfig, WidgetRef, WmComponentsModule, applyFilterOnField, configureDnD, convertDataToObject, createArrayFrom, extractDataAsArray, extractDataSourceName, fetchDistinctValues, fetchRelatedFieldData, filterDate, getBackGroundImageUrl, getConditionalClasses, getContainerTargetClass, getDataTableFilterWidget, getDefaultValue, getDefaultViewModeWidget, getDistinctFieldProperties, getDistinctValues, getDistinctValuesForField, getEditModeWidget, getEmptyMatchMode, getEnableEmptyFilter, getEvaluatedData, getFieldLayoutConfig, getFieldTypeWidgetTypesMap, getImageUrl, getKeyboardFocusableElements, getMatchModeMsgs, getMatchModeTypesMap, getObjValueByKey, getOrderByExpr, getOrderedDataset, getRangeFieldValue, getRangeMatchMode, getRowOperationsColumn, getUniqObjsByDataField, getWatchIdentifier, getWidgetPropsByType, groupData, handleHeaderClick, hasLinkToCurrentPage, interpolateBindExpressions, isActiveNavItem, isBooleanAttr, isDataSetWidget, isDimensionProp, isStyle, parseValueByType, performDataOperation, prepareFieldDefs, propNameCSSKeyMap, provideAs, provideAsDialogRef, provideAsWidgetRef, refreshDataSource, register$1 as register, registerFormWidget, setFocusTrap, setHeaderConfig, setHeaderConfigForTable, setItemByCompare, styler, toggleAllHeaders, transformData, transformDataWithKeys, transformFormData, unsupportedStatePersistenceTypes, updateDeviceView, widgetIdGenerator };
|
|
5238
5250
|
//# sourceMappingURL=index.mjs.map
|