@wrdagency/blockout 1.0.21 → 1.0.24
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/style11.css +1 -1
- package/dist/assets/style17.css +1 -1
- package/dist/assets/style18.css +1 -1
- package/dist/assets/style19.css +1 -1
- package/dist/assets/style20.css +1 -1
- package/dist/assets/style21.css +1 -1
- package/dist/assets/style22.css +1 -1
- package/dist/assets/style23.css +1 -1
- package/dist/assets/style24.css +1 -1
- package/dist/assets/style25.css +1 -1
- package/dist/assets/style28.css +1 -0
- package/dist/assets/styles5.css +1 -1
- package/dist/components/controls/base-popover-control/index.js +1 -1
- package/dist/components/controls/date-control/index.d.ts +10 -4
- package/dist/components/controls/date-control/index.js +71 -70
- package/dist/components/controls/date-control/picker.d.ts +8 -2
- package/dist/components/controls/date-control/picker.js +1 -1
- package/dist/components/controls/date-control/types.d.ts +0 -1
- package/dist/components/controls/date-control/types.js +0 -1
- package/dist/components/controls/date-control/util.js +7 -1602
- package/dist/components/controls/index.d.ts +1 -1
- package/dist/components/controls/index.js +18 -20
- package/dist/components/controls/recurrence-control/index.d.ts +7 -3
- package/dist/components/controls/recurrence-control/index.js +188 -124
- package/dist/components/controls/select-control/index.d.ts +0 -1
- package/dist/components/controls/select-control/index.js +0 -2
- package/dist/components/controls/tag-control/index.js +1 -1
- package/dist/components/controls/text-control/index.js +1 -1
- package/dist/components/data-view/data/filter.js +11 -13
- package/dist/components/data-view/data/layout.js +7 -4
- package/dist/components/data-view/data/options.js +142 -102
- package/dist/components/data-view/index.d.ts +3 -2
- package/dist/components/data-view/index.js +1 -1
- package/dist/components/data-view/layouts/grid/empty.js +1 -1
- package/dist/components/data-view/layouts/grid/group.js +12 -14
- package/dist/components/data-view/layouts/grid/item.js +6 -8
- package/dist/components/data-view/layouts/grid/root.js +1 -1
- package/dist/components/data-view/layouts/kanban/empty.js +1 -1
- package/dist/components/data-view/layouts/kanban/group.js +12 -14
- package/dist/components/data-view/layouts/kanban/item.js +6 -8
- package/dist/components/data-view/layouts/kanban/root.js +1 -1
- package/dist/components/data-view/layouts/list/empty.js +1 -1
- package/dist/components/data-view/layouts/list/group.js +12 -14
- package/dist/components/data-view/layouts/list/item.js +6 -8
- package/dist/components/data-view/layouts/list/root.js +1 -1
- package/dist/components/data-view/layouts/table/empty.js +6 -8
- package/dist/components/data-view/layouts/table/group.js +30 -25
- package/dist/components/data-view/layouts/table/item.js +7 -9
- package/dist/components/data-view/layouts/table/root.js +6 -8
- package/dist/components/data-view/layouts/tile/empty.d.ts +2 -0
- package/dist/components/data-view/layouts/tile/empty.js +6 -0
- package/dist/components/data-view/layouts/tile/group.d.ts +2 -0
- package/dist/components/data-view/layouts/tile/group.js +58 -0
- package/dist/components/data-view/layouts/tile/index.d.ts +3 -0
- package/dist/components/data-view/layouts/tile/index.js +8 -0
- package/dist/components/data-view/layouts/tile/item.d.ts +2 -0
- package/dist/components/data-view/layouts/tile/item.js +81 -0
- package/dist/components/data-view/layouts/tile/root.d.ts +2 -0
- package/dist/components/data-view/layouts/tile/root.js +6 -0
- package/dist/components/data-view/parts/body/index.js +8 -10
- package/dist/components/data-view/parts/controls/index.js +39 -41
- package/dist/components/data-view/parts/controls/search.js +6 -8
- package/dist/components/data-view/parts/filters/editor.js +5 -7
- package/dist/components/data-view/parts/footer/actions.js +6 -8
- package/dist/components/data-view/parts/footer/index.js +6 -8
- package/dist/components/data-view/parts/footer/selection.js +6 -8
- package/dist/components/data-view/parts/view-control/index.js +21 -23
- package/dist/components/data-view/root.d.ts +5 -3
- package/dist/components/data-view/root.js +51 -49
- package/dist/components/data-view/slots/group/checkbox.js +6 -8
- package/dist/components/data-view/slots/group/context.js +1 -1
- package/dist/components/data-view/slots/group/header.d.ts +3 -0
- package/dist/components/data-view/slots/group/header.js +12 -0
- package/dist/components/data-view/slots/group/icon.js +1 -1
- package/dist/components/data-view/slots/group/index.js +3 -2
- package/dist/components/data-view/slots/group/label.js +1 -1
- package/dist/components/data-view/slots/index.js +3 -3
- package/dist/components/data-view/slots/item/actions.js +1 -1
- package/dist/components/data-view/slots/item/checkbox.js +6 -8
- package/dist/components/data-view/slots/item/depth.js +3 -3
- package/dist/components/data-view/slots/item/description.js +1 -1
- package/dist/components/data-view/slots/item/index.js +1 -1
- package/dist/components/data-view/slots/item/properties.js +2 -2
- package/dist/components/data-view/slots/item/relations.js +3 -3
- package/dist/components/data-view/slots/item/tags.js +1 -1
- package/dist/components/data-view/slots/item/thumbnail.js +1 -1
- package/dist/components/data-view/slots/item/title.js +1 -1
- package/dist/components/data-view/slots/item/util.js +2 -2
- package/dist/components/data-view/slots/property/field/editable.js +5 -7
- package/dist/components/data-view/slots/property/field/index.js +1 -1
- package/dist/components/data-view/slots/property/field/static.js +1 -1
- package/dist/components/data-view/slots/property/index.js +1 -1
- package/dist/components/data-view/slots/property/label.js +1 -1
- package/dist/components/data-view/slots/root/checkbox.js +5 -7
- package/dist/components/data-view/slots/root/context.d.ts +1 -0
- package/dist/components/data-view/slots/root/index.js +1 -1
- package/dist/components/data-view/types/view.d.ts +1 -1
- package/dist/components/index.js +45 -47
- package/dist/components/menu/index.js +1 -1
- package/dist/{filter-BqYmWg3n.js → filter-DHK0UoZG.js} +11 -13
- package/dist/{index-CWkR83hZ.js → index-BLCPauyN.js} +16 -16
- package/dist/{index-BrUAPkzm.js → index-BnbjJBS4.js} +17 -19
- package/dist/{index-BdzBM_aG.js → index-CLl-PPjx.js} +3 -5
- package/dist/index.js +90 -92
- package/dist/parse-CdaSNXK6.js +1599 -0
- package/dist/{picker-Cfpntdfz.js → picker-aBRTIOUU.js} +165 -152
- package/dist/{types/date.js → style-D1AX7G7x.js} +191 -234
- package/package.json +1 -1
- package/dist/components/controls/select-control/options.d.ts +0 -7
- package/dist/components/controls/select-control/options.js +0 -9
- package/dist/options-Cfoqhxw2.js +0 -96
- package/dist/types/date.d.ts +0 -39
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as r, jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import '../../../../assets/style26.css';import '../../../../assets/
|
|
3
|
+
import '../../../../assets/style26.css';import '../../../../assets/style20.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/styles2.css';/* empty css */
|
|
4
4
|
import "../../../../style-CWAa57kN.js";
|
|
5
5
|
import { CheckboxControl as i } from "../../../controls/checkbox-control/index.js";
|
|
6
6
|
/* empty css */
|
|
@@ -26,25 +26,23 @@ import "../../../toolbar/index.js";
|
|
|
26
26
|
/* empty css */
|
|
27
27
|
/* empty css */
|
|
28
28
|
/* empty css */
|
|
29
|
-
import "../../../../
|
|
29
|
+
import "../../../../style-D1AX7G7x.js";
|
|
30
30
|
/* empty css */
|
|
31
31
|
import "../../../../match-sorter.esm-MNVE8H_6.js";
|
|
32
32
|
/* empty css */
|
|
33
|
-
|
|
33
|
+
/* empty css */
|
|
34
34
|
/* empty css */
|
|
35
35
|
/* empty css */
|
|
36
36
|
/* empty css */
|
|
37
|
-
/* empty css */
|
|
38
|
-
/* empty css */
|
|
39
37
|
/* empty css */
|
|
40
|
-
import { R as m } from "../../../../index-
|
|
38
|
+
import { R as m } from "../../../../index-CLl-PPjx.js";
|
|
41
39
|
import "../../slots/group/context.js";
|
|
42
40
|
/* empty css */
|
|
43
41
|
import "../../slots/item/context.js";
|
|
44
42
|
import "../../slots/property/context.js";
|
|
45
43
|
/* empty css */
|
|
46
44
|
import "../../../tag/index.js";
|
|
47
|
-
const
|
|
45
|
+
const U = ({}) => {
|
|
48
46
|
const { selection: o } = m.use();
|
|
49
47
|
if (o)
|
|
50
48
|
return /* @__PURE__ */ r("div", { className: "data-view-part-footer__selection", children: [
|
|
@@ -60,5 +58,5 @@ const X = ({}) => {
|
|
|
60
58
|
] });
|
|
61
59
|
};
|
|
62
60
|
export {
|
|
63
|
-
|
|
61
|
+
U as Selection
|
|
64
62
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as s, jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import { cn as b } from "../../../../utils/css.js";
|
|
3
|
-
import '../../../../assets/style26.css';import '../../../../assets/
|
|
3
|
+
import '../../../../assets/style26.css';import '../../../../assets/style20.css';import '../../../../assets/styles3.css';import '../../../../assets/style18.css';import '../../../../assets/style17.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/style11.css';import '../../../../assets/style9.css';import '../../../../assets/style8.css';import '../../../../assets/styles2.css';import '../../../../assets/styles.css';import '../../../../assets/style6.css';import '../../../../assets/style5.css';import '../../../../assets/style3.css';import '../../../../assets/style2.css';import '../../../../assets/style.css';import '../../../../assets/style10.css';import '../../../../assets/style7.css';import '../../../../assets/index19.css';/* empty css */
|
|
4
4
|
import * as a from "react";
|
|
5
5
|
import { useMemo as c } from "react";
|
|
6
6
|
/* empty css */
|
|
@@ -28,20 +28,18 @@ import "../../../toolbar/index.js";
|
|
|
28
28
|
/* empty css */
|
|
29
29
|
/* empty css */
|
|
30
30
|
/* empty css */
|
|
31
|
-
import "../../../../
|
|
31
|
+
import "../../../../style-D1AX7G7x.js";
|
|
32
32
|
/* empty css */
|
|
33
33
|
import { SelectControl as Z } from "../../../controls/select-control/control.js";
|
|
34
|
-
import "../../../../options-Cfoqhxw2.js";
|
|
35
34
|
import "../../../../match-sorter.esm-MNVE8H_6.js";
|
|
36
35
|
/* empty css */
|
|
36
|
+
import { ToggleControl as E } from "../../../controls/toggle-control/index.js";
|
|
37
37
|
import { ToggleGroupControl as n } from "../../../controls/toggle-group-control/index.js";
|
|
38
38
|
/* empty css */
|
|
39
39
|
/* empty css */
|
|
40
|
-
/* empty css */
|
|
41
40
|
/* empty css */
|
|
42
|
-
import { ToggleControl as E } from "../../../controls/toggle-control/index.js";
|
|
43
41
|
import { viewFieldsToListItems as _, getLayoutOptions as y, getSortDirectionOptions as H, getRelationshipVisiblityOptions as C, listItemsToViewFields as F } from "../../data/options.js";
|
|
44
|
-
import { R as N } from "../../../../index-
|
|
42
|
+
import { R as N } from "../../../../index-CLl-PPjx.js";
|
|
45
43
|
import "../../slots/group/context.js";
|
|
46
44
|
/* empty css */
|
|
47
45
|
import "../../slots/item/context.js";
|
|
@@ -102,27 +100,27 @@ const S = /* @__PURE__ */ new Map([
|
|
|
102
100
|
]
|
|
103
101
|
]), A = a.forwardRef((m, t) => /* @__PURE__ */ a.createElement(u, { ref: t, ...m, weights: S }));
|
|
104
102
|
A.displayName = "SelectionSlashIcon";
|
|
105
|
-
const
|
|
106
|
-
const { view: t, setView: d, fields:
|
|
103
|
+
const _0 = ({ className: m }) => {
|
|
104
|
+
const { view: t, setView: d, fields: r, hierarchy: g } = N.use(), l = (e, w) => {
|
|
107
105
|
d({
|
|
108
106
|
...t,
|
|
109
107
|
[e]: w
|
|
110
108
|
});
|
|
111
109
|
}, V = c(
|
|
112
|
-
() =>
|
|
110
|
+
() => r.filter((e) => e.sorting.sortable).map((e) => ({
|
|
113
111
|
value: e.id,
|
|
114
112
|
label: e.display.label
|
|
115
113
|
})),
|
|
116
|
-
[t,
|
|
114
|
+
[t, r]
|
|
117
115
|
), i = c(
|
|
118
|
-
() =>
|
|
116
|
+
() => r.filter((e) => e.sorting.groupable).map((e) => ({
|
|
119
117
|
value: e.id,
|
|
120
118
|
label: e.display.label
|
|
121
119
|
})),
|
|
122
|
-
[
|
|
120
|
+
[r]
|
|
123
121
|
), M = c(
|
|
124
|
-
() => _(t.fields,
|
|
125
|
-
[
|
|
122
|
+
() => _(t.fields, r),
|
|
123
|
+
[r]
|
|
126
124
|
), p = !!t.search;
|
|
127
125
|
return /* @__PURE__ */ s("div", { className: b("component-view-control", m), children: [
|
|
128
126
|
/* @__PURE__ */ o("fieldset", { className: "component-view-control__row", children: /* @__PURE__ */ o(
|
|
@@ -130,7 +128,7 @@ const C0 = ({ className: m }) => {
|
|
|
130
128
|
{
|
|
131
129
|
label: "Layout",
|
|
132
130
|
value: t.layout,
|
|
133
|
-
onChangeValue: (e) =>
|
|
131
|
+
onChangeValue: (e) => l("layout", e),
|
|
134
132
|
options: y(i.length > 0)
|
|
135
133
|
}
|
|
136
134
|
) }),
|
|
@@ -141,7 +139,7 @@ const C0 = ({ className: m }) => {
|
|
|
141
139
|
className: "component-view-control__row__grow",
|
|
142
140
|
label: "Sort by",
|
|
143
141
|
value: t.sortBy,
|
|
144
|
-
onChangeValue: (e) =>
|
|
142
|
+
onChangeValue: (e) => l("sortBy", e),
|
|
145
143
|
options: V,
|
|
146
144
|
disabled: p,
|
|
147
145
|
help: p && "Sorting by search relevance."
|
|
@@ -151,7 +149,7 @@ const C0 = ({ className: m }) => {
|
|
|
151
149
|
n,
|
|
152
150
|
{
|
|
153
151
|
value: t.sortOrder,
|
|
154
|
-
onChangeValue: (e) =>
|
|
152
|
+
onChangeValue: (e) => l("sortOrder", e),
|
|
155
153
|
options: H(),
|
|
156
154
|
disabled: p,
|
|
157
155
|
noLabels: !0
|
|
@@ -165,7 +163,7 @@ const C0 = ({ className: m }) => {
|
|
|
165
163
|
className: "component-view-control__row__grow",
|
|
166
164
|
label: "Group by",
|
|
167
165
|
value: t.groupBy || "",
|
|
168
|
-
onChangeValue: (e) =>
|
|
166
|
+
onChangeValue: (e) => l("groupBy", e),
|
|
169
167
|
options: [{ value: "", label: "" }, ...i]
|
|
170
168
|
}
|
|
171
169
|
),
|
|
@@ -176,7 +174,7 @@ const C0 = ({ className: m }) => {
|
|
|
176
174
|
onLabel: /* @__PURE__ */ o(v, {}),
|
|
177
175
|
offLabel: /* @__PURE__ */ o(A, {}),
|
|
178
176
|
value: !t.includeEmptyGroups,
|
|
179
|
-
onChangeValue: (e) =>
|
|
177
|
+
onChangeValue: (e) => l("includeEmptyGroups", !e),
|
|
180
178
|
disabled: !t.groupBy
|
|
181
179
|
}
|
|
182
180
|
) }),
|
|
@@ -184,7 +182,7 @@ const C0 = ({ className: m }) => {
|
|
|
184
182
|
n,
|
|
185
183
|
{
|
|
186
184
|
value: t.groupOrder,
|
|
187
|
-
onChangeValue: (e) =>
|
|
185
|
+
onChangeValue: (e) => l("groupOrder", e),
|
|
188
186
|
options: H(),
|
|
189
187
|
noLabels: !0,
|
|
190
188
|
disabled: !t.groupBy
|
|
@@ -197,7 +195,7 @@ const C0 = ({ className: m }) => {
|
|
|
197
195
|
className: "component-view-control__row__grow",
|
|
198
196
|
label: "Sub-items",
|
|
199
197
|
value: t.relationships,
|
|
200
|
-
onChangeValue: (e) =>
|
|
198
|
+
onChangeValue: (e) => l("relationships", e),
|
|
201
199
|
options: C()
|
|
202
200
|
}
|
|
203
201
|
) }),
|
|
@@ -207,12 +205,12 @@ const C0 = ({ className: m }) => {
|
|
|
207
205
|
className: "component-view-control__row__grow",
|
|
208
206
|
label: "Properties",
|
|
209
207
|
value: M,
|
|
210
|
-
onChangeValue: (e) =>
|
|
208
|
+
onChangeValue: (e) => l("fields", F(e)),
|
|
211
209
|
multiple: !0
|
|
212
210
|
}
|
|
213
211
|
) })
|
|
214
212
|
] });
|
|
215
213
|
};
|
|
216
214
|
export {
|
|
217
|
-
|
|
215
|
+
_0 as ViewControl
|
|
218
216
|
};
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { SelectionMode } from '../../hooks';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
+
import { RootContext } from './slots/root/context';
|
|
3
4
|
import { Field, View } from './types';
|
|
4
5
|
import { Action } from './types/actions';
|
|
5
6
|
import { HierarchyDefinition } from './types/hierarchy';
|
|
6
|
-
interface RootProps<TData extends object = object> {
|
|
7
|
+
export interface RootProps<TData extends object = object> {
|
|
8
|
+
className?: string;
|
|
7
9
|
items: TData[];
|
|
8
10
|
primaryKey: keyof TData;
|
|
9
11
|
view: View;
|
|
@@ -13,6 +15,6 @@ interface RootProps<TData extends object = object> {
|
|
|
13
15
|
hierarchy?: HierarchyDefinition<TData>;
|
|
14
16
|
selectable?: SelectionMode | true;
|
|
15
17
|
children?: ReactNode;
|
|
18
|
+
hide?: RootContext["hide"];
|
|
16
19
|
}
|
|
17
|
-
export declare const Root: <TData extends object = object>({ items, primaryKey, view, setView, selectable: selectionMode, fields, actions, hierarchy, children, }: RootProps<TData>) => import("react/jsx-runtime").JSX.Element;
|
|
18
|
-
export {};
|
|
20
|
+
export declare const Root: <TData extends object = object>({ className, items, primaryKey, view, setView, selectable: selectionMode, fields, actions, hierarchy, children, hide, }: RootProps<TData>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import { jsx as n, jsxs as
|
|
1
|
+
import { jsx as n, jsxs as j } from "react/jsx-runtime";
|
|
2
2
|
import { useMemo as a } from "react";
|
|
3
|
-
import { useHotkey as
|
|
4
|
-
import { useSelection as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
3
|
+
import { useHotkey as k } from "../../hooks/keyboard.js";
|
|
4
|
+
import { useSelection as E } from "../../hooks/selection.js";
|
|
5
|
+
import { cn as S } from "../../utils/css.js";
|
|
6
|
+
import { noop as A } from "../../utils/noop.js";
|
|
7
|
+
import { useApplyView as B } from "./data/apply.js";
|
|
8
|
+
import { getPlacements as C, getPlacement as m } from "./data/fields.js";
|
|
9
|
+
import { Body as D } from "./parts/body/index.js";
|
|
10
|
+
import { Controls as F } from "./parts/controls/index.js";
|
|
10
11
|
import "./parts/filters/index.js";
|
|
11
|
-
import { Footer as
|
|
12
|
-
import '../../assets/style26.css';import '../../assets/
|
|
12
|
+
import { Footer as H } from "./parts/footer/index.js";
|
|
13
|
+
import '../../assets/style26.css';import '../../assets/style20.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/style8.css';import '../../assets/styles2.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/root.css';/* empty css */
|
|
13
14
|
/* empty css */
|
|
14
15
|
/* empty css */
|
|
15
16
|
/* empty css */
|
|
@@ -35,18 +36,16 @@ import "../toolbar/index.js";
|
|
|
35
36
|
/* empty css */
|
|
36
37
|
/* empty css */
|
|
37
38
|
/* empty css */
|
|
38
|
-
import "../../
|
|
39
|
+
import "../../style-D1AX7G7x.js";
|
|
39
40
|
/* empty css */
|
|
40
41
|
import "../../match-sorter.esm-MNVE8H_6.js";
|
|
41
42
|
/* empty css */
|
|
42
|
-
|
|
43
|
+
/* empty css */
|
|
43
44
|
/* empty css */
|
|
44
45
|
/* empty css */
|
|
45
46
|
/* empty css */
|
|
46
|
-
/* empty css */
|
|
47
|
-
/* empty css */
|
|
48
47
|
/* empty css */
|
|
49
|
-
import { R as
|
|
48
|
+
import { R as N } from "../../index-CLl-PPjx.js";
|
|
50
49
|
import "./slots/group/context.js";
|
|
51
50
|
/* empty css */
|
|
52
51
|
import "./slots/item/context.js";
|
|
@@ -54,55 +53,58 @@ import "./slots/property/context.js";
|
|
|
54
53
|
/* empty css */
|
|
55
54
|
import "../tag/index.js";
|
|
56
55
|
import "./parts/view-control/index.js";
|
|
57
|
-
const
|
|
56
|
+
const qo = ({
|
|
57
|
+
className: s,
|
|
58
58
|
items: p,
|
|
59
59
|
primaryKey: i,
|
|
60
|
-
view:
|
|
61
|
-
setView:
|
|
60
|
+
view: o,
|
|
61
|
+
setView: f = A,
|
|
62
62
|
selectable: c,
|
|
63
|
-
fields:
|
|
64
|
-
actions:
|
|
65
|
-
hierarchy:
|
|
66
|
-
children:
|
|
63
|
+
fields: t,
|
|
64
|
+
actions: g = [],
|
|
65
|
+
hierarchy: l,
|
|
66
|
+
children: b,
|
|
67
|
+
hide: e = []
|
|
67
68
|
}) => {
|
|
68
|
-
const
|
|
69
|
-
() => p.map((
|
|
69
|
+
const d = a(
|
|
70
|
+
() => p.map((u) => u[i]),
|
|
70
71
|
[p, i]
|
|
71
|
-
),
|
|
72
|
+
), x = B(p, t, o, l, i), r = c ? E(
|
|
72
73
|
c === !0 ? "multiple" : c,
|
|
73
|
-
|
|
74
|
+
d
|
|
74
75
|
) : void 0;
|
|
75
|
-
|
|
76
|
-
(!document.activeElement || document.activeElement === document.body && (r == null ? void 0 : r.mode) === "multiple") && (
|
|
76
|
+
k("ctrl+a", (u) => {
|
|
77
|
+
(!document.activeElement || document.activeElement === document.body && (r == null ? void 0 : r.mode) === "multiple") && (u.preventDefault(), r == null || r.all());
|
|
77
78
|
});
|
|
78
|
-
const
|
|
79
|
+
const P = a(
|
|
79
80
|
() => ({
|
|
80
|
-
thumbnail: m("thumbnail",
|
|
81
|
-
title: m("title",
|
|
82
|
-
description: m("description",
|
|
83
|
-
tags: m("tags",
|
|
84
|
-
url: m("url",
|
|
85
|
-
property:
|
|
81
|
+
thumbnail: m("thumbnail", t, o),
|
|
82
|
+
title: m("title", t, o),
|
|
83
|
+
description: m("description", t, o),
|
|
84
|
+
tags: m("tags", t, o),
|
|
85
|
+
url: m("url", t, o),
|
|
86
|
+
property: C("property", t, o)
|
|
86
87
|
}),
|
|
87
|
-
[
|
|
88
|
-
),
|
|
89
|
-
groups:
|
|
88
|
+
[t, o]
|
|
89
|
+
), R = {
|
|
90
|
+
groups: x,
|
|
90
91
|
items: p,
|
|
91
92
|
primaryKey: i,
|
|
92
|
-
fields:
|
|
93
|
-
view:
|
|
94
|
-
setView:
|
|
93
|
+
fields: t,
|
|
94
|
+
view: o,
|
|
95
|
+
setView: f,
|
|
95
96
|
selection: r,
|
|
96
|
-
actions:
|
|
97
|
-
placements:
|
|
98
|
-
hierarchy:
|
|
97
|
+
actions: g,
|
|
98
|
+
placements: P,
|
|
99
|
+
hierarchy: l,
|
|
100
|
+
hide: e
|
|
99
101
|
};
|
|
100
|
-
return /* @__PURE__ */ n(
|
|
101
|
-
/* @__PURE__ */ n(
|
|
102
|
-
/* @__PURE__ */ n(
|
|
103
|
-
/* @__PURE__ */ n(
|
|
102
|
+
return /* @__PURE__ */ n(N.Provider, { context: R, children: /* @__PURE__ */ j("div", { className: S("component-data-view", s), children: [
|
|
103
|
+
!e.includes("controls") && /* @__PURE__ */ n(F, { children: b }),
|
|
104
|
+
/* @__PURE__ */ n(D, {}),
|
|
105
|
+
!e.includes("footer") && /* @__PURE__ */ n(H, {})
|
|
104
106
|
] }) });
|
|
105
107
|
};
|
|
106
108
|
export {
|
|
107
|
-
|
|
109
|
+
qo as Root
|
|
108
110
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import '../../../../assets/
|
|
3
|
+
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/styles2.css';/* empty css */
|
|
4
4
|
import "../../../../style-CWAa57kN.js";
|
|
5
5
|
import "../../../controls/checkbox-control/index.js";
|
|
6
6
|
/* empty css */
|
|
@@ -26,19 +26,17 @@ import "../../../toolbar/index.js";
|
|
|
26
26
|
/* empty css */
|
|
27
27
|
/* empty css */
|
|
28
28
|
/* empty css */
|
|
29
|
-
import "../../../../
|
|
29
|
+
import "../../../../style-D1AX7G7x.js";
|
|
30
30
|
/* empty css */
|
|
31
31
|
import "../../../../match-sorter.esm-MNVE8H_6.js";
|
|
32
32
|
/* empty css */
|
|
33
|
-
|
|
33
|
+
/* empty css */
|
|
34
34
|
/* empty css */
|
|
35
35
|
/* empty css */
|
|
36
36
|
/* empty css */
|
|
37
|
-
/* empty css */
|
|
38
|
-
/* empty css */
|
|
39
37
|
/* empty css */
|
|
40
|
-
import { C as
|
|
41
|
-
import "../../../../index-
|
|
38
|
+
import { C as O } from "../../../../index-BLCPauyN.js";
|
|
39
|
+
import "../../../../index-CLl-PPjx.js";
|
|
42
40
|
export {
|
|
43
|
-
|
|
41
|
+
O as Checkbox
|
|
44
42
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as i } from "react/jsx-runtime";
|
|
2
2
|
import { createContext as n, useContext as p, useMemo as c } from "react";
|
|
3
|
-
import { R as a } from "../../../../index-
|
|
3
|
+
import { R as a } from "../../../../index-CLl-PPjx.js";
|
|
4
4
|
const t = n(void 0), f = () => p(t), y = ({ children: s, group: e }) => {
|
|
5
5
|
const { selection: o, primaryKey: r } = a.use(), m = c(
|
|
6
6
|
() => o == null ? void 0 : o.query(e.items.map((u) => u[r])),
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { R as s } from "../../../../index-CLl-PPjx.js";
|
|
3
|
+
const u = ({
|
|
4
|
+
as: o,
|
|
5
|
+
...r
|
|
6
|
+
}) => {
|
|
7
|
+
const { hide: e } = s.use();
|
|
8
|
+
return e.includes("group.header") ? void 0 : /* @__PURE__ */ t(o || "div", { ...r });
|
|
9
|
+
};
|
|
10
|
+
export {
|
|
11
|
+
u as Header
|
|
12
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { G as r } from "../../../index-
|
|
2
|
-
import { I as p, P as a } from "../../../index-
|
|
3
|
-
import { R as m } from "../../../index-
|
|
1
|
+
import { G as r } from "../../../index-BLCPauyN.js";
|
|
2
|
+
import { I as p, P as a } from "../../../index-BnbjJBS4.js";
|
|
3
|
+
import { R as m } from "../../../index-CLl-PPjx.js";
|
|
4
4
|
export {
|
|
5
5
|
r as GroupSlot,
|
|
6
6
|
p as ItemSlot,
|
|
@@ -5,7 +5,7 @@ import * as i from "react";
|
|
|
5
5
|
import { useMemo as p } from "react";
|
|
6
6
|
import { w as d } from "../../../../SSRBase.es-BUXS72ra.js";
|
|
7
7
|
import { a as u } from "../../../../DotsThreeVertical.es-uadrGk3y.js";
|
|
8
|
-
import { R as h } from "../../../../index-
|
|
8
|
+
import { R as h } from "../../../../index-CLl-PPjx.js";
|
|
9
9
|
import { useItem as b } from "./context.js";
|
|
10
10
|
const n = i.forwardRef((t, o) => /* @__PURE__ */ i.createElement(d, { ref: o, ...t, weights: u }));
|
|
11
11
|
n.displayName = "DotsThreeVerticalIcon";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as n } from "react/jsx-runtime";
|
|
2
2
|
import * as t from "react";
|
|
3
|
-
import '../../../../assets/
|
|
3
|
+
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/styles2.css';/* empty css */
|
|
4
4
|
import "../../../../style-CWAa57kN.js";
|
|
5
5
|
import { CheckboxControl as c } from "../../../controls/checkbox-control/index.js";
|
|
6
6
|
/* empty css */
|
|
@@ -28,18 +28,16 @@ import "../../../toolbar/index.js";
|
|
|
28
28
|
/* empty css */
|
|
29
29
|
/* empty css */
|
|
30
30
|
/* empty css */
|
|
31
|
-
import "../../../../
|
|
31
|
+
import "../../../../style-D1AX7G7x.js";
|
|
32
32
|
/* empty css */
|
|
33
33
|
import "../../../../match-sorter.esm-MNVE8H_6.js";
|
|
34
34
|
/* empty css */
|
|
35
|
-
|
|
35
|
+
/* empty css */
|
|
36
36
|
/* empty css */
|
|
37
37
|
/* empty css */
|
|
38
38
|
/* empty css */
|
|
39
|
-
/* empty css */
|
|
40
|
-
/* empty css */
|
|
41
39
|
/* empty css */
|
|
42
|
-
import { R as s } from "../../../../index-
|
|
40
|
+
import { R as s } from "../../../../index-CLl-PPjx.js";
|
|
43
41
|
import { useItem as g } from "./context.js";
|
|
44
42
|
const f = /* @__PURE__ */ new Map([
|
|
45
43
|
[
|
|
@@ -68,7 +66,7 @@ const f = /* @__PURE__ */ new Map([
|
|
|
68
66
|
]
|
|
69
67
|
]), A = t.forwardRef((m, a) => /* @__PURE__ */ t.createElement(d, { ref: a, ...m, weights: f }));
|
|
70
68
|
A.displayName = "CircleDashedIcon";
|
|
71
|
-
const
|
|
69
|
+
const i0 = ({ className: m, as: a = "div" }) => {
|
|
72
70
|
const { selection: e, primaryKey: o } = s.use(), { selected: Z, item: i } = g();
|
|
73
71
|
if (!e)
|
|
74
72
|
return;
|
|
@@ -86,5 +84,5 @@ const n0 = ({ className: m, as: a = "div" }) => {
|
|
|
86
84
|
) });
|
|
87
85
|
};
|
|
88
86
|
export {
|
|
89
|
-
|
|
87
|
+
i0 as Checkbox
|
|
90
88
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "../../../../ArrowBendDownRight.es-mejk84um.js";
|
|
3
3
|
import "react";
|
|
4
|
-
import { D } from "../../../../index-
|
|
5
|
-
import "../../../../index-
|
|
6
|
-
import "../../../../index-
|
|
4
|
+
import { D } from "../../../../index-BnbjJBS4.js";
|
|
5
|
+
import "../../../../index-BLCPauyN.js";
|
|
6
|
+
import "../../../../index-CLl-PPjx.js";
|
|
7
7
|
export {
|
|
8
8
|
D as Depth
|
|
9
9
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./actions.js";
|
|
2
2
|
import "./checkbox.js";
|
|
3
3
|
import "./context.js";
|
|
4
|
-
import { I as e } from "../../../../index-
|
|
4
|
+
import { I as e } from "../../../../index-BnbjJBS4.js";
|
|
5
5
|
import '../../../../assets/style26.css';/* empty css */
|
|
6
6
|
export {
|
|
7
7
|
e as ItemSlot
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
3
|
import "../../data/fields.js";
|
|
4
|
-
import { b as e } from "../../../../index-
|
|
5
|
-
import "../../../../index-
|
|
4
|
+
import { b as e } from "../../../../index-BnbjJBS4.js";
|
|
5
|
+
import "../../../../index-CLl-PPjx.js";
|
|
6
6
|
export {
|
|
7
7
|
e as Properties
|
|
8
8
|
};
|
|
@@ -14,9 +14,9 @@ import "../../../../primitives/truncate/index.js";
|
|
|
14
14
|
/* empty css */
|
|
15
15
|
/* empty css */
|
|
16
16
|
import "../../../../ArrowBendDownRight.es-mejk84um.js";
|
|
17
|
-
import { R as k } from "../../../../index-
|
|
18
|
-
import "../../../../index-
|
|
19
|
-
import "../../../../index-
|
|
17
|
+
import { R as k } from "../../../../index-BnbjJBS4.js";
|
|
18
|
+
import "../../../../index-BLCPauyN.js";
|
|
19
|
+
import "../../../../index-CLl-PPjx.js";
|
|
20
20
|
export {
|
|
21
21
|
k as Relations
|
|
22
22
|
};
|