@mgdis/mg-components 6.16.0 → 6.18.0
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.
- package/dist/cjs/{index-T3-qWqFE.js → index-DCZEYvlH.js} +51 -28
- package/dist/cjs/{index-YM1EJx9X.js → index-TUElr4Wv.js} +10 -10
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/mg-action-more_37.cjs.entry.js +443 -228
- package/dist/cjs/mg-alert.cjs.entry.js +3 -3
- package/dist/cjs/mg-components.cjs.js +3 -3
- package/dist/cjs/mg-fieldset.cjs.entry.js +141 -0
- package/dist/cjs/mg-input-combobox.cjs.entry.js +73 -57
- package/dist/cjs/mg-input-rich-text-editor.cjs.entry.js +36 -23
- package/dist/cjs/{mg-input.conf-WTsvDfpC.js → mg-input.conf-HYIzRsy7.js} +5 -0
- package/dist/cjs/mg-loader.cjs.entry.js +3 -3
- package/dist/cjs/mg-progress.cjs.entry.js +2 -2
- package/dist/collection/collection-manifest.json +2 -1
- package/dist/collection/components/atoms/internals/mg-character-left/mg-character-left.js +5 -5
- package/dist/collection/components/atoms/internals/mg-input-title/mg-input-title.js +7 -7
- package/dist/collection/components/atoms/mg-badge/mg-badge.js +6 -6
- package/dist/collection/components/atoms/mg-button/mg-button.js +13 -13
- package/dist/collection/components/atoms/mg-card/mg-card.js +2 -2
- package/dist/collection/components/atoms/mg-divider/mg-divider.js +1 -1
- package/dist/collection/components/atoms/mg-icon/mg-icon.conf.js +1 -1
- package/dist/collection/components/atoms/mg-icon/mg-icon.js +32 -26
- package/dist/collection/components/atoms/mg-tag/mg-tag.js +3 -3
- package/dist/collection/components/atoms/mg-tooltip/mg-tooltip-content/mg-tooltip-content.js +2 -2
- package/dist/collection/components/atoms/mg-tooltip/mg-tooltip.js +6 -6
- package/dist/collection/components/molecules/inputs/mg-input/mg-input.conf.js +4 -0
- package/dist/collection/components/molecules/inputs/mg-input/mg-input.js +193 -33
- package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox-paginated/mg-input-checkbox-paginated.js +7 -9
- package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.js +65 -46
- package/dist/collection/components/molecules/inputs/mg-input-combobox/mg-input-combobox.js +106 -86
- package/dist/collection/components/molecules/inputs/mg-input-date/mg-input-date.js +67 -65
- package/dist/collection/components/molecules/inputs/mg-input-numeric/mg-input-numeric.js +71 -66
- package/dist/collection/components/molecules/inputs/mg-input-password/mg-input-password.js +56 -38
- package/dist/collection/components/molecules/inputs/mg-input-radio/mg-input-radio.js +53 -35
- package/dist/collection/components/molecules/inputs/mg-input-rich-text-editor/mg-input-rich-text-editor.js +66 -47
- package/dist/collection/components/molecules/inputs/mg-input-select/mg-input-select.js +58 -40
- package/dist/collection/components/molecules/inputs/mg-input-text/mg-input-text.js +77 -59
- package/dist/collection/components/molecules/inputs/mg-input-textarea/mg-input-textarea.js +63 -45
- package/dist/collection/components/molecules/inputs/mg-input-toggle/mg-input-toggle.js +54 -30
- package/dist/collection/components/molecules/internals/mg-item-more/mg-item-more.js +2 -4
- package/dist/collection/components/molecules/menus/mg-menu/mg-menu.js +9 -6
- package/dist/collection/components/molecules/menus/mg-menu-item/mg-menu-item.js +7 -7
- package/dist/collection/components/molecules/mg-action-more/mg-action-more.js +2 -5
- package/dist/collection/components/molecules/mg-alert/mg-alert.js +5 -5
- package/dist/collection/components/molecules/mg-details/mg-details.js +7 -7
- package/dist/collection/components/molecules/mg-fieldset/mg-fieldset.js +404 -0
- package/dist/collection/components/molecules/mg-form/mg-form.js +26 -17
- package/dist/collection/components/molecules/mg-illustrated-message/mg-illustrated-message.js +3 -3
- package/dist/collection/components/molecules/mg-loader/mg-loader.js +4 -4
- package/dist/collection/components/molecules/mg-message/mg-message.js +4 -4
- package/dist/collection/components/molecules/mg-modal/mg-modal.js +8 -8
- package/dist/collection/components/molecules/mg-pagination/mg-pagination.js +7 -8
- package/dist/collection/components/molecules/mg-panel/mg-panel.js +53 -22
- package/dist/collection/components/molecules/mg-popover/mg-popover-content/mg-popover-content.js +2 -2
- package/dist/collection/components/molecules/mg-popover/mg-popover.js +7 -7
- package/dist/collection/components/molecules/mg-progress/mg-progress.js +7 -7
- package/dist/collection/components/molecules/mg-skip-links/mg-skip-links.js +1 -2
- package/dist/collection/components/molecules/mg-table/mg-table.js +2 -3
- package/dist/collection/components/molecules/mg-tabs/mg-tabs.js +7 -8
- package/dist/collection/locales/en/messages.json +5 -5
- package/dist/collection/locales/fr/messages.json +5 -5
- package/dist/components/index3.js +10 -10
- package/dist/components/mg-action-more.js +5 -3
- package/dist/components/mg-alert.js +5 -3
- package/dist/components/mg-badge2.js +4 -2
- package/dist/components/mg-button2.js +4 -2
- package/dist/components/mg-card2.js +4 -2
- package/dist/components/mg-character-left2.js +4 -2
- package/dist/components/mg-details.js +5 -3
- package/dist/components/mg-divider2.js +4 -2
- package/dist/components/mg-fieldset.d.ts +11 -0
- package/dist/components/mg-fieldset.js +209 -0
- package/dist/components/mg-form.js +8 -5
- package/dist/components/mg-icon2.js +29 -21
- package/dist/components/mg-illustrated-message.js +5 -3
- package/dist/components/mg-input-checkbox-paginated2.js +6 -6
- package/dist/components/mg-input-checkbox.js +32 -17
- package/dist/components/mg-input-combobox.js +75 -57
- package/dist/components/mg-input-date.js +39 -42
- package/dist/components/mg-input-numeric.js +30 -30
- package/dist/components/mg-input-password.js +26 -13
- package/dist/components/mg-input-radio.js +27 -13
- package/dist/components/mg-input-rich-text-editor.js +37 -22
- package/dist/components/mg-input-select2.js +28 -14
- package/dist/components/mg-input-text2.js +40 -26
- package/dist/components/mg-input-textarea.js +27 -14
- package/dist/components/mg-input-title2.js +4 -2
- package/dist/components/mg-input-toggle.js +39 -12
- package/dist/components/mg-input2.js +121 -20
- package/dist/components/mg-item-more2.js +13 -5
- package/dist/components/mg-loader2.js +5 -3
- package/dist/components/mg-menu-item2.js +4 -2
- package/dist/components/mg-message2.js +6 -4
- package/dist/components/mg-modal.js +6 -4
- package/dist/components/mg-pagination.js +4 -2
- package/dist/components/mg-panel.js +40 -9
- package/dist/components/mg-popover-content2.js +5 -3
- package/dist/components/mg-popover2.js +5 -3
- package/dist/components/mg-progress.js +5 -3
- package/dist/components/mg-skip-links.js +5 -3
- package/dist/components/mg-table.js +4 -2
- package/dist/components/mg-tabs2.js +5 -3
- package/dist/components/mg-tag.js +4 -2
- package/dist/components/mg-tooltip-content2.js +4 -2
- package/dist/components/mg-tooltip2.js +4 -2
- package/dist/esm/{index-WtiuOkLj.js → index-C7xjtdiw.js} +1 -1
- package/dist/esm/{index-Bab8_u8S.js → index-CNX6lq0x.js} +10 -10
- package/dist/esm/{index-JHj_9FSs.js → index-T6kOJXP1.js} +51 -28
- package/dist/esm/loader.js +3 -3
- package/dist/esm/mg-action-more_37.entry.js +444 -229
- package/dist/esm/mg-alert.entry.js +4 -4
- package/dist/esm/mg-components.js +4 -4
- package/dist/esm/mg-fieldset.entry.js +139 -0
- package/dist/esm/mg-input-combobox.entry.js +74 -58
- package/dist/esm/mg-input-rich-text-editor.entry.js +37 -24
- package/dist/esm/{mg-input.conf-CNgv8hc5.js → mg-input.conf-D9V2v4n2.js} +5 -1
- package/dist/esm/mg-loader.entry.js +4 -4
- package/dist/esm/mg-progress.entry.js +3 -3
- package/dist/mg-components/locales/en/messages.json +5 -5
- package/dist/mg-components/locales/fr/messages.json +5 -5
- package/dist/mg-components/mg-components.esm.js +1 -1
- package/dist/mg-components/p-2bab89c2.entry.js +1 -0
- package/dist/mg-components/{p-658f828c.entry.js → p-5abc77cd.entry.js} +1 -1
- package/dist/mg-components/p-7d2e43b2.entry.js +1 -0
- package/dist/mg-components/{p-c85b5d10.entry.js → p-92e5e5a6.entry.js} +1 -1
- package/dist/mg-components/{p-42a90251.entry.js → p-952288bd.entry.js} +1 -1
- package/dist/mg-components/{p-WtiuOkLj.js → p-C7xjtdiw.js} +1 -1
- package/dist/mg-components/p-CNX6lq0x.js +1 -0
- package/dist/mg-components/p-D9V2v4n2.js +1 -0
- package/dist/mg-components/p-T6kOJXP1.js +2 -0
- package/dist/mg-components/p-f2cddd52.entry.js +1 -0
- package/dist/mg-components/{p-82455ac7.entry.js → p-f6afaeb8.entry.js} +1 -1
- package/dist/types/components/atoms/mg-icon/mg-icon.conf.d.ts +1 -1
- package/dist/types/components/atoms/mg-icon/mg-icon.d.ts +0 -5
- package/dist/types/components/molecules/inputs/mg-input/mg-input.conf.d.ts +5 -0
- package/dist/types/components/molecules/inputs/mg-input/mg-input.d.ts +32 -1
- package/dist/types/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.d.ts +4 -3
- package/dist/types/components/molecules/inputs/mg-input-combobox/mg-input-combobox.d.ts +4 -2
- package/dist/types/components/molecules/inputs/mg-input-date/mg-input-date.d.ts +4 -2
- package/dist/types/components/molecules/inputs/mg-input-numeric/mg-input-numeric.d.ts +4 -2
- package/dist/types/components/molecules/inputs/mg-input-password/mg-input-password.d.ts +4 -2
- package/dist/types/components/molecules/inputs/mg-input-radio/mg-input-radio.d.ts +4 -2
- package/dist/types/components/molecules/inputs/mg-input-rich-text-editor/mg-input-rich-text-editor.d.ts +4 -2
- package/dist/types/components/molecules/inputs/mg-input-select/mg-input-select.d.ts +4 -2
- package/dist/types/components/molecules/inputs/mg-input-text/mg-input-text.d.ts +4 -2
- package/dist/types/components/molecules/inputs/mg-input-textarea/mg-input-textarea.d.ts +4 -2
- package/dist/types/components/molecules/inputs/mg-input-toggle/mg-input-toggle.d.ts +4 -2
- package/dist/types/components/molecules/mg-fieldset/mg-fieldset.d.ts +105 -0
- package/dist/types/components/molecules/mg-form/mg-form.d.ts +1 -1
- package/dist/types/components/molecules/mg-panel/mg-panel.d.ts +8 -1
- package/dist/types/components.d.ts +168 -18
- package/dist/types/stencil-public-runtime.d.ts +39 -2
- package/dist/types/types/index.d.ts +1 -1
- package/ide/intellij/web-types.json +289 -181
- package/ide/vscode/html-custom-data.json +259 -18
- package/package.json +23 -23
- package/dist/mg-components/p-54156253.entry.js +0 -1
- package/dist/mg-components/p-Bab8_u8S.js +0 -1
- package/dist/mg-components/p-CNgv8hc5.js +0 -1
- package/dist/mg-components/p-JHj_9FSs.js +0 -2
- package/dist/mg-components/p-abbd151c.entry.js +0 -1
|
@@ -6,6 +6,7 @@ export class MgInputPassword {
|
|
|
6
6
|
constructor() {
|
|
7
7
|
// hasDisplayedError (triggered by blur event)
|
|
8
8
|
this.hasDisplayedError = false;
|
|
9
|
+
this.customErrorMessage = { lock: false };
|
|
9
10
|
/**
|
|
10
11
|
* Input name
|
|
11
12
|
* If not set the value equals the identifier
|
|
@@ -81,14 +82,15 @@ export class MgInputPassword {
|
|
|
81
82
|
};
|
|
82
83
|
/**
|
|
83
84
|
* Set input error message
|
|
84
|
-
* @param
|
|
85
|
+
* @param fromSetErrorContext - context come from `setError` method
|
|
85
86
|
*/
|
|
86
|
-
this.setErrorMessage = (
|
|
87
|
+
this.setErrorMessage = (fromSetErrorContext = false) => {
|
|
87
88
|
// Set error message
|
|
88
89
|
this.errorMessage = undefined;
|
|
89
90
|
if (!this.valid) {
|
|
90
|
-
|
|
91
|
-
|
|
91
|
+
// Does have a new custom error message OR does have a custom error message locked
|
|
92
|
+
if (fromSetErrorContext || (this.customErrorMessage.lock && this.customErrorMessage.message !== undefined)) {
|
|
93
|
+
this.errorMessage = this.customErrorMessage.message;
|
|
92
94
|
}
|
|
93
95
|
// required
|
|
94
96
|
else if (this.input.validity.valueMissing) {
|
|
@@ -164,17 +166,22 @@ export class MgInputPassword {
|
|
|
164
166
|
* When used to set validity to `false`, you should use this method again to reset the validity to `true`.
|
|
165
167
|
* @param valid - value indicating the validity
|
|
166
168
|
* @param errorMessage - the error message to display
|
|
169
|
+
* @param errorMessageLock - lock the error message and validity state
|
|
167
170
|
*/
|
|
168
|
-
async setError(valid, errorMessage) {
|
|
171
|
+
async setError(valid, errorMessage, errorMessageLock = false) {
|
|
169
172
|
if (typeof valid !== 'boolean') {
|
|
170
173
|
throw new Error('<mg-input-password> method "setError()" param "valid" must be a boolean.');
|
|
171
174
|
}
|
|
172
|
-
else if (!isValidString(errorMessage)) {
|
|
175
|
+
else if (errorMessage !== undefined && !isValidString(errorMessage)) {
|
|
173
176
|
throw new Error('<mg-input-password> method "setError()" param "errorMessage" must be a string.');
|
|
174
177
|
}
|
|
175
178
|
else {
|
|
179
|
+
this.customErrorMessage = {
|
|
180
|
+
lock: valid ? false : errorMessageLock,
|
|
181
|
+
message: valid ? undefined : errorMessage,
|
|
182
|
+
};
|
|
176
183
|
this.setValidity(valid);
|
|
177
|
-
this.setErrorMessage(
|
|
184
|
+
this.setErrorMessage(true);
|
|
178
185
|
this.hasDisplayedError = this.invalid;
|
|
179
186
|
}
|
|
180
187
|
}
|
|
@@ -192,6 +199,8 @@ export class MgInputPassword {
|
|
|
192
199
|
// - Keep everything in sync both inside and outside the component
|
|
193
200
|
return new Promise(resolve => {
|
|
194
201
|
requestAnimationFrame(() => {
|
|
202
|
+
// unlock validity check by reseting customErrorMessage
|
|
203
|
+
this.customErrorMessage = { lock: false };
|
|
195
204
|
this.checkValidity();
|
|
196
205
|
this.errorMessage = undefined;
|
|
197
206
|
this.hasDisplayedError = false;
|
|
@@ -205,11 +214,13 @@ export class MgInputPassword {
|
|
|
205
214
|
* @param newValue - valid new value
|
|
206
215
|
*/
|
|
207
216
|
setValidity(newValue) {
|
|
208
|
-
const
|
|
209
|
-
this.
|
|
217
|
+
const oldValue = this.valid;
|
|
218
|
+
if (!this.customErrorMessage.lock || (this.customErrorMessage.message !== undefined && !newValue)) {
|
|
219
|
+
this.valid = newValue;
|
|
220
|
+
}
|
|
210
221
|
this.invalid = !this.valid;
|
|
211
222
|
// We need to send valid event even if it is the same value
|
|
212
|
-
if (this.handlerInProgress === undefined || (this.handlerInProgress === 'blur' && this.valid !==
|
|
223
|
+
if (this.handlerInProgress === undefined || (this.handlerInProgress === 'blur' && this.valid !== oldValue))
|
|
213
224
|
this.inputValid.emit(this.valid);
|
|
214
225
|
}
|
|
215
226
|
/*************
|
|
@@ -237,7 +248,7 @@ export class MgInputPassword {
|
|
|
237
248
|
* @returns HTML Element
|
|
238
249
|
*/
|
|
239
250
|
render() {
|
|
240
|
-
return (h("mg-input", { key: '
|
|
251
|
+
return (h("mg-input", { key: '845c075a44c50043776b7577642254d772629eef', label: this.label, identifier: this.identifier, class: this.classCollection.join(), labelOnTop: this.labelOnTop, labelHide: this.labelHide, required: this.required, tooltip: this.tooltip, tooltipPosition: this.readonly && this.value === undefined ? 'label' : this.tooltipPosition, helpText: this.helpText, errorMessage: this.errorMessage }, this.readonly ? (this.value !== undefined && h("b", { class: "mg-c-input__readonly-value" }, '•'.repeat(this.value.length))) : (h("span", { class: "mg-c-input__input-group" }, h("input", { type: this.displayPassword ? 'text' : 'password', class: "mg-c-input__box mg-c-input__box--width", value: this.value, id: this.identifier, name: this.name, placeholder: this.placeholder, title: this.placeholder, disabled: this.disabled, required: this.required, maxlength: this.maxlength, "aria-invalid": (this.invalid === true).toString(), onInput: this.handleInput, onBlur: this.handleBlur, ref: (el) => {
|
|
241
252
|
if (el !== null)
|
|
242
253
|
this.input = el;
|
|
243
254
|
} }), h("mg-button", { label: this.messages.input.password[this.displayPassword ? 'hide' : 'display'], disabled: this.disabled, variant: "flat", class: "mg-c-input__append-button", "is-icon": true, onClick: this.toggleDisplayPassword, "aria-controls": this.identifier }, h("mg-icon", { class: "mg-c-input__input-icon", icon: this.displayPassword ? 'eye-slash' : 'eye' }))))));
|
|
@@ -258,7 +269,6 @@ export class MgInputPassword {
|
|
|
258
269
|
return {
|
|
259
270
|
"value": {
|
|
260
271
|
"type": "string",
|
|
261
|
-
"attribute": "value",
|
|
262
272
|
"mutable": true,
|
|
263
273
|
"complexType": {
|
|
264
274
|
"original": "string",
|
|
@@ -273,11 +283,11 @@ export class MgInputPassword {
|
|
|
273
283
|
},
|
|
274
284
|
"getter": false,
|
|
275
285
|
"setter": false,
|
|
276
|
-
"reflect": true
|
|
286
|
+
"reflect": true,
|
|
287
|
+
"attribute": "value"
|
|
277
288
|
},
|
|
278
289
|
"identifier": {
|
|
279
290
|
"type": "string",
|
|
280
|
-
"attribute": "identifier",
|
|
281
291
|
"mutable": false,
|
|
282
292
|
"complexType": {
|
|
283
293
|
"original": "string",
|
|
@@ -292,11 +302,11 @@ export class MgInputPassword {
|
|
|
292
302
|
},
|
|
293
303
|
"getter": false,
|
|
294
304
|
"setter": false,
|
|
295
|
-
"reflect": false
|
|
305
|
+
"reflect": false,
|
|
306
|
+
"attribute": "identifier"
|
|
296
307
|
},
|
|
297
308
|
"name": {
|
|
298
309
|
"type": "string",
|
|
299
|
-
"attribute": "name",
|
|
300
310
|
"mutable": false,
|
|
301
311
|
"complexType": {
|
|
302
312
|
"original": "string",
|
|
@@ -312,11 +322,11 @@ export class MgInputPassword {
|
|
|
312
322
|
"getter": false,
|
|
313
323
|
"setter": false,
|
|
314
324
|
"reflect": false,
|
|
325
|
+
"attribute": "name",
|
|
315
326
|
"defaultValue": "this.identifier"
|
|
316
327
|
},
|
|
317
328
|
"label": {
|
|
318
329
|
"type": "string",
|
|
319
|
-
"attribute": "label",
|
|
320
330
|
"mutable": false,
|
|
321
331
|
"complexType": {
|
|
322
332
|
"original": "string",
|
|
@@ -331,11 +341,11 @@ export class MgInputPassword {
|
|
|
331
341
|
},
|
|
332
342
|
"getter": false,
|
|
333
343
|
"setter": false,
|
|
334
|
-
"reflect": false
|
|
344
|
+
"reflect": false,
|
|
345
|
+
"attribute": "label"
|
|
335
346
|
},
|
|
336
347
|
"labelOnTop": {
|
|
337
348
|
"type": "boolean",
|
|
338
|
-
"attribute": "label-on-top",
|
|
339
349
|
"mutable": false,
|
|
340
350
|
"complexType": {
|
|
341
351
|
"original": "boolean",
|
|
@@ -351,11 +361,11 @@ export class MgInputPassword {
|
|
|
351
361
|
"getter": false,
|
|
352
362
|
"setter": false,
|
|
353
363
|
"reflect": false,
|
|
364
|
+
"attribute": "label-on-top",
|
|
354
365
|
"defaultValue": "false"
|
|
355
366
|
},
|
|
356
367
|
"labelHide": {
|
|
357
368
|
"type": "boolean",
|
|
358
|
-
"attribute": "label-hide",
|
|
359
369
|
"mutable": false,
|
|
360
370
|
"complexType": {
|
|
361
371
|
"original": "boolean",
|
|
@@ -371,11 +381,11 @@ export class MgInputPassword {
|
|
|
371
381
|
"getter": false,
|
|
372
382
|
"setter": false,
|
|
373
383
|
"reflect": false,
|
|
384
|
+
"attribute": "label-hide",
|
|
374
385
|
"defaultValue": "false"
|
|
375
386
|
},
|
|
376
387
|
"placeholder": {
|
|
377
388
|
"type": "string",
|
|
378
|
-
"attribute": "placeholder",
|
|
379
389
|
"mutable": false,
|
|
380
390
|
"complexType": {
|
|
381
391
|
"original": "string",
|
|
@@ -390,11 +400,11 @@ export class MgInputPassword {
|
|
|
390
400
|
},
|
|
391
401
|
"getter": false,
|
|
392
402
|
"setter": false,
|
|
393
|
-
"reflect": false
|
|
403
|
+
"reflect": false,
|
|
404
|
+
"attribute": "placeholder"
|
|
394
405
|
},
|
|
395
406
|
"maxlength": {
|
|
396
407
|
"type": "number",
|
|
397
|
-
"attribute": "maxlength",
|
|
398
408
|
"mutable": false,
|
|
399
409
|
"complexType": {
|
|
400
410
|
"original": "number",
|
|
@@ -409,11 +419,11 @@ export class MgInputPassword {
|
|
|
409
419
|
},
|
|
410
420
|
"getter": false,
|
|
411
421
|
"setter": false,
|
|
412
|
-
"reflect": false
|
|
422
|
+
"reflect": false,
|
|
423
|
+
"attribute": "maxlength"
|
|
413
424
|
},
|
|
414
425
|
"required": {
|
|
415
426
|
"type": "boolean",
|
|
416
|
-
"attribute": "required",
|
|
417
427
|
"mutable": false,
|
|
418
428
|
"complexType": {
|
|
419
429
|
"original": "boolean",
|
|
@@ -429,11 +439,11 @@ export class MgInputPassword {
|
|
|
429
439
|
"getter": false,
|
|
430
440
|
"setter": false,
|
|
431
441
|
"reflect": false,
|
|
442
|
+
"attribute": "required",
|
|
432
443
|
"defaultValue": "false"
|
|
433
444
|
},
|
|
434
445
|
"readonly": {
|
|
435
446
|
"type": "boolean",
|
|
436
|
-
"attribute": "readonly",
|
|
437
447
|
"mutable": false,
|
|
438
448
|
"complexType": {
|
|
439
449
|
"original": "boolean",
|
|
@@ -449,11 +459,11 @@ export class MgInputPassword {
|
|
|
449
459
|
"getter": false,
|
|
450
460
|
"setter": false,
|
|
451
461
|
"reflect": false,
|
|
462
|
+
"attribute": "readonly",
|
|
452
463
|
"defaultValue": "false"
|
|
453
464
|
},
|
|
454
465
|
"disabled": {
|
|
455
466
|
"type": "boolean",
|
|
456
|
-
"attribute": "disabled",
|
|
457
467
|
"mutable": false,
|
|
458
468
|
"complexType": {
|
|
459
469
|
"original": "boolean",
|
|
@@ -469,11 +479,11 @@ export class MgInputPassword {
|
|
|
469
479
|
"getter": false,
|
|
470
480
|
"setter": false,
|
|
471
481
|
"reflect": false,
|
|
482
|
+
"attribute": "disabled",
|
|
472
483
|
"defaultValue": "false"
|
|
473
484
|
},
|
|
474
485
|
"mgWidth": {
|
|
475
486
|
"type": "any",
|
|
476
|
-
"attribute": "mg-width",
|
|
477
487
|
"mutable": false,
|
|
478
488
|
"complexType": {
|
|
479
489
|
"original": "Width",
|
|
@@ -495,11 +505,11 @@ export class MgInputPassword {
|
|
|
495
505
|
"getter": false,
|
|
496
506
|
"setter": false,
|
|
497
507
|
"reflect": false,
|
|
508
|
+
"attribute": "mg-width",
|
|
498
509
|
"defaultValue": "'full'"
|
|
499
510
|
},
|
|
500
511
|
"tooltip": {
|
|
501
512
|
"type": "string",
|
|
502
|
-
"attribute": "tooltip",
|
|
503
513
|
"mutable": false,
|
|
504
514
|
"complexType": {
|
|
505
515
|
"original": "string",
|
|
@@ -514,11 +524,11 @@ export class MgInputPassword {
|
|
|
514
524
|
},
|
|
515
525
|
"getter": false,
|
|
516
526
|
"setter": false,
|
|
517
|
-
"reflect": false
|
|
527
|
+
"reflect": false,
|
|
528
|
+
"attribute": "tooltip"
|
|
518
529
|
},
|
|
519
530
|
"tooltipPosition": {
|
|
520
531
|
"type": "string",
|
|
521
|
-
"attribute": "tooltip-position",
|
|
522
532
|
"mutable": false,
|
|
523
533
|
"complexType": {
|
|
524
534
|
"original": "TooltipPosition",
|
|
@@ -540,11 +550,11 @@ export class MgInputPassword {
|
|
|
540
550
|
"getter": false,
|
|
541
551
|
"setter": false,
|
|
542
552
|
"reflect": false,
|
|
553
|
+
"attribute": "tooltip-position",
|
|
543
554
|
"defaultValue": "'input'"
|
|
544
555
|
},
|
|
545
556
|
"helpText": {
|
|
546
557
|
"type": "string",
|
|
547
|
-
"attribute": "help-text",
|
|
548
558
|
"mutable": false,
|
|
549
559
|
"complexType": {
|
|
550
560
|
"original": "string",
|
|
@@ -559,11 +569,11 @@ export class MgInputPassword {
|
|
|
559
569
|
},
|
|
560
570
|
"getter": false,
|
|
561
571
|
"setter": false,
|
|
562
|
-
"reflect": false
|
|
572
|
+
"reflect": false,
|
|
573
|
+
"attribute": "help-text"
|
|
563
574
|
},
|
|
564
575
|
"valid": {
|
|
565
576
|
"type": "boolean",
|
|
566
|
-
"attribute": "valid",
|
|
567
577
|
"mutable": true,
|
|
568
578
|
"complexType": {
|
|
569
579
|
"original": "boolean",
|
|
@@ -578,11 +588,11 @@ export class MgInputPassword {
|
|
|
578
588
|
},
|
|
579
589
|
"getter": false,
|
|
580
590
|
"setter": false,
|
|
581
|
-
"reflect": false
|
|
591
|
+
"reflect": false,
|
|
592
|
+
"attribute": "valid"
|
|
582
593
|
},
|
|
583
594
|
"invalid": {
|
|
584
595
|
"type": "boolean",
|
|
585
|
-
"attribute": "invalid",
|
|
586
596
|
"mutable": true,
|
|
587
597
|
"complexType": {
|
|
588
598
|
"original": "boolean",
|
|
@@ -597,7 +607,8 @@ export class MgInputPassword {
|
|
|
597
607
|
},
|
|
598
608
|
"getter": false,
|
|
599
609
|
"setter": false,
|
|
600
|
-
"reflect": false
|
|
610
|
+
"reflect": false,
|
|
611
|
+
"attribute": "invalid"
|
|
601
612
|
}
|
|
602
613
|
};
|
|
603
614
|
}
|
|
@@ -689,7 +700,7 @@ export class MgInputPassword {
|
|
|
689
700
|
},
|
|
690
701
|
"setError": {
|
|
691
702
|
"complexType": {
|
|
692
|
-
"signature": "(valid: MgInputPassword[\"valid\"], errorMessage
|
|
703
|
+
"signature": "(valid: MgInputPassword[\"valid\"], errorMessage?: string, errorMessageLock?: boolean) => Promise<void>",
|
|
693
704
|
"parameters": [{
|
|
694
705
|
"name": "valid",
|
|
695
706
|
"type": "boolean",
|
|
@@ -698,6 +709,10 @@ export class MgInputPassword {
|
|
|
698
709
|
"name": "errorMessage",
|
|
699
710
|
"type": "string",
|
|
700
711
|
"docs": "- the error message to display"
|
|
712
|
+
}, {
|
|
713
|
+
"name": "errorMessageLock",
|
|
714
|
+
"type": "boolean",
|
|
715
|
+
"docs": "- lock the error message and validity state"
|
|
701
716
|
}],
|
|
702
717
|
"references": {
|
|
703
718
|
"Promise": {
|
|
@@ -719,6 +734,9 @@ export class MgInputPassword {
|
|
|
719
734
|
}, {
|
|
720
735
|
"name": "param",
|
|
721
736
|
"text": "errorMessage - the error message to display"
|
|
737
|
+
}, {
|
|
738
|
+
"name": "param",
|
|
739
|
+
"text": "errorMessageLock - lock the error message and validity state"
|
|
722
740
|
}]
|
|
723
741
|
}
|
|
724
742
|
},
|