@mgdis/mg-components 6.15.0 → 6.17.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/events.utils-D5SAtkpQ.js +25 -0
- package/dist/cjs/{index-BGxkpQwi.js → index-DCZEYvlH.js} +48 -29
- package/dist/cjs/{index-iUZvsp-F.js → index-TUElr4Wv.js} +18 -30
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/mg-action-more_37.cjs.entry.js +100 -365
- package/dist/cjs/mg-alert.cjs.entry.js +2 -2
- package/dist/cjs/mg-components.cjs.js +3 -3
- package/dist/cjs/mg-input-combobox.cjs.entry.js +78 -140
- package/dist/cjs/mg-input-rich-text-editor.cjs.entry.js +4 -4
- package/dist/cjs/{mg-input.conf-CwjEAih3.js → mg-input.conf-WTsvDfpC.js} +0 -7
- package/dist/cjs/mg-loader.cjs.entry.js +2 -2
- package/dist/cjs/mg-progress.cjs.entry.js +1 -1
- package/dist/collection/collection-manifest.json +1 -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 +0 -6
- package/dist/collection/components/molecules/inputs/mg-input/mg-input.js +37 -108
- package/dist/collection/components/molecules/inputs/mg-input-checkbox/MgInputCheckboxList.js +1 -2
- package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox-paginated/mg-input-checkbox-paginated.js +6 -8
- package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.js +42 -99
- package/dist/collection/components/molecules/inputs/mg-input-combobox/mg-input-combobox.js +82 -167
- package/dist/collection/components/molecules/inputs/mg-input-date/mg-input-date.js +27 -44
- package/dist/collection/components/molecules/inputs/mg-input-numeric/mg-input-numeric.js +40 -55
- package/dist/collection/components/molecules/inputs/mg-input-password/mg-input-password.js +26 -26
- package/dist/collection/components/molecules/inputs/mg-input-radio/mg-input-radio.js +32 -86
- package/dist/collection/components/molecules/inputs/mg-input-rich-text-editor/mg-input-rich-text-editor.js +26 -27
- package/dist/collection/components/molecules/inputs/mg-input-select/mg-input-select.js +33 -82
- package/dist/collection/components/molecules/inputs/mg-input-text/mg-input-text.js +33 -34
- package/dist/collection/components/molecules/inputs/mg-input-textarea/mg-input-textarea.js +32 -32
- package/dist/collection/components/molecules/inputs/mg-input-toggle/mg-input-toggle.js +27 -161
- 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 +4 -5
- 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 +1 -4
- package/dist/collection/components/molecules/mg-alert/mg-alert.js +4 -4
- package/dist/collection/components/molecules/mg-details/mg-details.js +6 -6
- package/dist/collection/components/molecules/mg-form/mg-form.js +13 -13
- package/dist/collection/components/molecules/mg-illustrated-message/mg-illustrated-message.js +2 -2
- package/dist/collection/components/molecules/mg-loader/mg-loader.js +3 -3
- package/dist/collection/components/molecules/mg-message/mg-message.js +2 -2
- package/dist/collection/components/molecules/mg-modal/mg-modal.js +6 -6
- package/dist/collection/components/molecules/mg-pagination/mg-pagination.js +7 -8
- package/dist/collection/components/molecules/mg-panel/mg-panel.js +13 -13
- package/dist/collection/components/molecules/mg-popover/mg-popover-content/mg-popover-content.js +1 -1
- package/dist/collection/components/molecules/mg-popover/mg-popover.js +6 -6
- package/dist/collection/components/molecules/mg-progress/mg-progress.js +6 -6
- package/dist/collection/components/molecules/mg-skip-links/mg-skip-links.js +0 -1
- package/dist/collection/components/molecules/mg-table/mg-table.js +2 -3
- package/dist/collection/components/molecules/mg-tabs/mg-tabs.js +6 -7
- package/dist/collection/locales/en/messages.json +8 -13
- package/dist/collection/locales/fr/messages.json +8 -13
- package/dist/components/index2.js +1 -1
- package/dist/components/index3.js +18 -30
- package/dist/components/mg-action-more.js +4 -2
- package/dist/components/mg-alert.js +4 -2
- 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 +99 -1
- package/dist/components/mg-divider2.js +4 -2
- package/dist/components/mg-form.js +4 -2
- package/dist/components/mg-icon2.js +29 -21
- package/dist/components/mg-illustrated-message.js +4 -2
- package/dist/components/mg-input-checkbox-paginated2.js +6 -7
- package/dist/components/mg-input-checkbox.js +23 -65
- package/dist/components/mg-input-combobox.js +64 -132
- package/dist/components/mg-input-date.js +8 -29
- package/dist/components/mg-input-numeric.js +8 -27
- package/dist/components/mg-input-password.js +6 -10
- package/dist/components/mg-input-radio.js +16 -55
- package/dist/components/mg-input-rich-text-editor.js +6 -10
- package/dist/components/mg-input-select2.js +12 -46
- package/dist/components/mg-input-text2.js +6 -10
- package/dist/components/mg-input-textarea.js +6 -10
- package/dist/components/mg-input-title2.js +4 -2
- package/dist/components/mg-input-toggle.js +15 -98
- package/dist/components/mg-input2.js +26 -101
- package/dist/components/mg-item-more2.js +8 -4
- package/dist/components/mg-loader2.js +4 -2
- package/dist/components/mg-menu-item2.js +4 -2
- package/dist/components/mg-message2.js +4 -2
- package/dist/components/mg-modal.js +4 -2
- package/dist/components/mg-pagination.js +6 -10
- package/dist/components/mg-panel.js +11 -15
- package/dist/components/mg-popover-content2.js +4 -2
- package/dist/components/mg-popover2.js +4 -2
- package/dist/components/mg-progress.js +4 -2
- package/dist/components/mg-skip-links.js +4 -2
- package/dist/components/mg-table.js +4 -2
- package/dist/components/mg-tabs2.js +4 -2
- 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/events.utils-yMGqY8YG.js +23 -0
- package/dist/esm/{index-CKB-AnCZ.js → index-CNX6lq0x.js} +18 -30
- package/dist/esm/{index-DhAOnZJn.js → index-T6kOJXP1.js} +48 -29
- package/dist/esm/loader.js +3 -3
- package/dist/esm/mg-action-more_37.entry.js +96 -361
- package/dist/esm/mg-alert.entry.js +2 -2
- package/dist/esm/mg-components.js +4 -4
- package/dist/esm/mg-input-combobox.entry.js +59 -121
- package/dist/esm/mg-input-rich-text-editor.entry.js +4 -4
- package/dist/esm/{mg-input.conf-BAUTlb6r.js → mg-input.conf-CNgv8hc5.js} +1 -7
- package/dist/esm/mg-loader.entry.js +2 -2
- package/dist/esm/mg-progress.entry.js +1 -1
- package/dist/mg-components/locales/en/messages.json +8 -13
- package/dist/mg-components/locales/fr/messages.json +8 -13
- package/dist/mg-components/mg-components.esm.js +1 -1
- package/dist/mg-components/{p-47e19783.entry.js → p-0e6b40d6.entry.js} +1 -1
- package/dist/mg-components/{p-67af6274.entry.js → p-397bf67b.entry.js} +1 -1
- package/dist/mg-components/{p-a0fa44cf.entry.js → p-5dc3a1fb.entry.js} +1 -1
- package/dist/mg-components/p-8a69175b.entry.js +1 -0
- package/dist/mg-components/p-CNX6lq0x.js +1 -0
- package/dist/mg-components/p-CNgv8hc5.js +1 -0
- package/dist/mg-components/p-T6kOJXP1.js +2 -0
- package/dist/mg-components/{p-420daa1e.entry.js → p-c5da335e.entry.js} +1 -1
- package/dist/mg-components/p-d84d87ea.entry.js +1 -0
- package/dist/mg-components/p-yMGqY8YG.js +1 -0
- 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 +0 -13
- package/dist/types/components/molecules/inputs/mg-input/mg-input.d.ts +4 -15
- package/dist/types/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.d.ts +3 -21
- package/dist/types/components/molecules/inputs/mg-input-combobox/mg-input-combobox.d.ts +2 -16
- package/dist/types/components/molecules/inputs/mg-input-radio/mg-input-radio.d.ts +0 -18
- package/dist/types/components/molecules/inputs/mg-input-select/mg-input-select.d.ts +0 -18
- package/dist/types/components/molecules/inputs/mg-input-toggle/mg-input-toggle.d.ts +4 -40
- package/dist/types/components.d.ts +7 -63
- 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 +23 -304
- package/ide/vscode/html-custom-data.json +18 -113
- package/package.json +22 -22
- package/dist/cjs/mg-input.utils-D-ASK4ua.js +0 -49
- package/dist/collection/components/molecules/inputs/mg-input/mg-input.utils.js +0 -21
- package/dist/components/mg-details2.js +0 -99
- package/dist/components/mg-input.utils.js +0 -24
- package/dist/esm/mg-input.utils-BYI03zSi.js +0 -46
- package/dist/mg-components/p-31856cff.entry.js +0 -1
- package/dist/mg-components/p-698dfc6c.entry.js +0 -1
- package/dist/mg-components/p-BAUTlb6r.js +0 -1
- package/dist/mg-components/p-CKB-AnCZ.js +0 -1
- package/dist/mg-components/p-DhAOnZJn.js +0 -2
- package/dist/mg-components/p-PuX-pdL4.js +0 -1
- package/dist/types/components/molecules/inputs/mg-input/mg-input.utils.d.ts +0 -8
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
import { ClassList, allItemsAreString, isValidString, toString } from "@mgdis/core-ui-helpers/dist/utils";
|
|
3
3
|
import { classDisabled, classReadonly } from "../mg-input/mg-input.conf";
|
|
4
|
-
import { initLocales } from "../../../../locales";
|
|
5
|
-
import { defineErrorMessage } from "../mg-input/mg-input.utils";
|
|
6
4
|
/**
|
|
7
5
|
* type Option validation function
|
|
8
6
|
* @param option - radio option
|
|
@@ -60,29 +58,6 @@ export class MgInputToggle {
|
|
|
60
58
|
* Checked internal value
|
|
61
59
|
*/
|
|
62
60
|
this.checked = false;
|
|
63
|
-
/**
|
|
64
|
-
* Check if input is valid
|
|
65
|
-
*/
|
|
66
|
-
this.checkValidity = () => {
|
|
67
|
-
this.setValidity(this.readonly || this.disabled || this.hasInputItems());
|
|
68
|
-
};
|
|
69
|
-
/**
|
|
70
|
-
* Reset error message
|
|
71
|
-
*/
|
|
72
|
-
this.resetErrorMessage = () => {
|
|
73
|
-
this.checkValidity();
|
|
74
|
-
this.errorMessage = undefined;
|
|
75
|
-
};
|
|
76
|
-
/**
|
|
77
|
-
* Test if component has items
|
|
78
|
-
* @returns truthy if component has items
|
|
79
|
-
*/
|
|
80
|
-
this.hasInputItems = () => { var _a; return ((_a = this.items) === null || _a === void 0 ? void 0 : _a.length) > 0; };
|
|
81
|
-
/**
|
|
82
|
-
* Test if component has no value error message displayed
|
|
83
|
-
* @returns truthy if compent display no value error message
|
|
84
|
-
*/
|
|
85
|
-
this.hasNoValueErrorMessageDisplay = () => this.errorMessage === this.messages.errors.noValue;
|
|
86
61
|
/**
|
|
87
62
|
* Set input error message
|
|
88
63
|
* @param errorMessage - errorMessage override
|
|
@@ -91,13 +66,8 @@ export class MgInputToggle {
|
|
|
91
66
|
// Set error message
|
|
92
67
|
this.errorMessage = undefined;
|
|
93
68
|
// Does have a custom error message
|
|
94
|
-
if (!this.valid) {
|
|
95
|
-
|
|
96
|
-
this.errorMessage = errorMessage;
|
|
97
|
-
}
|
|
98
|
-
else if (!this.hasInputItems()) {
|
|
99
|
-
this.errorMessage = this.messages.errors.noValue;
|
|
100
|
-
}
|
|
69
|
+
if (!this.valid && errorMessage !== undefined) {
|
|
70
|
+
this.errorMessage = errorMessage;
|
|
101
71
|
}
|
|
102
72
|
};
|
|
103
73
|
/**
|
|
@@ -112,7 +82,7 @@ export class MgInputToggle {
|
|
|
112
82
|
this.validateSlots = () => {
|
|
113
83
|
const slots = Array.from(this.element.children);
|
|
114
84
|
if (slots.length !== 2) {
|
|
115
|
-
|
|
85
|
+
throw new Error('<mg-input-toggle> 2 slots are required.');
|
|
116
86
|
}
|
|
117
87
|
else if (!this.isIcon) {
|
|
118
88
|
// Due to text-overflow set to ellipsis
|
|
@@ -143,28 +113,16 @@ export class MgInputToggle {
|
|
|
143
113
|
this.valueChange.emit(newValue);
|
|
144
114
|
}
|
|
145
115
|
validateItems(newValue) {
|
|
146
|
-
if (
|
|
147
|
-
this.options = [];
|
|
148
|
-
this.displayError();
|
|
149
|
-
}
|
|
150
|
-
else if (Array.isArray(newValue) && this.items.length !== 2) {
|
|
116
|
+
if (typeof newValue === 'object' && this.items.length !== 2) {
|
|
151
117
|
throw new Error(`<mg-input-toggle> prop "items" require 2 items. Passed value: ${toString(newValue)}.`);
|
|
152
118
|
}
|
|
153
119
|
// String array
|
|
154
120
|
else if (allItemsAreString(newValue)) {
|
|
155
121
|
this.options = newValue.map(item => ({ title: item, value: item }));
|
|
156
|
-
// force to reset error when noValueError is displaied
|
|
157
|
-
if (this.invalid && this.hasNoValueErrorMessageDisplay()) {
|
|
158
|
-
this.resetErrorMessage();
|
|
159
|
-
}
|
|
160
122
|
}
|
|
161
123
|
// Object array
|
|
162
124
|
else if (Array.isArray(newValue) && newValue.every(isOption)) {
|
|
163
125
|
this.options = newValue;
|
|
164
|
-
// force to reset error when noValueError is displaied
|
|
165
|
-
if (this.invalid && this.hasNoValueErrorMessageDisplay()) {
|
|
166
|
-
this.resetErrorMessage();
|
|
167
|
-
}
|
|
168
126
|
}
|
|
169
127
|
else {
|
|
170
128
|
throw new Error(`<mg-input-toggle> prop "items" is required and all items must be the same type: ToggleValue. Passed value: ${toString(newValue)}.`);
|
|
@@ -226,7 +184,8 @@ export class MgInputToggle {
|
|
|
226
184
|
throw new Error('<mg-input-toggle> method "setError()" param "errorMessage" must be a string.');
|
|
227
185
|
}
|
|
228
186
|
else {
|
|
229
|
-
this.
|
|
187
|
+
this.valid = valid;
|
|
188
|
+
this.inputValid.emit(valid);
|
|
230
189
|
this.setErrorMessage(valid ? undefined : errorMessage);
|
|
231
190
|
}
|
|
232
191
|
}
|
|
@@ -245,43 +204,12 @@ export class MgInputToggle {
|
|
|
245
204
|
// - Keep everything in sync both inside and outside the component
|
|
246
205
|
return new Promise(resolve => {
|
|
247
206
|
requestAnimationFrame(() => {
|
|
248
|
-
this.
|
|
207
|
+
this.errorMessage = undefined;
|
|
249
208
|
resolve();
|
|
250
209
|
});
|
|
251
210
|
});
|
|
252
211
|
}
|
|
253
212
|
}
|
|
254
|
-
/**
|
|
255
|
-
* Display input error if it exists.
|
|
256
|
-
*/
|
|
257
|
-
displayError() {
|
|
258
|
-
// Use `Promise` as requested for stencil method
|
|
259
|
-
// Use `requestAnimationFrame` to ensure:
|
|
260
|
-
// - DOM is fully updated before validation
|
|
261
|
-
// - Async operations are completed
|
|
262
|
-
// - No timing issues with Stencil's render cycle
|
|
263
|
-
// - Keep everything in sync both inside and outside the component
|
|
264
|
-
return new Promise(resolve => {
|
|
265
|
-
requestAnimationFrame(() => {
|
|
266
|
-
this.checkValidity();
|
|
267
|
-
this.setErrorMessage();
|
|
268
|
-
resolve();
|
|
269
|
-
});
|
|
270
|
-
});
|
|
271
|
-
}
|
|
272
|
-
/**
|
|
273
|
-
* Method to set validity values
|
|
274
|
-
* @param newValue - valid new value
|
|
275
|
-
*/
|
|
276
|
-
setValidity(newValue) {
|
|
277
|
-
const oldValidValue = this.valid;
|
|
278
|
-
this.valid = newValue;
|
|
279
|
-
this.invalid = !this.valid;
|
|
280
|
-
// We need to send valid event even if it is the same value
|
|
281
|
-
if (this.valid !== oldValidValue) {
|
|
282
|
-
this.inputValid.emit(this.valid);
|
|
283
|
-
}
|
|
284
|
-
}
|
|
285
213
|
/**
|
|
286
214
|
* set checked state
|
|
287
215
|
*/
|
|
@@ -300,9 +228,6 @@ export class MgInputToggle {
|
|
|
300
228
|
const selectedValue = this.value === this.options[optionTrueValueIndex].value;
|
|
301
229
|
this.checked = optionTrueValueIndex === 0 ? !selectedValue : selectedValue;
|
|
302
230
|
}
|
|
303
|
-
else if (Array.isArray(this.options) && this.options.length === 0) {
|
|
304
|
-
return;
|
|
305
|
-
}
|
|
306
231
|
else {
|
|
307
232
|
this.checked = this.value === this.options[1].value;
|
|
308
233
|
}
|
|
@@ -314,8 +239,6 @@ export class MgInputToggle {
|
|
|
314
239
|
* Check if component props are well configured on init
|
|
315
240
|
*/
|
|
316
241
|
componentWillLoad() {
|
|
317
|
-
// Get locales
|
|
318
|
-
this.messages = initLocales(this.element).messages;
|
|
319
242
|
// Check items format
|
|
320
243
|
this.validateItems(this.items);
|
|
321
244
|
// Check slots
|
|
@@ -334,7 +257,7 @@ export class MgInputToggle {
|
|
|
334
257
|
*/
|
|
335
258
|
render() {
|
|
336
259
|
const checkedItem = this.getCheckedItem(this.checked);
|
|
337
|
-
return (h("mg-input", { key: '
|
|
260
|
+
return (h("mg-input", { key: '7611cffaf1c01e30c3fa7a27555f94ab357dd374', label: this.label, helpText: this.helpText, identifier: this.identifier, class: this.classCollection.join(), labelOnTop: this.labelOnTop, labelHide: this.labelHide, required: undefined, tooltip: this.tooltip, tooltipPosition: this.tooltipPosition, errorMessage: this.errorMessage }, this.readonly ? (checkedItem && h("b", { class: "mg-c-input__readonly-value" }, checkedItem.title)) : (h("button", { type: "button", role: "switch", "aria-checked": this.checked.toString(), "aria-readonly": this.disabled || this.readonly, id: this.identifier, class: "mg-c-input__button-toggle", disabled: this.disabled || this.readonly, onClick: this.toggleChecked, ref: el => {
|
|
338
261
|
if (el !== null)
|
|
339
262
|
this.button = el;
|
|
340
263
|
} }, h("span", { "aria-hidden": "true", class: "mg-c-input__toggle-item-container" }, h("slot", { name: "item-1" })), h("span", { "aria-hidden": "true", class: "mg-c-input__toggle-item-container" }, h("slot", { name: "item-2" }))))));
|
|
@@ -355,7 +278,6 @@ export class MgInputToggle {
|
|
|
355
278
|
return {
|
|
356
279
|
"value": {
|
|
357
280
|
"type": "any",
|
|
358
|
-
"attribute": "value",
|
|
359
281
|
"mutable": true,
|
|
360
282
|
"complexType": {
|
|
361
283
|
"original": "any",
|
|
@@ -370,11 +292,11 @@ export class MgInputToggle {
|
|
|
370
292
|
},
|
|
371
293
|
"getter": false,
|
|
372
294
|
"setter": false,
|
|
373
|
-
"reflect": false
|
|
295
|
+
"reflect": false,
|
|
296
|
+
"attribute": "value"
|
|
374
297
|
},
|
|
375
298
|
"items": {
|
|
376
299
|
"type": "unknown",
|
|
377
|
-
"attribute": "items",
|
|
378
300
|
"mutable": false,
|
|
379
301
|
"complexType": {
|
|
380
302
|
"original": "string[] | ToggleValue[]",
|
|
@@ -398,7 +320,6 @@ export class MgInputToggle {
|
|
|
398
320
|
},
|
|
399
321
|
"identifier": {
|
|
400
322
|
"type": "string",
|
|
401
|
-
"attribute": "identifier",
|
|
402
323
|
"mutable": false,
|
|
403
324
|
"complexType": {
|
|
404
325
|
"original": "string",
|
|
@@ -413,11 +334,11 @@ export class MgInputToggle {
|
|
|
413
334
|
},
|
|
414
335
|
"getter": false,
|
|
415
336
|
"setter": false,
|
|
416
|
-
"reflect": false
|
|
337
|
+
"reflect": false,
|
|
338
|
+
"attribute": "identifier"
|
|
417
339
|
},
|
|
418
340
|
"name": {
|
|
419
341
|
"type": "string",
|
|
420
|
-
"attribute": "name",
|
|
421
342
|
"mutable": false,
|
|
422
343
|
"complexType": {
|
|
423
344
|
"original": "string",
|
|
@@ -433,11 +354,11 @@ export class MgInputToggle {
|
|
|
433
354
|
"getter": false,
|
|
434
355
|
"setter": false,
|
|
435
356
|
"reflect": false,
|
|
357
|
+
"attribute": "name",
|
|
436
358
|
"defaultValue": "this.identifier"
|
|
437
359
|
},
|
|
438
360
|
"label": {
|
|
439
361
|
"type": "string",
|
|
440
|
-
"attribute": "label",
|
|
441
362
|
"mutable": false,
|
|
442
363
|
"complexType": {
|
|
443
364
|
"original": "string",
|
|
@@ -452,11 +373,11 @@ export class MgInputToggle {
|
|
|
452
373
|
},
|
|
453
374
|
"getter": false,
|
|
454
375
|
"setter": false,
|
|
455
|
-
"reflect": false
|
|
376
|
+
"reflect": false,
|
|
377
|
+
"attribute": "label"
|
|
456
378
|
},
|
|
457
379
|
"labelOnTop": {
|
|
458
380
|
"type": "boolean",
|
|
459
|
-
"attribute": "label-on-top",
|
|
460
381
|
"mutable": false,
|
|
461
382
|
"complexType": {
|
|
462
383
|
"original": "boolean",
|
|
@@ -472,11 +393,11 @@ export class MgInputToggle {
|
|
|
472
393
|
"getter": false,
|
|
473
394
|
"setter": false,
|
|
474
395
|
"reflect": false,
|
|
396
|
+
"attribute": "label-on-top",
|
|
475
397
|
"defaultValue": "false"
|
|
476
398
|
},
|
|
477
399
|
"labelHide": {
|
|
478
400
|
"type": "boolean",
|
|
479
|
-
"attribute": "label-hide",
|
|
480
401
|
"mutable": false,
|
|
481
402
|
"complexType": {
|
|
482
403
|
"original": "boolean",
|
|
@@ -492,11 +413,11 @@ export class MgInputToggle {
|
|
|
492
413
|
"getter": false,
|
|
493
414
|
"setter": false,
|
|
494
415
|
"reflect": false,
|
|
416
|
+
"attribute": "label-hide",
|
|
495
417
|
"defaultValue": "false"
|
|
496
418
|
},
|
|
497
419
|
"isOnOff": {
|
|
498
420
|
"type": "boolean",
|
|
499
|
-
"attribute": "is-on-off",
|
|
500
421
|
"mutable": false,
|
|
501
422
|
"complexType": {
|
|
502
423
|
"original": "boolean",
|
|
@@ -512,11 +433,11 @@ export class MgInputToggle {
|
|
|
512
433
|
"getter": false,
|
|
513
434
|
"setter": false,
|
|
514
435
|
"reflect": false,
|
|
436
|
+
"attribute": "is-on-off",
|
|
515
437
|
"defaultValue": "false"
|
|
516
438
|
},
|
|
517
439
|
"isIcon": {
|
|
518
440
|
"type": "boolean",
|
|
519
|
-
"attribute": "is-icon",
|
|
520
441
|
"mutable": false,
|
|
521
442
|
"complexType": {
|
|
522
443
|
"original": "boolean",
|
|
@@ -532,11 +453,11 @@ export class MgInputToggle {
|
|
|
532
453
|
"getter": false,
|
|
533
454
|
"setter": false,
|
|
534
455
|
"reflect": false,
|
|
456
|
+
"attribute": "is-icon",
|
|
535
457
|
"defaultValue": "false"
|
|
536
458
|
},
|
|
537
459
|
"readonly": {
|
|
538
460
|
"type": "boolean",
|
|
539
|
-
"attribute": "readonly",
|
|
540
461
|
"mutable": false,
|
|
541
462
|
"complexType": {
|
|
542
463
|
"original": "boolean",
|
|
@@ -552,11 +473,11 @@ export class MgInputToggle {
|
|
|
552
473
|
"getter": false,
|
|
553
474
|
"setter": false,
|
|
554
475
|
"reflect": false,
|
|
476
|
+
"attribute": "readonly",
|
|
555
477
|
"defaultValue": "false"
|
|
556
478
|
},
|
|
557
479
|
"disabled": {
|
|
558
480
|
"type": "boolean",
|
|
559
|
-
"attribute": "disabled",
|
|
560
481
|
"mutable": false,
|
|
561
482
|
"complexType": {
|
|
562
483
|
"original": "boolean",
|
|
@@ -572,11 +493,11 @@ export class MgInputToggle {
|
|
|
572
493
|
"getter": false,
|
|
573
494
|
"setter": false,
|
|
574
495
|
"reflect": false,
|
|
496
|
+
"attribute": "disabled",
|
|
575
497
|
"defaultValue": "false"
|
|
576
498
|
},
|
|
577
499
|
"tooltip": {
|
|
578
500
|
"type": "string",
|
|
579
|
-
"attribute": "tooltip",
|
|
580
501
|
"mutable": false,
|
|
581
502
|
"complexType": {
|
|
582
503
|
"original": "string",
|
|
@@ -591,11 +512,11 @@ export class MgInputToggle {
|
|
|
591
512
|
},
|
|
592
513
|
"getter": false,
|
|
593
514
|
"setter": false,
|
|
594
|
-
"reflect": false
|
|
515
|
+
"reflect": false,
|
|
516
|
+
"attribute": "tooltip"
|
|
595
517
|
},
|
|
596
518
|
"tooltipPosition": {
|
|
597
519
|
"type": "string",
|
|
598
|
-
"attribute": "tooltip-position",
|
|
599
520
|
"mutable": false,
|
|
600
521
|
"complexType": {
|
|
601
522
|
"original": "TooltipPosition",
|
|
@@ -617,11 +538,11 @@ export class MgInputToggle {
|
|
|
617
538
|
"getter": false,
|
|
618
539
|
"setter": false,
|
|
619
540
|
"reflect": false,
|
|
541
|
+
"attribute": "tooltip-position",
|
|
620
542
|
"defaultValue": "'input'"
|
|
621
543
|
},
|
|
622
544
|
"helpText": {
|
|
623
545
|
"type": "string",
|
|
624
|
-
"attribute": "help-text",
|
|
625
546
|
"mutable": false,
|
|
626
547
|
"complexType": {
|
|
627
548
|
"original": "string",
|
|
@@ -636,64 +557,8 @@ export class MgInputToggle {
|
|
|
636
557
|
},
|
|
637
558
|
"getter": false,
|
|
638
559
|
"setter": false,
|
|
639
|
-
"reflect": false
|
|
640
|
-
|
|
641
|
-
"noValueErrorDetail": {
|
|
642
|
-
"type": "string",
|
|
643
|
-
"attribute": "no-value-error-detail",
|
|
644
|
-
"mutable": false,
|
|
645
|
-
"complexType": {
|
|
646
|
-
"original": "string",
|
|
647
|
-
"resolved": "string",
|
|
648
|
-
"references": {}
|
|
649
|
-
},
|
|
650
|
-
"required": false,
|
|
651
|
-
"optional": true,
|
|
652
|
-
"docs": {
|
|
653
|
-
"tags": [],
|
|
654
|
-
"text": "Define no value error detail"
|
|
655
|
-
},
|
|
656
|
-
"getter": false,
|
|
657
|
-
"setter": false,
|
|
658
|
-
"reflect": false
|
|
659
|
-
},
|
|
660
|
-
"valid": {
|
|
661
|
-
"type": "boolean",
|
|
662
|
-
"attribute": "valid",
|
|
663
|
-
"mutable": true,
|
|
664
|
-
"complexType": {
|
|
665
|
-
"original": "boolean",
|
|
666
|
-
"resolved": "boolean",
|
|
667
|
-
"references": {}
|
|
668
|
-
},
|
|
669
|
-
"required": false,
|
|
670
|
-
"optional": false,
|
|
671
|
-
"docs": {
|
|
672
|
-
"tags": [],
|
|
673
|
-
"text": "Define input valid state"
|
|
674
|
-
},
|
|
675
|
-
"getter": false,
|
|
676
|
-
"setter": false,
|
|
677
|
-
"reflect": false
|
|
678
|
-
},
|
|
679
|
-
"invalid": {
|
|
680
|
-
"type": "boolean",
|
|
681
|
-
"attribute": "invalid",
|
|
682
|
-
"mutable": true,
|
|
683
|
-
"complexType": {
|
|
684
|
-
"original": "boolean",
|
|
685
|
-
"resolved": "boolean",
|
|
686
|
-
"references": {}
|
|
687
|
-
},
|
|
688
|
-
"required": false,
|
|
689
|
-
"optional": false,
|
|
690
|
-
"docs": {
|
|
691
|
-
"tags": [],
|
|
692
|
-
"text": "Define input invalid state"
|
|
693
|
-
},
|
|
694
|
-
"getter": false,
|
|
695
|
-
"setter": false,
|
|
696
|
-
"reflect": false
|
|
560
|
+
"reflect": false,
|
|
561
|
+
"attribute": "help-text"
|
|
697
562
|
}
|
|
698
563
|
};
|
|
699
564
|
}
|
|
@@ -702,6 +567,7 @@ export class MgInputToggle {
|
|
|
702
567
|
"classCollection": {},
|
|
703
568
|
"options": {},
|
|
704
569
|
"errorMessage": {},
|
|
570
|
+
"valid": {},
|
|
705
571
|
"checked": {}
|
|
706
572
|
};
|
|
707
573
|
}
|
|
@@ -101,7 +101,6 @@ export class MgItemMore {
|
|
|
101
101
|
return {
|
|
102
102
|
"icon": {
|
|
103
103
|
"type": "unknown",
|
|
104
|
-
"attribute": "icon",
|
|
105
104
|
"mutable": false,
|
|
106
105
|
"complexType": {
|
|
107
106
|
"original": "IconType",
|
|
@@ -126,7 +125,6 @@ export class MgItemMore {
|
|
|
126
125
|
},
|
|
127
126
|
"slotlabel": {
|
|
128
127
|
"type": "unknown",
|
|
129
|
-
"attribute": "slotlabel",
|
|
130
128
|
"mutable": false,
|
|
131
129
|
"complexType": {
|
|
132
130
|
"original": "SlotLabelType",
|
|
@@ -151,7 +149,6 @@ export class MgItemMore {
|
|
|
151
149
|
},
|
|
152
150
|
"size": {
|
|
153
151
|
"type": "string",
|
|
154
|
-
"attribute": "size",
|
|
155
152
|
"mutable": false,
|
|
156
153
|
"complexType": {
|
|
157
154
|
"original": "SizeType",
|
|
@@ -172,7 +169,8 @@ export class MgItemMore {
|
|
|
172
169
|
},
|
|
173
170
|
"getter": false,
|
|
174
171
|
"setter": false,
|
|
175
|
-
"reflect": false
|
|
172
|
+
"reflect": false,
|
|
173
|
+
"attribute": "size"
|
|
176
174
|
}
|
|
177
175
|
};
|
|
178
176
|
}
|
|
@@ -180,7 +180,6 @@ export class MgMenu {
|
|
|
180
180
|
return {
|
|
181
181
|
"label": {
|
|
182
182
|
"type": "string",
|
|
183
|
-
"attribute": "label",
|
|
184
183
|
"mutable": false,
|
|
185
184
|
"complexType": {
|
|
186
185
|
"original": "string",
|
|
@@ -195,11 +194,11 @@ export class MgMenu {
|
|
|
195
194
|
},
|
|
196
195
|
"getter": false,
|
|
197
196
|
"setter": false,
|
|
198
|
-
"reflect": false
|
|
197
|
+
"reflect": false,
|
|
198
|
+
"attribute": "label"
|
|
199
199
|
},
|
|
200
200
|
"direction": {
|
|
201
201
|
"type": "string",
|
|
202
|
-
"attribute": "direction",
|
|
203
202
|
"mutable": false,
|
|
204
203
|
"complexType": {
|
|
205
204
|
"original": "Direction",
|
|
@@ -221,11 +220,11 @@ export class MgMenu {
|
|
|
221
220
|
"getter": false,
|
|
222
221
|
"setter": false,
|
|
223
222
|
"reflect": true,
|
|
223
|
+
"attribute": "direction",
|
|
224
224
|
"defaultValue": "'horizontal'"
|
|
225
225
|
},
|
|
226
226
|
"itemmore": {
|
|
227
227
|
"type": "unknown",
|
|
228
|
-
"attribute": "itemmore",
|
|
229
228
|
"mutable": false,
|
|
230
229
|
"complexType": {
|
|
231
230
|
"original": "ItemMoreType",
|
|
@@ -249,7 +248,6 @@ export class MgMenu {
|
|
|
249
248
|
},
|
|
250
249
|
"size": {
|
|
251
250
|
"type": "string",
|
|
252
|
-
"attribute": "size",
|
|
253
251
|
"mutable": false,
|
|
254
252
|
"complexType": {
|
|
255
253
|
"original": "MenuSizeType",
|
|
@@ -271,6 +269,7 @@ export class MgMenu {
|
|
|
271
269
|
"getter": false,
|
|
272
270
|
"setter": false,
|
|
273
271
|
"reflect": false,
|
|
272
|
+
"attribute": "size",
|
|
274
273
|
"defaultValue": "'medium'"
|
|
275
274
|
}
|
|
276
275
|
};
|
|
@@ -384,7 +384,6 @@ export class MgMenuItem {
|
|
|
384
384
|
return {
|
|
385
385
|
"identifier": {
|
|
386
386
|
"type": "string",
|
|
387
|
-
"attribute": "identifier",
|
|
388
387
|
"mutable": false,
|
|
389
388
|
"complexType": {
|
|
390
389
|
"original": "string",
|
|
@@ -400,11 +399,11 @@ export class MgMenuItem {
|
|
|
400
399
|
"getter": false,
|
|
401
400
|
"setter": false,
|
|
402
401
|
"reflect": true,
|
|
402
|
+
"attribute": "identifier",
|
|
403
403
|
"defaultValue": "createID('mg-menu-item')"
|
|
404
404
|
},
|
|
405
405
|
"href": {
|
|
406
406
|
"type": "string",
|
|
407
|
-
"attribute": "href",
|
|
408
407
|
"mutable": false,
|
|
409
408
|
"complexType": {
|
|
410
409
|
"original": "string",
|
|
@@ -419,11 +418,11 @@ export class MgMenuItem {
|
|
|
419
418
|
},
|
|
420
419
|
"getter": false,
|
|
421
420
|
"setter": false,
|
|
422
|
-
"reflect": false
|
|
421
|
+
"reflect": false,
|
|
422
|
+
"attribute": "href"
|
|
423
423
|
},
|
|
424
424
|
"target": {
|
|
425
425
|
"type": "string",
|
|
426
|
-
"attribute": "target",
|
|
427
426
|
"mutable": false,
|
|
428
427
|
"complexType": {
|
|
429
428
|
"original": "TargetType",
|
|
@@ -444,11 +443,11 @@ export class MgMenuItem {
|
|
|
444
443
|
},
|
|
445
444
|
"getter": false,
|
|
446
445
|
"setter": false,
|
|
447
|
-
"reflect": false
|
|
446
|
+
"reflect": false,
|
|
447
|
+
"attribute": "target"
|
|
448
448
|
},
|
|
449
449
|
"status": {
|
|
450
450
|
"type": "string",
|
|
451
|
-
"attribute": "status",
|
|
452
451
|
"mutable": true,
|
|
453
452
|
"complexType": {
|
|
454
453
|
"original": "MgMenuStatusType",
|
|
@@ -470,11 +469,11 @@ export class MgMenuItem {
|
|
|
470
469
|
"getter": false,
|
|
471
470
|
"setter": false,
|
|
472
471
|
"reflect": true,
|
|
472
|
+
"attribute": "status",
|
|
473
473
|
"defaultValue": "'visible'"
|
|
474
474
|
},
|
|
475
475
|
"expanded": {
|
|
476
476
|
"type": "boolean",
|
|
477
|
-
"attribute": "expanded",
|
|
478
477
|
"mutable": true,
|
|
479
478
|
"complexType": {
|
|
480
479
|
"original": "boolean",
|
|
@@ -490,6 +489,7 @@ export class MgMenuItem {
|
|
|
490
489
|
"getter": false,
|
|
491
490
|
"setter": false,
|
|
492
491
|
"reflect": false,
|
|
492
|
+
"attribute": "expanded",
|
|
493
493
|
"defaultValue": "false"
|
|
494
494
|
}
|
|
495
495
|
};
|
|
@@ -164,7 +164,6 @@ export class MgActionMore {
|
|
|
164
164
|
return {
|
|
165
165
|
"items": {
|
|
166
166
|
"type": "unknown",
|
|
167
|
-
"attribute": "items",
|
|
168
167
|
"mutable": false,
|
|
169
168
|
"complexType": {
|
|
170
169
|
"original": "(MgActionMoreItemType | MgActionMoreDividerType)[]",
|
|
@@ -193,7 +192,6 @@ export class MgActionMore {
|
|
|
193
192
|
},
|
|
194
193
|
"icon": {
|
|
195
194
|
"type": "unknown",
|
|
196
|
-
"attribute": "icon",
|
|
197
195
|
"mutable": true,
|
|
198
196
|
"complexType": {
|
|
199
197
|
"original": "MgActionMoreIconType",
|
|
@@ -217,7 +215,6 @@ export class MgActionMore {
|
|
|
217
215
|
},
|
|
218
216
|
"button": {
|
|
219
217
|
"type": "unknown",
|
|
220
|
-
"attribute": "button",
|
|
221
218
|
"mutable": false,
|
|
222
219
|
"complexType": {
|
|
223
220
|
"original": "MgActionMoreButtonType",
|
|
@@ -242,7 +239,6 @@ export class MgActionMore {
|
|
|
242
239
|
},
|
|
243
240
|
"displayChevron": {
|
|
244
241
|
"type": "boolean",
|
|
245
|
-
"attribute": "display-chevron",
|
|
246
242
|
"mutable": false,
|
|
247
243
|
"complexType": {
|
|
248
244
|
"original": "boolean",
|
|
@@ -258,6 +254,7 @@ export class MgActionMore {
|
|
|
258
254
|
"getter": false,
|
|
259
255
|
"setter": false,
|
|
260
256
|
"reflect": false,
|
|
257
|
+
"attribute": "display-chevron",
|
|
261
258
|
"defaultValue": "false"
|
|
262
259
|
}
|
|
263
260
|
};
|
|
@@ -160,7 +160,6 @@ export class MgAlert {
|
|
|
160
160
|
return {
|
|
161
161
|
"delay": {
|
|
162
162
|
"type": "number",
|
|
163
|
-
"attribute": "delay",
|
|
164
163
|
"mutable": false,
|
|
165
164
|
"complexType": {
|
|
166
165
|
"original": "number",
|
|
@@ -175,11 +174,11 @@ export class MgAlert {
|
|
|
175
174
|
},
|
|
176
175
|
"getter": false,
|
|
177
176
|
"setter": false,
|
|
178
|
-
"reflect": false
|
|
177
|
+
"reflect": false,
|
|
178
|
+
"attribute": "delay"
|
|
179
179
|
},
|
|
180
180
|
"variant": {
|
|
181
181
|
"type": "string",
|
|
182
|
-
"attribute": "variant",
|
|
183
182
|
"mutable": false,
|
|
184
183
|
"complexType": {
|
|
185
184
|
"original": "VariantType",
|
|
@@ -201,11 +200,11 @@ export class MgAlert {
|
|
|
201
200
|
"getter": false,
|
|
202
201
|
"setter": false,
|
|
203
202
|
"reflect": false,
|
|
203
|
+
"attribute": "variant",
|
|
204
204
|
"defaultValue": "'info'"
|
|
205
205
|
},
|
|
206
206
|
"variantStyle": {
|
|
207
207
|
"type": "string",
|
|
208
|
-
"attribute": "variant-style",
|
|
209
208
|
"mutable": false,
|
|
210
209
|
"complexType": {
|
|
211
210
|
"original": "VariantStyleType",
|
|
@@ -227,6 +226,7 @@ export class MgAlert {
|
|
|
227
226
|
"getter": false,
|
|
228
227
|
"setter": false,
|
|
229
228
|
"reflect": false,
|
|
229
|
+
"attribute": "variant-style",
|
|
230
230
|
"defaultValue": "'bar-left'"
|
|
231
231
|
}
|
|
232
232
|
};
|