@mgdis/mg-components 4.1.0 → 4.2.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 (123) hide show
  1. package/dist/cjs/{index-88560a66.js → index-64cee0c8.js} +248 -81
  2. package/dist/cjs/loader.cjs.js +3 -3
  3. package/dist/cjs/{mg-badge_24.cjs.entry.js → mg-badge_23.cjs.entry.js} +206 -2180
  4. package/dist/cjs/mg-components.cjs.js +3 -3
  5. package/dist/cjs/mg-modal.cjs.entry.js +8 -1
  6. package/dist/cjs/mg-popover.cjs.entry.js +171 -0
  7. package/dist/cjs/popper-71bf3058.js +1790 -0
  8. package/dist/collection/collection-manifest.json +2 -2
  9. package/dist/collection/components/atoms/mg-badge/mg-badge.js +116 -99
  10. package/dist/collection/components/atoms/mg-button/mg-button.js +221 -220
  11. package/dist/collection/components/atoms/mg-character-left/mg-character-left.js +72 -69
  12. package/dist/collection/components/atoms/mg-icon/doc/mg-icon.stories.js +1 -2
  13. package/dist/collection/components/atoms/mg-icon/mg-icon.js +102 -92
  14. package/dist/collection/components/atoms/mg-input-title/mg-input-title.js +83 -67
  15. package/dist/collection/components/atoms/mg-tag/mg-tag.js +64 -55
  16. package/dist/collection/components/atoms/mg-tooltip/doc/mg-tooltip.stories.js +3 -6
  17. package/dist/collection/components/atoms/mg-tooltip/mg-tooltip.js +120 -106
  18. package/dist/collection/components/molecules/inputs/MgInput.js +8 -17
  19. package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.js +323 -318
  20. package/dist/collection/components/molecules/inputs/mg-input-date/doc/mg-input-date.stories.js +3 -2
  21. package/dist/collection/components/molecules/inputs/mg-input-date/mg-input-date.js +356 -361
  22. package/dist/collection/components/molecules/inputs/mg-input-numeric/doc/mg-input-numeric.stories.js +1 -2
  23. package/dist/collection/components/molecules/inputs/mg-input-numeric/mg-input-numeric.js +462 -456
  24. package/dist/collection/components/molecules/inputs/mg-input-password/mg-input-password.js +347 -340
  25. package/dist/collection/components/molecules/inputs/mg-input-radio/mg-input-radio.js +348 -343
  26. package/dist/collection/components/molecules/inputs/mg-input-select/doc/mg-input-select.stories.js +4 -3
  27. package/dist/collection/components/molecules/inputs/mg-input-select/mg-input-select.js +406 -401
  28. package/dist/collection/components/molecules/inputs/mg-input-text/doc/mg-input-text.stories.js +12 -15
  29. package/dist/collection/components/molecules/inputs/mg-input-text/mg-input-text.css +2 -0
  30. package/dist/collection/components/molecules/inputs/mg-input-text/mg-input-text.js +476 -473
  31. package/dist/collection/components/molecules/inputs/mg-input-textarea/mg-input-textarea.js +461 -456
  32. package/dist/collection/components/molecules/inputs/mg-input-toggle/doc/mg-input-toggle.stories.js +2 -8
  33. package/dist/collection/components/molecules/inputs/mg-input-toggle/mg-input-toggle.css +1 -0
  34. package/dist/collection/components/molecules/inputs/mg-input-toggle/mg-input-toggle.js +299 -298
  35. package/dist/collection/components/molecules/mg-details/doc/mg-details.stories.js +1 -3
  36. package/dist/collection/components/molecules/mg-details/mg-details.js +95 -93
  37. package/dist/collection/components/molecules/mg-form/doc/mg-form.stories.js +13 -27
  38. package/dist/collection/components/molecules/mg-form/mg-form.js +175 -166
  39. package/dist/collection/components/molecules/mg-illustrated-message/doc/mg-illustrated-message.stories.js +2 -6
  40. package/dist/collection/components/molecules/mg-illustrated-message/mg-illustrated-message.js +37 -37
  41. package/dist/collection/components/molecules/mg-message/doc/mg-message.stories.js +1 -3
  42. package/dist/collection/components/molecules/mg-message/mg-message.js +154 -153
  43. package/dist/collection/components/molecules/mg-modal/doc/mg-modal.stories.js +11 -15
  44. package/dist/collection/components/molecules/mg-modal/mg-modal.js +147 -134
  45. package/dist/collection/components/molecules/mg-pagination/mg-pagination.css +5 -6
  46. package/dist/collection/components/molecules/mg-pagination/mg-pagination.js +112 -117
  47. package/dist/collection/components/molecules/mg-panel/doc/mg-panel.stories.js +1 -8
  48. package/dist/collection/components/molecules/mg-panel/mg-panel.css +2 -2
  49. package/dist/collection/components/molecules/mg-panel/mg-panel.js +192 -189
  50. package/dist/collection/components/molecules/mg-popover/doc/mg-popover.stories.js +1 -4
  51. package/dist/collection/components/molecules/mg-popover/mg-popover.js +129 -127
  52. package/dist/collection/components/molecules/mg-tabs/doc/mg-tabs.stories.js +1 -5
  53. package/dist/collection/components/molecules/mg-tabs/mg-tabs.css +1 -0
  54. package/dist/collection/components/molecules/mg-tabs/mg-tabs.js +150 -135
  55. package/dist/collection/fonts/OpenSans-Bold.ttf +0 -0
  56. package/dist/collection/locales/en/messages.json +50 -0
  57. package/dist/collection/locales/fr/messages.json +50 -0
  58. package/dist/collection/stories/grids.stories.js +1 -44
  59. package/dist/collection/stories/helpers.stories.js +1 -19
  60. package/dist/collection/stories/icons.stories.js +1 -4
  61. package/dist/collection/stories/typography.stories.js +1 -12
  62. package/dist/collection/variables.css +3 -2
  63. package/dist/collection/variables.scss +3 -2
  64. package/dist/components/MgInput.js +6 -3
  65. package/dist/components/mg-badge2.js +7 -0
  66. package/dist/components/mg-button2.js +2 -7
  67. package/dist/components/mg-input-checkbox.js +1 -6
  68. package/dist/components/mg-input-date.js +10 -27
  69. package/dist/components/mg-input-numeric.js +1 -6
  70. package/dist/components/mg-input-password.js +1 -6
  71. package/dist/components/mg-input-radio.js +1 -6
  72. package/dist/components/mg-input-select2.js +1 -6
  73. package/dist/components/mg-input-text2.js +3 -8
  74. package/dist/components/mg-input-textarea.js +2 -7
  75. package/dist/components/mg-input-title2.js +9 -0
  76. package/dist/components/mg-input-toggle.js +2 -7
  77. package/dist/components/mg-modal.js +7 -0
  78. package/dist/components/mg-pagination.js +3 -3
  79. package/dist/components/mg-panel.js +8 -4
  80. package/dist/components/mg-tabs.js +8 -1
  81. package/dist/components/mg-tooltip2.js +7 -0
  82. package/dist/esm/{index-bca81100.js → index-120f47fd.js} +248 -81
  83. package/dist/esm/loader.js +3 -3
  84. package/dist/esm/{mg-badge_24.entry.js → mg-badge_23.entry.js} +207 -2180
  85. package/dist/esm/mg-components.js +3 -3
  86. package/dist/esm/mg-modal.entry.js +8 -1
  87. package/dist/esm/mg-popover.entry.js +167 -0
  88. package/dist/esm/popper-93ecb064.js +1788 -0
  89. package/dist/mg-components/fonts/OpenSans-Bold.ttf +0 -0
  90. package/dist/mg-components/locales/en/messages.json +50 -0
  91. package/dist/mg-components/locales/fr/messages.json +50 -0
  92. package/dist/mg-components/mg-components.css +1 -1
  93. package/dist/mg-components/mg-components.esm.js +1 -1
  94. package/dist/mg-components/p-21991be8.entry.js +1 -0
  95. package/dist/mg-components/p-36a64f8c.entry.js +1 -0
  96. package/dist/mg-components/p-4c66f794.js +1 -0
  97. package/dist/mg-components/{p-b14a3443.js → p-7bc32a2f.js} +0 -0
  98. package/dist/mg-components/p-b380a0df.entry.js +1 -0
  99. package/dist/mg-components/variables.css +3 -2
  100. package/dist/mg-components/variables.scss +3 -2
  101. package/dist/types/components/atoms/mg-badge/mg-badge.d.ts +1 -0
  102. package/dist/types/components/atoms/mg-button/mg-button.d.ts +0 -1
  103. package/dist/types/components/atoms/mg-input-title/mg-input-title.d.ts +1 -0
  104. package/dist/types/components/atoms/mg-tooltip/mg-tooltip.d.ts +1 -0
  105. package/dist/types/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.d.ts +0 -1
  106. package/dist/types/components/molecules/inputs/mg-input-date/mg-input-date.d.ts +1 -10
  107. package/dist/types/components/molecules/inputs/mg-input-numeric/mg-input-numeric.d.ts +0 -1
  108. package/dist/types/components/molecules/inputs/mg-input-password/mg-input-password.d.ts +0 -1
  109. package/dist/types/components/molecules/inputs/mg-input-radio/mg-input-radio.d.ts +0 -1
  110. package/dist/types/components/molecules/inputs/mg-input-select/mg-input-select.d.ts +0 -1
  111. package/dist/types/components/molecules/inputs/mg-input-text/mg-input-text.d.ts +0 -1
  112. package/dist/types/components/molecules/inputs/mg-input-textarea/mg-input-textarea.d.ts +0 -1
  113. package/dist/types/components/molecules/inputs/mg-input-toggle/mg-input-toggle.d.ts +0 -1
  114. package/dist/types/components/molecules/mg-modal/mg-modal.d.ts +1 -0
  115. package/dist/types/components/molecules/mg-panel/mg-panel.d.ts +1 -1
  116. package/dist/types/components/molecules/mg-tabs/mg-tabs.d.ts +1 -0
  117. package/dist/types/components.d.ts +29 -29
  118. package/loader/package.json +1 -0
  119. package/package.json +8 -8
  120. package/dist/collection/fonts/Poppins-Bold.ttf +0 -0
  121. package/dist/mg-components/fonts/Poppins-Bold.ttf +0 -0
  122. package/dist/mg-components/p-a2883dc7.entry.js +0 -1
  123. package/dist/mg-components/p-cffe0519.entry.js +0 -1
@@ -1,6 +1,6 @@
1
- import { Component, Element, Event, h, Prop, State, Method, Watch } from '@stencil/core';
1
+ import { h } from '@stencil/core';
2
2
  import { MgInput } from '../MgInput';
3
- import { createID, ClassList } from '../../../../utils/components.utils';
3
+ import { ClassList } from '../../../../utils/components.utils';
4
4
  import { initLocales } from '../../../../locales';
5
5
  export class MgInputTextarea {
6
6
  constructor() {
@@ -12,11 +12,6 @@ export class MgInputTextarea {
12
12
  this.classHasDisplayCharacterLeft = 'mg-input--has-display-character-left';
13
13
  // hasError (triggered by blur event)
14
14
  this.hasError = false;
15
- /**
16
- * Identifier is used for the element ID (id is a reserved prop in Stencil.js)
17
- * If not set, it will be created.
18
- */
19
- this.identifier = createID('mg-input-textarea');
20
15
  /**
21
16
  * Input name
22
17
  * If not set the value equals the identifier
@@ -186,461 +181,471 @@ export class MgInputTextarea {
186
181
  * @returns {HTMLElement} HTML Element
187
182
  */
188
183
  render() {
189
- return (h(MgInput, { identifier: this.identifier, classList: this.classList, ariaDescribedbyIDs: [this.characterLeftId], label: this.label, labelOnTop: this.labelOnTop, labelHide: this.labelHide, required: this.required, readonly: this.readonly, mgWidth: this.mgWidth, disabled: this.disabled, value: this.value, readonlyValue: undefined, tooltip: this.tooltip, helpText: this.helpText, errorMessage: this.errorMessage, isFieldset: false },
190
- h("div", { class: "mg-input__with-character-left" },
191
- h("textarea", { class: {
192
- 'mg-input__box': true,
193
- 'mg-input__box--resizable': this.resizable === 'both',
194
- 'mg-input__box--resizable-horizontal': this.resizable === 'horizontal',
195
- 'mg-input__box--resizable-vertical': this.resizable === 'vertical',
196
- }, value: this.value, id: this.identifier, name: this.name, placeholder: this.placeholder, title: this.placeholder, rows: this.rows, maxlength: this.maxlength, disabled: this.disabled, required: this.required, onInput: this.handleInput, onFocus: this.handleFocus, onBlur: this.handleBlur, ref: el => (this.input = el) }),
197
- this.displayCharacterLeft && this.maxlength && (h("mg-character-left", { identifier: this.characterLeftId, characters: this.value, maxlength: this.maxlength })))));
184
+ return (h(MgInput, { identifier: this.identifier, classList: this.classList, ariaDescribedbyIDs: [this.characterLeftId], label: this.label, labelOnTop: this.labelOnTop, labelHide: this.labelHide, required: this.required, readonly: this.readonly, mgWidth: this.mgWidth, disabled: this.disabled, value: this.value, readonlyValue: undefined, tooltip: this.tooltip, helpText: this.helpText, errorMessage: this.errorMessage, isFieldset: false }, h("div", { class: "mg-input__with-character-left" }, h("textarea", { class: {
185
+ 'mg-input__box': true,
186
+ 'mg-input__box--resizable': this.resizable === 'both',
187
+ 'mg-input__box--resizable-horizontal': this.resizable === 'horizontal',
188
+ 'mg-input__box--resizable-vertical': this.resizable === 'vertical',
189
+ }, value: this.value, id: this.identifier, name: this.name, placeholder: this.placeholder, title: this.placeholder, rows: this.rows, maxlength: this.maxlength, disabled: this.disabled, required: this.required, onInput: this.handleInput, onFocus: this.handleFocus, onBlur: this.handleBlur, ref: el => (this.input = el) }), this.displayCharacterLeft && this.maxlength > 0 && (h("mg-character-left", { identifier: this.characterLeftId, characters: this.value, maxlength: this.maxlength })))));
198
190
  }
199
191
  static get is() { return "mg-input-textarea"; }
200
192
  static get encapsulation() { return "shadow"; }
201
- static get originalStyleUrls() { return {
202
- "$": ["mg-input-textarea.scss"]
203
- }; }
204
- static get styleUrls() { return {
205
- "$": ["mg-input-textarea.css"]
206
- }; }
207
- static get properties() { return {
208
- "value": {
209
- "type": "string",
210
- "mutable": true,
211
- "complexType": {
212
- "original": "string",
213
- "resolved": "string",
214
- "references": {}
215
- },
216
- "required": false,
217
- "optional": false,
218
- "docs": {
219
- "tags": [],
220
- "text": "Component value"
221
- },
222
- "attribute": "value",
223
- "reflect": true
224
- },
225
- "identifier": {
226
- "type": "string",
227
- "mutable": false,
228
- "complexType": {
229
- "original": "string",
230
- "resolved": "string",
231
- "references": {}
232
- },
233
- "required": false,
234
- "optional": false,
235
- "docs": {
236
- "tags": [],
237
- "text": "Identifier is used for the element ID (id is a reserved prop in Stencil.js)\nIf not set, it will be created."
238
- },
239
- "attribute": "identifier",
240
- "reflect": false,
241
- "defaultValue": "createID('mg-input-textarea')"
242
- },
243
- "name": {
244
- "type": "string",
245
- "mutable": false,
246
- "complexType": {
247
- "original": "string",
248
- "resolved": "string",
249
- "references": {}
250
- },
251
- "required": false,
252
- "optional": false,
253
- "docs": {
254
- "tags": [],
255
- "text": "Input name\nIf not set the value equals the identifier"
256
- },
257
- "attribute": "name",
258
- "reflect": false,
259
- "defaultValue": "this.identifier"
260
- },
261
- "label": {
262
- "type": "string",
263
- "mutable": false,
264
- "complexType": {
265
- "original": "string",
266
- "resolved": "string",
267
- "references": {}
268
- },
269
- "required": true,
270
- "optional": false,
271
- "docs": {
272
- "tags": [],
273
- "text": "Input label"
274
- },
275
- "attribute": "label",
276
- "reflect": false
277
- },
278
- "labelOnTop": {
279
- "type": "boolean",
280
- "mutable": false,
281
- "complexType": {
282
- "original": "boolean",
283
- "resolved": "boolean",
284
- "references": {}
285
- },
286
- "required": false,
287
- "optional": false,
288
- "docs": {
289
- "tags": [],
290
- "text": "Define if label is displayed on top"
291
- },
292
- "attribute": "label-on-top",
293
- "reflect": false
294
- },
295
- "labelHide": {
296
- "type": "boolean",
297
- "mutable": false,
298
- "complexType": {
299
- "original": "boolean",
300
- "resolved": "boolean",
301
- "references": {}
302
- },
303
- "required": false,
304
- "optional": false,
305
- "docs": {
306
- "tags": [],
307
- "text": "Define if label is visible"
308
- },
309
- "attribute": "label-hide",
310
- "reflect": false,
311
- "defaultValue": "false"
312
- },
313
- "placeholder": {
314
- "type": "string",
315
- "mutable": false,
316
- "complexType": {
317
- "original": "string",
318
- "resolved": "string",
319
- "references": {}
320
- },
321
- "required": false,
322
- "optional": false,
323
- "docs": {
324
- "tags": [],
325
- "text": "Input placeholder.\nIt should be a word or short phrase that demonstrates the expected type of data, not a replacement for labels or help text."
326
- },
327
- "attribute": "placeholder",
328
- "reflect": false
329
- },
330
- "maxlength": {
331
- "type": "number",
332
- "mutable": false,
333
- "complexType": {
334
- "original": "number",
335
- "resolved": "number",
336
- "references": {}
337
- },
338
- "required": false,
339
- "optional": false,
340
- "docs": {
341
- "tags": [],
342
- "text": "Input max length"
343
- },
344
- "attribute": "maxlength",
345
- "reflect": false,
346
- "defaultValue": "4000"
347
- },
348
- "required": {
349
- "type": "boolean",
350
- "mutable": false,
351
- "complexType": {
352
- "original": "boolean",
353
- "resolved": "boolean",
354
- "references": {}
355
- },
356
- "required": false,
357
- "optional": false,
358
- "docs": {
359
- "tags": [],
360
- "text": "Define if input is required"
361
- },
362
- "attribute": "required",
363
- "reflect": false,
364
- "defaultValue": "false"
365
- },
366
- "readonly": {
367
- "type": "boolean",
368
- "mutable": false,
369
- "complexType": {
370
- "original": "boolean",
371
- "resolved": "boolean",
372
- "references": {}
373
- },
374
- "required": false,
375
- "optional": false,
376
- "docs": {
377
- "tags": [],
378
- "text": "Define if input is readonly"
379
- },
380
- "attribute": "readonly",
381
- "reflect": false,
382
- "defaultValue": "false"
383
- },
384
- "disabled": {
385
- "type": "boolean",
386
- "mutable": false,
387
- "complexType": {
388
- "original": "boolean",
389
- "resolved": "boolean",
390
- "references": {}
391
- },
392
- "required": false,
393
- "optional": false,
394
- "docs": {
395
- "tags": [],
396
- "text": "Define if input is disabled"
397
- },
398
- "attribute": "disabled",
399
- "reflect": false,
400
- "defaultValue": "false"
401
- },
402
- "mgWidth": {
403
- "type": "any",
404
- "mutable": false,
405
- "complexType": {
406
- "original": "Width",
407
- "resolved": "\"full\" | 16 | 2 | 4",
408
- "references": {
409
- "Width": {
410
- "location": "import",
411
- "path": "../MgInput.conf"
193
+ static get originalStyleUrls() {
194
+ return {
195
+ "$": ["mg-input-textarea.scss"]
196
+ };
197
+ }
198
+ static get styleUrls() {
199
+ return {
200
+ "$": ["mg-input-textarea.css"]
201
+ };
202
+ }
203
+ static get properties() {
204
+ return {
205
+ "value": {
206
+ "type": "string",
207
+ "mutable": true,
208
+ "complexType": {
209
+ "original": "string",
210
+ "resolved": "string",
211
+ "references": {}
212
+ },
213
+ "required": false,
214
+ "optional": false,
215
+ "docs": {
216
+ "tags": [],
217
+ "text": "Component value"
218
+ },
219
+ "attribute": "value",
220
+ "reflect": true
221
+ },
222
+ "identifier": {
223
+ "type": "string",
224
+ "mutable": false,
225
+ "complexType": {
226
+ "original": "string",
227
+ "resolved": "string",
228
+ "references": {}
229
+ },
230
+ "required": true,
231
+ "optional": false,
232
+ "docs": {
233
+ "tags": [],
234
+ "text": "Identifier is used for the element ID (id is a reserved prop in Stencil.js)"
235
+ },
236
+ "attribute": "identifier",
237
+ "reflect": false
238
+ },
239
+ "name": {
240
+ "type": "string",
241
+ "mutable": false,
242
+ "complexType": {
243
+ "original": "string",
244
+ "resolved": "string",
245
+ "references": {}
246
+ },
247
+ "required": false,
248
+ "optional": false,
249
+ "docs": {
250
+ "tags": [],
251
+ "text": "Input name\nIf not set the value equals the identifier"
252
+ },
253
+ "attribute": "name",
254
+ "reflect": false,
255
+ "defaultValue": "this.identifier"
256
+ },
257
+ "label": {
258
+ "type": "string",
259
+ "mutable": false,
260
+ "complexType": {
261
+ "original": "string",
262
+ "resolved": "string",
263
+ "references": {}
264
+ },
265
+ "required": true,
266
+ "optional": false,
267
+ "docs": {
268
+ "tags": [],
269
+ "text": "Input label"
270
+ },
271
+ "attribute": "label",
272
+ "reflect": false
273
+ },
274
+ "labelOnTop": {
275
+ "type": "boolean",
276
+ "mutable": false,
277
+ "complexType": {
278
+ "original": "boolean",
279
+ "resolved": "boolean",
280
+ "references": {}
281
+ },
282
+ "required": false,
283
+ "optional": false,
284
+ "docs": {
285
+ "tags": [],
286
+ "text": "Define if label is displayed on top"
287
+ },
288
+ "attribute": "label-on-top",
289
+ "reflect": false
290
+ },
291
+ "labelHide": {
292
+ "type": "boolean",
293
+ "mutable": false,
294
+ "complexType": {
295
+ "original": "boolean",
296
+ "resolved": "boolean",
297
+ "references": {}
298
+ },
299
+ "required": false,
300
+ "optional": false,
301
+ "docs": {
302
+ "tags": [],
303
+ "text": "Define if label is visible"
304
+ },
305
+ "attribute": "label-hide",
306
+ "reflect": false,
307
+ "defaultValue": "false"
308
+ },
309
+ "placeholder": {
310
+ "type": "string",
311
+ "mutable": false,
312
+ "complexType": {
313
+ "original": "string",
314
+ "resolved": "string",
315
+ "references": {}
316
+ },
317
+ "required": false,
318
+ "optional": false,
319
+ "docs": {
320
+ "tags": [],
321
+ "text": "Input placeholder.\nIt should be a word or short phrase that demonstrates the expected type of data, not a replacement for labels or help text."
322
+ },
323
+ "attribute": "placeholder",
324
+ "reflect": false
325
+ },
326
+ "maxlength": {
327
+ "type": "number",
328
+ "mutable": false,
329
+ "complexType": {
330
+ "original": "number",
331
+ "resolved": "number",
332
+ "references": {}
333
+ },
334
+ "required": false,
335
+ "optional": false,
336
+ "docs": {
337
+ "tags": [],
338
+ "text": "Input max length"
339
+ },
340
+ "attribute": "maxlength",
341
+ "reflect": false,
342
+ "defaultValue": "4000"
343
+ },
344
+ "required": {
345
+ "type": "boolean",
346
+ "mutable": false,
347
+ "complexType": {
348
+ "original": "boolean",
349
+ "resolved": "boolean",
350
+ "references": {}
351
+ },
352
+ "required": false,
353
+ "optional": false,
354
+ "docs": {
355
+ "tags": [],
356
+ "text": "Define if input is required"
357
+ },
358
+ "attribute": "required",
359
+ "reflect": false,
360
+ "defaultValue": "false"
361
+ },
362
+ "readonly": {
363
+ "type": "boolean",
364
+ "mutable": false,
365
+ "complexType": {
366
+ "original": "boolean",
367
+ "resolved": "boolean",
368
+ "references": {}
369
+ },
370
+ "required": false,
371
+ "optional": false,
372
+ "docs": {
373
+ "tags": [],
374
+ "text": "Define if input is readonly"
375
+ },
376
+ "attribute": "readonly",
377
+ "reflect": false,
378
+ "defaultValue": "false"
379
+ },
380
+ "disabled": {
381
+ "type": "boolean",
382
+ "mutable": false,
383
+ "complexType": {
384
+ "original": "boolean",
385
+ "resolved": "boolean",
386
+ "references": {}
387
+ },
388
+ "required": false,
389
+ "optional": false,
390
+ "docs": {
391
+ "tags": [],
392
+ "text": "Define if input is disabled"
393
+ },
394
+ "attribute": "disabled",
395
+ "reflect": false,
396
+ "defaultValue": "false"
397
+ },
398
+ "mgWidth": {
399
+ "type": "any",
400
+ "mutable": false,
401
+ "complexType": {
402
+ "original": "Width",
403
+ "resolved": "\"full\" | 16 | 2 | 4",
404
+ "references": {
405
+ "Width": {
406
+ "location": "import",
407
+ "path": "../MgInput.conf"
408
+ }
412
409
  }
413
- }
414
- },
415
- "required": false,
416
- "optional": false,
417
- "docs": {
418
- "tags": [],
419
- "text": "Define input width"
420
- },
421
- "attribute": "mg-width",
422
- "reflect": false,
423
- "defaultValue": "'full'"
424
- },
425
- "pattern": {
426
- "type": "string",
427
- "mutable": false,
428
- "complexType": {
429
- "original": "string",
430
- "resolved": "string",
431
- "references": {}
432
- },
433
- "required": false,
434
- "optional": false,
435
- "docs": {
436
- "tags": [],
437
- "text": "Define input pattern to validate"
438
- },
439
- "attribute": "pattern",
440
- "reflect": false
441
- },
442
- "patternErrorMessage": {
443
- "type": "string",
444
- "mutable": false,
445
- "complexType": {
446
- "original": "string",
447
- "resolved": "string",
448
- "references": {}
449
- },
450
- "required": false,
451
- "optional": false,
452
- "docs": {
453
- "tags": [],
454
- "text": "Define input pattern error message"
455
- },
456
- "attribute": "pattern-error-message",
457
- "reflect": false
458
- },
459
- "rows": {
460
- "type": "number",
461
- "mutable": false,
462
- "complexType": {
463
- "original": "number",
464
- "resolved": "number",
465
- "references": {}
466
- },
467
- "required": false,
468
- "optional": false,
469
- "docs": {
470
- "tags": [],
471
- "text": "Define the number of visible text lines for the control"
472
- },
473
- "attribute": "rows",
474
- "reflect": false,
475
- "defaultValue": "3"
476
- },
477
- "tooltip": {
478
- "type": "string",
479
- "mutable": false,
480
- "complexType": {
481
- "original": "string",
482
- "resolved": "string",
483
- "references": {}
484
- },
485
- "required": false,
486
- "optional": false,
487
- "docs": {
488
- "tags": [],
489
- "text": "Add a tooltip message next to the input"
490
- },
491
- "attribute": "tooltip",
492
- "reflect": false
493
- },
494
- "displayCharacterLeft": {
495
- "type": "boolean",
496
- "mutable": false,
497
- "complexType": {
498
- "original": "boolean",
499
- "resolved": "boolean",
500
- "references": {}
501
- },
502
- "required": false,
503
- "optional": false,
504
- "docs": {
505
- "tags": [],
506
- "text": "Define if component should display character left"
507
- },
508
- "attribute": "display-character-left",
509
- "reflect": false,
510
- "defaultValue": "true"
511
- },
512
- "helpText": {
513
- "type": "string",
514
- "mutable": false,
515
- "complexType": {
516
- "original": "string",
517
- "resolved": "string",
518
- "references": {}
519
- },
520
- "required": false,
521
- "optional": false,
522
- "docs": {
523
- "tags": [],
524
- "text": "Add a help text under the input, usually expected data format and example"
525
- },
526
- "attribute": "help-text",
527
- "reflect": false
528
- },
529
- "valid": {
530
- "type": "boolean",
531
- "mutable": true,
532
- "complexType": {
533
- "original": "boolean",
534
- "resolved": "boolean",
535
- "references": {}
536
- },
537
- "required": false,
538
- "optional": false,
539
- "docs": {
540
- "tags": [],
541
- "text": "Define input valid state"
542
- },
543
- "attribute": "valid",
544
- "reflect": false
545
- },
546
- "invalid": {
547
- "type": "boolean",
548
- "mutable": true,
549
- "complexType": {
550
- "original": "boolean",
551
- "resolved": "boolean",
552
- "references": {}
553
- },
554
- "required": false,
555
- "optional": false,
556
- "docs": {
557
- "tags": [],
558
- "text": "Define input invalid state"
559
- },
560
- "attribute": "invalid",
561
- "reflect": false
562
- },
563
- "resizable": {
564
- "type": "string",
565
- "mutable": false,
566
- "complexType": {
567
- "original": "'none' | 'both' | 'horizontal' | 'vertical'",
568
- "resolved": "\"both\" | \"horizontal\" | \"none\" | \"vertical\"",
569
- "references": {}
570
- },
571
- "required": false,
572
- "optional": false,
573
- "docs": {
574
- "tags": [],
575
- "text": "Define if input is resizable"
576
- },
577
- "attribute": "resizable",
578
- "reflect": false,
579
- "defaultValue": "'none'"
580
- }
581
- }; }
582
- static get states() { return {
583
- "classList": {},
584
- "errorMessage": {}
585
- }; }
586
- static get events() { return [{
587
- "method": "valueChange",
588
- "name": "value-change",
589
- "bubbles": true,
590
- "cancelable": true,
591
- "composed": true,
592
- "docs": {
593
- "tags": [],
594
- "text": "Emited event when value change"
595
- },
596
- "complexType": {
597
- "original": "string",
598
- "resolved": "string",
599
- "references": {}
600
- }
601
- }, {
602
- "method": "inputValid",
603
- "name": "input-valid",
604
- "bubbles": true,
605
- "cancelable": true,
606
- "composed": true,
607
- "docs": {
608
- "tags": [],
609
- "text": "Emited event when checking validity"
610
- },
611
- "complexType": {
612
- "original": "boolean",
613
- "resolved": "boolean",
614
- "references": {}
410
+ },
411
+ "required": false,
412
+ "optional": false,
413
+ "docs": {
414
+ "tags": [],
415
+ "text": "Define input width"
416
+ },
417
+ "attribute": "mg-width",
418
+ "reflect": false,
419
+ "defaultValue": "'full'"
420
+ },
421
+ "pattern": {
422
+ "type": "string",
423
+ "mutable": false,
424
+ "complexType": {
425
+ "original": "string",
426
+ "resolved": "string",
427
+ "references": {}
428
+ },
429
+ "required": false,
430
+ "optional": false,
431
+ "docs": {
432
+ "tags": [],
433
+ "text": "Define input pattern to validate"
434
+ },
435
+ "attribute": "pattern",
436
+ "reflect": false
437
+ },
438
+ "patternErrorMessage": {
439
+ "type": "string",
440
+ "mutable": false,
441
+ "complexType": {
442
+ "original": "string",
443
+ "resolved": "string",
444
+ "references": {}
445
+ },
446
+ "required": false,
447
+ "optional": false,
448
+ "docs": {
449
+ "tags": [],
450
+ "text": "Define input pattern error message"
451
+ },
452
+ "attribute": "pattern-error-message",
453
+ "reflect": false
454
+ },
455
+ "rows": {
456
+ "type": "number",
457
+ "mutable": false,
458
+ "complexType": {
459
+ "original": "number",
460
+ "resolved": "number",
461
+ "references": {}
462
+ },
463
+ "required": false,
464
+ "optional": false,
465
+ "docs": {
466
+ "tags": [],
467
+ "text": "Define the number of visible text lines for the control"
468
+ },
469
+ "attribute": "rows",
470
+ "reflect": false,
471
+ "defaultValue": "3"
472
+ },
473
+ "tooltip": {
474
+ "type": "string",
475
+ "mutable": false,
476
+ "complexType": {
477
+ "original": "string",
478
+ "resolved": "string",
479
+ "references": {}
480
+ },
481
+ "required": false,
482
+ "optional": false,
483
+ "docs": {
484
+ "tags": [],
485
+ "text": "Add a tooltip message next to the input"
486
+ },
487
+ "attribute": "tooltip",
488
+ "reflect": false
489
+ },
490
+ "displayCharacterLeft": {
491
+ "type": "boolean",
492
+ "mutable": false,
493
+ "complexType": {
494
+ "original": "boolean",
495
+ "resolved": "boolean",
496
+ "references": {}
497
+ },
498
+ "required": false,
499
+ "optional": false,
500
+ "docs": {
501
+ "tags": [],
502
+ "text": "Define if component should display character left"
503
+ },
504
+ "attribute": "display-character-left",
505
+ "reflect": false,
506
+ "defaultValue": "true"
507
+ },
508
+ "helpText": {
509
+ "type": "string",
510
+ "mutable": false,
511
+ "complexType": {
512
+ "original": "string",
513
+ "resolved": "string",
514
+ "references": {}
515
+ },
516
+ "required": false,
517
+ "optional": false,
518
+ "docs": {
519
+ "tags": [],
520
+ "text": "Add a help text under the input, usually expected data format and example"
521
+ },
522
+ "attribute": "help-text",
523
+ "reflect": false
524
+ },
525
+ "valid": {
526
+ "type": "boolean",
527
+ "mutable": true,
528
+ "complexType": {
529
+ "original": "boolean",
530
+ "resolved": "boolean",
531
+ "references": {}
532
+ },
533
+ "required": false,
534
+ "optional": false,
535
+ "docs": {
536
+ "tags": [],
537
+ "text": "Define input valid state"
538
+ },
539
+ "attribute": "valid",
540
+ "reflect": false
541
+ },
542
+ "invalid": {
543
+ "type": "boolean",
544
+ "mutable": true,
545
+ "complexType": {
546
+ "original": "boolean",
547
+ "resolved": "boolean",
548
+ "references": {}
549
+ },
550
+ "required": false,
551
+ "optional": false,
552
+ "docs": {
553
+ "tags": [],
554
+ "text": "Define input invalid state"
555
+ },
556
+ "attribute": "invalid",
557
+ "reflect": false
558
+ },
559
+ "resizable": {
560
+ "type": "string",
561
+ "mutable": false,
562
+ "complexType": {
563
+ "original": "'none' | 'both' | 'horizontal' | 'vertical'",
564
+ "resolved": "\"both\" | \"horizontal\" | \"none\" | \"vertical\"",
565
+ "references": {}
566
+ },
567
+ "required": false,
568
+ "optional": false,
569
+ "docs": {
570
+ "tags": [],
571
+ "text": "Define if input is resizable"
572
+ },
573
+ "attribute": "resizable",
574
+ "reflect": false,
575
+ "defaultValue": "'none'"
615
576
  }
616
- }]; }
617
- static get methods() { return {
618
- "displayError": {
619
- "complexType": {
620
- "signature": "() => Promise<void>",
621
- "parameters": [],
622
- "references": {
623
- "Promise": {
624
- "location": "global"
625
- }
577
+ };
578
+ }
579
+ static get states() {
580
+ return {
581
+ "classList": {},
582
+ "errorMessage": {}
583
+ };
584
+ }
585
+ static get events() {
586
+ return [{
587
+ "method": "valueChange",
588
+ "name": "value-change",
589
+ "bubbles": true,
590
+ "cancelable": true,
591
+ "composed": true,
592
+ "docs": {
593
+ "tags": [],
594
+ "text": "Emited event when value change"
626
595
  },
627
- "return": "Promise<void>"
628
- },
629
- "docs": {
630
- "text": "Public method to display errors",
631
- "tags": [{
632
- "name": "returns",
633
- "text": undefined
634
- }]
596
+ "complexType": {
597
+ "original": "string",
598
+ "resolved": "string",
599
+ "references": {}
600
+ }
601
+ }, {
602
+ "method": "inputValid",
603
+ "name": "input-valid",
604
+ "bubbles": true,
605
+ "cancelable": true,
606
+ "composed": true,
607
+ "docs": {
608
+ "tags": [],
609
+ "text": "Emited event when checking validity"
610
+ },
611
+ "complexType": {
612
+ "original": "boolean",
613
+ "resolved": "boolean",
614
+ "references": {}
615
+ }
616
+ }];
617
+ }
618
+ static get methods() {
619
+ return {
620
+ "displayError": {
621
+ "complexType": {
622
+ "signature": "() => Promise<void>",
623
+ "parameters": [],
624
+ "references": {
625
+ "Promise": {
626
+ "location": "global"
627
+ }
628
+ },
629
+ "return": "Promise<void>"
630
+ },
631
+ "docs": {
632
+ "text": "Public method to display errors",
633
+ "tags": [{
634
+ "name": "returns",
635
+ "text": undefined
636
+ }]
637
+ }
635
638
  }
636
- }
637
- }; }
639
+ };
640
+ }
638
641
  static get elementRef() { return "element"; }
639
- static get watchers() { return [{
640
- "propName": "value",
641
- "methodName": "handleValue"
642
- }, {
643
- "propName": "displayCharacterLeft",
644
- "methodName": "validateDisplayCharacterLeft"
645
- }]; }
642
+ static get watchers() {
643
+ return [{
644
+ "propName": "value",
645
+ "methodName": "handleValue"
646
+ }, {
647
+ "propName": "displayCharacterLeft",
648
+ "methodName": "validateDisplayCharacterLeft"
649
+ }];
650
+ }
646
651
  }