@wavemaker/app-ng-runtime 11.5.3-rc.5503 → 11.5.4-8.5629
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- app-ng-runtime/components/base/bundles/index.umd.js +0 -1
- app-ng-runtime/components/base/esm2020/widgets/common/partial/partial.directive.mjs +1 -2
- app-ng-runtime/components/base/fesm2015/index.mjs +0 -1
- app-ng-runtime/components/base/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/base/fesm2020/index.mjs +0 -1
- app-ng-runtime/components/base/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/chart/bundles/index.umd.js +1 -3
- app-ng-runtime/components/chart/esm2020/chart.component.mjs +2 -4
- app-ng-runtime/components/chart/fesm2015/index.mjs +1 -3
- app-ng-runtime/components/chart/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/chart/fesm2020/index.mjs +1 -3
- app-ng-runtime/components/chart/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/data/table/bundles/index.umd.js +2 -4
- app-ng-runtime/components/data/table/esm2020/table-column/table-column.props.mjs +1 -2
- app-ng-runtime/components/data/table/esm2020/table.component.mjs +3 -4
- app-ng-runtime/components/data/table/fesm2015/index.mjs +2 -4
- app-ng-runtime/components/data/table/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/data/table/fesm2020/index.mjs +2 -4
- app-ng-runtime/components/data/table/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/data/table/table.component.d.ts +1 -1
- app-ng-runtime/components/navigation/popover/bundles/index.umd.js +1 -2
- app-ng-runtime/components/navigation/popover/esm2020/popover.component.mjs +2 -3
- app-ng-runtime/components/navigation/popover/fesm2015/index.mjs +1 -2
- app-ng-runtime/components/navigation/popover/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/navigation/popover/fesm2020/index.mjs +1 -2
- app-ng-runtime/components/navigation/popover/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/prefab/bundles/index.umd.js +0 -1
- app-ng-runtime/components/prefab/esm2020/prefab-container/prefab-container.directive.mjs +1 -2
- app-ng-runtime/components/prefab/fesm2015/index.mjs +0 -1
- app-ng-runtime/components/prefab/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/prefab/fesm2020/index.mjs +0 -1
- app-ng-runtime/components/prefab/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/core/bundles/index.umd.js +24 -26
- app-ng-runtime/core/esm2020/utils/build-utils.mjs +25 -27
- app-ng-runtime/core/fesm2015/index.mjs +24 -26
- app-ng-runtime/core/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/core/fesm2020/index.mjs +24 -26
- app-ng-runtime/core/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/package.json +1 -1
- app-ng-runtime/scripts/datatable/datatable.js +3 -3
- app-ng-runtime/variables/bundles/index.umd.js +7 -13
- app-ng-runtime/variables/esm2020/util/variable/variables.utils.mjs +8 -14
- app-ng-runtime/variables/fesm2015/index.mjs +7 -13
- app-ng-runtime/variables/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/variables/fesm2020/index.mjs +7 -13
- app-ng-runtime/variables/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/variables/util/variable/variables.utils.d.ts +1 -1
|
@@ -92,73 +92,71 @@ const getFormWidgetTemplate = (widgetType, innerTmpl, attrs, options = {}) => {
|
|
|
92
92
|
let tmpl;
|
|
93
93
|
const updateOn = attrs.get('updateon');
|
|
94
94
|
const updateOnTmpl = updateOn ? `updateon="${updateOn}"` : '';
|
|
95
|
-
const showineditmode = attrs.get('showineditmode') || attrs.get('showineditmode.bind') || true;
|
|
96
|
-
const showTmpl = showineditmode == 'false' ? `show="${showineditmode}"` : `show.bind="${showineditmode}"`;
|
|
97
95
|
switch (widgetType) {
|
|
98
96
|
case FormWidgetType.AUTOCOMPLETE:
|
|
99
97
|
case FormWidgetType.TYPEAHEAD:
|
|
100
|
-
tmpl = `<div wmSearch type="autocomplete" debouncetime="${attrs.get('debouncetime')}" ${innerTmpl}
|
|
98
|
+
tmpl = `<div wmSearch type="autocomplete" debouncetime="${attrs.get('debouncetime')}" ${innerTmpl}></div>`;
|
|
101
99
|
break;
|
|
102
100
|
case FormWidgetType.CHECKBOX:
|
|
103
|
-
tmpl = `<div wmCheckbox ${innerTmpl} ${attrs.get('required') === 'true' ? 'required=true' : ''}
|
|
101
|
+
tmpl = `<div wmCheckbox ${innerTmpl} ${attrs.get('required') === 'true' ? 'required=true' : ''}></div>`;
|
|
104
102
|
break;
|
|
105
103
|
case FormWidgetType.CHECKBOXSET:
|
|
106
|
-
tmpl = `<ul role="group" wmCheckboxset ${innerTmpl} ${attrs.get('required') === 'true' ? 'required=true' : ''}
|
|
104
|
+
tmpl = `<ul role="group" wmCheckboxset ${innerTmpl} ${attrs.get('required') === 'true' ? 'required=true' : ''}></ul>`;
|
|
107
105
|
break;
|
|
108
106
|
case FormWidgetType.CHIPS:
|
|
109
|
-
tmpl = `<ul wmChips role="input" debouncetime="${attrs.get('debouncetime')}" ${innerTmpl}
|
|
107
|
+
tmpl = `<ul wmChips role="input" debouncetime="${attrs.get('debouncetime')}" ${innerTmpl}></ul>`;
|
|
110
108
|
break;
|
|
111
109
|
case FormWidgetType.COLORPICKER:
|
|
112
|
-
tmpl = `<div wmColorPicker ${attrs.get('required') === 'true' ? 'required=true' : ''} ${innerTmpl}
|
|
110
|
+
tmpl = `<div wmColorPicker ${attrs.get('required') === 'true' ? 'required=true' : ''} ${innerTmpl}></div>`;
|
|
113
111
|
break;
|
|
114
112
|
case FormWidgetType.CURRENCY:
|
|
115
|
-
tmpl = `<div wmCurrency ${attrs.get('required') === 'true' ? 'required=true' : ''} ${updateOnTmpl} ${innerTmpl}
|
|
113
|
+
tmpl = `<div wmCurrency ${attrs.get('required') === 'true' ? 'required=true' : ''} ${updateOnTmpl} ${innerTmpl}></div>`;
|
|
116
114
|
break;
|
|
117
115
|
case FormWidgetType.DATE:
|
|
118
|
-
tmpl = `<div wmDate ${attrs.get('required') === 'true' ? 'required=true' : ''} dataentrymode="${attrs.get('dataentrymode')}" ${innerTmpl}
|
|
116
|
+
tmpl = `<div wmDate ${attrs.get('required') === 'true' ? 'required=true' : ''} dataentrymode="${attrs.get('dataentrymode')}" ${innerTmpl}></div>`;
|
|
119
117
|
break;
|
|
120
118
|
case FormWidgetType.DATETIME:
|
|
121
|
-
tmpl = `<div wmDateTime ${attrs.get('required') === 'true' ? 'required=true' : ''} dataentrymode="${attrs.get('dataentrymode')}" ${innerTmpl}
|
|
119
|
+
tmpl = `<div wmDateTime ${attrs.get('required') === 'true' ? 'required=true' : ''} dataentrymode="${attrs.get('dataentrymode')}" ${innerTmpl}></div>`;
|
|
122
120
|
break;
|
|
123
121
|
case FormWidgetType.NUMBER:
|
|
124
|
-
tmpl = `<div wmNumber ${innerTmpl} ${attrs.get('required') === 'true' ? 'required=true' : ''} type="number" aria-label="Only numbers" ${updateOnTmpl}
|
|
122
|
+
tmpl = `<div wmNumber ${innerTmpl} ${attrs.get('required') === 'true' ? 'required=true' : ''} type="number" aria-label="Only numbers" ${updateOnTmpl}></div>`;
|
|
125
123
|
break;
|
|
126
124
|
case FormWidgetType.PASSWORD:
|
|
127
|
-
tmpl = `<wm-input ${innerTmpl} ${attrs.get('required') === 'true' ? 'required=true' : ''} type="password" aria-label="Enter password" ${updateOnTmpl}
|
|
125
|
+
tmpl = `<wm-input ${innerTmpl} ${attrs.get('required') === 'true' ? 'required=true' : ''} type="password" aria-label="Enter password" ${updateOnTmpl}></wm-input>`;
|
|
128
126
|
break;
|
|
129
127
|
case FormWidgetType.RADIOSET:
|
|
130
|
-
tmpl = `<ul role="radiogroup" wmRadioset ${innerTmpl}
|
|
128
|
+
tmpl = `<ul role="radiogroup" wmRadioset ${innerTmpl}></ul>`;
|
|
131
129
|
break;
|
|
132
130
|
case FormWidgetType.RATING:
|
|
133
|
-
tmpl = `<div wmRating ${innerTmpl}
|
|
131
|
+
tmpl = `<div wmRating ${innerTmpl}></div>`;
|
|
134
132
|
break;
|
|
135
133
|
case FormWidgetType.RICHTEXT:
|
|
136
|
-
tmpl = `<div wmRichTextEditor role="textbox" ${innerTmpl}
|
|
134
|
+
tmpl = `<div wmRichTextEditor role="textbox" ${innerTmpl}></div>`;
|
|
137
135
|
break;
|
|
138
136
|
case FormWidgetType.SELECT:
|
|
139
|
-
tmpl = `<wm-select ${attrs.get('required') === 'true' ? 'required=true' : ''} ${innerTmpl}
|
|
137
|
+
tmpl = `<wm-select ${attrs.get('required') === 'true' ? 'required=true' : ''} ${innerTmpl}></wm-select>`;
|
|
140
138
|
break;
|
|
141
139
|
case FormWidgetType.TOGGLE:
|
|
142
|
-
tmpl = `<div wmCheckbox ${innerTmpl} ${attrs.get('required') === 'true' ? 'required=true' : ''} type="toggle" role="checkbox" aria-label="Toggle button"
|
|
140
|
+
tmpl = `<div wmCheckbox ${innerTmpl} ${attrs.get('required') === 'true' ? 'required=true' : ''} type="toggle" role="checkbox" aria-label="Toggle button"></div>`;
|
|
143
141
|
break;
|
|
144
142
|
case FormWidgetType.SLIDER:
|
|
145
|
-
tmpl = `<div wmSlider ${innerTmpl}
|
|
143
|
+
tmpl = `<div wmSlider ${innerTmpl}></div>`;
|
|
146
144
|
break;
|
|
147
145
|
case FormWidgetType.SWITCH:
|
|
148
|
-
tmpl = `<div wmSwitch ${innerTmpl}
|
|
146
|
+
tmpl = `<div wmSwitch ${innerTmpl}></div>`;
|
|
149
147
|
break;
|
|
150
148
|
case FormWidgetType.TEXT:
|
|
151
149
|
const inputType = options.inputType || 'inputtype';
|
|
152
|
-
tmpl = `<wm-input ${innerTmpl} ${attrs.get('required') === 'true' ? 'required=true' : ''} type="${attrs.get(inputType) || 'text'}" ${updateOnTmpl}
|
|
150
|
+
tmpl = `<wm-input ${innerTmpl} ${attrs.get('required') === 'true' ? 'required=true' : ''} type="${attrs.get(inputType) || 'text'}" ${updateOnTmpl}></wm-input>`;
|
|
153
151
|
break;
|
|
154
152
|
case FormWidgetType.TEXTAREA:
|
|
155
|
-
tmpl = `<wm-textarea ${innerTmpl} ${attrs.get('required') === 'true' ? 'required=true' : ''} role="textbox" ${updateOnTmpl}
|
|
153
|
+
tmpl = `<wm-textarea ${innerTmpl} ${attrs.get('required') === 'true' ? 'required=true' : ''} role="textbox" ${updateOnTmpl}></wm-textarea>`;
|
|
156
154
|
break;
|
|
157
155
|
case FormWidgetType.TIME:
|
|
158
|
-
tmpl = `<div wmTime ${attrs.get('required') === 'true' ? 'required=true' : ''} dataentrymode="${attrs.get('dataentrymode')}" ${innerTmpl}
|
|
156
|
+
tmpl = `<div wmTime ${attrs.get('required') === 'true' ? 'required=true' : ''} dataentrymode="${attrs.get('dataentrymode')}" ${innerTmpl}></div>`;
|
|
159
157
|
break;
|
|
160
158
|
case FormWidgetType.TIMESTAMP:
|
|
161
|
-
tmpl = `<div wmDateTime ${attrs.get('required') === 'true' ? 'required=true' : ''} dataentrymode="${attrs.get('dataentrymode')}" ${innerTmpl} role="input"
|
|
159
|
+
tmpl = `<div wmDateTime ${attrs.get('required') === 'true' ? 'required=true' : ''} dataentrymode="${attrs.get('dataentrymode')}" ${innerTmpl} role="input"></div>`;
|
|
162
160
|
break;
|
|
163
161
|
case FormWidgetType.UPLOAD:
|
|
164
162
|
const counter = options.counter;
|
|
@@ -167,7 +165,7 @@ const getFormWidgetTemplate = (widgetType, innerTmpl, attrs, options = {}) => {
|
|
|
167
165
|
const eventTmpl = getUploadEventTmpl(attrs, counter, uploadProps && uploadProps.name);
|
|
168
166
|
if (uploadProps) {
|
|
169
167
|
tmpl = `<form name="${uploadProps.formName}" ${innerTmpl}>
|
|
170
|
-
<input focus-target class="file-upload" type="file" name="${uploadProps.name}" ${eventTmpl}
|
|
168
|
+
<input focus-target class="file-upload" type="file" name="${uploadProps.name}" ${eventTmpl}/>
|
|
171
169
|
</form>`;
|
|
172
170
|
}
|
|
173
171
|
else {
|
|
@@ -177,11 +175,11 @@ const getFormWidgetTemplate = (widgetType, innerTmpl, attrs, options = {}) => {
|
|
|
177
175
|
<i class="wi wi-file"></i></a>
|
|
178
176
|
<input ${innerTmpl} class="app-blob-upload" [ngClass]="{'file-readonly': ${counter}.readonly}" ${eventTmpl}
|
|
179
177
|
[required]="${counter}.required" type="file" name="${attrs.get('key') || attrs.get('name')}_formWidget" [readonly]="${counter}.readonly"
|
|
180
|
-
[class.hidden]="!${pCounter}.isUpdateMode" [accept]="${counter}.permitted"
|
|
178
|
+
[class.hidden]="!${pCounter}.isUpdateMode" [accept]="${counter}.permitted">`;
|
|
181
179
|
}
|
|
182
180
|
break;
|
|
183
181
|
default:
|
|
184
|
-
tmpl = `<wm-input ${innerTmpl} ${attrs.get('required') === 'true' ? 'required=true' : ''} type="text" ${updateOnTmpl}
|
|
182
|
+
tmpl = `<wm-input ${innerTmpl} ${attrs.get('required') === 'true' ? 'required=true' : ''} type="text" ${updateOnTmpl}></wm-input>`;
|
|
185
183
|
break;
|
|
186
184
|
}
|
|
187
185
|
return tmpl;
|