@db-ux/wc-core-components 2.0.9 → 2.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 (95) hide show
  1. package/dist/cjs/db-accordion-item.cjs.entry.js +2 -2
  2. package/dist/cjs/db-accordion.cjs.entry.js +1 -1
  3. package/dist/cjs/db-custom-select-dropdown.db-custom-select-list.db-custom-select-list-item.db-input.db-tag.entry.cjs.js.map +1 -0
  4. package/dist/cjs/{db-custom-select-dropdown_6.cjs.entry.js → db-custom-select-dropdown_5.cjs.entry.js} +4 -88
  5. package/dist/cjs/db-custom-select-dropdown_5.cjs.entry.js.map +1 -0
  6. package/dist/cjs/db-custom-select.cjs.entry.js +71 -31
  7. package/dist/cjs/db-custom-select.cjs.entry.js.map +1 -1
  8. package/dist/cjs/db-custom-select.entry.cjs.js.map +1 -1
  9. package/dist/cjs/db-navigation-item.cjs.entry.js +1 -1
  10. package/dist/cjs/db-navigation.cjs.entry.js +2 -2
  11. package/dist/cjs/db-popover.cjs.entry.js +2 -2
  12. package/dist/cjs/db-textarea.cjs.entry.js +2 -2
  13. package/dist/cjs/db-tooltip.cjs.entry.js +98 -0
  14. package/dist/cjs/db-tooltip.cjs.entry.js.map +1 -0
  15. package/dist/cjs/db-tooltip.entry.cjs.js.map +1 -0
  16. package/dist/cjs/db-ux.cjs.js +1 -1
  17. package/dist/cjs/loader.cjs.js +1 -1
  18. package/dist/collection/collection-manifest.json +1 -1
  19. package/dist/collection/components/accordion/accordion.js +1 -1
  20. package/dist/collection/components/accordion-item/accordion-item.js +2 -2
  21. package/dist/collection/components/custom-select/custom-select.js +191 -32
  22. package/dist/collection/components/custom-select/custom-select.js.map +1 -1
  23. package/dist/collection/components/custom-select/model.js.map +1 -1
  24. package/dist/collection/components/icon/icon.js +1 -1
  25. package/dist/collection/components/icon/model.js +0 -1
  26. package/dist/collection/components/icon/model.js.map +1 -1
  27. package/dist/collection/components/navigation/navigation.js +2 -2
  28. package/dist/collection/components/navigation-item/navigation-item.js +1 -1
  29. package/dist/collection/components/popover/popover.js +2 -2
  30. package/dist/collection/components/select/model.js.map +1 -1
  31. package/dist/collection/components/tag/tag.js +2 -2
  32. package/dist/collection/components/tag/tag.js.map +1 -1
  33. package/dist/collection/components/textarea/textarea.js +2 -2
  34. package/dist/collection/components/tooltip/model.js +1 -1
  35. package/dist/collection/components/tooltip/model.js.map +1 -1
  36. package/dist/collection/components/tooltip/tooltip.js +33 -3
  37. package/dist/collection/components/tooltip/tooltip.js.map +1 -1
  38. package/dist/custom-elements.json +1298 -1135
  39. package/dist/db-ux/db-custom-select-dropdown.db-custom-select-list.db-custom-select-list-item.db-input.db-tag.entry.esm.js.map +1 -0
  40. package/dist/db-ux/db-custom-select.entry.esm.js.map +1 -1
  41. package/dist/db-ux/db-tooltip.entry.esm.js.map +1 -0
  42. package/dist/db-ux/db-ux.esm.js +1 -1
  43. package/dist/db-ux/{p-d7ccd983.entry.js → p-0e4c3fb1.entry.js} +2 -2
  44. package/dist/db-ux/{p-94471c06.entry.js → p-2fd37535.entry.js} +2 -2
  45. package/dist/db-ux/{p-4400f077.entry.js → p-40713825.entry.js} +2 -2
  46. package/dist/db-ux/{p-9d64dc74.entry.js → p-5c2eddb6.entry.js} +2 -2
  47. package/dist/db-ux/p-6610dd91.entry.js +2 -0
  48. package/dist/db-ux/p-6610dd91.entry.js.map +1 -0
  49. package/dist/db-ux/p-7d6c27a1.entry.js +2 -0
  50. package/dist/db-ux/p-7d6c27a1.entry.js.map +1 -0
  51. package/dist/db-ux/{p-49cc4a11.entry.js → p-7de004e3.entry.js} +2 -2
  52. package/dist/db-ux/p-a49adbd6.entry.js +2 -0
  53. package/dist/db-ux/p-a49adbd6.entry.js.map +1 -0
  54. package/dist/db-ux/p-e3117b8a.entry.js +2 -0
  55. package/dist/esm/db-accordion-item.entry.js +2 -2
  56. package/dist/esm/db-accordion.entry.js +1 -1
  57. package/dist/esm/db-custom-select-dropdown.db-custom-select-list.db-custom-select-list-item.db-input.db-tag.entry.js.map +1 -0
  58. package/dist/esm/{db-custom-select-dropdown_6.entry.js → db-custom-select-dropdown_5.entry.js} +7 -90
  59. package/dist/esm/db-custom-select-dropdown_5.entry.js.map +1 -0
  60. package/dist/esm/db-custom-select.entry.js +71 -31
  61. package/dist/esm/db-custom-select.entry.js.map +1 -1
  62. package/dist/esm/db-navigation-item.entry.js +1 -1
  63. package/dist/esm/db-navigation.entry.js +2 -2
  64. package/dist/esm/db-popover.entry.js +2 -2
  65. package/dist/esm/db-textarea.entry.js +2 -2
  66. package/dist/esm/db-tooltip.entry.js +96 -0
  67. package/dist/esm/db-tooltip.entry.js.map +1 -0
  68. package/dist/esm/db-ux.js +1 -1
  69. package/dist/esm/loader.js +1 -1
  70. package/dist/types/components/custom-select/custom-select.d.ts +8 -0
  71. package/dist/types/components/custom-select/model.d.ts +30 -4
  72. package/dist/types/components/icon/model.d.ts +1 -3
  73. package/dist/types/components/select/model.d.ts +2 -1
  74. package/dist/types/components/tooltip/model.d.ts +11 -0
  75. package/dist/types/components/tooltip/tooltip.d.ts +1 -0
  76. package/dist/types/components.d.ts +12 -0
  77. package/dist/vscode.html-custom-data.json +75 -57
  78. package/dist/web-types.json +160 -103
  79. package/package.json +3 -3
  80. package/dist/cjs/db-custom-select-dropdown.db-custom-select-list.db-custom-select-list-item.db-input.db-tag.db-tooltip.entry.cjs.js.map +0 -1
  81. package/dist/cjs/db-custom-select-dropdown_6.cjs.entry.js.map +0 -1
  82. package/dist/db-ux/db-custom-select-dropdown.db-custom-select-list.db-custom-select-list-item.db-input.db-tag.db-tooltip.entry.esm.js.map +0 -1
  83. package/dist/db-ux/p-02f8816d.entry.js +0 -2
  84. package/dist/db-ux/p-02f8816d.entry.js.map +0 -1
  85. package/dist/db-ux/p-d9ff0c75.entry.js +0 -2
  86. package/dist/db-ux/p-d9ff0c75.entry.js.map +0 -1
  87. package/dist/db-ux/p-f2ef5e71.entry.js +0 -2
  88. package/dist/esm/db-custom-select-dropdown.db-custom-select-list.db-custom-select-list-item.db-input.db-tag.db-tooltip.entry.js.map +0 -1
  89. package/dist/esm/db-custom-select-dropdown_6.entry.js.map +0 -1
  90. /package/dist/db-ux/{p-d7ccd983.entry.js.map → p-0e4c3fb1.entry.js.map} +0 -0
  91. /package/dist/db-ux/{p-94471c06.entry.js.map → p-2fd37535.entry.js.map} +0 -0
  92. /package/dist/db-ux/{p-4400f077.entry.js.map → p-40713825.entry.js.map} +0 -0
  93. /package/dist/db-ux/{p-9d64dc74.entry.js.map → p-5c2eddb6.entry.js.map} +0 -0
  94. /package/dist/db-ux/{p-49cc4a11.entry.js.map → p-7de004e3.entry.js.map} +0 -0
  95. /package/dist/db-ux/{p-f2ef5e71.entry.js.map → p-e3117b8a.entry.js.map} +0 -0
@@ -679,14 +679,7 @@
679
679
  { "name": "64" }
680
680
  ]
681
681
  },
682
- {
683
- "name": "variant",
684
- "values": [
685
- { "name": "default" },
686
- { "name": "inverted" },
687
- { "name": "filled" }
688
- ]
689
- },
682
+ { "name": "variant", "values": [] },
690
683
  {
691
684
  "name": "text",
692
685
  "description": "Alternative for default slot/children.",
@@ -1352,11 +1345,7 @@
1352
1345
  { "name": "webauthn" }
1353
1346
  ]
1354
1347
  },
1355
- {
1356
- "name": "multiple",
1357
- "description": "Enable multiple select -> use DBCustomSelect/db-custom-select for a better look",
1358
- "values": []
1359
- },
1348
+ { "name": "multiple", "description": "", "values": [] },
1360
1349
  {
1361
1350
  "name": "aria-described-by",
1362
1351
  "description": "Overwrites auto handling for aria-describedby.",
@@ -1539,6 +1528,58 @@
1539
1528
  ],
1540
1529
  "references": []
1541
1530
  },
1531
+ {
1532
+ "name": "db-tooltip",
1533
+ "description": "\n---\n\n\n### **Slots:**\n - **children** - default slot",
1534
+ "attributes": [
1535
+ {
1536
+ "name": "id",
1537
+ "description": "[ID](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/id) of the component, generated automatically for some components as a fallback if unset.",
1538
+ "values": []
1539
+ },
1540
+ {
1541
+ "name": "variant",
1542
+ "description": "Change the behavior of the tooltip:\n- description: Adds `aria-describedby` to parent\n- label: Adds `aria-labelledby` to parent",
1543
+ "values": [{ "name": "description" }, { "name": "label" }]
1544
+ },
1545
+ {
1546
+ "name": "classname",
1547
+ "description": "React specific for adding className to the component.",
1548
+ "values": []
1549
+ },
1550
+ {
1551
+ "name": "emphasis",
1552
+ "description": "The emphasis attribute divides in between a weak or strong importance.",
1553
+ "values": [{ "name": "weak" }, { "name": "strong" }]
1554
+ },
1555
+ {
1556
+ "name": "animation",
1557
+ "description": "Disable animation",
1558
+ "values": []
1559
+ },
1560
+ {
1561
+ "name": "delay",
1562
+ "description": "Add a delay before showing the tooltip",
1563
+ "values": [{ "name": "none" }, { "name": "slow" }, { "name": "fast" }]
1564
+ },
1565
+ {
1566
+ "name": "width",
1567
+ "description": "Use fixed with for default max-width",
1568
+ "values": [{ "name": "auto" }, { "name": "fixed" }]
1569
+ },
1570
+ {
1571
+ "name": "show-arrow",
1572
+ "description": "Show/Hides arrow",
1573
+ "values": []
1574
+ },
1575
+ {
1576
+ "name": "placement",
1577
+ "description": "The `placement` attributes values change the position to absolute and adds a transform based on the placement.",
1578
+ "values": [{ "name": "undefined" }, { "name": "undefined" }]
1579
+ }
1580
+ ],
1581
+ "references": []
1582
+ },
1542
1583
  {
1543
1584
  "name": "db-tag",
1544
1585
  "description": "\n---\n\n\n### **Events:**\n - **remove**\n\n### **Slots:**\n - **children** - default slot\n- **content** - Default slot which is used to pass in additional content.",
@@ -2068,49 +2109,6 @@
2068
2109
  ],
2069
2110
  "references": []
2070
2111
  },
2071
- {
2072
- "name": "db-tooltip",
2073
- "description": "\n---\n\n\n### **Slots:**\n - **children** - default slot",
2074
- "attributes": [
2075
- {
2076
- "name": "id",
2077
- "description": "[ID](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/id) of the component, generated automatically for some components as a fallback if unset.",
2078
- "values": []
2079
- },
2080
- {
2081
- "name": "classname",
2082
- "description": "React specific for adding className to the component.",
2083
- "values": []
2084
- },
2085
- {
2086
- "name": "emphasis",
2087
- "description": "The emphasis attribute divides in between a weak or strong importance.",
2088
- "values": [{ "name": "weak" }, { "name": "strong" }]
2089
- },
2090
- {
2091
- "name": "animation",
2092
- "description": "Disable animation",
2093
- "values": []
2094
- },
2095
- {
2096
- "name": "delay",
2097
- "description": "Add a delay before showing the tooltip",
2098
- "values": [{ "name": "none" }, { "name": "slow" }, { "name": "fast" }]
2099
- },
2100
- {
2101
- "name": "width",
2102
- "description": "Use fixed with for default max-width",
2103
- "values": [{ "name": "auto" }, { "name": "fixed" }]
2104
- },
2105
- { "name": "show-arrow", "values": [] },
2106
- {
2107
- "name": "placement",
2108
- "description": "The `placement` attributes values change the position to absolute and adds a transform based on the placement.",
2109
- "values": [{ "name": "undefined" }, { "name": "undefined" }]
2110
- }
2111
- ],
2112
- "references": []
2113
- },
2114
2112
  {
2115
2113
  "name": "db-tab-list",
2116
2114
  "description": "\n---\n\n\n### **Slots:**\n - **children** - default slot",
@@ -2404,7 +2402,7 @@
2404
2402
  },
2405
2403
  {
2406
2404
  "name": "db-custom-select",
2407
- "description": "\n---\n\n\n### **Events:**\n - **amountChange**\n- **dropdownToggle**\n- **optionSelected**\n\n### **Slots:**\n - **children** - default slot",
2405
+ "description": "\n---\n\n\n### **Events:**\n - **amountChange**\n- **dropdownToggle**\n- **optionSelected**\n- **search**\n\n### **Slots:**\n - **children** - default slot",
2408
2406
  "attributes": [
2409
2407
  {
2410
2408
  "name": "id",
@@ -2470,6 +2468,21 @@
2470
2468
  "description": "You should pass in the options as an array.",
2471
2469
  "values": [{ "name": "CustomSelectOptionType[]" }]
2472
2470
  },
2471
+ {
2472
+ "name": "search-value",
2473
+ "description": "Optional: Prefill the value of the search input",
2474
+ "values": []
2475
+ },
2476
+ {
2477
+ "name": "selected-labels",
2478
+ "description": "Optional: If you want to show a custom label for the selected values.\nYou need to define the empty state as well based on selected options.",
2479
+ "values": []
2480
+ },
2481
+ {
2482
+ "name": "transform-selected-labels",
2483
+ "description": "Optional: If you want to show a custom label based on the selected options.",
2484
+ "values": [{ "name": "functiontype" }]
2485
+ },
2473
2486
  {
2474
2487
  "name": "selected-type",
2475
2488
  "description": "Change the selected type for values shown in multi select",
@@ -2504,6 +2517,11 @@
2504
2517
  "description": "Optional: if you use selectedType=tag and options, you need to set the removeTagsTexts for screen reader users",
2505
2518
  "values": [{ "name": "string[]" }]
2506
2519
  },
2520
+ {
2521
+ "name": "search-filter",
2522
+ "description": "Optional: Change the filter function for the search input",
2523
+ "values": [{ "name": "functiontype" }]
2524
+ },
2507
2525
  {
2508
2526
  "name": "classname",
2509
2527
  "description": "React specific for adding className to the component.",
@@ -1324,10 +1324,7 @@
1324
1324
  "type": "\"16\" | \"20\" | \"24\" | \"32\" | \"48\" | \"64\""
1325
1325
  }
1326
1326
  },
1327
- {
1328
- "name": "variant",
1329
- "value": { "type": "\"default\" | \"inverted\" | \"filled\"" }
1330
- },
1327
+ { "name": "variant", "value": { "type": "string" } },
1331
1328
  {
1332
1329
  "name": "text",
1333
1330
  "description": "Alternative for default slot/children.",
@@ -1357,10 +1354,7 @@
1357
1354
  "name": "weight",
1358
1355
  "type": "\"16\" | \"20\" | \"24\" | \"32\" | \"48\" | \"64\""
1359
1356
  },
1360
- {
1361
- "name": "variant",
1362
- "type": "\"default\" | \"inverted\" | \"filled\""
1363
- },
1357
+ { "name": "variant", "type": "string" },
1364
1358
  {
1365
1359
  "name": "text",
1366
1360
  "description": "Alternative for default slot/children.",
@@ -2400,7 +2394,7 @@
2400
2394
  },
2401
2395
  {
2402
2396
  "name": "multiple",
2403
- "description": "Enable multiple select -> use DBCustomSelect/db-custom-select for a better look",
2397
+ "description": "",
2404
2398
  "value": { "type": "boolean" }
2405
2399
  },
2406
2400
  {
@@ -2539,11 +2533,7 @@
2539
2533
  "description": "See https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete",
2540
2534
  "type": "string | \"off\" | \"on\" | \"name\" | \"honorific-prefix\" | \"given-name\" | \"additional-name\" | \"family-name\" | \"honorific-suffix\" | \"nickname\" | \"email\" | \"username\" | \"new-password\" | \"current-password\" | \"one-time-code\" | \"organization-title\" | \"organization\" | \"street-address\" | \"shipping\" | \"billing\" | \"address-line1\" | \"address-line2\" | \"address-line3\" | \"address-level4\" | \"address-level3\" | \"address-level2\" | \"address-level1\" | \"country\" | \"country-name\" | \"postal-code\" | \"cc-name\" | \"cc-given-name\" | \"cc-additional-name\" | \"cc-family-name\" | \"cc-number\" | \"cc-exp\" | \"cc-exp-month\" | \"cc-exp-year\" | \"cc-csc\" | \"cc-type\" | \"transaction-currency\" | \"transaction-amount\" | \"language\" | \"bday\" | \"bday-day\" | \"bday-month\" | \"bday-year\" | \"sex\" | \"tel\" | \"tel-country-code\" | \"tel-national\" | \"tel-area-code\" | \"tel-local\" | \"tel-extension\" | \"impp\" | \"url\" | \"photo\" | \"webauthn\""
2541
2535
  },
2542
- {
2543
- "name": "multiple",
2544
- "description": "Enable multiple select -> use DBCustomSelect/db-custom-select for a better look",
2545
- "type": "boolean"
2546
- },
2536
+ { "name": "multiple", "description": "", "type": "boolean" },
2547
2537
  {
2548
2538
  "name": "ariaDescribedBy",
2549
2539
  "description": "Overwrites auto handling for aria-describedby.",
@@ -2954,6 +2944,112 @@
2954
2944
  ]
2955
2945
  }
2956
2946
  },
2947
+ {
2948
+ "name": "db-tooltip",
2949
+ "description": "\n---\n\n\n### **Slots:**\n - **children** - default slot",
2950
+ "doc-url": "https://design-system.deutschebahn.com/core-web/review/main/components/tooltip/properties",
2951
+ "attributes": [
2952
+ {
2953
+ "name": "id",
2954
+ "description": "[ID](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/id) of the component, generated automatically for some components as a fallback if unset.",
2955
+ "value": { "type": "string" }
2956
+ },
2957
+ {
2958
+ "name": "variant",
2959
+ "description": "Change the behavior of the tooltip:\n- description: Adds `aria-describedby` to parent\n- label: Adds `aria-labelledby` to parent",
2960
+ "value": { "type": "\"description\" | \"label\"" }
2961
+ },
2962
+ {
2963
+ "name": "classname",
2964
+ "description": "React specific for adding className to the component.",
2965
+ "value": { "type": "string" }
2966
+ },
2967
+ {
2968
+ "name": "emphasis",
2969
+ "description": "The emphasis attribute divides in between a weak or strong importance.",
2970
+ "value": { "type": "\"weak\" | \"strong\"" }
2971
+ },
2972
+ {
2973
+ "name": "animation",
2974
+ "description": "Disable animation",
2975
+ "value": { "type": "boolean | string" }
2976
+ },
2977
+ {
2978
+ "name": "delay",
2979
+ "description": "Add a delay before showing the tooltip",
2980
+ "value": { "type": "\"none\" | \"slow\" | \"fast\"" }
2981
+ },
2982
+ {
2983
+ "name": "width",
2984
+ "description": "Use fixed with for default max-width",
2985
+ "value": { "type": "\"auto\" | \"fixed\"" }
2986
+ },
2987
+ {
2988
+ "name": "show-arrow",
2989
+ "description": "Show/Hides arrow",
2990
+ "value": { "type": "boolean | string" }
2991
+ },
2992
+ {
2993
+ "name": "placement",
2994
+ "description": "The `placement` attributes values change the position to absolute and adds a transform based on the placement.",
2995
+ "value": { "type": "\"undefined\" | \"undefined\"" }
2996
+ }
2997
+ ],
2998
+ "slots": [{ "name": "children", "description": "default slot" }],
2999
+ "events": [],
3000
+ "js": {
3001
+ "properties": [
3002
+ {
3003
+ "name": "id",
3004
+ "description": "[ID](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/id) of the component, generated automatically for some components as a fallback if unset.",
3005
+ "type": "string"
3006
+ },
3007
+ {
3008
+ "name": "variant",
3009
+ "description": "Change the behavior of the tooltip:\n- description: Adds `aria-describedby` to parent\n- label: Adds `aria-labelledby` to parent",
3010
+ "type": "\"description\" | \"label\""
3011
+ },
3012
+ {
3013
+ "name": "className",
3014
+ "description": "React specific for adding className to the component.",
3015
+ "type": "string"
3016
+ },
3017
+ {
3018
+ "name": "emphasis",
3019
+ "description": "The emphasis attribute divides in between a weak or strong importance.",
3020
+ "type": "\"weak\" | \"strong\""
3021
+ },
3022
+ {
3023
+ "name": "animation",
3024
+ "description": "Disable animation",
3025
+ "type": "boolean | string"
3026
+ },
3027
+ {
3028
+ "name": "delay",
3029
+ "description": "Add a delay before showing the tooltip",
3030
+ "type": "\"none\" | \"slow\" | \"fast\""
3031
+ },
3032
+ {
3033
+ "name": "width",
3034
+ "description": "Use fixed with for default max-width",
3035
+ "type": "\"auto\" | \"fixed\""
3036
+ },
3037
+ {
3038
+ "name": "showArrow",
3039
+ "description": "Show/Hides arrow",
3040
+ "type": "boolean | string"
3041
+ },
3042
+ {
3043
+ "name": "placement",
3044
+ "description": "The `placement` attributes values change the position to absolute and adds a transform based on the placement.",
3045
+ "type": "\"undefined\" | \"undefined\""
3046
+ },
3047
+ { "name": "_id" },
3048
+ { "name": "initialized", "type": "boolean" }
3049
+ ],
3050
+ "events": []
3051
+ }
3052
+ },
2957
3053
  {
2958
3054
  "name": "db-tag",
2959
3055
  "description": "\n---\n\n\n### **Events:**\n - **remove**\n\n### **Slots:**\n - **children** - default slot\n- **content** - Default slot which is used to pass in additional content.",
@@ -3982,94 +4078,6 @@
3982
4078
  "events": []
3983
4079
  }
3984
4080
  },
3985
- {
3986
- "name": "db-tooltip",
3987
- "description": "\n---\n\n\n### **Slots:**\n - **children** - default slot",
3988
- "doc-url": "https://design-system.deutschebahn.com/core-web/review/main/components/tooltip/properties",
3989
- "attributes": [
3990
- {
3991
- "name": "id",
3992
- "description": "[ID](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/id) of the component, generated automatically for some components as a fallback if unset.",
3993
- "value": { "type": "string" }
3994
- },
3995
- {
3996
- "name": "classname",
3997
- "description": "React specific for adding className to the component.",
3998
- "value": { "type": "string" }
3999
- },
4000
- {
4001
- "name": "emphasis",
4002
- "description": "The emphasis attribute divides in between a weak or strong importance.",
4003
- "value": { "type": "\"weak\" | \"strong\"" }
4004
- },
4005
- {
4006
- "name": "animation",
4007
- "description": "Disable animation",
4008
- "value": { "type": "boolean | string" }
4009
- },
4010
- {
4011
- "name": "delay",
4012
- "description": "Add a delay before showing the tooltip",
4013
- "value": { "type": "\"none\" | \"slow\" | \"fast\"" }
4014
- },
4015
- {
4016
- "name": "width",
4017
- "description": "Use fixed with for default max-width",
4018
- "value": { "type": "\"auto\" | \"fixed\"" }
4019
- },
4020
- { "name": "show-arrow", "value": { "type": "boolean | string" } },
4021
- {
4022
- "name": "placement",
4023
- "description": "The `placement` attributes values change the position to absolute and adds a transform based on the placement.",
4024
- "value": { "type": "\"undefined\" | \"undefined\"" }
4025
- }
4026
- ],
4027
- "slots": [{ "name": "children", "description": "default slot" }],
4028
- "events": [],
4029
- "js": {
4030
- "properties": [
4031
- {
4032
- "name": "id",
4033
- "description": "[ID](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/id) of the component, generated automatically for some components as a fallback if unset.",
4034
- "type": "string"
4035
- },
4036
- {
4037
- "name": "className",
4038
- "description": "React specific for adding className to the component.",
4039
- "type": "string"
4040
- },
4041
- {
4042
- "name": "emphasis",
4043
- "description": "The emphasis attribute divides in between a weak or strong importance.",
4044
- "type": "\"weak\" | \"strong\""
4045
- },
4046
- {
4047
- "name": "animation",
4048
- "description": "Disable animation",
4049
- "type": "boolean | string"
4050
- },
4051
- {
4052
- "name": "delay",
4053
- "description": "Add a delay before showing the tooltip",
4054
- "type": "\"none\" | \"slow\" | \"fast\""
4055
- },
4056
- {
4057
- "name": "width",
4058
- "description": "Use fixed with for default max-width",
4059
- "type": "\"auto\" | \"fixed\""
4060
- },
4061
- { "name": "showArrow", "type": "boolean | string" },
4062
- {
4063
- "name": "placement",
4064
- "description": "The `placement` attributes values change the position to absolute and adds a transform based on the placement.",
4065
- "type": "\"undefined\" | \"undefined\""
4066
- },
4067
- { "name": "_id" },
4068
- { "name": "initialized", "type": "boolean" }
4069
- ],
4070
- "events": []
4071
- }
4072
- },
4073
4081
  {
4074
4082
  "name": "db-tab-list",
4075
4083
  "description": "\n---\n\n\n### **Slots:**\n - **children** - default slot",
@@ -4645,7 +4653,7 @@
4645
4653
  },
4646
4654
  {
4647
4655
  "name": "db-custom-select",
4648
- "description": "\n---\n\n\n### **Events:**\n - **amountChange**\n- **dropdownToggle**\n- **optionSelected**\n\n### **Slots:**\n - **children** - default slot",
4656
+ "description": "\n---\n\n\n### **Events:**\n - **amountChange**\n- **dropdownToggle**\n- **optionSelected**\n- **search**\n\n### **Slots:**\n - **children** - default slot",
4649
4657
  "doc-url": "https://design-system.deutschebahn.com/core-web/review/main/components/custom-select/properties",
4650
4658
  "attributes": [
4651
4659
  {
@@ -4708,6 +4716,21 @@
4708
4716
  "description": "You should pass in the options as an array.",
4709
4717
  "value": { "type": "CustomSelectOptionType[]" }
4710
4718
  },
4719
+ {
4720
+ "name": "search-value",
4721
+ "description": "Optional: Prefill the value of the search input",
4722
+ "value": { "type": "string" }
4723
+ },
4724
+ {
4725
+ "name": "selected-labels",
4726
+ "description": "Optional: If you want to show a custom label for the selected values.\nYou need to define the empty state as well based on selected options.",
4727
+ "value": { "type": "string" }
4728
+ },
4729
+ {
4730
+ "name": "transform-selected-labels",
4731
+ "description": "Optional: If you want to show a custom label based on the selected options.",
4732
+ "value": { "type": "functiontype" }
4733
+ },
4711
4734
  {
4712
4735
  "name": "selected-type",
4713
4736
  "description": "Change the selected type for values shown in multi select",
@@ -4738,6 +4761,11 @@
4738
4761
  "description": "Optional: if you use selectedType=tag and options, you need to set the removeTagsTexts for screen reader users",
4739
4762
  "value": { "type": "string[]" }
4740
4763
  },
4764
+ {
4765
+ "name": "search-filter",
4766
+ "description": "Optional: Change the filter function for the search input",
4767
+ "value": { "type": "functiontype" }
4768
+ },
4741
4769
  {
4742
4770
  "name": "classname",
4743
4771
  "description": "React specific for adding className to the component.",
@@ -4874,6 +4902,10 @@
4874
4902
  {
4875
4903
  "name": "optionSelected",
4876
4904
  "type": "EventEmitter<\n Parameters<Required<DBCustomSelectProps>[\"onOptionSelected\"]>[number]\n > | void"
4905
+ },
4906
+ {
4907
+ "name": "search",
4908
+ "type": "EventEmitter<\n Parameters<Required<DBCustomSelectProps>[\"onSearch\"]>[number]\n > | void"
4877
4909
  }
4878
4910
  ],
4879
4911
  "js": {
@@ -4938,6 +4970,21 @@
4938
4970
  "description": "You should pass in the options as an array.",
4939
4971
  "type": "CustomSelectOptionType[]"
4940
4972
  },
4973
+ {
4974
+ "name": "searchValue",
4975
+ "description": "Optional: Prefill the value of the search input",
4976
+ "type": "string"
4977
+ },
4978
+ {
4979
+ "name": "selectedLabels",
4980
+ "description": "Optional: If you want to show a custom label for the selected values.\nYou need to define the empty state as well based on selected options.",
4981
+ "type": "string"
4982
+ },
4983
+ {
4984
+ "name": "transformSelectedLabels",
4985
+ "description": "Optional: If you want to show a custom label based on the selected options.",
4986
+ "type": "functiontype"
4987
+ },
4941
4988
  {
4942
4989
  "name": "selectedType",
4943
4990
  "description": "Change the selected type for values shown in multi select",
@@ -4968,6 +5015,11 @@
4968
5015
  "description": "Optional: if you use selectedType=tag and options, you need to set the removeTagsTexts for screen reader users",
4969
5016
  "type": "string[]"
4970
5017
  },
5018
+ {
5019
+ "name": "searchFilter",
5020
+ "description": "Optional: Change the filter function for the search input",
5021
+ "type": "functiontype"
5022
+ },
4971
5023
  {
4972
5024
  "name": "className",
4973
5025
  "description": "React specific for adding className to the component.",
@@ -5112,6 +5164,7 @@
5112
5164
  { "name": "_hasNoOptions", "type": "boolean" },
5113
5165
  { "name": "_documentClickListenerCallbackId" },
5114
5166
  { "name": "_internalChangeTimestamp", "type": "number" },
5167
+ { "name": "_searchValue" },
5115
5168
  { "name": "selectAllChecked", "type": "boolean" },
5116
5169
  { "name": "selectAllIndeterminate", "type": "boolean" },
5117
5170
  { "name": "satisfyReact" }
@@ -5128,6 +5181,10 @@
5128
5181
  {
5129
5182
  "name": "optionSelected",
5130
5183
  "type": "EventEmitter<\n Parameters<Required<DBCustomSelectProps>[\"onOptionSelected\"]>[number]\n > | void"
5184
+ },
5185
+ {
5186
+ "name": "search",
5187
+ "type": "EventEmitter<\n Parameters<Required<DBCustomSelectProps>[\"onSearch\"]>[number]\n > | void"
5131
5188
  }
5132
5189
  ]
5133
5190
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@db-ux/wc-core-components",
3
- "version": "2.0.9",
3
+ "version": "2.1.0",
4
4
  "description": "Stencil components for @db-ux/core-components",
5
5
  "repository": {
6
6
  "type": "git",
@@ -42,7 +42,7 @@
42
42
  },
43
43
  "web-types": "./dist/web-types.json",
44
44
  "dependencies": {
45
- "@db-ux/core-components": "2.0.9",
46
- "@db-ux/core-foundations": "2.0.9"
45
+ "@db-ux/core-components": "2.1.0",
46
+ "@db-ux/core-foundations": "2.1.0"
47
47
  }
48
48
  }