@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
|
@@ -7,6 +7,7 @@ export class MgInputRichTextEditor {
|
|
|
7
7
|
constructor() {
|
|
8
8
|
// hasDisplayedError (triggered by blur event)
|
|
9
9
|
this.hasDisplayedError = false;
|
|
10
|
+
this.customErrorMessage = { lock: false };
|
|
10
11
|
// Classes
|
|
11
12
|
this.classFocus = 'mg-u-is-focused';
|
|
12
13
|
/**
|
|
@@ -72,20 +73,23 @@ export class MgInputRichTextEditor {
|
|
|
72
73
|
};
|
|
73
74
|
/**
|
|
74
75
|
* Set input error message
|
|
75
|
-
* @param
|
|
76
|
+
* @param fromSetErrorContext - context come from `setError` method
|
|
76
77
|
*/
|
|
77
|
-
this.setErrorMessage = (
|
|
78
|
+
this.setErrorMessage = (fromSetErrorContext = false) => {
|
|
79
|
+
// Set error message
|
|
78
80
|
this.errorMessage = undefined;
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
this.
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
this.
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
81
|
+
// Does have a new custom error message
|
|
82
|
+
if (!this.valid) {
|
|
83
|
+
// Does have a new custom error message OR does have a custom error message locked
|
|
84
|
+
if (fromSetErrorContext || (this.customErrorMessage.lock && this.customErrorMessage.message !== undefined)) {
|
|
85
|
+
this.errorMessage = this.customErrorMessage.message;
|
|
86
|
+
}
|
|
87
|
+
else if (this.required && this.isEmpty()) {
|
|
88
|
+
this.errorMessage = this.messages.errors.required;
|
|
89
|
+
}
|
|
90
|
+
else if (!this.getPatternValidity()) {
|
|
91
|
+
this.errorMessage = this.patternErrorMessage;
|
|
92
|
+
}
|
|
89
93
|
}
|
|
90
94
|
};
|
|
91
95
|
/**
|
|
@@ -213,17 +217,22 @@ export class MgInputRichTextEditor {
|
|
|
213
217
|
* When used to set validity to `false`, you should use this method again to reset the validity to `true`.
|
|
214
218
|
* @param valid - value indicating the validity
|
|
215
219
|
* @param errorMessage - the error message to display
|
|
220
|
+
* @param errorMessageLock - lock the error message and validity state
|
|
216
221
|
*/
|
|
217
|
-
async setError(valid, errorMessage) {
|
|
222
|
+
async setError(valid, errorMessage, errorMessageLock = false) {
|
|
218
223
|
if (typeof valid !== 'boolean') {
|
|
219
224
|
throw new Error('<mg-input-rich-text-editor> method "setError()" param "valid" must be a boolean.');
|
|
220
225
|
}
|
|
221
|
-
else if (!isValidString(errorMessage)) {
|
|
226
|
+
else if (errorMessage !== undefined && !isValidString(errorMessage)) {
|
|
222
227
|
throw new Error('<mg-input-rich-text-editor> method "setError()" param "errorMessage" must be a string.');
|
|
223
228
|
}
|
|
224
229
|
else {
|
|
230
|
+
this.customErrorMessage = {
|
|
231
|
+
lock: valid ? false : errorMessageLock,
|
|
232
|
+
message: valid ? undefined : errorMessage,
|
|
233
|
+
};
|
|
225
234
|
this.setValidity(valid);
|
|
226
|
-
this.setErrorMessage(
|
|
235
|
+
this.setErrorMessage(true);
|
|
227
236
|
this.hasDisplayedError = this.invalid;
|
|
228
237
|
}
|
|
229
238
|
}
|
|
@@ -242,6 +251,8 @@ export class MgInputRichTextEditor {
|
|
|
242
251
|
// - Keep everything in sync both inside and outside the component
|
|
243
252
|
return new Promise(resolve => {
|
|
244
253
|
requestAnimationFrame(() => {
|
|
254
|
+
// unlock validity check by reseting customErrorMessage
|
|
255
|
+
this.customErrorMessage = { lock: false };
|
|
245
256
|
this.checkValidity();
|
|
246
257
|
this.errorMessage = undefined;
|
|
247
258
|
this.hasDisplayedError = false;
|
|
@@ -255,10 +266,12 @@ export class MgInputRichTextEditor {
|
|
|
255
266
|
* @param newValue - valid new value
|
|
256
267
|
*/
|
|
257
268
|
setValidity(newValue) {
|
|
258
|
-
const
|
|
259
|
-
this.
|
|
269
|
+
const oldValue = this.valid;
|
|
270
|
+
if (!this.customErrorMessage.lock || (this.customErrorMessage.message !== undefined && !newValue)) {
|
|
271
|
+
this.valid = newValue;
|
|
272
|
+
}
|
|
260
273
|
this.invalid = !this.valid;
|
|
261
|
-
if (this.valid !==
|
|
274
|
+
if (this.valid !== oldValue) {
|
|
262
275
|
this.inputValid.emit(this.valid);
|
|
263
276
|
}
|
|
264
277
|
}
|
|
@@ -308,7 +321,7 @@ export class MgInputRichTextEditor {
|
|
|
308
321
|
* @returns HTML mg-input Element
|
|
309
322
|
*/
|
|
310
323
|
render() {
|
|
311
|
-
return (h("mg-input", { key: '
|
|
324
|
+
return (h("mg-input", { key: '2f8f244cb60996c9cbe891b04168b5aea420d3a0', identifier: this.identifier, class: this.classCollection.join(), label: this.label, labelOnTop: this.labelOnTop, labelHide: this.labelHide, required: this.required, tooltip: this.tooltip, tooltipPosition: this.tooltipPosition, helpText: this.helpText, errorMessage: this.hasDisplayedError ? this.errorMessage : undefined }, this.readonly ? (h("div", { class: "mg-c-input__readonly-value", innerHTML: this.value })) : (h("div", { ref: el => {
|
|
312
325
|
this.wrapperElement = el;
|
|
313
326
|
}, id: this.identifier, class: "mg-c-input__wrapper" }, h("div", null)))));
|
|
314
327
|
}
|
|
@@ -328,7 +341,6 @@ export class MgInputRichTextEditor {
|
|
|
328
341
|
return {
|
|
329
342
|
"value": {
|
|
330
343
|
"type": "string",
|
|
331
|
-
"attribute": "value",
|
|
332
344
|
"mutable": true,
|
|
333
345
|
"complexType": {
|
|
334
346
|
"original": "string",
|
|
@@ -344,11 +356,11 @@ export class MgInputRichTextEditor {
|
|
|
344
356
|
"getter": false,
|
|
345
357
|
"setter": false,
|
|
346
358
|
"reflect": false,
|
|
359
|
+
"attribute": "value",
|
|
347
360
|
"defaultValue": "''"
|
|
348
361
|
},
|
|
349
362
|
"identifier": {
|
|
350
363
|
"type": "string",
|
|
351
|
-
"attribute": "identifier",
|
|
352
364
|
"mutable": false,
|
|
353
365
|
"complexType": {
|
|
354
366
|
"original": "string",
|
|
@@ -363,11 +375,11 @@ export class MgInputRichTextEditor {
|
|
|
363
375
|
},
|
|
364
376
|
"getter": false,
|
|
365
377
|
"setter": false,
|
|
366
|
-
"reflect": false
|
|
378
|
+
"reflect": false,
|
|
379
|
+
"attribute": "identifier"
|
|
367
380
|
},
|
|
368
381
|
"label": {
|
|
369
382
|
"type": "string",
|
|
370
|
-
"attribute": "label",
|
|
371
383
|
"mutable": false,
|
|
372
384
|
"complexType": {
|
|
373
385
|
"original": "string",
|
|
@@ -382,11 +394,11 @@ export class MgInputRichTextEditor {
|
|
|
382
394
|
},
|
|
383
395
|
"getter": false,
|
|
384
396
|
"setter": false,
|
|
385
|
-
"reflect": false
|
|
397
|
+
"reflect": false,
|
|
398
|
+
"attribute": "label"
|
|
386
399
|
},
|
|
387
400
|
"labelOnTop": {
|
|
388
401
|
"type": "boolean",
|
|
389
|
-
"attribute": "label-on-top",
|
|
390
402
|
"mutable": false,
|
|
391
403
|
"complexType": {
|
|
392
404
|
"original": "boolean",
|
|
@@ -402,11 +414,11 @@ export class MgInputRichTextEditor {
|
|
|
402
414
|
"getter": false,
|
|
403
415
|
"setter": false,
|
|
404
416
|
"reflect": false,
|
|
417
|
+
"attribute": "label-on-top",
|
|
405
418
|
"defaultValue": "false"
|
|
406
419
|
},
|
|
407
420
|
"labelHide": {
|
|
408
421
|
"type": "boolean",
|
|
409
|
-
"attribute": "label-hide",
|
|
410
422
|
"mutable": false,
|
|
411
423
|
"complexType": {
|
|
412
424
|
"original": "boolean",
|
|
@@ -422,11 +434,11 @@ export class MgInputRichTextEditor {
|
|
|
422
434
|
"getter": false,
|
|
423
435
|
"setter": false,
|
|
424
436
|
"reflect": false,
|
|
437
|
+
"attribute": "label-hide",
|
|
425
438
|
"defaultValue": "false"
|
|
426
439
|
},
|
|
427
440
|
"placeholder": {
|
|
428
441
|
"type": "string",
|
|
429
|
-
"attribute": "placeholder",
|
|
430
442
|
"mutable": false,
|
|
431
443
|
"complexType": {
|
|
432
444
|
"original": "string",
|
|
@@ -441,11 +453,11 @@ export class MgInputRichTextEditor {
|
|
|
441
453
|
},
|
|
442
454
|
"getter": false,
|
|
443
455
|
"setter": false,
|
|
444
|
-
"reflect": false
|
|
456
|
+
"reflect": false,
|
|
457
|
+
"attribute": "placeholder"
|
|
445
458
|
},
|
|
446
459
|
"rows": {
|
|
447
460
|
"type": "number",
|
|
448
|
-
"attribute": "rows",
|
|
449
461
|
"mutable": false,
|
|
450
462
|
"complexType": {
|
|
451
463
|
"original": "number",
|
|
@@ -461,11 +473,11 @@ export class MgInputRichTextEditor {
|
|
|
461
473
|
"getter": false,
|
|
462
474
|
"setter": false,
|
|
463
475
|
"reflect": false,
|
|
476
|
+
"attribute": "rows",
|
|
464
477
|
"defaultValue": "5"
|
|
465
478
|
},
|
|
466
479
|
"required": {
|
|
467
480
|
"type": "boolean",
|
|
468
|
-
"attribute": "required",
|
|
469
481
|
"mutable": false,
|
|
470
482
|
"complexType": {
|
|
471
483
|
"original": "boolean",
|
|
@@ -481,11 +493,11 @@ export class MgInputRichTextEditor {
|
|
|
481
493
|
"getter": false,
|
|
482
494
|
"setter": false,
|
|
483
495
|
"reflect": false,
|
|
496
|
+
"attribute": "required",
|
|
484
497
|
"defaultValue": "false"
|
|
485
498
|
},
|
|
486
499
|
"readonly": {
|
|
487
500
|
"type": "boolean",
|
|
488
|
-
"attribute": "readonly",
|
|
489
501
|
"mutable": false,
|
|
490
502
|
"complexType": {
|
|
491
503
|
"original": "boolean",
|
|
@@ -501,11 +513,11 @@ export class MgInputRichTextEditor {
|
|
|
501
513
|
"getter": false,
|
|
502
514
|
"setter": false,
|
|
503
515
|
"reflect": false,
|
|
516
|
+
"attribute": "readonly",
|
|
504
517
|
"defaultValue": "false"
|
|
505
518
|
},
|
|
506
519
|
"disabled": {
|
|
507
520
|
"type": "boolean",
|
|
508
|
-
"attribute": "disabled",
|
|
509
521
|
"mutable": false,
|
|
510
522
|
"complexType": {
|
|
511
523
|
"original": "boolean",
|
|
@@ -521,11 +533,11 @@ export class MgInputRichTextEditor {
|
|
|
521
533
|
"getter": false,
|
|
522
534
|
"setter": false,
|
|
523
535
|
"reflect": false,
|
|
536
|
+
"attribute": "disabled",
|
|
524
537
|
"defaultValue": "false"
|
|
525
538
|
},
|
|
526
539
|
"pattern": {
|
|
527
540
|
"type": "string",
|
|
528
|
-
"attribute": "pattern",
|
|
529
541
|
"mutable": false,
|
|
530
542
|
"complexType": {
|
|
531
543
|
"original": "string",
|
|
@@ -540,11 +552,11 @@ export class MgInputRichTextEditor {
|
|
|
540
552
|
},
|
|
541
553
|
"getter": false,
|
|
542
554
|
"setter": false,
|
|
543
|
-
"reflect": false
|
|
555
|
+
"reflect": false,
|
|
556
|
+
"attribute": "pattern"
|
|
544
557
|
},
|
|
545
558
|
"patternErrorMessage": {
|
|
546
559
|
"type": "string",
|
|
547
|
-
"attribute": "pattern-error-message",
|
|
548
560
|
"mutable": false,
|
|
549
561
|
"complexType": {
|
|
550
562
|
"original": "string",
|
|
@@ -559,11 +571,11 @@ export class MgInputRichTextEditor {
|
|
|
559
571
|
},
|
|
560
572
|
"getter": false,
|
|
561
573
|
"setter": false,
|
|
562
|
-
"reflect": false
|
|
574
|
+
"reflect": false,
|
|
575
|
+
"attribute": "pattern-error-message"
|
|
563
576
|
},
|
|
564
577
|
"tooltip": {
|
|
565
578
|
"type": "string",
|
|
566
|
-
"attribute": "tooltip",
|
|
567
579
|
"mutable": false,
|
|
568
580
|
"complexType": {
|
|
569
581
|
"original": "string",
|
|
@@ -578,11 +590,11 @@ export class MgInputRichTextEditor {
|
|
|
578
590
|
},
|
|
579
591
|
"getter": false,
|
|
580
592
|
"setter": false,
|
|
581
|
-
"reflect": false
|
|
593
|
+
"reflect": false,
|
|
594
|
+
"attribute": "tooltip"
|
|
582
595
|
},
|
|
583
596
|
"tooltipPosition": {
|
|
584
597
|
"type": "string",
|
|
585
|
-
"attribute": "tooltip-position",
|
|
586
598
|
"mutable": false,
|
|
587
599
|
"complexType": {
|
|
588
600
|
"original": "TooltipPosition",
|
|
@@ -604,11 +616,11 @@ export class MgInputRichTextEditor {
|
|
|
604
616
|
"getter": false,
|
|
605
617
|
"setter": false,
|
|
606
618
|
"reflect": false,
|
|
619
|
+
"attribute": "tooltip-position",
|
|
607
620
|
"defaultValue": "'input'"
|
|
608
621
|
},
|
|
609
622
|
"helpText": {
|
|
610
623
|
"type": "string",
|
|
611
|
-
"attribute": "help-text",
|
|
612
624
|
"mutable": false,
|
|
613
625
|
"complexType": {
|
|
614
626
|
"original": "string",
|
|
@@ -623,11 +635,11 @@ export class MgInputRichTextEditor {
|
|
|
623
635
|
},
|
|
624
636
|
"getter": false,
|
|
625
637
|
"setter": false,
|
|
626
|
-
"reflect": false
|
|
638
|
+
"reflect": false,
|
|
639
|
+
"attribute": "help-text"
|
|
627
640
|
},
|
|
628
641
|
"modules": {
|
|
629
642
|
"type": "unknown",
|
|
630
|
-
"attribute": "modules",
|
|
631
643
|
"mutable": false,
|
|
632
644
|
"complexType": {
|
|
633
645
|
"original": "EditorOptionsType['modules']",
|
|
@@ -651,7 +663,6 @@ export class MgInputRichTextEditor {
|
|
|
651
663
|
},
|
|
652
664
|
"valid": {
|
|
653
665
|
"type": "boolean",
|
|
654
|
-
"attribute": "valid",
|
|
655
666
|
"mutable": true,
|
|
656
667
|
"complexType": {
|
|
657
668
|
"original": "boolean",
|
|
@@ -666,11 +677,11 @@ export class MgInputRichTextEditor {
|
|
|
666
677
|
},
|
|
667
678
|
"getter": false,
|
|
668
679
|
"setter": false,
|
|
669
|
-
"reflect": false
|
|
680
|
+
"reflect": false,
|
|
681
|
+
"attribute": "valid"
|
|
670
682
|
},
|
|
671
683
|
"invalid": {
|
|
672
684
|
"type": "boolean",
|
|
673
|
-
"attribute": "invalid",
|
|
674
685
|
"mutable": true,
|
|
675
686
|
"complexType": {
|
|
676
687
|
"original": "boolean",
|
|
@@ -685,7 +696,8 @@ export class MgInputRichTextEditor {
|
|
|
685
696
|
},
|
|
686
697
|
"getter": false,
|
|
687
698
|
"setter": false,
|
|
688
|
-
"reflect": false
|
|
699
|
+
"reflect": false,
|
|
700
|
+
"attribute": "invalid"
|
|
689
701
|
}
|
|
690
702
|
};
|
|
691
703
|
}
|
|
@@ -806,7 +818,7 @@ export class MgInputRichTextEditor {
|
|
|
806
818
|
},
|
|
807
819
|
"setError": {
|
|
808
820
|
"complexType": {
|
|
809
|
-
"signature": "(valid: MgInputRichTextEditor[\"valid\"], errorMessage
|
|
821
|
+
"signature": "(valid: MgInputRichTextEditor[\"valid\"], errorMessage?: string, errorMessageLock?: boolean) => Promise<void>",
|
|
810
822
|
"parameters": [{
|
|
811
823
|
"name": "valid",
|
|
812
824
|
"type": "boolean",
|
|
@@ -815,6 +827,10 @@ export class MgInputRichTextEditor {
|
|
|
815
827
|
"name": "errorMessage",
|
|
816
828
|
"type": "string",
|
|
817
829
|
"docs": "- the error message to display"
|
|
830
|
+
}, {
|
|
831
|
+
"name": "errorMessageLock",
|
|
832
|
+
"type": "boolean",
|
|
833
|
+
"docs": "- lock the error message and validity state"
|
|
818
834
|
}],
|
|
819
835
|
"references": {
|
|
820
836
|
"Promise": {
|
|
@@ -836,6 +852,9 @@ export class MgInputRichTextEditor {
|
|
|
836
852
|
}, {
|
|
837
853
|
"name": "param",
|
|
838
854
|
"text": "errorMessage - the error message to display"
|
|
855
|
+
}, {
|
|
856
|
+
"name": "param",
|
|
857
|
+
"text": "errorMessageLock - lock the error message and validity state"
|
|
839
858
|
}]
|
|
840
859
|
}
|
|
841
860
|
},
|