@poveste/app 0.12.3 → 0.13.1
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/app/style/font.css +11 -7
- package/dist/app/style/fonts/LICENSE +93 -0
- package/dist/app/style/fonts/noto-sans-display-cyrillic-400-normal.woff2 +0 -0
- package/dist/app/style/fonts/noto-sans-display-cyrillic-ext-400-normal.woff2 +0 -0
- package/dist/app/style/fonts/noto-sans-display-greek-400-normal.woff2 +0 -0
- package/dist/app/style/fonts/noto-sans-display-greek-ext-400-normal.woff2 +0 -0
- package/dist/app/style/fonts/noto-sans-display-latin-400-normal.woff2 +0 -0
- package/dist/app/style/fonts/noto-sans-display-latin-ext-400-normal.woff2 +0 -0
- package/dist/app/style/fonts/noto-sans-display-vietnamese-400-normal.woff2 +0 -0
- package/dist/bundled/App.vue_vue_type_script_setup_true_lang.js +30 -38
- package/dist/bundled/app.css +11 -17
- package/dist/bundled/components/base/BaseListItemLink.js +6 -3
- package/dist/bundled/components/base/BaseListItemLink.vue_vue_type_script_lang.js +10 -4
- package/dist/bundled/components/base/BaseOverflowTab.js +6 -3
- package/dist/bundled/components/base/BaseOverflowTab.vue_vue_type_script_lang.js +4 -0
- package/dist/bundled/components/base/BaseSplitPane.js +1 -1
- package/dist/bundled/components/base/BaseSplitPane.vue_vue_type_script_setup_true_lang.js +67 -29
- package/dist/bundled/components/base/BaseTab.js +6 -3
- package/dist/bundled/components/base/BaseTab.vue_vue_type_script_lang.js +4 -0
- package/dist/bundled/components/panel/PaneTabs.vue_vue_type_script_setup_true_lang.js +4 -4
- package/dist/bundled/components/panel/StorySourceCode.js +1 -1
- package/dist/bundled/components/panel/StorySourceCode.vue_vue_type_script_setup_true_lang.js +3 -3
- package/dist/bundled/components/story/StoryVariantGridItem.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/bundled/components/story/StoryVariantSingle.js +1 -1
- package/dist/bundled/components/story/StoryVariantSingle.vue_vue_type_script_setup_true_lang.js +28 -43
- package/dist/bundled/components/story/StoryVariantSinglePreviewNative.vue_vue_type_script_setup_true_lang.js +5 -2
- package/dist/bundled/components/story/StoryVariantSinglePreviewRemote.vue_vue_type_script_setup_true_lang.js +4 -0
- package/dist/bundled/components/story/StoryVariantSingleView.vue_vue_type_script_setup_true_lang.js +23 -13
- package/dist/bundled/components/story/StoryView.vue_vue_type_script_setup_true_lang.js +8 -11
- package/dist/bundled/components/toolbar/ToolbarBackground.js +1 -3
- package/dist/bundled/components/toolbar/ToolbarBackground.vue_vue_type_script_setup_true_lang.js +1 -5
- package/dist/bundled/sandbox.js +6 -1
- package/dist/bundled/util/events.js +4 -1
- package/dist/bundled/util/highlighter.js +11 -4
- package/dist/bundled/util/mapping.js +5 -1
- package/dist/bundled/util/occupant.js +16 -0
- package/dist/bundled/util/variant.js +12 -1
- package/dist/style.css +18 -6
- package/package.json +8 -6
- package/src/__tests__/font.spec.ts +48 -2
- package/src/app/App.vue +77 -63
- package/src/app/components/base/BaseListItemLink.vue +12 -1
- package/src/app/components/base/BaseOverflowTab.vue +12 -1
- package/src/app/components/base/BaseSplitPane.vue +95 -29
- package/src/app/components/base/BaseTab.vue +12 -1
- package/src/app/components/command/CommandPrompts.vue +9 -1
- package/src/app/components/panel/PaneTabs.vue +4 -4
- package/src/app/components/panel/StorySourceCode.vue +5 -5
- package/src/app/components/story/StoryVariantSingle.vue +65 -67
- package/src/app/components/story/StoryVariantSinglePreviewNative.vue +13 -2
- package/src/app/components/story/StoryVariantSinglePreviewRemote.vue +8 -0
- package/src/app/components/story/StoryVariantSingleView.vue +59 -13
- package/src/app/components/story/StoryView.vue +17 -17
- package/src/app/components/toolbar/ToolbarBackground.vue +0 -7
- package/src/app/components/tree/StoryGroup.vue +1 -1
- package/src/app/sandbox.ts +9 -1
- package/src/app/style/font.css +11 -7
- package/src/app/style/fonts/LICENSE +93 -0
- package/src/app/style/fonts/noto-sans-display-cyrillic-400-normal.woff2 +0 -0
- package/src/app/style/fonts/noto-sans-display-cyrillic-ext-400-normal.woff2 +0 -0
- package/src/app/style/fonts/noto-sans-display-greek-400-normal.woff2 +0 -0
- package/src/app/style/fonts/noto-sans-display-greek-ext-400-normal.woff2 +0 -0
- package/src/app/style/fonts/noto-sans-display-latin-400-normal.woff2 +0 -0
- package/src/app/style/fonts/noto-sans-display-latin-ext-400-normal.woff2 +0 -0
- package/src/app/style/fonts/noto-sans-display-vietnamese-400-normal.woff2 +0 -0
- package/src/app/util/events.ts +3 -0
- package/src/app/util/highlighter.ts +24 -9
- package/src/app/util/mapping.ts +5 -1
- package/src/app/util/occupant.ts +13 -0
- package/src/app/util/variant.ts +13 -1
- package/LICENSE +0 -22
package/dist/app/style/font.css
CHANGED
|
@@ -4,6 +4,10 @@
|
|
|
4
4
|
* in each book. Copied rather than imported because the package pairs the two
|
|
5
5
|
* formats in every `src`; `font.spec.ts` fails if a bump moves the subsets.
|
|
6
6
|
*
|
|
7
|
+
* Vendored rather than resolved from the package, which publishes the family
|
|
8
|
+
* whole: 5.9 MB installed to ship 108 KB (#306). OFL-1.1, so `fonts/LICENSE`
|
|
9
|
+
* travels with the files.
|
|
10
|
+
*
|
|
7
11
|
* Regenerate: node packages/poveste-app/scripts/font.mjs
|
|
8
12
|
*/
|
|
9
13
|
|
|
@@ -13,7 +17,7 @@
|
|
|
13
17
|
font-style: normal;
|
|
14
18
|
font-display: swap;
|
|
15
19
|
font-weight: 400;
|
|
16
|
-
src: url('
|
|
20
|
+
src: url('./fonts/noto-sans-display-cyrillic-ext-400-normal.woff2') format('woff2');
|
|
17
21
|
unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
|
|
18
22
|
}
|
|
19
23
|
|
|
@@ -23,7 +27,7 @@
|
|
|
23
27
|
font-style: normal;
|
|
24
28
|
font-display: swap;
|
|
25
29
|
font-weight: 400;
|
|
26
|
-
src: url('
|
|
30
|
+
src: url('./fonts/noto-sans-display-cyrillic-400-normal.woff2') format('woff2');
|
|
27
31
|
unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
|
|
28
32
|
}
|
|
29
33
|
|
|
@@ -33,7 +37,7 @@
|
|
|
33
37
|
font-style: normal;
|
|
34
38
|
font-display: swap;
|
|
35
39
|
font-weight: 400;
|
|
36
|
-
src: url('
|
|
40
|
+
src: url('./fonts/noto-sans-display-greek-ext-400-normal.woff2') format('woff2');
|
|
37
41
|
unicode-range: U+1F00-1FFF;
|
|
38
42
|
}
|
|
39
43
|
|
|
@@ -43,7 +47,7 @@
|
|
|
43
47
|
font-style: normal;
|
|
44
48
|
font-display: swap;
|
|
45
49
|
font-weight: 400;
|
|
46
|
-
src: url('
|
|
50
|
+
src: url('./fonts/noto-sans-display-greek-400-normal.woff2') format('woff2');
|
|
47
51
|
unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF;
|
|
48
52
|
}
|
|
49
53
|
|
|
@@ -53,7 +57,7 @@
|
|
|
53
57
|
font-style: normal;
|
|
54
58
|
font-display: swap;
|
|
55
59
|
font-weight: 400;
|
|
56
|
-
src: url('
|
|
60
|
+
src: url('./fonts/noto-sans-display-vietnamese-400-normal.woff2') format('woff2');
|
|
57
61
|
unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
|
|
58
62
|
}
|
|
59
63
|
|
|
@@ -63,7 +67,7 @@
|
|
|
63
67
|
font-style: normal;
|
|
64
68
|
font-display: swap;
|
|
65
69
|
font-weight: 400;
|
|
66
|
-
src: url('
|
|
70
|
+
src: url('./fonts/noto-sans-display-latin-ext-400-normal.woff2') format('woff2');
|
|
67
71
|
unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
|
|
68
72
|
}
|
|
69
73
|
|
|
@@ -73,6 +77,6 @@
|
|
|
73
77
|
font-style: normal;
|
|
74
78
|
font-display: swap;
|
|
75
79
|
font-weight: 400;
|
|
76
|
-
src: url('
|
|
80
|
+
src: url('./fonts/noto-sans-display-latin-400-normal.woff2') format('woff2');
|
|
77
81
|
unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
|
|
78
82
|
}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
Copyright 2015 Google Inc. All Rights Reserved. NotoSansDisplay-Italic[wdth,wght].ttf: Copyright 2015 Google Inc. All Rights Reserved.
|
|
2
|
+
|
|
3
|
+
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
|
4
|
+
This license is copied below, and is also available with a FAQ at:
|
|
5
|
+
http://scripts.sil.org/OFL
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
-----------------------------------------------------------
|
|
9
|
+
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
|
10
|
+
-----------------------------------------------------------
|
|
11
|
+
|
|
12
|
+
PREAMBLE
|
|
13
|
+
The goals of the Open Font License (OFL) are to stimulate worldwide
|
|
14
|
+
development of collaborative font projects, to support the font creation
|
|
15
|
+
efforts of academic and linguistic communities, and to provide a free and
|
|
16
|
+
open framework in which fonts may be shared and improved in partnership
|
|
17
|
+
with others.
|
|
18
|
+
|
|
19
|
+
The OFL allows the licensed fonts to be used, studied, modified and
|
|
20
|
+
redistributed freely as long as they are not sold by themselves. The
|
|
21
|
+
fonts, including any derivative works, can be bundled, embedded,
|
|
22
|
+
redistributed and/or sold with any software provided that any reserved
|
|
23
|
+
names are not used by derivative works. The fonts and derivatives,
|
|
24
|
+
however, cannot be released under any other type of license. The
|
|
25
|
+
requirement for fonts to remain under this license does not apply
|
|
26
|
+
to any document created using the fonts or their derivatives.
|
|
27
|
+
|
|
28
|
+
DEFINITIONS
|
|
29
|
+
"Font Software" refers to the set of files released by the Copyright
|
|
30
|
+
Holder(s) under this license and clearly marked as such. This may
|
|
31
|
+
include source files, build scripts and documentation.
|
|
32
|
+
|
|
33
|
+
"Reserved Font Name" refers to any names specified as such after the
|
|
34
|
+
copyright statement(s).
|
|
35
|
+
|
|
36
|
+
"Original Version" refers to the collection of Font Software components as
|
|
37
|
+
distributed by the Copyright Holder(s).
|
|
38
|
+
|
|
39
|
+
"Modified Version" refers to any derivative made by adding to, deleting,
|
|
40
|
+
or substituting -- in part or in whole -- any of the components of the
|
|
41
|
+
Original Version, by changing formats or by porting the Font Software to a
|
|
42
|
+
new environment.
|
|
43
|
+
|
|
44
|
+
"Author" refers to any designer, engineer, programmer, technical
|
|
45
|
+
writer or other person who contributed to the Font Software.
|
|
46
|
+
|
|
47
|
+
PERMISSION & CONDITIONS
|
|
48
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
49
|
+
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
|
50
|
+
redistribute, and sell modified and unmodified copies of the Font
|
|
51
|
+
Software, subject to the following conditions:
|
|
52
|
+
|
|
53
|
+
1) Neither the Font Software nor any of its individual components,
|
|
54
|
+
in Original or Modified Versions, may be sold by itself.
|
|
55
|
+
|
|
56
|
+
2) Original or Modified Versions of the Font Software may be bundled,
|
|
57
|
+
redistributed and/or sold with any software, provided that each copy
|
|
58
|
+
contains the above copyright notice and this license. These can be
|
|
59
|
+
included either as stand-alone text files, human-readable headers or
|
|
60
|
+
in the appropriate machine-readable metadata fields within text or
|
|
61
|
+
binary files as long as those fields can be easily viewed by the user.
|
|
62
|
+
|
|
63
|
+
3) No Modified Version of the Font Software may use the Reserved Font
|
|
64
|
+
Name(s) unless explicit written permission is granted by the corresponding
|
|
65
|
+
Copyright Holder. This restriction only applies to the primary font name as
|
|
66
|
+
presented to the users.
|
|
67
|
+
|
|
68
|
+
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
|
69
|
+
Software shall not be used to promote, endorse or advertise any
|
|
70
|
+
Modified Version, except to acknowledge the contribution(s) of the
|
|
71
|
+
Copyright Holder(s) and the Author(s) or with their explicit written
|
|
72
|
+
permission.
|
|
73
|
+
|
|
74
|
+
5) The Font Software, modified or unmodified, in part or in whole,
|
|
75
|
+
must be distributed entirely under this license, and must not be
|
|
76
|
+
distributed under any other license. The requirement for fonts to
|
|
77
|
+
remain under this license does not apply to any document created
|
|
78
|
+
using the Font Software.
|
|
79
|
+
|
|
80
|
+
TERMINATION
|
|
81
|
+
This license becomes null and void if any of the above conditions are
|
|
82
|
+
not met.
|
|
83
|
+
|
|
84
|
+
DISCLAIMER
|
|
85
|
+
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
86
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
|
87
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
|
88
|
+
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
|
89
|
+
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
90
|
+
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
|
91
|
+
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
92
|
+
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
|
93
|
+
OTHER DEALINGS IN THE FONT SOFTWARE.
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -18,7 +18,7 @@ import SearchModal_default from "./components/search/SearchModal.js";
|
|
|
18
18
|
import GenericMountStory_default from "./components/story/GenericMountStory.js";
|
|
19
19
|
import { mapFile } from "./util/mapping.js";
|
|
20
20
|
import { useTitle } from "@poveste/vendors/vue-use";
|
|
21
|
-
import { Fragment, Transition, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, normalizeStyle, onMounted, openBlock, ref, resolveComponent, toDisplayString, unref, watch, withCtx } from "@poveste/vendors/vue";
|
|
21
|
+
import { Fragment, Transition, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, normalizeClass, normalizeStyle, onMounted, openBlock, ref, resolveComponent, toDisplayString, unref, watch, withCtx } from "@poveste/vendors/vue";
|
|
22
22
|
import { files, onUpdate, tree } from "virtual:$poveste-stories";
|
|
23
23
|
//#region src/app/App.vue?vue&type=script&setup=true&lang.ts
|
|
24
24
|
var _hoisted_1 = { class: "poveste-app-root h-full" };
|
|
@@ -26,20 +26,17 @@ var _hoisted_2 = {
|
|
|
26
26
|
key: 0,
|
|
27
27
|
class: "poveste-app hidden"
|
|
28
28
|
};
|
|
29
|
-
var _hoisted_3 = {
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
var _hoisted_3 = { class: "flex items-center gap-2 pr-4" };
|
|
30
|
+
var _hoisted_4 = {
|
|
31
|
+
key: 1,
|
|
32
|
+
class: "sr-only"
|
|
32
33
|
};
|
|
33
|
-
var
|
|
34
|
-
var
|
|
35
|
-
var _hoisted_6 = { class: "flex flex-col h-full bg-gray-100 dark:bg-gray-750 __poveste-pane-shadow-from-right" };
|
|
36
|
-
var _hoisted_7 = {
|
|
34
|
+
var _hoisted_5 = { class: "flex flex-col h-full bg-gray-100 dark:bg-gray-750 __poveste-pane-shadow-from-right" };
|
|
35
|
+
var _hoisted_6 = {
|
|
37
36
|
"aria-label": "Stories",
|
|
38
37
|
class: "flex-1 flex flex-col min-h-0"
|
|
39
38
|
};
|
|
40
|
-
var
|
|
41
|
-
var _hoisted_9 = { class: "sr-only" };
|
|
42
|
-
var _hoisted_10 = { class: "h-full flex flex-col" };
|
|
39
|
+
var _hoisted_7 = { class: "flex flex-col h-full" };
|
|
43
40
|
var App_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
|
|
44
41
|
name: "PovesteApp",
|
|
45
42
|
setup(__props) {
|
|
@@ -100,6 +97,7 @@ var App_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCompon
|
|
|
100
97
|
});
|
|
101
98
|
const commandStore = useCommandStore();
|
|
102
99
|
const layoutStore = useLayoutStore();
|
|
100
|
+
const storyListVisible = computed(() => !!layoutStore.settings.storyListVisible);
|
|
103
101
|
return (_ctx, _cache) => {
|
|
104
102
|
const _component_RouterView = resolveComponent("RouterView");
|
|
105
103
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
@@ -111,53 +109,47 @@ var App_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCompon
|
|
|
111
109
|
class: "h-screen bg-gray-100 dark:bg-gray-750 dark:text-gray-100",
|
|
112
110
|
style: normalizeStyle({ opacity: mounted.value ? 1 : 0 })
|
|
113
111
|
}, [
|
|
114
|
-
unref(isMobile) ? (openBlock(), createElementBlock("div", _hoisted_3, [
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
stories: stories.value
|
|
123
|
-
}, null, 8, ["tree", "stories"]),
|
|
124
|
-
createElementVNode("main", _hoisted_5, [createVNode(_component_RouterView, { class: "grow" })])
|
|
125
|
-
])) : unref(layoutStore).settings.storyListVisible ? (openBlock(), createBlock(BaseSplitPane_default, {
|
|
126
|
-
key: 1,
|
|
112
|
+
createElementVNode("div", { class: normalizeClass(["h-full flex flex-col", { "divide-y divide-gray-100 dark:divide-gray-800": unref(isMobile) }]) }, [unref(isMobile) ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [createElementVNode("div", _hoisted_3, [createVNode(AppHeader_default, { class: "flex-1" }), createVNode(AppActions_default, {
|
|
113
|
+
class: "flex-none",
|
|
114
|
+
onLayout: _cache[0] || (_cache[0] = ($event) => isLayoutOpen.value = true),
|
|
115
|
+
onSearch: _cache[1] || (_cache[1] = ($event) => isSearchOpen.value = true)
|
|
116
|
+
})]), createVNode(Breadcrumb_default, {
|
|
117
|
+
tree: tree$1.value,
|
|
118
|
+
stories: stories.value
|
|
119
|
+
}, null, 8, ["tree", "stories"])], 64)) : !storyListVisible.value ? (openBlock(), createElementBlock("header", _hoisted_4, [createElementVNode("h1", null, toDisplayString(unref(povesteConfig).theme?.title ?? "Poveste"), 1)])) : createCommentVNode("", true), createVNode(BaseSplitPane_default, {
|
|
127
120
|
"save-id": "main-horiz",
|
|
128
121
|
min: 5,
|
|
129
122
|
max: 50,
|
|
130
123
|
"default-split": 15,
|
|
131
|
-
|
|
124
|
+
"show-first": !unref(isMobile) && storyListVisible.value,
|
|
125
|
+
class: "flex-1 min-h-0"
|
|
132
126
|
}, {
|
|
133
|
-
first: withCtx(() => [createElementVNode("div",
|
|
127
|
+
first: withCtx(() => [createElementVNode("div", _hoisted_5, [createVNode(AppHeader_default, { class: "flex-none" }), createElementVNode("nav", _hoisted_6, [createVNode(StoryList_default, {
|
|
134
128
|
tree: tree$1.value,
|
|
135
129
|
stories: stories.value,
|
|
136
130
|
class: "flex-1"
|
|
137
131
|
}, null, 8, ["tree", "stories"])])])]),
|
|
138
|
-
last: withCtx(() => [createElementVNode("main",
|
|
132
|
+
last: withCtx(() => [createElementVNode("main", _hoisted_7, [!unref(isMobile) ? (openBlock(), createBlock(TopBar_default, {
|
|
133
|
+
key: 0,
|
|
139
134
|
onLayout: _cache[2] || (_cache[2] = ($event) => isLayoutOpen.value = true),
|
|
140
135
|
onSearch: _cache[3] || (_cache[3] = ($event) => isSearchOpen.value = true)
|
|
141
|
-
}), createVNode(_component_RouterView, { class: "flex-1 min-h-0" })])]),
|
|
136
|
+
})) : createCommentVNode("", true), createVNode(_component_RouterView, { class: "flex-1 min-h-0" })])]),
|
|
142
137
|
_: 1
|
|
143
|
-
}
|
|
144
|
-
onLayout: _cache[4] || (_cache[4] = ($event) => isLayoutOpen.value = true),
|
|
145
|
-
onSearch: _cache[5] || (_cache[5] = ($event) => isSearchOpen.value = true)
|
|
146
|
-
}), createVNode(_component_RouterView, { class: "flex-1 min-h-0" })])], 64)),
|
|
138
|
+
}, 8, ["show-first"])], 2),
|
|
147
139
|
!unref(isMobile) ? (openBlock(), createBlock(LayoutModal_default, {
|
|
148
|
-
key:
|
|
140
|
+
key: 0,
|
|
149
141
|
shown: isLayoutOpen.value,
|
|
150
|
-
onClose: _cache[
|
|
142
|
+
onClose: _cache[4] || (_cache[4] = ($event) => isLayoutOpen.value = false)
|
|
151
143
|
}, null, 8, ["shown"])) : createCommentVNode("", true),
|
|
152
144
|
loadSearch.value ? (openBlock(), createBlock(SearchModal_default, {
|
|
153
|
-
key:
|
|
145
|
+
key: 1,
|
|
154
146
|
shown: isSearchOpen.value,
|
|
155
|
-
onClose: _cache[
|
|
147
|
+
onClose: _cache[5] || (_cache[5] = ($event) => isSearchOpen.value = false)
|
|
156
148
|
}, null, 8, ["shown"])) : createCommentVNode("", true),
|
|
157
149
|
_ctx.__POVESTE_DEV__ ? (openBlock(), createBlock(CommandPromptsModal_default, {
|
|
158
|
-
key:
|
|
150
|
+
key: 2,
|
|
159
151
|
shown: unref(commandStore).showPromptsModal,
|
|
160
|
-
onClose: _cache[
|
|
152
|
+
onClose: _cache[6] || (_cache[6] = ($event) => unref(commandStore).showPromptsModal = false)
|
|
161
153
|
}, null, 8, ["shown"])) : createCommentVNode("", true)
|
|
162
154
|
], 4),
|
|
163
155
|
createVNode(Transition, { name: "__poveste-fade" }, {
|
package/dist/bundled/app.css
CHANGED
|
@@ -17,39 +17,33 @@
|
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
@scope (:root) to (.__poveste-render-story:not(.__poveste-render-custom-controls)) {
|
|
20
|
-
.bind-preview-bg[data-v-ed785ad4] {
|
|
21
|
-
background-color: var(--ca113a48);
|
|
22
|
-
color: var(--v0083f4ef);
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
@scope (:root) to (.__poveste-render-story:not(.__poveste-render-custom-controls)) {
|
|
26
20
|
.bind-icon-color[data-v-14aa93ef] {
|
|
27
21
|
color: var(--b5fb8c94);
|
|
28
22
|
}
|
|
29
23
|
}
|
|
30
24
|
@scope (:root) to (.__poveste-render-story:not(.__poveste-render-custom-controls)) {
|
|
31
|
-
.landscape > div > .dragger[data-v-
|
|
25
|
+
.landscape > div > .dragger[data-v-6a9b0727] {
|
|
32
26
|
width: .625rem;
|
|
33
27
|
}
|
|
34
|
-
.portrait > div > .dragger[data-v-
|
|
28
|
+
.portrait > div > .dragger[data-v-6a9b0727] {
|
|
35
29
|
height: .625rem;
|
|
36
30
|
}
|
|
37
|
-
.landscape > div > .dragger.dragger-offset-before[data-v-
|
|
31
|
+
.landscape > div > .dragger.dragger-offset-before[data-v-6a9b0727] {
|
|
38
32
|
right: 0;
|
|
39
33
|
}
|
|
40
|
-
.portrait > div > .dragger.dragger-offset-before[data-v-
|
|
34
|
+
.portrait > div > .dragger.dragger-offset-before[data-v-6a9b0727] {
|
|
41
35
|
bottom: 0;
|
|
42
36
|
}
|
|
43
|
-
.landscape > div > .dragger.dragger-offset-center[data-v-
|
|
37
|
+
.landscape > div > .dragger.dragger-offset-center[data-v-6a9b0727] {
|
|
44
38
|
right: -.3125rem;
|
|
45
39
|
}
|
|
46
|
-
.portrait > div > .dragger.dragger-offset-center[data-v-
|
|
40
|
+
.portrait > div > .dragger.dragger-offset-center[data-v-6a9b0727] {
|
|
47
41
|
bottom: -.3125rem;
|
|
48
42
|
}
|
|
49
|
-
.landscape > div > .dragger.dragger-offset-after[data-v-
|
|
43
|
+
.landscape > div > .dragger.dragger-offset-after[data-v-6a9b0727] {
|
|
50
44
|
right: -.625rem;
|
|
51
45
|
}
|
|
52
|
-
.portrait > div > .dragger.dragger-offset-after[data-v-
|
|
46
|
+
.portrait > div > .dragger.dragger-offset-after[data-v-6a9b0727] {
|
|
53
47
|
bottom: -.625rem;
|
|
54
48
|
}
|
|
55
49
|
}
|
|
@@ -93,7 +87,7 @@
|
|
|
93
87
|
}
|
|
94
88
|
}
|
|
95
89
|
@scope (:root) to (.__poveste-render-story:not(.__poveste-render-custom-controls)) {
|
|
96
|
-
.__poveste-code-placeholder[data-v-
|
|
90
|
+
.__poveste-code-placeholder[data-v-6de9e107] {
|
|
97
91
|
color: inherit;
|
|
98
92
|
font-size: inherit;
|
|
99
93
|
}
|
|
@@ -134,8 +128,8 @@
|
|
|
134
128
|
}
|
|
135
129
|
}
|
|
136
130
|
@scope (:root) to (.__poveste-render-story:not(.__poveste-render-custom-controls)) {
|
|
137
|
-
.bind-icon-color[data-v-
|
|
138
|
-
color: var(--
|
|
131
|
+
.bind-icon-color[data-v-6b31fb1b] {
|
|
132
|
+
color: var(--v0fc28fe3);
|
|
139
133
|
}
|
|
140
134
|
}
|
|
141
135
|
@scope (:root) to (.__poveste-render-story:not(.__poveste-render-custom-controls)) {
|
|
@@ -10,16 +10,19 @@ var _hoisted_1 = [
|
|
|
10
10
|
];
|
|
11
11
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
12
12
|
const _component_RouterLink = resolveComponent("RouterLink");
|
|
13
|
-
return openBlock(), createBlock(_component_RouterLink, mergeProps({
|
|
13
|
+
return openBlock(), createBlock(_component_RouterLink, mergeProps({
|
|
14
|
+
to: _ctx.to,
|
|
15
|
+
class: "poveste-base-list-item-link"
|
|
16
|
+
}, _ctx.$attrs, { custom: "" }), {
|
|
14
17
|
default: withCtx(({ isActive: linkIsActive, href, navigate }) => [createElementVNode("a", {
|
|
15
18
|
href,
|
|
16
19
|
"aria-current": (_ctx.isActive != null ? _ctx.isActive : linkIsActive) ? "page" : void 0,
|
|
17
|
-
class: normalizeClass(["flex items-center gap-2 text-gray-900 dark:text-gray-100", [_ctx.$attrs.class, (_ctx.isActive != null ? _ctx.isActive : linkIsActive) ? "active bg-primary-500 hover:bg-primary-600 text-white dark:text-black" : "hover:bg-primary-100 dark:hover:bg-primary-900"]]),
|
|
20
|
+
class: normalizeClass(["flex items-center gap-2 text-gray-900 dark:text-gray-100", [_ctx.$attrs.class, (_ctx.isActive != null ? _ctx.isActive : linkIsActive) ? "active bg-primary-700 hover:bg-primary-800 dark:bg-primary-500 dark:hover:bg-primary-600 text-white dark:text-black" : "hover:bg-primary-100 dark:hover:bg-primary-900"]]),
|
|
18
21
|
onClick: ($event) => _ctx.handleNavigate($event, navigate),
|
|
19
22
|
onKeyup: [withKeys(($event) => _ctx.handleNavigate($event, navigate), ["enter"]), withKeys(($event) => _ctx.handleNavigate($event, navigate), ["space"])]
|
|
20
23
|
}, [renderSlot(_ctx.$slots, "default", { active: _ctx.isActive != null ? _ctx.isActive : linkIsActive })], 42, _hoisted_1)]),
|
|
21
24
|
_: 3
|
|
22
|
-
}, 16);
|
|
25
|
+
}, 16, ["to"]);
|
|
23
26
|
}
|
|
24
27
|
var BaseListItemLink_default = /*#__PURE__*/ _plugin_vue_export_helper_default(BaseListItemLink_vue_vue_type_script_lang_default, [["render", _sfc_render]]);
|
|
25
28
|
//#endregion
|
|
@@ -2,10 +2,16 @@ import { defineComponent } from "@poveste/vendors/vue";
|
|
|
2
2
|
//#region src/app/components/base/BaseListItemLink.vue?vue&type=script&lang.ts
|
|
3
3
|
var BaseListItemLink_vue_vue_type_script_lang_default = defineComponent({
|
|
4
4
|
inheritAttrs: false,
|
|
5
|
-
props: {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
props: {
|
|
6
|
+
to: {
|
|
7
|
+
type: [String, Object],
|
|
8
|
+
required: true
|
|
9
|
+
},
|
|
10
|
+
isActive: {
|
|
11
|
+
type: Boolean,
|
|
12
|
+
default: void 0
|
|
13
|
+
}
|
|
14
|
+
},
|
|
9
15
|
emits: { navigate: () => true },
|
|
10
16
|
setup(props, { emit }) {
|
|
11
17
|
function handleNavigate(event, navigate) {
|
|
@@ -9,17 +9,20 @@ var _hoisted_2 = {
|
|
|
9
9
|
};
|
|
10
10
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
11
11
|
const _component_router_link = resolveComponent("router-link");
|
|
12
|
-
return openBlock(), createBlock(_component_router_link, mergeProps({
|
|
12
|
+
return openBlock(), createBlock(_component_router_link, mergeProps({
|
|
13
|
+
to: _ctx.to,
|
|
14
|
+
class: "poveste-base-overflow-tab"
|
|
15
|
+
}, _ctx.$attrs, { custom: "" }), {
|
|
13
16
|
default: withCtx(({ isActive, isExactActive, href, navigate }) => [createElementVNode("a", mergeProps(_ctx.$attrs, {
|
|
14
17
|
href,
|
|
15
|
-
class: ["px-4 h-10 min-w-[150px] inline-flex items-center hover:bg-primary-50 dark:hover:bg-primary-900 relative text-gray-900 dark:text-gray-100", { "text-primary-
|
|
18
|
+
class: ["px-4 h-10 min-w-[150px] inline-flex items-center hover:bg-primary-50 dark:hover:bg-primary-900 relative text-gray-900 dark:text-gray-100", { "text-primary-700 dark:text-primary-400": _ctx.matched != null ? _ctx.matched : _ctx.exact && isExactActive || !_ctx.exact && isActive }],
|
|
16
19
|
onClick: navigate
|
|
17
20
|
}), [renderSlot(_ctx.$slots, "default"), createVNode(Transition, { name: "__poveste-scale-y" }, {
|
|
18
21
|
default: withCtx(() => [(_ctx.matched != null ? _ctx.matched : _ctx.exact && isExactActive || !_ctx.exact && isActive) ? (openBlock(), createElementBlock("div", _hoisted_2)) : createCommentVNode("", true)]),
|
|
19
22
|
_: 2
|
|
20
23
|
}, 1024)], 16, _hoisted_1)]),
|
|
21
24
|
_: 3
|
|
22
|
-
}, 16);
|
|
25
|
+
}, 16, ["to"]);
|
|
23
26
|
}
|
|
24
27
|
var BaseOverflowTab_default = /*#__PURE__*/ _plugin_vue_export_helper_default(BaseOverflowTab_vue_vue_type_script_lang_default, [["render", _sfc_render]]);
|
|
25
28
|
//#endregion
|
|
@@ -3,6 +3,10 @@ import { defineComponent } from "@poveste/vendors/vue";
|
|
|
3
3
|
var BaseOverflowTab_vue_vue_type_script_lang_default = defineComponent({
|
|
4
4
|
inheritAttrs: false,
|
|
5
5
|
props: {
|
|
6
|
+
to: {
|
|
7
|
+
type: [String, Object],
|
|
8
|
+
required: true
|
|
9
|
+
},
|
|
6
10
|
exact: {
|
|
7
11
|
type: Boolean,
|
|
8
12
|
default: false
|
|
@@ -2,6 +2,6 @@ import _plugin_vue_export_helper_default from "../../_virtual/_plugin-vue_export
|
|
|
2
2
|
import BaseSplitPane_vue_vue_type_script_setup_true_lang_default from "./BaseSplitPane.vue_vue_type_script_setup_true_lang.js";
|
|
3
3
|
/* empty css */
|
|
4
4
|
//#region src/app/components/base/BaseSplitPane.vue
|
|
5
|
-
var BaseSplitPane_default = /*#__PURE__*/ _plugin_vue_export_helper_default(BaseSplitPane_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-
|
|
5
|
+
var BaseSplitPane_default = /*#__PURE__*/ _plugin_vue_export_helper_default(BaseSplitPane_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-6a9b0727"]]);
|
|
6
6
|
//#endregion
|
|
7
7
|
export { BaseSplitPane_default as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { computed,
|
|
1
|
+
import { computed, createCommentVNode, createElementBlock, defineComponent, normalizeClass, normalizeStyle, onUnmounted, openBlock, ref, renderSlot, watch, withModifiers } from "@poveste/vendors/vue";
|
|
2
2
|
//#region src/app/components/base/BaseSplitPane.vue?vue&type=script&setup=true&lang.ts
|
|
3
3
|
var SAVE_PREFIX = "__poveste";
|
|
4
4
|
var BaseSplitPane_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
|
|
@@ -45,6 +45,32 @@ var BaseSplitPane_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ de
|
|
|
45
45
|
showDivider: {
|
|
46
46
|
type: Boolean,
|
|
47
47
|
default: true
|
|
48
|
+
},
|
|
49
|
+
/**
|
|
50
|
+
* Whether the first pane exists at all.
|
|
51
|
+
*
|
|
52
|
+
* Dropping it here rather than at the call site keeps the other slot at one
|
|
53
|
+
* position in the tree, so a layout that sometimes has nothing to put beside
|
|
54
|
+
* its content does not remount that content when it gains or loses the pane
|
|
55
|
+
* (#328). A `v-if` inside this component leaves a comment placeholder, so the
|
|
56
|
+
* surviving pane keeps its index and Vue patches it rather than rebuilding it;
|
|
57
|
+
* a `v-if` at the call site, choosing between a pane and a bare element, is
|
|
58
|
+
* what does not.
|
|
59
|
+
*/
|
|
60
|
+
showFirst: {
|
|
61
|
+
type: Boolean,
|
|
62
|
+
default: true
|
|
63
|
+
},
|
|
64
|
+
/**
|
|
65
|
+
* The same for the last pane — see `showFirst` (#596).
|
|
66
|
+
*
|
|
67
|
+
* At most one of the two is meant to be false. Both false renders an empty
|
|
68
|
+
* box that still persists a split, which is a caller mistake rather than a
|
|
69
|
+
* mode this component supports.
|
|
70
|
+
*/
|
|
71
|
+
showLast: {
|
|
72
|
+
type: Boolean,
|
|
73
|
+
default: true
|
|
48
74
|
}
|
|
49
75
|
},
|
|
50
76
|
emits: { "update:split": (_value) => true },
|
|
@@ -55,32 +81,38 @@ var BaseSplitPane_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ de
|
|
|
55
81
|
watch(() => props.split, (value) => {
|
|
56
82
|
if (value !== void 0) currentSplit.value = value;
|
|
57
83
|
}, { immediate: true });
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
}
|
|
68
|
-
if (typeof parsedValue === "number") currentSplit.value = parsedValue;
|
|
84
|
+
const storageKey = computed(() => props.saveId ? `${SAVE_PREFIX}-split-pane-${props.saveId}` : null);
|
|
85
|
+
watch(storageKey, (key) => {
|
|
86
|
+
if (!key) return;
|
|
87
|
+
const savedValue = localStorage.getItem(key);
|
|
88
|
+
let parsedValue;
|
|
89
|
+
if (savedValue != null) try {
|
|
90
|
+
parsedValue = JSON.parse(savedValue);
|
|
91
|
+
} catch (e) {
|
|
92
|
+
console.error(e);
|
|
69
93
|
}
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
}
|
|
94
|
+
currentSplit.value = typeof parsedValue === "number" ? parsedValue : props.defaultSplit;
|
|
95
|
+
}, { immediate: true });
|
|
96
|
+
watch(currentSplit, (value) => {
|
|
97
|
+
if (storageKey.value) localStorage.setItem(storageKey.value, JSON.stringify(value));
|
|
98
|
+
if (value !== props.split) emit("update:split", value);
|
|
99
|
+
}, { immediate: true });
|
|
77
100
|
const boundSplit = computed(() => {
|
|
78
101
|
if (currentSplit.value < props.min) return props.min;
|
|
79
102
|
else if (currentSplit.value > props.max) return props.max;
|
|
80
103
|
else return currentSplit.value;
|
|
81
104
|
});
|
|
82
|
-
const
|
|
83
|
-
|
|
105
|
+
const axis = computed(() => props.orientation === "landscape" ? "width" : "height");
|
|
106
|
+
/** Whether there are two panes to divide, drag between, or share the axis. */
|
|
107
|
+
const hasBothPanes = computed(() => props.showFirst && props.showLast);
|
|
108
|
+
const leftStyle = computed(() => {
|
|
109
|
+
if (!hasBothPanes.value) return { [axis.value]: "100%" };
|
|
110
|
+
return { [axis.value]: props.fixed ? `${boundSplit.value}px` : `${boundSplit.value}%` };
|
|
111
|
+
});
|
|
112
|
+
const rightStyle = computed(() => {
|
|
113
|
+
if (!hasBothPanes.value) return { [axis.value]: "100%" };
|
|
114
|
+
return { [axis.value]: props.fixed ? null : `${100 - boundSplit.value}%` };
|
|
115
|
+
});
|
|
84
116
|
const dragging = ref(false);
|
|
85
117
|
let startPosition = 0;
|
|
86
118
|
let startSplit = 0;
|
|
@@ -112,6 +144,9 @@ var BaseSplitPane_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ de
|
|
|
112
144
|
dragging.value = false;
|
|
113
145
|
removeDragListeners();
|
|
114
146
|
}
|
|
147
|
+
watch(hasBothPanes, (both) => {
|
|
148
|
+
if (!both && dragging.value) dragEnd();
|
|
149
|
+
});
|
|
115
150
|
function removeDragListeners() {
|
|
116
151
|
window.removeEventListener("mousemove", dragMove);
|
|
117
152
|
window.removeEventListener("mouseup", dragEnd);
|
|
@@ -129,14 +164,16 @@ var BaseSplitPane_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ de
|
|
|
129
164
|
"cursor-ns-resize": dragging.value && __props.orientation === "portrait",
|
|
130
165
|
[__props.orientation]: true
|
|
131
166
|
}])
|
|
132
|
-
}, [
|
|
167
|
+
}, [__props.showFirst ? (openBlock(), createElementBlock("div", {
|
|
168
|
+
key: 0,
|
|
133
169
|
class: normalizeClass(["relative top-0 left-0 z-20", {
|
|
134
170
|
"pointer-events-none": dragging.value,
|
|
135
|
-
"border-r border-gray-300/30 dark:border-gray-800": __props.orientation === "landscape" && __props.showDivider,
|
|
136
|
-
"flex-none": __props.fixed
|
|
171
|
+
"border-r border-gray-300/30 dark:border-gray-800": __props.orientation === "landscape" && __props.showDivider && hasBothPanes.value,
|
|
172
|
+
"flex-none": __props.fixed && hasBothPanes.value
|
|
137
173
|
}]),
|
|
138
174
|
style: normalizeStyle(leftStyle.value)
|
|
139
|
-
}, [renderSlot(_ctx.$slots, "first", {}, void 0, true),
|
|
175
|
+
}, [renderSlot(_ctx.$slots, "first", {}, void 0, true), hasBothPanes.value ? (openBlock(), createElementBlock("div", {
|
|
176
|
+
key: 0,
|
|
140
177
|
class: normalizeClass(["dragger absolute z-100 hover:bg-primary-500/50 transition-colors duration-150 delay-150", {
|
|
141
178
|
"top-0 bottom-0 cursor-ew-resize": __props.orientation === "landscape",
|
|
142
179
|
"left-0 right-0 cursor-ns-resize": __props.orientation === "portrait",
|
|
@@ -144,14 +181,15 @@ var BaseSplitPane_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ de
|
|
|
144
181
|
"bg-primary-500/25": dragging.value
|
|
145
182
|
}]),
|
|
146
183
|
onMousedown: withModifiers(dragStart, ["prevent"])
|
|
147
|
-
}, null, 34)], 6),
|
|
184
|
+
}, null, 34)) : createCommentVNode("", true)], 6)) : createCommentVNode("", true), __props.showLast ? (openBlock(), createElementBlock("div", {
|
|
185
|
+
key: 1,
|
|
148
186
|
class: normalizeClass(["relative bottom-0 right-0", {
|
|
149
187
|
"pointer-events-none": dragging.value,
|
|
150
|
-
"border-t border-gray-300/30 dark:border-gray-800": __props.orientation === "portrait" && __props.showDivider,
|
|
151
|
-
"flex-1": __props.fixed
|
|
188
|
+
"border-t border-gray-300/30 dark:border-gray-800": __props.orientation === "portrait" && __props.showDivider && hasBothPanes.value,
|
|
189
|
+
"flex-1": __props.fixed && hasBothPanes.value
|
|
152
190
|
}]),
|
|
153
191
|
style: normalizeStyle(rightStyle.value)
|
|
154
|
-
}, [renderSlot(_ctx.$slots, "last", {}, void 0, true)], 6)], 2);
|
|
192
|
+
}, [renderSlot(_ctx.$slots, "last", {}, void 0, true)], 6)) : createCommentVNode("", true)], 2);
|
|
155
193
|
};
|
|
156
194
|
}
|
|
157
195
|
});
|
|
@@ -9,17 +9,20 @@ var _hoisted_2 = {
|
|
|
9
9
|
};
|
|
10
10
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
11
11
|
const _component_router_link = resolveComponent("router-link");
|
|
12
|
-
return openBlock(), createBlock(_component_router_link, mergeProps({
|
|
12
|
+
return openBlock(), createBlock(_component_router_link, mergeProps({
|
|
13
|
+
to: _ctx.to,
|
|
14
|
+
class: "poveste-base-tab"
|
|
15
|
+
}, _ctx.$attrs, { custom: "" }), {
|
|
13
16
|
default: withCtx(({ isActive, isExactActive, href, navigate }) => [createElementVNode("a", mergeProps(_ctx.$attrs, {
|
|
14
17
|
href,
|
|
15
|
-
class: ["px-4 h-full inline-flex items-center hover:bg-primary-50 dark:hover:bg-primary-900 relative text-gray-900 dark:text-gray-100", { "text-primary-
|
|
18
|
+
class: ["px-4 h-full inline-flex items-center hover:bg-primary-50 dark:hover:bg-primary-900 relative text-gray-900 dark:text-gray-100", { "text-primary-700 dark:text-primary-400": _ctx.matched != null ? _ctx.matched : _ctx.exact && isExactActive || !_ctx.exact && isActive }],
|
|
16
19
|
onClick: navigate
|
|
17
20
|
}), [renderSlot(_ctx.$slots, "default"), createVNode(Transition, { name: "__poveste-scale-x" }, {
|
|
18
21
|
default: withCtx(() => [(_ctx.matched != null ? _ctx.matched : _ctx.exact && isExactActive || !_ctx.exact && isActive) ? (openBlock(), createElementBlock("div", _hoisted_2)) : createCommentVNode("", true)]),
|
|
19
22
|
_: 2
|
|
20
23
|
}, 1024)], 16, _hoisted_1)]),
|
|
21
24
|
_: 3
|
|
22
|
-
}, 16);
|
|
25
|
+
}, 16, ["to"]);
|
|
23
26
|
}
|
|
24
27
|
var BaseTab_default = /*#__PURE__*/ _plugin_vue_export_helper_default(BaseTab_vue_vue_type_script_lang_default, [["render", _sfc_render]]);
|
|
25
28
|
//#endregion
|