@everymatrix/casino-filter-page 1.11.1 → 1.12.1

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/casino-filter-page",
3
- "version": "1.11.1",
3
+ "version": "1.12.1",
4
4
  "main": "dist/casino-filter-page.js",
5
5
  "svelte": "src/index.ts",
6
6
  "scripts": {
@@ -35,5 +35,5 @@
35
35
  "publishConfig": {
36
36
  "access": "public"
37
37
  },
38
- "gitHead": "a74cb23abc28e2a5ca4a61858da32c86640ebd43"
38
+ "gitHead": "b07d8c9aee6584ea4b4d1718d7d928d4f2dfb523"
39
39
  }
@@ -4,7 +4,7 @@
4
4
  import { onMount } from "svelte";
5
5
  import { isMobile, getDevice } from 'rvhelper';
6
6
  import { _, setupI18n, addNewMessages } from './i18n';
7
- import { VendorFilterPageTranslations } from './translations';
7
+ import { TRANSLATIONS } from './translations';
8
8
 
9
9
  export let endpoint:String = '';
10
10
  export let datasource:String = '';
@@ -50,8 +50,8 @@
50
50
  });
51
51
  }
52
52
 
53
- Object.keys(VendorFilterPageTranslations).forEach((item):void => {
54
- addNewMessages(item, VendorFilterPageTranslations[item]);
53
+ Object.keys(TRANSLATIONS).forEach((item):void => {
54
+ addNewMessages(item, TRANSLATIONS[item]);
55
55
  });
56
56
 
57
57
  const messageHandler = (e:any):void => {
@@ -317,8 +317,8 @@
317
317
  <div class="FilterModalContent {mobileView ? 'FilterModalMobileContent' : ''}" part="FilterModalContent {mobileView ? 'FilterModalMobileContent' : ''}">
318
318
  <section class="FilterHeaderSection" part="FilterHeaderSection">
319
319
  <div class="FilterHeaderDetails" part="FilterHeaderDetails">
320
- <h4 class="FilterHeaderTitle" part="FilterHeaderTitle">{$_('filters.filterModalTitle')}</h4>
321
- <h5 class="FilterHeaderSubtitle" part="FilterHeaderSubtitle">{$_('filters.filterModalSubtitle')}</h5>
320
+ <h4 class="FilterHeaderTitle" part="FilterHeaderTitle">{$_('filterModalTitle')}</h4>
321
+ <h5 class="FilterHeaderSubtitle" part="FilterHeaderSubtitle">{$_('filterModalSubtitle')}</h5>
322
322
  </div>
323
323
  </section>
324
324
  <section class="FilterContentSection" part="FilterContentSection">
@@ -351,10 +351,10 @@
351
351
  <section class="FilterFooterSection" part="FilterFooterSection">
352
352
  {#if provisionalVendorArray}
353
353
  {#if provisionalVendorArray.length}
354
- <div class="ClearFiltersButton" part="ClearFiltersButton" on:click="{() => clearVendorFilter()}">{$_('filters.filterClear')}</div>
354
+ <div class="ClearFiltersButton" part="ClearFiltersButton" on:click="{() => clearVendorFilter()}">{$_('filterClear')}</div>
355
355
  {/if}
356
356
  {/if}
357
- <div class="ApplyFiltersButton {!applyFilters ? 'ApplyFilterButtonDisabled' : ''}" part="ApplyFiltersButton {!applyFilters ? 'ApplyFilterButtonDisabled' : ''}" on:click="{() => applyVendorFilter()}">{$_('filters.filterApply')}</div>
357
+ <div class="ApplyFiltersButton {!applyFilters ? 'ApplyFilterButtonDisabled' : ''}" part="ApplyFiltersButton {!applyFilters ? 'ApplyFilterButtonDisabled' : ''}" on:click="{() => applyVendorFilter()}">{$_('filterApply')}</div>
358
358
  </section>
359
359
  </div>
360
360
  {/if}
@@ -1,137 +1,107 @@
1
- export const VendorFilterPageTranslations = {
2
- en: {
3
- filters: {
4
- loading: 'Loading',
5
- filterModalTitle: 'Filter',
6
- filterModalSubtitle: 'You can select multiple options',
7
- filterClear: 'Reset filter',
8
- filterApply: 'Done'
9
- }
1
+ export const TRANSLATIONS = {
2
+ "en": {
3
+ "loading": "Loading",
4
+ "filterModalTitle": "Filter",
5
+ "filterModalSubtitle": "You can select multiple options",
6
+ "filterClear": "Reset filter",
7
+ "filterApply": "Done"
10
8
  },
11
- 'zh-hk': {
12
- filters: {
13
- loading: '正在加載',
14
- filterModalTitle: '篩選',
15
- filterModalSubtitle: '您可以選擇多個選項',
16
- filterClear: '重置過濾器',
17
- filterApply: '完畢'
18
- }
9
+ "zh-hk": {
10
+ "loading": "正在加載",
11
+ "filterModalTitle": "篩選",
12
+ "filterModalSubtitle": "您可以選擇多個選項",
13
+ "filterClear": "重置過濾器",
14
+ "filterApply": "完畢"
19
15
  },
20
- de: {
21
- filters: {
22
- loading: 'Loading',
23
- filterModalTitle: 'Filter',
24
- filterModalSubtitle: 'Mehrfachauswahl möglich',
25
- filterClear: 'Filter zurücksetzen',
26
- filterApply: 'Fertig'
27
- }
16
+ "de": {
17
+ "loading": "Loading",
18
+ "filterModalTitle": "Filter",
19
+ "filterModalSubtitle": "Mehrfachauswahl möglich",
20
+ "filterClear": "Filter zurücksetzen",
21
+ "filterApply": "Fertig"
28
22
  },
29
- it: {
30
- filters: {
31
- loading: 'Loading',
32
- filterModalTitle: 'Filtro',
33
- filterModalSubtitle: possibile la selezione multipla',
34
- filterClear: 'Resetta il filtro',
35
- filterApply: 'Fatto'
36
- }
23
+ "it": {
24
+ "loading": "Loading",
25
+ "filterModalTitle": "Filtro",
26
+ "filterModalSubtitle": "È possibile la selezione multipla",
27
+ "filterClear": "Resetta il filtro",
28
+ "filterApply": "Fatto"
37
29
  },
38
- fr: {
39
- filters: {
40
- loading: 'Chargement',
41
- filterModalTitle: 'Filtre',
42
- filterModalSubtitle: 'Vous pouvez sélectinner plusieurs options',
43
- filterClear: 'Réinitialiser le filtre',
44
- filterApply: 'Fait'
45
- }
30
+ "fr": {
31
+ "loading": "Chargement",
32
+ "filterModalTitle": "Filtre",
33
+ "filterModalSubtitle": "Vous pouvez sélectinner plusieurs options",
34
+ "filterClear": "Réinitialiser le filtre",
35
+ "filterApply": "Fait"
46
36
  },
47
- es: {
48
- filters: {
49
- loading: 'Cargando',
50
- filterModalTitle: 'Filtro',
51
- filterModalSubtitle: 'Selecciona multiples opciones',
52
- filterClear: 'Resetear Filtro',
53
- filterApply: 'Aplicar'
54
- }
37
+ "es": {
38
+ "loading": "Cargando",
39
+ "filterModalTitle": "Filtro",
40
+ "filterModalSubtitle": "Selecciona multiples opciones",
41
+ "filterClear": "Resetear Filtro",
42
+ "filterApply": "Aplicar"
55
43
  },
56
- tr: {
57
- filters: {
58
- loading: 'Yükleniyor ...',
59
- filterModalTitle: 'Tarafından filtre',
60
- filterModalSubtitle: 'Birden fazla satıcı seçebilirsiniz',
61
- filterClear: 'Temizlemek',
62
- filterApply: 'Uygulamak'
63
- }
44
+ "tr": {
45
+ "loading": "Yükleniyor ...",
46
+ "filterModalTitle": "Tarafından filtre",
47
+ "filterModalSubtitle": "Birden fazla satıcı seçebilirsiniz",
48
+ "filterClear": "Temizlemek",
49
+ "filterApply": "Uygulamak"
64
50
  },
65
- ru: {
66
- filters: {
67
- loading: 'Загрузка ...',
68
- filterModalTitle: 'Фильтровать по',
69
- filterModalSubtitle: 'Вы можете выбрать несколько поставщиков',
70
- filterClear: 'Oчищать',
71
- filterApply: 'Применять'
72
- }
51
+ "ru": {
52
+ "loading": "Загрузка ...",
53
+ "filterModalTitle": "Фильтровать по",
54
+ "filterModalSubtitle": "Вы можете выбрать несколько поставщиков",
55
+ "filterClear": "Oчищать",
56
+ "filterApply": "Применять"
73
57
  },
74
- ro: {
75
- filters: {
76
- loading: 'Se incarca ...',
77
- filterModalTitle: 'Filtreaza dupa',
78
- filterModalSubtitle: 'Puteți selecta mai mulți furnizori',
79
- filterClear: 'Sterge',
80
- filterApply: 'Aplica'
81
- }
58
+ "ro": {
59
+ "loading": "Se incarca ...",
60
+ "filterModalTitle": "Filtreaza dupa",
61
+ "filterModalSubtitle": "Puteți selecta mai mulți furnizori",
62
+ "filterClear": "Sterge",
63
+ "filterApply": "Aplica"
82
64
  },
83
- hr: {
84
- filters: {
85
- loading: 'Učitavanje',
86
- filterModalTitle: 'Filter',
87
- filterModalSubtitle: 'Možete odabrati više opcija',
88
- filterClear: 'Ponovno postavi filter',
89
- filterApply: 'Gotovo'
90
- }
65
+ "hr": {
66
+ "loading": "Učitavanje",
67
+ "filterModalTitle": "Filter",
68
+ "filterModalSubtitle": "Možete odabrati više opcija",
69
+ "filterClear": "Ponovno postavi filter",
70
+ "filterApply": "Gotovo"
91
71
  },
92
- hu: {
93
- filters: {
94
- loading: 'betöltés',
95
- filterModalTitle: 'Szűrő',
96
- filterModalSubtitle: 'Több lehetőséget is kiválaszthat',
97
- filterClear: 'Szűrő visszaállítása',
98
- filterApply: 'Kész'
99
- }
72
+ "hu": {
73
+ "loading": "betöltés",
74
+ "filterModalTitle": "Szűrő",
75
+ "filterModalSubtitle": "Több lehetőséget is kiválaszthat",
76
+ "filterClear": "Szűrő visszaállítása",
77
+ "filterApply": "Kész"
100
78
  },
101
- pl: {
102
- filters: {
103
- loading: 'Ładowanie',
104
- filterModalTitle: 'Wyszukaj',
105
- filterModalSubtitle: 'Możliwy wybór wielokrotny',
106
- filterClear: 'Wyłącz filtr',
107
- filterApply: 'Gotowe'
108
- }
79
+ "pl": {
80
+ "loading": "Ładowanie",
81
+ "filterModalTitle": "Wyszukaj",
82
+ "filterModalSubtitle": "Możliwy wybór wielokrotny",
83
+ "filterClear": "Wyłącz filtr",
84
+ "filterApply": "Gotowe"
109
85
  },
110
- pt: {
111
- filters: {
112
- loading: 'Carregando',
113
- filterModalTitle: 'Filtro',
114
- filterModalSubtitle: 'Você pode selecionar várias opções',
115
- filterClear: 'Redefinir filtro',
116
- filterApply: 'Finalizado'
117
- }
86
+ "pt": {
87
+ "loading": "Carregando",
88
+ "filterModalTitle": "Filtro",
89
+ "filterModalSubtitle": "Você pode selecionar várias opções",
90
+ "filterClear": "Redefinir filtro",
91
+ "filterApply": "Finalizado"
118
92
  },
119
- sl: {
120
- filters: {
121
- loading: 'Loading',
122
- filterModalTitle: 'Filter',
123
- filterModalSubtitle: 'Izberete lahko več možnosti',
124
- filterClear: 'Ponastavi filter',
125
- filterApply: 'Končano'
126
- }
93
+ "sl": {
94
+ "loading": "Loading",
95
+ "filterModalTitle": "Filter",
96
+ "filterModalSubtitle": "Izberete lahko več možnosti",
97
+ "filterClear": "Ponastavi filter",
98
+ "filterApply": "Končano"
127
99
  },
128
- sr: {
129
- filters: {
130
- loading: 'Loading',
131
- filterModalTitle: 'Filter',
132
- filterModalSubtitle: 'Moguć je višestruki izbor',
133
- filterClear: 'Resetujte filter',
134
- filterApply: 'Gotovo'
135
- }
100
+ "sr": {
101
+ "loading": "Loading",
102
+ "filterModalTitle": "Filter",
103
+ "filterModalSubtitle": "Moguć je višestruki izbor",
104
+ "filterClear": "Resetujte filter",
105
+ "filterApply": "Gotovo"
136
106
  }
137
- };
107
+ }