@ulu/frontend-vue 0.6.18 → 0.6.20
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/mcp-data.json
CHANGED
|
@@ -20,29 +20,6 @@
|
|
|
20
20
|
}
|
|
21
21
|
],
|
|
22
22
|
"useDocumentTitle": [],
|
|
23
|
-
"toast": [
|
|
24
|
-
{
|
|
25
|
-
"title": "Default",
|
|
26
|
-
"description": "Default variation",
|
|
27
|
-
"code": "<toast>Content</toast>"
|
|
28
|
-
}
|
|
29
|
-
],
|
|
30
|
-
"useTooltipFollow": [
|
|
31
|
-
{
|
|
32
|
-
"title": "Default",
|
|
33
|
-
"description": "Default variation",
|
|
34
|
-
"code": "<useTooltipFollow>Content</useTooltipFollow>"
|
|
35
|
-
}
|
|
36
|
-
],
|
|
37
|
-
"useTooltip": [],
|
|
38
|
-
"tooltip": [
|
|
39
|
-
{
|
|
40
|
-
"title": "Basic",
|
|
41
|
-
"description": "Basic variation",
|
|
42
|
-
"code": "<tooltip>This is a basic tooltip!</tooltip>"
|
|
43
|
-
}
|
|
44
|
-
],
|
|
45
|
-
"UluPopover": [],
|
|
46
23
|
"useModals": [],
|
|
47
24
|
"modals": [
|
|
48
25
|
{
|
|
@@ -76,6 +53,29 @@
|
|
|
76
53
|
"code": "<template>\n <button @click=\"showSettingsModal\">My Settings</button>\n</template>\n\n<script setup>\n import { useModals } from \"./useModals\";\n\n const modals = useModals();\n const showSettingsModal = () => {\n console.log(\"This is opening via uluModals composable\");\n modals.open(\"settings\");\n };\n</script>"
|
|
77
54
|
}
|
|
78
55
|
],
|
|
56
|
+
"toast": [
|
|
57
|
+
{
|
|
58
|
+
"title": "Default",
|
|
59
|
+
"description": "Default variation",
|
|
60
|
+
"code": "<toast>Content</toast>"
|
|
61
|
+
}
|
|
62
|
+
],
|
|
63
|
+
"useTooltipFollow": [
|
|
64
|
+
{
|
|
65
|
+
"title": "Default",
|
|
66
|
+
"description": "Default variation",
|
|
67
|
+
"code": "<useTooltipFollow>Content</useTooltipFollow>"
|
|
68
|
+
}
|
|
69
|
+
],
|
|
70
|
+
"useTooltip": [],
|
|
71
|
+
"tooltip": [
|
|
72
|
+
{
|
|
73
|
+
"title": "Basic",
|
|
74
|
+
"description": "Basic variation",
|
|
75
|
+
"code": "<tooltip>This is a basic tooltip!</tooltip>"
|
|
76
|
+
}
|
|
77
|
+
],
|
|
78
|
+
"UluPopover": [],
|
|
79
79
|
"UluProgressCircle": [],
|
|
80
80
|
"UluProgressBar": [],
|
|
81
81
|
"UluAnimateNumber": [],
|
|
@@ -211,34 +211,6 @@
|
|
|
211
211
|
"UluFormActions": [],
|
|
212
212
|
"UluForm": [],
|
|
213
213
|
"UluFileDisplay": [],
|
|
214
|
-
"UluTabGroup": [
|
|
215
|
-
{
|
|
216
|
-
"title": "Default",
|
|
217
|
-
"description": "Default variation",
|
|
218
|
-
"code": "<UluTabGroup>Content</UluTabGroup>"
|
|
219
|
-
},
|
|
220
|
-
{
|
|
221
|
-
"title": "Vertical",
|
|
222
|
-
"description": "Vertical variation",
|
|
223
|
-
"code": "<UluTabGroup vertical>Content</UluTabGroup>"
|
|
224
|
-
},
|
|
225
|
-
{
|
|
226
|
-
"title": "DefaultIndex",
|
|
227
|
-
"description": "DefaultIndex variation",
|
|
228
|
-
"code": "<UluTabGroup :defaultIndex=\"2\">Content</UluTabGroup>"
|
|
229
|
-
},
|
|
230
|
-
{
|
|
231
|
-
"title": "FullWidth",
|
|
232
|
-
"description": "FullWidth variation",
|
|
233
|
-
"code": "<UluTabGroup modifiers=\"{...}\">Content</UluTabGroup>"
|
|
234
|
-
}
|
|
235
|
-
],
|
|
236
|
-
"UluOverflowPopover": [],
|
|
237
|
-
"UluModal": [],
|
|
238
|
-
"UluDropdown": [],
|
|
239
|
-
"UluCollapsible": [],
|
|
240
|
-
"UluAccordionGroup": [],
|
|
241
|
-
"UluAccordion": [],
|
|
242
214
|
"UluTag": [],
|
|
243
215
|
"UluTable": [
|
|
244
216
|
{
|
|
@@ -462,6 +434,34 @@
|
|
|
462
434
|
}
|
|
463
435
|
],
|
|
464
436
|
"UluAlert": [],
|
|
437
|
+
"UluTabGroup": [
|
|
438
|
+
{
|
|
439
|
+
"title": "Default",
|
|
440
|
+
"description": "Default variation",
|
|
441
|
+
"code": "<UluTabGroup>Content</UluTabGroup>"
|
|
442
|
+
},
|
|
443
|
+
{
|
|
444
|
+
"title": "Vertical",
|
|
445
|
+
"description": "Vertical variation",
|
|
446
|
+
"code": "<UluTabGroup vertical>Content</UluTabGroup>"
|
|
447
|
+
},
|
|
448
|
+
{
|
|
449
|
+
"title": "DefaultIndex",
|
|
450
|
+
"description": "DefaultIndex variation",
|
|
451
|
+
"code": "<UluTabGroup :defaultIndex=\"2\">Content</UluTabGroup>"
|
|
452
|
+
},
|
|
453
|
+
{
|
|
454
|
+
"title": "FullWidth",
|
|
455
|
+
"description": "FullWidth variation",
|
|
456
|
+
"code": "<UluTabGroup modifiers=\"{...}\">Content</UluTabGroup>"
|
|
457
|
+
}
|
|
458
|
+
],
|
|
459
|
+
"UluOverflowPopover": [],
|
|
460
|
+
"UluModal": [],
|
|
461
|
+
"UluDropdown": [],
|
|
462
|
+
"UluCollapsible": [],
|
|
463
|
+
"UluAccordionGroup": [],
|
|
464
|
+
"UluAccordion": [],
|
|
465
465
|
"UluTableSticky": [
|
|
466
466
|
{
|
|
467
467
|
"title": "Default",
|
|
@@ -12340,6 +12340,19 @@
|
|
|
12340
12340
|
"order": 5,
|
|
12341
12341
|
"level": 0
|
|
12342
12342
|
},
|
|
12343
|
+
{
|
|
12344
|
+
"id": "plugins\nResponsible for exporting all plugins\n- Used in bundle exportsmodule:",
|
|
12345
|
+
"longname": "plugins\nResponsible for exporting all plugins\n- Used in bundle exportsmodule:",
|
|
12346
|
+
"name": "plugins\nResponsible for exporting all plugins\n- Used in bundle exports",
|
|
12347
|
+
"kind": "module",
|
|
12348
|
+
"meta": {
|
|
12349
|
+
"lineno": 1,
|
|
12350
|
+
"filename": "index.js",
|
|
12351
|
+
"path": "/Users/joescherben/Personal/Projects/ULU/frontend-vue/lib/plugins"
|
|
12352
|
+
},
|
|
12353
|
+
"order": 6,
|
|
12354
|
+
"level": 0
|
|
12355
|
+
},
|
|
12343
12356
|
{
|
|
12344
12357
|
"id": "utils.module:router",
|
|
12345
12358
|
"longname": "utils.module:router",
|
|
@@ -12350,7 +12363,7 @@
|
|
|
12350
12363
|
"filename": "router.js",
|
|
12351
12364
|
"path": "/Users/joescherben/Personal/Projects/ULU/frontend-vue/lib/utils"
|
|
12352
12365
|
},
|
|
12353
|
-
"order":
|
|
12366
|
+
"order": 7,
|
|
12354
12367
|
"level": 0
|
|
12355
12368
|
},
|
|
12356
12369
|
{
|
|
@@ -12363,7 +12376,7 @@
|
|
|
12363
12376
|
"filename": "props.js",
|
|
12364
12377
|
"path": "/Users/joescherben/Personal/Projects/ULU/frontend-vue/lib/utils"
|
|
12365
12378
|
},
|
|
12366
|
-
"order":
|
|
12379
|
+
"order": 22,
|
|
12367
12380
|
"level": 0
|
|
12368
12381
|
},
|
|
12369
12382
|
{
|
|
@@ -12376,7 +12389,7 @@
|
|
|
12376
12389
|
"filename": "index.js",
|
|
12377
12390
|
"path": "/Users/joescherben/Personal/Projects/ULU/frontend-vue/lib/utils"
|
|
12378
12391
|
},
|
|
12379
|
-
"order":
|
|
12392
|
+
"order": 26,
|
|
12380
12393
|
"level": 0
|
|
12381
12394
|
},
|
|
12382
12395
|
{
|
|
@@ -12389,20 +12402,7 @@
|
|
|
12389
12402
|
"filename": "dom.js",
|
|
12390
12403
|
"path": "/Users/joescherben/Personal/Projects/ULU/frontend-vue/lib/utils"
|
|
12391
12404
|
},
|
|
12392
|
-
"order":
|
|
12393
|
-
"level": 0
|
|
12394
|
-
},
|
|
12395
|
-
{
|
|
12396
|
-
"id": "plugins\nResponsible for exporting all plugins\n- Used in bundle exportsmodule:",
|
|
12397
|
-
"longname": "plugins\nResponsible for exporting all plugins\n- Used in bundle exportsmodule:",
|
|
12398
|
-
"name": "plugins\nResponsible for exporting all plugins\n- Used in bundle exports",
|
|
12399
|
-
"kind": "module",
|
|
12400
|
-
"meta": {
|
|
12401
|
-
"lineno": 1,
|
|
12402
|
-
"filename": "index.js",
|
|
12403
|
-
"path": "/Users/joescherben/Personal/Projects/ULU/frontend-vue/lib/plugins"
|
|
12404
|
-
},
|
|
12405
|
-
"order": 29,
|
|
12405
|
+
"order": 27,
|
|
12406
12406
|
"level": 0
|
|
12407
12407
|
},
|
|
12408
12408
|
{
|
|
@@ -12664,6 +12664,20 @@
|
|
|
12664
12664
|
},
|
|
12665
12665
|
"order": 90
|
|
12666
12666
|
},
|
|
12667
|
+
{
|
|
12668
|
+
"id": "module:corePlugin",
|
|
12669
|
+
"longname": "module:corePlugin",
|
|
12670
|
+
"name": "corePlugin",
|
|
12671
|
+
"kind": "module",
|
|
12672
|
+
"description": "Core plugin for managing shared configuration for the library.",
|
|
12673
|
+
"meta": {
|
|
12674
|
+
"lineno": 1,
|
|
12675
|
+
"filename": "index.js",
|
|
12676
|
+
"path": "/Users/joescherben/Personal/Projects/ULU/frontend-vue/lib/plugins/core"
|
|
12677
|
+
},
|
|
12678
|
+
"order": 112,
|
|
12679
|
+
"level": 0
|
|
12680
|
+
},
|
|
12667
12681
|
{
|
|
12668
12682
|
"id": "module:useModals",
|
|
12669
12683
|
"longname": "module:useModals",
|
|
@@ -12674,7 +12688,7 @@
|
|
|
12674
12688
|
"filename": "useModals.js",
|
|
12675
12689
|
"path": "/Users/joescherben/Personal/Projects/ULU/frontend-vue/lib/plugins/modals"
|
|
12676
12690
|
},
|
|
12677
|
-
"order":
|
|
12691
|
+
"order": 114,
|
|
12678
12692
|
"level": 0
|
|
12679
12693
|
},
|
|
12680
12694
|
{
|
|
@@ -12688,7 +12702,7 @@
|
|
|
12688
12702
|
"filename": "index.js",
|
|
12689
12703
|
"path": "/Users/joescherben/Personal/Projects/ULU/frontend-vue/lib/plugins/modals"
|
|
12690
12704
|
},
|
|
12691
|
-
"order":
|
|
12705
|
+
"order": 116,
|
|
12692
12706
|
"level": 0
|
|
12693
12707
|
},
|
|
12694
12708
|
{
|
|
@@ -12701,21 +12715,7 @@
|
|
|
12701
12715
|
"filename": "api.js",
|
|
12702
12716
|
"path": "/Users/joescherben/Personal/Projects/ULU/frontend-vue/lib/plugins/modals"
|
|
12703
12717
|
},
|
|
12704
|
-
"order":
|
|
12705
|
-
"level": 0
|
|
12706
|
-
},
|
|
12707
|
-
{
|
|
12708
|
-
"id": "module:corePlugin",
|
|
12709
|
-
"longname": "module:corePlugin",
|
|
12710
|
-
"name": "corePlugin",
|
|
12711
|
-
"kind": "module",
|
|
12712
|
-
"description": "Core plugin for managing shared configuration for the library.",
|
|
12713
|
-
"meta": {
|
|
12714
|
-
"lineno": 1,
|
|
12715
|
-
"filename": "index.js",
|
|
12716
|
-
"path": "/Users/joescherben/Personal/Projects/ULU/frontend-vue/lib/plugins/core"
|
|
12717
|
-
},
|
|
12718
|
-
"order": 126,
|
|
12718
|
+
"order": 119,
|
|
12719
12719
|
"level": 0
|
|
12720
12720
|
},
|
|
12721
12721
|
{
|
|
@@ -12848,42 +12848,6 @@
|
|
|
12848
12848
|
"order": 89,
|
|
12849
12849
|
"level": 0
|
|
12850
12850
|
},
|
|
12851
|
-
{
|
|
12852
|
-
"id": "module:modalsPlugin--module.exports",
|
|
12853
|
-
"longname": "module:modalsPlugin",
|
|
12854
|
-
"name": "module.exports",
|
|
12855
|
-
"kind": "function",
|
|
12856
|
-
"isExported": true,
|
|
12857
|
-
"description": "Modals Vue Plugin",
|
|
12858
|
-
"memberof": "module:modalsPlugin",
|
|
12859
|
-
"params": [
|
|
12860
|
-
{
|
|
12861
|
-
"type": {
|
|
12862
|
-
"names": [
|
|
12863
|
-
"Object"
|
|
12864
|
-
]
|
|
12865
|
-
},
|
|
12866
|
-
"description": "Vue app instance passed to plugin",
|
|
12867
|
-
"name": "App"
|
|
12868
|
-
},
|
|
12869
|
-
{
|
|
12870
|
-
"type": {
|
|
12871
|
-
"names": [
|
|
12872
|
-
"module:modalsPlugin~UluModalsPluginOptions"
|
|
12873
|
-
]
|
|
12874
|
-
},
|
|
12875
|
-
"description": "Options to change (see defaults)",
|
|
12876
|
-
"name": "userOptions"
|
|
12877
|
-
}
|
|
12878
|
-
],
|
|
12879
|
-
"meta": {
|
|
12880
|
-
"lineno": 28,
|
|
12881
|
-
"filename": "index.js",
|
|
12882
|
-
"path": "/Users/joescherben/Personal/Projects/ULU/frontend-vue/lib/plugins/modals"
|
|
12883
|
-
},
|
|
12884
|
-
"order": 116,
|
|
12885
|
-
"level": 0
|
|
12886
|
-
},
|
|
12887
12851
|
{
|
|
12888
12852
|
"id": "module:corePlugin--module.exports",
|
|
12889
12853
|
"longname": "module:corePlugin",
|
|
@@ -12958,7 +12922,43 @@
|
|
|
12958
12922
|
"filename": "index.js",
|
|
12959
12923
|
"path": "/Users/joescherben/Personal/Projects/ULU/frontend-vue/lib/plugins/core"
|
|
12960
12924
|
},
|
|
12961
|
-
"order":
|
|
12925
|
+
"order": 113,
|
|
12926
|
+
"level": 0
|
|
12927
|
+
},
|
|
12928
|
+
{
|
|
12929
|
+
"id": "module:modalsPlugin--module.exports",
|
|
12930
|
+
"longname": "module:modalsPlugin",
|
|
12931
|
+
"name": "module.exports",
|
|
12932
|
+
"kind": "function",
|
|
12933
|
+
"isExported": true,
|
|
12934
|
+
"description": "Modals Vue Plugin",
|
|
12935
|
+
"memberof": "module:modalsPlugin",
|
|
12936
|
+
"params": [
|
|
12937
|
+
{
|
|
12938
|
+
"type": {
|
|
12939
|
+
"names": [
|
|
12940
|
+
"Object"
|
|
12941
|
+
]
|
|
12942
|
+
},
|
|
12943
|
+
"description": "Vue app instance passed to plugin",
|
|
12944
|
+
"name": "App"
|
|
12945
|
+
},
|
|
12946
|
+
{
|
|
12947
|
+
"type": {
|
|
12948
|
+
"names": [
|
|
12949
|
+
"module:modalsPlugin~UluModalsPluginOptions"
|
|
12950
|
+
]
|
|
12951
|
+
},
|
|
12952
|
+
"description": "Options to change (see defaults)",
|
|
12953
|
+
"name": "userOptions"
|
|
12954
|
+
}
|
|
12955
|
+
],
|
|
12956
|
+
"meta": {
|
|
12957
|
+
"lineno": 28,
|
|
12958
|
+
"filename": "index.js",
|
|
12959
|
+
"path": "/Users/joescherben/Personal/Projects/ULU/frontend-vue/lib/plugins/modals"
|
|
12960
|
+
},
|
|
12961
|
+
"order": 118,
|
|
12962
12962
|
"level": 0
|
|
12963
12963
|
},
|
|
12964
12964
|
{
|
|
@@ -13775,7 +13775,7 @@
|
|
|
13775
13775
|
"filename": "useModals.js",
|
|
13776
13776
|
"path": "/Users/joescherben/Personal/Projects/ULU/frontend-vue/lib/plugins/modals"
|
|
13777
13777
|
},
|
|
13778
|
-
"order":
|
|
13778
|
+
"order": 115,
|
|
13779
13779
|
"level": 0
|
|
13780
13780
|
},
|
|
13781
13781
|
{
|
|
@@ -13868,7 +13868,7 @@
|
|
|
13868
13868
|
"filename": "router.js",
|
|
13869
13869
|
"path": "/Users/joescherben/Personal/Projects/ULU/frontend-vue/lib/utils"
|
|
13870
13870
|
},
|
|
13871
|
-
"order":
|
|
13871
|
+
"order": 8,
|
|
13872
13872
|
"level": 0
|
|
13873
13873
|
},
|
|
13874
13874
|
{
|
|
@@ -13932,7 +13932,7 @@
|
|
|
13932
13932
|
"filename": "router.js",
|
|
13933
13933
|
"path": "/Users/joescherben/Personal/Projects/ULU/frontend-vue/lib/utils"
|
|
13934
13934
|
},
|
|
13935
|
-
"order":
|
|
13935
|
+
"order": 10,
|
|
13936
13936
|
"level": 0
|
|
13937
13937
|
},
|
|
13938
13938
|
{
|
|
@@ -13969,7 +13969,7 @@
|
|
|
13969
13969
|
"filename": "router.js",
|
|
13970
13970
|
"path": "/Users/joescherben/Personal/Projects/ULU/frontend-vue/lib/utils"
|
|
13971
13971
|
},
|
|
13972
|
-
"order":
|
|
13972
|
+
"order": 11,
|
|
13973
13973
|
"level": 0
|
|
13974
13974
|
},
|
|
13975
13975
|
{
|
|
@@ -14042,7 +14042,7 @@
|
|
|
14042
14042
|
"filename": "router.js",
|
|
14043
14043
|
"path": "/Users/joescherben/Personal/Projects/ULU/frontend-vue/lib/utils"
|
|
14044
14044
|
},
|
|
14045
|
-
"order":
|
|
14045
|
+
"order": 12,
|
|
14046
14046
|
"level": 0
|
|
14047
14047
|
},
|
|
14048
14048
|
{
|
|
@@ -14079,7 +14079,7 @@
|
|
|
14079
14079
|
"filename": "router.js",
|
|
14080
14080
|
"path": "/Users/joescherben/Personal/Projects/ULU/frontend-vue/lib/utils"
|
|
14081
14081
|
},
|
|
14082
|
-
"order":
|
|
14082
|
+
"order": 13,
|
|
14083
14083
|
"level": 0
|
|
14084
14084
|
},
|
|
14085
14085
|
{
|
|
@@ -14152,7 +14152,7 @@
|
|
|
14152
14152
|
"filename": "router.js",
|
|
14153
14153
|
"path": "/Users/joescherben/Personal/Projects/ULU/frontend-vue/lib/utils"
|
|
14154
14154
|
},
|
|
14155
|
-
"order":
|
|
14155
|
+
"order": 14,
|
|
14156
14156
|
"level": 0
|
|
14157
14157
|
},
|
|
14158
14158
|
{
|
|
@@ -14189,7 +14189,7 @@
|
|
|
14189
14189
|
"filename": "router.js",
|
|
14190
14190
|
"path": "/Users/joescherben/Personal/Projects/ULU/frontend-vue/lib/utils"
|
|
14191
14191
|
},
|
|
14192
|
-
"order":
|
|
14192
|
+
"order": 15,
|
|
14193
14193
|
"level": 0
|
|
14194
14194
|
},
|
|
14195
14195
|
{
|
|
@@ -14225,7 +14225,7 @@
|
|
|
14225
14225
|
"filename": "router.js",
|
|
14226
14226
|
"path": "/Users/joescherben/Personal/Projects/ULU/frontend-vue/lib/utils"
|
|
14227
14227
|
},
|
|
14228
|
-
"order":
|
|
14228
|
+
"order": 16,
|
|
14229
14229
|
"level": 0
|
|
14230
14230
|
},
|
|
14231
14231
|
{
|
|
@@ -14261,7 +14261,7 @@
|
|
|
14261
14261
|
"filename": "router.js",
|
|
14262
14262
|
"path": "/Users/joescherben/Personal/Projects/ULU/frontend-vue/lib/utils"
|
|
14263
14263
|
},
|
|
14264
|
-
"order":
|
|
14264
|
+
"order": 17,
|
|
14265
14265
|
"level": 0
|
|
14266
14266
|
},
|
|
14267
14267
|
{
|
|
@@ -14299,7 +14299,7 @@
|
|
|
14299
14299
|
"filename": "router.js",
|
|
14300
14300
|
"path": "/Users/joescherben/Personal/Projects/ULU/frontend-vue/lib/utils"
|
|
14301
14301
|
},
|
|
14302
|
-
"order":
|
|
14302
|
+
"order": 18,
|
|
14303
14303
|
"level": 0
|
|
14304
14304
|
},
|
|
14305
14305
|
{
|
|
@@ -14346,7 +14346,7 @@
|
|
|
14346
14346
|
"filename": "router.js",
|
|
14347
14347
|
"path": "/Users/joescherben/Personal/Projects/ULU/frontend-vue/lib/utils"
|
|
14348
14348
|
},
|
|
14349
|
-
"order":
|
|
14349
|
+
"order": 19,
|
|
14350
14350
|
"level": 0
|
|
14351
14351
|
},
|
|
14352
14352
|
{
|
|
@@ -14419,7 +14419,7 @@
|
|
|
14419
14419
|
"filename": "router.js",
|
|
14420
14420
|
"path": "/Users/joescherben/Personal/Projects/ULU/frontend-vue/lib/utils"
|
|
14421
14421
|
},
|
|
14422
|
-
"order":
|
|
14422
|
+
"order": 20,
|
|
14423
14423
|
"level": 0
|
|
14424
14424
|
},
|
|
14425
14425
|
{
|
|
@@ -14456,7 +14456,7 @@
|
|
|
14456
14456
|
"filename": "router.js",
|
|
14457
14457
|
"path": "/Users/joescherben/Personal/Projects/ULU/frontend-vue/lib/utils"
|
|
14458
14458
|
},
|
|
14459
|
-
"order":
|
|
14459
|
+
"order": 21,
|
|
14460
14460
|
"level": 0
|
|
14461
14461
|
},
|
|
14462
14462
|
{
|
|
@@ -14493,7 +14493,7 @@
|
|
|
14493
14493
|
"filename": "props.js",
|
|
14494
14494
|
"path": "/Users/joescherben/Personal/Projects/ULU/frontend-vue/lib/utils"
|
|
14495
14495
|
},
|
|
14496
|
-
"order":
|
|
14496
|
+
"order": 23,
|
|
14497
14497
|
"level": 0
|
|
14498
14498
|
},
|
|
14499
14499
|
{
|
|
@@ -14538,7 +14538,7 @@
|
|
|
14538
14538
|
"filename": "props.js",
|
|
14539
14539
|
"path": "/Users/joescherben/Personal/Projects/ULU/frontend-vue/lib/utils"
|
|
14540
14540
|
},
|
|
14541
|
-
"order":
|
|
14541
|
+
"order": 24,
|
|
14542
14542
|
"level": 0
|
|
14543
14543
|
},
|
|
14544
14544
|
{
|
|
@@ -14587,7 +14587,7 @@
|
|
|
14587
14587
|
"filename": "props.js",
|
|
14588
14588
|
"path": "/Users/joescherben/Personal/Projects/ULU/frontend-vue/lib/utils"
|
|
14589
14589
|
},
|
|
14590
|
-
"order":
|
|
14590
|
+
"order": 25,
|
|
14591
14591
|
"level": 0
|
|
14592
14592
|
},
|
|
14593
14593
|
{
|
|
@@ -14625,7 +14625,7 @@
|
|
|
14625
14625
|
"filename": "dom.js",
|
|
14626
14626
|
"path": "/Users/joescherben/Personal/Projects/ULU/frontend-vue/lib/utils"
|
|
14627
14627
|
},
|
|
14628
|
-
"order":
|
|
14628
|
+
"order": 28,
|
|
14629
14629
|
"level": 0
|
|
14630
14630
|
},
|
|
14631
14631
|
{
|
|
@@ -14664,7 +14664,7 @@
|
|
|
14664
14664
|
"filename": "dom.js",
|
|
14665
14665
|
"path": "/Users/joescherben/Personal/Projects/ULU/frontend-vue/lib/utils"
|
|
14666
14666
|
},
|
|
14667
|
-
"order":
|
|
14667
|
+
"order": 29,
|
|
14668
14668
|
"level": 0
|
|
14669
14669
|
},
|
|
14670
14670
|
{
|
|
@@ -15484,7 +15484,7 @@
|
|
|
15484
15484
|
"filename": "api.js",
|
|
15485
15485
|
"path": "/Users/joescherben/Personal/Projects/ULU/frontend-vue/lib/plugins/modals"
|
|
15486
15486
|
},
|
|
15487
|
-
"order":
|
|
15487
|
+
"order": 121,
|
|
15488
15488
|
"level": 0
|
|
15489
15489
|
},
|
|
15490
15490
|
{
|
|
@@ -15500,7 +15500,7 @@
|
|
|
15500
15500
|
"filename": "api.js",
|
|
15501
15501
|
"path": "/Users/joescherben/Personal/Projects/ULU/frontend-vue/lib/plugins/modals"
|
|
15502
15502
|
},
|
|
15503
|
-
"order":
|
|
15503
|
+
"order": 122,
|
|
15504
15504
|
"level": 0
|
|
15505
15505
|
},
|
|
15506
15506
|
{
|
|
@@ -15551,7 +15551,7 @@
|
|
|
15551
15551
|
"filename": "api.js",
|
|
15552
15552
|
"path": "/Users/joescherben/Personal/Projects/ULU/frontend-vue/lib/plugins/modals"
|
|
15553
15553
|
},
|
|
15554
|
-
"order":
|
|
15554
|
+
"order": 120,
|
|
15555
15555
|
"level": 0
|
|
15556
15556
|
},
|
|
15557
15557
|
{
|
|
@@ -15568,7 +15568,7 @@
|
|
|
15568
15568
|
"filename": "api.js",
|
|
15569
15569
|
"path": "/Users/joescherben/Personal/Projects/ULU/frontend-vue/lib/plugins/modals"
|
|
15570
15570
|
},
|
|
15571
|
-
"order":
|
|
15571
|
+
"order": 123,
|
|
15572
15572
|
"level": 0
|
|
15573
15573
|
},
|
|
15574
15574
|
{
|
|
@@ -15803,7 +15803,7 @@
|
|
|
15803
15803
|
"filename": "api.js",
|
|
15804
15804
|
"path": "/Users/joescherben/Personal/Projects/ULU/frontend-vue/lib/plugins/modals"
|
|
15805
15805
|
},
|
|
15806
|
-
"order":
|
|
15806
|
+
"order": 124,
|
|
15807
15807
|
"level": 0
|
|
15808
15808
|
},
|
|
15809
15809
|
{
|
|
@@ -15829,7 +15829,7 @@
|
|
|
15829
15829
|
"filename": "api.js",
|
|
15830
15830
|
"path": "/Users/joescherben/Personal/Projects/ULU/frontend-vue/lib/plugins/modals"
|
|
15831
15831
|
},
|
|
15832
|
-
"order":
|
|
15832
|
+
"order": 125,
|
|
15833
15833
|
"level": 0
|
|
15834
15834
|
},
|
|
15835
15835
|
{
|
|
@@ -15845,7 +15845,7 @@
|
|
|
15845
15845
|
"filename": "api.js",
|
|
15846
15846
|
"path": "/Users/joescherben/Personal/Projects/ULU/frontend-vue/lib/plugins/modals"
|
|
15847
15847
|
},
|
|
15848
|
-
"order":
|
|
15848
|
+
"order": 126,
|
|
15849
15849
|
"level": 0
|
|
15850
15850
|
},
|
|
15851
15851
|
{
|
|
@@ -15871,7 +15871,7 @@
|
|
|
15871
15871
|
"filename": "api.js",
|
|
15872
15872
|
"path": "/Users/joescherben/Personal/Projects/ULU/frontend-vue/lib/plugins/modals"
|
|
15873
15873
|
},
|
|
15874
|
-
"order":
|
|
15874
|
+
"order": 127,
|
|
15875
15875
|
"level": 0
|
|
15876
15876
|
},
|
|
15877
15877
|
{
|
|
@@ -16206,7 +16206,7 @@
|
|
|
16206
16206
|
"filename": "router.js",
|
|
16207
16207
|
"path": "/Users/joescherben/Personal/Projects/ULU/frontend-vue/lib/utils"
|
|
16208
16208
|
},
|
|
16209
|
-
"order":
|
|
16209
|
+
"order": 9,
|
|
16210
16210
|
"level": 0
|
|
16211
16211
|
},
|
|
16212
16212
|
{
|
|
@@ -16354,7 +16354,7 @@
|
|
|
16354
16354
|
"filename": "index.js",
|
|
16355
16355
|
"path": "/Users/joescherben/Personal/Projects/ULU/frontend-vue/lib/plugins/modals"
|
|
16356
16356
|
},
|
|
16357
|
-
"order":
|
|
16357
|
+
"order": 117,
|
|
16358
16358
|
"level": 0
|
|
16359
16359
|
}
|
|
16360
16360
|
],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UluToast.vue.d.ts","sourceRoot":"","sources":["../../../lib/plugins/toast/UluToast.vue"],"names":[],"mappings":"AAiDA;
|
|
1
|
+
{"version":3,"file":"UluToast.vue.d.ts","sourceRoot":"","sources":["../../../lib/plugins/toast/UluToast.vue"],"names":[],"mappings":"AAiDA;wBAsRqB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;;6BAEtE,CAAC,EAAE,CAAC;;;AAXjC;;;;;;;sPAQG"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { computed as
|
|
2
|
-
import
|
|
1
|
+
import { computed as C, createElementBlock as l, openBlock as o, normalizeClass as e, createCommentVNode as c, createElementVNode as r, renderSlot as m, createBlock as B, toDisplayString as d, Fragment as g, renderList as S, createVNode as h, nextTick as E } from "vue";
|
|
2
|
+
import k from "../../components/elements/UluIcon.vue.js";
|
|
3
3
|
import { mergeClassLookups as L } from "../../utils/props.js";
|
|
4
4
|
const $ = ["onClick"], T = {
|
|
5
5
|
__name: "UluToast",
|
|
@@ -17,22 +17,24 @@ const $ = ["onClick"], T = {
|
|
|
17
17
|
}
|
|
18
18
|
},
|
|
19
19
|
setup(t) {
|
|
20
|
-
const
|
|
20
|
+
const v = {
|
|
21
21
|
content: "type-small",
|
|
22
22
|
date: "type-small-x",
|
|
23
23
|
actions: "type-small-x",
|
|
24
24
|
action: "button button--small button--outline",
|
|
25
25
|
closeButton: "button button--icon button--transparent"
|
|
26
|
-
},
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
)), y = (
|
|
31
|
-
|
|
32
|
-
|
|
26
|
+
}, u = t, s = C(() => L(
|
|
27
|
+
v,
|
|
28
|
+
u.classes,
|
|
29
|
+
u.toast?.classes
|
|
30
|
+
)), y = (i, n) => {
|
|
31
|
+
u.toast.close();
|
|
32
|
+
const a = typeof n == "function" ? n : n.click;
|
|
33
|
+
a && E(() => {
|
|
34
|
+
a(i, u.toast, n);
|
|
33
35
|
});
|
|
34
36
|
};
|
|
35
|
-
return (
|
|
37
|
+
return (i, n) => (o(), l("div", {
|
|
36
38
|
class: e(["toast", [
|
|
37
39
|
{
|
|
38
40
|
"toast--persistent": !t.toast.duration
|
|
@@ -40,54 +42,54 @@ const $ = ["onClick"], T = {
|
|
|
40
42
|
t.toast?.class
|
|
41
43
|
]])
|
|
42
44
|
}, [
|
|
43
|
-
t.toast.icon ||
|
|
45
|
+
t.toast.icon || i.$slots.icon ? (o(), l("div", {
|
|
44
46
|
key: 0,
|
|
45
|
-
class: e(["toast__icon",
|
|
47
|
+
class: e(["toast__icon", s.value.icon])
|
|
46
48
|
}, [
|
|
47
|
-
m(
|
|
48
|
-
t.toast.icon ? (
|
|
49
|
+
m(i.$slots, "icon", { toast: t.toast }, () => [
|
|
50
|
+
t.toast.icon ? (o(), B(k, {
|
|
49
51
|
key: 0,
|
|
50
52
|
icon: t.toast.icon
|
|
51
|
-
}, null, 8, ["icon"])) :
|
|
53
|
+
}, null, 8, ["icon"])) : c("", !0)
|
|
52
54
|
])
|
|
53
|
-
], 2)) :
|
|
55
|
+
], 2)) : c("", !0),
|
|
54
56
|
r("div", {
|
|
55
|
-
class: e(["toast__content",
|
|
57
|
+
class: e(["toast__content", s.value.content])
|
|
56
58
|
}, [
|
|
57
|
-
m(
|
|
58
|
-
t.toast.title ? (
|
|
59
|
+
m(i.$slots, "content", { toast: t.toast }, () => [
|
|
60
|
+
t.toast.title ? (o(), l("div", {
|
|
59
61
|
key: 0,
|
|
60
|
-
class: e(["toast__header",
|
|
62
|
+
class: e(["toast__header", s.value.header])
|
|
61
63
|
}, [
|
|
62
64
|
r("strong", {
|
|
63
|
-
class: e(["toast__title",
|
|
65
|
+
class: e(["toast__title", s.value.title])
|
|
64
66
|
}, d(t.toast.title), 3),
|
|
65
|
-
t.toast.date ? (
|
|
67
|
+
t.toast.date ? (o(), l("span", {
|
|
66
68
|
key: 0,
|
|
67
|
-
class: e(["toast__date",
|
|
68
|
-
}, d(t.toast.date), 3)) :
|
|
69
|
-
], 2)) :
|
|
70
|
-
t.toast.description ? (
|
|
69
|
+
class: e(["toast__date", s.value.date])
|
|
70
|
+
}, d(t.toast.date), 3)) : c("", !0)
|
|
71
|
+
], 2)) : c("", !0),
|
|
72
|
+
t.toast.description ? (o(), l("div", {
|
|
71
73
|
key: 1,
|
|
72
|
-
class: e(["toast__body",
|
|
73
|
-
}, d(t.toast.description), 3)) :
|
|
74
|
+
class: e(["toast__body", s.value.body])
|
|
75
|
+
}, d(t.toast.description), 3)) : c("", !0)
|
|
74
76
|
])
|
|
75
77
|
], 2),
|
|
76
|
-
t.toast.actions?.length ? (
|
|
78
|
+
t.toast.actions?.length ? (o(), l("div", {
|
|
77
79
|
key: 1,
|
|
78
|
-
class: e(["toast__actions",
|
|
80
|
+
class: e(["toast__actions", s.value.actions])
|
|
79
81
|
}, [
|
|
80
|
-
(
|
|
82
|
+
(o(!0), l(g, null, S(t.toast.actions, (a, b) => (o(), l("button", {
|
|
81
83
|
key: b,
|
|
82
|
-
class: e(["toast__action",
|
|
83
|
-
onClick: (
|
|
84
|
-
}, d(
|
|
85
|
-
], 2)) :
|
|
84
|
+
class: e(["toast__action", [s.value.action, a.class]]),
|
|
85
|
+
onClick: (f) => y(f, a)
|
|
86
|
+
}, d(a.label), 11, $))), 128))
|
|
87
|
+
], 2)) : c("", !0),
|
|
86
88
|
r("button", {
|
|
87
|
-
class: e(["toast__close",
|
|
88
|
-
onClick:
|
|
89
|
+
class: e(["toast__close", s.value.closeButton]),
|
|
90
|
+
onClick: n[0] || (n[0] = (...a) => t.toast.close && t.toast.close(...a))
|
|
89
91
|
}, [
|
|
90
|
-
h(
|
|
92
|
+
h(k, { icon: "type:close" })
|
|
91
93
|
], 2)
|
|
92
94
|
], 2));
|
|
93
95
|
}
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
v-for="(action, index) in toast.actions"
|
|
37
37
|
:key="index"
|
|
38
38
|
class="toast__action"
|
|
39
|
-
:class="resolvedClasses.action"
|
|
39
|
+
:class="[resolvedClasses.action, action.class]"
|
|
40
40
|
@click="handleAction($event, action)"
|
|
41
41
|
>
|
|
42
42
|
{{ action.label }}
|
|
@@ -83,8 +83,11 @@
|
|
|
83
83
|
|
|
84
84
|
const handleAction = (event, action) => {
|
|
85
85
|
props.toast.close();
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
86
|
+
const callback = typeof action === "function" ? action : action.click;
|
|
87
|
+
if (callback) {
|
|
88
|
+
nextTick(() => {
|
|
89
|
+
callback(event, props.toast, action);
|
|
90
|
+
});
|
|
91
|
+
}
|
|
89
92
|
};
|
|
90
93
|
</script>
|
package/package.json
CHANGED