@wrdagency/blockout 1.0.29 → 1.0.31
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/assets/index2.css +1 -1
- package/dist/assets/index9.css +1 -1
- package/dist/assets/static.css +1 -1
- package/dist/assets/style16.css +1 -1
- package/dist/assets/style20.css +1 -1
- package/dist/assets/style25.css +1 -1
- package/dist/components/controls/select-control/control.js +23 -23
- package/dist/components/controls/select-control/props.d.ts +2 -2
- package/dist/components/controls/select-control/select.js +85 -71
- package/dist/components/controls/tag-control/ariakit-experimental.js +1067 -1081
- package/dist/components/data-view/api.d.ts +2 -2
- package/dist/components/data-view/api.js +14 -17
- package/dist/components/data-view/data/normalize.d.ts +0 -2
- package/dist/components/data-view/data/normalize.js +24 -36
- package/dist/components/data-view/layouts/grid/group.js +3 -2
- package/dist/components/data-view/layouts/kanban/group.js +3 -2
- package/dist/components/data-view/layouts/list/group.js +3 -2
- package/dist/components/data-view/layouts/table/empty.js +3 -2
- package/dist/components/data-view/layouts/table/group.js +3 -2
- package/dist/components/data-view/layouts/table/root.js +3 -2
- package/dist/components/data-view/layouts/tile/group.js +3 -2
- package/dist/components/data-view/parts/controls/index.js +3 -2
- package/dist/components/data-view/parts/controls/search.js +3 -2
- package/dist/components/data-view/parts/footer/actions.js +43 -62
- package/dist/components/data-view/parts/footer/index.js +3 -2
- package/dist/components/data-view/parts/footer/selection.js +3 -2
- package/dist/components/data-view/parts/view-control/index.js +18 -17
- package/dist/components/data-view/root.js +3 -2
- package/dist/components/data-view/slots/item/actions.js +20 -34
- package/dist/components/data-view/types/actions.d.ts +4 -14
- package/dist/components/menu/context.d.ts +7 -0
- package/dist/components/menu/context.js +10 -0
- package/dist/components/menu/index.d.ts +5 -4
- package/dist/components/menu/index.js +19 -17
- package/dist/components/menu/item.d.ts +1 -1
- package/dist/components/menu/items/action.d.ts +1 -1
- package/dist/components/menu/items/action.js +10 -7
- package/dist/components/menu/items/submenu.d.ts +1 -1
- package/dist/components/menu/items/toggle.d.ts +1 -1
- package/dist/components/menu/items/toggle.js +20 -19
- package/dist/components/menu/types.d.ts +9 -9
- package/dist/primitives/popover/root.d.ts +2 -3
- package/dist/{select-popover-Dheunyb0.js → select-popover-CGgkyRb4.js} +227 -210
- package/dist/types/options.d.ts +15 -0
- package/dist/types/options.js +44 -12
- package/package.json +1 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { Field, PartialField, PartialView, View } from './types';
|
|
2
|
-
import { Action
|
|
2
|
+
import { Action } from './types/actions';
|
|
3
3
|
import { HierarchyDefinition } from './types/hierarchy';
|
|
4
4
|
export declare function useSchema<TData extends object = object>(schema: PartialSchema<TData>): Schema<TData>;
|
|
5
5
|
export type PartialSchema<TData extends object = object> = {
|
|
6
6
|
primaryKey: keyof TData;
|
|
7
7
|
fields: PartialField<TData>[];
|
|
8
8
|
hierarchy?: HierarchyDefinition<TData>;
|
|
9
|
-
actions?:
|
|
9
|
+
actions?: Action<TData>[];
|
|
10
10
|
};
|
|
11
11
|
export type Schema<TData extends object = object> = {
|
|
12
12
|
primaryKey: keyof TData;
|
|
@@ -1,31 +1,28 @@
|
|
|
1
1
|
import { u as a } from "../../index-D7vLJIGX.js";
|
|
2
|
-
import { useMemo as
|
|
3
|
-
import { normalizeField as u,
|
|
4
|
-
function
|
|
5
|
-
const e =
|
|
2
|
+
import { useMemo as r, useState as l } from "react";
|
|
3
|
+
import { normalizeField as u, normalizeView as f } from "./data/normalize.js";
|
|
4
|
+
function p(i) {
|
|
5
|
+
const e = r(
|
|
6
6
|
() => i.fields.map(u),
|
|
7
7
|
[i.fields]
|
|
8
|
-
), t = s(
|
|
9
|
-
() => (i.actions || []).map(c),
|
|
10
|
-
[i.actions]
|
|
11
8
|
);
|
|
12
9
|
return {
|
|
13
10
|
...i,
|
|
14
|
-
actions:
|
|
11
|
+
actions: i.actions || [],
|
|
15
12
|
fields: e
|
|
16
13
|
};
|
|
17
14
|
}
|
|
18
|
-
function
|
|
19
|
-
const { initial: e = {}, saveKey:
|
|
20
|
-
if (
|
|
21
|
-
const [
|
|
22
|
-
return { view:
|
|
15
|
+
function d(i = {}) {
|
|
16
|
+
const { initial: e = {}, saveKey: n } = i, s = r(() => f(e), [e]);
|
|
17
|
+
if (n) {
|
|
18
|
+
const [t, o] = a(n, s);
|
|
19
|
+
return { view: t, setView: o };
|
|
23
20
|
} else {
|
|
24
|
-
const [
|
|
25
|
-
return { view:
|
|
21
|
+
const [t, o] = l(s);
|
|
22
|
+
return { view: t, setView: o };
|
|
26
23
|
}
|
|
27
24
|
}
|
|
28
25
|
export {
|
|
29
|
-
|
|
30
|
-
|
|
26
|
+
p as useSchema,
|
|
27
|
+
d as useView
|
|
31
28
|
};
|
|
@@ -1,5 +1,3 @@
|
|
|
1
1
|
import { Field, PartialField, PartialView, View } from '../types';
|
|
2
|
-
import { Action, PartialAction } from '../types/actions';
|
|
3
2
|
export declare function normalizeField<TItem extends object = object, TType extends any = any>(field: PartialField<TItem, TType>): Field<TItem, TType>;
|
|
4
3
|
export declare function normalizeView(view: PartialView): View;
|
|
5
|
-
export declare function normalizeAction<TItem extends object = object>(action: PartialAction<TItem>): Action<TItem>;
|
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
import { normalizeOption as
|
|
2
|
-
import { dot as
|
|
3
|
-
function p(
|
|
4
|
-
var
|
|
1
|
+
import { normalizeOption as i } from "../../../types/options.js";
|
|
2
|
+
import { dot as s } from "../../../utils/object.js";
|
|
3
|
+
function p(r) {
|
|
4
|
+
var l;
|
|
5
5
|
return {
|
|
6
|
-
id:
|
|
7
|
-
getValue:
|
|
8
|
-
elements: ((
|
|
6
|
+
id: r.id,
|
|
7
|
+
getValue: r.getValue || ((e) => s(e, r.id)),
|
|
8
|
+
elements: ((l = r.elements) == null ? void 0 : l.map(i)) || [],
|
|
9
9
|
display: {
|
|
10
|
-
label:
|
|
10
|
+
label: r.id,
|
|
11
11
|
hideable: !0,
|
|
12
12
|
placement: "property",
|
|
13
|
-
header: ({ field:
|
|
14
|
-
var
|
|
15
|
-
return ((
|
|
13
|
+
header: ({ field: e }) => {
|
|
14
|
+
var t;
|
|
15
|
+
return ((t = e.display) == null ? void 0 : t.label) || e.id || "";
|
|
16
16
|
},
|
|
17
|
-
cell: ({ item:
|
|
18
|
-
...
|
|
17
|
+
cell: ({ item: e, field: t }) => String(t.getValue(e)),
|
|
18
|
+
...r.display
|
|
19
19
|
},
|
|
20
20
|
editing: {
|
|
21
21
|
editable: !1,
|
|
22
22
|
editFn: console.log,
|
|
23
|
-
...
|
|
23
|
+
...r.editing
|
|
24
24
|
},
|
|
25
25
|
sorting: {
|
|
26
26
|
sortable: !0,
|
|
27
|
-
sortFn: (
|
|
27
|
+
sortFn: (e, t, a) => e < t ? a === "asc" ? -1 : 1 : e > t ? a === "asc" ? 1 : -1 : 0,
|
|
28
28
|
groupable: !1,
|
|
29
|
-
groupFn: (
|
|
30
|
-
labelFn: (
|
|
31
|
-
...
|
|
29
|
+
groupFn: (e) => Array.isArray(e) ? e.map(String) : String(e),
|
|
30
|
+
labelFn: (e) => String(e),
|
|
31
|
+
...r.sorting
|
|
32
32
|
},
|
|
33
33
|
filtering: {
|
|
34
34
|
searchable: !1,
|
|
35
35
|
filterable: !1,
|
|
36
36
|
types: [],
|
|
37
|
-
...
|
|
37
|
+
...r.filtering
|
|
38
38
|
}
|
|
39
39
|
};
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function g(r) {
|
|
42
42
|
return {
|
|
43
43
|
layout: "table",
|
|
44
44
|
groupBy: !1,
|
|
@@ -50,27 +50,15 @@ function u(e) {
|
|
|
50
50
|
sortOrder: "asc",
|
|
51
51
|
search: "",
|
|
52
52
|
filters: [],
|
|
53
|
-
...
|
|
54
|
-
fields: (
|
|
55
|
-
id:
|
|
53
|
+
...r,
|
|
54
|
+
fields: (r.fields || []).map((l) => ({
|
|
55
|
+
id: l,
|
|
56
56
|
visible: !0
|
|
57
57
|
})),
|
|
58
58
|
relationships: "full"
|
|
59
59
|
};
|
|
60
60
|
}
|
|
61
|
-
function g(e) {
|
|
62
|
-
return {
|
|
63
|
-
label: e.id,
|
|
64
|
-
icon: void 0,
|
|
65
|
-
variant: "primary",
|
|
66
|
-
disabled: !1,
|
|
67
|
-
singleFn: void 0,
|
|
68
|
-
bulkFn: void 0,
|
|
69
|
-
...e
|
|
70
|
-
};
|
|
71
|
-
}
|
|
72
61
|
export {
|
|
73
|
-
g as normalizeAction,
|
|
74
62
|
p as normalizeField,
|
|
75
|
-
|
|
63
|
+
g as normalizeView
|
|
76
64
|
};
|
|
@@ -2,6 +2,7 @@ import { jsxs as i, jsx as r } from "react/jsx-runtime";
|
|
|
2
2
|
import { G as o } from "../../../../index-BLCPauyN.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "../../../button/index.js";
|
|
5
|
+
import "../../../menu/context.js";
|
|
5
6
|
import '../../../../assets/style21.css';import '../../../../assets/style26.css';import '../../../../assets/styles3.css';import '../../../../assets/style18.css';import '../../../../assets/style17.css';import '../../../../assets/styles5.css';import '../../../../assets/styles4.css';import '../../../../assets/style16.css';import '../../../../assets/style19.css';import '../../../../assets/style15.css';import '../../../../assets/style14.css';import '../../../../assets/style13.css';import '../../../../assets/prosemirror.css';import '../../../../assets/style12.css';import '../../../../assets/style11.css';import '../../../../assets/style9.css';import '../../../../assets/styles.css';import '../../../../assets/style6.css';import '../../../../assets/style5.css';import '../../../../assets/style4.css';import '../../../../assets/style3.css';import '../../../../assets/style2.css';import '../../../../assets/style.css';import '../../../../assets/style10.css';import '../../../../assets/style7.css';import '../../../../assets/style8.css';import '../../../../assets/styles2.css';import '../../../../assets/style20.css';/* empty css */
|
|
6
7
|
/* empty css */
|
|
7
8
|
import "../../../../style-CWAa57kN.js";
|
|
@@ -43,7 +44,7 @@ import "../../slots/property/context.js";
|
|
|
43
44
|
/* empty css */
|
|
44
45
|
import "../../../tag/index.js";
|
|
45
46
|
/* empty css */
|
|
46
|
-
const
|
|
47
|
+
const X = ({ children: t }) => /* @__PURE__ */ i("div", { className: "data-view-layout-grid__group", children: [
|
|
47
48
|
/* @__PURE__ */ i(o.Header, { className: "data-view-layout-grid__group__header", children: [
|
|
48
49
|
/* @__PURE__ */ r(o.Checkbox, {}),
|
|
49
50
|
/* @__PURE__ */ i("h2", { className: "data-view-layout-grid__group__heading", children: [
|
|
@@ -54,5 +55,5 @@ const W = ({ children: t }) => /* @__PURE__ */ i("div", { className: "data-view-
|
|
|
54
55
|
/* @__PURE__ */ r("div", { className: "data-view-layout-grid__group__grid", children: t })
|
|
55
56
|
] });
|
|
56
57
|
export {
|
|
57
|
-
|
|
58
|
+
X as Group
|
|
58
59
|
};
|
|
@@ -2,6 +2,7 @@ import { jsxs as t, jsx as o } from "react/jsx-runtime";
|
|
|
2
2
|
import { G as r } from "../../../../index-BLCPauyN.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "../../../button/index.js";
|
|
5
|
+
import "../../../menu/context.js";
|
|
5
6
|
import '../../../../assets/style22.css';import '../../../../assets/style26.css';import '../../../../assets/styles3.css';import '../../../../assets/style18.css';import '../../../../assets/style17.css';import '../../../../assets/styles5.css';import '../../../../assets/styles4.css';import '../../../../assets/style16.css';import '../../../../assets/style19.css';import '../../../../assets/style15.css';import '../../../../assets/style14.css';import '../../../../assets/style13.css';import '../../../../assets/prosemirror.css';import '../../../../assets/style12.css';import '../../../../assets/style11.css';import '../../../../assets/style9.css';import '../../../../assets/styles.css';import '../../../../assets/style6.css';import '../../../../assets/style5.css';import '../../../../assets/style4.css';import '../../../../assets/style3.css';import '../../../../assets/style2.css';import '../../../../assets/style.css';import '../../../../assets/style10.css';import '../../../../assets/style7.css';import '../../../../assets/style8.css';import '../../../../assets/styles2.css';import '../../../../assets/style20.css';/* empty css */
|
|
6
7
|
/* empty css */
|
|
7
8
|
import "../../../../style-CWAa57kN.js";
|
|
@@ -43,7 +44,7 @@ import "../../slots/property/context.js";
|
|
|
43
44
|
/* empty css */
|
|
44
45
|
import "../../../tag/index.js";
|
|
45
46
|
/* empty css */
|
|
46
|
-
const
|
|
47
|
+
const X = ({ children: i }) => /* @__PURE__ */ t("div", { className: "data-view-layout-kanban__group", children: [
|
|
47
48
|
/* @__PURE__ */ t(r.Header, { className: "data-view-layout-kanban__group__header", children: [
|
|
48
49
|
/* @__PURE__ */ o(r.Checkbox, { className: "data-view-layout-kanban__group__checkbox" }),
|
|
49
50
|
/* @__PURE__ */ t("h2", { className: "data-view-layout-kanban__group__heading", children: [
|
|
@@ -54,5 +55,5 @@ const W = ({ children: i }) => /* @__PURE__ */ t("div", { className: "data-view-
|
|
|
54
55
|
/* @__PURE__ */ o("ul", { className: "data-view-layout-kanban__group__list", children: i })
|
|
55
56
|
] });
|
|
56
57
|
export {
|
|
57
|
-
|
|
58
|
+
X as Group
|
|
58
59
|
};
|
|
@@ -2,6 +2,7 @@ import { jsxs as i, jsx as o } from "react/jsx-runtime";
|
|
|
2
2
|
import { G as t } from "../../../../index-BLCPauyN.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "../../../button/index.js";
|
|
5
|
+
import "../../../menu/context.js";
|
|
5
6
|
import '../../../../assets/style23.css';import '../../../../assets/style26.css';import '../../../../assets/styles3.css';import '../../../../assets/style18.css';import '../../../../assets/style17.css';import '../../../../assets/styles5.css';import '../../../../assets/styles4.css';import '../../../../assets/style16.css';import '../../../../assets/style19.css';import '../../../../assets/style15.css';import '../../../../assets/style14.css';import '../../../../assets/style13.css';import '../../../../assets/prosemirror.css';import '../../../../assets/style12.css';import '../../../../assets/style11.css';import '../../../../assets/style9.css';import '../../../../assets/styles.css';import '../../../../assets/style6.css';import '../../../../assets/style5.css';import '../../../../assets/style4.css';import '../../../../assets/style3.css';import '../../../../assets/style2.css';import '../../../../assets/style.css';import '../../../../assets/style10.css';import '../../../../assets/style7.css';import '../../../../assets/style8.css';import '../../../../assets/styles2.css';import '../../../../assets/style20.css';/* empty css */
|
|
6
7
|
/* empty css */
|
|
7
8
|
import "../../../../style-CWAa57kN.js";
|
|
@@ -43,7 +44,7 @@ import "../../slots/property/context.js";
|
|
|
43
44
|
/* empty css */
|
|
44
45
|
import "../../../tag/index.js";
|
|
45
46
|
/* empty css */
|
|
46
|
-
const
|
|
47
|
+
const X = ({ children: r }) => /* @__PURE__ */ i("div", { className: "data-view-layout-list__group", children: [
|
|
47
48
|
/* @__PURE__ */ i(t.Header, { className: "data-view-layout-list__group__header", children: [
|
|
48
49
|
/* @__PURE__ */ o(t.Checkbox, { className: "data-view-layout-list__group__checkbox" }),
|
|
49
50
|
/* @__PURE__ */ i("h2", { className: "data-view-layout-list__group__heading", children: [
|
|
@@ -54,5 +55,5 @@ const W = ({ children: r }) => /* @__PURE__ */ i("div", { className: "data-view-
|
|
|
54
55
|
/* @__PURE__ */ o("div", { className: "data-view-layout-list__group__list", children: r })
|
|
55
56
|
] });
|
|
56
57
|
export {
|
|
57
|
-
|
|
58
|
+
X as Group
|
|
58
59
|
};
|
|
@@ -37,13 +37,14 @@ import "../../../../match-sorter.esm-MNVE8H_6.js";
|
|
|
37
37
|
/* empty css */
|
|
38
38
|
import { R as i } from "../../../../index-CLl-PPjx.js";
|
|
39
39
|
import "../../slots/group/context.js";
|
|
40
|
+
import "../../../menu/context.js";
|
|
40
41
|
/* empty css */
|
|
41
42
|
import "../../slots/item/context.js";
|
|
42
43
|
import "../../slots/property/context.js";
|
|
43
44
|
/* empty css */
|
|
44
45
|
import "../../../tag/index.js";
|
|
45
46
|
/* empty css */
|
|
46
|
-
const
|
|
47
|
+
const Z = () => {
|
|
47
48
|
const { selection: m, placements: t } = i.use(), r = t.property.length + (t.thumbnail ? 1 : 0) + 1;
|
|
48
49
|
return /* @__PURE__ */ p("tr", { className: "data-view-layout-table__empty", children: [
|
|
49
50
|
m && /* @__PURE__ */ o("td", {}),
|
|
@@ -51,5 +52,5 @@ const Y = () => {
|
|
|
51
52
|
] });
|
|
52
53
|
};
|
|
53
54
|
export {
|
|
54
|
-
|
|
55
|
+
Z as Empty
|
|
55
56
|
};
|
|
@@ -2,6 +2,7 @@ import { jsxs as i, jsx as t } from "react/jsx-runtime";
|
|
|
2
2
|
import { G as r } from "../../../../index-BLCPauyN.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "../../../button/index.js";
|
|
5
|
+
import "../../../menu/context.js";
|
|
5
6
|
import '../../../../assets/style24.css';import '../../../../assets/style26.css';import '../../../../assets/styles3.css';import '../../../../assets/style18.css';import '../../../../assets/style17.css';import '../../../../assets/styles5.css';import '../../../../assets/styles4.css';import '../../../../assets/style16.css';import '../../../../assets/style19.css';import '../../../../assets/style15.css';import '../../../../assets/style14.css';import '../../../../assets/style13.css';import '../../../../assets/prosemirror.css';import '../../../../assets/style12.css';import '../../../../assets/style11.css';import '../../../../assets/style9.css';import '../../../../assets/styles.css';import '../../../../assets/style6.css';import '../../../../assets/style5.css';import '../../../../assets/style4.css';import '../../../../assets/style3.css';import '../../../../assets/style2.css';import '../../../../assets/style.css';import '../../../../assets/style10.css';import '../../../../assets/style7.css';import '../../../../assets/style8.css';import '../../../../assets/styles2.css';import '../../../../assets/style20.css';/* empty css */
|
|
6
7
|
import { R as e } from "../../../../index-CLl-PPjx.js";
|
|
7
8
|
import "../../slots/item/context.js";
|
|
@@ -43,7 +44,7 @@ import "../../slots/property/context.js";
|
|
|
43
44
|
/* empty css */
|
|
44
45
|
import "../../../tag/index.js";
|
|
45
46
|
/* empty css */
|
|
46
|
-
const
|
|
47
|
+
const oo = ({ children: p }) => {
|
|
47
48
|
const { placements: m, selection: o } = e.use(), a = m.property.length + (m.thumbnail ? 1 : 0) + ((o == null ? void 0 : o.mode) === "single" ? 1 : 0) + 2;
|
|
48
49
|
return /* @__PURE__ */ i("tbody", { className: "data-view-layout-table__group", children: [
|
|
49
50
|
/* @__PURE__ */ i(
|
|
@@ -71,5 +72,5 @@ const $ = ({ children: p }) => {
|
|
|
71
72
|
] });
|
|
72
73
|
};
|
|
73
74
|
export {
|
|
74
|
-
|
|
75
|
+
oo as Group
|
|
75
76
|
};
|
|
@@ -39,6 +39,7 @@ import "../../../../match-sorter.esm-MNVE8H_6.js";
|
|
|
39
39
|
/* empty css */
|
|
40
40
|
import { R as n } from "../../../../index-CLl-PPjx.js";
|
|
41
41
|
import "../../slots/group/context.js";
|
|
42
|
+
import "../../../menu/context.js";
|
|
42
43
|
/* empty css */
|
|
43
44
|
import "../../slots/item/context.js";
|
|
44
45
|
import "../../slots/property/context.js";
|
|
@@ -99,7 +100,7 @@ const u = /* @__PURE__ */ new Map([
|
|
|
99
100
|
]
|
|
100
101
|
]), d = e.forwardRef((l, a) => /* @__PURE__ */ e.createElement(p, { ref: a, ...l, weights: u }));
|
|
101
102
|
d.displayName = "ArrowUpIcon";
|
|
102
|
-
const
|
|
103
|
+
const n0 = ({ children: l }) => {
|
|
103
104
|
const { placements: a, selection: m, view: i } = n.use();
|
|
104
105
|
return /* @__PURE__ */ t(
|
|
105
106
|
"div",
|
|
@@ -131,5 +132,5 @@ const i0 = ({ children: l }) => {
|
|
|
131
132
|
);
|
|
132
133
|
};
|
|
133
134
|
export {
|
|
134
|
-
|
|
135
|
+
n0 as Root
|
|
135
136
|
};
|
|
@@ -2,6 +2,7 @@ import { jsxs as r, jsx as o } from "react/jsx-runtime";
|
|
|
2
2
|
import { G as t } from "../../../../index-BLCPauyN.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "../../../button/index.js";
|
|
5
|
+
import "../../../menu/context.js";
|
|
5
6
|
import '../../../../assets/style25.css';import '../../../../assets/style26.css';import '../../../../assets/styles3.css';import '../../../../assets/style18.css';import '../../../../assets/style17.css';import '../../../../assets/styles5.css';import '../../../../assets/styles4.css';import '../../../../assets/style16.css';import '../../../../assets/style19.css';import '../../../../assets/style15.css';import '../../../../assets/style14.css';import '../../../../assets/style13.css';import '../../../../assets/prosemirror.css';import '../../../../assets/style12.css';import '../../../../assets/style11.css';import '../../../../assets/style9.css';import '../../../../assets/styles.css';import '../../../../assets/style6.css';import '../../../../assets/style5.css';import '../../../../assets/style4.css';import '../../../../assets/style3.css';import '../../../../assets/style2.css';import '../../../../assets/style.css';import '../../../../assets/style10.css';import '../../../../assets/style7.css';import '../../../../assets/style8.css';import '../../../../assets/styles2.css';import '../../../../assets/style20.css';/* empty css */
|
|
6
7
|
/* empty css */
|
|
7
8
|
import "../../../../style-CWAa57kN.js";
|
|
@@ -43,7 +44,7 @@ import "../../slots/property/context.js";
|
|
|
43
44
|
/* empty css */
|
|
44
45
|
import "../../../tag/index.js";
|
|
45
46
|
/* empty css */
|
|
46
|
-
const
|
|
47
|
+
const X = ({ children: i }) => /* @__PURE__ */ r("div", { className: "data-view-layout-tile__group", children: [
|
|
47
48
|
/* @__PURE__ */ r(t.Header, { className: "data-view-layout-tile__group__header", children: [
|
|
48
49
|
/* @__PURE__ */ o(t.Checkbox, {}),
|
|
49
50
|
/* @__PURE__ */ r("h2", { className: "data-view-layout-tile__group__heading", children: [
|
|
@@ -54,5 +55,5 @@ const W = ({ children: i }) => /* @__PURE__ */ r("div", { className: "data-view-
|
|
|
54
55
|
/* @__PURE__ */ o("div", { className: "data-view-layout-tile__group__items", children: i })
|
|
55
56
|
] });
|
|
56
57
|
export {
|
|
57
|
-
|
|
58
|
+
X as Group
|
|
58
59
|
};
|
|
@@ -42,6 +42,7 @@ import "../../../../match-sorter.esm-MNVE8H_6.js";
|
|
|
42
42
|
/* empty css */
|
|
43
43
|
import { R as _ } from "../../../../index-CLl-PPjx.js";
|
|
44
44
|
import "../../slots/group/context.js";
|
|
45
|
+
import "../../../menu/context.js";
|
|
45
46
|
/* empty css */
|
|
46
47
|
import "../../slots/item/context.js";
|
|
47
48
|
import "../../slots/property/context.js";
|
|
@@ -83,7 +84,7 @@ const F = /* @__PURE__ */ new Map([
|
|
|
83
84
|
]
|
|
84
85
|
]), s = t.forwardRef((o, r) => /* @__PURE__ */ t.createElement(w, { ref: r, ...o, weights: F }));
|
|
85
86
|
s.displayName = "FunnelIcon";
|
|
86
|
-
const
|
|
87
|
+
const Z1 = ({ children: o }) => {
|
|
87
88
|
const { view: r, fields: c, setView: d, hide: a } = _.use(), [n, A] = g(r.filters.length > 0), h = (l) => {
|
|
88
89
|
d({ ...r, filters: l });
|
|
89
90
|
}, f = v(
|
|
@@ -136,5 +137,5 @@ const E1 = ({ children: o }) => {
|
|
|
136
137
|
] });
|
|
137
138
|
};
|
|
138
139
|
export {
|
|
139
|
-
|
|
140
|
+
Z1 as Controls
|
|
140
141
|
};
|
|
@@ -39,12 +39,13 @@ import { TextControl as c } from "../../../controls/text-control/index.js";
|
|
|
39
39
|
/* empty css */
|
|
40
40
|
import { R as l } from "../../../../index-CLl-PPjx.js";
|
|
41
41
|
import "../../slots/group/context.js";
|
|
42
|
+
import "../../../menu/context.js";
|
|
42
43
|
/* empty css */
|
|
43
44
|
import "../../slots/item/context.js";
|
|
44
45
|
import "../../slots/property/context.js";
|
|
45
46
|
/* empty css */
|
|
46
47
|
import "../../../tag/index.js";
|
|
47
|
-
const
|
|
48
|
+
const mr = ({}) => {
|
|
48
49
|
const { view: r, setView: t } = l.use(), i = (p) => {
|
|
49
50
|
t({ ...r, search: p });
|
|
50
51
|
}, m = () => {
|
|
@@ -74,5 +75,5 @@ const ir = ({}) => {
|
|
|
74
75
|
);
|
|
75
76
|
};
|
|
76
77
|
export {
|
|
77
|
-
|
|
78
|
+
mr as Search
|
|
78
79
|
};
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { Button as
|
|
3
|
-
import { Menu as
|
|
4
|
-
import * as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { a as A } from "../../../../DotsThreeVertical.es-uadrGk3y.js";
|
|
1
|
+
import { jsxs as s, jsx as p } from "react/jsx-runtime";
|
|
2
|
+
import { Button as c } from "../../../button/index.js";
|
|
3
|
+
import { Menu as f } from "../../../menu/index.js";
|
|
4
|
+
import * as l from "react";
|
|
5
|
+
import { p as d } from "../../../../IconBase.es-rM5tt24D.js";
|
|
6
|
+
import { a as u } from "../../../../DotsThreeVertical.es-uadrGk3y.js";
|
|
8
7
|
import '../../../../assets/style26.css';import '../../../../assets/styles3.css';import '../../../../assets/style18.css';import '../../../../assets/style17.css';import '../../../../assets/styles5.css';import '../../../../assets/styles4.css';import '../../../../assets/style16.css';import '../../../../assets/style19.css';import '../../../../assets/style15.css';import '../../../../assets/style14.css';import '../../../../assets/style13.css';import '../../../../assets/prosemirror.css';import '../../../../assets/style12.css';import '../../../../assets/style11.css';import '../../../../assets/style9.css';import '../../../../assets/styles.css';import '../../../../assets/style6.css';import '../../../../assets/style5.css';import '../../../../assets/style4.css';import '../../../../assets/style3.css';import '../../../../assets/style2.css';import '../../../../assets/style.css';import '../../../../assets/style10.css';import '../../../../assets/style7.css';import '../../../../assets/style8.css';import '../../../../assets/styles2.css';/* empty css */
|
|
9
8
|
import "../../../../style-CWAa57kN.js";
|
|
10
9
|
/* empty css */
|
|
@@ -39,67 +38,49 @@ import "../../../../match-sorter.esm-MNVE8H_6.js";
|
|
|
39
38
|
/* empty css */
|
|
40
39
|
/* empty css */
|
|
41
40
|
/* empty css */
|
|
42
|
-
import { R as
|
|
41
|
+
import { R as h } from "../../../../index-CLl-PPjx.js";
|
|
43
42
|
import "../../slots/group/context.js";
|
|
44
43
|
import "../../slots/item/context.js";
|
|
45
44
|
import "../../slots/property/context.js";
|
|
46
45
|
/* empty css */
|
|
47
46
|
import "../../../tag/index.js";
|
|
48
|
-
const
|
|
49
|
-
|
|
50
|
-
const
|
|
51
|
-
const { items:
|
|
52
|
-
|
|
53
|
-
|
|
47
|
+
const n = l.forwardRef((i, m) => /* @__PURE__ */ l.createElement(d, { ref: m, ...i, weights: u }));
|
|
48
|
+
n.displayName = "DotsThreeVerticalIcon";
|
|
49
|
+
const ar = ({}) => {
|
|
50
|
+
const { items: i, primaryKey: m, selection: t, actions: o } = h.use();
|
|
51
|
+
if (!t || t.count() === 0 || o.length < 1)
|
|
52
|
+
return;
|
|
53
|
+
const e = i.filter(
|
|
54
|
+
(r) => t == null ? void 0 : t.has(r[m])
|
|
55
|
+
);
|
|
56
|
+
return /* @__PURE__ */ s("div", { className: "data-view-part-footer__actions", children: [
|
|
57
|
+
o.length > 0 && /* @__PURE__ */ p(
|
|
58
|
+
f,
|
|
59
|
+
{
|
|
60
|
+
iconOnly: !0,
|
|
61
|
+
variant: "quiet",
|
|
62
|
+
"aria-label": "More Actions",
|
|
63
|
+
context: e,
|
|
64
|
+
items: o,
|
|
65
|
+
children: /* @__PURE__ */ p(n, {})
|
|
66
|
+
}
|
|
54
67
|
),
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
n.length > 0 && /* @__PURE__ */ p(
|
|
71
|
-
k,
|
|
72
|
-
{
|
|
73
|
-
iconOnly: !0,
|
|
74
|
-
variant: "quiet",
|
|
75
|
-
"aria-label": "More Actions",
|
|
76
|
-
items: n.map((r) => ({
|
|
77
|
-
id: r.id,
|
|
78
|
-
type: "action",
|
|
79
|
-
label: r.label,
|
|
80
|
-
icon: r.icon,
|
|
81
|
-
disabled: r.disabled,
|
|
82
|
-
onClick: () => a(r)
|
|
83
|
-
})),
|
|
84
|
-
children: /* @__PURE__ */ p(h, {})
|
|
85
|
-
}
|
|
86
|
-
),
|
|
87
|
-
g.reverse().map((r, t) => /* @__PURE__ */ u(
|
|
88
|
-
v,
|
|
89
|
-
{
|
|
90
|
-
variant: t === 0 ? "neutral" : "quiet",
|
|
91
|
-
size: "small",
|
|
92
|
-
onClick: () => a(r),
|
|
93
|
-
disabled: r.disabled,
|
|
94
|
-
children: [
|
|
95
|
-
r.icon && /* @__PURE__ */ p(r.icon, {}),
|
|
96
|
-
r.label
|
|
97
|
-
]
|
|
98
|
-
},
|
|
99
|
-
r.id
|
|
100
|
-
))
|
|
101
|
-
] });
|
|
68
|
+
o.filter((r) => r.type === "action").filter((r) => r.primary).reverse().map((r, a) => /* @__PURE__ */ s(
|
|
69
|
+
c,
|
|
70
|
+
{
|
|
71
|
+
variant: a === 0 ? "neutral" : "quiet",
|
|
72
|
+
size: "small",
|
|
73
|
+
onClick: () => r.onClick(e),
|
|
74
|
+
disabled: r.disabled,
|
|
75
|
+
children: [
|
|
76
|
+
r.icon && /* @__PURE__ */ p(r.icon, {}),
|
|
77
|
+
r.label
|
|
78
|
+
]
|
|
79
|
+
},
|
|
80
|
+
a
|
|
81
|
+
))
|
|
82
|
+
] });
|
|
102
83
|
};
|
|
103
84
|
export {
|
|
104
|
-
|
|
85
|
+
ar as Actions
|
|
105
86
|
};
|
|
@@ -38,6 +38,7 @@ import "../../../../match-sorter.esm-MNVE8H_6.js";
|
|
|
38
38
|
/* empty css */
|
|
39
39
|
import { R as n } from "../../../../index-CLl-PPjx.js";
|
|
40
40
|
import "../../slots/group/context.js";
|
|
41
|
+
import "../../../menu/context.js";
|
|
41
42
|
/* empty css */
|
|
42
43
|
import "../../slots/item/context.js";
|
|
43
44
|
import "../../slots/property/context.js";
|
|
@@ -45,7 +46,7 @@ import "../../slots/property/context.js";
|
|
|
45
46
|
import "../../../tag/index.js";
|
|
46
47
|
import { Actions as s } from "./actions.js";
|
|
47
48
|
import { Selection as g } from "./selection.js";
|
|
48
|
-
const
|
|
49
|
+
const mo = ({}) => {
|
|
49
50
|
const { view: o, items: r, setView: i } = n.use(), p = (m) => {
|
|
50
51
|
i({ ...o, page: m });
|
|
51
52
|
};
|
|
@@ -65,5 +66,5 @@ const po = ({}) => {
|
|
|
65
66
|
] });
|
|
66
67
|
};
|
|
67
68
|
export {
|
|
68
|
-
|
|
69
|
+
mo as Footer
|
|
69
70
|
};
|
|
@@ -37,12 +37,13 @@ import "../../../../match-sorter.esm-MNVE8H_6.js";
|
|
|
37
37
|
/* empty css */
|
|
38
38
|
import { R as m } from "../../../../index-CLl-PPjx.js";
|
|
39
39
|
import "../../slots/group/context.js";
|
|
40
|
+
import "../../../menu/context.js";
|
|
40
41
|
/* empty css */
|
|
41
42
|
import "../../slots/item/context.js";
|
|
42
43
|
import "../../slots/property/context.js";
|
|
43
44
|
/* empty css */
|
|
44
45
|
import "../../../tag/index.js";
|
|
45
|
-
const
|
|
46
|
+
const W = ({}) => {
|
|
46
47
|
const { selection: o } = m.use();
|
|
47
48
|
if (o)
|
|
48
49
|
return /* @__PURE__ */ r("div", { className: "data-view-part-footer__selection", children: [
|
|
@@ -58,5 +59,5 @@ const U = ({}) => {
|
|
|
58
59
|
] });
|
|
59
60
|
};
|
|
60
61
|
export {
|
|
61
|
-
|
|
62
|
+
W as Selection
|
|
62
63
|
};
|