@itguy614/clean-ui 1.0.0 → 1.1.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/clean-ui.css +1 -1
- package/dist/components/CuiAlert.vue.d.ts.map +1 -1
- package/dist/components/CuiAlert.vue.js +1 -1
- package/dist/components/CuiAlert.vue2.js +41 -38
- package/dist/components/CuiBadge.vue.d.ts.map +1 -1
- package/dist/components/CuiBadge.vue.js +1 -1
- package/dist/components/CuiBadge.vue2.js +15 -12
- package/dist/components/CuiBanner.vue.d.ts.map +1 -1
- package/dist/components/CuiBanner.vue.js +9 -8
- package/dist/components/CuiButton.vue.d.ts.map +1 -1
- package/dist/components/CuiButton.vue.js +2 -2
- package/dist/components/CuiButton.vue2.js +23 -20
- package/dist/components/CuiDataGrid.vue.d.ts +53 -79
- package/dist/components/CuiDataGrid.vue.d.ts.map +1 -1
- package/dist/components/CuiDataGrid.vue.js +2 -0
- package/dist/components/CuiDataGridBulkBar.vue.d.ts.map +1 -1
- package/dist/components/CuiDataGridTable.vue.d.ts.map +1 -1
- package/dist/components/CuiIcon.vue.d.ts +14 -2
- package/dist/components/CuiIcon.vue.d.ts.map +1 -1
- package/dist/components/CuiIcon.vue.js +1 -1
- package/dist/components/CuiIcon.vue2.js +51 -30
- package/dist/components/CuiInput.vue.d.ts +6 -6
- package/dist/components/CuiInput.vue.d.ts.map +1 -1
- package/dist/components/CuiInput.vue.js +2 -2
- package/dist/components/CuiInput.vue2.js +15 -13
- package/dist/components/CuiMaskedInput.vue.d.ts +8 -8
- package/dist/components/CuiRating.vue.d.ts +1 -1
- package/dist/components/CuiRating.vue.d.ts.map +1 -1
- package/dist/components/CuiTab.vue.d.ts.map +1 -1
- package/dist/components/CuiTab.vue.js +1 -1
- package/dist/components/CuiTab.vue2.js +41 -36
- package/dist/components/CuiTable.vue.d.ts +3 -3
- package/dist/components/CuiTable.vue.d.ts.map +1 -1
- package/dist/components/CuiTable.vue.js +58 -53
- package/dist/components/CuiTableCell.vue.d.ts +1 -0
- package/dist/components/CuiTableCell.vue.d.ts.map +1 -1
- package/dist/components/CuiTableCell.vue.js +4 -4
- package/dist/components/CuiTabs.vue.d.ts +2 -2
- package/dist/components/CuiTabs.vue.d.ts.map +1 -1
- package/dist/components/CuiTabs.vue.js +2 -2
- package/dist/components/CuiTabs.vue2.js +127 -89
- package/dist/components/CuiTreeNode.vue.d.ts +1 -0
- package/dist/components/CuiTreeNode.vue.d.ts.map +1 -1
- package/dist/components/CuiTreeNode.vue.js +28 -27
- package/dist/components/CuiTreeView.vue.d.ts.map +1 -1
- package/dist/components/CuiTreeView.vue.js +22 -22
- package/dist/components/tabs-context.d.ts +7 -1
- package/dist/components/tabs-context.d.ts.map +1 -1
- package/dist/composables/useDataGridViews.d.ts.map +1 -1
- package/dist/composables/useDataGridViews.js +37 -35
- package/dist/composables/useDensity.d.ts.map +1 -1
- package/dist/composables/useDensity.js +19 -19
- package/dist/composables/useOverlay.d.ts.map +1 -1
- package/dist/composables/useOverlay.js +46 -36
- package/dist/composables/useTheme.d.ts.map +1 -1
- package/dist/composables/useTheme.js +17 -25
- package/dist/icons/builtin.d.ts +67 -0
- package/dist/icons/builtin.d.ts.map +1 -0
- package/dist/icons/builtin.js +67 -0
- package/dist/icons/lazy.d.ts +8 -0
- package/dist/icons/lazy.d.ts.map +1 -0
- package/dist/icons/lazy.js +21 -0
- package/dist/icons/registry.d.ts +29 -0
- package/dist/icons/registry.d.ts.map +1 -0
- package/dist/icons/registry.js +30 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +124 -117
- package/dist/messages.d.ts +4 -0
- package/dist/messages.d.ts.map +1 -1
- package/dist/messages.js +10 -9
- package/dist/utils/devWarn.d.ts +16 -0
- package/dist/utils/devWarn.d.ts.map +1 -0
- package/dist/utils/devWarn.js +21 -0
- package/dist/utils/scrollLock.d.ts +22 -0
- package/dist/utils/scrollLock.d.ts.map +1 -0
- package/dist/utils/scrollLock.js +42 -0
- package/dist/utils/storage.d.ts +18 -0
- package/dist/utils/storage.d.ts.map +1 -0
- package/dist/utils/storage.js +27 -0
- package/package.json +7 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CuiTreeView.vue.d.ts","sourceRoot":"","sources":["../../src/components/CuiTreeView.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CuiTreeView.vue.d.ts","sourceRoot":"","sources":["../../src/components/CuiTreeView.vue"],"names":[],"mappings":"AA6IA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAGrD,MAAM,WAAW,QAAQ;IACvB,wBAAwB;IACxB,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC;IACpB,oBAAoB;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,gBAAgB;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,qBAAqB;IACrB,QAAQ,CAAC,EAAE,QAAQ,EAAE,CAAC;IACtB,eAAe;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,qBAAqB;IACrB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,MAAM,WAAW,gBAAiB,SAAQ,aAAa;IACrD,gBAAgB;IAChB,KAAK,EAAE,QAAQ,EAAE,CAAC;IAClB,yEAAyE;IACzE,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,GAAG,IAAI,CAAC;IAC1D,+BAA+B;IAC/B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,kCAAkC;IAClC,eAAe,CAAC,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,CAAC;IACtC,kCAAkC;IAClC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,4BAA4B;IAC5B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,2DAA2D;IAC3D,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,8BAA8B;IAC9B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW;IACX,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;CAC3B;AAiJD,QAAA,IAAI,OAAO,KAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,IAAI,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AA2B5C,QAAA,MAAM,eAAe;;;;;;;;;;UA/KZ,IAAI,GAAG,IAAI,GAAG,IAAI;cAZd,OAAO;gBAQL,OAAO;eAFR,OAAO;cAIR,OAAO;eANN,OAAO;6EA+LnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAa1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import { scaleDensity as d } from "../utils/sizing.js";
|
|
4
|
-
const
|
|
1
|
+
import { defineComponent as z, ref as v, computed as u, withDirectives as y, openBlock as s, createElementBlock as m, Fragment as B, renderList as V, createBlock as b, withCtx as k, renderSlot as E, mergeProps as C, vShow as A } from "vue";
|
|
2
|
+
import L from "./CuiTreeNode.vue.js";
|
|
3
|
+
import { scaleDensity as d, scaleControlHeight as c } from "../utils/sizing.js";
|
|
4
|
+
const X = { role: "tree" }, T = /* @__PURE__ */ z({
|
|
5
5
|
__name: "CuiTreeView",
|
|
6
6
|
props: {
|
|
7
7
|
nodes: {},
|
|
@@ -16,8 +16,8 @@ const L = { role: "tree" }, N = /* @__PURE__ */ w({
|
|
|
16
16
|
hidden: { type: Boolean, default: !1 }
|
|
17
17
|
},
|
|
18
18
|
emits: ["update:modelValue", "node-click", "node-expand"],
|
|
19
|
-
setup(a, { emit:
|
|
20
|
-
const l = a, i =
|
|
19
|
+
setup(a, { emit: f }) {
|
|
20
|
+
const l = a, i = f, o = v(new Set(l.defaultExpanded ?? []));
|
|
21
21
|
if (l.expandAll) {
|
|
22
22
|
let e = function(t) {
|
|
23
23
|
for (const n of t)
|
|
@@ -25,12 +25,12 @@ const L = { role: "tree" }, N = /* @__PURE__ */ w({
|
|
|
25
25
|
};
|
|
26
26
|
e(l.nodes);
|
|
27
27
|
}
|
|
28
|
-
const r =
|
|
29
|
-
function
|
|
28
|
+
const r = u(() => l.modelValue == null ? /* @__PURE__ */ new Set() : Array.isArray(l.modelValue) ? new Set(l.modelValue) : /* @__PURE__ */ new Set([l.modelValue]));
|
|
29
|
+
function p(e) {
|
|
30
30
|
const t = new Set(o.value), n = t.has(e.id);
|
|
31
31
|
n ? t.delete(e.id) : t.add(e.id), o.value = t, i("node-expand", e, !n);
|
|
32
32
|
}
|
|
33
|
-
function
|
|
33
|
+
function h(e) {
|
|
34
34
|
if (!(!l.selectable || e.disabled))
|
|
35
35
|
if (i("node-click", e), l.multiple) {
|
|
36
36
|
const t = new Set(r.value);
|
|
@@ -38,13 +38,13 @@ const L = { role: "tree" }, N = /* @__PURE__ */ w({
|
|
|
38
38
|
} else
|
|
39
39
|
i("update:modelValue", r.value.has(e.id) ? null : e.id);
|
|
40
40
|
}
|
|
41
|
-
const
|
|
42
|
-
sm: { fontSize: "0.8125rem", iconSize: "0.75rem", indent: d("1rem"), padY: d("0.1875rem"), padX: d("0.375rem") },
|
|
43
|
-
md: { fontSize: "0.875rem", iconSize: "0.875rem", indent: d("1.25rem"), padY: d("0.25rem"), padX: d("0.5rem") },
|
|
44
|
-
lg: { fontSize: "0.9375rem", iconSize: "1rem", indent: d("1.5rem"), padY: d("0.375rem"), padX: d("0.625rem") }
|
|
45
|
-
},
|
|
46
|
-
return (e, t) => y((s(),
|
|
47
|
-
(s(!0),
|
|
41
|
+
const S = {
|
|
42
|
+
sm: { fontSize: "0.8125rem", iconSize: "0.75rem", hitSize: c("0.75rem"), indent: d("1rem"), padY: d("0.1875rem"), padX: d("0.375rem") },
|
|
43
|
+
md: { fontSize: "0.875rem", iconSize: "0.875rem", hitSize: c("0.875rem"), indent: d("1.25rem"), padY: d("0.25rem"), padX: d("0.5rem") },
|
|
44
|
+
lg: { fontSize: "0.9375rem", iconSize: "1rem", hitSize: c("1rem"), indent: d("1.5rem"), padY: d("0.375rem"), padX: d("0.625rem") }
|
|
45
|
+
}, g = u(() => S[l.size]);
|
|
46
|
+
return (e, t) => y((s(), m("div", X, [
|
|
47
|
+
(s(!0), m(B, null, V(a.nodes, (n, x) => (s(), b(L, {
|
|
48
48
|
key: String(n.id),
|
|
49
49
|
node: n,
|
|
50
50
|
depth: 0,
|
|
@@ -54,12 +54,12 @@ const L = { role: "tree" }, N = /* @__PURE__ */ w({
|
|
|
54
54
|
selectable: a.selectable,
|
|
55
55
|
"show-lines": a.showLines,
|
|
56
56
|
animated: a.animated,
|
|
57
|
-
cfg:
|
|
58
|
-
onToggleExpand:
|
|
59
|
-
onSelectNode:
|
|
57
|
+
cfg: g.value,
|
|
58
|
+
onToggleExpand: p,
|
|
59
|
+
onSelectNode: h
|
|
60
60
|
}, {
|
|
61
|
-
node:
|
|
62
|
-
|
|
61
|
+
node: k((w) => [
|
|
62
|
+
E(e.$slots, "node", C({ ref_for: !0 }, w))
|
|
63
63
|
]),
|
|
64
64
|
_: 3
|
|
65
65
|
}, 8, ["node", "is-last", "expanded", "selected-set", "selectable", "show-lines", "animated", "cfg"]))), 128))
|
|
@@ -69,5 +69,5 @@ const L = { role: "tree" }, N = /* @__PURE__ */ w({
|
|
|
69
69
|
}
|
|
70
70
|
});
|
|
71
71
|
export {
|
|
72
|
-
|
|
72
|
+
T as default
|
|
73
73
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { InjectionKey, Ref } from "vue";
|
|
1
|
+
import type { InjectionKey, Ref, VNodeChild } from "vue";
|
|
2
2
|
import type { CuiColor } from "../types/common";
|
|
3
3
|
export type TabVariant = "underline" | "segmented";
|
|
4
4
|
export type TabOrientation = "horizontal" | "vertical";
|
|
@@ -8,6 +8,12 @@ export interface TabDefinition {
|
|
|
8
8
|
label: string;
|
|
9
9
|
disabled?: boolean;
|
|
10
10
|
closeable?: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* CuiTab's `#label` slot, forwarded so CuiTabs can render it inside the tab
|
|
13
|
+
* button (the button lives in the bar, which the parent owns). Absent when the
|
|
14
|
+
* tab has no `#label` slot, in which case the parent renders `label` as text.
|
|
15
|
+
*/
|
|
16
|
+
labelSlot?: () => VNodeChild;
|
|
11
17
|
}
|
|
12
18
|
export interface TabsContext {
|
|
13
19
|
activeTab: Ref<string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tabs-context.d.ts","sourceRoot":"","sources":["../../src/components/tabs-context.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"tabs-context.d.ts","sourceRoot":"","sources":["../../src/components/tabs-context.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,GAAG,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AACzD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAEhD,MAAM,MAAM,UAAU,GAAG,WAAW,GAAG,WAAW,CAAC;AACnD,MAAM,MAAM,cAAc,GAAG,YAAY,GAAG,UAAU,CAAC;AACvD,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,CAAC;AAEtD,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,UAAU,CAAC;CAC9B;AAED,MAAM,WAAW,WAAW;IAC1B,SAAS,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IACvB,OAAO,EAAE,GAAG,CAAC,UAAU,CAAC,CAAC;IACzB,WAAW,EAAE,GAAG,CAAC,cAAc,CAAC,CAAC;IACjC,KAAK,EAAE,GAAG,CAAC,QAAQ,CAAC,CAAC;IACrB,SAAS,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC;IACxB,UAAU,EAAE,GAAG,CAAC,aAAa,CAAC,CAAC;IAC/B,WAAW,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IACzB,QAAQ,EAAE,CAAC,GAAG,EAAE,aAAa,KAAK,IAAI,CAAC;IACvC,UAAU,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,KAAK,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CAChC;AAED,eAAO,MAAM,cAAc,EAAE,YAAY,CAAC,WAAW,CAA0B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDataGridViews.d.ts","sourceRoot":"","sources":["../../src/composables/useDataGridViews.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"useDataGridViews.d.ts","sourceRoot":"","sources":["../../src/composables/useDataGridViews.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAGjF,oCAAoC;AACpC,wBAAgB,uBAAuB,CAAC,MAAM,SAAiB,GAAG,mBAAmB,CAkCpF;AAED,MAAM,WAAW,uBAAuB;IACtC,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,mBAAmB,CAAC;CAC/B;AAED,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAejC,MAAM,UAAU,iBAAiB,CAAC,QAAQ,CAAC;qBAY3C,MAAM,UAAU,iBAAiB,CAAC,QAAQ,CAAC;qBAO3C,MAAM;qBAMZ,MAAM;EAc/B"}
|
|
@@ -1,67 +1,69 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { ref as f } from "vue";
|
|
2
|
+
import { safeSetItem as l, safeGetItem as g } from "../utils/storage.js";
|
|
3
|
+
function V(s = "cui-datagrid") {
|
|
4
|
+
function r(e) {
|
|
5
|
+
return `${s}-views-${e}`;
|
|
5
6
|
}
|
|
6
7
|
return {
|
|
7
|
-
async load(
|
|
8
|
+
async load(e) {
|
|
9
|
+
const a = g(r(e));
|
|
10
|
+
if (!a) return [];
|
|
8
11
|
try {
|
|
9
|
-
|
|
10
|
-
return e ? JSON.parse(e) : [];
|
|
12
|
+
return JSON.parse(a);
|
|
11
13
|
} catch {
|
|
12
14
|
return [];
|
|
13
15
|
}
|
|
14
16
|
},
|
|
15
|
-
async save(
|
|
16
|
-
const t = await this.load(
|
|
17
|
-
i >= 0 ? t[i] =
|
|
17
|
+
async save(e, a) {
|
|
18
|
+
const t = await this.load(e), i = t.findIndex((u) => u.id === a.id);
|
|
19
|
+
i >= 0 ? t[i] = a : t.push(a), l(r(e), JSON.stringify(t));
|
|
18
20
|
},
|
|
19
|
-
async remove(
|
|
20
|
-
const i = (await this.load(
|
|
21
|
-
|
|
21
|
+
async remove(e, a) {
|
|
22
|
+
const i = (await this.load(e)).filter((u) => u.id !== a);
|
|
23
|
+
l(r(e), JSON.stringify(i));
|
|
22
24
|
}
|
|
23
25
|
};
|
|
24
26
|
}
|
|
25
|
-
function
|
|
26
|
-
const r = s.adapter ??
|
|
27
|
+
function h(s) {
|
|
28
|
+
const r = s.adapter ?? V(), e = f([]), a = f(null), t = f(!1);
|
|
27
29
|
async function i() {
|
|
28
30
|
t.value = !0;
|
|
29
31
|
try {
|
|
30
|
-
|
|
32
|
+
e.value = await r.load(s.gridId);
|
|
31
33
|
} finally {
|
|
32
34
|
t.value = !1;
|
|
33
35
|
}
|
|
34
36
|
}
|
|
35
|
-
async function
|
|
36
|
-
const c =
|
|
37
|
+
async function u(n, o) {
|
|
38
|
+
const c = e.value.find((m) => m.name === n), d = {
|
|
37
39
|
id: (c == null ? void 0 : c.id) ?? crypto.randomUUID(),
|
|
38
40
|
name: n,
|
|
39
|
-
config:
|
|
41
|
+
config: o
|
|
40
42
|
};
|
|
41
|
-
await r.save(s.gridId,
|
|
43
|
+
await r.save(s.gridId, d), await i(), a.value = d.id;
|
|
42
44
|
}
|
|
43
|
-
async function
|
|
44
|
-
const c =
|
|
45
|
-
c && (await r.save(s.gridId, { ...c, config:
|
|
45
|
+
async function w(n, o) {
|
|
46
|
+
const c = e.value.find((d) => d.id === n);
|
|
47
|
+
c && (await r.save(s.gridId, { ...c, config: o }), await i());
|
|
46
48
|
}
|
|
47
|
-
async function
|
|
48
|
-
await r.remove(s.gridId, n),
|
|
49
|
+
async function v(n) {
|
|
50
|
+
await r.remove(s.gridId, n), a.value === n && (a.value = null), await i();
|
|
49
51
|
}
|
|
50
|
-
function
|
|
51
|
-
|
|
52
|
+
function y(n) {
|
|
53
|
+
a.value = n;
|
|
52
54
|
}
|
|
53
55
|
return {
|
|
54
|
-
views:
|
|
55
|
-
activeViewId:
|
|
56
|
+
views: e,
|
|
57
|
+
activeViewId: a,
|
|
56
58
|
loading: t,
|
|
57
59
|
fetchViews: i,
|
|
58
|
-
saveView:
|
|
59
|
-
updateView:
|
|
60
|
-
removeView:
|
|
61
|
-
selectView:
|
|
60
|
+
saveView: u,
|
|
61
|
+
updateView: w,
|
|
62
|
+
removeView: v,
|
|
63
|
+
selectView: y
|
|
62
64
|
};
|
|
63
65
|
}
|
|
64
66
|
export {
|
|
65
|
-
|
|
66
|
-
|
|
67
|
+
V as localStorageViewAdapter,
|
|
68
|
+
h as useDataGridViews
|
|
67
69
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDensity.d.ts","sourceRoot":"","sources":["../../src/composables/useDensity.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useDensity.d.ts","sourceRoot":"","sources":["../../src/composables/useDensity.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,aAAa,CAAC;AAE9D,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,SAAS,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,eAAO,MAAM,eAAe,EAAE,aAAa,EAI1C,CAAC;AAkCF;;;;GAIG;AACH,wBAAgB,UAAU;IAUtB,oCAAoC;;IAEpC,gCAAgC;;IAEhC,6BAA6B;qBAbP,SAAS;IAe/B,iCAAiC;sBAXZ,SAAS;EAcjC"}
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
|
|
1
|
+
import { ref as r, watch as f } from "vue";
|
|
2
|
+
import { safeGetItem as l, safeSetItem as u } from "../utils/storage.js";
|
|
3
|
+
const i = [
|
|
3
4
|
{ id: "compact", label: "Compact", description: "Tighter spacing — more on screen" },
|
|
4
5
|
{ id: "default", label: "Default", description: "Balanced default spacing" },
|
|
5
6
|
{ id: "comfortable", label: "Comfortable", description: "Roomier spacing" }
|
|
6
|
-
],
|
|
7
|
-
function
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
return t && d.has(t) ? t : i;
|
|
7
|
+
], c = "cui-density", o = "cui-density-", d = "default", m = new Set(i.map((t) => t.id)), n = r(p());
|
|
8
|
+
function p() {
|
|
9
|
+
const t = l(c);
|
|
10
|
+
return t && m.has(t) ? t : d;
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function a(t) {
|
|
13
13
|
if (typeof document > "u") return;
|
|
14
14
|
const e = document.documentElement;
|
|
15
|
-
for (const
|
|
16
|
-
|
|
17
|
-
t !== "default" && e.classList.add(`${
|
|
15
|
+
for (const s of Array.from(e.classList))
|
|
16
|
+
s.startsWith(o) && e.classList.remove(s);
|
|
17
|
+
t !== "default" && e.classList.add(`${o}${t}`), u(c, t);
|
|
18
18
|
}
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
function
|
|
22
|
-
function t(
|
|
23
|
-
n.value =
|
|
19
|
+
a(n.value);
|
|
20
|
+
f(n, a);
|
|
21
|
+
function S() {
|
|
22
|
+
function t(s) {
|
|
23
|
+
n.value = s;
|
|
24
24
|
}
|
|
25
25
|
function e() {
|
|
26
26
|
return n.value;
|
|
@@ -29,7 +29,7 @@ function p() {
|
|
|
29
29
|
/** Current density id (reactive) */
|
|
30
30
|
density: n,
|
|
31
31
|
/** Available density presets */
|
|
32
|
-
presets:
|
|
32
|
+
presets: i,
|
|
33
33
|
/** Set the active density */
|
|
34
34
|
setDensity: t,
|
|
35
35
|
/** Get the current density id */
|
|
@@ -37,6 +37,6 @@ function p() {
|
|
|
37
37
|
};
|
|
38
38
|
}
|
|
39
39
|
export {
|
|
40
|
-
|
|
41
|
-
|
|
40
|
+
i as DENSITY_PRESETS,
|
|
41
|
+
S as useDensity
|
|
42
42
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useOverlay.d.ts","sourceRoot":"","sources":["../../src/composables/useOverlay.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgD,KAAK,GAAG,EAAE,KAAK,UAAU,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"useOverlay.d.ts","sourceRoot":"","sources":["../../src/composables/useOverlay.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgD,KAAK,GAAG,EAAE,KAAK,UAAU,EAAE,MAAM,KAAK,CAAC;AAM9F,MAAM,WAAW,iBAAiB;IAChC,2CAA2C;IAC3C,IAAI,EAAE,MAAM,OAAO,CAAC;IACpB,qDAAqD;IACrD,SAAS,EAAE,GAAG,CAAC,WAAW,GAAG,SAAS,CAAC,GAAG,UAAU,CAAC,WAAW,GAAG,IAAI,CAAC,GAAG,QAAQ,CAAC,UAAU,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC,CAAC;IACpH,qDAAqD;IACrD,UAAU,EAAE,MAAM,OAAO,CAAC;IAC1B,8CAA8C;IAC9C,WAAW,EAAE,MAAM,OAAO,CAAC;IAC3B,oCAAoC;IACpC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,iCAAiC;IACjC,YAAY,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IACvC,2BAA2B;IAC3B,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,wBAAgB,UAAU,CAAC,OAAO,EAAE,iBAAiB;;;;;;;mBAqF7B,aAAa;EAuDpC"}
|
|
@@ -1,57 +1,67 @@
|
|
|
1
|
-
import { ref as d, watch as
|
|
1
|
+
import { ref as d, watch as q, onMounted as E, onUnmounted as B, nextTick as C } from "vue";
|
|
2
|
+
import { lockBodyScroll as D, unlockBodyScroll as L } from "../utils/scrollLock.js";
|
|
2
3
|
const t = /* @__PURE__ */ new Set();
|
|
3
|
-
function
|
|
4
|
+
function K(k) {
|
|
4
5
|
const {
|
|
5
|
-
open:
|
|
6
|
-
dialogRef:
|
|
7
|
-
persistent:
|
|
8
|
-
allowNested:
|
|
9
|
-
animationDuration:
|
|
10
|
-
onUpdateOpen:
|
|
11
|
-
onClose:
|
|
12
|
-
} =
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
6
|
+
open: m,
|
|
7
|
+
dialogRef: a,
|
|
8
|
+
persistent: b,
|
|
9
|
+
allowNested: g,
|
|
10
|
+
animationDuration: S = 200,
|
|
11
|
+
onUpdateOpen: O,
|
|
12
|
+
onClose: h
|
|
13
|
+
} = k, c = Symbol("overlay"), i = d(!1), u = d(!1), p = d(null);
|
|
14
|
+
let o = !1;
|
|
15
|
+
function w() {
|
|
16
|
+
o || (o = !0, D());
|
|
17
|
+
}
|
|
18
|
+
function y() {
|
|
19
|
+
o && (o = !1, L());
|
|
20
|
+
}
|
|
21
|
+
function s() {
|
|
22
|
+
!g() && t.size > 0 && t.clear(), t.add(c), p.value = document.activeElement, i.value = !0, w(), C(() => {
|
|
23
|
+
requestAnimationFrame(() => {
|
|
24
|
+
var e;
|
|
25
|
+
u.value = !0, (e = a.value) == null || e.focus();
|
|
26
|
+
});
|
|
17
27
|
});
|
|
18
28
|
}
|
|
19
|
-
function
|
|
20
|
-
|
|
29
|
+
function r() {
|
|
30
|
+
u.value = !1, t.delete(c), setTimeout(() => {
|
|
21
31
|
var e;
|
|
22
|
-
i.value = !1,
|
|
23
|
-
},
|
|
32
|
+
i.value = !1, O(!1), h(), y(), (e = p.value) == null || e.focus();
|
|
33
|
+
}, S);
|
|
24
34
|
}
|
|
25
35
|
function f() {
|
|
26
|
-
|
|
36
|
+
b() || r();
|
|
27
37
|
}
|
|
28
|
-
function
|
|
38
|
+
function x() {
|
|
29
39
|
f();
|
|
30
40
|
}
|
|
31
|
-
function
|
|
32
|
-
if (e.key === "Escape" && (e.stopPropagation(), f()), e.key === "Tab" &&
|
|
33
|
-
const
|
|
41
|
+
function A(e) {
|
|
42
|
+
if (e.key === "Escape" && (e.stopPropagation(), f()), e.key === "Tab" && a.value) {
|
|
43
|
+
const v = a.value.querySelectorAll(
|
|
34
44
|
'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'
|
|
35
|
-
),
|
|
36
|
-
e.shiftKey ? document.activeElement ===
|
|
45
|
+
), n = v[0], l = v[v.length - 1];
|
|
46
|
+
e.shiftKey ? document.activeElement === n && (e.preventDefault(), l == null || l.focus()) : document.activeElement === l && (e.preventDefault(), n == null || n.focus());
|
|
37
47
|
}
|
|
38
48
|
}
|
|
39
|
-
return
|
|
40
|
-
e ?
|
|
41
|
-
}), A(() => {
|
|
42
|
-
v() && u();
|
|
49
|
+
return q(m, (e) => {
|
|
50
|
+
e ? s() : r();
|
|
43
51
|
}), E(() => {
|
|
44
|
-
|
|
52
|
+
m() && s();
|
|
53
|
+
}), B(() => {
|
|
54
|
+
t.delete(c), y();
|
|
45
55
|
}), {
|
|
46
56
|
isVisible: i,
|
|
47
|
-
isAnimating:
|
|
48
|
-
openOverlay:
|
|
49
|
-
closeOverlay:
|
|
57
|
+
isAnimating: u,
|
|
58
|
+
openOverlay: s,
|
|
59
|
+
closeOverlay: r,
|
|
50
60
|
requestClose: f,
|
|
51
|
-
onBackdropClick:
|
|
52
|
-
onKeydown:
|
|
61
|
+
onBackdropClick: x,
|
|
62
|
+
onKeydown: A
|
|
53
63
|
};
|
|
54
64
|
}
|
|
55
65
|
export {
|
|
56
|
-
|
|
66
|
+
K as useOverlay
|
|
57
67
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useTheme.d.ts","sourceRoot":"","sources":["../../src/composables/useTheme.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useTheme.d.ts","sourceRoot":"","sources":["../../src/composables/useTheme.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,eAAO,MAAM,aAAa,EAAE,WAAW,EAStC,CAAC;AAmCF;;;GAGG;AACH,wBAAgB,QAAQ;IAUpB,kCAAkC;;IAElC,sCAAsC;;IAEtC,iCAAiC;wBAbR,MAAM;IAe/B,+BAA+B;oBAXZ,MAAM;EAc5B"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
|
|
1
|
+
import { ref as n, watch as s } from "vue";
|
|
2
|
+
import { safeGetItem as c, safeSetItem as u } from "../utils/storage.js";
|
|
3
|
+
const d = [
|
|
3
4
|
{ id: "mono", label: "Mono", description: "Monochrome — default theme" },
|
|
4
5
|
{ id: "default", label: "Navy", description: "Navy blue" },
|
|
5
6
|
{ id: "forest", label: "Forest", description: "Natural green" },
|
|
@@ -8,34 +9,25 @@ const u = [
|
|
|
8
9
|
{ id: "teal", label: "Teal", description: "Cool teal" },
|
|
9
10
|
{ id: "violet", label: "Violet", description: "Rich purple" },
|
|
10
11
|
{ id: "ruby", label: "Ruby", description: "Bold red" }
|
|
11
|
-
],
|
|
12
|
-
function
|
|
13
|
-
|
|
14
|
-
try {
|
|
15
|
-
return localStorage.getItem(n) ?? "mono";
|
|
16
|
-
} catch {
|
|
17
|
-
return "mono";
|
|
18
|
-
}
|
|
12
|
+
], a = "cui-theme", r = "cui-theme-";
|
|
13
|
+
function m() {
|
|
14
|
+
return c(a) ?? "mono";
|
|
19
15
|
}
|
|
20
|
-
const o =
|
|
16
|
+
const o = n(m());
|
|
21
17
|
function l(e) {
|
|
22
18
|
if (typeof document > "u") return;
|
|
23
19
|
const t = document.documentElement;
|
|
24
|
-
for (const
|
|
25
|
-
|
|
26
|
-
e !== "default" && t.classList.add(`${
|
|
20
|
+
for (const i of Array.from(t.classList))
|
|
21
|
+
i.startsWith(r) && t.classList.remove(i);
|
|
22
|
+
e !== "default" && t.classList.add(`${r}${e}`);
|
|
27
23
|
}
|
|
28
24
|
l(o.value);
|
|
29
25
|
s(o, (e) => {
|
|
30
|
-
|
|
31
|
-
try {
|
|
32
|
-
localStorage.setItem(n, e);
|
|
33
|
-
} catch {
|
|
34
|
-
}
|
|
26
|
+
l(e), u(a, e);
|
|
35
27
|
});
|
|
36
|
-
function
|
|
37
|
-
function e(
|
|
38
|
-
o.value =
|
|
28
|
+
function b() {
|
|
29
|
+
function e(i) {
|
|
30
|
+
o.value = i;
|
|
39
31
|
}
|
|
40
32
|
function t() {
|
|
41
33
|
return o.value;
|
|
@@ -44,7 +36,7 @@ function f() {
|
|
|
44
36
|
/** Current theme ID (reactive) */
|
|
45
37
|
theme: o,
|
|
46
38
|
/** List of available theme presets */
|
|
47
|
-
presets:
|
|
39
|
+
presets: d,
|
|
48
40
|
/** Set the active theme by ID */
|
|
49
41
|
setTheme: e,
|
|
50
42
|
/** Get the current theme ID */
|
|
@@ -52,6 +44,6 @@ function f() {
|
|
|
52
44
|
};
|
|
53
45
|
}
|
|
54
46
|
export {
|
|
55
|
-
|
|
56
|
-
|
|
47
|
+
d as THEME_PRESETS,
|
|
48
|
+
b as useTheme
|
|
57
49
|
};
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import type { Component } from "vue";
|
|
2
|
+
/** kebab-case icon name → Phosphor component. */
|
|
3
|
+
export declare const BUILTIN_ICONS: Record<string, Component>;
|
|
4
|
+
/** Rendered when a name can't be resolved at all. */
|
|
5
|
+
export declare const FALLBACK_ICON: {
|
|
6
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
|
|
7
|
+
weight: {
|
|
8
|
+
type: import("vue").PropType<"bold" | "fill" | "thin" | "light" | "regular" | "duotone">;
|
|
9
|
+
};
|
|
10
|
+
size: {
|
|
11
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
12
|
+
};
|
|
13
|
+
color: {
|
|
14
|
+
type: StringConstructor;
|
|
15
|
+
};
|
|
16
|
+
mirrored: {
|
|
17
|
+
type: BooleanConstructor;
|
|
18
|
+
};
|
|
19
|
+
}>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, {
|
|
20
|
+
mirrored: boolean;
|
|
21
|
+
}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
22
|
+
P: {};
|
|
23
|
+
B: {};
|
|
24
|
+
D: {};
|
|
25
|
+
C: {};
|
|
26
|
+
M: {};
|
|
27
|
+
Defaults: {};
|
|
28
|
+
}, Readonly<import("vue").ExtractPropTypes<{
|
|
29
|
+
weight: {
|
|
30
|
+
type: import("vue").PropType<"bold" | "fill" | "thin" | "light" | "regular" | "duotone">;
|
|
31
|
+
};
|
|
32
|
+
size: {
|
|
33
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
34
|
+
};
|
|
35
|
+
color: {
|
|
36
|
+
type: StringConstructor;
|
|
37
|
+
};
|
|
38
|
+
mirrored: {
|
|
39
|
+
type: BooleanConstructor;
|
|
40
|
+
};
|
|
41
|
+
}>>, {}, {}, {}, {}, {
|
|
42
|
+
mirrored: boolean;
|
|
43
|
+
}>;
|
|
44
|
+
__isFragment?: never;
|
|
45
|
+
__isTeleport?: never;
|
|
46
|
+
__isSuspense?: never;
|
|
47
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
48
|
+
weight: {
|
|
49
|
+
type: import("vue").PropType<"bold" | "fill" | "thin" | "light" | "regular" | "duotone">;
|
|
50
|
+
};
|
|
51
|
+
size: {
|
|
52
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
53
|
+
};
|
|
54
|
+
color: {
|
|
55
|
+
type: StringConstructor;
|
|
56
|
+
};
|
|
57
|
+
mirrored: {
|
|
58
|
+
type: BooleanConstructor;
|
|
59
|
+
};
|
|
60
|
+
}>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
61
|
+
mirrored: boolean;
|
|
62
|
+
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
63
|
+
$slots: {
|
|
64
|
+
default?(_: {}): any;
|
|
65
|
+
};
|
|
66
|
+
});
|
|
67
|
+
//# sourceMappingURL=builtin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"builtin.d.ts","sourceRoot":"","sources":["../../src/icons/builtin.ts"],"names":[],"mappings":"AAwEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,KAAK,CAAC;AAErC,iDAAiD;AACjD,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAkEnD,CAAC;AAEF,qDAAqD;AACrD,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAa,CAAC"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { PhQuestion as e, PhVideoCamera as h, PhMusicNote as r, PhImage as i, PhFileZip as l, PhFileXls as a, PhFileText as o, PhFilePdf as P, PhFileDoc as t, PhFile as c, PhCloudArrowUp as n, PhStarHalf as s, PhStar as u, PhUser as p, PhTable as C, PhSquaresFour as f, PhSpinnerGap as d, PhColumns as m, PhClock as g, PhCircleNotch as k, PhCircle as w, PhCalendarBlank as y, PhXCircle as F, PhWarningCircle as D, PhWarning as S, PhInfo as b, PhCheckCircle as x, PhBookmarkSimple as I, PhArrowCounterClockwise as N, PhX as U, PhUploadSimple as L, PhTrash as T, PhPushPin as A, PhPlus as B, PhMinus as q, PhMagnifyingGlass as M, PhFunnel as X, PhFloppyDisk as v, PhEyeSlash as E, PhEye as G, PhDotsThree as O, PhDotsSixVertical as R, PhDotsNine as V, PhCopy as W, PhCheck as _, PhCaretDoubleRight as z, PhCaretDoubleLeft as H, PhCaretUpDown as K, PhCaretUp as Q, PhCaretRight as Z, PhCaretLeft as j, PhCaretDown as J } from "@phosphor-icons/vue";
|
|
2
|
+
const $ = {
|
|
3
|
+
// --- Carets / navigation ---
|
|
4
|
+
"caret-down": J,
|
|
5
|
+
"caret-left": j,
|
|
6
|
+
"caret-right": Z,
|
|
7
|
+
"caret-up": Q,
|
|
8
|
+
"caret-up-down": K,
|
|
9
|
+
// CuiDataGrid unsorted column
|
|
10
|
+
"caret-double-left": H,
|
|
11
|
+
"caret-double-right": z,
|
|
12
|
+
// --- Controls / actions ---
|
|
13
|
+
check: _,
|
|
14
|
+
copy: W,
|
|
15
|
+
"dots-nine": V,
|
|
16
|
+
"dots-six-vertical": R,
|
|
17
|
+
"dots-three": O,
|
|
18
|
+
eye: G,
|
|
19
|
+
"eye-slash": E,
|
|
20
|
+
"floppy-disk": v,
|
|
21
|
+
funnel: X,
|
|
22
|
+
"magnifying-glass": M,
|
|
23
|
+
minus: q,
|
|
24
|
+
plus: B,
|
|
25
|
+
"push-pin": A,
|
|
26
|
+
trash: T,
|
|
27
|
+
"upload-simple": L,
|
|
28
|
+
x: U,
|
|
29
|
+
"arrow-counter-clockwise": N,
|
|
30
|
+
"bookmark-simple": I,
|
|
31
|
+
// --- Status (COLOR_ICON_MAP + CuiConfirmDialog) ---
|
|
32
|
+
"check-circle": x,
|
|
33
|
+
info: b,
|
|
34
|
+
warning: S,
|
|
35
|
+
"warning-circle": D,
|
|
36
|
+
"x-circle": F,
|
|
37
|
+
// --- Structure / display ---
|
|
38
|
+
"calendar-blank": y,
|
|
39
|
+
circle: w,
|
|
40
|
+
"circle-notch": k,
|
|
41
|
+
clock: g,
|
|
42
|
+
columns: m,
|
|
43
|
+
"spinner-gap": d,
|
|
44
|
+
"squares-four": f,
|
|
45
|
+
table: C,
|
|
46
|
+
user: p,
|
|
47
|
+
// --- CuiRating defaults ---
|
|
48
|
+
star: u,
|
|
49
|
+
"star-half": s,
|
|
50
|
+
// --- CuiFileUpload's fileIcon() ---
|
|
51
|
+
"cloud-arrow-up": n,
|
|
52
|
+
file: c,
|
|
53
|
+
"file-doc": t,
|
|
54
|
+
"file-pdf": P,
|
|
55
|
+
"file-text": o,
|
|
56
|
+
"file-xls": a,
|
|
57
|
+
"file-zip": l,
|
|
58
|
+
image: i,
|
|
59
|
+
"music-note": r,
|
|
60
|
+
"video-camera": h,
|
|
61
|
+
// --- Fallback for an unknown name ---
|
|
62
|
+
question: e
|
|
63
|
+
}, ee = e;
|
|
64
|
+
export {
|
|
65
|
+
$ as BUILTIN_ICONS,
|
|
66
|
+
ee as FALLBACK_ICON
|
|
67
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Enable lazy resolution. Called automatically when this module is imported;
|
|
3
|
+
* exported as well so the intent can be explicit at a call site.
|
|
4
|
+
*/
|
|
5
|
+
export declare function enableLazyIcons(): void;
|
|
6
|
+
/** Undo {@link enableLazyIcons} — unregistered names go back to the fallback glyph. */
|
|
7
|
+
export declare function disableLazyIcons(): void;
|
|
8
|
+
//# sourceMappingURL=lazy.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lazy.d.ts","sourceRoot":"","sources":["../../src/icons/lazy.ts"],"names":[],"mappings":"AAgCA;;;GAGG;AACH,wBAAgB,eAAe,IAAI,IAAI,CAUtC;AAED,uFAAuF;AACvF,wBAAgB,gBAAgB,IAAI,IAAI,CAEvC"}
|