@mgdis/mg-components 6.24.0 → 6.25.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-Acmyl4hv.js +5 -0
- package/dist/cjs/{index-BxB20_Vw.js → index-B6J2EllP.js} +3 -1
- package/dist/cjs/{index-BEF-cqV9.js → index-BmFwLEZT.js} +5 -1
- package/dist/cjs/{index-CpENFzEo.js → index-DrZECzp6.js} +14 -6
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/mg-action-more_36.cjs.entry.js +385 -259
- package/dist/cjs/mg-alert.cjs.entry.js +7 -8
- package/dist/cjs/mg-breadcrumb.cjs.entry.js +27 -10
- package/dist/cjs/mg-components.cjs.js +2 -2
- package/dist/cjs/mg-fieldset.cjs.entry.js +8 -8
- package/dist/cjs/mg-illustration.cjs.entry.js +57 -0
- package/dist/cjs/mg-input-combobox.cjs.entry.js +40 -23
- package/dist/cjs/mg-input-file.cjs.entry.js +12 -11
- package/dist/cjs/mg-input-rich-text-editor.cjs.entry.js +2565 -4011
- package/dist/cjs/mg-loader.cjs.entry.js +5 -5
- package/dist/cjs/mg-progress.cjs.entry.js +3 -3
- package/dist/collection/assets/illustrations/index.js +1 -0
- package/dist/collection/collection-manifest.json +1 -0
- 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 +1 -1
- package/dist/collection/components/atoms/mg-button/mg-button.js +4 -1
- package/dist/collection/components/atoms/mg-card/mg-card.js +1 -1
- package/dist/collection/components/atoms/mg-divider/mg-divider.conf.js +4 -0
- package/dist/collection/components/atoms/mg-divider/mg-divider.js +62 -3
- package/dist/collection/components/atoms/mg-icon/mg-icon.js +1 -1
- package/dist/collection/components/atoms/mg-illustration/mg-illustration.conf.js +1 -0
- package/dist/collection/components/atoms/mg-illustration/mg-illustration.js +95 -0
- package/dist/collection/components/atoms/mg-tag/mg-tag.js +1 -1
- 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 +9 -7
- package/dist/collection/components/molecules/inputs/mg-input/mg-input.js +49 -19
- package/dist/collection/components/molecules/inputs/mg-input-checkbox/MgInputCheckboxList.js +5 -2
- package/dist/collection/components/molecules/inputs/mg-input-checkbox/MgInputCheckboxPaginated.js +5 -1
- package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.js +30 -22
- package/dist/collection/components/molecules/inputs/mg-input-combobox/mg-input-combobox.js +69 -25
- package/dist/collection/components/molecules/inputs/mg-input-date/mg-input-date.js +14 -8
- package/dist/collection/components/molecules/inputs/mg-input-file/mg-input-file.js +8 -7
- package/dist/collection/components/molecules/inputs/mg-input-numeric/mg-input-numeric.js +21 -12
- package/dist/collection/components/molecules/inputs/mg-input-password/mg-input-password.js +7 -7
- package/dist/collection/components/molecules/inputs/mg-input-radio/mg-input-radio.js +15 -10
- package/dist/collection/components/molecules/inputs/mg-input-rich-text-editor/editor/index.js +29 -3
- package/dist/collection/components/molecules/inputs/mg-input-rich-text-editor/mg-input-rich-text-editor.js +260 -7
- package/dist/collection/components/molecules/inputs/mg-input-select/mg-input-select.js +21 -19
- package/dist/collection/components/molecules/inputs/mg-input-text/mg-input-text.js +18 -13
- package/dist/collection/components/molecules/inputs/mg-input-textarea/mg-input-textarea.js +7 -7
- package/dist/collection/components/molecules/inputs/mg-input-toggle/mg-input-toggle.js +10 -9
- package/dist/collection/components/molecules/internals/mg-item-more/mg-item-more.js +1 -1
- package/dist/collection/components/molecules/menus/mg-menu/mg-menu.js +7 -5
- package/dist/collection/components/molecules/menus/mg-menu-item/mg-menu-item.js +18 -17
- package/dist/collection/components/molecules/mg-action-more/mg-action-more.js +7 -4
- package/dist/collection/components/molecules/mg-alert/mg-alert.js +6 -7
- package/dist/collection/components/molecules/mg-breadcrumb/mg-breadcrumb.js +49 -6
- package/dist/collection/components/molecules/mg-details/mg-details.js +1 -1
- package/dist/collection/components/molecules/mg-fieldset/mg-fieldset.js +6 -6
- package/dist/collection/components/molecules/mg-form/mg-form.js +16 -13
- package/dist/collection/components/molecules/mg-illustrated-message/mg-illustrated-message.js +2 -2
- package/dist/collection/components/molecules/mg-loader/mg-loader.js +1 -1
- package/dist/collection/components/molecules/mg-message/mg-message.js +2 -2
- package/dist/collection/components/molecules/mg-modal/mg-modal.js +2 -2
- package/dist/collection/components/molecules/mg-pagination/mg-pagination.js +8 -4
- package/dist/collection/components/molecules/mg-panel/mg-panel.js +13 -4
- package/dist/collection/components/molecules/mg-popover/mg-popover-content/mg-popover-content.js +2 -2
- package/dist/collection/components/molecules/mg-popover/mg-popover.js +21 -37
- package/dist/collection/components/molecules/mg-progress/mg-progress.js +1 -1
- package/dist/collection/components/molecules/mg-skip-links/mg-skip-links.js +5 -3
- package/dist/collection/components/molecules/mg-table/mg-table.js +10 -6
- package/dist/collection/components/molecules/mg-tabs/mg-tabs.js +12 -9
- package/dist/collection/utils/behaviors.utils.js +3 -3
- package/dist/collection/utils/playwright.fixture.js +7 -2
- 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-illustration.d.ts +11 -0
- package/dist/components/mg-illustration.js +1 -0
- 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 +294 -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-tag.js +1 -1
- package/dist/components/mg-tooltip-content2.js +1 -1
- package/dist/components/mg-tooltip2.js +1 -1
- package/dist/custom-elements.json +178 -48
- package/dist/esm/{index-C7xjtdiw.js → index-91BOpzAB.js} +14 -6
- package/dist/esm/{index-DSEloqPn.js → index-BfblyCaJ.js} +3 -1
- package/dist/esm/index-Ci9Hv7DG.js +3 -0
- package/dist/esm/{index-DshvCiTL.js → index-D4bO_UCn.js} +5 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/mg-action-more_36.entry.js +382 -256
- package/dist/esm/mg-alert.entry.js +7 -8
- package/dist/esm/mg-breadcrumb.entry.js +27 -10
- package/dist/esm/mg-components.js +3 -3
- package/dist/esm/mg-fieldset.entry.js +8 -8
- package/dist/esm/mg-illustration.entry.js +55 -0
- package/dist/esm/mg-input-combobox.entry.js +40 -23
- package/dist/esm/mg-input-file.entry.js +12 -11
- package/dist/esm/mg-input-rich-text-editor.entry.js +2550 -3996
- package/dist/esm/mg-loader.entry.js +5 -5
- package/dist/esm/mg-progress.entry.js +3 -3
- package/dist/mg-components/mg-components.css +1 -1
- package/dist/mg-components/mg-components.esm.js +1 -1
- package/dist/mg-components/{p-cdb01923.entry.js → p-3ad7441c.entry.js} +1 -1
- package/dist/mg-components/p-413b4536.entry.js +1 -0
- package/dist/mg-components/p-4693077a.entry.js +1 -0
- package/dist/mg-components/p-5dff879a.entry.js +1 -0
- package/dist/mg-components/{p-08d3d957.entry.js → p-96fc508e.entry.js} +1 -1
- package/dist/mg-components/p-Ci9Hv7DG.js +1 -0
- package/dist/mg-components/p-D4bO_UCn.js +2 -0
- package/dist/mg-components/{p-d0b6d8f5.entry.js → p-ad533d08.entry.js} +1 -1
- package/dist/mg-components/p-b20f3698.entry.js +1 -0
- package/dist/mg-components/p-d0d12800.entry.js +1 -0
- package/dist/mg-components/p-ec4bd337.entry.js +1667 -0
- package/dist/mg-components/p-f8e58181.entry.js +1 -0
- package/dist/types/assets/illustrations/index.d.ts +21 -0
- package/dist/types/components/atoms/mg-divider/mg-divider.conf.d.ts +9 -0
- package/dist/types/components/atoms/mg-divider/mg-divider.d.ts +13 -0
- package/dist/types/components/atoms/mg-illustration/mg-illustration.conf.d.ts +5 -0
- package/dist/types/components/atoms/mg-illustration/mg-illustration.d.ts +24 -0
- package/dist/types/components/molecules/inputs/mg-input/mg-input.d.ts +18 -0
- package/dist/types/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.d.ts +1 -1
- package/dist/types/components/molecules/inputs/mg-input-combobox/mg-input-combobox.d.ts +10 -5
- package/dist/types/components/molecules/inputs/mg-input-date/mg-input-date.d.ts +2 -2
- package/dist/types/components/molecules/inputs/mg-input-numeric/mg-input-numeric.d.ts +2 -2
- package/dist/types/components/molecules/inputs/mg-input-password/mg-input-password.d.ts +2 -2
- package/dist/types/components/molecules/inputs/mg-input-radio/mg-input-radio.d.ts +1 -1
- package/dist/types/components/molecules/inputs/mg-input-rich-text-editor/editor/editor.conf.d.ts +4 -0
- package/dist/types/components/molecules/inputs/mg-input-rich-text-editor/mg-input-rich-text-editor.conf.d.ts +25 -0
- package/dist/types/components/molecules/inputs/mg-input-rich-text-editor/mg-input-rich-text-editor.d.ts +61 -2
- package/dist/types/components/molecules/inputs/mg-input-select/mg-input-select.d.ts +2 -2
- package/dist/types/components/molecules/inputs/mg-input-text/mg-input-text.d.ts +2 -2
- package/dist/types/components/molecules/inputs/mg-input-textarea/mg-input-textarea.d.ts +2 -2
- package/dist/types/components/molecules/inputs/mg-input-toggle/mg-input-toggle.d.ts +2 -2
- package/dist/types/components/molecules/menus/mg-menu-item/mg-menu-item.d.ts +2 -2
- package/dist/types/components/molecules/mg-alert/mg-alert.d.ts +2 -2
- package/dist/types/components/molecules/mg-breadcrumb/mg-breadcrumb.d.ts +11 -0
- package/dist/types/components/molecules/mg-popover/mg-popover-content/mg-popover-content.d.ts +1 -1
- package/dist/types/components/molecules/mg-popover/mg-popover.d.ts +3 -3
- package/dist/types/components/molecules/mg-skip-links/mg-skip-links.d.ts +1 -1
- package/dist/types/components/molecules/mg-tabs/mg-tabs.d.ts +1 -1
- package/dist/types/components.d.ts +145 -40
- package/ide/intellij/web-types.json +134 -64
- package/ide/vscode/css-custom-data.json +6 -2
- package/ide/vscode/html-custom-data.json +190 -32
- package/package.json +21 -21
- package/dist/mg-components/p-13feb37a.entry.js +0 -1
- package/dist/mg-components/p-7c63e469.entry.js +0 -1
- package/dist/mg-components/p-7fd3e519.entry.js +0 -1
- package/dist/mg-components/p-9953b835.entry.js +0 -1
- package/dist/mg-components/p-9c0a9fc7.entry.js +0 -1657
- package/dist/mg-components/p-DshvCiTL.js +0 -2
- package/dist/mg-components/p-a338088e.entry.js +0 -1
- /package/dist/mg-components/{p-C7xjtdiw.js → p-91BOpzAB.js} +0 -0
- /package/dist/mg-components/{p-DSEloqPn.js → p-BfblyCaJ.js} +0 -0
|
@@ -11,16 +11,20 @@ import { BadgeVariantType } from "./components/atoms/mg-badge/mg-badge.conf";
|
|
|
11
11
|
import { BreadcrumbItemType } from "./components/molecules/mg-breadcrumb/mg-breadcrumb.conf";
|
|
12
12
|
import { ButtonType, SizeType, VariantType as VariantType1 } from "./components/atoms/mg-button/mg-button.conf";
|
|
13
13
|
import { RadiusSizeType } from "./components/atoms/mg-card/mg-card.conf";
|
|
14
|
+
import { DividerDirectionType } from "./components/atoms/mg-divider/mg-divider.conf";
|
|
14
15
|
import { labelHeading, TooltipPosition, Width } from "./components/molecules/inputs/mg-input/mg-input.conf";
|
|
15
16
|
import { AriaRoleType, RequiredMessageStatusType } from "./components/molecules/mg-form/mg-form.conf";
|
|
16
17
|
import { IconSizeType, IconType, IconVariantStyleType, IconVariantType } from "./components/atoms/mg-icon/mg-icon.conf";
|
|
17
18
|
import { IllustratedMessageDirectionType, IllustratedMessageSizeType } from "./components/molecules/mg-illustrated-message/mg-illustrated-message.conf";
|
|
19
|
+
import { IllustrationType } from "./components/atoms/mg-illustration/mg-illustration.conf";
|
|
18
20
|
import { CheckboxType, ICheckboxValue } from "./components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.conf";
|
|
19
21
|
import { Direction, Option, Option as ToggleOption } from "./types";
|
|
22
|
+
import { Placement } from "@popperjs/core";
|
|
20
23
|
import { RequestMappingType, ResponseMappingType } from "./components/molecules/inputs/mg-input-combobox/mg-input-combobox.conf";
|
|
21
24
|
import { Format, NumericType } from "./components/molecules/inputs/mg-input-numeric/mg-input-numeric.conf";
|
|
22
25
|
import { RadioOption } from "./components/molecules/inputs/mg-input-radio/mg-input-radio.conf";
|
|
23
26
|
import { ButtonsOption } from "./components/molecules/inputs/mg-input-rich-text-editor/editor/editor.conf";
|
|
27
|
+
import { RichTextEditorCustomAction, SelectionChange } from "./components/molecules/inputs/mg-input-rich-text-editor/mg-input-rich-text-editor.conf";
|
|
24
28
|
import { SanitizerOptions } from "@mgdis/sanitize-html";
|
|
25
29
|
import { SelectOption } from "./components/molecules/inputs/mg-input-select/mg-input-select.conf";
|
|
26
30
|
import { OptionType, TextType } from "./components/molecules/inputs/mg-input-text/mg-input-text.conf";
|
|
@@ -32,7 +36,6 @@ import { VariantStyleType as VariantStyleType1, VariantType as VariantType2 } fr
|
|
|
32
36
|
import { DialogRoleType } from "./components/molecules/mg-modal/mg-modal.conf";
|
|
33
37
|
import { PaginationMessagesType } from "./components/molecules/mg-pagination/mg-pagination.conf";
|
|
34
38
|
import { ExpandToggleDisplayType, TitlePositionType } from "./components/molecules/mg-panel/mg-panel.conf";
|
|
35
|
-
import { Placement } from "@popperjs/core";
|
|
36
39
|
import { AriaRoleType as AriaRoleType1 } from "./components/molecules/mg-progress/mg-progress.conf";
|
|
37
40
|
import { SkipLink } from "./components/molecules/mg-skip-links/mg-skip-links.conf";
|
|
38
41
|
import { ColumnsType, TableSizeType } from "./components/molecules/mg-table/mg-table.conf";
|
|
@@ -44,16 +47,20 @@ export { BadgeVariantType } from "./components/atoms/mg-badge/mg-badge.conf";
|
|
|
44
47
|
export { BreadcrumbItemType } from "./components/molecules/mg-breadcrumb/mg-breadcrumb.conf";
|
|
45
48
|
export { ButtonType, SizeType, VariantType as VariantType1 } from "./components/atoms/mg-button/mg-button.conf";
|
|
46
49
|
export { RadiusSizeType } from "./components/atoms/mg-card/mg-card.conf";
|
|
50
|
+
export { DividerDirectionType } from "./components/atoms/mg-divider/mg-divider.conf";
|
|
47
51
|
export { labelHeading, TooltipPosition, Width } from "./components/molecules/inputs/mg-input/mg-input.conf";
|
|
48
52
|
export { AriaRoleType, RequiredMessageStatusType } from "./components/molecules/mg-form/mg-form.conf";
|
|
49
53
|
export { IconSizeType, IconType, IconVariantStyleType, IconVariantType } from "./components/atoms/mg-icon/mg-icon.conf";
|
|
50
54
|
export { IllustratedMessageDirectionType, IllustratedMessageSizeType } from "./components/molecules/mg-illustrated-message/mg-illustrated-message.conf";
|
|
55
|
+
export { IllustrationType } from "./components/atoms/mg-illustration/mg-illustration.conf";
|
|
51
56
|
export { CheckboxType, ICheckboxValue } from "./components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.conf";
|
|
52
57
|
export { Direction, Option, Option as ToggleOption } from "./types";
|
|
58
|
+
export { Placement } from "@popperjs/core";
|
|
53
59
|
export { RequestMappingType, ResponseMappingType } from "./components/molecules/inputs/mg-input-combobox/mg-input-combobox.conf";
|
|
54
60
|
export { Format, NumericType } from "./components/molecules/inputs/mg-input-numeric/mg-input-numeric.conf";
|
|
55
61
|
export { RadioOption } from "./components/molecules/inputs/mg-input-radio/mg-input-radio.conf";
|
|
56
62
|
export { ButtonsOption } from "./components/molecules/inputs/mg-input-rich-text-editor/editor/editor.conf";
|
|
63
|
+
export { RichTextEditorCustomAction, SelectionChange } from "./components/molecules/inputs/mg-input-rich-text-editor/mg-input-rich-text-editor.conf";
|
|
57
64
|
export { SanitizerOptions } from "@mgdis/sanitize-html";
|
|
58
65
|
export { SelectOption } from "./components/molecules/inputs/mg-input-select/mg-input-select.conf";
|
|
59
66
|
export { OptionType, TextType } from "./components/molecules/inputs/mg-input-text/mg-input-text.conf";
|
|
@@ -65,7 +72,6 @@ export { VariantStyleType as VariantStyleType1, VariantType as VariantType2 } fr
|
|
|
65
72
|
export { DialogRoleType } from "./components/molecules/mg-modal/mg-modal.conf";
|
|
66
73
|
export { PaginationMessagesType } from "./components/molecules/mg-pagination/mg-pagination.conf";
|
|
67
74
|
export { ExpandToggleDisplayType, TitlePositionType } from "./components/molecules/mg-panel/mg-panel.conf";
|
|
68
|
-
export { Placement } from "@popperjs/core";
|
|
69
75
|
export { AriaRoleType as AriaRoleType1 } from "./components/molecules/mg-progress/mg-progress.conf";
|
|
70
76
|
export { SkipLink } from "./components/molecules/mg-skip-links/mg-skip-links.conf";
|
|
71
77
|
export { ColumnsType, TableSizeType } from "./components/molecules/mg-table/mg-table.conf";
|
|
@@ -230,6 +236,11 @@ export namespace Components {
|
|
|
230
236
|
"toggleOpened": string;
|
|
231
237
|
}
|
|
232
238
|
interface MgDivider {
|
|
239
|
+
/**
|
|
240
|
+
* Define component direction
|
|
241
|
+
* @default 'horizontal'
|
|
242
|
+
*/
|
|
243
|
+
"direction": DividerDirectionType;
|
|
233
244
|
/**
|
|
234
245
|
* Define component size
|
|
235
246
|
* @default false
|
|
@@ -379,6 +390,13 @@ export namespace Components {
|
|
|
379
390
|
*/
|
|
380
391
|
"size": IllustratedMessageSizeType;
|
|
381
392
|
}
|
|
393
|
+
interface MgIllustration {
|
|
394
|
+
/**
|
|
395
|
+
* Illustration to display, by name from
|
|
396
|
+
* @mgdis /img.
|
|
397
|
+
*/
|
|
398
|
+
"illustration": IllustrationType;
|
|
399
|
+
}
|
|
382
400
|
interface MgInput {
|
|
383
401
|
/**
|
|
384
402
|
* Define aria-describedby ids to link with
|
|
@@ -625,6 +643,11 @@ export namespace Components {
|
|
|
625
643
|
* Define input placeholder. It should be a word or short phrase that demonstrates the expected type of data, not a replacement for labels or help combobox.
|
|
626
644
|
*/
|
|
627
645
|
"placeholder"?: string;
|
|
646
|
+
/**
|
|
647
|
+
* Define the popover placement
|
|
648
|
+
* @default 'bottom-start'
|
|
649
|
+
*/
|
|
650
|
+
"popoverPlacement": Placement;
|
|
628
651
|
/**
|
|
629
652
|
* Define if input is readonly
|
|
630
653
|
* @default false
|
|
@@ -1182,6 +1205,10 @@ export namespace Components {
|
|
|
1182
1205
|
"value": any;
|
|
1183
1206
|
}
|
|
1184
1207
|
interface MgInputRichTextEditor {
|
|
1208
|
+
/**
|
|
1209
|
+
* Inject custom action buttons in the toolbar (e.g. to insert merge fields or apply custom formatting). Buttons are appended after the built-in `modules`. Each action is an object `{ name, label, icon }`: - `name`: unique identifier, returned in the `custom-action` event detail on click. - `label`: accessible label used as the button tooltip and aria-label. - `icon`: design system `mg-icon` name rendered inside the button, unique across actions. The action behaviour is the consumer's responsibility: listen to `custom-action`, then read/write the selection with `getSelectedText()` / `getSelectedHTML()` / `replaceSelection()`.
|
|
1210
|
+
*/
|
|
1211
|
+
"customActions"?: RichTextEditorCustomAction[];
|
|
1185
1212
|
/**
|
|
1186
1213
|
* Define if input is disabled
|
|
1187
1214
|
* @default false
|
|
@@ -1201,6 +1228,16 @@ export namespace Components {
|
|
|
1201
1228
|
* @returns Plain text content of the editor
|
|
1202
1229
|
*/
|
|
1203
1230
|
"getEditorText": () => Promise<string>;
|
|
1231
|
+
/**
|
|
1232
|
+
* Get the current text selection as HTML. When a custom action is in progress, returns the selection snapshotted when the action was triggered.
|
|
1233
|
+
* @returns Sanitized HTML of the selection (empty string if nothing is selected)
|
|
1234
|
+
*/
|
|
1235
|
+
"getSelectedHTML": () => Promise<string>;
|
|
1236
|
+
/**
|
|
1237
|
+
* Get the current text selection as plain text. When a custom action is in progress, returns the selection snapshotted when the action was triggered.
|
|
1238
|
+
* @returns Plain text of the selection (empty string if nothing is selected)
|
|
1239
|
+
*/
|
|
1240
|
+
"getSelectedText": () => Promise<string>;
|
|
1204
1241
|
/**
|
|
1205
1242
|
* Add a help text under the input, usually expected data format and example
|
|
1206
1243
|
*/
|
|
@@ -1253,6 +1290,11 @@ export namespace Components {
|
|
|
1253
1290
|
* @default false
|
|
1254
1291
|
*/
|
|
1255
1292
|
"readonly": boolean;
|
|
1293
|
+
/**
|
|
1294
|
+
* Replace the current text selection with the given content. When a custom action is in progress, the selection snapshotted when the action was triggered is restored first, so the replacement targets the right range even after focus moved away (e.g. during an async network request). No-op when the editor is readonly or disabled.
|
|
1295
|
+
* @param content - HTML (or plain text) content to insert in place of the selection. It is sanitized.
|
|
1296
|
+
*/
|
|
1297
|
+
"replaceSelection": (content: string) => Promise<void>;
|
|
1256
1298
|
/**
|
|
1257
1299
|
* Define if input is required
|
|
1258
1300
|
* @default false
|
|
@@ -1954,9 +1996,9 @@ export namespace Components {
|
|
|
1954
1996
|
interface MgPopover {
|
|
1955
1997
|
/**
|
|
1956
1998
|
* Hide popover arrow
|
|
1957
|
-
* @
|
|
1999
|
+
* @deprecated this prop is deprecated and will be removed in future releases. The popover arrow has been removed.
|
|
1958
2000
|
*/
|
|
1959
|
-
"arrowHide":
|
|
2001
|
+
"arrowHide": never;
|
|
1960
2002
|
/**
|
|
1961
2003
|
* Define if popover has a cross button
|
|
1962
2004
|
* @default false
|
|
@@ -1979,7 +2021,7 @@ export namespace Components {
|
|
|
1979
2021
|
"identifier": string;
|
|
1980
2022
|
/**
|
|
1981
2023
|
* Popover placement
|
|
1982
|
-
* @default 'bottom'
|
|
2024
|
+
* @default 'bottom-start'
|
|
1983
2025
|
*/
|
|
1984
2026
|
"placement": Placement;
|
|
1985
2027
|
}
|
|
@@ -2121,6 +2163,10 @@ export interface MgAlertCustomEvent<T> extends CustomEvent<T> {
|
|
|
2121
2163
|
detail: T;
|
|
2122
2164
|
target: HTMLMgAlertElement;
|
|
2123
2165
|
}
|
|
2166
|
+
export interface MgBreadcrumbCustomEvent<T> extends CustomEvent<T> {
|
|
2167
|
+
detail: T;
|
|
2168
|
+
target: HTMLMgBreadcrumbElement;
|
|
2169
|
+
}
|
|
2124
2170
|
export interface MgButtonCustomEvent<T> extends CustomEvent<T> {
|
|
2125
2171
|
detail: T;
|
|
2126
2172
|
target: HTMLMgButtonElement;
|
|
@@ -2245,7 +2291,18 @@ declare global {
|
|
|
2245
2291
|
prototype: HTMLMgBadgeElement;
|
|
2246
2292
|
new (): HTMLMgBadgeElement;
|
|
2247
2293
|
};
|
|
2294
|
+
interface HTMLMgBreadcrumbElementEventMap {
|
|
2295
|
+
"item-click": BreadcrumbItemType;
|
|
2296
|
+
}
|
|
2248
2297
|
interface HTMLMgBreadcrumbElement extends Components.MgBreadcrumb, HTMLStencilElement {
|
|
2298
|
+
addEventListener<K extends keyof HTMLMgBreadcrumbElementEventMap>(type: K, listener: (this: HTMLMgBreadcrumbElement, ev: MgBreadcrumbCustomEvent<HTMLMgBreadcrumbElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
2299
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
2300
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
2301
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
2302
|
+
removeEventListener<K extends keyof HTMLMgBreadcrumbElementEventMap>(type: K, listener: (this: HTMLMgBreadcrumbElement, ev: MgBreadcrumbCustomEvent<HTMLMgBreadcrumbElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
2303
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
2304
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
2305
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
2249
2306
|
}
|
|
2250
2307
|
var HTMLMgBreadcrumbElement: {
|
|
2251
2308
|
prototype: HTMLMgBreadcrumbElement;
|
|
@@ -2340,6 +2397,12 @@ declare global {
|
|
|
2340
2397
|
prototype: HTMLMgIllustratedMessageElement;
|
|
2341
2398
|
new (): HTMLMgIllustratedMessageElement;
|
|
2342
2399
|
};
|
|
2400
|
+
interface HTMLMgIllustrationElement extends Components.MgIllustration, HTMLStencilElement {
|
|
2401
|
+
}
|
|
2402
|
+
var HTMLMgIllustrationElement: {
|
|
2403
|
+
prototype: HTMLMgIllustrationElement;
|
|
2404
|
+
new (): HTMLMgIllustrationElement;
|
|
2405
|
+
};
|
|
2343
2406
|
interface HTMLMgInputElement extends Components.MgInput, HTMLStencilElement {
|
|
2344
2407
|
}
|
|
2345
2408
|
var HTMLMgInputElement: {
|
|
@@ -2478,6 +2541,8 @@ declare global {
|
|
|
2478
2541
|
interface HTMLMgInputRichTextEditorElementEventMap {
|
|
2479
2542
|
"input-valid": boolean;
|
|
2480
2543
|
"value-change": string;
|
|
2544
|
+
"custom-action": string;
|
|
2545
|
+
"selection-change": SelectionChange;
|
|
2481
2546
|
}
|
|
2482
2547
|
interface HTMLMgInputRichTextEditorElement extends Components.MgInputRichTextEditor, HTMLStencilElement {
|
|
2483
2548
|
addEventListener<K extends keyof HTMLMgInputRichTextEditorElementEventMap>(type: K, listener: (this: HTMLMgInputRichTextEditorElement, ev: MgInputRichTextEditorCustomEvent<HTMLMgInputRichTextEditorElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -2780,6 +2845,7 @@ declare global {
|
|
|
2780
2845
|
"mg-form": HTMLMgFormElement;
|
|
2781
2846
|
"mg-icon": HTMLMgIconElement;
|
|
2782
2847
|
"mg-illustrated-message": HTMLMgIllustratedMessageElement;
|
|
2848
|
+
"mg-illustration": HTMLMgIllustrationElement;
|
|
2783
2849
|
"mg-input": HTMLMgInputElement;
|
|
2784
2850
|
"mg-input-checkbox": HTMLMgInputCheckboxElement;
|
|
2785
2851
|
"mg-input-combobox": HTMLMgInputComboboxElement;
|
|
@@ -2851,11 +2917,11 @@ declare namespace LocalJSX {
|
|
|
2851
2917
|
*/
|
|
2852
2918
|
"onComponent-close"?: (event: MgAlertCustomEvent<void>) => void;
|
|
2853
2919
|
/**
|
|
2854
|
-
*
|
|
2920
|
+
* Emitted event when alert is hidden
|
|
2855
2921
|
*/
|
|
2856
2922
|
"onComponent-hide"?: (event: MgAlertCustomEvent<void>) => void;
|
|
2857
2923
|
/**
|
|
2858
|
-
*
|
|
2924
|
+
* Emitted event when alert is diplayed
|
|
2859
2925
|
*/
|
|
2860
2926
|
"onComponent-show"?: (event: MgAlertCustomEvent<void>) => void;
|
|
2861
2927
|
/**
|
|
@@ -2894,6 +2960,10 @@ declare namespace LocalJSX {
|
|
|
2894
2960
|
* Breadcrumb items (hierarchical order: root → current page).
|
|
2895
2961
|
*/
|
|
2896
2962
|
"items": BreadcrumbItemType[];
|
|
2963
|
+
/**
|
|
2964
|
+
* Emitted event when item link is clicked
|
|
2965
|
+
*/
|
|
2966
|
+
"onItem-click"?: (event: MgBreadcrumbCustomEvent<BreadcrumbItemType>) => void;
|
|
2897
2967
|
}
|
|
2898
2968
|
interface MgButton {
|
|
2899
2969
|
/**
|
|
@@ -2994,6 +3064,11 @@ declare namespace LocalJSX {
|
|
|
2994
3064
|
"toggleOpened": string;
|
|
2995
3065
|
}
|
|
2996
3066
|
interface MgDivider {
|
|
3067
|
+
/**
|
|
3068
|
+
* Define component direction
|
|
3069
|
+
* @default 'horizontal'
|
|
3070
|
+
*/
|
|
3071
|
+
"direction"?: DividerDirectionType;
|
|
2997
3072
|
/**
|
|
2998
3073
|
* Define component size
|
|
2999
3074
|
* @default false
|
|
@@ -3138,6 +3213,13 @@ declare namespace LocalJSX {
|
|
|
3138
3213
|
*/
|
|
3139
3214
|
"size"?: IllustratedMessageSizeType;
|
|
3140
3215
|
}
|
|
3216
|
+
interface MgIllustration {
|
|
3217
|
+
/**
|
|
3218
|
+
* Illustration to display, by name from
|
|
3219
|
+
* @mgdis /img.
|
|
3220
|
+
*/
|
|
3221
|
+
"illustration": IllustrationType;
|
|
3222
|
+
}
|
|
3141
3223
|
interface MgInput {
|
|
3142
3224
|
/**
|
|
3143
3225
|
* Define aria-describedby ids to link with
|
|
@@ -3251,7 +3333,7 @@ declare namespace LocalJSX {
|
|
|
3251
3333
|
*/
|
|
3252
3334
|
"name"?: string;
|
|
3253
3335
|
/**
|
|
3254
|
-
*
|
|
3336
|
+
* Emitted event when checking validity
|
|
3255
3337
|
*/
|
|
3256
3338
|
"onInput-valid"?: (event: MgInputCheckboxCustomEvent<HTMLMgInputCheckboxElement['valid']>) => void;
|
|
3257
3339
|
/**
|
|
@@ -3366,29 +3448,34 @@ declare namespace LocalJSX {
|
|
|
3366
3448
|
*/
|
|
3367
3449
|
"name"?: string;
|
|
3368
3450
|
/**
|
|
3369
|
-
*
|
|
3451
|
+
* Emitted event when fetch API throw an error
|
|
3370
3452
|
*/
|
|
3371
3453
|
"onFetch-error"?: (event: MgInputComboboxCustomEvent<Error>) => void;
|
|
3372
3454
|
/**
|
|
3373
|
-
*
|
|
3455
|
+
* Emitted event when filter change
|
|
3374
3456
|
*/
|
|
3375
3457
|
"onFilter-change"?: (event: MgInputComboboxCustomEvent<string>) => void;
|
|
3376
3458
|
/**
|
|
3377
|
-
*
|
|
3459
|
+
* Emitted event when checking validity
|
|
3378
3460
|
*/
|
|
3379
3461
|
"onInput-valid"?: (event: MgInputComboboxCustomEvent<HTMLMgInputComboboxElement['valid']>) => void;
|
|
3380
3462
|
/**
|
|
3381
|
-
*
|
|
3463
|
+
* Emitted event when `load-more` is called
|
|
3382
3464
|
*/
|
|
3383
3465
|
"onLoad-more"?: (event: MgInputComboboxCustomEvent<void>) => void;
|
|
3384
3466
|
/**
|
|
3385
|
-
*
|
|
3467
|
+
* Emitted event when value change
|
|
3386
3468
|
*/
|
|
3387
3469
|
"onValue-change"?: (event: MgInputComboboxCustomEvent<HTMLMgInputComboboxElement['value']>) => void;
|
|
3388
3470
|
/**
|
|
3389
3471
|
* Define input placeholder. It should be a word or short phrase that demonstrates the expected type of data, not a replacement for labels or help combobox.
|
|
3390
3472
|
*/
|
|
3391
3473
|
"placeholder"?: string;
|
|
3474
|
+
/**
|
|
3475
|
+
* Define the popover placement
|
|
3476
|
+
* @default 'bottom-start'
|
|
3477
|
+
*/
|
|
3478
|
+
"popoverPlacement"?: Placement;
|
|
3392
3479
|
/**
|
|
3393
3480
|
* Define if input is readonly
|
|
3394
3481
|
* @default false
|
|
@@ -3464,11 +3551,11 @@ declare namespace LocalJSX {
|
|
|
3464
3551
|
*/
|
|
3465
3552
|
"name"?: string;
|
|
3466
3553
|
/**
|
|
3467
|
-
*
|
|
3554
|
+
* Emitted event when checking validity
|
|
3468
3555
|
*/
|
|
3469
3556
|
"onInput-valid"?: (event: MgInputDateCustomEvent<HTMLMgInputDateElement['valid']>) => void;
|
|
3470
3557
|
/**
|
|
3471
|
-
*
|
|
3558
|
+
* Emitted event when value change
|
|
3472
3559
|
*/
|
|
3473
3560
|
"onValue-change"?: (event: MgInputDateCustomEvent<HTMLMgInputDateElement['value']>) => void;
|
|
3474
3561
|
/**
|
|
@@ -3654,11 +3741,11 @@ declare namespace LocalJSX {
|
|
|
3654
3741
|
*/
|
|
3655
3742
|
"name"?: string;
|
|
3656
3743
|
/**
|
|
3657
|
-
*
|
|
3744
|
+
* Emitted event when checking validity
|
|
3658
3745
|
*/
|
|
3659
3746
|
"onInput-valid"?: (event: MgInputNumericCustomEvent<HTMLMgInputNumericElement['valid']>) => void;
|
|
3660
3747
|
/**
|
|
3661
|
-
*
|
|
3748
|
+
* Emitted event when value change
|
|
3662
3749
|
*/
|
|
3663
3750
|
"onValue-change"?: (event: MgInputNumericCustomEvent<number>) => void;
|
|
3664
3751
|
/**
|
|
@@ -3754,11 +3841,11 @@ declare namespace LocalJSX {
|
|
|
3754
3841
|
*/
|
|
3755
3842
|
"name"?: string;
|
|
3756
3843
|
/**
|
|
3757
|
-
*
|
|
3844
|
+
* Emitted event when checking validity
|
|
3758
3845
|
*/
|
|
3759
3846
|
"onInput-valid"?: (event: MgInputPasswordCustomEvent<HTMLMgInputPasswordElement['valid']>) => void;
|
|
3760
3847
|
/**
|
|
3761
|
-
*
|
|
3848
|
+
* Emitted event when value change
|
|
3762
3849
|
*/
|
|
3763
3850
|
"onValue-change"?: (event: MgInputPasswordCustomEvent<HTMLMgInputPasswordElement['value']>) => void;
|
|
3764
3851
|
/**
|
|
@@ -3840,7 +3927,7 @@ declare namespace LocalJSX {
|
|
|
3840
3927
|
*/
|
|
3841
3928
|
"name"?: string;
|
|
3842
3929
|
/**
|
|
3843
|
-
*
|
|
3930
|
+
* Emitted event when checking validity
|
|
3844
3931
|
*/
|
|
3845
3932
|
"onInput-valid"?: (event: MgInputRadioCustomEvent<HTMLMgInputRadioElement['valid']>) => void;
|
|
3846
3933
|
/**
|
|
@@ -3876,6 +3963,10 @@ declare namespace LocalJSX {
|
|
|
3876
3963
|
"value"?: any;
|
|
3877
3964
|
}
|
|
3878
3965
|
interface MgInputRichTextEditor {
|
|
3966
|
+
/**
|
|
3967
|
+
* Inject custom action buttons in the toolbar (e.g. to insert merge fields or apply custom formatting). Buttons are appended after the built-in `modules`. Each action is an object `{ name, label, icon }`: - `name`: unique identifier, returned in the `custom-action` event detail on click. - `label`: accessible label used as the button tooltip and aria-label. - `icon`: design system `mg-icon` name rendered inside the button, unique across actions. The action behaviour is the consumer's responsibility: listen to `custom-action`, then read/write the selection with `getSelectedText()` / `getSelectedHTML()` / `replaceSelection()`.
|
|
3968
|
+
*/
|
|
3969
|
+
"customActions"?: RichTextEditorCustomAction[];
|
|
3879
3970
|
/**
|
|
3880
3971
|
* Define if input is disabled
|
|
3881
3972
|
* @default false
|
|
@@ -3917,11 +4008,19 @@ declare namespace LocalJSX {
|
|
|
3917
4008
|
*/
|
|
3918
4009
|
"name"?: string;
|
|
3919
4010
|
/**
|
|
3920
|
-
*
|
|
4011
|
+
* Emitted event when a custom action button is clicked. The detail contains the action `name`.
|
|
4012
|
+
*/
|
|
4013
|
+
"onCustom-action"?: (event: MgInputRichTextEditorCustomEvent<string>) => void;
|
|
4014
|
+
/**
|
|
4015
|
+
* Emitted event when checking validity
|
|
3921
4016
|
*/
|
|
3922
4017
|
"onInput-valid"?: (event: MgInputRichTextEditorCustomEvent<boolean>) => void;
|
|
3923
4018
|
/**
|
|
3924
|
-
*
|
|
4019
|
+
* Emitted event when the text selection changes. The detail contains the selected `text`, sanitized `html` and whether the selection `isCollapsed`.
|
|
4020
|
+
*/
|
|
4021
|
+
"onSelection-change"?: (event: MgInputRichTextEditorCustomEvent<SelectionChange>) => void;
|
|
4022
|
+
/**
|
|
4023
|
+
* Emitted event when value change
|
|
3925
4024
|
*/
|
|
3926
4025
|
"onValue-change"?: (event: MgInputRichTextEditorCustomEvent<string>) => void;
|
|
3927
4026
|
/**
|
|
@@ -4020,11 +4119,11 @@ declare namespace LocalJSX {
|
|
|
4020
4119
|
*/
|
|
4021
4120
|
"name"?: string;
|
|
4022
4121
|
/**
|
|
4023
|
-
*
|
|
4122
|
+
* Emitted event when checking validity
|
|
4024
4123
|
*/
|
|
4025
4124
|
"onInput-valid"?: (event: MgInputSelectCustomEvent<HTMLMgInputCheckboxElement['valid']>) => void;
|
|
4026
4125
|
/**
|
|
4027
|
-
*
|
|
4126
|
+
* Emitted event when value change
|
|
4028
4127
|
*/
|
|
4029
4128
|
"onValue-change"?: (event: MgInputSelectCustomEvent<HTMLMgInputCheckboxElement['value']>) => void;
|
|
4030
4129
|
/**
|
|
@@ -4130,11 +4229,11 @@ declare namespace LocalJSX {
|
|
|
4130
4229
|
*/
|
|
4131
4230
|
"name"?: string;
|
|
4132
4231
|
/**
|
|
4133
|
-
*
|
|
4232
|
+
* Emitted event when checking validity
|
|
4134
4233
|
*/
|
|
4135
4234
|
"onInput-valid"?: (event: MgInputTextCustomEvent<HTMLMgInputTextElement['valid']>) => void;
|
|
4136
4235
|
/**
|
|
4137
|
-
*
|
|
4236
|
+
* Emitted event when value change
|
|
4138
4237
|
*/
|
|
4139
4238
|
"onValue-change"?: (event: MgInputTextCustomEvent<HTMLMgInputTextElement['value']>) => void;
|
|
4140
4239
|
/**
|
|
@@ -4235,11 +4334,11 @@ declare namespace LocalJSX {
|
|
|
4235
4334
|
*/
|
|
4236
4335
|
"name"?: string;
|
|
4237
4336
|
/**
|
|
4238
|
-
*
|
|
4337
|
+
* Emitted event when checking validity
|
|
4239
4338
|
*/
|
|
4240
4339
|
"onInput-valid"?: (event: MgInputTextareaCustomEvent<HTMLMgInputTextareaElement['valid']>) => void;
|
|
4241
4340
|
/**
|
|
4242
|
-
*
|
|
4341
|
+
* Emitted event when value change
|
|
4243
4342
|
*/
|
|
4244
4343
|
"onValue-change"?: (event: MgInputTextareaCustomEvent<HTMLMgInputTextareaElement['value']>) => void;
|
|
4245
4344
|
/**
|
|
@@ -4359,11 +4458,11 @@ declare namespace LocalJSX {
|
|
|
4359
4458
|
*/
|
|
4360
4459
|
"name"?: string;
|
|
4361
4460
|
/**
|
|
4362
|
-
*
|
|
4461
|
+
* Emitted event when checking validity
|
|
4363
4462
|
*/
|
|
4364
4463
|
"onInput-valid"?: (event: MgInputToggleCustomEvent<boolean>) => void;
|
|
4365
4464
|
/**
|
|
4366
|
-
*
|
|
4465
|
+
* Emitted event when value change
|
|
4367
4466
|
*/
|
|
4368
4467
|
"onValue-change"?: (event: MgInputToggleCustomEvent<HTMLMgInputToggleElement['value']>) => void;
|
|
4369
4468
|
/**
|
|
@@ -4449,11 +4548,11 @@ declare namespace LocalJSX {
|
|
|
4449
4548
|
*/
|
|
4450
4549
|
"isIcon"?: boolean;
|
|
4451
4550
|
/**
|
|
4452
|
-
*
|
|
4551
|
+
* Emitted event when item is loaded
|
|
4453
4552
|
*/
|
|
4454
4553
|
"onItem-loaded"?: (event: MgMenuItemCustomEvent<void>) => void;
|
|
4455
4554
|
/**
|
|
4456
|
-
*
|
|
4555
|
+
* Emitted event when item is updated
|
|
4457
4556
|
*/
|
|
4458
4557
|
"onItem-updated"?: (event: MgMenuItemCustomEvent<void>) => void;
|
|
4459
4558
|
/**
|
|
@@ -4620,9 +4719,9 @@ declare namespace LocalJSX {
|
|
|
4620
4719
|
interface MgPopover {
|
|
4621
4720
|
/**
|
|
4622
4721
|
* Hide popover arrow
|
|
4623
|
-
* @
|
|
4722
|
+
* @deprecated this prop is deprecated and will be removed in future releases. The popover arrow has been removed.
|
|
4624
4723
|
*/
|
|
4625
|
-
"arrowHide"?:
|
|
4724
|
+
"arrowHide"?: never;
|
|
4626
4725
|
/**
|
|
4627
4726
|
* Define if popover has a cross button
|
|
4628
4727
|
* @default false
|
|
@@ -4648,12 +4747,12 @@ declare namespace LocalJSX {
|
|
|
4648
4747
|
*/
|
|
4649
4748
|
"onComponent-close"?: (event: MgPopoverCustomEvent<void>) => void;
|
|
4650
4749
|
/**
|
|
4651
|
-
*
|
|
4750
|
+
* Emitted event when display value change
|
|
4652
4751
|
*/
|
|
4653
4752
|
"onDisplay-change"?: (event: MgPopoverCustomEvent<HTMLMgPopoverElement['display']>) => void;
|
|
4654
4753
|
/**
|
|
4655
4754
|
* Popover placement
|
|
4656
|
-
* @default 'bottom'
|
|
4755
|
+
* @default 'bottom-start'
|
|
4657
4756
|
*/
|
|
4658
4757
|
"placement"?: Placement;
|
|
4659
4758
|
}
|
|
@@ -4664,7 +4763,7 @@ declare namespace LocalJSX {
|
|
|
4664
4763
|
*/
|
|
4665
4764
|
"closeButton"?: boolean;
|
|
4666
4765
|
/**
|
|
4667
|
-
*
|
|
4766
|
+
* Emitted event when close button is clicked
|
|
4668
4767
|
*/
|
|
4669
4768
|
"onHide-content"?: (event: MgPopoverContentCustomEvent<void>) => void;
|
|
4670
4769
|
}
|
|
@@ -4700,7 +4799,7 @@ declare namespace LocalJSX {
|
|
|
4700
4799
|
*/
|
|
4701
4800
|
"links"?: SkipLink[];
|
|
4702
4801
|
/**
|
|
4703
|
-
*
|
|
4802
|
+
* Emitted event when link is clicked
|
|
4704
4803
|
*/
|
|
4705
4804
|
"onGo-to-anchor"?: (event: MgSkipLinksCustomEvent<string>) => void;
|
|
4706
4805
|
}
|
|
@@ -4744,7 +4843,7 @@ declare namespace LocalJSX {
|
|
|
4744
4843
|
*/
|
|
4745
4844
|
"label": string;
|
|
4746
4845
|
/**
|
|
4747
|
-
*
|
|
4846
|
+
* Emitted event when active tab change
|
|
4748
4847
|
*/
|
|
4749
4848
|
"onActive-tab-change"?: (event: MgTabsCustomEvent<HTMLMgTabsElement['activeTab']>) => void;
|
|
4750
4849
|
/**
|
|
@@ -4846,6 +4945,7 @@ declare namespace LocalJSX {
|
|
|
4846
4945
|
}
|
|
4847
4946
|
interface MgDividerAttributes {
|
|
4848
4947
|
"fullWidth": boolean;
|
|
4948
|
+
"direction": DividerDirectionType;
|
|
4849
4949
|
}
|
|
4850
4950
|
interface MgFieldsetAttributes {
|
|
4851
4951
|
"identifier": string;
|
|
@@ -4881,6 +4981,9 @@ declare namespace LocalJSX {
|
|
|
4881
4981
|
"size": IllustratedMessageSizeType;
|
|
4882
4982
|
"direction": IllustratedMessageDirectionType;
|
|
4883
4983
|
}
|
|
4984
|
+
interface MgIllustrationAttributes {
|
|
4985
|
+
"illustration": IllustrationType;
|
|
4986
|
+
}
|
|
4884
4987
|
interface MgInputAttributes {
|
|
4885
4988
|
"identifier": string;
|
|
4886
4989
|
"label": string;
|
|
@@ -4930,6 +5033,7 @@ declare namespace LocalJSX {
|
|
|
4930
5033
|
"readonly": boolean;
|
|
4931
5034
|
"disabled": boolean;
|
|
4932
5035
|
"mgWidth": string;
|
|
5036
|
+
"popoverPlacement": Placement;
|
|
4933
5037
|
"tooltip": string;
|
|
4934
5038
|
"tooltipPosition": TooltipPosition;
|
|
4935
5039
|
"helpText": string;
|
|
@@ -5197,7 +5301,6 @@ declare namespace LocalJSX {
|
|
|
5197
5301
|
interface MgPopoverAttributes {
|
|
5198
5302
|
"identifier": string;
|
|
5199
5303
|
"placement": Placement;
|
|
5200
|
-
"arrowHide": boolean;
|
|
5201
5304
|
"closeButton": boolean;
|
|
5202
5305
|
"display": boolean;
|
|
5203
5306
|
"disabled": boolean;
|
|
@@ -5252,6 +5355,7 @@ declare namespace LocalJSX {
|
|
|
5252
5355
|
"mg-form": Omit<MgForm, keyof MgFormAttributes> & { [K in keyof MgForm & keyof MgFormAttributes]?: MgForm[K] } & { [K in keyof MgForm & keyof MgFormAttributes as `attr:${K}`]?: MgFormAttributes[K] } & { [K in keyof MgForm & keyof MgFormAttributes as `prop:${K}`]?: MgForm[K] };
|
|
5253
5356
|
"mg-icon": Omit<MgIcon, keyof MgIconAttributes> & { [K in keyof MgIcon & keyof MgIconAttributes]?: MgIcon[K] } & { [K in keyof MgIcon & keyof MgIconAttributes as `attr:${K}`]?: MgIconAttributes[K] } & { [K in keyof MgIcon & keyof MgIconAttributes as `prop:${K}`]?: MgIcon[K] } & OneOf<"icon", MgIcon["icon"], MgIconAttributes["icon"]>;
|
|
5254
5357
|
"mg-illustrated-message": Omit<MgIllustratedMessage, keyof MgIllustratedMessageAttributes> & { [K in keyof MgIllustratedMessage & keyof MgIllustratedMessageAttributes]?: MgIllustratedMessage[K] } & { [K in keyof MgIllustratedMessage & keyof MgIllustratedMessageAttributes as `attr:${K}`]?: MgIllustratedMessageAttributes[K] } & { [K in keyof MgIllustratedMessage & keyof MgIllustratedMessageAttributes as `prop:${K}`]?: MgIllustratedMessage[K] };
|
|
5358
|
+
"mg-illustration": Omit<MgIllustration, keyof MgIllustrationAttributes> & { [K in keyof MgIllustration & keyof MgIllustrationAttributes]?: MgIllustration[K] } & { [K in keyof MgIllustration & keyof MgIllustrationAttributes as `attr:${K}`]?: MgIllustrationAttributes[K] } & { [K in keyof MgIllustration & keyof MgIllustrationAttributes as `prop:${K}`]?: MgIllustration[K] } & OneOf<"illustration", MgIllustration["illustration"], MgIllustrationAttributes["illustration"]>;
|
|
5255
5359
|
"mg-input": Omit<MgInput, keyof MgInputAttributes> & { [K in keyof MgInput & keyof MgInputAttributes]?: MgInput[K] } & { [K in keyof MgInput & keyof MgInputAttributes as `attr:${K}`]?: MgInputAttributes[K] } & { [K in keyof MgInput & keyof MgInputAttributes as `prop:${K}`]?: MgInput[K] } & OneOf<"identifier", MgInput["identifier"], MgInputAttributes["identifier"]> & OneOf<"label", MgInput["label"], MgInputAttributes["label"]>;
|
|
5256
5360
|
"mg-input-checkbox": Omit<MgInputCheckbox, keyof MgInputCheckboxAttributes> & { [K in keyof MgInputCheckbox & keyof MgInputCheckboxAttributes]?: MgInputCheckbox[K] } & { [K in keyof MgInputCheckbox & keyof MgInputCheckboxAttributes as `attr:${K}`]?: MgInputCheckboxAttributes[K] } & { [K in keyof MgInputCheckbox & keyof MgInputCheckboxAttributes as `prop:${K}`]?: MgInputCheckbox[K] } & OneOf<"identifier", MgInputCheckbox["identifier"], MgInputCheckboxAttributes["identifier"]> & OneOf<"label", MgInputCheckbox["label"], MgInputCheckboxAttributes["label"]>;
|
|
5257
5361
|
"mg-input-combobox": Omit<MgInputCombobox, keyof MgInputComboboxAttributes> & { [K in keyof MgInputCombobox & keyof MgInputComboboxAttributes]?: MgInputCombobox[K] } & { [K in keyof MgInputCombobox & keyof MgInputComboboxAttributes as `attr:${K}`]?: MgInputComboboxAttributes[K] } & { [K in keyof MgInputCombobox & keyof MgInputComboboxAttributes as `prop:${K}`]?: MgInputCombobox[K] } & OneOf<"itemsLabel", MgInputCombobox["itemsLabel"], MgInputComboboxAttributes["itemsLabel"]> & OneOf<"identifier", MgInputCombobox["identifier"], MgInputComboboxAttributes["identifier"]> & OneOf<"label", MgInputCombobox["label"], MgInputComboboxAttributes["label"]>;
|
|
@@ -5302,6 +5406,7 @@ declare module "@stencil/core" {
|
|
|
5302
5406
|
"mg-form": LocalJSX.IntrinsicElements["mg-form"] & JSXBase.HTMLAttributes<HTMLMgFormElement>;
|
|
5303
5407
|
"mg-icon": LocalJSX.IntrinsicElements["mg-icon"] & JSXBase.HTMLAttributes<HTMLMgIconElement>;
|
|
5304
5408
|
"mg-illustrated-message": LocalJSX.IntrinsicElements["mg-illustrated-message"] & JSXBase.HTMLAttributes<HTMLMgIllustratedMessageElement>;
|
|
5409
|
+
"mg-illustration": LocalJSX.IntrinsicElements["mg-illustration"] & JSXBase.HTMLAttributes<HTMLMgIllustrationElement>;
|
|
5305
5410
|
"mg-input": LocalJSX.IntrinsicElements["mg-input"] & JSXBase.HTMLAttributes<HTMLMgInputElement>;
|
|
5306
5411
|
"mg-input-checkbox": LocalJSX.IntrinsicElements["mg-input-checkbox"] & JSXBase.HTMLAttributes<HTMLMgInputCheckboxElement>;
|
|
5307
5412
|
"mg-input-combobox": LocalJSX.IntrinsicElements["mg-input-combobox"] & JSXBase.HTMLAttributes<HTMLMgInputComboboxElement>;
|