@eifi1/ui-kit 0.52.0 → 0.53.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 (193) hide show
  1. package/README.md +47 -54
  2. package/dist/billing/cancel-subscription.d.ts +5 -14
  3. package/dist/billing/cancel-subscription.js +1 -3
  4. package/dist/billing/cancel-subscription.js.map +1 -1
  5. package/dist/billing/plan-card.d.ts +5 -13
  6. package/dist/billing/plan-card.js +3 -11
  7. package/dist/billing/plan-card.js.map +1 -1
  8. package/dist/billing/plan-switch.d.ts +5 -14
  9. package/dist/billing/plan-switch.js +1 -3
  10. package/dist/billing/plan-switch.js.map +1 -1
  11. package/dist/chart.d.ts +3 -14
  12. package/dist/chart.js +64 -11
  13. package/dist/chart.js.map +1 -1
  14. package/dist/components/date-field.d.ts +1 -1
  15. package/dist/components/date-field.js.map +1 -1
  16. package/dist/components/date-picker.d.ts +1 -1
  17. package/dist/components/date-picker.js.map +1 -1
  18. package/dist/components/date-range-picker.d.ts +4 -17
  19. package/dist/components/date-range-picker.js +2 -2
  20. package/dist/components/date-range-picker.js.map +1 -1
  21. package/dist/components/nav-pills.d.ts +1 -1
  22. package/dist/components/nav-pills.js.map +1 -1
  23. package/dist/components/series-chart-axes.d.ts +1 -1
  24. package/dist/components/series-chart-axes.js.map +1 -1
  25. package/dist/components/series-chart.d.ts +64 -19
  26. package/dist/components/series-chart.js +2 -1
  27. package/dist/components/series-chart.js.map +1 -1
  28. package/dist/components/treemap-labels.d.ts +6 -1
  29. package/dist/components/treemap-labels.js +2 -2
  30. package/dist/components/treemap-labels.js.map +1 -1
  31. package/dist/components/treemap.d.ts +29 -4
  32. package/dist/components/treemap.js +22 -9
  33. package/dist/components/treemap.js.map +1 -1
  34. package/dist/data-table.d.ts +1 -6
  35. package/dist/data-table.js +1 -9
  36. package/dist/data-table.js.map +1 -1
  37. package/dist/demo/demo-countdown.d.ts +0 -5
  38. package/dist/demo/demo-countdown.js +0 -4
  39. package/dist/demo/demo-countdown.js.map +1 -1
  40. package/dist/eslint/index.js +1 -1
  41. package/dist/feedback/feedback-mutation.d.ts +11 -23
  42. package/dist/feedback/feedback-mutation.js +1 -9
  43. package/dist/feedback/feedback-mutation.js.map +1 -1
  44. package/dist/feedback/feedback-public-list.d.ts +1 -6
  45. package/dist/feedback/feedback-public-list.js +1 -2
  46. package/dist/feedback/feedback-public-list.js.map +1 -1
  47. package/dist/feedback/feedback-row-detail-labels.js +0 -8
  48. package/dist/feedback/feedback-row-detail-labels.js.map +1 -1
  49. package/dist/feedback/feedback-row-detail.d.ts +3 -50
  50. package/dist/feedback/feedback-row-detail.js +0 -8
  51. package/dist/feedback/feedback-row-detail.js.map +1 -1
  52. package/dist/feedback/feedback-status-undo.d.ts +3 -19
  53. package/dist/feedback/feedback-status-undo.js.map +1 -1
  54. package/dist/feedback/feedback-thread.d.ts +0 -9
  55. package/dist/feedback/feedback-thread.js.map +1 -1
  56. package/dist/feedback.d.ts +6 -40
  57. package/dist/feedback.js +88 -46
  58. package/dist/feedback.js.map +1 -1
  59. package/dist/i18n/defaults.js +0 -4
  60. package/dist/i18n/defaults.js.map +1 -1
  61. package/dist/i18n/german.js +2 -19
  62. package/dist/i18n/german.js.map +1 -1
  63. package/dist/i18n/kit-labels.d.ts +5 -14
  64. package/dist/i18n/kit-labels.js.map +1 -1
  65. package/dist/i18n/locales/en.js +2 -30
  66. package/dist/i18n/locales/en.js.map +3 -3
  67. package/dist/i18n/locales/es.js +2 -19
  68. package/dist/i18n/locales/es.js.map +1 -1
  69. package/dist/i18n/locales/fr.js +2 -19
  70. package/dist/i18n/locales/fr.js.map +1 -1
  71. package/dist/i18n/locales/hu.js +2 -19
  72. package/dist/i18n/locales/hu.js.map +1 -1
  73. package/dist/i18n/locales/it.js +2 -20
  74. package/dist/i18n/locales/it.js.map +1 -1
  75. package/dist/i18n/locales/zh.js +2 -19
  76. package/dist/i18n/locales/zh.js.map +1 -1
  77. package/dist/i18n/review.js +9 -4
  78. package/dist/i18n/review.js.map +1 -1
  79. package/dist/i18n/shared-labels.js +0 -1
  80. package/dist/i18n/shared-labels.js.map +1 -1
  81. package/dist/index.d.ts +15 -64
  82. package/dist/index.js +22 -102
  83. package/dist/index.js.map +1 -1
  84. package/dist/rhf/fields.d.ts +2 -2
  85. package/dist/rhf/fields.js.map +1 -1
  86. package/dist/search/search-index.d.ts +0 -6
  87. package/dist/search/search-index.js +0 -4
  88. package/dist/search/search-index.js.map +1 -1
  89. package/dist/search.d.ts +1 -8
  90. package/dist/search.js +2 -7
  91. package/dist/search.js.map +1 -1
  92. package/dist/shell/account-menu-language.d.ts +7 -21
  93. package/dist/shell/account-menu-language.js +1 -3
  94. package/dist/shell/account-menu-language.js.map +1 -1
  95. package/dist/shell/account-menu-text-size.d.ts +9 -23
  96. package/dist/shell/account-menu-text-size.js +2 -3
  97. package/dist/shell/account-menu-text-size.js.map +1 -1
  98. package/dist/shell/app-shell.d.ts +0 -10
  99. package/dist/shell/app-shell.js +1 -7
  100. package/dist/shell/app-shell.js.map +1 -1
  101. package/dist/shell/company-switcher.d.ts +1 -1
  102. package/dist/shell/company-switcher.js.map +1 -1
  103. package/dist/shell/dev-menu.d.ts +1 -1
  104. package/dist/shell/dev-menu.js.map +1 -1
  105. package/dist/shell/top-bar-parts-labels.d.ts +1 -1
  106. package/dist/shell/top-bar-parts-labels.js.map +1 -1
  107. package/dist/shell.d.ts +7 -29
  108. package/dist/shell.js +12 -42
  109. package/dist/shell.js.map +1 -1
  110. package/dist/sync.d.ts +2 -6
  111. package/dist/sync.js +2 -15
  112. package/dist/sync.js.map +1 -1
  113. package/dist/theme/chart-palette.d.ts +0 -5
  114. package/dist/theme/chart-palette.js +0 -2
  115. package/dist/theme/chart-palette.js.map +1 -1
  116. package/package.json +1 -1
  117. package/src/billing/cancel-subscription.tsx +5 -16
  118. package/src/billing/plan-card.tsx +7 -24
  119. package/src/billing/plan-switch.tsx +5 -16
  120. package/src/chart.ts +62 -13
  121. package/src/components/date-field.tsx +1 -1
  122. package/src/components/date-picker.tsx +0 -1
  123. package/src/components/date-range-picker.tsx +6 -22
  124. package/src/components/nav-pills.tsx +1 -1
  125. package/src/components/series-chart-axes.ts +6 -1
  126. package/src/components/series-chart.tsx +78 -21
  127. package/src/components/treemap-labels.ts +11 -3
  128. package/src/components/treemap.tsx +65 -12
  129. package/src/data-table.ts +1 -11
  130. package/src/demo/demo-countdown.ts +3 -8
  131. package/src/feedback/feedback-mutation.ts +12 -33
  132. package/src/feedback/feedback-public-list.tsx +1 -7
  133. package/src/feedback/feedback-row-detail-labels.ts +0 -8
  134. package/src/feedback/feedback-row-detail.tsx +8 -58
  135. package/src/feedback/feedback-status-undo.ts +4 -18
  136. package/src/feedback/feedback-thread.tsx +0 -10
  137. package/src/feedback.ts +89 -48
  138. package/src/i18n/defaults.ts +0 -4
  139. package/src/i18n/german.ts +2 -19
  140. package/src/i18n/kit-labels.tsx +5 -14
  141. package/src/i18n/locales/es.ts +2 -19
  142. package/src/i18n/locales/fr.ts +2 -19
  143. package/src/i18n/locales/hu.ts +2 -19
  144. package/src/i18n/locales/it.ts +2 -20
  145. package/src/i18n/locales/zh.ts +2 -19
  146. package/src/i18n/review.ts +9 -4
  147. package/src/i18n/shared-labels.ts +0 -1
  148. package/src/index.ts +30 -112
  149. package/src/rhf/fields.tsx +2 -2
  150. package/src/search/search-index.ts +0 -15
  151. package/src/search.ts +8 -8
  152. package/src/shell/account-menu-language.tsx +7 -27
  153. package/src/shell/account-menu-text-size.tsx +13 -32
  154. package/src/shell/app-shell.tsx +0 -13
  155. package/src/shell/company-switcher.tsx +1 -1
  156. package/src/shell/dev-menu.tsx +1 -1
  157. package/src/shell/top-bar-parts-labels.ts +1 -1
  158. package/src/shell.ts +17 -44
  159. package/src/sync.ts +2 -15
  160. package/src/theme/chart-palette.ts +0 -2
  161. package/tokens.css +4 -4
  162. package/dist/billing/dialog-close.d.ts +0 -29
  163. package/dist/billing/dialog-close.js +0 -8
  164. package/dist/billing/dialog-close.js.map +0 -1
  165. package/dist/components/field-sync-labels.d.ts +0 -3
  166. package/dist/components/field-sync-labels.js +0 -12
  167. package/dist/components/field-sync-labels.js.map +0 -1
  168. package/dist/components/field-sync.d.ts +0 -186
  169. package/dist/components/field-sync.js +0 -269
  170. package/dist/components/field-sync.js.map +0 -1
  171. package/dist/components/section-nav.d.ts +0 -44
  172. package/dist/components/section-nav.js +0 -33
  173. package/dist/components/section-nav.js.map +0 -1
  174. package/dist/components/sign-chip-labels.d.ts +0 -3
  175. package/dist/components/sign-chip-labels.js +0 -11
  176. package/dist/components/sign-chip-labels.js.map +0 -1
  177. package/dist/components/sign-chip.d.ts +0 -77
  178. package/dist/components/sign-chip.js +0 -47
  179. package/dist/components/sign-chip.js.map +0 -1
  180. package/dist/lib/isin.d.ts +0 -38
  181. package/dist/lib/isin.js +0 -36
  182. package/dist/lib/isin.js.map +0 -1
  183. package/dist/shell/role-switcher.d.ts +0 -28
  184. package/dist/shell/role-switcher.js +0 -31
  185. package/dist/shell/role-switcher.js.map +0 -1
  186. package/src/billing/dialog-close.ts +0 -34
  187. package/src/components/field-sync-labels.ts +0 -14
  188. package/src/components/field-sync.tsx +0 -504
  189. package/src/components/section-nav.tsx +0 -72
  190. package/src/components/sign-chip-labels.ts +0 -13
  191. package/src/components/sign-chip.tsx +0 -133
  192. package/src/lib/isin.ts +0 -72
  193. package/src/shell/role-switcher.tsx +0 -53
@@ -5,7 +5,6 @@ import { DEFAULT_MONTH_PICKER_LABELS } from "../components/month-picker-labels";
5
5
  import { DEFAULT_PAGE_CONTENTS_LABELS } from "../components/page-contents-labels";
6
6
  import { DEFAULT_POPOVER_LABELS } from "../components/popover-labels";
7
7
  import { DEFAULT_CHIP_INPUT_LABELS } from "../components/chip-labels";
8
- import { DEFAULT_FIELD_SYNC_LABELS } from "../components/field-sync-labels";
9
8
  import { DEFAULT_CHARACTER_COUNT_LABELS, DEFAULT_PASSWORD_REVEAL_LABELS } from "../components/field-base-labels";
10
9
  import { DEFAULT_TABS_LABELS } from "../components/tabs-labels";
11
10
  import { DEFAULT_WIZARD_LABELS } from "../wizard/wizard-labels";
@@ -109,7 +108,6 @@ import { DEFAULT_COUNTRY_SELECT_LABELS } from "../components/country-select-labe
109
108
  import { DEFAULT_INLINE_EDIT_LABELS } from "../components/inline-edit-field-labels";
110
109
  import { DEFAULT_IBAN_INPUT_LABELS } from "../components/iban-input-labels";
111
110
  import { DEFAULT_PHONE_INPUT_LABELS } from "../components/phone-input-labels";
112
- import { DEFAULT_SIGN_CHIP_LABELS } from "../components/sign-chip-labels";
113
111
  import { DEFAULT_COLUMN_MAPPER_LABELS } from "../components/column-mapper-labels";
114
112
  import { DEFAULT_NOTIFICATIONS_LABELS } from "../notifications/notifications-labels";
115
113
  import {
@@ -157,7 +155,6 @@ export const DEFAULT_UI_KIT_LABELS: UiKitLabels = {
157
155
  calculator: DEFAULT_CALCULATOR_LABELS,
158
156
  currency: DEFAULT_CURRENCY_LABELS,
159
157
  chipInput: DEFAULT_CHIP_INPUT_LABELS,
160
- fieldSync: DEFAULT_FIELD_SYNC_LABELS,
161
158
  passwordReveal: DEFAULT_PASSWORD_REVEAL_LABELS,
162
159
  tabs: DEFAULT_TABS_LABELS,
163
160
  appShell: DEFAULT_APP_SHELL_LABELS,
@@ -259,7 +256,6 @@ export const DEFAULT_UI_KIT_LABELS: UiKitLabels = {
259
256
  inlineEdit: DEFAULT_INLINE_EDIT_LABELS,
260
257
  ibanInput: DEFAULT_IBAN_INPUT_LABELS,
261
258
  phoneInput: DEFAULT_PHONE_INPUT_LABELS,
262
- signChip: DEFAULT_SIGN_CHIP_LABELS,
263
259
  columnMapper: DEFAULT_COLUMN_MAPPER_LABELS,
264
260
  notifications: DEFAULT_NOTIFICATIONS_LABELS,
265
261
  adminArea: DEFAULT_ADMIN_AREA_LABELS,
@@ -196,9 +196,6 @@ export function germanLabels(numberLocale: string): UiKitLabels {
196
196
  outcome: "Ergebnis",
197
197
  replies: "Antworten",
198
198
  resolvedAt: (date) => `Erledigt am: ${date}`,
199
- outcomeAdd: "Ergebnis hinzufügen",
200
- outcomeUpdate: "Aktualisieren",
201
- outcomePlaceholder: "Was wurde umgesetzt, entschieden oder warum nicht.",
202
199
  rework: "Nacharbeit",
203
200
  reworkTitle: "Zur Nacharbeit senden",
204
201
  reworkSend: "Nacharbeit senden",
@@ -513,13 +510,6 @@ export function germanLabels(numberLocale: string): UiKitLabels {
513
510
  noResults: "Keine passenden Symbole",
514
511
  resultCount: (count) => `${n(count)} ${count === 1 ? "Symbol" : "Symbole"}`,
515
512
  },
516
- fieldSync: {
517
- synced: "Gespeichert",
518
- edited: "Nicht gespeicherte Änderungen",
519
- pending: "Wird gespeichert…",
520
- error: "Speichern fehlgeschlagen",
521
- retry: "Erneut versuchen",
522
- },
523
513
  passwordReveal: {
524
514
  show: "Passwort anzeigen",
525
515
  hide: "Passwort verbergen",
@@ -553,7 +543,6 @@ export function germanLabels(numberLocale: string): UiKitLabels {
553
543
  palette: "Darstellungsvorlage",
554
544
  language: "Sprache",
555
545
  languageCurrent: (name) => `Sprache wählen, aktuell: ${name}`,
556
- switchRole: "Rolle wechseln",
557
546
  role: (value) => `Rolle: ${value}`,
558
547
  },
559
548
  pickerSheet: {
@@ -755,8 +744,8 @@ export function germanLabels(numberLocale: string): UiKitLabels {
755
744
  legend: "Kategorien",
756
745
  },
757
746
  treemap: {
758
- tile: (name, value, share) => `${name}: ${value} (${share})`,
759
- group: (name, value, share) => `${name}, Gruppe: ${value} (${share})`,
747
+ tile: (name, value, share) => `${name}: ${value}${share ? ` (${share})` : ""}`,
748
+ group: (name, value, share) => `${name}, Gruppe: ${value}${share ? ` (${share})` : ""}`,
760
749
  inGroup: (name, group) => `${name}, in ${group}`,
761
750
  },
762
751
  confirmDialog: {
@@ -1569,12 +1558,6 @@ export function germanLabels(numberLocale: string): UiKitLabels {
1569
1558
  countryCode: "Ländervorwahl",
1570
1559
  other: "Andere",
1571
1560
  },
1572
- signChip: {
1573
- outflow: "Ausgabe",
1574
- inflow: "Einnahme",
1575
- direction: (current, next) => `Richtung: ${current} – zu ${next} wechseln`,
1576
- switchTo: (next) => `Zu ${next} wechseln`,
1577
- },
1578
1561
  columnMapper: {
1579
1562
  paste: "Tabelle einfügen",
1580
1563
  pasteHint:
@@ -20,7 +20,6 @@ import type { MiniCalendarLabels, WeekDay } from "../components/mini-calendar";
20
20
  import type { CalendarHeatmapLabels } from "../components/calendar-heatmap";
21
21
  import type { PopoverLabels } from "../components/popover";
22
22
  import type { ChipInputLabels } from "../components/chip";
23
- import type { FieldSyncLabels } from "../components/field-sync";
24
23
  import type { CharacterCountLabels, PasswordRevealLabels } from "../components/field-base";
25
24
  import type { TabsLabels } from "../components/tabs";
26
25
  import type { WizardLabels } from "../wizard/types";
@@ -46,7 +45,7 @@ import type { FilePickerLabels } from "../components/file-button";
46
45
  import type { MeasuredGridLabels } from "../components/measured-grid";
47
46
  import type { FeedbackAttachmentFieldLabels } from "../feedback/feedback-attachment";
48
47
  import type { FeedbackDialogTextLabels } from "../feedback/feedback-dialog";
49
- import type { FeedbackComposerLabels, FeedbackThreadLabels } from "../feedback/feedback-thread";
48
+ import type { ChatComposerLabels, FeedbackThreadLabels } from "../feedback/feedback-thread";
50
49
  import type { FeedbackCategoryLabels, FeedbackStatusLabels, FeedbackToastLabels } from "../feedback/feedback-labels";
51
50
  import type { FeedbackMenuLabels } from "../feedback/feedback-menu";
52
51
  import type { FeedbackPublicLabels } from "../feedback/feedback-public-labels";
@@ -114,7 +113,6 @@ import type { CountrySelectLabels } from "../components/country-select";
114
113
  import type { InlineEditLabels } from "../components/inline-edit-field";
115
114
  import type { IbanInputLabels } from "../components/iban-input";
116
115
  import type { PhoneInputLabels } from "../components/phone-input";
117
- import type { SignChipLabels } from "../components/sign-chip";
118
116
  import type { ColumnMapperLabels } from "../components/column-mapper";
119
117
  import type { NotificationsLabels } from "../notifications/notifications-labels";
120
118
  import type { AdminAreaLabels } from "../admin/admin-area-labels";
@@ -284,10 +282,7 @@ export interface TopBarLabels {
284
282
  /** 0.49 KIT-10: the language menu's trigger, given the current language's name —
285
283
  * "Choose language, current: Deutsch". */
286
284
  languageCurrent: (name: string) => string;
287
- /** RoleSwitcher's name, and nothing else reads it (DevMenu's flask is `topBarParts.dev`).
288
- * @deprecated 0.52 — none: it goes with RoleSwitcher (MOD-5); removed in 0.53. */
289
- switchRole: string;
290
- /** The role switcher's tooltip, given the active role's name. */
285
+ /** The dev flask's role, given the active role's name (`DevMenu`'s name ends with it). */
291
286
  role: (value: string) => string;
292
287
  }
293
288
 
@@ -322,8 +317,6 @@ export interface UiKitLabels {
322
317
  calculator: CalculatorLabels;
323
318
  currency: CurrencyLabels;
324
319
  chipInput: ChipInputLabels;
325
- /** @deprecated 0.52 — none: it goes with the FieldSync family (MOD-5); removed in 0.53. */
326
- fieldSync: FieldSyncLabels;
327
320
  passwordReveal: PasswordRevealLabels;
328
321
  tabs: TabsLabels;
329
322
  appShell: AppShellLabels;
@@ -355,10 +348,11 @@ export interface UiKitLabels {
355
348
  filePicker: FilePickerLabels;
356
349
  measuredGrid: MeasuredGridLabels;
357
350
  feedbackAttachment: FeedbackAttachmentFieldLabels;
358
- /** 0.12.0: `FeedbackDialog`'s own strings; `FeedbackThread` / `FeedbackComposer`. */
351
+ /** 0.12.0: `FeedbackDialog`'s own strings; `FeedbackThread` / `ChatComposer` (the
352
+ * namespace keeps the composer's 0.12 name). */
359
353
  feedbackDialog: FeedbackDialogTextLabels;
360
354
  feedbackThread: FeedbackThreadLabels;
361
- feedbackComposer: FeedbackComposerLabels;
355
+ feedbackComposer: ChatComposerLabels;
362
356
  /** 0.27.0: the feedback harmonisation (docs/feedback-harmonization.md §4) — a report's
363
357
  * status and category words, keyed by the enum value; the toasts a feedback page
364
358
  * shows; `FeedbackMenu`; `FeedbackContextBox`; the two pages' table; the row detail.
@@ -487,9 +481,6 @@ export interface UiKitLabels {
487
481
  ibanInput: IbanInputLabels;
488
482
  /** 0.22.0: `PhoneInput`'s country-code select. */
489
483
  phoneInput: PhoneInputLabels;
490
- /** 0.22.0: `SignChip` — the outflow / inflow toggle beside an amount.
491
- * @deprecated 0.52 — none: it goes with SignChip (MOD-5); removed in 0.53. */
492
- signChip: SignChipLabels;
493
484
  /** 0.23.0: `ColumnMapper` / `ColumnRoleTable` — a pasted or dropped table, a role per
494
485
  * column. */
495
486
  columnMapper: ColumnMapperLabels;
@@ -188,9 +188,6 @@ export function uiKitLabelsEs(numberLocale = "es-ES"): UiKitLabels {
188
188
  outcome: "Resultado",
189
189
  replies: "Respuestas",
190
190
  resolvedAt: (date) => `Resuelto el ${date}`,
191
- outcomeAdd: "Añadir resultado",
192
- outcomeUpdate: "Actualizar",
193
- outcomePlaceholder: "Qué se ha hecho o decidido, o por qué no se abordará.",
194
191
  rework: "Corrección",
195
192
  reworkTitle: "Devolver para corrección",
196
193
  reworkSend: "Solicitar corrección",
@@ -502,13 +499,6 @@ export function uiKitLabelsEs(numberLocale = "es-ES"): UiKitLabels {
502
499
  noResults: "Ningún icono coincide",
503
500
  resultCount: (count) => `${n(count)} ${plural(count, "icono", "iconos")}`,
504
501
  },
505
- fieldSync: {
506
- synced: "Guardado",
507
- edited: "Cambios sin guardar",
508
- pending: "Guardando…",
509
- error: "No se pudo guardar",
510
- retry: "Reintentar",
511
- },
512
502
  passwordReveal: {
513
503
  show: "Mostrar contraseña",
514
504
  hide: "Ocultar contraseña",
@@ -541,7 +531,6 @@ export function uiKitLabelsEs(numberLocale = "es-ES"): UiKitLabels {
541
531
  palette: "Ajuste de apariencia",
542
532
  language: "Idioma",
543
533
  languageCurrent: (name) => `Elegir idioma, actual: ${name}`,
544
- switchRole: "Cambiar de rol",
545
534
  role: (value) => `Rol: ${value}`,
546
535
  },
547
536
  pickerSheet: {
@@ -743,8 +732,8 @@ export function uiKitLabelsEs(numberLocale = "es-ES"): UiKitLabels {
743
732
  legend: "Categorías",
744
733
  },
745
734
  treemap: {
746
- tile: (name, value, share) => `${name}: ${value} (${share})`,
747
- group: (name, value, share) => `${name}, grupo: ${value} (${share})`,
735
+ tile: (name, value, share) => `${name}: ${value}${share ? ` (${share})` : ""}`,
736
+ group: (name, value, share) => `${name}, grupo: ${value}${share ? ` (${share})` : ""}`,
748
737
  inGroup: (name, group) => `${name}, en ${group}`,
749
738
  },
750
739
  confirmDialog: {
@@ -1534,12 +1523,6 @@ export function uiKitLabelsEs(numberLocale = "es-ES"): UiKitLabels {
1534
1523
  countryCode: "Prefijo del país",
1535
1524
  other: "Otro",
1536
1525
  },
1537
- signChip: {
1538
- outflow: "Salida",
1539
- inflow: "Entrada",
1540
- direction: (current, next) => `Dirección: ${current} — cambiar a ${next}`,
1541
- switchTo: (next) => `Cambiar a ${next}`,
1542
- },
1543
1526
  columnMapper: {
1544
1527
  paste: "Pegar una tabla",
1545
1528
  pasteHint: "Copie las filas de una hoja de cálculo y péguelas aquí, o suelte un archivo CSV o de texto.",
@@ -189,9 +189,6 @@ export function uiKitLabelsFr(numberLocale = "fr-FR"): UiKitLabels {
189
189
  outcome: "Résultat",
190
190
  replies: "Réponses",
191
191
  resolvedAt: (date) => `Résolu le ${date}`,
192
- outcomeAdd: "Ajouter un résultat",
193
- outcomeUpdate: "Mettre à jour",
194
- outcomePlaceholder: "Ce qui a été fait ou décidé, ou pourquoi ce point ne sera pas traité.",
195
192
  rework: "Reprise",
196
193
  reworkTitle: "Renvoyer pour reprise",
197
194
  reworkSend: "Demander la reprise",
@@ -508,13 +505,6 @@ export function uiKitLabelsFr(numberLocale = "fr-FR"): UiKitLabels {
508
505
  noResults: "Aucune icône ne correspond",
509
506
  resultCount: (count) => `${n(count)} ${plural(count, "icône", "icônes")}`,
510
507
  },
511
- fieldSync: {
512
- synced: "Enregistré",
513
- edited: "Modifications non enregistrées",
514
- pending: "Enregistrement…",
515
- error: "Échec de l’enregistrement",
516
- retry: "Réessayer",
517
- },
518
508
  passwordReveal: {
519
509
  show: "Afficher le mot de passe",
520
510
  hide: "Masquer le mot de passe",
@@ -547,7 +537,6 @@ export function uiKitLabelsFr(numberLocale = "fr-FR"): UiKitLabels {
547
537
  palette: "Préréglage d’apparence",
548
538
  language: "Langue",
549
539
  languageCurrent: (name) => `Choisir la langue, actuelle\u00a0: ${name}`,
550
- switchRole: "Changer de rôle",
551
540
  role: (value) => `Rôle\u00a0: ${value}`,
552
541
  },
553
542
  pickerSheet: {
@@ -754,8 +743,8 @@ export function uiKitLabelsFr(numberLocale = "fr-FR"): UiKitLabels {
754
743
  legend: "Catégories",
755
744
  },
756
745
  treemap: {
757
- tile: (name, value, share) => `${name}\u00a0: ${value} (${share})`,
758
- group: (name, value, share) => `${name}, groupe\u00a0: ${value} (${share})`,
746
+ tile: (name, value, share) => `${name}\u00a0: ${value}${share ? ` (${share})` : ""}`,
747
+ group: (name, value, share) => `${name}, groupe\u00a0: ${value}${share ? ` (${share})` : ""}`,
759
748
  inGroup: (name, group) => `${name}, dans ${group}`,
760
749
  },
761
750
  confirmDialog: {
@@ -1561,12 +1550,6 @@ export function uiKitLabelsFr(numberLocale = "fr-FR"): UiKitLabels {
1561
1550
  countryCode: "Indicatif du pays",
1562
1551
  other: "Autre",
1563
1552
  },
1564
- signChip: {
1565
- outflow: "Sortie",
1566
- inflow: "Entrée",
1567
- direction: (current, next) => `Sens\u00a0: ${current} — passer à ${next}`,
1568
- switchTo: (next) => `Passer à ${next}`,
1569
- },
1570
1553
  columnMapper: {
1571
1554
  paste: "Coller un tableau",
1572
1555
  pasteHint: "Copiez les lignes d’un tableur et collez-les ici, ou déposez un fichier CSV ou texte.",
@@ -186,9 +186,6 @@ export function uiKitLabelsHu(numberLocale = "hu-HU"): UiKitLabels {
186
186
  outcome: "Eredmény",
187
187
  replies: "Válaszok",
188
188
  resolvedAt: (date) => `Lezárva: ${date}`,
189
- outcomeAdd: "Eredmény hozzáadása",
190
- outcomeUpdate: "Frissítés",
191
- outcomePlaceholder: "Mi készült el, mi a döntés, vagy miért nem valósul meg.",
192
189
  rework: "Átdolgozás",
193
190
  reworkTitle: "Visszaküldés átdolgozásra",
194
191
  reworkSend: "Átdolgozás kérése",
@@ -499,13 +496,6 @@ export function uiKitLabelsHu(numberLocale = "hu-HU"): UiKitLabels {
499
496
  noResults: "Nincs megfelelő ikon",
500
497
  resultCount: (count) => `${n(count)} ikon`,
501
498
  },
502
- fieldSync: {
503
- synced: "Mentve",
504
- edited: "Nem mentett módosítások",
505
- pending: "Mentés…",
506
- error: "A mentés nem sikerült",
507
- retry: "Újra",
508
- },
509
499
  passwordReveal: {
510
500
  show: "Jelszó megjelenítése",
511
501
  hide: "Jelszó elrejtése",
@@ -539,7 +529,6 @@ export function uiKitLabelsHu(numberLocale = "hu-HU"): UiKitLabels {
539
529
  palette: "Megjelenési séma",
540
530
  language: "Nyelv",
541
531
  languageCurrent: (name) => `Nyelv kiválasztása, jelenlegi: ${name}`,
542
- switchRole: "Szerepkör váltása",
543
532
  role: (value) => `Szerepkör: ${value}`,
544
533
  },
545
534
  pickerSheet: {
@@ -742,10 +731,10 @@ export function uiKitLabelsHu(numberLocale = "hu-HU"): UiKitLabels {
742
731
  legend: "Kategóriák",
743
732
  },
744
733
  treemap: {
745
- tile: (name, value, share) => `${name}: ${value} (${share})`,
734
+ tile: (name, value, share) => `${name}: ${value}${share ? ` (${share})` : ""}`,
746
735
  // Appositive, not a case ending: "-ban/-ben" and the article follow the name's own
747
736
  // sounds, which a template cannot know.
748
- group: (name, value, share) => `${name} csoport: ${value} (${share})`,
737
+ group: (name, value, share) => `${name} csoport: ${value}${share ? ` (${share})` : ""}`,
749
738
  inGroup: (name, group) => `${name}, ${group} csoport`,
750
739
  },
751
740
  confirmDialog: {
@@ -1537,12 +1526,6 @@ export function uiKitLabelsHu(numberLocale = "hu-HU"): UiKitLabels {
1537
1526
  countryCode: "Országhívó szám",
1538
1527
  other: "Egyéb",
1539
1528
  },
1540
- signChip: {
1541
- outflow: "Kiadás",
1542
- inflow: "Bevétel",
1543
- direction: (current, next) => `Irány: ${current} – váltás erre: ${next}`,
1544
- switchTo: (next) => `Váltás erre: ${next}`,
1545
- },
1546
1529
  columnMapper: {
1547
1530
  paste: "Táblázat beillesztése",
1548
1531
  pasteHint:
@@ -188,9 +188,6 @@ export function uiKitLabelsIt(numberLocale = "it-IT"): UiKitLabels {
188
188
  outcome: "Esito",
189
189
  replies: "Risposte",
190
190
  resolvedAt: (date) => `Risolto il ${date}`,
191
- outcomeAdd: "Aggiungi esito",
192
- outcomeUpdate: "Aggiorna",
193
- outcomePlaceholder: "Cosa è stato fatto o deciso, oppure perché non verrà affrontato.",
194
191
  rework: "Rielaborazione",
195
192
  reworkTitle: "Rimanda in rielaborazione",
196
193
  reworkSend: "Richiedi rielaborazione",
@@ -504,13 +501,6 @@ export function uiKitLabelsIt(numberLocale = "it-IT"): UiKitLabels {
504
501
  noResults: "Nessuna icona corrispondente",
505
502
  resultCount: (count) => `${n(count)} ${plural(count, "icona", "icone")}`,
506
503
  },
507
- fieldSync: {
508
- synced: "Salvato",
509
- edited: "Modifiche non salvate",
510
- pending: "Salvataggio…",
511
- error: "Impossibile salvare",
512
- retry: "Riprova",
513
- },
514
504
  passwordReveal: {
515
505
  show: "Mostra password",
516
506
  hide: "Nascondi password",
@@ -543,7 +533,6 @@ export function uiKitLabelsIt(numberLocale = "it-IT"): UiKitLabels {
543
533
  palette: "Preset di aspetto",
544
534
  language: "Lingua",
545
535
  languageCurrent: (name) => `Scegli la lingua, attuale: ${name}`,
546
- switchRole: "Cambia ruolo",
547
536
  role: (value) => `Ruolo: ${value}`,
548
537
  },
549
538
  pickerSheet: {
@@ -745,8 +734,8 @@ export function uiKitLabelsIt(numberLocale = "it-IT"): UiKitLabels {
745
734
  legend: "Categorie",
746
735
  },
747
736
  treemap: {
748
- tile: (name, value, share) => `${name}: ${value} (${share})`,
749
- group: (name, value, share) => `${name}, gruppo: ${value} (${share})`,
737
+ tile: (name, value, share) => `${name}: ${value}${share ? ` (${share})` : ""}`,
738
+ group: (name, value, share) => `${name}, gruppo: ${value}${share ? ` (${share})` : ""}`,
750
739
  inGroup: (name, group) => `${name}, in ${group}`,
751
740
  },
752
741
  confirmDialog: {
@@ -1544,13 +1533,6 @@ export function uiKitLabelsIt(numberLocale = "it-IT"): UiKitLabels {
1544
1533
  countryCode: "Prefisso internazionale",
1545
1534
  other: "Altro",
1546
1535
  },
1547
- signChip: {
1548
- outflow: "Uscita",
1549
- inflow: "Entrata",
1550
- // "premere per…": an instruction without a tu imperative, as the kit's Italian is formal.
1551
- direction: (current, next) => `Direzione: ${current} – premere per passare a ${next}`,
1552
- switchTo: (next) => `Passa a ${next}`,
1553
- },
1554
1536
  columnMapper: {
1555
1537
  paste: "Incolla una tabella",
1556
1538
  pasteHint: "Copi le righe da un foglio di calcolo e le incolli qui, oppure trascini un file CSV o di testo.",
@@ -179,9 +179,6 @@ export function uiKitLabelsZh(numberLocale = "zh-CN"): UiKitLabels {
179
179
  outcome: "处理结果",
180
180
  replies: "回复",
181
181
  resolvedAt: (date) => `解决日期:${date}`,
182
- outcomeAdd: "添加处理结果",
183
- outcomeUpdate: "更新",
184
- outcomePlaceholder: "做了什么、作出了什么决定,或为什么不予处理。",
185
182
  rework: "返工",
186
183
  reworkTitle: "退回返工",
187
184
  reworkSend: "提交返工",
@@ -489,13 +486,6 @@ export function uiKitLabelsZh(numberLocale = "zh-CN"): UiKitLabels {
489
486
  noResults: "没有匹配的图标",
490
487
  resultCount: (count) => `${n(count)} 个图标`,
491
488
  },
492
- fieldSync: {
493
- synced: "已保存",
494
- edited: "有未保存的更改",
495
- pending: "正在保存…",
496
- error: "保存失败",
497
- retry: "重试",
498
- },
499
489
  passwordReveal: {
500
490
  show: "显示密码",
501
491
  hide: "隐藏密码",
@@ -529,7 +519,6 @@ export function uiKitLabelsZh(numberLocale = "zh-CN"): UiKitLabels {
529
519
  palette: "外观预设",
530
520
  language: "语言",
531
521
  languageCurrent: (name) => `选择语言,当前:${name}`,
532
- switchRole: "切换角色",
533
522
  role: (value) => `角色:${value}`,
534
523
  },
535
524
  pickerSheet: {
@@ -726,8 +715,8 @@ export function uiKitLabelsZh(numberLocale = "zh-CN"): UiKitLabels {
726
715
  legend: "类别",
727
716
  },
728
717
  treemap: {
729
- tile: (name, value, share) => `${name}:${value}(${share})`,
730
- group: (name, value, share) => `${name}(组):${value}(${share})`,
718
+ tile: (name, value, share) => `${name}:${value}${share ? `(${share})` : ""}`,
719
+ group: (name, value, share) => `${name}(组):${value}${share ? `(${share})` : ""}`,
731
720
  inGroup: (name, group) => `${name},属于${group}`,
732
721
  },
733
722
  confirmDialog: {
@@ -1485,12 +1474,6 @@ export function uiKitLabelsZh(numberLocale = "zh-CN"): UiKitLabels {
1485
1474
  countryCode: "国家/地区代码",
1486
1475
  other: "其他",
1487
1476
  },
1488
- signChip: {
1489
- outflow: "支出",
1490
- inflow: "收入",
1491
- direction: (current, next) => `方向:${current},切换为${next}`,
1492
- switchTo: (next) => `切换为${next}`,
1493
- },
1494
1477
  columnMapper: {
1495
1478
  paste: "粘贴表格",
1496
1479
  pasteHint: "从电子表格中复制行并粘贴到此处,或拖放 CSV 或文本文件。",
@@ -163,8 +163,15 @@ export const KIT_LABEL_SAMPLES: Readonly<Record<string, readonly (readonly unkno
163
163
  "globalSearch.shortcut": [["{{keys}}"]],
164
164
  "pieChart.slice": [["{{label}}", "{{value}}", "{{percent}}"]],
165
165
  "pieChart.sliceShare": [["{{label}}", "{{percent}}"]],
166
- "treemap.tile": [["{{name}}", "{{value}}", "{{share}}"]],
167
- "treemap.group": [["{{name}}", "{{value}}", "{{share}}"]],
166
+ // The second form is `shareInValue` (0.53): no share, and nothing round it.
167
+ "treemap.tile": [
168
+ ["{{name}}", "{{value}}", "{{share}}"],
169
+ ["{{name}}", "{{value}}", ""],
170
+ ],
171
+ "treemap.group": [
172
+ ["{{name}}", "{{value}}", "{{share}}"],
173
+ ["{{name}}", "{{value}}", ""],
174
+ ],
168
175
  "treemap.inGroup": [["{{name}}", "{{group}}"]],
169
176
  "sparkline.rising": [["{{first}}", "{{last}}"]],
170
177
  "sparkline.falling": [["{{first}}", "{{last}}"]],
@@ -284,8 +291,6 @@ export const KIT_LABEL_SAMPLES: Readonly<Record<string, readonly (readonly unkno
284
291
  "inlineEdit.edit": [["{{label}}"]],
285
292
  "ibanInput.country": [["{{code}}"]],
286
293
  "ibanInput.length": [[20, 21]],
287
- "signChip.direction": [["{{current}}", "{{next}}"]],
288
- "signChip.switchTo": [["{{next}}"]],
289
294
  "rowActions.actionsFor": [["{{name}}"]],
290
295
  "rowActions.confirmTitle": [["{{action}}", "{{name}}"], ["{{action}}"]],
291
296
  "columnMapper.readError": [["{{name}}"]],
@@ -106,7 +106,6 @@ export const DEFAULT_TOP_BAR_LABELS: TopBarLabels = {
106
106
  palette: "Appearance preset",
107
107
  language: "Language",
108
108
  languageCurrent: (name) => `Choose language, current: ${name}`,
109
- switchRole: "Switch role",
110
109
  role: (value) => `Role: ${value}`,
111
110
  };
112
111