@everymatrix/casino-filter 1.12.0 → 1.12.2
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.
- package/dist/casino-filter.js +26 -26
- package/dist/casino-filter.js.map +1 -1
- package/package.json +2 -2
- package/src/CasinoFilter.svelte +8 -8
- package/src/translations.js +77 -107
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@everymatrix/casino-filter",
|
|
3
|
-
"version": "1.12.
|
|
3
|
+
"version": "1.12.2",
|
|
4
4
|
"main": "dist/casino-filter.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": "22bb69e504862fb909bc5d21d62ba4178aaefe3d"
|
|
39
39
|
}
|
package/src/CasinoFilter.svelte
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<script lang="ts">
|
|
3
3
|
import { getDevice } from 'rvhelper';
|
|
4
4
|
import { _, addNewMessages, setupI18n, setLocale } from './i18n';
|
|
5
|
-
import {
|
|
5
|
+
import { TRANSLATIONS } from './translations';
|
|
6
6
|
import { onMount } from 'svelte';
|
|
7
7
|
|
|
8
8
|
export let endpoint:string = '';
|
|
@@ -43,8 +43,8 @@
|
|
|
43
43
|
});
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
Object.keys(
|
|
47
|
-
addNewMessages(item,
|
|
46
|
+
Object.keys(TRANSLATIONS).forEach((item) => {
|
|
47
|
+
addNewMessages(item, TRANSLATIONS[item]);
|
|
48
48
|
});
|
|
49
49
|
// end translations area
|
|
50
50
|
|
|
@@ -206,7 +206,7 @@
|
|
|
206
206
|
|
|
207
207
|
<div bind:this={customStylingContainer}>
|
|
208
208
|
{#if hasErrors}
|
|
209
|
-
<p class="SearchLoading" part="SearchLoading">{$_('
|
|
209
|
+
<p class="SearchLoading" part="SearchLoading">{$_('500')}</p>
|
|
210
210
|
{:else}
|
|
211
211
|
{#if !isLoading}
|
|
212
212
|
<div class="FilterContainer {(addfilterselector == 'true' && addsortingselector == 'true') ? 'FilerContainerSplit' : ''}">
|
|
@@ -216,11 +216,11 @@
|
|
|
216
216
|
<path id="noun_filter_736223" d="M12.2,22.2a1.018,1.018,0,0,1-.391-.091.939.939,0,0,1-.533-.857v-6.2L5.267,8.9A.95.95,0,0,1,5,8.225V7.149A.93.93,0,0,1,5.924,6.2H20.076A.93.93,0,0,1,21,7.149V8.225a.95.95,0,0,1-.267.675l-6.009,6.148V19.81a.981.981,0,0,1-.32.712l-1.6,1.423A.9.9,0,0,1,12.2,22.2ZM6,8.189,12,14.355a.95.95,0,0,1,.267.675v6.039l1.44-1.277v-4.78a.95.95,0,0,1,.267-.675L19.987,8.17V7.2H6Z" transform="translate(-5 -6.2)" fill="#fff"/>
|
|
217
217
|
</svg>
|
|
218
218
|
<div class="FilterTextContainer">
|
|
219
|
-
<span class="FilterName">{$_('
|
|
219
|
+
<span class="FilterName">{$_('filterby')}</span>
|
|
220
220
|
<div class="FilterValueContainer">
|
|
221
|
-
<span>{$_('
|
|
221
|
+
<span>{$_('providers')}</span>
|
|
222
222
|
{#if fullSelection}
|
|
223
|
-
<span class="FilterCounter">{$_('
|
|
223
|
+
<span class="FilterCounter">{$_('all')}</span>
|
|
224
224
|
{:else}
|
|
225
225
|
<span class="FilterCounter">{selectionNumber}</span>
|
|
226
226
|
{/if}
|
|
@@ -250,7 +250,7 @@
|
|
|
250
250
|
</li>
|
|
251
251
|
{/each}
|
|
252
252
|
</ul>
|
|
253
|
-
<button class="ClearFilters" on:click={() => clearFilters()} disabled={fullSelection && selectedVendorArray.length != vendorArray.length}>{$_('
|
|
253
|
+
<button class="ClearFilters" on:click={() => clearFilters()} disabled={fullSelection && selectedVendorArray.length != vendorArray.length}>{$_('clear')}</button>
|
|
254
254
|
</div>
|
|
255
255
|
</div>
|
|
256
256
|
{/if}
|
package/src/translations.js
CHANGED
|
@@ -1,122 +1,92 @@
|
|
|
1
|
-
export const
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
'clear': 'Clear all'
|
|
8
|
-
}
|
|
1
|
+
export const TRANSLATIONS = {
|
|
2
|
+
"en": {
|
|
3
|
+
"providers": "Providers:",
|
|
4
|
+
"filterby": "Filter by:",
|
|
5
|
+
"all": "All",
|
|
6
|
+
"clear": "Clear all"
|
|
9
7
|
},
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
'clear': 'Clear all'
|
|
16
|
-
}
|
|
8
|
+
"zh": {
|
|
9
|
+
"providers": "Providers:",
|
|
10
|
+
"filterby": "Filter by",
|
|
11
|
+
"all": "all",
|
|
12
|
+
"clear": "Clear all"
|
|
17
13
|
},
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
'clear': 'Clear all'
|
|
24
|
-
}
|
|
14
|
+
"de": {
|
|
15
|
+
"providers": "Providers:",
|
|
16
|
+
"filterby": "Filter by:",
|
|
17
|
+
"all": "all",
|
|
18
|
+
"clear": "Clear all"
|
|
25
19
|
},
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
'clear': 'Clear all'
|
|
32
|
-
}
|
|
20
|
+
"it": {
|
|
21
|
+
"providers": "Providers:",
|
|
22
|
+
"filterby": "Filter by:",
|
|
23
|
+
"all": "all",
|
|
24
|
+
"clear": "Clear all"
|
|
33
25
|
},
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
'clear': 'Clear all'
|
|
40
|
-
}
|
|
26
|
+
"fr": {
|
|
27
|
+
"providers": "Providers:",
|
|
28
|
+
"filterby": "Filter by:",
|
|
29
|
+
"all": "all",
|
|
30
|
+
"clear": "Clear all"
|
|
41
31
|
},
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
'clear': 'Limpiar todos'
|
|
48
|
-
}
|
|
32
|
+
"es": {
|
|
33
|
+
"providers": "Proveedores:",
|
|
34
|
+
"filterby": "Filtrar Por:",
|
|
35
|
+
"all": "Todos",
|
|
36
|
+
"clear": "Limpiar todos"
|
|
49
37
|
},
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
'clear': 'Clear all'
|
|
56
|
-
}
|
|
38
|
+
"tr": {
|
|
39
|
+
"providers": "Providers:",
|
|
40
|
+
"filterby": "Filter by:",
|
|
41
|
+
"all": "all",
|
|
42
|
+
"clear": "Clear all"
|
|
57
43
|
},
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
'clear': 'Clear all'
|
|
64
|
-
}
|
|
44
|
+
"ru": {
|
|
45
|
+
"providers": "Providers:",
|
|
46
|
+
"filterby": "Filter by:",
|
|
47
|
+
"all": "all",
|
|
48
|
+
"clear": "Clear all"
|
|
65
49
|
},
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
'clear': 'Clear all'
|
|
72
|
-
}
|
|
50
|
+
"ro": {
|
|
51
|
+
"providers": "Providers:",
|
|
52
|
+
"filterby": "Filter by:",
|
|
53
|
+
"all": "all",
|
|
54
|
+
"clear": "Clear all"
|
|
73
55
|
},
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
'clear': 'Clear all'
|
|
80
|
-
}
|
|
56
|
+
"hr": {
|
|
57
|
+
"providers": "Providers:",
|
|
58
|
+
"filterby": "Filter by:",
|
|
59
|
+
"all": "all",
|
|
60
|
+
"clear": "Clear all"
|
|
81
61
|
},
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
'clear': 'Clear all'
|
|
88
|
-
}
|
|
62
|
+
"hu": {
|
|
63
|
+
"providers": "Providers:",
|
|
64
|
+
"filterby": "Filter by:",
|
|
65
|
+
"all": "all",
|
|
66
|
+
"clear": "Clear all"
|
|
89
67
|
},
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
'clear': 'Clear all'
|
|
96
|
-
}
|
|
68
|
+
"pl": {
|
|
69
|
+
"providers": "Providers:",
|
|
70
|
+
"filterby": "Filter by:",
|
|
71
|
+
"all": "all",
|
|
72
|
+
"clear": "Clear all"
|
|
97
73
|
},
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
'clear': 'Clear all'
|
|
104
|
-
}
|
|
74
|
+
"pt": {
|
|
75
|
+
"providers": "Providers:",
|
|
76
|
+
"filterby": "Filter by:",
|
|
77
|
+
"all": "all",
|
|
78
|
+
"clear": "Clear all"
|
|
105
79
|
},
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
'clear': 'Clear all'
|
|
112
|
-
}
|
|
80
|
+
"sl": {
|
|
81
|
+
"providers": "Providers:",
|
|
82
|
+
"filterby": "Filter by:",
|
|
83
|
+
"all": "all",
|
|
84
|
+
"clear": "Clear all"
|
|
113
85
|
},
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
'clear': 'Clear all'
|
|
120
|
-
}
|
|
86
|
+
"sr": {
|
|
87
|
+
"providers": "Providers:",
|
|
88
|
+
"filterby": "Filter by:",
|
|
89
|
+
"all": "all",
|
|
90
|
+
"clear": "Clear all"
|
|
121
91
|
}
|
|
122
|
-
}
|
|
92
|
+
}
|