@mgdis/mg-components 6.24.0 → 6.26.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 +452 -261
- 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 -4013
- 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/assets/jodit/jodit.css +5821 -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 +84 -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 +9 -8
- 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/custom-properties.css +50 -0
- 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 +262 -9
- 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.conf.js +4 -0
- package/dist/collection/components/molecules/mg-illustrated-message/mg-illustrated-message.js +51 -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 +24 -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 +197 -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 +449 -258
- 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 -3998
- 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-206505b5.entry.js +1667 -0
- 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-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-bf2252c9.entry.js +1 -0
- package/dist/mg-components/p-d0d12800.entry.js +1 -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 +19 -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-illustrated-message/mg-illustrated-message.conf.d.ts +8 -0
- package/dist/types/components/molecules/mg-illustrated-message/mg-illustrated-message.d.ts +9 -1
- 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 +158 -42
- package/ide/intellij/web-types.json +145 -65
- package/ide/vscode/css-custom-data.json +6 -2
- package/ide/vscode/html-custom-data.json +216 -33
- package/package.json +22 -22
- package/dist/collection/components/molecules/inputs/mg-input-rich-text-editor/editor/custom-properties.scss +0 -212
- 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
|
@@ -175,14 +175,14 @@
|
|
|
175
175
|
},
|
|
176
176
|
{
|
|
177
177
|
"name": "component-hide",
|
|
178
|
-
"description": "
|
|
178
|
+
"description": "Emitted event when alert is hidden",
|
|
179
179
|
"type": {
|
|
180
180
|
"text": "CustomEvent<void>"
|
|
181
181
|
}
|
|
182
182
|
},
|
|
183
183
|
{
|
|
184
184
|
"name": "component-show",
|
|
185
|
-
"description": "
|
|
185
|
+
"description": "Emitted event when alert is diplayed",
|
|
186
186
|
"type": {
|
|
187
187
|
"text": "CustomEvent<void>"
|
|
188
188
|
}
|
|
@@ -350,7 +350,15 @@
|
|
|
350
350
|
}
|
|
351
351
|
}
|
|
352
352
|
],
|
|
353
|
-
"events": [
|
|
353
|
+
"events": [
|
|
354
|
+
{
|
|
355
|
+
"name": "item-click",
|
|
356
|
+
"description": "Emitted event when item link is clicked",
|
|
357
|
+
"type": {
|
|
358
|
+
"text": "CustomEvent<{ label: string; href?: string; 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\"; }>"
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
],
|
|
354
362
|
"slots": [],
|
|
355
363
|
"cssProperties": [],
|
|
356
364
|
"cssParts": []
|
|
@@ -805,7 +813,7 @@
|
|
|
805
813
|
},
|
|
806
814
|
{
|
|
807
815
|
"name": "--mg-c-card-border-radius-default",
|
|
808
|
-
"description": "Defines the default border radius property for the card. Default value: `--mg-b-size-
|
|
816
|
+
"description": "Defines the default border radius property for the card. Default value: `--mg-b-size-radius-xlarge`."
|
|
809
817
|
},
|
|
810
818
|
{
|
|
811
819
|
"name": "--mg-c-card-box-shadow",
|
|
@@ -1002,6 +1010,15 @@
|
|
|
1002
1010
|
"customElement": true,
|
|
1003
1011
|
"description": "",
|
|
1004
1012
|
"attributes": [
|
|
1013
|
+
{
|
|
1014
|
+
"name": "direction",
|
|
1015
|
+
"description": "Define component direction",
|
|
1016
|
+
"type": {
|
|
1017
|
+
"text": "\"horizontal\" | \"vertical\""
|
|
1018
|
+
},
|
|
1019
|
+
"default": "'horizontal'",
|
|
1020
|
+
"fieldName": "direction"
|
|
1021
|
+
},
|
|
1005
1022
|
{
|
|
1006
1023
|
"name": "full-width",
|
|
1007
1024
|
"description": "Define component size",
|
|
@@ -1013,6 +1030,16 @@
|
|
|
1013
1030
|
}
|
|
1014
1031
|
],
|
|
1015
1032
|
"members": [
|
|
1033
|
+
{
|
|
1034
|
+
"kind": "field",
|
|
1035
|
+
"name": "direction",
|
|
1036
|
+
"description": "Define component direction",
|
|
1037
|
+
"type": {
|
|
1038
|
+
"text": "\"horizontal\" | \"vertical\""
|
|
1039
|
+
},
|
|
1040
|
+
"default": "'horizontal'",
|
|
1041
|
+
"attribute": "direction"
|
|
1042
|
+
},
|
|
1016
1043
|
{
|
|
1017
1044
|
"kind": "field",
|
|
1018
1045
|
"name": "fullWidth",
|
|
@@ -1033,7 +1060,7 @@
|
|
|
1033
1060
|
},
|
|
1034
1061
|
{
|
|
1035
1062
|
"name": "--mg-c-divider-spacing-vertical",
|
|
1036
|
-
"description": "Defines the vertical spacing
|
|
1063
|
+
"description": "Defines the spacing around the divider: vertical spacing when direction is \"horizontal\", horizontal spacing when direction is \"vertical\". The default value is `--mg-b-size-40`."
|
|
1037
1064
|
},
|
|
1038
1065
|
{
|
|
1039
1066
|
"name": "--mg-c-divider-thickness",
|
|
@@ -1651,6 +1678,15 @@
|
|
|
1651
1678
|
"customElement": true,
|
|
1652
1679
|
"description": "",
|
|
1653
1680
|
"attributes": [
|
|
1681
|
+
{
|
|
1682
|
+
"name": "align",
|
|
1683
|
+
"description": "Define the horizontal alignment of the message inside its container.\nThe message is sized to its content, so `align` positions it in both the vertical and\nhorizontal directions. When the content is wide enough to fill the container there is\nno room left, so `align` has no visible effect.",
|
|
1684
|
+
"type": {
|
|
1685
|
+
"text": "\"center\" | \"left\" | \"right\""
|
|
1686
|
+
},
|
|
1687
|
+
"default": "'center'",
|
|
1688
|
+
"fieldName": "align"
|
|
1689
|
+
},
|
|
1654
1690
|
{
|
|
1655
1691
|
"name": "direction",
|
|
1656
1692
|
"description": "Define component orientation",
|
|
@@ -1671,6 +1707,16 @@
|
|
|
1671
1707
|
}
|
|
1672
1708
|
],
|
|
1673
1709
|
"members": [
|
|
1710
|
+
{
|
|
1711
|
+
"kind": "field",
|
|
1712
|
+
"name": "align",
|
|
1713
|
+
"description": "Define the horizontal alignment of the message inside its container.\nThe message is sized to its content, so `align` positions it in both the vertical and\nhorizontal directions. When the content is wide enough to fill the container there is\nno room left, so `align` has no visible effect.",
|
|
1714
|
+
"type": {
|
|
1715
|
+
"text": "\"center\" | \"left\" | \"right\""
|
|
1716
|
+
},
|
|
1717
|
+
"default": "'center'",
|
|
1718
|
+
"attribute": "align"
|
|
1719
|
+
},
|
|
1674
1720
|
{
|
|
1675
1721
|
"kind": "field",
|
|
1676
1722
|
"name": "direction",
|
|
@@ -1727,6 +1773,64 @@
|
|
|
1727
1773
|
}
|
|
1728
1774
|
]
|
|
1729
1775
|
},
|
|
1776
|
+
{
|
|
1777
|
+
"kind": "javascript-module",
|
|
1778
|
+
"path": "src/components/atoms/mg-illustration/mg-illustration.tsx",
|
|
1779
|
+
"declarations": [
|
|
1780
|
+
{
|
|
1781
|
+
"kind": "class",
|
|
1782
|
+
"name": "MgIllustration",
|
|
1783
|
+
"tagName": "mg-illustration",
|
|
1784
|
+
"customElement": true,
|
|
1785
|
+
"description": "",
|
|
1786
|
+
"attributes": [
|
|
1787
|
+
{
|
|
1788
|
+
"name": "illustration",
|
|
1789
|
+
"description": "Illustration to display, by name from",
|
|
1790
|
+
"type": {
|
|
1791
|
+
"text": "\"aides\" | \"all-done\" | \"convention-empty\" | \"conviviale\" | \"digital-forms\" | \"digital-security\" | \"disconnected\" | \"documents\" | \"echanges\" | \"empty\" | \"missing-informations\" | \"neutral\" | \"no-data\" | \"no-result\" | \"request-sent\" | \"search-no-result\" | \"secure-data\" | \"stage\" | \"welcome\""
|
|
1792
|
+
},
|
|
1793
|
+
"fieldName": "illustration"
|
|
1794
|
+
}
|
|
1795
|
+
],
|
|
1796
|
+
"members": [
|
|
1797
|
+
{
|
|
1798
|
+
"kind": "field",
|
|
1799
|
+
"name": "illustration",
|
|
1800
|
+
"description": "Illustration to display, by name from",
|
|
1801
|
+
"type": {
|
|
1802
|
+
"text": "\"aides\" | \"all-done\" | \"convention-empty\" | \"conviviale\" | \"digital-forms\" | \"digital-security\" | \"disconnected\" | \"documents\" | \"echanges\" | \"empty\" | \"missing-informations\" | \"neutral\" | \"no-data\" | \"no-result\" | \"request-sent\" | \"search-no-result\" | \"secure-data\" | \"stage\" | \"welcome\""
|
|
1803
|
+
},
|
|
1804
|
+
"attribute": "illustration"
|
|
1805
|
+
}
|
|
1806
|
+
],
|
|
1807
|
+
"events": [],
|
|
1808
|
+
"slots": [],
|
|
1809
|
+
"cssProperties": [
|
|
1810
|
+
{
|
|
1811
|
+
"name": "--mg-c-illustration-color",
|
|
1812
|
+
"description": "Overrides the brand-accent colour of the illustration. Unset by default, so the illustration keeps its own brand colours (as when loaded as an `<img>`)."
|
|
1813
|
+
}
|
|
1814
|
+
],
|
|
1815
|
+
"cssParts": [
|
|
1816
|
+
{
|
|
1817
|
+
"name": "illustration",
|
|
1818
|
+
"description": "The inlined illustration SVG. Recolor its brand accent through the `--mg-b-color-app` custom property."
|
|
1819
|
+
}
|
|
1820
|
+
]
|
|
1821
|
+
}
|
|
1822
|
+
],
|
|
1823
|
+
"exports": [
|
|
1824
|
+
{
|
|
1825
|
+
"kind": "custom-element-definition",
|
|
1826
|
+
"name": "mg-illustration",
|
|
1827
|
+
"declaration": {
|
|
1828
|
+
"name": "MgIllustration",
|
|
1829
|
+
"module": "src/components/atoms/mg-illustration/mg-illustration.tsx"
|
|
1830
|
+
}
|
|
1831
|
+
}
|
|
1832
|
+
]
|
|
1833
|
+
},
|
|
1730
1834
|
{
|
|
1731
1835
|
"kind": "javascript-module",
|
|
1732
1836
|
"path": "src/components/molecules/inputs/mg-input/mg-input.tsx",
|
|
@@ -2417,7 +2521,7 @@
|
|
|
2417
2521
|
"events": [
|
|
2418
2522
|
{
|
|
2419
2523
|
"name": "input-valid",
|
|
2420
|
-
"description": "
|
|
2524
|
+
"description": "Emitted event when checking validity",
|
|
2421
2525
|
"type": {
|
|
2422
2526
|
"text": "CustomEvent<boolean>"
|
|
2423
2527
|
}
|
|
@@ -2558,6 +2662,15 @@
|
|
|
2558
2662
|
},
|
|
2559
2663
|
"fieldName": "placeholder"
|
|
2560
2664
|
},
|
|
2665
|
+
{
|
|
2666
|
+
"name": "popover-placement",
|
|
2667
|
+
"description": "Define the popover placement",
|
|
2668
|
+
"type": {
|
|
2669
|
+
"text": "\"auto\" | \"auto-end\" | \"auto-start\" | \"bottom\" | \"bottom-end\" | \"bottom-start\" | \"left\" | \"left-end\" | \"left-start\" | \"right\" | \"right-end\" | \"right-start\" | \"top\" | \"top-end\" | \"top-start\""
|
|
2670
|
+
},
|
|
2671
|
+
"default": "'bottom-start'",
|
|
2672
|
+
"fieldName": "popoverPlacement"
|
|
2673
|
+
},
|
|
2561
2674
|
{
|
|
2562
2675
|
"name": "readonly",
|
|
2563
2676
|
"description": "Define if input is readonly",
|
|
@@ -2748,6 +2861,16 @@
|
|
|
2748
2861
|
},
|
|
2749
2862
|
"attribute": "placeholder"
|
|
2750
2863
|
},
|
|
2864
|
+
{
|
|
2865
|
+
"kind": "field",
|
|
2866
|
+
"name": "popoverPlacement",
|
|
2867
|
+
"description": "Define the popover placement",
|
|
2868
|
+
"type": {
|
|
2869
|
+
"text": "\"auto\" | \"auto-end\" | \"auto-start\" | \"bottom\" | \"bottom-end\" | \"bottom-start\" | \"left\" | \"left-end\" | \"left-start\" | \"right\" | \"right-end\" | \"right-start\" | \"top\" | \"top-end\" | \"top-start\""
|
|
2870
|
+
},
|
|
2871
|
+
"default": "'bottom-start'",
|
|
2872
|
+
"attribute": "popover-placement"
|
|
2873
|
+
},
|
|
2751
2874
|
{
|
|
2752
2875
|
"kind": "field",
|
|
2753
2876
|
"name": "readonly",
|
|
@@ -2829,35 +2952,35 @@
|
|
|
2829
2952
|
"events": [
|
|
2830
2953
|
{
|
|
2831
2954
|
"name": "fetch-error",
|
|
2832
|
-
"description": "
|
|
2955
|
+
"description": "Emitted event when fetch API throw an error",
|
|
2833
2956
|
"type": {
|
|
2834
2957
|
"text": "CustomEvent<Error>"
|
|
2835
2958
|
}
|
|
2836
2959
|
},
|
|
2837
2960
|
{
|
|
2838
2961
|
"name": "filter-change",
|
|
2839
|
-
"description": "
|
|
2962
|
+
"description": "Emitted event when filter change",
|
|
2840
2963
|
"type": {
|
|
2841
2964
|
"text": "CustomEvent<string>"
|
|
2842
2965
|
}
|
|
2843
2966
|
},
|
|
2844
2967
|
{
|
|
2845
2968
|
"name": "input-valid",
|
|
2846
|
-
"description": "
|
|
2969
|
+
"description": "Emitted event when checking validity",
|
|
2847
2970
|
"type": {
|
|
2848
2971
|
"text": "CustomEvent<boolean>"
|
|
2849
2972
|
}
|
|
2850
2973
|
},
|
|
2851
2974
|
{
|
|
2852
2975
|
"name": "load-more",
|
|
2853
|
-
"description": "
|
|
2976
|
+
"description": "Emitted event when `load-more` is called",
|
|
2854
2977
|
"type": {
|
|
2855
2978
|
"text": "CustomEvent<void>"
|
|
2856
2979
|
}
|
|
2857
2980
|
},
|
|
2858
2981
|
{
|
|
2859
2982
|
"name": "value-change",
|
|
2860
|
-
"description": "
|
|
2983
|
+
"description": "Emitted event when value change",
|
|
2861
2984
|
"type": {
|
|
2862
2985
|
"text": "CustomEvent<string | { title: string; value: unknown; }>"
|
|
2863
2986
|
}
|
|
@@ -3204,14 +3327,14 @@
|
|
|
3204
3327
|
"events": [
|
|
3205
3328
|
{
|
|
3206
3329
|
"name": "input-valid",
|
|
3207
|
-
"description": "
|
|
3330
|
+
"description": "Emitted event when checking validity",
|
|
3208
3331
|
"type": {
|
|
3209
3332
|
"text": "CustomEvent<boolean>"
|
|
3210
3333
|
}
|
|
3211
3334
|
},
|
|
3212
3335
|
{
|
|
3213
3336
|
"name": "value-change",
|
|
3214
|
-
"description": "
|
|
3337
|
+
"description": "Emitted event when value change",
|
|
3215
3338
|
"type": {
|
|
3216
3339
|
"text": "CustomEvent<string>"
|
|
3217
3340
|
}
|
|
@@ -4090,14 +4213,14 @@
|
|
|
4090
4213
|
"events": [
|
|
4091
4214
|
{
|
|
4092
4215
|
"name": "input-valid",
|
|
4093
|
-
"description": "
|
|
4216
|
+
"description": "Emitted event when checking validity",
|
|
4094
4217
|
"type": {
|
|
4095
4218
|
"text": "CustomEvent<boolean>"
|
|
4096
4219
|
}
|
|
4097
4220
|
},
|
|
4098
4221
|
{
|
|
4099
4222
|
"name": "value-change",
|
|
4100
|
-
"description": "
|
|
4223
|
+
"description": "Emitted event when value change",
|
|
4101
4224
|
"type": {
|
|
4102
4225
|
"text": "CustomEvent<number>"
|
|
4103
4226
|
}
|
|
@@ -4466,14 +4589,14 @@
|
|
|
4466
4589
|
"events": [
|
|
4467
4590
|
{
|
|
4468
4591
|
"name": "input-valid",
|
|
4469
|
-
"description": "
|
|
4592
|
+
"description": "Emitted event when checking validity",
|
|
4470
4593
|
"type": {
|
|
4471
4594
|
"text": "CustomEvent<boolean>"
|
|
4472
4595
|
}
|
|
4473
4596
|
},
|
|
4474
4597
|
{
|
|
4475
4598
|
"name": "value-change",
|
|
4476
|
-
"description": "
|
|
4599
|
+
"description": "Emitted event when value change",
|
|
4477
4600
|
"type": {
|
|
4478
4601
|
"text": "CustomEvent<string>"
|
|
4479
4602
|
}
|
|
@@ -4811,7 +4934,7 @@
|
|
|
4811
4934
|
"events": [
|
|
4812
4935
|
{
|
|
4813
4936
|
"name": "input-valid",
|
|
4814
|
-
"description": "
|
|
4937
|
+
"description": "Emitted event when checking validity",
|
|
4815
4938
|
"type": {
|
|
4816
4939
|
"text": "CustomEvent<boolean>"
|
|
4817
4940
|
}
|
|
@@ -5014,6 +5137,14 @@
|
|
|
5014
5137
|
}
|
|
5015
5138
|
],
|
|
5016
5139
|
"members": [
|
|
5140
|
+
{
|
|
5141
|
+
"kind": "field",
|
|
5142
|
+
"name": "customActions",
|
|
5143
|
+
"description": "Inject custom action buttons in the toolbar (e.g. to insert merge fields or apply custom formatting).\nButtons are appended after the built-in `modules`.\nEach action is an object `{ name, label, icon }`:\n- `name`: unique identifier, returned in the `custom-action` event detail on click.\n- `label`: accessible label used as the button tooltip and aria-label.\n- `icon`: design system `mg-icon` name rendered inside the button, unique across actions.\nThe action behaviour is the consumer's responsibility: listen to `custom-action`,\nthen read/write the selection with `getSelectedText()` / `getSelectedHTML()` / `replaceSelection()`.",
|
|
5144
|
+
"type": {
|
|
5145
|
+
"text": "RichTextEditorCustomAction[]"
|
|
5146
|
+
}
|
|
5147
|
+
},
|
|
5017
5148
|
{
|
|
5018
5149
|
"kind": "field",
|
|
5019
5150
|
"name": "disabled",
|
|
@@ -5217,6 +5348,21 @@
|
|
|
5217
5348
|
"name": "getEditorText",
|
|
5218
5349
|
"description": "Get editor content in plain text format"
|
|
5219
5350
|
},
|
|
5351
|
+
{
|
|
5352
|
+
"kind": "method",
|
|
5353
|
+
"name": "getSelectedHTML",
|
|
5354
|
+
"description": "Get the current text selection as HTML.\nWhen a custom action is in progress, returns the selection snapshotted when the action was triggered."
|
|
5355
|
+
},
|
|
5356
|
+
{
|
|
5357
|
+
"kind": "method",
|
|
5358
|
+
"name": "getSelectedText",
|
|
5359
|
+
"description": "Get the current text selection as plain text.\nWhen a custom action is in progress, returns the selection snapshotted when the action was triggered."
|
|
5360
|
+
},
|
|
5361
|
+
{
|
|
5362
|
+
"kind": "method",
|
|
5363
|
+
"name": "replaceSelection",
|
|
5364
|
+
"description": "Replace the current text selection with the given content.\nWhen a custom action is in progress, the selection snapshotted when the action was triggered is\nrestored first, so the replacement targets the right range even after focus moved away (e.g. during\nan async network request). No-op when the editor is readonly or disabled."
|
|
5365
|
+
},
|
|
5220
5366
|
{
|
|
5221
5367
|
"kind": "method",
|
|
5222
5368
|
"name": "reset",
|
|
@@ -5234,16 +5380,30 @@
|
|
|
5234
5380
|
}
|
|
5235
5381
|
],
|
|
5236
5382
|
"events": [
|
|
5383
|
+
{
|
|
5384
|
+
"name": "custom-action",
|
|
5385
|
+
"description": "Emitted event when a custom action button is clicked.\nThe detail contains the action `name`.",
|
|
5386
|
+
"type": {
|
|
5387
|
+
"text": "CustomEvent<string>"
|
|
5388
|
+
}
|
|
5389
|
+
},
|
|
5237
5390
|
{
|
|
5238
5391
|
"name": "input-valid",
|
|
5239
|
-
"description": "
|
|
5392
|
+
"description": "Emitted event when checking validity",
|
|
5240
5393
|
"type": {
|
|
5241
5394
|
"text": "CustomEvent<boolean>"
|
|
5242
5395
|
}
|
|
5243
5396
|
},
|
|
5397
|
+
{
|
|
5398
|
+
"name": "selection-change",
|
|
5399
|
+
"description": "Emitted event when the text selection changes.\nThe detail contains the selected `text`, sanitized `html` and whether the selection `isCollapsed`.",
|
|
5400
|
+
"type": {
|
|
5401
|
+
"text": "CustomEvent<{ text: string; html: string; isCollapsed: boolean; }>"
|
|
5402
|
+
}
|
|
5403
|
+
},
|
|
5244
5404
|
{
|
|
5245
5405
|
"name": "value-change",
|
|
5246
|
-
"description": "
|
|
5406
|
+
"description": "Emitted event when value change",
|
|
5247
5407
|
"type": {
|
|
5248
5408
|
"text": "CustomEvent<string>"
|
|
5249
5409
|
}
|
|
@@ -5634,14 +5794,14 @@
|
|
|
5634
5794
|
"events": [
|
|
5635
5795
|
{
|
|
5636
5796
|
"name": "input-valid",
|
|
5637
|
-
"description": "
|
|
5797
|
+
"description": "Emitted event when checking validity",
|
|
5638
5798
|
"type": {
|
|
5639
5799
|
"text": "CustomEvent<boolean>"
|
|
5640
5800
|
}
|
|
5641
5801
|
},
|
|
5642
5802
|
{
|
|
5643
5803
|
"name": "value-change",
|
|
5644
|
-
"description": "
|
|
5804
|
+
"description": "Emitted event when value change",
|
|
5645
5805
|
"type": {
|
|
5646
5806
|
"text": "CustomEvent<ICheckboxValue[]>"
|
|
5647
5807
|
}
|
|
@@ -6104,14 +6264,14 @@
|
|
|
6104
6264
|
"events": [
|
|
6105
6265
|
{
|
|
6106
6266
|
"name": "input-valid",
|
|
6107
|
-
"description": "
|
|
6267
|
+
"description": "Emitted event when checking validity",
|
|
6108
6268
|
"type": {
|
|
6109
6269
|
"text": "CustomEvent<boolean>"
|
|
6110
6270
|
}
|
|
6111
6271
|
},
|
|
6112
6272
|
{
|
|
6113
6273
|
"name": "value-change",
|
|
6114
|
-
"description": "
|
|
6274
|
+
"description": "Emitted event when value change",
|
|
6115
6275
|
"type": {
|
|
6116
6276
|
"text": "CustomEvent<any>"
|
|
6117
6277
|
}
|
|
@@ -6573,14 +6733,14 @@
|
|
|
6573
6733
|
"events": [
|
|
6574
6734
|
{
|
|
6575
6735
|
"name": "input-valid",
|
|
6576
|
-
"description": "
|
|
6736
|
+
"description": "Emitted event when checking validity",
|
|
6577
6737
|
"type": {
|
|
6578
6738
|
"text": "CustomEvent<boolean>"
|
|
6579
6739
|
}
|
|
6580
6740
|
},
|
|
6581
6741
|
{
|
|
6582
6742
|
"name": "value-change",
|
|
6583
|
-
"description": "
|
|
6743
|
+
"description": "Emitted event when value change",
|
|
6584
6744
|
"type": {
|
|
6585
6745
|
"text": "CustomEvent<string>"
|
|
6586
6746
|
}
|
|
@@ -6870,14 +7030,14 @@
|
|
|
6870
7030
|
"events": [
|
|
6871
7031
|
{
|
|
6872
7032
|
"name": "input-valid",
|
|
6873
|
-
"description": "
|
|
7033
|
+
"description": "Emitted event when checking validity",
|
|
6874
7034
|
"type": {
|
|
6875
7035
|
"text": "CustomEvent<boolean>"
|
|
6876
7036
|
}
|
|
6877
7037
|
},
|
|
6878
7038
|
{
|
|
6879
7039
|
"name": "value-change",
|
|
6880
|
-
"description": "
|
|
7040
|
+
"description": "Emitted event when value change",
|
|
6881
7041
|
"type": {
|
|
6882
7042
|
"text": "CustomEvent<unknown>"
|
|
6883
7043
|
}
|
|
@@ -7195,14 +7355,14 @@
|
|
|
7195
7355
|
"events": [
|
|
7196
7356
|
{
|
|
7197
7357
|
"name": "item-loaded",
|
|
7198
|
-
"description": "
|
|
7358
|
+
"description": "Emitted event when item is loaded",
|
|
7199
7359
|
"type": {
|
|
7200
7360
|
"text": "CustomEvent<void>"
|
|
7201
7361
|
}
|
|
7202
7362
|
},
|
|
7203
7363
|
{
|
|
7204
7364
|
"name": "item-updated",
|
|
7205
|
-
"description": "
|
|
7365
|
+
"description": "Emitted event when item is updated",
|
|
7206
7366
|
"type": {
|
|
7207
7367
|
"text": "CustomEvent<void>"
|
|
7208
7368
|
}
|
|
@@ -7958,15 +8118,6 @@
|
|
|
7958
8118
|
"customElement": true,
|
|
7959
8119
|
"description": "",
|
|
7960
8120
|
"attributes": [
|
|
7961
|
-
{
|
|
7962
|
-
"name": "arrow-hide",
|
|
7963
|
-
"description": "Hide popover arrow",
|
|
7964
|
-
"type": {
|
|
7965
|
-
"text": "boolean"
|
|
7966
|
-
},
|
|
7967
|
-
"default": "false",
|
|
7968
|
-
"fieldName": "arrowHide"
|
|
7969
|
-
},
|
|
7970
8121
|
{
|
|
7971
8122
|
"name": "close-button",
|
|
7972
8123
|
"description": "Define if popover has a cross button",
|
|
@@ -8009,7 +8160,7 @@
|
|
|
8009
8160
|
"type": {
|
|
8010
8161
|
"text": "\"auto\" | \"auto-end\" | \"auto-start\" | \"bottom\" | \"bottom-end\" | \"bottom-start\" | \"left\" | \"left-end\" | \"left-start\" | \"right\" | \"right-end\" | \"right-start\" | \"top\" | \"top-end\" | \"top-start\""
|
|
8011
8162
|
},
|
|
8012
|
-
"default": "'bottom'",
|
|
8163
|
+
"default": "'bottom-start'",
|
|
8013
8164
|
"fieldName": "placement"
|
|
8014
8165
|
}
|
|
8015
8166
|
],
|
|
@@ -8019,10 +8170,8 @@
|
|
|
8019
8170
|
"name": "arrowHide",
|
|
8020
8171
|
"description": "Hide popover arrow",
|
|
8021
8172
|
"type": {
|
|
8022
|
-
"text": "
|
|
8023
|
-
}
|
|
8024
|
-
"default": "false",
|
|
8025
|
-
"attribute": "arrow-hide"
|
|
8173
|
+
"text": "never"
|
|
8174
|
+
}
|
|
8026
8175
|
},
|
|
8027
8176
|
{
|
|
8028
8177
|
"kind": "field",
|
|
@@ -8071,7 +8220,7 @@
|
|
|
8071
8220
|
"type": {
|
|
8072
8221
|
"text": "\"auto\" | \"auto-end\" | \"auto-start\" | \"bottom\" | \"bottom-end\" | \"bottom-start\" | \"left\" | \"left-end\" | \"left-start\" | \"right\" | \"right-end\" | \"right-start\" | \"top\" | \"top-end\" | \"top-start\""
|
|
8073
8222
|
},
|
|
8074
|
-
"default": "'bottom'",
|
|
8223
|
+
"default": "'bottom-start'",
|
|
8075
8224
|
"attribute": "placement"
|
|
8076
8225
|
}
|
|
8077
8226
|
],
|
|
@@ -8085,7 +8234,7 @@
|
|
|
8085
8234
|
},
|
|
8086
8235
|
{
|
|
8087
8236
|
"name": "display-change",
|
|
8088
|
-
"description": "
|
|
8237
|
+
"description": "Emitted event when display value change",
|
|
8089
8238
|
"type": {
|
|
8090
8239
|
"text": "CustomEvent<boolean>"
|
|
8091
8240
|
}
|
|
@@ -8326,7 +8475,7 @@
|
|
|
8326
8475
|
"events": [
|
|
8327
8476
|
{
|
|
8328
8477
|
"name": "go-to-anchor",
|
|
8329
|
-
"description": "
|
|
8478
|
+
"description": "Emitted event when link is clicked",
|
|
8330
8479
|
"type": {
|
|
8331
8480
|
"text": "CustomEvent<string>"
|
|
8332
8481
|
}
|
|
@@ -8540,7 +8689,7 @@
|
|
|
8540
8689
|
"events": [
|
|
8541
8690
|
{
|
|
8542
8691
|
"name": "active-tab-change",
|
|
8543
|
-
"description": "
|
|
8692
|
+
"description": "Emitted event when active tab change",
|
|
8544
8693
|
"type": {
|
|
8545
8694
|
"text": "CustomEvent<number>"
|
|
8546
8695
|
}
|
|
@@ -77,7 +77,7 @@ const getObjectValueFromKey = (object, path, defaultValue) => {
|
|
|
77
77
|
* @param items - items to check
|
|
78
78
|
* @returns `true` if all items are strings
|
|
79
79
|
*/
|
|
80
|
-
const allItemsAreString = (items) => Array.isArray(items) && items.every(item => typeof item === 'string');
|
|
80
|
+
const allItemsAreString = (items) => Array.isArray(items) && items.every((item) => typeof item === 'string');
|
|
81
81
|
/**
|
|
82
82
|
* Validate string
|
|
83
83
|
* @param value - value to check
|
|
@@ -140,7 +140,7 @@ const createID = (prefix = '', length = 10) => {
|
|
|
140
140
|
const randomBytes = new Uint8Array(length);
|
|
141
141
|
crypto.getRandomValues(randomBytes);
|
|
142
142
|
const hexString = Array.from(randomBytes)
|
|
143
|
-
.map(byte => byte.toString(16).padStart(2, '0'))
|
|
143
|
+
.map((byte) => byte.toString(16).padStart(2, '0'))
|
|
144
144
|
.join('')
|
|
145
145
|
.slice(0, length);
|
|
146
146
|
return prefix !== '' ? `${prefix}-${hexString}` : hexString;
|
|
@@ -241,7 +241,7 @@ class Page {
|
|
|
241
241
|
let newIndex;
|
|
242
242
|
let oldIndex = startIndex;
|
|
243
243
|
if (['previous', 'next'].includes(cursor) && oldItem) {
|
|
244
|
-
const findedIndex = this.items.findIndex(item => JSON.stringify(item) === JSON.stringify(oldItem));
|
|
244
|
+
const findedIndex = this.items.findIndex((item) => JSON.stringify(item) === JSON.stringify(oldItem));
|
|
245
245
|
if (findedIndex === -1)
|
|
246
246
|
return startIndex;
|
|
247
247
|
oldIndex = findedIndex;
|
|
@@ -254,10 +254,16 @@ class Page {
|
|
|
254
254
|
newIndex = lastIndex;
|
|
255
255
|
}
|
|
256
256
|
else if (cursor === 'previous') {
|
|
257
|
-
newIndex =
|
|
257
|
+
newIndex =
|
|
258
|
+
JSON.stringify(this.items[oldIndex]) === JSON.stringify(this.items[startIndex])
|
|
259
|
+
? lastIndex
|
|
260
|
+
: oldIndex - this.baseIndex;
|
|
258
261
|
}
|
|
259
262
|
else if (cursor === 'next') {
|
|
260
|
-
newIndex =
|
|
263
|
+
newIndex =
|
|
264
|
+
JSON.stringify(this.items[oldIndex]) === JSON.stringify(this.items[lastIndex])
|
|
265
|
+
? startIndex
|
|
266
|
+
: oldIndex + this.baseIndex;
|
|
261
267
|
}
|
|
262
268
|
else {
|
|
263
269
|
newIndex = startIndex;
|
|
@@ -281,7 +287,9 @@ class Paginate {
|
|
|
281
287
|
constructor(items, options) {
|
|
282
288
|
if (Array.isArray(items))
|
|
283
289
|
this.items = items;
|
|
284
|
-
if (options &&
|
|
290
|
+
if (options &&
|
|
291
|
+
(['string', 'function'].includes(typeof options.next) ||
|
|
292
|
+
(isObject(options.next) && URL.canParse(options.next))))
|
|
285
293
|
this.#next = options.next;
|
|
286
294
|
if (typeof options?.top === 'number')
|
|
287
295
|
this.#top = options.top;
|
|
@@ -497,7 +497,9 @@ const localeUnit = (number, locale, unit, unitDisplay = 'short', decimalLength =
|
|
|
497
497
|
* localeDate('2022-06-02', 'fr') // '02/06/2022'
|
|
498
498
|
* ```
|
|
499
499
|
*/
|
|
500
|
-
const localeDate = (date, locale, config) => typeof date !== 'string' || date === '' || !dateRegExp.test(date)
|
|
500
|
+
const localeDate = (date, locale, config) => typeof date !== 'string' || date === '' || !dateRegExp.test(date)
|
|
501
|
+
? ''
|
|
502
|
+
: new Intl.DateTimeFormat(locale, config).format(new Date(date));
|
|
501
503
|
/**
|
|
502
504
|
* Get Intl object
|
|
503
505
|
* @param messages - locales to render in object format. `ex: { en: { porp: "test" }, fr: { porp: "test" }}`.
|