@wavemaker/angular-codegen 11.2.0-rc.5224 → 11.2.0-rc.5227
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.
- angular-codegen/angular-app/package-lock.json +4 -4
- angular-codegen/angular-app/package.json +1 -1
- angular-codegen/angular-app/src/assets/styles/css/wm-style.css +1 -1
- angular-codegen/dependencies/transpilation-mobile.cjs.js +4 -4
- angular-codegen/dependencies/transpilation-web.cjs.js +4 -4
- angular-codegen/package.json +1 -1
@@ -40760,10 +40760,10 @@ const getFormWidgetTemplate = (widgetType, innerTmpl, attrs, options = {}) => {
|
|
40760
40760
|
break;
|
40761
40761
|
case FormWidgetType.TEXT:
|
40762
40762
|
const inputType = options.inputType || 'inputtype';
|
40763
|
-
tmpl = `<wm-input ${innerTmpl} ${attrs.get('required') === 'true' ? 'required=true' : ''} type="${attrs.get(inputType) || 'text'}"
|
40763
|
+
tmpl = `<wm-input ${innerTmpl} ${attrs.get('required') === 'true' ? 'required=true' : ''} type="${attrs.get(inputType) || 'text'}" ${updateOnTmpl}></wm-input>`;
|
40764
40764
|
break;
|
40765
40765
|
case FormWidgetType.TEXTAREA:
|
40766
|
-
tmpl = `<wm-textarea ${innerTmpl} ${attrs.get('required') === 'true' ? 'required=true' : ''} role="textbox"
|
40766
|
+
tmpl = `<wm-textarea ${innerTmpl} ${attrs.get('required') === 'true' ? 'required=true' : ''} role="textbox" ${updateOnTmpl}></wm-textarea>`;
|
40767
40767
|
break;
|
40768
40768
|
case FormWidgetType.TIME:
|
40769
40769
|
tmpl = `<div wmTime ${attrs.get('required') === 'true' ? 'required=true' : ''} dataentrymode="${attrs.get('dataentrymode')}" ${innerTmpl}></div>`;
|
@@ -40792,7 +40792,7 @@ const getFormWidgetTemplate = (widgetType, innerTmpl, attrs, options = {}) => {
|
|
40792
40792
|
}
|
40793
40793
|
break;
|
40794
40794
|
default:
|
40795
|
-
tmpl = `<wm-input ${innerTmpl} ${attrs.get('required') === 'true' ? 'required=true' : ''}
|
40795
|
+
tmpl = `<wm-input ${innerTmpl} ${attrs.get('required') === 'true' ? 'required=true' : ''} type="text" ${updateOnTmpl}></wm-input>`;
|
40796
40796
|
break;
|
40797
40797
|
}
|
40798
40798
|
return tmpl;
|
@@ -46037,7 +46037,7 @@ const registerFormField = (isFormField) => {
|
|
46037
46037
|
const widgetType = attrs.get('widget') || FormWidgetType.TEXT;
|
46038
46038
|
const dataRole = isFormField ? 'form-field' : 'filter-field';
|
46039
46039
|
const validationMsg = isFormField ? `<p *ngIf="${counter}._control?.invalid && ${counter}._control?.touched && ${pCounter}.isUpdateMode"
|
46040
|
-
class="help-block text-danger" aria-hidden="false"
|
46040
|
+
class="help-block text-danger" aria-hidden="false" role="alert"
|
46041
46041
|
aria-live="assertive" [textContent]="${counter}.validationmessage"></p>` : '';
|
46042
46042
|
const eventsTmpl = widgetType === FormWidgetType.UPLOAD ? '' : getEventsTemplate(attrs);
|
46043
46043
|
const controlLayout = isMobileApp() ? 'col-xs-12' : 'col-sm-12';
|
@@ -40760,10 +40760,10 @@ const getFormWidgetTemplate = (widgetType, innerTmpl, attrs, options = {}) => {
|
|
40760
40760
|
break;
|
40761
40761
|
case FormWidgetType.TEXT:
|
40762
40762
|
const inputType = options.inputType || 'inputtype';
|
40763
|
-
tmpl = `<wm-input ${innerTmpl} ${attrs.get('required') === 'true' ? 'required=true' : ''} type="${attrs.get(inputType) || 'text'}"
|
40763
|
+
tmpl = `<wm-input ${innerTmpl} ${attrs.get('required') === 'true' ? 'required=true' : ''} type="${attrs.get(inputType) || 'text'}" ${updateOnTmpl}></wm-input>`;
|
40764
40764
|
break;
|
40765
40765
|
case FormWidgetType.TEXTAREA:
|
40766
|
-
tmpl = `<wm-textarea ${innerTmpl} ${attrs.get('required') === 'true' ? 'required=true' : ''} role="textbox"
|
40766
|
+
tmpl = `<wm-textarea ${innerTmpl} ${attrs.get('required') === 'true' ? 'required=true' : ''} role="textbox" ${updateOnTmpl}></wm-textarea>`;
|
40767
40767
|
break;
|
40768
40768
|
case FormWidgetType.TIME:
|
40769
40769
|
tmpl = `<div wmTime ${attrs.get('required') === 'true' ? 'required=true' : ''} dataentrymode="${attrs.get('dataentrymode')}" ${innerTmpl}></div>`;
|
@@ -40792,7 +40792,7 @@ const getFormWidgetTemplate = (widgetType, innerTmpl, attrs, options = {}) => {
|
|
40792
40792
|
}
|
40793
40793
|
break;
|
40794
40794
|
default:
|
40795
|
-
tmpl = `<wm-input ${innerTmpl} ${attrs.get('required') === 'true' ? 'required=true' : ''}
|
40795
|
+
tmpl = `<wm-input ${innerTmpl} ${attrs.get('required') === 'true' ? 'required=true' : ''} type="text" ${updateOnTmpl}></wm-input>`;
|
40796
40796
|
break;
|
40797
40797
|
}
|
40798
40798
|
return tmpl;
|
@@ -46037,7 +46037,7 @@ const registerFormField = (isFormField) => {
|
|
46037
46037
|
const widgetType = attrs.get('widget') || FormWidgetType.TEXT;
|
46038
46038
|
const dataRole = isFormField ? 'form-field' : 'filter-field';
|
46039
46039
|
const validationMsg = isFormField ? `<p *ngIf="${counter}._control?.invalid && ${counter}._control?.touched && ${pCounter}.isUpdateMode"
|
46040
|
-
class="help-block text-danger" aria-hidden="false"
|
46040
|
+
class="help-block text-danger" aria-hidden="false" role="alert"
|
46041
46041
|
aria-live="assertive" [textContent]="${counter}.validationmessage"></p>` : '';
|
46042
46042
|
const eventsTmpl = widgetType === FormWidgetType.UPLOAD ? '' : getEventsTemplate(attrs);
|
46043
46043
|
const controlLayout = isMobileApp() ? 'col-xs-12' : 'col-sm-12';
|