@wavemaker/angular-codegen 11.2.5-next.23541 → 11.2.5-next.23544
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.
|
@@ -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;
|
|
@@ -46043,7 +46043,7 @@ const registerFormField = (isFormField) => {
|
|
|
46043
46043
|
const widgetType = attrs.get('widget') || FormWidgetType.TEXT;
|
|
46044
46044
|
const dataRole = isFormField ? 'form-field' : 'filter-field';
|
|
46045
46045
|
const validationMsg = isFormField ? `<p *ngIf="${counter}._control?.invalid && ${counter}._control?.touched && ${pCounter}.isUpdateMode"
|
|
46046
|
-
class="help-block text-danger" aria-hidden="false"
|
|
46046
|
+
class="help-block text-danger" aria-hidden="false" role="alert"
|
|
46047
46047
|
aria-live="assertive" [textContent]="${counter}.validationmessage"></p>` : '';
|
|
46048
46048
|
const eventsTmpl = widgetType === FormWidgetType.UPLOAD ? '' : getEventsTemplate(attrs);
|
|
46049
46049
|
const controlLayout = isMobileApp() ? 'col-xs-12' : 'col-sm-12';
|
|
@@ -46864,7 +46864,7 @@ register('wm-popover', () => {
|
|
|
46864
46864
|
}
|
|
46865
46865
|
let markup = `<${tagName$q} wmPopover ${getAttrMarkup(attrs)}>`;
|
|
46866
46866
|
const contextAttrs = table ? `let-row="row"` : ``;
|
|
46867
|
-
markup += `<ng-template ${contextAttrs}><button
|
|
46867
|
+
markup += `<ng-template ${contextAttrs}><button class="popover-start"></button>`;
|
|
46868
46868
|
// todo keyboard navigation - tab
|
|
46869
46869
|
if (popoverTemplate) {
|
|
46870
46870
|
markup += `${popoverTemplate ? popoverTemplate : ''}`;
|
|
@@ -46876,7 +46876,7 @@ register('wm-popover', () => {
|
|
|
46876
46876
|
if (shared.get('hasPopoverContent')) {
|
|
46877
46877
|
markup += `</div>`;
|
|
46878
46878
|
}
|
|
46879
|
-
return `${markup}<button
|
|
46879
|
+
return `${markup}<button class="popover-end"></button></ng-template></${tagName$q}>`;
|
|
46880
46880
|
}
|
|
46881
46881
|
};
|
|
46882
46882
|
});
|
|
@@ -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;
|
|
@@ -46043,7 +46043,7 @@ const registerFormField = (isFormField) => {
|
|
|
46043
46043
|
const widgetType = attrs.get('widget') || FormWidgetType.TEXT;
|
|
46044
46044
|
const dataRole = isFormField ? 'form-field' : 'filter-field';
|
|
46045
46045
|
const validationMsg = isFormField ? `<p *ngIf="${counter}._control?.invalid && ${counter}._control?.touched && ${pCounter}.isUpdateMode"
|
|
46046
|
-
class="help-block text-danger" aria-hidden="false"
|
|
46046
|
+
class="help-block text-danger" aria-hidden="false" role="alert"
|
|
46047
46047
|
aria-live="assertive" [textContent]="${counter}.validationmessage"></p>` : '';
|
|
46048
46048
|
const eventsTmpl = widgetType === FormWidgetType.UPLOAD ? '' : getEventsTemplate(attrs);
|
|
46049
46049
|
const controlLayout = isMobileApp() ? 'col-xs-12' : 'col-sm-12';
|
|
@@ -46864,7 +46864,7 @@ register('wm-popover', () => {
|
|
|
46864
46864
|
}
|
|
46865
46865
|
let markup = `<${tagName$q} wmPopover ${getAttrMarkup(attrs)}>`;
|
|
46866
46866
|
const contextAttrs = table ? `let-row="row"` : ``;
|
|
46867
|
-
markup += `<ng-template ${contextAttrs}><button
|
|
46867
|
+
markup += `<ng-template ${contextAttrs}><button class="popover-start"></button>`;
|
|
46868
46868
|
// todo keyboard navigation - tab
|
|
46869
46869
|
if (popoverTemplate) {
|
|
46870
46870
|
markup += `${popoverTemplate ? popoverTemplate : ''}`;
|
|
@@ -46876,7 +46876,7 @@ register('wm-popover', () => {
|
|
|
46876
46876
|
if (shared.get('hasPopoverContent')) {
|
|
46877
46877
|
markup += `</div>`;
|
|
46878
46878
|
}
|
|
46879
|
-
return `${markup}<button
|
|
46879
|
+
return `${markup}<button class="popover-end"></button></ng-template></${tagName$q}>`;
|
|
46880
46880
|
}
|
|
46881
46881
|
};
|
|
46882
46882
|
});
|