@k2b/ui 0.37.0 → 0.38.0
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/browser/layout/AppWorkspace.js +252 -238
- package/dist/browser/layout/AppWorkspace.js.map +1 -1
- package/dist/ssr/layout/AppWorkspace.js +58 -50
- package/dist/ssr/layout/AppWorkspace.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/types/layout/AppWorkspace.d.ts +6 -0
- package/package.json +1 -1
|
@@ -57,30 +57,31 @@ var _tmpl$ = /*#__PURE__*/_$template(`<button type=button class=k2b-app-workspac
|
|
|
57
57
|
_tmpl$37 = /*#__PURE__*/_$template(`<span class=k2b-app-workspace__sidebar-item-context-meta>`),
|
|
58
58
|
_tmpl$38 = /*#__PURE__*/_$template(`<span class=k2b-app-workspace__sidebar-item-context><span class="k2b-app-workspace__sidebar-item-context-label k2b-truncate-fade"></span><!$><!/>`),
|
|
59
59
|
_tmpl$39 = /*#__PURE__*/_$template(`<span class="k2b-app-workspace__sidebar-item-description k2b-truncate-fade">`),
|
|
60
|
-
_tmpl$40 = /*#__PURE__*/_$template(`<span class=
|
|
61
|
-
_tmpl$41 = /*#__PURE__*/_$template(`<span class=k2b-app-workspace__sidebar-item-
|
|
62
|
-
_tmpl$42 = /*#__PURE__*/_$template(`<
|
|
63
|
-
_tmpl$43 = /*#__PURE__*/_$template(`<
|
|
64
|
-
_tmpl$44 = /*#__PURE__*/_$template(`<
|
|
65
|
-
_tmpl$45 = /*#__PURE__*/_$template(`<
|
|
66
|
-
_tmpl$46 = /*#__PURE__*/_$template(`<span class=k2b-app-workspace__sidebar-item-
|
|
67
|
-
_tmpl$47 = /*#__PURE__*/_$template(`<span>`),
|
|
68
|
-
_tmpl$48 = /*#__PURE__*/_$template(`<span
|
|
69
|
-
_tmpl$49 = /*#__PURE__*/_$template(`<span class=k2b-app-
|
|
70
|
-
_tmpl$50 = /*#__PURE__*/_$template(`<
|
|
71
|
-
_tmpl$51 = /*#__PURE__*/_$template(`<div class=k2b-app-workspace__nav-tree-
|
|
72
|
-
_tmpl$52 = /*#__PURE__*/_$template(`<div role=
|
|
73
|
-
_tmpl$53 = /*#__PURE__*/_$template(`<
|
|
74
|
-
_tmpl$54 = /*#__PURE__*/_$template(`<
|
|
75
|
-
_tmpl$55 = /*#__PURE__*/_$template(`<
|
|
76
|
-
_tmpl$56 = /*#__PURE__*/_$template(`<
|
|
77
|
-
_tmpl$57 = /*#__PURE__*/_$template(`<
|
|
78
|
-
_tmpl$58 = /*#__PURE__*/_$template(`<div class=k2b-app-workspace__head-
|
|
79
|
-
_tmpl$59 = /*#__PURE__*/_$template(`<
|
|
80
|
-
_tmpl$60 = /*#__PURE__*/_$template(`<
|
|
81
|
-
_tmpl$61 = /*#__PURE__*/_$template(`<div class=k2b-app-workspace__head
|
|
82
|
-
_tmpl$62 = /*#__PURE__*/_$template(`<
|
|
83
|
-
_tmpl$63 = /*#__PURE__*/_$template(`<
|
|
60
|
+
_tmpl$40 = /*#__PURE__*/_$template(`<span class="k2b-app-workspace__sidebar-item-note k2b-truncate-fade">`),
|
|
61
|
+
_tmpl$41 = /*#__PURE__*/_$template(`<span class=k2b-app-workspace__sidebar-item-copy><!$><!/><span class=k2b-app-workspace__sidebar-item-label><span class="k2b-app-workspace__sidebar-item-label-text k2b-truncate-fade-lines"></span></span><!$><!/><!$><!/>`),
|
|
62
|
+
_tmpl$42 = /*#__PURE__*/_$template(`<span class=k2b-app-workspace__sidebar-item-meta>`),
|
|
63
|
+
_tmpl$43 = /*#__PURE__*/_$template(`<i>`),
|
|
64
|
+
_tmpl$44 = /*#__PURE__*/_$template(`<a class=k2b-app-workspace__sidebar-item-action>`),
|
|
65
|
+
_tmpl$45 = /*#__PURE__*/_$template(`<button type=button class=k2b-app-workspace__sidebar-item-action>`),
|
|
66
|
+
_tmpl$46 = /*#__PURE__*/_$template(`<span class=k2b-app-workspace__sidebar-item-icon><i>`),
|
|
67
|
+
_tmpl$47 = /*#__PURE__*/_$template(`<span class=k2b-app-workspace__sidebar-item-copy><span class=k2b-app-workspace__sidebar-item-label><span class="k2b-app-workspace__sidebar-item-label-text k2b-truncate-fade-lines"></span></span><span class="k2b-app-workspace__sidebar-item-description k2b-truncate-fade">`),
|
|
68
|
+
_tmpl$48 = /*#__PURE__*/_$template(`<span>`),
|
|
69
|
+
_tmpl$49 = /*#__PURE__*/_$template(`<span class=k2b-app-workspace__nav-tree-toggle data-k2b-nav-tree-toggle aria-hidden=true><i>`),
|
|
70
|
+
_tmpl$50 = /*#__PURE__*/_$template(`<span class=k2b-app-workspace__sidebar-item-label><span class="k2b-app-workspace__sidebar-item-label-text k2b-truncate-fade-lines">`),
|
|
71
|
+
_tmpl$51 = /*#__PURE__*/_$template(`<div class=k2b-app-workspace__nav-tree-group role=group>`),
|
|
72
|
+
_tmpl$52 = /*#__PURE__*/_$template(`<div class=k2b-app-workspace__nav-tree-node role=treeitem><!$><!/><!$><!/>`),
|
|
73
|
+
_tmpl$53 = /*#__PURE__*/_$template(`<div role=tree>`),
|
|
74
|
+
_tmpl$54 = /*#__PURE__*/_$template(`<section><!$><!/><div class=k2b-app-workspace__sidebar-icon-grid>`),
|
|
75
|
+
_tmpl$55 = /*#__PURE__*/_$template(`<i aria-hidden=true>`),
|
|
76
|
+
_tmpl$56 = /*#__PURE__*/_$template(`<span class=k2b-app-workspace__head-primary-label>`),
|
|
77
|
+
_tmpl$57 = /*#__PURE__*/_$template(`<i class="ti ti-layout-sidebar"aria-hidden=true>`),
|
|
78
|
+
_tmpl$58 = /*#__PURE__*/_$template(`<div class=k2b-app-workspace__head-views>`),
|
|
79
|
+
_tmpl$59 = /*#__PURE__*/_$template(`<div class=k2b-app-workspace__head-filters role=group><!$><!/><!$><!/>`),
|
|
80
|
+
_tmpl$60 = /*#__PURE__*/_$template(`<span class=k2b-app-workspace__head-count><span>`),
|
|
81
|
+
_tmpl$61 = /*#__PURE__*/_$template(`<div class=k2b-app-workspace__head-actions><!$><!/><!$><!/>`),
|
|
82
|
+
_tmpl$62 = /*#__PURE__*/_$template(`<div class=k2b-app-workspace__head><!$><!/><div class=k2b-app-workspace__head-lead><!$><!/><!$><!/><!$><!/><!$><!/><!$><!/></div><!$><!/>`),
|
|
83
|
+
_tmpl$63 = /*#__PURE__*/_$template(`<h1 class=k2b-app-workspace__head-heading data-k2b-page-trail-title>`),
|
|
84
|
+
_tmpl$64 = /*#__PURE__*/_$template(`<div data-k2b-app-workspace>`);
|
|
84
85
|
import { Link } from "@k2b/ssr/nav";
|
|
85
86
|
import { children, createContext, createEffect, createMemo, createRoot, createSignal, createUniqueId, For, getOwner, mergeProps, on, onCleanup, onMount, Show, useContext } from "solid-js";
|
|
86
87
|
import { Dynamic, isServer } from "solid-js/web";
|
|
@@ -1692,9 +1693,9 @@ function AppWorkspaceSidebarItem(props) {
|
|
|
1692
1693
|
get children() {
|
|
1693
1694
|
var _el$72 = _$getNextElement(_tmpl$36);
|
|
1694
1695
|
_$insert(_el$72, () => iconContent() ?? (() => {
|
|
1695
|
-
var _el$
|
|
1696
|
-
_$effect(() => _$className(_el$
|
|
1697
|
-
return _el$
|
|
1696
|
+
var _el$90 = _$getNextElement(_tmpl$43);
|
|
1697
|
+
_$effect(() => _$className(_el$90, iconClass(icon())));
|
|
1698
|
+
return _el$90;
|
|
1698
1699
|
})());
|
|
1699
1700
|
_$effect(() => _$className(_el$72,
|
|
1700
1701
|
// An object row's own glyph sits in a soft chip of the app colour; custom content such as an avatar keeps
|
|
@@ -1703,13 +1704,15 @@ function AppWorkspaceSidebarItem(props) {
|
|
|
1703
1704
|
return _el$72;
|
|
1704
1705
|
}
|
|
1705
1706
|
}), (() => {
|
|
1706
|
-
var _el$73 = _$getNextElement(_tmpl$
|
|
1707
|
-
_el$
|
|
1708
|
-
[_el$
|
|
1709
|
-
_el$79 = _el$
|
|
1707
|
+
var _el$73 = _$getNextElement(_tmpl$41),
|
|
1708
|
+
_el$83 = _el$73.firstChild,
|
|
1709
|
+
[_el$84, _co$12] = _$getNextMarker(_el$83.nextSibling),
|
|
1710
|
+
_el$79 = _el$84.nextSibling,
|
|
1710
1711
|
_el$80 = _el$79.firstChild,
|
|
1711
|
-
_el$
|
|
1712
|
-
[_el$
|
|
1712
|
+
_el$85 = _el$79.nextSibling,
|
|
1713
|
+
[_el$86, _co$13] = _$getNextMarker(_el$85.nextSibling),
|
|
1714
|
+
_el$87 = _el$86.nextSibling,
|
|
1715
|
+
[_el$88, _co$14] = _$getNextMarker(_el$87.nextSibling);
|
|
1713
1716
|
_$insert(_el$73, _$createComponent(Show, {
|
|
1714
1717
|
get when() {
|
|
1715
1718
|
return props.context || props.contextMeta;
|
|
@@ -1732,7 +1735,7 @@ function AppWorkspaceSidebarItem(props) {
|
|
|
1732
1735
|
}), _el$78, _co$11);
|
|
1733
1736
|
return _el$74;
|
|
1734
1737
|
}
|
|
1735
|
-
}), _el$
|
|
1738
|
+
}), _el$84, _co$12);
|
|
1736
1739
|
_$insert(_el$80, () => label());
|
|
1737
1740
|
_$insert(_el$73, _$createComponent(Show, {
|
|
1738
1741
|
get when() {
|
|
@@ -1743,7 +1746,18 @@ function AppWorkspaceSidebarItem(props) {
|
|
|
1743
1746
|
_$insert(_el$81, () => props.description);
|
|
1744
1747
|
return _el$81;
|
|
1745
1748
|
}
|
|
1746
|
-
}), _el$
|
|
1749
|
+
}), _el$86, _co$13);
|
|
1750
|
+
_$insert(_el$73, _$createComponent(Show, {
|
|
1751
|
+
get when() {
|
|
1752
|
+
return props.note;
|
|
1753
|
+
},
|
|
1754
|
+
get children() {
|
|
1755
|
+
var _el$82 = _$getNextElement(_tmpl$40);
|
|
1756
|
+
_$insert(_el$82, () => props.note);
|
|
1757
|
+
_$effect(() => _$setAttribute(_el$82, "data-tone", props.noteTone ?? "neutral"));
|
|
1758
|
+
return _el$82;
|
|
1759
|
+
}
|
|
1760
|
+
}), _el$88, _co$14);
|
|
1747
1761
|
_$effect(_p$ => {
|
|
1748
1762
|
var _v$62 = oneLine() ? "1" : undefined,
|
|
1749
1763
|
_v$63 = !oneLine() && typeof label() === "string" ? label() : undefined;
|
|
@@ -1760,19 +1774,19 @@ function AppWorkspaceSidebarItem(props) {
|
|
|
1760
1774
|
return hasMeta();
|
|
1761
1775
|
},
|
|
1762
1776
|
get children() {
|
|
1763
|
-
var _el$
|
|
1764
|
-
_$insert(_el$
|
|
1777
|
+
var _el$89 = _$getNextElement(_tmpl$42);
|
|
1778
|
+
_$insert(_el$89, meta);
|
|
1765
1779
|
_$effect(_p$ => {
|
|
1766
1780
|
var _v$64 = props.preview?.trigger === "row" ? metaId : undefined,
|
|
1767
1781
|
_v$65 = metaVisibility() === "hover" ? "hover" : undefined;
|
|
1768
|
-
_v$64 !== _p$.e && _$setAttribute(_el$
|
|
1769
|
-
_v$65 !== _p$.t && _$setAttribute(_el$
|
|
1782
|
+
_v$64 !== _p$.e && _$setAttribute(_el$89, "id", _p$.e = _v$64);
|
|
1783
|
+
_v$65 !== _p$.t && _$setAttribute(_el$89, "data-visibility", _p$.t = _v$65);
|
|
1770
1784
|
return _p$;
|
|
1771
1785
|
}, {
|
|
1772
1786
|
e: undefined,
|
|
1773
1787
|
t: undefined
|
|
1774
1788
|
});
|
|
1775
|
-
return _el$
|
|
1789
|
+
return _el$89;
|
|
1776
1790
|
}
|
|
1777
1791
|
})];
|
|
1778
1792
|
const singleAction = () => {
|
|
@@ -1788,9 +1802,9 @@ function AppWorkspaceSidebarItem(props) {
|
|
|
1788
1802
|
props.onActionClick?.(event);
|
|
1789
1803
|
};
|
|
1790
1804
|
const content = () => actionSlot()?.children ?? (() => {
|
|
1791
|
-
var _el$
|
|
1792
|
-
_$effect(() => _$className(_el$
|
|
1793
|
-
return _el$
|
|
1805
|
+
var _el$91 = _$getNextElement(_tmpl$43);
|
|
1806
|
+
_$effect(() => _$className(_el$91, iconClass(actionSlot()?.icon ?? props.actionIcon, "ti-dots")));
|
|
1807
|
+
return _el$91;
|
|
1794
1808
|
})();
|
|
1795
1809
|
return _$createComponent(Show, {
|
|
1796
1810
|
get when() {
|
|
@@ -1803,16 +1817,16 @@ function AppWorkspaceSidebarItem(props) {
|
|
|
1803
1817
|
},
|
|
1804
1818
|
get fallback() {
|
|
1805
1819
|
return (() => {
|
|
1806
|
-
var _el$
|
|
1807
|
-
_el$
|
|
1808
|
-
_$insert(_el$
|
|
1820
|
+
var _el$93 = _$getNextElement(_tmpl$45);
|
|
1821
|
+
_el$93.$$click = select;
|
|
1822
|
+
_$insert(_el$93, content);
|
|
1809
1823
|
_$effect(_p$ => {
|
|
1810
1824
|
var _v$69 = actionSlot()?.disabled,
|
|
1811
1825
|
_v$70 = actionSlot()?.visibility === "hover" ? "hover" : undefined,
|
|
1812
1826
|
_v$71 = label();
|
|
1813
|
-
_v$69 !== _p$.e && _$setProperty(_el$
|
|
1814
|
-
_v$70 !== _p$.t && _$setAttribute(_el$
|
|
1815
|
-
_v$71 !== _p$.a && _$setAttribute(_el$
|
|
1827
|
+
_v$69 !== _p$.e && _$setProperty(_el$93, "disabled", _p$.e = _v$69);
|
|
1828
|
+
_v$70 !== _p$.t && _$setAttribute(_el$93, "data-visibility", _p$.t = _v$70);
|
|
1829
|
+
_v$71 !== _p$.a && _$setAttribute(_el$93, "aria-label", _p$.a = _v$71);
|
|
1816
1830
|
return _p$;
|
|
1817
1831
|
}, {
|
|
1818
1832
|
e: undefined,
|
|
@@ -1820,20 +1834,20 @@ function AppWorkspaceSidebarItem(props) {
|
|
|
1820
1834
|
a: undefined
|
|
1821
1835
|
});
|
|
1822
1836
|
_$runHydrationEvents();
|
|
1823
|
-
return _el$
|
|
1837
|
+
return _el$93;
|
|
1824
1838
|
})();
|
|
1825
1839
|
},
|
|
1826
1840
|
get children() {
|
|
1827
|
-
var _el$
|
|
1828
|
-
_el$
|
|
1829
|
-
_$insert(_el$
|
|
1841
|
+
var _el$92 = _$getNextElement(_tmpl$44);
|
|
1842
|
+
_el$92.$$click = select;
|
|
1843
|
+
_$insert(_el$92, content);
|
|
1830
1844
|
_$effect(_p$ => {
|
|
1831
1845
|
var _v$66 = actionSlot()?.href,
|
|
1832
1846
|
_v$67 = actionSlot()?.visibility === "hover" ? "hover" : undefined,
|
|
1833
1847
|
_v$68 = label();
|
|
1834
|
-
_v$66 !== _p$.e && _$setAttribute(_el$
|
|
1835
|
-
_v$67 !== _p$.t && _$setAttribute(_el$
|
|
1836
|
-
_v$68 !== _p$.a && _$setAttribute(_el$
|
|
1848
|
+
_v$66 !== _p$.e && _$setAttribute(_el$92, "href", _p$.e = _v$66);
|
|
1849
|
+
_v$67 !== _p$.t && _$setAttribute(_el$92, "data-visibility", _p$.t = _v$67);
|
|
1850
|
+
_v$68 !== _p$.a && _$setAttribute(_el$92, "aria-label", _p$.a = _v$68);
|
|
1837
1851
|
return _p$;
|
|
1838
1852
|
}, {
|
|
1839
1853
|
e: undefined,
|
|
@@ -1841,7 +1855,7 @@ function AppWorkspaceSidebarItem(props) {
|
|
|
1841
1855
|
a: undefined
|
|
1842
1856
|
});
|
|
1843
1857
|
_$runHydrationEvents();
|
|
1844
|
-
return _el$
|
|
1858
|
+
return _el$92;
|
|
1845
1859
|
}
|
|
1846
1860
|
});
|
|
1847
1861
|
}
|
|
@@ -2145,16 +2159,16 @@ const AppWorkspaceNavTree = props => {
|
|
|
2145
2159
|
return rowIcon();
|
|
2146
2160
|
},
|
|
2147
2161
|
get children() {
|
|
2148
|
-
var _el$
|
|
2149
|
-
_el$
|
|
2150
|
-
_$spread(_el$
|
|
2162
|
+
var _el$94 = _$getNextElement(_tmpl$46),
|
|
2163
|
+
_el$95 = _el$94.firstChild;
|
|
2164
|
+
_$spread(_el$94, _$mergeProps({
|
|
2151
2165
|
get ["data-k2b-nav-tree-toggle"]() {
|
|
2152
2166
|
return usesIconDisclosure() ? "" : undefined;
|
|
2153
2167
|
}
|
|
2154
2168
|
}, () => iconAccessibility(item.iconLabel)), false, true);
|
|
2155
|
-
_$effect(() => _$className(_el$
|
|
2169
|
+
_$effect(() => _$className(_el$95, iconClass(rowIcon())));
|
|
2156
2170
|
_$runHydrationEvents();
|
|
2157
|
-
return _el$
|
|
2171
|
+
return _el$94;
|
|
2158
2172
|
}
|
|
2159
2173
|
}), _$createComponent(Show, {
|
|
2160
2174
|
get when() {
|
|
@@ -2162,51 +2176,51 @@ const AppWorkspaceNavTree = props => {
|
|
|
2162
2176
|
},
|
|
2163
2177
|
get fallback() {
|
|
2164
2178
|
return (() => {
|
|
2165
|
-
var _el$
|
|
2166
|
-
_el$
|
|
2167
|
-
_$insert(_el$
|
|
2168
|
-
_$effect(() => _$setAttribute(_el$
|
|
2169
|
-
return _el$
|
|
2179
|
+
var _el$103 = _$getNextElement(_tmpl$50),
|
|
2180
|
+
_el$104 = _el$103.firstChild;
|
|
2181
|
+
_$insert(_el$104, () => item.label);
|
|
2182
|
+
_$effect(() => _$setAttribute(_el$103, "data-label", typeof item.label === "string" ? item.label : undefined));
|
|
2183
|
+
return _el$103;
|
|
2170
2184
|
})();
|
|
2171
2185
|
},
|
|
2172
2186
|
get children() {
|
|
2173
|
-
var _el$
|
|
2174
|
-
_el$
|
|
2175
|
-
_el$
|
|
2176
|
-
_el$
|
|
2177
|
-
_$insert(_el$
|
|
2178
|
-
_$insert(_el$
|
|
2179
|
-
_$effect(() => _$setAttribute(_el$
|
|
2180
|
-
return _el$
|
|
2187
|
+
var _el$96 = _$getNextElement(_tmpl$47),
|
|
2188
|
+
_el$97 = _el$96.firstChild,
|
|
2189
|
+
_el$98 = _el$97.firstChild,
|
|
2190
|
+
_el$99 = _el$97.nextSibling;
|
|
2191
|
+
_$insert(_el$98, () => item.label);
|
|
2192
|
+
_$insert(_el$99, () => item.description);
|
|
2193
|
+
_$effect(() => _$setAttribute(_el$97, "data-label", typeof item.label === "string" ? item.label : undefined));
|
|
2194
|
+
return _el$96;
|
|
2181
2195
|
}
|
|
2182
2196
|
}), _$createComponent(Show, {
|
|
2183
2197
|
get when() {
|
|
2184
2198
|
return item.meta !== undefined;
|
|
2185
2199
|
},
|
|
2186
2200
|
get children() {
|
|
2187
|
-
var _el$
|
|
2188
|
-
_$insert(_el$
|
|
2201
|
+
var _el$100 = _$getNextElement(_tmpl$48);
|
|
2202
|
+
_$insert(_el$100, () => item.meta);
|
|
2189
2203
|
_$effect(_p$ => {
|
|
2190
2204
|
var _v$72 = `k2b-app-workspace__sidebar-item-meta ${hasChildren() ? "" : "k2b-app-workspace__nav-tree-leaf-meta"}`,
|
|
2191
2205
|
_v$73 = item.metaVisibility === "hover" ? "hover" : undefined;
|
|
2192
|
-
_v$72 !== _p$.e && _$className(_el$
|
|
2193
|
-
_v$73 !== _p$.t && _$setAttribute(_el$
|
|
2206
|
+
_v$72 !== _p$.e && _$className(_el$100, _p$.e = _v$72);
|
|
2207
|
+
_v$73 !== _p$.t && _$setAttribute(_el$100, "data-visibility", _p$.t = _v$73);
|
|
2194
2208
|
return _p$;
|
|
2195
2209
|
}, {
|
|
2196
2210
|
e: undefined,
|
|
2197
2211
|
t: undefined
|
|
2198
2212
|
});
|
|
2199
|
-
return _el$
|
|
2213
|
+
return _el$100;
|
|
2200
2214
|
}
|
|
2201
2215
|
}), _$createComponent(Show, {
|
|
2202
2216
|
get when() {
|
|
2203
2217
|
return _$memo(() => !!hasChildren())() && !usesIconDisclosure();
|
|
2204
2218
|
},
|
|
2205
2219
|
get children() {
|
|
2206
|
-
var _el$
|
|
2207
|
-
_el$
|
|
2208
|
-
_$effect(() => _$className(_el$
|
|
2209
|
-
return _el$
|
|
2220
|
+
var _el$101 = _$getNextElement(_tmpl$49),
|
|
2221
|
+
_el$102 = _el$101.firstChild;
|
|
2222
|
+
_$effect(() => _$className(_el$102, `ti ${isExpanded(item.id) ? "ti-chevron-down" : "ti-chevron-right"}`));
|
|
2223
|
+
return _el$101;
|
|
2210
2224
|
}
|
|
2211
2225
|
})];
|
|
2212
2226
|
const row = () => _$createComponent(AppWorkspaceSidebarRow, {
|
|
@@ -2318,33 +2332,33 @@ const AppWorkspaceNavTree = props => {
|
|
|
2318
2332
|
requestMove(target.move, false);
|
|
2319
2333
|
};
|
|
2320
2334
|
return (() => {
|
|
2321
|
-
var _el$
|
|
2322
|
-
_el$
|
|
2323
|
-
[_el$
|
|
2324
|
-
_el$
|
|
2325
|
-
[_el$
|
|
2326
|
-
_el$
|
|
2327
|
-
_$addEventListener(_el$
|
|
2328
|
-
_el$
|
|
2329
|
-
_$addEventListener(_el$
|
|
2330
|
-
_el$
|
|
2331
|
-
_el$
|
|
2332
|
-
_el$
|
|
2335
|
+
var _el$105 = _$getNextElement(_tmpl$52),
|
|
2336
|
+
_el$107 = _el$105.firstChild,
|
|
2337
|
+
[_el$108, _co$15] = _$getNextMarker(_el$107.nextSibling),
|
|
2338
|
+
_el$109 = _el$108.nextSibling,
|
|
2339
|
+
[_el$110, _co$16] = _$getNextMarker(_el$109.nextSibling);
|
|
2340
|
+
_el$105.addEventListener("drop", onDrop);
|
|
2341
|
+
_$addEventListener(_el$105, "dragleave", item.onDragLeave);
|
|
2342
|
+
_el$105.addEventListener("dragover", onDragOver);
|
|
2343
|
+
_$addEventListener(_el$105, "dragenter", item.onDragEnter);
|
|
2344
|
+
_el$105.addEventListener("dragstart", onDragStart);
|
|
2345
|
+
_el$105.$$keydown = onKeyDown;
|
|
2346
|
+
_el$105.addEventListener("focus", () => setFocusedId(item.id));
|
|
2333
2347
|
var _ref$6 = treeItem;
|
|
2334
|
-
typeof _ref$6 === "function" ? _$use(_ref$6, _el$
|
|
2335
|
-
_$setAttribute(_el$
|
|
2336
|
-
_$setAttribute(_el$
|
|
2337
|
-
_$insert(_el$
|
|
2338
|
-
_$insert(_el$
|
|
2348
|
+
typeof _ref$6 === "function" ? _$use(_ref$6, _el$105) : treeItem = _el$105;
|
|
2349
|
+
_$setAttribute(_el$105, "aria-level", depth + 1);
|
|
2350
|
+
_$setAttribute(_el$105, "data-k2b-nav-tree-parent-id", parentId);
|
|
2351
|
+
_$insert(_el$105, row, _el$108, _co$15);
|
|
2352
|
+
_$insert(_el$105, _$createComponent(Show, {
|
|
2339
2353
|
get when() {
|
|
2340
2354
|
return _$memo(() => !!hasChildren())() && isExpanded(item.id);
|
|
2341
2355
|
},
|
|
2342
2356
|
get children() {
|
|
2343
|
-
var _el$
|
|
2344
|
-
_$insert(_el$
|
|
2345
|
-
return _el$
|
|
2357
|
+
var _el$106 = _$getNextElement(_tmpl$51);
|
|
2358
|
+
_$insert(_el$106, () => renderItems(nested, depth + 1, item.id));
|
|
2359
|
+
return _el$106;
|
|
2346
2360
|
}
|
|
2347
|
-
}), _el$
|
|
2361
|
+
}), _el$110, _co$16);
|
|
2348
2362
|
_$effect(_p$ => {
|
|
2349
2363
|
var _v$74 = siblings().length,
|
|
2350
2364
|
_v$75 = place() + 1,
|
|
@@ -2357,17 +2371,17 @@ const AppWorkspaceNavTree = props => {
|
|
|
2357
2371
|
_v$82 = dragged()?.id === item.id ? "" : undefined,
|
|
2358
2372
|
_v$83 = dropTarget()?.id === item.id ? dropTarget().side : undefined,
|
|
2359
2373
|
_v$84 = String(props.indented === false ? 0 : depth);
|
|
2360
|
-
_v$74 !== _p$.e && _$setAttribute(_el$
|
|
2361
|
-
_v$75 !== _p$.t && _$setAttribute(_el$
|
|
2362
|
-
_v$76 !== _p$.a && _$setAttribute(_el$
|
|
2363
|
-
_v$77 !== _p$.o && _$setAttribute(_el$
|
|
2364
|
-
_v$78 !== _p$.i && _$setAttribute(_el$
|
|
2365
|
-
_v$79 !== _p$.n && _$setAttribute(_el$
|
|
2366
|
-
_v$80 !== _p$.s && _$setAttribute(_el$
|
|
2367
|
-
_v$81 !== _p$.h && _$setAttribute(_el$
|
|
2368
|
-
_v$82 !== _p$.r && _$setAttribute(_el$
|
|
2369
|
-
_v$83 !== _p$.d && _$setAttribute(_el$
|
|
2370
|
-
_v$84 !== _p$.l && _$setStyleProperty(_el$
|
|
2374
|
+
_v$74 !== _p$.e && _$setAttribute(_el$105, "aria-setsize", _p$.e = _v$74);
|
|
2375
|
+
_v$75 !== _p$.t && _$setAttribute(_el$105, "aria-posinset", _p$.t = _v$75);
|
|
2376
|
+
_v$76 !== _p$.a && _$setAttribute(_el$105, "aria-selected", _p$.a = _v$76);
|
|
2377
|
+
_v$77 !== _p$.o && _$setAttribute(_el$105, "aria-expanded", _p$.o = _v$77);
|
|
2378
|
+
_v$78 !== _p$.i && _$setAttribute(_el$105, "aria-disabled", _p$.i = _v$78);
|
|
2379
|
+
_v$79 !== _p$.n && _$setAttribute(_el$105, "tabindex", _p$.n = _v$79);
|
|
2380
|
+
_v$80 !== _p$.s && _$setAttribute(_el$105, "draggable", _p$.s = _v$80);
|
|
2381
|
+
_v$81 !== _p$.h && _$setAttribute(_el$105, "data-k2b-nav-tree-id", _p$.h = _v$81);
|
|
2382
|
+
_v$82 !== _p$.r && _$setAttribute(_el$105, "data-k2b-nav-tree-dragging", _p$.r = _v$82);
|
|
2383
|
+
_v$83 !== _p$.d && _$setAttribute(_el$105, "data-k2b-nav-tree-drop", _p$.d = _v$83);
|
|
2384
|
+
_v$84 !== _p$.l && _$setStyleProperty(_el$105, "--k2b-nav-tree-depth", _p$.l = _v$84);
|
|
2371
2385
|
return _p$;
|
|
2372
2386
|
}, {
|
|
2373
2387
|
e: undefined,
|
|
@@ -2383,7 +2397,7 @@ const AppWorkspaceNavTree = props => {
|
|
|
2383
2397
|
l: undefined
|
|
2384
2398
|
});
|
|
2385
2399
|
_$runHydrationEvents();
|
|
2386
|
-
return _el$
|
|
2400
|
+
return _el$105;
|
|
2387
2401
|
})();
|
|
2388
2402
|
}
|
|
2389
2403
|
});
|
|
@@ -2408,63 +2422,63 @@ const AppWorkspaceNavTree = props => {
|
|
|
2408
2422
|
});
|
|
2409
2423
|
});
|
|
2410
2424
|
return (() => {
|
|
2411
|
-
var _el$
|
|
2412
|
-
_el$
|
|
2413
|
-
_el$
|
|
2425
|
+
var _el$111 = _$getNextElement(_tmpl$53);
|
|
2426
|
+
_el$111.addEventListener("dragend", endDrag);
|
|
2427
|
+
_el$111.addEventListener("dragleave", event => {
|
|
2414
2428
|
if (!root?.contains(event.relatedTarget)) setDropTarget(null);
|
|
2415
2429
|
});
|
|
2416
|
-
_el$
|
|
2430
|
+
_el$111.addEventListener("dragover", event => {
|
|
2417
2431
|
// Runs after the rows: a position no row claimed shows no gap.
|
|
2418
2432
|
if (claimedDragOver !== event) setDropTarget(null);
|
|
2419
2433
|
});
|
|
2420
2434
|
var _ref$7 = root;
|
|
2421
|
-
typeof _ref$7 === "function" ? _$use(_ref$7, _el$
|
|
2422
|
-
_$insert(_el$
|
|
2435
|
+
typeof _ref$7 === "function" ? _$use(_ref$7, _el$111) : root = _el$111;
|
|
2436
|
+
_$insert(_el$111, () => renderItems(roots, 0));
|
|
2423
2437
|
_$effect(_p$ => {
|
|
2424
2438
|
var _v$85 = `k2b-app-workspace__nav-tree ${props.class ?? ""}`,
|
|
2425
2439
|
_v$86 = props.ariaLabel;
|
|
2426
|
-
_v$85 !== _p$.e && _$className(_el$
|
|
2427
|
-
_v$86 !== _p$.t && _$setAttribute(_el$
|
|
2440
|
+
_v$85 !== _p$.e && _$className(_el$111, _p$.e = _v$85);
|
|
2441
|
+
_v$86 !== _p$.t && _$setAttribute(_el$111, "aria-label", _p$.t = _v$86);
|
|
2428
2442
|
return _p$;
|
|
2429
2443
|
}, {
|
|
2430
2444
|
e: undefined,
|
|
2431
2445
|
t: undefined
|
|
2432
2446
|
});
|
|
2433
|
-
return _el$
|
|
2447
|
+
return _el$111;
|
|
2434
2448
|
})();
|
|
2435
2449
|
};
|
|
2436
2450
|
AppWorkspaceNavTree.Item = AppWorkspaceNavTreeItem;
|
|
2437
2451
|
const AppWorkspaceSidebarIconGrid = props => (() => {
|
|
2438
|
-
var _el$
|
|
2439
|
-
_el$
|
|
2440
|
-
[_el$
|
|
2441
|
-
_el$
|
|
2442
|
-
_$spread(_el$
|
|
2452
|
+
var _el$112 = _$getNextElement(_tmpl$54),
|
|
2453
|
+
_el$114 = _el$112.firstChild,
|
|
2454
|
+
[_el$115, _co$17] = _$getNextMarker(_el$114.nextSibling),
|
|
2455
|
+
_el$113 = _el$115.nextSibling;
|
|
2456
|
+
_$spread(_el$112, _$mergeProps({
|
|
2443
2457
|
get ["class"]() {
|
|
2444
2458
|
return `k2b-app-workspace__sidebar-icon-grid-wrap ${props.class ?? ""}`;
|
|
2445
2459
|
}
|
|
2446
2460
|
}, () => modeAttrs(props.sidebarMode)), false, true);
|
|
2447
|
-
_$insert(_el$
|
|
2461
|
+
_$insert(_el$112, _$createComponent(Show, {
|
|
2448
2462
|
get when() {
|
|
2449
2463
|
return props.title;
|
|
2450
2464
|
},
|
|
2451
2465
|
children: title => (() => {
|
|
2452
|
-
var _el$
|
|
2453
|
-
_$insert(_el$
|
|
2454
|
-
return _el$
|
|
2466
|
+
var _el$116 = _$getNextElement(_tmpl$24);
|
|
2467
|
+
_$insert(_el$116, title);
|
|
2468
|
+
return _el$116;
|
|
2455
2469
|
})()
|
|
2456
|
-
}), _el$
|
|
2457
|
-
_$insert(_el$
|
|
2458
|
-
_$effect(() => _$setAttribute(_el$
|
|
2470
|
+
}), _el$115, _co$17);
|
|
2471
|
+
_$insert(_el$113, () => props.children);
|
|
2472
|
+
_$effect(() => _$setAttribute(_el$113, "data-columns", props.columns ?? 2));
|
|
2459
2473
|
_$runHydrationEvents();
|
|
2460
|
-
return _el$
|
|
2474
|
+
return _el$112;
|
|
2461
2475
|
})();
|
|
2462
2476
|
const AppWorkspaceSidebarIconAction = props => {
|
|
2463
2477
|
let target;
|
|
2464
2478
|
const content = (() => {
|
|
2465
|
-
var _el$
|
|
2466
|
-
_$effect(() => _$className(_el$
|
|
2467
|
-
return _el$
|
|
2479
|
+
var _el$117 = _$getNextElement(_tmpl$55);
|
|
2480
|
+
_$effect(() => _$className(_el$117, iconClass(props.icon)));
|
|
2481
|
+
return _el$117;
|
|
2468
2482
|
})();
|
|
2469
2483
|
const attrs = () => ({
|
|
2470
2484
|
ref: element => target = element,
|
|
@@ -2489,8 +2503,8 @@ const AppWorkspaceSidebarIconAction = props => {
|
|
|
2489
2503
|
delay: 0
|
|
2490
2504
|
});
|
|
2491
2505
|
if (!props.href || props.disabled) return [(() => {
|
|
2492
|
-
var _el$
|
|
2493
|
-
_$spread(_el$
|
|
2506
|
+
var _el$118 = _$getNextElement(_tmpl$33);
|
|
2507
|
+
_$spread(_el$118, _$mergeProps(attrs, {
|
|
2494
2508
|
get disabled() {
|
|
2495
2509
|
return props.disabled;
|
|
2496
2510
|
},
|
|
@@ -2498,13 +2512,13 @@ const AppWorkspaceSidebarIconAction = props => {
|
|
|
2498
2512
|
return props.onClick;
|
|
2499
2513
|
}
|
|
2500
2514
|
}), false, true);
|
|
2501
|
-
_$insert(_el$
|
|
2515
|
+
_$insert(_el$118, content);
|
|
2502
2516
|
_$runHydrationEvents();
|
|
2503
|
-
return _el$
|
|
2517
|
+
return _el$118;
|
|
2504
2518
|
})(), hint];
|
|
2505
2519
|
if (props.navigation !== "enhanced" || !props.onNavigate) return [(() => {
|
|
2506
|
-
var _el$
|
|
2507
|
-
_$spread(_el$
|
|
2520
|
+
var _el$119 = _$getNextElement(_tmpl$34);
|
|
2521
|
+
_$spread(_el$119, _$mergeProps({
|
|
2508
2522
|
get href() {
|
|
2509
2523
|
return props.href;
|
|
2510
2524
|
}
|
|
@@ -2513,9 +2527,9 @@ const AppWorkspaceSidebarIconAction = props => {
|
|
|
2513
2527
|
return props.onClick;
|
|
2514
2528
|
}
|
|
2515
2529
|
}), false, true);
|
|
2516
|
-
_$insert(_el$
|
|
2530
|
+
_$insert(_el$119, content);
|
|
2517
2531
|
_$runHydrationEvents();
|
|
2518
|
-
return _el$
|
|
2532
|
+
return _el$119;
|
|
2519
2533
|
})(), hint];
|
|
2520
2534
|
return [_$createComponent(Link, _$mergeProps({
|
|
2521
2535
|
get href() {
|
|
@@ -2573,42 +2587,42 @@ function AppWorkspaceHead(props) {
|
|
|
2573
2587
|
};
|
|
2574
2588
|
const resetContent = () => filters().reset;
|
|
2575
2589
|
const primaryContent = () => [(() => {
|
|
2576
|
-
var _el$
|
|
2577
|
-
_$effect(() => _$className(_el$
|
|
2578
|
-
return _el$
|
|
2590
|
+
var _el$120 = _$getNextElement(_tmpl$55);
|
|
2591
|
+
_$effect(() => _$className(_el$120, props.head?.primary?.icon));
|
|
2592
|
+
return _el$120;
|
|
2579
2593
|
})(), (() => {
|
|
2580
|
-
var _el$
|
|
2581
|
-
_$insert(_el$
|
|
2582
|
-
return _el$
|
|
2594
|
+
var _el$121 = _$getNextElement(_tmpl$56);
|
|
2595
|
+
_$insert(_el$121, () => props.head?.primary?.label);
|
|
2596
|
+
return _el$121;
|
|
2583
2597
|
})()];
|
|
2584
2598
|
return (() => {
|
|
2585
|
-
var _el$
|
|
2586
|
-
_el$
|
|
2587
|
-
[_el$
|
|
2588
|
-
_el$
|
|
2589
|
-
_el$
|
|
2590
|
-
[_el$
|
|
2591
|
-
_el$
|
|
2592
|
-
[_el$
|
|
2593
|
-
_el$
|
|
2594
|
-
[_el$
|
|
2595
|
-
_el$
|
|
2596
|
-
[_el$
|
|
2597
|
-
_el$
|
|
2598
|
-
[_el$
|
|
2599
|
-
_el$
|
|
2600
|
-
[_el$
|
|
2601
|
-
_$insert(_el$
|
|
2599
|
+
var _el$122 = _$getNextElement(_tmpl$62),
|
|
2600
|
+
_el$148 = _el$122.firstChild,
|
|
2601
|
+
[_el$149, _co$27] = _$getNextMarker(_el$148.nextSibling),
|
|
2602
|
+
_el$123 = _el$149.nextSibling,
|
|
2603
|
+
_el$133 = _el$123.firstChild,
|
|
2604
|
+
[_el$134, _co$20] = _$getNextMarker(_el$133.nextSibling),
|
|
2605
|
+
_el$135 = _el$134.nextSibling,
|
|
2606
|
+
[_el$136, _co$21] = _$getNextMarker(_el$135.nextSibling),
|
|
2607
|
+
_el$137 = _el$136.nextSibling,
|
|
2608
|
+
[_el$138, _co$22] = _$getNextMarker(_el$137.nextSibling),
|
|
2609
|
+
_el$139 = _el$138.nextSibling,
|
|
2610
|
+
[_el$140, _co$23] = _$getNextMarker(_el$139.nextSibling),
|
|
2611
|
+
_el$141 = _el$140.nextSibling,
|
|
2612
|
+
[_el$142, _co$24] = _$getNextMarker(_el$141.nextSibling),
|
|
2613
|
+
_el$150 = _el$123.nextSibling,
|
|
2614
|
+
[_el$151, _co$28] = _$getNextMarker(_el$150.nextSibling);
|
|
2615
|
+
_$insert(_el$122, _$createComponent(Show, {
|
|
2602
2616
|
get when() {
|
|
2603
2617
|
return mobilePane();
|
|
2604
2618
|
},
|
|
2605
2619
|
children: pane => (() => {
|
|
2606
|
-
var _el$
|
|
2607
|
-
_$effect(() => _$setProperty(_el$
|
|
2608
|
-
return _el$
|
|
2620
|
+
var _el$152 = _$getNextElement(_tmpl$7);
|
|
2621
|
+
_$effect(() => _$setProperty(_el$152, "innerHTML", mobilePaneRule(pane())));
|
|
2622
|
+
return _el$152;
|
|
2609
2623
|
})()
|
|
2610
|
-
}), _el$
|
|
2611
|
-
_$insert(_el$
|
|
2624
|
+
}), _el$149, _co$27);
|
|
2625
|
+
_$insert(_el$123, _$createComponent(IconButton, {
|
|
2612
2626
|
"class": "k2b-app-workspace__head-toggle",
|
|
2613
2627
|
get label() {
|
|
2614
2628
|
return messages().showNavigation;
|
|
@@ -2619,10 +2633,10 @@ function AppWorkspaceHead(props) {
|
|
|
2619
2633
|
"aria-expanded": "false",
|
|
2620
2634
|
"data-app-workspace-sidebar-toggle": "",
|
|
2621
2635
|
get children() {
|
|
2622
|
-
return _$getNextElement(_tmpl$
|
|
2636
|
+
return _$getNextElement(_tmpl$57);
|
|
2623
2637
|
}
|
|
2624
|
-
}), _el$
|
|
2625
|
-
_$insert(_el$
|
|
2638
|
+
}), _el$134, _co$20);
|
|
2639
|
+
_$insert(_el$123, _$createComponent(Show, {
|
|
2626
2640
|
get when() {
|
|
2627
2641
|
return trail();
|
|
2628
2642
|
},
|
|
@@ -2633,34 +2647,34 @@ function AppWorkspaceHead(props) {
|
|
|
2633
2647
|
as: "p",
|
|
2634
2648
|
fallback: true
|
|
2635
2649
|
}), (() => {
|
|
2636
|
-
var _el$
|
|
2637
|
-
_$setAttribute(_el$
|
|
2638
|
-
_$insert(_el$
|
|
2639
|
-
return _el$
|
|
2650
|
+
var _el$153 = _$getNextElement(_tmpl$63);
|
|
2651
|
+
_$setAttribute(_el$153, "data-k2b-server", isServer ? "" : undefined);
|
|
2652
|
+
_$insert(_el$153, () => current().title);
|
|
2653
|
+
return _el$153;
|
|
2640
2654
|
})()]
|
|
2641
|
-
}), _el$
|
|
2642
|
-
_$insert(_el$
|
|
2655
|
+
}), _el$136, _co$21);
|
|
2656
|
+
_$insert(_el$123, _$createComponent(Show, {
|
|
2643
2657
|
get when() {
|
|
2644
2658
|
return resolvedViews.toArray().some(Boolean);
|
|
2645
2659
|
},
|
|
2646
2660
|
get children() {
|
|
2647
|
-
var _el$
|
|
2648
|
-
_$insert(_el$
|
|
2649
|
-
return _el$
|
|
2661
|
+
var _el$125 = _$getNextElement(_tmpl$58);
|
|
2662
|
+
_$insert(_el$125, resolvedViews);
|
|
2663
|
+
return _el$125;
|
|
2650
2664
|
}
|
|
2651
|
-
}), _el$
|
|
2652
|
-
_$insert(_el$
|
|
2665
|
+
}), _el$138, _co$22);
|
|
2666
|
+
_$insert(_el$123, _$createComponent(Show, {
|
|
2653
2667
|
get when() {
|
|
2654
2668
|
return resolvedFilters.toArray().some(Boolean) || props.head?.filtered;
|
|
2655
2669
|
},
|
|
2656
2670
|
get children() {
|
|
2657
|
-
var _el$
|
|
2658
|
-
_el$
|
|
2659
|
-
[_el$
|
|
2660
|
-
_el$
|
|
2661
|
-
[_el$
|
|
2662
|
-
_$insert(_el$
|
|
2663
|
-
_$insert(_el$
|
|
2671
|
+
var _el$126 = _$getNextElement(_tmpl$59),
|
|
2672
|
+
_el$127 = _el$126.firstChild,
|
|
2673
|
+
[_el$128, _co$18] = _$getNextMarker(_el$127.nextSibling),
|
|
2674
|
+
_el$129 = _el$128.nextSibling,
|
|
2675
|
+
[_el$130, _co$19] = _$getNextMarker(_el$129.nextSibling);
|
|
2676
|
+
_$insert(_el$126, resolvedFilters, _el$128, _co$18);
|
|
2677
|
+
_$insert(_el$126, _$createComponent(Show, {
|
|
2664
2678
|
get when() {
|
|
2665
2679
|
return props.head?.filtered;
|
|
2666
2680
|
},
|
|
@@ -2700,34 +2714,34 @@ function AppWorkspaceHead(props) {
|
|
|
2700
2714
|
})
|
|
2701
2715
|
});
|
|
2702
2716
|
}
|
|
2703
|
-
}), _el$
|
|
2704
|
-
_$effect(() => _$setAttribute(_el$
|
|
2705
|
-
return _el$
|
|
2717
|
+
}), _el$130, _co$19);
|
|
2718
|
+
_$effect(() => _$setAttribute(_el$126, "aria-label", filters().filters));
|
|
2719
|
+
return _el$126;
|
|
2706
2720
|
}
|
|
2707
|
-
}), _el$
|
|
2708
|
-
_$insert(_el$
|
|
2721
|
+
}), _el$140, _co$23);
|
|
2722
|
+
_$insert(_el$123, _$createComponent(Show, {
|
|
2709
2723
|
get when() {
|
|
2710
2724
|
return _$memo(() => !!props.head?.filtered)() && resolvedCount.toArray().some(value => value !== undefined && value !== null && value !== false);
|
|
2711
2725
|
},
|
|
2712
2726
|
get children() {
|
|
2713
|
-
var _el$
|
|
2714
|
-
_el$
|
|
2715
|
-
_$insert(_el$
|
|
2716
|
-
return _el$
|
|
2727
|
+
var _el$131 = _$getNextElement(_tmpl$60),
|
|
2728
|
+
_el$132 = _el$131.firstChild;
|
|
2729
|
+
_$insert(_el$132, resolvedCount);
|
|
2730
|
+
return _el$131;
|
|
2717
2731
|
}
|
|
2718
|
-
}), _el$
|
|
2719
|
-
_$insert(_el$
|
|
2732
|
+
}), _el$142, _co$24);
|
|
2733
|
+
_$insert(_el$122, _$createComponent(Show, {
|
|
2720
2734
|
get when() {
|
|
2721
2735
|
return resolvedActions.toArray().some(Boolean) || props.head?.primary;
|
|
2722
2736
|
},
|
|
2723
2737
|
get children() {
|
|
2724
|
-
var _el$
|
|
2725
|
-
_el$
|
|
2726
|
-
[_el$
|
|
2727
|
-
_el$
|
|
2728
|
-
[_el$
|
|
2729
|
-
_$insert(_el$
|
|
2730
|
-
_$insert(_el$
|
|
2738
|
+
var _el$143 = _$getNextElement(_tmpl$61),
|
|
2739
|
+
_el$144 = _el$143.firstChild,
|
|
2740
|
+
[_el$145, _co$25] = _$getNextMarker(_el$144.nextSibling),
|
|
2741
|
+
_el$146 = _el$145.nextSibling,
|
|
2742
|
+
[_el$147, _co$26] = _$getNextMarker(_el$146.nextSibling);
|
|
2743
|
+
_$insert(_el$143, resolvedActions, _el$145, _co$25);
|
|
2744
|
+
_$insert(_el$143, _$createComponent(Show, {
|
|
2731
2745
|
get when() {
|
|
2732
2746
|
return props.head?.primary;
|
|
2733
2747
|
},
|
|
@@ -2765,24 +2779,24 @@ function AppWorkspaceHead(props) {
|
|
|
2765
2779
|
}
|
|
2766
2780
|
})
|
|
2767
2781
|
})
|
|
2768
|
-
}), _el$
|
|
2769
|
-
return _el$
|
|
2782
|
+
}), _el$147, _co$26);
|
|
2783
|
+
return _el$143;
|
|
2770
2784
|
}
|
|
2771
|
-
}), _el$
|
|
2785
|
+
}), _el$151, _co$28);
|
|
2772
2786
|
_$effect(_p$ => {
|
|
2773
2787
|
var _v$87 = trail()?.ancestors.length ? "up" : trail() ? "title" : undefined,
|
|
2774
2788
|
_v$88 = props.head ? "" : undefined,
|
|
2775
2789
|
_v$89 = mobilePane();
|
|
2776
|
-
_v$87 !== _p$.e && _$setAttribute(_el$
|
|
2777
|
-
_v$88 !== _p$.t && _$setAttribute(_el$
|
|
2778
|
-
_v$89 !== _p$.a && _$setAttribute(_el$
|
|
2790
|
+
_v$87 !== _p$.e && _$setAttribute(_el$122, "data-trail", _p$.e = _v$87);
|
|
2791
|
+
_v$88 !== _p$.t && _$setAttribute(_el$122, "data-row", _p$.t = _v$88);
|
|
2792
|
+
_v$89 !== _p$.a && _$setAttribute(_el$122, "data-workspace-head-pane", _p$.a = _v$89);
|
|
2779
2793
|
return _p$;
|
|
2780
2794
|
}, {
|
|
2781
2795
|
e: undefined,
|
|
2782
2796
|
t: undefined,
|
|
2783
2797
|
a: undefined
|
|
2784
2798
|
});
|
|
2785
|
-
return _el$
|
|
2799
|
+
return _el$122;
|
|
2786
2800
|
})();
|
|
2787
2801
|
}
|
|
2788
2802
|
const AppWorkspace = props => {
|
|
@@ -2835,10 +2849,10 @@ const AppWorkspace = props => {
|
|
|
2835
2849
|
return _$createComponent(WorkspaceContext.Provider, {
|
|
2836
2850
|
value: workspace,
|
|
2837
2851
|
get children() {
|
|
2838
|
-
var _el$
|
|
2852
|
+
var _el$154 = _$getNextElement(_tmpl$64);
|
|
2839
2853
|
var _ref$8 = root;
|
|
2840
|
-
typeof _ref$8 === "function" ? _$use(_ref$8, _el$
|
|
2841
|
-
_$insert(_el$
|
|
2854
|
+
typeof _ref$8 === "function" ? _$use(_ref$8, _el$154) : root = _el$154;
|
|
2855
|
+
_$insert(_el$154, contents);
|
|
2842
2856
|
_$effect(_p$ => {
|
|
2843
2857
|
var _v$90 = `k2b-app-workspace ${props.class ?? ""}`,
|
|
2844
2858
|
_v$91 = props.mobileSurface,
|
|
@@ -2846,12 +2860,12 @@ const AppWorkspace = props => {
|
|
|
2846
2860
|
_v$93 = initialLayoutState()?.sidebarCollapsed === undefined ? undefined : String(initialLayoutState()?.sidebarCollapsed),
|
|
2847
2861
|
_v$94 = props.resizable === false ? "false" : "true",
|
|
2848
2862
|
_v$95 = appWorkspaceLayoutStyle(initialLayoutState());
|
|
2849
|
-
_v$90 !== _p$.e && _$className(_el$
|
|
2850
|
-
_v$91 !== _p$.t && _$setAttribute(_el$
|
|
2851
|
-
_v$92 !== _p$.a && _$setAttribute(_el$
|
|
2852
|
-
_v$93 !== _p$.o && _$setAttribute(_el$
|
|
2853
|
-
_v$94 !== _p$.i && _$setAttribute(_el$
|
|
2854
|
-
_p$.n = _$style(_el$
|
|
2863
|
+
_v$90 !== _p$.e && _$className(_el$154, _p$.e = _v$90);
|
|
2864
|
+
_v$91 !== _p$.t && _$setAttribute(_el$154, "data-mobile-surface", _p$.t = _v$91);
|
|
2865
|
+
_v$92 !== _p$.a && _$setAttribute(_el$154, "data-flat", _p$.a = _v$92);
|
|
2866
|
+
_v$93 !== _p$.o && _$setAttribute(_el$154, "data-sidebar-collapsed", _p$.o = _v$93);
|
|
2867
|
+
_v$94 !== _p$.i && _$setAttribute(_el$154, "data-workspace-resizable", _p$.i = _v$94);
|
|
2868
|
+
_p$.n = _$style(_el$154, _v$95, _p$.n);
|
|
2855
2869
|
return _p$;
|
|
2856
2870
|
}, {
|
|
2857
2871
|
e: undefined,
|
|
@@ -2861,7 +2875,7 @@ const AppWorkspace = props => {
|
|
|
2861
2875
|
i: undefined,
|
|
2862
2876
|
n: undefined
|
|
2863
2877
|
});
|
|
2864
|
-
return _el$
|
|
2878
|
+
return _el$154;
|
|
2865
2879
|
}
|
|
2866
2880
|
});
|
|
2867
2881
|
}
|
|
@@ -2877,10 +2891,10 @@ AppWorkspace.LayoutStateProvider = props => _$createComponent(LayoutStateContext
|
|
|
2877
2891
|
});
|
|
2878
2892
|
AppWorkspace.Head = AppWorkspaceHeadSlot;
|
|
2879
2893
|
AppWorkspace.Content = props => (() => {
|
|
2880
|
-
var _el$
|
|
2881
|
-
_$insert(_el$
|
|
2882
|
-
_$effect(() => _$className(_el$
|
|
2883
|
-
return _el$
|
|
2894
|
+
var _el$155 = _$getNextElement(_tmpl$6);
|
|
2895
|
+
_$insert(_el$155, () => props.children);
|
|
2896
|
+
_$effect(() => _$className(_el$155, `k2b-app-workspace__content ${props.class ?? ""}`));
|
|
2897
|
+
return _el$155;
|
|
2884
2898
|
})();
|
|
2885
2899
|
AppWorkspace.Main = AppWorkspaceMain;
|
|
2886
2900
|
AppWorkspace.MainPane = AppWorkspaceMainPane;
|