@ds-autonomie/web-components 1.0.1 → 1.1.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.
Files changed (149) hide show
  1. package/CHANGELOG.md +38 -0
  2. package/dist/chunks/{chunk.K6WCEYZI.js → chunk.2CCKS3CP.js} +1 -1
  3. package/dist/chunks/{chunk.HH63FIEF.js → chunk.2DGAEK66.js} +12 -3
  4. package/dist/chunks/{chunk.O73OYTYJ.js → chunk.2HV2U4RQ.js} +2 -4
  5. package/dist/chunks/{chunk.EHVJT7BH.js → chunk.2R6P5TGQ.js} +1 -1
  6. package/dist/chunks/{chunk.KOH5V4C6.js → chunk.4MC32HP7.js} +21 -17
  7. package/dist/chunks/{chunk.BLPP3Q5H.js → chunk.5324JGM4.js} +11 -4
  8. package/dist/chunks/{chunk.WIEJJS3W.js → chunk.6BJBVSW4.js} +1 -1
  9. package/dist/chunks/{chunk.D7CATJYB.js → chunk.6IH66JBY.js} +1 -1
  10. package/dist/chunks/{chunk.YS7MY5CH.js → chunk.7EWUWW3E.js} +18 -24
  11. package/dist/chunks/chunk.7HGZSZJK.js +409 -0
  12. package/dist/chunks/{chunk.ODSCDJDO.js → chunk.ARVWTY56.js} +5 -4
  13. package/dist/chunks/{chunk.KDAK2GXX.js → chunk.AYXPVAYS.js} +1 -1
  14. package/dist/chunks/{chunk.WSVP75MH.js → chunk.CBMFAOZI.js} +1 -1
  15. package/dist/chunks/chunk.CMJ2SRTL.js +26 -0
  16. package/dist/chunks/{chunk.DURVPB6M.js → chunk.D6DEGG4H.js} +25 -6
  17. package/dist/chunks/{chunk.MY434P47.js → chunk.DFTZEFHF.js} +2 -2
  18. package/dist/chunks/{chunk.4XT2OJD2.js → chunk.DZWH4V6H.js} +8 -4
  19. package/dist/chunks/{chunk.NDEZEB3Z.js → chunk.EDRQ2QWB.js} +10 -5
  20. package/dist/chunks/{chunk.XSCX6TC5.js → chunk.EXIGM5NV.js} +4 -1
  21. package/dist/chunks/{chunk.OVK7QCA7.js → chunk.F4XMSVNF.js} +13 -9
  22. package/dist/chunks/{chunk.4A3WMGMZ.js → chunk.FHDPJN6L.js} +1 -1
  23. package/dist/chunks/{chunk.ABGBXXKA.js → chunk.FTWZNCEH.js} +1 -1
  24. package/dist/chunks/{chunk.6FAUBLR3.js → chunk.G3ESG6Q5.js} +1 -1
  25. package/dist/chunks/{chunk.PWWER3ZK.js → chunk.GJCVGGCP.js} +48 -24
  26. package/dist/chunks/{chunk.WHK7EFIM.js → chunk.GP5Z27QB.js} +7 -4
  27. package/dist/chunks/{chunk.UA32LJYW.js → chunk.HEOTAAPU.js} +2 -2
  28. package/dist/chunks/{chunk.JETXIC4F.js → chunk.HPK6C7NJ.js} +1 -1
  29. package/dist/chunks/{chunk.A2PAK6VF.js → chunk.ILUHEJYG.js} +2 -2
  30. package/dist/chunks/{chunk.5XL2LZLC.js → chunk.IQ7SDYSC.js} +4 -0
  31. package/dist/chunks/{chunk.GYTA2LJC.js → chunk.J6XP4AFN.js} +1 -1
  32. package/dist/chunks/{chunk.UZLQVFDR.js → chunk.L6LQN6AI.js} +2 -2
  33. package/dist/chunks/{chunk.BEB47LM2.js → chunk.LSKBY2HF.js} +2 -2
  34. package/dist/chunks/{chunk.WNHQYL5W.js → chunk.MTZZV3NB.js} +4 -20
  35. package/dist/chunks/{chunk.7ZCCXTFG.js → chunk.NBQ3AEK6.js} +2 -2
  36. package/dist/chunks/{chunk.HC5BO5YV.js → chunk.NHYFVEGM.js} +5 -16
  37. package/dist/chunks/{chunk.QKNNLZ2M.js → chunk.NKPNQBLW.js} +5 -5
  38. package/dist/chunks/{chunk.MOWTZFON.js → chunk.NKVYNBAI.js} +1 -1
  39. package/dist/chunks/{chunk.7NWAYDYI.js → chunk.NOEQVLAW.js} +3 -3
  40. package/dist/chunks/{chunk.INCGVIAQ.js → chunk.QSPKKO3T.js} +1 -1
  41. package/dist/chunks/chunk.R37CT3PN.js +865 -0
  42. package/dist/chunks/{chunk.IRQOFNJE.js → chunk.RSJYKNXT.js} +8 -3
  43. package/dist/chunks/{chunk.5XUV3SRW.js → chunk.ST2QYN4S.js} +11 -6
  44. package/dist/chunks/{chunk.LT7JMZ3T.js → chunk.T7JSALXE.js} +2 -2
  45. package/dist/chunks/{chunk.N6VVY6XD.js → chunk.U5KRBVRP.js} +6 -3
  46. package/dist/chunks/{chunk.5LT3B7MI.js → chunk.UQYPPFBJ.js} +1 -1
  47. package/dist/chunks/{chunk.2HUORR44.js → chunk.V6V7AGDB.js} +1 -1
  48. package/dist/chunks/{chunk.UV53JTE3.js → chunk.VIULAG23.js} +1 -1
  49. package/dist/chunks/{chunk.42W4S2HN.js → chunk.VM355VAS.js} +1 -1
  50. package/dist/chunks/{chunk.G7AELPSO.js → chunk.VRU3XH45.js} +4 -4
  51. package/dist/chunks/{chunk.HLYGKGDG.js → chunk.W74UQSZJ.js} +8 -5
  52. package/dist/chunks/{chunk.AR5HJD7F.js → chunk.X6RQ2SQC.js} +1 -1
  53. package/dist/chunks/chunk.ZQJVCRB2.js +10 -0
  54. package/dist/chunks/{chunk.RIJQGADY.js → chunk.ZW4JE66G.js} +11 -4
  55. package/dist/components/accordion/accordion.js +7 -7
  56. package/dist/components/alert/alert.js +9 -8
  57. package/dist/components/animation/animation.js +2 -2
  58. package/dist/components/avatar/avatar.d.ts +1 -1
  59. package/dist/components/avatar/avatar.js +7 -6
  60. package/dist/components/avatar-group/avatar-group.d.ts +1 -1
  61. package/dist/components/badge/badge.d.ts +1 -1
  62. package/dist/components/breadcrumb/breadcrumb.js +7 -7
  63. package/dist/components/breadcrumb-item/breadcrumb-item.js +2 -2
  64. package/dist/components/button/button.js +9 -8
  65. package/dist/components/checkbox/checkbox.js +8 -7
  66. package/dist/components/checkbox-button/checkbox-button.js +6 -6
  67. package/dist/components/checkbox-group/checkbox-group.d.ts +1 -0
  68. package/dist/components/checkbox-group/checkbox-group.js +3 -3
  69. package/dist/components/combobox/combobox.d.ts +175 -0
  70. package/dist/components/combobox/combobox.js +37 -0
  71. package/dist/components/combobox/combobox.styles.d.ts +2 -0
  72. package/dist/components/combobox/combobox.styles.js +9 -0
  73. package/dist/components/dialog/dialog.js +9 -8
  74. package/dist/components/divider/divider.d.ts +1 -1
  75. package/dist/components/drawer/drawer.js +10 -9
  76. package/dist/components/dropdown/dropdown.js +3 -3
  77. package/dist/components/format-bytes/format-bytes.js +2 -2
  78. package/dist/components/format-date/format-date.js +2 -2
  79. package/dist/components/format-number/format-number.js +2 -2
  80. package/dist/components/icon/icon.js +5 -5
  81. package/dist/components/icon-button/icon-button.d.ts +1 -1
  82. package/dist/components/icon-button/icon-button.js +7 -6
  83. package/dist/components/include/include.js +2 -2
  84. package/dist/components/input/input.d.ts +1 -1
  85. package/dist/components/input/input.js +10 -9
  86. package/dist/components/input/input.styles.js +1 -1
  87. package/dist/components/input-mask/input-mask.d.ts +1 -0
  88. package/dist/components/input-mask/input-mask.js +6 -5
  89. package/dist/components/input-mask/input-mask.styles.js +1 -1
  90. package/dist/components/input-phone/input-phone.d.ts +1 -1
  91. package/dist/components/input-phone/input-phone.js +24 -23
  92. package/dist/components/input-phone/input-phone.styles.js +1 -1
  93. package/dist/components/menu/menu.d.ts +1 -1
  94. package/dist/components/menu-item/menu-item.d.ts +1 -1
  95. package/dist/components/menu-item/menu-item.js +6 -6
  96. package/dist/components/menu-label/menu-label.d.ts +1 -1
  97. package/dist/components/mutation-observer/mutation-observer.js +2 -2
  98. package/dist/components/option/option.js +8 -8
  99. package/dist/components/option/option.styles.js +1 -1
  100. package/dist/components/progress-bar/progress-bar.d.ts +1 -1
  101. package/dist/components/progress-bar/progress-bar.js +3 -2
  102. package/dist/components/progress-ring/progress-ring.d.ts +1 -2
  103. package/dist/components/progress-ring/progress-ring.js +2 -2
  104. package/dist/components/radio/radio.js +6 -6
  105. package/dist/components/radio-button/radio-button.js +2 -2
  106. package/dist/components/radio-group/radio-group.js +2 -2
  107. package/dist/components/relative-time/relative-time.js +2 -2
  108. package/dist/components/resize-observer/resize-observer.js +2 -2
  109. package/dist/components/select/select.d.ts +4 -0
  110. package/dist/components/select/select.js +13 -12
  111. package/dist/components/select/select.styles.js +1 -1
  112. package/dist/components/skeleton/skeleton.d.ts +1 -1
  113. package/dist/components/spinner/spinner.js +2 -2
  114. package/dist/components/tab/tab.d.ts +1 -1
  115. package/dist/components/tab/tab.js +3 -3
  116. package/dist/components/tab-group/tab-group.d.ts +1 -1
  117. package/dist/components/tab-group/tab-group.js +3 -3
  118. package/dist/components/tab-panel/tab-panel.d.ts +1 -1
  119. package/dist/components/tab-panel/tab-panel.js +2 -2
  120. package/dist/components/tag/tag.js +9 -8
  121. package/dist/components/textarea/textarea.d.ts +1 -0
  122. package/dist/components/textarea/textarea.js +4 -3
  123. package/dist/components/tooltip/tooltip.js +3 -3
  124. package/dist/components/tree/tree.d.ts +2 -1
  125. package/dist/components/tree/tree.js +12 -11
  126. package/dist/components/tree-item/tree-item.d.ts +1 -1
  127. package/dist/components/tree-item/tree-item.js +11 -10
  128. package/dist/custom-elements.json +1104 -74
  129. package/dist/design-system.d.ts +1 -0
  130. package/dist/design-system.js +96 -90
  131. package/dist/internal/debounce.d.ts +1 -1
  132. package/dist/internal/debounce.js +3 -3
  133. package/dist/internal/default-value.d.ts +1 -1
  134. package/dist/internal/default-value.js +24 -21
  135. package/dist/internal/watch.js +1 -1
  136. package/dist/themes/dsa-wc-theme.css +37 -6
  137. package/dist/themes/dsa-wc-theme.min.css +1 -1
  138. package/dist/themes/dsa-wc-theme.styles.js +43 -6
  139. package/dist/translations/en-gb.js +1 -1
  140. package/dist/translations/en.js +1 -1
  141. package/dist/translations/fr.js +1 -1
  142. package/dist/utilities/directives.d.ts +1 -0
  143. package/dist/utilities/directives.js +7 -0
  144. package/dist/utilities/localize.d.ts +2 -0
  145. package/dist/utilities/localize.js +1 -1
  146. package/dist/vscode.html-custom-data.json +130 -6
  147. package/dist/web-types.json +618 -9
  148. package/package.json +1 -1
  149. package/dist/chunks/chunk.GI7VDIWX.js +0 -24
@@ -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.0.1",
4
+ "version": "1.1.0",
5
5
  "description-markup": "markdown",
6
6
  "framework-config": {
7
7
  "enable-when": {
@@ -1864,6 +1864,605 @@
1864
1864
  }
1865
1865
  ]
1866
1866
  },
1867
+ {
1868
+ "name": "dsa-combobox",
1869
+ "description": "",
1870
+ "js": {
1871
+ "properties": [
1872
+ {
1873
+ "name": "formControlController",
1874
+ "value": {}
1875
+ },
1876
+ {
1877
+ "name": "hasSlotController",
1878
+ "value": {}
1879
+ },
1880
+ {
1881
+ "name": "localize",
1882
+ "value": {}
1883
+ },
1884
+ {
1885
+ "name": "popup",
1886
+ "value": {
1887
+ "type": "DSAPopup"
1888
+ }
1889
+ },
1890
+ {
1891
+ "name": "combobox",
1892
+ "value": {
1893
+ "type": "HTMLSlotElement"
1894
+ }
1895
+ },
1896
+ {
1897
+ "name": "displayInput",
1898
+ "value": {
1899
+ "type": "HTMLInputElement"
1900
+ }
1901
+ },
1902
+ {
1903
+ "name": "valueInput",
1904
+ "value": {
1905
+ "type": "HTMLInputElement"
1906
+ }
1907
+ },
1908
+ {
1909
+ "name": "listbox",
1910
+ "value": {
1911
+ "type": "HTMLSlotElement"
1912
+ }
1913
+ },
1914
+ {
1915
+ "name": "hasVisualFocus",
1916
+ "value": {
1917
+ "type": "boolean"
1918
+ }
1919
+ },
1920
+ {
1921
+ "name": "displayLabel",
1922
+ "value": {
1923
+ "type": "string"
1924
+ }
1925
+ },
1926
+ {
1927
+ "name": "currentOption",
1928
+ "value": {
1929
+ "type": "DSAOption | undefined"
1930
+ }
1931
+ },
1932
+ {
1933
+ "name": "selectedOptions",
1934
+ "value": {
1935
+ "type": "DSAOption[]"
1936
+ }
1937
+ },
1938
+ {
1939
+ "name": "allOptions",
1940
+ "value": {
1941
+ "type": "DSAOption[]"
1942
+ }
1943
+ },
1944
+ {
1945
+ "name": "filteredOptions",
1946
+ "value": {
1947
+ "type": "DSAOption[]"
1948
+ }
1949
+ },
1950
+ {
1951
+ "name": "name",
1952
+ "description": "The name of the combobox, submitted as a name/value pair with form data.",
1953
+ "value": {
1954
+ "type": "string"
1955
+ }
1956
+ },
1957
+ {
1958
+ "name": "title",
1959
+ "description": "The title contains a text representing advisory information related to the element it belongs to.",
1960
+ "value": {
1961
+ "type": "string"
1962
+ }
1963
+ },
1964
+ {
1965
+ "name": "open",
1966
+ "description": "Indicates whether or not the combobox is open. You can toggle this attribute to show and hide the menu, or you can\nuse the `show()` and `hide()` methods and this attribute will reflect the combobox's open state.",
1967
+ "value": {
1968
+ "type": "boolean"
1969
+ }
1970
+ },
1971
+ {
1972
+ "name": "value",
1973
+ "description": "The current value of the select, submitted as a name/value pair with form data. When `multiple` is enabled, the\nvalue will be a space-delimited list of values based on the options selected.",
1974
+ "value": {
1975
+ "type": "string | string[]"
1976
+ }
1977
+ },
1978
+ {
1979
+ "name": "defaultValue",
1980
+ "description": "The default value of the form control. Primarily used for resetting the form control.",
1981
+ "value": {
1982
+ "type": "string"
1983
+ }
1984
+ },
1985
+ {
1986
+ "name": "size",
1987
+ "description": "The combobox's size.",
1988
+ "value": {
1989
+ "type": "'small' | 'medium' | 'large'"
1990
+ }
1991
+ },
1992
+ {
1993
+ "name": "placeholder",
1994
+ "description": "Placeholder text to show as a hint when the combobox is empty.",
1995
+ "value": {
1996
+ "type": "string"
1997
+ }
1998
+ },
1999
+ {
2000
+ "name": "label",
2001
+ "description": "The combobox's label. If you need to display HTML, use the `label` slot instead.",
2002
+ "value": {
2003
+ "type": "string"
2004
+ }
2005
+ },
2006
+ {
2007
+ "name": "variant",
2008
+ "description": "The combobox's variant.",
2009
+ "value": {
2010
+ "type": "'base' | 'layer'"
2011
+ }
2012
+ },
2013
+ {
2014
+ "name": "hoist",
2015
+ "description": "Enable this option to prevent the listbox from being clipped when the component is placed inside a container with\n`overflow: auto|scroll`. Hoisting uses a fixed positioning strategy that works in many, but not all, scenarios.",
2016
+ "value": {
2017
+ "type": "boolean"
2018
+ }
2019
+ },
2020
+ {
2021
+ "name": "placement",
2022
+ "description": "The preferred placement of the combobox's menu. Note that the actual placement may vary as needed to keep the listbox\ninside of the viewport.",
2023
+ "value": {
2024
+ "type": "| 'top'\n | 'top-start'\n | 'top-end'\n | 'bottom'\n | 'bottom-start'\n | 'bottom-end'"
2025
+ }
2026
+ },
2027
+ {
2028
+ "name": "helpText",
2029
+ "description": "The combobox's help text. If you need to display HTML, use the `help-text` slot instead.",
2030
+ "value": {
2031
+ "type": "string"
2032
+ }
2033
+ },
2034
+ {
2035
+ "name": "disabled",
2036
+ "description": "Disables the combobox control.",
2037
+ "value": {
2038
+ "type": "boolean"
2039
+ }
2040
+ },
2041
+ {
2042
+ "name": "clearable",
2043
+ "description": "Adds a clear button when the select is not empty.",
2044
+ "value": {
2045
+ "type": "boolean"
2046
+ }
2047
+ },
2048
+ {
2049
+ "name": "form",
2050
+ "description": "By default, form controls are associated with the nearest containing `<form>` element. This attribute allows you\nto place the form control outside of a form and associate it with the form that has this `id`. The form must be in\nthe same document or shadow root for this to work.",
2051
+ "value": {
2052
+ "type": "string"
2053
+ }
2054
+ },
2055
+ {
2056
+ "name": "required",
2057
+ "description": "The combobox's required attribute.",
2058
+ "value": {
2059
+ "type": "boolean"
2060
+ }
2061
+ },
2062
+ {
2063
+ "name": "error",
2064
+ "description": "Indicates whether the input should be in error state",
2065
+ "value": {
2066
+ "type": "boolean"
2067
+ }
2068
+ },
2069
+ {
2070
+ "name": "errorMessage",
2071
+ "description": "An error message that is shown when `error` is set to true",
2072
+ "value": {
2073
+ "type": "string"
2074
+ }
2075
+ },
2076
+ {
2077
+ "name": "noSyncWidth",
2078
+ "description": "When set to true, the Popup's width is no longer equal to its anchor's width",
2079
+ "value": {
2080
+ "type": "boolean"
2081
+ }
2082
+ },
2083
+ {
2084
+ "name": "items",
2085
+ "value": {
2086
+ "type": "DSAOption[] | undefined"
2087
+ }
2088
+ },
2089
+ {
2090
+ "name": "multiple",
2091
+ "description": "Allows more than one option to be selected.",
2092
+ "value": {
2093
+ "type": "boolean"
2094
+ }
2095
+ },
2096
+ {
2097
+ "name": "maxOptionsVisible",
2098
+ "description": "The maximum number of selected options to show when `multiple` is true. After the maximum, \"+n\" will be shown to\nindicate the number of additional items that are selected. Set to 0 to remove the limit.",
2099
+ "value": {
2100
+ "type": "number"
2101
+ }
2102
+ },
2103
+ {
2104
+ "name": "validity",
2105
+ "description": "Gets the validity state object",
2106
+ "value": {}
2107
+ },
2108
+ {
2109
+ "name": "validationMessage",
2110
+ "description": "Gets the validation message",
2111
+ "value": {}
2112
+ },
2113
+ {
2114
+ "name": "handleBlur",
2115
+ "description": "Input events",
2116
+ "value": {}
2117
+ },
2118
+ {
2119
+ "name": "handleFocus",
2120
+ "value": {}
2121
+ },
2122
+ {
2123
+ "name": "handleComboboxMouseDown",
2124
+ "value": {}
2125
+ },
2126
+ {
2127
+ "name": "handleComboboxKeyDown",
2128
+ "value": {}
2129
+ },
2130
+ {
2131
+ "name": "handleChange",
2132
+ "value": {}
2133
+ },
2134
+ {
2135
+ "name": "handleInput",
2136
+ "value": {}
2137
+ },
2138
+ {
2139
+ "name": "handleClearClick",
2140
+ "value": {}
2141
+ },
2142
+ {
2143
+ "name": "filterOptions",
2144
+ "value": {}
2145
+ },
2146
+ {
2147
+ "name": "toggleOptionSelection",
2148
+ "value": {}
2149
+ },
2150
+ {
2151
+ "name": "handleOptionClick",
2152
+ "value": {}
2153
+ },
2154
+ {
2155
+ "name": "handleDefaultSlotChange",
2156
+ "value": {}
2157
+ },
2158
+ {
2159
+ "name": "handleTagRemove",
2160
+ "value": {}
2161
+ },
2162
+ {
2163
+ "name": "getAllOptions",
2164
+ "value": {}
2165
+ },
2166
+ {
2167
+ "name": "clearSelectedOptions",
2168
+ "value": {}
2169
+ },
2170
+ {
2171
+ "name": "setCurrentOption",
2172
+ "value": {}
2173
+ },
2174
+ {
2175
+ "name": "setSelectedOptions",
2176
+ "value": {}
2177
+ },
2178
+ {
2179
+ "name": "handleClearMouseDown",
2180
+ "value": {}
2181
+ },
2182
+ {
2183
+ "name": "selectionChanged",
2184
+ "value": {}
2185
+ },
2186
+ {
2187
+ "name": "handleInvalid",
2188
+ "value": {}
2189
+ },
2190
+ {
2191
+ "name": "addOpenListeners",
2192
+ "description": "Listeners",
2193
+ "value": {}
2194
+ },
2195
+ {
2196
+ "name": "removeOpenListeners",
2197
+ "value": {}
2198
+ },
2199
+ {
2200
+ "name": "handleDocumentFocusIn",
2201
+ "value": {}
2202
+ },
2203
+ {
2204
+ "name": "handleDocumentMouseDown",
2205
+ "value": {}
2206
+ },
2207
+ {
2208
+ "name": "handleDocumentKeyDown",
2209
+ "value": {}
2210
+ },
2211
+ {
2212
+ "name": "handleEscapeAndTabKeys",
2213
+ "value": {}
2214
+ },
2215
+ {
2216
+ "name": "handleEnterKey",
2217
+ "value": {}
2218
+ },
2219
+ {
2220
+ "name": "handleArrowKeys",
2221
+ "value": {}
2222
+ },
2223
+ {
2224
+ "name": "handleNavigationKeys",
2225
+ "value": {}
2226
+ },
2227
+ {
2228
+ "name": "handleDisabledChange",
2229
+ "value": {}
2230
+ },
2231
+ {
2232
+ "name": "handleItemsChange",
2233
+ "value": {}
2234
+ },
2235
+ {
2236
+ "name": "handleValueChange",
2237
+ "value": {}
2238
+ },
2239
+ {
2240
+ "name": "handleOpenChange",
2241
+ "value": {}
2242
+ },
2243
+ {
2244
+ "name": "show",
2245
+ "description": "Shows the listbox.",
2246
+ "value": {}
2247
+ },
2248
+ {
2249
+ "name": "hide",
2250
+ "description": "Hides the listbox.",
2251
+ "value": {}
2252
+ },
2253
+ {
2254
+ "name": "checkValidity",
2255
+ "description": "Checks for validity but does not show a validation message. Returns `true` when valid and `false` when invalid.",
2256
+ "value": {}
2257
+ },
2258
+ {
2259
+ "name": "getForm",
2260
+ "description": "Gets the associated form, if one exists.",
2261
+ "value": {}
2262
+ },
2263
+ {
2264
+ "name": "reportValidity",
2265
+ "description": "Checks for validity and shows the browser's validation message if the control is invalid.",
2266
+ "value": {}
2267
+ },
2268
+ {
2269
+ "name": "setCustomValidity",
2270
+ "description": "Sets a custom validation message. Pass an empty string to restore validity.",
2271
+ "value": {}
2272
+ },
2273
+ {
2274
+ "name": "focus",
2275
+ "description": "Sets focus on the control.",
2276
+ "value": {}
2277
+ },
2278
+ {
2279
+ "name": "blur",
2280
+ "description": "Removes focus from the control.",
2281
+ "value": {}
2282
+ }
2283
+ ],
2284
+ "events": [
2285
+ {
2286
+ "name": "dsa-change",
2287
+ "description": "Emitted when the control's value changes."
2288
+ },
2289
+ {
2290
+ "name": "dsa-input",
2291
+ "description": "Emitted when the control receives input."
2292
+ },
2293
+ {
2294
+ "name": "dsa-focus",
2295
+ "description": "Emitted when the control gains focus."
2296
+ },
2297
+ {
2298
+ "name": "dsa-blur",
2299
+ "description": "Emitted when the control loses focus."
2300
+ },
2301
+ {
2302
+ "name": "dsa-show",
2303
+ "description": "Emitted when the combobox's menu opens."
2304
+ },
2305
+ {
2306
+ "name": "dsa-after-show",
2307
+ "description": "Emitted after the combobox's menu opens and all animations are complete."
2308
+ },
2309
+ {
2310
+ "name": "dsa-hide",
2311
+ "description": "Emitted when the combobox's menu closes."
2312
+ },
2313
+ {
2314
+ "name": "dsa-after-hide",
2315
+ "description": "Emitted after the combobox's menu closes and all animations are complete."
2316
+ },
2317
+ {
2318
+ "name": "dsa-invalid",
2319
+ "description": "Emitted when the form control has been checked for validity and its constraints aren't satisfied."
2320
+ }
2321
+ ]
2322
+ },
2323
+ "attributes": [
2324
+ {
2325
+ "name": "name",
2326
+ "description": "The name of the combobox, submitted as a name/value pair with form data.",
2327
+ "value": {
2328
+ "type": "string"
2329
+ }
2330
+ },
2331
+ {
2332
+ "name": "title",
2333
+ "description": "The title contains a text representing advisory information related to the element it belongs to.",
2334
+ "value": {
2335
+ "type": "string"
2336
+ }
2337
+ },
2338
+ {
2339
+ "name": "open",
2340
+ "description": "Indicates whether or not the combobox is open. You can toggle this attribute to show and hide the menu, or you can\nuse the `show()` and `hide()` methods and this attribute will reflect the combobox's open state.",
2341
+ "value": {
2342
+ "type": "boolean"
2343
+ }
2344
+ },
2345
+ {
2346
+ "name": "value",
2347
+ "description": "The current value of the select, submitted as a name/value pair with form data. When `multiple` is enabled, the\nvalue will be a space-delimited list of values based on the options selected.",
2348
+ "value": {
2349
+ "type": "string | string[]"
2350
+ }
2351
+ },
2352
+ {
2353
+ "name": "size",
2354
+ "description": "The combobox's size.",
2355
+ "value": {
2356
+ "type": "'small' | 'medium' | 'large'"
2357
+ }
2358
+ },
2359
+ {
2360
+ "name": "placeholder",
2361
+ "description": "Placeholder text to show as a hint when the combobox is empty.",
2362
+ "value": {
2363
+ "type": "string"
2364
+ }
2365
+ },
2366
+ {
2367
+ "name": "label",
2368
+ "description": "The combobox's label. If you need to display HTML, use the `label` slot instead.",
2369
+ "value": {
2370
+ "type": "string"
2371
+ }
2372
+ },
2373
+ {
2374
+ "name": "variant",
2375
+ "description": "The combobox's variant.",
2376
+ "value": {
2377
+ "type": "'base' | 'layer'"
2378
+ }
2379
+ },
2380
+ {
2381
+ "name": "hoist",
2382
+ "description": "Enable this option to prevent the listbox from being clipped when the component is placed inside a container with\n`overflow: auto|scroll`. Hoisting uses a fixed positioning strategy that works in many, but not all, scenarios.",
2383
+ "value": {
2384
+ "type": "boolean"
2385
+ }
2386
+ },
2387
+ {
2388
+ "name": "placement",
2389
+ "description": "The preferred placement of the combobox's menu. Note that the actual placement may vary as needed to keep the listbox\ninside of the viewport.",
2390
+ "value": {
2391
+ "type": "| 'top'\n | 'top-start'\n | 'top-end'\n | 'bottom'\n | 'bottom-start'\n | 'bottom-end'"
2392
+ }
2393
+ },
2394
+ {
2395
+ "name": "help-text",
2396
+ "description": "The combobox's help text. If you need to display HTML, use the `help-text` slot instead.",
2397
+ "value": {
2398
+ "type": "string"
2399
+ }
2400
+ },
2401
+ {
2402
+ "name": "disabled",
2403
+ "description": "Disables the combobox control.",
2404
+ "value": {
2405
+ "type": "boolean"
2406
+ }
2407
+ },
2408
+ {
2409
+ "name": "clearable",
2410
+ "description": "Adds a clear button when the select is not empty.",
2411
+ "value": {
2412
+ "type": "boolean"
2413
+ }
2414
+ },
2415
+ {
2416
+ "name": "form",
2417
+ "description": "By default, form controls are associated with the nearest containing `<form>` element. This attribute allows you\nto place the form control outside of a form and associate it with the form that has this `id`. The form must be in\nthe same document or shadow root for this to work.",
2418
+ "value": {
2419
+ "type": "string"
2420
+ }
2421
+ },
2422
+ {
2423
+ "name": "required",
2424
+ "description": "The combobox's required attribute.",
2425
+ "value": {
2426
+ "type": "boolean"
2427
+ }
2428
+ },
2429
+ {
2430
+ "name": "error",
2431
+ "description": "Indicates whether the input should be in error state",
2432
+ "value": {
2433
+ "type": "boolean"
2434
+ }
2435
+ },
2436
+ {
2437
+ "name": "error-message",
2438
+ "description": "An error message that is shown when `error` is set to true",
2439
+ "value": {
2440
+ "type": "string"
2441
+ }
2442
+ },
2443
+ {
2444
+ "name": "no-sync-width",
2445
+ "description": "When set to true, the Popup's width is no longer equal to its anchor's width",
2446
+ "value": {
2447
+ "type": "boolean"
2448
+ }
2449
+ },
2450
+ {
2451
+ "name": "multiple",
2452
+ "description": "Allows more than one option to be selected.",
2453
+ "value": {
2454
+ "type": "boolean"
2455
+ }
2456
+ },
2457
+ {
2458
+ "name": "max-options-visible",
2459
+ "description": "The maximum number of selected options to show when `multiple` is true. After the maximum, \"+n\" will be shown to\nindicate the number of additional items that are selected. Set to 0 to remove the limit.",
2460
+ "value": {
2461
+ "type": "number"
2462
+ }
2463
+ }
2464
+ ]
2465
+ },
1867
2466
  {
1868
2467
  "name": "dsa-dialog",
1869
2468
  "description": "",
@@ -3547,10 +4146,6 @@
3547
4146
  "name": "handlePasswordToggle",
3548
4147
  "value": {}
3549
4148
  },
3550
- {
3551
- "name": "getPickerIcon",
3552
- "value": {}
3553
- },
3554
4149
  {
3555
4150
  "name": "handleErrorChange",
3556
4151
  "value": {}
@@ -5813,10 +6408,6 @@
5813
6408
  "description": "",
5814
6409
  "js": {
5815
6410
  "properties": [
5816
- {
5817
- "name": "localize",
5818
- "value": {}
5819
- },
5820
6411
  {
5821
6412
  "name": "indicator",
5822
6413
  "value": {
@@ -6721,6 +7312,13 @@
6721
7312
  "type": "boolean"
6722
7313
  }
6723
7314
  },
7315
+ {
7316
+ "name": "readonly",
7317
+ "description": "Makes the select readonly",
7318
+ "value": {
7319
+ "type": "boolean"
7320
+ }
7321
+ },
6724
7322
  {
6725
7323
  "name": "clearable",
6726
7324
  "description": "Adds a clear button when the select is not empty.",
@@ -6907,6 +7505,10 @@
6907
7505
  "name": "handleDisabledChange",
6908
7506
  "value": {}
6909
7507
  },
7508
+ {
7509
+ "name": "handleReadonlyChange",
7510
+ "value": {}
7511
+ },
6910
7512
  {
6911
7513
  "name": "handleValueChange",
6912
7514
  "value": {}
@@ -7063,6 +7665,13 @@
7063
7665
  "type": "boolean"
7064
7666
  }
7065
7667
  },
7668
+ {
7669
+ "name": "readonly",
7670
+ "description": "Makes the select readonly",
7671
+ "value": {
7672
+ "type": "boolean"
7673
+ }
7674
+ },
7066
7675
  {
7067
7676
  "name": "clearable",
7068
7677
  "description": "Adds a clear button when the select is not empty.",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ds-autonomie/web-components",
3
- "version": "1.0.1",
3
+ "version": "1.1.0",
4
4
  "author": "CNSA",
5
5
  "license": "MIT",
6
6
  "customElements": "dist/custom-elements.json",