@wavemaker/app-ng-runtime 12.0.0-next.140535 → 12.0.0-next.141130
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/advanced/custom-widget-container/custom-widget-container.build.d.ts +2 -0
- app-ng-runtime/build-task/advanced/custom-widget-wrapper/custom-widget-wrapper.build.d.ts +2 -0
- app-ng-runtime/build-task/bundles/index.umd.js +451 -405
- app-ng-runtime/build-task/esm2022/advanced/custom-widget-container/custom-widget-container.build.mjs +15 -0
- app-ng-runtime/build-task/esm2022/advanced/custom-widget-wrapper/custom-widget-wrapper.build.mjs +26 -0
- app-ng-runtime/build-task/esm2022/data/form/form-field/form-field.build.mjs +3 -2
- app-ng-runtime/build-task/esm2022/public_api.mjs +3 -1
- app-ng-runtime/build-task/fesm2022/index.mjs +454 -406
- app-ng-runtime/build-task/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/build-task/public_api.d.ts +2 -0
- app-ng-runtime/components/advanced/custom/.npmignore +2 -0
- app-ng-runtime/components/advanced/custom/bundles/index.umd.js +232 -0
- app-ng-runtime/components/advanced/custom/custom-widget-container/custom-widget-container.directive.d.ts +19 -0
- app-ng-runtime/components/advanced/custom/custom-widget-container/custom-widget.props.d.ts +2 -0
- app-ng-runtime/components/advanced/custom/custom-widget-prop.d.ts +1 -0
- app-ng-runtime/components/advanced/custom/custom-widget.directive.d.ts +19 -0
- app-ng-runtime/components/advanced/custom/custom-widget.module.d.ts +10 -0
- app-ng-runtime/components/advanced/custom/esm2022/custom-widget-container/custom-widget-container.directive.mjs +102 -0
- app-ng-runtime/components/advanced/custom/esm2022/custom-widget-container/custom-widget.props.mjs +12 -0
- app-ng-runtime/components/advanced/custom/esm2022/custom-widget-prop.mjs +8 -0
- app-ng-runtime/components/advanced/custom/esm2022/custom-widget.directive.mjs +68 -0
- app-ng-runtime/components/advanced/custom/esm2022/custom-widget.module.mjs +32 -0
- app-ng-runtime/components/advanced/custom/esm2022/index.mjs +5 -0
- app-ng-runtime/components/advanced/custom/esm2022/public_api.mjs +4 -0
- app-ng-runtime/components/advanced/custom/fesm2022/index.mjs +215 -0
- app-ng-runtime/components/advanced/custom/fesm2022/index.mjs.map +1 -0
- app-ng-runtime/components/advanced/custom/index.d.ts +5 -0
- app-ng-runtime/components/advanced/custom/package.json +23 -0
- app-ng-runtime/components/advanced/custom/public_api.d.ts +3 -0
- app-ng-runtime/components/base/bundles/index.umd.js +63 -21
- app-ng-runtime/components/base/components.module.d.ts +12 -11
- app-ng-runtime/components/base/esm2022/components.module.mjs +5 -1
- app-ng-runtime/components/base/esm2022/public_api.mjs +2 -1
- app-ng-runtime/components/base/esm2022/utils/live-utils.mjs +2 -8
- app-ng-runtime/components/base/esm2022/widgets/common/base/base.component.mjs +25 -15
- app-ng-runtime/components/base/esm2022/widgets/common/base/custom-widget-container.directive.mjs +39 -0
- app-ng-runtime/components/base/fesm2022/index.mjs +63 -22
- app-ng-runtime/components/base/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/base/public_api.d.ts +1 -0
- app-ng-runtime/components/base/widgets/common/base/base.component.d.ts +10 -5
- app-ng-runtime/components/base/widgets/common/base/custom-widget-container.directive.d.ts +14 -0
- app-ng-runtime/components/basic/search/bundles/index.umd.js +36 -24
- app-ng-runtime/components/basic/search/esm2022/search.component.mjs +33 -24
- app-ng-runtime/components/basic/search/esm2022/search.props.mjs +5 -2
- app-ng-runtime/components/basic/search/fesm2022/index.mjs +36 -24
- app-ng-runtime/components/basic/search/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/basic/search/search.component.d.ts +3 -0
- app-ng-runtime/components/containers/tabs/bundles/index.umd.js +14 -6
- app-ng-runtime/components/containers/tabs/esm2022/tabs.component.mjs +14 -7
- app-ng-runtime/components/containers/tabs/esm2022/tabs.props.mjs +3 -2
- app-ng-runtime/components/containers/tabs/fesm2022/index.mjs +14 -6
- app-ng-runtime/components/containers/tabs/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/containers/tabs/tabs.component.d.ts +1 -0
- app-ng-runtime/components/containers/wizard/bundles/index.umd.js +0 -17
- app-ng-runtime/components/containers/wizard/esm2022/wizard.component.mjs +1 -18
- app-ng-runtime/components/containers/wizard/fesm2022/index.mjs +0 -17
- app-ng-runtime/components/containers/wizard/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/containers/wizard/wizard.component.d.ts +0 -1
- app-ng-runtime/components/data/form/bundles/index.umd.js +0 -4
- app-ng-runtime/components/data/form/esm2022/form-field/form-field.directive.mjs +3 -5
- app-ng-runtime/components/data/form/fesm2022/index.mjs +2 -4
- 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/table/bundles/index.umd.js +2 -2
- app-ng-runtime/components/data/table/esm2022/table.component.mjs +3 -3
- app-ng-runtime/components/data/table/fesm2022/index.mjs +2 -2
- app-ng-runtime/components/data/table/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/data/table/table.component.d.ts +1 -1
- app-ng-runtime/components/dialogs/default/base-dialog.d.ts +2 -0
- app-ng-runtime/components/dialogs/default/bundles/index.umd.js +17 -17
- app-ng-runtime/components/dialogs/default/esm2022/base-dialog.mjs +1 -12
- app-ng-runtime/components/dialogs/default/esm2022/dialog-body/dialog-body.directive.mjs +14 -2
- app-ng-runtime/components/dialogs/default/esm2022/dialog-header/dialog-header.component.mjs +6 -7
- app-ng-runtime/components/dialogs/default/fesm2022/index.mjs +18 -18
- app-ng-runtime/components/dialogs/default/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/dialogs/design-dialog/bundles/index.umd.js +21 -3
- app-ng-runtime/components/dialogs/design-dialog/dialog.component.d.ts +3 -2
- app-ng-runtime/components/dialogs/design-dialog/esm2022/dialog.component.mjs +22 -4
- app-ng-runtime/components/dialogs/design-dialog/fesm2022/index.mjs +21 -3
- app-ng-runtime/components/dialogs/design-dialog/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/input/default/bundles/index.umd.js +116 -115
- app-ng-runtime/components/input/default/checkboxset/checkboxset.component.d.ts +1 -0
- app-ng-runtime/components/input/default/esm2022/checkboxset/checkboxset.component.mjs +8 -5
- app-ng-runtime/components/input/default/esm2022/radioset/radioset.component.mjs +8 -5
- app-ng-runtime/components/input/default/esm2022/select/select.component.mjs +29 -59
- app-ng-runtime/components/input/default/esm2022/switch/switch.component.mjs +64 -38
- app-ng-runtime/components/input/default/esm2022/switch/switch.props.mjs +2 -1
- app-ng-runtime/components/input/default/esm2022/text/base/base-input.mjs +4 -1
- app-ng-runtime/components/input/default/esm2022/text/locale/number-locale.mjs +2 -2
- app-ng-runtime/components/input/default/esm2022/textarea/textarea.component.mjs +1 -4
- app-ng-runtime/components/input/default/fesm2022/index.mjs +117 -116
- app-ng-runtime/components/input/default/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/input/default/radioset/radioset.component.d.ts +1 -0
- app-ng-runtime/components/input/default/select/select.component.d.ts +4 -2
- app-ng-runtime/components/input/default/switch/switch.component.d.ts +2 -0
- app-ng-runtime/components/input/default/textarea/textarea.component.d.ts +2 -3
- app-ng-runtime/components/input/epoch/bundles/index.umd.js +0 -3
- app-ng-runtime/components/input/epoch/esm2022/date-time/date-time.component.mjs +1 -4
- app-ng-runtime/components/input/epoch/fesm2022/index.mjs +0 -3
- app-ng-runtime/components/input/epoch/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/input/file-upload/bundles/index.umd.js +5 -31
- app-ng-runtime/components/input/file-upload/esm2022/file-upload.component.mjs +8 -34
- app-ng-runtime/components/input/file-upload/fesm2022/index.mjs +6 -32
- 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 +2 -6
- app-ng-runtime/components/input/rating/bundles/index.umd.js +26 -35
- app-ng-runtime/components/input/rating/esm2022/rating.component.mjs +26 -37
- app-ng-runtime/components/input/rating/esm2022/rating.props.mjs +3 -1
- app-ng-runtime/components/input/rating/fesm2022/index.mjs +27 -36
- app-ng-runtime/components/input/rating/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/input/rating/rating.component.d.ts +3 -1
- app-ng-runtime/components/navigation/menu/bundles/index.umd.js +2 -2
- app-ng-runtime/components/navigation/menu/esm2022/menu.component.mjs +2 -2
- app-ng-runtime/components/navigation/menu/esm2022/nav/nav.component.mjs +2 -2
- app-ng-runtime/components/navigation/menu/fesm2022/index.mjs +2 -2
- app-ng-runtime/components/navigation/menu/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/page/left-panel/bundles/index.umd.js +6 -2
- app-ng-runtime/components/page/left-panel/esm2022/left-panel.directive.mjs +9 -5
- app-ng-runtime/components/page/left-panel/fesm2022/index.mjs +8 -4
- 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 +6 -2
- app-ng-runtime/components/page/right-panel/esm2022/right-panel.directive.mjs +9 -5
- app-ng-runtime/components/page/right-panel/fesm2022/index.mjs +8 -4
- 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 +28 -6
- app-ng-runtime/core/enums/enums.d.ts +2 -1
- app-ng-runtime/core/esm2022/enums/enums.mjs +2 -1
- app-ng-runtime/core/esm2022/public_api.mjs +2 -2
- app-ng-runtime/core/esm2022/types/types.mjs +4 -1
- app-ng-runtime/core/esm2022/utils/build-utils.mjs +6 -1
- app-ng-runtime/core/esm2022/utils/utils.mjs +11 -4
- app-ng-runtime/core/fesm2022/index.mjs +22 -4
- 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 +5 -1
- app-ng-runtime/core/utils/utils.d.ts +2 -1
- app-ng-runtime/mobile/core/bundles/index.umd.js +2 -18
- app-ng-runtime/mobile/core/esm2022/native.xhr.mjs +3 -19
- app-ng-runtime/mobile/core/fesm2022/index.mjs +2 -18
- app-ng-runtime/mobile/core/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/package.json +1 -1
- app-ng-runtime/runtime/base/bundles/index.umd.js +296 -5
- app-ng-runtime/runtime/base/components/base-custom-widget.component.d.ts +73 -0
- app-ng-runtime/runtime/base/esm2022/components/base-custom-widget.component.mjs +294 -0
- app-ng-runtime/runtime/base/esm2022/public_api.mjs +2 -1
- app-ng-runtime/runtime/base/esm2022/runtime-base.module.mjs +6 -1
- app-ng-runtime/runtime/base/esm2022/services/i18n.service.mjs +2 -2
- app-ng-runtime/runtime/base/esm2022/types/types.mjs +4 -1
- app-ng-runtime/runtime/base/fesm2022/index.mjs +294 -4
- app-ng-runtime/runtime/base/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/runtime/base/public_api.d.ts +1 -0
- app-ng-runtime/runtime/base/runtime-base.module.d.ts +9 -8
- app-ng-runtime/runtime/base/types/types.d.ts +5 -1
- app-ng-runtime/runtime/dynamic/app/services/customwidget-config-provider.service.d.ts +8 -0
- app-ng-runtime/runtime/dynamic/bundles/index.umd.js +49 -13
- app-ng-runtime/runtime/dynamic/esm2022/app/app.module.mjs +8 -3
- app-ng-runtime/runtime/dynamic/esm2022/app/services/component-ref-provider.service.mjs +23 -7
- app-ng-runtime/runtime/dynamic/esm2022/app/services/customwidget-config-provider.service.mjs +22 -0
- app-ng-runtime/runtime/dynamic/fesm2022/index.mjs +50 -11
- app-ng-runtime/runtime/dynamic/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/scripts/@wavemaker/nvd3/build/nv.d3.min.js +1 -1
- app-ng-runtime/scripts/datatable/datatable.js +4 -7
- app-ng-runtime/scripts/summernote/dist/summernote-lite.min.js +3 -2
- app-ng-runtime/transpiler/bundles/index.umd.js +5 -0
- app-ng-runtime/transpiler/esm2022/build.mjs +4 -1
- app-ng-runtime/transpiler/esm2022/imports.mjs +3 -1
- app-ng-runtime/transpiler/fesm2022/index.mjs +5 -0
- app-ng-runtime/transpiler/fesm2022/index.mjs.map +1 -1
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Directive, Attribute, NgModule } from '@angular/core';
|
|
3
|
+
import { CommonModule } from '@angular/common';
|
|
4
|
+
import { PROP_STRING, PROP_BOOLEAN, register, StylableComponent, styler, PROP_TYPE, provideAsWidgetRef, getWidgetPropsByType, WmComponentsModule } from '@wm/components/base';
|
|
5
|
+
import * as i1 from '@wm/core';
|
|
6
|
+
import { noop } from '@wm/core';
|
|
7
|
+
import { capitalize, cloneDeep } from 'lodash-es';
|
|
8
|
+
|
|
9
|
+
const customWidgetProps = new Map([
|
|
10
|
+
['class', PROP_STRING],
|
|
11
|
+
['hint', PROP_STRING],
|
|
12
|
+
['name', PROP_STRING],
|
|
13
|
+
['widgetname', PROP_STRING],
|
|
14
|
+
['show', { value: true, ...PROP_BOOLEAN }]
|
|
15
|
+
]);
|
|
16
|
+
const registerProps$1 = () => {
|
|
17
|
+
register('wm-custom-widget', customWidgetProps);
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
const registeredPropsSet = new Set();
|
|
21
|
+
let customWidgetPropsMap = {};
|
|
22
|
+
const DEFAULT_CLS$1 = 'app-html-container';
|
|
23
|
+
class CustomWidgetContainerDirective extends StylableComponent {
|
|
24
|
+
static { this.initializeProps = registerProps$1(); }
|
|
25
|
+
constructor(inj, elRef, widgetname) {
|
|
26
|
+
const widgetType = `wm-custom-${widgetname}`;
|
|
27
|
+
const WIDGET_CONFIG = { widgetType, hostClass: DEFAULT_CLS$1 };
|
|
28
|
+
let resolveFn = noop;
|
|
29
|
+
super(inj, WIDGET_CONFIG, undefined, new Promise(res => resolveFn = res));
|
|
30
|
+
this.props = {};
|
|
31
|
+
this.propsReady = resolveFn;
|
|
32
|
+
this.widgetType = widgetType;
|
|
33
|
+
this.name = elRef.nativeElement.getAttribute('name');
|
|
34
|
+
styler(this.nativeElement, this);
|
|
35
|
+
// Call on property change on name to set name attribute on element.
|
|
36
|
+
this.registerReadyStateListener(() => {
|
|
37
|
+
super.onPropertyChange('name', this.name);
|
|
38
|
+
});
|
|
39
|
+
this.registerPropertyChangeListener(((key, nv, ov) => {
|
|
40
|
+
if (!key.startsWith('prop-'))
|
|
41
|
+
return;
|
|
42
|
+
const propName = key.slice(5);
|
|
43
|
+
if (this.props.hasOwnProperty(propName) && this.props[propName] !== nv) {
|
|
44
|
+
this.props[propName] = nv;
|
|
45
|
+
}
|
|
46
|
+
}));
|
|
47
|
+
}
|
|
48
|
+
setBaseWidgetName(baseWidgetType) {
|
|
49
|
+
let splitArr = baseWidgetType.split('-'), modifiedArr = [];
|
|
50
|
+
modifiedArr = splitArr.map((item) => {
|
|
51
|
+
item = item !== 'wm' ? capitalize(item) : item;
|
|
52
|
+
return item;
|
|
53
|
+
});
|
|
54
|
+
this.baseWidgetName = modifiedArr.join('');
|
|
55
|
+
}
|
|
56
|
+
setProps(config, resolveFn) {
|
|
57
|
+
this.setBaseWidgetName(config.widgetType);
|
|
58
|
+
if (!config || !config.properties) {
|
|
59
|
+
return;
|
|
60
|
+
}
|
|
61
|
+
if (!registeredPropsSet.has(this.widgetType)) {
|
|
62
|
+
register(this.widgetType, this.prepareProps(config.properties));
|
|
63
|
+
}
|
|
64
|
+
else {
|
|
65
|
+
this.props = Object.assign(this.props, cloneDeep(customWidgetPropsMap[this.widgetType]));
|
|
66
|
+
}
|
|
67
|
+
this.propsReady(resolveFn);
|
|
68
|
+
}
|
|
69
|
+
prepareProps(props = {}) {
|
|
70
|
+
const propsMap = new Map(customWidgetProps);
|
|
71
|
+
Object.entries(props).forEach(([k, v]) => {
|
|
72
|
+
let type = PROP_TYPE.STRING;
|
|
73
|
+
if (v.type === 'boolean') {
|
|
74
|
+
type = PROP_TYPE.BOOLEAN;
|
|
75
|
+
}
|
|
76
|
+
else if (v.type === 'number') {
|
|
77
|
+
type = PROP_TYPE.NUMBER;
|
|
78
|
+
}
|
|
79
|
+
else if (v.type !== 'string') {
|
|
80
|
+
type = v.type;
|
|
81
|
+
}
|
|
82
|
+
// Do not set the 'bind:*' values
|
|
83
|
+
propsMap.set(`prop-${k}`, { type, value: _.startsWith(v.value, 'bind:') ? undefined : v.value });
|
|
84
|
+
this.props[k] = v.value;
|
|
85
|
+
});
|
|
86
|
+
registeredPropsSet.add(this.widgetType);
|
|
87
|
+
customWidgetPropsMap[this.widgetType] = this.props;
|
|
88
|
+
return propsMap;
|
|
89
|
+
}
|
|
90
|
+
updateData(key, value) {
|
|
91
|
+
let modifiedKey = key.replace('base-', '');
|
|
92
|
+
this[this.baseWidgetName][modifiedKey] = value;
|
|
93
|
+
this.nativeElement.childNodes[0]['widget'].viewParent[this.baseWidgetName][modifiedKey] = value;
|
|
94
|
+
this[this.baseWidgetName].initDatasetItems();
|
|
95
|
+
}
|
|
96
|
+
static { this.ɵfac = function CustomWidgetContainerDirective_Factory(t) { return new (t || CustomWidgetContainerDirective)(i0.ɵɵdirectiveInject(i0.Injector), i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵinjectAttribute('widgetname')); }; }
|
|
97
|
+
static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: CustomWidgetContainerDirective, selectors: [["", "wmWidgetContainer", ""]], exportAs: ["wmWidgetContainer"], features: [i0.ɵɵProvidersFeature([
|
|
98
|
+
provideAsWidgetRef(CustomWidgetContainerDirective)
|
|
99
|
+
]), i0.ɵɵInheritDefinitionFeature] }); }
|
|
100
|
+
}
|
|
101
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CustomWidgetContainerDirective, [{
|
|
102
|
+
type: Directive,
|
|
103
|
+
args: [{
|
|
104
|
+
selector: '[wmWidgetContainer]',
|
|
105
|
+
providers: [
|
|
106
|
+
provideAsWidgetRef(CustomWidgetContainerDirective)
|
|
107
|
+
],
|
|
108
|
+
exportAs: 'wmWidgetContainer'
|
|
109
|
+
}]
|
|
110
|
+
}], () => [{ type: i0.Injector }, { type: i0.ElementRef }, { type: undefined, decorators: [{
|
|
111
|
+
type: Attribute,
|
|
112
|
+
args: ['widgetname']
|
|
113
|
+
}] }], null); })();
|
|
114
|
+
|
|
115
|
+
const registerProps = () => {
|
|
116
|
+
register('wm-custom-widget-container', new Map([
|
|
117
|
+
['name', PROP_STRING],
|
|
118
|
+
['class', PROP_STRING]
|
|
119
|
+
]));
|
|
120
|
+
};
|
|
121
|
+
|
|
122
|
+
const DEFAULT_CLS = 'app-custom-widget-container clearfix';
|
|
123
|
+
const WIDGET_CONFIG = { widgetType: 'wm-custom-widget-container', hostClass: DEFAULT_CLS };
|
|
124
|
+
class CustomWidgetDirective extends StylableComponent {
|
|
125
|
+
static { this.initializeProps = registerProps(); }
|
|
126
|
+
constructor(inj, viewport) {
|
|
127
|
+
super(inj, WIDGET_CONFIG);
|
|
128
|
+
this.viewport = viewport;
|
|
129
|
+
this.registerDestroyListener(this.viewport.subscribe("resize" /* ViewportEvent.RESIZE */, data => this.callback('resize', data)));
|
|
130
|
+
this.registerDestroyListener(this.viewport.subscribe("orientationchange" /* ViewportEvent.ORIENTATION_CHANGE */, data => this.callback('orientationchange', data)));
|
|
131
|
+
}
|
|
132
|
+
ngAfterContentInit() {
|
|
133
|
+
let customWidget = this.nativeElement.closest('[customwidgetcontainer]'), inheritedProps = {}, customWidgetProps = Array.from(getWidgetPropsByType("wm-custom-widget-container").keys());
|
|
134
|
+
for (let i = 0; i < customWidget.attributes.length; i++) {
|
|
135
|
+
let attr = customWidget.attributes.item(i);
|
|
136
|
+
if (attr.value && attr.value !== '' && !customWidgetProps.includes(attr.name))
|
|
137
|
+
inheritedProps[attr.name] = attr.value;
|
|
138
|
+
}
|
|
139
|
+
this.processChildren(this.nativeElement.children, inheritedProps);
|
|
140
|
+
}
|
|
141
|
+
processChildren(children, inheritedProps) {
|
|
142
|
+
Array.from(children).forEach((child) => {
|
|
143
|
+
if (!child.hasAttribute('base-widget'))
|
|
144
|
+
this.processChildren(child.children, inheritedProps);
|
|
145
|
+
else {
|
|
146
|
+
for (const [key, value] of Object.entries(inheritedProps)) {
|
|
147
|
+
if (key.includes(".event") || key.includes('.bind'))
|
|
148
|
+
this.processAttr(key, value, { widget: child.widget, nativeElement: child });
|
|
149
|
+
else
|
|
150
|
+
child.widget[key] = value;
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
callback(eventName, locals) {
|
|
156
|
+
locals = _.assign({ widget: this }, locals);
|
|
157
|
+
this.invokeEventCallback(eventName, locals);
|
|
158
|
+
}
|
|
159
|
+
ngOnAttach() {
|
|
160
|
+
this.callback('attach');
|
|
161
|
+
}
|
|
162
|
+
ngOnDetach() {
|
|
163
|
+
this.callback('detach');
|
|
164
|
+
}
|
|
165
|
+
ngOnDestroy() {
|
|
166
|
+
this.callback('destroy');
|
|
167
|
+
super.ngOnDestroy();
|
|
168
|
+
}
|
|
169
|
+
static { this.ɵfac = function CustomWidgetDirective_Factory(t) { return new (t || CustomWidgetDirective)(i0.ɵɵdirectiveInject(i0.Injector), i0.ɵɵdirectiveInject(i1.Viewport)); }; }
|
|
170
|
+
static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: CustomWidgetDirective, selectors: [["", "wmCustomWidget", ""]], features: [i0.ɵɵProvidersFeature([
|
|
171
|
+
provideAsWidgetRef(CustomWidgetDirective)
|
|
172
|
+
]), i0.ɵɵInheritDefinitionFeature] }); }
|
|
173
|
+
}
|
|
174
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CustomWidgetDirective, [{
|
|
175
|
+
type: Directive,
|
|
176
|
+
args: [{
|
|
177
|
+
selector: '[wmCustomWidget]',
|
|
178
|
+
providers: [
|
|
179
|
+
provideAsWidgetRef(CustomWidgetDirective)
|
|
180
|
+
]
|
|
181
|
+
}]
|
|
182
|
+
}], () => [{ type: i0.Injector }, { type: i1.Viewport }], null); })();
|
|
183
|
+
|
|
184
|
+
const components = [
|
|
185
|
+
CustomWidgetContainerDirective,
|
|
186
|
+
CustomWidgetDirective
|
|
187
|
+
];
|
|
188
|
+
class CustomModule {
|
|
189
|
+
static { this.ɵfac = function CustomModule_Factory(t) { return new (t || CustomModule)(); }; }
|
|
190
|
+
static { this.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: CustomModule }); }
|
|
191
|
+
static { this.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [CommonModule,
|
|
192
|
+
WmComponentsModule] }); }
|
|
193
|
+
}
|
|
194
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CustomModule, [{
|
|
195
|
+
type: NgModule,
|
|
196
|
+
args: [{
|
|
197
|
+
imports: [
|
|
198
|
+
CommonModule,
|
|
199
|
+
WmComponentsModule
|
|
200
|
+
],
|
|
201
|
+
declarations: [...components],
|
|
202
|
+
exports: [...components]
|
|
203
|
+
}]
|
|
204
|
+
}], null, null); })();
|
|
205
|
+
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(CustomModule, { declarations: [CustomWidgetContainerDirective,
|
|
206
|
+
CustomWidgetDirective], imports: [CommonModule,
|
|
207
|
+
WmComponentsModule], exports: [CustomWidgetContainerDirective,
|
|
208
|
+
CustomWidgetDirective] }); })();
|
|
209
|
+
|
|
210
|
+
/**
|
|
211
|
+
* Generated bundle index. Do not edit.
|
|
212
|
+
*/
|
|
213
|
+
|
|
214
|
+
export { CustomModule, CustomWidgetContainerDirective, CustomWidgetDirective };
|
|
215
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../../../../projects/components/widgets/advanced/custom/src/custom-widget-container/custom-widget.props.ts","../../../../../projects/components/widgets/advanced/custom/src/custom-widget-container/custom-widget-container.directive.ts","../../../../../projects/components/widgets/advanced/custom/src/custom-widget-prop.ts","../../../../../projects/components/widgets/advanced/custom/src/custom-widget.directive.ts","../../../../../projects/components/widgets/advanced/custom/src/custom-widget.module.ts","../../../../../projects/components/widgets/advanced/custom/src/index.ts"],"sourcesContent":["import {PROP_BOOLEAN, PROP_STRING, register} from '@wm/components/base';\n\nexport const customWidgetProps =\n new Map(\n [\n ['class', PROP_STRING],\n ['hint', PROP_STRING],\n ['name', PROP_STRING],\n ['widgetname', PROP_STRING],\n ['show', { value: true, ...PROP_BOOLEAN }]\n ]\n )\n\nexport const registerProps = () => {\n register(\n 'wm-custom-widget',\n customWidgetProps\n );\n};\n","import { Attribute, Directive, ElementRef, Injector, OnInit } from '@angular/core';\n\nimport { noop } from '@wm/core';\nimport { PROP_TYPE, provideAsWidgetRef, register, StylableComponent, styler } from '@wm/components/base';\n\nimport { customWidgetProps } from './custom-widget.props';\nimport { registerProps } from \"../custom-widget-container/custom-widget.props\";\nimport {capitalize, cloneDeep} from 'lodash-es';\n\nconst registeredPropsSet = new Set<string>();\n\nlet customWidgetPropsMap: { [key: string]: any } = {};\n\nconst DEFAULT_CLS = 'app-html-container';\n\ndeclare const _;\n\n@Directive({\n selector: '[wmWidgetContainer]',\n providers: [\n provideAsWidgetRef(CustomWidgetContainerDirective)\n ],\n exportAs: 'wmWidgetContainer'\n})\nexport class CustomWidgetContainerDirective extends StylableComponent implements OnInit {\n static initializeProps = registerProps();\n\n widgetType: string;\n name: string;\n propsReady: Function;\n widgetName: string;\n private props: any = {};\n private baseWidgetName: string;\n\n constructor(\n inj: Injector, elRef: ElementRef,\n @Attribute('widgetname') widgetname: string,\n ) {\n const widgetType = `wm-custom-${widgetname}`;\n const WIDGET_CONFIG = { widgetType, hostClass: DEFAULT_CLS };\n let resolveFn: Function = noop;\n\n super(inj, WIDGET_CONFIG, undefined, new Promise(res => resolveFn = res));\n this.propsReady = resolveFn;\n this.widgetType = widgetType;\n this.name = elRef.nativeElement.getAttribute('name');\n\n styler(this.nativeElement, this);\n\n // Call on property change on name to set name attribute on element.\n this.registerReadyStateListener(() => {\n super.onPropertyChange('name', this.name);\n });\n\n this.registerPropertyChangeListener(((key: string, nv: any, ov?: any) => {\n if (!key.startsWith('prop-')) return;\n const propName = key.slice(5)\n if (this.props.hasOwnProperty(propName) && this.props[propName] !== nv) {\n this.props[propName] = nv;\n }\n }))\n }\n\n setBaseWidgetName(baseWidgetType: string) {\n let splitArr = baseWidgetType.split('-'), modifiedArr = [];\n modifiedArr = splitArr.map((item: any) => {\n item = item !== 'wm' ? capitalize(item) : item;\n return item;\n });\n this.baseWidgetName = modifiedArr.join('');\n }\n\n public setProps(config, resolveFn: Function) {\n this.setBaseWidgetName(config.widgetType);\n if (!config || !config.properties) {\n return;\n }\n if (!registeredPropsSet.has(this.widgetType)) {\n register(this.widgetType, this.prepareProps(config.properties));\n }else{\n this.props = Object.assign(this.props, cloneDeep(customWidgetPropsMap[this.widgetType]))\n }\n\n this.propsReady(resolveFn);\n }\n\n private prepareProps(props = {}) {\n const propsMap = new Map(customWidgetProps);\n Object.entries(props).forEach(([k, v]: [string, any]) => {\n let type = PROP_TYPE.STRING;\n\n if (v.type === 'boolean') {\n type = PROP_TYPE.BOOLEAN;\n } else if (v.type === 'number') {\n type = PROP_TYPE.NUMBER;\n } else if (v.type !== 'string') {\n type = v.type;\n }\n\n // Do not set the 'bind:*' values\n propsMap.set(`prop-${k}`, { type, value: _.startsWith(v.value, 'bind:') ? undefined : v.value });\n this.props[k] = v.value;\n });\n\n registeredPropsSet.add(this.widgetType);\n customWidgetPropsMap[this.widgetType] = this.props\n\n return propsMap;\n }\n\n updateData(key: string, value: any) {\n let modifiedKey = key.replace('base-', '');\n this[this.baseWidgetName][modifiedKey] = value;\n this.nativeElement.childNodes[0]['widget'].viewParent[this.baseWidgetName][modifiedKey] = value;\n this[this.baseWidgetName].initDatasetItems();\n }\n}\n","import {PROP_STRING, register} from '@wm/components/base';\n\nexport const registerProps = () => {\n register(\n 'wm-custom-widget-container',\n new Map(\n [\n ['name', PROP_STRING],\n ['class', PROP_STRING]\n ]\n )\n );\n};\n","import { AfterContentInit, Directive, ElementRef, Injector, OnDestroy, Optional } from '@angular/core';\n\nimport {Viewport, ViewportEvent} from '@wm/core';\nimport { registerProps } from './custom-widget-prop';\nimport { StylableComponent, provideAsWidgetRef, getWidgetPropsByType } from '@wm/components/base';\n\nconst DEFAULT_CLS = 'app-custom-widget-container clearfix';\nconst WIDGET_CONFIG = {widgetType: 'wm-custom-widget-container', hostClass: DEFAULT_CLS};\ndeclare const _;\n\n@Directive({\n selector: '[wmCustomWidget]',\n providers: [\n provideAsWidgetRef(CustomWidgetDirective)\n ]\n})\nexport class CustomWidgetDirective extends StylableComponent implements OnDestroy, AfterContentInit {\n static initializeProps = registerProps();\n\n constructor(inj: Injector, private viewport: Viewport) {\n super(inj, WIDGET_CONFIG);\n this.registerDestroyListener(this.viewport.subscribe(ViewportEvent.RESIZE, data => this.callback('resize', data)));\n this.registerDestroyListener(this.viewport.subscribe(ViewportEvent.ORIENTATION_CHANGE, data => this.callback('orientationchange', data)));\n }\n ngAfterContentInit() {\n let customWidget = this.nativeElement.closest('[customwidgetcontainer]'),\n inheritedProps = {},\n customWidgetProps = Array.from(getWidgetPropsByType(\"wm-custom-widget-container\").keys());\n for(let i = 0; i < customWidget.attributes.length; i++) {\n let attr = customWidget.attributes.item(i);\n if(attr.value && attr.value !== '' && !customWidgetProps.includes(attr.name))\n inheritedProps[attr.name] = attr.value;\n }\n this.processChildren(this.nativeElement.children, inheritedProps);\n }\n\n processChildren(children: any, inheritedProps: { [key: string]: string }) {\n Array.from(children).forEach((child: any) => {\n if(!child.hasAttribute('base-widget'))\n this.processChildren(child.children, inheritedProps);\n else {\n for (const [key, value] of Object.entries(inheritedProps)) {\n if(key.includes(\".event\") || key.includes('.bind'))\n this.processAttr(key, value, {widget: child.widget, nativeElement: child});\n else\n child.widget[key] = value;\n }\n }\n });\n }\n\n private callback(eventName, locals?: object) {\n locals = _.assign({ widget: this }, locals);\n this.invokeEventCallback(eventName, locals);\n }\n\n public ngOnAttach() {\n this.callback('attach');\n }\n\n public ngOnDetach() {\n this.callback('detach');\n }\n\n public ngOnDestroy() {\n this.callback('destroy');\n super.ngOnDestroy();\n }\n\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nimport { WmComponentsModule } from '@wm/components/base';\n\nimport { CustomWidgetContainerDirective } from './custom-widget-container/custom-widget-container.directive';\nimport { CustomWidgetDirective } from './custom-widget.directive'\nconst components = [\n CustomWidgetContainerDirective,\n CustomWidgetDirective\n];\n\n@NgModule({\n imports: [\n CommonModule,\n WmComponentsModule\n ],\n declarations: [...components],\n exports: [...components]\n})\nexport class CustomModule {\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["registerProps","DEFAULT_CLS"],"mappings":";;;;;;;;AAEO,MAAM,iBAAiB,GAC1B,IAAI,GAAG,CACH;IACI,CAAC,OAAO,EAAE,WAAW,CAAC;IACtB,CAAC,MAAM,EAAE,WAAW,CAAC;IACrB,CAAC,MAAM,EAAE,WAAW,CAAC;IACrB,CAAC,YAAY,EAAE,WAAW,CAAC;IAC3B,CAAC,MAAM,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,YAAY,EAAE,CAAC;AAC7C,CAAA,CACJ,CAAA;AAEE,MAAMA,eAAa,GAAG,MAAK;AAC9B,IAAA,QAAQ,CACJ,kBAAkB,EAClB,iBAAiB,CACpB,CAAC;AACN,CAAC;;ACTD,MAAM,kBAAkB,GAAG,IAAI,GAAG,EAAU,CAAC;AAE7C,IAAI,oBAAoB,GAA2B,EAAE,CAAC;AAEtD,MAAMC,aAAW,GAAG,oBAAoB,CAAC;AAWnC,MAAO,8BAA+B,SAAQ,iBAAiB,CAAA;AAC1D,IAAA,SAAA,IAAA,CAAA,eAA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G,UAAU,CAAC;AAC7B,gBAAA,OAAO,EAAE,CAAC,GAAG,UAAU,CAAC;AAC3B,aAAA,CAAA;;AACY,CAAA,YAAA,EAAA,CAAA,OAAA,SAAA,KAAA,WAAA,IAAA,SAAA,KAAA,EAAA,CAAA,kBAAA,CAAA,YAAY,mBAZrB,8BAA8B;AAC9B,QAAA,qBAAqB,aAKjB,YAAY;AACZ,QAAA,kBAAkB,aAPtB,8BAA8B;QAC9B,qBAAqB,CAAA,EAAA,CAAA,CAAA,EAAA,GAAA;;ACTzB;;AAEG;;;;"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@wm/components/advanced/custom",
|
|
3
|
+
"sideEffects": false,
|
|
4
|
+
"dependencies": {
|
|
5
|
+
"tslib": "^2.0.0"
|
|
6
|
+
},
|
|
7
|
+
"module": "fesm2022/index.mjs",
|
|
8
|
+
"typings": "index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
"./package.json": {
|
|
11
|
+
"default": "./package.json"
|
|
12
|
+
},
|
|
13
|
+
".": {
|
|
14
|
+
"types": "./index.d.ts",
|
|
15
|
+
"esm2022": "./esm2022/index.mjs",
|
|
16
|
+
"esm": "./esm2022/index.mjs",
|
|
17
|
+
"default": "./fesm2022/index.mjs"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"scripts": {
|
|
21
|
+
"prepublishOnly": "node --eval \"console.error('ERROR: Trying to publish a package that has been compiled by Ivy in full compilation mode. This is not allowed.\\nPlease delete and rebuild the package with Ivy partial compilation mode, before attempting to publish.\\n')\" && exit 1"
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -1023,9 +1023,10 @@
|
|
|
1023
1023
|
}
|
|
1024
1024
|
else {
|
|
1025
1025
|
this.delayedInit = true;
|
|
1026
|
-
initPromise.then(() => {
|
|
1026
|
+
initPromise.then((resolveFn) => {
|
|
1027
1027
|
this.initWidget();
|
|
1028
1028
|
this.setInitProps();
|
|
1029
|
+
resolveFn && resolveFn();
|
|
1029
1030
|
});
|
|
1030
1031
|
}
|
|
1031
1032
|
if (explicitContext) {
|
|
@@ -1235,11 +1236,12 @@
|
|
|
1235
1236
|
* @param {string} eventName
|
|
1236
1237
|
* @param {string} expr
|
|
1237
1238
|
*/
|
|
1238
|
-
processEventAttr(eventName, expr, meta) {
|
|
1239
|
+
processEventAttr(eventName, expr, meta, child) {
|
|
1239
1240
|
const fn = i1.$parseEvent(expr);
|
|
1240
1241
|
const locals = this.context;
|
|
1241
|
-
locals.widget = this.widget;
|
|
1242
|
-
const boundFn = fn.bind(undefined, this.viewParent, locals);
|
|
1242
|
+
locals.widget = child ? child.widget : this.widget;
|
|
1243
|
+
const boundFn = fn.bind(undefined, child ? this.viewParent.viewParent : this.viewParent, locals);
|
|
1244
|
+
let widget = child ? child.widget : this, nativeElement = child ? child.nativeElement : this.nativeElement;
|
|
1243
1245
|
const eventCallback = () => {
|
|
1244
1246
|
let boundFnVal;
|
|
1245
1247
|
i1.$invokeWatchers(true);
|
|
@@ -1259,24 +1261,32 @@
|
|
|
1259
1261
|
console.error(e);
|
|
1260
1262
|
}
|
|
1261
1263
|
};
|
|
1262
|
-
|
|
1264
|
+
if (child && !child.widget.eventHandlers)
|
|
1265
|
+
child.widget.eventHandlers = new Map();
|
|
1266
|
+
widget.eventHandlers.set(this.getMappedEventName(eventName), { callback: eventCallback, locals });
|
|
1263
1267
|
// prepend eventName with on and convert it to camelcase.
|
|
1264
1268
|
// eg, "click" ---> onClick
|
|
1265
1269
|
const onEventName = lodashEs.camelCase(`on-${eventName}`);
|
|
1266
1270
|
// save the eventCallback in widgetScope.
|
|
1267
|
-
|
|
1271
|
+
widget[onEventName] = eventCallback;
|
|
1268
1272
|
// events needs to be setup after viewInit
|
|
1269
1273
|
this.toBeSetupEventsQueue.push(() => {
|
|
1270
|
-
this.handleEvent(
|
|
1274
|
+
this.handleEvent(nativeElement, this.getMappedEventName(eventName), eventCallback, locals, meta);
|
|
1271
1275
|
});
|
|
1272
1276
|
}
|
|
1273
1277
|
/**
|
|
1274
1278
|
* Process the bound property
|
|
1275
1279
|
* Register a watch on the bound expression
|
|
1276
1280
|
*/
|
|
1277
|
-
processBindAttr(propName, expr) {
|
|
1278
|
-
|
|
1279
|
-
|
|
1281
|
+
processBindAttr(propName, expr, child) {
|
|
1282
|
+
if (!child)
|
|
1283
|
+
this.initState.delete(propName);
|
|
1284
|
+
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;
|
|
1285
|
+
this.registerDestroyListener(i1.$watch(expr, viewParent, context, nv => {
|
|
1286
|
+
if (propName.startsWith('base-'))
|
|
1287
|
+
widget.updateData(propName, nv);
|
|
1288
|
+
widget[propName] = nv;
|
|
1289
|
+
}, getWatchIdentifier(widgetId, propName), propName === 'datasource', widgetProps.get(propName), () => isMuted));
|
|
1280
1290
|
}
|
|
1281
1291
|
/**
|
|
1282
1292
|
* Remove watch on the bound property
|
|
@@ -1305,7 +1315,7 @@
|
|
|
1305
1315
|
* and keep in eventHandlers
|
|
1306
1316
|
* If the attribute is a bound expression, register a watch on the expression
|
|
1307
1317
|
*/
|
|
1308
|
-
processAttr(attrName, attrValue) {
|
|
1318
|
+
processAttr(attrName, attrValue, child) {
|
|
1309
1319
|
// console.log("====attrName=====", attrName, "=====typeof attrname=====", typeof attrName, "-----attrValue----", attrValue);
|
|
1310
1320
|
const { 0: propName, 1: type, 2: meta, length } = attrName.split('.');
|
|
1311
1321
|
if (type === 'bind') {
|
|
@@ -1313,10 +1323,10 @@
|
|
|
1313
1323
|
if (propName === 'show') {
|
|
1314
1324
|
this.nativeElement.hidden = true;
|
|
1315
1325
|
}
|
|
1316
|
-
this.processBindAttr(propName, attrValue);
|
|
1326
|
+
this.processBindAttr(propName, attrValue, child);
|
|
1317
1327
|
}
|
|
1318
|
-
else if (type === 'event') {
|
|
1319
|
-
this.processEventAttr(propName, attrValue, meta);
|
|
1328
|
+
else if (type === 'event' && !this.nativeElement.hasAttribute('customwidgetcontainer')) {
|
|
1329
|
+
this.processEventAttr(propName, attrValue, meta, child);
|
|
1320
1330
|
}
|
|
1321
1331
|
else if (length === 1) {
|
|
1322
1332
|
// remove class and name attributes. Component will set them on the proper node
|
|
@@ -2095,6 +2105,40 @@
|
|
|
2095
2105
|
args: ['content']
|
|
2096
2106
|
}] }, { type: i0__namespace.ComponentFactoryResolver }, { type: i1__namespace.PartialRefProvider }], null); })();
|
|
2097
2107
|
|
|
2108
|
+
class CustomWidgetContainerDirective {
|
|
2109
|
+
constructor(componentInstance, vcRef, elRef, inj, app, widgetname, customWidgetRefProvider) {
|
|
2110
|
+
this.componentInstance = componentInstance;
|
|
2111
|
+
this.vcRef = vcRef;
|
|
2112
|
+
this.elRef = elRef;
|
|
2113
|
+
this.inj = inj;
|
|
2114
|
+
this.app = app;
|
|
2115
|
+
this.customWidgetRefProvider = customWidgetRefProvider;
|
|
2116
|
+
this.componentInstance.widgetname;
|
|
2117
|
+
this.customWidgetRefProvider.getComponentFactoryRef(widgetname, i1.ComponentType.WIDGET).then((componentFactory) => {
|
|
2118
|
+
if (componentFactory) {
|
|
2119
|
+
const instanceRef = this.vcRef.createComponent(componentFactory, 0, this.inj);
|
|
2120
|
+
this.elRef.nativeElement.appendChild(instanceRef.location.nativeElement);
|
|
2121
|
+
}
|
|
2122
|
+
});
|
|
2123
|
+
}
|
|
2124
|
+
static { this.ɵfac = function CustomWidgetContainerDirective_Factory(t) { return new (t || CustomWidgetContainerDirective)(i0__namespace.ɵɵdirectiveInject(WidgetRef, 2), i0__namespace.ɵɵdirectiveInject(i0__namespace.ViewContainerRef), i0__namespace.ɵɵdirectiveInject(i0__namespace.ElementRef), i0__namespace.ɵɵdirectiveInject(i0__namespace.Injector), i0__namespace.ɵɵdirectiveInject(i1__namespace.App), i0__namespace.ɵɵinjectAttribute('widgetname'), i0__namespace.ɵɵdirectiveInject(i1__namespace.CustomWidgetRefProvider)); }; }
|
|
2125
|
+
static { this.ɵdir = /*@__PURE__*/ i0__namespace.ɵɵdefineDirective({ type: CustomWidgetContainerDirective, selectors: [["", "customWidgetContainer", "", "widgetname", ""]] }); }
|
|
2126
|
+
}
|
|
2127
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CustomWidgetContainerDirective, [{
|
|
2128
|
+
type: i0.Directive,
|
|
2129
|
+
args: [{
|
|
2130
|
+
selector: '[customWidgetContainer][widgetname]'
|
|
2131
|
+
}]
|
|
2132
|
+
}], () => [{ type: undefined, decorators: [{
|
|
2133
|
+
type: i0.Self
|
|
2134
|
+
}, {
|
|
2135
|
+
type: i0.Inject,
|
|
2136
|
+
args: [WidgetRef]
|
|
2137
|
+
}] }, { type: i0__namespace.ViewContainerRef }, { type: i0__namespace.ElementRef }, { type: i0__namespace.Injector }, { type: i1__namespace.App }, { type: undefined, decorators: [{
|
|
2138
|
+
type: i0.Attribute,
|
|
2139
|
+
args: ['widgetname']
|
|
2140
|
+
}] }, { type: i1__namespace.CustomWidgetRefProvider }], null); })();
|
|
2141
|
+
|
|
2098
2142
|
class ShowInDeviceDirective {
|
|
2099
2143
|
constructor(viewContainerRef, inj, templateRef, explicitContext) {
|
|
2100
2144
|
this.viewContainerRef = viewContainerRef;
|
|
@@ -3101,6 +3145,7 @@
|
|
|
3101
3145
|
PartialParamHandlerDirective,
|
|
3102
3146
|
PartialParamDirective,
|
|
3103
3147
|
PartialContainerDirective,
|
|
3148
|
+
CustomWidgetContainerDirective,
|
|
3104
3149
|
RedrawableDirective,
|
|
3105
3150
|
ShowInDeviceDirective,
|
|
3106
3151
|
SmoothScrollDirective,
|
|
@@ -3168,6 +3213,7 @@
|
|
|
3168
3213
|
PartialParamHandlerDirective,
|
|
3169
3214
|
PartialParamDirective,
|
|
3170
3215
|
PartialContainerDirective,
|
|
3216
|
+
CustomWidgetContainerDirective,
|
|
3171
3217
|
RedrawableDirective,
|
|
3172
3218
|
ShowInDeviceDirective,
|
|
3173
3219
|
SmoothScrollDirective,
|
|
@@ -3198,6 +3244,7 @@
|
|
|
3198
3244
|
PartialParamHandlerDirective,
|
|
3199
3245
|
PartialParamDirective,
|
|
3200
3246
|
PartialContainerDirective,
|
|
3247
|
+
CustomWidgetContainerDirective,
|
|
3201
3248
|
RedrawableDirective,
|
|
3202
3249
|
ShowInDeviceDirective,
|
|
3203
3250
|
SmoothScrollDirective,
|
|
@@ -4256,13 +4303,7 @@
|
|
|
4256
4303
|
lodashEs.forEach(headerConfig, cols => {
|
|
4257
4304
|
if (lodashEs.get(cols, 'isGroup')) {
|
|
4258
4305
|
if (cols.field === field) {
|
|
4259
|
-
|
|
4260
|
-
if (id == -1) {
|
|
4261
|
-
cols.columns[index] = config;
|
|
4262
|
-
}
|
|
4263
|
-
else {
|
|
4264
|
-
cols.columns[id] = config;
|
|
4265
|
-
}
|
|
4306
|
+
cols.columns[index] = config;
|
|
4266
4307
|
}
|
|
4267
4308
|
else {
|
|
4268
4309
|
setHeaderConfig(cols.columns, config, field, index);
|
|
@@ -5259,6 +5300,7 @@
|
|
|
5259
5300
|
exports.ContainerDirective = ContainerDirective;
|
|
5260
5301
|
exports.Context = Context;
|
|
5261
5302
|
exports.CustomPipe = CustomPipe;
|
|
5303
|
+
exports.CustomWidgetContainerDirective = CustomWidgetContainerDirective;
|
|
5262
5304
|
exports.DEBOUNCE_TIMES = DEBOUNCE_TIMES;
|
|
5263
5305
|
exports.DISPLAY_TYPE = DISPLAY_TYPE;
|
|
5264
5306
|
exports.DataSetItem = DataSetItem;
|
|
@@ -8,19 +8,20 @@ import * as i5 from "./widgets/common/message/message.component";
|
|
|
8
8
|
import * as i6 from "./widgets/common/partial/partial.directive";
|
|
9
9
|
import * as i7 from "./widgets/common/partial-param/partial-param.directive";
|
|
10
10
|
import * as i8 from "./widgets/common/base/partial-container.directive";
|
|
11
|
-
import * as i9 from "./widgets/common/
|
|
12
|
-
import * as i10 from "./
|
|
13
|
-
import * as i11 from "./
|
|
14
|
-
import * as i12 from "./widgets/common/
|
|
15
|
-
import * as i13 from "./
|
|
16
|
-
import * as i14 from "./pipes/
|
|
17
|
-
import * as i15 from "./pipes/
|
|
18
|
-
import * as i16 from "./pipes/
|
|
19
|
-
import * as i17 from "
|
|
20
|
-
import * as i18 from "@
|
|
11
|
+
import * as i9 from "./widgets/common/base/custom-widget-container.directive";
|
|
12
|
+
import * as i10 from "./widgets/common/redraw/redrawable.directive";
|
|
13
|
+
import * as i11 from "./directives/show-in-device.directive";
|
|
14
|
+
import * as i12 from "./widgets/common/smooth-scroll/smooth-scroll.directive";
|
|
15
|
+
import * as i13 from "./widgets/common/base/text-content.directive";
|
|
16
|
+
import * as i14 from "./pipes/custom-pipes";
|
|
17
|
+
import * as i15 from "./pipes/trust-as.pipe";
|
|
18
|
+
import * as i16 from "./pipes/image.pipe";
|
|
19
|
+
import * as i17 from "./pipes/sanitize.pipe";
|
|
20
|
+
import * as i18 from "@angular/common";
|
|
21
|
+
import * as i19 from "@wm/security";
|
|
21
22
|
export declare class WmComponentsModule {
|
|
22
23
|
static forRoot(): ModuleWithProviders<WmComponentsModule>;
|
|
23
24
|
static ɵfac: i0.ɵɵFactoryDeclaration<WmComponentsModule, never>;
|
|
24
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<WmComponentsModule, [typeof i1.ContainerDirective, typeof i2.ItemTemplateDirective, typeof i3.RepeatTemplateDirective, typeof i4.LazyLoadDirective, typeof i5.MessageComponent, typeof i6.PartialDirective, typeof i7.PartialParamHandlerDirective, typeof i7.PartialParamDirective, typeof i8.PartialContainerDirective, typeof i9.
|
|
25
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<WmComponentsModule, [typeof i1.ContainerDirective, typeof i2.ItemTemplateDirective, typeof i3.RepeatTemplateDirective, typeof i4.LazyLoadDirective, typeof i5.MessageComponent, typeof i6.PartialDirective, typeof i7.PartialParamHandlerDirective, typeof i7.PartialParamDirective, typeof i8.PartialContainerDirective, typeof i9.CustomWidgetContainerDirective, typeof i10.RedrawableDirective, typeof i11.ShowInDeviceDirective, typeof i12.SmoothScrollDirective, typeof i13.TextContentDirective, typeof i14.ToDatePipe, typeof i14.FileIconClassPipe, typeof i14.FileExtensionFromMimePipe, typeof i14.FilterPipe, typeof i14.FileSizePipe, typeof i14.ToNumberPipe, typeof i14.ToCurrencyPipe, typeof i14.PrefixPipe, typeof i14.SuffixPipe, typeof i14.TimeFromNowPipe, typeof i14.NumberToStringPipe, typeof i14.StateClassPipe, typeof i14.StringToNumberPipe, typeof i14.TrailingZeroDecimalPipe, typeof i15.TrustAsPipe, typeof i16.ImagePipe, typeof i14.CustomPipe, typeof i17.SanitizePipe], [typeof i18.CommonModule, typeof i19.SecurityModule], [typeof i1.ContainerDirective, typeof i2.ItemTemplateDirective, typeof i3.RepeatTemplateDirective, typeof i4.LazyLoadDirective, typeof i5.MessageComponent, typeof i6.PartialDirective, typeof i7.PartialParamHandlerDirective, typeof i7.PartialParamDirective, typeof i8.PartialContainerDirective, typeof i9.CustomWidgetContainerDirective, typeof i10.RedrawableDirective, typeof i11.ShowInDeviceDirective, typeof i12.SmoothScrollDirective, typeof i13.TextContentDirective, typeof i14.ToDatePipe, typeof i14.FileIconClassPipe, typeof i14.FileExtensionFromMimePipe, typeof i14.FilterPipe, typeof i14.FileSizePipe, typeof i14.ToNumberPipe, typeof i14.ToCurrencyPipe, typeof i14.PrefixPipe, typeof i14.SuffixPipe, typeof i14.TimeFromNowPipe, typeof i14.NumberToStringPipe, typeof i14.StateClassPipe, typeof i14.StringToNumberPipe, typeof i14.TrailingZeroDecimalPipe, typeof i15.TrustAsPipe, typeof i16.ImagePipe, typeof i14.CustomPipe, typeof i17.SanitizePipe]>;
|
|
25
26
|
static ɵinj: i0.ɵɵInjectorDeclaration<WmComponentsModule>;
|
|
26
27
|
}
|
|
@@ -11,6 +11,7 @@ import { MessageComponent } from './widgets/common/message/message.component';
|
|
|
11
11
|
import { PartialDirective } from './widgets/common/partial/partial.directive';
|
|
12
12
|
import { PartialParamDirective, PartialParamHandlerDirective } from './widgets/common/partial-param/partial-param.directive';
|
|
13
13
|
import { PartialContainerDirective } from "./widgets/common/base/partial-container.directive";
|
|
14
|
+
import { CustomWidgetContainerDirective } from "./widgets/common/base/custom-widget-container.directive";
|
|
14
15
|
import { RedrawableDirective } from './widgets/common/redraw/redrawable.directive';
|
|
15
16
|
import { ShowInDeviceDirective } from './directives/show-in-device.directive';
|
|
16
17
|
import { SmoothScrollDirective } from './widgets/common/smooth-scroll/smooth-scroll.directive';
|
|
@@ -30,6 +31,7 @@ const wmComponents = [
|
|
|
30
31
|
PartialParamHandlerDirective,
|
|
31
32
|
PartialParamDirective,
|
|
32
33
|
PartialContainerDirective,
|
|
34
|
+
CustomWidgetContainerDirective,
|
|
33
35
|
RedrawableDirective,
|
|
34
36
|
ShowInDeviceDirective,
|
|
35
37
|
SmoothScrollDirective,
|
|
@@ -97,6 +99,7 @@ export class WmComponentsModule {
|
|
|
97
99
|
PartialParamHandlerDirective,
|
|
98
100
|
PartialParamDirective,
|
|
99
101
|
PartialContainerDirective,
|
|
102
|
+
CustomWidgetContainerDirective,
|
|
100
103
|
RedrawableDirective,
|
|
101
104
|
ShowInDeviceDirective,
|
|
102
105
|
SmoothScrollDirective,
|
|
@@ -127,6 +130,7 @@ export class WmComponentsModule {
|
|
|
127
130
|
PartialParamHandlerDirective,
|
|
128
131
|
PartialParamDirective,
|
|
129
132
|
PartialContainerDirective,
|
|
133
|
+
CustomWidgetContainerDirective,
|
|
130
134
|
RedrawableDirective,
|
|
131
135
|
ShowInDeviceDirective,
|
|
132
136
|
SmoothScrollDirective,
|
|
@@ -148,4 +152,4 @@ export class WmComponentsModule {
|
|
|
148
152
|
ImagePipe,
|
|
149
153
|
CustomPipe,
|
|
150
154
|
SanitizePipe] }); })();
|
|
151
|
-
//# sourceMappingURL=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UsXG4gICAgICAgICAgICAgICAgRmlsdGVyUGlwZSxcbiAgICAgICAgICAgICAgICBUcmFpbGluZ1plcm9EZWNpbWFsUGlwZSxcbiAgICAgICAgICAgICAgICBUcnVzdEFzUGlwZSxcbiAgICAgICAgICAgICAgICBJbWFnZVBpcGUsXG4gICAgICAgICAgICAgICAgQ3VzdG9tUGlwZSxcbiAgICAgICAgICAgICAgICBTYW5pdGl6ZVBpcGUsXG4gICAgICAgICAgICAgICAgTG9jYXRpb24sXG4gICAgICAgICAgICAgICAge3Byb3ZpZGU6IEFic3RyYWN0RGlhbG9nU2VydmljZSwgdXNlQ2xhc3M6IERpYWxvZ1NlcnZpY2VJbXBsfVxuICAgICAgICAgICAgXVxuICAgICAgICB9O1xuICAgIH1cbn1cbiJdfQ==
|
|
@@ -7,6 +7,7 @@ export { BaseComponent } from './widgets/common/base/base.component';
|
|
|
7
7
|
export * from './widgets/common/base/base-container.component';
|
|
8
8
|
export { DatasetAwareNavComponent } from './widgets/common/base/dataset-aware-nav.component';
|
|
9
9
|
export * from './widgets/common/base/partial-container.directive';
|
|
10
|
+
export * from './widgets/common/base/custom-widget-container.directive';
|
|
10
11
|
export * from './widgets/common/base/base-field-validations';
|
|
11
12
|
export * from './widgets/common/item-template/item-template.directive';
|
|
12
13
|
export * from './widgets/common/repeat-template/repeat-template.directive';
|
|
@@ -32,4 +33,4 @@ export * from './widgets/common/partial-param/partial-param.directive';
|
|
|
32
33
|
export * from './widgets/common/smooth-scroll/smooth-scroll.directive';
|
|
33
34
|
export * from './widgets/common/base/text-content.directive';
|
|
34
35
|
export * from './directives/show-in-device.directive';
|
|
35
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
36
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL2NvbXBvbmVudHMvYmFzZS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