@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,13 +6,13 @@
|
|
|
6
6
|
|
|
7
7
|
const carouselTagName = 'carousel';
|
|
8
8
|
const dataSetKey$5 = 'dataset';
|
|
9
|
-
const idGen$
|
|
9
|
+
const idGen$t = new core.IDGenerator('wm_carousel_ref_');
|
|
10
10
|
const isDynamicCarousel = node => node.attrs.find(attr => attr.name === 'type' && attr.value === 'dynamic');
|
|
11
11
|
transpiler.register('wm-carousel', () => {
|
|
12
12
|
return {
|
|
13
13
|
pre: (attrs, shared) => {
|
|
14
14
|
// generating unique Id for the carousel
|
|
15
|
-
const counter = idGen$
|
|
15
|
+
const counter = idGen$t.nextUid();
|
|
16
16
|
shared.set('carousel_ref', counter);
|
|
17
17
|
return `<div class="app-carousel carousel"><${carouselTagName} wmCarousel #${counter}="wmCarousel" ${transpiler.getAttrMarkup(attrs)} interval="0" [ngClass]="${counter}.navigationClass">`;
|
|
18
18
|
},
|
|
@@ -80,11 +80,11 @@
|
|
|
80
80
|
default: carouselTemplate_build
|
|
81
81
|
});
|
|
82
82
|
|
|
83
|
-
const tagName$
|
|
83
|
+
const tagName$1C = 'div';
|
|
84
84
|
transpiler.register('wm-login', () => {
|
|
85
85
|
return {
|
|
86
|
-
pre: attrs => `<${tagName$
|
|
87
|
-
post: () => `</${tagName$
|
|
86
|
+
pre: attrs => `<${tagName$1C} wmLogin ${transpiler.getAttrMarkup(attrs)} eventsource.bind="Actions.loginAction">`,
|
|
87
|
+
post: () => `</${tagName$1C}>`,
|
|
88
88
|
provide: () => {
|
|
89
89
|
const provider = new Map();
|
|
90
90
|
provider.set('isLogin', true);
|
|
@@ -99,11 +99,11 @@
|
|
|
99
99
|
default: login_build
|
|
100
100
|
});
|
|
101
101
|
|
|
102
|
-
const tagName$
|
|
102
|
+
const tagName$1B = 'marquee';
|
|
103
103
|
transpiler.register('wm-marquee', () => {
|
|
104
104
|
return {
|
|
105
|
-
pre: attrs => `<${tagName$
|
|
106
|
-
post: () => `</${tagName$
|
|
105
|
+
pre: attrs => `<${tagName$1B} onmouseover="this.stop();" onmouseout="this.start();" wmMarquee role="marquee" aria-live="off" ${transpiler.getAttrMarkup(attrs)}>`,
|
|
106
|
+
post: () => `</${tagName$1B}>`
|
|
107
107
|
};
|
|
108
108
|
});
|
|
109
109
|
var marquee_build = () => { };
|
|
@@ -113,15 +113,15 @@
|
|
|
113
113
|
default: marquee_build
|
|
114
114
|
});
|
|
115
115
|
|
|
116
|
-
const tagName$
|
|
117
|
-
const idGen$
|
|
116
|
+
const tagName$1A = 'a';
|
|
117
|
+
const idGen$s = new core.IDGenerator('wm_anchor');
|
|
118
118
|
transpiler.register('wm-anchor', () => {
|
|
119
119
|
return {
|
|
120
120
|
pre: (attrs) => {
|
|
121
|
-
const counter = idGen$
|
|
122
|
-
return `<${tagName$
|
|
121
|
+
const counter = idGen$s.nextUid();
|
|
122
|
+
return `<${tagName$1A} wmAnchor #${counter}="wmAnchor" role="link" data-identifier="anchor" [attr.aria-label]="${counter}.arialabel || (${counter}.badgevalue ? ${counter}.caption + ' ' + ${counter}.badgevalue : ${counter}.caption) || null" ${transpiler.getAttrMarkup(attrs)}>`;
|
|
123
123
|
},
|
|
124
|
-
post: () => `</${tagName$
|
|
124
|
+
post: () => `</${tagName$1A}>`
|
|
125
125
|
};
|
|
126
126
|
});
|
|
127
127
|
var anchor_build = () => { };
|
|
@@ -131,11 +131,11 @@
|
|
|
131
131
|
default: anchor_build
|
|
132
132
|
});
|
|
133
133
|
|
|
134
|
-
const tagName$
|
|
134
|
+
const tagName$1z = 'div';
|
|
135
135
|
transpiler.register('wm-audio', () => {
|
|
136
136
|
return {
|
|
137
|
-
pre: attrs => `<${tagName$
|
|
138
|
-
post: () => `</${tagName$
|
|
137
|
+
pre: attrs => `<${tagName$1z} wmAudio ${transpiler.getAttrMarkup(attrs)}>`,
|
|
138
|
+
post: () => `</${tagName$1z}>`
|
|
139
139
|
};
|
|
140
140
|
});
|
|
141
141
|
var audio_build = () => { };
|
|
@@ -145,15 +145,15 @@
|
|
|
145
145
|
default: audio_build
|
|
146
146
|
});
|
|
147
147
|
|
|
148
|
-
const tagName$
|
|
149
|
-
const idGen$
|
|
148
|
+
const tagName$1y = 'div';
|
|
149
|
+
const idGen$r = new core.IDGenerator('wm_html');
|
|
150
150
|
transpiler.register('wm-html', () => {
|
|
151
151
|
return {
|
|
152
152
|
pre: (attrs) => {
|
|
153
|
-
const counter = idGen$
|
|
154
|
-
return `<${tagName$
|
|
153
|
+
const counter = idGen$r.nextUid();
|
|
154
|
+
return `<${tagName$1y} wmHtml #${counter}="wmHtml" role="application" [attr.aria-label]="${counter}.arialabel || 'HTML content'" ${transpiler.getAttrMarkup(attrs)}>`;
|
|
155
155
|
},
|
|
156
|
-
post: () => `</${tagName$
|
|
156
|
+
post: () => `</${tagName$1y}>`
|
|
157
157
|
};
|
|
158
158
|
});
|
|
159
159
|
var html_build = () => { };
|
|
@@ -163,11 +163,11 @@
|
|
|
163
163
|
default: html_build
|
|
164
164
|
});
|
|
165
165
|
|
|
166
|
-
const tagName$
|
|
166
|
+
const tagName$1x = 'span';
|
|
167
167
|
transpiler.register('wm-icon', () => {
|
|
168
168
|
return {
|
|
169
|
-
pre: attrs => `<${tagName$
|
|
170
|
-
post: () => `</${tagName$
|
|
169
|
+
pre: attrs => `<${tagName$1x} wmIcon ${transpiler.getAttrMarkup(attrs)}>`,
|
|
170
|
+
post: () => `</${tagName$1x}>`
|
|
171
171
|
};
|
|
172
172
|
});
|
|
173
173
|
var icon_build = () => { };
|
|
@@ -177,11 +177,11 @@
|
|
|
177
177
|
default: icon_build
|
|
178
178
|
});
|
|
179
179
|
|
|
180
|
-
const tagName$
|
|
180
|
+
const tagName$1w = 'div';
|
|
181
181
|
transpiler.register('wm-iframe', () => {
|
|
182
182
|
return {
|
|
183
|
-
pre: attrs => `<${tagName$
|
|
184
|
-
post: () => `</${tagName$
|
|
183
|
+
pre: attrs => `<${tagName$1w} wmIframe ${transpiler.getAttrMarkup(attrs)}>`,
|
|
184
|
+
post: () => `</${tagName$1w}>`
|
|
185
185
|
};
|
|
186
186
|
});
|
|
187
187
|
var iframe_build = () => { };
|
|
@@ -191,8 +191,8 @@
|
|
|
191
191
|
default: iframe_build
|
|
192
192
|
});
|
|
193
193
|
|
|
194
|
-
let tagName$
|
|
195
|
-
const idGen$
|
|
194
|
+
let tagName$1v = 'p';
|
|
195
|
+
const idGen$q = new core.IDGenerator('wm_label');
|
|
196
196
|
transpiler.register('wm-label', () => {
|
|
197
197
|
return {
|
|
198
198
|
pre: (attrs) => {
|
|
@@ -201,15 +201,15 @@
|
|
|
201
201
|
const classList = attrs.get('class') ? attrs.get('class').split(' ').filter(element => ["h1", "h2", "h3", "h4", "h5", "h6", "p"].includes(element)) : [];
|
|
202
202
|
attrs.set('type', classList.length ? classList[0] : "p");
|
|
203
203
|
}
|
|
204
|
-
tagName$
|
|
204
|
+
tagName$1v = attrs.get('type');
|
|
205
205
|
}
|
|
206
206
|
else {
|
|
207
|
-
tagName$
|
|
207
|
+
tagName$1v = 'label';
|
|
208
208
|
}
|
|
209
|
-
const counter = idGen$
|
|
210
|
-
return `<${tagName$
|
|
209
|
+
const counter = idGen$q.nextUid();
|
|
210
|
+
return `<${tagName$1v} wmLabel #${counter}="wmLabel" ${transpiler.getAttrMarkup(attrs)}>`;
|
|
211
211
|
},
|
|
212
|
-
post: () => `</${tagName$
|
|
212
|
+
post: () => `</${tagName$1v}>`
|
|
213
213
|
};
|
|
214
214
|
});
|
|
215
215
|
var label_build = () => { };
|
|
@@ -219,13 +219,13 @@
|
|
|
219
219
|
default: label_build
|
|
220
220
|
});
|
|
221
221
|
|
|
222
|
-
const tagName$
|
|
223
|
-
const idGen$
|
|
222
|
+
const tagName$1u = 'img';
|
|
223
|
+
const idGen$p = new core.IDGenerator('wm_picture');
|
|
224
224
|
transpiler.register('wm-picture', () => {
|
|
225
225
|
return {
|
|
226
226
|
pre: (attrs) => {
|
|
227
|
-
const counter = idGen$
|
|
228
|
-
return `<${tagName$
|
|
227
|
+
const counter = idGen$p.nextUid();
|
|
228
|
+
return `<${tagName$1u} wmPicture #${counter}="wmPicture" [alt]="${counter}.alttext" wmImageCache="${attrs.get('offline') || 'true'}" [attr.aria-label]="${counter}.arialabel || 'Image'" ${transpiler.getAttrMarkup(attrs)}>`;
|
|
229
229
|
}
|
|
230
230
|
};
|
|
231
231
|
});
|
|
@@ -236,15 +236,15 @@
|
|
|
236
236
|
default: picture_build
|
|
237
237
|
});
|
|
238
238
|
|
|
239
|
-
const tagName$
|
|
240
|
-
const idGen$
|
|
239
|
+
const tagName$1t = 'div';
|
|
240
|
+
const idGen$o = new core.IDGenerator('wm_spinner');
|
|
241
241
|
transpiler.register('wm-spinner', () => {
|
|
242
242
|
return {
|
|
243
243
|
pre: (attrs) => {
|
|
244
|
-
const counter = idGen$
|
|
245
|
-
return `<${tagName$
|
|
244
|
+
const counter = idGen$o.nextUid();
|
|
245
|
+
return `<${tagName$1t} wmSpinner #${counter}="wmSpinner" role="alert" [attr.aria-label]="${counter}.arialabel || 'Loading...'" aria-live="assertive" aria-busy="true" ${transpiler.getAttrMarkup(attrs)}>`;
|
|
246
246
|
},
|
|
247
|
-
post: () => `</${tagName$
|
|
247
|
+
post: () => `</${tagName$1t}>`
|
|
248
248
|
};
|
|
249
249
|
});
|
|
250
250
|
var spinner_build = () => { };
|
|
@@ -254,7 +254,7 @@
|
|
|
254
254
|
default: spinner_build
|
|
255
255
|
});
|
|
256
256
|
|
|
257
|
-
const tagName$
|
|
257
|
+
const tagName$1s = 'div';
|
|
258
258
|
const getAttr = (node, attrName) => node.attrs.find(attr => attr.name === attrName);
|
|
259
259
|
const getAttrValue = (node, attrName) => {
|
|
260
260
|
const match = getAttr(node, attrName);
|
|
@@ -282,8 +282,8 @@
|
|
|
282
282
|
}
|
|
283
283
|
}
|
|
284
284
|
},
|
|
285
|
-
pre: attrs => `<${tagName$
|
|
286
|
-
post: () => `</${tagName$
|
|
285
|
+
pre: attrs => `<${tagName$1s} wmProgressBar ${transpiler.getAttrMarkup(attrs)}>`,
|
|
286
|
+
post: () => `</${tagName$1s}>`
|
|
287
287
|
};
|
|
288
288
|
});
|
|
289
289
|
var progressBar_build = () => { };
|
|
@@ -293,15 +293,15 @@
|
|
|
293
293
|
default: progressBar_build
|
|
294
294
|
});
|
|
295
295
|
|
|
296
|
-
const tagName$
|
|
297
|
-
const idGen$
|
|
296
|
+
const tagName$1r = 'div';
|
|
297
|
+
const idGen$n = new core.IDGenerator('wm_progress_circle');
|
|
298
298
|
transpiler.register('wm-progress-circle', () => {
|
|
299
299
|
return {
|
|
300
300
|
pre: (attrs) => {
|
|
301
|
-
const counter = idGen$
|
|
302
|
-
return `<${tagName$
|
|
301
|
+
const counter = idGen$n.nextUid();
|
|
302
|
+
return `<${tagName$1r} wmProgressCircle #${counter}="wmProgressCircle" role="progressbar" [attr.aria-label]="${counter}.arialabel || 'circle-progress'" [attr.hint]="${counter}.hint" [attr.aria-valuetext]="${counter}.displayValue" [attr.aria-valuemin]="${counter}.minvalue" [attr.aria-valuemax]="${counter}.maxvalue" ${transpiler.getAttrMarkup(attrs)}>`;
|
|
303
303
|
},
|
|
304
|
-
post: () => `</${tagName$
|
|
304
|
+
post: () => `</${tagName$1r}>`
|
|
305
305
|
};
|
|
306
306
|
});
|
|
307
307
|
var progressCircle_build = () => { };
|
|
@@ -311,15 +311,15 @@
|
|
|
311
311
|
default: progressCircle_build
|
|
312
312
|
});
|
|
313
313
|
|
|
314
|
-
const tagName$
|
|
315
|
-
const idGen$
|
|
314
|
+
const tagName$1q = 'div';
|
|
315
|
+
const idGen$m = new core.IDGenerator('wm_richtexteditor');
|
|
316
316
|
transpiler.register('wm-richtexteditor', () => {
|
|
317
317
|
return {
|
|
318
318
|
pre: (attrs) => {
|
|
319
|
-
const counter = idGen$
|
|
320
|
-
return `<${tagName$
|
|
319
|
+
const counter = idGen$m.nextUid();
|
|
320
|
+
return `<${tagName$1q} wmRichTextEditor #${counter}="wmRichTextEditor" role="textbox" [attr.aria-label]="${counter}.arialabel || 'Richtext editor'" ${transpiler.getFormMarkupAttr(attrs)}>`;
|
|
321
321
|
},
|
|
322
|
-
post: () => `</${tagName$
|
|
322
|
+
post: () => `</${tagName$1q}>`
|
|
323
323
|
};
|
|
324
324
|
});
|
|
325
325
|
var richTextEditor_build = () => { };
|
|
@@ -329,11 +329,11 @@
|
|
|
329
329
|
default: richTextEditor_build
|
|
330
330
|
});
|
|
331
331
|
|
|
332
|
-
const tagName$
|
|
332
|
+
const tagName$1p = 'div';
|
|
333
333
|
transpiler.register('wm-search', () => {
|
|
334
334
|
return {
|
|
335
|
-
pre: attrs => `<${tagName$
|
|
336
|
-
post: () => `</${tagName$
|
|
335
|
+
pre: attrs => `<${tagName$1p} wmSearch ${transpiler.getFormMarkupAttr(attrs)} ${core.getNgModelAttr(attrs)}>`,
|
|
336
|
+
post: () => `</${tagName$1p}>`
|
|
337
337
|
};
|
|
338
338
|
});
|
|
339
339
|
var search_build = () => { };
|
|
@@ -343,11 +343,11 @@
|
|
|
343
343
|
default: search_build
|
|
344
344
|
});
|
|
345
345
|
|
|
346
|
-
const tagName$
|
|
346
|
+
const tagName$1o = 'ul';
|
|
347
347
|
transpiler.register('wm-tree', () => {
|
|
348
348
|
return {
|
|
349
|
-
pre: attrs => `<${tagName$
|
|
350
|
-
post: () => `</${tagName$
|
|
349
|
+
pre: attrs => `<${tagName$1o} wmTree class="ztree" ${transpiler.getAttrMarkup(attrs)}>`,
|
|
350
|
+
post: () => `</${tagName$1o}>`
|
|
351
351
|
};
|
|
352
352
|
});
|
|
353
353
|
|
|
@@ -355,11 +355,11 @@
|
|
|
355
355
|
__proto__: null
|
|
356
356
|
});
|
|
357
357
|
|
|
358
|
-
const tagName$
|
|
358
|
+
const tagName$1n = 'div';
|
|
359
359
|
transpiler.register('wm-card', () => {
|
|
360
360
|
return {
|
|
361
|
-
pre: attrs => `<${tagName$
|
|
362
|
-
post: () => `</${tagName$
|
|
361
|
+
pre: attrs => `<${tagName$1n} wmCard ${transpiler.getAttrMarkup(attrs)}>`,
|
|
362
|
+
post: () => `</${tagName$1n}>`
|
|
363
363
|
};
|
|
364
364
|
});
|
|
365
365
|
var card_build = () => { };
|
|
@@ -369,11 +369,11 @@
|
|
|
369
369
|
default: card_build
|
|
370
370
|
});
|
|
371
371
|
|
|
372
|
-
const tagName$
|
|
372
|
+
const tagName$1m = 'div';
|
|
373
373
|
transpiler.register('wm-card-content', () => {
|
|
374
374
|
return {
|
|
375
|
-
pre: attrs => `<${tagName$
|
|
376
|
-
post: () => `</${tagName$
|
|
375
|
+
pre: attrs => `<${tagName$1m} wmCardContent partialContainer ${transpiler.getAttrMarkup(attrs)}>`,
|
|
376
|
+
post: () => `</${tagName$1m}>`
|
|
377
377
|
};
|
|
378
378
|
});
|
|
379
379
|
var cardContent_build = () => { };
|
|
@@ -383,11 +383,11 @@
|
|
|
383
383
|
default: cardContent_build
|
|
384
384
|
});
|
|
385
385
|
|
|
386
|
-
const tagName$
|
|
386
|
+
const tagName$1l = 'div';
|
|
387
387
|
transpiler.register('wm-card-actions', () => {
|
|
388
388
|
return {
|
|
389
|
-
pre: attrs => `<${tagName$
|
|
390
|
-
post: () => `</${tagName$
|
|
389
|
+
pre: attrs => `<${tagName$1l} wmCardActions ${transpiler.getAttrMarkup(attrs)}>`,
|
|
390
|
+
post: () => `</${tagName$1l}>`
|
|
391
391
|
};
|
|
392
392
|
});
|
|
393
393
|
var cardActions_build = () => { };
|
|
@@ -397,11 +397,11 @@
|
|
|
397
397
|
default: cardActions_build
|
|
398
398
|
});
|
|
399
399
|
|
|
400
|
-
const tagName$
|
|
400
|
+
const tagName$1k = 'div';
|
|
401
401
|
transpiler.register('wm-card-footer', () => {
|
|
402
402
|
return {
|
|
403
|
-
pre: attrs => `<${tagName$
|
|
404
|
-
post: () => `</${tagName$
|
|
403
|
+
pre: attrs => `<${tagName$1k} wmCardFooter ${transpiler.getAttrMarkup(attrs)}>`,
|
|
404
|
+
post: () => `</${tagName$1k}>`
|
|
405
405
|
};
|
|
406
406
|
});
|
|
407
407
|
var cardFooter_build = () => { };
|
|
@@ -411,11 +411,11 @@
|
|
|
411
411
|
default: cardFooter_build
|
|
412
412
|
});
|
|
413
413
|
|
|
414
|
-
const tagName$
|
|
414
|
+
const tagName$1j = 'div';
|
|
415
415
|
transpiler.register('wm-chart', () => {
|
|
416
416
|
return {
|
|
417
|
-
pre: attrs => `<${tagName$
|
|
418
|
-
post: () => `</${tagName$
|
|
417
|
+
pre: attrs => `<${tagName$1j} wmChart redrawable aria-label="${attrs.get('type')} Chart" ${transpiler.getAttrMarkup(attrs)}>`,
|
|
418
|
+
post: () => `</${tagName$1j}>`
|
|
419
419
|
};
|
|
420
420
|
});
|
|
421
421
|
var chart_build = () => { };
|
|
@@ -425,19 +425,19 @@
|
|
|
425
425
|
default: chart_build
|
|
426
426
|
});
|
|
427
427
|
|
|
428
|
-
const tagName$
|
|
428
|
+
const tagName$1i = 'div';
|
|
429
429
|
const dataSetKey$4 = 'dataset';
|
|
430
|
-
const idGen$
|
|
430
|
+
const idGen$l = new core.IDGenerator('wm_accordion_ref_');
|
|
431
431
|
const isDynamicAccordion = node => node.attrs.find(attr => attr.name === 'type' && attr.value === 'dynamic');
|
|
432
432
|
transpiler.register('wm-accordion', () => {
|
|
433
433
|
return {
|
|
434
434
|
pre: (attrs, shared) => {
|
|
435
435
|
// generating unique Id for the accordion
|
|
436
|
-
const counter = idGen$
|
|
436
|
+
const counter = idGen$l.nextUid();
|
|
437
437
|
shared.set('accordion_ref', counter);
|
|
438
|
-
return `<${tagName$
|
|
438
|
+
return `<${tagName$1i} wmAccordion #${counter}="wmAccordion" ${transpiler.getAttrMarkup(attrs)}>`;
|
|
439
439
|
},
|
|
440
|
-
post: () => `</${tagName$
|
|
440
|
+
post: () => `</${tagName$1i}>`,
|
|
441
441
|
template: (node, shared) => {
|
|
442
442
|
// check if the accordion is dynamic
|
|
443
443
|
if (isDynamicAccordion(node)) {
|
|
@@ -468,15 +468,15 @@
|
|
|
468
468
|
default: accordion_build
|
|
469
469
|
});
|
|
470
470
|
|
|
471
|
-
const tagName$
|
|
472
|
-
const idGen$
|
|
471
|
+
const tagName$1h = 'div';
|
|
472
|
+
const idGen$k = new core.IDGenerator('wm_accordionpane');
|
|
473
473
|
transpiler.register('wm-accordionpane', () => {
|
|
474
474
|
return {
|
|
475
475
|
pre: (attrs) => {
|
|
476
|
-
const counter = idGen$
|
|
477
|
-
return `<${tagName$
|
|
476
|
+
const counter = idGen$k.nextUid();
|
|
477
|
+
return `<${tagName$1h} #${counter}="wmAccordionPane" wmAccordionPane partialContainer wm-navigable-element="true" ${transpiler.getAttrMarkup(attrs)}>`;
|
|
478
478
|
},
|
|
479
|
-
post: () => `</${tagName$
|
|
479
|
+
post: () => `</${tagName$1h}>`
|
|
480
480
|
};
|
|
481
481
|
});
|
|
482
482
|
var accordionPane_build = () => { };
|
|
@@ -486,11 +486,11 @@
|
|
|
486
486
|
default: accordionPane_build
|
|
487
487
|
});
|
|
488
488
|
|
|
489
|
-
const tagName$
|
|
489
|
+
const tagName$1g = 'div';
|
|
490
490
|
transpiler.register('wm-container', () => {
|
|
491
491
|
return {
|
|
492
|
-
pre: attrs => `<${tagName$
|
|
493
|
-
post: () => `</${tagName$
|
|
492
|
+
pre: attrs => `<${tagName$1g} wmContainer partialContainer wmSmoothscroll="${attrs.get('smoothscroll') || 'false'}" ${transpiler.getAttrMarkup(attrs)}>`,
|
|
493
|
+
post: () => `</${tagName$1g}>`
|
|
494
494
|
};
|
|
495
495
|
});
|
|
496
496
|
var container_build = () => { };
|
|
@@ -500,11 +500,11 @@
|
|
|
500
500
|
default: container_build
|
|
501
501
|
});
|
|
502
502
|
|
|
503
|
-
const tagName$
|
|
503
|
+
const tagName$1f = 'div';
|
|
504
504
|
transpiler.register('wm-gridcolumn', () => {
|
|
505
505
|
return {
|
|
506
|
-
pre: attrs => `<${tagName$
|
|
507
|
-
post: () => `</${tagName$
|
|
506
|
+
pre: attrs => `<${tagName$1f} wmLayoutGridColumn ${transpiler.getAttrMarkup(attrs)}>`,
|
|
507
|
+
post: () => `</${tagName$1f}>`
|
|
508
508
|
};
|
|
509
509
|
});
|
|
510
510
|
var layoutGridColumn_build = () => { };
|
|
@@ -514,11 +514,11 @@
|
|
|
514
514
|
default: layoutGridColumn_build
|
|
515
515
|
});
|
|
516
516
|
|
|
517
|
-
const tagName$
|
|
517
|
+
const tagName$1e = 'div';
|
|
518
518
|
transpiler.register('wm-gridrow', () => {
|
|
519
519
|
return {
|
|
520
|
-
pre: attrs => `<${tagName$
|
|
521
|
-
post: () => `</${tagName$
|
|
520
|
+
pre: attrs => `<${tagName$1e} wmLayoutGridRow ${transpiler.getAttrMarkup(attrs)}>`,
|
|
521
|
+
post: () => `</${tagName$1e}>`
|
|
522
522
|
};
|
|
523
523
|
});
|
|
524
524
|
var layoutGridRow_build = () => { };
|
|
@@ -528,11 +528,11 @@
|
|
|
528
528
|
default: layoutGridRow_build
|
|
529
529
|
});
|
|
530
530
|
|
|
531
|
-
const tagName$
|
|
531
|
+
const tagName$1d = 'div';
|
|
532
532
|
transpiler.register('wm-layoutgrid', () => {
|
|
533
533
|
return {
|
|
534
|
-
pre: attrs => `<${tagName$
|
|
535
|
-
post: () => `</${tagName$
|
|
534
|
+
pre: attrs => `<${tagName$1d} wmLayoutGrid ${transpiler.getAttrMarkup(attrs)}>`,
|
|
535
|
+
post: () => `</${tagName$1d}>`
|
|
536
536
|
};
|
|
537
537
|
});
|
|
538
538
|
var layoutGrid_build = () => { };
|
|
@@ -542,21 +542,21 @@
|
|
|
542
542
|
default: layoutGrid_build
|
|
543
543
|
});
|
|
544
544
|
|
|
545
|
-
const tagName$
|
|
546
|
-
const idGen$
|
|
545
|
+
const tagName$1c = 'div';
|
|
546
|
+
const idGen$j = new core.IDGenerator('wm_panel');
|
|
547
547
|
transpiler.register('wm-panel', () => {
|
|
548
548
|
return {
|
|
549
549
|
pre: (attrs) => {
|
|
550
|
-
const counter = idGen$
|
|
551
|
-
return `<${tagName$
|
|
550
|
+
const counter = idGen$j.nextUid();
|
|
551
|
+
return `<${tagName$1c} wmPanel #${counter}="wmPanel" partialContainer wm-navigable-element="true" ${transpiler.getAttrMarkup(attrs)}>`;
|
|
552
552
|
},
|
|
553
|
-
post: () => `</${tagName$
|
|
553
|
+
post: () => `</${tagName$1c}>`
|
|
554
554
|
};
|
|
555
555
|
});
|
|
556
556
|
transpiler.register('wm-panel-footer', () => {
|
|
557
557
|
return {
|
|
558
|
-
pre: attrs => `<${tagName$
|
|
559
|
-
post: () => `</${tagName$
|
|
558
|
+
pre: attrs => `<${tagName$1c} wmPanelFooter ${transpiler.getAttrMarkup(attrs)}>`,
|
|
559
|
+
post: () => `</${tagName$1c}>`
|
|
560
560
|
};
|
|
561
561
|
});
|
|
562
562
|
var panel_build = () => { };
|
|
@@ -566,11 +566,11 @@
|
|
|
566
566
|
default: panel_build
|
|
567
567
|
});
|
|
568
568
|
|
|
569
|
-
const tagName$
|
|
569
|
+
const tagName$1b = 'div';
|
|
570
570
|
transpiler.register('wm-segmented-control', () => {
|
|
571
571
|
return {
|
|
572
|
-
pre: attrs => `<${tagName$
|
|
573
|
-
post: () => `</${tagName$
|
|
572
|
+
pre: attrs => `<${tagName$1b} wmSegmentedControl ${transpiler.getAttrMarkup(attrs)}>`,
|
|
573
|
+
post: () => `</${tagName$1b}>`
|
|
574
574
|
};
|
|
575
575
|
});
|
|
576
576
|
var segmentedControl_build = () => { };
|
|
@@ -580,11 +580,11 @@
|
|
|
580
580
|
default: segmentedControl_build
|
|
581
581
|
});
|
|
582
582
|
|
|
583
|
-
const tagName$
|
|
583
|
+
const tagName$1a = 'li';
|
|
584
584
|
transpiler.register('wm-segment-content', () => {
|
|
585
585
|
return {
|
|
586
|
-
pre: attrs => `<${tagName$
|
|
587
|
-
post: () => `</${tagName$
|
|
586
|
+
pre: attrs => `<${tagName$1a} wmSegmentContent partialContainer wmSmoothscroll=${attrs.get('smoothscroll') || 'false'} wm-navigable-element="true" ${transpiler.getAttrMarkup(attrs)}>`,
|
|
587
|
+
post: () => `</${tagName$1a}>`
|
|
588
588
|
};
|
|
589
589
|
});
|
|
590
590
|
var segmentContent_build = () => { };
|
|
@@ -622,19 +622,19 @@
|
|
|
622
622
|
default: repeatTemplate_build
|
|
623
623
|
});
|
|
624
624
|
|
|
625
|
-
const tagName$
|
|
625
|
+
const tagName$19 = 'div';
|
|
626
626
|
const dataSetKey$3 = 'dataset';
|
|
627
|
-
const idGen$
|
|
627
|
+
const idGen$i = new core.IDGenerator('wm_tabs_ref_');
|
|
628
628
|
const isDynamicTabs = node => node.attrs.find(attr => attr.name === 'type' && attr.value === 'dynamic');
|
|
629
629
|
transpiler.register('wm-tabs', () => {
|
|
630
630
|
return {
|
|
631
631
|
pre: (attrs, shared) => {
|
|
632
632
|
// generating unique Id for the tabs
|
|
633
|
-
const counter = idGen$
|
|
633
|
+
const counter = idGen$i.nextUid();
|
|
634
634
|
shared.set('tabs_ref', counter);
|
|
635
|
-
return `<${tagName$
|
|
635
|
+
return `<${tagName$19} wmTabs #${counter}="wmTabs" ${transpiler.getAttrMarkup(attrs)}>`;
|
|
636
636
|
},
|
|
637
|
-
post: () => `</${tagName$
|
|
637
|
+
post: () => `</${tagName$19}>`,
|
|
638
638
|
template: (node, shared) => {
|
|
639
639
|
// check if the tab widget is dynamic
|
|
640
640
|
if (isDynamicTabs(node)) {
|
|
@@ -665,11 +665,11 @@
|
|
|
665
665
|
default: tabs_build
|
|
666
666
|
});
|
|
667
667
|
|
|
668
|
-
const tagName$
|
|
668
|
+
const tagName$18 = 'div';
|
|
669
669
|
transpiler.register('wm-tabpane', () => {
|
|
670
670
|
return {
|
|
671
|
-
pre: attrs => `<${tagName$
|
|
672
|
-
post: () => `</${tagName$
|
|
671
|
+
pre: attrs => `<${tagName$18} wmTabPane partialContainer ${transpiler.getAttrMarkup(attrs)} wm-navigable-element="true" role="tabpanel">`,
|
|
672
|
+
post: () => `</${tagName$18}>`
|
|
673
673
|
};
|
|
674
674
|
});
|
|
675
675
|
var tabPane_build = () => { };
|
|
@@ -679,11 +679,11 @@
|
|
|
679
679
|
default: tabPane_build
|
|
680
680
|
});
|
|
681
681
|
|
|
682
|
-
const tagName$
|
|
682
|
+
const tagName$17 = 'div';
|
|
683
683
|
transpiler.register('wm-tile', () => {
|
|
684
684
|
return {
|
|
685
|
-
pre: attrs => `<${tagName$
|
|
686
|
-
post: () => `</${tagName$
|
|
685
|
+
pre: attrs => `<${tagName$17} wmTile wm-navigable-element="true" ${transpiler.getAttrMarkup(attrs)}>`,
|
|
686
|
+
post: () => `</${tagName$17}>`
|
|
687
687
|
};
|
|
688
688
|
});
|
|
689
689
|
var tile_build = () => { };
|
|
@@ -693,11 +693,11 @@
|
|
|
693
693
|
default: tile_build
|
|
694
694
|
});
|
|
695
695
|
|
|
696
|
-
const tagName$
|
|
696
|
+
const tagName$16 = 'div';
|
|
697
697
|
transpiler.register('wm-wizard', () => {
|
|
698
698
|
return {
|
|
699
|
-
pre: attrs => `<${tagName$
|
|
700
|
-
post: () => `</${tagName$
|
|
699
|
+
pre: attrs => `<${tagName$16} wmWizard ${transpiler.getAttrMarkup(attrs)}>`,
|
|
700
|
+
post: () => `</${tagName$16}>`
|
|
701
701
|
};
|
|
702
702
|
});
|
|
703
703
|
var wizard_build = () => { };
|
|
@@ -707,16 +707,16 @@
|
|
|
707
707
|
default: wizard_build
|
|
708
708
|
});
|
|
709
709
|
|
|
710
|
-
const tagName$
|
|
711
|
-
const idGen$
|
|
710
|
+
const tagName$15 = 'form';
|
|
711
|
+
const idGen$h = new core.IDGenerator('wizard_step_id_');
|
|
712
712
|
transpiler.register('wm-wizardstep', () => {
|
|
713
713
|
return {
|
|
714
714
|
pre: attrs => {
|
|
715
|
-
const counter = idGen$
|
|
716
|
-
return `<${tagName$
|
|
715
|
+
const counter = idGen$h.nextUid();
|
|
716
|
+
return `<${tagName$15} wmWizardStep #${counter}="wmWizardStep" ${transpiler.getAttrMarkup(attrs)}>
|
|
717
717
|
<ng-template [ngIf]="${counter}.isInitialized">`;
|
|
718
718
|
},
|
|
719
|
-
post: () => `</ng-template></${tagName$
|
|
719
|
+
post: () => `</ng-template></${tagName$15}>`
|
|
720
720
|
};
|
|
721
721
|
});
|
|
722
722
|
var wizardStep_build = () => { };
|
|
@@ -726,15 +726,15 @@
|
|
|
726
726
|
default: wizardStep_build
|
|
727
727
|
});
|
|
728
728
|
|
|
729
|
-
const tagName$
|
|
730
|
-
const idGen$
|
|
729
|
+
const tagName$14 = 'button';
|
|
730
|
+
const idGen$g = new core.IDGenerator('wm_barcodescanner');
|
|
731
731
|
transpiler.register('wm-barcodescanner', () => {
|
|
732
732
|
return {
|
|
733
733
|
pre: (attrs) => {
|
|
734
|
-
const counter = idGen$
|
|
735
|
-
return `<${tagName$
|
|
734
|
+
const counter = idGen$g.nextUid();
|
|
735
|
+
return `<${tagName$14} wmBarcodescanner #${counter}="wmBarcodescanner" [attr.aria-label]="${counter}.arialabel || 'Barcode scanner'" ${transpiler.getAttrMarkup(attrs)}>`;
|
|
736
736
|
},
|
|
737
|
-
post: () => `</${tagName$
|
|
737
|
+
post: () => `</${tagName$14}>`
|
|
738
738
|
};
|
|
739
739
|
});
|
|
740
740
|
var barcodeScanner_build = () => { };
|
|
@@ -744,15 +744,15 @@
|
|
|
744
744
|
default: barcodeScanner_build
|
|
745
745
|
});
|
|
746
746
|
|
|
747
|
-
const tagName$
|
|
748
|
-
const idGen$
|
|
747
|
+
const tagName$13 = 'button';
|
|
748
|
+
const idGen$f = new core.IDGenerator('wm_camera');
|
|
749
749
|
transpiler.register('wm-camera', () => {
|
|
750
750
|
return {
|
|
751
751
|
pre: (attrs) => {
|
|
752
|
-
const counter = idGen$
|
|
753
|
-
return `<${tagName$
|
|
752
|
+
const counter = idGen$f.nextUid();
|
|
753
|
+
return `<${tagName$13} type='button' wmCamera #${counter}="wmCamera" [attr.aria-label]="${counter}.arialabel || 'Camera'" ${transpiler.getAttrMarkup(attrs)}>`;
|
|
754
754
|
},
|
|
755
|
-
post: () => `</${tagName$
|
|
755
|
+
post: () => `</${tagName$13}>`
|
|
756
756
|
};
|
|
757
757
|
});
|
|
758
758
|
var camera_build = () => { };
|
|
@@ -762,11 +762,11 @@
|
|
|
762
762
|
default: camera_build
|
|
763
763
|
});
|
|
764
764
|
|
|
765
|
-
const tagName$
|
|
765
|
+
const tagName$12 = 'div';
|
|
766
766
|
transpiler.register('wm-alertdialog', () => {
|
|
767
767
|
return {
|
|
768
|
-
pre: attrs => `<${tagName$
|
|
769
|
-
post: () => `</${tagName$
|
|
768
|
+
pre: attrs => `<${tagName$12} wmAlertDialog wm-navigable-element="true" ${transpiler.getAttrMarkup(attrs)}>`,
|
|
769
|
+
post: () => `</${tagName$12}>`
|
|
770
770
|
};
|
|
771
771
|
});
|
|
772
772
|
var alertDialog_build = () => { };
|
|
@@ -776,11 +776,11 @@
|
|
|
776
776
|
default: alertDialog_build
|
|
777
777
|
});
|
|
778
778
|
|
|
779
|
-
const tagName$
|
|
779
|
+
const tagName$11 = 'div';
|
|
780
780
|
transpiler.register('wm-confirmdialog', () => {
|
|
781
781
|
return {
|
|
782
|
-
pre: attrs => `<${tagName$
|
|
783
|
-
post: () => `</${tagName$
|
|
782
|
+
pre: attrs => `<${tagName$11} wmConfirmDialog wm-navigable-element="true" ${transpiler.getAttrMarkup(attrs)}>`,
|
|
783
|
+
post: () => `</${tagName$11}>`
|
|
784
784
|
};
|
|
785
785
|
});
|
|
786
786
|
var confirmDialog_build = () => { };
|
|
@@ -790,11 +790,11 @@
|
|
|
790
790
|
default: confirmDialog_build
|
|
791
791
|
});
|
|
792
792
|
|
|
793
|
-
const tagName$
|
|
793
|
+
const tagName$10 = 'div';
|
|
794
794
|
transpiler.register('wm-dialogactions', () => {
|
|
795
795
|
return {
|
|
796
|
-
pre: attrs => `<ng-template #dialogFooter><${tagName$
|
|
797
|
-
post: () => `</${tagName$
|
|
796
|
+
pre: attrs => `<ng-template #dialogFooter><${tagName$10} wmDialogFooter data-identfier="actions" ${transpiler.getAttrMarkup(attrs)}>`,
|
|
797
|
+
post: () => `</${tagName$10}></ng-template>`
|
|
798
798
|
};
|
|
799
799
|
});
|
|
800
800
|
var dialogFooter_build = () => { };
|
|
@@ -804,11 +804,11 @@
|
|
|
804
804
|
default: dialogFooter_build
|
|
805
805
|
});
|
|
806
806
|
|
|
807
|
-
const tagName
|
|
807
|
+
const tagName$$ = 'div';
|
|
808
808
|
transpiler.register('wm-dialog', () => {
|
|
809
809
|
return {
|
|
810
|
-
pre: attrs => `<${tagName
|
|
811
|
-
post: () => `</ng-template></${tagName
|
|
810
|
+
pre: attrs => `<${tagName$$} wmDialog ${transpiler.getAttrMarkup(attrs)} aria-modal="true" role="dialog" wm-navigable-element="true"><ng-template #dialogBody>`,
|
|
811
|
+
post: () => `</ng-template></${tagName$$}>`
|
|
812
812
|
};
|
|
813
813
|
});
|
|
814
814
|
// Todo:vinay remove wm-view in migration
|
|
@@ -825,11 +825,11 @@
|
|
|
825
825
|
default: dialog_build
|
|
826
826
|
});
|
|
827
827
|
|
|
828
|
-
const tagName$
|
|
828
|
+
const tagName$_ = 'div';
|
|
829
829
|
transpiler.register('wm-iframedialog', () => {
|
|
830
830
|
return {
|
|
831
|
-
pre: attrs => `<${tagName$
|
|
832
|
-
post: () => `</${tagName$
|
|
831
|
+
pre: attrs => `<${tagName$_} wmIframeDialog wm-navigable-element="true" ${transpiler.getAttrMarkup(attrs)}>`,
|
|
832
|
+
post: () => `</${tagName$_}>`
|
|
833
833
|
};
|
|
834
834
|
});
|
|
835
835
|
var iframeDialog_build = () => { };
|
|
@@ -839,11 +839,11 @@
|
|
|
839
839
|
default: iframeDialog_build
|
|
840
840
|
});
|
|
841
841
|
|
|
842
|
-
const tagName
|
|
842
|
+
const tagName$Z = 'div';
|
|
843
843
|
transpiler.register('wm-logindialog', () => {
|
|
844
844
|
return {
|
|
845
|
-
pre: attrs => `<${tagName
|
|
846
|
-
post: () => `</ng-template></${tagName
|
|
845
|
+
pre: attrs => `<${tagName$Z} wmDialog wmLoginDialog ${transpiler.getAttrMarkup(attrs)} eventsource.bind="Actions.loginAction" wm-navigable-element="true"><ng-template #dialogBody>`,
|
|
846
|
+
post: () => `</ng-template></${tagName$Z}>`
|
|
847
847
|
};
|
|
848
848
|
});
|
|
849
849
|
var loginDialog_build = () => { };
|
|
@@ -853,7 +853,7 @@
|
|
|
853
853
|
default: loginDialog_build
|
|
854
854
|
});
|
|
855
855
|
|
|
856
|
-
const tagName$
|
|
856
|
+
const tagName$Y = 'div';
|
|
857
857
|
transpiler.register('wm-pagedialog', () => {
|
|
858
858
|
return {
|
|
859
859
|
pre: (attrs, shared) => {
|
|
@@ -879,14 +879,14 @@
|
|
|
879
879
|
shared.set('hasPartialContent', true);
|
|
880
880
|
containerMarkup += `<ng-template><div wmContainer #partial partialContainer ${contentMarkup} width="100%" height="100%" ${onLoadEvtMarkup}>`;
|
|
881
881
|
}
|
|
882
|
-
return `<${tagName$
|
|
882
|
+
return `<${tagName$Y} wmPartialDialog ${transpiler.getAttrMarkup(attrs)}>${containerMarkup}`;
|
|
883
883
|
},
|
|
884
884
|
post: (attrs, shared) => {
|
|
885
885
|
let preContent = '';
|
|
886
886
|
if (shared.get('hasPartialContent')) {
|
|
887
887
|
preContent = `</div></ng-template>`;
|
|
888
888
|
}
|
|
889
|
-
return `${preContent}</${tagName$
|
|
889
|
+
return `${preContent}</${tagName$Y}>`;
|
|
890
890
|
}
|
|
891
891
|
};
|
|
892
892
|
});
|
|
@@ -965,8 +965,8 @@
|
|
|
965
965
|
return (fieldTypeWidgetTypeMap[colDef.type] && fieldTypeWidgetTypeMap[colDef.type][0]) || core.FormWidgetType.TEXT;
|
|
966
966
|
};
|
|
967
967
|
|
|
968
|
-
const tagName$
|
|
969
|
-
const idGen$
|
|
968
|
+
const tagName$X = 'div';
|
|
969
|
+
const idGen$e = new core.IDGenerator('formfield_');
|
|
970
970
|
const getEventsTemplate = (attrs) => {
|
|
971
971
|
const eventAttrs = new Map();
|
|
972
972
|
if (!attrs.has('focus.event')) {
|
|
@@ -1016,21 +1016,13 @@
|
|
|
1016
1016
|
}
|
|
1017
1017
|
};
|
|
1018
1018
|
const getWidgetTemplate = (attrs, options) => {
|
|
1019
|
-
let customAttrs = ``;
|
|
1020
|
-
if (options.widgetType === "custom-widget") {
|
|
1021
|
-
for (let [key, value] of attrs) {
|
|
1022
|
-
if (key.startsWith('prop-'))
|
|
1023
|
-
customAttrs += key + '="' + value + '" ';
|
|
1024
|
-
}
|
|
1025
|
-
}
|
|
1026
1019
|
const name = attrs.get('name');
|
|
1027
|
-
const customWidgetName = attrs.get('widgetname');
|
|
1028
1020
|
const fieldName = (attrs.get('key') || name || '').trim();
|
|
1029
1021
|
const formControl = options.isMaxWidget ? `formControlName="${fieldName}_max"` : (options.isInList ? `[formControlName]="${options.counter}._fieldName"` : `formControlName="${fieldName}"`);
|
|
1030
1022
|
const tmplRef = options.isMaxWidget ? `#formWidgetMax` : `#formWidget`;
|
|
1031
1023
|
const widgetName = name ? (options.isMaxWidget ? `name="${name}_formWidgetMax"` : `name="${name}_formWidget"`) : '';
|
|
1032
1024
|
const conditionalClass = `[ngClass]="${attrs.get('ngclass')}"`;
|
|
1033
|
-
const defaultTmpl = `[class.hidden]="!${options.pCounter}.isUpdateMode && ${options.counter}.viewmodewidget !== 'default'" ${formControl} ${options.eventsTmpl} ${conditionalClass} ${tmplRef} ${widgetName}
|
|
1025
|
+
const defaultTmpl = `[class.hidden]="!${options.pCounter}.isUpdateMode && ${options.counter}.viewmodewidget !== 'default'" ${formControl} ${options.eventsTmpl} ${conditionalClass} ${tmplRef} ${widgetName}`;
|
|
1034
1026
|
return core.getFormWidgetTemplate(options.widgetType, defaultTmpl, attrs, { counter: options.counter, pCounter: options.pCounter });
|
|
1035
1027
|
};
|
|
1036
1028
|
const getTemplate = (attrs, widgetType, eventsTmpl, counter, pCounter, isInList) => {
|
|
@@ -1074,7 +1066,7 @@
|
|
|
1074
1066
|
return {
|
|
1075
1067
|
requires: ['wm-form', 'wm-liveform', 'wm-livefilter', 'wm-list'],
|
|
1076
1068
|
pre: (attrs, shared, parentForm, parentLiveForm, parentFilter, parentList) => {
|
|
1077
|
-
const counter = idGen$
|
|
1069
|
+
const counter = idGen$e.nextUid();
|
|
1078
1070
|
const parent = parentForm || parentLiveForm || parentFilter;
|
|
1079
1071
|
const pCounter = (parent && parent.get('form_reference')) || 'form';
|
|
1080
1072
|
const widgetType = attrs.get('widget') || core.FormWidgetType.TEXT;
|
|
@@ -1097,7 +1089,7 @@
|
|
|
1097
1089
|
else {
|
|
1098
1090
|
setDefaultPlaceholder(attrs, widgetType, 2);
|
|
1099
1091
|
}
|
|
1100
|
-
return `<${tagName$
|
|
1092
|
+
return `<${tagName$X} data-role="${dataRole}" [formGroup]="${pCounter}.ngform" wmFormField wmCaptionPosition #${counter}="wmFormField" widgettype="${widgetType}" ${transpiler.getFormMarkupAttr(attrs)}>
|
|
1101
1093
|
<div class="live-field form-group app-composite-widget clearfix caption-{{${pCounter}.captionposition}}" widget="${widgetType}">
|
|
1102
1094
|
<label [hidden]="!${counter}.displayname" class="app-label control-label formfield-label {{${pCounter}._captionClass}}"
|
|
1103
1095
|
[ngStyle]="{width: ${pCounter}.captionsize}" [ngClass]="{'text-danger': ${counter}._control?.invalid && ${counter}._control?.touched && ${pCounter}.isUpdateMode,
|
|
@@ -1113,7 +1105,7 @@
|
|
|
1113
1105
|
</div>
|
|
1114
1106
|
</div>`;
|
|
1115
1107
|
},
|
|
1116
|
-
post: () => `</${tagName$
|
|
1108
|
+
post: () => `</${tagName$X}>`,
|
|
1117
1109
|
provide: (attrs, shared) => {
|
|
1118
1110
|
const provider = new Map();
|
|
1119
1111
|
provider.set('form_reference', shared.get('counter'));
|
|
@@ -1135,11 +1127,11 @@
|
|
|
1135
1127
|
default: formField_build
|
|
1136
1128
|
});
|
|
1137
1129
|
|
|
1138
|
-
const tagName$
|
|
1130
|
+
const tagName$W = 'div';
|
|
1139
1131
|
const registerAction = (tmpl) => {
|
|
1140
1132
|
return {
|
|
1141
|
-
pre: attrs => `<${tagName$
|
|
1142
|
-
post: () => `</${tagName$
|
|
1133
|
+
pre: attrs => `<${tagName$W} wmFormAction name="${attrs.get('name') || attrs.get('key')}" ${transpiler.getAttrMarkup(attrs)} ${tmpl}>`,
|
|
1134
|
+
post: () => `</${tagName$W}>`
|
|
1143
1135
|
};
|
|
1144
1136
|
};
|
|
1145
1137
|
transpiler.register('wm-form-action', registerAction.bind(undefined, ''));
|
|
@@ -1151,8 +1143,8 @@
|
|
|
1151
1143
|
default: formAction_build
|
|
1152
1144
|
});
|
|
1153
1145
|
|
|
1154
|
-
const tagName$
|
|
1155
|
-
const idGen$
|
|
1146
|
+
const tagName$V = 'form';
|
|
1147
|
+
const idGen$d = new core.IDGenerator('form_');
|
|
1156
1148
|
const formWidgets$1 = new Set([
|
|
1157
1149
|
'wm-text',
|
|
1158
1150
|
'wm-textarea',
|
|
@@ -1220,7 +1212,7 @@
|
|
|
1220
1212
|
let tmpl;
|
|
1221
1213
|
let dialogId;
|
|
1222
1214
|
const role = parentLoginWidget && parentLoginWidget.get('isLogin') ? 'app-login' : '';
|
|
1223
|
-
const counter = idGen$
|
|
1215
|
+
const counter = idGen$d.nextUid();
|
|
1224
1216
|
const dependsOn = attrs.get('dependson') ? `dependson="${attrs.get('dependson')}"` : '';
|
|
1225
1217
|
if (dependsOn) {
|
|
1226
1218
|
attrs.set('dependsontable', attrs.get('dependson'));
|
|
@@ -1228,7 +1220,7 @@
|
|
|
1228
1220
|
const classProp = attrs.get('formlayout') === 'page' ? 'app-device-liveform panel liveform-inline' : '';
|
|
1229
1221
|
const dialogAttributes = ['title', 'title.bind', 'iconclass', 'iconclass.bind', 'width'];
|
|
1230
1222
|
attrs.delete('dependson');
|
|
1231
|
-
const liveFormTmpl = `<${tagName$
|
|
1223
|
+
const liveFormTmpl = `<${tagName$V} wmForm data-role="${role}" ${directiveAttr} #${counter} ngNativeValidate [formGroup]="${counter}.ngform" [noValidate]="${counter}.validationtype !== 'html'"
|
|
1232
1224
|
class="${classProp}" [class]="${counter}.captionAlignClass" [autocomplete]="${counter}.autocomplete ? 'on' : 'off'" captionposition=${attrs.get('captionposition')}`;
|
|
1233
1225
|
attrs.set('numberOfFields', `${numberOfFields}`);
|
|
1234
1226
|
shared.set('counter', counter);
|
|
@@ -1281,12 +1273,12 @@
|
|
|
1281
1273
|
return '</form></ng-template></div></div>';
|
|
1282
1274
|
}
|
|
1283
1275
|
if (attrs.get('formlayout') === 'page') {
|
|
1284
|
-
return `</div></${tagName$
|
|
1276
|
+
return `</div></${tagName$V}>`;
|
|
1285
1277
|
}
|
|
1286
1278
|
if (attrs.get('dependsontable')) {
|
|
1287
|
-
return `</${tagName$
|
|
1279
|
+
return `</${tagName$V}></div>`;
|
|
1288
1280
|
}
|
|
1289
|
-
return `</${tagName$
|
|
1281
|
+
return `</${tagName$V}>`;
|
|
1290
1282
|
},
|
|
1291
1283
|
provide: (attrs, shared) => {
|
|
1292
1284
|
const provider = new Map();
|
|
@@ -1305,14 +1297,14 @@
|
|
|
1305
1297
|
default: form_build
|
|
1306
1298
|
});
|
|
1307
1299
|
|
|
1308
|
-
const tagName$
|
|
1300
|
+
const tagName$U = 'div';
|
|
1309
1301
|
transpiler.register('wm-calendar', () => {
|
|
1310
1302
|
return {
|
|
1311
1303
|
pre: (attrs) => {
|
|
1312
1304
|
let viewType = attrs.get('view') ? attrs.get('view') + ' view' : 'month view';
|
|
1313
|
-
return `<${tagName$
|
|
1305
|
+
return `<${tagName$U} wmCalendar redrawable style="width:100%" role="region" aria-label="${viewType}" ${transpiler.getAttrMarkup(attrs)}>`;
|
|
1314
1306
|
},
|
|
1315
|
-
post: () => `</${tagName$
|
|
1307
|
+
post: () => `</${tagName$U}>`
|
|
1316
1308
|
};
|
|
1317
1309
|
});
|
|
1318
1310
|
var calendar_build = () => { };
|
|
@@ -1322,11 +1314,11 @@
|
|
|
1322
1314
|
default: calendar_build
|
|
1323
1315
|
});
|
|
1324
1316
|
|
|
1325
|
-
const tagName$
|
|
1317
|
+
const tagName$T = 'ul';
|
|
1326
1318
|
transpiler.register('wm-chips', () => {
|
|
1327
1319
|
return {
|
|
1328
|
-
pre: attrs => `<${tagName$
|
|
1329
|
-
post: () => `</${tagName$
|
|
1320
|
+
pre: attrs => `<${tagName$T} wmChips ${transpiler.getAttrMarkup(attrs)} ${core.getNgModelAttr(attrs)}>`,
|
|
1321
|
+
post: () => `</${tagName$T}>`
|
|
1330
1322
|
};
|
|
1331
1323
|
});
|
|
1332
1324
|
var chips_build = () => { };
|
|
@@ -1336,11 +1328,11 @@
|
|
|
1336
1328
|
default: chips_build
|
|
1337
1329
|
});
|
|
1338
1330
|
|
|
1339
|
-
const tagName$
|
|
1331
|
+
const tagName$S = 'div';
|
|
1340
1332
|
transpiler.register('wm-colorpicker', () => {
|
|
1341
1333
|
return {
|
|
1342
|
-
pre: attrs => `<${tagName$
|
|
1343
|
-
post: () => `</${tagName$
|
|
1334
|
+
pre: attrs => `<${tagName$S} wmColorPicker ${transpiler.getAttrMarkup(attrs)} ${transpiler.getChildAttrs(attrs)} ${core.getNgModelAttr(attrs)}>`,
|
|
1335
|
+
post: () => `</${tagName$S}>`
|
|
1344
1336
|
};
|
|
1345
1337
|
});
|
|
1346
1338
|
var colorPicker_build = () => { };
|
|
@@ -1350,11 +1342,11 @@
|
|
|
1350
1342
|
default: colorPicker_build
|
|
1351
1343
|
});
|
|
1352
1344
|
|
|
1353
|
-
const tagName$
|
|
1345
|
+
const tagName$R = 'div';
|
|
1354
1346
|
transpiler.register('wm-currency', () => {
|
|
1355
1347
|
return {
|
|
1356
|
-
pre: attrs => `<${tagName$
|
|
1357
|
-
post: () => `</${tagName$
|
|
1348
|
+
pre: attrs => `<${tagName$R} wmCurrency ${transpiler.getAttrMarkup(attrs)} ${transpiler.getChildAttrs(attrs)} ${core.getNgModelAttr(attrs)}>`,
|
|
1349
|
+
post: () => `</${tagName$R}>`
|
|
1358
1350
|
};
|
|
1359
1351
|
});
|
|
1360
1352
|
var currency_build = () => { };
|
|
@@ -1364,11 +1356,11 @@
|
|
|
1364
1356
|
default: currency_build
|
|
1365
1357
|
});
|
|
1366
1358
|
|
|
1367
|
-
const tagName$
|
|
1359
|
+
const tagName$Q = 'div';
|
|
1368
1360
|
transpiler.register('wm-buttongroup', () => {
|
|
1369
1361
|
return {
|
|
1370
|
-
pre: attrs => `<${tagName$
|
|
1371
|
-
post: () => `</${tagName$
|
|
1362
|
+
pre: attrs => `<${tagName$Q} wmButtonGroup role="group" ${transpiler.getAttrMarkup(attrs)}>`,
|
|
1363
|
+
post: () => `</${tagName$Q}>`
|
|
1372
1364
|
};
|
|
1373
1365
|
});
|
|
1374
1366
|
var buttonGroup_build = () => { };
|
|
@@ -1378,15 +1370,15 @@
|
|
|
1378
1370
|
default: buttonGroup_build
|
|
1379
1371
|
});
|
|
1380
1372
|
|
|
1381
|
-
const tagName$
|
|
1382
|
-
const idGen$
|
|
1373
|
+
const tagName$P = 'button';
|
|
1374
|
+
const idGen$c = new core.IDGenerator('wm_button');
|
|
1383
1375
|
transpiler.register('wm-button', () => {
|
|
1384
1376
|
return {
|
|
1385
1377
|
pre: (attrs) => {
|
|
1386
|
-
const counter = idGen$
|
|
1387
|
-
return `<${tagName$
|
|
1378
|
+
const counter = idGen$c.nextUid();
|
|
1379
|
+
return `<${tagName$P} wmButton #${counter}="wmButton" [attr.aria-label]="${counter}.arialabel || (${counter}.badgevalue ? ${counter}.caption + ' ' + ${counter}.badgevalue : ${counter}.caption) || null" ${transpiler.getAttrMarkup(attrs)}>`;
|
|
1388
1380
|
},
|
|
1389
|
-
post: () => `</${tagName$
|
|
1381
|
+
post: () => `</${tagName$P}>`
|
|
1390
1382
|
};
|
|
1391
1383
|
});
|
|
1392
1384
|
var button_build = () => { };
|
|
@@ -1396,11 +1388,11 @@
|
|
|
1396
1388
|
default: button_build
|
|
1397
1389
|
});
|
|
1398
1390
|
|
|
1399
|
-
const tagName$
|
|
1391
|
+
const tagName$O = 'div';
|
|
1400
1392
|
transpiler.register('wm-checkbox', () => {
|
|
1401
1393
|
return {
|
|
1402
|
-
pre: attrs => `<${tagName$
|
|
1403
|
-
post: () => `</${tagName$
|
|
1394
|
+
pre: attrs => `<${tagName$O} wmCheckbox ${transpiler.getFormMarkupAttr(attrs)} ${transpiler.getChildAttrs(attrs)} ${core.getNgModelAttr(attrs)}>`,
|
|
1395
|
+
post: () => `</${tagName$O}>`
|
|
1404
1396
|
};
|
|
1405
1397
|
});
|
|
1406
1398
|
var checkbox_build = () => { };
|
|
@@ -1410,11 +1402,11 @@
|
|
|
1410
1402
|
default: checkbox_build
|
|
1411
1403
|
});
|
|
1412
1404
|
|
|
1413
|
-
const tagName$
|
|
1405
|
+
const tagName$N = 'ul';
|
|
1414
1406
|
transpiler.register('wm-checkboxset', () => {
|
|
1415
1407
|
return {
|
|
1416
|
-
pre: attrs => `<${tagName$
|
|
1417
|
-
post: () => `</${tagName$
|
|
1408
|
+
pre: attrs => `<${tagName$N} role="group" wmCheckboxset ${transpiler.getFormMarkupAttr(attrs)} ${transpiler.getChildAttrs(attrs)} ${core.getNgModelAttr(attrs)}>`,
|
|
1409
|
+
post: () => `</${tagName$N}>`
|
|
1418
1410
|
};
|
|
1419
1411
|
});
|
|
1420
1412
|
var checkboxset_build = () => { };
|
|
@@ -1424,11 +1416,11 @@
|
|
|
1424
1416
|
default: checkboxset_build
|
|
1425
1417
|
});
|
|
1426
1418
|
|
|
1427
|
-
const tagName$
|
|
1419
|
+
const tagName$M = 'div';
|
|
1428
1420
|
transpiler.register('wm-composite', () => {
|
|
1429
1421
|
return {
|
|
1430
|
-
pre: attrs => `<${tagName$
|
|
1431
|
-
post: () => `</${tagName$
|
|
1422
|
+
pre: attrs => `<${tagName$M} wmComposite wmCaptionPosition ${transpiler.setChildAttrs(attrs)} ${transpiler.getAttrMarkup(attrs)}>`,
|
|
1423
|
+
post: () => `</${tagName$M}${transpiler.clearChildAttrs()}>`
|
|
1432
1424
|
};
|
|
1433
1425
|
});
|
|
1434
1426
|
var composite_build = () => { };
|
|
@@ -1438,11 +1430,11 @@
|
|
|
1438
1430
|
default: composite_build
|
|
1439
1431
|
});
|
|
1440
1432
|
|
|
1441
|
-
const tagName$
|
|
1433
|
+
const tagName$L = 'div';
|
|
1442
1434
|
transpiler.register('wm-number', () => {
|
|
1443
1435
|
return {
|
|
1444
|
-
pre: attrs => `<${tagName$
|
|
1445
|
-
post: () => `</${tagName$
|
|
1436
|
+
pre: attrs => `<${tagName$L} wmNumber ${transpiler.getFormMarkupAttr(attrs)} ${transpiler.getChildAttrs(attrs)} ${core.getNgModelAttr(attrs)}>`,
|
|
1437
|
+
post: () => `</${tagName$L}>`
|
|
1446
1438
|
};
|
|
1447
1439
|
});
|
|
1448
1440
|
var number_build = () => { };
|
|
@@ -1452,11 +1444,11 @@
|
|
|
1452
1444
|
default: number_build
|
|
1453
1445
|
});
|
|
1454
1446
|
|
|
1455
|
-
const tagName$
|
|
1447
|
+
const tagName$K = 'ul';
|
|
1456
1448
|
transpiler.register('wm-radioset', () => {
|
|
1457
1449
|
return {
|
|
1458
|
-
pre: attrs => `<${tagName$
|
|
1459
|
-
post: () => `</${tagName$
|
|
1450
|
+
pre: attrs => `<${tagName$K} role="radiogroup" wmRadioset ${transpiler.getFormMarkupAttr(attrs)} ${transpiler.getChildAttrs(attrs)} ${core.getNgModelAttr(attrs)}>`,
|
|
1451
|
+
post: () => `</${tagName$K}>`
|
|
1460
1452
|
};
|
|
1461
1453
|
});
|
|
1462
1454
|
var radioset_build = () => { };
|
|
@@ -1466,11 +1458,11 @@
|
|
|
1466
1458
|
default: radioset_build
|
|
1467
1459
|
});
|
|
1468
1460
|
|
|
1469
|
-
const tagName$
|
|
1461
|
+
const tagName$J = 'wm-select';
|
|
1470
1462
|
transpiler.register('wm-select', () => {
|
|
1471
1463
|
return {
|
|
1472
|
-
pre: attrs => `<${tagName$
|
|
1473
|
-
post: () => `</${tagName$
|
|
1464
|
+
pre: attrs => `<${tagName$J} ${transpiler.getFormMarkupAttr(attrs)} ${transpiler.getChildAttrs(attrs)} ${core.getNgModelAttr(attrs)}>`,
|
|
1465
|
+
post: () => `</${tagName$J}>`
|
|
1474
1466
|
};
|
|
1475
1467
|
});
|
|
1476
1468
|
var select_build = () => { };
|
|
@@ -1480,15 +1472,15 @@
|
|
|
1480
1472
|
default: select_build
|
|
1481
1473
|
});
|
|
1482
1474
|
|
|
1483
|
-
const tagName$
|
|
1484
|
-
const idGen$
|
|
1475
|
+
const tagName$I = 'div';
|
|
1476
|
+
const idGen$b = new core.IDGenerator('wm_switch');
|
|
1485
1477
|
transpiler.register('wm-switch', () => {
|
|
1486
1478
|
return {
|
|
1487
1479
|
pre: (attrs) => {
|
|
1488
|
-
const counter = idGen$
|
|
1489
|
-
return `<${tagName$
|
|
1480
|
+
const counter = idGen$b.nextUid();
|
|
1481
|
+
return `<${tagName$I} wmSwitch #${counter}="wmSwitch" role="group" [attr.aria-label]="${counter}.arialabel || 'Switch choose options'" ${transpiler.getFormMarkupAttr(attrs)} ${core.getNgModelAttr(attrs)}>`;
|
|
1490
1482
|
},
|
|
1491
|
-
post: () => `</${tagName$
|
|
1483
|
+
post: () => `</${tagName$I}>`
|
|
1492
1484
|
};
|
|
1493
1485
|
});
|
|
1494
1486
|
var switch_build = () => { };
|
|
@@ -1498,11 +1490,11 @@
|
|
|
1498
1490
|
default: switch_build
|
|
1499
1491
|
});
|
|
1500
1492
|
|
|
1501
|
-
const tagName$
|
|
1493
|
+
const tagName$H = 'wm-input';
|
|
1502
1494
|
transpiler.register('wm-text', () => {
|
|
1503
1495
|
return {
|
|
1504
|
-
pre: attrs => `<${tagName$
|
|
1505
|
-
post: () => `</${tagName$
|
|
1496
|
+
pre: attrs => `<${tagName$H} ${transpiler.getFormMarkupAttr(attrs)} ${transpiler.getChildAttrs(attrs)} ${core.getNgModelAttr(attrs)}>`,
|
|
1497
|
+
post: () => `</${tagName$H}>`
|
|
1506
1498
|
};
|
|
1507
1499
|
});
|
|
1508
1500
|
var text_build = () => { };
|
|
@@ -1512,11 +1504,11 @@
|
|
|
1512
1504
|
default: text_build
|
|
1513
1505
|
});
|
|
1514
1506
|
|
|
1515
|
-
const tagName$
|
|
1507
|
+
const tagName$G = 'wm-textarea';
|
|
1516
1508
|
transpiler.register('wm-textarea', () => {
|
|
1517
1509
|
return {
|
|
1518
|
-
pre: attrs => `<${tagName$
|
|
1519
|
-
post: () => `</${tagName$
|
|
1510
|
+
pre: attrs => `<${tagName$G} ${transpiler.getFormMarkupAttr(attrs)} ${transpiler.getChildAttrs(attrs)} ${core.getNgModelAttr(attrs)}>`,
|
|
1511
|
+
post: () => `</${tagName$G}>`
|
|
1520
1512
|
};
|
|
1521
1513
|
});
|
|
1522
1514
|
var textarea_build = () => { };
|
|
@@ -1526,11 +1518,11 @@
|
|
|
1526
1518
|
default: textarea_build
|
|
1527
1519
|
});
|
|
1528
1520
|
|
|
1529
|
-
const tagName$
|
|
1521
|
+
const tagName$F = 'div';
|
|
1530
1522
|
transpiler.register('wm-datetime', () => {
|
|
1531
1523
|
return {
|
|
1532
|
-
pre: attrs => `<${tagName$
|
|
1533
|
-
post: () => `</${tagName$
|
|
1524
|
+
pre: attrs => `<${tagName$F} wmDateTime ${transpiler.getFormMarkupAttr(attrs)} ${transpiler.getChildAttrs(attrs)} ${core.getNgModelAttr(attrs)}>`,
|
|
1525
|
+
post: () => `</${tagName$F}>`
|
|
1534
1526
|
};
|
|
1535
1527
|
});
|
|
1536
1528
|
var dateTime_build = () => { };
|
|
@@ -1540,11 +1532,11 @@
|
|
|
1540
1532
|
default: dateTime_build
|
|
1541
1533
|
});
|
|
1542
1534
|
|
|
1543
|
-
const tagName$
|
|
1535
|
+
const tagName$E = 'div';
|
|
1544
1536
|
transpiler.register('wm-date', () => {
|
|
1545
1537
|
return {
|
|
1546
|
-
pre: attrs => `<${tagName$
|
|
1547
|
-
post: () => `</${tagName$
|
|
1538
|
+
pre: attrs => `<${tagName$E} wmDate ${transpiler.getFormMarkupAttr(attrs)} ${transpiler.getChildAttrs(attrs)} ${core.getNgModelAttr(attrs)}>`,
|
|
1539
|
+
post: () => `</${tagName$E}>`
|
|
1548
1540
|
};
|
|
1549
1541
|
});
|
|
1550
1542
|
var date_build = () => { };
|
|
@@ -1554,11 +1546,11 @@
|
|
|
1554
1546
|
default: date_build
|
|
1555
1547
|
});
|
|
1556
1548
|
|
|
1557
|
-
const tagName$
|
|
1549
|
+
const tagName$D = 'div';
|
|
1558
1550
|
transpiler.register('wm-time', () => {
|
|
1559
1551
|
return {
|
|
1560
|
-
pre: attrs => `<${tagName$
|
|
1561
|
-
post: () => `</${tagName$
|
|
1552
|
+
pre: attrs => `<${tagName$D} wmTime ${transpiler.getFormMarkupAttr(attrs)} ${transpiler.getChildAttrs(attrs)} ${core.getNgModelAttr(attrs)}>`,
|
|
1553
|
+
post: () => `</${tagName$D}>`
|
|
1562
1554
|
};
|
|
1563
1555
|
});
|
|
1564
1556
|
var time_build = () => { };
|
|
@@ -1568,7 +1560,7 @@
|
|
|
1568
1560
|
default: time_build
|
|
1569
1561
|
});
|
|
1570
1562
|
|
|
1571
|
-
const tagName$
|
|
1563
|
+
const tagName$C = 'div';
|
|
1572
1564
|
transpiler.register('wm-fileupload', () => {
|
|
1573
1565
|
return {
|
|
1574
1566
|
pre: attrs => {
|
|
@@ -1580,9 +1572,9 @@
|
|
|
1580
1572
|
const onDeleteBinding = transpiler.getDataSource(attrs.get('delete.event'));
|
|
1581
1573
|
attrs.set('deletedatasource.bind', onDeleteBinding);
|
|
1582
1574
|
}
|
|
1583
|
-
return `<${tagName$
|
|
1575
|
+
return `<${tagName$C} wmFileUpload ${transpiler.getAttrMarkup(attrs)}>`;
|
|
1584
1576
|
},
|
|
1585
|
-
post: () => `</${tagName$
|
|
1577
|
+
post: () => `</${tagName$C}>`
|
|
1586
1578
|
};
|
|
1587
1579
|
});
|
|
1588
1580
|
var fileUpload_build = () => { };
|
|
@@ -1592,11 +1584,11 @@
|
|
|
1592
1584
|
default: fileUpload_build
|
|
1593
1585
|
});
|
|
1594
1586
|
|
|
1595
|
-
const tagName$
|
|
1587
|
+
const tagName$B = 'div';
|
|
1596
1588
|
transpiler.register('wm-rating', () => {
|
|
1597
1589
|
return {
|
|
1598
|
-
pre: attrs => `<${tagName$
|
|
1599
|
-
post: () => `</${tagName$
|
|
1590
|
+
pre: attrs => `<${tagName$B} wmRating ${transpiler.getFormMarkupAttr(attrs)} ${core.getNgModelAttr(attrs)}>`,
|
|
1591
|
+
post: () => `</${tagName$B}>`
|
|
1600
1592
|
};
|
|
1601
1593
|
});
|
|
1602
1594
|
var rating_build = () => { };
|
|
@@ -1606,11 +1598,11 @@
|
|
|
1606
1598
|
default: rating_build
|
|
1607
1599
|
});
|
|
1608
1600
|
|
|
1609
|
-
const tagName$
|
|
1601
|
+
const tagName$A = 'div';
|
|
1610
1602
|
transpiler.register('wm-slider', () => {
|
|
1611
1603
|
return {
|
|
1612
|
-
pre: attrs => `<${tagName$
|
|
1613
|
-
post: () => `</${tagName$
|
|
1604
|
+
pre: attrs => `<${tagName$A} wmSlider ${transpiler.getAttrMarkup(attrs)} ${core.getNgModelAttr(attrs)}>`,
|
|
1605
|
+
post: () => `</${tagName$A}>`
|
|
1614
1606
|
};
|
|
1615
1607
|
});
|
|
1616
1608
|
var slider_build = () => { };
|
|
@@ -1621,7 +1613,7 @@
|
|
|
1621
1613
|
});
|
|
1622
1614
|
|
|
1623
1615
|
const wmlistTag = 'wm-list';
|
|
1624
|
-
const tagName$
|
|
1616
|
+
const tagName$z = 'div';
|
|
1625
1617
|
const dataSetKey$2 = 'dataset';
|
|
1626
1618
|
function copyAttribute$1(from, fromAttrName, to, toAttrName) {
|
|
1627
1619
|
const fromAttr = from.attrs.find(a => a.name === fromAttrName);
|
|
@@ -1669,8 +1661,8 @@
|
|
|
1669
1661
|
copyAttribute$1(template, 'height', node, 'thumbnailheight');
|
|
1670
1662
|
}
|
|
1671
1663
|
},
|
|
1672
|
-
pre: attrs => `<${tagName$
|
|
1673
|
-
post: () => `</${tagName$
|
|
1664
|
+
pre: attrs => `<${tagName$z} wmMediaList ${transpiler.getAttrMarkup(attrs)}>`,
|
|
1665
|
+
post: () => `</${tagName$z}>`
|
|
1674
1666
|
};
|
|
1675
1667
|
});
|
|
1676
1668
|
var mediaList_build = () => { };
|
|
@@ -1680,11 +1672,11 @@
|
|
|
1680
1672
|
default: mediaList_build
|
|
1681
1673
|
});
|
|
1682
1674
|
|
|
1683
|
-
const tagName$
|
|
1675
|
+
const tagName$y = 'ng-template';
|
|
1684
1676
|
transpiler.register('wm-media-template', () => {
|
|
1685
1677
|
return {
|
|
1686
|
-
pre: () => `<${tagName$
|
|
1687
|
-
post: () => `</${tagName$
|
|
1678
|
+
pre: () => `<${tagName$y} #mediaListTemplate let-item="item" let-index="index">`,
|
|
1679
|
+
post: () => `</${tagName$y}>`
|
|
1688
1680
|
};
|
|
1689
1681
|
});
|
|
1690
1682
|
var mediaListItem_build = () => { };
|
|
@@ -1768,16 +1760,16 @@
|
|
|
1768
1760
|
default: list_build
|
|
1769
1761
|
});
|
|
1770
1762
|
|
|
1771
|
-
const tagName$
|
|
1772
|
-
const idGen$
|
|
1763
|
+
const tagName$x = 'div';
|
|
1764
|
+
const idGen$a = new core.IDGenerator('liveform_dialog_id_');
|
|
1773
1765
|
transpiler.register('wm-livetable', () => {
|
|
1774
1766
|
return {
|
|
1775
1767
|
pre: (attrs, shared) => {
|
|
1776
|
-
const counter = idGen$
|
|
1768
|
+
const counter = idGen$a.nextUid();
|
|
1777
1769
|
shared.set('counter', counter);
|
|
1778
|
-
return `<${tagName$
|
|
1770
|
+
return `<${tagName$x} wmLiveTable ${transpiler.getAttrMarkup(attrs)} dialogid="${counter}">`;
|
|
1779
1771
|
},
|
|
1780
|
-
post: () => `</${tagName$
|
|
1772
|
+
post: () => `</${tagName$x}>`,
|
|
1781
1773
|
provide: (attrs, shared) => {
|
|
1782
1774
|
const provider = new Map();
|
|
1783
1775
|
provider.set('liveform_dialog_id', shared.get('counter'));
|
|
@@ -1792,15 +1784,15 @@
|
|
|
1792
1784
|
default: liveTable_build
|
|
1793
1785
|
});
|
|
1794
1786
|
|
|
1795
|
-
const tagName$
|
|
1796
|
-
const idGen$
|
|
1787
|
+
const tagName$w = 'p';
|
|
1788
|
+
const idGen$9 = new core.IDGenerator('wm_message');
|
|
1797
1789
|
transpiler.register('wm-message', () => {
|
|
1798
1790
|
return {
|
|
1799
1791
|
pre: (attrs) => {
|
|
1800
|
-
const counter = idGen$
|
|
1801
|
-
return `<${tagName$
|
|
1792
|
+
const counter = idGen$9.nextUid();
|
|
1793
|
+
return `<${tagName$w} wmMessage tabindex="0" #${counter}="wmMessage" ${transpiler.getAttrMarkup(attrs)}>`;
|
|
1802
1794
|
},
|
|
1803
|
-
post: () => `</${tagName$
|
|
1795
|
+
post: () => `</${tagName$w}>`
|
|
1804
1796
|
};
|
|
1805
1797
|
});
|
|
1806
1798
|
var message_build = () => { };
|
|
@@ -1810,11 +1802,11 @@
|
|
|
1810
1802
|
default: message_build
|
|
1811
1803
|
});
|
|
1812
1804
|
|
|
1813
|
-
const tagName$
|
|
1805
|
+
const tagName$v = 'ol';
|
|
1814
1806
|
transpiler.register('wm-breadcrumb', () => {
|
|
1815
1807
|
return {
|
|
1816
|
-
pre: attrs => `<${tagName$
|
|
1817
|
-
post: () => `</${tagName$
|
|
1808
|
+
pre: attrs => `<${tagName$v} wmBreadcrumb ${transpiler.getAttrMarkup(attrs)}>`,
|
|
1809
|
+
post: () => `</${tagName$v}>`
|
|
1818
1810
|
};
|
|
1819
1811
|
});
|
|
1820
1812
|
var breadcrumb_build = () => { };
|
|
@@ -1824,7 +1816,7 @@
|
|
|
1824
1816
|
default: breadcrumb_build
|
|
1825
1817
|
});
|
|
1826
1818
|
|
|
1827
|
-
const tagName$
|
|
1819
|
+
const tagName$u = 'div';
|
|
1828
1820
|
transpiler.register('wm-menu', () => {
|
|
1829
1821
|
return {
|
|
1830
1822
|
pre: attrs => {
|
|
@@ -1839,13 +1831,13 @@
|
|
|
1839
1831
|
else {
|
|
1840
1832
|
styleBinding = `[ngStyle]="{'width': '${menuWidth}px'}"`;
|
|
1841
1833
|
}
|
|
1842
|
-
return `<${tagName$
|
|
1834
|
+
return `<${tagName$u} wmMenu dropdown ${transpiler.getAttrMarkup(attrs)} ${styleBinding}>`;
|
|
1843
1835
|
}
|
|
1844
1836
|
else {
|
|
1845
|
-
return `<${tagName$
|
|
1837
|
+
return `<${tagName$u} wmMenu dropdown ${transpiler.getAttrMarkup(attrs)}>`;
|
|
1846
1838
|
}
|
|
1847
1839
|
},
|
|
1848
|
-
post: () => `</${tagName$
|
|
1840
|
+
post: () => `</${tagName$u}>`
|
|
1849
1841
|
};
|
|
1850
1842
|
});
|
|
1851
1843
|
var menu_build = () => { };
|
|
@@ -1855,11 +1847,11 @@
|
|
|
1855
1847
|
default: menu_build
|
|
1856
1848
|
});
|
|
1857
1849
|
|
|
1858
|
-
const tagName$
|
|
1850
|
+
const tagName$t = 'li';
|
|
1859
1851
|
transpiler.register('wm-nav-item', () => {
|
|
1860
1852
|
return {
|
|
1861
|
-
pre: attrs => `<${tagName$
|
|
1862
|
-
post: () => `</${tagName$
|
|
1853
|
+
pre: attrs => `<${tagName$t} wmNavItem role="listitem" ${transpiler.getAttrMarkup(attrs)}>`,
|
|
1854
|
+
post: () => `</${tagName$t}>`
|
|
1863
1855
|
};
|
|
1864
1856
|
});
|
|
1865
1857
|
var navItem_build = () => { };
|
|
@@ -1869,11 +1861,11 @@
|
|
|
1869
1861
|
default: navItem_build
|
|
1870
1862
|
});
|
|
1871
1863
|
|
|
1872
|
-
const tagName$
|
|
1864
|
+
const tagName$s = 'ul';
|
|
1873
1865
|
transpiler.register('wm-nav', () => {
|
|
1874
1866
|
return {
|
|
1875
|
-
pre: attrs => `<${tagName$
|
|
1876
|
-
post: () => `</${tagName$
|
|
1867
|
+
pre: attrs => `<${tagName$s} wmNav data-element-type="wmNav" data-role="page-header" role="list" ${transpiler.getAttrMarkup(attrs)}>`,
|
|
1868
|
+
post: () => `</${tagName$s}>`
|
|
1877
1869
|
};
|
|
1878
1870
|
});
|
|
1879
1871
|
var nav_build = () => { };
|
|
@@ -1883,11 +1875,11 @@
|
|
|
1883
1875
|
default: nav_build
|
|
1884
1876
|
});
|
|
1885
1877
|
|
|
1886
|
-
const tagName$
|
|
1878
|
+
const tagName$r = 'nav';
|
|
1887
1879
|
transpiler.register('wm-navbar', () => {
|
|
1888
1880
|
return {
|
|
1889
|
-
pre: attrs => `<${tagName$
|
|
1890
|
-
post: () => `</${tagName$
|
|
1881
|
+
pre: attrs => `<${tagName$r} wmNavbar data-element-type="wmNavbar" role="navigation" ${transpiler.getAttrMarkup(attrs)}>`,
|
|
1882
|
+
post: () => `</${tagName$r}>`
|
|
1891
1883
|
};
|
|
1892
1884
|
});
|
|
1893
1885
|
var navbar_build = () => { };
|
|
@@ -1897,7 +1889,7 @@
|
|
|
1897
1889
|
default: navbar_build
|
|
1898
1890
|
});
|
|
1899
1891
|
|
|
1900
|
-
const tagName$
|
|
1892
|
+
const tagName$q = 'wm-popover';
|
|
1901
1893
|
transpiler.register('wm-popover', () => {
|
|
1902
1894
|
return {
|
|
1903
1895
|
requires: ['wm-table'],
|
|
@@ -1917,7 +1909,7 @@
|
|
|
1917
1909
|
popoverTemplate = `<div wmContainer #partial partialContainer ${contentMarkup}>`;
|
|
1918
1910
|
shared.set('hasPopoverContent', true);
|
|
1919
1911
|
}
|
|
1920
|
-
let markup = `<${tagName$
|
|
1912
|
+
let markup = `<${tagName$q} wmPopover ${transpiler.getAttrMarkup(attrs)}>`;
|
|
1921
1913
|
const contextAttrs = table ? `let-row="row"` : ``;
|
|
1922
1914
|
markup += `<ng-template ${contextAttrs}><div tabindex="0" class="popover-start sr-only" aria-label="">popover content start</div>`;
|
|
1923
1915
|
// todo keyboard navigation - tab
|
|
@@ -1931,7 +1923,7 @@
|
|
|
1931
1923
|
if (shared.get('hasPopoverContent')) {
|
|
1932
1924
|
markup += `</div>`;
|
|
1933
1925
|
}
|
|
1934
|
-
return `${markup}<div tabindex="0" class="popover-end sr-only" aria-label="">popover content ended</div></ng-template></${tagName$
|
|
1926
|
+
return `${markup}<div tabindex="0" class="popover-end sr-only" aria-label="">popover content ended</div></ng-template></${tagName$q}>`;
|
|
1935
1927
|
}
|
|
1936
1928
|
};
|
|
1937
1929
|
});
|
|
@@ -1942,16 +1934,16 @@
|
|
|
1942
1934
|
default: popover_build
|
|
1943
1935
|
});
|
|
1944
1936
|
|
|
1945
|
-
const tagName$
|
|
1937
|
+
const tagName$p = 'div';
|
|
1946
1938
|
const findChild = (node, childName) => {
|
|
1947
1939
|
const child = node && node.children.find(e => (e instanceof compiler.Element && e.name === childName));
|
|
1948
1940
|
return child;
|
|
1949
1941
|
};
|
|
1950
|
-
const createElement$
|
|
1951
|
-
return new compiler.Element(name, [], [], noSpan$
|
|
1942
|
+
const createElement$3 = name => {
|
|
1943
|
+
return new compiler.Element(name, [], [], noSpan$3, noSpan$3, noSpan$3);
|
|
1952
1944
|
};
|
|
1953
|
-
const addAtrribute$
|
|
1954
|
-
const attr = new compiler.Attribute(name, value, noSpan$
|
|
1945
|
+
const addAtrribute$3 = (node, name, value) => {
|
|
1946
|
+
const attr = new compiler.Attribute(name, value, noSpan$3, noSpan$3, noSpan$3, undefined, undefined);
|
|
1955
1947
|
node.attrs.push(attr);
|
|
1956
1948
|
};
|
|
1957
1949
|
const getElementNode = (name, node) => {
|
|
@@ -1972,8 +1964,8 @@
|
|
|
1972
1964
|
});
|
|
1973
1965
|
return elementNode;
|
|
1974
1966
|
};
|
|
1975
|
-
const noSpan$
|
|
1976
|
-
const idGen$
|
|
1967
|
+
const noSpan$3 = {};
|
|
1968
|
+
const idGen$8 = new core.IDGenerator('wm_page');
|
|
1977
1969
|
transpiler.register('wm-page', () => {
|
|
1978
1970
|
return {
|
|
1979
1971
|
template: (node) => {
|
|
@@ -1982,24 +1974,24 @@
|
|
|
1982
1974
|
pageContentNode = getElementNode('wm-page-content', getElementNode('wm-content', node));
|
|
1983
1975
|
}
|
|
1984
1976
|
if (pageContentNode) {
|
|
1985
|
-
const conditionalNode = createElement$
|
|
1986
|
-
addAtrribute$
|
|
1977
|
+
const conditionalNode = createElement$3('ng-container');
|
|
1978
|
+
addAtrribute$3(conditionalNode, '*ngIf', 'compilePageContent');
|
|
1987
1979
|
conditionalNode.children = conditionalNode.children.concat(pageContentNode.children);
|
|
1988
1980
|
conditionalNode.children.push(new compiler.Text('{{onPageContentReady()}}', null, undefined, undefined));
|
|
1989
1981
|
pageContentNode.children = [conditionalNode];
|
|
1990
1982
|
if (core.isMobileApp()) {
|
|
1991
|
-
const loader = createElement$
|
|
1992
|
-
addAtrribute$
|
|
1993
|
-
addAtrribute$
|
|
1983
|
+
const loader = createElement$3('div');
|
|
1984
|
+
addAtrribute$3(loader, 'wmPageContentLoader', '');
|
|
1985
|
+
addAtrribute$3(loader, '*ngIf', '!showPageContent');
|
|
1994
1986
|
pageContentNode.children.push(loader);
|
|
1995
1987
|
}
|
|
1996
1988
|
}
|
|
1997
1989
|
},
|
|
1998
1990
|
pre: (attrs) => {
|
|
1999
|
-
const counter = idGen$
|
|
2000
|
-
return `<${tagName$
|
|
1991
|
+
const counter = idGen$8.nextUid();
|
|
1992
|
+
return `<${tagName$p} wmPage #${counter}="wmPage" data-role="pageContainer" [attr.aria-label]="${counter}.arialabel" ${transpiler.getAttrMarkup(attrs)}>`;
|
|
2001
1993
|
},
|
|
2002
|
-
post: () => `</${tagName$
|
|
1994
|
+
post: () => `</${tagName$p}>`
|
|
2003
1995
|
};
|
|
2004
1996
|
});
|
|
2005
1997
|
var page_build = () => { };
|
|
@@ -2009,15 +2001,15 @@
|
|
|
2009
2001
|
default: page_build
|
|
2010
2002
|
});
|
|
2011
2003
|
|
|
2012
|
-
const tagName$
|
|
2013
|
-
const idGen$
|
|
2004
|
+
const tagName$o = 'div';
|
|
2005
|
+
const idGen$7 = new core.IDGenerator('wm_layout');
|
|
2014
2006
|
transpiler.register('wm-layout', () => {
|
|
2015
2007
|
return {
|
|
2016
2008
|
pre: (attrs) => {
|
|
2017
|
-
const counter = idGen$
|
|
2018
|
-
return `<${tagName$
|
|
2009
|
+
const counter = idGen$7.nextUid();
|
|
2010
|
+
return `<${tagName$o} wmLayout #${counter}="wmLayout" data-role="pageContainer" [attr.aria-label]="${counter}.arialabel" ${transpiler.getAttrMarkup(attrs)}>`;
|
|
2019
2011
|
},
|
|
2020
|
-
post: () => `</${tagName$
|
|
2012
|
+
post: () => `</${tagName$o}>`
|
|
2021
2013
|
};
|
|
2022
2014
|
});
|
|
2023
2015
|
var layout_build = () => { };
|
|
@@ -2027,11 +2019,11 @@
|
|
|
2027
2019
|
default: layout_build
|
|
2028
2020
|
});
|
|
2029
2021
|
|
|
2030
|
-
const tagName$
|
|
2022
|
+
const tagName$n = 'router-outlet';
|
|
2031
2023
|
transpiler.register('wm-router-outlet', () => {
|
|
2032
2024
|
return {
|
|
2033
|
-
pre: attrs => `<div wmRouterOutlet name="wmRouterOutlet" ${transpiler.getAttrMarkup(attrs)}><${tagName$
|
|
2034
|
-
post: () => `</${tagName$
|
|
2025
|
+
pre: attrs => `<div wmRouterOutlet name="wmRouterOutlet" ${transpiler.getAttrMarkup(attrs)}><${tagName$n} (activate)="onActivate($event)">`,
|
|
2026
|
+
post: () => `</${tagName$n}></div>`
|
|
2035
2027
|
};
|
|
2036
2028
|
});
|
|
2037
2029
|
var routerOutlet_build = () => { };
|
|
@@ -2041,11 +2033,11 @@
|
|
|
2041
2033
|
default: routerOutlet_build
|
|
2042
2034
|
});
|
|
2043
2035
|
|
|
2044
|
-
const tagName$
|
|
2036
|
+
const tagName$m = 'nav';
|
|
2045
2037
|
transpiler.register('wm-pagination', () => {
|
|
2046
2038
|
return {
|
|
2047
|
-
pre: attrs => `<${tagName$
|
|
2048
|
-
post: () => `</${tagName$
|
|
2039
|
+
pre: attrs => `<${tagName$m} wmPagination data-identifier="pagination" aria-label="Page navigation" ${transpiler.getAttrMarkup(attrs)}>`,
|
|
2040
|
+
post: () => `</${tagName$m}>`
|
|
2049
2041
|
};
|
|
2050
2042
|
});
|
|
2051
2043
|
var pagination_build = () => { };
|
|
@@ -2055,11 +2047,11 @@
|
|
|
2055
2047
|
default: pagination_build
|
|
2056
2048
|
});
|
|
2057
2049
|
|
|
2058
|
-
const tagName$
|
|
2050
|
+
const tagName$l = 'main';
|
|
2059
2051
|
transpiler.register('wm-content', () => {
|
|
2060
2052
|
return {
|
|
2061
|
-
pre: attrs => `<${tagName$
|
|
2062
|
-
post: () => `</${tagName$
|
|
2053
|
+
pre: attrs => `<${tagName$l} wmContent data-role="page-content" role="main" ${transpiler.getAttrMarkup(attrs)}>`,
|
|
2054
|
+
post: () => `</${tagName$l}>`
|
|
2063
2055
|
};
|
|
2064
2056
|
});
|
|
2065
2057
|
var content_build = () => { };
|
|
@@ -2069,15 +2061,15 @@
|
|
|
2069
2061
|
default: content_build
|
|
2070
2062
|
});
|
|
2071
2063
|
|
|
2072
|
-
const tagName$
|
|
2073
|
-
const idGen$
|
|
2064
|
+
const tagName$k = 'footer';
|
|
2065
|
+
const idGen$6 = new core.IDGenerator('wm_footer');
|
|
2074
2066
|
transpiler.register('wm-footer', () => {
|
|
2075
2067
|
return {
|
|
2076
2068
|
pre: (attrs) => {
|
|
2077
|
-
const counter = idGen$
|
|
2078
|
-
return `<${tagName$
|
|
2069
|
+
const counter = idGen$6.nextUid();
|
|
2070
|
+
return `<${tagName$k} wmFooter #${counter}="wmFooter" partialContainer data-role="page-footer" role="contentinfo" [attr.aria-label]="${counter}.arialabel || 'Page footer'" ${transpiler.getAttrMarkup(attrs)}>`;
|
|
2079
2071
|
},
|
|
2080
|
-
post: () => `</${tagName$
|
|
2072
|
+
post: () => `</${tagName$k}>`
|
|
2081
2073
|
};
|
|
2082
2074
|
});
|
|
2083
2075
|
var footer_build = () => { };
|
|
@@ -2087,15 +2079,15 @@
|
|
|
2087
2079
|
default: footer_build
|
|
2088
2080
|
});
|
|
2089
2081
|
|
|
2090
|
-
const tagName$
|
|
2091
|
-
const idGen$
|
|
2082
|
+
const tagName$j = 'header';
|
|
2083
|
+
const idGen$5 = new core.IDGenerator('wm_header');
|
|
2092
2084
|
transpiler.register('wm-header', () => {
|
|
2093
2085
|
return {
|
|
2094
2086
|
pre: (attrs) => {
|
|
2095
|
-
const counter = idGen$
|
|
2096
|
-
return `<${tagName$
|
|
2087
|
+
const counter = idGen$5.nextUid();
|
|
2088
|
+
return `<${tagName$j} wmHeader #${counter}="wmHeader" partialContainer data-role="page-header" role="banner" [attr.aria-label]="${counter}.arialabel || 'Page header'" ${transpiler.getAttrMarkup(attrs)}>`;
|
|
2097
2089
|
},
|
|
2098
|
-
post: () => `</${tagName$
|
|
2090
|
+
post: () => `</${tagName$j}>`
|
|
2099
2091
|
};
|
|
2100
2092
|
});
|
|
2101
2093
|
var header_build = () => { };
|
|
@@ -2105,15 +2097,15 @@
|
|
|
2105
2097
|
default: header_build
|
|
2106
2098
|
});
|
|
2107
2099
|
|
|
2108
|
-
const tagName$
|
|
2109
|
-
const idGen$
|
|
2100
|
+
const tagName$i = 'aside';
|
|
2101
|
+
const idGen$4 = new core.IDGenerator('wm_left_panel');
|
|
2110
2102
|
transpiler.register('wm-left-panel', () => {
|
|
2111
2103
|
return {
|
|
2112
2104
|
pre: (attrs) => {
|
|
2113
|
-
const counter = idGen$
|
|
2114
|
-
return `<${tagName$
|
|
2105
|
+
const counter = idGen$4.nextUid();
|
|
2106
|
+
return `<${tagName$i} wmLeftPanel #${counter}="wmLeftPanel" partialContainer data-role="page-left-panel" [attr.aria-label]="${counter}.arialabel || 'Left navigation panel'" wmSmoothscroll="${attrs.get('smoothscroll') || 'false'}" ${transpiler.getAttrMarkup(attrs)}>`;
|
|
2115
2107
|
},
|
|
2116
|
-
post: () => `</${tagName$
|
|
2108
|
+
post: () => `</${tagName$i}>`
|
|
2117
2109
|
};
|
|
2118
2110
|
});
|
|
2119
2111
|
var leftPanel_build = () => { };
|
|
@@ -2123,11 +2115,11 @@
|
|
|
2123
2115
|
default: leftPanel_build
|
|
2124
2116
|
});
|
|
2125
2117
|
|
|
2126
|
-
const tagName$
|
|
2118
|
+
const tagName$h = 'header';
|
|
2127
2119
|
transpiler.register('wm-mobile-navbar', () => {
|
|
2128
2120
|
return {
|
|
2129
|
-
pre: attrs => `<${tagName$
|
|
2130
|
-
post: () => `</${tagName$
|
|
2121
|
+
pre: attrs => `<${tagName$h} wmMobileNavbar ${transpiler.getAttrMarkup(attrs)}>`,
|
|
2122
|
+
post: () => `</${tagName$h}>`
|
|
2131
2123
|
};
|
|
2132
2124
|
});
|
|
2133
2125
|
var mobileNavbar_build = () => { };
|
|
@@ -2137,15 +2129,15 @@
|
|
|
2137
2129
|
default: mobileNavbar_build
|
|
2138
2130
|
});
|
|
2139
2131
|
|
|
2140
|
-
const tagName$
|
|
2141
|
-
const idGen$
|
|
2132
|
+
const tagName$g = 'aside';
|
|
2133
|
+
const idGen$3 = new core.IDGenerator('wm_right_panel');
|
|
2142
2134
|
transpiler.register('wm-right-panel', () => {
|
|
2143
2135
|
return {
|
|
2144
2136
|
pre: (attrs) => {
|
|
2145
|
-
const counter = idGen$
|
|
2146
|
-
return `<${tagName$
|
|
2137
|
+
const counter = idGen$3.nextUid();
|
|
2138
|
+
return `<${tagName$g} wmRightPanel #${counter}="wmRightPanel" partialContainer data-role="page-right-panel" role="complementary" [attr.aria-label]="${counter}.arialabel || 'Right navigation panel'" ${transpiler.getAttrMarkup(attrs)}>`;
|
|
2147
2139
|
},
|
|
2148
|
-
post: () => `</${tagName$
|
|
2140
|
+
post: () => `</${tagName$g}>`
|
|
2149
2141
|
};
|
|
2150
2142
|
});
|
|
2151
2143
|
var rightPanel_build = () => { };
|
|
@@ -2155,22 +2147,22 @@
|
|
|
2155
2147
|
default: rightPanel_build
|
|
2156
2148
|
});
|
|
2157
2149
|
|
|
2158
|
-
const tagName$
|
|
2159
|
-
const createElement$
|
|
2160
|
-
return new compiler.Element(name, [], [], noSpan$
|
|
2150
|
+
const tagName$f = 'div';
|
|
2151
|
+
const createElement$2 = name => {
|
|
2152
|
+
return new compiler.Element(name, [], [], noSpan$2, noSpan$2, noSpan$2);
|
|
2161
2153
|
};
|
|
2162
|
-
const addAtrribute$
|
|
2163
|
-
const attr = new compiler.Attribute(name, value, noSpan$
|
|
2154
|
+
const addAtrribute$2 = (node, name, value) => {
|
|
2155
|
+
const attr = new compiler.Attribute(name, value, noSpan$2, noSpan$2, noSpan$2, undefined, undefined);
|
|
2164
2156
|
node.attrs.push(attr);
|
|
2165
2157
|
};
|
|
2166
|
-
const noSpan$
|
|
2158
|
+
const noSpan$2 = {};
|
|
2167
2159
|
transpiler.register('wm-page-content', () => {
|
|
2168
2160
|
return {
|
|
2169
2161
|
template: (node) => {
|
|
2170
2162
|
for (let attr of node.attrs) {
|
|
2171
2163
|
if (attr.name === 'spa' && attr.value === 'true') {
|
|
2172
|
-
const conditionalNode = createElement$
|
|
2173
|
-
addAtrribute$
|
|
2164
|
+
const conditionalNode = createElement$2('ng-container');
|
|
2165
|
+
addAtrribute$2(conditionalNode, '*ngIf', 'compilePageContent');
|
|
2174
2166
|
conditionalNode.children = conditionalNode.children.concat(node.children);
|
|
2175
2167
|
conditionalNode.children.push(new compiler.Text('{{onPageContentReady()}}', null, undefined, undefined));
|
|
2176
2168
|
node.children = [conditionalNode];
|
|
@@ -2178,8 +2170,8 @@
|
|
|
2178
2170
|
}
|
|
2179
2171
|
}
|
|
2180
2172
|
},
|
|
2181
|
-
pre: attrs => `<${tagName$
|
|
2182
|
-
post: () => `</${tagName$
|
|
2173
|
+
pre: attrs => `<${tagName$f} wmPageContent ${attrs.get('spa') && 'wmSpaPage' || ''} wmSmoothscroll="${attrs.get('smoothscroll') || 'false'}" ${transpiler.getAttrMarkup(attrs)}>`,
|
|
2174
|
+
post: () => `</${tagName$f}>`
|
|
2183
2175
|
};
|
|
2184
2176
|
});
|
|
2185
2177
|
var pageContent_build = () => { };
|
|
@@ -2189,11 +2181,11 @@
|
|
|
2189
2181
|
default: pageContent_build
|
|
2190
2182
|
});
|
|
2191
2183
|
|
|
2192
|
-
const tagName$
|
|
2184
|
+
const tagName$e = 'div';
|
|
2193
2185
|
transpiler.register('wm-mobile-tabbar', () => {
|
|
2194
2186
|
return {
|
|
2195
|
-
pre: attrs => `<${tagName$
|
|
2196
|
-
post: () => `</${tagName$
|
|
2187
|
+
pre: attrs => `<${tagName$e} wmMobileTabbar ${transpiler.getAttrMarkup(attrs)}>`,
|
|
2188
|
+
post: () => `</${tagName$e}>`
|
|
2197
2189
|
};
|
|
2198
2190
|
});
|
|
2199
2191
|
var tabBar_build = () => { };
|
|
@@ -2203,15 +2195,15 @@
|
|
|
2203
2195
|
default: tabBar_build
|
|
2204
2196
|
});
|
|
2205
2197
|
|
|
2206
|
-
const tagName$
|
|
2207
|
-
const idGen$
|
|
2198
|
+
const tagName$d = 'section';
|
|
2199
|
+
const idGen$2 = new core.IDGenerator('wm_top_nav');
|
|
2208
2200
|
transpiler.register('wm-top-nav', () => {
|
|
2209
2201
|
return {
|
|
2210
2202
|
pre: (attrs) => {
|
|
2211
|
-
const counter = idGen$
|
|
2212
|
-
return `<${tagName$
|
|
2203
|
+
const counter = idGen$2.nextUid();
|
|
2204
|
+
return `<${tagName$d} wmTopNav #${counter}="wmTopNav" partialContainer data-role="page-topnav" role="navigation" [attr.aria-label]="${counter}.arialabel || 'Second level navigation'" ${transpiler.getAttrMarkup(attrs)}>`;
|
|
2213
2205
|
},
|
|
2214
|
-
post: () => `</${tagName$
|
|
2206
|
+
post: () => `</${tagName$d}>`
|
|
2215
2207
|
};
|
|
2216
2208
|
});
|
|
2217
2209
|
var topNav_build = () => { };
|
|
@@ -2221,26 +2213,26 @@
|
|
|
2221
2213
|
default: topNav_build
|
|
2222
2214
|
});
|
|
2223
2215
|
|
|
2224
|
-
const tagName$
|
|
2225
|
-
const noSpan$
|
|
2226
|
-
const createElement$
|
|
2227
|
-
return new compiler.Element(name, [], [], noSpan$
|
|
2216
|
+
const tagName$c = 'section';
|
|
2217
|
+
const noSpan$1 = {};
|
|
2218
|
+
const createElement$1 = name => {
|
|
2219
|
+
return new compiler.Element(name, [], [], noSpan$1, noSpan$1, noSpan$1);
|
|
2228
2220
|
};
|
|
2229
|
-
const addAtrribute$
|
|
2230
|
-
const attr = new compiler.Attribute(name, value, noSpan$
|
|
2221
|
+
const addAtrribute$1 = (node, name, value) => {
|
|
2222
|
+
const attr = new compiler.Attribute(name, value, noSpan$1, noSpan$1, noSpan$1, undefined, undefined);
|
|
2231
2223
|
node.attrs.push(attr);
|
|
2232
2224
|
};
|
|
2233
2225
|
transpiler.register('wm-partial', () => {
|
|
2234
2226
|
return {
|
|
2235
2227
|
template: (node) => {
|
|
2236
|
-
const conditionalNode = createElement$
|
|
2237
|
-
addAtrribute$
|
|
2228
|
+
const conditionalNode = createElement$1('ng-container');
|
|
2229
|
+
addAtrribute$1(conditionalNode, '*ngIf', 'compileContent');
|
|
2238
2230
|
conditionalNode.children = conditionalNode.children.concat(node.children);
|
|
2239
2231
|
node.children.length = 0;
|
|
2240
2232
|
node.children.push(conditionalNode);
|
|
2241
2233
|
},
|
|
2242
|
-
pre: attrs => `<${tagName$
|
|
2243
|
-
post: () => `</${tagName$
|
|
2234
|
+
pre: attrs => `<${tagName$c} wmPartial data-role="partial" ${transpiler.getAttrMarkup(attrs)}>`,
|
|
2235
|
+
post: () => `</${tagName$c}>`
|
|
2244
2236
|
};
|
|
2245
2237
|
});
|
|
2246
2238
|
var partial_build = () => { };
|
|
@@ -2250,11 +2242,11 @@
|
|
|
2250
2242
|
default: partial_build
|
|
2251
2243
|
});
|
|
2252
2244
|
|
|
2253
|
-
const tagName$
|
|
2245
|
+
const tagName$b = 'div';
|
|
2254
2246
|
transpiler.register('wm-param', () => {
|
|
2255
2247
|
return {
|
|
2256
|
-
pre: attrs => `<${tagName$
|
|
2257
|
-
post: () => `</${tagName$
|
|
2248
|
+
pre: attrs => `<${tagName$b} wmParam hidden ${transpiler.getAttrMarkup(attrs)}>`,
|
|
2249
|
+
post: () => `</${tagName$b}>`
|
|
2258
2250
|
};
|
|
2259
2251
|
});
|
|
2260
2252
|
var partialParam_build = () => { };
|
|
@@ -2264,11 +2256,11 @@
|
|
|
2264
2256
|
default: partialParam_build
|
|
2265
2257
|
});
|
|
2266
2258
|
|
|
2267
|
-
const tagName$
|
|
2259
|
+
const tagName$a = 'section';
|
|
2268
2260
|
transpiler.register('wm-prefab', () => {
|
|
2269
2261
|
return {
|
|
2270
|
-
pre: attrs => `<${tagName$
|
|
2271
|
-
post: () => `</${tagName$
|
|
2262
|
+
pre: attrs => `<${tagName$a} wmPrefab redrawable data-role="prefab" ${transpiler.getAttrMarkup(attrs)}>`,
|
|
2263
|
+
post: () => `</${tagName$a}>`
|
|
2272
2264
|
};
|
|
2273
2265
|
});
|
|
2274
2266
|
var prefab_build = () => { };
|
|
@@ -2278,26 +2270,26 @@
|
|
|
2278
2270
|
default: prefab_build
|
|
2279
2271
|
});
|
|
2280
2272
|
|
|
2281
|
-
const noSpan
|
|
2282
|
-
const createElement
|
|
2283
|
-
return new compiler.Element(name, [], [], noSpan
|
|
2273
|
+
const noSpan = {};
|
|
2274
|
+
const createElement = name => {
|
|
2275
|
+
return new compiler.Element(name, [], [], noSpan, noSpan, noSpan);
|
|
2284
2276
|
};
|
|
2285
|
-
const addAtrribute
|
|
2286
|
-
const attr = new compiler.Attribute(name, value, noSpan
|
|
2277
|
+
const addAtrribute = (node, name, value) => {
|
|
2278
|
+
const attr = new compiler.Attribute(name, value, noSpan, noSpan, noSpan, undefined, undefined);
|
|
2287
2279
|
node.attrs.push(attr);
|
|
2288
2280
|
};
|
|
2289
|
-
const tagName$
|
|
2281
|
+
const tagName$9 = 'div';
|
|
2290
2282
|
transpiler.register('wm-prefab-container', () => {
|
|
2291
2283
|
return {
|
|
2292
2284
|
template: (node) => {
|
|
2293
|
-
const conditionalNode = createElement
|
|
2294
|
-
addAtrribute
|
|
2285
|
+
const conditionalNode = createElement('ng-container');
|
|
2286
|
+
addAtrribute(conditionalNode, '*ngIf', 'compileContent');
|
|
2295
2287
|
conditionalNode.children = conditionalNode.children.concat(node.children);
|
|
2296
2288
|
node.children.length = 0;
|
|
2297
2289
|
node.children.push(conditionalNode);
|
|
2298
2290
|
},
|
|
2299
|
-
pre: attrs => `<${tagName$
|
|
2300
|
-
post: () => `</${tagName$
|
|
2291
|
+
pre: attrs => `<${tagName$9} wmPrefabContainer ${transpiler.getAttrMarkup(attrs)}>`,
|
|
2292
|
+
post: () => `</${tagName$9}>`
|
|
2301
2293
|
};
|
|
2302
2294
|
});
|
|
2303
2295
|
var prefabContainer_build = () => { };
|
|
@@ -2307,11 +2299,11 @@
|
|
|
2307
2299
|
default: prefabContainer_build
|
|
2308
2300
|
});
|
|
2309
2301
|
|
|
2310
|
-
const tagName$
|
|
2302
|
+
const tagName$8 = 'div';
|
|
2311
2303
|
transpiler.register('wm-table-action', () => {
|
|
2312
2304
|
return {
|
|
2313
|
-
pre: attrs => `<${tagName$
|
|
2314
|
-
post: () => `</${tagName$
|
|
2305
|
+
pre: attrs => `<${tagName$8} name="${attrs.get('name') || attrs.get('key')}" wmTableAction ${transpiler.getAttrMarkup(attrs)}>`,
|
|
2306
|
+
post: () => `</${tagName$8}>`
|
|
2315
2307
|
};
|
|
2316
2308
|
});
|
|
2317
2309
|
var tableAction_build = () => { };
|
|
@@ -2321,11 +2313,11 @@
|
|
|
2321
2313
|
default: tableAction_build
|
|
2322
2314
|
});
|
|
2323
2315
|
|
|
2324
|
-
const tagName$
|
|
2316
|
+
const tagName$7 = 'div';
|
|
2325
2317
|
transpiler.register('wm-table-column-group', () => {
|
|
2326
2318
|
return {
|
|
2327
|
-
pre: attrs => `<${tagName$
|
|
2328
|
-
post: () => `</${tagName$
|
|
2319
|
+
pre: attrs => `<${tagName$7} wmTableColumnGroup ${transpiler.getAttrMarkup(attrs)}>`,
|
|
2320
|
+
post: () => `</${tagName$7}>`
|
|
2329
2321
|
};
|
|
2330
2322
|
});
|
|
2331
2323
|
var tableColumnGroup_build = () => { };
|
|
@@ -2335,8 +2327,8 @@
|
|
|
2335
2327
|
default: tableColumnGroup_build
|
|
2336
2328
|
});
|
|
2337
2329
|
|
|
2338
|
-
const tagName$
|
|
2339
|
-
const idGen$
|
|
2330
|
+
const tagName$6 = 'div';
|
|
2331
|
+
const idGen$1 = new core.IDGenerator('data_table_form_');
|
|
2340
2332
|
const formWidgets = new Set([
|
|
2341
2333
|
'wm-text',
|
|
2342
2334
|
'wm-textarea',
|
|
@@ -2448,7 +2440,7 @@
|
|
|
2448
2440
|
let wmFormWidget = '';
|
|
2449
2441
|
if (widget === core.FormWidgetType.UPLOAD) {
|
|
2450
2442
|
options.uploadProps = {
|
|
2451
|
-
formName: idGen$
|
|
2443
|
+
formName: idGen$1.nextUid(),
|
|
2452
2444
|
name: fieldName
|
|
2453
2445
|
};
|
|
2454
2446
|
options.counter = pCounter;
|
|
@@ -2588,7 +2580,7 @@
|
|
|
2588
2580
|
customExprTmpl = `${customExpr}<div data-col-identifier="${attrs.get('binding')}" title="${formatExprTmpl}">${formatExprTmpl}`;
|
|
2589
2581
|
}
|
|
2590
2582
|
}
|
|
2591
|
-
return `<${tagName$
|
|
2583
|
+
return `<${tagName$6} wmTableColumn ${transpiler.getAttrMarkup(attrs)} ${parentForm}>
|
|
2592
2584
|
${rowFilterTmpl}
|
|
2593
2585
|
${inlineEditTmpl}
|
|
2594
2586
|
${inlineNewEditTmpl}
|
|
@@ -2599,7 +2591,7 @@
|
|
|
2599
2591
|
if (shared.get('customExpression')) {
|
|
2600
2592
|
customExprTmpl = `</div></ng-template>`;
|
|
2601
2593
|
}
|
|
2602
|
-
return `${customExprTmpl}</${tagName$
|
|
2594
|
+
return `${customExprTmpl}</${tagName$6}>`;
|
|
2603
2595
|
},
|
|
2604
2596
|
imports: (attrs) => {
|
|
2605
2597
|
const editWidgetType = attrs.get('edit-widget-type');
|
|
@@ -2615,7 +2607,7 @@
|
|
|
2615
2607
|
default: tableColumn_build
|
|
2616
2608
|
});
|
|
2617
2609
|
|
|
2618
|
-
const tagName$
|
|
2610
|
+
const tagName$5 = 'div';
|
|
2619
2611
|
const getRowExpansionActionTmpl = (attrs) => {
|
|
2620
2612
|
const tag = attrs.get('widget-type') === 'anchor' ? 'a' : 'button';
|
|
2621
2613
|
const directive = attrs.get('widget-type') === 'anchor' ? 'wmAnchor' : 'wmButton';
|
|
@@ -2631,7 +2623,7 @@
|
|
|
2631
2623
|
transpiler.register('wm-table-row', () => {
|
|
2632
2624
|
return {
|
|
2633
2625
|
pre: (attrs) => {
|
|
2634
|
-
return `<${tagName$
|
|
2626
|
+
return `<${tagName$5} wmTableRow ${transpiler.getAttrMarkup(attrs)}>
|
|
2635
2627
|
${getRowExpansionActionTmpl(attrs)}
|
|
2636
2628
|
<ng-template #rowExpansionTmpl let-row="row" let-rowDef="rowDef" let-containerLoad="containerLoad">
|
|
2637
2629
|
<div wmContainer partialContainer content.bind="rowDef.content" load.event="containerLoad(widget)"
|
|
@@ -2639,7 +2631,7 @@
|
|
|
2639
2631
|
<div *ngFor="let param of rowDef.partialParams | keyvalue" wmParam hidden
|
|
2640
2632
|
[name]="param.key" [value]="param.value"></div>`;
|
|
2641
2633
|
},
|
|
2642
|
-
post: () => `</div></ng-template></${tagName$
|
|
2634
|
+
post: () => `</div></ng-template></${tagName$5}>`
|
|
2643
2635
|
};
|
|
2644
2636
|
});
|
|
2645
2637
|
var tableRow_build = () => { };
|
|
@@ -2649,7 +2641,7 @@
|
|
|
2649
2641
|
default: tableRow_build
|
|
2650
2642
|
});
|
|
2651
2643
|
|
|
2652
|
-
const tagName$
|
|
2644
|
+
const tagName$4 = 'div';
|
|
2653
2645
|
const getSaveCancelTemplate = () => {
|
|
2654
2646
|
return `<button type="button" aria-label="Save edit icon" class="save row-action-button btn app-button btn-transparent save-edit-row-button hidden" title="Save">
|
|
2655
2647
|
<i class="wi wi-done" aria-hidden="true"></i>
|
|
@@ -2681,9 +2673,9 @@
|
|
|
2681
2673
|
};
|
|
2682
2674
|
transpiler.register('wm-table-row-action', () => {
|
|
2683
2675
|
return {
|
|
2684
|
-
pre: attrs => `<${tagName$
|
|
2676
|
+
pre: attrs => `<${tagName$4} wmTableRowAction ${transpiler.getAttrMarkup(attrs)}>
|
|
2685
2677
|
${getRowActionTmpl(attrs)}`,
|
|
2686
|
-
post: () => `</${tagName$
|
|
2678
|
+
post: () => `</${tagName$4}>`
|
|
2687
2679
|
};
|
|
2688
2680
|
});
|
|
2689
2681
|
var tableRowAction_build = () => { };
|
|
@@ -2693,9 +2685,9 @@
|
|
|
2693
2685
|
default: tableRowAction_build
|
|
2694
2686
|
});
|
|
2695
2687
|
|
|
2696
|
-
const tagName$
|
|
2688
|
+
const tagName$3 = 'div';
|
|
2697
2689
|
const dataSetKey = 'dataset';
|
|
2698
|
-
const idGen
|
|
2690
|
+
const idGen = new core.IDGenerator('table_');
|
|
2699
2691
|
let columnIndex = 0;
|
|
2700
2692
|
/**
|
|
2701
2693
|
* This method assigns index to the table-column and column-groups in order to the maintain the columns in the same order
|
|
@@ -2755,14 +2747,14 @@
|
|
|
2755
2747
|
core.updateTemplateAttrs(node, boundExpr, widgetNameAttr.value, '', 'row');
|
|
2756
2748
|
},
|
|
2757
2749
|
pre: (attrs, shared) => {
|
|
2758
|
-
const counter = idGen
|
|
2750
|
+
const counter = idGen.nextUid();
|
|
2759
2751
|
shared.set('counter', counter);
|
|
2760
2752
|
attrs.set('isdynamictable', shared.get('isdynamictable'));
|
|
2761
2753
|
attrs.set('isrowexpansionenabled', shared.get('isrowexpansionenabled'));
|
|
2762
2754
|
attrs.set('table_reference', counter);
|
|
2763
|
-
return `<${tagName$
|
|
2755
|
+
return `<${tagName$3} wmTable="${counter}" wmTableFilterSort wmTableCUD #${counter} data-identifier="table" ${transpiler.getAttrMarkup(attrs)}>`;
|
|
2764
2756
|
},
|
|
2765
|
-
post: () => `</${tagName$
|
|
2757
|
+
post: () => `</${tagName$3}>`,
|
|
2766
2758
|
provide: (attrs, shared) => {
|
|
2767
2759
|
const provider = new Map();
|
|
2768
2760
|
provider.set('table_reference', shared.get('counter'));
|
|
@@ -2781,11 +2773,11 @@
|
|
|
2781
2773
|
default: table_build
|
|
2782
2774
|
});
|
|
2783
2775
|
|
|
2784
|
-
const tagName$
|
|
2776
|
+
const tagName$2 = 'div';
|
|
2785
2777
|
transpiler.register('wm-video', () => {
|
|
2786
2778
|
return {
|
|
2787
|
-
pre: attrs => `<${tagName$
|
|
2788
|
-
post: () => `</${tagName$
|
|
2779
|
+
pre: attrs => `<${tagName$2} wmVideo ${transpiler.getAttrMarkup(attrs)}>`,
|
|
2780
|
+
post: () => `</${tagName$2}>`
|
|
2789
2781
|
};
|
|
2790
2782
|
});
|
|
2791
2783
|
var video_build = () => { };
|
|
@@ -2795,7 +2787,7 @@
|
|
|
2795
2787
|
default: video_build
|
|
2796
2788
|
});
|
|
2797
2789
|
|
|
2798
|
-
const tagName$
|
|
2790
|
+
const tagName$1 = 'div';
|
|
2799
2791
|
const SPACING_KEY = 'parentLinearLayout.spacing';
|
|
2800
2792
|
transpiler.register('wm-linearlayout', () => {
|
|
2801
2793
|
return {
|
|
@@ -2803,9 +2795,9 @@
|
|
|
2803
2795
|
pre: (attrs, shared, provider) => {
|
|
2804
2796
|
let spacing = attrs.get('spacing');
|
|
2805
2797
|
attrs.set('spacing', (!spacing || spacing === '0') && provider ? provider.get(SPACING_KEY) : spacing);
|
|
2806
|
-
return `<${tagName$
|
|
2798
|
+
return `<${tagName$1} wmLinearLayout ${transpiler.getAttrMarkup(attrs)}>`;
|
|
2807
2799
|
},
|
|
2808
|
-
post: () => `</${tagName$
|
|
2800
|
+
post: () => `</${tagName$1}>`,
|
|
2809
2801
|
provide: (attrs, shared) => {
|
|
2810
2802
|
const provider = new Map();
|
|
2811
2803
|
provider.set(SPACING_KEY, attrs.get('spacing'));
|
|
@@ -2820,11 +2812,11 @@
|
|
|
2820
2812
|
default: linearLayout_build
|
|
2821
2813
|
});
|
|
2822
2814
|
|
|
2823
|
-
const tagName
|
|
2815
|
+
const tagName = 'div';
|
|
2824
2816
|
transpiler.register('wm-linearlayoutitem', () => {
|
|
2825
2817
|
return {
|
|
2826
|
-
pre: attrs => `<${tagName
|
|
2827
|
-
post: () => `</${tagName
|
|
2818
|
+
pre: attrs => `<${tagName} wmLinearLayoutItem ${transpiler.getAttrMarkup(attrs)}>`,
|
|
2819
|
+
post: () => `</${tagName}>`
|
|
2828
2820
|
};
|
|
2829
2821
|
});
|
|
2830
2822
|
var linearLayoutItem_build = () => { };
|
|
@@ -2834,49 +2826,6 @@
|
|
|
2834
2826
|
default: linearLayoutItem_build
|
|
2835
2827
|
});
|
|
2836
2828
|
|
|
2837
|
-
const tagName$1 = 'div';
|
|
2838
|
-
const idGen = new core.IDGenerator('wm_custom_widget');
|
|
2839
|
-
transpiler.register('wm-custom-widget', () => {
|
|
2840
|
-
return {
|
|
2841
|
-
pre: (attrs) => {
|
|
2842
|
-
const counter = idGen.nextUid();
|
|
2843
|
-
return `<${tagName$1} wmWidgetContainer customWidgetContainer #${counter}="wmWidgetContainer" ${transpiler.getAttrMarkup(attrs)}>`;
|
|
2844
|
-
},
|
|
2845
|
-
post: () => `</${tagName$1}>`
|
|
2846
|
-
};
|
|
2847
|
-
});
|
|
2848
|
-
var customWidgetContainer_build = () => { };
|
|
2849
|
-
|
|
2850
|
-
var customWidgetContainer_build$1 = /*#__PURE__*/Object.freeze({
|
|
2851
|
-
__proto__: null,
|
|
2852
|
-
default: customWidgetContainer_build
|
|
2853
|
-
});
|
|
2854
|
-
|
|
2855
|
-
const tagName = 'section';
|
|
2856
|
-
const noSpan = {};
|
|
2857
|
-
const createElement = name => {
|
|
2858
|
-
return new compiler.Element(name, [], [], noSpan, noSpan, noSpan);
|
|
2859
|
-
};
|
|
2860
|
-
transpiler.register('wm-custom-widget-container', () => {
|
|
2861
|
-
return {
|
|
2862
|
-
template: (node) => {
|
|
2863
|
-
const conditionalNode = createElement('ng-container');
|
|
2864
|
-
// addAtrribute(conditionalNode, '*ngIf', 'compileContent');
|
|
2865
|
-
conditionalNode.children = conditionalNode.children.concat(node.children);
|
|
2866
|
-
node.children.length = 0;
|
|
2867
|
-
node.children.push(conditionalNode);
|
|
2868
|
-
},
|
|
2869
|
-
pre: attrs => `<${tagName} wmCustomWidget data-role="widget" ${transpiler.getAttrMarkup(attrs)}>`,
|
|
2870
|
-
post: () => `</${tagName}>`
|
|
2871
|
-
};
|
|
2872
|
-
});
|
|
2873
|
-
var customWidgetWrapper_build = () => { };
|
|
2874
|
-
|
|
2875
|
-
var customWidgetWrapper_build$1 = /*#__PURE__*/Object.freeze({
|
|
2876
|
-
__proto__: null,
|
|
2877
|
-
default: customWidgetWrapper_build
|
|
2878
|
-
});
|
|
2879
|
-
|
|
2880
2829
|
const initComponentsBuildTask = () => { };
|
|
2881
2830
|
|
|
2882
2831
|
exports.accordionBuild = accordion_build$1;
|
|
@@ -2906,8 +2855,6 @@
|
|
|
2906
2855
|
exports.containerBuild = container_build$1;
|
|
2907
2856
|
exports.contentBuild = content_build$1;
|
|
2908
2857
|
exports.currencyBuild = currency_build$1;
|
|
2909
|
-
exports.customWidgetBuild = customWidgetContainer_build$1;
|
|
2910
|
-
exports.customWidgetWrapperBuild = customWidgetWrapper_build$1;
|
|
2911
2858
|
exports.dateBuild = date_build$1;
|
|
2912
2859
|
exports.dateTimeBuild = dateTime_build$1;
|
|
2913
2860
|
exports.dlgBuild = dialog_build$1;
|