@mgdis/mg-components 6.22.0 → 6.23.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{index-C2viYwrR.js → index-BEF-cqV9.js} +325 -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} +242 -172
- package/dist/cjs/mg-alert.cjs.entry.js +6 -2
- package/dist/cjs/mg-breadcrumb.cjs.entry.js +2 -2
- package/dist/cjs/mg-components.cjs.js +3 -3
- package/dist/cjs/mg-fieldset.cjs.entry.js +4 -3
- package/dist/cjs/mg-input-combobox.cjs.entry.js +4 -3
- package/dist/cjs/mg-input-file.cjs.entry.js +5 -4
- package/dist/cjs/mg-input-rich-text-editor.cjs.entry.js +7491 -6367
- package/dist/cjs/mg-input.conf-wgTh7iBb.js +84 -0
- package/dist/cjs/mg-loader.cjs.entry.js +2 -2
- 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 +2 -2
- package/dist/collection/components/atoms/internals/mg-input-title/mg-input-title.js +5 -2
- package/dist/collection/components/atoms/mg-badge/mg-badge.js +12 -3
- package/dist/collection/components/atoms/mg-button/mg-button.js +9 -4
- package/dist/collection/components/atoms/mg-card/mg-card.js +16 -7
- package/dist/collection/components/atoms/mg-icon/mg-icon.js +16 -9
- package/dist/collection/components/atoms/mg-tag/mg-tag.js +2 -1
- package/dist/collection/components/atoms/mg-tooltip/mg-tooltip.js +9 -3
- package/dist/collection/components/molecules/inputs/mg-input/mg-input.js +15 -13
- 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 +49 -26
- package/dist/collection/components/molecules/inputs/mg-input-combobox/mg-input-combobox.js +16 -8
- package/dist/collection/components/molecules/inputs/mg-input-date/mg-input-date.js +6 -3
- package/dist/collection/components/molecules/inputs/mg-input-file/mg-input-file.js +7 -4
- package/dist/collection/components/molecules/inputs/mg-input-numeric/mg-input-numeric.js +11 -5
- package/dist/collection/components/molecules/inputs/mg-input-password/mg-input-password.js +7 -3
- package/dist/collection/components/molecules/inputs/mg-input-radio/mg-input-radio.js +7 -3
- package/dist/collection/components/molecules/inputs/mg-input-rich-text-editor/mg-input-rich-text-editor.js +9 -4
- package/dist/collection/components/molecules/inputs/mg-input-select/mg-input-select.js +61 -19
- package/dist/collection/components/molecules/inputs/mg-input-text/mg-input-text.js +15 -8
- package/dist/collection/components/molecules/inputs/mg-input-textarea/mg-input-textarea.js +7 -3
- package/dist/collection/components/molecules/inputs/mg-input-toggle/mg-input-toggle.js +9 -4
- package/dist/collection/components/molecules/internals/mg-item-more/mg-item-more.js +5 -3
- package/dist/collection/components/molecules/menus/mg-menu/mg-menu.js +5 -3
- package/dist/collection/components/molecules/menus/mg-menu-item/mg-menu-item.js +8 -4
- package/dist/collection/components/molecules/mg-action-more/mg-action-more.js +11 -7
- package/dist/collection/components/molecules/mg-alert/mg-alert.js +29 -3
- package/dist/collection/components/molecules/mg-breadcrumb/mg-breadcrumb.js +3 -2
- package/dist/collection/components/molecules/mg-details/mg-details.js +3 -1
- package/dist/collection/components/molecules/mg-fieldset/mg-fieldset.js +5 -2
- package/dist/collection/components/molecules/mg-form/mg-form.js +8 -4
- 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 +43 -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 +20 -6
- 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 +4 -2
- package/dist/collection/components/molecules/mg-tabs/mg-tabs.js +3 -2
- package/dist/components/index2.js +1 -1
- package/dist/components/index3.js +1 -1
- package/dist/components/index4.js +1 -0
- package/dist/components/mg-action-more.js +1 -1
- package/dist/components/mg-alert.js +1 -1
- package/dist/components/mg-badge2.js +1 -1
- package/dist/components/mg-breadcrumb.js +1 -1
- package/dist/components/mg-button2.js +1 -1
- 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 +284 -284
- 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-pagination.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-tooltip2.js +1 -1
- package/dist/custom-elements.json +8828 -0
- package/dist/esm/{index-DFwaH2hS.js → index-DshvCiTL.js} +325 -1789
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{mg-action-more_37.entry.js → mg-action-more_36.entry.js} +244 -173
- package/dist/esm/mg-alert.entry.js +6 -2
- package/dist/esm/mg-breadcrumb.entry.js +2 -2
- package/dist/esm/mg-components.js +4 -4
- package/dist/esm/mg-fieldset.entry.js +4 -3
- package/dist/esm/mg-input-combobox.entry.js +4 -3
- package/dist/esm/mg-input-file.entry.js +5 -4
- package/dist/esm/mg-input-rich-text-editor.entry.js +7491 -6367
- package/dist/esm/mg-input.conf-DOi9lJXy.js +73 -0
- package/dist/esm/mg-loader.entry.js +2 -2
- package/dist/esm/mg-progress.entry.js +2 -2
- package/dist/mg-components/mg-components.esm.js +1 -1
- package/dist/mg-components/{p-d5e69c95.entry.js → p-13feb37a.entry.js} +1 -1
- package/dist/mg-components/{p-c8c8cfc1.entry.js → p-236bb1d2.entry.js} +1 -1
- package/dist/mg-components/p-79265ad3.entry.js +1 -0
- package/dist/mg-components/{p-adec7fcc.entry.js → p-7c63e469.entry.js} +1 -1
- package/dist/mg-components/p-7fd3e519.entry.js +1 -0
- package/dist/mg-components/p-DOi9lJXy.js +1 -0
- package/dist/mg-components/p-DshvCiTL.js +2 -0
- package/dist/mg-components/p-a0e2c886.entry.js +1 -0
- package/dist/mg-components/p-cdb01923.entry.js +1 -0
- package/dist/mg-components/p-d0b6d8f5.entry.js +1 -0
- package/dist/mg-components/{p-c63f97f0.entry.js → p-d698fa67.entry.js} +283 -283
- package/dist/types/assets/icons/index.d.ts +2 -0
- package/dist/types/components/atoms/internals/mg-input-title/mg-input-title.d.ts +4 -0
- package/dist/types/components/atoms/mg-badge/mg-badge.d.ts +4 -0
- 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-select/mg-input-select.d.ts +12 -6
- package/dist/types/components/molecules/mg-alert/mg-alert.d.ts +4 -0
- package/dist/types/components/molecules/mg-message/mg-message.d.ts +6 -0
- package/dist/types/components.d.ts +547 -170
- package/dist/types/stencil-public-runtime.d.ts +53 -2
- package/ide/intellij/web-types.json +211 -3476
- package/ide/vscode/css-custom-data.json +1 -1
- package/ide/vscode/html-custom-data.json +58 -314
- package/package.json +30 -25
- package/dist/cjs/mg-input.conf-BNpeATnq.js +0 -35
- 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/esm/mg-input.conf-C9rmNQIL.js +0 -25
- package/dist/mg-components/p-0482eb9f.entry.js +0 -1
- package/dist/mg-components/p-2ee92f38.entry.js +0 -1
- package/dist/mg-components/p-3b653226.entry.js +0 -1
- package/dist/mg-components/p-5745fbea.entry.js +0 -1
- package/dist/mg-components/p-C9rmNQIL.js +0 -1
- package/dist/mg-components/p-DFwaH2hS.js +0 -2
- package/dist/mg-components/p-cc793586.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\" | \"glitters\" | \"glitters-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
|
},
|
|
@@ -26,6 +26,10 @@ export class MgAlert {
|
|
|
26
26
|
* Define variant style
|
|
27
27
|
*/
|
|
28
28
|
this.variantStyle = 'bar-left';
|
|
29
|
+
/**
|
|
30
|
+
* Define if alert fits its parent element
|
|
31
|
+
*/
|
|
32
|
+
this.fullWidth = false;
|
|
29
33
|
/**
|
|
30
34
|
* Component classes
|
|
31
35
|
*/
|
|
@@ -142,7 +146,7 @@ export class MgAlert {
|
|
|
142
146
|
* @returns HTML Element
|
|
143
147
|
*/
|
|
144
148
|
render() {
|
|
145
|
-
return (h("mg-message", { key: '
|
|
149
|
+
return (h("mg-message", { key: '8d10696cd86b00304d8ae409e36691a41a16702e', class: this.classCollection.join(), role: ['info', 'success'].includes(this.variant) ? 'status' : 'alert', variant: this.variant, variantStyle: this.variantStyle, fullWidth: this.fullWidth }, h("slot", { key: '598a86d657b77006f5a9e9dbf33e7969669be125' }), 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
150
|
}
|
|
147
151
|
static get is() { return "mg-alert"; }
|
|
148
152
|
static get encapsulation() { return "shadow"; }
|
|
@@ -187,7 +191,8 @@ export class MgAlert {
|
|
|
187
191
|
"VariantType": {
|
|
188
192
|
"location": "import",
|
|
189
193
|
"path": "./mg-alert.conf",
|
|
190
|
-
"id": "src/components/molecules/mg-alert/mg-alert.conf.ts::VariantType"
|
|
194
|
+
"id": "src/components/molecules/mg-alert/mg-alert.conf.ts::VariantType",
|
|
195
|
+
"referenceLocation": "VariantType"
|
|
191
196
|
}
|
|
192
197
|
}
|
|
193
198
|
},
|
|
@@ -213,7 +218,8 @@ export class MgAlert {
|
|
|
213
218
|
"VariantStyleType": {
|
|
214
219
|
"location": "import",
|
|
215
220
|
"path": "./mg-alert.conf",
|
|
216
|
-
"id": "src/components/molecules/mg-alert/mg-alert.conf.ts::VariantStyleType"
|
|
221
|
+
"id": "src/components/molecules/mg-alert/mg-alert.conf.ts::VariantStyleType",
|
|
222
|
+
"referenceLocation": "VariantStyleType"
|
|
217
223
|
}
|
|
218
224
|
}
|
|
219
225
|
},
|
|
@@ -228,6 +234,26 @@ export class MgAlert {
|
|
|
228
234
|
"reflect": false,
|
|
229
235
|
"attribute": "variant-style",
|
|
230
236
|
"defaultValue": "'bar-left'"
|
|
237
|
+
},
|
|
238
|
+
"fullWidth": {
|
|
239
|
+
"type": "boolean",
|
|
240
|
+
"mutable": false,
|
|
241
|
+
"complexType": {
|
|
242
|
+
"original": "boolean",
|
|
243
|
+
"resolved": "boolean",
|
|
244
|
+
"references": {}
|
|
245
|
+
},
|
|
246
|
+
"required": false,
|
|
247
|
+
"optional": false,
|
|
248
|
+
"docs": {
|
|
249
|
+
"tags": [],
|
|
250
|
+
"text": "Define if alert fits its parent element"
|
|
251
|
+
},
|
|
252
|
+
"getter": false,
|
|
253
|
+
"setter": false,
|
|
254
|
+
"reflect": false,
|
|
255
|
+
"attribute": "full-width",
|
|
256
|
+
"defaultValue": "false"
|
|
231
257
|
}
|
|
232
258
|
};
|
|
233
259
|
}
|
|
@@ -38,7 +38,7 @@ export class MgBreadcrumb {
|
|
|
38
38
|
this.messages = initLocales(this.element).messages.breadcrumb;
|
|
39
39
|
}
|
|
40
40
|
render() {
|
|
41
|
-
return (h("nav", { key: '
|
|
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
42
|
var _a;
|
|
43
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
44
|
}))));
|
|
@@ -67,7 +67,8 @@ export class MgBreadcrumb {
|
|
|
67
67
|
"BreadcrumbItemType": {
|
|
68
68
|
"location": "import",
|
|
69
69
|
"path": "./mg-breadcrumb.conf",
|
|
70
|
-
"id": "src/components/molecules/mg-breadcrumb/mg-breadcrumb.conf.ts::BreadcrumbItemType"
|
|
70
|
+
"id": "src/components/molecules/mg-breadcrumb/mg-breadcrumb.conf.ts::BreadcrumbItemType",
|
|
71
|
+
"referenceLocation": "BreadcrumbItemType"
|
|
71
72
|
}
|
|
72
73
|
}
|
|
73
74
|
},
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
import { isValidString } from "@mgdis/core-ui-helpers/dist/utils";
|
|
3
|
+
import { normalizeBooleanAttributes } from "@mgdis/core-ui-helpers/dist/stencil";
|
|
3
4
|
/**
|
|
4
5
|
* @slot summary - Summary content
|
|
5
6
|
* @slot details - Details content
|
|
@@ -36,6 +37,7 @@ export class MgDetails {
|
|
|
36
37
|
* Check if component props are well configured on init
|
|
37
38
|
*/
|
|
38
39
|
componentWillLoad() {
|
|
40
|
+
normalizeBooleanAttributes(this);
|
|
39
41
|
this.validateTitles(this.toggleClosed);
|
|
40
42
|
this.validateTitles(this.toggleOpened);
|
|
41
43
|
// Check if summary slot is empty
|
|
@@ -53,7 +55,7 @@ export class MgDetails {
|
|
|
53
55
|
* @returns HTML Element
|
|
54
56
|
*/
|
|
55
57
|
render() {
|
|
56
|
-
return (h("details", { key: '
|
|
58
|
+
return (h("details", { key: 'b4a342010e903cfd2a670e46257e889fd74ddf1e', 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: '85fbd6f675e20881a8eb8df776d827e25859e0b7' }, h("slot", { key: '56491b2e4fa9f4772efd5ec66825e897b90cfde3', name: "summary" }), h("span", { key: '43f913504670d8f592479d5929e6901e9f9e9a9a', class: "mg-c-details__toggle" }, h("mg-icon", { key: '268cfc8d4b9e55d87303e6a85dead205ecdd7ce1', icon: "chevron-up", class: { 'mg-c-details__toggle-icon': true, 'mg-c-details__toggle-icon--reverse': !this.expanded } }), h("span", { key: 'e3d7c794f7a8d83a31c02302a06bbe0db1e8b63d', class: { 'mg-u-visually-hidden': this.hideSummary } }, this.expanded ? this.toggleOpened : this.toggleClosed))), h("div", { key: 'e5230b49934c2b3e9a0c31821e53ea52084b2b26', class: "mg-c-details__details" }, h("slot", { key: '0355f1596c85ab869b3658276ee156a7aadc50d1', name: "details" }))));
|
|
57
59
|
}
|
|
58
60
|
static get is() { return "mg-details"; }
|
|
59
61
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
import { ClassList, isValidString } from "@mgdis/core-ui-helpers/dist/utils";
|
|
3
|
+
import { normalizeBooleanAttributes } from "@mgdis/core-ui-helpers/dist/stencil";
|
|
3
4
|
import { classReadonly, isMgInputFile } from "../inputs/mg-input/mg-input.conf";
|
|
4
5
|
export class MgFieldset {
|
|
5
6
|
constructor() {
|
|
@@ -112,6 +113,7 @@ export class MgFieldset {
|
|
|
112
113
|
* Check if component props are well configured on init
|
|
113
114
|
*/
|
|
114
115
|
componentWillLoad() {
|
|
116
|
+
normalizeBooleanAttributes(this);
|
|
115
117
|
this.watchReadonly(this.readonly);
|
|
116
118
|
this.watchLegendBorderDisplay(this.legendBorderDisplay);
|
|
117
119
|
this.setMgInputs();
|
|
@@ -133,7 +135,7 @@ export class MgFieldset {
|
|
|
133
135
|
* @returns HTML Element
|
|
134
136
|
*/
|
|
135
137
|
render() {
|
|
136
|
-
return (h("mg-input", { key: '
|
|
138
|
+
return (h("mg-input", { key: '547bdc6c4c35ae9949f185f110a24c5a6437cea7', 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: '4fe4ec0d810cf46192e61b5052caf3694c3444be', class: "mg-c-input__input-group" }, h("slot", { key: '030481c1c7536b9d5e20975f77a86d3dda853582' }))));
|
|
137
139
|
}
|
|
138
140
|
static get is() { return "mg-fieldset"; }
|
|
139
141
|
static get encapsulation() { return "shadow"; }
|
|
@@ -227,7 +229,8 @@ export class MgFieldset {
|
|
|
227
229
|
"labelHeading": {
|
|
228
230
|
"location": "import",
|
|
229
231
|
"path": "../inputs/mg-input/mg-input.conf",
|
|
230
|
-
"id": "src/components/molecules/inputs/mg-input/mg-input.conf.ts::labelHeading"
|
|
232
|
+
"id": "src/components/molecules/inputs/mg-input/mg-input.conf.ts::labelHeading",
|
|
233
|
+
"referenceLocation": "labelHeading"
|
|
231
234
|
}
|
|
232
235
|
}
|
|
233
236
|
},
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
-
import { createID,
|
|
2
|
+
import { ClassList, createID, isValideID, toString } from "@mgdis/core-ui-helpers/dist/utils";
|
|
3
|
+
import { normalizeBooleanAttributes } from "@mgdis/core-ui-helpers/dist/stencil";
|
|
3
4
|
import { initLocales } from "../../../locales";
|
|
4
5
|
import { isMgInputFile } from "../inputs/mg-input/mg-input.conf";
|
|
5
6
|
import { requiredMessageStatus, roles } from "./mg-form.conf";
|
|
@@ -196,6 +197,7 @@ export class MgForm {
|
|
|
196
197
|
componentWillLoad() {
|
|
197
198
|
// Get locales
|
|
198
199
|
this.messages = initLocales(this.element).messages;
|
|
200
|
+
normalizeBooleanAttributes(this);
|
|
199
201
|
this.watchIdentifier(this.identifier);
|
|
200
202
|
this.validateAriaRole(this.ariaRole);
|
|
201
203
|
this.validateRequiredMessage(this.requiredMessage);
|
|
@@ -242,7 +244,7 @@ export class MgForm {
|
|
|
242
244
|
* @returns HTML Element
|
|
243
245
|
*/
|
|
244
246
|
render() {
|
|
245
|
-
return (h("form", { key: '
|
|
247
|
+
return (h("form", { key: 'bb340dafd9e9d987b4de94f718f81a63749b183c', class: this.classCollection.join(), id: this.identifier, name: this.name, onSubmit: this.handleFormSubmit, role: this.ariaRole }, this.requiredMessageText && h("p", { key: '5cdfc883ecd9a1e9759f952beac2c17f4d9a3237', innerHTML: this.requiredMessageText }), h("slot", { key: 'd5879767bc1d23a7c31b119b2fa2a29b9f8bc76f' }), !this.readonly && !this.disabled && h("slot", { key: 'c47af6bccd71ee51e1725c5592001d09add966b8', name: "actions" })));
|
|
246
248
|
}
|
|
247
249
|
static get is() { return "mg-form"; }
|
|
248
250
|
static get encapsulation() { return "shadow"; }
|
|
@@ -328,7 +330,8 @@ export class MgForm {
|
|
|
328
330
|
"RequiredMessageStatusType": {
|
|
329
331
|
"location": "import",
|
|
330
332
|
"path": "./mg-form.conf",
|
|
331
|
-
"id": "src/components/molecules/mg-form/mg-form.conf.ts::RequiredMessageStatusType"
|
|
333
|
+
"id": "src/components/molecules/mg-form/mg-form.conf.ts::RequiredMessageStatusType",
|
|
334
|
+
"referenceLocation": "RequiredMessageStatusType"
|
|
332
335
|
}
|
|
333
336
|
}
|
|
334
337
|
},
|
|
@@ -353,7 +356,8 @@ export class MgForm {
|
|
|
353
356
|
"AriaRoleType": {
|
|
354
357
|
"location": "import",
|
|
355
358
|
"path": "./mg-form.conf",
|
|
356
|
-
"id": "src/components/molecules/mg-form/mg-form.conf.ts::AriaRoleType"
|
|
359
|
+
"id": "src/components/molecules/mg-form/mg-form.conf.ts::AriaRoleType",
|
|
360
|
+
"referenceLocation": "AriaRoleType"
|
|
357
361
|
}
|
|
358
362
|
}
|
|
359
363
|
},
|
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"; }
|
|
@@ -11,6 +11,7 @@ export class MgMessage {
|
|
|
11
11
|
* Internal *
|
|
12
12
|
************/
|
|
13
13
|
this.classBase = 'mg-c-message';
|
|
14
|
+
this.classFullWidth = 'mg-c-message--full-width';
|
|
14
15
|
/**
|
|
15
16
|
* Define variant
|
|
16
17
|
*/
|
|
@@ -19,6 +20,10 @@ export class MgMessage {
|
|
|
19
20
|
* Define variant style
|
|
20
21
|
*/
|
|
21
22
|
this.variantStyle = 'bar-left';
|
|
23
|
+
/**
|
|
24
|
+
* Define if message fits its parent element
|
|
25
|
+
*/
|
|
26
|
+
this.fullWidth = false;
|
|
22
27
|
/**
|
|
23
28
|
* Component classes
|
|
24
29
|
*/
|
|
@@ -68,6 +73,14 @@ export class MgMessage {
|
|
|
68
73
|
this.classCollection.delete(`${this.classBase}--${oldValue}`);
|
|
69
74
|
}
|
|
70
75
|
}
|
|
76
|
+
watchFullWidth(newValue) {
|
|
77
|
+
if (newValue) {
|
|
78
|
+
this.classCollection.add(this.classFullWidth);
|
|
79
|
+
}
|
|
80
|
+
else {
|
|
81
|
+
this.classCollection.delete(this.classFullWidth);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
71
84
|
/*************
|
|
72
85
|
* Lifecycle *
|
|
73
86
|
*************/
|
|
@@ -78,6 +91,7 @@ export class MgMessage {
|
|
|
78
91
|
// Validate
|
|
79
92
|
this.watchVariant(this.variant);
|
|
80
93
|
this.watchVariantStyle(this.variantStyle);
|
|
94
|
+
this.watchFullWidth(this.fullWidth);
|
|
81
95
|
// Check if component has actions slot
|
|
82
96
|
this.hasActions = this.element.querySelector('[slot="actions"]') !== null;
|
|
83
97
|
}
|
|
@@ -86,9 +100,9 @@ export class MgMessage {
|
|
|
86
100
|
* @returns HTML Element
|
|
87
101
|
*/
|
|
88
102
|
render() {
|
|
89
|
-
return (h("div", { key: '
|
|
103
|
+
return (h("div", { key: '7a91fbc1a334d006013cdc8dd8ce6bce52947b90', class: this.classCollection.join() }, h("mg-card", { key: '34117431721f271fa96ac729376c1af6178dcedf', shadow: true }, this.variantStyle === 'bar-left' && h("span", { key: 'b68b15e7bb5c48b53f3aafea30c50a1db42db87c', class: "mg-c-message__bar" }), h("span", { key: 'efb2fd983a68f252312c3266879cd37666c17707', class: "mg-c-message__icon" }, h("mg-icon", { key: 'de7df68e25a5c581407b2a88dd7c268c4e6977cd', icon: this.getIcon() })), h("div", { key: '10afb1b7e6b8bea33ed18cf17dfbdaf6b35b3b89', class: "mg-c-message__content" }, h("span", { key: '5f7c5d7429a143f44c992fe79f0c42649fb695a7', class: "mg-c-message__content-slot" }, h("slot", { key: 'c20cbe2a91eb487bdebd5c049c33b7d50148a7b0' })), this.hasActions && [
|
|
90
104
|
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: '
|
|
105
|
+
h("span", { class: "mg-c-message__content-actions-slot", key: "content-actions-slot" }, h("slot", { key: 'cdf59d5cb43793c7d8be40cf9d8d43b7d03d0a02', name: "actions" })),
|
|
92
106
|
]))));
|
|
93
107
|
}
|
|
94
108
|
static get is() { return "mg-message"; }
|
|
@@ -115,7 +129,8 @@ export class MgMessage {
|
|
|
115
129
|
"VariantType": {
|
|
116
130
|
"location": "import",
|
|
117
131
|
"path": "./mg-message.conf",
|
|
118
|
-
"id": "src/components/molecules/mg-message/mg-message.conf.ts::VariantType"
|
|
132
|
+
"id": "src/components/molecules/mg-message/mg-message.conf.ts::VariantType",
|
|
133
|
+
"referenceLocation": "VariantType"
|
|
119
134
|
}
|
|
120
135
|
}
|
|
121
136
|
},
|
|
@@ -141,7 +156,8 @@ export class MgMessage {
|
|
|
141
156
|
"VariantStyleType": {
|
|
142
157
|
"location": "import",
|
|
143
158
|
"path": "./mg-message.conf",
|
|
144
|
-
"id": "src/components/molecules/mg-message/mg-message.conf.ts::VariantStyleType"
|
|
159
|
+
"id": "src/components/molecules/mg-message/mg-message.conf.ts::VariantStyleType",
|
|
160
|
+
"referenceLocation": "VariantStyleType"
|
|
145
161
|
}
|
|
146
162
|
}
|
|
147
163
|
},
|
|
@@ -156,6 +172,26 @@ export class MgMessage {
|
|
|
156
172
|
"reflect": false,
|
|
157
173
|
"attribute": "variant-style",
|
|
158
174
|
"defaultValue": "'bar-left'"
|
|
175
|
+
},
|
|
176
|
+
"fullWidth": {
|
|
177
|
+
"type": "boolean",
|
|
178
|
+
"mutable": false,
|
|
179
|
+
"complexType": {
|
|
180
|
+
"original": "boolean",
|
|
181
|
+
"resolved": "boolean",
|
|
182
|
+
"references": {}
|
|
183
|
+
},
|
|
184
|
+
"required": false,
|
|
185
|
+
"optional": false,
|
|
186
|
+
"docs": {
|
|
187
|
+
"tags": [],
|
|
188
|
+
"text": "Define if message fits its parent element"
|
|
189
|
+
},
|
|
190
|
+
"getter": false,
|
|
191
|
+
"setter": false,
|
|
192
|
+
"reflect": false,
|
|
193
|
+
"attribute": "full-width",
|
|
194
|
+
"defaultValue": "false"
|
|
159
195
|
}
|
|
160
196
|
};
|
|
161
197
|
}
|
|
@@ -173,6 +209,9 @@ export class MgMessage {
|
|
|
173
209
|
}, {
|
|
174
210
|
"propName": "variantStyle",
|
|
175
211
|
"methodName": "watchVariantStyle"
|
|
212
|
+
}, {
|
|
213
|
+
"propName": "fullWidth",
|
|
214
|
+
"methodName": "watchFullWidth"
|
|
176
215
|
}];
|
|
177
216
|
}
|
|
178
217
|
}
|
|
@@ -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
|
},
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
-
import {
|
|
2
|
+
import { ClassList, createID, isValidString, isValideID, toString } from "@mgdis/core-ui-helpers/dist/utils";
|
|
3
|
+
import { normalizeBooleanAttributes } from "@mgdis/core-ui-helpers/dist/stencil";
|
|
3
4
|
import { initLocales } from "../../../locales";
|
|
4
5
|
import { expandToggleDisplays, titlePositions } from "./mg-panel.conf";
|
|
5
6
|
/**
|
|
@@ -172,6 +173,11 @@ export class MgPanel {
|
|
|
172
173
|
}
|
|
173
174
|
}
|
|
174
175
|
validateTitlePosition(newValue) {
|
|
176
|
+
if (String(newValue) === '') {
|
|
177
|
+
// Reactive frameworks (e.g. Vue) may pass "" instead of undefined when the prop is reset.
|
|
178
|
+
this.titlePosition = 'left';
|
|
179
|
+
return;
|
|
180
|
+
}
|
|
175
181
|
if (!titlePositions.includes(newValue))
|
|
176
182
|
throw new Error(`<mg-panel> prop "titlePosition" must be one of: ${titlePositions.join(', ')}. Passed value: ${toString(newValue)}.`);
|
|
177
183
|
}
|
|
@@ -179,6 +185,11 @@ export class MgPanel {
|
|
|
179
185
|
this.expandedChange.emit(newValue);
|
|
180
186
|
}
|
|
181
187
|
validateExpandToggleDisplay(newValue) {
|
|
188
|
+
if (String(newValue) === '') {
|
|
189
|
+
// Reactive frameworks (e.g. Vue) may pass "" instead of undefined when the prop is reset.
|
|
190
|
+
this.expandToggleDisplay = 'text';
|
|
191
|
+
return;
|
|
192
|
+
}
|
|
182
193
|
if (!expandToggleDisplays.includes(newValue))
|
|
183
194
|
throw new Error(`<mg-panel> prop "expandToggleDisplay" must be one of: ${expandToggleDisplays.join(', ')}. Passed value: ${toString(newValue)}.`);
|
|
184
195
|
if (newValue === 'icon' && this.titleEditable)
|
|
@@ -196,6 +207,7 @@ export class MgPanel {
|
|
|
196
207
|
componentWillLoad() {
|
|
197
208
|
// Get locales
|
|
198
209
|
this.messages = initLocales(this.element).messages;
|
|
210
|
+
normalizeBooleanAttributes(this);
|
|
199
211
|
// Validate
|
|
200
212
|
this.watchIdentifier(this.identifier);
|
|
201
213
|
this.validateTitlePattern(this.titlePattern);
|
|
@@ -224,7 +236,7 @@ export class MgPanel {
|
|
|
224
236
|
*/
|
|
225
237
|
render() {
|
|
226
238
|
const headerId = `${this.identifier}-header`;
|
|
227
|
-
return (h("section", { key: '
|
|
239
|
+
return (h("section", { key: '62efd2c00306fef33b5aace98c7b226aac19663f', class: this.classCollection.join(), id: this.identifier }, h("mg-card", { key: '9958310f59b455d6a70d4948cb62daa0b27150ee', shadow: this.shadow }, h("header", { key: '593119bbcb5c1204928fe0ba640a04d3af97a13d', class: { 'mg-c-panel__header': true, 'mg-c-panel__header--reverse': this.titlePosition === 'right' }, id: headerId }, this.renderHeaderChildren()), h("article", { key: 'b71801233980b6a871be253061463a2148cf7f2c', class: "mg-c-panel__content", id: `${this.identifier}-content`, "aria-labelledby": headerId, hidden: !this.expanded }, h("slot", { key: 'efc3235a2a0600f55ac51eee7fd932f87ace2a47' })))));
|
|
228
240
|
}
|
|
229
241
|
static get is() { return "mg-panel"; }
|
|
230
242
|
static get encapsulation() { return "shadow"; }
|
|
@@ -339,7 +351,7 @@ export class MgPanel {
|
|
|
339
351
|
},
|
|
340
352
|
"titlePosition": {
|
|
341
353
|
"type": "string",
|
|
342
|
-
"mutable":
|
|
354
|
+
"mutable": true,
|
|
343
355
|
"complexType": {
|
|
344
356
|
"original": "TitlePositionType",
|
|
345
357
|
"resolved": "\"left\" | \"right\"",
|
|
@@ -347,7 +359,8 @@ export class MgPanel {
|
|
|
347
359
|
"TitlePositionType": {
|
|
348
360
|
"location": "import",
|
|
349
361
|
"path": "./mg-panel.conf",
|
|
350
|
-
"id": "src/components/molecules/mg-panel/mg-panel.conf.ts::TitlePositionType"
|
|
362
|
+
"id": "src/components/molecules/mg-panel/mg-panel.conf.ts::TitlePositionType",
|
|
363
|
+
"referenceLocation": "TitlePositionType"
|
|
351
364
|
}
|
|
352
365
|
}
|
|
353
366
|
},
|
|
@@ -385,7 +398,7 @@ export class MgPanel {
|
|
|
385
398
|
},
|
|
386
399
|
"expandToggleDisplay": {
|
|
387
400
|
"type": "string",
|
|
388
|
-
"mutable":
|
|
401
|
+
"mutable": true,
|
|
389
402
|
"complexType": {
|
|
390
403
|
"original": "ExpandToggleDisplayType",
|
|
391
404
|
"resolved": "\"icon\" | \"text\"",
|
|
@@ -393,7 +406,8 @@ export class MgPanel {
|
|
|
393
406
|
"ExpandToggleDisplayType": {
|
|
394
407
|
"location": "import",
|
|
395
408
|
"path": "./mg-panel.conf",
|
|
396
|
-
"id": "src/components/molecules/mg-panel/mg-panel.conf.ts::ExpandToggleDisplayType"
|
|
409
|
+
"id": "src/components/molecules/mg-panel/mg-panel.conf.ts::ExpandToggleDisplayType",
|
|
410
|
+
"referenceLocation": "ExpandToggleDisplayType"
|
|
397
411
|
}
|
|
398
412
|
}
|
|
399
413
|
},
|
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
|
},
|