@mgdis/mg-components 6.21.0 → 6.22.1
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-CCsGMNyq.js → index-BxB20_Vw.js} +8 -0
- package/dist/cjs/{index-C2viYwrR.js → index-Dz2LAZQT.js} +329 -1789
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{mg-action-more_37.cjs.entry.js → mg-action-more_36.cjs.entry.js} +200 -242
- package/dist/cjs/mg-alert.cjs.entry.js +3 -3
- package/dist/cjs/mg-breadcrumb.cjs.entry.js +63 -0
- package/dist/cjs/mg-components.cjs.js +3 -3
- package/dist/cjs/mg-fieldset.cjs.entry.js +2 -2
- package/dist/cjs/mg-input-combobox.cjs.entry.js +4 -4
- package/dist/cjs/mg-input-file.cjs.entry.js +4 -4
- package/dist/cjs/mg-input-rich-text-editor.cjs.entry.js +40095 -15808
- package/dist/cjs/mg-loader.cjs.entry.js +3 -3
- package/dist/cjs/mg-progress.cjs.entry.js +2 -2
- package/dist/collection/assets/icons/index.js +1 -1
- package/dist/collection/collection-manifest.json +4 -3
- package/dist/collection/components/atoms/internals/mg-character-left/mg-character-left.js +1 -1
- package/dist/collection/components/atoms/internals/mg-input-title/mg-input-title.js +1 -1
- package/dist/collection/components/atoms/mg-badge/mg-badge.js +2 -1
- package/dist/collection/components/atoms/mg-button/mg-button.js +6 -3
- package/dist/collection/components/atoms/mg-card/mg-card.js +3 -2
- package/dist/collection/components/atoms/mg-divider/mg-divider.js +1 -1
- package/dist/collection/components/atoms/mg-icon/mg-icon.js +10 -6
- package/dist/collection/components/atoms/mg-tag/mg-tag.js +3 -2
- package/dist/collection/components/atoms/mg-tooltip/mg-tooltip-content/mg-tooltip-content.js +1 -1
- package/dist/collection/components/atoms/mg-tooltip/mg-tooltip.js +3 -2
- package/dist/collection/components/molecules/inputs/mg-input/mg-input.js +5 -3
- package/dist/collection/components/molecules/inputs/mg-input-checkbox/MgInputCheckboxList.js +2 -2
- package/dist/collection/components/molecules/inputs/mg-input-checkbox/MgInputCheckboxPaginated.js +38 -0
- package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.conf.js +3 -2
- package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.js +47 -26
- package/dist/collection/components/molecules/inputs/mg-input-combobox/mg-input-combobox.js +13 -7
- package/dist/collection/components/molecules/inputs/mg-input-date/mg-input-date.js +3 -2
- package/dist/collection/components/molecules/inputs/mg-input-file/mg-input-file.js +4 -3
- package/dist/collection/components/molecules/inputs/mg-input-numeric/mg-input-numeric.js +9 -5
- package/dist/collection/components/molecules/inputs/mg-input-password/mg-input-password.js +6 -4
- package/dist/collection/components/molecules/inputs/mg-input-radio/mg-input-radio.js +5 -3
- package/dist/collection/components/molecules/inputs/mg-input-rich-text-editor/editor/custom-properties.scss +212 -0
- package/dist/collection/components/molecules/inputs/mg-input-rich-text-editor/editor/editor.conf.js +1 -0
- package/dist/collection/components/molecules/inputs/mg-input-rich-text-editor/editor/index.js +300 -94
- package/dist/collection/components/molecules/inputs/mg-input-rich-text-editor/mg-input-rich-text-editor.conf.js +29 -0
- package/dist/collection/components/molecules/inputs/mg-input-rich-text-editor/mg-input-rich-text-editor.js +164 -51
- package/dist/collection/components/molecules/inputs/mg-input-select/mg-input-select.js +22 -8
- package/dist/collection/components/molecules/inputs/mg-input-text/mg-input-text.js +12 -7
- package/dist/collection/components/molecules/inputs/mg-input-textarea/mg-input-textarea.js +5 -3
- package/dist/collection/components/molecules/inputs/mg-input-toggle/mg-input-toggle.js +7 -4
- package/dist/collection/components/molecules/internals/mg-item-more/mg-item-more.js +7 -38
- package/dist/collection/components/molecules/menus/mg-menu/mg-menu.conf.js +0 -4
- package/dist/collection/components/molecules/menus/mg-menu/mg-menu.js +24 -44
- package/dist/collection/components/molecules/menus/mg-menu-item/mg-menu-item.js +69 -40
- package/dist/collection/components/molecules/mg-action-more/mg-action-more.js +11 -7
- package/dist/collection/components/molecules/mg-alert/mg-alert.js +5 -3
- package/dist/collection/components/molecules/mg-breadcrumb/mg-breadcrumb.conf.js +1 -0
- package/dist/collection/components/molecules/mg-breadcrumb/mg-breadcrumb.js +93 -0
- package/dist/collection/components/molecules/mg-details/mg-details.js +1 -1
- package/dist/collection/components/molecules/mg-fieldset/mg-fieldset.js +3 -2
- package/dist/collection/components/molecules/mg-form/mg-form.js +5 -3
- package/dist/collection/components/molecules/mg-illustrated-message/mg-illustrated-message.js +5 -3
- package/dist/collection/components/molecules/mg-loader/mg-loader.js +1 -1
- package/dist/collection/components/molecules/mg-message/mg-message.js +6 -4
- package/dist/collection/components/molecules/mg-modal/mg-modal.js +4 -3
- package/dist/collection/components/molecules/mg-pagination/mg-pagination.js +2 -1
- package/dist/collection/components/molecules/mg-panel/mg-panel.js +5 -3
- 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 +3 -2
- package/dist/collection/components/molecules/mg-progress/mg-progress.js +3 -2
- package/dist/collection/components/molecules/mg-skip-links/mg-skip-links.js +3 -2
- package/dist/collection/components/molecules/mg-table/mg-table.js +41 -2
- package/dist/collection/components/molecules/mg-tabs/mg-tabs.conf.js +0 -4
- package/dist/collection/components/molecules/mg-tabs/mg-tabs.js +15 -34
- package/dist/collection/locales/en/messages.json +3 -0
- package/dist/collection/locales/fr/messages.json +3 -0
- package/dist/components/index2.js +1 -1
- package/dist/components/index3.js +1 -1
- package/dist/components/mg-action-more.js +1 -1
- package/dist/components/mg-alert.js +1 -1
- package/dist/components/mg-breadcrumb.d.ts +11 -0
- package/dist/components/mg-breadcrumb.js +1 -0
- package/dist/components/mg-card2.js +1 -1
- package/dist/components/mg-character-left2.js +1 -1
- package/dist/components/mg-details.js +1 -1
- package/dist/components/mg-divider2.js +1 -1
- package/dist/components/mg-fieldset.js +1 -1
- package/dist/components/mg-form.js +1 -1
- package/dist/components/mg-icon2.js +1 -1
- package/dist/components/mg-illustrated-message.js +1 -1
- package/dist/components/mg-input-checkbox.js +1 -1
- package/dist/components/mg-input-combobox.js +1 -1
- package/dist/components/mg-input-date.js +1 -1
- package/dist/components/mg-input-file.js +1 -1
- package/dist/components/mg-input-numeric.js +1 -1
- package/dist/components/mg-input-password.js +1 -1
- package/dist/components/mg-input-radio.js +1 -1
- package/dist/components/mg-input-rich-text-editor.js +1663 -1
- package/dist/components/mg-input-select2.js +1 -1
- package/dist/components/mg-input-text2.js +1 -1
- package/dist/components/mg-input-textarea.js +1 -1
- package/dist/components/mg-input-title2.js +1 -1
- package/dist/components/mg-input-toggle.js +1 -1
- package/dist/components/mg-input2.js +1 -1
- package/dist/components/mg-item-more2.js +1 -1
- package/dist/components/mg-loader2.js +1 -1
- package/dist/components/mg-menu-item2.js +1 -1
- package/dist/components/mg-message2.js +1 -1
- package/dist/components/mg-modal.js +1 -1
- package/dist/components/mg-panel.js +1 -1
- package/dist/components/mg-popover-content2.js +1 -1
- package/dist/components/mg-popover2.js +1 -1
- package/dist/components/mg-progress.js +1 -1
- package/dist/components/mg-skip-links.js +1 -1
- package/dist/components/mg-table.js +1 -1
- package/dist/components/mg-tabs2.js +1 -1
- package/dist/components/mg-tag.js +1 -1
- package/dist/components/mg-tooltip-content2.js +1 -1
- package/dist/components/mg-tooltip2.js +1 -1
- package/dist/esm/{index-DFwaH2hS.js → index-C3jUhxdI.js} +329 -1789
- package/dist/esm/{index-D-uaxCxH.js → index-DSEloqPn.js} +8 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{mg-action-more_37.entry.js → mg-action-more_36.entry.js} +202 -243
- package/dist/esm/mg-alert.entry.js +3 -3
- package/dist/esm/mg-breadcrumb.entry.js +61 -0
- package/dist/esm/mg-components.js +4 -4
- package/dist/esm/mg-fieldset.entry.js +2 -2
- package/dist/esm/mg-input-combobox.entry.js +4 -4
- package/dist/esm/mg-input-file.entry.js +4 -4
- package/dist/esm/mg-input-rich-text-editor.entry.js +40082 -15795
- package/dist/esm/mg-loader.entry.js +3 -3
- package/dist/esm/mg-progress.entry.js +2 -2
- package/dist/mg-components/locales/en/messages.json +3 -0
- package/dist/mg-components/locales/fr/messages.json +3 -0
- package/dist/mg-components/mg-components.esm.js +1 -1
- package/dist/mg-components/{p-6b57f249.entry.js → p-06fbdb2f.entry.js} +1 -1
- package/dist/mg-components/{p-c3d116b9.entry.js → p-188b9ca9.entry.js} +1 -1
- package/dist/mg-components/p-4667078d.entry.js +1 -0
- package/dist/mg-components/p-5a859ecf.entry.js +1658 -0
- package/dist/mg-components/p-661da56b.entry.js +1 -0
- package/dist/mg-components/{p-988c282e.entry.js → p-8e256086.entry.js} +1 -1
- package/dist/mg-components/p-C3jUhxdI.js +2 -0
- package/dist/mg-components/p-DSEloqPn.js +1 -0
- package/dist/mg-components/{p-6b655830.entry.js → p-b0b8c58f.entry.js} +1 -1
- package/dist/mg-components/{p-dd1934f4.entry.js → p-bbcef41c.entry.js} +1 -1
- package/dist/mg-components/{p-4175dcbe.entry.js → p-c1aeb277.entry.js} +1 -1
- package/dist/types/assets/icons/index.d.ts +2 -0
- package/dist/types/components/molecules/inputs/mg-input/mg-input.conf.d.ts +1 -1
- package/dist/types/components/molecules/inputs/mg-input-checkbox/MgInputCheckboxList.d.ts +2 -2
- package/dist/types/components/molecules/inputs/mg-input-checkbox/MgInputCheckboxPaginated.d.ts +8 -0
- package/dist/types/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.conf.d.ts +16 -8
- package/dist/types/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.d.ts +15 -5
- package/dist/types/components/molecules/inputs/mg-input-rich-text-editor/editor/editor.conf.d.ts +17 -0
- package/dist/types/components/molecules/inputs/mg-input-rich-text-editor/editor/index.d.ts +27 -19
- package/dist/types/components/molecules/inputs/mg-input-rich-text-editor/mg-input-rich-text-editor.conf.d.ts +3 -0
- package/dist/types/components/molecules/inputs/mg-input-rich-text-editor/mg-input-rich-text-editor.d.ts +48 -14
- package/dist/types/components/molecules/inputs/mg-input-select/mg-input-select.d.ts +1 -1
- package/dist/types/components/molecules/internals/mg-item-more/mg-item-more.conf.d.ts +0 -5
- package/dist/types/components/molecules/internals/mg-item-more/mg-item-more.d.ts +1 -6
- package/dist/types/components/molecules/menus/mg-menu/mg-menu.conf.d.ts +2 -10
- package/dist/types/components/molecules/menus/mg-menu/mg-menu.d.ts +7 -7
- package/dist/types/components/molecules/menus/mg-menu-item/mg-menu-item.d.ts +12 -8
- package/dist/types/components/molecules/mg-breadcrumb/mg-breadcrumb.conf.d.ts +18 -0
- package/dist/types/components/molecules/mg-breadcrumb/mg-breadcrumb.d.ts +34 -0
- package/dist/types/components/molecules/mg-table/mg-table.d.ts +6 -0
- package/dist/types/components/molecules/mg-tabs/mg-tabs.conf.d.ts +1 -9
- package/dist/types/components/molecules/mg-tabs/mg-tabs.d.ts +4 -4
- package/dist/types/components.d.ts +617 -207
- package/dist/types/stencil-public-runtime.d.ts +52 -2
- package/ide/intellij/web-types.json +143 -55
- package/ide/vscode/css-custom-data.json +10 -2
- package/ide/vscode/html-custom-data.json +113 -34
- package/package.json +24 -23
- package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox-paginated/mg-input-checkbox-paginated.js +0 -245
- package/dist/components/mg-input-checkbox-paginated.d.ts +0 -11
- package/dist/components/mg-input-checkbox-paginated.js +0 -1
- package/dist/components/mg-input-checkbox-paginated2.js +0 -1
- package/dist/mg-components/p-08fa327b.entry.js +0 -1
- package/dist/mg-components/p-D-uaxCxH.js +0 -1
- package/dist/mg-components/p-DFwaH2hS.js +0 -2
- package/dist/mg-components/p-a79b1f19.entry.js +0 -1
- package/dist/types/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox-paginated/mg-input-checkbox-paginated.d.ts +0 -77
|
@@ -270,7 +270,7 @@ export class MgInputToggle {
|
|
|
270
270
|
*/
|
|
271
271
|
render() {
|
|
272
272
|
const currentOption = this.options[this.getCurrentOptionIndex(this.value)];
|
|
273
|
-
return (h("mg-input", { key: '
|
|
273
|
+
return (h("mg-input", { key: '3f440a16156b4fc89590addba025b350218ccf9c', 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 ? (currentOption && h("b", { class: "mg-c-input__readonly-value" }, currentOption.title)) : (h("button", { type: "button", role: "switch", "aria-checked": this.isChecked(this.value).toString(), "aria-readonly": this.disabled || this.readonly, id: this.identifier, class: "mg-c-input__button-toggle", disabled: this.disabled || this.readonly, onClick: this.handleSwitchButton, ref: el => {
|
|
274
274
|
if (el !== null)
|
|
275
275
|
this.button = el;
|
|
276
276
|
} }, 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" }))))));
|
|
@@ -299,7 +299,8 @@ export class MgInputToggle {
|
|
|
299
299
|
"ToggleOption": {
|
|
300
300
|
"location": "import",
|
|
301
301
|
"path": "../../../../types",
|
|
302
|
-
"id": "src/types/index.ts::Option"
|
|
302
|
+
"id": "src/types/index.ts::Option",
|
|
303
|
+
"referenceLocation": "Option"
|
|
303
304
|
}
|
|
304
305
|
}
|
|
305
306
|
},
|
|
@@ -322,7 +323,8 @@ export class MgInputToggle {
|
|
|
322
323
|
"ToggleOption": {
|
|
323
324
|
"location": "import",
|
|
324
325
|
"path": "../../../../types",
|
|
325
|
-
"id": "src/types/index.ts::Option"
|
|
326
|
+
"id": "src/types/index.ts::Option",
|
|
327
|
+
"referenceLocation": "Option"
|
|
326
328
|
}
|
|
327
329
|
}
|
|
328
330
|
},
|
|
@@ -542,7 +544,8 @@ export class MgInputToggle {
|
|
|
542
544
|
"TooltipPosition": {
|
|
543
545
|
"location": "import",
|
|
544
546
|
"path": "../mg-input/mg-input.conf",
|
|
545
|
-
"id": "src/components/molecules/inputs/mg-input/mg-input.conf.ts::TooltipPosition"
|
|
547
|
+
"id": "src/components/molecules/inputs/mg-input/mg-input.conf.ts::TooltipPosition",
|
|
548
|
+
"referenceLocation": "TooltipPosition"
|
|
546
549
|
}
|
|
547
550
|
}
|
|
548
551
|
},
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
2
|
import { toString } from "@mgdis/core-ui-helpers/dist/utils";
|
|
3
3
|
import { OverflowBehavior } from "../../../../utils/behaviors.utils";
|
|
4
|
-
import { directions
|
|
4
|
+
import { directions } from "../../menus/mg-menu/mg-menu.conf";
|
|
5
5
|
import { initLocales } from "../../../../locales";
|
|
6
6
|
/**
|
|
7
7
|
* @internal
|
|
@@ -31,10 +31,6 @@ export class MgItemMore {
|
|
|
31
31
|
else if (typeof newValue.label !== 'string')
|
|
32
32
|
this.slotlabel.label = this.messages.menuLabel;
|
|
33
33
|
}
|
|
34
|
-
validateSize(newValue) {
|
|
35
|
-
if (newValue && !sizes.includes(newValue))
|
|
36
|
-
throw new Error(`<${this.name}> prop "size" must match MgItemMore['size'] type. Passed value: ${toString(newValue)}.`);
|
|
37
|
-
}
|
|
38
34
|
/*************
|
|
39
35
|
* Lifecycle *
|
|
40
36
|
*************/
|
|
@@ -47,7 +43,6 @@ export class MgItemMore {
|
|
|
47
43
|
// validate props
|
|
48
44
|
this.validateIcon(this.icon);
|
|
49
45
|
this.validateSlotLabel(this.slotlabel);
|
|
50
|
-
this.validateSize(this.size);
|
|
51
46
|
}
|
|
52
47
|
/**
|
|
53
48
|
* Ensure parent DOM is fully rendered with timeout method before parse elements
|
|
@@ -80,7 +75,7 @@ export class MgItemMore {
|
|
|
80
75
|
*/
|
|
81
76
|
render() {
|
|
82
77
|
const menuItemIdentifier = 'mg-item-more';
|
|
83
|
-
return (h(Host, { key: '
|
|
78
|
+
return (h(Host, { key: '85f8bf18855610a31c4afc0051886c5020d9a1b6', role: "listitem", "data-mg-popover-guard": `${menuItemIdentifier}-popover` }, this.parentMenu && (h("mg-menu-item", { key: '10d8d6ca20df0cba51f601bdafe0260e48842fa3', "data-overflow-more": true, "data-style-direction": directions.HORIZONTAL, identifier: menuItemIdentifier, isIcon: !this.slotlabel.display }, h("mg-icon", { key: 'f957f3179d07df707e871e44e26eddcb911521e4', icon: this.icon.icon, slot: "image" }), h("span", { key: 'af9d0b934313b28983b650d58baa5b83b937836a', class: { 'mg-u-visually-hidden': !this.slotlabel.display }, slot: "label" }, this.slotlabel.label), h("mg-menu", { key: '181445f2ee43b78ce041225f2394618c8eacf5d1', direction: directions.VERTICAL, label: this.messages.menuLabel, ref: ref => {
|
|
84
79
|
if (ref !== null)
|
|
85
80
|
this.itemMoreContainer = ref;
|
|
86
81
|
} })))));
|
|
@@ -104,12 +99,13 @@ export class MgItemMore {
|
|
|
104
99
|
"mutable": false,
|
|
105
100
|
"complexType": {
|
|
106
101
|
"original": "IconType",
|
|
107
|
-
"resolved": "{ icon: \"filter\" | \"
|
|
102
|
+
"resolved": "{ icon: \"filter\" | \"address-card\" | \"address-card-outline\" | \"align-center\" | \"align-justify\" | \"align-left\" | \"align-right\" | \"api\" | \"archive\" | \"archive-outline\" | \"arrow-clock\" | \"arrow-down\" | \"arrow-down-a-z\" | \"arrow-down-right\" | \"arrow-left\" | \"arrow-right\" | \"arrow-rotate\" | \"arrow-rotate-backward\" | \"arrow-up\" | \"arrow-up-right\" | \"arrow-up-right-square\" | \"arrow-up-z-a\" | \"arrows-compare\" | \"arrows-right-down\" | \"arrows-right-left\" | \"arrows-rotate\" | \"arrows-rotate-backward\" | \"arrows-up-down\" | \"ban\" | \"bell\" | \"bell-outline\" | \"book\" | \"book-outline\" | \"briefcase\" | \"briefcase-outline\" | \"building\" | \"building-outline\" | \"calculator\" | \"calculator-outline\" | \"calendar\" | \"calendar-euro\" | \"calendar-euro-outline\" | \"calendar-outline\" | \"check\" | \"check-circle\" | \"check-circle-outline\" | \"chevron-down\" | \"chevron-down-circle\" | \"chevron-left\" | \"chevron-left-circle\" | \"chevron-right\" | \"chevron-right-circle\" | \"chevron-up\" | \"chevron-up-circle\" | \"circle\" | \"clock\" | \"clock-outline\" | \"code-square-outline\" | \"cog\" | \"cog-outline\" | \"comment\" | \"comment-exclamation\" | \"comment-exclamation-outline\" | \"comment-outline\" | \"comment-question\" | \"comment-question-outline\" | \"comment-sms\" | \"comment-sms-outline\" | \"conversation\" | \"conversation-outline\" | \"copy\" | \"copy-file\" | \"copy-file-outline\" | \"copy-outline\" | \"credit-card\" | \"cross\" | \"cross-circle\" | \"cross-circle-outline\" | \"dashboard\" | \"dashboard-outline\" | \"download\" | \"earth\" | \"earth-outline\" | \"ellipsis\" | \"ellipsis-vertical\" | \"euro\" | \"euro-circle\" | \"exclamation-circle\" | \"exclamation-circle-outline\" | \"exclamation-stamp\" | \"exclamation-triangle\" | \"exclamation-triangle-outline\" | \"eye\" | \"eye-outline\" | \"eye-slash\" | \"eye-slash-outline\" | \"fax\" | \"fax-outline\" | \"file\" | \"file-cog\" | \"file-cog-outline\" | \"file-download\" | \"file-download-outline\" | \"file-excel\" | \"file-excel-outline\" | \"file-outline\" | \"file-pdf\" | \"file-pdf-outline\" | \"file-text\" | \"file-text-outline\" | \"file-upload\" | \"file-upload-outline\" | \"file-word\" | \"file-word-outline\" | \"filter-outline\" | \"floppy-disk\" | \"floppy-disk-checked\" | \"floppy-disk-checked-outline\" | \"floppy-disk-outline\" | \"folder\" | \"folder-check\" | \"folder-check-outline\" | \"folder-lines\" | \"folder-lines-outline\" | \"folder-link\" | \"folder-link-outline\" | \"folder-outline\" | \"folder-star\" | \"folder-star-outline\" | \"folders\" | \"folders-outline\" | \"gavel\" | \"gavel-outline\" | \"graduation-cap\" | \"graduation-cap-outline\" | \"hand-euro\" | \"hand-euro-outline\" | \"hand-up\" | \"history\" | \"home\" | \"home-outline\" | \"info-circle\" | \"info-circle-outline\" | \"interrogation-circle\" | \"interrogation-circle-outline\" | \"key\" | \"laptop\" | \"layers\" | \"life-ring\" | \"lines-rectangle\" | \"lines-rectangle-outline\" | \"link\" | \"list\" | \"loader\" | \"location\" | \"location-outline\" | \"lock\" | \"lock-outline\" | \"log-in\" | \"log-out\" | \"magnifying-glass\" | \"mail\" | \"mail-open\" | \"mail-open-outline\" | \"mail-outline\" | \"messages-square\" | \"messages-square-outline\" | \"mobile\" | \"mobile-outline\" | \"notes\" | \"notes-outline\" | \"paper-plane\" | \"paper-plane-outline\" | \"paper-plane-slash\" | \"paper-plane-slash-outline\" | \"paperclip\" | \"pause\" | \"pause-outline\" | \"pen\" | \"pen-circle\" | \"pen-fancy\" | \"pen-fancy-files-outline\" | \"pen-fancy-outline\" | \"pen-outline\" | \"phone\" | \"phone-outline\" | \"picture\" | \"picture-outline\" | \"play-circle\" | \"plus\" | \"plus-circle\" | \"plus-circle-outline\" | \"share\" | \"share-outline\" | \"shuffle\" | \"sidebar-arrow-left\" | \"sidebar-arrow-right\" | \"sitemap\" | \"sliders\" | \"sliders-outline\" | \"squares\" | \"star\" | \"star-outline\" | \"table\" | \"tag\" | \"tag-outline\" | \"tags\" | \"tags-outline\" | \"thumb-down\" | \"thumb-down-outline\" | \"thumb-up\" | \"thumb-up-outline\" | \"thumbtack\" | \"thumbtack-outline\" | \"trash\" | \"trash-outline\" | \"universal-access\" | \"universal-access-outline\" | \"unlink\" | \"unlock\" | \"unlock-outline\" | \"upload\" | \"user\" | \"user-circle\" | \"user-group\" | \"user-group-outline\" | \"user-lock\" | \"user-outline\" | \"user-pen-fancy-outline\" | \"user-plus\" | \"user-question-outline\" | \"user-shield\" | \"user-shield-outline\" | \"users\" | \"users-outline\" | \"wallet\" | \"wallet-outline\"; }",
|
|
108
103
|
"references": {
|
|
109
104
|
"IconType": {
|
|
110
105
|
"location": "import",
|
|
111
106
|
"path": "./mg-item-more.conf",
|
|
112
|
-
"id": "src/components/molecules/internals/mg-item-more/mg-item-more.conf.ts::IconType"
|
|
107
|
+
"id": "src/components/molecules/internals/mg-item-more/mg-item-more.conf.ts::IconType",
|
|
108
|
+
"referenceLocation": "IconType"
|
|
113
109
|
}
|
|
114
110
|
}
|
|
115
111
|
},
|
|
@@ -133,7 +129,8 @@ export class MgItemMore {
|
|
|
133
129
|
"SlotLabelType": {
|
|
134
130
|
"location": "import",
|
|
135
131
|
"path": "./mg-item-more.conf",
|
|
136
|
-
"id": "src/components/molecules/internals/mg-item-more/mg-item-more.conf.ts::SlotLabelType"
|
|
132
|
+
"id": "src/components/molecules/internals/mg-item-more/mg-item-more.conf.ts::SlotLabelType",
|
|
133
|
+
"referenceLocation": "SlotLabelType"
|
|
137
134
|
}
|
|
138
135
|
}
|
|
139
136
|
},
|
|
@@ -146,31 +143,6 @@ export class MgItemMore {
|
|
|
146
143
|
"getter": false,
|
|
147
144
|
"setter": false,
|
|
148
145
|
"defaultValue": "{ display: false }"
|
|
149
|
-
},
|
|
150
|
-
"size": {
|
|
151
|
-
"type": "string",
|
|
152
|
-
"mutable": false,
|
|
153
|
-
"complexType": {
|
|
154
|
-
"original": "SizeType",
|
|
155
|
-
"resolved": "\"large\" | \"medium\" | \"xlarge\"",
|
|
156
|
-
"references": {
|
|
157
|
-
"SizeType": {
|
|
158
|
-
"location": "import",
|
|
159
|
-
"path": "./mg-item-more.conf",
|
|
160
|
-
"id": "src/components/molecules/internals/mg-item-more/mg-item-more.conf.ts::SizeType"
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
},
|
|
164
|
-
"required": false,
|
|
165
|
-
"optional": true,
|
|
166
|
-
"docs": {
|
|
167
|
-
"tags": [],
|
|
168
|
-
"text": "Define component child menu size."
|
|
169
|
-
},
|
|
170
|
-
"getter": false,
|
|
171
|
-
"setter": false,
|
|
172
|
-
"reflect": false,
|
|
173
|
-
"attribute": "size"
|
|
174
146
|
}
|
|
175
147
|
};
|
|
176
148
|
}
|
|
@@ -187,9 +159,6 @@ export class MgItemMore {
|
|
|
187
159
|
}, {
|
|
188
160
|
"propName": "slotlabel",
|
|
189
161
|
"methodName": "validateSlotLabel"
|
|
190
|
-
}, {
|
|
191
|
-
"propName": "size",
|
|
192
|
-
"methodName": "validateSize"
|
|
193
162
|
}];
|
|
194
163
|
}
|
|
195
164
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
|
-
import { directions
|
|
2
|
+
import { directions } from "./mg-menu.conf";
|
|
3
3
|
import { toString } from "@mgdis/core-ui-helpers/dist/utils";
|
|
4
4
|
/**
|
|
5
5
|
* @slot - Menu content
|
|
@@ -14,10 +14,6 @@ export class MgMenu {
|
|
|
14
14
|
* Component display direction.
|
|
15
15
|
*/
|
|
16
16
|
this.direction = 'horizontal';
|
|
17
|
-
/**
|
|
18
|
-
* Define mg-menu size
|
|
19
|
-
*/
|
|
20
|
-
this.size = 'medium';
|
|
21
17
|
/*************
|
|
22
18
|
* Methods *
|
|
23
19
|
*************/
|
|
@@ -53,7 +49,6 @@ export class MgMenu {
|
|
|
53
49
|
* render mg-item-more
|
|
54
50
|
*/
|
|
55
51
|
this.renderMgItemMore = () => {
|
|
56
|
-
var _a;
|
|
57
52
|
if (this.direction === directions.VERTICAL || (this.direction === directions.HORIZONTAL && this.isChildMenu()) || this.element.children.length <= 1) {
|
|
58
53
|
return;
|
|
59
54
|
}
|
|
@@ -67,8 +62,6 @@ export class MgMenu {
|
|
|
67
62
|
for (const propertie in this.itemmore) {
|
|
68
63
|
itemMoreElement[propertie] = this.itemmore[propertie];
|
|
69
64
|
}
|
|
70
|
-
if (((_a = this.itemmore) === null || _a === void 0 ? void 0 : _a.size) === undefined)
|
|
71
|
-
itemMoreElement.size = this.size;
|
|
72
65
|
};
|
|
73
66
|
}
|
|
74
67
|
validateLabel(newValue) {
|
|
@@ -92,11 +85,6 @@ export class MgMenu {
|
|
|
92
85
|
this.renderMgItemMore();
|
|
93
86
|
}
|
|
94
87
|
}
|
|
95
|
-
validateSize(newValue) {
|
|
96
|
-
if (!sizes.includes(newValue)) {
|
|
97
|
-
throw new Error(`<${this.name}> prop "size" must be one of: ${sizes.join(', ')}. Passed value: ${toString(newValue)}.`);
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
88
|
/**
|
|
101
89
|
* Define mg-menu-item listener when they are loaded
|
|
102
90
|
* @param event - mg-item-loaded "item-loaded" custom event
|
|
@@ -131,7 +119,6 @@ export class MgMenu {
|
|
|
131
119
|
this.validateDirection(this.direction);
|
|
132
120
|
this.validateLabel(this.label);
|
|
133
121
|
this.validateItemMore(this.itemmore);
|
|
134
|
-
this.validateSize(this.size);
|
|
135
122
|
}
|
|
136
123
|
/**
|
|
137
124
|
* Check if component slots configuration
|
|
@@ -166,7 +153,7 @@ export class MgMenu {
|
|
|
166
153
|
* @returns HTML Element
|
|
167
154
|
*/
|
|
168
155
|
render() {
|
|
169
|
-
return (h(Host, { key: '
|
|
156
|
+
return (h(Host, { key: 'c16a69485fabb9a7a91efe032501fafa98862882', role: "list", "aria-label": this.label }, h("slot", { key: 'f5bca6fdb93d9273e5fcc753d2c58c0a0504c0d0' })));
|
|
170
157
|
}
|
|
171
158
|
static get is() { return "mg-menu"; }
|
|
172
159
|
static get encapsulation() { return "shadow"; }
|
|
@@ -211,7 +198,8 @@ export class MgMenu {
|
|
|
211
198
|
"Direction": {
|
|
212
199
|
"location": "import",
|
|
213
200
|
"path": "../../../../types",
|
|
214
|
-
"id": "src/types/index.ts::Direction"
|
|
201
|
+
"id": "src/types/index.ts::Direction",
|
|
202
|
+
"referenceLocation": "Direction"
|
|
215
203
|
}
|
|
216
204
|
}
|
|
217
205
|
},
|
|
@@ -227,54 +215,49 @@ export class MgMenu {
|
|
|
227
215
|
"attribute": "direction",
|
|
228
216
|
"defaultValue": "'horizontal'"
|
|
229
217
|
},
|
|
230
|
-
"
|
|
218
|
+
"size": {
|
|
231
219
|
"type": "unknown",
|
|
232
220
|
"mutable": false,
|
|
233
221
|
"complexType": {
|
|
234
|
-
"original": "
|
|
235
|
-
"resolved": "
|
|
236
|
-
"references": {
|
|
237
|
-
"ItemMoreType": {
|
|
238
|
-
"location": "import",
|
|
239
|
-
"path": "./mg-menu.conf",
|
|
240
|
-
"id": "src/components/molecules/menus/mg-menu/mg-menu.conf.ts::ItemMoreType"
|
|
241
|
-
}
|
|
242
|
-
}
|
|
222
|
+
"original": "never",
|
|
223
|
+
"resolved": "never",
|
|
224
|
+
"references": {}
|
|
243
225
|
},
|
|
244
226
|
"required": false,
|
|
245
|
-
"optional":
|
|
227
|
+
"optional": false,
|
|
246
228
|
"docs": {
|
|
247
|
-
"tags": [
|
|
248
|
-
|
|
229
|
+
"tags": [{
|
|
230
|
+
"name": "deprecated",
|
|
231
|
+
"text": "this prop is deprecated and will be removed in future releases"
|
|
232
|
+
}],
|
|
233
|
+
"text": "Size of the menu items"
|
|
249
234
|
},
|
|
250
235
|
"getter": false,
|
|
251
236
|
"setter": false
|
|
252
237
|
},
|
|
253
|
-
"
|
|
254
|
-
"type": "
|
|
238
|
+
"itemmore": {
|
|
239
|
+
"type": "unknown",
|
|
255
240
|
"mutable": false,
|
|
256
241
|
"complexType": {
|
|
257
|
-
"original": "
|
|
258
|
-
"resolved": "
|
|
242
|
+
"original": "ItemMoreType",
|
|
243
|
+
"resolved": "{ icon?: IconType; slotlabel?: SlotLabelType; }",
|
|
259
244
|
"references": {
|
|
260
|
-
"
|
|
245
|
+
"ItemMoreType": {
|
|
261
246
|
"location": "import",
|
|
262
247
|
"path": "./mg-menu.conf",
|
|
263
|
-
"id": "src/components/molecules/menus/mg-menu/mg-menu.conf.ts::
|
|
248
|
+
"id": "src/components/molecules/menus/mg-menu/mg-menu.conf.ts::ItemMoreType",
|
|
249
|
+
"referenceLocation": "ItemMoreType"
|
|
264
250
|
}
|
|
265
251
|
}
|
|
266
252
|
},
|
|
267
253
|
"required": false,
|
|
268
|
-
"optional":
|
|
254
|
+
"optional": true,
|
|
269
255
|
"docs": {
|
|
270
256
|
"tags": [],
|
|
271
|
-
"text": "
|
|
257
|
+
"text": "Customize \"mg-item-more\" element\nUsed with direction: 'horizontal' to manage overflow"
|
|
272
258
|
},
|
|
273
259
|
"getter": false,
|
|
274
|
-
"setter": false
|
|
275
|
-
"reflect": false,
|
|
276
|
-
"attribute": "size",
|
|
277
|
-
"defaultValue": "'medium'"
|
|
260
|
+
"setter": false
|
|
278
261
|
}
|
|
279
262
|
};
|
|
280
263
|
}
|
|
@@ -289,9 +272,6 @@ export class MgMenu {
|
|
|
289
272
|
}, {
|
|
290
273
|
"propName": "itemmore",
|
|
291
274
|
"methodName": "validateItemMore"
|
|
292
|
-
}, {
|
|
293
|
-
"propName": "size",
|
|
294
|
-
"methodName": "validateSize"
|
|
295
275
|
}];
|
|
296
276
|
}
|
|
297
277
|
static get listeners() {
|
|
@@ -16,7 +16,7 @@ export class MgMenuItem {
|
|
|
16
16
|
* Internal *
|
|
17
17
|
************/
|
|
18
18
|
this.name = 'mg-menu-item';
|
|
19
|
-
this.
|
|
19
|
+
this.classNavigationButton = 'mg-c-menu-item__navigation-button';
|
|
20
20
|
/************
|
|
21
21
|
* Props *
|
|
22
22
|
************/
|
|
@@ -28,6 +28,10 @@ export class MgMenuItem {
|
|
|
28
28
|
* Define menu-item status.
|
|
29
29
|
*/
|
|
30
30
|
this.status = 'visible';
|
|
31
|
+
/**
|
|
32
|
+
* Define menu-item isIcon style.
|
|
33
|
+
*/
|
|
34
|
+
this.isIcon = false;
|
|
31
35
|
/**
|
|
32
36
|
* Define menu-item content expanded.
|
|
33
37
|
*/
|
|
@@ -35,14 +39,10 @@ export class MgMenuItem {
|
|
|
35
39
|
/**********
|
|
36
40
|
* States *
|
|
37
41
|
*********/
|
|
38
|
-
/**
|
|
39
|
-
* Define menu-item size.
|
|
40
|
-
*/
|
|
41
|
-
this.size = 'medium';
|
|
42
42
|
/**
|
|
43
43
|
* Component button classes
|
|
44
44
|
*/
|
|
45
|
-
this.
|
|
45
|
+
this.classNavigationButtonClassList = new ClassList([this.classNavigationButton]);
|
|
46
46
|
/**
|
|
47
47
|
* Does component have children.
|
|
48
48
|
*/
|
|
@@ -146,12 +146,6 @@ export class MgMenuItem {
|
|
|
146
146
|
* @param guard - prevent action with guard
|
|
147
147
|
*/
|
|
148
148
|
this.updateItem = (guard) => {
|
|
149
|
-
const menu = this.getParentMenu();
|
|
150
|
-
// define element size
|
|
151
|
-
if ((menu === null || menu === void 0 ? void 0 : menu.size) !== undefined && !this.isItemMore)
|
|
152
|
-
this.size = menu.size;
|
|
153
|
-
else if (this.isItemMore)
|
|
154
|
-
this.size = this.element.dataset.size;
|
|
155
149
|
// when vertical main menu item contain an active item we force expanded
|
|
156
150
|
this.updateExpanded(this.expanded);
|
|
157
151
|
this.updateStatus(guard);
|
|
@@ -177,9 +171,6 @@ export class MgMenuItem {
|
|
|
177
171
|
const closePopover = (element) => {
|
|
178
172
|
if (element === null)
|
|
179
173
|
return;
|
|
180
|
-
else if (element !== this.element && element.expanded && element.shadowRoot.querySelector('mg-popover') !== null) {
|
|
181
|
-
element.expanded = false;
|
|
182
|
-
}
|
|
183
174
|
else {
|
|
184
175
|
closePopover(element.parentElement.closest('mg-menu-item'));
|
|
185
176
|
}
|
|
@@ -215,8 +206,23 @@ export class MgMenuItem {
|
|
|
215
206
|
}
|
|
216
207
|
watchStatus(newValue, oldValue) {
|
|
217
208
|
if (oldValue !== undefined)
|
|
218
|
-
this.
|
|
219
|
-
this.
|
|
209
|
+
this.classNavigationButtonClassList.delete(`${this.classNavigationButton}--${oldValue}`);
|
|
210
|
+
this.classNavigationButtonClassList.add(`${this.classNavigationButton}--${newValue}`);
|
|
211
|
+
}
|
|
212
|
+
watchIsIcon(newValue) {
|
|
213
|
+
const classIcon = `${this.classNavigationButton}--is-icon`;
|
|
214
|
+
if (newValue) {
|
|
215
|
+
// in vertical menu isIcon is not available
|
|
216
|
+
if (this.direction === 'vertical') {
|
|
217
|
+
this.isIcon = false;
|
|
218
|
+
}
|
|
219
|
+
else {
|
|
220
|
+
this.classNavigationButtonClassList.add(classIcon);
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
else {
|
|
224
|
+
this.classNavigationButtonClassList.delete(classIcon);
|
|
225
|
+
}
|
|
220
226
|
}
|
|
221
227
|
watchExpanded(newValue) {
|
|
222
228
|
if (typeof newValue !== 'boolean') {
|
|
@@ -231,15 +237,10 @@ export class MgMenuItem {
|
|
|
231
237
|
});
|
|
232
238
|
}
|
|
233
239
|
}
|
|
234
|
-
watchSize(newValue, oldValue) {
|
|
235
|
-
if (oldValue !== undefined)
|
|
236
|
-
this.navigationButtonClassList.delete(`${this.navigationButton}--size-${oldValue}`);
|
|
237
|
-
this.navigationButtonClassList.add(`${this.navigationButton}--size-${newValue}`);
|
|
238
|
-
}
|
|
239
240
|
validateDirection(newValue, oldValue) {
|
|
240
241
|
if (oldValue !== undefined)
|
|
241
|
-
this.
|
|
242
|
-
this.
|
|
242
|
+
this.classNavigationButtonClassList.delete(`${this.classNavigationButton}--${oldValue}`);
|
|
243
|
+
this.classNavigationButtonClassList.add(`${this.classNavigationButton}--${newValue}`);
|
|
243
244
|
// manage all sub levels child menu-items level with data-level attribut
|
|
244
245
|
Array.from(this.element.querySelectorAll('mg-menu-item')).forEach(item => {
|
|
245
246
|
if (this.isDirection(directions.VERTICAL, newValue)) {
|
|
@@ -262,6 +263,7 @@ export class MgMenuItem {
|
|
|
262
263
|
// eslint-disable-next-line @stencil-community/no-unused-watch
|
|
263
264
|
watchDataStyleDirection(newValue) {
|
|
264
265
|
this.direction = newValue;
|
|
266
|
+
this.watchIsIcon(this.isIcon);
|
|
265
267
|
}
|
|
266
268
|
/**
|
|
267
269
|
* has focus value in dataset
|
|
@@ -301,7 +303,7 @@ export class MgMenuItem {
|
|
|
301
303
|
this.watchExpanded(this.expanded);
|
|
302
304
|
this.watchTarget(this.target);
|
|
303
305
|
this.watchIdentifier(this.identifier);
|
|
304
|
-
this.
|
|
306
|
+
this.watchIsIcon(this.isIcon);
|
|
305
307
|
}
|
|
306
308
|
/**
|
|
307
309
|
* Check if component slots configuration
|
|
@@ -315,7 +317,6 @@ export class MgMenuItem {
|
|
|
315
317
|
// https://stenciljs.com/docs/component-lifecycle#componentwillload
|
|
316
318
|
return setTimeout(() => {
|
|
317
319
|
this.watchDataStyleDirection(this.element.dataset.styleDirection);
|
|
318
|
-
this.watchDataHasFocus(this.element.dataset.hasFocus);
|
|
319
320
|
this.updateItem([Status.ACTIVE]);
|
|
320
321
|
// emit loaded event when component is fully loaded
|
|
321
322
|
this.itemLoaded.emit();
|
|
@@ -339,19 +340,26 @@ export class MgMenuItem {
|
|
|
339
340
|
this.itemUpdated.emit();
|
|
340
341
|
});
|
|
341
342
|
}
|
|
343
|
+
/**
|
|
344
|
+
* Render information slot or notification badge
|
|
345
|
+
* @returns HTML Element
|
|
346
|
+
*/
|
|
347
|
+
renderInformationSlotOrNotification() {
|
|
348
|
+
return !this.displayNotificationBadge ? (h("slot", { name: "information" })) : (h("span", { class: `${this.classNavigationButton}-text-content-notification` }, h("mg-badge", { label: this.messages.badgeLabel, value: "!", variant: "text-color", slot: "information" })));
|
|
349
|
+
}
|
|
342
350
|
/**
|
|
343
351
|
* Render ineractive element
|
|
344
352
|
* @returns HTML Element
|
|
345
353
|
*/
|
|
346
354
|
renderInteractiveElement() {
|
|
347
355
|
const TagName = this.href !== undefined ? 'a' : 'button';
|
|
348
|
-
return (h(TagName, { href: this.href, class: this.
|
|
349
|
-
h("mg-icon", { key: "icon-new-tab", class: `${this.
|
|
356
|
+
return (h(TagName, { href: this.href, class: this.classNavigationButtonClassList.join(), tabindex: [Status.DISABLED, Status.HIDDEN].includes(this.status) ? -1 : undefined, disabled: this.status === Status.DISABLED, hidden: this.status === Status.HIDDEN, target: this.href !== undefined && this.target !== undefined ? this.target : undefined, "aria-expanded": this.hasChildren && this.expanded.toString(), "aria-current": this.status === Status.ACTIVE && 'page', onClick: this.handleElementCLick }, h("slot", { name: "image" }), h("div", { class: { [`${this.classNavigationButton}-center`]: true, 'mg-u-visually-hidden': this.isIcon } }, h("div", { class: `${this.classNavigationButton}-text-content` }, h("slot", { name: "label" }), !this.isIcon && this.renderInformationSlotOrNotification(), this.target === '_blank' && [
|
|
357
|
+
h("mg-icon", { key: "icon-new-tab", class: `${this.classNavigationButton}-new-tab`, icon: "arrow-up-right-square" }),
|
|
350
358
|
h("span", { key: "a11y-new-tab", class: "mg-u-visually-hidden" }, this.messages.openNewTab),
|
|
351
|
-
]), this.
|
|
352
|
-
[`${this.
|
|
353
|
-
[`${this.
|
|
354
|
-
} }, h("mg-icon", { icon: "chevron-down" })))));
|
|
359
|
+
]), !this.isIcon && h("slot", { name: "metadata" })), this.isIcon && this.renderInformationSlotOrNotification(), this.hasChildren && this.href === undefined && !this.isIcon && (h("span", { class: {
|
|
360
|
+
[`${this.classNavigationButton}-chevron`]: true,
|
|
361
|
+
[`${this.classNavigationButton}-chevron--rotate`]: this.expanded === true,
|
|
362
|
+
} }, h("mg-icon", { icon: "chevron-down", size: "small" })))));
|
|
355
363
|
}
|
|
356
364
|
/**
|
|
357
365
|
* Render
|
|
@@ -362,7 +370,7 @@ export class MgMenuItem {
|
|
|
362
370
|
['mg-c-menu-item__collapse-container']: true,
|
|
363
371
|
['mg-c-menu-item__collapse-container--first-level']: (this.isInMainMenu() || this.isItemMore) && this.isDirection(directions.HORIZONTAL),
|
|
364
372
|
});
|
|
365
|
-
return (h(Host, { key: '
|
|
373
|
+
return (h(Host, { key: '374bf5cb625380973d15163b1088e7e743da5dd4', role: this.isItemMore ? 'presentation' : 'listitem' }, this.hasPopover() ? (h("mg-popover", { display: this.expanded, placement: "bottom-start", arrowHide: true, "onDisplay-change": this.handlePopoverDisplay, identifier: this.popoverIdentifier, "data-fallback-placement": "bottom-end" // use for the last element of the menu if it is placed on the right side
|
|
366
374
|
}, this.renderInteractiveElement(), h("div", { class: getContainerClasses(), slot: "content" }, this.renderSlot()))) : ([
|
|
367
375
|
this.renderInteractiveElement(),
|
|
368
376
|
h("div", { key: "vertical-container", class: getContainerClasses(), hidden: !this.expanded }, this.renderSlot()),
|
|
@@ -431,7 +439,8 @@ export class MgMenuItem {
|
|
|
431
439
|
"TargetType": {
|
|
432
440
|
"location": "import",
|
|
433
441
|
"path": "./mg-menu-item.conf",
|
|
434
|
-
"id": "src/components/molecules/menus/mg-menu-item/mg-menu-item.conf.ts::TargetType"
|
|
442
|
+
"id": "src/components/molecules/menus/mg-menu-item/mg-menu-item.conf.ts::TargetType",
|
|
443
|
+
"referenceLocation": "TargetType"
|
|
435
444
|
}
|
|
436
445
|
}
|
|
437
446
|
},
|
|
@@ -456,7 +465,8 @@ export class MgMenuItem {
|
|
|
456
465
|
"MgMenuStatusType": {
|
|
457
466
|
"location": "import",
|
|
458
467
|
"path": "./mg-menu-item.conf",
|
|
459
|
-
"id": "src/components/molecules/menus/mg-menu-item/mg-menu-item.conf.ts::MgMenuStatusType"
|
|
468
|
+
"id": "src/components/molecules/menus/mg-menu-item/mg-menu-item.conf.ts::MgMenuStatusType",
|
|
469
|
+
"referenceLocation": "MgMenuStatusType"
|
|
460
470
|
}
|
|
461
471
|
}
|
|
462
472
|
},
|
|
@@ -472,6 +482,26 @@ export class MgMenuItem {
|
|
|
472
482
|
"attribute": "status",
|
|
473
483
|
"defaultValue": "'visible'"
|
|
474
484
|
},
|
|
485
|
+
"isIcon": {
|
|
486
|
+
"type": "boolean",
|
|
487
|
+
"mutable": true,
|
|
488
|
+
"complexType": {
|
|
489
|
+
"original": "boolean",
|
|
490
|
+
"resolved": "boolean",
|
|
491
|
+
"references": {}
|
|
492
|
+
},
|
|
493
|
+
"required": false,
|
|
494
|
+
"optional": true,
|
|
495
|
+
"docs": {
|
|
496
|
+
"tags": [],
|
|
497
|
+
"text": "Define menu-item isIcon style."
|
|
498
|
+
},
|
|
499
|
+
"getter": false,
|
|
500
|
+
"setter": false,
|
|
501
|
+
"reflect": false,
|
|
502
|
+
"attribute": "is-icon",
|
|
503
|
+
"defaultValue": "false"
|
|
504
|
+
},
|
|
475
505
|
"expanded": {
|
|
476
506
|
"type": "boolean",
|
|
477
507
|
"mutable": true,
|
|
@@ -496,8 +526,7 @@ export class MgMenuItem {
|
|
|
496
526
|
}
|
|
497
527
|
static get states() {
|
|
498
528
|
return {
|
|
499
|
-
"
|
|
500
|
-
"navigationButtonClassList": {},
|
|
529
|
+
"classNavigationButtonClassList": {},
|
|
501
530
|
"direction": {},
|
|
502
531
|
"isItemMore": {},
|
|
503
532
|
"hasChildren": {},
|
|
@@ -548,12 +577,12 @@ export class MgMenuItem {
|
|
|
548
577
|
}, {
|
|
549
578
|
"propName": "status",
|
|
550
579
|
"methodName": "watchStatus"
|
|
580
|
+
}, {
|
|
581
|
+
"propName": "isIcon",
|
|
582
|
+
"methodName": "watchIsIcon"
|
|
551
583
|
}, {
|
|
552
584
|
"propName": "expanded",
|
|
553
585
|
"methodName": "watchExpanded"
|
|
554
|
-
}, {
|
|
555
|
-
"propName": "size",
|
|
556
|
-
"methodName": "watchSize"
|
|
557
586
|
}, {
|
|
558
587
|
"propName": "direction",
|
|
559
588
|
"methodName": "validateDirection"
|