@refinitiv-ui/phrasebook 5.1.4 → 5.2.2-alpha.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 (80) hide show
  1. package/CHANGELOG.md +39 -0
  2. package/lib/index.d.ts +2 -2
  3. package/lib/index.js +1 -1
  4. package/lib/locale/de/color-dialog.d.ts +1 -1
  5. package/lib/locale/de/color-dialog.js +2 -2
  6. package/lib/locale/de/combo-box.d.ts +1 -1
  7. package/lib/locale/de/combo-box.js +2 -2
  8. package/lib/locale/de/dialog.d.ts +1 -1
  9. package/lib/locale/de/dialog.js +2 -2
  10. package/lib/locale/de/pagination.d.ts +1 -1
  11. package/lib/locale/de/pagination.js +2 -2
  12. package/lib/locale/de/password-field.d.ts +5 -0
  13. package/lib/locale/de/password-field.js +7 -0
  14. package/lib/locale/de/search-field.d.ts +4 -0
  15. package/lib/locale/de/search-field.js +6 -0
  16. package/lib/locale/de/shared.js +1 -1
  17. package/lib/locale/de/tree-select.d.ts +1 -1
  18. package/lib/locale/de/tree-select.js +2 -2
  19. package/lib/locale/en/color-dialog.d.ts +1 -1
  20. package/lib/locale/en/color-dialog.js +2 -2
  21. package/lib/locale/en/combo-box.d.ts +1 -1
  22. package/lib/locale/en/combo-box.js +2 -2
  23. package/lib/locale/en/dialog.d.ts +1 -1
  24. package/lib/locale/en/dialog.js +2 -2
  25. package/lib/locale/en/pagination.d.ts +1 -1
  26. package/lib/locale/en/pagination.js +2 -2
  27. package/lib/locale/en/password-field.d.ts +5 -0
  28. package/lib/locale/en/password-field.js +7 -0
  29. package/lib/locale/en/search-field.d.ts +4 -0
  30. package/lib/locale/en/search-field.js +6 -0
  31. package/lib/locale/en/shared.js +1 -1
  32. package/lib/locale/en/tree-select.d.ts +1 -1
  33. package/lib/locale/en/tree-select.js +2 -2
  34. package/lib/locale/ja/color-dialog.d.ts +1 -1
  35. package/lib/locale/ja/color-dialog.js +2 -2
  36. package/lib/locale/ja/combo-box.d.ts +1 -1
  37. package/lib/locale/ja/combo-box.js +2 -2
  38. package/lib/locale/ja/dialog.d.ts +1 -1
  39. package/lib/locale/ja/dialog.js +2 -2
  40. package/lib/locale/ja/pagination.d.ts +1 -1
  41. package/lib/locale/ja/pagination.js +2 -2
  42. package/lib/locale/ja/password-field.d.ts +5 -0
  43. package/lib/locale/ja/password-field.js +7 -0
  44. package/lib/locale/ja/search-field.d.ts +4 -0
  45. package/lib/locale/ja/search-field.js +6 -0
  46. package/lib/locale/ja/shared.js +1 -1
  47. package/lib/locale/ja/tree-select.d.ts +1 -1
  48. package/lib/locale/ja/tree-select.js +3 -3
  49. package/lib/locale/zh/color-dialog.d.ts +1 -1
  50. package/lib/locale/zh/color-dialog.js +2 -2
  51. package/lib/locale/zh/combo-box.d.ts +1 -1
  52. package/lib/locale/zh/combo-box.js +2 -2
  53. package/lib/locale/zh/dialog.d.ts +1 -1
  54. package/lib/locale/zh/dialog.js +2 -2
  55. package/lib/locale/zh/pagination.d.ts +1 -1
  56. package/lib/locale/zh/pagination.js +2 -2
  57. package/lib/locale/zh/password-field.d.ts +5 -0
  58. package/lib/locale/zh/password-field.js +7 -0
  59. package/lib/locale/zh/search-field.d.ts +4 -0
  60. package/lib/locale/zh/search-field.js +6 -0
  61. package/lib/locale/zh/shared.js +1 -1
  62. package/lib/locale/zh/tree-select.d.ts +1 -1
  63. package/lib/locale/zh/tree-select.js +2 -2
  64. package/lib/locale/zh-hant/color-dialog.d.ts +1 -1
  65. package/lib/locale/zh-hant/color-dialog.js +2 -2
  66. package/lib/locale/zh-hant/combo-box.d.ts +1 -1
  67. package/lib/locale/zh-hant/combo-box.js +2 -2
  68. package/lib/locale/zh-hant/dialog.d.ts +1 -1
  69. package/lib/locale/zh-hant/dialog.js +2 -2
  70. package/lib/locale/zh-hant/pagination.d.ts +1 -1
  71. package/lib/locale/zh-hant/pagination.js +2 -2
  72. package/lib/locale/zh-hant/password-field.d.ts +5 -0
  73. package/lib/locale/zh-hant/password-field.js +7 -0
  74. package/lib/locale/zh-hant/search-field.d.ts +4 -0
  75. package/lib/locale/zh-hant/search-field.js +6 -0
  76. package/lib/locale/zh-hant/shared.js +1 -1
  77. package/lib/locale/zh-hant/tree-select.d.ts +1 -1
  78. package/lib/locale/zh-hant/tree-select.js +2 -2
  79. package/lib/translation.d.ts +1 -1
  80. package/package.json +89 -3
package/CHANGELOG.md CHANGED
@@ -3,6 +3,45 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [5.2.2-alpha.0](https://github.com/Refinitiv/refinitiv-ui/compare/@refinitiv-ui/phrasebook@5.2.1...@refinitiv-ui/phrasebook@5.2.2-alpha.0) (2021-12-13)
7
+
8
+ **Note:** Version bump only for package @refinitiv-ui/phrasebook
9
+
10
+
11
+
12
+
13
+
14
+ ## [5.2.1](https://github.com/Refinitiv/refinitiv-ui/compare/@refinitiv-ui/phrasebook@5.2.0...@refinitiv-ui/phrasebook@5.2.1) (2021-12-03)
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * **phrasebook:** change ICU syntax on Japanese language ([9b235ab](https://github.com/Refinitiv/refinitiv-ui/commit/9b235ab61fa0dae5c6ce97b66acee52dfd4028d4))
20
+ * **phrasebook:** export path should go to lib folder ([681028f](https://github.com/Refinitiv/refinitiv-ui/commit/681028ff960a831cfa888d0fdea38ddd40de815f))
21
+
22
+
23
+
24
+
25
+
26
+ # [5.2.0](https://github.com/Refinitiv/refinitiv-ui/compare/@refinitiv-ui/phrasebook@5.1.6...@refinitiv-ui/phrasebook@5.2.0) (2021-11-08)
27
+
28
+
29
+ ### Features
30
+
31
+ * Lit@2 upgrade ([dbda63b](https://github.com/Refinitiv/refinitiv-ui/commit/dbda63be97257f891cb1f2c5ff46b638c70e0b15))
32
+
33
+
34
+
35
+
36
+
37
+ ## [5.1.6](https://github.com/Refinitiv/refinitiv-ui/compare/@refinitiv-ui/phrasebook@5.1.3...@refinitiv-ui/phrasebook@5.1.6) (2021-10-25)
38
+
39
+ **Note:** Version bump only for package @refinitiv-ui/phrasebook
40
+
41
+
42
+
43
+
44
+
6
45
  ## [5.1.3](https://github.com/Refinitiv/refinitiv-ui/compare/@refinitiv-ui/phrasebook@5.1.2...@refinitiv-ui/phrasebook@5.1.3) (2021-10-11)
7
46
 
8
47
 
package/lib/index.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export { Translations } from './types';
2
- export { Phrasebook, ObserverCallback, ObserverKey } from './translation';
1
+ export type { Translations } from './types';
2
+ export { Phrasebook, ObserverCallback, ObserverKey } from './translation.js';
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- export { Phrasebook, ObserverKey } from './translation';
1
+ export { Phrasebook, ObserverKey } from './translation.js';
@@ -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
@@ -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,5 +1,5 @@
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: 'Mehrere Objekte',
5
5
  NO_OPTIONS: 'Keine Ergebnisse'
@@ -1,4 +1,4 @@
1
- import './shared';
1
+ import './shared.js';
2
2
  declare const translations: {
3
3
  HEADER: string;
4
4
  };
@@ -1,5 +1,5 @@
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: 'Dialog'
@@ -1,4 +1,4 @@
1
- import './shared';
1
+ import './shared.js';
2
2
  declare const translations: {
3
3
  PAGE_OF: string;
4
4
  ITEM_INFO: string;
@@ -1,6 +1,6 @@
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
5
  // page: current page #
6
6
  // pageTotal: total number of pages
@@ -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('de', '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('de', '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: 'Abbrechen',
@@ -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,6 +1,6 @@
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
@@ -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
@@ -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,5 +1,5 @@
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: 'Multiple items',
5
5
  NO_OPTIONS: 'No results found.'
@@ -1,4 +1,4 @@
1
- import './shared';
1
+ import './shared.js';
2
2
  declare const translations: {
3
3
  HEADER: string;
4
4
  };
@@ -1,5 +1,5 @@
1
- import { Phrasebook } from '../../';
2
- import './shared';
1
+ import { Phrasebook } from '../../translation.js';
2
+ import './shared.js';
3
3
  const translations = {
4
4
  HEADER: 'Dialog'
5
5
  };
@@ -1,4 +1,4 @@
1
- import './shared';
1
+ import './shared.js';
2
2
  declare const translations: {
3
3
  PAGE_OF: string;
4
4
  ITEM_INFO: string;
@@ -1,6 +1,6 @@
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
5
  // page: current page #
6
6
  // pageTotal: total number of pages
@@ -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('en', '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('en', '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: 'Cancel',
@@ -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,6 +1,6 @@
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
@@ -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
@@ -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,5 +1,5 @@
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: '該当する結果はありません。'
@@ -1,4 +1,4 @@
1
- import './shared';
1
+ import './shared.js';
2
2
  declare const translations: {
3
3
  HEADER: string;
4
4
  };
@@ -1,5 +1,5 @@
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: 'ダイアログ'
@@ -1,4 +1,4 @@
1
- import './shared';
1
+ import './shared.js';
2
2
  declare const translations: {
3
3
  PAGE_OF: string;
4
4
  ITEM_INFO: string;
@@ -1,6 +1,6 @@
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
5
  // page: current page #
6
6
  // pageTotal: total number of pages
@@ -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: 'キャンセル',
@@ -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,10 +1,10 @@
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
@@ -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
@@ -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,5 +1,5 @@
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: '未找到结果。'
@@ -1,4 +1,4 @@
1
- import './shared';
1
+ import './shared.js';
2
2
  declare const translations: {
3
3
  HEADER: string;
4
4
  };
@@ -1,5 +1,5 @@
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: '对话框'
@@ -1,4 +1,4 @@
1
- import './shared';
1
+ import './shared.js';
2
2
  declare const translations: {
3
3
  PAGE_OF: string;
4
4
  ITEM_INFO: string;
@@ -1,6 +1,6 @@
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
5
  // page: current page #
6
6
  // pageTotal: total number of pages
@@ -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: '取消',
@@ -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,6 +1,6 @@
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
@@ -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
@@ -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,5 +1,5 @@
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: '未找到結果。'
@@ -1,4 +1,4 @@
1
- import './shared';
1
+ import './shared.js';
2
2
  declare const translations: {
3
3
  HEADER: string;
4
4
  };
@@ -1,5 +1,5 @@
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: '對話框'
@@ -1,4 +1,4 @@
1
- import './shared';
1
+ import './shared.js';
2
2
  declare const translations: {
3
3
  PAGE_OF: string;
4
4
  ITEM_INFO: string;
@@ -1,6 +1,6 @@
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
5
  // page: current page #
6
6
  // pageTotal: total number of pages
@@ -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;
@@ -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: '取消',
@@ -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,6 +1,6 @@
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
@@ -1,4 +1,4 @@
1
- import { Translations } from './index';
1
+ import type { Translations } from './types';
2
2
  declare class ObserverKey {
3
3
  }
4
4
  declare type ObserverCallback = (locale: string) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@refinitiv-ui/phrasebook",
3
- "version": "5.1.4",
3
+ "version": "5.2.2-alpha.0",
4
4
  "description": "Collection of messages in EF components for translation",
5
5
  "author": "Refinitiv",
6
6
  "license": "Apache-2.0",
@@ -12,6 +12,89 @@
12
12
  "url": "git@github.com:Refinitiv/refinitiv-ui.git",
13
13
  "directory": "packages/phrasebook"
14
14
  },
15
+ "exports": {
16
+ ".": "./lib/index.js",
17
+ "./locale/de/color-dialog.js": "./lib/locale/de/color-dialog.js",
18
+ "./locale/de/combo-box.js": "./lib/locale/de/combo-box.js",
19
+ "./locale/de/dialog.js": "./lib/locale/de/dialog.js",
20
+ "./locale/de/pagination.js": "./lib/locale/de/pagination.js",
21
+ "./locale/de/password-field.js": "./lib/locale/de/password-field.js",
22
+ "./locale/de/search-field.js": "./lib/locale/de/search-field.js",
23
+ "./locale/de/shared.js": "./lib/locale/de/shared.js",
24
+ "./locale/de/tree-select.js": "./lib/locale/de/tree-select.js",
25
+ "./locale/en/color-dialog.js": "./lib/locale/en/color-dialog.js",
26
+ "./locale/en/combo-box.js": "./lib/locale/en/combo-box.js",
27
+ "./locale/en/dialog.js": "./lib/locale/en/dialog.js",
28
+ "./locale/en/pagination.js": "./lib/locale/en/pagination.js",
29
+ "./locale/en/password-field.js": "./lib/locale/en/password-field.js",
30
+ "./locale/en/search-field.js": "./lib/locale/en/search-field.js",
31
+ "./locale/en/shared.js": "./lib/locale/en/shared.js",
32
+ "./locale/en/tree-select.js": "./lib/locale/en/tree-select.js",
33
+ "./locale/ja/color-dialog.js": "./lib/locale/ja/color-dialog.js",
34
+ "./locale/ja/combo-box.js": "./lib/locale/ja/combo-box.js",
35
+ "./locale/ja/dialog.js": "./lib/locale/ja/dialog.js",
36
+ "./locale/ja/pagination.js": "./lib/locale/ja/pagination.js",
37
+ "./locale/ja/password-field.js": "./lib/locale/ja/password-field.js",
38
+ "./locale/ja/search-field.js": "./lib/locale/ja/search-field.js",
39
+ "./locale/ja/shared.js": "./lib/locale/ja/shared.js",
40
+ "./locale/ja/tree-select.js": "./lib/locale/ja/tree-select.js",
41
+ "./locale/zh/color-dialog.js": "./lib/locale/zh/color-dialog.js",
42
+ "./locale/zh/combo-box.js": "./lib/locale/zh/combo-box.js",
43
+ "./locale/zh/dialog.js": "./lib/locale/zh/dialog.js",
44
+ "./locale/zh/pagination.js": "./lib/locale/zh/pagination.js",
45
+ "./locale/zh/password-field.js": "./lib/locale/zh/password-field.js",
46
+ "./locale/zh/search-field.js": "./lib/locale/zh/search-field.js",
47
+ "./locale/zh/shared.js": "./lib/locale/zh/shared.js",
48
+ "./locale/zh/tree-select.js": "./lib/locale/zh/tree-select.js",
49
+ "./locale/zh-hant/color-dialog.js": "./lib/locale/zh-hant/color-dialog.js",
50
+ "./locale/zh-hant/combo-box.js": "./lib/locale/zh-hant/combo-box.js",
51
+ "./locale/zh-hant/dialog.js": "./lib/locale/zh-hant/dialog.js",
52
+ "./locale/zh-hant/pagination.js": "./lib/locale/zh-hant/pagination.js",
53
+ "./locale/zh-hant/password-field.js": "./lib/locale/zh-hant/password-field.js",
54
+ "./locale/zh-hant/search-field.js": "./lib/locale/zh-hant/search-field.js",
55
+ "./locale/zh-hant/shared.js": "./lib/locale/zh-hant/shared.js",
56
+ "./locale/zh-hant/tree-select.js": "./lib/locale/zh-hant/tree-select.js",
57
+ "./lib/locale/de/color-dialog.js": "./lib/locale/de/color-dialog.js",
58
+ "./lib/locale/de/combo-box.js": "./lib/locale/de/combo-box.js",
59
+ "./lib/locale/de/dialog.js": "./lib/locale/de/dialog.js",
60
+ "./lib/locale/de/pagination.js": "./lib/locale/de/pagination.js",
61
+ "./lib/locale/de/password-field.js": "./lib/locale/de/password-field.js",
62
+ "./lib/locale/de/search-field.js": "./lib/locale/de/search-field.js",
63
+ "./lib/locale/de/shared.js": "./lib/locale/de/shared.js",
64
+ "./lib/locale/de/tree-select.js": "./lib/locale/de/tree-select.js",
65
+ "./lib/locale/en/color-dialog.js": "./lib/locale/en/color-dialog.js",
66
+ "./lib/locale/en/combo-box.js": "./lib/locale/en/combo-box.js",
67
+ "./lib/locale/en/dialog.js": "./lib/locale/en/dialog.js",
68
+ "./lib/locale/en/pagination.js": "./lib/locale/en/pagination.js",
69
+ "./lib/locale/en/password-field.js": "./lib/locale/en/password-field.js",
70
+ "./lib/locale/en/search-field.js": "./lib/locale/en/search-field.js",
71
+ "./lib/locale/en/shared.js": "./lib/locale/en/shared.js",
72
+ "./lib/locale/en/tree-select.js": "./lib/locale/en/tree-select.js",
73
+ "./lib/locale/ja/color-dialog.js": "./lib/locale/ja/color-dialog.js",
74
+ "./lib/locale/ja/combo-box.js": "./lib/locale/ja/combo-box.js",
75
+ "./lib/locale/ja/dialog.js": "./lib/locale/ja/dialog.js",
76
+ "./lib/locale/ja/pagination.js": "./lib/locale/ja/pagination.js",
77
+ "./lib/locale/ja/password-field.js": "./lib/locale/ja/password-field.js",
78
+ "./lib/locale/ja/search-field.js": "./lib/locale/ja/search-field.js",
79
+ "./lib/locale/ja/shared.js": "./lib/locale/ja/shared.js",
80
+ "./lib/locale/ja/tree-select.js": "./lib/locale/ja/tree-select.js",
81
+ "./lib/locale/zh/color-dialog.js": "./lib/locale/zh/color-dialog.js",
82
+ "./lib/locale/zh/combo-box.js": "./lib/locale/zh/combo-box.js",
83
+ "./lib/locale/zh/dialog.js": "./lib/locale/zh/dialog.js",
84
+ "./lib/locale/zh/pagination.js": "./lib/locale/zh/pagination.js",
85
+ "./lib/locale/zh/password-field.js": "./lib/locale/zh/password-field.js",
86
+ "./lib/locale/zh/search-field.js": "./lib/locale/zh/search-field.js",
87
+ "./lib/locale/zh/shared.js": "./lib/locale/zh/shared.js",
88
+ "./lib/locale/zh/tree-select.js": "./lib/locale/zh/tree-select.js",
89
+ "./lib/locale/zh-hant/color-dialog.js": "./lib/locale/zh-hant/color-dialog.js",
90
+ "./lib/locale/zh-hant/combo-box.js": "./lib/locale/zh-hant/combo-box.js",
91
+ "./lib/locale/zh-hant/dialog.js": "./lib/locale/zh-hant/dialog.js",
92
+ "./lib/locale/zh-hant/pagination.js": "./lib/locale/zh-hant/pagination.js",
93
+ "./lib/locale/zh-hant/password-field.js": "./lib/locale/zh-hant/password-field.js",
94
+ "./lib/locale/zh-hant/search-field.js": "./lib/locale/zh-hant/search-field.js",
95
+ "./lib/locale/zh-hant/shared.js": "./lib/locale/zh-hant/shared.js",
96
+ "./lib/locale/zh-hant/tree-select.js": "./lib/locale/zh-hant/tree-select.js"
97
+ },
15
98
  "scripts": {
16
99
  "build": "tsc --sourceMap --declarationMap",
17
100
  "build:prod": "tsc",
@@ -20,12 +103,15 @@
20
103
  "test": "npm run build && mocha __test__/**/*.js --require esm"
21
104
  },
22
105
  "devDependencies": {
23
- "chai": "4.3.4",
106
+ "chai": "^4.3.4",
24
107
  "esm": "^3.2.25",
25
108
  "mocha": "^8.4.0"
26
109
  },
27
110
  "publishConfig": {
28
111
  "access": "public"
29
112
  },
30
- "gitHead": "35d88d431b3c7183351fb92f9ce312a6ce8b53b6"
113
+ "dependencies": {
114
+ "tslib": "^2.3.1"
115
+ },
116
+ "gitHead": "16b44ea3687ee7133e4f71446ba64f6b8b0fa1d3"
31
117
  }