@solid-design-system/components 1.30.0 → 1.32.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 (143) hide show
  1. package/dist/components/es/checkbox.js +1 -1
  2. package/dist/components/es/default-value.js +1 -0
  3. package/dist/components/es/drawer.js +1 -1
  4. package/dist/components/es/dropdown.js +1 -1
  5. package/dist/components/es/form-control.styles.js +1 -0
  6. package/dist/components/es/icon.js +3 -4
  7. package/dist/components/es/input.js +1 -1
  8. package/dist/components/es/live.js +3 -3
  9. package/dist/components/es/option.js +1 -0
  10. package/dist/components/es/popup.js +1 -1
  11. package/dist/components/es/scroll.js +1 -0
  12. package/dist/components/es/select.js +5 -0
  13. package/dist/components/es/solid-components2.js +1 -1
  14. package/dist/components/es/solid-element.js +1 -1
  15. package/dist/components/es/switch.js +1 -1
  16. package/dist/components/es/tabbable.js +1 -1
  17. package/dist/components/es/tag.js +1 -1
  18. package/dist/components/umd/solid-components.js +25 -22
  19. package/dist/custom-elements.json +1 -1
  20. package/dist/package/components/option/option.d.ts +30 -0
  21. package/dist/package/components/option/option.js +145 -0
  22. package/dist/package/components/popup/popup.d.ts +3 -0
  23. package/dist/package/components/popup/popup.js +17 -0
  24. package/dist/package/components/select/select.d.ts +101 -0
  25. package/dist/package/components/select/select.js +700 -0
  26. package/dist/package/components/tag/tag.d.ts +1 -0
  27. package/dist/package/components/tag/tag.js +5 -3
  28. package/dist/package/solid-components.d.ts +2 -0
  29. package/dist/package/solid-components.js +22 -18
  30. package/dist/package/styles/tailwind.css.js +1 -1
  31. package/dist/package/translations/en.js +3 -4
  32. package/dist/package/utilities/localize.d.ts +1 -0
  33. package/dist/styles/solid-styles.css +1 -1
  34. package/dist/versioned-components/es/accordion-group.js +1 -1
  35. package/dist/versioned-components/es/accordion.js +1 -1
  36. package/dist/versioned-components/es/badge.js +1 -1
  37. package/dist/versioned-components/es/brandshape.js +1 -1
  38. package/dist/versioned-components/es/button.js +1 -1
  39. package/dist/versioned-components/es/carousel-item.js +1 -1
  40. package/dist/versioned-components/es/carousel.js +3 -3
  41. package/dist/versioned-components/es/checkbox-group.js +1 -1
  42. package/dist/versioned-components/es/checkbox.js +1 -1
  43. package/dist/versioned-components/es/default-value.js +1 -0
  44. package/dist/versioned-components/es/divider.js +1 -1
  45. package/dist/versioned-components/es/drawer.js +1 -1
  46. package/dist/versioned-components/es/dropdown.js +1 -1
  47. package/dist/versioned-components/es/form-control.styles.js +1 -0
  48. package/dist/versioned-components/es/form.js +1 -1
  49. package/dist/versioned-components/es/header.js +1 -1
  50. package/dist/versioned-components/es/icon.js +3 -4
  51. package/dist/versioned-components/es/include.js +1 -1
  52. package/dist/versioned-components/es/input.js +1 -1
  53. package/dist/versioned-components/es/link.js +1 -1
  54. package/dist/versioned-components/es/live.js +3 -3
  55. package/dist/versioned-components/es/navigation-item.js +1 -1
  56. package/dist/versioned-components/es/notification.js +1 -1
  57. package/dist/versioned-components/es/option.js +1 -0
  58. package/dist/versioned-components/es/popup.js +1 -1
  59. package/dist/versioned-components/es/radio-group.js +1 -1
  60. package/dist/versioned-components/es/radio.js +1 -1
  61. package/dist/versioned-components/es/scroll.js +1 -0
  62. package/dist/versioned-components/es/select.js +5 -0
  63. package/dist/versioned-components/es/solid-components2.js +1 -1
  64. package/dist/versioned-components/es/solid-element.js +1 -1
  65. package/dist/versioned-components/es/spinner.js +1 -1
  66. package/dist/versioned-components/es/switch.js +1 -1
  67. package/dist/versioned-components/es/tabbable.js +1 -1
  68. package/dist/versioned-components/es/tag.js +1 -1
  69. package/dist/versioned-components/es/teaser.js +1 -1
  70. package/dist/versioned-components/es/tooltip.js +2 -2
  71. package/dist/versioned-components/es/video.js +1 -1
  72. package/dist/versioned-package/_components/button-group/button-group.d.ts +1 -1
  73. package/dist/versioned-package/_components/button-group/button-group.js +11 -11
  74. package/dist/versioned-package/components/accordion/accordion.d.ts +1 -1
  75. package/dist/versioned-package/components/accordion/accordion.js +2 -2
  76. package/dist/versioned-package/components/accordion-group/accordion-group.d.ts +1 -1
  77. package/dist/versioned-package/components/accordion-group/accordion-group.js +3 -3
  78. package/dist/versioned-package/components/badge/badge.d.ts +1 -1
  79. package/dist/versioned-package/components/badge/badge.js +1 -1
  80. package/dist/versioned-package/components/brandshape/brandshape.d.ts +1 -1
  81. package/dist/versioned-package/components/brandshape/brandshape.js +1 -1
  82. package/dist/versioned-package/components/button/button.d.ts +1 -1
  83. package/dist/versioned-package/components/button/button.js +4 -4
  84. package/dist/versioned-package/components/carousel/carousel.d.ts +1 -1
  85. package/dist/versioned-package/components/carousel/carousel.js +6 -6
  86. package/dist/versioned-package/components/carousel-item/carousel-item.d.ts +1 -1
  87. package/dist/versioned-package/components/carousel-item/carousel-item.js +1 -1
  88. package/dist/versioned-package/components/checkbox/checkbox.d.ts +1 -1
  89. package/dist/versioned-package/components/checkbox/checkbox.js +4 -4
  90. package/dist/versioned-package/components/checkbox-group/checkbox-group.d.ts +1 -1
  91. package/dist/versioned-package/components/checkbox-group/checkbox-group.js +5 -5
  92. package/dist/versioned-package/components/divider/divider.d.ts +1 -1
  93. package/dist/versioned-package/components/divider/divider.js +2 -2
  94. package/dist/versioned-package/components/drawer/drawer.d.ts +1 -1
  95. package/dist/versioned-package/components/drawer/drawer.js +2 -2
  96. package/dist/versioned-package/components/dropdown/dropdown.d.ts +1 -1
  97. package/dist/versioned-package/components/dropdown/dropdown.js +8 -8
  98. package/dist/versioned-package/components/header/header.d.ts +1 -1
  99. package/dist/versioned-package/components/header/header.js +4 -4
  100. package/dist/versioned-package/components/icon/icon.d.ts +1 -1
  101. package/dist/versioned-package/components/icon/icon.js +1 -1
  102. package/dist/versioned-package/components/include/include.d.ts +1 -1
  103. package/dist/versioned-package/components/include/include.js +1 -1
  104. package/dist/versioned-package/components/input/input.d.ts +1 -1
  105. package/dist/versioned-package/components/input/input.js +4 -4
  106. package/dist/versioned-package/components/link/link.d.ts +1 -1
  107. package/dist/versioned-package/components/link/link.js +2 -2
  108. package/dist/versioned-package/components/navigation-item/navigation-item.d.ts +1 -1
  109. package/dist/versioned-package/components/navigation-item/navigation-item.js +3 -3
  110. package/dist/versioned-package/components/notification/notification.d.ts +1 -1
  111. package/dist/versioned-package/components/notification/notification.js +5 -5
  112. package/dist/versioned-package/components/option/option.d.ts +30 -0
  113. package/dist/versioned-package/components/option/option.js +145 -0
  114. package/dist/versioned-package/components/popup/popup.d.ts +4 -1
  115. package/dist/versioned-package/components/popup/popup.js +18 -1
  116. package/dist/versioned-package/components/radio/radio.d.ts +1 -1
  117. package/dist/versioned-package/components/radio/radio.js +2 -2
  118. package/dist/versioned-package/components/radio-group/radio-group.d.ts +2 -2
  119. package/dist/versioned-package/components/radio-group/radio-group.js +14 -14
  120. package/dist/versioned-package/components/select/select.d.ts +101 -0
  121. package/dist/versioned-package/components/select/select.js +700 -0
  122. package/dist/versioned-package/components/spinner/spinner.d.ts +1 -1
  123. package/dist/versioned-package/components/spinner/spinner.js +1 -1
  124. package/dist/versioned-package/components/switch/switch.d.ts +1 -1
  125. package/dist/versioned-package/components/switch/switch.js +2 -2
  126. package/dist/versioned-package/components/tag/tag.d.ts +2 -1
  127. package/dist/versioned-package/components/tag/tag.js +6 -4
  128. package/dist/versioned-package/components/teaser/teaser.js +1 -1
  129. package/dist/versioned-package/components/tooltip/tooltip.d.ts +1 -1
  130. package/dist/versioned-package/components/tooltip/tooltip.js +5 -5
  131. package/dist/versioned-package/components/video/video.d.ts +1 -1
  132. package/dist/versioned-package/components/video/video.js +2 -2
  133. package/dist/versioned-package/internal/form.js +2 -2
  134. package/dist/versioned-package/solid-components.d.ts +2 -0
  135. package/dist/versioned-package/solid-components.js +22 -18
  136. package/dist/versioned-package/styles/form-control.styles.js +1 -1
  137. package/dist/versioned-package/styles/tailwind.css.js +1 -1
  138. package/dist/versioned-package/translations/en.js +3 -4
  139. package/dist/versioned-package/utilities/localize.d.ts +1 -0
  140. package/dist/versioned-styles/solid-styles.css +1 -1
  141. package/dist/vscode.html-custom-data.json +346 -32
  142. package/dist/web-types.json +790 -82
  143. package/package.json +3 -3
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "http://json.schemastore.org/web-types",
3
3
  "name": "@solid-design-system/components",
4
- "version": "1.30.0",
4
+ "version": "1.32.0",
5
5
  "description-markup": "markdown",
6
6
  "framework-config": {
7
7
  "enable-when": {
@@ -3179,6 +3179,135 @@
3179
3179
  }
3180
3180
  ]
3181
3181
  },
3182
+ {
3183
+ "name": "sd-option",
3184
+ "description": "",
3185
+ "doc-url": "https://solid.union-investment.com/[storybook-link]/option",
3186
+ "js": {
3187
+ "properties": [
3188
+ {
3189
+ "name": "hasSlotController",
3190
+ "value": {}
3191
+ },
3192
+ {
3193
+ "name": "cachedTextLabel",
3194
+ "value": {
3195
+ "type": "string"
3196
+ }
3197
+ },
3198
+ {
3199
+ "name": "localize",
3200
+ "value": {}
3201
+ },
3202
+ {
3203
+ "name": "current",
3204
+ "value": {
3205
+ "type": "boolean"
3206
+ }
3207
+ },
3208
+ {
3209
+ "name": "selected",
3210
+ "value": {
3211
+ "type": "boolean"
3212
+ }
3213
+ },
3214
+ {
3215
+ "name": "hasHover",
3216
+ "value": {
3217
+ "type": "boolean"
3218
+ }
3219
+ },
3220
+ {
3221
+ "name": "size",
3222
+ "description": "The option's size is inherited automatically from the `size` attribute of the parent `sd-select`.",
3223
+ "value": {
3224
+ "type": "'lg' | 'md' | 'sm'"
3225
+ }
3226
+ },
3227
+ {
3228
+ "name": "checkbox",
3229
+ "description": "Prefixes a styled checkbox to the option. Enabled automatically in `sd-select` when attribute `checklist` is set to `true`.",
3230
+ "value": {
3231
+ "type": "boolean"
3232
+ }
3233
+ },
3234
+ {
3235
+ "name": "disabled",
3236
+ "description": "Draws the option in a disabled state, preventing selection.",
3237
+ "value": {
3238
+ "type": "boolean"
3239
+ }
3240
+ },
3241
+ {
3242
+ "name": "value",
3243
+ "description": "The option's value. When selected, the containing form control will receive this value. The value must be unique\nfrom other options in the same group. Values may not contain spaces, as spaces are used as delimiters when listing\nmultiple values.",
3244
+ "value": {
3245
+ "type": "string"
3246
+ }
3247
+ },
3248
+ {
3249
+ "name": "handleDefaultSlotChange",
3250
+ "value": {}
3251
+ },
3252
+ {
3253
+ "name": "handleMouseEnter",
3254
+ "value": {}
3255
+ },
3256
+ {
3257
+ "name": "handleMouseLeave",
3258
+ "value": {}
3259
+ },
3260
+ {
3261
+ "name": "handleDisabledChange",
3262
+ "value": {}
3263
+ },
3264
+ {
3265
+ "name": "handleSelectedChange",
3266
+ "value": {}
3267
+ },
3268
+ {
3269
+ "name": "handleValueChange",
3270
+ "value": {}
3271
+ },
3272
+ {
3273
+ "name": "getTextLabel",
3274
+ "description": "Returns a plain text label based on the option's content.",
3275
+ "value": {}
3276
+ }
3277
+ ],
3278
+ "events": []
3279
+ },
3280
+ "attributes": [
3281
+ {
3282
+ "name": "size",
3283
+ "description": "The option's size is inherited automatically from the `size` attribute of the parent `sd-select`.",
3284
+ "value": {
3285
+ "type": "'lg' | 'md' | 'sm'"
3286
+ }
3287
+ },
3288
+ {
3289
+ "name": "checkbox",
3290
+ "description": "Prefixes a styled checkbox to the option. Enabled automatically in `sd-select` when attribute `checklist` is set to `true`.",
3291
+ "value": {
3292
+ "type": "boolean"
3293
+ }
3294
+ },
3295
+ {
3296
+ "name": "disabled",
3297
+ "description": "Draws the option in a disabled state, preventing selection.",
3298
+ "value": {
3299
+ "type": "boolean"
3300
+ }
3301
+ },
3302
+ {
3303
+ "name": "value",
3304
+ "description": "The option's value. When selected, the containing form control will receive this value. The value must be unique\nfrom other options in the same group. Values may not contain spaces, as spaces are used as delimiters when listing\nmultiple values.",
3305
+ "value": {
3306
+ "type": "string"
3307
+ }
3308
+ }
3309
+ ]
3310
+ },
3182
3311
  {
3183
3312
  "name": "sd-popup",
3184
3313
  "description": "",
@@ -3191,6 +3320,12 @@
3191
3320
  "type": "ReturnType<typeof autoUpdate> | undefined"
3192
3321
  }
3193
3322
  },
3323
+ {
3324
+ "name": "mutationObserver",
3325
+ "value": {
3326
+ "type": "MutationObserver | null"
3327
+ }
3328
+ },
3194
3329
  {
3195
3330
  "name": "anchor",
3196
3331
  "description": "The element the popup will be anchored to. If the anchor lives outside of the popup, you can provide its `id` or a\nreference to it here. If the anchor lives inside the popup, use the `anchor` slot instead.",
@@ -3338,6 +3473,14 @@
3338
3473
  "type": "number"
3339
3474
  }
3340
3475
  },
3476
+ {
3477
+ "name": "setupMutationObserver",
3478
+ "value": {}
3479
+ },
3480
+ {
3481
+ "name": "handleCurrentPlacementChange",
3482
+ "value": {}
3483
+ },
3341
3484
  {
3342
3485
  "name": "handleAnchorChange",
3343
3486
  "value": {}
@@ -3360,6 +3503,10 @@
3360
3503
  {
3361
3504
  "name": "sd-reposition",
3362
3505
  "description": "Emitted when the popup is repositioned. This event can fire a lot, so avoid putting expensive operations in your listener or consider debouncing it."
3506
+ },
3507
+ {
3508
+ "name": "sd-current-placement",
3509
+ "description": "Emitted when the popup's placement changes automatically based on screen limitations."
3363
3510
  }
3364
3511
  ]
3365
3512
  },
@@ -3885,164 +4032,717 @@
3885
4032
  ]
3886
4033
  },
3887
4034
  {
3888
- "name": "sd-spinner",
4035
+ "name": "sd-select",
3889
4036
  "description": "",
3890
- "doc-url": "https://solid.union-investment.com/[storybook-link]/spinner",
4037
+ "doc-url": "https://solid.union-investment.com/[storybook-link]/select",
3891
4038
  "js": {
3892
4039
  "properties": [
3893
4040
  {
3894
- "name": "color",
3895
- "description": "The color color of the spinner.",
4041
+ "name": "dependencies",
3896
4042
  "value": {
3897
- "type": "'primary' | 'white' | 'currentColor'"
4043
+ "type": "object"
3898
4044
  }
3899
4045
  },
3900
4046
  {
3901
- "name": "localize",
4047
+ "name": "formControlController",
3902
4048
  "value": {}
3903
- }
3904
- ],
3905
- "events": []
3906
- },
3907
- "attributes": [
3908
- {
3909
- "name": "color",
3910
- "description": "The color color of the spinner.",
3911
- "value": {
3912
- "type": "'primary' | 'white' | 'currentColor'"
3913
- }
3914
- }
3915
- ]
3916
- },
3917
- {
3918
- "name": "sd-switch",
3919
- "description": "",
3920
- "doc-url": "https://solid.union-investment.com/[storybook-link]/switch",
3921
- "js": {
3922
- "properties": [
4049
+ },
3923
4050
  {
3924
- "name": "formControlController",
4051
+ "name": "hasSlotController",
3925
4052
  "value": {}
3926
4053
  },
3927
4054
  {
3928
- "name": "title",
3929
- "description": "The title of the switch adds a tooltip with title text.",
4055
+ "name": "localize",
4056
+ "value": {}
4057
+ },
4058
+ {
4059
+ "name": "typeToSelectString",
3930
4060
  "value": {
3931
4061
  "type": "string"
3932
4062
  }
3933
4063
  },
3934
4064
  {
3935
- "name": "name",
3936
- "description": "The name of the switch, submitted as a name/value pair with form data.",
4065
+ "name": "typeToSelectTimeout",
3937
4066
  "value": {
3938
- "type": "string"
4067
+ "type": "number"
3939
4068
  }
3940
4069
  },
3941
4070
  {
3942
- "name": "value",
3943
- "description": "The current value of the switch, submitted as a name/value pair with form data.",
4071
+ "name": "_optionsInDefaultSlot",
3944
4072
  "value": {
3945
- "type": "string"
4073
+ "type": "SdOption[]"
3946
4074
  }
3947
4075
  },
3948
4076
  {
3949
- "name": "disabled",
3950
- "description": "Disables the switch.",
4077
+ "name": "popup",
3951
4078
  "value": {
3952
- "type": "boolean"
4079
+ "type": "SdPopup"
3953
4080
  }
3954
4081
  },
3955
4082
  {
3956
- "name": "checked",
3957
- "description": "Draws the switch in a checked state.",
4083
+ "name": "hasFocus",
3958
4084
  "value": {
3959
4085
  "type": "boolean"
3960
4086
  }
3961
4087
  },
3962
4088
  {
3963
- "name": "defaultChecked",
3964
- "description": "The default value of the form control. Primarily used for resetting the form control.",
4089
+ "name": "hasHover",
3965
4090
  "value": {
3966
4091
  "type": "boolean"
3967
4092
  }
3968
4093
  },
3969
4094
  {
3970
- "name": "form",
3971
- "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.",
4095
+ "name": "displayLabel",
4096
+ "description": "When `multiple` is `true` and `useTags` is `false`, the displayLabel sets the text shown in the display input. We use the localized string \"Options Selected (#)\" by default.",
3972
4097
  "value": {
3973
4098
  "type": "string"
3974
4099
  }
3975
4100
  },
3976
4101
  {
3977
- "name": "required",
3978
- "description": "Makes the switch a required field.",
4102
+ "name": "currentOption",
3979
4103
  "value": {
3980
- "type": "boolean"
4104
+ "type": "SdOption"
3981
4105
  }
3982
4106
  },
3983
4107
  {
3984
- "name": "validity",
3985
- "description": "Gets the validity state object",
3986
- "value": {}
4108
+ "name": "selectedOptions",
4109
+ "value": {
4110
+ "type": "SdOption[]"
4111
+ }
3987
4112
  },
3988
4113
  {
3989
- "name": "handleClick",
3990
- "value": {}
4114
+ "name": "isValid",
4115
+ "description": "Indicates whether or not the user input is valid after the user has interacted with the component. These states are activated when the attribute \"data-user-valid\" or \"data-user-invalid\" are set on the component via the form controller.",
4116
+ "value": {
4117
+ "type": "boolean"
4118
+ }
3991
4119
  },
3992
4120
  {
3993
- "name": "handleBlur",
3994
- "value": {}
4121
+ "name": "isInvalid",
4122
+ "value": {
4123
+ "type": "boolean"
4124
+ }
3995
4125
  },
3996
4126
  {
3997
- "name": "handleInput",
3998
- "value": {}
4127
+ "name": "defaultValue",
4128
+ "description": "The default value of the form control. Primarily used for resetting the form control.",
4129
+ "value": {
4130
+ "type": "string | string[]"
4131
+ }
3999
4132
  },
4000
4133
  {
4001
- "name": "handleInvalid",
4002
- "value": {}
4134
+ "name": "open",
4135
+ "description": "Indicates whether or not the select 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 select's open state.",
4136
+ "value": {
4137
+ "type": "boolean"
4138
+ }
4003
4139
  },
4004
4140
  {
4005
- "name": "handleFocus",
4006
- "value": {}
4141
+ "name": "size",
4142
+ "description": "The select's size.",
4143
+ "value": {
4144
+ "type": "'lg' | 'md' | 'sm'"
4145
+ }
4007
4146
  },
4008
4147
  {
4009
- "name": "handleDisabledChange",
4010
- "value": {}
4148
+ "name": "label",
4149
+ "description": "The select's label. If you need to display HTML, use the `label` slot instead.",
4150
+ "value": {
4151
+ "type": "string"
4152
+ }
4011
4153
  },
4012
4154
  {
4013
- "name": "handleStateChange",
4155
+ "name": "placeholder",
4156
+ "description": "Placeholder text to show as a hint when the select is empty.",
4014
4157
  "value": {}
4015
4158
  },
4016
4159
  {
4017
- "name": "click",
4018
- "description": "Simulates a click on the switch.",
4019
- "value": {}
4160
+ "name": "helpText",
4161
+ "description": "The select's help text. If you need to display HTML, use the `help-text` slot instead.",
4162
+ "value": {
4163
+ "type": "string"
4164
+ }
4020
4165
  },
4021
4166
  {
4022
- "name": "focus",
4023
- "description": "Sets focus on the switch.",
4024
- "value": {}
4167
+ "name": "placement",
4168
+ "description": "The preferred placement of the select's menu. Note that the actual placement may vary as needed to keep the listbox\ninside of the viewport.",
4169
+ "value": {
4170
+ "type": "'top' | 'bottom'"
4171
+ }
4025
4172
  },
4026
4173
  {
4027
- "name": "blur",
4028
- "description": "Removes focus from the switch.",
4174
+ "name": "currentPlacement",
4175
+ "description": "The actual current placement of the select's menu sourced from `sd-popup`.",
4029
4176
  "value": {}
4030
4177
  },
4031
4178
  {
4032
- "name": "checkValidity",
4033
- "description": "Checks for validity but does not show a validation message. Returns true when valid and false when invalid.",
4034
- "value": {}
4179
+ "name": "clearable",
4180
+ "description": "Adds a clear button when the select is not empty.",
4181
+ "value": {
4182
+ "type": "boolean"
4183
+ }
4035
4184
  },
4036
4185
  {
4037
- "name": "getForm",
4038
- "description": "Gets the associated form, if one exists.",
4039
- "value": {}
4186
+ "name": "disabled",
4187
+ "description": "Disables the select control.",
4188
+ "value": {
4189
+ "type": "boolean"
4190
+ }
4040
4191
  },
4041
4192
  {
4042
- "name": "reportValidity",
4043
- "description": "Checks for validity and shows a validation message if the control is invalid.",
4044
- "value": {}
4045
- },
4193
+ "name": "multiple",
4194
+ "description": "Allows more than one option to be selected.",
4195
+ "value": {
4196
+ "type": "boolean"
4197
+ }
4198
+ },
4199
+ {
4200
+ "name": "useTags",
4201
+ "description": "Uses interactive `sd-tag` elements representing individual options in the display input when `multiple` is `true`.",
4202
+ "value": {
4203
+ "type": "boolean"
4204
+ }
4205
+ },
4206
+ {
4207
+ "name": "maxOptionsVisible",
4208
+ "description": "The maximum number of selected options to show when `multiple` and `useTags` are `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.",
4209
+ "value": {
4210
+ "type": "number"
4211
+ }
4212
+ },
4213
+ {
4214
+ "name": "form",
4215
+ "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.",
4216
+ "value": {
4217
+ "type": "string"
4218
+ }
4219
+ },
4220
+ {
4221
+ "name": "name",
4222
+ "description": "The name of the select, submitted as a name/value pair with form data.",
4223
+ "value": {
4224
+ "type": "string"
4225
+ }
4226
+ },
4227
+ {
4228
+ "name": "value",
4229
+ "description": "The current value of the select, submitted as a name/value pair with form data. When `multiple` is enabled, the\nvalue attribute will be a space-delimited list of values based on the options selected, and the value property will\nbe an array. **For this reason, values must not contain spaces.**",
4230
+ "value": {
4231
+ "type": "string | string[]"
4232
+ }
4233
+ },
4234
+ {
4235
+ "name": "required",
4236
+ "description": "The select's required attribute.",
4237
+ "value": {
4238
+ "type": "boolean"
4239
+ }
4240
+ },
4241
+ {
4242
+ "name": "hoist",
4243
+ "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.",
4244
+ "value": {
4245
+ "type": "boolean"
4246
+ }
4247
+ },
4248
+ {
4249
+ "name": "validity",
4250
+ "description": "Gets the validity state object",
4251
+ "value": {}
4252
+ },
4253
+ {
4254
+ "name": "validationMessage",
4255
+ "description": "Gets the validation message",
4256
+ "value": {}
4257
+ },
4258
+ {
4259
+ "name": "addOpenListeners",
4260
+ "value": {}
4261
+ },
4262
+ {
4263
+ "name": "removeOpenListeners",
4264
+ "value": {}
4265
+ },
4266
+ {
4267
+ "name": "handleFocus",
4268
+ "value": {}
4269
+ },
4270
+ {
4271
+ "name": "handleBlur",
4272
+ "value": {}
4273
+ },
4274
+ {
4275
+ "name": "handleDocumentFocusIn",
4276
+ "value": {}
4277
+ },
4278
+ {
4279
+ "name": "handleDocumentKeyDown",
4280
+ "value": {}
4281
+ },
4282
+ {
4283
+ "name": "handleDocumentMouseDown",
4284
+ "value": {}
4285
+ },
4286
+ {
4287
+ "name": "handleLabelClick",
4288
+ "value": {}
4289
+ },
4290
+ {
4291
+ "name": "handleComboboxMouseDown",
4292
+ "value": {}
4293
+ },
4294
+ {
4295
+ "name": "handleComboboxKeyDown",
4296
+ "value": {}
4297
+ },
4298
+ {
4299
+ "name": "handleClearClick",
4300
+ "value": {}
4301
+ },
4302
+ {
4303
+ "name": "handleClearMouseDown",
4304
+ "value": {}
4305
+ },
4306
+ {
4307
+ "name": "handleOptionClick",
4308
+ "value": {}
4309
+ },
4310
+ {
4311
+ "name": "handleDefaultSlotChange",
4312
+ "value": {}
4313
+ },
4314
+ {
4315
+ "name": "handleTagRemove",
4316
+ "value": {}
4317
+ },
4318
+ {
4319
+ "name": "getAllOptions",
4320
+ "value": {}
4321
+ },
4322
+ {
4323
+ "name": "getFirstOption",
4324
+ "value": {}
4325
+ },
4326
+ {
4327
+ "name": "setCurrentOption",
4328
+ "value": {}
4329
+ },
4330
+ {
4331
+ "name": "setSelectedOptions",
4332
+ "value": {}
4333
+ },
4334
+ {
4335
+ "name": "toggleOptionSelection",
4336
+ "value": {}
4337
+ },
4338
+ {
4339
+ "name": "selectionChanged",
4340
+ "value": {}
4341
+ },
4342
+ {
4343
+ "name": "tags",
4344
+ "value": {}
4345
+ },
4346
+ {
4347
+ "name": "handleInvalid",
4348
+ "value": {}
4349
+ },
4350
+ {
4351
+ "name": "handleMouseEnter",
4352
+ "value": {}
4353
+ },
4354
+ {
4355
+ "name": "handleMouseLeave",
4356
+ "value": {}
4357
+ },
4358
+ {
4359
+ "name": "handleCurrentPlacement",
4360
+ "description": "Receives incoming event detail from sd-popup and updates local state for conditional styling.",
4361
+ "value": {}
4362
+ },
4363
+ {
4364
+ "name": "handleUseTagsChange",
4365
+ "value": {}
4366
+ },
4367
+ {
4368
+ "name": "handleDisabledChange",
4369
+ "value": {}
4370
+ },
4371
+ {
4372
+ "name": "handleOpenChange",
4373
+ "value": {}
4374
+ },
4375
+ {
4376
+ "name": "applySizeToOptions",
4377
+ "value": {}
4378
+ },
4379
+ {
4380
+ "name": "handleValueChange",
4381
+ "value": {}
4382
+ },
4383
+ {
4384
+ "name": "show",
4385
+ "description": "Shows the listbox.",
4386
+ "value": {}
4387
+ },
4388
+ {
4389
+ "name": "hide",
4390
+ "description": "Hides the listbox.",
4391
+ "value": {}
4392
+ },
4393
+ {
4394
+ "name": "checkValidity",
4395
+ "description": "Checks for validity but does not show a validation message. Returns `true` when valid and `false` when invalid.",
4396
+ "value": {}
4397
+ },
4398
+ {
4399
+ "name": "getForm",
4400
+ "description": "Gets the associated form, if one exists.",
4401
+ "value": {}
4402
+ },
4403
+ {
4404
+ "name": "reportValidity",
4405
+ "description": "Checks for validity and shows the browser's validation message if the control is invalid.",
4406
+ "value": {}
4407
+ },
4408
+ {
4409
+ "name": "setCustomValidity",
4410
+ "description": "Sets a custom validation message. Pass an empty string to restore validity.",
4411
+ "value": {}
4412
+ },
4413
+ {
4414
+ "name": "focus",
4415
+ "description": "Sets focus on the control.",
4416
+ "value": {}
4417
+ },
4418
+ {
4419
+ "name": "blur",
4420
+ "description": "Removes focus from the control.",
4421
+ "value": {}
4422
+ }
4423
+ ],
4424
+ "events": [
4425
+ {
4426
+ "name": "sd-change",
4427
+ "description": "Emitted when the control's value changes."
4428
+ },
4429
+ {
4430
+ "name": "sd-clear",
4431
+ "description": "Emitted when the control's value is cleared."
4432
+ },
4433
+ {
4434
+ "name": "sd-input",
4435
+ "description": "Emitted when the control receives input."
4436
+ },
4437
+ {
4438
+ "name": "sd-focus",
4439
+ "description": "Emitted when the control gains focus."
4440
+ },
4441
+ {
4442
+ "name": "sd-blur",
4443
+ "description": "Emitted when the control loses focus."
4444
+ },
4445
+ {
4446
+ "name": "sd-show",
4447
+ "description": "Emitted when the select's menu opens."
4448
+ },
4449
+ {
4450
+ "name": "sd-after-show",
4451
+ "description": "Emitted after the select's menu opens and all animations are complete."
4452
+ },
4453
+ {
4454
+ "name": "sd-hide",
4455
+ "description": "Emitted when the select's menu closes."
4456
+ },
4457
+ {
4458
+ "name": "sd-after-hide",
4459
+ "description": "Emitted after the select's menu closes and all animations are complete."
4460
+ },
4461
+ {
4462
+ "name": "sd-invalid",
4463
+ "description": "Emitted when the form control has been checked for validity and its constraints aren't satisfied."
4464
+ }
4465
+ ]
4466
+ },
4467
+ "attributes": [
4468
+ {
4469
+ "name": "open",
4470
+ "description": "Indicates whether or not the select 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 select's open state.",
4471
+ "value": {
4472
+ "type": "boolean"
4473
+ }
4474
+ },
4475
+ {
4476
+ "name": "size",
4477
+ "description": "The select's size.",
4478
+ "value": {
4479
+ "type": "'lg' | 'md' | 'sm'"
4480
+ }
4481
+ },
4482
+ {
4483
+ "name": "label",
4484
+ "description": "The select's label. If you need to display HTML, use the `label` slot instead.",
4485
+ "value": {
4486
+ "type": "string"
4487
+ }
4488
+ },
4489
+ {
4490
+ "name": "placeholder",
4491
+ "description": "Placeholder text to show as a hint when the select is empty.",
4492
+ "value": {}
4493
+ },
4494
+ {
4495
+ "name": "help-text",
4496
+ "description": "The select's help text. If you need to display HTML, use the `help-text` slot instead.",
4497
+ "value": {
4498
+ "type": "string"
4499
+ }
4500
+ },
4501
+ {
4502
+ "name": "placement",
4503
+ "description": "The preferred placement of the select's menu. Note that the actual placement may vary as needed to keep the listbox\ninside of the viewport.",
4504
+ "value": {
4505
+ "type": "'top' | 'bottom'"
4506
+ }
4507
+ },
4508
+ {
4509
+ "name": "clearable",
4510
+ "description": "Adds a clear button when the select is not empty.",
4511
+ "value": {
4512
+ "type": "boolean"
4513
+ }
4514
+ },
4515
+ {
4516
+ "name": "disabled",
4517
+ "description": "Disables the select control.",
4518
+ "value": {
4519
+ "type": "boolean"
4520
+ }
4521
+ },
4522
+ {
4523
+ "name": "multiple",
4524
+ "description": "Allows more than one option to be selected.",
4525
+ "value": {
4526
+ "type": "boolean"
4527
+ }
4528
+ },
4529
+ {
4530
+ "name": "useTags",
4531
+ "description": "Uses interactive `sd-tag` elements representing individual options in the display input when `multiple` is `true`.",
4532
+ "value": {
4533
+ "type": "boolean"
4534
+ }
4535
+ },
4536
+ {
4537
+ "name": "max-options-visible",
4538
+ "description": "The maximum number of selected options to show when `multiple` and `useTags` are `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.",
4539
+ "value": {
4540
+ "type": "number"
4541
+ }
4542
+ },
4543
+ {
4544
+ "name": "form",
4545
+ "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.",
4546
+ "value": {
4547
+ "type": "string"
4548
+ }
4549
+ },
4550
+ {
4551
+ "name": "name",
4552
+ "description": "The name of the select, submitted as a name/value pair with form data.",
4553
+ "value": {
4554
+ "type": "string"
4555
+ }
4556
+ },
4557
+ {
4558
+ "name": "value",
4559
+ "description": "The current value of the select, submitted as a name/value pair with form data. When `multiple` is enabled, the\nvalue attribute will be a space-delimited list of values based on the options selected, and the value property will\nbe an array. **For this reason, values must not contain spaces.**",
4560
+ "value": {
4561
+ "type": "string | string[]"
4562
+ }
4563
+ },
4564
+ {
4565
+ "name": "required",
4566
+ "description": "The select's required attribute.",
4567
+ "value": {
4568
+ "type": "boolean"
4569
+ }
4570
+ },
4571
+ {
4572
+ "name": "hoist",
4573
+ "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.",
4574
+ "value": {
4575
+ "type": "boolean"
4576
+ }
4577
+ },
4578
+ {
4579
+ "name": "getTag",
4580
+ "description": "A function that customizes the tags to be rendered when multiple=true. The first argument is the option, the second\nis the current tag's index. The function should return either a Lit TemplateResult or a string containing trusted HTML of the symbol to render at\nthe specified value.",
4581
+ "value": {
4582
+ "type": "(option: SdOption, index: number) => TemplateResult | string | HTMLElement"
4583
+ }
4584
+ }
4585
+ ]
4586
+ },
4587
+ {
4588
+ "name": "sd-spinner",
4589
+ "description": "",
4590
+ "doc-url": "https://solid.union-investment.com/[storybook-link]/spinner",
4591
+ "js": {
4592
+ "properties": [
4593
+ {
4594
+ "name": "color",
4595
+ "description": "The color color of the spinner.",
4596
+ "value": {
4597
+ "type": "'primary' | 'white' | 'currentColor'"
4598
+ }
4599
+ },
4600
+ {
4601
+ "name": "localize",
4602
+ "value": {}
4603
+ }
4604
+ ],
4605
+ "events": []
4606
+ },
4607
+ "attributes": [
4608
+ {
4609
+ "name": "color",
4610
+ "description": "The color color of the spinner.",
4611
+ "value": {
4612
+ "type": "'primary' | 'white' | 'currentColor'"
4613
+ }
4614
+ }
4615
+ ]
4616
+ },
4617
+ {
4618
+ "name": "sd-switch",
4619
+ "description": "",
4620
+ "doc-url": "https://solid.union-investment.com/[storybook-link]/switch",
4621
+ "js": {
4622
+ "properties": [
4623
+ {
4624
+ "name": "formControlController",
4625
+ "value": {}
4626
+ },
4627
+ {
4628
+ "name": "title",
4629
+ "description": "The title of the switch adds a tooltip with title text.",
4630
+ "value": {
4631
+ "type": "string"
4632
+ }
4633
+ },
4634
+ {
4635
+ "name": "name",
4636
+ "description": "The name of the switch, submitted as a name/value pair with form data.",
4637
+ "value": {
4638
+ "type": "string"
4639
+ }
4640
+ },
4641
+ {
4642
+ "name": "value",
4643
+ "description": "The current value of the switch, submitted as a name/value pair with form data.",
4644
+ "value": {
4645
+ "type": "string"
4646
+ }
4647
+ },
4648
+ {
4649
+ "name": "disabled",
4650
+ "description": "Disables the switch.",
4651
+ "value": {
4652
+ "type": "boolean"
4653
+ }
4654
+ },
4655
+ {
4656
+ "name": "checked",
4657
+ "description": "Draws the switch in a checked state.",
4658
+ "value": {
4659
+ "type": "boolean"
4660
+ }
4661
+ },
4662
+ {
4663
+ "name": "defaultChecked",
4664
+ "description": "The default value of the form control. Primarily used for resetting the form control.",
4665
+ "value": {
4666
+ "type": "boolean"
4667
+ }
4668
+ },
4669
+ {
4670
+ "name": "form",
4671
+ "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.",
4672
+ "value": {
4673
+ "type": "string"
4674
+ }
4675
+ },
4676
+ {
4677
+ "name": "required",
4678
+ "description": "Makes the switch a required field.",
4679
+ "value": {
4680
+ "type": "boolean"
4681
+ }
4682
+ },
4683
+ {
4684
+ "name": "validity",
4685
+ "description": "Gets the validity state object",
4686
+ "value": {}
4687
+ },
4688
+ {
4689
+ "name": "handleClick",
4690
+ "value": {}
4691
+ },
4692
+ {
4693
+ "name": "handleBlur",
4694
+ "value": {}
4695
+ },
4696
+ {
4697
+ "name": "handleInput",
4698
+ "value": {}
4699
+ },
4700
+ {
4701
+ "name": "handleInvalid",
4702
+ "value": {}
4703
+ },
4704
+ {
4705
+ "name": "handleFocus",
4706
+ "value": {}
4707
+ },
4708
+ {
4709
+ "name": "handleDisabledChange",
4710
+ "value": {}
4711
+ },
4712
+ {
4713
+ "name": "handleStateChange",
4714
+ "value": {}
4715
+ },
4716
+ {
4717
+ "name": "click",
4718
+ "description": "Simulates a click on the switch.",
4719
+ "value": {}
4720
+ },
4721
+ {
4722
+ "name": "focus",
4723
+ "description": "Sets focus on the switch.",
4724
+ "value": {}
4725
+ },
4726
+ {
4727
+ "name": "blur",
4728
+ "description": "Removes focus from the switch.",
4729
+ "value": {}
4730
+ },
4731
+ {
4732
+ "name": "checkValidity",
4733
+ "description": "Checks for validity but does not show a validation message. Returns true when valid and false when invalid.",
4734
+ "value": {}
4735
+ },
4736
+ {
4737
+ "name": "getForm",
4738
+ "description": "Gets the associated form, if one exists.",
4739
+ "value": {}
4740
+ },
4741
+ {
4742
+ "name": "reportValidity",
4743
+ "description": "Checks for validity and shows a validation message if the control is invalid.",
4744
+ "value": {}
4745
+ },
4046
4746
  {
4047
4747
  "name": "setCustomValidity",
4048
4748
  "description": "Sets a custom validation message. The value provided will be shown to the user when the form is submitted. To clear\nthe custom validation message, call this method with an empty string.",
@@ -4183,6 +4883,10 @@
4183
4883
  "name": "handleFocus",
4184
4884
  "value": {}
4185
4885
  },
4886
+ {
4887
+ "name": "handleRemoveClick",
4888
+ "value": {}
4889
+ },
4186
4890
  {
4187
4891
  "name": "isLink",
4188
4892
  "value": {}
@@ -4211,6 +4915,10 @@
4211
4915
  {
4212
4916
  "name": "sd-focus",
4213
4917
  "description": "Emitted when the tag gains focus."
4918
+ },
4919
+ {
4920
+ "name": "sd-remove",
4921
+ "description": "Emitted when the remove button is activated."
4214
4922
  }
4215
4923
  ]
4216
4924
  },