@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
|
@@ -12,6 +12,7 @@ export class MgInputTextarea {
|
|
|
12
12
|
this.classDisplayCharacterLeft = 'mg-c-input--display-character-left';
|
|
13
13
|
// hasDisplayedError (triggered by blur event)
|
|
14
14
|
this.hasDisplayedError = false;
|
|
15
|
+
this.customErrorMessage = { lock: false };
|
|
15
16
|
/**
|
|
16
17
|
* Input name
|
|
17
18
|
* If not set the value equals the identifier
|
|
@@ -110,15 +111,16 @@ export class MgInputTextarea {
|
|
|
110
111
|
};
|
|
111
112
|
/**
|
|
112
113
|
* Set input error message
|
|
113
|
-
* @param
|
|
114
|
+
* @param fromSetErrorContext - context come from `setError` method
|
|
114
115
|
*/
|
|
115
|
-
this.setErrorMessage = (
|
|
116
|
+
this.setErrorMessage = (fromSetErrorContext = false) => {
|
|
116
117
|
// Set error message
|
|
117
118
|
this.errorMessage = undefined;
|
|
118
|
-
// Does
|
|
119
|
+
// Does have a new custom error message
|
|
119
120
|
if (!this.valid) {
|
|
120
|
-
|
|
121
|
-
|
|
121
|
+
// Does have a new custom error message OR does have a custom error message locked
|
|
122
|
+
if (fromSetErrorContext || (this.customErrorMessage.lock && this.customErrorMessage.message !== undefined)) {
|
|
123
|
+
this.errorMessage = this.customErrorMessage.message;
|
|
122
124
|
}
|
|
123
125
|
else if (!this.getPatternValidity()) {
|
|
124
126
|
this.errorMessage = this.patternErrorMessage;
|
|
@@ -211,17 +213,22 @@ export class MgInputTextarea {
|
|
|
211
213
|
* When used to set validity to `false`, you should use this method again to reset the validity to `true`.
|
|
212
214
|
* @param valid - value indicating the validity
|
|
213
215
|
* @param errorMessage - the error message to display
|
|
216
|
+
* @param errorMessageLock - lock the error message and validity state
|
|
214
217
|
*/
|
|
215
|
-
async setError(valid, errorMessage) {
|
|
218
|
+
async setError(valid, errorMessage, errorMessageLock = false) {
|
|
216
219
|
if (typeof valid !== 'boolean') {
|
|
217
220
|
throw new Error('<mg-input-textarea> method "setError()" param "valid" must be a boolean.');
|
|
218
221
|
}
|
|
219
|
-
else if (!isValidString(errorMessage)) {
|
|
222
|
+
else if (errorMessage !== undefined && !isValidString(errorMessage)) {
|
|
220
223
|
throw new Error('<mg-input-textarea> method "setError()" param "errorMessage" must be a string.');
|
|
221
224
|
}
|
|
222
225
|
else {
|
|
226
|
+
this.customErrorMessage = {
|
|
227
|
+
lock: valid ? false : errorMessageLock,
|
|
228
|
+
message: valid ? undefined : errorMessage,
|
|
229
|
+
};
|
|
223
230
|
this.setValidity(valid);
|
|
224
|
-
this.setErrorMessage(
|
|
231
|
+
this.setErrorMessage(true);
|
|
225
232
|
this.hasDisplayedError = this.invalid;
|
|
226
233
|
}
|
|
227
234
|
}
|
|
@@ -239,6 +246,8 @@ export class MgInputTextarea {
|
|
|
239
246
|
// - Keep everything in sync both inside and outside the component
|
|
240
247
|
return new Promise(resolve => {
|
|
241
248
|
requestAnimationFrame(() => {
|
|
249
|
+
// unlock validity check by reseting customErrorMessage
|
|
250
|
+
this.customErrorMessage = { lock: false };
|
|
242
251
|
this.checkValidity();
|
|
243
252
|
this.errorMessage = undefined;
|
|
244
253
|
this.hasDisplayedError = false;
|
|
@@ -252,11 +261,13 @@ export class MgInputTextarea {
|
|
|
252
261
|
* @param newValue - valid new value
|
|
253
262
|
*/
|
|
254
263
|
setValidity(newValue) {
|
|
255
|
-
const
|
|
256
|
-
this.
|
|
264
|
+
const oldValue = this.valid;
|
|
265
|
+
if (!this.customErrorMessage.lock || (this.customErrorMessage.message !== undefined && !newValue)) {
|
|
266
|
+
this.valid = newValue;
|
|
267
|
+
}
|
|
257
268
|
this.invalid = !this.valid;
|
|
258
269
|
// We need to send valid event even if it is the same value
|
|
259
|
-
if (this.handlerInProgress === undefined || (this.handlerInProgress === 'blur' && this.valid !==
|
|
270
|
+
if (this.handlerInProgress === undefined || (this.handlerInProgress === 'blur' && this.valid !== oldValue))
|
|
260
271
|
this.inputValid.emit(this.valid);
|
|
261
272
|
}
|
|
262
273
|
/*************
|
|
@@ -289,7 +300,7 @@ export class MgInputTextarea {
|
|
|
289
300
|
* @returns HTML Element
|
|
290
301
|
*/
|
|
291
302
|
render() {
|
|
292
|
-
return (h("mg-input", { key: '
|
|
303
|
+
return (h("mg-input", { key: '9b58ccb9f0b150f5de8cc9f895f4cdea2bbbeecd', label: this.label, identifier: this.identifier, class: this.classCollection.join(), ariaDescribedbyIDs: this.characterLeftId, 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 && h("b", { class: "mg-c-input__readonly-value" }, this.value)) : (h("div", { class: "mg-c-input__with-character-left" }, h("textarea", { class: {
|
|
293
304
|
'mg-c-input__box': true,
|
|
294
305
|
'mg-c-input__box--width': true,
|
|
295
306
|
'mg-c-input__box--resizable': this.resizable === 'both',
|
|
@@ -316,7 +327,6 @@ export class MgInputTextarea {
|
|
|
316
327
|
return {
|
|
317
328
|
"value": {
|
|
318
329
|
"type": "string",
|
|
319
|
-
"attribute": "value",
|
|
320
330
|
"mutable": true,
|
|
321
331
|
"complexType": {
|
|
322
332
|
"original": "string",
|
|
@@ -331,11 +341,11 @@ export class MgInputTextarea {
|
|
|
331
341
|
},
|
|
332
342
|
"getter": false,
|
|
333
343
|
"setter": false,
|
|
334
|
-
"reflect": true
|
|
344
|
+
"reflect": true,
|
|
345
|
+
"attribute": "value"
|
|
335
346
|
},
|
|
336
347
|
"identifier": {
|
|
337
348
|
"type": "string",
|
|
338
|
-
"attribute": "identifier",
|
|
339
349
|
"mutable": false,
|
|
340
350
|
"complexType": {
|
|
341
351
|
"original": "string",
|
|
@@ -350,11 +360,11 @@ export class MgInputTextarea {
|
|
|
350
360
|
},
|
|
351
361
|
"getter": false,
|
|
352
362
|
"setter": false,
|
|
353
|
-
"reflect": false
|
|
363
|
+
"reflect": false,
|
|
364
|
+
"attribute": "identifier"
|
|
354
365
|
},
|
|
355
366
|
"name": {
|
|
356
367
|
"type": "string",
|
|
357
|
-
"attribute": "name",
|
|
358
368
|
"mutable": false,
|
|
359
369
|
"complexType": {
|
|
360
370
|
"original": "string",
|
|
@@ -370,11 +380,11 @@ export class MgInputTextarea {
|
|
|
370
380
|
"getter": false,
|
|
371
381
|
"setter": false,
|
|
372
382
|
"reflect": false,
|
|
383
|
+
"attribute": "name",
|
|
373
384
|
"defaultValue": "this.identifier"
|
|
374
385
|
},
|
|
375
386
|
"label": {
|
|
376
387
|
"type": "string",
|
|
377
|
-
"attribute": "label",
|
|
378
388
|
"mutable": false,
|
|
379
389
|
"complexType": {
|
|
380
390
|
"original": "string",
|
|
@@ -389,11 +399,11 @@ export class MgInputTextarea {
|
|
|
389
399
|
},
|
|
390
400
|
"getter": false,
|
|
391
401
|
"setter": false,
|
|
392
|
-
"reflect": false
|
|
402
|
+
"reflect": false,
|
|
403
|
+
"attribute": "label"
|
|
393
404
|
},
|
|
394
405
|
"labelOnTop": {
|
|
395
406
|
"type": "boolean",
|
|
396
|
-
"attribute": "label-on-top",
|
|
397
407
|
"mutable": false,
|
|
398
408
|
"complexType": {
|
|
399
409
|
"original": "boolean",
|
|
@@ -409,11 +419,11 @@ export class MgInputTextarea {
|
|
|
409
419
|
"getter": false,
|
|
410
420
|
"setter": false,
|
|
411
421
|
"reflect": false,
|
|
422
|
+
"attribute": "label-on-top",
|
|
412
423
|
"defaultValue": "false"
|
|
413
424
|
},
|
|
414
425
|
"labelHide": {
|
|
415
426
|
"type": "boolean",
|
|
416
|
-
"attribute": "label-hide",
|
|
417
427
|
"mutable": false,
|
|
418
428
|
"complexType": {
|
|
419
429
|
"original": "boolean",
|
|
@@ -429,11 +439,11 @@ export class MgInputTextarea {
|
|
|
429
439
|
"getter": false,
|
|
430
440
|
"setter": false,
|
|
431
441
|
"reflect": false,
|
|
442
|
+
"attribute": "label-hide",
|
|
432
443
|
"defaultValue": "false"
|
|
433
444
|
},
|
|
434
445
|
"placeholder": {
|
|
435
446
|
"type": "string",
|
|
436
|
-
"attribute": "placeholder",
|
|
437
447
|
"mutable": false,
|
|
438
448
|
"complexType": {
|
|
439
449
|
"original": "string",
|
|
@@ -448,11 +458,11 @@ export class MgInputTextarea {
|
|
|
448
458
|
},
|
|
449
459
|
"getter": false,
|
|
450
460
|
"setter": false,
|
|
451
|
-
"reflect": false
|
|
461
|
+
"reflect": false,
|
|
462
|
+
"attribute": "placeholder"
|
|
452
463
|
},
|
|
453
464
|
"maxlength": {
|
|
454
465
|
"type": "number",
|
|
455
|
-
"attribute": "maxlength",
|
|
456
466
|
"mutable": false,
|
|
457
467
|
"complexType": {
|
|
458
468
|
"original": "number",
|
|
@@ -468,11 +478,11 @@ export class MgInputTextarea {
|
|
|
468
478
|
"getter": false,
|
|
469
479
|
"setter": false,
|
|
470
480
|
"reflect": false,
|
|
481
|
+
"attribute": "maxlength",
|
|
471
482
|
"defaultValue": "4000"
|
|
472
483
|
},
|
|
473
484
|
"required": {
|
|
474
485
|
"type": "boolean",
|
|
475
|
-
"attribute": "required",
|
|
476
486
|
"mutable": false,
|
|
477
487
|
"complexType": {
|
|
478
488
|
"original": "boolean",
|
|
@@ -488,11 +498,11 @@ export class MgInputTextarea {
|
|
|
488
498
|
"getter": false,
|
|
489
499
|
"setter": false,
|
|
490
500
|
"reflect": false,
|
|
501
|
+
"attribute": "required",
|
|
491
502
|
"defaultValue": "false"
|
|
492
503
|
},
|
|
493
504
|
"readonly": {
|
|
494
505
|
"type": "boolean",
|
|
495
|
-
"attribute": "readonly",
|
|
496
506
|
"mutable": false,
|
|
497
507
|
"complexType": {
|
|
498
508
|
"original": "boolean",
|
|
@@ -508,11 +518,11 @@ export class MgInputTextarea {
|
|
|
508
518
|
"getter": false,
|
|
509
519
|
"setter": false,
|
|
510
520
|
"reflect": false,
|
|
521
|
+
"attribute": "readonly",
|
|
511
522
|
"defaultValue": "false"
|
|
512
523
|
},
|
|
513
524
|
"disabled": {
|
|
514
525
|
"type": "boolean",
|
|
515
|
-
"attribute": "disabled",
|
|
516
526
|
"mutable": false,
|
|
517
527
|
"complexType": {
|
|
518
528
|
"original": "boolean",
|
|
@@ -528,11 +538,11 @@ export class MgInputTextarea {
|
|
|
528
538
|
"getter": false,
|
|
529
539
|
"setter": false,
|
|
530
540
|
"reflect": false,
|
|
541
|
+
"attribute": "disabled",
|
|
531
542
|
"defaultValue": "false"
|
|
532
543
|
},
|
|
533
544
|
"mgWidth": {
|
|
534
545
|
"type": "any",
|
|
535
|
-
"attribute": "mg-width",
|
|
536
546
|
"mutable": false,
|
|
537
547
|
"complexType": {
|
|
538
548
|
"original": "Width",
|
|
@@ -554,11 +564,11 @@ export class MgInputTextarea {
|
|
|
554
564
|
"getter": false,
|
|
555
565
|
"setter": false,
|
|
556
566
|
"reflect": false,
|
|
567
|
+
"attribute": "mg-width",
|
|
557
568
|
"defaultValue": "'full'"
|
|
558
569
|
},
|
|
559
570
|
"pattern": {
|
|
560
571
|
"type": "string",
|
|
561
|
-
"attribute": "pattern",
|
|
562
572
|
"mutable": false,
|
|
563
573
|
"complexType": {
|
|
564
574
|
"original": "string",
|
|
@@ -573,11 +583,11 @@ export class MgInputTextarea {
|
|
|
573
583
|
},
|
|
574
584
|
"getter": false,
|
|
575
585
|
"setter": false,
|
|
576
|
-
"reflect": false
|
|
586
|
+
"reflect": false,
|
|
587
|
+
"attribute": "pattern"
|
|
577
588
|
},
|
|
578
589
|
"patternErrorMessage": {
|
|
579
590
|
"type": "string",
|
|
580
|
-
"attribute": "pattern-error-message",
|
|
581
591
|
"mutable": false,
|
|
582
592
|
"complexType": {
|
|
583
593
|
"original": "string",
|
|
@@ -592,11 +602,11 @@ export class MgInputTextarea {
|
|
|
592
602
|
},
|
|
593
603
|
"getter": false,
|
|
594
604
|
"setter": false,
|
|
595
|
-
"reflect": false
|
|
605
|
+
"reflect": false,
|
|
606
|
+
"attribute": "pattern-error-message"
|
|
596
607
|
},
|
|
597
608
|
"rows": {
|
|
598
609
|
"type": "number",
|
|
599
|
-
"attribute": "rows",
|
|
600
610
|
"mutable": false,
|
|
601
611
|
"complexType": {
|
|
602
612
|
"original": "number",
|
|
@@ -612,11 +622,11 @@ export class MgInputTextarea {
|
|
|
612
622
|
"getter": false,
|
|
613
623
|
"setter": false,
|
|
614
624
|
"reflect": false,
|
|
625
|
+
"attribute": "rows",
|
|
615
626
|
"defaultValue": "3"
|
|
616
627
|
},
|
|
617
628
|
"tooltip": {
|
|
618
629
|
"type": "string",
|
|
619
|
-
"attribute": "tooltip",
|
|
620
630
|
"mutable": false,
|
|
621
631
|
"complexType": {
|
|
622
632
|
"original": "string",
|
|
@@ -631,11 +641,11 @@ export class MgInputTextarea {
|
|
|
631
641
|
},
|
|
632
642
|
"getter": false,
|
|
633
643
|
"setter": false,
|
|
634
|
-
"reflect": false
|
|
644
|
+
"reflect": false,
|
|
645
|
+
"attribute": "tooltip"
|
|
635
646
|
},
|
|
636
647
|
"tooltipPosition": {
|
|
637
648
|
"type": "string",
|
|
638
|
-
"attribute": "tooltip-position",
|
|
639
649
|
"mutable": false,
|
|
640
650
|
"complexType": {
|
|
641
651
|
"original": "TooltipPosition",
|
|
@@ -657,11 +667,11 @@ export class MgInputTextarea {
|
|
|
657
667
|
"getter": false,
|
|
658
668
|
"setter": false,
|
|
659
669
|
"reflect": false,
|
|
670
|
+
"attribute": "tooltip-position",
|
|
660
671
|
"defaultValue": "'input'"
|
|
661
672
|
},
|
|
662
673
|
"characterLeftHide": {
|
|
663
674
|
"type": "boolean",
|
|
664
|
-
"attribute": "character-left-hide",
|
|
665
675
|
"mutable": false,
|
|
666
676
|
"complexType": {
|
|
667
677
|
"original": "boolean",
|
|
@@ -677,11 +687,11 @@ export class MgInputTextarea {
|
|
|
677
687
|
"getter": false,
|
|
678
688
|
"setter": false,
|
|
679
689
|
"reflect": false,
|
|
690
|
+
"attribute": "character-left-hide",
|
|
680
691
|
"defaultValue": "false"
|
|
681
692
|
},
|
|
682
693
|
"helpText": {
|
|
683
694
|
"type": "string",
|
|
684
|
-
"attribute": "help-text",
|
|
685
695
|
"mutable": false,
|
|
686
696
|
"complexType": {
|
|
687
697
|
"original": "string",
|
|
@@ -696,11 +706,11 @@ export class MgInputTextarea {
|
|
|
696
706
|
},
|
|
697
707
|
"getter": false,
|
|
698
708
|
"setter": false,
|
|
699
|
-
"reflect": false
|
|
709
|
+
"reflect": false,
|
|
710
|
+
"attribute": "help-text"
|
|
700
711
|
},
|
|
701
712
|
"resizable": {
|
|
702
713
|
"type": "string",
|
|
703
|
-
"attribute": "resizable",
|
|
704
714
|
"mutable": false,
|
|
705
715
|
"complexType": {
|
|
706
716
|
"original": "'none' | 'both' | 'horizontal' | 'vertical'",
|
|
@@ -716,11 +726,11 @@ export class MgInputTextarea {
|
|
|
716
726
|
"getter": false,
|
|
717
727
|
"setter": false,
|
|
718
728
|
"reflect": false,
|
|
729
|
+
"attribute": "resizable",
|
|
719
730
|
"defaultValue": "'none'"
|
|
720
731
|
},
|
|
721
732
|
"valid": {
|
|
722
733
|
"type": "boolean",
|
|
723
|
-
"attribute": "valid",
|
|
724
734
|
"mutable": true,
|
|
725
735
|
"complexType": {
|
|
726
736
|
"original": "boolean",
|
|
@@ -735,11 +745,11 @@ export class MgInputTextarea {
|
|
|
735
745
|
},
|
|
736
746
|
"getter": false,
|
|
737
747
|
"setter": false,
|
|
738
|
-
"reflect": false
|
|
748
|
+
"reflect": false,
|
|
749
|
+
"attribute": "valid"
|
|
739
750
|
},
|
|
740
751
|
"invalid": {
|
|
741
752
|
"type": "boolean",
|
|
742
|
-
"attribute": "invalid",
|
|
743
753
|
"mutable": true,
|
|
744
754
|
"complexType": {
|
|
745
755
|
"original": "boolean",
|
|
@@ -754,7 +764,8 @@ export class MgInputTextarea {
|
|
|
754
764
|
},
|
|
755
765
|
"getter": false,
|
|
756
766
|
"setter": false,
|
|
757
|
-
"reflect": false
|
|
767
|
+
"reflect": false,
|
|
768
|
+
"attribute": "invalid"
|
|
758
769
|
}
|
|
759
770
|
};
|
|
760
771
|
}
|
|
@@ -845,7 +856,7 @@ export class MgInputTextarea {
|
|
|
845
856
|
},
|
|
846
857
|
"setError": {
|
|
847
858
|
"complexType": {
|
|
848
|
-
"signature": "(valid: MgInputTextarea[\"valid\"], errorMessage
|
|
859
|
+
"signature": "(valid: MgInputTextarea[\"valid\"], errorMessage?: string, errorMessageLock?: boolean) => Promise<void>",
|
|
849
860
|
"parameters": [{
|
|
850
861
|
"name": "valid",
|
|
851
862
|
"type": "boolean",
|
|
@@ -854,6 +865,10 @@ export class MgInputTextarea {
|
|
|
854
865
|
"name": "errorMessage",
|
|
855
866
|
"type": "string",
|
|
856
867
|
"docs": "- the error message to display"
|
|
868
|
+
}, {
|
|
869
|
+
"name": "errorMessageLock",
|
|
870
|
+
"type": "boolean",
|
|
871
|
+
"docs": "- lock the error message and validity state"
|
|
857
872
|
}],
|
|
858
873
|
"references": {
|
|
859
874
|
"Promise": {
|
|
@@ -875,6 +890,9 @@ export class MgInputTextarea {
|
|
|
875
890
|
}, {
|
|
876
891
|
"name": "param",
|
|
877
892
|
"text": "errorMessage - the error message to display"
|
|
893
|
+
}, {
|
|
894
|
+
"name": "param",
|
|
895
|
+
"text": "errorMessageLock - lock the error message and validity state"
|
|
878
896
|
}]
|
|
879
897
|
}
|
|
880
898
|
},
|