@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.
Files changed (160) hide show
  1. package/dist/cjs/{index-T3-qWqFE.js → index-DCZEYvlH.js} +51 -28
  2. package/dist/cjs/{index-YM1EJx9X.js → index-TUElr4Wv.js} +10 -10
  3. package/dist/cjs/loader.cjs.js +2 -2
  4. package/dist/cjs/mg-action-more_37.cjs.entry.js +443 -228
  5. package/dist/cjs/mg-alert.cjs.entry.js +3 -3
  6. package/dist/cjs/mg-components.cjs.js +3 -3
  7. package/dist/cjs/mg-fieldset.cjs.entry.js +141 -0
  8. package/dist/cjs/mg-input-combobox.cjs.entry.js +73 -57
  9. package/dist/cjs/mg-input-rich-text-editor.cjs.entry.js +36 -23
  10. package/dist/cjs/{mg-input.conf-WTsvDfpC.js → mg-input.conf-HYIzRsy7.js} +5 -0
  11. package/dist/cjs/mg-loader.cjs.entry.js +3 -3
  12. package/dist/cjs/mg-progress.cjs.entry.js +2 -2
  13. package/dist/collection/collection-manifest.json +2 -1
  14. package/dist/collection/components/atoms/internals/mg-character-left/mg-character-left.js +5 -5
  15. package/dist/collection/components/atoms/internals/mg-input-title/mg-input-title.js +7 -7
  16. package/dist/collection/components/atoms/mg-badge/mg-badge.js +6 -6
  17. package/dist/collection/components/atoms/mg-button/mg-button.js +13 -13
  18. package/dist/collection/components/atoms/mg-card/mg-card.js +2 -2
  19. package/dist/collection/components/atoms/mg-divider/mg-divider.js +1 -1
  20. package/dist/collection/components/atoms/mg-icon/mg-icon.conf.js +1 -1
  21. package/dist/collection/components/atoms/mg-icon/mg-icon.js +32 -26
  22. package/dist/collection/components/atoms/mg-tag/mg-tag.js +3 -3
  23. package/dist/collection/components/atoms/mg-tooltip/mg-tooltip-content/mg-tooltip-content.js +2 -2
  24. package/dist/collection/components/atoms/mg-tooltip/mg-tooltip.js +6 -6
  25. package/dist/collection/components/molecules/inputs/mg-input/mg-input.conf.js +4 -0
  26. package/dist/collection/components/molecules/inputs/mg-input/mg-input.js +193 -33
  27. package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox-paginated/mg-input-checkbox-paginated.js +7 -9
  28. package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.js +65 -46
  29. package/dist/collection/components/molecules/inputs/mg-input-combobox/mg-input-combobox.js +106 -86
  30. package/dist/collection/components/molecules/inputs/mg-input-date/mg-input-date.js +67 -65
  31. package/dist/collection/components/molecules/inputs/mg-input-numeric/mg-input-numeric.js +71 -66
  32. package/dist/collection/components/molecules/inputs/mg-input-password/mg-input-password.js +56 -38
  33. package/dist/collection/components/molecules/inputs/mg-input-radio/mg-input-radio.js +53 -35
  34. package/dist/collection/components/molecules/inputs/mg-input-rich-text-editor/mg-input-rich-text-editor.js +66 -47
  35. package/dist/collection/components/molecules/inputs/mg-input-select/mg-input-select.js +58 -40
  36. package/dist/collection/components/molecules/inputs/mg-input-text/mg-input-text.js +77 -59
  37. package/dist/collection/components/molecules/inputs/mg-input-textarea/mg-input-textarea.js +63 -45
  38. package/dist/collection/components/molecules/inputs/mg-input-toggle/mg-input-toggle.js +54 -30
  39. package/dist/collection/components/molecules/internals/mg-item-more/mg-item-more.js +2 -4
  40. package/dist/collection/components/molecules/menus/mg-menu/mg-menu.js +9 -6
  41. package/dist/collection/components/molecules/menus/mg-menu-item/mg-menu-item.js +7 -7
  42. package/dist/collection/components/molecules/mg-action-more/mg-action-more.js +2 -5
  43. package/dist/collection/components/molecules/mg-alert/mg-alert.js +5 -5
  44. package/dist/collection/components/molecules/mg-details/mg-details.js +7 -7
  45. package/dist/collection/components/molecules/mg-fieldset/mg-fieldset.js +404 -0
  46. package/dist/collection/components/molecules/mg-form/mg-form.js +26 -17
  47. package/dist/collection/components/molecules/mg-illustrated-message/mg-illustrated-message.js +3 -3
  48. package/dist/collection/components/molecules/mg-loader/mg-loader.js +4 -4
  49. package/dist/collection/components/molecules/mg-message/mg-message.js +4 -4
  50. package/dist/collection/components/molecules/mg-modal/mg-modal.js +8 -8
  51. package/dist/collection/components/molecules/mg-pagination/mg-pagination.js +7 -8
  52. package/dist/collection/components/molecules/mg-panel/mg-panel.js +53 -22
  53. package/dist/collection/components/molecules/mg-popover/mg-popover-content/mg-popover-content.js +2 -2
  54. package/dist/collection/components/molecules/mg-popover/mg-popover.js +7 -7
  55. package/dist/collection/components/molecules/mg-progress/mg-progress.js +7 -7
  56. package/dist/collection/components/molecules/mg-skip-links/mg-skip-links.js +1 -2
  57. package/dist/collection/components/molecules/mg-table/mg-table.js +2 -3
  58. package/dist/collection/components/molecules/mg-tabs/mg-tabs.js +7 -8
  59. package/dist/collection/locales/en/messages.json +5 -5
  60. package/dist/collection/locales/fr/messages.json +5 -5
  61. package/dist/components/index3.js +10 -10
  62. package/dist/components/mg-action-more.js +5 -3
  63. package/dist/components/mg-alert.js +5 -3
  64. package/dist/components/mg-badge2.js +4 -2
  65. package/dist/components/mg-button2.js +4 -2
  66. package/dist/components/mg-card2.js +4 -2
  67. package/dist/components/mg-character-left2.js +4 -2
  68. package/dist/components/mg-details.js +5 -3
  69. package/dist/components/mg-divider2.js +4 -2
  70. package/dist/components/mg-fieldset.d.ts +11 -0
  71. package/dist/components/mg-fieldset.js +209 -0
  72. package/dist/components/mg-form.js +8 -5
  73. package/dist/components/mg-icon2.js +29 -21
  74. package/dist/components/mg-illustrated-message.js +5 -3
  75. package/dist/components/mg-input-checkbox-paginated2.js +6 -6
  76. package/dist/components/mg-input-checkbox.js +32 -17
  77. package/dist/components/mg-input-combobox.js +75 -57
  78. package/dist/components/mg-input-date.js +39 -42
  79. package/dist/components/mg-input-numeric.js +30 -30
  80. package/dist/components/mg-input-password.js +26 -13
  81. package/dist/components/mg-input-radio.js +27 -13
  82. package/dist/components/mg-input-rich-text-editor.js +37 -22
  83. package/dist/components/mg-input-select2.js +28 -14
  84. package/dist/components/mg-input-text2.js +40 -26
  85. package/dist/components/mg-input-textarea.js +27 -14
  86. package/dist/components/mg-input-title2.js +4 -2
  87. package/dist/components/mg-input-toggle.js +39 -12
  88. package/dist/components/mg-input2.js +121 -20
  89. package/dist/components/mg-item-more2.js +13 -5
  90. package/dist/components/mg-loader2.js +5 -3
  91. package/dist/components/mg-menu-item2.js +4 -2
  92. package/dist/components/mg-message2.js +6 -4
  93. package/dist/components/mg-modal.js +6 -4
  94. package/dist/components/mg-pagination.js +4 -2
  95. package/dist/components/mg-panel.js +40 -9
  96. package/dist/components/mg-popover-content2.js +5 -3
  97. package/dist/components/mg-popover2.js +5 -3
  98. package/dist/components/mg-progress.js +5 -3
  99. package/dist/components/mg-skip-links.js +5 -3
  100. package/dist/components/mg-table.js +4 -2
  101. package/dist/components/mg-tabs2.js +5 -3
  102. package/dist/components/mg-tag.js +4 -2
  103. package/dist/components/mg-tooltip-content2.js +4 -2
  104. package/dist/components/mg-tooltip2.js +4 -2
  105. package/dist/esm/{index-WtiuOkLj.js → index-C7xjtdiw.js} +1 -1
  106. package/dist/esm/{index-Bab8_u8S.js → index-CNX6lq0x.js} +10 -10
  107. package/dist/esm/{index-JHj_9FSs.js → index-T6kOJXP1.js} +51 -28
  108. package/dist/esm/loader.js +3 -3
  109. package/dist/esm/mg-action-more_37.entry.js +444 -229
  110. package/dist/esm/mg-alert.entry.js +4 -4
  111. package/dist/esm/mg-components.js +4 -4
  112. package/dist/esm/mg-fieldset.entry.js +139 -0
  113. package/dist/esm/mg-input-combobox.entry.js +74 -58
  114. package/dist/esm/mg-input-rich-text-editor.entry.js +37 -24
  115. package/dist/esm/{mg-input.conf-CNgv8hc5.js → mg-input.conf-D9V2v4n2.js} +5 -1
  116. package/dist/esm/mg-loader.entry.js +4 -4
  117. package/dist/esm/mg-progress.entry.js +3 -3
  118. package/dist/mg-components/locales/en/messages.json +5 -5
  119. package/dist/mg-components/locales/fr/messages.json +5 -5
  120. package/dist/mg-components/mg-components.esm.js +1 -1
  121. package/dist/mg-components/p-2bab89c2.entry.js +1 -0
  122. package/dist/mg-components/{p-658f828c.entry.js → p-5abc77cd.entry.js} +1 -1
  123. package/dist/mg-components/p-7d2e43b2.entry.js +1 -0
  124. package/dist/mg-components/{p-c85b5d10.entry.js → p-92e5e5a6.entry.js} +1 -1
  125. package/dist/mg-components/{p-42a90251.entry.js → p-952288bd.entry.js} +1 -1
  126. package/dist/mg-components/{p-WtiuOkLj.js → p-C7xjtdiw.js} +1 -1
  127. package/dist/mg-components/p-CNX6lq0x.js +1 -0
  128. package/dist/mg-components/p-D9V2v4n2.js +1 -0
  129. package/dist/mg-components/p-T6kOJXP1.js +2 -0
  130. package/dist/mg-components/p-f2cddd52.entry.js +1 -0
  131. package/dist/mg-components/{p-82455ac7.entry.js → p-f6afaeb8.entry.js} +1 -1
  132. package/dist/types/components/atoms/mg-icon/mg-icon.conf.d.ts +1 -1
  133. package/dist/types/components/atoms/mg-icon/mg-icon.d.ts +0 -5
  134. package/dist/types/components/molecules/inputs/mg-input/mg-input.conf.d.ts +5 -0
  135. package/dist/types/components/molecules/inputs/mg-input/mg-input.d.ts +32 -1
  136. package/dist/types/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.d.ts +4 -3
  137. package/dist/types/components/molecules/inputs/mg-input-combobox/mg-input-combobox.d.ts +4 -2
  138. package/dist/types/components/molecules/inputs/mg-input-date/mg-input-date.d.ts +4 -2
  139. package/dist/types/components/molecules/inputs/mg-input-numeric/mg-input-numeric.d.ts +4 -2
  140. package/dist/types/components/molecules/inputs/mg-input-password/mg-input-password.d.ts +4 -2
  141. package/dist/types/components/molecules/inputs/mg-input-radio/mg-input-radio.d.ts +4 -2
  142. package/dist/types/components/molecules/inputs/mg-input-rich-text-editor/mg-input-rich-text-editor.d.ts +4 -2
  143. package/dist/types/components/molecules/inputs/mg-input-select/mg-input-select.d.ts +4 -2
  144. package/dist/types/components/molecules/inputs/mg-input-text/mg-input-text.d.ts +4 -2
  145. package/dist/types/components/molecules/inputs/mg-input-textarea/mg-input-textarea.d.ts +4 -2
  146. package/dist/types/components/molecules/inputs/mg-input-toggle/mg-input-toggle.d.ts +4 -2
  147. package/dist/types/components/molecules/mg-fieldset/mg-fieldset.d.ts +105 -0
  148. package/dist/types/components/molecules/mg-form/mg-form.d.ts +1 -1
  149. package/dist/types/components/molecules/mg-panel/mg-panel.d.ts +8 -1
  150. package/dist/types/components.d.ts +168 -18
  151. package/dist/types/stencil-public-runtime.d.ts +39 -2
  152. package/dist/types/types/index.d.ts +1 -1
  153. package/ide/intellij/web-types.json +289 -181
  154. package/ide/vscode/html-custom-data.json +259 -18
  155. package/package.json +23 -23
  156. package/dist/mg-components/p-54156253.entry.js +0 -1
  157. package/dist/mg-components/p-Bab8_u8S.js +0 -1
  158. package/dist/mg-components/p-CNgv8hc5.js +0 -1
  159. package/dist/mg-components/p-JHj_9FSs.js +0 -2
  160. package/dist/mg-components/p-abbd151c.entry.js +0 -1
@@ -8,6 +8,7 @@ export class MgInputDate {
8
8
  constructor() {
9
9
  // hasDisplayedError (triggered by blur event)
10
10
  this.hasDisplayedError = false;
11
+ this.customErrorMessage = { lock: false };
11
12
  /**
12
13
  * Input name
13
14
  * If not set the value equals the identifier
@@ -58,7 +59,6 @@ export class MgInputDate {
58
59
  * @returns formated pattern help text. Ex: Format attendu : jj/mm/aaaa (ex : 20/12/2020)
59
60
  */
60
61
  this.formatHelpText = (helpText) => {
61
- var _a, _b;
62
62
  // If the component is in readonly mode, return directly because the message will not be rendered
63
63
  if (this.readonly) {
64
64
  return undefined;
@@ -71,23 +71,7 @@ export class MgInputDate {
71
71
  text = text.replace(defaultHelpTextVariable, this.formatHelpText(this.messages.input.date.helpText.expectedFormat));
72
72
  }
73
73
  // Replace pattern and date variables
74
- text = text.replace('{pattern}', this.renderPattern()).replace('{date}', localeDate(dateToString(new Date('2025-12-24')), this.systemLocale));
75
- // Add additional message for min/max if necessary
76
- let rangeMessage;
77
- if (((_a = this.min) === null || _a === void 0 ? void 0 : _a.length) > 0 && this.max !== DEFAULT_MAX_DATE) {
78
- rangeMessage = this.messages.input.date.helpText.minMax.replace('{min}', localeDate(this.min, this.systemLocale)).replace('{max}', localeDate(this.max, this.systemLocale));
79
- }
80
- else if (((_b = this.min) === null || _b === void 0 ? void 0 : _b.length) > 0) {
81
- rangeMessage = this.messages.input.date.helpText.min.replace('{min}', localeDate(this.min, this.systemLocale));
82
- }
83
- else if (this.max !== DEFAULT_MAX_DATE) {
84
- rangeMessage = this.messages.input.date.helpText.max.replace('{max}', localeDate(this.max, this.systemLocale));
85
- }
86
- // Combine custom helpText with range message if both exist
87
- if (text !== undefined && rangeMessage !== undefined) {
88
- return `${text}<br>${rangeMessage}`;
89
- }
90
- return text;
74
+ return text.replace('{pattern}', this.renderPattern()).replace('{date}', localeDate(dateToString(new Date('2025-12-24')), this.systemLocale));
91
75
  };
92
76
  /**
93
77
  * Handle input event
@@ -137,39 +121,41 @@ export class MgInputDate {
137
121
  */
138
122
  this.getInputError = () => {
139
123
  var _a;
124
+ let error;
140
125
  // bad input or pattern
141
126
  if (this.input.validity.badInput || (this.value && !this.isValidPattern(this.value))) {
142
- return 'badInput';
127
+ error = 'badInput';
143
128
  }
144
129
  // required
145
- if (this.input.validity.valueMissing) {
146
- return 'required';
130
+ else if (this.input.validity.valueMissing) {
131
+ error = 'required';
147
132
  }
148
133
  // min & max
149
- if ((this.input.validity.rangeUnderflow || this.input.validity.rangeOverflow) && ((_a = this.min) === null || _a === void 0 ? void 0 : _a.length) > 0 && this.max !== DEFAULT_MAX_DATE) {
150
- return 'minMax';
134
+ else if ((this.input.validity.rangeUnderflow || this.input.validity.rangeOverflow) && ((_a = this.min) === null || _a === void 0 ? void 0 : _a.length) > 0 && this.max !== DEFAULT_MAX_DATE) {
135
+ error = 'minMax';
151
136
  }
152
137
  // min
153
- if (this.input.validity.rangeUnderflow) {
154
- return 'min';
138
+ else if (this.input.validity.rangeUnderflow) {
139
+ error = 'min';
155
140
  }
156
141
  // max
157
- if (this.input.validity.rangeOverflow) {
158
- return 'max';
142
+ else if (this.input.validity.rangeOverflow) {
143
+ error = 'max';
159
144
  }
160
- return null;
145
+ return error;
161
146
  };
162
147
  /**
163
148
  * Check input errors
164
- * @param errorMessage - errorMessage override
149
+ * @param fromSetErrorContext - context come from `setError` method
165
150
  */
166
- this.setErrorMessage = (errorMessage) => {
151
+ this.setErrorMessage = (fromSetErrorContext = false) => {
167
152
  // Set error message
168
153
  this.errorMessage = undefined;
169
154
  if (!this.valid) {
170
155
  const inputError = this.getInputError();
171
- if (errorMessage !== undefined) {
172
- this.errorMessage = errorMessage;
156
+ // Does have a new custom error message OR does have a custom error message locked
157
+ if (fromSetErrorContext || (this.customErrorMessage.lock && this.customErrorMessage.message !== undefined)) {
158
+ this.errorMessage = this.customErrorMessage.message;
173
159
  }
174
160
  // required
175
161
  else if (inputError === 'required') {
@@ -177,7 +163,7 @@ export class MgInputDate {
177
163
  }
178
164
  // min, max & minMax
179
165
  else if (['min', 'max', 'minMax'].includes(inputError)) {
180
- this.errorMessage = this.messages.input.date.helpText[inputError]
166
+ this.errorMessage = this.messages.input.date.error[inputError]
181
167
  .replace('{min}', localeDate(this.min, this.systemLocale))
182
168
  .replace('{max}', localeDate(this.max, this.systemLocale));
183
169
  }
@@ -281,17 +267,22 @@ export class MgInputDate {
281
267
  * When used to set validity to `false`, you should use this method again to reset the validity to `true`.
282
268
  * @param valid - value indicating the validity
283
269
  * @param errorMessage - the error message to display
270
+ * @param errorMessageLock - lock the error message and validity state
284
271
  */
285
- async setError(valid, errorMessage) {
272
+ async setError(valid, errorMessage, errorMessageLock = false) {
286
273
  if (typeof valid !== 'boolean') {
287
274
  throw new Error('<mg-input-date> method "setError()" param "valid" must be a boolean.');
288
275
  }
289
- else if (!isValidString(errorMessage)) {
276
+ else if (errorMessage !== undefined && !isValidString(errorMessage)) {
290
277
  throw new Error('<mg-input-date> method "setError()" param "errorMessage" must be a string.');
291
278
  }
292
279
  else {
280
+ this.customErrorMessage = {
281
+ lock: valid ? false : errorMessageLock,
282
+ message: valid ? undefined : errorMessage,
283
+ };
293
284
  this.setValidity(valid);
294
- this.setErrorMessage(valid ? undefined : errorMessage);
285
+ this.setErrorMessage(true);
295
286
  this.hasDisplayedError = this.invalid;
296
287
  }
297
288
  }
@@ -309,6 +300,8 @@ export class MgInputDate {
309
300
  // - Keep everything in sync both inside and outside the component
310
301
  return new Promise(resolve => {
311
302
  requestAnimationFrame(() => {
303
+ // unlock validity check by reseting customErrorMessage
304
+ this.customErrorMessage = { lock: false };
312
305
  this.checkValidity();
313
306
  this.errorMessage = undefined;
314
307
  this.hasDisplayedError = false;
@@ -322,11 +315,13 @@ export class MgInputDate {
322
315
  * @param newValue - valid new value
323
316
  */
324
317
  setValidity(newValue) {
325
- const oldValidValue = this.valid;
326
- this.valid = newValue;
318
+ const oldValue = this.valid;
319
+ if (!this.customErrorMessage.lock || (this.customErrorMessage.message !== undefined && !newValue)) {
320
+ this.valid = newValue;
321
+ }
327
322
  this.invalid = !this.valid;
328
323
  // We need to send valid event even if it is the same value
329
- if (this.handlerInProgress === undefined || (this.handlerInProgress === 'blur' && this.valid !== oldValidValue))
324
+ if (this.handlerInProgress === undefined || (this.handlerInProgress === 'blur' && this.valid !== oldValue))
330
325
  this.inputValid.emit(this.valid);
331
326
  }
332
327
  /*************
@@ -362,7 +357,7 @@ export class MgInputDate {
362
357
  * @returns HTML Element
363
358
  */
364
359
  render() {
365
- return (h("mg-input", { key: '71daaa8818ab7120c61a45399ae016a4621c8f50', 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 === null ? 'label' : this.tooltipPosition, helpText: this.formatHelpText(this.helpText), errorMessage: this.errorMessage }, this.readonly ? (this.value && h("b", { class: "mg-c-input__readonly-value" }, localeDate(this.value, this.locale))) : (h("input", { type: "date", class: "mg-c-input__box", min: this.min, max: this.max, value: this.value, id: this.identifier, name: this.name, disabled: this.disabled, required: this.required, "aria-invalid": (this.invalid === true).toString(), onInput: this.handleInput, onBlur: this.handleBlur, onKeyDown: this.handleKeyDown, ref: (el) => {
360
+ return (h("mg-input", { key: '1428f0f9f11d829ec8d3ed507c8690d63839ff17', 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 === null ? 'label' : this.tooltipPosition, helpText: this.formatHelpText(this.helpText), errorMessage: this.errorMessage }, this.readonly ? (this.value && h("b", { class: "mg-c-input__readonly-value" }, localeDate(this.value, this.locale))) : (h("input", { type: "date", class: "mg-c-input__box", min: this.min, max: this.max, value: this.value, id: this.identifier, name: this.name, disabled: this.disabled, required: this.required, "aria-invalid": (this.invalid === true).toString(), onInput: this.handleInput, onBlur: this.handleBlur, onKeyDown: this.handleKeyDown, ref: (el) => {
366
361
  if (el !== null)
367
362
  this.input = el;
368
363
  } }))));
@@ -383,7 +378,6 @@ export class MgInputDate {
383
378
  return {
384
379
  "value": {
385
380
  "type": "string",
386
- "attribute": "value",
387
381
  "mutable": true,
388
382
  "complexType": {
389
383
  "original": "string",
@@ -398,11 +392,11 @@ export class MgInputDate {
398
392
  },
399
393
  "getter": false,
400
394
  "setter": false,
401
- "reflect": true
395
+ "reflect": true,
396
+ "attribute": "value"
402
397
  },
403
398
  "identifier": {
404
399
  "type": "string",
405
- "attribute": "identifier",
406
400
  "mutable": false,
407
401
  "complexType": {
408
402
  "original": "string",
@@ -417,11 +411,11 @@ export class MgInputDate {
417
411
  },
418
412
  "getter": false,
419
413
  "setter": false,
420
- "reflect": false
414
+ "reflect": false,
415
+ "attribute": "identifier"
421
416
  },
422
417
  "name": {
423
418
  "type": "string",
424
- "attribute": "name",
425
419
  "mutable": false,
426
420
  "complexType": {
427
421
  "original": "string",
@@ -437,11 +431,11 @@ export class MgInputDate {
437
431
  "getter": false,
438
432
  "setter": false,
439
433
  "reflect": false,
434
+ "attribute": "name",
440
435
  "defaultValue": "this.identifier"
441
436
  },
442
437
  "label": {
443
438
  "type": "string",
444
- "attribute": "label",
445
439
  "mutable": false,
446
440
  "complexType": {
447
441
  "original": "string",
@@ -456,11 +450,11 @@ export class MgInputDate {
456
450
  },
457
451
  "getter": false,
458
452
  "setter": false,
459
- "reflect": false
453
+ "reflect": false,
454
+ "attribute": "label"
460
455
  },
461
456
  "labelOnTop": {
462
457
  "type": "boolean",
463
- "attribute": "label-on-top",
464
458
  "mutable": false,
465
459
  "complexType": {
466
460
  "original": "boolean",
@@ -476,11 +470,11 @@ export class MgInputDate {
476
470
  "getter": false,
477
471
  "setter": false,
478
472
  "reflect": false,
473
+ "attribute": "label-on-top",
479
474
  "defaultValue": "false"
480
475
  },
481
476
  "labelHide": {
482
477
  "type": "boolean",
483
- "attribute": "label-hide",
484
478
  "mutable": false,
485
479
  "complexType": {
486
480
  "original": "boolean",
@@ -496,11 +490,11 @@ export class MgInputDate {
496
490
  "getter": false,
497
491
  "setter": false,
498
492
  "reflect": false,
493
+ "attribute": "label-hide",
499
494
  "defaultValue": "false"
500
495
  },
501
496
  "required": {
502
497
  "type": "boolean",
503
- "attribute": "required",
504
498
  "mutable": false,
505
499
  "complexType": {
506
500
  "original": "boolean",
@@ -516,11 +510,11 @@ export class MgInputDate {
516
510
  "getter": false,
517
511
  "setter": false,
518
512
  "reflect": false,
513
+ "attribute": "required",
519
514
  "defaultValue": "false"
520
515
  },
521
516
  "readonly": {
522
517
  "type": "boolean",
523
- "attribute": "readonly",
524
518
  "mutable": false,
525
519
  "complexType": {
526
520
  "original": "boolean",
@@ -536,11 +530,11 @@ export class MgInputDate {
536
530
  "getter": false,
537
531
  "setter": false,
538
532
  "reflect": false,
533
+ "attribute": "readonly",
539
534
  "defaultValue": "false"
540
535
  },
541
536
  "min": {
542
537
  "type": "string",
543
- "attribute": "min",
544
538
  "mutable": false,
545
539
  "complexType": {
546
540
  "original": "string",
@@ -555,11 +549,11 @@ export class MgInputDate {
555
549
  },
556
550
  "getter": false,
557
551
  "setter": false,
558
- "reflect": false
552
+ "reflect": false,
553
+ "attribute": "min"
559
554
  },
560
555
  "max": {
561
556
  "type": "string",
562
- "attribute": "max",
563
557
  "mutable": false,
564
558
  "complexType": {
565
559
  "original": "string",
@@ -575,11 +569,11 @@ export class MgInputDate {
575
569
  "getter": false,
576
570
  "setter": false,
577
571
  "reflect": false,
572
+ "attribute": "max",
578
573
  "defaultValue": "'9999-12-31'"
579
574
  },
580
575
  "disabled": {
581
576
  "type": "boolean",
582
- "attribute": "disabled",
583
577
  "mutable": false,
584
578
  "complexType": {
585
579
  "original": "boolean",
@@ -595,11 +589,11 @@ export class MgInputDate {
595
589
  "getter": false,
596
590
  "setter": false,
597
591
  "reflect": false,
592
+ "attribute": "disabled",
598
593
  "defaultValue": "false"
599
594
  },
600
595
  "tooltip": {
601
596
  "type": "string",
602
- "attribute": "tooltip",
603
597
  "mutable": false,
604
598
  "complexType": {
605
599
  "original": "string",
@@ -614,11 +608,11 @@ export class MgInputDate {
614
608
  },
615
609
  "getter": false,
616
610
  "setter": false,
617
- "reflect": false
611
+ "reflect": false,
612
+ "attribute": "tooltip"
618
613
  },
619
614
  "tooltipPosition": {
620
615
  "type": "string",
621
- "attribute": "tooltip-position",
622
616
  "mutable": false,
623
617
  "complexType": {
624
618
  "original": "TooltipPosition",
@@ -640,11 +634,11 @@ export class MgInputDate {
640
634
  "getter": false,
641
635
  "setter": false,
642
636
  "reflect": false,
637
+ "attribute": "tooltip-position",
643
638
  "defaultValue": "'input'"
644
639
  },
645
640
  "helpText": {
646
641
  "type": "string",
647
- "attribute": "help-text",
648
642
  "mutable": false,
649
643
  "complexType": {
650
644
  "original": "string",
@@ -659,11 +653,11 @@ export class MgInputDate {
659
653
  },
660
654
  "getter": false,
661
655
  "setter": false,
662
- "reflect": false
656
+ "reflect": false,
657
+ "attribute": "help-text"
663
658
  },
664
659
  "valid": {
665
660
  "type": "boolean",
666
- "attribute": "valid",
667
661
  "mutable": true,
668
662
  "complexType": {
669
663
  "original": "boolean",
@@ -678,11 +672,11 @@ export class MgInputDate {
678
672
  },
679
673
  "getter": false,
680
674
  "setter": false,
681
- "reflect": false
675
+ "reflect": false,
676
+ "attribute": "valid"
682
677
  },
683
678
  "invalid": {
684
679
  "type": "boolean",
685
- "attribute": "invalid",
686
680
  "mutable": true,
687
681
  "complexType": {
688
682
  "original": "boolean",
@@ -697,7 +691,8 @@ export class MgInputDate {
697
691
  },
698
692
  "getter": false,
699
693
  "setter": false,
700
- "reflect": false
694
+ "reflect": false,
695
+ "attribute": "invalid"
701
696
  }
702
697
  };
703
698
  }
@@ -788,7 +783,7 @@ export class MgInputDate {
788
783
  },
789
784
  "setError": {
790
785
  "complexType": {
791
- "signature": "(valid: MgInputDate[\"valid\"], errorMessage: string) => Promise<void>",
786
+ "signature": "(valid: MgInputDate[\"valid\"], errorMessage?: string, errorMessageLock?: boolean) => Promise<void>",
792
787
  "parameters": [{
793
788
  "name": "valid",
794
789
  "type": "boolean",
@@ -797,6 +792,10 @@ export class MgInputDate {
797
792
  "name": "errorMessage",
798
793
  "type": "string",
799
794
  "docs": "- the error message to display"
795
+ }, {
796
+ "name": "errorMessageLock",
797
+ "type": "boolean",
798
+ "docs": "- lock the error message and validity state"
800
799
  }],
801
800
  "references": {
802
801
  "Promise": {
@@ -818,6 +817,9 @@ export class MgInputDate {
818
817
  }, {
819
818
  "name": "param",
820
819
  "text": "errorMessage - the error message to display"
820
+ }, {
821
+ "name": "param",
822
+ "text": "errorMessageLock - lock the error message and validity state"
821
823
  }]
822
824
  }
823
825
  },