@wavemaker/app-ng-runtime 12.0.0-next.141134 → 12.0.0-next.141138
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 +407 -460
- app-ng-runtime/build-task/esm2022/containers/accordion/accordion-pane/accordion-pane.build.mjs +2 -2
- app-ng-runtime/build-task/esm2022/containers/accordion/accordion.build.mjs +3 -3
- app-ng-runtime/build-task/esm2022/containers/wizard/wizard.build.mjs +2 -2
- app-ng-runtime/build-task/esm2022/data/form/form-field/form-field.build.mjs +2 -10
- app-ng-runtime/build-task/esm2022/input/chips/chips.build.mjs +2 -2
- app-ng-runtime/build-task/esm2022/input/file-upload/file-upload.build.mjs +2 -2
- app-ng-runtime/build-task/esm2022/public_api.mjs +1 -3
- app-ng-runtime/build-task/fesm2022/index.mjs +408 -463
- app-ng-runtime/build-task/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/build-task/public_api.d.ts +0 -2
- app-ng-runtime/components/base/bundles/index.umd.js +16 -79
- app-ng-runtime/components/base/components.module.d.ts +11 -12
- app-ng-runtime/components/base/esm2022/components.module.mjs +1 -5
- app-ng-runtime/components/base/esm2022/public_api.mjs +1 -2
- app-ng-runtime/components/base/esm2022/widgets/common/base/base.component.mjs +17 -42
- app-ng-runtime/components/base/esm2022/widgets/framework/property-change-handler.mjs +2 -2
- app-ng-runtime/components/base/fesm2022/index.mjs +18 -80
- app-ng-runtime/components/base/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/base/public_api.d.ts +0 -1
- app-ng-runtime/components/base/widgets/common/base/base-field-validations.d.ts +1 -1
- app-ng-runtime/components/base/widgets/common/base/base.component.d.ts +5 -11
- app-ng-runtime/components/basic/default/audio/audio.component.d.ts +2 -0
- app-ng-runtime/components/basic/default/bundles/index.umd.js +18 -7
- app-ng-runtime/components/basic/default/esm2022/audio/audio.component.mjs +13 -5
- app-ng-runtime/components/basic/default/esm2022/video/video.component.mjs +7 -4
- app-ng-runtime/components/basic/default/fesm2022/index.mjs +18 -7
- app-ng-runtime/components/basic/default/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/basic/default/video/video.component.d.ts +1 -0
- app-ng-runtime/components/basic/progress/bundles/index.umd.js +7 -3
- app-ng-runtime/components/basic/progress/esm2022/progress-bar/progress-bar.component.mjs +8 -4
- app-ng-runtime/components/basic/progress/fesm2022/index.mjs +7 -3
- app-ng-runtime/components/basic/progress/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/basic/progress/progress-bar/progress-bar.component.d.ts +1 -0
- app-ng-runtime/components/basic/search/bundles/index.umd.js +31 -38
- app-ng-runtime/components/basic/search/esm2022/search.component.mjs +31 -35
- app-ng-runtime/components/basic/search/esm2022/search.props.mjs +2 -5
- app-ng-runtime/components/basic/search/fesm2022/index.mjs +31 -38
- app-ng-runtime/components/basic/search/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/basic/search/search.component.d.ts +3 -5
- app-ng-runtime/components/containers/accordion/accordion-pane/accordion-pane.component.d.ts +1 -0
- app-ng-runtime/components/containers/accordion/bundles/index.umd.js +15 -9
- app-ng-runtime/components/containers/accordion/esm2022/accordion-pane/accordion-pane.component.mjs +13 -10
- app-ng-runtime/components/containers/accordion/esm2022/accordion.directive.mjs +4 -1
- app-ng-runtime/components/containers/accordion/fesm2022/index.mjs +15 -9
- app-ng-runtime/components/containers/accordion/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/containers/tabs/bundles/index.umd.js +6 -14
- app-ng-runtime/components/containers/tabs/esm2022/tabs.component.mjs +7 -14
- app-ng-runtime/components/containers/tabs/esm2022/tabs.props.mjs +2 -3
- app-ng-runtime/components/containers/tabs/fesm2022/index.mjs +6 -14
- app-ng-runtime/components/containers/tabs/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/containers/tabs/tabs.component.d.ts +0 -1
- app-ng-runtime/components/containers/wizard/bundles/index.umd.js +6 -6
- app-ng-runtime/components/containers/wizard/esm2022/wizard.component.mjs +7 -7
- app-ng-runtime/components/containers/wizard/fesm2022/index.mjs +6 -6
- app-ng-runtime/components/containers/wizard/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/data/form/bundles/index.umd.js +11 -23
- app-ng-runtime/components/data/form/esm2022/form-field/form-field.directive.mjs +12 -24
- app-ng-runtime/components/data/form/fesm2022/index.mjs +11 -23
- app-ng-runtime/components/data/form/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/data/form/form-field/form-field.directive.d.ts +0 -1
- app-ng-runtime/components/data/list/bundles/index.umd.js +12 -12
- app-ng-runtime/components/data/list/esm2022/list.component.mjs +13 -13
- app-ng-runtime/components/data/list/fesm2022/index.mjs +12 -12
- app-ng-runtime/components/data/list/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/data/table/bundles/index.umd.js +1 -1
- app-ng-runtime/components/data/table/esm2022/table-row/table-row.props.mjs +2 -2
- app-ng-runtime/components/data/table/fesm2022/index.mjs +1 -1
- app-ng-runtime/components/data/table/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/dialogs/default/base-dialog.d.ts +0 -2
- app-ng-runtime/components/dialogs/default/bundles/index.umd.js +6 -17
- app-ng-runtime/components/dialogs/default/esm2022/base-dialog.mjs +1 -1
- app-ng-runtime/components/dialogs/default/esm2022/dialog-body/dialog-body.directive.mjs +2 -14
- app-ng-runtime/components/dialogs/default/esm2022/dialog-header/dialog-header.component.mjs +7 -6
- app-ng-runtime/components/dialogs/default/fesm2022/index.mjs +7 -18
- app-ng-runtime/components/dialogs/default/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/dialogs/design-dialog/bundles/index.umd.js +3 -21
- app-ng-runtime/components/dialogs/design-dialog/dialog.component.d.ts +2 -3
- app-ng-runtime/components/dialogs/design-dialog/esm2022/dialog.component.mjs +4 -22
- app-ng-runtime/components/dialogs/design-dialog/fesm2022/index.mjs +3 -21
- app-ng-runtime/components/dialogs/design-dialog/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/input/chips/bundles/index.umd.js +6 -3
- app-ng-runtime/components/input/chips/esm2022/chips.component.mjs +7 -4
- app-ng-runtime/components/input/chips/fesm2022/index.mjs +6 -3
- app-ng-runtime/components/input/chips/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/input/default/base-form-custom.component.d.ts +1 -2
- app-ng-runtime/components/input/default/bundles/index.umd.js +62 -107
- app-ng-runtime/components/input/default/checkboxset/checkboxset.component.d.ts +0 -1
- app-ng-runtime/components/input/default/dataset-aware-form.component.d.ts +2 -2
- app-ng-runtime/components/input/default/esm2022/base-form-custom.component.mjs +1 -6
- app-ng-runtime/components/input/default/esm2022/checkboxset/checkboxset.component.mjs +5 -10
- app-ng-runtime/components/input/default/esm2022/dataset-aware-form.component.mjs +5 -5
- app-ng-runtime/components/input/default/esm2022/radioset/radioset.component.mjs +5 -10
- app-ng-runtime/components/input/default/esm2022/switch/switch.component.mjs +38 -64
- app-ng-runtime/components/input/default/esm2022/switch/switch.props.mjs +1 -2
- app-ng-runtime/components/input/default/esm2022/text/base/base-input.mjs +1 -4
- app-ng-runtime/components/input/default/fesm2022/index.mjs +62 -107
- app-ng-runtime/components/input/default/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/input/default/radioset/radioset.component.d.ts +0 -1
- app-ng-runtime/components/input/default/switch/switch.component.d.ts +0 -2
- app-ng-runtime/components/input/epoch/base-date-time.component.d.ts +2 -1
- app-ng-runtime/components/input/epoch/bundles/index.umd.js +18 -14
- app-ng-runtime/components/input/epoch/esm2022/base-date-time.component.mjs +10 -6
- app-ng-runtime/components/input/epoch/esm2022/date/date.component.mjs +4 -4
- app-ng-runtime/components/input/epoch/esm2022/date-time/date-time.component.mjs +4 -4
- app-ng-runtime/components/input/epoch/fesm2022/index.mjs +15 -11
- app-ng-runtime/components/input/epoch/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/input/file-upload/bundles/index.umd.js +80 -64
- app-ng-runtime/components/input/file-upload/esm2022/file-upload.component.mjs +80 -65
- app-ng-runtime/components/input/file-upload/esm2022/file-upload.props.mjs +3 -2
- app-ng-runtime/components/input/file-upload/fesm2022/index.mjs +81 -65
- app-ng-runtime/components/input/file-upload/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/input/file-upload/file-upload.component.d.ts +7 -2
- app-ng-runtime/components/input/rating/bundles/index.umd.js +35 -26
- app-ng-runtime/components/input/rating/esm2022/rating.component.mjs +37 -26
- app-ng-runtime/components/input/rating/esm2022/rating.props.mjs +1 -3
- app-ng-runtime/components/input/rating/fesm2022/index.mjs +36 -27
- app-ng-runtime/components/input/rating/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/input/rating/rating.component.d.ts +1 -3
- app-ng-runtime/components/navigation/breadcrumb/bundles/index.umd.js +6 -6
- app-ng-runtime/components/navigation/breadcrumb/esm2022/breadcrumb.component.mjs +7 -7
- app-ng-runtime/components/navigation/breadcrumb/fesm2022/index.mjs +6 -6
- app-ng-runtime/components/navigation/breadcrumb/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/page/left-panel/bundles/index.umd.js +2 -6
- app-ng-runtime/components/page/left-panel/esm2022/left-panel.directive.mjs +5 -9
- app-ng-runtime/components/page/left-panel/fesm2022/index.mjs +4 -8
- app-ng-runtime/components/page/left-panel/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/page/left-panel/left-panel.directive.d.ts +2 -2
- app-ng-runtime/components/page/right-panel/bundles/index.umd.js +2 -6
- app-ng-runtime/components/page/right-panel/esm2022/right-panel.directive.mjs +5 -9
- app-ng-runtime/components/page/right-panel/fesm2022/index.mjs +4 -8
- app-ng-runtime/components/page/right-panel/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/page/right-panel/right-panel.directive.d.ts +2 -2
- app-ng-runtime/core/bundles/index.umd.js +0 -23
- app-ng-runtime/core/enums/enums.d.ts +0 -1
- app-ng-runtime/core/esm2022/enums/enums.mjs +1 -2
- app-ng-runtime/core/esm2022/public_api.mjs +2 -2
- app-ng-runtime/core/esm2022/types/types.mjs +1 -4
- app-ng-runtime/core/esm2022/utils/build-utils.mjs +1 -6
- app-ng-runtime/core/esm2022/utils/utils.mjs +1 -10
- app-ng-runtime/core/fesm2022/index.mjs +1 -21
- app-ng-runtime/core/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/core/public_api.d.ts +1 -1
- app-ng-runtime/core/types/types.d.ts +1 -5
- app-ng-runtime/core/utils/utils.d.ts +0 -2
- app-ng-runtime/locales/moment-timezone/moment-timezone-with-data.js +37 -37
- app-ng-runtime/package.json +1 -1
- app-ng-runtime/runtime/base/bundles/index.umd.js +4 -304
- app-ng-runtime/runtime/base/esm2022/public_api.mjs +1 -2
- app-ng-runtime/runtime/base/esm2022/runtime-base.module.mjs +1 -6
- app-ng-runtime/runtime/base/esm2022/types/types.mjs +1 -4
- app-ng-runtime/runtime/base/fesm2022/index.mjs +3 -302
- app-ng-runtime/runtime/base/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/runtime/base/public_api.d.ts +0 -1
- app-ng-runtime/runtime/base/runtime-base.module.d.ts +8 -9
- app-ng-runtime/runtime/base/services/i18n.service.d.ts +1 -1
- app-ng-runtime/runtime/base/types/types.d.ts +1 -5
- app-ng-runtime/runtime/dynamic/bundles/index.umd.js +13 -49
- app-ng-runtime/runtime/dynamic/esm2022/app/app.module.mjs +3 -8
- app-ng-runtime/runtime/dynamic/esm2022/app/services/component-ref-provider.service.mjs +7 -23
- app-ng-runtime/runtime/dynamic/fesm2022/index.mjs +11 -50
- app-ng-runtime/runtime/dynamic/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/scripts/datatable/datatable.js +23 -30
- app-ng-runtime/transpiler/bundles/index.umd.js +0 -5
- app-ng-runtime/transpiler/esm2022/build.mjs +1 -4
- app-ng-runtime/transpiler/esm2022/imports.mjs +1 -3
- app-ng-runtime/transpiler/fesm2022/index.mjs +0 -5
- app-ng-runtime/transpiler/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/variables/bundles/index.umd.js +34 -16
- app-ng-runtime/variables/esm2022/manager/variable/web-socket-variable.manager.mjs +35 -17
- app-ng-runtime/variables/fesm2022/index.mjs +34 -16
- app-ng-runtime/variables/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/variables/manager/variable/web-socket-variable.manager.d.ts +0 -4
- app-ng-runtime/build-task/advanced/custom-widget-container/custom-widget-container.build.d.ts +0 -2
- app-ng-runtime/build-task/advanced/custom-widget-wrapper/custom-widget-wrapper.build.d.ts +0 -2
- app-ng-runtime/build-task/esm2022/advanced/custom-widget-container/custom-widget-container.build.mjs +0 -15
- app-ng-runtime/build-task/esm2022/advanced/custom-widget-wrapper/custom-widget-wrapper.build.mjs +0 -26
- app-ng-runtime/components/advanced/custom/.npmignore +0 -2
- app-ng-runtime/components/advanced/custom/bundles/index.umd.js +0 -272
- app-ng-runtime/components/advanced/custom/custom-widget-container/custom-widget-container.directive.d.ts +0 -26
- app-ng-runtime/components/advanced/custom/custom-widget-container/custom-widget.props.d.ts +0 -2
- app-ng-runtime/components/advanced/custom/custom-widget-prop.d.ts +0 -1
- app-ng-runtime/components/advanced/custom/custom-widget.directive.d.ts +0 -19
- app-ng-runtime/components/advanced/custom/custom-widget.module.d.ts +0 -10
- app-ng-runtime/components/advanced/custom/esm2022/custom-widget-container/custom-widget-container.directive.mjs +0 -145
- app-ng-runtime/components/advanced/custom/esm2022/custom-widget-container/custom-widget.props.mjs +0 -12
- app-ng-runtime/components/advanced/custom/esm2022/custom-widget-prop.mjs +0 -8
- app-ng-runtime/components/advanced/custom/esm2022/custom-widget.directive.mjs +0 -68
- app-ng-runtime/components/advanced/custom/esm2022/custom-widget.module.mjs +0 -32
- app-ng-runtime/components/advanced/custom/esm2022/index.mjs +0 -5
- app-ng-runtime/components/advanced/custom/esm2022/public_api.mjs +0 -4
- app-ng-runtime/components/advanced/custom/fesm2022/index.mjs +0 -258
- app-ng-runtime/components/advanced/custom/fesm2022/index.mjs.map +0 -1
- app-ng-runtime/components/advanced/custom/index.d.ts +0 -5
- app-ng-runtime/components/advanced/custom/package.json +0 -23
- app-ng-runtime/components/advanced/custom/public_api.d.ts +0 -3
- app-ng-runtime/components/base/esm2022/widgets/common/base/custom-widget-container.directive.mjs +0 -39
- app-ng-runtime/components/base/widgets/common/base/custom-widget-container.directive.d.ts +0 -14
- app-ng-runtime/runtime/base/components/base-custom-widget.component.d.ts +0 -75
- app-ng-runtime/runtime/base/esm2022/components/base-custom-widget.component.mjs +0 -303
- app-ng-runtime/runtime/dynamic/app/services/customwidget-config-provider.service.d.ts +0 -8
- app-ng-runtime/runtime/dynamic/esm2022/app/services/customwidget-config-provider.service.mjs +0 -22
|
@@ -6,7 +6,7 @@ import * as i1 from '@wm/core';
|
|
|
6
6
|
import { FormWidgetType, checkIsCustomPipeExpression, $parseExpr, isValidWebURL, encodeUrl, stringStartsWith, prettifyLabel, deHyphenate, initCaps, getClonedObject, setCSS, isDefined, IDGenerator, toBoolean, isChangeFromWatch, $unwatch, resetChangeFromWatch, isObject as isObject$1, toDimension, $appDigest, removeClass, addClass, setCSSFromObj, App, findParent, setAttr, isMobileApp, switchClass, removeAttr, $parseEvent, $invokeWatchers, $watch, transformFileURI, ComponentType, noop as noop$1, isLargeTabletLandscape, isLargeTabletPortrait, isKitkatDevice, debounce as debounce$1, hasOffsetStr, AbstractI18nService, CURRENCY_INFO, isMobile, AbstractDialogService, DataSource, processFilterExpBindNode, MatchMode, isEqualWithFields, getFormattedDate, isAndroid, isNumberType, DataType, findValueOf, validateAccessRoles, VALIDATOR, isIos } from '@wm/core';
|
|
7
7
|
import { SecurityModule, SecurityService } from '@wm/security';
|
|
8
8
|
import { createFocusTrap } from '@wavemaker/focus-trap';
|
|
9
|
-
import { isNull, get, forEach, join, union, isArray, isObject, includes, split, isString, assignWith, startsWith, isFunction,
|
|
9
|
+
import { isNull, get, forEach, join, union, isArray, isObject, includes, split, isString, assignWith, startsWith, isFunction, extend, camelCase, map, pickBy, assign, debounce, isDate, isUndefined, filter as filter$1, isEmpty, keys, head, replace, each, intersection, cloneDeep, orderBy, trim, isEqual, uniqWith, uniqBy, sortBy, groupBy, toLower, values, first, omitBy, toUpper, find, concat } from 'lodash-es';
|
|
10
10
|
import * as i1$2 from '@angular/platform-browser';
|
|
11
11
|
import { EventManager } from '@angular/platform-browser';
|
|
12
12
|
import { ReplaySubject, Subject } from 'rxjs';
|
|
@@ -782,7 +782,7 @@ const globalPropertyChangeHandler = (component, key, nv) => {
|
|
|
782
782
|
}
|
|
783
783
|
resetChangeFromWatch();
|
|
784
784
|
const widgetProps = getWidgetPropsByType(component.getWidgetSubType());
|
|
785
|
-
const propInfo = widgetProps
|
|
785
|
+
const propInfo = widgetProps.get(key);
|
|
786
786
|
if (propInfo) {
|
|
787
787
|
const type = propInfo.type;
|
|
788
788
|
if (type) {
|
|
@@ -1016,14 +1016,9 @@ class BaseComponent {
|
|
|
1016
1016
|
}
|
|
1017
1017
|
else {
|
|
1018
1018
|
this.delayedInit = true;
|
|
1019
|
-
initPromise.then((
|
|
1020
|
-
let formFieldCW = this.widgetSubType === 'wm-form-field-custom-widget', cw = this.widgetSubType.startsWith('wm-custom-');
|
|
1021
|
-
if (formFieldCW || cw) {
|
|
1022
|
-
this.customWidgetSubType = formFieldCW ? 'wm-form-field-' + last(this["formWidget"].config.widgetType.split('-')) : this["config"].widgetType;
|
|
1023
|
-
}
|
|
1019
|
+
initPromise.then(() => {
|
|
1024
1020
|
this.initWidget();
|
|
1025
1021
|
this.setInitProps();
|
|
1026
|
-
resolveFn && resolveFn();
|
|
1027
1022
|
});
|
|
1028
1023
|
}
|
|
1029
1024
|
if (explicitContext) {
|
|
@@ -1160,11 +1155,6 @@ class BaseComponent {
|
|
|
1160
1155
|
}
|
|
1161
1156
|
else if (key === 'class') {
|
|
1162
1157
|
switchClass(this.nativeElement, nv, ov);
|
|
1163
|
-
let result = nv.match(/(\W|^)(h([0-6]))(?=\s|$)/);
|
|
1164
|
-
if (result) {
|
|
1165
|
-
setAttr(this.nativeElement, 'role', 'heading');
|
|
1166
|
-
setAttr(this.nativeElement, 'aria-level', result[3]);
|
|
1167
|
-
}
|
|
1168
1158
|
}
|
|
1169
1159
|
else if (key === 'name' || key === 'tabindex') {
|
|
1170
1160
|
setAttr(this.nativeElement, key, nv);
|
|
@@ -1233,12 +1223,11 @@ class BaseComponent {
|
|
|
1233
1223
|
* @param {string} eventName
|
|
1234
1224
|
* @param {string} expr
|
|
1235
1225
|
*/
|
|
1236
|
-
processEventAttr(eventName, expr, meta
|
|
1226
|
+
processEventAttr(eventName, expr, meta) {
|
|
1237
1227
|
const fn = $parseEvent(expr);
|
|
1238
1228
|
const locals = this.context;
|
|
1239
|
-
locals.widget =
|
|
1240
|
-
const boundFn = fn.bind(undefined,
|
|
1241
|
-
let widget = child ? child.widget : this, nativeElement = child ? child.nativeElement : this.nativeElement;
|
|
1229
|
+
locals.widget = this.widget;
|
|
1230
|
+
const boundFn = fn.bind(undefined, this.viewParent, locals);
|
|
1242
1231
|
const eventCallback = () => {
|
|
1243
1232
|
let boundFnVal;
|
|
1244
1233
|
$invokeWatchers(true);
|
|
@@ -1258,32 +1247,24 @@ class BaseComponent {
|
|
|
1258
1247
|
console.error(e);
|
|
1259
1248
|
}
|
|
1260
1249
|
};
|
|
1261
|
-
|
|
1262
|
-
child.widget.eventHandlers = new Map();
|
|
1263
|
-
widget.eventHandlers.set(this.getMappedEventName(eventName), { callback: eventCallback, locals });
|
|
1250
|
+
this.eventHandlers.set(this.getMappedEventName(eventName), { callback: eventCallback, locals });
|
|
1264
1251
|
// prepend eventName with on and convert it to camelcase.
|
|
1265
1252
|
// eg, "click" ---> onClick
|
|
1266
1253
|
const onEventName = camelCase(`on-${eventName}`);
|
|
1267
1254
|
// save the eventCallback in widgetScope.
|
|
1268
|
-
|
|
1255
|
+
this[onEventName] = eventCallback;
|
|
1269
1256
|
// events needs to be setup after viewInit
|
|
1270
1257
|
this.toBeSetupEventsQueue.push(() => {
|
|
1271
|
-
this.handleEvent(nativeElement, this.getMappedEventName(eventName), eventCallback, locals, meta);
|
|
1258
|
+
this.handleEvent(this.nativeElement, this.getMappedEventName(eventName), eventCallback, locals, meta);
|
|
1272
1259
|
});
|
|
1273
1260
|
}
|
|
1274
1261
|
/**
|
|
1275
1262
|
* Process the bound property
|
|
1276
1263
|
* Register a watch on the bound expression
|
|
1277
1264
|
*/
|
|
1278
|
-
processBindAttr(propName, expr
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
let viewParent = child ? child.widget.viewParent.viewParent : this.viewParent, context = child ? child.widget.context : this.context, widget = child ? child.widget : this.widget, isMuted = child ? child.widget.isMuted : this.isMuted, widgetProps = child ? child.widget.widgetProps : this.widgetProps, widgetId = child ? child.widget.widgetId : this.widgetId;
|
|
1282
|
-
this.registerDestroyListener($watch(expr, viewParent, context, nv => {
|
|
1283
|
-
if (propName.startsWith('base-') && widget.updateData)
|
|
1284
|
-
widget.updateData(propName, nv);
|
|
1285
|
-
widget[propName] = nv;
|
|
1286
|
-
}, getWatchIdentifier(widgetId, propName), propName === 'datasource', widgetProps.get(propName), () => isMuted));
|
|
1265
|
+
processBindAttr(propName, expr) {
|
|
1266
|
+
this.initState.delete(propName);
|
|
1267
|
+
this.registerDestroyListener($watch(expr, this.viewParent, this.context, nv => this.widget[propName] = nv, getWatchIdentifier(this.widgetId, propName), propName === 'datasource', this.widgetProps.get(propName), () => this.isMuted));
|
|
1287
1268
|
}
|
|
1288
1269
|
/**
|
|
1289
1270
|
* Remove watch on the bound property
|
|
@@ -1312,18 +1293,18 @@ class BaseComponent {
|
|
|
1312
1293
|
* and keep in eventHandlers
|
|
1313
1294
|
* If the attribute is a bound expression, register a watch on the expression
|
|
1314
1295
|
*/
|
|
1315
|
-
processAttr(attrName, attrValue
|
|
1296
|
+
processAttr(attrName, attrValue) {
|
|
1316
1297
|
// console.log("====attrName=====", attrName, "=====typeof attrname=====", typeof attrName, "-----attrValue----", attrValue);
|
|
1317
1298
|
const { 0: propName, 1: type, 2: meta, length } = attrName.split('.');
|
|
1318
1299
|
if (type === 'bind') {
|
|
1319
1300
|
// if the show property is bound, set the initial value to false
|
|
1320
|
-
if (propName === 'show'
|
|
1301
|
+
if (propName === 'show') {
|
|
1321
1302
|
this.nativeElement.hidden = true;
|
|
1322
1303
|
}
|
|
1323
|
-
this.processBindAttr(propName, attrValue
|
|
1304
|
+
this.processBindAttr(propName, attrValue);
|
|
1324
1305
|
}
|
|
1325
|
-
else if (type === 'event'
|
|
1326
|
-
this.processEventAttr(propName, attrValue, meta
|
|
1306
|
+
else if (type === 'event') {
|
|
1307
|
+
this.processEventAttr(propName, attrValue, meta);
|
|
1327
1308
|
}
|
|
1328
1309
|
else if (length === 1) {
|
|
1329
1310
|
// remove class and name attributes. Component will set them on the proper node
|
|
@@ -1391,12 +1372,6 @@ class BaseComponent {
|
|
|
1391
1372
|
this.initState = new Map();
|
|
1392
1373
|
// get the widget properties
|
|
1393
1374
|
const widgetProps = getWidgetPropsByType(this.widgetSubType);
|
|
1394
|
-
if (this.customWidgetSubType) {
|
|
1395
|
-
const customWidgetProps = getWidgetPropsByType(this.customWidgetSubType);
|
|
1396
|
-
customWidgetProps.forEach((v, k) => {
|
|
1397
|
-
widgetProps.set(k, v);
|
|
1398
|
-
});
|
|
1399
|
-
}
|
|
1400
1375
|
widgetProps.forEach((v, k) => {
|
|
1401
1376
|
if (isDefined(v.value)) {
|
|
1402
1377
|
this.initState.set(k, v.value);
|
|
@@ -2110,40 +2085,6 @@ class PartialContainerDirective {
|
|
|
2110
2085
|
args: ['content']
|
|
2111
2086
|
}] }, { type: i0.ComponentFactoryResolver }, { type: i1.PartialRefProvider }], null); })();
|
|
2112
2087
|
|
|
2113
|
-
class CustomWidgetContainerDirective {
|
|
2114
|
-
constructor(componentInstance, vcRef, elRef, inj, app, widgetname, customWidgetRefProvider) {
|
|
2115
|
-
this.componentInstance = componentInstance;
|
|
2116
|
-
this.vcRef = vcRef;
|
|
2117
|
-
this.elRef = elRef;
|
|
2118
|
-
this.inj = inj;
|
|
2119
|
-
this.app = app;
|
|
2120
|
-
this.customWidgetRefProvider = customWidgetRefProvider;
|
|
2121
|
-
const widgetnames = this.componentInstance.widgetname;
|
|
2122
|
-
this.customWidgetRefProvider.getComponentFactoryRef(widgetname, ComponentType.WIDGET).then((componentFactory) => {
|
|
2123
|
-
if (componentFactory) {
|
|
2124
|
-
const instanceRef = this.vcRef.createComponent(componentFactory, 0, this.inj);
|
|
2125
|
-
this.elRef.nativeElement.appendChild(instanceRef.location.nativeElement);
|
|
2126
|
-
}
|
|
2127
|
-
});
|
|
2128
|
-
}
|
|
2129
|
-
static { this.ɵfac = function CustomWidgetContainerDirective_Factory(t) { return new (t || CustomWidgetContainerDirective)(i0.ɵɵdirectiveInject(WidgetRef, 2), i0.ɵɵdirectiveInject(i0.ViewContainerRef), i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i0.Injector), i0.ɵɵdirectiveInject(i1.App), i0.ɵɵinjectAttribute('widgetname'), i0.ɵɵdirectiveInject(i1.CustomWidgetRefProvider)); }; }
|
|
2130
|
-
static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: CustomWidgetContainerDirective, selectors: [["", "customWidgetContainer", "", "widgetname", ""]] }); }
|
|
2131
|
-
}
|
|
2132
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CustomWidgetContainerDirective, [{
|
|
2133
|
-
type: Directive,
|
|
2134
|
-
args: [{
|
|
2135
|
-
selector: '[customWidgetContainer][widgetname]'
|
|
2136
|
-
}]
|
|
2137
|
-
}], () => [{ type: undefined, decorators: [{
|
|
2138
|
-
type: Self
|
|
2139
|
-
}, {
|
|
2140
|
-
type: Inject,
|
|
2141
|
-
args: [WidgetRef]
|
|
2142
|
-
}] }, { type: i0.ViewContainerRef }, { type: i0.ElementRef }, { type: i0.Injector }, { type: i1.App }, { type: undefined, decorators: [{
|
|
2143
|
-
type: Attribute,
|
|
2144
|
-
args: ['widgetname']
|
|
2145
|
-
}] }, { type: i1.CustomWidgetRefProvider }], null); })();
|
|
2146
|
-
|
|
2147
2088
|
class ShowInDeviceDirective {
|
|
2148
2089
|
constructor(viewContainerRef, inj, templateRef, explicitContext) {
|
|
2149
2090
|
this.viewContainerRef = viewContainerRef;
|
|
@@ -3150,7 +3091,6 @@ const wmComponents = [
|
|
|
3150
3091
|
PartialParamHandlerDirective,
|
|
3151
3092
|
PartialParamDirective,
|
|
3152
3093
|
PartialContainerDirective,
|
|
3153
|
-
CustomWidgetContainerDirective,
|
|
3154
3094
|
RedrawableDirective,
|
|
3155
3095
|
ShowInDeviceDirective,
|
|
3156
3096
|
SmoothScrollDirective,
|
|
@@ -3218,7 +3158,6 @@ class WmComponentsModule {
|
|
|
3218
3158
|
PartialParamHandlerDirective,
|
|
3219
3159
|
PartialParamDirective,
|
|
3220
3160
|
PartialContainerDirective,
|
|
3221
|
-
CustomWidgetContainerDirective,
|
|
3222
3161
|
RedrawableDirective,
|
|
3223
3162
|
ShowInDeviceDirective,
|
|
3224
3163
|
SmoothScrollDirective,
|
|
@@ -3249,7 +3188,6 @@ class WmComponentsModule {
|
|
|
3249
3188
|
PartialParamHandlerDirective,
|
|
3250
3189
|
PartialParamDirective,
|
|
3251
3190
|
PartialContainerDirective,
|
|
3252
|
-
CustomWidgetContainerDirective,
|
|
3253
3191
|
RedrawableDirective,
|
|
3254
3192
|
ShowInDeviceDirective,
|
|
3255
3193
|
SmoothScrollDirective,
|
|
@@ -5309,5 +5247,5 @@ const updateDeviceView = (element, isTablet = false) => {
|
|
|
5309
5247
|
* Generated bundle index. Do not edit.
|
|
5310
5248
|
*/
|
|
5311
5249
|
|
|
5312
|
-
export { ALLFIELDS, APPLY_STYLES_TYPE, AUTOCLOSE_TYPE, BaseComponent, BaseContainerComponent, BaseFieldValidations, ContainerDirective, Context, CustomPipe,
|
|
5250
|
+
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 };
|
|
5313
5251
|
//# sourceMappingURL=index.mjs.map
|