aloha-vue 1.2.80 → 1.2.82

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.
Files changed (35) hide show
  1. package/.github/workflows/docs.yml +14 -49
  2. package/docs/src/components/TheMenu/TheMenu.js +8 -565
  3. package/docs/src/components/TheMenu/compositionAPI/ComponentItemsAPI.js +392 -0
  4. package/docs/src/components/TheMenu/compositionAPI/CssItemsAPI.js +20 -0
  5. package/docs/src/components/TheMenu/compositionAPI/DirectiveItemsAPI.js +20 -0
  6. package/docs/src/components/TheMenu/compositionAPI/FunctionItemsAPI.js +117 -0
  7. package/docs/src/components/TheMenu/compositionAPI/MenuItemsAPI.js +39 -0
  8. package/docs/src/components/TheMenu/compositionAPI/RestItemsAPI.js +27 -0
  9. package/docs/src/mainIcons.js +2 -0
  10. package/docs/src/views/Functions/Components/PageFilterTest/PageFilterTest.js +14 -0
  11. package/docs/src/views/Functions/Components/PageFilterTest/PageFilterTest.pug +5 -0
  12. package/docs/src/views/Functions/Components/PageFilterTest/PageFilterTest.vue +2 -0
  13. package/docs/src/views/Functions/PageFilterBoolean/PageFilterBoolean.js +8 -0
  14. package/docs/src/views/Functions/PageFilterBoolean/PageFilterBoolean.pug +4 -0
  15. package/docs/src/views/Functions/PageFilterFileSize/PageFilterFileSize.js +7 -0
  16. package/docs/src/views/Functions/PageFilterFileSize/PageFilterFileSize.pug +4 -0
  17. package/docs/src/views/Functions/PageFilterFloat/PageFilterFloat.js +7 -0
  18. package/docs/src/views/Functions/PageFilterFloat/PageFilterFloat.pug +4 -0
  19. package/docs/src/views/Functions/PageFilterList/PageFilterList.js +7 -0
  20. package/docs/src/views/Functions/PageFilterList/PageFilterList.pug +4 -0
  21. package/docs/src/views/Functions/i18n/ar.json +2 -1
  22. package/docs/src/views/Functions/i18n/de.json +2 -1
  23. package/docs/src/views/Functions/i18n/en.json +2 -1
  24. package/docs/src/views/Functions/i18n/es.json +2 -1
  25. package/docs/src/views/Functions/i18n/fr.json +2 -1
  26. package/docs/src/views/Functions/i18n/hr.json +2 -1
  27. package/docs/src/views/Functions/i18n/it.json +2 -1
  28. package/docs/src/views/Functions/i18n/ru.json +2 -1
  29. package/docs/styles/styles.scss +1 -1
  30. package/docs/webpack.config.js +4 -0
  31. package/package.json +1 -1
  32. package/src/AList/__tests__/AList.test.js +1 -3
  33. package/src/compositionAPI/AHttpAPI.js +6 -1
  34. package/src/compositionAPI/__tests__/AHttpAPI.test.js +36 -0
  35. package/src/plugins/ATinymcePlugin.js +1 -1
@@ -18,69 +18,34 @@ jobs:
18
18
  with:
19
19
  node-version: 18
20
20
 
21
+ - name: Run Tests
22
+ run: |
23
+ npm install
24
+ npm test
25
+
26
+ - name: Tests failed
27
+ if: ${{ failure() }}
28
+ run: |
29
+ echo "Tests failed. Exiting workflow."
30
+ exit 1
31
+
21
32
  - name: Install dependencies
33
+ if: ${{ success() }}
22
34
  run: |
23
35
  cd docs/
24
36
  npm install
25
37
 
26
38
  - name: Build documentation
39
+ if: ${{ success() }}
27
40
  run: |
28
41
  cd docs/
29
42
  npm run build-production
30
43
  npm run build-css
31
44
 
32
45
  - name: Deploy to GitHub Pages
46
+ if: ${{ success() }}
33
47
  uses: peaceiris/actions-gh-pages@v3
34
48
  with:
35
49
  github_token: ${{ secrets.GITHUB_TOKEN }}
36
50
  publish_dir: ./docs/dist
37
- # keep_files: true
38
51
  publish_branch: gh-pages
39
-
40
- #name: Deploy Docs
41
- #
42
- #on:
43
- # push:
44
- # branches:
45
- # - master
46
- #
47
- #jobs:
48
- # deploy:
49
- # runs-on: ubuntu-latest
50
- # steps:
51
- # - name: Checkout code
52
- # uses: actions/checkout@v3
53
- # with:
54
- # persist-credentials: false
55
- #
56
- # - name: Deploy to GH Pages 🚀
57
- # uses: peaceiris/actions-gh-pages@v3
58
- # with:
59
- # github_token: ${{ secrets.GITHUB_TOKEN }}
60
- # publish_dir: ./test
61
-
62
- # - name: Set up Node.js
63
- # uses: actions/setup-node@v3
64
- # with:
65
- # node-version: 18
66
- #
67
- # - name: Install dependencies
68
- # run: |
69
- # cd docs/
70
- # npm install
71
- #
72
- #
73
- # - name: Build documentation
74
- # run: |
75
- # cd docs/
76
- # npm run build-production
77
- # npm run build-css
78
-
79
- # - name: Deploy to GitHub Pages
80
- # uses: peaceiris/actions-gh-pages@v3
81
- # with:
82
- # github_token: ${{ secrets.GITHUB_TOKEN }}
83
- ## publish_dir: ./docs/dist
84
- # publish_dir: ./docs
85
- # keep_files: true
86
- # publish_branch: gh-pages
@@ -1,576 +1,19 @@
1
1
  import AMenu2 from "../../../../src/AMenu2/AMenu2";
2
2
 
3
+ import MenuItemsAPI from "./compositionAPI/MenuItemsAPI";
4
+
3
5
  export default {
4
6
  name: "TheMenu",
5
7
  components: {
6
8
  AMenu2,
7
9
  },
8
- data() {
10
+ setup() {
11
+ const {
12
+ menuItems,
13
+ } = MenuItemsAPI();
14
+
9
15
  return {
10
- menuItems: [
11
- {
12
- id: "accordion",
13
- label: "Accordion",
14
- to: {
15
- name: "PageAccordion",
16
- },
17
- icon: "ListNested",
18
- },
19
- {
20
- id: "alert",
21
- label: "Alert",
22
- to: {
23
- name: "PageAlert",
24
- },
25
- icon: "ExclamationTriangle",
26
- },
27
- {
28
- id: "Button",
29
- label: "Button",
30
- to: {
31
- name: "PageButton",
32
- },
33
- icon: "EjectFill",
34
- },
35
- {
36
- id: "css",
37
- label: "CSS",
38
- icon: "FiletypeCss",
39
- children: [
40
- {
41
- id: "columns",
42
- label: "Columns",
43
- to: {
44
- name: "PageColumns",
45
- },
46
- },
47
- ],
48
- },
49
- {
50
- group: "Hola",
51
- id: "cloak",
52
- label: "Cloak",
53
- to: {
54
- name: "PageCloak",
55
- },
56
- icon: "HourglassSplit",
57
- },
58
- {
59
- group: "Hola",
60
- id: "cloak2",
61
- label: "Cloak disabled",
62
- to: {
63
- name: "PageCloak",
64
- },
65
- icon: "HourglassSplit",
66
- disabled: true,
67
- },
68
- {
69
- group: "Hola",
70
- id: "collapse",
71
- label: "Collapse",
72
- to: {
73
- name: "PageCollapse",
74
- },
75
- icon: "ArrowsCollapse",
76
- },
77
- {
78
- id: "confirm",
79
- label: "Confirm",
80
- to: {
81
- name: "PageConfirm",
82
- },
83
- icon: "CheckLg",
84
- },
85
- {
86
- id: "directives",
87
- label: "Directives",
88
- icon: "CodeSquare",
89
- children: [
90
- {
91
- id: "OnHooks",
92
- label: "OnHooks",
93
- to: {
94
- name: "PageOnHooks",
95
- }
96
- },
97
- ],
98
- },
99
- {
100
- id: "disclosure",
101
- label: "Disclosure",
102
- to: {
103
- name: "PageDisclosure",
104
- },
105
- icon: "ChevronBarExpand",
106
- },
107
- {
108
- id: "filters",
109
- label: "filters",
110
- to: {
111
- name: "PageFilters",
112
- },
113
- icon: "FilterCircleFill",
114
- },
115
- {
116
- id: "filtersRight",
117
- label: "filtersRight",
118
- to: {
119
- name: "PageFiltersRight",
120
- },
121
- icon: "FilterCircleFill",
122
- },
123
- {
124
- id: "functions",
125
- label: "Functions",
126
- icon: "Code",
127
- children: [
128
- {
129
- id: "functions_filters",
130
- label: "Filters",
131
- children: [
132
- {
133
- id: "PageFilterBoolean",
134
- label: "filterBoolean",
135
- to: {
136
- name: "PageFilterBoolean",
137
- },
138
- },
139
- {
140
- id: "PageFilterCurrency",
141
- label: "filterCurrency",
142
- to: {
143
- name: "PageFilterCurrency",
144
- },
145
- },
146
- {
147
- id: "PageFilterDate",
148
- label: "filterDate",
149
- to: {
150
- name: "PageFilterDate",
151
- },
152
- },
153
- {
154
- id: "PageFilterDefaultForEmpty",
155
- label: "filterDefaultForEmpty",
156
- to: {
157
- name: "PageFilterDefaultForEmpty",
158
- },
159
- },
160
- {
161
- id: "PageFilterEmail",
162
- label: "filterEmail",
163
- to: {
164
- name: "PageFilterEmail",
165
- },
166
- },
167
- {
168
- id: "PageFilterFileSize",
169
- label: "filterFileSize",
170
- to: {
171
- name: "PageFilterFileSize",
172
- },
173
- },
174
- {
175
- id: "PageFilterFloat",
176
- label: "filterFloat",
177
- to: {
178
- name: "PageFilterFloat",
179
- },
180
- },
181
- {
182
- id: "PageFilterJson",
183
- label: "filterJson",
184
- to: {
185
- name: "PageFilterJson",
186
- },
187
- },
188
- {
189
- id: "PageFilterKeyValue",
190
- label: "filterKeyValue",
191
- to: {
192
- name: "PageFilterKeyValue",
193
- },
194
- },
195
- {
196
- id: "PageFilterLimitTo",
197
- label: "filterLimitTo",
198
- to: {
199
- name: "PageFilterLimitTo",
200
- },
201
- },
202
- {
203
- id: "PageFilterLink",
204
- label: "filterLink",
205
- to: {
206
- name: "PageFilterLink",
207
- },
208
- },
209
- {
210
- id: "PageFilterList",
211
- label: "filterList",
212
- to: {
213
- name: "PageFilterList",
214
- },
215
- },
216
- {
217
- id: "PageFilterPropertyByValue",
218
- label: "filterPropertyByValue",
219
- to: {
220
- name: "PageFilterPropertyByValue",
221
- },
222
- },
223
- {
224
- id: "PageFilterSearchHighlight",
225
- label: "filterSearchHighlight",
226
- to: {
227
- name: "PageFilterSearchHighlight",
228
- },
229
- },
230
- ],
231
- },
232
- ],
233
- },
234
- {
235
- id: "dropdown",
236
- label: "Dropdown",
237
- to: {
238
- name: "PageDropdown",
239
- },
240
- icon: "MenuDown",
241
- },
242
- {
243
- id: "form_parent",
244
- label: "Form",
245
- icon: "FileEarmarkText",
246
- children: [
247
- {
248
- id: "checkbox",
249
- label: "Checkbox",
250
- to: {
251
- name: "PageCheckbox",
252
- }
253
- },
254
- {
255
- id: "fieldset",
256
- label: "Fieldset",
257
- to: {
258
- name: "PageFieldset",
259
- }
260
- },
261
- {
262
- id: "ui-child",
263
- label: "Child",
264
- children: [
265
- {
266
- id: "input",
267
- to: {
268
- name: "PageInput",
269
- },
270
- label: "Input",
271
- }
272
- ]
273
- },
274
- {
275
- id: "datepicker",
276
- label: "Datepicker",
277
- to: {
278
- name: "PageDatepicker",
279
- }
280
- },
281
- {
282
- id: "datepicker-range",
283
- label: "DatepickerRange",
284
- to: {
285
- name: "PageDatepickerRange",
286
- }
287
- },
288
- {
289
- id: "form",
290
- label: "Form",
291
- to: {
292
- name: "PageForm",
293
- }
294
- },
295
- {
296
- id: "input",
297
- to: {
298
- name: "PageInput",
299
- },
300
- label: "Input",
301
- },
302
- {
303
- id: "input-number",
304
- to: {
305
- name: "PageInputNumber",
306
- },
307
- label: "Input number",
308
- },
309
- {
310
- id: "input-number-range",
311
- to: {
312
- name: "PageInputNumberRange",
313
- },
314
- label: "Input number range",
315
- },
316
- {
317
- id: "json",
318
- label: "JSON",
319
- to: {
320
- name: "PageAJson",
321
- }
322
- },
323
- {
324
- id: "radio",
325
- label: "Radio",
326
- to: {
327
- name: "PageRadio",
328
- }
329
- },
330
- {
331
- id: "rate",
332
- label: "Rate",
333
- to: {
334
- name: "PageRate",
335
- },
336
- },
337
- {
338
- id: "select",
339
- label: "Select",
340
- to: {
341
- name: "PageSelect",
342
- }
343
- },
344
- {
345
- id: "tinyMce",
346
- label: "TinyMce",
347
- to: {
348
- name: "PageTinyMce",
349
- },
350
- },
351
- ],
352
- },
353
- {
354
- id: "GroupButtonDropdown",
355
- label: "GroupButtonDropdown",
356
- to: {
357
- name: "PageGroupButtonDropdown",
358
- },
359
- icon: "MenuDown",
360
- },
361
- {
362
- id: "Link",
363
- label: "Link",
364
- to: {
365
- name: "PageLink",
366
- },
367
- icon: "BoxArrowUpRight",
368
- },
369
- {
370
- id: "LinkCopy",
371
- label: "Link copy",
372
- to: {
373
- name: "PageLinkCopy",
374
- },
375
- icon: "Files",
376
- },
377
- {
378
- id: "list",
379
- label: "List",
380
- to: {
381
- name: "PageList",
382
- },
383
- icon: "ListUl",
384
- },
385
- {
386
- group: "Hola",
387
- id: "loading",
388
- label: "Loading",
389
- to: {
390
- name: "PageLoading",
391
- },
392
- icon: "HourglassSplit",
393
- },
394
- {
395
- id: "menu",
396
- label: "Menu",
397
- icon: "MenuAppFill",
398
- children: [
399
- {
400
- id: "PageMenuBasic",
401
- label: "Menu basic",
402
- to: {
403
- name: "PageMenuBasic",
404
- },
405
- },
406
- ],
407
- },
408
- {
409
- id: "modal",
410
- label: "Modal",
411
- to: {
412
- name: "PageModal",
413
- },
414
- icon: "Window",
415
- },
416
- {
417
- id: "notification",
418
- label: "Notification",
419
- to: {
420
- name: "PageNotification",
421
- },
422
- icon: "Bell",
423
- },
424
- {
425
- id: "progress",
426
- label: "Progress",
427
- icon: "Reception2",
428
- children: [
429
- {
430
- id: "progressBar",
431
- label: "Progress bar",
432
- to: {
433
- name: "PageProgress",
434
- },
435
- },
436
- {
437
- id: "progressCircle",
438
- label: "Progress circle",
439
- to: {
440
- name: "PageProgressCircle",
441
- },
442
- },
443
- ],
444
- },
445
- {
446
- id: "scale",
447
- label: "Scale",
448
- to: {
449
- name: "PageScale",
450
- },
451
- icon: "Dnd",
452
- },
453
- {
454
- id: "ShowMore",
455
- label: "Show more",
456
- to: {
457
- name: "PageShowMore",
458
- },
459
- icon: "ChevronBarExpand",
460
- },
461
- {
462
- group: "Aloha",
463
- id: "spinner",
464
- label: "Spinner",
465
- to: {
466
- name: "PageSpinner",
467
- },
468
- icon: "HourglassSplit",
469
- },
470
- {
471
- id: "svg",
472
- label: "Svg",
473
- to: {
474
- name: "PageSvg",
475
- },
476
- icon: "FiletypeSvg",
477
- },
478
- {
479
- id: "Table",
480
- label: "Tables",
481
- icon: "Table",
482
- children: [
483
- {
484
- id: "PageTableComplex",
485
- label: "Table complex",
486
- to: {
487
- name: "PageTableComplex",
488
- }
489
- },
490
- {
491
- id: "PageTablePagination",
492
- label: "Table pagination",
493
- to: {
494
- name: "PageTablePagination",
495
- }
496
- },
497
- {
498
- id: "PageTableSimple",
499
- label: "Table simple",
500
- to: {
501
- name: "PageTableSimple",
502
- }
503
- },
504
- {
505
- id: "PageTableSort",
506
- label: "Table sort",
507
- to: {
508
- name: "PageTableSort",
509
- }
510
- },
511
- {
512
- id: "PageTablePreview",
513
- label: "Table preview",
514
- to: {
515
- name: "PageTablePreview",
516
- }
517
- },
518
- {
519
- id: "PageTablePreviewDown",
520
- label: "Table preview down",
521
- to: {
522
- name: "PageTablePreviewDown",
523
- }
524
- },
525
- ],
526
- },
527
- {
528
- id: "tabs",
529
- label: "Tabs",
530
- to: {
531
- name: "PageTabs",
532
- },
533
- icon: "SegmentedNav",
534
- },
535
- {
536
- id: "tooltip",
537
- label: "Tooltip",
538
- to: {
539
- name: "PageTitle",
540
- },
541
- icon: "ChatSquareTextFill",
542
- titleHtml: "PageTitle PageTitle PageTitle PageTitle PageTitle PageTitle",
543
- },
544
- {
545
- id: "Translation",
546
- label: "Translation",
547
- to: {
548
- name: "PageTranslation",
549
- },
550
- icon: "Translate",
551
- },
552
- {
553
- id: "wizard",
554
- label: "Wizard",
555
- icon: "ArrowRightCircleFill",
556
- children: [
557
- {
558
- id: "PageWizard",
559
- label: "Normal",
560
- to: {
561
- name: "PageWizard",
562
- },
563
- },
564
- {
565
- id: "PageModalWizard",
566
- label: "Modal Wizard",
567
- to: {
568
- name: "PageModalWizard",
569
- },
570
- },
571
- ],
572
- },
573
- ],
16
+ menuItems,
574
17
  };
575
18
  },
576
19
  };