@geotab/zenith 3.17.1-beta.2 → 3.17.1-beta.3

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 (85) hide show
  1. package/README.md +8 -7
  2. package/dist/checkboxListWithAction/checkboxListWithAction.d.ts +7 -0
  3. package/dist/checkboxListWithAction/checkboxListWithAction.js +57 -44
  4. package/dist/dropdownRaw/dropdownHelper.d.ts +4 -0
  5. package/dist/dropdownRaw/dropdownHelper.js +11 -3
  6. package/dist/dropdownRaw/types.d.ts +6 -0
  7. package/dist/index.css +104 -2
  8. package/dist/mobileSheet/mobileSheet.js +1 -0
  9. package/dist/selectList/selectListItem.d.ts +7 -1
  10. package/dist/selectList/selectListItem.js +24 -7
  11. package/dist/utils/localization/translations/ar-001.json +2 -1
  12. package/dist/utils/localization/translations/bg-BG.json +2 -1
  13. package/dist/utils/localization/translations/cs.json +2 -1
  14. package/dist/utils/localization/translations/da-DK.json +2 -1
  15. package/dist/utils/localization/translations/de.json +2 -1
  16. package/dist/utils/localization/translations/el-GR.json +2 -1
  17. package/dist/utils/localization/translations/en.json +2 -1
  18. package/dist/utils/localization/translations/es.json +2 -1
  19. package/dist/utils/localization/translations/et-EE.json +2 -1
  20. package/dist/utils/localization/translations/fi-FI.json +2 -1
  21. package/dist/utils/localization/translations/fr-FR.json +2 -1
  22. package/dist/utils/localization/translations/fr.json +2 -1
  23. package/dist/utils/localization/translations/hu-HU.json +2 -1
  24. package/dist/utils/localization/translations/id.json +2 -1
  25. package/dist/utils/localization/translations/it.json +2 -1
  26. package/dist/utils/localization/translations/ja.json +2 -1
  27. package/dist/utils/localization/translations/ka-GE.json +2 -1
  28. package/dist/utils/localization/translations/ko-KR.json +2 -1
  29. package/dist/utils/localization/translations/lt-LT.json +2 -1
  30. package/dist/utils/localization/translations/lv-LV.json +2 -1
  31. package/dist/utils/localization/translations/ms.json +2 -1
  32. package/dist/utils/localization/translations/nb-NO.json +2 -1
  33. package/dist/utils/localization/translations/nl.json +2 -1
  34. package/dist/utils/localization/translations/pl.json +2 -1
  35. package/dist/utils/localization/translations/pt-BR.json +2 -1
  36. package/dist/utils/localization/translations/pt-PT.json +2 -1
  37. package/dist/utils/localization/translations/ro-RO.json +2 -1
  38. package/dist/utils/localization/translations/sk-SK.json +2 -1
  39. package/dist/utils/localization/translations/sv.json +2 -1
  40. package/dist/utils/localization/translations/th.json +2 -1
  41. package/dist/utils/localization/translations/tr.json +2 -1
  42. package/dist/utils/localization/translations/zh-Hans.json +2 -1
  43. package/dist/utils/localization/translations/zh-TW.json +2 -1
  44. package/esm/checkboxListWithAction/checkboxListWithAction.d.ts +7 -0
  45. package/esm/checkboxListWithAction/checkboxListWithAction.js +52 -44
  46. package/esm/dropdownRaw/dropdownHelper.d.ts +4 -0
  47. package/esm/dropdownRaw/dropdownHelper.js +11 -3
  48. package/esm/dropdownRaw/types.d.ts +6 -0
  49. package/esm/mobileSheet/mobileSheet.js +1 -0
  50. package/esm/selectList/selectListItem.d.ts +7 -1
  51. package/esm/selectList/selectListItem.js +22 -8
  52. package/esm/utils/localization/translations/ar-001.json +2 -1
  53. package/esm/utils/localization/translations/bg-BG.json +2 -1
  54. package/esm/utils/localization/translations/cs.json +2 -1
  55. package/esm/utils/localization/translations/da-DK.json +2 -1
  56. package/esm/utils/localization/translations/de.json +2 -1
  57. package/esm/utils/localization/translations/el-GR.json +2 -1
  58. package/esm/utils/localization/translations/en.json +2 -1
  59. package/esm/utils/localization/translations/es.json +2 -1
  60. package/esm/utils/localization/translations/et-EE.json +2 -1
  61. package/esm/utils/localization/translations/fi-FI.json +2 -1
  62. package/esm/utils/localization/translations/fr-FR.json +2 -1
  63. package/esm/utils/localization/translations/fr.json +2 -1
  64. package/esm/utils/localization/translations/hu-HU.json +2 -1
  65. package/esm/utils/localization/translations/id.json +2 -1
  66. package/esm/utils/localization/translations/it.json +2 -1
  67. package/esm/utils/localization/translations/ja.json +2 -1
  68. package/esm/utils/localization/translations/ka-GE.json +2 -1
  69. package/esm/utils/localization/translations/ko-KR.json +2 -1
  70. package/esm/utils/localization/translations/lt-LT.json +2 -1
  71. package/esm/utils/localization/translations/lv-LV.json +2 -1
  72. package/esm/utils/localization/translations/ms.json +2 -1
  73. package/esm/utils/localization/translations/nb-NO.json +2 -1
  74. package/esm/utils/localization/translations/nl.json +2 -1
  75. package/esm/utils/localization/translations/pl.json +2 -1
  76. package/esm/utils/localization/translations/pt-BR.json +2 -1
  77. package/esm/utils/localization/translations/pt-PT.json +2 -1
  78. package/esm/utils/localization/translations/ro-RO.json +2 -1
  79. package/esm/utils/localization/translations/sk-SK.json +2 -1
  80. package/esm/utils/localization/translations/sv.json +2 -1
  81. package/esm/utils/localization/translations/th.json +2 -1
  82. package/esm/utils/localization/translations/tr.json +2 -1
  83. package/esm/utils/localization/translations/zh-Hans.json +2 -1
  84. package/esm/utils/localization/translations/zh-TW.json +2 -1
  85. package/package.json +1 -1
package/README.md CHANGED
@@ -49,13 +49,14 @@ Zenith library provides components defined in Zenith Design System. It includes
49
49
 
50
50
  ### 3.17.1
51
51
 
52
- - MYG-151521: preserve filter names and show applied selection counts.
53
- - MYG-151520: add grouped filter-chip presentation and navigation over the existing flat child-filter state.
54
- - MYG-150676: add BT sensor icons and use the mixer icon for the Filters All Filters chip.
55
- - MYG-151577: allow an inline loading spinner in place of the Banner icon.
56
- - MYG-121322: revise the date picker to match the new visual styling and interaction design.
57
- - MYG-145390: prevent `FiltersBarPeriodPicker` from firing `onChange` before a Custom date range is applied.
58
- - MYG-155693: enforce typed-date limits and locked range endpoints, keep mobile time edits in order, prevent touch-scroll selection, respect user time zones, and preserve the calendar-only mobile layout.
52
+ - Preserve filter names and show applied selection counts.
53
+ - Add grouped filter-chip presentation and navigation over the existing flat child-filter state.
54
+ - Add icons and secondary metadata to Dropdown list items.
55
+ - Add BT sensor icons and use the mixer icon for the Filters All Filters chip.
56
+ - Allow an inline loading spinner in place of the Banner icon.
57
+ - Revise the date picker to match the new visual styling and interaction design.
58
+ - Prevent `FiltersBarPeriodPicker` from firing `onChange` before a Custom date range is applied.
59
+ - Enforce typed-date limits and locked range endpoints, keep mobile time edits in order, prevent touch-scroll selection, respect user time zones, and preserve the calendar-only mobile layout.
59
60
 
60
61
  ### 3.17.0
61
62
 
@@ -1,6 +1,9 @@
1
+ import { FC } from "react";
2
+ import React from "react";
1
3
  import "./checkboxListWithAction.less";
2
4
  import { IZenComponentProps } from "../commonHelpers/zenComponent";
3
5
  import { IColor } from "../groupsFilterRaw/groupsFilterInterfaces";
6
+ import { IIcon } from "../icons/icon";
4
7
  export interface ICheckboxListWithActionOption {
5
8
  label: string;
6
9
  title?: string;
@@ -11,6 +14,10 @@ export interface ICheckboxListWithActionOption {
11
14
  isWithAction: boolean;
12
15
  countSelectedChild?: number;
13
16
  color?: IColor;
17
+ /** Leading 16×16 icon rendered before the label text. */
18
+ icon?: FC<IIcon>;
19
+ /** Secondary text rendered on a second line below the primary label. */
20
+ metaData?: string;
14
21
  /** When true, renders a 1px separator line below this item. */
15
22
  divider?: boolean;
16
23
  }
@@ -3,6 +3,11 @@
3
3
  const {
4
4
  injectString
5
5
  } = require("../utils/localization/translationsDictionary");
6
+ var __importDefault = this && this.__importDefault || function (mod) {
7
+ return mod && mod.__esModule ? mod : {
8
+ "default": mod
9
+ };
10
+ };
6
11
  Object.defineProperty(exports, "__esModule", {
7
12
  value: true
8
13
  });
@@ -108,39 +113,40 @@ injectString("ka-GE", "Toggle {groupName} filter", "{groupName} \u10E4\u10D8\u10
108
113
  injectString("el-GR", "Toggle {groupName} filter", "\u0395\u03BD\u03B1\u03BB\u03BB\u03B1\u03B3\u03AE \u03C6\u03AF\u03BB\u03C4\u03C1\u03BF\u03C5 {groupName}");
109
114
  injectString("et-EE", "Toggle {groupName} filter", "L\xFClita {groupName} filter");
110
115
  injectString("bg-BG", "Toggle {groupName} filter", "\u041F\u0440\u0435\u0432\u043A\u043B\u044E\u0447\u0432\u0430\u043D\u0435 \u043D\u0430 \u0444\u0438\u043B\u0442\u044A\u0440\u0430 \u0437\u0430 {groupName}");
111
- injectString("cs", "Has additional actions. Use right arrow to access button, left arrow to return.", "Has additional actions. Use right arrow to access button, left arrow to return.");
112
- injectString("da-DK", "Has additional actions. Use right arrow to access button, left arrow to return.", "Har yderligere handlinger. Brug h\xF8jre pil for at \xE5bne knappen, venstre pil for at vende tilbage.");
113
- injectString("de", "Has additional actions. Use right arrow to access button, left arrow to return.", "Has additional actions. Use right arrow to access button, left arrow to return.");
114
- injectString("en", "Has additional actions. Use right arrow to access button, left arrow to return.", "Has additional actions. Use right arrow to access button, left arrow to return.");
115
- injectString("es", "Has additional actions. Use right arrow to access button, left arrow to return.", "Has additional actions. Use right arrow to access button, left arrow to return.");
116
- injectString("fi-FI", "Has additional actions. Use right arrow to access button, left arrow to return.", "Sis\xE4lt\xE4\xE4 lis\xE4toimintoja. Siirry painikkeeseen oikealla nuolella, palaa vasemmalla nuolella.");
117
- injectString("fr", "Has additional actions. Use right arrow to access button, left arrow to return.", "Has additional actions. Use right arrow to access button, left arrow to return.");
118
- injectString("fr-FR", "Has additional actions. Use right arrow to access button, left arrow to return.", "Has additional actions. Use right arrow to access button, left arrow to return.");
119
- injectString("hu-HU", "Has additional actions. Use right arrow to access button, left arrow to return.", "Tov\xE1bbi m\u0171veletek \xE9rhet\u0151k el. A gomb el\xE9r\xE9s\xE9hez haszn\xE1lja a jobb nyilat, a visszat\xE9r\xE9shez a bal nyilat.");
120
- injectString("id", "Has additional actions. Use right arrow to access button, left arrow to return.", "Has additional actions. Use right arrow to access button, left arrow to return.");
121
- injectString("it", "Has additional actions. Use right arrow to access button, left arrow to return.", "Has additional actions. Use right arrow to access button, left arrow to return.");
122
- injectString("ja", "Has additional actions. Use right arrow to access button, left arrow to return.", "Has additional actions. Use right arrow to access button, left arrow to return.");
123
- injectString("ko-KR", "Has additional actions. Use right arrow to access button, left arrow to return.", "Has additional actions. Use right arrow to access button, left arrow to return.");
124
- injectString("ms", "Has additional actions. Use right arrow to access button, left arrow to return.", "Mempunyai tindakan tambahan. Gunakan anak panah kanan untuk mengakses butang, anak panah kiri untuk kembali.");
125
- injectString("nb-NO", "Has additional actions. Use right arrow to access button, left arrow to return.", "Har flere handlinger. Bruk h\xF8yre pil for \xE5 \xE5pne knappen, venstre pil for \xE5 g\xE5 tilbake.");
126
- injectString("nl", "Has additional actions. Use right arrow to access button, left arrow to return.", "Heeft aanvullende acties. Gebruik de rechter pijltoets om de knop te openen, de linker pijltoets om terug te keren.");
127
- injectString("pl", "Has additional actions. Use right arrow to access button, left arrow to return.", "Has additional actions. Use right arrow to access button, left arrow to return.");
128
- injectString("pt-BR", "Has additional actions. Use right arrow to access button, left arrow to return.", "Tem a\xE7\xF5es adicionais. Use a seta direita para acessar o bot\xE3o, a seta esquerda para retornar.");
129
- injectString("pt-PT", "Has additional actions. Use right arrow to access button, left arrow to return.", "Has additional actions. Use right arrow to access button, left arrow to return.");
130
- injectString("sk-SK", "Has additional actions. Use right arrow to access button, left arrow to return.", "M\xE1 \u010Fal\u0161ie akcie. Na pr\xEDstup k tla\u010Didlu pou\u017Eite \u0161\xEDpku vpravo, na n\xE1vrat \u0161\xEDpku v\u013Eavo.");
131
- injectString("sv", "Has additional actions. Use right arrow to access button, left arrow to return.", "Har ytterligare \xE5tg\xE4rder. Anv\xE4nd h\xF6ger piltangent f\xF6r att \xF6ppna knappen, v\xE4nster piltangent f\xF6r att \xE5terg\xE5.");
132
- injectString("th", "Has additional actions. Use right arrow to access button, left arrow to return.", "Has additional actions. Use right arrow to access button, left arrow to return.");
133
- injectString("tr", "Has additional actions. Use right arrow to access button, left arrow to return.", "Has additional actions. Use right arrow to access button, left arrow to return.");
134
- injectString("zh-Hans", "Has additional actions. Use right arrow to access button, left arrow to return.", "Has additional actions. Use right arrow to access button, left arrow to return.");
135
- injectString("zh-TW", "Has additional actions. Use right arrow to access button, left arrow to return.", "Has additional actions. Use right arrow to access button, left arrow to return.");
136
- injectString("ro-RO", "Has additional actions. Use right arrow to access button, left arrow to return.", "Has additional actions. Use right arrow to access button, left arrow to return.");
137
- injectString("ar-001", "Has additional actions. Use right arrow to access button, left arrow to return.", "\u064A\u062D\u062A\u0648\u064A \u0639\u0644\u0649 \u0625\u062C\u0631\u0627\u0621\u0627\u062A \u0625\u0636\u0627\u0641\u064A\u0629. \u0627\u0633\u062A\u062E\u062F\u0645 \u0627\u0644\u0633\u0647\u0645 \u0627\u0644\u0623\u064A\u0645\u0646 \u0644\u0644\u0648\u0635\u0648\u0644 \u0625\u0644\u0649 \u0627\u0644\u0632\u0631\u060C \u0648\u0627\u0644\u0633\u0647\u0645 \u0627\u0644\u0623\u064A\u0633\u0631 \u0644\u0644\u0639\u0648\u062F\u0629.");
138
- injectString("lt-LT", "Has additional actions. Use right arrow to access button, left arrow to return.", "Yra papildom\u0173 veiksm\u0173. De\u0161iniojo rodykl\u0117s klavi\u0161o paspauskite mygtuk\u0105, kairiojo - gr\u012F\u017Ekite.");
139
- injectString("lv-LV", "Has additional actions. Use right arrow to access button, left arrow to return.", "Ir papildu darb\u012Bbas. Lab\u0101 bulti\u0146a - piek\u013C\u016Bt pogai, kreis\u0101 bulti\u0146a - atgriezties.");
140
- injectString("ka-GE", "Has additional actions. Use right arrow to access button, left arrow to return.", "\u10D3\u10D0\u10DB\u10D0\u10E2\u10D4\u10D1\u10D8\u10D7\u10D8 \u10DB\u10DD\u10E5\u10DB\u10D4\u10D3\u10D4\u10D1\u10D4\u10D1\u10D8 \u10D0\u10E0\u10E1\u10D4\u10D1\u10DD\u10D1\u10E1. \u10DB\u10D0\u10E0\u10EF\u10D5\u10D4\u10DC\u10D0 \u10D8\u10E1\u10E0\u10D8\u10D7 \u10EC\u10D5\u10D3\u10DD\u10DB\u10D8\u10E1\u10D7\u10D5\u10D8\u10E1, \u10DB\u10D0\u10E0\u10EA\u10EE\u10D4\u10DC\u10D8\u10D7 \u10D3\u10D0\u10E1\u10D0\u10D1\u10E0\u10E3\u10DC\u10D4\u10D1\u10DA\u10D0\u10D3.");
141
- injectString("el-GR", "Has additional actions. Use right arrow to access button, left arrow to return.", "\u03A5\u03C0\u03AC\u03C1\u03C7\u03BF\u03C5\u03BD \u03C0\u03C1\u03CC\u03C3\u03B8\u03B5\u03C4\u03B5\u03C2 \u03B5\u03BD\u03AD\u03C1\u03B3\u03B5\u03B9\u03B5\u03C2. \u0394\u03B5\u03BE\u03AF \u03B2\u03AD\u03BB\u03BF\u03C2 \u03B3\u03B9\u03B1 \u03C0\u03C1\u03CC\u03C3\u03B2\u03B1\u03C3\u03B7, \u03B1\u03C1\u03B9\u03C3\u03C4\u03B5\u03C1\u03CC \u03B2\u03AD\u03BB\u03BF\u03C2 \u03B3\u03B9\u03B1 \u03B5\u03C0\u03B9\u03C3\u03C4\u03C1\u03BF\u03C6\u03AE.");
142
- injectString("et-EE", "Has additional actions. Use right arrow to access button, left arrow to return.", "Sisaldab lisatoiminguid. Nupu avamiseks kasutage paremnoolt, tagasi p\xF6\xF6rdumiseks vasaknoolt.");
143
- injectString("bg-BG", "Has additional actions. Use right arrow to access button, left arrow to return.", "\u0418\u043C\u0430 \u0434\u043E\u043F\u044A\u043B\u043D\u0438\u0442\u0435\u043B\u043D\u0438 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044F. \u0414\u0435\u0441\u0435\u043D \u0441\u0442\u0440\u0435\u043B\u0435\u0446 \u0437\u0430 \u0434\u043E\u0441\u0442\u044A\u043F, \u043B\u044F\u0432 \u0441\u0442\u0440\u0435\u043B\u0435\u0446 \u0437\u0430 \u0432\u0440\u044A\u0449\u0430\u043D\u0435.");
116
+ injectString("cs", "This item has additional actions. Press the right arrow key to expand. Press the left arrow key to go back.", "Tento polo\u017Eka m\xE1 dal\u0161\xED akce. Stiskn\u011Bte prav\xFD \u0161ipku, abyste roz\u0161\xED\u0159ili. Stiskn\u011Bte \u0161ipku doleva, abyste se vr\xE1tili zp\u011Bt.");
117
+ injectString("da-DK", "This item has additional actions. Press the right arrow key to expand. Press the left arrow key to go back.", "Dette element har yderligere handlinger. Tryk p\xE5 h\xF8jre piletast for at udvide. Tryk p\xE5 venstre piletast for at g\xE5 tilbage.");
118
+ injectString("de", "This item has additional actions. Press the right arrow key to expand. Press the left arrow key to go back.", "Dieses Element enth\xE4lt zus\xE4tzliche Aktionen. Dr\xFCcken Sie die rechte Pfeiltaste, um zu erweitern. Dr\xFCcken Sie die linke Pfeiltaste, um zur\xFCckzugehen.");
119
+ injectString("en", "This item has additional actions. Press the right arrow key to expand. Press the left arrow key to go back.", "This item has additional actions. Press the right arrow key to expand. Press the left arrow key to go back.");
120
+ injectString("es", "This item has additional actions. Press the right arrow key to expand. Press the left arrow key to go back.", "Este elemento tiene acciones adicionales. Presione la tecla de flecha derecha para expandir. Presione la tecla de flecha izquierda para regresar.");
121
+ injectString("fi-FI", "This item has additional actions. Press the right arrow key to expand. Press the left arrow key to go back.", "T\xE4ll\xE4 kohteella on lis\xE4toimintoja. Paina oikeaa nuolin\xE4pp\xE4int\xE4 laajentaaksesi. Paina vasenta nuolin\xE4pp\xE4int\xE4 palataksesi takaisin.");
122
+ injectString("fr", "This item has additional actions. Press the right arrow key to expand. Press the left arrow key to go back.", "Cet \xE9l\xE9ment comporte des actions suppl\xE9mentaires. Appuyez sur la touche fl\xE9ch\xE9e de droite pour d\xE9velopper. Appuyez sur la touche fl\xE9ch\xE9e de gauche pour revenir en arri\xE8re.");
123
+ injectString("fr-FR", "This item has additional actions. Press the right arrow key to expand. Press the left arrow key to go back.", "Cet \xE9l\xE9ment dispose d\u2019actions suppl\xE9mentaires. Appuyez sur la fl\xE8che vers la droite pour agrandir. Appuyez sur la fl\xE8che gauche pour revenir en arri\xE8re.");
124
+ injectString("hu-HU", "This item has additional actions. Press the right arrow key to expand. Press the left arrow key to go back.", "Ez a t\xE9tel tov\xE1bbi m\u0171veleteket tartalmaz. Nyomja meg a jobb ny\xEDl kulcsot a kib\u0151v\xEDt\xE9shez. Nyomja le a balos ny\xEDl kulcsot, hogy visszal\xE9pjen.");
125
+ injectString("id", "This item has additional actions. Press the right arrow key to expand. Press the left arrow key to go back.", "Item ini memiliki tindakan tambahan. Tekan tombol panah kanan untuk meluaskan. Tekan tombol panah kiri untuk kembali.");
126
+ injectString("it", "This item has additional actions. Press the right arrow key to expand. Press the left arrow key to go back.", "Questo elemento presenta azioni ulteriori. Premere il tasto freccia destra per espandere. Premere il tasto freccia sinistra per tornare indietro.");
127
+ injectString("ja", "This item has additional actions. Press the right arrow key to expand. Press the left arrow key to go back.", "\u3053\u306E\u9805\u76EE\u306B\u306F\u8FFD\u52A0\u306E\u30A2\u30AF\u30B7\u30E7\u30F3\u304C\u3042\u308A\u307E\u3059\u3002\u53F3\u77E2\u5370\u30AD\u30FC\u3092\u62BC\u3059\u3068\u5C55\u958B\u3055\u308C\u307E\u3059\u3002\u5DE6\u77E2\u5370\u30AD\u30FC\u3092\u62BC\u3059\u3068\u3001\u623B\u308A\u307E\u3059\u3002");
128
+ injectString("ko-KR", "This item has additional actions. Press the right arrow key to expand. Press the left arrow key to go back.", "\uC774 \uD56D\uBAA9\uC5D0\uB294 \uCD94\uAC00 \uC791\uC5C5\uC774 \uC788\uC2B5\uB2C8\uB2E4. \uC624\uB978\uCABD \uD654\uC0B4\uD45C \uD0A4\uB97C \uB20C\uB7EC \uD655\uC7A5\uD558\uC2ED\uC2DC\uC624. \uC67C\uCABD \uD654\uC0B4\uD45C \uD0A4\uB97C \uB20C\uB7EC \uB4A4\uB85C \uC774\uB3D9\uD558\uC2ED\uC2DC\uC624.");
129
+ injectString("ms", "This item has additional actions. Press the right arrow key to expand. Press the left arrow key to go back.", "Item ini mempunyai tindakan tambahan. Tekan kekunci anak panah kanan untuk mengembangkan. Tekan kekunci anak panah kiri untuk kembali.");
130
+ injectString("nb-NO", "This item has additional actions. Press the right arrow key to expand. Press the left arrow key to go back.", "Dette elementet har flere handlinger. Trykk p\xE5 h\xF8yre piltast for \xE5 utvide. Trykk p\xE5 venstre piltast for \xE5 g\xE5 tilbake.");
131
+ injectString("nl", "This item has additional actions. Press the right arrow key to expand. Press the left arrow key to go back.", "Dit item heeft extra acties. Druk op de pijltoets naar rechts om uit te vouwen. Druk op de pijltoets naar links om terug te gaan.");
132
+ injectString("pl", "This item has additional actions. Press the right arrow key to expand. Press the left arrow key to go back.", "Ten element ma dodatkowe dzia\u0142ania. Naci\u015Bnij strza\u0142k\u0119 w prawo, aby rozwin\u0105\u0107. Naci\u015Bnij strza\u0142k\u0119 w lewo, aby wr\xF3ci\u0107.");
133
+ injectString("pt-BR", "This item has additional actions. Press the right arrow key to expand. Press the left arrow key to go back.", "Este item possui a\xE7\xF5es adicionais. Pressione a tecla de seta para a direita para expandir. Pressione a tecla de seta para a esquerda para voltar.");
134
+ injectString("pt-PT", "This item has additional actions. Press the right arrow key to expand. Press the left arrow key to go back.", "Este item tem a\xE7\xF5es adicionais. Prima a tecla de seta para a direita para expandir. Prima a tecla de seta para a esquerda para voltar atr\xE1s.");
135
+ injectString("sk-SK", "This item has additional actions. Press the right arrow key to expand. Press the left arrow key to go back.", "T\xE1to polo\u017Eka m\xE1 \u010Fal\u0161ie akcie. Stla\u010Den\xEDm kl\xE1vesu so \u0161\xEDpkou doprava rozbal\xEDte. Stla\u010Den\xEDm kl\xE1vesu so \u0161\xEDpkou do\u013Eava sa vr\xE1tite sp\xE4\u0165.");
136
+ injectString("sv", "This item has additional actions. Press the right arrow key to expand. Press the left arrow key to go back.", "Denna artikel har ytterligare \xE5tg\xE4rder. Tryck p\xE5 h\xF6gerpiltangenten f\xF6r att expandera. Tryck p\xE5 v\xE4nsterpiltangent f\xF6r att g\xE5 tillbaka.");
137
+ injectString("th", "This item has additional actions. Press the right arrow key to expand. Press the left arrow key to go back.", "\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23\u0E19\u0E35\u0E49\u0E21\u0E35\u0E01\u0E32\u0E23\u0E14\u0E33\u0E40\u0E19\u0E34\u0E19\u0E01\u0E32\u0E23\u0E40\u0E1E\u0E34\u0E48\u0E21\u0E40\u0E15\u0E34\u0E21 \u0E01\u0E14\u0E1B\u0E38\u0E48\u0E21\u0E25\u0E39\u0E01\u0E28\u0E23\u0E02\u0E27\u0E32\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E02\u0E22\u0E32\u0E22 \u0E01\u0E14\u0E1B\u0E38\u0E48\u0E21\u0E25\u0E39\u0E01\u0E28\u0E23\u0E0B\u0E49\u0E32\u0E22\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E22\u0E49\u0E2D\u0E19\u0E01\u0E25\u0E31\u0E1A");
138
+ injectString("tr", "This item has additional actions. Press the right arrow key to expand. Press the left arrow key to go back.", "Bu \xF6\u011Fenin ek eylemleri var. Geni\u015Fletmek i\xE7in sa\u011F ok tu\u015Funa bas\u0131n. Geri d\xF6nmek i\xE7in sol ok tu\u015Funa bas\u0131n.");
139
+ injectString("zh-Hans", "This item has additional actions. Press the right arrow key to expand. Press the left arrow key to go back.", "\u6B64\u9879\u76EE\u6709\u9644\u52A0\u64CD\u4F5C\u3002\u6309\u53F3\u7BAD\u5934\u952E\u5C55\u5F00\u3002\u6309\u5DE6\u7BAD\u5934\u952E\u8FD4\u56DE\u3002");
140
+ injectString("zh-TW", "This item has additional actions. Press the right arrow key to expand. Press the left arrow key to go back.", "\u6B64\u9805\u76EE\u6709\u5176\u4ED6\u52D5\u4F5C\u3002\u6309\u4E0B\u5411\u53F3\u7BAD\u982D\u9375\u4EE5\u5C55\u958B\u3002\u6309\u4E0B\u5411\u5DE6\u7BAD\u982D\u9375\u4EE5\u8FD4\u56DE\u3002");
141
+ injectString("ro-RO", "This item has additional actions. Press the right arrow key to expand. Press the left arrow key to go back.", "Acest element are ac\u021Biuni suplimentare. Ap\u0103sa\u021Bi tasta s\u0103geat\u0103 dreapta pentru a extinde. Ap\u0103sa\u021Bi tasta s\u0103geat\u0103 st\xE2nga pentru a reveni.");
142
+ injectString("ar-001", "This item has additional actions. Press the right arrow key to expand. Press the left arrow key to go back.", "\u064A\u062D\u062A\u0648\u064A \u0647\u0630\u0627 \u0627\u0644\u0639\u0646\u0635\u0631 \u0639\u0644\u0649 \u0625\u062C\u0631\u0627\u0621\u0627\u062A \u0625\u0636\u0627\u0641\u064A\u0629. \u0627\u0636\u063A\u0637 \u0639\u0644\u0649 \u0645\u0641\u062A\u0627\u062D \u0627\u0644\u0633\u0647\u0645 \u0627\u0644\u0623\u064A\u0645\u0646 \u0644\u0644\u062A\u0648\u0633\u064A\u0639. \u0627\u0636\u063A\u0637 \u0639\u0644\u0649 \u0645\u0641\u062A\u0627\u062D \u0627\u0644\u0633\u0647\u0645 \u0627\u0644\u0623\u064A\u0633\u0631 \u0644\u0644\u0631\u062C\u0648\u0639.");
143
+ injectString("lt-LT", "This item has additional actions. Press the right arrow key to expand. Press the left arrow key to go back.", "\u0160is elementas turi papildom\u0173 veiksm\u0173. Paspauskite de\u0161iniosios rodykl\u0117s klavi\u0161\u0105, kad i\u0161skleistum\u0117te. Paspauskite kairiosios rodykl\u0117s klavi\u0161\u0105, kad gr\u012F\u017Etum\u0117te.");
144
+ injectString("lv-LV", "This item has additional actions. Press the right arrow key to expand. Press the left arrow key to go back.", "\u0160im vienumam ir papildu darb\u012Bbas. Nospiediet labo bulttausti\u0146u, lai izv\u0113rstu. Nospiediet kreiso bulttausti\u0146u, lai atgrieztos.");
145
+ injectString("ka-GE", "This item has additional actions. Press the right arrow key to expand. Press the left arrow key to go back.", "\u10D0\u10DB \u10D4\u10DA\u10D4\u10DB\u10D4\u10DC\u10E2\u10E1 \u10D0\u10E5\u10D5\u10E1 \u10D3\u10D0\u10DB\u10D0\u10E2\u10D4\u10D1\u10D8\u10D7\u10D8 \u10DB\u10DD\u10E5\u10DB\u10D4\u10D3\u10D4\u10D1\u10D4\u10D1\u10D8. \u10D2\u10D0\u10E1\u10D0\u10E8\u10DA\u10D4\u10DA\u10D0\u10D3 \u10D3\u10D0\u10D0\u10ED\u10D8\u10E0\u10D4\u10D7 \u10DB\u10D0\u10E0\u10EF\u10D5\u10D4\u10DC\u10D0 \u10D8\u10E1\u10E0\u10D8\u10E1 \u10E6\u10D8\u10DA\u10D0\u10D9\u10E1. \u10E3\u10D9\u10D0\u10DC \u10D3\u10D0\u10E1\u10D0\u10D1\u10E0\u10E3\u10DC\u10D4\u10D1\u10DA\u10D0\u10D3 \u10D3\u10D0\u10D0\u10ED\u10D8\u10E0\u10D4\u10D7 \u10DB\u10D0\u10E0\u10EA\u10EE\u10D4\u10DC\u10D0 \u10D8\u10E1\u10E0\u10D8\u10E1 \u10E6\u10D8\u10DA\u10D0\u10D9\u10E1.");
146
+ injectString("el-GR", "This item has additional actions. Press the right arrow key to expand. Press the left arrow key to go back.", "\u0391\u03C5\u03C4\u03CC \u03C4\u03BF \u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03BF \u03AD\u03C7\u03B5\u03B9 \u03C0\u03C1\u03CC\u03C3\u03B8\u03B5\u03C4\u03B5\u03C2 \u03B5\u03BD\u03AD\u03C1\u03B3\u03B5\u03B9\u03B5\u03C2. \u03A0\u03B1\u03C4\u03AE\u03C3\u03C4\u03B5 \u03C4\u03BF \u03C0\u03BB\u03AE\u03BA\u03C4\u03C1\u03BF \u03B4\u03B5\u03BE\u03B9\u03BF\u03CD \u03B2\u03AD\u03BB\u03BF\u03C5\u03C2 \u03B3\u03B9\u03B1 \u03B1\u03BD\u03AC\u03C0\u03C4\u03C5\u03BE\u03B7. \u03A0\u03B1\u03C4\u03AE\u03C3\u03C4\u03B5 \u03C4\u03BF \u03C0\u03BB\u03AE\u03BA\u03C4\u03C1\u03BF \u03B1\u03C1\u03B9\u03C3\u03C4\u03B5\u03C1\u03BF\u03CD \u03B2\u03AD\u03BB\u03BF\u03C5\u03C2 \u03B3\u03B9\u03B1 \u03B5\u03C0\u03B9\u03C3\u03C4\u03C1\u03BF\u03C6\u03AE.");
147
+ injectString("et-EE", "This item has additional actions. Press the right arrow key to expand. Press the left arrow key to go back.", "Sellel \xFCksusel on lisatoimingud. Vajutage laiendamiseks paremat nooleklahvi. Vajutage tagasi liikumiseks vasakut nooleklahvi.");
148
+ injectString("bg-BG", "This item has additional actions. Press the right arrow key to expand. Press the left arrow key to go back.", "\u0422\u043E\u0437\u0438 \u0435\u043B\u0435\u043C\u0435\u043D\u0442 \u0438\u043C\u0430 \u0434\u043E\u043F\u044A\u043B\u043D\u0438\u0442\u0435\u043B\u043D\u0438 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044F. \u041D\u0430\u0442\u0438\u0441\u043D\u0435\u0442\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0430 \u0441\u044A\u0441 \u0441\u0442\u0440\u0435\u043B\u043A\u0430 \u043D\u0430\u0434\u044F\u0441\u043D\u043E, \u0437\u0430 \u0434\u0430 \u0440\u0430\u0437\u0433\u044A\u043D\u0435\u0442\u0435. \u041D\u0430\u0442\u0438\u0441\u043D\u0435\u0442\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0430 \u0441\u044A\u0441 \u0441\u0442\u0440\u0435\u043B\u043A\u0430 \u043D\u0430\u043B\u044F\u0432\u043E, \u0437\u0430 \u0434\u0430 \u0441\u0435 \u0432\u044A\u0440\u043D\u0435\u0442\u0435 \u043D\u0430\u0437\u0430\u0434.");
149
+ const react_2 = __importDefault(require("react"));
144
150
  const checkbox_1 = require("../checkbox/checkbox");
145
151
  const classNames_1 = require("../commonHelpers/classNames/classNames");
146
152
  const iconChevronRight_1 = require("../icons/iconChevronRight");
@@ -179,10 +185,7 @@ const CheckboxListWithAction = ({
179
185
  });
180
186
  };
181
187
  const handleClick = e => {
182
- var _a;
183
- const evtTarget = e.target;
184
- const elId = evtTarget.getAttribute("data-btn") || ((_a = evtTarget.parentElement) === null || _a === void 0 ? void 0 : _a.getAttribute("data-btn")) || "";
185
- onClick(elId);
188
+ onClick(e.currentTarget.dataset.btn || "");
186
189
  setFocusedElementType("checkbox");
187
190
  };
188
191
  const getFocusableElements = (0, react_1.useCallback)(() => {
@@ -383,14 +386,24 @@ const CheckboxListWithAction = ({
383
386
  "data-btn": option.property
384
387
  } : {};
385
388
  const childEl = (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, {
386
- children: [(0, jsx_runtime_1.jsxs)("div", Object.assign({
389
+ children: [option.icon && react_2.default.createElement(option.icon, {
390
+ className: "zen-checkbox-list-with-action__item-icon",
391
+ size: "large"
392
+ }), (0, jsx_runtime_1.jsxs)("div", Object.assign({
387
393
  className: "zen-checkbox-list-with-action__label-text zen-ellipsis"
388
394
  }, otherArgs, {
389
- children: [(0, jsx_runtime_1.jsx)("span", Object.assign({
390
- className: "zen-ellipsis"
395
+ children: [(0, jsx_runtime_1.jsxs)("div", Object.assign({
396
+ className: "zen-checkbox-list-with-action__label-primary-row"
391
397
  }, otherArgs, {
392
- children: lbl
393
- })), getLabelCountSelectedChild(option.countSelectedChild, otherArgs)]
398
+ children: [(0, jsx_runtime_1.jsx)("span", Object.assign({
399
+ className: "zen-ellipsis"
400
+ }, otherArgs, {
401
+ children: lbl
402
+ })), getLabelCountSelectedChild(option.countSelectedChild, otherArgs)]
403
+ })), option.metaData && (0, jsx_runtime_1.jsx)("span", {
404
+ className: "zen-checkbox-list-with-action__item-meta",
405
+ children: option.metaData
406
+ })]
394
407
  })), (0, jsx_runtime_1.jsxs)("div", Object.assign({
395
408
  className: "zen-checkbox-list-with-action__label-info"
396
409
  }, otherArgs, {
@@ -472,9 +485,9 @@ const CheckboxListWithAction = ({
472
485
  id: navigationInstructionsId,
473
486
  className: "zen-checkbox-list-with-action__sr-only",
474
487
  "aria-hidden": "true",
475
- children: translate("Has additional actions. Use right arrow to access button, left arrow to return.")
488
+ children: translate("This item has additional actions. Press the right arrow key to expand. Press the left arrow key to go back.")
476
489
  })]
477
490
  });
478
491
  };
479
492
  exports.CheckboxListWithAction = CheckboxListWithAction;
480
- exports.TRANSLATIONS = ["View {groupName} children", "Toggle {groupName} filter", "Number of selected child groups - {count}"];
493
+ exports.TRANSLATIONS = ["View {groupName} children", "Toggle {groupName} filter", "Number of selected child groups - {count}", "This item has additional actions. Press the right arrow key to expand. Press the left arrow key to go back."];
@@ -38,6 +38,8 @@ export declare const applySortSelectedToTop: (items: IDropdownRawItem[], selecte
38
38
  export declare const createSingleListOptions: (stateObj: IDropdownState, translate: (s: string) => string, listItem: IDropdownRawItem[]) => {
39
39
  destructive: boolean | undefined;
40
40
  divider?: boolean | undefined;
41
+ metaData?: string | undefined;
42
+ icon?: import("react").FC<import("..").IIcon> | undefined;
41
43
  id: string;
42
44
  children: string;
43
45
  title: string;
@@ -47,6 +49,8 @@ export declare const createSingleListOptions: (stateObj: IDropdownState, transla
47
49
  export declare const createListDataOptions: (stateObj: IDropdownState, translate: (s: string) => string, listItem: IDropdownRawItem[], isMultiselect: boolean, isAllSelected?: boolean) => ICheckboxListWithActionOption[] | {
48
50
  destructive: boolean | undefined;
49
51
  divider?: boolean | undefined;
52
+ metaData?: string | undefined;
53
+ icon?: import("react").FC<import("..").IIcon> | undefined;
50
54
  id: string;
51
55
  children: string;
52
56
  title: string;
@@ -91,7 +91,7 @@ function prepareComboOptionsForList(actionListData, translate, options, getSelec
91
91
  const selectedIds = new Set(getSelectedFn());
92
92
  const preparedOptions = options && options.length ? options.map(option => {
93
93
  const selectedChild = getSelectedChildFn(option.id);
94
- return Object.assign(Object.assign({
94
+ return Object.assign(Object.assign(Object.assign(Object.assign({
95
95
  label: (0, groupsHelper_1.getGroupDescription)(option, translate),
96
96
  property: option.id,
97
97
  checked: isAllSelected ? true : selectedIds.has(option.id),
@@ -101,6 +101,10 @@ function prepareComboOptionsForList(actionListData, translate, options, getSelec
101
101
  blocked: isFlatList ? option.disabled || false : false
102
102
  }, getTitle ? {
103
103
  title: getTitle(option.id)
104
+ } : {}), option.icon ? {
105
+ icon: option.icon
106
+ } : {}), option.metaData ? {
107
+ metaData: option.metaData
104
108
  } : {}), option.divider ? {
105
109
  divider: true
106
110
  } : {});
@@ -185,14 +189,18 @@ exports.applySortSelectedToTop = applySortSelectedToTop;
185
189
  const createSingleListOptions = (stateObj, translate, listItem) => {
186
190
  const preparedOptions = listItem && listItem.length ? listItem.map(option => {
187
191
  const description = (0, groupsHelper_1.getGroupDescription)(stateObj.groupsMap[option.id] || option, translate);
188
- return Object.assign(Object.assign({
192
+ return Object.assign(Object.assign(Object.assign(Object.assign({
189
193
  id: option.id,
190
194
  children: description,
191
195
  // Long names are truncated by `zen-ellipsis`, so expose the full text on hover
192
196
  title: description,
193
197
  disabled: option.disabled,
194
198
  multiLevel: Object.keys(stateObj.groupsMap).length === 0 ? false : option.children && option.children.length > 0 && stateObj.groupsMap[option.id] !== undefined
195
- }, option.divider ? {
199
+ }, option.icon ? {
200
+ icon: option.icon
201
+ } : {}), option.metaData ? {
202
+ metaData: option.metaData
203
+ } : {}), option.divider ? {
196
204
  divider: true
197
205
  } : {}), {
198
206
  destructive: option.destructive
@@ -1,3 +1,4 @@
1
+ import { FC } from "react";
1
2
  import { TAlignment } from "../absolute/absolute";
2
3
  import { IChipsParent } from "../chip/chip";
3
4
  import { IEntityWithId } from "../commonHelpers/entity";
@@ -5,6 +6,7 @@ import { Exclusive } from "../commonHelpers/types/exclusive";
5
6
  import { IReactFormItemController } from "../commonHelpers/zenComponent";
6
7
  import { TFilterButton } from "../filterButton/filterButton";
7
8
  import { IColor } from "../groupsFilterRaw/groupsFilterInterfaces";
9
+ import { IIcon } from "../icons/icon";
8
10
  export interface ISelectionItemRaw {
9
11
  id: string;
10
12
  name?: string;
@@ -15,6 +17,10 @@ export interface IDropdownRawItem extends IEntityWithId {
15
17
  children?: IEntityWithId[];
16
18
  color?: IColor;
17
19
  disabled?: boolean;
20
+ /** Leading 16×16 icon component rendered before the label. */
21
+ icon?: FC<IIcon>;
22
+ /** Secondary text rendered on a second line below the primary label. */
23
+ metaData?: string;
18
24
  /** When true, renders a 1px separator line below this item. Purely visual — does not affect selection or keyboard navigation. */
19
25
  divider?: boolean;
20
26
  /**
package/dist/index.css CHANGED
@@ -5901,6 +5901,29 @@ html:lang(ar) .zen-select-item {
5901
5901
  padding-inline-end: 0.5rem;
5902
5902
  fill: var(--text-primary);
5903
5903
  }
5904
+ .zen-select-item .zen-select-item__wrapper--rich {
5905
+ display: flex;
5906
+ align-items: center;
5907
+ }
5908
+ .zen-select-item .zen-select-item__wrapper--rich:has(.zen-dropdown-list__item-meta) {
5909
+ box-sizing: border-box;
5910
+ min-height: 3.625rem;
5911
+ }
5912
+ .zen-select-item .zen-select-item__text-col {
5913
+ flex: 1;
5914
+ min-width: 0;
5915
+ display: flex;
5916
+ flex-direction: column;
5917
+ }
5918
+ .zen-select-item .zen-select-item__label {
5919
+ min-width: 0;
5920
+ }
5921
+ .zen-select-item .zen-select-item__label .zen-checkbox__label-text {
5922
+ overflow: hidden;
5923
+ text-overflow: ellipsis;
5924
+ white-space: nowrap;
5925
+ word-wrap: normal;
5926
+ }
5904
5927
  .zen-select-item.zen-select-item--drive {
5905
5928
  font-family: "Roboto Mono", "Segoe UI", Segoe, "Helvetica Neue", Helvetica, sans-serif;
5906
5929
  font-size: 1.125rem;
@@ -8667,11 +8690,15 @@ html:lang(ar) .zen-checkbox-list-with-action__title {
8667
8690
  height: var(--border-width-default);
8668
8691
  background-color: var(--borders-general);
8669
8692
  }
8693
+ .zen-checkbox-list-with-action__action-item:has(.zen-checkbox-list-with-action__item-meta) {
8694
+ min-height: 3.625rem;
8695
+ box-sizing: border-box;
8696
+ }
8670
8697
  .zen-checkbox-list-with-action__singled {
8671
8698
  font-weight: 700;
8672
8699
  }
8673
8700
  .zen-checkbox-list-with-action__action-checkbox {
8674
- height: 2.5rem;
8701
+ min-height: 2.5rem;
8675
8702
  position: relative;
8676
8703
  flex-grow: 0;
8677
8704
  }
@@ -8725,9 +8752,16 @@ html:lang(ar) .zen-checkbox-list-with-action__label {
8725
8752
  }
8726
8753
  .zen-checkbox-list-with-action__label-text {
8727
8754
  display: flex;
8755
+ flex-direction: column;
8728
8756
  flex-grow: 1;
8757
+ min-width: 0;
8729
8758
  padding-inline-end: 0.5rem;
8730
8759
  }
8760
+ .zen-checkbox-list-with-action__label-primary-row {
8761
+ display: flex;
8762
+ align-items: center;
8763
+ min-width: 0;
8764
+ }
8731
8765
  .zen-checkbox-list-with-action__label-info {
8732
8766
  display: flex;
8733
8767
  align-items: center;
@@ -8783,9 +8817,43 @@ html:lang(ar) .zen-checkbox-list-with-action__counter {
8783
8817
  height: 1px;
8784
8818
  opacity: 0;
8785
8819
  }
8820
+ .zen-checkbox-list-with-action__item-meta {
8821
+ font-family: Roboto, "Segoe UI", Segoe, "Helvetica Neue", Helvetica, sans-serif;
8822
+ font-size: 0.75rem;
8823
+ font-style: normal;
8824
+ font-weight: 400;
8825
+ letter-spacing: 0.02rem;
8826
+ line-height: 1rem;
8827
+ text-transform: none;
8828
+ text-decoration: none;
8829
+ display: block;
8830
+ color: var(--text-secondary);
8831
+ overflow: hidden;
8832
+ text-overflow: ellipsis;
8833
+ white-space: nowrap;
8834
+ }
8835
+ html:lang(ar) .zen-checkbox-list-with-action__item-meta {
8836
+ font-family: "Noto Sans Arabic", Roboto, "Segoe UI", Segoe, "Helvetica Neue", Helvetica, sans-serif;
8837
+ }
8838
+ .zen-checkbox-list-with-action__item-icon {
8839
+ flex-shrink: 0;
8840
+ margin-inline-end: 0.5rem;
8841
+ color: var(--text-secondary);
8842
+ }
8786
8843
  .zen-checkbox-list-with-action.zen-checkbox-list-with-action--drive .zen-checkbox-list-with-action__action-checkbox,
8787
8844
  .zen-checkbox-list-with-action.zen-checkbox-list-with-action--drive-tablet .zen-checkbox-list-with-action__action-checkbox {
8788
- height: 3.75rem;
8845
+ min-height: 3.75rem;
8846
+ }
8847
+ .zen-checkbox-list-with-action.zen-checkbox-list-with-action--drive .zen-checkbox-list-with-action__item-meta,
8848
+ .zen-checkbox-list-with-action.zen-checkbox-list-with-action--drive-tablet .zen-checkbox-list-with-action__item-meta {
8849
+ font-family: "Roboto Mono", "Segoe UI", Segoe, "Helvetica Neue", Helvetica, sans-serif;
8850
+ font-size: 1rem;
8851
+ font-style: normal;
8852
+ font-weight: 400;
8853
+ letter-spacing: 0.02rem;
8854
+ line-height: 1.375rem;
8855
+ text-transform: none;
8856
+ text-decoration: none;
8789
8857
  }
8790
8858
  .zen-checkbox-list-with-action.zen-checkbox-list-with-action--drive .zen-checkbox-list-with-action__title {
8791
8859
  font-family: "Roboto Mono", "Segoe UI", Segoe, "Helvetica Neue", Helvetica, sans-serif;
@@ -8955,6 +9023,29 @@ html:lang(ar) .zen-dropdown-list__label {
8955
9023
  height: "1px";
8956
9024
  opacity: 0;
8957
9025
  }
9026
+ .zen-dropdown-list__item-meta {
9027
+ font-family: Roboto, "Segoe UI", Segoe, "Helvetica Neue", Helvetica, sans-serif;
9028
+ font-size: 0.75rem;
9029
+ font-style: normal;
9030
+ font-weight: 400;
9031
+ letter-spacing: 0.02rem;
9032
+ line-height: 1rem;
9033
+ text-transform: none;
9034
+ text-decoration: none;
9035
+ display: block;
9036
+ color: var(--text-secondary);
9037
+ overflow: hidden;
9038
+ text-overflow: ellipsis;
9039
+ white-space: nowrap;
9040
+ }
9041
+ html:lang(ar) .zen-dropdown-list__item-meta {
9042
+ font-family: "Noto Sans Arabic", Roboto, "Segoe UI", Segoe, "Helvetica Neue", Helvetica, sans-serif;
9043
+ }
9044
+ .zen-dropdown-list__item-icon {
9045
+ flex-shrink: 0;
9046
+ margin-inline-end: 0.5rem;
9047
+ color: var(--text-secondary);
9048
+ }
8958
9049
  .zen-dropdown-list__action-label {
8959
9050
  font-family: Roboto, "Segoe UI", Segoe, "Helvetica Neue", Helvetica, sans-serif;
8960
9051
  font-size: 0.875rem;
@@ -9053,6 +9144,17 @@ html:lang(ar) .zen-dropdown-list__action-label {
9053
9144
  .zen-dropdown-list.zen-dropdown-list--drive-tablet .zen-dropdown-list__elements {
9054
9145
  max-height: 16.25rem;
9055
9146
  }
9147
+ .zen-dropdown-list.zen-dropdown-list--drive .zen-dropdown-list__item-meta,
9148
+ .zen-dropdown-list.zen-dropdown-list--drive-tablet .zen-dropdown-list__item-meta {
9149
+ font-family: "Roboto Mono", "Segoe UI", Segoe, "Helvetica Neue", Helvetica, sans-serif;
9150
+ font-size: 1rem;
9151
+ font-style: normal;
9152
+ font-weight: 400;
9153
+ letter-spacing: 0.02rem;
9154
+ line-height: 1.375rem;
9155
+ text-transform: none;
9156
+ text-decoration: none;
9157
+ }
9056
9158
  .zen-dropdown-list.zen-dropdown-list--drive .zen-dropdown-list__action-label {
9057
9159
  font-family: "Roboto Mono", "Segoe UI", Segoe, "Helvetica Neue", Helvetica, sans-serif;
9058
9160
  font-size: 1.125rem;
@@ -203,6 +203,7 @@ const MobileSheet = ({
203
203
  onOpenChange: () => onHidePanel(sidePanel_1.SidePanelCloseReason.Escape),
204
204
  onReadyForFocus: onReadyForFocus,
205
205
  onBack: handleNavigationBack,
206
+ role: role,
206
207
  children: [content[0], footer[0]]
207
208
  });
208
209
  }
@@ -1,6 +1,8 @@
1
+ import { FC } from "react";
1
2
  import { CheckboxState } from "../checkbox/checkboxState";
2
3
  import "./selectList.less";
3
4
  import { IZenIdComponentProps } from "../commonHelpers/zenComponent";
5
+ import { IIcon } from "../icons/icon";
4
6
  export interface ISelectListItem extends IZenIdComponentProps {
5
7
  state?: CheckboxState;
6
8
  disabled?: boolean;
@@ -10,6 +12,10 @@ export interface ISelectListItem extends IZenIdComponentProps {
10
12
  onClick?: (id: string) => void;
11
13
  onFocusItem?: (id: string) => void;
12
14
  multiLevel?: boolean;
15
+ /** Leading 16×16 icon rendered before the item content. */
16
+ icon?: FC<IIcon>;
17
+ /** Secondary text rendered on a second line below the primary content. */
18
+ metaData?: string;
13
19
  /** When true, renders a 1px separator line below this item. */
14
20
  divider?: boolean;
15
21
  title?: string;
@@ -20,4 +26,4 @@ export interface ISelectListItem extends IZenIdComponentProps {
20
26
  */
21
27
  destructive?: boolean;
22
28
  }
23
- export declare const SelectListItem: ({ id, disabled, state, showCheckbox, focused, onChange, onClick, onFocusItem, multiLevel, divider, title, destructive, className, children }: ISelectListItem) => import("react/jsx-runtime").JSX.Element;
29
+ export declare const SelectListItem: ({ id, disabled, state, showCheckbox, focused, onChange, onClick, onFocusItem, multiLevel, divider, title, destructive, className, children, icon, metaData }: ISelectListItem) => import("react/jsx-runtime").JSX.Element;
@@ -1,7 +1,11 @@
1
1
  "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
2
5
  Object.defineProperty(exports, "__esModule", { value: true });
3
6
  exports.SelectListItem = void 0;
4
7
  const jsx_runtime_1 = require("react/jsx-runtime");
8
+ const react_1 = __importDefault(require("react"));
5
9
  const checkboxState_1 = require("../checkbox/checkboxState");
6
10
  const checkboxNonInteractive_1 = require("../checkboxNonInteractive/checkboxNonInteractive");
7
11
  const classNames_1 = require("../commonHelpers/classNames/classNames");
@@ -26,6 +30,16 @@ const getTabIndex = (showCheckbox, focused, disabled) => {
26
30
  return -1;
27
31
  return focused ? 0 : -1;
28
32
  };
33
+ const ItemInnerContent = ({ icon, showCheckbox, children, metaData, multiLevel, isRich, state, disabled, chevronIcon }) => {
34
+ const control = showCheckbox ? ((0, jsx_runtime_1.jsx)(checkboxNonInteractive_1.CheckboxNonInteractive, { className: "zen-select-item__control-view", checked: state === checkboxState_1.CheckboxState.On, indeterminate: state === checkboxState_1.CheckboxState.Indeterminate, disabled: disabled, children: children })) : (children);
35
+ const chevron = multiLevel && !showCheckbox ? react_1.default.createElement(chevronIcon, { size: "large" }) : null;
36
+ if (!isRich) {
37
+ // Plain items keep the original markup so existing consumers (inline multi-node children,
38
+ // highlighted text, ellipsis on the wrapper) render exactly as before.
39
+ return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [control, chevron] }));
40
+ }
41
+ return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [icon && react_1.default.createElement(icon, { className: "zen-dropdown-list__item-icon", size: "large" }), (0, jsx_runtime_1.jsxs)("div", { className: "zen-select-item__text-col", children: [(0, jsx_runtime_1.jsx)("div", { className: "zen-select-item__label zen-ellipsis", children: control }), metaData && (0, jsx_runtime_1.jsx)("span", { className: "zen-dropdown-list__item-meta", children: metaData })] }), chevron] }));
42
+ };
29
43
  const getItemClassName = (showCheckbox, focused, destructive, driveClassName, className, divider) => (0, classNames_1.classNames)([
30
44
  "zen-select-item",
31
45
  showCheckbox ? "zen-select-item--with-checkbox" : "",
@@ -35,9 +49,17 @@ const getItemClassName = (showCheckbox, focused, destructive, driveClassName, cl
35
49
  className,
36
50
  divider ? "zen-select-item--divider" : ""
37
51
  ]);
38
- const SelectListItem = ({ id, disabled = false, state = checkboxState_1.CheckboxState.Off, showCheckbox = false, focused = false, onChange, onClick, onFocusItem, multiLevel, divider, title, destructive, className = "", children }) => {
52
+ const getWrapperClassName = (multiLevel, isRich) => (0, classNames_1.classNames)([
53
+ "zen-select-list__item-content",
54
+ "zen-select-item__wrapper",
55
+ "zen-ellipsis",
56
+ multiLevel ? "zen-select-item__wrapper--with-arrow" : "",
57
+ isRich ? "zen-select-item__wrapper--rich" : ""
58
+ ]);
59
+ const SelectListItem = ({ id, disabled = false, state = checkboxState_1.CheckboxState.Off, showCheckbox = false, focused = false, onChange, onClick, onFocusItem, multiLevel, divider, title, destructive, className = "", children, icon, metaData }) => {
39
60
  const driveClassName = (0, useDriveClassName_1.useDriveClassName)("zen-select-item");
40
61
  const ChevronIcon = (0, useDirectionalIcon_1.useDirectionalIcon)(iconChevronRight_1.IconChevronRight, iconChevronLeft_1.IconChevronLeft);
62
+ const isRich = !!icon || !!metaData;
41
63
  const onClickFunc = () => {
42
64
  if (disabled) {
43
65
  return;
@@ -48,11 +70,6 @@ const SelectListItem = ({ id, disabled = false, state = checkboxState_1.Checkbox
48
70
  }
49
71
  onChange && onChange(id, newState);
50
72
  };
51
- return ((0, jsx_runtime_1.jsx)("li", { "data-id": id, className: getItemClassName(showCheckbox, focused, destructive, driveClassName, className, divider), role: showCheckbox ? "menuitemcheckbox" : "option", "aria-selected": showCheckbox ? undefined : state === checkboxState_1.CheckboxState.On, "aria-checked": getAriaChecked(showCheckbox, state), "aria-disabled": disabled, tabIndex: getTabIndex(showCheckbox, focused, disabled), onFocus: !showCheckbox && !disabled && onFocusItem ? () => onFocusItem(id) : undefined, onClick: onClickFunc, id: id, children: (0, jsx_runtime_1.jsxs)("div", { className: (0, classNames_1.classNames)([
52
- "zen-select-list__item-content",
53
- "zen-select-item__wrapper",
54
- "zen-ellipsis",
55
- multiLevel ? "zen-select-item__wrapper--with-arrow" : ""
56
- ]), title: title || undefined, children: [showCheckbox ? ((0, jsx_runtime_1.jsx)(checkboxNonInteractive_1.CheckboxNonInteractive, { className: "zen-select-item__control-view", checked: state === checkboxState_1.CheckboxState.On, indeterminate: state === checkboxState_1.CheckboxState.Indeterminate, disabled: disabled, children: children })) : (children), multiLevel && !showCheckbox ? (0, jsx_runtime_1.jsx)(ChevronIcon, { size: "large" }) : null] }) }));
73
+ return ((0, jsx_runtime_1.jsx)("li", { "data-id": id, className: getItemClassName(showCheckbox, focused, destructive, driveClassName, className, divider), role: showCheckbox ? "menuitemcheckbox" : "option", "aria-selected": showCheckbox ? undefined : state === checkboxState_1.CheckboxState.On, "aria-checked": getAriaChecked(showCheckbox, state), "aria-disabled": disabled, tabIndex: getTabIndex(showCheckbox, focused, disabled), onFocus: !showCheckbox && !disabled && onFocusItem ? () => onFocusItem(id) : undefined, onClick: onClickFunc, id: id, children: (0, jsx_runtime_1.jsx)("div", { className: getWrapperClassName(multiLevel, isRich), title: title || undefined, children: (0, jsx_runtime_1.jsx)(ItemInnerContent, { icon: icon, showCheckbox: showCheckbox, metaData: metaData, multiLevel: multiLevel, isRich: isRich, state: state, disabled: disabled, chevronIcon: ChevronIcon, children: children }) }) }));
57
74
  };
58
75
  exports.SelectListItem = SelectListItem;
@@ -356,5 +356,6 @@
356
356
  "Largest:": ":الأكبر",
357
357
  "Smallest:": ":الأصغر",
358
358
  "Rest: {COUNT} other slices account for {PCT}%.": "المتبقي: {COUNT} شريحة أخرى تمثّل {PCT}٪.",
359
- "Details, {COUNT} items:": "التفاصيل، {COUNT} عناصر:"
359
+ "Details, {COUNT} items:": "التفاصيل، {COUNT} عناصر:",
360
+ "This item has additional actions. Press the right arrow key to expand. Press the left arrow key to go back.": "يحتوي هذا العنصر على إجراءات إضافية. اضغط على مفتاح السهم الأيمن للتوسيع. اضغط على مفتاح السهم الأيسر للرجوع."
360
361
  }
@@ -355,5 +355,6 @@
355
355
  "Largest:": "Най-голям:",
356
356
  "Smallest:": "Най-малък:",
357
357
  "Rest: {COUNT} other slices account for {PCT}%.": "Останалите: {COUNT} сегмента представляват {PCT}%.",
358
- "Details, {COUNT} items:": "Подробности, {COUNT} елемента:"
358
+ "Details, {COUNT} items:": "Подробности, {COUNT} елемента:",
359
+ "This item has additional actions. Press the right arrow key to expand. Press the left arrow key to go back.": "Този елемент има допълнителни действия. Натиснете клавиша със стрелка надясно, за да разгънете. Натиснете клавиша със стрелка наляво, за да се върнете назад."
359
360
  }
@@ -347,5 +347,6 @@
347
347
  "Customize view": "Přizpůsobit zobrazení",
348
348
  "Select menu": "Vybrat nabídku",
349
349
  "Increase value": "Zvýšit hodnotu",
350
- "Decrease value": "Snížit hodnotu"
350
+ "Decrease value": "Snížit hodnotu",
351
+ "This item has additional actions. Press the right arrow key to expand. Press the left arrow key to go back.": "Tento položka má další akce. Stiskněte pravý šipku, abyste rozšířili. Stiskněte šipku doleva, abyste se vrátili zpět."
351
352
  }
@@ -355,5 +355,6 @@
355
355
  "Largest:": "Størst:",
356
356
  "Smallest:": "Mindst:",
357
357
  "Rest: {COUNT} other slices account for {PCT}%.": "Resten: {COUNT} andre udsnit udgør {PCT}%.",
358
- "Details, {COUNT} items:": "Detaljer, {COUNT} elementer:"
358
+ "Details, {COUNT} items:": "Detaljer, {COUNT} elementer:",
359
+ "This item has additional actions. Press the right arrow key to expand. Press the left arrow key to go back.": "Dette element har yderligere handlinger. Tryk på højre piletast for at udvide. Tryk på venstre piletast for at gå tilbage."
359
360
  }