@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.
|
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": "
|
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 {
|
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(
|
54
|
-
addNewMessages(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">{$_('
|
321
|
-
<h5 class="FilterHeaderSubtitle" part="FilterHeaderSubtitle">{$_('
|
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()}">{$_('
|
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()}">{$_('
|
357
|
+
<div class="ApplyFiltersButton {!applyFilters ? 'ApplyFilterButtonDisabled' : ''}" part="ApplyFiltersButton {!applyFilters ? 'ApplyFilterButtonDisabled' : ''}" on:click="{() => applyVendorFilter()}">{$_('filterApply')}</div>
|
358
358
|
</section>
|
359
359
|
</div>
|
360
360
|
{/if}
|
package/src/translations.js
CHANGED
@@ -1,137 +1,107 @@
|
|
1
|
-
export const
|
2
|
-
en: {
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
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
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
filterApply: '完畢'
|
18
|
-
}
|
9
|
+
"zh-hk": {
|
10
|
+
"loading": "正在加載",
|
11
|
+
"filterModalTitle": "篩選",
|
12
|
+
"filterModalSubtitle": "您可以選擇多個選項",
|
13
|
+
"filterClear": "重置過濾器",
|
14
|
+
"filterApply": "完畢"
|
19
15
|
},
|
20
|
-
de: {
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
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
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
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
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
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
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
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
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
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
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
filterApply: 'Применять'
|
72
|
-
}
|
51
|
+
"ru": {
|
52
|
+
"loading": "Загрузка ...",
|
53
|
+
"filterModalTitle": "Фильтровать по",
|
54
|
+
"filterModalSubtitle": "Вы можете выбрать несколько поставщиков",
|
55
|
+
"filterClear": "Oчищать",
|
56
|
+
"filterApply": "Применять"
|
73
57
|
},
|
74
|
-
ro: {
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
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
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
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
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
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
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
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
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
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
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
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
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
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
|
+
}
|