aloha-vue 1.2.67 → 1.2.69
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/docs/src/components/TheMenu/TheMenu.js +21 -0
- package/docs/src/mainTranslation.js +27 -0
- package/docs/src/router/index.js +15 -0
- package/docs/src/views/Functions/PageFilterFileSize/PageFilterFileSize.js +35 -0
- package/docs/src/views/Functions/PageFilterFileSize/PageFilterFileSize.pug +24 -0
- package/docs/src/views/Functions/PageFilterFileSize/PageFilterFileSize.vue +2 -0
- package/docs/src/views/Functions/PageFilterFileSize/PageFilterFileSizeArguments/PageFilterFileSizeArguments.js +19 -0
- package/docs/src/views/Functions/PageFilterFileSize/PageFilterFileSizeArguments/PageFilterFileSizeArguments.pug +5 -0
- package/docs/src/views/Functions/PageFilterFileSize/PageFilterFileSizeArguments/PageFilterFileSizeArguments.vue +2 -0
- package/docs/src/views/Functions/PageFilterFileSize/PageFilterFileSizeArguments/compositionAPI/JsAPI.js +25 -0
- package/docs/src/views/Functions/PageFilterFileSize/PageFilterFileSizeDigits/PageFilterFileSizeDigits.js +19 -0
- package/docs/src/views/Functions/PageFilterFileSize/PageFilterFileSizeDigits/PageFilterFileSizeDigits.pug +5 -0
- package/docs/src/views/Functions/PageFilterFileSize/PageFilterFileSizeDigits/PageFilterFileSizeDigits.vue +2 -0
- package/docs/src/views/Functions/PageFilterFileSize/PageFilterFileSizeDigits/compositionAPI/JsAPI.js +19 -0
- package/docs/src/views/Functions/PageFilterFileSize/PageFilterFileSizeExample/PageFilterFileSizeExample.js +19 -0
- package/docs/src/views/Functions/PageFilterFileSize/PageFilterFileSizeExample/PageFilterFileSizeExample.pug +5 -0
- package/docs/src/views/Functions/PageFilterFileSize/PageFilterFileSizeExample/PageFilterFileSizeExample.vue +2 -0
- package/docs/src/views/Functions/PageFilterFileSize/PageFilterFileSizeExample/compositionAPI/JsAPI.js +19 -0
- package/docs/src/views/Functions/PageFilterFileSize/PageFilterFileSizeImportCompositionApi/PageFilterFileSizeImportCompositionApi.js +19 -0
- package/docs/src/views/Functions/PageFilterFileSize/PageFilterFileSizeImportCompositionApi/PageFilterFileSizeImportCompositionApi.pug +5 -0
- package/docs/src/views/Functions/PageFilterFileSize/PageFilterFileSizeImportCompositionApi/PageFilterFileSizeImportCompositionApi.vue +2 -0
- package/docs/src/views/Functions/PageFilterFileSize/PageFilterFileSizeImportCompositionApi/compositionAPI/JsAPI.js +15 -0
- package/docs/src/views/Functions/PageFilterFileSize/PageFilterFileSizeImportFunction/PageFilterFileSizeImportFunction.js +19 -0
- package/docs/src/views/Functions/PageFilterFileSize/PageFilterFileSizeImportFunction/PageFilterFileSizeImportFunction.pug +5 -0
- package/docs/src/views/Functions/PageFilterFileSize/PageFilterFileSizeImportFunction/PageFilterFileSizeImportFunction.vue +2 -0
- package/docs/src/views/Functions/PageFilterFileSize/PageFilterFileSizeImportFunction/compositionAPI/JsAPI.js +7 -0
- package/docs/src/views/Functions/PageFilterFileSize/PageFilterFileSizeSourceUnits/PageFilterFileSizeSourceUnits.js +19 -0
- package/docs/src/views/Functions/PageFilterFileSize/PageFilterFileSizeSourceUnits/PageFilterFileSizeSourceUnits.pug +5 -0
- package/docs/src/views/Functions/PageFilterFileSize/PageFilterFileSizeSourceUnits/PageFilterFileSizeSourceUnits.vue +2 -0
- package/docs/src/views/Functions/PageFilterFileSize/PageFilterFileSizeSourceUnits/compositionAPI/JsAPI.js +28 -0
- package/docs/src/views/Functions/PageFilterFileSize/PageFilterFileSizeUnits/PageFilterFileSizeUnits.js +19 -0
- package/docs/src/views/Functions/PageFilterFileSize/PageFilterFileSizeUnits/PageFilterFileSizeUnits.pug +5 -0
- package/docs/src/views/Functions/PageFilterFileSize/PageFilterFileSizeUnits/PageFilterFileSizeUnits.vue +2 -0
- package/docs/src/views/Functions/PageFilterFileSize/PageFilterFileSizeUnits/compositionAPI/JsAPI.js +28 -0
- package/docs/src/views/Functions/PageFilterFileSize/compositionAPI/PageTitleAPI.js +7 -0
- package/docs/src/views/Functions/PageFilterFileSize/i18n/PageFilterFileSizeI18n.js +19 -0
- package/docs/src/views/Functions/PageFilterFileSize/i18n/ar.json +4 -0
- package/docs/src/views/Functions/PageFilterFileSize/i18n/de.json +4 -0
- package/docs/src/views/Functions/PageFilterFileSize/i18n/en.json +4 -0
- package/docs/src/views/Functions/PageFilterFileSize/i18n/es.json +4 -0
- package/docs/src/views/Functions/PageFilterFileSize/i18n/fr.json +4 -0
- package/docs/src/views/Functions/PageFilterFileSize/i18n/hr.json +4 -0
- package/docs/src/views/Functions/PageFilterFileSize/i18n/it.json +4 -0
- package/docs/src/views/Functions/PageFilterFileSize/i18n/ru.json +4 -0
- package/docs/src/views/Functions/PageFilterJson/PageFilterJson.js +33 -0
- package/docs/src/views/Functions/PageFilterJson/PageFilterJson.pug +22 -0
- package/docs/src/views/Functions/PageFilterJson/PageFilterJson.vue +2 -0
- package/docs/src/views/Functions/PageFilterJson/PageFilterJsonArguments/PageFilterJsonArguments.js +19 -0
- package/docs/src/views/Functions/PageFilterJson/PageFilterJsonArguments/PageFilterJsonArguments.pug +5 -0
- package/docs/src/views/Functions/PageFilterJson/PageFilterJsonArguments/PageFilterJsonArguments.vue +2 -0
- package/docs/src/views/Functions/PageFilterJson/PageFilterJsonArguments/compositionAPI/JsAPI.js +25 -0
- package/docs/src/views/Functions/PageFilterJson/PageFilterJsonExample/PageFilterJsonExample.js +19 -0
- package/docs/src/views/Functions/PageFilterJson/PageFilterJsonExample/PageFilterJsonExample.pug +5 -0
- package/docs/src/views/Functions/PageFilterJson/PageFilterJsonExample/PageFilterJsonExample.vue +2 -0
- package/docs/src/views/Functions/PageFilterJson/PageFilterJsonExample/compositionAPI/JsAPI.js +25 -0
- package/docs/src/views/Functions/PageFilterJson/PageFilterJsonImportCompositionApi/PageFilterJsonImportCompositionApi.js +19 -0
- package/docs/src/views/Functions/PageFilterJson/PageFilterJsonImportCompositionApi/PageFilterJsonImportCompositionApi.pug +5 -0
- package/docs/src/views/Functions/PageFilterJson/PageFilterJsonImportCompositionApi/PageFilterJsonImportCompositionApi.vue +2 -0
- package/docs/src/views/Functions/PageFilterJson/PageFilterJsonImportCompositionApi/compositionAPI/JsAPI.js +15 -0
- package/docs/src/views/Functions/PageFilterJson/PageFilterJsonImportFunction/PageFilterJsonImportFunction.js +19 -0
- package/docs/src/views/Functions/PageFilterJson/PageFilterJsonImportFunction/PageFilterJsonImportFunction.pug +5 -0
- package/docs/src/views/Functions/PageFilterJson/PageFilterJsonImportFunction/PageFilterJsonImportFunction.vue +2 -0
- package/docs/src/views/Functions/PageFilterJson/PageFilterJsonImportFunction/compositionAPI/JsAPI.js +7 -0
- package/docs/src/views/Functions/PageFilterJson/PageFilterJsonReplacer/PageFilterJsonReplacer.js +19 -0
- package/docs/src/views/Functions/PageFilterJson/PageFilterJsonReplacer/PageFilterJsonReplacer.pug +5 -0
- package/docs/src/views/Functions/PageFilterJson/PageFilterJsonReplacer/PageFilterJsonReplacer.vue +2 -0
- package/docs/src/views/Functions/PageFilterJson/PageFilterJsonReplacer/compositionAPI/JsAPI.js +45 -0
- package/docs/src/views/Functions/PageFilterJson/PageFilterJsonSpace/PageFilterJsonSpace.js +19 -0
- package/docs/src/views/Functions/PageFilterJson/PageFilterJsonSpace/PageFilterJsonSpace.pug +5 -0
- package/docs/src/views/Functions/PageFilterJson/PageFilterJsonSpace/PageFilterJsonSpace.vue +2 -0
- package/docs/src/views/Functions/PageFilterJson/PageFilterJsonSpace/compositionAPI/JsAPI.js +16 -0
- package/docs/src/views/Functions/PageFilterJson/compositionAPI/PageTitleAPI.js +7 -0
- package/docs/src/views/Functions/PageFilterJson/i18n/PageFilterJsonI18n.js +19 -0
- package/docs/src/views/Functions/PageFilterJson/i18n/ar.json +4 -0
- package/docs/src/views/Functions/PageFilterJson/i18n/de.json +4 -0
- package/docs/src/views/Functions/PageFilterJson/i18n/en.json +4 -0
- package/docs/src/views/Functions/PageFilterJson/i18n/es.json +4 -0
- package/docs/src/views/Functions/PageFilterJson/i18n/fr.json +4 -0
- package/docs/src/views/Functions/PageFilterJson/i18n/hr.json +4 -0
- package/docs/src/views/Functions/PageFilterJson/i18n/it.json +4 -0
- package/docs/src/views/Functions/PageFilterJson/i18n/ru.json +4 -0
- package/docs/src/views/Functions/PageFilterKeyValue/PageFilterKeyValue.js +29 -0
- package/docs/src/views/Functions/PageFilterKeyValue/PageFilterKeyValue.pug +18 -0
- package/docs/src/views/Functions/PageFilterKeyValue/PageFilterKeyValue.vue +2 -0
- package/docs/src/views/Functions/PageFilterKeyValue/PageFilterKeyValueArguments/PageFilterKeyValueArguments.js +19 -0
- package/docs/src/views/Functions/PageFilterKeyValue/PageFilterKeyValueArguments/PageFilterKeyValueArguments.pug +5 -0
- package/docs/src/views/Functions/PageFilterKeyValue/PageFilterKeyValueArguments/PageFilterKeyValueArguments.vue +2 -0
- package/docs/src/views/Functions/PageFilterKeyValue/PageFilterKeyValueArguments/compositionAPI/JsAPI.js +25 -0
- package/docs/src/views/Functions/PageFilterKeyValue/PageFilterKeyValueExample/PageFilterKeyValueExample.js +19 -0
- package/docs/src/views/Functions/PageFilterKeyValue/PageFilterKeyValueExample/PageFilterKeyValueExample.pug +5 -0
- package/docs/src/views/Functions/PageFilterKeyValue/PageFilterKeyValueExample/PageFilterKeyValueExample.vue +2 -0
- package/docs/src/views/Functions/PageFilterKeyValue/PageFilterKeyValueExample/compositionAPI/JsAPI.js +10 -0
- package/docs/src/views/Functions/PageFilterKeyValue/PageFilterKeyValueImportCompositionApi/PageFilterKeyValueImportCompositionApi.js +19 -0
- package/docs/src/views/Functions/PageFilterKeyValue/PageFilterKeyValueImportCompositionApi/PageFilterKeyValueImportCompositionApi.pug +5 -0
- package/docs/src/views/Functions/PageFilterKeyValue/PageFilterKeyValueImportCompositionApi/PageFilterKeyValueImportCompositionApi.vue +2 -0
- package/docs/src/views/Functions/PageFilterKeyValue/PageFilterKeyValueImportCompositionApi/compositionAPI/JsAPI.js +15 -0
- package/docs/src/views/Functions/PageFilterKeyValue/PageFilterKeyValueImportFunction/PageFilterKeyValueImportFunction.js +19 -0
- package/docs/src/views/Functions/PageFilterKeyValue/PageFilterKeyValueImportFunction/PageFilterKeyValueImportFunction.pug +5 -0
- package/docs/src/views/Functions/PageFilterKeyValue/PageFilterKeyValueImportFunction/PageFilterKeyValueImportFunction.vue +2 -0
- package/docs/src/views/Functions/PageFilterKeyValue/PageFilterKeyValueImportFunction/compositionAPI/JsAPI.js +7 -0
- package/docs/src/views/Functions/PageFilterKeyValue/compositionAPI/PageTitleAPI.js +7 -0
- package/docs/src/views/Functions/PageFilterKeyValue/i18n/PageFilterKeyValueI18n.js +19 -0
- package/docs/src/views/Functions/PageFilterKeyValue/i18n/ar.json +4 -0
- package/docs/src/views/Functions/PageFilterKeyValue/i18n/de.json +4 -0
- package/docs/src/views/Functions/PageFilterKeyValue/i18n/en.json +4 -0
- package/docs/src/views/Functions/PageFilterKeyValue/i18n/es.json +4 -0
- package/docs/src/views/Functions/PageFilterKeyValue/i18n/fr.json +4 -0
- package/docs/src/views/Functions/PageFilterKeyValue/i18n/hr.json +4 -0
- package/docs/src/views/Functions/PageFilterKeyValue/i18n/it.json +4 -0
- package/docs/src/views/Functions/PageFilterKeyValue/i18n/ru.json +4 -0
- package/package.json +1 -1
- package/src/AGet/AGet.js +1 -1
- package/src/PVP/new.txt +5 -0
- package/src/compositionAPI/AFiltersAPI.js +26 -19
- package/src/filters/{date.js → filterDate.js} +4 -4
- package/src/filters/filterFileSize.js +44 -0
- package/src/filters/filterFloat.js +5 -0
- package/src/filters/filterJson.js +14 -0
- package/src/filters/i18n/Filters18n.js +19 -0
- package/src/filters/i18n/ar.json +7 -0
- package/src/filters/i18n/de.json +7 -0
- package/src/filters/i18n/en.json +7 -0
- package/src/filters/i18n/es.json +7 -0
- package/src/filters/i18n/fr.json +7 -0
- package/src/filters/i18n/hr.json +7 -0
- package/src/filters/i18n/it.json +7 -0
- package/src/filters/i18n/ru.json +7 -0
- package/src/i18n/allLanguages.js +9 -0
- package/src/filters/FileSize.js +0 -17
- package/src/filters/FromNow.js +0 -34
- package/src/filters/IsFilter.js +0 -55
- package/src/filters/filters.js +0 -39
- package/src/filters/iban.js +0 -20
- package/src/filters/json.js +0 -10
- package/src/filters/spaced.js +0 -57
- /package/src/filters/{currency.js → filterCurrency.js} +0 -0
- /package/src/filters/{KeyValue.js → filterKeyValue.js} +0 -0
|
@@ -150,6 +150,27 @@ export default {
|
|
|
150
150
|
name: "PageFilterEmail",
|
|
151
151
|
},
|
|
152
152
|
},
|
|
153
|
+
{
|
|
154
|
+
id: "PageFilterFileSize",
|
|
155
|
+
label: "filterFileSize",
|
|
156
|
+
to: {
|
|
157
|
+
name: "PageFilterFileSize",
|
|
158
|
+
},
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
id: "PageFilterJson",
|
|
162
|
+
label: "filterJson",
|
|
163
|
+
to: {
|
|
164
|
+
name: "PageFilterJson",
|
|
165
|
+
},
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
id: "PageFilterKeyValue",
|
|
169
|
+
label: "filterKeyValue",
|
|
170
|
+
to: {
|
|
171
|
+
name: "PageFilterKeyValue",
|
|
172
|
+
},
|
|
173
|
+
},
|
|
153
174
|
{
|
|
154
175
|
id: "PageFilterLimitTo",
|
|
155
176
|
label: "filterLimitTo",
|
|
@@ -51,6 +51,9 @@ import PageFilterEmailI18n from "./views/Functions/PageFilterEmail/i18n/PageFilt
|
|
|
51
51
|
import PageFilterPropertyByValueI18n from "./views/Functions/PageFilterPropertyByValue/i18n/PageFilterPropertyByValueI18n";
|
|
52
52
|
import PageFilterSearchHighlightI18n from "./views/Functions/PageFilterSearchHighlight/i18n/PageFilterSearchHighlightI18n";
|
|
53
53
|
import PageFilterLinkI18n from "./views/Functions/PageFilterLink/i18n/PageFilterLinkI18n";
|
|
54
|
+
import PageFilterJsonI18n from "./views/Functions/PageFilterJson/i18n/PageFilterJsonI18n";
|
|
55
|
+
import PageFilterKeyValueI18n from "./views/Functions/PageFilterKeyValue/i18n/PageFilterKeyValueI18n";
|
|
56
|
+
import PageFilterFileSizeI18n from "./views/Functions/PageFilterFileSize/i18n/PageFilterFileSizeI18n";
|
|
54
57
|
|
|
55
58
|
export const mainTranslation = {
|
|
56
59
|
ar: {
|
|
@@ -98,6 +101,9 @@ export const mainTranslation = {
|
|
|
98
101
|
...PageFilterPropertyByValueI18n.ar,
|
|
99
102
|
...PageFilterSearchHighlightI18n.ar,
|
|
100
103
|
...PageFilterLinkI18n.ar,
|
|
104
|
+
...PageFilterJsonI18n.ar,
|
|
105
|
+
...PageFilterKeyValueI18n.ar,
|
|
106
|
+
...PageFilterFileSizeI18n.ar,
|
|
101
107
|
},
|
|
102
108
|
de: {
|
|
103
109
|
...allLanguages.de,
|
|
@@ -144,6 +150,9 @@ export const mainTranslation = {
|
|
|
144
150
|
...PageFilterPropertyByValueI18n.de,
|
|
145
151
|
...PageFilterSearchHighlightI18n.de,
|
|
146
152
|
...PageFilterLinkI18n.de,
|
|
153
|
+
...PageFilterJsonI18n.de,
|
|
154
|
+
...PageFilterKeyValueI18n.de,
|
|
155
|
+
...PageFilterFileSizeI18n.de,
|
|
147
156
|
},
|
|
148
157
|
en: {
|
|
149
158
|
...allLanguages.en,
|
|
@@ -190,6 +199,9 @@ export const mainTranslation = {
|
|
|
190
199
|
...PageFilterPropertyByValueI18n.en,
|
|
191
200
|
...PageFilterSearchHighlightI18n.en,
|
|
192
201
|
...PageFilterLinkI18n.en,
|
|
202
|
+
...PageFilterJsonI18n.en,
|
|
203
|
+
...PageFilterKeyValueI18n.en,
|
|
204
|
+
...PageFilterFileSizeI18n.en,
|
|
193
205
|
},
|
|
194
206
|
es: {
|
|
195
207
|
...allLanguages.es,
|
|
@@ -236,6 +248,9 @@ export const mainTranslation = {
|
|
|
236
248
|
...PageFilterPropertyByValueI18n.es,
|
|
237
249
|
...PageFilterSearchHighlightI18n.es,
|
|
238
250
|
...PageFilterLinkI18n.es,
|
|
251
|
+
...PageFilterJsonI18n.es,
|
|
252
|
+
...PageFilterKeyValueI18n.es,
|
|
253
|
+
...PageFilterFileSizeI18n.es,
|
|
239
254
|
},
|
|
240
255
|
fr: {
|
|
241
256
|
...allLanguages.fr,
|
|
@@ -282,6 +297,9 @@ export const mainTranslation = {
|
|
|
282
297
|
...PageFilterPropertyByValueI18n.fr,
|
|
283
298
|
...PageFilterSearchHighlightI18n.fr,
|
|
284
299
|
...PageFilterLinkI18n.fr,
|
|
300
|
+
...PageFilterJsonI18n.fr,
|
|
301
|
+
...PageFilterKeyValueI18n.fr,
|
|
302
|
+
...PageFilterFileSizeI18n.fr,
|
|
285
303
|
},
|
|
286
304
|
hr: {
|
|
287
305
|
...allLanguages.hr,
|
|
@@ -328,6 +346,9 @@ export const mainTranslation = {
|
|
|
328
346
|
...PageFilterPropertyByValueI18n.hr,
|
|
329
347
|
...PageFilterSearchHighlightI18n.hr,
|
|
330
348
|
...PageFilterLinkI18n.hr,
|
|
349
|
+
...PageFilterJsonI18n.hr,
|
|
350
|
+
...PageFilterKeyValueI18n.hr,
|
|
351
|
+
...PageFilterFileSizeI18n.hr,
|
|
331
352
|
},
|
|
332
353
|
it: {
|
|
333
354
|
...allLanguages.it,
|
|
@@ -374,6 +395,9 @@ export const mainTranslation = {
|
|
|
374
395
|
...PageFilterPropertyByValueI18n.it,
|
|
375
396
|
...PageFilterSearchHighlightI18n.it,
|
|
376
397
|
...PageFilterLinkI18n.it,
|
|
398
|
+
...PageFilterJsonI18n.it,
|
|
399
|
+
...PageFilterKeyValueI18n.it,
|
|
400
|
+
...PageFilterFileSizeI18n.it,
|
|
377
401
|
},
|
|
378
402
|
ru: {
|
|
379
403
|
...allLanguages.ru,
|
|
@@ -420,5 +444,8 @@ export const mainTranslation = {
|
|
|
420
444
|
...PageFilterPropertyByValueI18n.ru,
|
|
421
445
|
...PageFilterSearchHighlightI18n.ru,
|
|
422
446
|
...PageFilterLinkI18n.ru,
|
|
447
|
+
...PageFilterJsonI18n.ru,
|
|
448
|
+
...PageFilterKeyValueI18n.ru,
|
|
449
|
+
...PageFilterFileSizeI18n.ru,
|
|
423
450
|
},
|
|
424
451
|
};
|
package/docs/src/router/index.js
CHANGED
|
@@ -314,6 +314,21 @@ const ROUTES = [
|
|
|
314
314
|
name: "PageFilterLink",
|
|
315
315
|
component: () => import(/* webpackChunkName: "PageFilterLink" */ "../views/Functions/PageFilterLink/PageFilterLink.vue"),
|
|
316
316
|
},
|
|
317
|
+
{
|
|
318
|
+
path: "/filter-json",
|
|
319
|
+
name: "PageFilterJson",
|
|
320
|
+
component: () => import(/* webpackChunkName: "PageFilterJson" */ "../views/Functions/PageFilterJson/PageFilterJson.vue"),
|
|
321
|
+
},
|
|
322
|
+
{
|
|
323
|
+
path: "/filter-key-value",
|
|
324
|
+
name: "PageFilterKeyValue",
|
|
325
|
+
component: () => import(/* webpackChunkName: "PageFilterKeyValue" */ "../views/Functions/PageFilterKeyValue/PageFilterKeyValue.vue"),
|
|
326
|
+
},
|
|
327
|
+
{
|
|
328
|
+
path: "/filter-file-size",
|
|
329
|
+
name: "PageFilterFileSize",
|
|
330
|
+
component: () => import(/* webpackChunkName: "PageFilterFileSize" */ "../views/Functions/PageFilterFileSize/PageFilterFileSize.vue"),
|
|
331
|
+
},
|
|
317
332
|
{
|
|
318
333
|
// If the routing configuration '*' reports an error, replace it with '/: catchAll(. *)'
|
|
319
334
|
// caught Error: Catch all routes ("*") must now be defined using a param with a custom regexp
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import AlohaPage from "../../../global/components/AlohaPage/AlohaPage.vue";
|
|
2
|
+
import ATranslation from "../../../../../src/ATranslation/ATranslation";
|
|
3
|
+
import PageFilterFileSizeArguments from "./PageFilterFileSizeArguments/PageFilterFileSizeArguments.vue";
|
|
4
|
+
import PageFilterFileSizeDigits from "./PageFilterFileSizeDigits/PageFilterFileSizeDigits.vue";
|
|
5
|
+
import PageFilterFileSizeExample from "./PageFilterFileSizeExample/PageFilterFileSizeExample.vue";
|
|
6
|
+
import PageFilterFileSizeImportCompositionApi from "./PageFilterFileSizeImportCompositionApi/PageFilterFileSizeImportCompositionApi.vue";
|
|
7
|
+
import PageFilterFileSizeImportFunction from "./PageFilterFileSizeImportFunction/PageFilterFileSizeImportFunction.vue";
|
|
8
|
+
import PageFilterFileSizeSourceUnits from "./PageFilterFileSizeSourceUnits/PageFilterFileSizeSourceUnits.vue";
|
|
9
|
+
import PageFilterFileSizeUnits from "./PageFilterFileSizeUnits/PageFilterFileSizeUnits.vue";
|
|
10
|
+
|
|
11
|
+
import PageTitleAPI from "./compositionAPI/PageTitleAPI";
|
|
12
|
+
|
|
13
|
+
export default {
|
|
14
|
+
name: "PageFilterFileSize",
|
|
15
|
+
components: {
|
|
16
|
+
AlohaPage,
|
|
17
|
+
ATranslation,
|
|
18
|
+
PageFilterFileSizeArguments,
|
|
19
|
+
PageFilterFileSizeDigits,
|
|
20
|
+
PageFilterFileSizeExample,
|
|
21
|
+
PageFilterFileSizeImportCompositionApi,
|
|
22
|
+
PageFilterFileSizeImportFunction,
|
|
23
|
+
PageFilterFileSizeSourceUnits,
|
|
24
|
+
PageFilterFileSizeUnits,
|
|
25
|
+
},
|
|
26
|
+
setup() {
|
|
27
|
+
const {
|
|
28
|
+
pageTitle,
|
|
29
|
+
} = PageTitleAPI();
|
|
30
|
+
|
|
31
|
+
return {
|
|
32
|
+
pageTitle,
|
|
33
|
+
};
|
|
34
|
+
},
|
|
35
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
aloha-page(
|
|
2
|
+
:page-title="pageTitle"
|
|
3
|
+
)
|
|
4
|
+
template(
|
|
5
|
+
v-slot:body
|
|
6
|
+
)
|
|
7
|
+
a-translation(
|
|
8
|
+
tag="p"
|
|
9
|
+
html="_PAGE_FILTER_FILE_SIZE_DESCRIPTION_"
|
|
10
|
+
)
|
|
11
|
+
|
|
12
|
+
page-filter-file-size-import-function
|
|
13
|
+
|
|
14
|
+
page-filter-file-size-import-composition-api
|
|
15
|
+
|
|
16
|
+
page-filter-file-size-arguments
|
|
17
|
+
|
|
18
|
+
page-filter-file-size-example
|
|
19
|
+
|
|
20
|
+
page-filter-file-size-units
|
|
21
|
+
|
|
22
|
+
page-filter-file-size-source-units
|
|
23
|
+
|
|
24
|
+
page-filter-file-size-digits
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import AlohaExample from "../../../../global/components/AlohaExample/AlohaExample.vue";
|
|
2
|
+
|
|
3
|
+
import JsAPI from "./compositionAPI/JsAPI";
|
|
4
|
+
|
|
5
|
+
export default {
|
|
6
|
+
name: "PageFilterFileSizeArguments",
|
|
7
|
+
components: {
|
|
8
|
+
AlohaExample,
|
|
9
|
+
},
|
|
10
|
+
setup() {
|
|
11
|
+
const {
|
|
12
|
+
codeJs,
|
|
13
|
+
} = JsAPI();
|
|
14
|
+
|
|
15
|
+
return {
|
|
16
|
+
codeJs,
|
|
17
|
+
};
|
|
18
|
+
},
|
|
19
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import {
|
|
2
|
+
computed,
|
|
3
|
+
} from "vue";
|
|
4
|
+
|
|
5
|
+
import {
|
|
6
|
+
getTranslatedText,
|
|
7
|
+
} from "../../../../../../../src/ATranslation/compositionAPI/UtilsAPI";
|
|
8
|
+
|
|
9
|
+
export default function JsAPI() {
|
|
10
|
+
const argumentsTranslated = computed(() => {
|
|
11
|
+
return getTranslatedText({
|
|
12
|
+
placeholder: "_PAGE_FILTER_FILE_SIZE_ARGUMENTS_",
|
|
13
|
+
});
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
const codeJs = computed(() => {
|
|
17
|
+
return `filterFileSize(value, { [units="kb"], [sourceUnits="b"], [digits=2] });
|
|
18
|
+
|
|
19
|
+
${ argumentsTranslated.value }`;
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
return {
|
|
23
|
+
codeJs,
|
|
24
|
+
};
|
|
25
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import AlohaExample from "../../../../global/components/AlohaExample/AlohaExample.vue";
|
|
2
|
+
|
|
3
|
+
import JsAPI from "./compositionAPI/JsAPI";
|
|
4
|
+
|
|
5
|
+
export default {
|
|
6
|
+
name: "PageFilterFileSizeDigits",
|
|
7
|
+
components: {
|
|
8
|
+
AlohaExample,
|
|
9
|
+
},
|
|
10
|
+
setup() {
|
|
11
|
+
const {
|
|
12
|
+
codeJs,
|
|
13
|
+
} = JsAPI();
|
|
14
|
+
|
|
15
|
+
return {
|
|
16
|
+
codeJs,
|
|
17
|
+
};
|
|
18
|
+
},
|
|
19
|
+
};
|
package/docs/src/views/Functions/PageFilterFileSize/PageFilterFileSizeDigits/compositionAPI/JsAPI.js
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import {
|
|
2
|
+
computed,
|
|
3
|
+
} from "vue";
|
|
4
|
+
|
|
5
|
+
import filterFileSize from "../../../../../../../src/filters/filterFileSize";
|
|
6
|
+
|
|
7
|
+
export default function JsAPI() {
|
|
8
|
+
const codeJs = computed(() => {
|
|
9
|
+
return `filterFileSize(1024, { digits: 0 });
|
|
10
|
+
// ${ filterFileSize(1024, { digits: 0 }) }
|
|
11
|
+
|
|
12
|
+
filterFileSize(10241, { digits: 2 });
|
|
13
|
+
// ${ filterFileSize(10241, { digits: 2 }) }`;
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
return {
|
|
17
|
+
codeJs,
|
|
18
|
+
};
|
|
19
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import AlohaExample from "../../../../global/components/AlohaExample/AlohaExample.vue";
|
|
2
|
+
|
|
3
|
+
import JsAPI from "./compositionAPI/JsAPI";
|
|
4
|
+
|
|
5
|
+
export default {
|
|
6
|
+
name: "PageFilterFileSizeExample",
|
|
7
|
+
components: {
|
|
8
|
+
AlohaExample,
|
|
9
|
+
},
|
|
10
|
+
setup() {
|
|
11
|
+
const {
|
|
12
|
+
codeJs,
|
|
13
|
+
} = JsAPI();
|
|
14
|
+
|
|
15
|
+
return {
|
|
16
|
+
codeJs,
|
|
17
|
+
};
|
|
18
|
+
},
|
|
19
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import {
|
|
2
|
+
computed,
|
|
3
|
+
} from "vue";
|
|
4
|
+
|
|
5
|
+
import filterFileSize from "../../../../../../../src/filters/filterFileSize";
|
|
6
|
+
|
|
7
|
+
export default function JsAPI() {
|
|
8
|
+
const codeJs = computed(() => {
|
|
9
|
+
return `filterFileSize(2000);
|
|
10
|
+
// ${ filterFileSize(2000) }
|
|
11
|
+
|
|
12
|
+
filterFileSize(1024);
|
|
13
|
+
// ${ filterFileSize(1024) }`;
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
return {
|
|
17
|
+
codeJs,
|
|
18
|
+
};
|
|
19
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import AlohaExample from "../../../../global/components/AlohaExample/AlohaExample.vue";
|
|
2
|
+
|
|
3
|
+
import JsAPI from "./compositionAPI/JsAPI";
|
|
4
|
+
|
|
5
|
+
export default {
|
|
6
|
+
name: "PageFilterFileSizeImportCompositionApi",
|
|
7
|
+
components: {
|
|
8
|
+
AlohaExample,
|
|
9
|
+
},
|
|
10
|
+
setup() {
|
|
11
|
+
const {
|
|
12
|
+
codeJs,
|
|
13
|
+
} = JsAPI();
|
|
14
|
+
|
|
15
|
+
return {
|
|
16
|
+
codeJs,
|
|
17
|
+
};
|
|
18
|
+
},
|
|
19
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export default function JsAPI() {
|
|
2
|
+
const codeJs = `import AFiltersAPI from "aloha-vue/src/compositionAPI/AFiltersAPI";
|
|
3
|
+
|
|
4
|
+
export default {
|
|
5
|
+
setup() {
|
|
6
|
+
const {
|
|
7
|
+
filterFileSize,
|
|
8
|
+
} = AFiltersAPI();
|
|
9
|
+
},
|
|
10
|
+
};`;
|
|
11
|
+
|
|
12
|
+
return {
|
|
13
|
+
codeJs,
|
|
14
|
+
};
|
|
15
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import AlohaExample from "../../../../global/components/AlohaExample/AlohaExample.vue";
|
|
2
|
+
|
|
3
|
+
import JsAPI from "./compositionAPI/JsAPI";
|
|
4
|
+
|
|
5
|
+
export default {
|
|
6
|
+
name: "PageFilterFileSizeImportFunction",
|
|
7
|
+
components: {
|
|
8
|
+
AlohaExample,
|
|
9
|
+
},
|
|
10
|
+
setup() {
|
|
11
|
+
const {
|
|
12
|
+
codeJs,
|
|
13
|
+
} = JsAPI();
|
|
14
|
+
|
|
15
|
+
return {
|
|
16
|
+
codeJs,
|
|
17
|
+
};
|
|
18
|
+
},
|
|
19
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import AlohaExample from "../../../../global/components/AlohaExample/AlohaExample.vue";
|
|
2
|
+
|
|
3
|
+
import JsAPI from "./compositionAPI/JsAPI";
|
|
4
|
+
|
|
5
|
+
export default {
|
|
6
|
+
name: "PageFilterFileSizeSourceUnits",
|
|
7
|
+
components: {
|
|
8
|
+
AlohaExample,
|
|
9
|
+
},
|
|
10
|
+
setup() {
|
|
11
|
+
const {
|
|
12
|
+
codeJs,
|
|
13
|
+
} = JsAPI();
|
|
14
|
+
|
|
15
|
+
return {
|
|
16
|
+
codeJs,
|
|
17
|
+
};
|
|
18
|
+
},
|
|
19
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import {
|
|
2
|
+
computed,
|
|
3
|
+
} from "vue";
|
|
4
|
+
|
|
5
|
+
import filterFileSize from "../../../../../../../src/filters/filterFileSize";
|
|
6
|
+
|
|
7
|
+
export default function JsAPI() {
|
|
8
|
+
const codeJs = computed(() => {
|
|
9
|
+
return `filterFileSize(1024, { sourceUnits: "b" });
|
|
10
|
+
// ${ filterFileSize(1024, { sourceUnits: "b" }) }
|
|
11
|
+
|
|
12
|
+
filterFileSize(2, { sourceUnits: "kb" });
|
|
13
|
+
// ${ filterFileSize(2, { sourceUnits: "kb" }) }
|
|
14
|
+
|
|
15
|
+
filterFileSize(1, { sourceUnits: "mb" });
|
|
16
|
+
// ${ filterFileSize(1, { sourceUnits: "mb" }) }
|
|
17
|
+
|
|
18
|
+
filterFileSize(0.1, { sourceUnits: "gb" });
|
|
19
|
+
// ${ filterFileSize(0.1, { sourceUnits: "gb" }) }
|
|
20
|
+
|
|
21
|
+
filterFileSize(0.0001, { sourceUnits: "tb" });
|
|
22
|
+
// ${ filterFileSize(0.0001, { sourceUnits: "tb" }) }`;
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
return {
|
|
26
|
+
codeJs,
|
|
27
|
+
};
|
|
28
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import AlohaExample from "../../../../global/components/AlohaExample/AlohaExample.vue";
|
|
2
|
+
|
|
3
|
+
import JsAPI from "./compositionAPI/JsAPI";
|
|
4
|
+
|
|
5
|
+
export default {
|
|
6
|
+
name: "PageFilterFileSizeUnits",
|
|
7
|
+
components: {
|
|
8
|
+
AlohaExample,
|
|
9
|
+
},
|
|
10
|
+
setup() {
|
|
11
|
+
const {
|
|
12
|
+
codeJs,
|
|
13
|
+
} = JsAPI();
|
|
14
|
+
|
|
15
|
+
return {
|
|
16
|
+
codeJs,
|
|
17
|
+
};
|
|
18
|
+
},
|
|
19
|
+
};
|
package/docs/src/views/Functions/PageFilterFileSize/PageFilterFileSizeUnits/compositionAPI/JsAPI.js
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import {
|
|
2
|
+
computed,
|
|
3
|
+
} from "vue";
|
|
4
|
+
|
|
5
|
+
import filterFileSize from "../../../../../../../src/filters/filterFileSize";
|
|
6
|
+
|
|
7
|
+
export default function JsAPI() {
|
|
8
|
+
const codeJs = computed(() => {
|
|
9
|
+
return `filterFileSize(1024, { units: "b" });
|
|
10
|
+
// ${ filterFileSize(1024, { units: "b" }) }
|
|
11
|
+
|
|
12
|
+
filterFileSize(1024, { units: "kb" });
|
|
13
|
+
// ${ filterFileSize(1024, { units: "kb" }) }
|
|
14
|
+
|
|
15
|
+
filterFileSize(1048576, { units: "mb" });
|
|
16
|
+
// ${ filterFileSize(1048576, { units: "mb" }) }
|
|
17
|
+
|
|
18
|
+
filterFileSize(1073741824, { units: "gb" });
|
|
19
|
+
// ${ filterFileSize(1073741824, { units: "gb" }) }
|
|
20
|
+
|
|
21
|
+
filterFileSize(1073741824 * 1024, { units: "tb" });
|
|
22
|
+
// ${ filterFileSize(1073741824 * 1024, { units: "tb" }) }`;
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
return {
|
|
26
|
+
codeJs,
|
|
27
|
+
};
|
|
28
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import ar from "./ar.json";
|
|
2
|
+
import de from "./de.json";
|
|
3
|
+
import en from "./en.json";
|
|
4
|
+
import es from "./es.json";
|
|
5
|
+
import fr from "./fr.json";
|
|
6
|
+
import hr from "./hr.json";
|
|
7
|
+
import it from "./it.json";
|
|
8
|
+
import ru from "./ru.json";
|
|
9
|
+
|
|
10
|
+
export default {
|
|
11
|
+
ar,
|
|
12
|
+
de,
|
|
13
|
+
en,
|
|
14
|
+
es,
|
|
15
|
+
fr,
|
|
16
|
+
hr,
|
|
17
|
+
it,
|
|
18
|
+
ru,
|
|
19
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_PAGE_FILTER_FILE_SIZE_ARGUMENTS_": "# Argumente: \nvalue (Number): Die Größe, die konvertiert werden soll.\n[units=\"kb\"] (String): Die gewünschte Einheit für die Größenangabe. Mögliche Einheiten sind \"b\" (Bytes), \"kb\" (Kilobytes), \"mb\" (Megabytes), \"gb\" (Gigabytes), \"tb\" (Terabytes).\n[sourceUnits=\"b\"] (String): Die Einheit der ursprünglichen Größe. Mögliche Einheiten sind dieselben wie für units.\n[digits=2] (Number): Die Anzahl der Dezimalstellen in der formatierten Zeichenkette",
|
|
3
|
+
"_PAGE_FILTER_FILE_SIZE_DESCRIPTION_": "Die Funktion <strong>filterFileSize</strong> konvertiert eine Größe von einer Quelleinheit (zum Beispiel Bytes) in eine Zielgröße mit einer bestimmten Einheit (zum Beispiel Kilobytes, Megabytes) und gibt das Ergebnis als formatierte Zeichenkette zurück."
|
|
4
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_PAGE_FILTER_FILE_SIZE_ARGUMENTS_": "# Аргументы: \nvalue (Number): Размер, который требуется сконвертировать.\n[units=\"kb\"] (String): Желаемая единица измерения размера. Допустимые единицы измерения: \"b\" (байты), \"kb\" (килобайты), \"mb\" (мегабайты), \"gb\" (гигабайты), \"tb\" (терабайты).\n[sourceUnits=\"b\"] (String): Единица измерения исходного размера. Допустимые единицы измерения те же, что и для units.\n[digits=2] (Number): Количество десятичных знаков в отформатированной строке.",
|
|
3
|
+
"_PAGE_FILTER_FILE_SIZE_DESCRIPTION_": "Функция <strong>filterFileSize</strong> конвертирует размер из исходной единицы измерения (например, байты) в желаемую единицу измерения (например, килобайты, мегабайты) и возвращает результат в виде отформатированной строки."
|
|
4
|
+
}
|