@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.
- package/dist/cjs/{index-88560a66.js → index-64cee0c8.js} +248 -81
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/{mg-badge_24.cjs.entry.js → mg-badge_23.cjs.entry.js} +206 -2180
- package/dist/cjs/mg-components.cjs.js +3 -3
- package/dist/cjs/mg-modal.cjs.entry.js +8 -1
- package/dist/cjs/mg-popover.cjs.entry.js +171 -0
- package/dist/cjs/popper-71bf3058.js +1790 -0
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/atoms/mg-badge/mg-badge.js +116 -99
- package/dist/collection/components/atoms/mg-button/mg-button.js +221 -220
- package/dist/collection/components/atoms/mg-character-left/mg-character-left.js +72 -69
- package/dist/collection/components/atoms/mg-icon/doc/mg-icon.stories.js +1 -2
- package/dist/collection/components/atoms/mg-icon/mg-icon.js +102 -92
- package/dist/collection/components/atoms/mg-input-title/mg-input-title.js +83 -67
- package/dist/collection/components/atoms/mg-tag/mg-tag.js +64 -55
- package/dist/collection/components/atoms/mg-tooltip/doc/mg-tooltip.stories.js +3 -6
- package/dist/collection/components/atoms/mg-tooltip/mg-tooltip.js +120 -106
- package/dist/collection/components/molecules/inputs/MgInput.js +8 -17
- package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.js +323 -318
- package/dist/collection/components/molecules/inputs/mg-input-date/doc/mg-input-date.stories.js +3 -2
- package/dist/collection/components/molecules/inputs/mg-input-date/mg-input-date.js +356 -361
- package/dist/collection/components/molecules/inputs/mg-input-numeric/doc/mg-input-numeric.stories.js +1 -2
- package/dist/collection/components/molecules/inputs/mg-input-numeric/mg-input-numeric.js +462 -456
- package/dist/collection/components/molecules/inputs/mg-input-password/mg-input-password.js +347 -340
- package/dist/collection/components/molecules/inputs/mg-input-radio/mg-input-radio.js +348 -343
- package/dist/collection/components/molecules/inputs/mg-input-select/doc/mg-input-select.stories.js +4 -3
- package/dist/collection/components/molecules/inputs/mg-input-select/mg-input-select.js +406 -401
- package/dist/collection/components/molecules/inputs/mg-input-text/doc/mg-input-text.stories.js +12 -15
- package/dist/collection/components/molecules/inputs/mg-input-text/mg-input-text.css +2 -0
- package/dist/collection/components/molecules/inputs/mg-input-text/mg-input-text.js +476 -473
- package/dist/collection/components/molecules/inputs/mg-input-textarea/mg-input-textarea.js +461 -456
- package/dist/collection/components/molecules/inputs/mg-input-toggle/doc/mg-input-toggle.stories.js +2 -8
- package/dist/collection/components/molecules/inputs/mg-input-toggle/mg-input-toggle.css +1 -0
- package/dist/collection/components/molecules/inputs/mg-input-toggle/mg-input-toggle.js +299 -298
- package/dist/collection/components/molecules/mg-details/doc/mg-details.stories.js +1 -3
- package/dist/collection/components/molecules/mg-details/mg-details.js +95 -93
- package/dist/collection/components/molecules/mg-form/doc/mg-form.stories.js +13 -27
- package/dist/collection/components/molecules/mg-form/mg-form.js +175 -166
- package/dist/collection/components/molecules/mg-illustrated-message/doc/mg-illustrated-message.stories.js +2 -6
- package/dist/collection/components/molecules/mg-illustrated-message/mg-illustrated-message.js +37 -37
- package/dist/collection/components/molecules/mg-message/doc/mg-message.stories.js +1 -3
- package/dist/collection/components/molecules/mg-message/mg-message.js +154 -153
- package/dist/collection/components/molecules/mg-modal/doc/mg-modal.stories.js +11 -15
- package/dist/collection/components/molecules/mg-modal/mg-modal.js +147 -134
- package/dist/collection/components/molecules/mg-pagination/mg-pagination.css +5 -6
- package/dist/collection/components/molecules/mg-pagination/mg-pagination.js +112 -117
- package/dist/collection/components/molecules/mg-panel/doc/mg-panel.stories.js +1 -8
- package/dist/collection/components/molecules/mg-panel/mg-panel.css +2 -2
- package/dist/collection/components/molecules/mg-panel/mg-panel.js +192 -189
- package/dist/collection/components/molecules/mg-popover/doc/mg-popover.stories.js +1 -4
- package/dist/collection/components/molecules/mg-popover/mg-popover.js +129 -127
- package/dist/collection/components/molecules/mg-tabs/doc/mg-tabs.stories.js +1 -5
- package/dist/collection/components/molecules/mg-tabs/mg-tabs.css +1 -0
- package/dist/collection/components/molecules/mg-tabs/mg-tabs.js +150 -135
- package/dist/collection/fonts/OpenSans-Bold.ttf +0 -0
- package/dist/collection/locales/en/messages.json +50 -0
- package/dist/collection/locales/fr/messages.json +50 -0
- package/dist/collection/stories/grids.stories.js +1 -44
- package/dist/collection/stories/helpers.stories.js +1 -19
- package/dist/collection/stories/icons.stories.js +1 -4
- package/dist/collection/stories/typography.stories.js +1 -12
- package/dist/collection/variables.css +3 -2
- package/dist/collection/variables.scss +3 -2
- package/dist/components/MgInput.js +6 -3
- package/dist/components/mg-badge2.js +7 -0
- package/dist/components/mg-button2.js +2 -7
- package/dist/components/mg-input-checkbox.js +1 -6
- package/dist/components/mg-input-date.js +10 -27
- package/dist/components/mg-input-numeric.js +1 -6
- package/dist/components/mg-input-password.js +1 -6
- package/dist/components/mg-input-radio.js +1 -6
- package/dist/components/mg-input-select2.js +1 -6
- package/dist/components/mg-input-text2.js +3 -8
- package/dist/components/mg-input-textarea.js +2 -7
- package/dist/components/mg-input-title2.js +9 -0
- package/dist/components/mg-input-toggle.js +2 -7
- package/dist/components/mg-modal.js +7 -0
- package/dist/components/mg-pagination.js +3 -3
- package/dist/components/mg-panel.js +8 -4
- package/dist/components/mg-tabs.js +8 -1
- package/dist/components/mg-tooltip2.js +7 -0
- package/dist/esm/{index-bca81100.js → index-120f47fd.js} +248 -81
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{mg-badge_24.entry.js → mg-badge_23.entry.js} +207 -2180
- package/dist/esm/mg-components.js +3 -3
- package/dist/esm/mg-modal.entry.js +8 -1
- package/dist/esm/mg-popover.entry.js +167 -0
- package/dist/esm/popper-93ecb064.js +1788 -0
- package/dist/mg-components/fonts/OpenSans-Bold.ttf +0 -0
- package/dist/mg-components/locales/en/messages.json +50 -0
- package/dist/mg-components/locales/fr/messages.json +50 -0
- package/dist/mg-components/mg-components.css +1 -1
- package/dist/mg-components/mg-components.esm.js +1 -1
- package/dist/mg-components/p-21991be8.entry.js +1 -0
- package/dist/mg-components/p-36a64f8c.entry.js +1 -0
- package/dist/mg-components/p-4c66f794.js +1 -0
- package/dist/mg-components/{p-b14a3443.js → p-7bc32a2f.js} +0 -0
- package/dist/mg-components/p-b380a0df.entry.js +1 -0
- package/dist/mg-components/variables.css +3 -2
- package/dist/mg-components/variables.scss +3 -2
- package/dist/types/components/atoms/mg-badge/mg-badge.d.ts +1 -0
- package/dist/types/components/atoms/mg-button/mg-button.d.ts +0 -1
- package/dist/types/components/atoms/mg-input-title/mg-input-title.d.ts +1 -0
- package/dist/types/components/atoms/mg-tooltip/mg-tooltip.d.ts +1 -0
- package/dist/types/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.d.ts +0 -1
- package/dist/types/components/molecules/inputs/mg-input-date/mg-input-date.d.ts +1 -10
- package/dist/types/components/molecules/inputs/mg-input-numeric/mg-input-numeric.d.ts +0 -1
- package/dist/types/components/molecules/inputs/mg-input-password/mg-input-password.d.ts +0 -1
- package/dist/types/components/molecules/inputs/mg-input-radio/mg-input-radio.d.ts +0 -1
- package/dist/types/components/molecules/inputs/mg-input-select/mg-input-select.d.ts +0 -1
- package/dist/types/components/molecules/inputs/mg-input-text/mg-input-text.d.ts +0 -1
- package/dist/types/components/molecules/inputs/mg-input-textarea/mg-input-textarea.d.ts +0 -1
- package/dist/types/components/molecules/inputs/mg-input-toggle/mg-input-toggle.d.ts +0 -1
- package/dist/types/components/molecules/mg-modal/mg-modal.d.ts +1 -0
- package/dist/types/components/molecules/mg-panel/mg-panel.d.ts +1 -1
- package/dist/types/components/molecules/mg-tabs/mg-tabs.d.ts +1 -0
- package/dist/types/components.d.ts +29 -29
- package/loader/package.json +1 -0
- package/package.json +8 -8
- package/dist/collection/fonts/Poppins-Bold.ttf +0 -0
- package/dist/mg-components/fonts/Poppins-Bold.ttf +0 -0
- package/dist/mg-components/p-a2883dc7.entry.js +0 -1
- package/dist/mg-components/p-cffe0519.entry.js +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { h } from '@stencil/core';
|
|
2
2
|
import { MgInput } from '../MgInput';
|
|
3
|
-
import {
|
|
3
|
+
import { ClassList } from '../../../../utils/components.utils';
|
|
4
4
|
import { initLocales } from '../../../../locales';
|
|
5
5
|
/**
|
|
6
6
|
* type CheckboxItem validation function
|
|
@@ -16,11 +16,6 @@ export class MgInputCheckbox {
|
|
|
16
16
|
************/
|
|
17
17
|
// HTML selector
|
|
18
18
|
this.inputs = [];
|
|
19
|
-
/**
|
|
20
|
-
* Identifier is used for the element ID (id is a reserved prop in Stencil.js)
|
|
21
|
-
* If not set, it will be created.
|
|
22
|
-
*/
|
|
23
|
-
this.identifier = createID('mg-input-checkbox');
|
|
24
19
|
/**
|
|
25
20
|
* Input name
|
|
26
21
|
* If not set the value equals the identifier
|
|
@@ -157,338 +152,348 @@ export class MgInputCheckbox {
|
|
|
157
152
|
* @returns {HTMLElement} HTML Element
|
|
158
153
|
*/
|
|
159
154
|
render() {
|
|
160
|
-
return (h(MgInput, { identifier: this.identifier, classList: this.classList, ariaDescribedbyIDs: [], label: this.label, labelOnTop: this.labelOnTop, labelHide: this.labelHide, required: this.required, readonly: undefined, mgWidth: undefined, disabled: this.disabled, value: this.value && this.value.toString(), readonlyValue: undefined, tooltip: !this.readonly && this.tooltip, helpText: this.helpText, errorMessage: this.errorMessage, isFieldset: true },
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
})
|
|
165
|
-
.map(input => (h("li", { class: { 'mg-input__input-group': true, 'mg-input__input-group--disabled': this.disabled || input.disabled } },
|
|
166
|
-
h("input", { type: "checkbox", id: input.id, name: this.identifier, value: input.value && input.value.toString(), checked: Boolean(input.value), disabled: this.readonly || this.disabled || input.disabled, required: this.required, indeterminate: input.value === null, onInput: this.handleInput, onBlur: this.handleBlur, ref: el => this.inputs.push(el) }),
|
|
167
|
-
h("label", { htmlFor: input.id }, input.title)))))));
|
|
155
|
+
return (h(MgInput, { identifier: this.identifier, classList: this.classList, ariaDescribedbyIDs: [], label: this.label, labelOnTop: this.labelOnTop, labelHide: this.labelHide, required: this.required, readonly: undefined, mgWidth: undefined, disabled: this.disabled, value: this.value && this.value.toString(), readonlyValue: undefined, tooltip: !this.readonly && this.tooltip, helpText: this.helpText, errorMessage: this.errorMessage, isFieldset: true }, h("ul", { class: { 'mg-input__input-group-container': true, 'mg-input__input-group-container--vertical': this.inputVerticalList } }, this.checkboxItems
|
|
156
|
+
.filter(item => {
|
|
157
|
+
return !this.readonly || item.value;
|
|
158
|
+
})
|
|
159
|
+
.map(input => (h("li", { class: { 'mg-input__input-group': true, 'mg-input__input-group--disabled': this.disabled || input.disabled } }, h("input", { type: "checkbox", id: input.id, name: this.identifier, value: input.value && input.value.toString(), checked: Boolean(input.value), disabled: this.readonly || this.disabled || input.disabled, required: this.required, indeterminate: input.value === null, onInput: this.handleInput, onBlur: this.handleBlur, ref: el => this.inputs.push(el) }), h("label", { htmlFor: input.id }, input.title)))))));
|
|
168
160
|
}
|
|
169
161
|
static get is() { return "mg-input-checkbox"; }
|
|
170
162
|
static get encapsulation() { return "shadow"; }
|
|
171
|
-
static get originalStyleUrls() {
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
"
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
163
|
+
static get originalStyleUrls() {
|
|
164
|
+
return {
|
|
165
|
+
"$": ["mg-input-checkbox.scss"]
|
|
166
|
+
};
|
|
167
|
+
}
|
|
168
|
+
static get styleUrls() {
|
|
169
|
+
return {
|
|
170
|
+
"$": ["mg-input-checkbox.css"]
|
|
171
|
+
};
|
|
172
|
+
}
|
|
173
|
+
static get properties() {
|
|
174
|
+
return {
|
|
175
|
+
"value": {
|
|
176
|
+
"type": "unknown",
|
|
177
|
+
"mutable": true,
|
|
178
|
+
"complexType": {
|
|
179
|
+
"original": "CheckboxValue[]",
|
|
180
|
+
"resolved": "CheckboxValue[]",
|
|
181
|
+
"references": {
|
|
182
|
+
"CheckboxValue": {
|
|
183
|
+
"location": "import",
|
|
184
|
+
"path": "./mg-input-checkbox.conf"
|
|
185
|
+
}
|
|
188
186
|
}
|
|
187
|
+
},
|
|
188
|
+
"required": true,
|
|
189
|
+
"optional": false,
|
|
190
|
+
"docs": {
|
|
191
|
+
"tags": [],
|
|
192
|
+
"text": "Component value\nIf item.value is `null`, checkbox will be indeterminate by default\nRequired"
|
|
189
193
|
}
|
|
190
194
|
},
|
|
191
|
-
"
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
"
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
"optional": false,
|
|
208
|
-
"docs": {
|
|
209
|
-
"tags": [],
|
|
210
|
-
"text": "Identifier is used for the element ID (id is a reserved prop in Stencil.js)\nIf not set, it will be created."
|
|
211
|
-
},
|
|
212
|
-
"attribute": "identifier",
|
|
213
|
-
"reflect": false,
|
|
214
|
-
"defaultValue": "createID('mg-input-checkbox')"
|
|
215
|
-
},
|
|
216
|
-
"name": {
|
|
217
|
-
"type": "string",
|
|
218
|
-
"mutable": false,
|
|
219
|
-
"complexType": {
|
|
220
|
-
"original": "string",
|
|
221
|
-
"resolved": "string",
|
|
222
|
-
"references": {}
|
|
223
|
-
},
|
|
224
|
-
"required": false,
|
|
225
|
-
"optional": false,
|
|
226
|
-
"docs": {
|
|
227
|
-
"tags": [],
|
|
228
|
-
"text": "Input name\nIf not set the value equals the identifier"
|
|
229
|
-
},
|
|
230
|
-
"attribute": "name",
|
|
231
|
-
"reflect": false,
|
|
232
|
-
"defaultValue": "this.identifier"
|
|
233
|
-
},
|
|
234
|
-
"label": {
|
|
235
|
-
"type": "string",
|
|
236
|
-
"mutable": false,
|
|
237
|
-
"complexType": {
|
|
238
|
-
"original": "string",
|
|
239
|
-
"resolved": "string",
|
|
240
|
-
"references": {}
|
|
241
|
-
},
|
|
242
|
-
"required": true,
|
|
243
|
-
"optional": false,
|
|
244
|
-
"docs": {
|
|
245
|
-
"tags": [],
|
|
246
|
-
"text": "Input label"
|
|
247
|
-
},
|
|
248
|
-
"attribute": "label",
|
|
249
|
-
"reflect": false
|
|
250
|
-
},
|
|
251
|
-
"labelOnTop": {
|
|
252
|
-
"type": "boolean",
|
|
253
|
-
"mutable": false,
|
|
254
|
-
"complexType": {
|
|
255
|
-
"original": "boolean",
|
|
256
|
-
"resolved": "boolean",
|
|
257
|
-
"references": {}
|
|
258
|
-
},
|
|
259
|
-
"required": false,
|
|
260
|
-
"optional": false,
|
|
261
|
-
"docs": {
|
|
262
|
-
"tags": [],
|
|
263
|
-
"text": "Define if label is displayed on top"
|
|
264
|
-
},
|
|
265
|
-
"attribute": "label-on-top",
|
|
266
|
-
"reflect": false
|
|
267
|
-
},
|
|
268
|
-
"labelHide": {
|
|
269
|
-
"type": "boolean",
|
|
270
|
-
"mutable": false,
|
|
271
|
-
"complexType": {
|
|
272
|
-
"original": "boolean",
|
|
273
|
-
"resolved": "boolean",
|
|
274
|
-
"references": {}
|
|
275
|
-
},
|
|
276
|
-
"required": false,
|
|
277
|
-
"optional": false,
|
|
278
|
-
"docs": {
|
|
279
|
-
"tags": [],
|
|
280
|
-
"text": "Define if label is visible"
|
|
281
|
-
},
|
|
282
|
-
"attribute": "label-hide",
|
|
283
|
-
"reflect": false,
|
|
284
|
-
"defaultValue": "false"
|
|
285
|
-
},
|
|
286
|
-
"inputVerticalList": {
|
|
287
|
-
"type": "boolean",
|
|
288
|
-
"mutable": false,
|
|
289
|
-
"complexType": {
|
|
290
|
-
"original": "boolean",
|
|
291
|
-
"resolved": "boolean",
|
|
292
|
-
"references": {}
|
|
293
|
-
},
|
|
294
|
-
"required": false,
|
|
295
|
-
"optional": false,
|
|
296
|
-
"docs": {
|
|
297
|
-
"tags": [],
|
|
298
|
-
"text": "Define if inputs are display verticaly"
|
|
299
|
-
},
|
|
300
|
-
"attribute": "input-vertical-list",
|
|
301
|
-
"reflect": false,
|
|
302
|
-
"defaultValue": "false"
|
|
303
|
-
},
|
|
304
|
-
"required": {
|
|
305
|
-
"type": "boolean",
|
|
306
|
-
"mutable": false,
|
|
307
|
-
"complexType": {
|
|
308
|
-
"original": "boolean",
|
|
309
|
-
"resolved": "boolean",
|
|
310
|
-
"references": {}
|
|
311
|
-
},
|
|
312
|
-
"required": false,
|
|
313
|
-
"optional": false,
|
|
314
|
-
"docs": {
|
|
315
|
-
"tags": [],
|
|
316
|
-
"text": "Define if input is required"
|
|
317
|
-
},
|
|
318
|
-
"attribute": "required",
|
|
319
|
-
"reflect": false,
|
|
320
|
-
"defaultValue": "false"
|
|
321
|
-
},
|
|
322
|
-
"readonly": {
|
|
323
|
-
"type": "boolean",
|
|
324
|
-
"mutable": false,
|
|
325
|
-
"complexType": {
|
|
326
|
-
"original": "boolean",
|
|
327
|
-
"resolved": "boolean",
|
|
328
|
-
"references": {}
|
|
329
|
-
},
|
|
330
|
-
"required": false,
|
|
331
|
-
"optional": false,
|
|
332
|
-
"docs": {
|
|
333
|
-
"tags": [],
|
|
334
|
-
"text": "Define if input is readonly"
|
|
335
|
-
},
|
|
336
|
-
"attribute": "readonly",
|
|
337
|
-
"reflect": false,
|
|
338
|
-
"defaultValue": "false"
|
|
339
|
-
},
|
|
340
|
-
"disabled": {
|
|
341
|
-
"type": "boolean",
|
|
342
|
-
"mutable": false,
|
|
343
|
-
"complexType": {
|
|
344
|
-
"original": "boolean",
|
|
345
|
-
"resolved": "boolean",
|
|
346
|
-
"references": {}
|
|
195
|
+
"identifier": {
|
|
196
|
+
"type": "string",
|
|
197
|
+
"mutable": false,
|
|
198
|
+
"complexType": {
|
|
199
|
+
"original": "string",
|
|
200
|
+
"resolved": "string",
|
|
201
|
+
"references": {}
|
|
202
|
+
},
|
|
203
|
+
"required": true,
|
|
204
|
+
"optional": false,
|
|
205
|
+
"docs": {
|
|
206
|
+
"tags": [],
|
|
207
|
+
"text": "Identifier is used for the element ID (id is a reserved prop in Stencil.js)"
|
|
208
|
+
},
|
|
209
|
+
"attribute": "identifier",
|
|
210
|
+
"reflect": false
|
|
347
211
|
},
|
|
348
|
-
"
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
"
|
|
352
|
-
|
|
212
|
+
"name": {
|
|
213
|
+
"type": "string",
|
|
214
|
+
"mutable": false,
|
|
215
|
+
"complexType": {
|
|
216
|
+
"original": "string",
|
|
217
|
+
"resolved": "string",
|
|
218
|
+
"references": {}
|
|
219
|
+
},
|
|
220
|
+
"required": false,
|
|
221
|
+
"optional": false,
|
|
222
|
+
"docs": {
|
|
223
|
+
"tags": [],
|
|
224
|
+
"text": "Input name\nIf not set the value equals the identifier"
|
|
225
|
+
},
|
|
226
|
+
"attribute": "name",
|
|
227
|
+
"reflect": false,
|
|
228
|
+
"defaultValue": "this.identifier"
|
|
353
229
|
},
|
|
354
|
-
"
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
"
|
|
363
|
-
"
|
|
364
|
-
"
|
|
230
|
+
"label": {
|
|
231
|
+
"type": "string",
|
|
232
|
+
"mutable": false,
|
|
233
|
+
"complexType": {
|
|
234
|
+
"original": "string",
|
|
235
|
+
"resolved": "string",
|
|
236
|
+
"references": {}
|
|
237
|
+
},
|
|
238
|
+
"required": true,
|
|
239
|
+
"optional": false,
|
|
240
|
+
"docs": {
|
|
241
|
+
"tags": [],
|
|
242
|
+
"text": "Input label"
|
|
243
|
+
},
|
|
244
|
+
"attribute": "label",
|
|
245
|
+
"reflect": false
|
|
365
246
|
},
|
|
366
|
-
"
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
"
|
|
370
|
-
|
|
247
|
+
"labelOnTop": {
|
|
248
|
+
"type": "boolean",
|
|
249
|
+
"mutable": false,
|
|
250
|
+
"complexType": {
|
|
251
|
+
"original": "boolean",
|
|
252
|
+
"resolved": "boolean",
|
|
253
|
+
"references": {}
|
|
254
|
+
},
|
|
255
|
+
"required": false,
|
|
256
|
+
"optional": false,
|
|
257
|
+
"docs": {
|
|
258
|
+
"tags": [],
|
|
259
|
+
"text": "Define if label is displayed on top"
|
|
260
|
+
},
|
|
261
|
+
"attribute": "label-on-top",
|
|
262
|
+
"reflect": false
|
|
371
263
|
},
|
|
372
|
-
"
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
"
|
|
381
|
-
"
|
|
264
|
+
"labelHide": {
|
|
265
|
+
"type": "boolean",
|
|
266
|
+
"mutable": false,
|
|
267
|
+
"complexType": {
|
|
268
|
+
"original": "boolean",
|
|
269
|
+
"resolved": "boolean",
|
|
270
|
+
"references": {}
|
|
271
|
+
},
|
|
272
|
+
"required": false,
|
|
273
|
+
"optional": false,
|
|
274
|
+
"docs": {
|
|
275
|
+
"tags": [],
|
|
276
|
+
"text": "Define if label is visible"
|
|
277
|
+
},
|
|
278
|
+
"attribute": "label-hide",
|
|
279
|
+
"reflect": false,
|
|
280
|
+
"defaultValue": "false"
|
|
382
281
|
},
|
|
383
|
-
"
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
"
|
|
387
|
-
|
|
282
|
+
"inputVerticalList": {
|
|
283
|
+
"type": "boolean",
|
|
284
|
+
"mutable": false,
|
|
285
|
+
"complexType": {
|
|
286
|
+
"original": "boolean",
|
|
287
|
+
"resolved": "boolean",
|
|
288
|
+
"references": {}
|
|
289
|
+
},
|
|
290
|
+
"required": false,
|
|
291
|
+
"optional": false,
|
|
292
|
+
"docs": {
|
|
293
|
+
"tags": [],
|
|
294
|
+
"text": "Define if inputs are display verticaly"
|
|
295
|
+
},
|
|
296
|
+
"attribute": "input-vertical-list",
|
|
297
|
+
"reflect": false,
|
|
298
|
+
"defaultValue": "false"
|
|
388
299
|
},
|
|
389
|
-
"
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
"
|
|
398
|
-
"
|
|
300
|
+
"required": {
|
|
301
|
+
"type": "boolean",
|
|
302
|
+
"mutable": false,
|
|
303
|
+
"complexType": {
|
|
304
|
+
"original": "boolean",
|
|
305
|
+
"resolved": "boolean",
|
|
306
|
+
"references": {}
|
|
307
|
+
},
|
|
308
|
+
"required": false,
|
|
309
|
+
"optional": false,
|
|
310
|
+
"docs": {
|
|
311
|
+
"tags": [],
|
|
312
|
+
"text": "Define if input is required"
|
|
313
|
+
},
|
|
314
|
+
"attribute": "required",
|
|
315
|
+
"reflect": false,
|
|
316
|
+
"defaultValue": "false"
|
|
399
317
|
},
|
|
400
|
-
"
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
"
|
|
404
|
-
|
|
318
|
+
"readonly": {
|
|
319
|
+
"type": "boolean",
|
|
320
|
+
"mutable": false,
|
|
321
|
+
"complexType": {
|
|
322
|
+
"original": "boolean",
|
|
323
|
+
"resolved": "boolean",
|
|
324
|
+
"references": {}
|
|
325
|
+
},
|
|
326
|
+
"required": false,
|
|
327
|
+
"optional": false,
|
|
328
|
+
"docs": {
|
|
329
|
+
"tags": [],
|
|
330
|
+
"text": "Define if input is readonly"
|
|
331
|
+
},
|
|
332
|
+
"attribute": "readonly",
|
|
333
|
+
"reflect": false,
|
|
334
|
+
"defaultValue": "false"
|
|
405
335
|
},
|
|
406
|
-
"
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
"
|
|
415
|
-
"
|
|
336
|
+
"disabled": {
|
|
337
|
+
"type": "boolean",
|
|
338
|
+
"mutable": false,
|
|
339
|
+
"complexType": {
|
|
340
|
+
"original": "boolean",
|
|
341
|
+
"resolved": "boolean",
|
|
342
|
+
"references": {}
|
|
343
|
+
},
|
|
344
|
+
"required": false,
|
|
345
|
+
"optional": false,
|
|
346
|
+
"docs": {
|
|
347
|
+
"tags": [],
|
|
348
|
+
"text": "Define if input is disabled"
|
|
349
|
+
},
|
|
350
|
+
"attribute": "disabled",
|
|
351
|
+
"reflect": false,
|
|
352
|
+
"defaultValue": "false"
|
|
416
353
|
},
|
|
417
|
-
"
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
"
|
|
421
|
-
|
|
354
|
+
"tooltip": {
|
|
355
|
+
"type": "string",
|
|
356
|
+
"mutable": false,
|
|
357
|
+
"complexType": {
|
|
358
|
+
"original": "string",
|
|
359
|
+
"resolved": "string",
|
|
360
|
+
"references": {}
|
|
361
|
+
},
|
|
362
|
+
"required": false,
|
|
363
|
+
"optional": false,
|
|
364
|
+
"docs": {
|
|
365
|
+
"tags": [],
|
|
366
|
+
"text": "Add a tooltip message next to the input"
|
|
367
|
+
},
|
|
368
|
+
"attribute": "tooltip",
|
|
369
|
+
"reflect": false
|
|
422
370
|
},
|
|
423
|
-
"
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
"tags": [],
|
|
440
|
-
"text": "Emitted event when value change"
|
|
371
|
+
"helpText": {
|
|
372
|
+
"type": "string",
|
|
373
|
+
"mutable": false,
|
|
374
|
+
"complexType": {
|
|
375
|
+
"original": "string",
|
|
376
|
+
"resolved": "string",
|
|
377
|
+
"references": {}
|
|
378
|
+
},
|
|
379
|
+
"required": false,
|
|
380
|
+
"optional": false,
|
|
381
|
+
"docs": {
|
|
382
|
+
"tags": [],
|
|
383
|
+
"text": "Add a help text under the input, usually expected data format and example"
|
|
384
|
+
},
|
|
385
|
+
"attribute": "help-text",
|
|
386
|
+
"reflect": false
|
|
441
387
|
},
|
|
442
|
-
"
|
|
443
|
-
"
|
|
444
|
-
"
|
|
445
|
-
"
|
|
446
|
-
"
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
"docs": {
|
|
459
|
-
"tags": [],
|
|
460
|
-
"text": "Emited event when checking validity"
|
|
388
|
+
"valid": {
|
|
389
|
+
"type": "boolean",
|
|
390
|
+
"mutable": true,
|
|
391
|
+
"complexType": {
|
|
392
|
+
"original": "boolean",
|
|
393
|
+
"resolved": "boolean",
|
|
394
|
+
"references": {}
|
|
395
|
+
},
|
|
396
|
+
"required": false,
|
|
397
|
+
"optional": false,
|
|
398
|
+
"docs": {
|
|
399
|
+
"tags": [],
|
|
400
|
+
"text": "Define input valid state"
|
|
401
|
+
},
|
|
402
|
+
"attribute": "valid",
|
|
403
|
+
"reflect": false
|
|
461
404
|
},
|
|
462
|
-
"
|
|
463
|
-
"
|
|
464
|
-
"
|
|
465
|
-
"
|
|
405
|
+
"invalid": {
|
|
406
|
+
"type": "boolean",
|
|
407
|
+
"mutable": true,
|
|
408
|
+
"complexType": {
|
|
409
|
+
"original": "boolean",
|
|
410
|
+
"resolved": "boolean",
|
|
411
|
+
"references": {}
|
|
412
|
+
},
|
|
413
|
+
"required": false,
|
|
414
|
+
"optional": false,
|
|
415
|
+
"docs": {
|
|
416
|
+
"tags": [],
|
|
417
|
+
"text": "Define input invalid state"
|
|
418
|
+
},
|
|
419
|
+
"attribute": "invalid",
|
|
420
|
+
"reflect": false
|
|
466
421
|
}
|
|
467
|
-
}
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
422
|
+
};
|
|
423
|
+
}
|
|
424
|
+
static get states() {
|
|
425
|
+
return {
|
|
426
|
+
"classList": {},
|
|
427
|
+
"errorMessage": {},
|
|
428
|
+
"checkboxItems": {}
|
|
429
|
+
};
|
|
430
|
+
}
|
|
431
|
+
static get events() {
|
|
432
|
+
return [{
|
|
433
|
+
"method": "valueChange",
|
|
434
|
+
"name": "value-change",
|
|
435
|
+
"bubbles": true,
|
|
436
|
+
"cancelable": true,
|
|
437
|
+
"composed": true,
|
|
438
|
+
"docs": {
|
|
439
|
+
"tags": [],
|
|
440
|
+
"text": "Emitted event when value change"
|
|
441
|
+
},
|
|
442
|
+
"complexType": {
|
|
443
|
+
"original": "CheckboxValue[]",
|
|
444
|
+
"resolved": "CheckboxValue[]",
|
|
445
|
+
"references": {
|
|
446
|
+
"CheckboxValue": {
|
|
447
|
+
"location": "import",
|
|
448
|
+
"path": "./mg-input-checkbox.conf"
|
|
449
|
+
}
|
|
476
450
|
}
|
|
451
|
+
}
|
|
452
|
+
}, {
|
|
453
|
+
"method": "inputValid",
|
|
454
|
+
"name": "input-valid",
|
|
455
|
+
"bubbles": true,
|
|
456
|
+
"cancelable": true,
|
|
457
|
+
"composed": true,
|
|
458
|
+
"docs": {
|
|
459
|
+
"tags": [],
|
|
460
|
+
"text": "Emited event when checking validity"
|
|
477
461
|
},
|
|
478
|
-
"
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
462
|
+
"complexType": {
|
|
463
|
+
"original": "boolean",
|
|
464
|
+
"resolved": "boolean",
|
|
465
|
+
"references": {}
|
|
466
|
+
}
|
|
467
|
+
}];
|
|
468
|
+
}
|
|
469
|
+
static get methods() {
|
|
470
|
+
return {
|
|
471
|
+
"displayError": {
|
|
472
|
+
"complexType": {
|
|
473
|
+
"signature": "() => Promise<void>",
|
|
474
|
+
"parameters": [],
|
|
475
|
+
"references": {
|
|
476
|
+
"Promise": {
|
|
477
|
+
"location": "global"
|
|
478
|
+
}
|
|
479
|
+
},
|
|
480
|
+
"return": "Promise<void>"
|
|
481
|
+
},
|
|
482
|
+
"docs": {
|
|
483
|
+
"text": "Public method to display errors",
|
|
484
|
+
"tags": [{
|
|
485
|
+
"name": "returns",
|
|
486
|
+
"text": undefined
|
|
487
|
+
}]
|
|
488
|
+
}
|
|
486
489
|
}
|
|
487
|
-
}
|
|
488
|
-
}
|
|
490
|
+
};
|
|
491
|
+
}
|
|
489
492
|
static get elementRef() { return "element"; }
|
|
490
|
-
static get watchers() {
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
493
|
+
static get watchers() {
|
|
494
|
+
return [{
|
|
495
|
+
"propName": "value",
|
|
496
|
+
"methodName": "validateValue"
|
|
497
|
+
}];
|
|
498
|
+
}
|
|
494
499
|
}
|