@ds-autonomie/web-components 1.5.0 → 1.6.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/CHANGELOG.md +15 -0
- package/dist/chunks/{chunk.AO3M5GSN.js → chunk.2SUJL5O6.js} +1 -1
- package/dist/chunks/{chunk.ZU3MRZA4.js → chunk.5YABZV2L.js} +1 -1
- package/dist/chunks/{chunk.XV2S7PIY.js → chunk.6DSM44NV.js} +1 -1
- package/dist/chunks/{chunk.5ND4OP7Q.js → chunk.6SWOU4CL.js} +1 -1
- package/dist/chunks/{chunk.OVCI74KS.js → chunk.6Y5VNWAK.js} +7 -7
- package/dist/chunks/{chunk.E7NM6WTF.js → chunk.7F5X7SQN.js} +1 -1
- package/dist/chunks/chunk.ATDDIVPX.js +87 -0
- package/dist/chunks/{chunk.5DKPV25M.js → chunk.B5NS5VQR.js} +1 -1
- package/dist/chunks/{chunk.HCQNPYQZ.js → chunk.CBFLGIED.js} +1 -1
- package/dist/chunks/{chunk.OIS5HMFT.js → chunk.CHM74JXS.js} +21 -2
- package/dist/chunks/{chunk.RVUFDCSS.js → chunk.CICCL52W.js} +1 -1
- package/dist/chunks/{chunk.7BYKP4SA.js → chunk.CKDL37GT.js} +2 -0
- package/dist/chunks/{chunk.TUZ72ZDQ.js → chunk.CSQ2UP6E.js} +4 -4
- package/dist/chunks/{chunk.WF42CVOM.js → chunk.DDLGH65N.js} +4 -4
- package/dist/chunks/{chunk.DXP3BNWO.js → chunk.DUJFQEVS.js} +1 -1
- package/dist/chunks/chunk.EVHNFCQF.js +121 -0
- package/dist/chunks/{chunk.FSXPFNBX.js → chunk.FFFHQKNB.js} +1 -1
- package/dist/chunks/{chunk.LC54322H.js → chunk.FYTGBKGY.js} +8 -4
- package/dist/chunks/{chunk.YZHYOXYA.js → chunk.HCI6BR7B.js} +24 -69
- package/dist/chunks/{chunk.P7QMP76I.js → chunk.HDSA2CY2.js} +1 -1
- package/dist/chunks/{chunk.BNJQHJKO.js → chunk.KFZV2L7L.js} +1 -1
- package/dist/chunks/{chunk.CWD6PMVD.js → chunk.KGPFHLUW.js} +1 -1
- package/dist/chunks/chunk.KUXAIXES.js +69 -0
- package/dist/chunks/{chunk.VRU3XH45.js → chunk.M3FN3PFT.js} +1 -1
- package/dist/chunks/{chunk.SCNCYZ35.js → chunk.M7UZ33WG.js} +1 -1
- package/dist/chunks/{chunk.IH3JU5S6.js → chunk.NMOENRSD.js} +1 -1
- package/dist/chunks/{chunk.ZI2RZQPZ.js → chunk.NQSQUH4H.js} +4 -4
- package/dist/chunks/{chunk.7J7CS3BK.js → chunk.O2PIWM25.js} +1 -1
- package/dist/chunks/chunk.Q62BRBYD.js +68 -0
- package/dist/chunks/{chunk.I33L3NO6.js → chunk.RB6TMBWW.js} +5 -0
- package/dist/chunks/{chunk.D2QVNPSR.js → chunk.RJBMUBMI.js} +4 -4
- package/dist/chunks/{chunk.T4H7RAXS.js → chunk.RV652CSU.js} +4 -4
- package/dist/chunks/{chunk.5QKVQDMN.js → chunk.RXBDBWWT.js} +12 -1
- package/dist/chunks/{chunk.PCT24AYO.js → chunk.VLRL3RJT.js} +1 -1
- package/dist/chunks/chunk.WI3DWLXW.js +99 -0
- package/dist/chunks/{chunk.BGNHUCCD.js → chunk.WK3IHF2A.js} +1 -1
- package/dist/chunks/{chunk.INCMVGXU.js → chunk.WLJH2IWB.js} +1 -1
- package/dist/chunks/chunk.X3FXKNLH.js +92 -0
- package/dist/chunks/{chunk.4XH7INOL.js → chunk.XQZX6LVO.js} +1 -1
- package/dist/chunks/{chunk.BHLKMLHB.js → chunk.YS2LUMKB.js} +33 -23
- package/dist/chunks/{chunk.N5ZXUW7H.js → chunk.Z7QPOCQO.js} +1 -1
- package/dist/chunks/{chunk.DX25IW4S.js → chunk.ZC74GTBL.js} +4 -0
- package/dist/components/accordion/accordion.d.ts +3 -1
- package/dist/components/accordion/accordion.js +7 -7
- package/dist/components/accordion/accordion.styles.js +1 -1
- package/dist/components/alert/alert.js +6 -6
- package/dist/components/avatar/avatar.js +5 -5
- package/dist/components/breadcrumb/breadcrumb.js +6 -6
- package/dist/components/breadcrumb-item/breadcrumb-item.js +2 -2
- package/dist/components/button/button.js +7 -7
- package/dist/components/checkbox/checkbox.js +4 -4
- package/dist/components/checkbox-button/checkbox-button.js +4 -4
- package/dist/components/combobox/combobox.d.ts +8 -15
- package/dist/components/combobox/combobox.js +8 -9
- package/dist/components/dialog/dialog.js +7 -7
- package/dist/components/download-card/download-card.d.ts +35 -0
- package/dist/components/download-card/download-card.js +19 -0
- package/dist/components/download-card/download-card.styles.d.ts +2 -0
- package/dist/components/download-card/download-card.styles.js +7 -0
- package/dist/components/download-link/download-link.d.ts +36 -0
- package/dist/components/download-link/download-link.js +19 -0
- package/dist/components/download-link/download-link.styles.d.ts +2 -0
- package/dist/components/download-link/download-link.styles.js +7 -0
- package/dist/components/drawer/drawer.js +7 -7
- package/dist/components/dropdown/dropdown.js +2 -2
- package/dist/components/error-message-panel/error-message-panel.d.ts +23 -0
- package/dist/components/error-message-panel/error-message-panel.js +11 -0
- package/dist/components/error-message-panel/error-message-panel.styles.d.ts +2 -0
- package/dist/components/error-message-panel/error-message-panel.styles.js +7 -0
- package/dist/components/format-bytes/format-bytes.js +2 -2
- package/dist/components/format-date/format-date.js +2 -2
- package/dist/components/format-number/format-number.js +2 -2
- package/dist/components/icon/icon.js +4 -4
- package/dist/components/icon/library.js +2 -2
- package/dist/components/icon/library.system.js +1 -1
- package/dist/components/icon-button/icon-button.js +4 -4
- package/dist/components/input/input.js +7 -7
- package/dist/components/input-mask/input-mask.js +2 -2
- package/dist/components/input-phone/input-phone.js +13 -13
- package/dist/components/menu-item/menu-item.js +4 -4
- package/dist/components/option/option.js +6 -6
- package/dist/components/progress-bar/progress-bar.js +2 -2
- package/dist/components/radio/radio.js +4 -4
- package/dist/components/relative-time/relative-time.js +2 -2
- package/dist/components/select/select.js +7 -7
- package/dist/components/skip-link-item/skip-link-item.d.ts +5 -0
- package/dist/components/skip-link-item/skip-link-item.js +1 -1
- package/dist/components/skip-links/skip-links.d.ts +1 -0
- package/dist/components/skip-links/skip-links.js +2 -2
- package/dist/components/skip-links/skip-links.styles.js +1 -1
- package/dist/components/spinner/spinner.js +2 -2
- package/dist/components/step/step.js +7 -7
- package/dist/components/tab/tab.js +2 -2
- package/dist/components/tab-group/tab-group.js +2 -2
- package/dist/components/tag/tag.js +6 -6
- package/dist/components/tooltip/tooltip.js +2 -2
- package/dist/components/tree/tree.js +9 -9
- package/dist/components/tree-item/tree-item.js +7 -7
- package/dist/custom-elements.json +475 -60
- package/dist/design-system.d.ts +3 -0
- package/dist/design-system.js +92 -78
- package/dist/themes/dsa-wc-theme.css +127 -18
- package/dist/themes/dsa-wc-theme.min.css +1 -1
- package/dist/themes/dsa-wc-theme.styles.js +134 -18
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/utilities/icon-library.js +2 -2
- package/dist/utilities/localize.d.ts +1 -0
- package/dist/utilities/localize.js +1 -1
- package/dist/utilities/storybook.d.ts +1 -0
- package/dist/utilities/storybook.js +23 -0
- package/dist/vscode.html-custom-data.json +109 -3
- package/dist/web-types.json +272 -28
- package/package.json +2 -2
- package/dist/chunks/chunk.HRBNFVC5.js +0 -16
- package/dist/utilities/debounce.d.ts +0 -1
- package/dist/utilities/debounce.js +0 -7
|
@@ -15,6 +15,18 @@
|
|
|
15
15
|
"description": "The summary to show in the header. If you need to display HTML, use the `summary` slot instead.",
|
|
16
16
|
"values": []
|
|
17
17
|
},
|
|
18
|
+
{
|
|
19
|
+
"name": "header-level",
|
|
20
|
+
"description": "Optional aria-level of the accordion header",
|
|
21
|
+
"values": [
|
|
22
|
+
{ "name": "1" },
|
|
23
|
+
{ "name": "2" },
|
|
24
|
+
{ "name": "3" },
|
|
25
|
+
{ "name": "4" },
|
|
26
|
+
{ "name": "5" },
|
|
27
|
+
{ "name": "6" }
|
|
28
|
+
]
|
|
29
|
+
},
|
|
18
30
|
{
|
|
19
31
|
"name": "disabled",
|
|
20
32
|
"description": "Disables the accordion so it can't be toggled.",
|
|
@@ -569,7 +581,7 @@
|
|
|
569
581
|
},
|
|
570
582
|
{
|
|
571
583
|
"name": "dsa-combobox",
|
|
572
|
-
"description": "Comboboxes allow you to type a value directly or select a value from a menu of predefined options. Values are filtered by checking the presence of the search term.\n\n\n---\n\n\n\n\n### **Events:**\n - **dsa-change** - Emitted when the control's value changes.\n- **dsa-input** - Emitted when the control receives input.\n- **dsa-focus** - Emitted when the control gains focus.\n- **dsa-blur** - Emitted when the control loses focus.\n- **dsa-show** - Emitted when the combobox's menu opens.\n- **dsa-after-show** - Emitted after the combobox's menu opens and all animations are complete.\n- **dsa-hide** - Emitted when the combobox's menu closes.\n- **dsa-after-hide** - Emitted after the combobox's menu closes and all animations are complete.\n- **dsa-invalid** - Emitted when the form control has been checked for validity and its constraints aren't satisfied.\n- **dsa-load** - Emitted when the remote options have loaded.\n- **dsa-error** - Emitted when the remote options fail to load due to an error.\n\n### **Methods:**\n - **show()** - Shows the listbox.\n- **hide()** - Hides the listbox.\n- **checkValidity()** - Checks for validity but does not show a validation message. Returns `true` when valid and `false` when invalid.\n- **getForm(): _HTMLFormElement | null_** - Gets the associated form, if one exists.\n- **reportValidity()** - Checks for validity and shows the browser's validation message if the control is invalid.\n- **setCustomValidity(message: _string_)** - Sets a custom validation message. Pass an empty string to restore validity.\n- **focus(options: _FocusOptions_)** - Sets focus on the control.\n- **blur()** - Removes focus from the control.\n\n### **Slots:**\n - _default_ - The listbox options. Must be `<dsa-option>` elements. Alternatively, you can use the `items` property.\n- **label** - The input's label. Alternatively, you can use the `label` attribute.\n- **prefix** - Used to prepend a presentational icon or similar element to the combobox.\n- **help-text** - Text that describes how to use the input. Alternatively, you can use the `help-text` attribute.\n- **tooltip** - The tooltip slot allows additional information to be passed along the label",
|
|
584
|
+
"description": "Comboboxes allow you to type a value directly or select a value from a menu of predefined options. Values are filtered by checking the presence of the search term.\n\n\n---\n\n\n\n\n### **Events:**\n - **dsa-change** - Emitted when the control's value changes.\n- **dsa-input** - Emitted when the control receives input. Debounced according to `debounce-timeout` value.\n- **dsa-focus** - Emitted when the control gains focus.\n- **dsa-blur** - Emitted when the control loses focus.\n- **dsa-show** - Emitted when the combobox's menu opens.\n- **dsa-after-show** - Emitted after the combobox's menu opens and all animations are complete.\n- **dsa-hide** - Emitted when the combobox's menu closes.\n- **dsa-after-hide** - Emitted after the combobox's menu closes and all animations are complete.\n- **dsa-invalid** - Emitted when the form control has been checked for validity and its constraints aren't satisfied.\n- **dsa-load** - Emitted when the remote options have loaded.\n- **dsa-error** - Emitted when the remote options fail to load due to an error.\n\n### **Methods:**\n - **show()** - Shows the listbox.\n- **hide()** - Hides the listbox.\n- **checkValidity()** - Checks for validity but does not show a validation message. Returns `true` when valid and `false` when invalid.\n- **getForm(): _HTMLFormElement | null_** - Gets the associated form, if one exists.\n- **reportValidity()** - Checks for validity and shows the browser's validation message if the control is invalid.\n- **setCustomValidity(message: _string_)** - Sets a custom validation message. Pass an empty string to restore validity.\n- **focus(options: _FocusOptions_)** - Sets focus on the control.\n- **blur()** - Removes focus from the control.\n\n### **Slots:**\n - _default_ - The listbox options. Must be `<dsa-option>` elements. Alternatively, you can use the `items` property.\n- **label** - The input's label. Alternatively, you can use the `label` attribute.\n- **prefix** - Used to prepend a presentational icon or similar element to the combobox.\n- **help-text** - Text that describes how to use the input. Alternatively, you can use the `help-text` attribute.\n- **tooltip** - The tooltip slot allows additional information to be passed along the label",
|
|
573
585
|
"attributes": [
|
|
574
586
|
{
|
|
575
587
|
"name": "name",
|
|
@@ -685,8 +697,18 @@
|
|
|
685
697
|
},
|
|
686
698
|
{
|
|
687
699
|
"name": "debounce-timeout",
|
|
688
|
-
"description": "Delay between when a user types into an input. It
|
|
700
|
+
"description": "Delay between when a user types into an input. It affects the `dsa-input` event.",
|
|
689
701
|
"values": []
|
|
702
|
+
},
|
|
703
|
+
{
|
|
704
|
+
"name": "fetching-state",
|
|
705
|
+
"description": "When using asynchronous option loading, allows to specify the fetching state",
|
|
706
|
+
"values": [
|
|
707
|
+
{ "name": "" },
|
|
708
|
+
{ "name": "loading" },
|
|
709
|
+
{ "name": "error" },
|
|
710
|
+
{ "name": "success" }
|
|
711
|
+
]
|
|
690
712
|
}
|
|
691
713
|
],
|
|
692
714
|
"references": []
|
|
@@ -734,6 +756,78 @@
|
|
|
734
756
|
],
|
|
735
757
|
"references": []
|
|
736
758
|
},
|
|
759
|
+
{
|
|
760
|
+
"name": "dsa-download-card",
|
|
761
|
+
"description": "Download cards allow user to download a document.\n\n\n---\n\n\n\n\n### **Events:**\n - **dsa-blur** - Emitted when the card loses focus.\n- **dsa-focus** - Emitted when the card gains focus.\n\n### **Slots:**\n - _default_ - The card's label.\n- **image** - An optional image to render at the start of the card..",
|
|
762
|
+
"attributes": [
|
|
763
|
+
{
|
|
764
|
+
"name": "href",
|
|
765
|
+
"description": "The href of the document",
|
|
766
|
+
"values": []
|
|
767
|
+
},
|
|
768
|
+
{
|
|
769
|
+
"name": "description",
|
|
770
|
+
"description": "Optional description of the file",
|
|
771
|
+
"values": []
|
|
772
|
+
},
|
|
773
|
+
{
|
|
774
|
+
"name": "format",
|
|
775
|
+
"description": "The document format",
|
|
776
|
+
"values": []
|
|
777
|
+
},
|
|
778
|
+
{
|
|
779
|
+
"name": "documentsize",
|
|
780
|
+
"description": "The document size",
|
|
781
|
+
"values": []
|
|
782
|
+
}
|
|
783
|
+
],
|
|
784
|
+
"references": []
|
|
785
|
+
},
|
|
786
|
+
{
|
|
787
|
+
"name": "dsa-download-link",
|
|
788
|
+
"description": "Download links allow user to download a document.\n\n\n---\n\n\n\n\n### **Events:**\n - **dsa-blur** - Emitted when the link loses focus.\n- **dsa-focus** - Emitted when the link gains focus.\n\n### **Slots:**\n - _default_ - The link's label.",
|
|
789
|
+
"attributes": [
|
|
790
|
+
{
|
|
791
|
+
"name": "href",
|
|
792
|
+
"description": "The href of the document",
|
|
793
|
+
"values": []
|
|
794
|
+
},
|
|
795
|
+
{
|
|
796
|
+
"name": "format",
|
|
797
|
+
"description": "The document format",
|
|
798
|
+
"values": []
|
|
799
|
+
},
|
|
800
|
+
{
|
|
801
|
+
"name": "documentsize",
|
|
802
|
+
"description": "The document size",
|
|
803
|
+
"values": []
|
|
804
|
+
},
|
|
805
|
+
{
|
|
806
|
+
"name": "variant",
|
|
807
|
+
"description": "The link's theme variant.",
|
|
808
|
+
"values": [
|
|
809
|
+
{ "name": "base" },
|
|
810
|
+
{ "name": "layer" },
|
|
811
|
+
{ "name": "contrasted" },
|
|
812
|
+
{ "name": "floating" }
|
|
813
|
+
]
|
|
814
|
+
},
|
|
815
|
+
{
|
|
816
|
+
"name": "size",
|
|
817
|
+
"description": "The link's size.",
|
|
818
|
+
"values": [
|
|
819
|
+
{ "name": "" },
|
|
820
|
+
{ "name": "2xsmall" },
|
|
821
|
+
{ "name": "xsmall" },
|
|
822
|
+
{ "name": "small" },
|
|
823
|
+
{ "name": "medium" },
|
|
824
|
+
{ "name": "large" },
|
|
825
|
+
{ "name": "xlarge" }
|
|
826
|
+
]
|
|
827
|
+
}
|
|
828
|
+
],
|
|
829
|
+
"references": []
|
|
830
|
+
},
|
|
737
831
|
{
|
|
738
832
|
"name": "dsa-drawer",
|
|
739
833
|
"description": "Drawers slide in from a container to expose additional options and information.\n\n\n---\n\n\n\n\n### **Events:**\n - **dsa-show** - Emitted when the drawer opens.\n- **dsa-after-show** - Emitted after the drawer opens and all animations are complete.\n- **dsa-hide** - Emitted when the drawer closes.\n- **dsa-after-hide** - Emitted after the drawer closes and all animations are complete.\n- **dsa-initial-focus** - Emitted when the drawer opens and is ready to receive focus. Calling `event.preventDefault()` will prevent focusing and allow you to set it on a different element, such as an input.\n- **dsa-request-close** - Emitted when the user attempts to close the drawer by clicking the close button, clicking the overlay, or pressing escape. Calling `event.preventDefault()` will keep the drawer open. Avoid using this unless closing the drawer will result in destructive behavior such as data loss.\n\n### **Methods:**\n - **show()** - Shows the drawer.\n- **hide()** - Hides the drawer\n\n### **Slots:**\n - _default_ - The drawer's main content.\n- **label** - The drawer's label. Alternatively, you can use the `label` attribute.\n- **header-actions** - Optional actions to add to the header. Works best with `<dsa-icon-button>`.\n- **footer** - The drawer's footer, usually one or more buttons representing various options.",
|
|
@@ -822,6 +916,18 @@
|
|
|
822
916
|
],
|
|
823
917
|
"references": []
|
|
824
918
|
},
|
|
919
|
+
{
|
|
920
|
+
"name": "dsa-error-message-panel",
|
|
921
|
+
"description": "Error Message Panel can be used to display an error message when a problem has occured on the site\n\n\n---\n\n\n\n\n### **Slots:**\n - _default_ - The error-message-panel's title.\n- **error-code** - An optional error code element.\n- **description** - An optional error description element.\n- **actions** - An optional action element.",
|
|
922
|
+
"attributes": [
|
|
923
|
+
{
|
|
924
|
+
"name": "error-code",
|
|
925
|
+
"description": "Display the error code. If you need to display HTML, use the `error-code` slot instead.",
|
|
926
|
+
"values": []
|
|
927
|
+
}
|
|
928
|
+
],
|
|
929
|
+
"references": []
|
|
930
|
+
},
|
|
825
931
|
{
|
|
826
932
|
"name": "dsa-error-text",
|
|
827
933
|
"description": "Error Text can be used to display an error message under an input or a fieldset\n\n\n---\n\n\n\n\n### **Slots:**\n - _default_ - The error-text's main content.",
|
|
@@ -2182,7 +2288,7 @@
|
|
|
2182
2288
|
},
|
|
2183
2289
|
{
|
|
2184
2290
|
"name": "dsa-skip-link-item",
|
|
2185
|
-
"description": "Skip link item define an hyperlink within a [skip-link](/components/skip-link)\n\n\n---\n\n\n\n\n### **Slots:**\n - _default_ - The skip-link-item's label",
|
|
2291
|
+
"description": "Skip link item define an hyperlink within a [skip-link](/components/skip-link)\n\n\n---\n\n\n\n\n### **Methods:**\n - **focus(options: _FocusOptions_)** - Sets focus on the anchor.\n- **blur()** - Removes focus from the anchor.\n\n### **Slots:**\n - _default_ - The skip-link-item's label",
|
|
2186
2292
|
"attributes": [
|
|
2187
2293
|
{
|
|
2188
2294
|
"name": "href",
|
package/dist/web-types.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "http://json.schemastore.org/web-types",
|
|
3
3
|
"name": "@ds-autonomie/web-components",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.6.0",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"framework-config": {
|
|
7
7
|
"enable-when": {
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
}
|
|
30
30
|
},
|
|
31
31
|
{
|
|
32
|
-
"name": "
|
|
32
|
+
"name": "headerButton",
|
|
33
33
|
"value": {
|
|
34
34
|
"type": "HTMLElement"
|
|
35
35
|
}
|
|
@@ -54,6 +54,13 @@
|
|
|
54
54
|
"type": "string"
|
|
55
55
|
}
|
|
56
56
|
},
|
|
57
|
+
{
|
|
58
|
+
"name": "headerLevel",
|
|
59
|
+
"description": "Optional aria-level of the accordion header",
|
|
60
|
+
"value": {
|
|
61
|
+
"type": "1 | 2 | 3 | 4 | 5 | 6"
|
|
62
|
+
}
|
|
63
|
+
},
|
|
57
64
|
{
|
|
58
65
|
"name": "disabled",
|
|
59
66
|
"description": "Disables the accordion so it can't be toggled.",
|
|
@@ -125,6 +132,13 @@
|
|
|
125
132
|
"type": "string"
|
|
126
133
|
}
|
|
127
134
|
},
|
|
135
|
+
{
|
|
136
|
+
"name": "header-level",
|
|
137
|
+
"description": "Optional aria-level of the accordion header",
|
|
138
|
+
"value": {
|
|
139
|
+
"type": "1 | 2 | 3 | 4 | 5 | 6"
|
|
140
|
+
}
|
|
141
|
+
},
|
|
128
142
|
{
|
|
129
143
|
"name": "disabled",
|
|
130
144
|
"description": "Disables the accordion so it can't be toggled.",
|
|
@@ -2052,12 +2066,6 @@
|
|
|
2052
2066
|
"type": "boolean"
|
|
2053
2067
|
}
|
|
2054
2068
|
},
|
|
2055
|
-
{
|
|
2056
|
-
"name": "fetchingState",
|
|
2057
|
-
"value": {
|
|
2058
|
-
"type": "'loading' | 'error' | 'success'"
|
|
2059
|
-
}
|
|
2060
|
-
},
|
|
2061
2069
|
{
|
|
2062
2070
|
"name": "displayLabel",
|
|
2063
2071
|
"value": {
|
|
@@ -2088,6 +2096,12 @@
|
|
|
2088
2096
|
"type": "DSAOption[]"
|
|
2089
2097
|
}
|
|
2090
2098
|
},
|
|
2099
|
+
{
|
|
2100
|
+
"name": "debounceTimerId",
|
|
2101
|
+
"value": {
|
|
2102
|
+
"type": "NodeJS.Timeout | null"
|
|
2103
|
+
}
|
|
2104
|
+
},
|
|
2091
2105
|
{
|
|
2092
2106
|
"name": "name",
|
|
2093
2107
|
"description": "The name of the combobox, submitted as a name/value pair with form data.",
|
|
@@ -2242,17 +2256,17 @@
|
|
|
2242
2256
|
}
|
|
2243
2257
|
},
|
|
2244
2258
|
{
|
|
2245
|
-
"name": "
|
|
2246
|
-
"description": "
|
|
2259
|
+
"name": "debounceTimeout",
|
|
2260
|
+
"description": "Delay between when a user types into an input. It affects the `dsa-input` event.",
|
|
2247
2261
|
"value": {
|
|
2248
|
-
"type": "
|
|
2262
|
+
"type": "number"
|
|
2249
2263
|
}
|
|
2250
2264
|
},
|
|
2251
2265
|
{
|
|
2252
|
-
"name": "
|
|
2253
|
-
"description": "
|
|
2266
|
+
"name": "fetchingState",
|
|
2267
|
+
"description": "When using asynchronous option loading, allows to specify the fetching state",
|
|
2254
2268
|
"value": {
|
|
2255
|
-
"type": "
|
|
2269
|
+
"type": "| 'loading'\n | 'error'\n | 'success'"
|
|
2256
2270
|
}
|
|
2257
2271
|
},
|
|
2258
2272
|
{
|
|
@@ -2290,14 +2304,6 @@
|
|
|
2290
2304
|
"name": "handleInput",
|
|
2291
2305
|
"value": {}
|
|
2292
2306
|
},
|
|
2293
|
-
{
|
|
2294
|
-
"name": "filterRemoteOptions",
|
|
2295
|
-
"value": {}
|
|
2296
|
-
},
|
|
2297
|
-
{
|
|
2298
|
-
"name": "asyncFetchOptions",
|
|
2299
|
-
"value": {}
|
|
2300
|
-
},
|
|
2301
2307
|
{
|
|
2302
2308
|
"name": "handleClearClick",
|
|
2303
2309
|
"value": {}
|
|
@@ -2326,10 +2332,6 @@
|
|
|
2326
2332
|
"name": "getAllOptions",
|
|
2327
2333
|
"value": {}
|
|
2328
2334
|
},
|
|
2329
|
-
{
|
|
2330
|
-
"name": "getRemoteOptions",
|
|
2331
|
-
"value": {}
|
|
2332
|
-
},
|
|
2333
2335
|
{
|
|
2334
2336
|
"name": "clearSelectedOptions",
|
|
2335
2337
|
"value": {}
|
|
@@ -2455,7 +2457,7 @@
|
|
|
2455
2457
|
},
|
|
2456
2458
|
{
|
|
2457
2459
|
"name": "dsa-input",
|
|
2458
|
-
"description": "Emitted when the control receives input."
|
|
2460
|
+
"description": "Emitted when the control receives input. Debounced according to `debounce-timeout` value."
|
|
2459
2461
|
},
|
|
2460
2462
|
{
|
|
2461
2463
|
"name": "dsa-focus",
|
|
@@ -2638,10 +2640,17 @@
|
|
|
2638
2640
|
},
|
|
2639
2641
|
{
|
|
2640
2642
|
"name": "debounce-timeout",
|
|
2641
|
-
"description": "Delay between when a user types into an input. It
|
|
2643
|
+
"description": "Delay between when a user types into an input. It affects the `dsa-input` event.",
|
|
2642
2644
|
"value": {
|
|
2643
2645
|
"type": "number"
|
|
2644
2646
|
}
|
|
2647
|
+
},
|
|
2648
|
+
{
|
|
2649
|
+
"name": "fetching-state",
|
|
2650
|
+
"description": "When using asynchronous option loading, allows to specify the fetching state",
|
|
2651
|
+
"value": {
|
|
2652
|
+
"type": "| 'loading'\n | 'error'\n | 'success'"
|
|
2653
|
+
}
|
|
2645
2654
|
}
|
|
2646
2655
|
]
|
|
2647
2656
|
},
|
|
@@ -2830,6 +2839,188 @@
|
|
|
2830
2839
|
}
|
|
2831
2840
|
]
|
|
2832
2841
|
},
|
|
2842
|
+
{
|
|
2843
|
+
"name": "dsa-download-card",
|
|
2844
|
+
"description": "",
|
|
2845
|
+
"js": {
|
|
2846
|
+
"properties": [
|
|
2847
|
+
{
|
|
2848
|
+
"name": "href",
|
|
2849
|
+
"description": "The href of the document",
|
|
2850
|
+
"value": {
|
|
2851
|
+
"type": "string"
|
|
2852
|
+
}
|
|
2853
|
+
},
|
|
2854
|
+
{
|
|
2855
|
+
"name": "description",
|
|
2856
|
+
"description": "Optional description of the file",
|
|
2857
|
+
"value": {
|
|
2858
|
+
"type": "string | undefined"
|
|
2859
|
+
}
|
|
2860
|
+
},
|
|
2861
|
+
{
|
|
2862
|
+
"name": "format",
|
|
2863
|
+
"description": "The document format",
|
|
2864
|
+
"value": {
|
|
2865
|
+
"type": "string"
|
|
2866
|
+
}
|
|
2867
|
+
},
|
|
2868
|
+
{
|
|
2869
|
+
"name": "documentSize",
|
|
2870
|
+
"description": "The document size",
|
|
2871
|
+
"value": {
|
|
2872
|
+
"type": "string"
|
|
2873
|
+
}
|
|
2874
|
+
},
|
|
2875
|
+
{
|
|
2876
|
+
"name": "handleFocus",
|
|
2877
|
+
"value": {}
|
|
2878
|
+
},
|
|
2879
|
+
{
|
|
2880
|
+
"name": "handleBlur",
|
|
2881
|
+
"value": {}
|
|
2882
|
+
}
|
|
2883
|
+
],
|
|
2884
|
+
"events": [
|
|
2885
|
+
{
|
|
2886
|
+
"name": "dsa-blur",
|
|
2887
|
+
"description": "Emitted when the card loses focus."
|
|
2888
|
+
},
|
|
2889
|
+
{
|
|
2890
|
+
"name": "dsa-focus",
|
|
2891
|
+
"description": "Emitted when the card gains focus."
|
|
2892
|
+
}
|
|
2893
|
+
]
|
|
2894
|
+
},
|
|
2895
|
+
"attributes": [
|
|
2896
|
+
{
|
|
2897
|
+
"name": "href",
|
|
2898
|
+
"description": "The href of the document",
|
|
2899
|
+
"value": {
|
|
2900
|
+
"type": "string"
|
|
2901
|
+
}
|
|
2902
|
+
},
|
|
2903
|
+
{
|
|
2904
|
+
"name": "description",
|
|
2905
|
+
"description": "Optional description of the file",
|
|
2906
|
+
"value": {
|
|
2907
|
+
"type": "string | undefined"
|
|
2908
|
+
}
|
|
2909
|
+
},
|
|
2910
|
+
{
|
|
2911
|
+
"name": "format",
|
|
2912
|
+
"description": "The document format",
|
|
2913
|
+
"value": {
|
|
2914
|
+
"type": "string"
|
|
2915
|
+
}
|
|
2916
|
+
},
|
|
2917
|
+
{
|
|
2918
|
+
"name": "documentsize",
|
|
2919
|
+
"description": "The document size",
|
|
2920
|
+
"value": {
|
|
2921
|
+
"type": "string"
|
|
2922
|
+
}
|
|
2923
|
+
}
|
|
2924
|
+
]
|
|
2925
|
+
},
|
|
2926
|
+
{
|
|
2927
|
+
"name": "dsa-download-link",
|
|
2928
|
+
"description": "",
|
|
2929
|
+
"js": {
|
|
2930
|
+
"properties": [
|
|
2931
|
+
{
|
|
2932
|
+
"name": "href",
|
|
2933
|
+
"description": "The href of the document",
|
|
2934
|
+
"value": {
|
|
2935
|
+
"type": "string"
|
|
2936
|
+
}
|
|
2937
|
+
},
|
|
2938
|
+
{
|
|
2939
|
+
"name": "format",
|
|
2940
|
+
"description": "The document format",
|
|
2941
|
+
"value": {
|
|
2942
|
+
"type": "string"
|
|
2943
|
+
}
|
|
2944
|
+
},
|
|
2945
|
+
{
|
|
2946
|
+
"name": "documentSize",
|
|
2947
|
+
"description": "The document size",
|
|
2948
|
+
"value": {
|
|
2949
|
+
"type": "string"
|
|
2950
|
+
}
|
|
2951
|
+
},
|
|
2952
|
+
{
|
|
2953
|
+
"name": "variant",
|
|
2954
|
+
"description": "The link's theme variant.",
|
|
2955
|
+
"value": {
|
|
2956
|
+
"type": "'base' | 'layer' | 'contrasted' | 'floating'"
|
|
2957
|
+
}
|
|
2958
|
+
},
|
|
2959
|
+
{
|
|
2960
|
+
"name": "size",
|
|
2961
|
+
"description": "The link's size.",
|
|
2962
|
+
"value": {
|
|
2963
|
+
"type": "| '2xsmall'\n | 'xsmall'\n | 'small'\n | 'medium'\n | 'large'\n | 'xlarge'"
|
|
2964
|
+
}
|
|
2965
|
+
},
|
|
2966
|
+
{
|
|
2967
|
+
"name": "handleFocus",
|
|
2968
|
+
"value": {}
|
|
2969
|
+
},
|
|
2970
|
+
{
|
|
2971
|
+
"name": "handleBlur",
|
|
2972
|
+
"value": {}
|
|
2973
|
+
}
|
|
2974
|
+
],
|
|
2975
|
+
"events": [
|
|
2976
|
+
{
|
|
2977
|
+
"name": "dsa-blur",
|
|
2978
|
+
"description": "Emitted when the link loses focus."
|
|
2979
|
+
},
|
|
2980
|
+
{
|
|
2981
|
+
"name": "dsa-focus",
|
|
2982
|
+
"description": "Emitted when the link gains focus."
|
|
2983
|
+
}
|
|
2984
|
+
]
|
|
2985
|
+
},
|
|
2986
|
+
"attributes": [
|
|
2987
|
+
{
|
|
2988
|
+
"name": "href",
|
|
2989
|
+
"description": "The href of the document",
|
|
2990
|
+
"value": {
|
|
2991
|
+
"type": "string"
|
|
2992
|
+
}
|
|
2993
|
+
},
|
|
2994
|
+
{
|
|
2995
|
+
"name": "format",
|
|
2996
|
+
"description": "The document format",
|
|
2997
|
+
"value": {
|
|
2998
|
+
"type": "string"
|
|
2999
|
+
}
|
|
3000
|
+
},
|
|
3001
|
+
{
|
|
3002
|
+
"name": "documentsize",
|
|
3003
|
+
"description": "The document size",
|
|
3004
|
+
"value": {
|
|
3005
|
+
"type": "string"
|
|
3006
|
+
}
|
|
3007
|
+
},
|
|
3008
|
+
{
|
|
3009
|
+
"name": "variant",
|
|
3010
|
+
"description": "The link's theme variant.",
|
|
3011
|
+
"value": {
|
|
3012
|
+
"type": "'base' | 'layer' | 'contrasted' | 'floating'"
|
|
3013
|
+
}
|
|
3014
|
+
},
|
|
3015
|
+
{
|
|
3016
|
+
"name": "size",
|
|
3017
|
+
"description": "The link's size.",
|
|
3018
|
+
"value": {
|
|
3019
|
+
"type": "| '2xsmall'\n | 'xsmall'\n | 'small'\n | 'medium'\n | 'large'\n | 'xlarge'"
|
|
3020
|
+
}
|
|
3021
|
+
}
|
|
3022
|
+
]
|
|
3023
|
+
},
|
|
2833
3024
|
{
|
|
2834
3025
|
"name": "dsa-drawer",
|
|
2835
3026
|
"description": "",
|
|
@@ -3228,6 +3419,39 @@
|
|
|
3228
3419
|
}
|
|
3229
3420
|
]
|
|
3230
3421
|
},
|
|
3422
|
+
{
|
|
3423
|
+
"name": "dsa-error-message-panel",
|
|
3424
|
+
"description": "",
|
|
3425
|
+
"js": {
|
|
3426
|
+
"properties": [
|
|
3427
|
+
{
|
|
3428
|
+
"name": "localize",
|
|
3429
|
+
"value": {}
|
|
3430
|
+
},
|
|
3431
|
+
{
|
|
3432
|
+
"name": "hasSlotController",
|
|
3433
|
+
"value": {}
|
|
3434
|
+
},
|
|
3435
|
+
{
|
|
3436
|
+
"name": "errorCode",
|
|
3437
|
+
"description": "Display the error code. If you need to display HTML, use the `error-code` slot instead.",
|
|
3438
|
+
"value": {
|
|
3439
|
+
"type": "string"
|
|
3440
|
+
}
|
|
3441
|
+
}
|
|
3442
|
+
],
|
|
3443
|
+
"events": []
|
|
3444
|
+
},
|
|
3445
|
+
"attributes": [
|
|
3446
|
+
{
|
|
3447
|
+
"name": "error-code",
|
|
3448
|
+
"description": "Display the error code. If you need to display HTML, use the `error-code` slot instead.",
|
|
3449
|
+
"value": {
|
|
3450
|
+
"type": "string"
|
|
3451
|
+
}
|
|
3452
|
+
}
|
|
3453
|
+
]
|
|
3454
|
+
},
|
|
3231
3455
|
{
|
|
3232
3456
|
"name": "dsa-error-text",
|
|
3233
3457
|
"description": "",
|
|
@@ -8014,6 +8238,12 @@
|
|
|
8014
8238
|
"description": "",
|
|
8015
8239
|
"js": {
|
|
8016
8240
|
"properties": [
|
|
8241
|
+
{
|
|
8242
|
+
"name": "anchor",
|
|
8243
|
+
"value": {
|
|
8244
|
+
"type": "HTMLAnchorElement"
|
|
8245
|
+
}
|
|
8246
|
+
},
|
|
8017
8247
|
{
|
|
8018
8248
|
"name": "href",
|
|
8019
8249
|
"description": "Specifies the URL of the page or the section the link goes to.",
|
|
@@ -8028,6 +8258,16 @@
|
|
|
8028
8258
|
{
|
|
8029
8259
|
"name": "handleBlur",
|
|
8030
8260
|
"value": {}
|
|
8261
|
+
},
|
|
8262
|
+
{
|
|
8263
|
+
"name": "focus",
|
|
8264
|
+
"description": "Sets focus on the anchor.",
|
|
8265
|
+
"value": {}
|
|
8266
|
+
},
|
|
8267
|
+
{
|
|
8268
|
+
"name": "blur",
|
|
8269
|
+
"description": "Removes focus from the anchor.",
|
|
8270
|
+
"value": {}
|
|
8031
8271
|
}
|
|
8032
8272
|
],
|
|
8033
8273
|
"events": []
|
|
@@ -8056,6 +8296,10 @@
|
|
|
8056
8296
|
{
|
|
8057
8297
|
"name": "getAllLinks",
|
|
8058
8298
|
"value": {}
|
|
8299
|
+
},
|
|
8300
|
+
{
|
|
8301
|
+
"name": "handleDefaultSlotChange",
|
|
8302
|
+
"value": {}
|
|
8059
8303
|
}
|
|
8060
8304
|
],
|
|
8061
8305
|
"events": []
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ds-autonomie/web-components",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.0",
|
|
4
4
|
"author": "CNSA",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"customElements": "dist/custom-elements.json",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"lit": "2.8.0"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
|
-
"@ds-autonomie/assets": "1.
|
|
48
|
+
"@ds-autonomie/assets": "1.2.0"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@custom-elements-manifest/analyzer": "0.8.4",
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
// src/utilities/debounce.ts
|
|
2
|
-
function debounce(fn, time) {
|
|
3
|
-
let timerId = void 0;
|
|
4
|
-
return function debounceFn(search, selectedOptions) {
|
|
5
|
-
if (timerId !== void 0) {
|
|
6
|
-
clearTimeout(timerId);
|
|
7
|
-
}
|
|
8
|
-
return new Promise((resolve) => {
|
|
9
|
-
timerId = setTimeout(() => resolve(fn(search, selectedOptions)), time);
|
|
10
|
-
});
|
|
11
|
-
};
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export {
|
|
15
|
-
debounce
|
|
16
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function debounce<T>(fn: (search: string, selectedOptions: string[]) => T | Promise<T>, time: number): (search: string, selectedOptions: string[]) => Promise<T>;
|