aloha-vue 1.2.154 → 1.2.156
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/compositionAPI/ComponentItemsAPI.js +7 -0
- package/docs/src/components/TheMenu/compositionAPI/FunctionItemsAPI.js +7 -0
- package/docs/src/mainTranslation.js +18 -0
- package/docs/src/router/index.js +10 -0
- package/docs/src/views/Form/PageInputNumberRange/PageInputNumberRangePlaceholder/PageInputNumberRangePlaceholder.pug +1 -1
- package/docs/src/views/Form/PageInputNumberRange/PageInputNumberRangePlaceholder/compositionAPI/HtmlAPI.js +1 -1
- package/docs/src/views/Form/PageInputNumberRange/PageInputNumberRangeTypeInteger/PageInputNumberRangeTypeInteger.pug +2 -2
- package/docs/src/views/Form/PageInputNumberRange/PageInputNumberRangeTypeInteger/compositionAPI/HtmlAPI.js +1 -1
- package/docs/src/views/Form/PageInputNumberRange/PageInputNumberRangeTypeIntegerNonNegative/PageInputNumberRangeTypeIntegerNonNegative.pug +2 -2
- package/docs/src/views/Form/PageInputNumberRange/PageInputNumberRangeTypeIntegerNonNegative/compositionAPI/HtmlAPI.js +1 -1
- package/docs/src/views/Form/PageInputNumberRange/PageInputNumberRangeTypeIntegerPositive/PageInputNumberRangeTypeIntegerPositive.pug +2 -2
- package/docs/src/views/Form/PageInputNumberRange/PageInputNumberRangeTypeIntegerPositive/compositionAPI/HtmlAPI.js +1 -1
- package/docs/src/views/Functions/Utils/PageUtilsGetTotalNestedCount/PageUtilsGetTotalNestedCount.js +40 -0
- package/docs/src/views/Functions/Utils/PageUtilsGetTotalNestedCount/PageUtilsGetTotalNestedCount.pug +26 -0
- package/docs/src/views/Functions/Utils/PageUtilsGetTotalNestedCount/PageUtilsGetTotalNestedCount.vue +2 -0
- package/docs/src/views/Functions/Utils/PageUtilsGetTotalNestedCount/PageUtilsGetTotalNestedCountExample/PageUtilsGetTotalNestedCountExample.js +19 -0
- package/docs/src/views/Functions/Utils/PageUtilsGetTotalNestedCount/PageUtilsGetTotalNestedCountExample/PageUtilsGetTotalNestedCountExample.pug +5 -0
- package/docs/src/views/Functions/Utils/PageUtilsGetTotalNestedCount/PageUtilsGetTotalNestedCountExample/PageUtilsGetTotalNestedCountExample.vue +2 -0
- package/docs/src/views/Functions/Utils/PageUtilsGetTotalNestedCount/PageUtilsGetTotalNestedCountExample/compositionAPI/JsAPI.js +21 -0
- package/docs/src/views/Functions/Utils/PageUtilsGetTotalNestedCount/compositionAPI/ArgumentsAPI.js +22 -0
- package/docs/src/views/Functions/Utils/PageUtilsGetTotalNestedCount/compositionAPI/PageTitleAPI.js +7 -0
- package/docs/src/views/Functions/Utils/PageUtilsGetTotalNestedCount/i18n/PageUtilsGetTotalNestedCountI18n.js +19 -0
- package/docs/src/views/Functions/Utils/PageUtilsGetTotalNestedCount/i18n/ar.json +3 -0
- package/docs/src/views/Functions/Utils/PageUtilsGetTotalNestedCount/i18n/de.json +3 -0
- package/docs/src/views/Functions/Utils/PageUtilsGetTotalNestedCount/i18n/en.json +5 -0
- package/docs/src/views/Functions/Utils/PageUtilsGetTotalNestedCount/i18n/es.json +3 -0
- package/docs/src/views/Functions/Utils/PageUtilsGetTotalNestedCount/i18n/fr.json +3 -0
- package/docs/src/views/Functions/Utils/PageUtilsGetTotalNestedCount/i18n/hr.json +3 -0
- package/docs/src/views/Functions/Utils/PageUtilsGetTotalNestedCount/i18n/it.json +3 -0
- package/docs/src/views/Functions/Utils/PageUtilsGetTotalNestedCount/i18n/ru.json +3 -0
- package/docs/src/views/PageTable/PageTableTree/PageTableTree.js +22 -0
- package/docs/src/views/PageTable/PageTableTree/PageTableTree.pug +8 -0
- package/docs/src/views/PageTable/PageTableTree/PageTableTree.vue +2 -0
- package/docs/src/views/PageTable/PageTableTree/PageTableTreeExample/PageTableTreeExample.js +110 -0
- package/docs/src/views/PageTable/PageTableTree/PageTableTreeExample/PageTableTreeExample.pug +15 -0
- package/docs/src/views/PageTable/PageTableTree/PageTableTreeExample/PageTableTreeExample.vue +2 -0
- package/docs/src/views/PageTable/PageTableTree/PageTableTreeExample/compositionAPI/HtmlAPI.js +13 -0
- package/docs/src/views/PageTable/PageTableTree/PageTableTreeExample/compositionAPI/JsAPI.js +101 -0
- package/docs/src/views/PageTable/PageTableTree/compositionAPI/PageTitleAPI.js +24 -0
- package/docs/src/views/PageTable/PageTableTree/i18n/PageTableTreeI18n.js +19 -0
- package/docs/src/views/PageTable/PageTableTree/i18n/ar.json +3 -0
- package/docs/src/views/PageTable/PageTableTree/i18n/de.json +3 -0
- package/docs/src/views/PageTable/PageTableTree/i18n/en.json +7 -0
- package/docs/src/views/PageTable/PageTableTree/i18n/es.json +3 -0
- package/docs/src/views/PageTable/PageTableTree/i18n/fr.json +3 -0
- package/docs/src/views/PageTable/PageTableTree/i18n/hr.json +6 -0
- package/docs/src/views/PageTable/PageTableTree/i18n/it.json +3 -0
- package/docs/src/views/PageTable/PageTableTree/i18n/ru.json +3 -0
- package/package.json +1 -1
- package/src/ADropdown/compositionAPI/AttributesAPI.js +1 -0
- package/src/AFilters/AFilters/AFilters.js +9 -3
- package/src/AFilters/AFilters/compositionAPI/ExcludeRenderAttributesAPI.js +24 -0
- package/src/ATable/ATable.js +39 -42
- package/src/ATable/ATableTd/ATableTd.js +24 -14
- package/src/ATable/ATableTr/ATableTr.js +116 -7
- package/src/ATable/ATableTr/compositionAPI/AttributesAPI.js +38 -52
- package/src/ATable/ATableTr/compositionAPI/ChildrenAPI.js +66 -0
- package/src/ATable/ATableTr/compositionAPI/ChildrenToggleAPI.js +43 -0
- package/src/ATable/ATableTr/compositionAPI/PreviewAPI.js +68 -0
- package/src/ATable/compositionAPI/CountAPI.js +60 -0
- package/src/ATable/compositionAPI/LimitOffsetAPI.js +4 -0
- package/src/ATable/compositionAPI/SimpleTableAPI.js +15 -1
- package/src/ATooltip/compositionAPI/PopperContainerAPI.js +0 -1
- package/src/plugins/AIconPlugin.js +2 -0
- package/src/styles/components/ATable.scss +59 -0
- package/src/ui/ADatepickerRange/ADatepickerRange.js +29 -2
- package/src/ui/ADatepickerRange/compositionAPI/FocusAPI.js +18 -0
- package/src/ui/ADatepickerRange/compositionAPI/InputAttributesAPI.js +19 -9
- package/src/ui/AGroup/AGroup.js +1 -6
- package/src/ui/AGroup/compositionAPI/SpecificTypeAPI.js +1 -21
- package/src/ui/AInputFile/AInputFile.js +1 -1
- package/src/ui/AInputNumberRange/AInputNumberRange.js +45 -14
- package/src/ui/AInputNumberRange/compositionAPI/FocusAPI.js +18 -0
- package/src/ui/AInputNumberRange/compositionAPI/InputAttributesAPI.js +19 -9
- package/src/ui/ALabel/ALabel.js +62 -42
- package/src/ui/ALabel/__tests__/ALabel.IdAPI.test.js +37 -0
- package/src/ui/ALabel/__tests__/ALabel.TextAfterAPI.test.js +19 -0
- package/src/ui/ALabel/compositionAPI/ClickAPI.js +50 -0
- package/src/ui/ALabel/compositionAPI/IdAPI.js +33 -0
- package/src/ui/ALabel/compositionAPI/LabelAPI.js +20 -0
- package/src/ui/ALabel/compositionAPI/PropsTypeAPI.js +66 -0
- package/src/ui/ALabel/compositionAPI/TextAfterAPI.js +18 -0
- package/src/ui/ASelect/ASelect.js +20 -5
- package/src/ui/ATinymce/ATinymce.js +3 -1
- package/src/ui/compositionApi/UiLabelClickEventBusAPI.js +34 -0
- package/src/ui/const/AUiTypes.js +37 -5
- package/src/ui/utils/utils.js +3 -0
- package/src/utils/__tests__/utils.getTotalNestedCount.test.js +50 -0
- package/src/utils/utils.js +27 -0
|
@@ -112,6 +112,13 @@ export default function FunctionItemsAPI() {
|
|
|
112
112
|
id: "functions_utils",
|
|
113
113
|
label: "Utils",
|
|
114
114
|
children: [
|
|
115
|
+
{
|
|
116
|
+
id: "PageUtilsGetTotalNestedCount",
|
|
117
|
+
label: "getTotalNestedCount",
|
|
118
|
+
to: {
|
|
119
|
+
name: "PageUtilsGetTotalNestedCount",
|
|
120
|
+
},
|
|
121
|
+
},
|
|
115
122
|
{
|
|
116
123
|
id: "PageUtilsIsArrayOfArrays",
|
|
117
124
|
label: "isArrayOfArrays",
|
|
@@ -61,6 +61,8 @@ import PageUtilsMathIsOddI18n from "./views/Functions/UtilsMath/PageUtilsMathIsO
|
|
|
61
61
|
import PageUtilsMathIsEvenI18n from "./views/Functions/UtilsMath/PageUtilsMathIsEven/i18n/PageUtilsMathIsEvenI18n";
|
|
62
62
|
import PageUtilsIsArrayOfStringsI18n from "./views/Functions/Utils/PageUtilsIsArrayOfStrings/i18n/PageUtilsIsArrayOfStringsI18n";
|
|
63
63
|
import PageUtilsIsArrayOfArraysI18n from "./views/Functions/Utils/PageUtilsIsArrayOfArrays/i18n/PageUtilsIsArrayOfArraysI18n";
|
|
64
|
+
import PageUtilsGetTotalNestedCountI18n from "./views/Functions/Utils/PageUtilsGetTotalNestedCount/i18n/PageUtilsGetTotalNestedCountI18n";
|
|
65
|
+
import PageTableTreeI18n from "./views/PageTable/PageTableTree/i18n/PageTableTreeI18n";
|
|
64
66
|
|
|
65
67
|
export const mainTranslation = {
|
|
66
68
|
ar: {
|
|
@@ -118,6 +120,8 @@ export const mainTranslation = {
|
|
|
118
120
|
...PageUtilsMathIsEvenI18n.ar,
|
|
119
121
|
...PageUtilsIsArrayOfStringsI18n.ar,
|
|
120
122
|
...PageUtilsIsArrayOfArraysI18n.ar,
|
|
123
|
+
...PageUtilsGetTotalNestedCountI18n.ar,
|
|
124
|
+
...PageTableTreeI18n.ar,
|
|
121
125
|
},
|
|
122
126
|
de: {
|
|
123
127
|
...allLanguages.de,
|
|
@@ -174,6 +178,8 @@ export const mainTranslation = {
|
|
|
174
178
|
...PageUtilsMathIsEvenI18n.de,
|
|
175
179
|
...PageUtilsIsArrayOfStringsI18n.de,
|
|
176
180
|
...PageUtilsIsArrayOfArraysI18n.de,
|
|
181
|
+
...PageUtilsGetTotalNestedCountI18n.de,
|
|
182
|
+
...PageTableTreeI18n.de,
|
|
177
183
|
},
|
|
178
184
|
en: {
|
|
179
185
|
...allLanguages.en,
|
|
@@ -230,6 +236,8 @@ export const mainTranslation = {
|
|
|
230
236
|
...PageUtilsMathIsEvenI18n.en,
|
|
231
237
|
...PageUtilsIsArrayOfStringsI18n.en,
|
|
232
238
|
...PageUtilsIsArrayOfArraysI18n.en,
|
|
239
|
+
...PageUtilsGetTotalNestedCountI18n.en,
|
|
240
|
+
...PageTableTreeI18n.en,
|
|
233
241
|
},
|
|
234
242
|
es: {
|
|
235
243
|
...allLanguages.es,
|
|
@@ -286,6 +294,8 @@ export const mainTranslation = {
|
|
|
286
294
|
...PageUtilsMathIsEvenI18n.es,
|
|
287
295
|
...PageUtilsIsArrayOfStringsI18n.es,
|
|
288
296
|
...PageUtilsIsArrayOfArraysI18n.es,
|
|
297
|
+
...PageUtilsGetTotalNestedCountI18n.es,
|
|
298
|
+
...PageTableTreeI18n.es,
|
|
289
299
|
},
|
|
290
300
|
fr: {
|
|
291
301
|
...allLanguages.fr,
|
|
@@ -342,6 +352,8 @@ export const mainTranslation = {
|
|
|
342
352
|
...PageUtilsMathIsEvenI18n.fr,
|
|
343
353
|
...PageUtilsIsArrayOfStringsI18n.fr,
|
|
344
354
|
...PageUtilsIsArrayOfArraysI18n.fr,
|
|
355
|
+
...PageUtilsGetTotalNestedCountI18n.fr,
|
|
356
|
+
...PageTableTreeI18n.fr,
|
|
345
357
|
},
|
|
346
358
|
hr: {
|
|
347
359
|
...allLanguages.hr,
|
|
@@ -398,6 +410,8 @@ export const mainTranslation = {
|
|
|
398
410
|
...PageUtilsMathIsEvenI18n.hr,
|
|
399
411
|
...PageUtilsIsArrayOfStringsI18n.hr,
|
|
400
412
|
...PageUtilsIsArrayOfArraysI18n.hr,
|
|
413
|
+
...PageUtilsGetTotalNestedCountI18n.hr,
|
|
414
|
+
...PageTableTreeI18n.hr,
|
|
401
415
|
},
|
|
402
416
|
it: {
|
|
403
417
|
...allLanguages.it,
|
|
@@ -454,6 +468,8 @@ export const mainTranslation = {
|
|
|
454
468
|
...PageUtilsMathIsEvenI18n.it,
|
|
455
469
|
...PageUtilsIsArrayOfStringsI18n.it,
|
|
456
470
|
...PageUtilsIsArrayOfArraysI18n.it,
|
|
471
|
+
...PageUtilsGetTotalNestedCountI18n.it,
|
|
472
|
+
...PageTableTreeI18n.it,
|
|
457
473
|
},
|
|
458
474
|
ru: {
|
|
459
475
|
...allLanguages.ru,
|
|
@@ -510,5 +526,7 @@ export const mainTranslation = {
|
|
|
510
526
|
...PageUtilsMathIsEvenI18n.ru,
|
|
511
527
|
...PageUtilsIsArrayOfStringsI18n.ru,
|
|
512
528
|
...PageUtilsIsArrayOfArraysI18n.ru,
|
|
529
|
+
...PageUtilsGetTotalNestedCountI18n.ru,
|
|
530
|
+
...PageTableTreeI18n.ru,
|
|
513
531
|
},
|
|
514
532
|
};
|
package/docs/src/router/index.js
CHANGED
|
@@ -49,6 +49,11 @@ const ROUTES = [
|
|
|
49
49
|
name: "PageTablePreviewDown",
|
|
50
50
|
component: () => import(/* webpackChunkName: "PageTablePreviewDown" */ "../views/PageTable/PageTablePreviewDown/PageTablePreviewDown.vue"),
|
|
51
51
|
},
|
|
52
|
+
{
|
|
53
|
+
path: "/table-tree",
|
|
54
|
+
name: "PageTableTree",
|
|
55
|
+
component: () => import(/* webpackChunkName: "PageTableTree" */ "../views/PageTable/PageTableTree/PageTableTree.vue"),
|
|
56
|
+
},
|
|
52
57
|
{
|
|
53
58
|
path: "/spinner",
|
|
54
59
|
name: "PageSpinner",
|
|
@@ -364,6 +369,11 @@ const ROUTES = [
|
|
|
364
369
|
name: "PageUtilsIsArrayOfArrays",
|
|
365
370
|
component: () => import(/* webpackChunkName: "PageUtilsIsArrayOfArrays" */ "../views/Functions/Utils/PageUtilsIsArrayOfArrays/PageUtilsIsArrayOfArrays.vue"),
|
|
366
371
|
},
|
|
372
|
+
{
|
|
373
|
+
path: "/utils-get-total-nested-count",
|
|
374
|
+
name: "PageUtilsGetTotalNestedCount",
|
|
375
|
+
component: () => import(/* webpackChunkName: "PageUtilsGetTotalNestedCount" */ "../views/Functions/Utils/PageUtilsGetTotalNestedCount/PageUtilsGetTotalNestedCount.vue"),
|
|
376
|
+
},
|
|
367
377
|
{
|
|
368
378
|
// If the routing configuration '*' reports an error, replace it with '/: catchAll(. *)'
|
|
369
379
|
// caught Error: Catch all routes ("*") must now be defined using a param with a custom regexp
|
|
@@ -3,13 +3,13 @@ aloha-example(
|
|
|
3
3
|
:code-js="codeJs"
|
|
4
4
|
header="_A_INPUT_NUMBER_RANGE_GROUP_TYPE_INTEGER_HEADER_"
|
|
5
5
|
description="_A_INPUT_NUMBER_RANGE_GROUP_TYPE_INTEGER_DESCRIPTION_"
|
|
6
|
-
props="type='
|
|
6
|
+
props="type='integerRange'"
|
|
7
7
|
)
|
|
8
8
|
.a_columns.a_columns_count_12
|
|
9
9
|
.a_column.a_column_6.a_columns_count_12_touch
|
|
10
10
|
a-input-number-range(
|
|
11
11
|
v-model="model"
|
|
12
12
|
label="Aloha"
|
|
13
|
-
type="
|
|
13
|
+
type="integerRange"
|
|
14
14
|
)
|
|
15
15
|
.a_mt_3 model: {{ model }}
|
|
@@ -3,13 +3,13 @@ aloha-example(
|
|
|
3
3
|
:code-js="codeJs"
|
|
4
4
|
header="_A_INPUT_NUMBER_RANGE_GROUP_TYPE_INTEGER_NON_NEGATIVE_HEADER_"
|
|
5
5
|
description="_A_INPUT_NUMBER_RANGE_GROUP_TYPE_INTEGER_NON_NEGATIVE_DESCRIPTION_"
|
|
6
|
-
props="type='
|
|
6
|
+
props="type='integerNonNegativeRange'"
|
|
7
7
|
)
|
|
8
8
|
.a_columns.a_columns_count_12
|
|
9
9
|
.a_column.a_column_6.a_columns_count_12_touch
|
|
10
10
|
a-input-number-range(
|
|
11
11
|
v-model="model"
|
|
12
12
|
label="Aloha"
|
|
13
|
-
type="
|
|
13
|
+
type="integerNonNegativeRange"
|
|
14
14
|
)
|
|
15
15
|
.a_mt_3 model: {{ model }}
|
|
@@ -3,13 +3,13 @@ aloha-example(
|
|
|
3
3
|
:code-js="codeJs"
|
|
4
4
|
header="_A_INPUT_NUMBER_RANGE_GROUP_TYPE_INTEGER_POSITIVE_HEADER_"
|
|
5
5
|
description="_A_INPUT_NUMBER_RANGE_GROUP_TYPE_INTEGER_POSITIVE_DESCRIPTION_"
|
|
6
|
-
props="type='
|
|
6
|
+
props="type='integerPositiveRange'"
|
|
7
7
|
)
|
|
8
8
|
.a_columns.a_columns_count_12
|
|
9
9
|
.a_column.a_column_6.a_columns_count_12_touch
|
|
10
10
|
a-input-number-range(
|
|
11
11
|
v-model="model"
|
|
12
12
|
label="Aloha"
|
|
13
|
-
type="
|
|
13
|
+
type="integerPositiveRange"
|
|
14
14
|
)
|
|
15
15
|
.a_mt_3 model: {{ model }}
|
package/docs/src/views/Functions/Utils/PageUtilsGetTotalNestedCount/PageUtilsGetTotalNestedCount.js
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import AlohaPage from "../../../../global/components/AlohaPage/AlohaPage.vue";
|
|
2
|
+
import ATranslation from "../../../../../../src/ATranslation/ATranslation";
|
|
3
|
+
import PageFilterArguments from "../../Components/PageFilterArguments/PageFilterArguments.vue";
|
|
4
|
+
import PageFilterImportFunction from "../../Components/PageFilterImportFunction/PageFilterImportFunction.vue";
|
|
5
|
+
import PageFilterTest from "../../Components/PageFilterTest/PageFilterTest.vue";
|
|
6
|
+
import PageUtilsGetTotalNestedCountExample from "./PageUtilsGetTotalNestedCountExample/PageUtilsGetTotalNestedCountExample.vue";
|
|
7
|
+
|
|
8
|
+
import ArgumentsAPI from "./compositionAPI/ArgumentsAPI";
|
|
9
|
+
import PageTitleAPI from "./compositionAPI/PageTitleAPI";
|
|
10
|
+
|
|
11
|
+
import testFunction from "../../../../../../src/utils/__tests__/utils.getTotalNestedCount.test.js?raw";
|
|
12
|
+
|
|
13
|
+
export default {
|
|
14
|
+
name: "PageUtilsGetTotalNestedCount",
|
|
15
|
+
components: {
|
|
16
|
+
AlohaPage,
|
|
17
|
+
ATranslation,
|
|
18
|
+
PageFilterArguments,
|
|
19
|
+
PageFilterImportFunction,
|
|
20
|
+
PageFilterTest,
|
|
21
|
+
PageUtilsGetTotalNestedCountExample,
|
|
22
|
+
},
|
|
23
|
+
setup() {
|
|
24
|
+
const {
|
|
25
|
+
pageTitle,
|
|
26
|
+
} = PageTitleAPI();
|
|
27
|
+
|
|
28
|
+
const {
|
|
29
|
+
argumentsText,
|
|
30
|
+
} = ArgumentsAPI();
|
|
31
|
+
|
|
32
|
+
const test = testFunction;
|
|
33
|
+
|
|
34
|
+
return {
|
|
35
|
+
argumentsText,
|
|
36
|
+
pageTitle,
|
|
37
|
+
test,
|
|
38
|
+
};
|
|
39
|
+
},
|
|
40
|
+
};
|
package/docs/src/views/Functions/Utils/PageUtilsGetTotalNestedCount/PageUtilsGetTotalNestedCount.pug
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
aloha-page(
|
|
2
|
+
:page-title="pageTitle"
|
|
3
|
+
)
|
|
4
|
+
template(
|
|
5
|
+
v-slot:body
|
|
6
|
+
)
|
|
7
|
+
a-translation(
|
|
8
|
+
tag="p"
|
|
9
|
+
html="_PAGE_UTILS_GET_TOTAL_NESTED_COUNT_DESCRIPTION_"
|
|
10
|
+
)
|
|
11
|
+
|
|
12
|
+
page-filter-import-function(
|
|
13
|
+
function-name="getTotalNestedCount"
|
|
14
|
+
type-import="utils"
|
|
15
|
+
)
|
|
16
|
+
|
|
17
|
+
page-filter-arguments(
|
|
18
|
+
:arguments-text="argumentsText"
|
|
19
|
+
function-description="getTotalNestedCount({ array, keyChildren })"
|
|
20
|
+
)
|
|
21
|
+
|
|
22
|
+
page-utils-get-total-nested-count-example
|
|
23
|
+
|
|
24
|
+
page-filter-test(
|
|
25
|
+
:test="test"
|
|
26
|
+
)
|
|
@@ -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: "PageUtilsGetTotalNestedCountExample",
|
|
7
|
+
components: {
|
|
8
|
+
AlohaExample,
|
|
9
|
+
},
|
|
10
|
+
setup() {
|
|
11
|
+
const {
|
|
12
|
+
codeJs,
|
|
13
|
+
} = JsAPI();
|
|
14
|
+
|
|
15
|
+
return {
|
|
16
|
+
codeJs,
|
|
17
|
+
};
|
|
18
|
+
},
|
|
19
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import {
|
|
2
|
+
getTotalNestedCount,
|
|
3
|
+
} from "../../../../../../../../src/utils/utils";
|
|
4
|
+
|
|
5
|
+
export default function JsAPI() {
|
|
6
|
+
const codeJs = `getTotalNestedCount({ array: ["hello", "Aloha"], keyChildren: "" });
|
|
7
|
+
// ${ getTotalNestedCount({ array: ["hello", "Aloha"], keyChildren: "" }) }
|
|
8
|
+
|
|
9
|
+
getTotalNestedCount({ array: [], keyChildren: "" });
|
|
10
|
+
// ${ getTotalNestedCount({ array: [], keyChildren: "" }) }
|
|
11
|
+
|
|
12
|
+
getTotalNestedCount({ array: [{ children: ["hello", "world"] }, "test"], keyChildren: "children" });
|
|
13
|
+
// ${ getTotalNestedCount({ array: [{ children: ["hello", "world"] }, "test"], keyChildren: "children" }) }
|
|
14
|
+
|
|
15
|
+
getTotalNestedCount({ array: [{ aloha: [{ aloha: ["hello", "world"] }, { aloha: ["hello1", "world1"] }] }, "test"], keyChildren: "aloha" });
|
|
16
|
+
// ${ getTotalNestedCount({ array: [{ aloha: [{ aloha: ["hello", "world"] }, { aloha: ["hello1", "world1"] }] }, "test"], keyChildren: "aloha" }) }`;
|
|
17
|
+
|
|
18
|
+
return {
|
|
19
|
+
codeJs,
|
|
20
|
+
};
|
|
21
|
+
}
|
package/docs/src/views/Functions/Utils/PageUtilsGetTotalNestedCount/compositionAPI/ArgumentsAPI.js
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export default function ArgumentsAPI() {
|
|
2
|
+
const argumentsText = [
|
|
3
|
+
{
|
|
4
|
+
value: "array",
|
|
5
|
+
types: [
|
|
6
|
+
"Array",
|
|
7
|
+
],
|
|
8
|
+
text: "_PAGE_UTILS_GET_TOTAL_NESTED_COUNT_ARGUMENTS_ARRAY_",
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
value: "keyChildren",
|
|
12
|
+
types: [
|
|
13
|
+
"String",
|
|
14
|
+
],
|
|
15
|
+
text: "_PAGE_UTILS_GET_TOTAL_NESTED_COUNT_ARGUMENTS_KEY_CHILDREN_",
|
|
16
|
+
},
|
|
17
|
+
];
|
|
18
|
+
|
|
19
|
+
return {
|
|
20
|
+
argumentsText,
|
|
21
|
+
};
|
|
22
|
+
}
|
|
@@ -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,5 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_PAGE_UTILS_GET_TOTAL_NESTED_COUNT_ARGUMENTS_ARRAY_": "The initial array to traverse for counting",
|
|
3
|
+
"_PAGE_UTILS_GET_TOTAL_NESTED_COUNT_ARGUMENTS_KEY_CHILDREN_": "The key used to identify child elements within each object in the array",
|
|
4
|
+
"_PAGE_UTILS_GET_TOTAL_NESTED_COUNT_DESCRIPTION_": "Calculates the total count of elements within a nested structure, including all children and sub-children, based on the specified child key."
|
|
5
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import AlohaPage from "../../../global/components/AlohaPage/AlohaPage.vue";
|
|
2
|
+
import PageTableTreeExample from "./PageTableTreeExample/PageTableTreeExample.vue";
|
|
3
|
+
|
|
4
|
+
import PageTitleAPI from "./compositionAPI/PageTitleAPI";
|
|
5
|
+
|
|
6
|
+
export default {
|
|
7
|
+
name: "PageTableTree",
|
|
8
|
+
components: {
|
|
9
|
+
AlohaPage,
|
|
10
|
+
PageTableTreeExample,
|
|
11
|
+
},
|
|
12
|
+
setup() {
|
|
13
|
+
const {
|
|
14
|
+
pageTitle,
|
|
15
|
+
} = PageTitleAPI();
|
|
16
|
+
|
|
17
|
+
return {
|
|
18
|
+
pageTitle,
|
|
19
|
+
};
|
|
20
|
+
},
|
|
21
|
+
|
|
22
|
+
};
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ref,
|
|
3
|
+
} from "vue";
|
|
4
|
+
|
|
5
|
+
import AlohaExample from "../../../../global/components/AlohaExample/AlohaExample.vue";
|
|
6
|
+
import ATable from "../../../../../../src/ATable/ATable";
|
|
7
|
+
|
|
8
|
+
import HtmlAPI from "./compositionAPI/HtmlAPI";
|
|
9
|
+
import JsAPI from "./compositionAPI/JsAPI";
|
|
10
|
+
|
|
11
|
+
export default {
|
|
12
|
+
name: "PageTableTreeExample",
|
|
13
|
+
components: {
|
|
14
|
+
AlohaExample,
|
|
15
|
+
ATable,
|
|
16
|
+
},
|
|
17
|
+
setup() {
|
|
18
|
+
const {
|
|
19
|
+
codeHtml,
|
|
20
|
+
} = HtmlAPI();
|
|
21
|
+
|
|
22
|
+
const {
|
|
23
|
+
codeJs,
|
|
24
|
+
} = JsAPI();
|
|
25
|
+
|
|
26
|
+
const columns = [
|
|
27
|
+
{
|
|
28
|
+
id: "column1",
|
|
29
|
+
keyLabel: "id",
|
|
30
|
+
label: "_A_TABLE_COLUMN_1_",
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
id: "column2",
|
|
34
|
+
keyLabel: "label",
|
|
35
|
+
label: "_A_TABLE_COLUMN_2_",
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
id: "column3",
|
|
39
|
+
keyLabel: "test",
|
|
40
|
+
label: "_A_TABLE_COLUMN_3_",
|
|
41
|
+
},
|
|
42
|
+
];
|
|
43
|
+
|
|
44
|
+
const data = ref([
|
|
45
|
+
{
|
|
46
|
+
id: "1",
|
|
47
|
+
label: "label 1",
|
|
48
|
+
test: "test 1",
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
id: "2",
|
|
52
|
+
label: "label 2",
|
|
53
|
+
test: "test 2",
|
|
54
|
+
children: [
|
|
55
|
+
{
|
|
56
|
+
id: "2_1",
|
|
57
|
+
label: "label 2.1",
|
|
58
|
+
test: "test 2.1",
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
id: "2_2",
|
|
62
|
+
label: "label 2.2",
|
|
63
|
+
test: "test 2.2",
|
|
64
|
+
children: [
|
|
65
|
+
{
|
|
66
|
+
id: "2_2_1",
|
|
67
|
+
label: "label 2.2.1",
|
|
68
|
+
test: "test 2.2.1",
|
|
69
|
+
},
|
|
70
|
+
],
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
id: "2_3",
|
|
74
|
+
label: "label 2.3",
|
|
75
|
+
test: "test 2.3",
|
|
76
|
+
},
|
|
77
|
+
],
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
id: "3",
|
|
81
|
+
label: "label 3",
|
|
82
|
+
test: "test 3",
|
|
83
|
+
children: [
|
|
84
|
+
{
|
|
85
|
+
id: "3_1",
|
|
86
|
+
label: "label 3.1",
|
|
87
|
+
test: "test 3.1",
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
id: "3_2",
|
|
91
|
+
label: "label 3.2",
|
|
92
|
+
test: "test 3.2",
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
id: "3_3",
|
|
96
|
+
label: "label 3.3",
|
|
97
|
+
test: "test 3.3",
|
|
98
|
+
},
|
|
99
|
+
],
|
|
100
|
+
},
|
|
101
|
+
]);
|
|
102
|
+
|
|
103
|
+
return {
|
|
104
|
+
codeHtml,
|
|
105
|
+
codeJs,
|
|
106
|
+
columns,
|
|
107
|
+
data,
|
|
108
|
+
};
|
|
109
|
+
},
|
|
110
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
aloha-example(
|
|
2
|
+
:code-html="codeHtml"
|
|
3
|
+
:code-js="codeJs"
|
|
4
|
+
header="_A_TABLE_GROUP_TREE_HEADER_"
|
|
5
|
+
description="_A_TABLE_GROUP_TREE_DESCRIPTION_"
|
|
6
|
+
props="is-tree"
|
|
7
|
+
)
|
|
8
|
+
div
|
|
9
|
+
a-table(
|
|
10
|
+
:columns="columns"
|
|
11
|
+
:data="data"
|
|
12
|
+
:is-tree="true"
|
|
13
|
+
key-id="id"
|
|
14
|
+
label="_A_TABLE_GROUP_TREE_LABEL_"
|
|
15
|
+
)
|