@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
|
@@ -141,7 +141,7 @@ export class MgActionMore {
|
|
|
141
141
|
[`${this.classBase}__chevron--rotate`]: this.expanded === true,
|
|
142
142
|
} }, h("mg-icon", { icon: "chevron-down" })));
|
|
143
143
|
}
|
|
144
|
-
return (h(Host, { key: '
|
|
144
|
+
return (h(Host, { key: '184355435ec346d682c2df4aa8b33bf5f54e77e7', "data-mg-popover-guard": this.mgPopoverIdentifier }, h("span", { key: '8176489e5dd7741311745d015b8ef7f2a4f63ea9', class: this.classBase }, h("mg-popover", { key: '3ee64b21556ee9e910939ad2fc9e3fbf8e4bd964', identifier: this.mgPopoverIdentifier, display: this.expanded, "onDisplay-change": this.handleDisplayChange }, h("mg-button", { key: 'cf8f7f4f736d6a8338a4f6eebce04b4e2be49825', variant: this.button.variant, isIcon: this.button.isIcon, disabled: this.button.disabled, type: "button", label: buttonLabel, onClick: this.handleButton }, this.icon && h("mg-icon", Object.assign({ key: 'ee8b4f13bac85ccdd5e9d72edbaa957054c304ec' }, this.icon)), !this.button.isIcon && buttonContent), h("div", { key: '1c78fb9a98d59fa5422c5105ecb13d2f2884c7d2', slot: "content" }, h("mg-menu", { key: '522d915d4a38529f7709640bb96eebb81ccc86af', direction: directions.VERTICAL, label: this.messages.label }, this.items.map(item => {
|
|
145
145
|
var _a, _b;
|
|
146
146
|
return isMgActionMoreDivider(item) ? (h("mg-divider", { class: "mg-c-action-more__divider", key: "divider", "full-width": true })) : (h("mg-menu-item", { key: item.label, status: item.status || Status.VISIBLE, target: item.target, href: item.href,
|
|
147
147
|
// eslint-disable-next-line react/jsx-no-bind
|
|
@@ -172,12 +172,14 @@ export class MgActionMore {
|
|
|
172
172
|
"MgActionMoreItemType": {
|
|
173
173
|
"location": "import",
|
|
174
174
|
"path": "./mg-action-more.conf",
|
|
175
|
-
"id": "src/components/molecules/mg-action-more/mg-action-more.conf.ts::MgActionMoreItemType"
|
|
175
|
+
"id": "src/components/molecules/mg-action-more/mg-action-more.conf.ts::MgActionMoreItemType",
|
|
176
|
+
"referenceLocation": "MgActionMoreItemType"
|
|
176
177
|
},
|
|
177
178
|
"MgActionMoreDividerType": {
|
|
178
179
|
"location": "import",
|
|
179
180
|
"path": "./mg-action-more.conf",
|
|
180
|
-
"id": "src/components/molecules/mg-action-more/mg-action-more.conf.ts::MgActionMoreDividerType"
|
|
181
|
+
"id": "src/components/molecules/mg-action-more/mg-action-more.conf.ts::MgActionMoreDividerType",
|
|
182
|
+
"referenceLocation": "MgActionMoreDividerType"
|
|
181
183
|
}
|
|
182
184
|
}
|
|
183
185
|
},
|
|
@@ -195,12 +197,13 @@ export class MgActionMore {
|
|
|
195
197
|
"mutable": true,
|
|
196
198
|
"complexType": {
|
|
197
199
|
"original": "MgActionMoreIconType",
|
|
198
|
-
"resolved": "{ icon: \"filter\" | \"
|
|
200
|
+
"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\"; }",
|
|
199
201
|
"references": {
|
|
200
202
|
"MgActionMoreIconType": {
|
|
201
203
|
"location": "import",
|
|
202
204
|
"path": "./mg-action-more.conf",
|
|
203
|
-
"id": "src/components/molecules/mg-action-more/mg-action-more.conf.ts::MgActionMoreIconType"
|
|
205
|
+
"id": "src/components/molecules/mg-action-more/mg-action-more.conf.ts::MgActionMoreIconType",
|
|
206
|
+
"referenceLocation": "MgActionMoreIconType"
|
|
204
207
|
}
|
|
205
208
|
}
|
|
206
209
|
},
|
|
@@ -218,12 +221,13 @@ export class MgActionMore {
|
|
|
218
221
|
"mutable": false,
|
|
219
222
|
"complexType": {
|
|
220
223
|
"original": "MgActionMoreButtonType",
|
|
221
|
-
"resolved": "{
|
|
224
|
+
"resolved": "{ variant: \"flat\" | \"info\" | \"link\" | \"success\" | \"danger\" | \"danger-alt\" | \"primary\" | \"secondary\"; label?: string; disabled?: boolean; isIcon: boolean; }",
|
|
222
225
|
"references": {
|
|
223
226
|
"MgActionMoreButtonType": {
|
|
224
227
|
"location": "import",
|
|
225
228
|
"path": "./mg-action-more.conf",
|
|
226
|
-
"id": "src/components/molecules/mg-action-more/mg-action-more.conf.ts::MgActionMoreButtonType"
|
|
229
|
+
"id": "src/components/molecules/mg-action-more/mg-action-more.conf.ts::MgActionMoreButtonType",
|
|
230
|
+
"referenceLocation": "MgActionMoreButtonType"
|
|
227
231
|
}
|
|
228
232
|
}
|
|
229
233
|
},
|
|
@@ -142,7 +142,7 @@ export class MgAlert {
|
|
|
142
142
|
* @returns HTML Element
|
|
143
143
|
*/
|
|
144
144
|
render() {
|
|
145
|
-
return (h("mg-message", { key: '
|
|
145
|
+
return (h("mg-message", { key: '9041d8643bf4d0d44f20d30ac3c1d9aa46d6e060', class: this.classCollection.join(), role: ['info', 'success'].includes(this.variant) ? 'status' : 'alert', variant: this.variant, variantStyle: this.variantStyle }, h("slot", { key: '94d1a430e9af605fa2ea2b557e82fc15f1cc148b' }), this.hasActions ? (h("span", { slot: "actions" }, h("slot", { name: "actions" }))) : (h("span", { class: "mg-c-alert__close-button" }, h("mg-button", { "is-icon": true, variant: "flat", label: this.messages.alert.closeButton, onClick: this.handleClose }, h("mg-icon", { icon: "cross" }))))));
|
|
146
146
|
}
|
|
147
147
|
static get is() { return "mg-alert"; }
|
|
148
148
|
static get encapsulation() { return "shadow"; }
|
|
@@ -187,7 +187,8 @@ export class MgAlert {
|
|
|
187
187
|
"VariantType": {
|
|
188
188
|
"location": "import",
|
|
189
189
|
"path": "./mg-alert.conf",
|
|
190
|
-
"id": "src/components/molecules/mg-alert/mg-alert.conf.ts::VariantType"
|
|
190
|
+
"id": "src/components/molecules/mg-alert/mg-alert.conf.ts::VariantType",
|
|
191
|
+
"referenceLocation": "VariantType"
|
|
191
192
|
}
|
|
192
193
|
}
|
|
193
194
|
},
|
|
@@ -213,7 +214,8 @@ export class MgAlert {
|
|
|
213
214
|
"VariantStyleType": {
|
|
214
215
|
"location": "import",
|
|
215
216
|
"path": "./mg-alert.conf",
|
|
216
|
-
"id": "src/components/molecules/mg-alert/mg-alert.conf.ts::VariantStyleType"
|
|
217
|
+
"id": "src/components/molecules/mg-alert/mg-alert.conf.ts::VariantStyleType",
|
|
218
|
+
"referenceLocation": "VariantStyleType"
|
|
217
219
|
}
|
|
218
220
|
}
|
|
219
221
|
},
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
import { initLocales } from "../../../locales";
|
|
3
|
+
import { isValidString, toString } from "@mgdis/core-ui-helpers/dist/utils";
|
|
4
|
+
/**
|
|
5
|
+
* Type guard for BreadcrumbItemType[]
|
|
6
|
+
* @param items - value to check
|
|
7
|
+
* @returns true if items is a non-empty array of valid BreadcrumbItemType (label required, href required except for last item)
|
|
8
|
+
*/
|
|
9
|
+
const isBreadcrumbItems = (items) => Array.isArray(items) &&
|
|
10
|
+
items.length > 0 &&
|
|
11
|
+
items.every((item, index) => typeof item === 'object' && item !== null && isValidString(item.label) && (index === items.length - 1 || isValidString(item.href)));
|
|
12
|
+
export class MgBreadcrumb {
|
|
13
|
+
validateItems(newValue) {
|
|
14
|
+
if (newValue === undefined || !isBreadcrumbItems(newValue)) {
|
|
15
|
+
throw new Error(`<mg-breadcrumb> prop "items" is required and all values must be the same type, BreadcrumbItemType. Passed value: ${toString(newValue)}.`);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
/***********
|
|
19
|
+
* Methods *
|
|
20
|
+
**********/
|
|
21
|
+
/**
|
|
22
|
+
* Render a single breadcrumb item (link or current page)
|
|
23
|
+
* @param item - The breadcrumb item
|
|
24
|
+
* @param isLast - Whether this item is the last in the list
|
|
25
|
+
* @returns The rendered link or span element
|
|
26
|
+
*/
|
|
27
|
+
renderItem(item, isLast) {
|
|
28
|
+
if (isValidString(item.href)) {
|
|
29
|
+
return (h("a", { href: item.href, "aria-label": item.icon !== undefined ? item.label : undefined, "aria-current": isLast ? 'page' : undefined }, item.icon !== undefined ? h("mg-icon", { icon: item.icon }) : item.label));
|
|
30
|
+
}
|
|
31
|
+
return h("span", null, item.label);
|
|
32
|
+
}
|
|
33
|
+
/*************
|
|
34
|
+
* Lifecycle *
|
|
35
|
+
*************/
|
|
36
|
+
componentWillLoad() {
|
|
37
|
+
this.validateItems(this.items);
|
|
38
|
+
this.messages = initLocales(this.element).messages.breadcrumb;
|
|
39
|
+
}
|
|
40
|
+
render() {
|
|
41
|
+
return (h("nav", { key: 'af5c541e6a268af67762eb9d384269511fe0be17', "aria-label": this.messages.label, class: "mg-c-breadcrumb" }, h("ol", { key: 'b5fdfe61eb2c826b3462bdd65cacfb73d4f00484', class: "mg-c-breadcrumb__list" }, this.items.map((item, index) => {
|
|
42
|
+
var _a;
|
|
43
|
+
return (h("li", { key: `${index}-${(_a = item.href) !== null && _a !== void 0 ? _a : item.label}`, class: "mg-c-breadcrumb__list-item" }, this.renderItem(item, index === this.items.length - 1)));
|
|
44
|
+
}))));
|
|
45
|
+
}
|
|
46
|
+
static get is() { return "mg-breadcrumb"; }
|
|
47
|
+
static get encapsulation() { return "shadow"; }
|
|
48
|
+
static get originalStyleUrls() {
|
|
49
|
+
return {
|
|
50
|
+
"$": ["../../../../node_modules/@mgdis/styles/dist/components/mg-breadcrumb.css"]
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
static get styleUrls() {
|
|
54
|
+
return {
|
|
55
|
+
"$": ["../../../../node_modules/@mgdis/styles/dist/components/mg-breadcrumb.css"]
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
static get properties() {
|
|
59
|
+
return {
|
|
60
|
+
"items": {
|
|
61
|
+
"type": "unknown",
|
|
62
|
+
"mutable": false,
|
|
63
|
+
"complexType": {
|
|
64
|
+
"original": "BreadcrumbItemType[]",
|
|
65
|
+
"resolved": "BreadcrumbItemType[]",
|
|
66
|
+
"references": {
|
|
67
|
+
"BreadcrumbItemType": {
|
|
68
|
+
"location": "import",
|
|
69
|
+
"path": "./mg-breadcrumb.conf",
|
|
70
|
+
"id": "src/components/molecules/mg-breadcrumb/mg-breadcrumb.conf.ts::BreadcrumbItemType",
|
|
71
|
+
"referenceLocation": "BreadcrumbItemType"
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
"required": true,
|
|
76
|
+
"optional": false,
|
|
77
|
+
"docs": {
|
|
78
|
+
"tags": [],
|
|
79
|
+
"text": "Breadcrumb items (hierarchical order: root \u2192 current page)."
|
|
80
|
+
},
|
|
81
|
+
"getter": false,
|
|
82
|
+
"setter": false
|
|
83
|
+
}
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
static get elementRef() { return "element"; }
|
|
87
|
+
static get watchers() {
|
|
88
|
+
return [{
|
|
89
|
+
"propName": "items",
|
|
90
|
+
"methodName": "validateItems"
|
|
91
|
+
}];
|
|
92
|
+
}
|
|
93
|
+
}
|
|
@@ -53,7 +53,7 @@ export class MgDetails {
|
|
|
53
53
|
* @returns HTML Element
|
|
54
54
|
*/
|
|
55
55
|
render() {
|
|
56
|
-
return (h("details", { key: '
|
|
56
|
+
return (h("details", { key: 'bbaac6909fa5f3fbd3236b2a8ace0f7c80b2580b', class: { 'mg-c-details': true, 'mg-c-details--empty-summary': this.isEmptySummary }, onToggle: this.handleToggle, open: this.expanded, ref: (el) => (this.details = el) }, h("summary", { key: '2ed8228b63403dd9b386bf3fa70c9094516b6f0e' }, h("slot", { key: '5461d77d2b2869b14737a5c7cfc40a1f9584ee03', name: "summary" }), h("span", { key: 'bb089365bdeaa7b934b97cff6f5f7c67587048e1', class: "mg-c-details__toggle" }, h("mg-icon", { key: 'dc1a30338703ad4182d50f9953a903ae0f68ecb1', icon: "chevron-up", class: { 'mg-c-details__toggle-icon': true, 'mg-c-details__toggle-icon--reverse': !this.expanded } }), h("span", { key: 'a32cbaf9e38b71540deeaa8980895c34a7288ecb', class: { 'mg-u-visually-hidden': this.hideSummary } }, this.expanded ? this.toggleOpened : this.toggleClosed))), h("div", { key: 'b9c2bc7d681da8ac8b4dec5ff25287bc68975fb6', class: "mg-c-details__details" }, h("slot", { key: '069f05b4c133ff13055681e0b05bb98744303137', name: "details" }))));
|
|
57
57
|
}
|
|
58
58
|
static get is() { return "mg-details"; }
|
|
59
59
|
static get encapsulation() { return "shadow"; }
|
|
@@ -133,7 +133,7 @@ export class MgFieldset {
|
|
|
133
133
|
* @returns HTML Element
|
|
134
134
|
*/
|
|
135
135
|
render() {
|
|
136
|
-
return (h("mg-input", { key: '
|
|
136
|
+
return (h("mg-input", { key: 'a32d9d6e0a77eddf6dac1c741066cb600c2f27b3', label: this.legend, identifier: this.identifier, class: this.classCollection.join(), labelOnTop: !this.legendHide, labelHeading: this.legendHeading, labelBorderDisplay: this.legendHeading && this.legendBorderDisplay, labelHide: this.legendHide, inputsOnBottom: this.legendHeading !== undefined, tooltip: this.tooltip, tooltipPosition: 'label', helpText: this.helpText, errorMessage: !this.valid && isValidString(this.errorMessage) ? this.errorMessage : undefined }, h("span", { key: '5d05e51fd64fc43458bccb3287fcf3a4fe462c00', class: "mg-c-input__input-group" }, h("slot", { key: 'd641e3007cdd2adfa6115f639603de78caa63202' }))));
|
|
137
137
|
}
|
|
138
138
|
static get is() { return "mg-fieldset"; }
|
|
139
139
|
static get encapsulation() { return "shadow"; }
|
|
@@ -227,7 +227,8 @@ export class MgFieldset {
|
|
|
227
227
|
"labelHeading": {
|
|
228
228
|
"location": "import",
|
|
229
229
|
"path": "../inputs/mg-input/mg-input.conf",
|
|
230
|
-
"id": "src/components/molecules/inputs/mg-input/mg-input.conf.ts::labelHeading"
|
|
230
|
+
"id": "src/components/molecules/inputs/mg-input/mg-input.conf.ts::labelHeading",
|
|
231
|
+
"referenceLocation": "labelHeading"
|
|
231
232
|
}
|
|
232
233
|
}
|
|
233
234
|
},
|
|
@@ -242,7 +242,7 @@ export class MgForm {
|
|
|
242
242
|
* @returns HTML Element
|
|
243
243
|
*/
|
|
244
244
|
render() {
|
|
245
|
-
return (h("form", { key: '
|
|
245
|
+
return (h("form", { key: 'e528a49eba4e57f809dd0a6dd5462c2be3677da5', class: this.classCollection.join(), id: this.identifier, name: this.name, onSubmit: this.handleFormSubmit, role: this.ariaRole }, this.requiredMessageText && h("p", { key: '37eb0c30984b998ef8d78ff8ae74949c4761c21a', innerHTML: this.requiredMessageText }), h("slot", { key: '8ae80522118a3e87ca735545a48844c1e4e3ab30' }), !this.readonly && !this.disabled && h("slot", { key: '4cdeba849881f9753ff08df6c456397e859c6a0d', name: "actions" })));
|
|
246
246
|
}
|
|
247
247
|
static get is() { return "mg-form"; }
|
|
248
248
|
static get encapsulation() { return "shadow"; }
|
|
@@ -328,7 +328,8 @@ export class MgForm {
|
|
|
328
328
|
"RequiredMessageStatusType": {
|
|
329
329
|
"location": "import",
|
|
330
330
|
"path": "./mg-form.conf",
|
|
331
|
-
"id": "src/components/molecules/mg-form/mg-form.conf.ts::RequiredMessageStatusType"
|
|
331
|
+
"id": "src/components/molecules/mg-form/mg-form.conf.ts::RequiredMessageStatusType",
|
|
332
|
+
"referenceLocation": "RequiredMessageStatusType"
|
|
332
333
|
}
|
|
333
334
|
}
|
|
334
335
|
},
|
|
@@ -353,7 +354,8 @@ export class MgForm {
|
|
|
353
354
|
"AriaRoleType": {
|
|
354
355
|
"location": "import",
|
|
355
356
|
"path": "./mg-form.conf",
|
|
356
|
-
"id": "src/components/molecules/mg-form/mg-form.conf.ts::AriaRoleType"
|
|
357
|
+
"id": "src/components/molecules/mg-form/mg-form.conf.ts::AriaRoleType",
|
|
358
|
+
"referenceLocation": "AriaRoleType"
|
|
357
359
|
}
|
|
358
360
|
}
|
|
359
361
|
},
|
package/dist/collection/components/molecules/mg-illustrated-message/mg-illustrated-message.js
CHANGED
|
@@ -81,7 +81,7 @@ export class MgIllustratedMessage {
|
|
|
81
81
|
* @returns HTML Element
|
|
82
82
|
*/
|
|
83
83
|
render() {
|
|
84
|
-
return (h("div", { key: '
|
|
84
|
+
return (h("div", { key: 'c9d8c8bfd2792b1cf5e78ab9d168d597b20e9a1e', class: this.classCollection.join() }, h("div", { key: 'cc8fa03147b9e59e6e8e015be9ed2b8dddd92ded', class: "mg-c-illustrated-message__illustration" }, h("slot", { key: '83a4ec2223c4e74511beb7c0abfa10e77cee425d', name: "illustration" })), h("div", { key: 'dbb4d13ca5324cab889fa2acc9b9b22522d7a8ec', class: "mg-c-illustrated-message__slots" }, h("slot", { key: '9e74d84becf29539ec9c37e8ad1e317714f3c86c', name: "title" }), h("slot", { key: 'ae97d25c19b76ca092560d2555ebd6a87f542ffe', name: "details" }))));
|
|
85
85
|
}
|
|
86
86
|
static get is() { return "mg-illustrated-message"; }
|
|
87
87
|
static get encapsulation() { return "shadow"; }
|
|
@@ -107,7 +107,8 @@ export class MgIllustratedMessage {
|
|
|
107
107
|
"IllustratedMessageSizeType": {
|
|
108
108
|
"location": "import",
|
|
109
109
|
"path": "./mg-illustrated-message.conf",
|
|
110
|
-
"id": "src/components/molecules/mg-illustrated-message/mg-illustrated-message.conf.ts::IllustratedMessageSizeType"
|
|
110
|
+
"id": "src/components/molecules/mg-illustrated-message/mg-illustrated-message.conf.ts::IllustratedMessageSizeType",
|
|
111
|
+
"referenceLocation": "IllustratedMessageSizeType"
|
|
111
112
|
}
|
|
112
113
|
}
|
|
113
114
|
},
|
|
@@ -133,7 +134,8 @@ export class MgIllustratedMessage {
|
|
|
133
134
|
"IllustratedMessageDirectionType": {
|
|
134
135
|
"location": "import",
|
|
135
136
|
"path": "./mg-illustrated-message.conf",
|
|
136
|
-
"id": "src/components/molecules/mg-illustrated-message/mg-illustrated-message.conf.ts::IllustratedMessageDirectionType"
|
|
137
|
+
"id": "src/components/molecules/mg-illustrated-message/mg-illustrated-message.conf.ts::IllustratedMessageDirectionType",
|
|
138
|
+
"referenceLocation": "IllustratedMessageDirectionType"
|
|
137
139
|
}
|
|
138
140
|
}
|
|
139
141
|
},
|
|
@@ -29,7 +29,7 @@ export class MgLoader {
|
|
|
29
29
|
* @returns HTML Element
|
|
30
30
|
*/
|
|
31
31
|
render() {
|
|
32
|
-
return (h("div", { key: '
|
|
32
|
+
return (h("div", { key: '739b4cbacd8a8da056dbb1445c40fac2cf26766a', class: "mg-c-loader", "aria-live": "polite" }, h("mg-icon", { key: '95d3cbf26fcd6dbf0dad4853bf55aa66385f1aba', icon: "loader", spin: true }), h("span", { key: 'f6322cd3054d8976bd2ec24f86a2d6bb60ca7ae1', class: { 'mg-u-visually-hidden': this.messageHide } }, this.message || this.messages.loader.inProgress)));
|
|
33
33
|
}
|
|
34
34
|
static get is() { return "mg-loader"; }
|
|
35
35
|
static get encapsulation() { return "shadow"; }
|
|
@@ -86,9 +86,9 @@ export class MgMessage {
|
|
|
86
86
|
* @returns HTML Element
|
|
87
87
|
*/
|
|
88
88
|
render() {
|
|
89
|
-
return (h("div", { key: '
|
|
89
|
+
return (h("div", { key: 'f99bf527eb2c6005eeaec11f89aaa08f8865ea57', class: this.classCollection.join() }, h("mg-card", { key: 'beede3cd97b022d947c216b6bba454a104ba5790', shadow: true }, this.variantStyle === 'bar-left' && h("span", { key: '515828d725a996c9d57b39ad75e9373150a1b78a', class: "mg-c-message__bar" }), h("span", { key: '02ae41c66af25c2611b9b6cb8c87a1ad99346fa3', class: "mg-c-message__icon" }, h("mg-icon", { key: '3eadb40ed0dfa5ec51155608a67769c5fee3d402', icon: this.getIcon() })), h("div", { key: 'b832251e8f330d00b512bcd508ae9bf6e5f511cb', class: "mg-c-message__content" }, h("span", { key: 'c3520fc49bd5c3c187a83823050ceb9ca8c12d46', class: "mg-c-message__content-slot" }, h("slot", { key: 'f4064dff9536cbb76e45c5c4c1a89621da9531b2' })), this.hasActions && [
|
|
90
90
|
h("span", { class: "mg-c-message__content-separator", key: "content-separator" }),
|
|
91
|
-
h("span", { class: "mg-c-message__content-actions-slot", key: "content-actions-slot" }, h("slot", { key: '
|
|
91
|
+
h("span", { class: "mg-c-message__content-actions-slot", key: "content-actions-slot" }, h("slot", { key: '5585f7c14c2c3896cfdb5319414cd82f4d4b3a8b', name: "actions" })),
|
|
92
92
|
]))));
|
|
93
93
|
}
|
|
94
94
|
static get is() { return "mg-message"; }
|
|
@@ -115,7 +115,8 @@ export class MgMessage {
|
|
|
115
115
|
"VariantType": {
|
|
116
116
|
"location": "import",
|
|
117
117
|
"path": "./mg-message.conf",
|
|
118
|
-
"id": "src/components/molecules/mg-message/mg-message.conf.ts::VariantType"
|
|
118
|
+
"id": "src/components/molecules/mg-message/mg-message.conf.ts::VariantType",
|
|
119
|
+
"referenceLocation": "VariantType"
|
|
119
120
|
}
|
|
120
121
|
}
|
|
121
122
|
},
|
|
@@ -141,7 +142,8 @@ export class MgMessage {
|
|
|
141
142
|
"VariantStyleType": {
|
|
142
143
|
"location": "import",
|
|
143
144
|
"path": "./mg-message.conf",
|
|
144
|
-
"id": "src/components/molecules/mg-message/mg-message.conf.ts::VariantStyleType"
|
|
145
|
+
"id": "src/components/molecules/mg-message/mg-message.conf.ts::VariantStyleType",
|
|
146
|
+
"referenceLocation": "VariantStyleType"
|
|
145
147
|
}
|
|
146
148
|
}
|
|
147
149
|
},
|
|
@@ -106,11 +106,11 @@ export class MgModal {
|
|
|
106
106
|
* @returns HTML Element
|
|
107
107
|
*/
|
|
108
108
|
render() {
|
|
109
|
-
return (h("dialog", { key: '
|
|
109
|
+
return (h("dialog", { key: '2d99322fd3c80b8cbfea70589cf579e0c1c6f06b', role: this.dialogRole, id: this.identifier, class: this.classCollection.join(), "aria-labelledby": this.titleId, ref: (el) => {
|
|
110
110
|
if (el !== null) {
|
|
111
111
|
this.dialog = el;
|
|
112
112
|
}
|
|
113
|
-
} }, h("mg-card", { key: '
|
|
113
|
+
} }, h("mg-card", { key: '32692a6d41ef30b3d3e61ddcfea47350d374ed09', shadow: true }, h("div", { key: 'c87bb43bb069671b65a9759ee293e77975707597', class: "mg-c-modal__dialog" }, h("header", { key: '1272a946878efcf8c69f3b09852ba6938cbe31b0', class: "mg-c-modal__header" }, this.closeButton && (h("span", { key: '0704656c7c5ac4c8d405f2cd673e91f72763ee8f', class: "mg-c-modal__close-button" }, h("mg-button", { key: '4402971c763ee34145de5bd69d367fde68f9d1a2', "is-icon": true, variant: "flat", label: this.messages.modal.closeButton, onClick: this.handleClose }, h("mg-icon", { key: '9e16add6a3e387971507a252671c895b6c94a586', icon: "cross" })))), h("h1", { key: '3e4fc2b4419398528565d382b728b8b752758ddd', class: "mg-c-modal__title", id: this.titleId }, this.modalTitle)), h("article", { key: '170ff6bd9592687baa4c561615f540ad1c7400e4', class: "mg-c-modal__content" }, h("slot", { key: 'cb710e2a57e4c997deac367169b56047af1200b1' })), this.hasActions && (h("footer", { key: '1e08d67caeaaaf75eb97faa11528719ea537c24c', class: "mg-c-modal__footer" }, h("slot", { key: '461ec8e4117477aef08dc6d346ad0bf6007ec12d', name: "actions" })))))));
|
|
114
114
|
}
|
|
115
115
|
static get is() { return "mg-modal"; }
|
|
116
116
|
static get encapsulation() { return "shadow"; }
|
|
@@ -156,7 +156,8 @@ export class MgModal {
|
|
|
156
156
|
"DialogRoleType": {
|
|
157
157
|
"location": "import",
|
|
158
158
|
"path": "./mg-modal.conf",
|
|
159
|
-
"id": "src/components/molecules/mg-modal/mg-modal.conf.ts::DialogRoleType"
|
|
159
|
+
"id": "src/components/molecules/mg-modal/mg-modal.conf.ts::DialogRoleType",
|
|
160
|
+
"referenceLocation": "DialogRoleType"
|
|
160
161
|
}
|
|
161
162
|
}
|
|
162
163
|
},
|
|
@@ -279,7 +279,8 @@ export class MgPagination {
|
|
|
279
279
|
"PaginationMessagesType": {
|
|
280
280
|
"location": "import",
|
|
281
281
|
"path": "./mg-pagination.conf",
|
|
282
|
-
"id": "src/components/molecules/mg-pagination/mg-pagination.conf.ts::PaginationMessagesType"
|
|
282
|
+
"id": "src/components/molecules/mg-pagination/mg-pagination.conf.ts::PaginationMessagesType",
|
|
283
|
+
"referenceLocation": "PaginationMessagesType"
|
|
283
284
|
}
|
|
284
285
|
}
|
|
285
286
|
},
|
|
@@ -224,7 +224,7 @@ export class MgPanel {
|
|
|
224
224
|
*/
|
|
225
225
|
render() {
|
|
226
226
|
const headerId = `${this.identifier}-header`;
|
|
227
|
-
return (h("section", { key: '
|
|
227
|
+
return (h("section", { key: '3662204d763051c34ea13de4b7b3f7abc7914b81', class: this.classCollection.join(), id: this.identifier }, h("mg-card", { key: '46f113258172b1d040f65a4d312554b0c0551489', shadow: this.shadow }, h("header", { key: '1d7e7a48a5c4f89d141a5a7e46b220d4f9c082a5', class: { 'mg-c-panel__header': true, 'mg-c-panel__header--reverse': this.titlePosition === 'right' }, id: headerId }, this.renderHeaderChildren()), h("article", { key: 'ab0aec831cc79d982b7556d6e245c80ae2979083', class: "mg-c-panel__content", id: `${this.identifier}-content`, "aria-labelledby": headerId, hidden: !this.expanded }, h("slot", { key: 'e831573fe9d5ff783073d123b7e2a54baad73bfc' })))));
|
|
228
228
|
}
|
|
229
229
|
static get is() { return "mg-panel"; }
|
|
230
230
|
static get encapsulation() { return "shadow"; }
|
|
@@ -347,7 +347,8 @@ export class MgPanel {
|
|
|
347
347
|
"TitlePositionType": {
|
|
348
348
|
"location": "import",
|
|
349
349
|
"path": "./mg-panel.conf",
|
|
350
|
-
"id": "src/components/molecules/mg-panel/mg-panel.conf.ts::TitlePositionType"
|
|
350
|
+
"id": "src/components/molecules/mg-panel/mg-panel.conf.ts::TitlePositionType",
|
|
351
|
+
"referenceLocation": "TitlePositionType"
|
|
351
352
|
}
|
|
352
353
|
}
|
|
353
354
|
},
|
|
@@ -393,7 +394,8 @@ export class MgPanel {
|
|
|
393
394
|
"ExpandToggleDisplayType": {
|
|
394
395
|
"location": "import",
|
|
395
396
|
"path": "./mg-panel.conf",
|
|
396
|
-
"id": "src/components/molecules/mg-panel/mg-panel.conf.ts::ExpandToggleDisplayType"
|
|
397
|
+
"id": "src/components/molecules/mg-panel/mg-panel.conf.ts::ExpandToggleDisplayType",
|
|
398
|
+
"referenceLocation": "ExpandToggleDisplayType"
|
|
397
399
|
}
|
|
398
400
|
}
|
|
399
401
|
},
|
package/dist/collection/components/molecules/mg-popover/mg-popover-content/mg-popover-content.js
CHANGED
|
@@ -46,7 +46,7 @@ export class MgPopoverContent {
|
|
|
46
46
|
* @returns HTML Element
|
|
47
47
|
*/
|
|
48
48
|
render() {
|
|
49
|
-
return (h(Host, { key: '
|
|
49
|
+
return (h(Host, { key: '054fc82954b39a488f7fe5cb391d89b5fa4a61fe' }, h("mg-card", { key: 'bb89bada37069b50295bd93d988667c3b85eada3', class: this.classCollection.join(), shadow: true }, this.closeButton && (h("mg-button", { key: 'a59d6610574b964be1e2ce34ccd8e31c1395b6ff', "is-icon": true, variant: "flat", label: this.messages.general.close, onClick: this.handleCloseButton }, h("mg-icon", { key: '5bcc9e4eb21396f4fc66a6f1e4d6c5cdf68ec1f4', icon: "cross" }))), h("div", { key: '57be2022f3b61220e1249faeaf2acee9960027fe', class: "mg-c-popover-content__title" }, h("slot", { key: 'c7870e86a9f105cf6b9d4520c77874bce9235d72', name: "title" })), h("slot", { key: '5af8462232625d9c7d694bab46351d5e646f62ca', name: "content" })), h("slot", { key: '599863410dd7d751e82c440cd6c4fb7f2c48d9f3', name: "arrow" })));
|
|
50
50
|
}
|
|
51
51
|
static get is() { return "mg-popover-content"; }
|
|
52
52
|
static get encapsulation() { return "shadow"; }
|
|
@@ -242,7 +242,7 @@ export class MgPopover {
|
|
|
242
242
|
* @returns HTML Element
|
|
243
243
|
*/
|
|
244
244
|
render() {
|
|
245
|
-
return (h(Host, { key: '
|
|
245
|
+
return (h(Host, { key: '2c1506b8e2da100519aeeae75fc5c378a81c473c' }, h("slot", { key: 'f9aea885e8cbc168614c05761829f0a0740eba9e' }), h("slot", { key: 'fa6106a660a73b3761d4783f8d46d401c47b4eb6', name: "content" })));
|
|
246
246
|
}
|
|
247
247
|
static get is() { return "mg-popover"; }
|
|
248
248
|
static get encapsulation() { return "shadow"; }
|
|
@@ -288,7 +288,8 @@ export class MgPopover {
|
|
|
288
288
|
"Placement": {
|
|
289
289
|
"location": "import",
|
|
290
290
|
"path": "@popperjs/core",
|
|
291
|
-
"id": "../../node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/index.d.ts::Placement"
|
|
291
|
+
"id": "../../node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/index.d.ts::Placement",
|
|
292
|
+
"referenceLocation": "Placement"
|
|
292
293
|
}
|
|
293
294
|
}
|
|
294
295
|
},
|
|
@@ -65,7 +65,7 @@ export class MgProgress {
|
|
|
65
65
|
* @returns HTML Element
|
|
66
66
|
*/
|
|
67
67
|
render() {
|
|
68
|
-
return (h(Host, { key: '
|
|
68
|
+
return (h(Host, { key: '8e6c727e9416fa777fd94b32d618a9137e8e08f7', role: this.ariaRole, "aria-label": this.label, "aria-valuenow": this.value, "aria-valuemin": this.min, "aria-valuemax": this.max }, h("div", { key: 'ac42ee9c5dda55d70aad7391895e4a013aaa27f9', class: "mg-c-progress" }, h("div", { key: '34c77bc6c133bc59b9daa68d7d6c8534f13f7d37', class: { 'mg-c-progress__bar': true, 'mg-c-progress__bar--active': this.value > this.min } }, h("div", { key: '7ea03a3f0c54ca0c81616c7c070d178a510dd7e1', class: "mg-c-progress__fill", style: {
|
|
69
69
|
width: `${Math.round(((this.value - this.min) / (this.max - this.min)) * 100)}%`,
|
|
70
70
|
} })))));
|
|
71
71
|
}
|
|
@@ -112,7 +112,8 @@ export class MgProgress {
|
|
|
112
112
|
"AriaRoleType": {
|
|
113
113
|
"location": "import",
|
|
114
114
|
"path": "./mg-progress.conf",
|
|
115
|
-
"id": "src/components/molecules/mg-progress/mg-progress.conf.ts::AriaRoleType"
|
|
115
|
+
"id": "src/components/molecules/mg-progress/mg-progress.conf.ts::AriaRoleType",
|
|
116
|
+
"referenceLocation": "AriaRoleType"
|
|
116
117
|
}
|
|
117
118
|
}
|
|
118
119
|
},
|
|
@@ -36,7 +36,7 @@ export class MgSkipLinks {
|
|
|
36
36
|
* @returns HTML Element
|
|
37
37
|
*/
|
|
38
38
|
render() {
|
|
39
|
-
return (h("nav", { key: '
|
|
39
|
+
return (h("nav", { key: '5bf4427662bdca6512969bee91aa03f43a126743', class: "mg-c-skip-links", role: "navigation", "aria-label": this.messages.skipLinks.navLabel }, h("ul", { key: '1d2b2a56b3960f70a3d37b333c77bf686643e0fd', class: "mg-c-skip-links__list", role: "list" }, this.links.map(link => (h("li", { key: link.href }, h("a", { class: "mg-c-skip-links__link", href: link.href, onClick: this.handleLinkCLick }, link.label)))))));
|
|
40
40
|
}
|
|
41
41
|
static get is() { return "mg-skip-links"; }
|
|
42
42
|
static get encapsulation() { return "shadow"; }
|
|
@@ -62,7 +62,8 @@ export class MgSkipLinks {
|
|
|
62
62
|
"SkipLink": {
|
|
63
63
|
"location": "import",
|
|
64
64
|
"path": "./mg-skip-links.conf",
|
|
65
|
-
"id": "src/components/molecules/mg-skip-links/mg-skip-links.conf.tsx::SkipLink"
|
|
65
|
+
"id": "src/components/molecules/mg-skip-links/mg-skip-links.conf.tsx::SkipLink",
|
|
66
|
+
"referenceLocation": "SkipLink"
|
|
66
67
|
}
|
|
67
68
|
}
|
|
68
69
|
},
|
|
@@ -53,6 +53,7 @@ export class MgTable {
|
|
|
53
53
|
this.componentClass = 'mg-c-table';
|
|
54
54
|
this.componentWrapperClass = 'mg-c-table-wrapper';
|
|
55
55
|
this.classFullWidth = 'mg-c-table--full-width';
|
|
56
|
+
this.classBorderHide = 'mg-c-table--border-hide';
|
|
56
57
|
// Alignment stylesheet
|
|
57
58
|
this.alignmentStylesheet = new CSSStyleSheet();
|
|
58
59
|
/**
|
|
@@ -63,6 +64,10 @@ export class MgTable {
|
|
|
63
64
|
* Define if table fits its parent element
|
|
64
65
|
*/
|
|
65
66
|
this.fullWidth = false;
|
|
67
|
+
/**
|
|
68
|
+
* Define if table has no outer border
|
|
69
|
+
*/
|
|
70
|
+
this.borderHide = false;
|
|
66
71
|
/**
|
|
67
72
|
* Class collection
|
|
68
73
|
*/
|
|
@@ -87,6 +92,14 @@ export class MgTable {
|
|
|
87
92
|
this.classCollection.delete(this.classFullWidth);
|
|
88
93
|
}
|
|
89
94
|
}
|
|
95
|
+
watchBorderHide(newValue) {
|
|
96
|
+
if (newValue) {
|
|
97
|
+
this.classCollection.add(this.classBorderHide);
|
|
98
|
+
}
|
|
99
|
+
else {
|
|
100
|
+
this.classCollection.delete(this.classBorderHide);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
90
103
|
watchColumns(newValue) {
|
|
91
104
|
if (newValue !== undefined && !isValidColumnsObject(newValue)) {
|
|
92
105
|
throw new Error(`<mg-table> prop "columns" must be a ColumnsType object. Passed value: ${toString(newValue)}.`);
|
|
@@ -248,6 +261,7 @@ export class MgTable {
|
|
|
248
261
|
componentDidLoad() {
|
|
249
262
|
this.watchSize(this.size);
|
|
250
263
|
this.watchFullWidth(this.fullWidth);
|
|
264
|
+
this.watchBorderHide(this.borderHide);
|
|
251
265
|
this.watchColumns(this.columns);
|
|
252
266
|
this.renderTable(this.element.querySelector('table'));
|
|
253
267
|
}
|
|
@@ -281,7 +295,8 @@ export class MgTable {
|
|
|
281
295
|
"TableSizeType": {
|
|
282
296
|
"location": "import",
|
|
283
297
|
"path": "./mg-table.conf",
|
|
284
|
-
"id": "src/components/molecules/mg-table/mg-table.conf.ts::TableSizeType"
|
|
298
|
+
"id": "src/components/molecules/mg-table/mg-table.conf.ts::TableSizeType",
|
|
299
|
+
"referenceLocation": "TableSizeType"
|
|
285
300
|
}
|
|
286
301
|
}
|
|
287
302
|
},
|
|
@@ -317,6 +332,26 @@ export class MgTable {
|
|
|
317
332
|
"attribute": "full-width",
|
|
318
333
|
"defaultValue": "false"
|
|
319
334
|
},
|
|
335
|
+
"borderHide": {
|
|
336
|
+
"type": "boolean",
|
|
337
|
+
"mutable": false,
|
|
338
|
+
"complexType": {
|
|
339
|
+
"original": "boolean",
|
|
340
|
+
"resolved": "boolean",
|
|
341
|
+
"references": {}
|
|
342
|
+
},
|
|
343
|
+
"required": false,
|
|
344
|
+
"optional": false,
|
|
345
|
+
"docs": {
|
|
346
|
+
"tags": [],
|
|
347
|
+
"text": "Define if table has no outer border"
|
|
348
|
+
},
|
|
349
|
+
"getter": false,
|
|
350
|
+
"setter": false,
|
|
351
|
+
"reflect": false,
|
|
352
|
+
"attribute": "border-hide",
|
|
353
|
+
"defaultValue": "false"
|
|
354
|
+
},
|
|
320
355
|
"columns": {
|
|
321
356
|
"type": "unknown",
|
|
322
357
|
"mutable": false,
|
|
@@ -327,7 +362,8 @@ export class MgTable {
|
|
|
327
362
|
"ColumnsType": {
|
|
328
363
|
"location": "import",
|
|
329
364
|
"path": "./mg-table.conf",
|
|
330
|
-
"id": "src/components/molecules/mg-table/mg-table.conf.ts::ColumnsType"
|
|
365
|
+
"id": "src/components/molecules/mg-table/mg-table.conf.ts::ColumnsType",
|
|
366
|
+
"referenceLocation": "ColumnsType"
|
|
331
367
|
}
|
|
332
368
|
}
|
|
333
369
|
},
|
|
@@ -355,6 +391,9 @@ export class MgTable {
|
|
|
355
391
|
}, {
|
|
356
392
|
"propName": "fullWidth",
|
|
357
393
|
"methodName": "watchFullWidth"
|
|
394
|
+
}, {
|
|
395
|
+
"propName": "borderHide",
|
|
396
|
+
"methodName": "watchBorderHide"
|
|
358
397
|
}, {
|
|
359
398
|
"propName": "columns",
|
|
360
399
|
"methodName": "watchColumns"
|