@refinitiv-ui/phrasebook 5.0.0-beta.3 → 5.0.0-dev.204

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 (136) hide show
  1. package/CHANGELOG.md +93 -5
  2. package/lib/index.d.ts +2 -2
  3. package/lib/index.js +1 -2
  4. package/lib/locale/de/calendar.d.ts +18 -0
  5. package/lib/locale/de/calendar.js +20 -0
  6. package/lib/locale/de/color-dialog.d.ts +1 -1
  7. package/lib/locale/de/color-dialog.js +2 -3
  8. package/lib/locale/de/combo-box.d.ts +1 -1
  9. package/lib/locale/de/combo-box.js +3 -4
  10. package/lib/locale/de/dialog.d.ts +1 -1
  11. package/lib/locale/de/dialog.js +2 -3
  12. package/lib/locale/de/pagination.d.ts +2 -2
  13. package/lib/locale/de/pagination.js +5 -14
  14. package/lib/locale/de/password-field.d.ts +5 -0
  15. package/lib/locale/de/password-field.js +7 -0
  16. package/lib/locale/de/search-field.d.ts +4 -0
  17. package/lib/locale/de/search-field.js +6 -0
  18. package/lib/locale/de/shared.js +1 -2
  19. package/lib/locale/de/time-picker.d.ts +10 -0
  20. package/lib/locale/de/time-picker.js +12 -0
  21. package/lib/locale/de/tree-select.d.ts +1 -1
  22. package/lib/locale/de/tree-select.js +4 -5
  23. package/lib/locale/en/calendar.d.ts +18 -0
  24. package/lib/locale/en/calendar.js +20 -0
  25. package/lib/locale/en/color-dialog.d.ts +1 -1
  26. package/lib/locale/en/color-dialog.js +2 -3
  27. package/lib/locale/en/combo-box.d.ts +1 -1
  28. package/lib/locale/en/combo-box.js +2 -3
  29. package/lib/locale/en/dialog.d.ts +1 -1
  30. package/lib/locale/en/dialog.js +2 -3
  31. package/lib/locale/en/pagination.d.ts +2 -2
  32. package/lib/locale/en/pagination.js +5 -14
  33. package/lib/locale/en/password-field.d.ts +5 -0
  34. package/lib/locale/en/password-field.js +7 -0
  35. package/lib/locale/en/search-field.d.ts +4 -0
  36. package/lib/locale/en/search-field.js +6 -0
  37. package/lib/locale/en/shared.js +1 -2
  38. package/lib/locale/en/time-picker.d.ts +10 -0
  39. package/lib/locale/en/time-picker.js +12 -0
  40. package/lib/locale/en/tree-select.d.ts +1 -1
  41. package/lib/locale/en/tree-select.js +4 -5
  42. package/lib/locale/ja/calendar.d.ts +18 -0
  43. package/lib/locale/ja/calendar.js +20 -0
  44. package/lib/locale/ja/color-dialog.d.ts +1 -1
  45. package/lib/locale/ja/color-dialog.js +2 -3
  46. package/lib/locale/ja/combo-box.d.ts +1 -1
  47. package/lib/locale/ja/combo-box.js +2 -3
  48. package/lib/locale/ja/dialog.d.ts +1 -1
  49. package/lib/locale/ja/dialog.js +2 -3
  50. package/lib/locale/ja/pagination.d.ts +2 -2
  51. package/lib/locale/ja/pagination.js +5 -14
  52. package/lib/locale/ja/password-field.d.ts +5 -0
  53. package/lib/locale/ja/password-field.js +7 -0
  54. package/lib/locale/ja/search-field.d.ts +4 -0
  55. package/lib/locale/ja/search-field.js +6 -0
  56. package/lib/locale/ja/shared.js +1 -2
  57. package/lib/locale/ja/time-picker.d.ts +10 -0
  58. package/lib/locale/ja/time-picker.js +12 -0
  59. package/lib/locale/ja/tree-select.d.ts +1 -1
  60. package/lib/locale/ja/tree-select.js +4 -5
  61. package/lib/locale/zh/calendar.d.ts +18 -0
  62. package/lib/locale/zh/calendar.js +20 -0
  63. package/lib/locale/zh/color-dialog.d.ts +1 -1
  64. package/lib/locale/zh/color-dialog.js +2 -3
  65. package/lib/locale/zh/combo-box.d.ts +1 -1
  66. package/lib/locale/zh/combo-box.js +2 -3
  67. package/lib/locale/zh/dialog.d.ts +1 -1
  68. package/lib/locale/zh/dialog.js +2 -3
  69. package/lib/locale/zh/pagination.d.ts +2 -2
  70. package/lib/locale/zh/pagination.js +5 -14
  71. package/lib/locale/zh/password-field.d.ts +5 -0
  72. package/lib/locale/zh/password-field.js +7 -0
  73. package/lib/locale/zh/search-field.d.ts +4 -0
  74. package/lib/locale/zh/search-field.js +6 -0
  75. package/lib/locale/zh/shared.js +1 -2
  76. package/lib/locale/zh/time-picker.d.ts +10 -0
  77. package/lib/locale/zh/time-picker.js +12 -0
  78. package/lib/locale/zh/tree-select.d.ts +1 -1
  79. package/lib/locale/zh/tree-select.js +4 -5
  80. package/lib/locale/zh-hant/calendar.d.ts +18 -0
  81. package/lib/locale/zh-hant/calendar.js +20 -0
  82. package/lib/locale/zh-hant/color-dialog.d.ts +1 -1
  83. package/lib/locale/zh-hant/color-dialog.js +2 -3
  84. package/lib/locale/zh-hant/combo-box.d.ts +1 -1
  85. package/lib/locale/zh-hant/combo-box.js +2 -3
  86. package/lib/locale/zh-hant/dialog.d.ts +1 -1
  87. package/lib/locale/zh-hant/dialog.js +2 -3
  88. package/lib/locale/zh-hant/pagination.d.ts +2 -2
  89. package/lib/locale/zh-hant/pagination.js +5 -14
  90. package/lib/locale/zh-hant/password-field.d.ts +5 -0
  91. package/lib/locale/zh-hant/password-field.js +7 -0
  92. package/lib/locale/zh-hant/search-field.d.ts +4 -0
  93. package/lib/locale/zh-hant/search-field.js +6 -0
  94. package/lib/locale/zh-hant/shared.js +1 -2
  95. package/lib/locale/zh-hant/time-picker.d.ts +10 -0
  96. package/lib/locale/zh-hant/time-picker.js +12 -0
  97. package/lib/locale/zh-hant/tree-select.d.ts +1 -1
  98. package/lib/locale/zh-hant/tree-select.js +4 -5
  99. package/lib/translation.d.ts +1 -1
  100. package/lib/translation.js +0 -1
  101. package/lib/types.js +0 -1
  102. package/package.json +117 -6
  103. package/tsconfig.tsbuildinfo +1 -0
  104. package/lib/index.js.map +0 -1
  105. package/lib/locale/de/color-dialog.js.map +0 -1
  106. package/lib/locale/de/combo-box.js.map +0 -1
  107. package/lib/locale/de/dialog.js.map +0 -1
  108. package/lib/locale/de/pagination.js.map +0 -1
  109. package/lib/locale/de/shared.js.map +0 -1
  110. package/lib/locale/de/tree-select.js.map +0 -1
  111. package/lib/locale/en/color-dialog.js.map +0 -1
  112. package/lib/locale/en/combo-box.js.map +0 -1
  113. package/lib/locale/en/dialog.js.map +0 -1
  114. package/lib/locale/en/pagination.js.map +0 -1
  115. package/lib/locale/en/shared.js.map +0 -1
  116. package/lib/locale/en/tree-select.js.map +0 -1
  117. package/lib/locale/ja/color-dialog.js.map +0 -1
  118. package/lib/locale/ja/combo-box.js.map +0 -1
  119. package/lib/locale/ja/dialog.js.map +0 -1
  120. package/lib/locale/ja/pagination.js.map +0 -1
  121. package/lib/locale/ja/shared.js.map +0 -1
  122. package/lib/locale/ja/tree-select.js.map +0 -1
  123. package/lib/locale/zh/color-dialog.js.map +0 -1
  124. package/lib/locale/zh/combo-box.js.map +0 -1
  125. package/lib/locale/zh/dialog.js.map +0 -1
  126. package/lib/locale/zh/pagination.js.map +0 -1
  127. package/lib/locale/zh/shared.js.map +0 -1
  128. package/lib/locale/zh/tree-select.js.map +0 -1
  129. package/lib/locale/zh-hant/color-dialog.js.map +0 -1
  130. package/lib/locale/zh-hant/combo-box.js.map +0 -1
  131. package/lib/locale/zh-hant/dialog.js.map +0 -1
  132. package/lib/locale/zh-hant/pagination.js.map +0 -1
  133. package/lib/locale/zh-hant/shared.js.map +0 -1
  134. package/lib/locale/zh-hant/tree-select.js.map +0 -1
  135. package/lib/translation.js.map +0 -1
  136. package/lib/types.js.map +0 -1
@@ -0,0 +1,20 @@
1
+ import { Phrasebook } from '../../translation.js';
2
+ const translations = {
3
+ PREVIOUS_MONTH: '前月',
4
+ NEXT_MONTH: '翌月',
5
+ PREVIOUS_YEAR: '前年',
6
+ NEXT_YEAR: '翌年',
7
+ PREVIOUS_DECADE: '前10年',
8
+ NEXT_DECADE: '翌10年',
9
+ YEAR_SELECTOR: 'クリックして年を選択',
10
+ DATE_SELECTOR: 'クリックして日付を選択',
11
+ CELL_LABEL: '{view, select, year {{value, date, ::yyyy}} month {{value, date, ::MMMM-yyyy}} other {{value, date, full}}}',
12
+ SELECTED: '選択済み: {view, select, year {{value, date, ::yyyy}} month {{value, date, ::MMMM-yyyy}} other {{value, date, full}}}',
13
+ NOW: '{view, select, year {Current year, {value, date, ::yyyy}} month {Current month, {value, date, ::MMMM-yyyy}} other {Today, {value, date, full}}}',
14
+ SELECTED_NOW: '選択済み: {view, select, year {current year, {value, date, ::yyyy}} month {current month, {value, date, ::MMMM-yyyy}} other {today, {value, date, full}}}',
15
+ SELECTED_DATE: 'Selected {count, plural, =1 {date is {value, date, full}} other {# dates, {value, date, full} and others}}',
16
+ SELECTED_RANGE: '選択された範囲は {from, date, full}{to, select, null {} other { to {to, date, full}}} からです',
17
+ SELECTED_NONE: '選択されていません。{range, select, true {date range} other {{multiple, select, true {dates} other {date}}}} を選択してください'
18
+ };
19
+ Phrasebook.define('ja', 'ef-calendar', translations);
20
+ export default translations;
@@ -1,4 +1,4 @@
1
- import './shared';
1
+ import './shared.js';
2
2
  declare const translations: {
3
3
  HEADER: string;
4
4
  RED: string;
@@ -1,6 +1,6 @@
1
1
  // Component docs https://elf.int.refinitiv.com/elements/color-dialog.html
2
- import { Phrasebook } from '../../';
3
- import './shared';
2
+ import { Phrasebook } from '../../translation.js';
3
+ import './shared.js';
4
4
  import dialogTranslations from './dialog';
5
5
  const translations = Object.assign(Object.assign({}, dialogTranslations), {
6
6
  // Dialog title
@@ -9,4 +9,3 @@ const translations = Object.assign(Object.assign({}, dialogTranslations), {
9
9
  RED: 'R', GREEN: 'G', BLUE: 'B' });
10
10
  Phrasebook.define('ja', 'ef-color-dialog', translations);
11
11
  export default translations;
12
- //# sourceMappingURL=color-dialog.js.map
@@ -1,4 +1,4 @@
1
- import './shared';
1
+ import './shared.js';
2
2
  declare const translations: {
3
3
  MULTIPLE_ITEMS: string;
4
4
  NO_OPTIONS: string;
@@ -1,9 +1,8 @@
1
- import { Phrasebook } from '../../';
2
- import './shared';
1
+ import { Phrasebook } from '../../translation.js';
2
+ import './shared.js';
3
3
  const translations = {
4
4
  MULTIPLE_ITEMS: '複数項目',
5
5
  NO_OPTIONS: '該当する結果はありません。'
6
6
  };
7
7
  Phrasebook.define('ja', 'ef-combo-box', translations);
8
8
  export default translations;
9
- //# sourceMappingURL=combo-box.js.map
@@ -1,4 +1,4 @@
1
- import './shared';
1
+ import './shared.js';
2
2
  declare const translations: {
3
3
  HEADER: string;
4
4
  };
@@ -1,9 +1,8 @@
1
- import { Phrasebook } from '../../';
2
- import './shared';
1
+ import { Phrasebook } from '../../translation.js';
2
+ import './shared.js';
3
3
  // deliberately empty as covered by shared
4
4
  const translations = {
5
5
  HEADER: 'ダイアログ'
6
6
  };
7
7
  Phrasebook.define('ja', 'ef-dialog', translations);
8
8
  export default translations;
9
- //# sourceMappingURL=dialog.js.map
@@ -1,6 +1,6 @@
1
- import './shared';
1
+ import './shared.js';
2
2
  declare const translations: {
3
+ PAGE: string;
3
4
  PAGE_OF: string;
4
- ITEM_INFO: string;
5
5
  };
6
6
  export default translations;
@@ -1,21 +1,12 @@
1
1
  // Component docs https://elf.int.refinitiv.com/elements/pagination.html
2
- import { Phrasebook } from '../../';
3
- import './shared';
2
+ import { Phrasebook } from '../../translation.js';
3
+ import './shared.js';
4
4
  const translations = {
5
+ // page: current page #
6
+ PAGE: 'ページ {page}',
5
7
  // page: current page #
6
8
  // pageTotal: total number of pages
7
- PAGE_OF: '{pageTotal} ページ中 {page} ページ目 ',
8
- /*
9
- * totalCount: total number of items
10
- * pageSize: Number of items per page
11
- * ** To translate
12
- * No items
13
- * of = eg page 1 of 2
14
- * item
15
- * items
16
- */
17
- ITEM_INFO: '{totalCount, plural, =0 {該当なし} other {{ totalCount, plural, other { {totalCount} {totalCount, plural, =1 { 件} other { 件}}中 {pageSize, plural, =1 {#} other {{from} - {to}}} 件目 } }} }'
9
+ PAGE_OF: '{pageTotal} ページ中 {page} ページ目 '
18
10
  };
19
11
  Phrasebook.define('ja', 'ef-pagination', translations);
20
12
  export default translations;
21
- //# sourceMappingURL=pagination.js.map
@@ -0,0 +1,5 @@
1
+ declare const translations: {
2
+ SHOW_PASSWORD: string;
3
+ HIDE_PASSWORD: string;
4
+ };
5
+ export default translations;
@@ -0,0 +1,7 @@
1
+ import { Phrasebook } from '../../translation.js';
2
+ const translations = {
3
+ SHOW_PASSWORD: 'Show password',
4
+ HIDE_PASSWORD: 'Hide password'
5
+ };
6
+ Phrasebook.define('ja', 'ef-password-field', translations);
7
+ export default translations;
@@ -0,0 +1,4 @@
1
+ declare const translations: {
2
+ SEARCH: string;
3
+ };
4
+ export default translations;
@@ -0,0 +1,6 @@
1
+ import { Phrasebook } from '../../translation.js';
2
+ const translations = {
3
+ SEARCH: 'Search'
4
+ };
5
+ Phrasebook.define('ja', 'ef-search-field', translations);
6
+ export default translations;
@@ -1,4 +1,4 @@
1
- import { Phrasebook } from '../../';
1
+ import { Phrasebook } from '../../translation.js';
2
2
  // these are used for buttons
3
3
  const translations = {
4
4
  CANCEL: 'キャンセル',
@@ -8,4 +8,3 @@ const translations = {
8
8
  };
9
9
  Phrasebook.define('ja', translations);
10
10
  export default translations;
11
- //# sourceMappingURL=shared.js.map
@@ -0,0 +1,10 @@
1
+ declare const translations: {
2
+ BEFORE_MIDDAY: string;
3
+ AFTER_MIDDAY: string;
4
+ TOGGLE_TIME_PERIOD: string;
5
+ SELECT_HOURS: string;
6
+ SELECT_MINUTES: string;
7
+ SELECT_SECONDS: string;
8
+ SELECTED: string;
9
+ };
10
+ export default translations;
@@ -0,0 +1,12 @@
1
+ import { Phrasebook } from '../../translation.js';
2
+ const translations = {
3
+ BEFORE_MIDDAY: 'Before Midday',
4
+ AFTER_MIDDAY: 'After Midday',
5
+ TOGGLE_TIME_PERIOD: 'Toggle Time Period',
6
+ SELECT_HOURS: '{value, select, null {Select hours} other {{value, plural, =1 {# hour} other {# hours}}}}',
7
+ SELECT_MINUTES: '{value, select, null {Select minutes} other {{value, plural, =1 {# minute} other {# minutes}}}}',
8
+ SELECT_SECONDS: '{value, select, null {Select seconds} other {{value, plural, =1 {# second} other {# seconds}}}}',
9
+ SELECTED: '{value, select, null {Selected none. Choose time} other {Selected time is: {showSeconds, select, true {{amPm, select, true {{value, time, ::hmsa}} other {{value, time, ::Hms}}}} other {{amPm, select, true {{value, time, ::hma}} other {{value, time, ::Hm}}}}}}}'
10
+ };
11
+ Phrasebook.define('ja', 'ef-time-picker', translations);
12
+ export default translations;
@@ -1,4 +1,4 @@
1
- import './shared';
1
+ import './shared.js';
2
2
  declare const translations: {
3
3
  FULL_LIST: string;
4
4
  SELECTED: string;
@@ -1,14 +1,13 @@
1
1
  // Component docs https://elf.int.refinitiv.com/elements/tree-select.html
2
- import { Phrasebook } from '../../';
3
- import './shared';
2
+ import { Phrasebook } from '../../translation.js';
3
+ import './shared.js';
4
4
  import comboboxTranslations from './combo-box';
5
5
  const translations = Object.assign(Object.assign({}, comboboxTranslations), {
6
6
  // used as a toggle control
7
- FULL_LIST: '一覧を表示', SELECTED: '選択項目のみ表示', EXPAND_COLLAPSE: '{expansion, select, false {すべてを展開} true {すべてを折りたたむ}}', SELECT_CONTROL: '{selected, select, false {すべて選択} true {選択をすべて解除}}',
7
+ FULL_LIST: 'すべて', SELECTED: '選択項目のみ', EXPAND_COLLAPSE: '{expansion, select, false {すべてを展開} other {すべてを折りたたむ}}', SELECT_CONTROL: '{selected, select, false {すべて選択} other {選択をすべて解除}}',
8
8
  // button control
9
9
  DONE: '完了',
10
10
  // selection/filter feedback
11
- SELECTED_NUM: '{numSelected, plural, =0 {} =1 {1 件選択済み} other {# 件選択済み}}', MATCHES_NUM: '{numMatched, plural, =0 {該当なし} =1 {1件見つかりました} other {# 件見つかりました}}' });
11
+ SELECTED_NUM: '{numSelected, plural, =0 {} =1 {1 件選択済み} other {# 件選択済み}}', MATCHES_NUM: '{numMatched, plural, =0 {該当項目はありません} =1 {検索結果 – 1} other {検索結果 – #件}}' });
12
12
  Phrasebook.define('ja', 'ef-tree-select', translations);
13
13
  export default translations;
14
- //# sourceMappingURL=tree-select.js.map
@@ -0,0 +1,18 @@
1
+ declare const translations: {
2
+ PREVIOUS_MONTH: string;
3
+ NEXT_MONTH: string;
4
+ PREVIOUS_YEAR: string;
5
+ NEXT_YEAR: string;
6
+ PREVIOUS_DECADE: string;
7
+ NEXT_DECADE: string;
8
+ YEAR_SELECTOR: string;
9
+ DATE_SELECTOR: string;
10
+ CELL_LABEL: string;
11
+ SELECTED: string;
12
+ NOW: string;
13
+ SELECTED_NOW: string;
14
+ SELECTED_DATE: string;
15
+ SELECTED_RANGE: string;
16
+ SELECTED_NONE: string;
17
+ };
18
+ export default translations;
@@ -0,0 +1,20 @@
1
+ import { Phrasebook } from '../../translation.js';
2
+ const translations = {
3
+ PREVIOUS_MONTH: '前一个月',
4
+ NEXT_MONTH: '下一个月',
5
+ PREVIOUS_YEAR: '前一年',
6
+ NEXT_YEAR: '下一年',
7
+ PREVIOUS_DECADE: '前十年',
8
+ NEXT_DECADE: '下一个十年',
9
+ YEAR_SELECTOR: '点击来选择年份',
10
+ DATE_SELECTOR: '点击来选择日期',
11
+ CELL_LABEL: '{view, select, year {{value, date, ::yyyy}} month {{value, date, ::MMMM-yyyy}} other {{value, date, full}}}',
12
+ SELECTED: '已选: {view, select, year {{value, date, ::yyyy}} month {{value, date, ::MMMM-yyyy}} other {{value, date, full}}}',
13
+ NOW: '{view, select, year {Current year, {value, date, ::yyyy}} month {Current month, {value, date, ::MMMM-yyyy}} other {Today, {value, date, full}}}',
14
+ SELECTED_NOW: '已选: {view, select, year {current year, {value, date, ::yyyy}} month {current month, {value, date, ::MMMM-yyyy}} other {today, {value, date, full}}}',
15
+ SELECTED_DATE: '已选 {count, plural, =1 {date is {value, date, full}} other {# dates, {value, date, full} and others}}',
16
+ SELECTED_RANGE: '所选范围开始于 {from, date, full}{to, select, null {} other { to {to, date, full}}}',
17
+ SELECTED_NONE: '未选择。请选择 {range, select, true {date range} other {{multiple, select, true {dates} other {date}}}}'
18
+ };
19
+ Phrasebook.define('zh', 'ef-calendar', translations);
20
+ export default translations;
@@ -1,4 +1,4 @@
1
- import './shared';
1
+ import './shared.js';
2
2
  declare const translations: {
3
3
  HEADER: string;
4
4
  RED: string;
@@ -1,6 +1,6 @@
1
1
  // Component docs https://elf.int.refinitiv.com/elements/color-dialog.html
2
- import { Phrasebook } from '../../';
3
- import './shared';
2
+ import { Phrasebook } from '../../translation.js';
3
+ import './shared.js';
4
4
  import dialogTranslations from './dialog';
5
5
  const translations = Object.assign(Object.assign({}, dialogTranslations), {
6
6
  // Dialog title
@@ -9,4 +9,3 @@ const translations = Object.assign(Object.assign({}, dialogTranslations), {
9
9
  RED: 'R', GREEN: 'G', BLUE: 'B' });
10
10
  Phrasebook.define('zh', 'ef-color-dialog', translations);
11
11
  export default translations;
12
- //# sourceMappingURL=color-dialog.js.map
@@ -1,4 +1,4 @@
1
- import './shared';
1
+ import './shared.js';
2
2
  declare const translations: {
3
3
  MULTIPLE_ITEMS: string;
4
4
  NO_OPTIONS: string;
@@ -1,9 +1,8 @@
1
- import { Phrasebook } from '../../';
2
- import './shared';
1
+ import { Phrasebook } from '../../translation.js';
2
+ import './shared.js';
3
3
  const translations = {
4
4
  MULTIPLE_ITEMS: '多项',
5
5
  NO_OPTIONS: '未找到结果。'
6
6
  };
7
7
  Phrasebook.define('zh', 'ef-combo-box', translations);
8
8
  export default translations;
9
- //# sourceMappingURL=combo-box.js.map
@@ -1,4 +1,4 @@
1
- import './shared';
1
+ import './shared.js';
2
2
  declare const translations: {
3
3
  HEADER: string;
4
4
  };
@@ -1,9 +1,8 @@
1
- import { Phrasebook } from '../../';
2
- import './shared';
1
+ import { Phrasebook } from '../../translation.js';
2
+ import './shared.js';
3
3
  // deliberately empty as covered by shared
4
4
  const translations = {
5
5
  HEADER: '对话框'
6
6
  };
7
7
  Phrasebook.define('zh', 'ef-dialog', translations);
8
8
  export default translations;
9
- //# sourceMappingURL=dialog.js.map
@@ -1,6 +1,6 @@
1
- import './shared';
1
+ import './shared.js';
2
2
  declare const translations: {
3
+ PAGE: string;
3
4
  PAGE_OF: string;
4
- ITEM_INFO: string;
5
5
  };
6
6
  export default translations;
@@ -1,21 +1,12 @@
1
1
  // Component docs https://elf.int.refinitiv.com/elements/pagination.html
2
- import { Phrasebook } from '../../';
3
- import './shared';
2
+ import { Phrasebook } from '../../translation.js';
3
+ import './shared.js';
4
4
  const translations = {
5
+ // page: current page #
6
+ PAGE: '第 {page} 页',
5
7
  // page: current page #
6
8
  // pageTotal: total number of pages
7
- PAGE_OF: '第 {page}/{pageTotal} 页',
8
- /*
9
- * totalCount: total number of items
10
- * pageSize: Number of items per page
11
- * ** To translate
12
- * No items
13
- * of = eg page 1 of 2
14
- * item
15
- * items
16
- */
17
- ITEM_INFO: '{totalCount, plural, =0 {无项目。} other {{ totalCount, plural, other { {pageSize, plural, =1 {#} other {{from} - {to}}} 项,共 {totalCount} {totalCount, plural, =1 {项} other {项}}} }} }'
9
+ PAGE_OF: '第 {page}/{pageTotal} 页'
18
10
  };
19
11
  Phrasebook.define('zh', 'ef-pagination', translations);
20
12
  export default translations;
21
- //# sourceMappingURL=pagination.js.map
@@ -0,0 +1,5 @@
1
+ declare const translations: {
2
+ SHOW_PASSWORD: string;
3
+ HIDE_PASSWORD: string;
4
+ };
5
+ export default translations;
@@ -0,0 +1,7 @@
1
+ import { Phrasebook } from '../../translation.js';
2
+ const translations = {
3
+ SHOW_PASSWORD: 'Show password',
4
+ HIDE_PASSWORD: 'Hide password'
5
+ };
6
+ Phrasebook.define('zh', 'ef-password-field', translations);
7
+ export default translations;
@@ -0,0 +1,4 @@
1
+ declare const translations: {
2
+ SEARCH: string;
3
+ };
4
+ export default translations;
@@ -0,0 +1,6 @@
1
+ import { Phrasebook } from '../../translation.js';
2
+ const translations = {
3
+ SEARCH: 'Search'
4
+ };
5
+ Phrasebook.define('zh', 'ef-search-field', translations);
6
+ export default translations;
@@ -1,4 +1,4 @@
1
- import { Phrasebook } from '../../';
1
+ import { Phrasebook } from '../../translation.js';
2
2
  // these are used for buttons
3
3
  const translations = {
4
4
  CANCEL: '取消',
@@ -8,4 +8,3 @@ const translations = {
8
8
  };
9
9
  Phrasebook.define('zh', translations);
10
10
  export default translations;
11
- //# sourceMappingURL=shared.js.map
@@ -0,0 +1,10 @@
1
+ declare const translations: {
2
+ BEFORE_MIDDAY: string;
3
+ AFTER_MIDDAY: string;
4
+ TOGGLE_TIME_PERIOD: string;
5
+ SELECT_HOURS: string;
6
+ SELECT_MINUTES: string;
7
+ SELECT_SECONDS: string;
8
+ SELECTED: string;
9
+ };
10
+ export default translations;
@@ -0,0 +1,12 @@
1
+ import { Phrasebook } from '../../translation.js';
2
+ const translations = {
3
+ BEFORE_MIDDAY: 'Before Midday',
4
+ AFTER_MIDDAY: 'After Midday',
5
+ TOGGLE_TIME_PERIOD: 'Toggle Time Period',
6
+ SELECT_HOURS: '{value, select, null {Select hours} other {{value, plural, =1 {# hour} other {# hours}}}}',
7
+ SELECT_MINUTES: '{value, select, null {Select minutes} other {{value, plural, =1 {# minute} other {# minutes}}}}',
8
+ SELECT_SECONDS: '{value, select, null {Select seconds} other {{value, plural, =1 {# second} other {# seconds}}}}',
9
+ SELECTED: '{value, select, null {Selected none. Choose time} other {Selected time is: {showSeconds, select, true {{amPm, select, true {{value, time, ::hmsa}} other {{value, time, ::Hms}}}} other {{amPm, select, true {{value, time, ::hma}} other {{value, time, ::Hm}}}}}}}'
10
+ };
11
+ Phrasebook.define('zh', 'ef-time-picker', translations);
12
+ export default translations;
@@ -1,4 +1,4 @@
1
- import './shared';
1
+ import './shared.js';
2
2
  declare const translations: {
3
3
  FULL_LIST: string;
4
4
  SELECTED: string;
@@ -1,14 +1,13 @@
1
1
  // Component docs https://elf.int.refinitiv.com/elements/tree-select.html
2
- import { Phrasebook } from '../../';
3
- import './shared';
2
+ import { Phrasebook } from '../../translation.js';
3
+ import './shared.js';
4
4
  import comboboxTranslations from './combo-box';
5
5
  const translations = Object.assign(Object.assign({}, comboboxTranslations), {
6
6
  // used as a toggle control
7
- FULL_LIST: '全部列表', SELECTED: '已选项列表', EXPAND_COLLAPSE: '{expansion, select, false {全部展开} true {全部收起}}', SELECT_CONTROL: '{selected, select, false {全选} true {取消全选}}',
7
+ FULL_LIST: '全部列表', SELECTED: '已选项列表', EXPAND_COLLAPSE: '{expansion, select, true {全部收起} other {全部展开}}', SELECT_CONTROL: '{selected, select, true {取消全选} other {全选}}',
8
8
  // button control
9
9
  DONE: '完成',
10
10
  // selection/filter feedback
11
- SELECTED_NUM: '{numSelected, plural, =0 {} =1 {已选 1 项。} other {已选 # 项。}}', MATCHES_NUM: '{numMatched, plural, =0 {无匹配结果。} =1 {匹配到 1 条结果。} other {匹配到 # 条结果。}}' });
11
+ SELECTED_NUM: '{numSelected, plural, =0 {} =1 {已选 1 项。} other {已选 # 项。}}', MATCHES_NUM: '{numMatched, plural, =0 {未找到结果。} =1 {找到了 1 个结果。} other {找到了 # 个结果。}}' });
12
12
  Phrasebook.define('zh', 'ef-tree-select', translations);
13
13
  export default translations;
14
- //# sourceMappingURL=tree-select.js.map
@@ -0,0 +1,18 @@
1
+ declare const translations: {
2
+ PREVIOUS_MONTH: string;
3
+ NEXT_MONTH: string;
4
+ PREVIOUS_YEAR: string;
5
+ NEXT_YEAR: string;
6
+ PREVIOUS_DECADE: string;
7
+ NEXT_DECADE: string;
8
+ YEAR_SELECTOR: string;
9
+ DATE_SELECTOR: string;
10
+ CELL_LABEL: string;
11
+ SELECTED: string;
12
+ NOW: string;
13
+ SELECTED_NOW: string;
14
+ SELECTED_DATE: string;
15
+ SELECTED_RANGE: string;
16
+ SELECTED_NONE: string;
17
+ };
18
+ export default translations;
@@ -0,0 +1,20 @@
1
+ import { Phrasebook } from '../../translation.js';
2
+ const translations = {
3
+ PREVIOUS_MONTH: 'Previous month',
4
+ NEXT_MONTH: 'Next month',
5
+ PREVIOUS_YEAR: 'Previous year',
6
+ NEXT_YEAR: 'Next year',
7
+ PREVIOUS_DECADE: 'Previous decade',
8
+ NEXT_DECADE: 'Next decade',
9
+ YEAR_SELECTOR: 'Click to select year',
10
+ DATE_SELECTOR: 'Click to select date',
11
+ CELL_LABEL: '{view, select, year {{value, date, ::yyyy}} month {{value, date, ::MMMM-yyyy}} other {{value, date, full}}}',
12
+ SELECTED: 'Selected: {view, select, year {{value, date, ::yyyy}} month {{value, date, ::MMMM-yyyy}} other {{value, date, full}}}',
13
+ NOW: '{view, select, year {Current year, {value, date, ::yyyy}} month {Current month, {value, date, ::MMMM-yyyy}} other {Today, {value, date, full}}}',
14
+ SELECTED_NOW: 'Selected: {view, select, year {current year, {value, date, ::yyyy}} month {current month, {value, date, ::MMMM-yyyy}} other {today, {value, date, full}}}',
15
+ SELECTED_DATE: 'Selected {count, plural, =1 {date is {value, date, full}} other {# dates, {value, date, full} and others}}',
16
+ SELECTED_RANGE: 'Selected range is from {from, date, full}{to, select, null {} other { to {to, date, full}}}',
17
+ SELECTED_NONE: 'Selected none. Choose {range, select, true {date range} other {{multiple, select, true {dates} other {date}}}}'
18
+ };
19
+ Phrasebook.define('zh-Hant', 'ef-calendar', translations);
20
+ export default translations;
@@ -1,4 +1,4 @@
1
- import './shared';
1
+ import './shared.js';
2
2
  declare const translations: {
3
3
  HEADER: string;
4
4
  RED: string;
@@ -1,6 +1,6 @@
1
1
  // Component docs https://elf.int.refinitiv.com/elements/color-dialog.html
2
- import { Phrasebook } from '../../';
3
- import './shared';
2
+ import { Phrasebook } from '../../translation.js';
3
+ import './shared.js';
4
4
  import dialogTranslations from './dialog';
5
5
  const translations = Object.assign(Object.assign({}, dialogTranslations), {
6
6
  // Dialog title
@@ -9,4 +9,3 @@ const translations = Object.assign(Object.assign({}, dialogTranslations), {
9
9
  RED: 'R', GREEN: 'G', BLUE: 'B' });
10
10
  Phrasebook.define('zh-Hant', 'ef-color-dialog', translations);
11
11
  export default translations;
12
- //# sourceMappingURL=color-dialog.js.map
@@ -1,4 +1,4 @@
1
- import './shared';
1
+ import './shared.js';
2
2
  declare const translations: {
3
3
  MULTIPLE_ITEMS: string;
4
4
  NO_OPTIONS: string;
@@ -1,9 +1,8 @@
1
- import { Phrasebook } from '../../';
2
- import './shared';
1
+ import { Phrasebook } from '../../translation.js';
2
+ import './shared.js';
3
3
  const translations = {
4
4
  MULTIPLE_ITEMS: '多項',
5
5
  NO_OPTIONS: '未找到結果。'
6
6
  };
7
7
  Phrasebook.define('zh-Hant', 'ef-combo-box', translations);
8
8
  export default translations;
9
- //# sourceMappingURL=combo-box.js.map
@@ -1,4 +1,4 @@
1
- import './shared';
1
+ import './shared.js';
2
2
  declare const translations: {
3
3
  HEADER: string;
4
4
  };
@@ -1,9 +1,8 @@
1
- import { Phrasebook } from '../../';
2
- import './shared';
1
+ import { Phrasebook } from '../../translation.js';
2
+ import './shared.js';
3
3
  // deliberately empty as covered by shared
4
4
  const translations = {
5
5
  HEADER: '對話框'
6
6
  };
7
7
  Phrasebook.define('zh-Hant', 'ef-dialog', translations);
8
8
  export default translations;
9
- //# sourceMappingURL=dialog.js.map
@@ -1,6 +1,6 @@
1
- import './shared';
1
+ import './shared.js';
2
2
  declare const translations: {
3
+ PAGE: string;
3
4
  PAGE_OF: string;
4
- ITEM_INFO: string;
5
5
  };
6
6
  export default translations;
@@ -1,21 +1,12 @@
1
1
  // Component docs https://elf.int.refinitiv.com/elements/pagination.html
2
- import { Phrasebook } from '../../';
3
- import './shared';
2
+ import { Phrasebook } from '../../translation.js';
3
+ import './shared.js';
4
4
  const translations = {
5
+ // page: current page #
6
+ PAGE: '第 {page}頁',
5
7
  // page: current page #
6
8
  // pageTotal: total number of pages
7
- PAGE_OF: '第 {page}頁/共{pageTotal} 頁',
8
- /*
9
- * totalCount: total number of items
10
- * pageSize: Number of items per page
11
- * ** To translate
12
- * No items
13
- * of = eg page 1 of 2
14
- * item
15
- * items
16
- */
17
- ITEM_INFO: '{totalCount, plural, =0 {無項目} other {{ totalCount, plural, other { {pageSize, plural, =1 {#} other {{from} - {to}}} 項,共 {totalCount} {totalCount, plural, =1 {項} other {項}}} }} }'
9
+ PAGE_OF: '第 {page}頁/共{pageTotal} 頁'
18
10
  };
19
11
  Phrasebook.define('zh-Hant', 'ef-pagination', translations);
20
12
  export default translations;
21
- //# sourceMappingURL=pagination.js.map
@@ -0,0 +1,5 @@
1
+ declare const translations: {
2
+ SHOW_PASSWORD: string;
3
+ HIDE_PASSWORD: string;
4
+ };
5
+ export default translations;
@@ -0,0 +1,7 @@
1
+ import { Phrasebook } from '../../translation.js';
2
+ const translations = {
3
+ SHOW_PASSWORD: 'Show password',
4
+ HIDE_PASSWORD: 'Hide password'
5
+ };
6
+ Phrasebook.define('zh-Hant', 'ef-password-field', translations);
7
+ export default translations;
@@ -0,0 +1,4 @@
1
+ declare const translations: {
2
+ SEARCH: string;
3
+ };
4
+ export default translations;
@@ -0,0 +1,6 @@
1
+ import { Phrasebook } from '../../translation.js';
2
+ const translations = {
3
+ SEARCH: 'Search'
4
+ };
5
+ Phrasebook.define('zh-Hant', 'ef-search-field', translations);
6
+ export default translations;