@vef-framework/starter 2.0.9 → 2.0.11
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/cjs/components/approval-flow-editor/assets/icons.cjs +19 -0
- package/dist/cjs/components/approval-flow-editor/components/base-node/index.cjs +1 -0
- package/dist/cjs/components/approval-flow-editor/components/base-node/styles.cjs +1 -0
- package/dist/cjs/components/approval-flow-editor/components/node-form-panel/index.cjs +1 -0
- package/dist/cjs/components/approval-flow-editor/components/node-panel/index.cjs +1 -0
- package/dist/cjs/components/approval-flow-editor/hooks/index.cjs +1 -0
- package/dist/cjs/components/approval-flow-editor/hooks/use-editor-props.cjs +1 -0
- package/dist/cjs/components/approval-flow-editor/index.cjs +1 -0
- package/dist/cjs/components/approval-flow-editor/nodes/approval/form-meta.cjs +1 -0
- package/dist/cjs/components/approval-flow-editor/nodes/approval/index.cjs +1 -0
- package/dist/cjs/components/approval-flow-editor/nodes/comment/form-meta.cjs +1 -0
- package/dist/cjs/components/approval-flow-editor/nodes/comment/index.cjs +1 -0
- package/dist/cjs/components/approval-flow-editor/nodes/condition/form-meta.cjs +1 -0
- package/dist/cjs/components/approval-flow-editor/nodes/condition/index.cjs +1 -0
- package/dist/cjs/components/approval-flow-editor/nodes/end/form-meta.cjs +1 -0
- package/dist/cjs/components/approval-flow-editor/nodes/end/index.cjs +1 -0
- package/dist/cjs/components/approval-flow-editor/nodes/handle/form-meta.cjs +1 -0
- package/dist/cjs/components/approval-flow-editor/nodes/handle/index.cjs +1 -0
- package/dist/cjs/components/approval-flow-editor/nodes/index.cjs +1 -0
- package/dist/cjs/components/approval-flow-editor/nodes/start/form-meta.cjs +1 -0
- package/dist/cjs/components/approval-flow-editor/nodes/start/index.cjs +1 -0
- package/dist/cjs/components/approval-flow-editor/nodes/types.cjs +1 -0
- package/dist/cjs/components/crud/components/main.cjs +1 -1
- package/dist/cjs/components/index.cjs +1 -1
- package/dist/cjs/components/page/index.cjs +1 -1
- package/dist/cjs/components/pro-table/components/column-setting-item.cjs +1 -0
- package/dist/cjs/components/pro-table/components/column-settings-panel.cjs +1 -0
- package/dist/cjs/components/pro-table/components/column-settings.cjs +1 -0
- package/dist/cjs/components/pro-table/components/index.cjs +1 -1
- package/dist/cjs/components/pro-table/components/table.cjs +1 -1
- package/dist/cjs/components/pro-table/components/width-popover.cjs +1 -0
- package/dist/cjs/components/pro-table/context.cjs +1 -1
- package/dist/cjs/components/pro-table/hooks/index.cjs +1 -1
- package/dist/cjs/components/pro-table/hooks/use-column-settings-persistence.cjs +1 -0
- package/dist/cjs/components/pro-table/hooks/use-table-columns.cjs +1 -1
- package/dist/cjs/components/pro-table/index.cjs +1 -1
- package/dist/cjs/components/pro-table/store.cjs +1 -1
- package/dist/cjs/helpers/app.cjs +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/es/components/approval-flow-editor/assets/icons.js +35 -0
- package/dist/es/components/approval-flow-editor/components/base-node/index.js +111 -0
- package/dist/es/components/approval-flow-editor/components/base-node/styles.js +55 -0
- package/dist/es/components/approval-flow-editor/components/node-form-panel/index.js +68 -0
- package/dist/es/components/approval-flow-editor/components/node-panel/index.js +110 -0
- package/dist/es/components/approval-flow-editor/hooks/index.js +4 -0
- package/dist/es/components/approval-flow-editor/hooks/use-editor-props.js +104 -0
- package/dist/es/components/approval-flow-editor/index.js +88 -0
- package/dist/es/components/approval-flow-editor/nodes/approval/form-meta.js +139 -0
- package/dist/es/components/approval-flow-editor/nodes/approval/index.js +39 -0
- package/dist/es/components/approval-flow-editor/nodes/comment/form-meta.js +57 -0
- package/dist/es/components/approval-flow-editor/nodes/comment/index.js +36 -0
- package/dist/es/components/approval-flow-editor/nodes/condition/form-meta.js +107 -0
- package/dist/es/components/approval-flow-editor/nodes/condition/index.js +46 -0
- package/dist/es/components/approval-flow-editor/nodes/end/form-meta.js +91 -0
- package/dist/es/components/approval-flow-editor/nodes/end/index.js +29 -0
- package/dist/es/components/approval-flow-editor/nodes/handle/form-meta.js +130 -0
- package/dist/es/components/approval-flow-editor/nodes/handle/index.js +39 -0
- package/dist/es/components/approval-flow-editor/nodes/index.js +18 -0
- package/dist/es/components/approval-flow-editor/nodes/start/form-meta.js +90 -0
- package/dist/es/components/approval-flow-editor/nodes/start/index.js +30 -0
- package/dist/es/components/approval-flow-editor/nodes/types.js +11 -0
- package/dist/es/components/crud/components/main.js +34 -33
- package/dist/es/components/index.js +28 -26
- package/dist/es/components/page/index.js +30 -30
- package/dist/es/components/pro-table/components/column-setting-item.js +114 -0
- package/dist/es/components/pro-table/components/column-settings-panel.js +60 -0
- package/dist/es/components/pro-table/components/column-settings.js +15 -0
- package/dist/es/components/pro-table/components/index.js +17 -9
- package/dist/es/components/pro-table/components/table.js +57 -53
- package/dist/es/components/pro-table/components/width-popover.js +59 -0
- package/dist/es/components/pro-table/context.js +12 -6
- package/dist/es/components/pro-table/hooks/index.js +5 -2
- package/dist/es/components/pro-table/hooks/use-column-settings-persistence.js +64 -0
- package/dist/es/components/pro-table/hooks/use-table-columns.js +91 -31
- package/dist/es/components/pro-table/index.js +46 -33
- package/dist/es/components/pro-table/store.js +84 -17
- package/dist/es/helpers/app.js +1 -1
- package/dist/es/index.js +73 -71
- package/dist/types/components/approval-flow-editor/assets/icons.d.ts +7 -0
- package/dist/types/components/approval-flow-editor/components/base-node/index.d.ts +27 -0
- package/dist/types/components/approval-flow-editor/components/base-node/styles.d.ts +7 -0
- package/dist/types/components/approval-flow-editor/components/index.d.ts +3 -0
- package/dist/types/components/approval-flow-editor/components/node-form-panel/index.d.ts +9 -0
- package/dist/types/components/approval-flow-editor/components/node-panel/index.d.ts +10 -0
- package/dist/types/components/approval-flow-editor/constants/index.d.ts +1 -0
- package/dist/types/components/approval-flow-editor/constants/node.d.ts +6 -0
- package/dist/types/components/approval-flow-editor/hooks/index.d.ts +1 -0
- package/dist/types/components/approval-flow-editor/hooks/use-editor-props.d.ts +8 -0
- package/dist/types/components/approval-flow-editor/index.d.ts +5 -0
- package/dist/types/components/approval-flow-editor/nodes/approval/form-meta.d.ts +4 -0
- package/dist/types/components/approval-flow-editor/nodes/approval/index.d.ts +2 -0
- package/dist/types/components/approval-flow-editor/nodes/comment/form-meta.d.ts +4 -0
- package/dist/types/components/approval-flow-editor/nodes/comment/index.d.ts +2 -0
- package/dist/types/components/approval-flow-editor/nodes/condition/form-meta.d.ts +4 -0
- package/dist/types/components/approval-flow-editor/nodes/condition/index.d.ts +2 -0
- package/dist/types/components/approval-flow-editor/nodes/end/form-meta.d.ts +4 -0
- package/dist/types/components/approval-flow-editor/nodes/end/index.d.ts +2 -0
- package/dist/types/components/approval-flow-editor/nodes/handle/form-meta.d.ts +4 -0
- package/dist/types/components/approval-flow-editor/nodes/handle/index.d.ts +2 -0
- package/dist/types/components/approval-flow-editor/nodes/index.d.ts +9 -0
- package/dist/types/components/approval-flow-editor/nodes/start/form-meta.d.ts +4 -0
- package/dist/types/components/approval-flow-editor/nodes/start/index.d.ts +2 -0
- package/dist/types/components/approval-flow-editor/nodes/types.d.ts +49 -0
- package/dist/types/components/approval-flow-editor/props.d.ts +8 -0
- package/dist/types/components/crud/props.d.ts +12 -1
- package/dist/types/components/index.d.ts +1 -0
- package/dist/types/components/pro-table/components/column-setting-item.d.ts +12 -0
- package/dist/types/components/pro-table/components/column-settings-panel.d.ts +2 -0
- package/dist/types/components/pro-table/components/column-settings.d.ts +6 -0
- package/dist/types/components/pro-table/components/index.d.ts +4 -0
- package/dist/types/components/pro-table/components/table.d.ts +9 -4
- package/dist/types/components/pro-table/components/width-popover.d.ts +9 -0
- package/dist/types/components/pro-table/context.d.ts +2 -0
- package/dist/types/components/pro-table/hooks/index.d.ts +1 -0
- package/dist/types/components/pro-table/hooks/use-column-settings-persistence.d.ts +7 -0
- package/dist/types/components/pro-table/hooks/use-table-columns.d.ts +3 -2
- package/dist/types/components/pro-table/index.d.ts +1 -1
- package/dist/types/components/pro-table/props.d.ts +10 -3
- package/dist/types/components/pro-table/store.d.ts +73 -3
- package/dist/types/components/pro-table/types.d.ts +17 -0
- package/dist/types/index.d.ts +1 -1
- package/package.json +20 -10
|
@@ -1,12 +1,15 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsx as C, jsxs as t } from "@emotion/react/jsx-runtime";
|
|
2
2
|
import "@emotion/react";
|
|
3
3
|
import { Stack as Y } from "@vef-framework/components";
|
|
4
4
|
import { memo as x } from "react";
|
|
5
5
|
import "./components/index.js";
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
9
|
-
|
|
6
|
+
import { ColumnSettingsStorageKeyProvider as y } from "./context.js";
|
|
7
|
+
import "./hooks/index.js";
|
|
8
|
+
import { ProTableStoreProvider as s } from "./store.js";
|
|
9
|
+
import { useColumnSettingsPersistence as v } from "./hooks/use-column-settings-persistence.js";
|
|
10
|
+
import { ProTableRefHolder as e } from "./components/ref.js";
|
|
11
|
+
import { NonPaginatedTable as H, PaginatedTable as J } from "./components/table.js";
|
|
12
|
+
function a() {
|
|
10
13
|
return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).";
|
|
11
14
|
}
|
|
12
15
|
const R = process.env.NODE_ENV === "production" ? {
|
|
@@ -14,34 +17,44 @@ const R = process.env.NODE_ENV === "production" ? {
|
|
|
14
17
|
styles: "height:100%"
|
|
15
18
|
} : {
|
|
16
19
|
name: "13udsys",
|
|
17
|
-
styles: "height:100%/*# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
|
18
|
-
toString:
|
|
19
|
-
},
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|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ICAgICAgICAgIGNvbHVtblNldHRpbmdzPXtjb2x1bW5TZXR0aW5nc31cbiAgICAgICAgICAgICAgICAgIG9wZXJhdGlvbkNvbHVtbj17b3BlcmF0aW9uQ29sdW1ufVxuICAgICAgICAgICAgICAgICAgcXVlcnlFbmFibGVkPXtxdWVyeUVuYWJsZWR9XG4gICAgICAgICAgICAgICAgICBxdWVyeUZuPXtyZXN0UHJvcHMucXVlcnlGbn1cbiAgICAgICAgICAgICAgICAgIHF1ZXJ5UGFyYW1zPXtxdWVyeVBhcmFtc31cbiAgICAgICAgICAgICAgICAgIHJvd0tleT17cm93S2V5fVxuICAgICAgICAgICAgICAgICAgcm93U2VsZWN0aW9uPXtyb3dTZWxlY3Rpb259XG4gICAgICAgICAgICAgICAgICBzZWxlY3RlZFJvd0tleXM9e3NlbGVjdGVkUm93S2V5c31cbiAgICAgICAgICAgICAgICAgIHNob3dTZXF1ZW5jZUNvbHVtbj17c2hvd1NlcXVlbmNlQ29sdW1ufVxuICAgICAgICAgICAgICAgICAgc2l6ZT17c2l6ZX1cbiAgICAgICAgICAgICAgICAgIHN0eWxlPXtzdHlsZX1cbiAgICAgICAgICAgICAgICAgIHZpcnR1YWw9e3ZpcnR1YWx9XG4gICAgICAgICAgICAgICAgICBvblNlbGVjdGVkUm93S2V5c0NoYW5nZT17b25TZWxlY3RlZFJvd0tleXNDaGFuZ2V9XG4gICAgICAgICAgICAgICAgLz5cbiAgICAgICAgICAgICAgKVxuICAgICAgICAgICAgOiAoXG4gICAgICAgICAgICAgICAgPFBhZ2luYXRlZFRhYmxlXG4gICAgICAgICAgICAgICAgICBjbGFzc05hbWU9e2NsYXNzTmFtZX1cbiAgICAgICAgICAgICAgICAgIGNvbHVtbnM9e2NvbHVtbnN9XG4gICAgICAgICAgICAgICAgICBjb2x1bW5TZXR0aW5ncz17Y29sdW1uU2V0dGluZ3N9XG4gICAgICAgICAgICAgICAgICBvcGVyYXRpb25Db2x1bW49e29wZXJhdGlvbkNvbHVtbn1cbiAgICAgICAgICAgICAgICAgIHF1ZXJ5RW5hYmxlZD17cXVlcnlFbmFibGVkfVxuICAgICAgICAgICAgICAgICAgcXVlcnlGbj17cmVzdFByb3BzLnF1ZXJ5Rm59XG4gICAgICAgICAgICAgICAgICBxdWVyeVBhcmFtcz17cXVlcnlQYXJhbXN9XG4gICAgICAgICAgICAgICAgICByb3dLZXk9e3Jvd0tleX1cbiAgICAgICAgICAgICAgICAgIHJvd1NlbGVjdGlvbj17cm93U2VsZWN0aW9ufVxuICAgICAgICAgICAgICAgICAgc2VsZWN0ZWRSb3dLZXlzPXtzZWxlY3RlZFJvd0tleXN9XG4gICAgICAgICAgICAgICAgICBzaG93U2VxdWVuY2VDb2x1bW49e3Nob3dTZXF1ZW5jZUNvbHVtbn1cbiAgICAgICAgICAgICAgICAgIHNpemU9e3NpemV9XG4gICAgICAgICAgICAgICAgICBzdHlsZT17c3R5bGV9XG4gICAgICAgICAgICAgICAgICB2aXJ0dWFsPXt2aXJ0dWFsfVxuICAgICAgICAgICAgICAgICAgb25TZWxlY3RlZFJvd0tleXNDaGFuZ2U9e29uU2VsZWN0ZWRSb3dLZXlzQ2hhbmdlfVxuICAgICAgICAgICAgICAgIC8+XG4gICAgICAgICAgICAgIClcbiAgICAgICAgfVxuXG4gICAgICAgIHtmb290ZXJ9XG4gICAgICA8L1N0YWNrPlxuICAgIDwvUHJvVGFibGVDb250ZW50PlxuICA8L1Byb1RhYmxlU3RvcmVQcm92aWRlcj5cbikpIGFzICg8XG4gIFRSb3cgZXh0ZW5kcyBvYmplY3QsXG4gIFRQYXJhbXMgZXh0ZW5kcyBvYmplY3Rcbj4oXG4gIHByb3BzOiBQcm9UYWJsZVByb3BzPFRSb3csIFRQYXJhbXM+ICYge1xuICAgIHJlZj86IFJlYWN0LlJlZjxQcm9UYWJsZVJlZj47XG4gIH1cbikgPT4gQXdhaXRhYmxlPFJlYWN0Tm9kZT4pICYgUGljazxGQywgXCJkaXNwbGF5TmFtZVwiPjtcblByb1RhYmxlLmRpc3BsYXlOYW1lID0gXCJQcm9UYWJsZVwiO1xuXG5leHBvcnQge1xuICBPcGVyYXRpb25CdXR0b25Hcm91cCxcbiAgVGFibGVTdWJzY3JpYmVyIGFzIFByb1RhYmxlU3Vic2NyaWJlcixcbiAgdHlwZSBPcGVyYXRpb25CdXR0b25Hcm91cFByb3BzLFxuICB0eXBlIFRhYmxlU3Vic2NyaWJlclByb3BzIGFzIFByb1RhYmxlU3Vic2NyaWJlclByb3BzXG59IGZyb20gXCIuL2NvbXBvbmVudHNcIjtcbmV4cG9ydCB0eXBlIHtcbiAgUHJvVGFibGVQcm9wc1xufSBmcm9tIFwiLi9wcm9wc1wiO1xuZXhwb3J0IHR5cGUge1xuICBQcm9UYWJsZVN0YXRlXG59IGZyb20gXCIuL3N0b3JlXCI7XG5leHBvcnQgdHlwZSB7XG4gIENvbHVtblNldHRpbmdzQ29uZmlnLFxuICBDb2x1bW5TZXR0aW5nc1Byb3AsXG4gIE9wZXJhdGlvbkNvbHVtbkNvbmZpZyxcbiAgUGFyYW1zV2l0aFBhZ2luYXRpb24sXG4gIFBhcmFtc1dpdGhTb3J0LFxuICBQcm9UYWJsZVJlZixcbiAgUm93U2VsZWN0aW9uQ29uZmlnXG59IGZyb20gXCIuL3R5cGVzXCI7XG4iXX0= */",
|
|
21
|
+
toString: a
|
|
22
|
+
}, U = {};
|
|
23
|
+
function n({
|
|
24
|
+
columnSettings: I,
|
|
25
|
+
children: A
|
|
26
|
+
}) {
|
|
27
|
+
const g = I === !1 ? void 0 : I.storageKey;
|
|
28
|
+
return v(g), /* @__PURE__ */ C(y, { value: g, children: A });
|
|
29
|
+
}
|
|
30
|
+
const h = x(({
|
|
31
|
+
className: I,
|
|
32
|
+
style: A,
|
|
33
|
+
size: g,
|
|
34
|
+
columns: l,
|
|
35
|
+
columnSettings: b = U,
|
|
36
|
+
rowKey: G,
|
|
37
|
+
rowSelection: Z,
|
|
38
|
+
queryEnabled: m,
|
|
39
|
+
queryParams: X,
|
|
40
|
+
showSequenceColumn: d,
|
|
41
|
+
operationColumn: V,
|
|
42
|
+
selectedRowKeys: W,
|
|
43
|
+
virtual: i,
|
|
44
|
+
ref: F,
|
|
45
|
+
header: B,
|
|
46
|
+
footer: N,
|
|
47
|
+
onSelectedRowKeysChange: u,
|
|
48
|
+
...c
|
|
49
|
+
}) => /* @__PURE__ */ t(s, { children: [
|
|
50
|
+
/* @__PURE__ */ C(e, { ref: F }),
|
|
51
|
+
/* @__PURE__ */ C(n, { columnSettings: b, children: /* @__PURE__ */ t(Y, { css: R, gap: "middle", children: [
|
|
52
|
+
B,
|
|
53
|
+
c.isPaginated === !1 ? /* @__PURE__ */ C(H, { className: I, columns: l, columnSettings: b, operationColumn: V, queryEnabled: m, queryFn: c.queryFn, queryParams: X, rowKey: G, rowSelection: Z, selectedRowKeys: W, showSequenceColumn: d, size: g, style: A, virtual: i, onSelectedRowKeysChange: u }) : /* @__PURE__ */ C(J, { className: I, columns: l, columnSettings: b, operationColumn: V, queryEnabled: m, queryFn: c.queryFn, queryParams: X, rowKey: G, rowSelection: Z, selectedRowKeys: W, showSequenceColumn: d, size: g, style: A, virtual: i, onSelectedRowKeysChange: u }),
|
|
54
|
+
N
|
|
55
|
+
] }) })
|
|
43
56
|
] }));
|
|
44
|
-
|
|
57
|
+
h.displayName = "ProTable";
|
|
45
58
|
export {
|
|
46
|
-
|
|
59
|
+
h as ProTable
|
|
47
60
|
};
|
|
@@ -1,33 +1,100 @@
|
|
|
1
|
-
import { pageSizeOptions as
|
|
2
|
-
import { createComponentStore as
|
|
3
|
-
import {
|
|
1
|
+
import { pageSizeOptions as S } from "@vef-framework/components";
|
|
2
|
+
import { createComponentStore as f, moveDragItem as c } from "@vef-framework/core";
|
|
3
|
+
import { isString as p, isNumber as C, isFunction as x } from "@vef-framework/shared";
|
|
4
|
+
import { createEventEmitter as P } from "./event.js";
|
|
5
|
+
function v(t, s) {
|
|
6
|
+
const e = t.key ?? t.dataIndex ?? `col-${s}`;
|
|
7
|
+
return p(e) ? e : String(e);
|
|
8
|
+
}
|
|
9
|
+
function u(t, s) {
|
|
10
|
+
return {
|
|
11
|
+
id: v(t, s),
|
|
12
|
+
title: t.title,
|
|
13
|
+
fixed: t.fixed === !0 ? "start" : t.fixed === !1 ? !1 : t.fixed === "left" ? "start" : t.fixed === "right" ? "end" : t.fixed ?? !1,
|
|
14
|
+
width: C(t.width) ? t.width : void 0,
|
|
15
|
+
visible: !0,
|
|
16
|
+
originalIndex: s
|
|
17
|
+
};
|
|
18
|
+
}
|
|
4
19
|
const {
|
|
5
|
-
StoreProvider:
|
|
6
|
-
useStore:
|
|
7
|
-
useStoreApi:
|
|
8
|
-
} =
|
|
9
|
-
eventEmitter:
|
|
20
|
+
StoreProvider: E,
|
|
21
|
+
useStore: T,
|
|
22
|
+
useStoreApi: z
|
|
23
|
+
} = f("ProTable", (t, s) => ({
|
|
24
|
+
eventEmitter: P(),
|
|
10
25
|
paginationParams: {
|
|
11
26
|
page: 1,
|
|
12
|
-
size:
|
|
27
|
+
size: S[1]
|
|
13
28
|
},
|
|
14
29
|
setPaginationParams: (e) => {
|
|
15
|
-
t((
|
|
16
|
-
|
|
30
|
+
t((i) => {
|
|
31
|
+
i.paginationParams = e;
|
|
17
32
|
});
|
|
18
33
|
},
|
|
19
34
|
sort: [],
|
|
20
35
|
setSort: (e) => {
|
|
21
|
-
t((
|
|
22
|
-
|
|
36
|
+
t((i) => {
|
|
37
|
+
i.sort = e;
|
|
23
38
|
});
|
|
24
39
|
},
|
|
25
40
|
refetch: () => {
|
|
26
|
-
|
|
41
|
+
s().eventEmitter.emit("refetch");
|
|
42
|
+
},
|
|
43
|
+
columnSettings: [],
|
|
44
|
+
originalColumnSettings: [],
|
|
45
|
+
initColumnSettings: (e) => {
|
|
46
|
+
const i = s().columnSettings, o = new Map(i.map((n) => [n.id, n])), r = e.filter((n) => !x(n.title)), l = r.map((n, m) => u(n, m)), d = r.map((n, m) => {
|
|
47
|
+
const a = u(n, m), g = o.get(a.id);
|
|
48
|
+
return g ? {
|
|
49
|
+
...g,
|
|
50
|
+
title: n.title,
|
|
51
|
+
originalIndex: m
|
|
52
|
+
} : a;
|
|
53
|
+
});
|
|
54
|
+
t((n) => {
|
|
55
|
+
n.columnSettings = d, n.originalColumnSettings = l;
|
|
56
|
+
});
|
|
57
|
+
},
|
|
58
|
+
setColumnSettings: (e) => {
|
|
59
|
+
t((i) => {
|
|
60
|
+
i.columnSettings = e;
|
|
61
|
+
});
|
|
62
|
+
},
|
|
63
|
+
reorderColumns: (e) => {
|
|
64
|
+
t((i) => {
|
|
65
|
+
i.columnSettings = c(i.columnSettings, e);
|
|
66
|
+
});
|
|
67
|
+
},
|
|
68
|
+
setColumnFixed: (e, i) => {
|
|
69
|
+
t((o) => {
|
|
70
|
+
const r = o.columnSettings.find((l) => l.id === e);
|
|
71
|
+
r && (r.fixed = i);
|
|
72
|
+
});
|
|
73
|
+
},
|
|
74
|
+
setColumnWidth: (e, i) => {
|
|
75
|
+
t((o) => {
|
|
76
|
+
const r = o.columnSettings.find((l) => l.id === e);
|
|
77
|
+
r && (r.width = i);
|
|
78
|
+
});
|
|
79
|
+
},
|
|
80
|
+
setColumnVisible: (e, i) => {
|
|
81
|
+
t((o) => {
|
|
82
|
+
const r = o.columnSettings.find((l) => l.id === e);
|
|
83
|
+
r && (r.visible = i);
|
|
84
|
+
});
|
|
85
|
+
},
|
|
86
|
+
resetColumnSettings: (e) => {
|
|
87
|
+
e?.(), t((i) => {
|
|
88
|
+
i.columnSettings = i.originalColumnSettings.map((o) => ({
|
|
89
|
+
...o
|
|
90
|
+
}));
|
|
91
|
+
});
|
|
27
92
|
}
|
|
28
93
|
}));
|
|
29
94
|
export {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
95
|
+
E as ProTableStoreProvider,
|
|
96
|
+
u as createColumnSetting,
|
|
97
|
+
v as getColumnId,
|
|
98
|
+
T as useProTableStore,
|
|
99
|
+
z as useProTableStoreApi
|
|
33
100
|
};
|
package/dist/es/helpers/app.js
CHANGED
|
@@ -5,7 +5,7 @@ import "../components/index.js";
|
|
|
5
5
|
import { App as f } from "../components/app/index.js";
|
|
6
6
|
import { RouterContextHookProvider as c } from "../components/router-provider/context.js";
|
|
7
7
|
function h({
|
|
8
|
-
strictMode: i = !
|
|
8
|
+
strictMode: i = !1,
|
|
9
9
|
useRouterContext: e
|
|
10
10
|
} = {}) {
|
|
11
11
|
const t = p(document.querySelector("#root"), {
|
package/dist/es/index.js
CHANGED
|
@@ -3,77 +3,79 @@ import "./constants/index.js";
|
|
|
3
3
|
import "./helpers/index.js";
|
|
4
4
|
import "./routes/index.js";
|
|
5
5
|
import "./stores/index.js";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
6
|
+
import { ApprovalFlowEditor as x } from "./components/approval-flow-editor/index.js";
|
|
7
|
+
import { createCrudKit as a } from "./components/crud/helpers.js";
|
|
8
|
+
import { Crud as _ } from "./components/crud/index.js";
|
|
9
|
+
import { CrudPage as u } from "./components/crud-page/index.js";
|
|
10
|
+
import { FlexCard as A } from "./components/flex-card/index.js";
|
|
11
|
+
import { FormDrawer as R } from "./components/form-drawer/index.js";
|
|
12
|
+
import { FormModal as s } from "./components/form-modal/index.js";
|
|
13
|
+
import { OperationButtonGroup as D } from "./components/pro-table/components/operation-button-group.js";
|
|
14
|
+
import { Page as N } from "./components/page/index.js";
|
|
15
|
+
import { ProSearch as P } from "./components/pro-search/index.js";
|
|
16
|
+
import { ProTable as d } from "./components/pro-table/index.js";
|
|
17
|
+
import { TableSubscriber as b } from "./components/pro-table/components/table-subscriber.js";
|
|
18
|
+
import { useViewportHeight as L } from "./components/page/viewport-context.js";
|
|
19
|
+
import { ACCESS_DENIED_EVENT as g, RELOAD_PAGE_EVENT as h, UNAUTHENTICATED_EVENT as H } from "./constants/event.js";
|
|
20
|
+
import { ACCESS_DENIED_ROUTE_ID as M, ACCESS_DENIED_ROUTE_PATH as X, INDEX_ROUTE_ID as Y, INDEX_ROUTE_PATH as v, LOGIN_ROUTE_ID as w, LOGIN_ROUTE_PATH as B } from "./constants/router.js";
|
|
21
|
+
import { STORAGE_KEY_PREFIX_STORE as y, STORAGE_KEY_SUFFIX_STORE as Q } from "./constants/storage.js";
|
|
22
|
+
import { SYMBOL_PAGINATION as k, SYMBOL_SORT as q } from "./constants/symbols.js";
|
|
23
|
+
import { createApiClient as J } from "./helpers/api.js";
|
|
24
|
+
import { createApp as Z } from "./helpers/app.js";
|
|
25
|
+
import { setupAppVersionNotification as oo } from "./helpers/app-version.js";
|
|
26
|
+
import { handleClientLogout as eo } from "./helpers/auth.js";
|
|
27
|
+
import { dispatchCustomEvent as po, eventEmitter as mo, reloadPage as Eo } from "./helpers/event.js";
|
|
28
|
+
import { extractQueryParams as fo, noopMutationFn as ao } from "./helpers/query.js";
|
|
29
|
+
import { createRouter as _o } from "./helpers/router.js";
|
|
30
|
+
import { createAccessDeniedRouteOptions as uo } from "./routes/access-denied.js";
|
|
31
|
+
import { createLayoutRouteOptions as Ao } from "./routes/layout.js";
|
|
32
|
+
import { createLoginRouteOptions as Ro } from "./routes/login.js";
|
|
33
|
+
import { createRootRouteOptions as so } from "./routes/root.js";
|
|
34
|
+
import { useAppStore as Do } from "./stores/app.js";
|
|
35
|
+
import { useTabStore as No } from "./stores/tab.js";
|
|
36
|
+
import { useThemeStore as Po } from "./stores/theme.js";
|
|
36
37
|
export {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
_ as
|
|
42
|
-
u as
|
|
43
|
-
|
|
44
|
-
R as
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
38
|
+
g as ACCESS_DENIED_EVENT,
|
|
39
|
+
M as ACCESS_DENIED_ROUTE_ID,
|
|
40
|
+
X as ACCESS_DENIED_ROUTE_PATH,
|
|
41
|
+
x as ApprovalFlowEditor,
|
|
42
|
+
_ as Crud,
|
|
43
|
+
u as CrudPage,
|
|
44
|
+
A as FlexCard,
|
|
45
|
+
R as FormDrawer,
|
|
46
|
+
s as FormModal,
|
|
47
|
+
Y as INDEX_ROUTE_ID,
|
|
48
|
+
v as INDEX_ROUTE_PATH,
|
|
49
|
+
w as LOGIN_ROUTE_ID,
|
|
48
50
|
B as LOGIN_ROUTE_PATH,
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
51
|
+
D as OperationButtonGroup,
|
|
52
|
+
N as Page,
|
|
53
|
+
P as ProSearch,
|
|
54
|
+
d as ProTable,
|
|
55
|
+
b as ProTableSubscriber,
|
|
56
|
+
h as RELOAD_PAGE_EVENT,
|
|
57
|
+
y as STORAGE_KEY_PREFIX_STORE,
|
|
58
|
+
Q as STORAGE_KEY_SUFFIX_STORE,
|
|
59
|
+
k as SYMBOL_PAGINATION,
|
|
60
|
+
q as SYMBOL_SORT,
|
|
61
|
+
H as UNAUTHENTICATED_EVENT,
|
|
62
|
+
uo as createAccessDeniedRouteOptions,
|
|
63
|
+
J as createApiClient,
|
|
64
|
+
Z as createApp,
|
|
65
|
+
a as createCrudKit,
|
|
66
|
+
Ao as createLayoutRouteOptions,
|
|
67
|
+
Ro as createLoginRouteOptions,
|
|
68
|
+
so as createRootRouteOptions,
|
|
69
|
+
_o as createRouter,
|
|
70
|
+
po as dispatchCustomEvent,
|
|
71
|
+
mo as eventEmitter,
|
|
72
|
+
fo as extractQueryParams,
|
|
73
|
+
eo as handleClientLogout,
|
|
74
|
+
ao as noopMutationFn,
|
|
75
|
+
Eo as reloadPage,
|
|
76
|
+
oo as setupAppVersionNotification,
|
|
77
|
+
Do as useAppStore,
|
|
78
|
+
No as useTabStore,
|
|
79
|
+
Po as useThemeStore,
|
|
80
|
+
L as useViewportHeight
|
|
79
81
|
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const iconStart = "<svg viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <circle cx=\"12\" cy=\"12\" r=\"10\" stroke=\"#52c41a\" stroke-width=\"2\"/>\n <polygon points=\"10,8 16,12 10,16\" fill=\"#52c41a\"/>\n</svg>";
|
|
2
|
+
export declare const iconEnd = "<svg viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <circle cx=\"12\" cy=\"12\" r=\"10\" stroke=\"#ff4d4f\" stroke-width=\"2\"/>\n <rect x=\"8\" y=\"8\" width=\"8\" height=\"8\" fill=\"#ff4d4f\"/>\n</svg>";
|
|
3
|
+
export declare const iconApproval = "<svg viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <rect x=\"3\" y=\"3\" width=\"18\" height=\"18\" rx=\"3\" stroke=\"#1890ff\" stroke-width=\"2\"/>\n <path d=\"M8 12l3 3 5-6\" stroke=\"#1890ff\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>";
|
|
4
|
+
export declare const iconHandle = "<svg viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <rect x=\"3\" y=\"3\" width=\"18\" height=\"18\" rx=\"3\" stroke=\"#722ed1\" stroke-width=\"2\"/>\n <circle cx=\"12\" cy=\"9\" r=\"3\" stroke=\"#722ed1\" stroke-width=\"2\"/>\n <path d=\"M6 19c0-3.3 2.7-6 6-6s6 2.7 6 6\" stroke=\"#722ed1\" stroke-width=\"2\"/>\n</svg>";
|
|
5
|
+
export declare const iconCondition = "<svg viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M12 2l10 10-10 10L2 12 12 2z\" stroke=\"#fa8c16\" stroke-width=\"2\"/>\n <text x=\"12\" y=\"16\" text-anchor=\"middle\" fill=\"#fa8c16\" font-size=\"10\" font-weight=\"bold\">?</text>\n</svg>";
|
|
6
|
+
export declare const iconComment = "<svg viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z\" stroke=\"#8c8c8c\" stroke-width=\"2\"/>\n</svg>";
|
|
7
|
+
export declare const nodeIconMap: Record<string, string>;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { FlowNodeEntity, NodeRenderReturnType } from '@flowgram.ai/free-layout-editor';
|
|
2
|
+
import { FC, ReactNode, Context } from 'react';
|
|
3
|
+
export declare const NodeRenderContext: Context<NodeRenderReturnType | null>;
|
|
4
|
+
export declare function useNodeRenderContext(): NodeRenderReturnType;
|
|
5
|
+
interface NodeIconProps {
|
|
6
|
+
type: string;
|
|
7
|
+
size?: number;
|
|
8
|
+
}
|
|
9
|
+
export declare const NodeIcon: FC<NodeIconProps>;
|
|
10
|
+
interface FormHeaderProps {
|
|
11
|
+
title?: string;
|
|
12
|
+
extra?: ReactNode;
|
|
13
|
+
}
|
|
14
|
+
export declare const FormHeader: FC<FormHeaderProps>;
|
|
15
|
+
interface FormContentProps {
|
|
16
|
+
children?: ReactNode;
|
|
17
|
+
}
|
|
18
|
+
export declare const FormContent: FC<FormContentProps>;
|
|
19
|
+
interface NodeWrapperProps {
|
|
20
|
+
children: ReactNode;
|
|
21
|
+
}
|
|
22
|
+
export declare const NodeWrapper: FC<NodeWrapperProps>;
|
|
23
|
+
interface BaseNodeProps {
|
|
24
|
+
node: FlowNodeEntity;
|
|
25
|
+
}
|
|
26
|
+
export declare const BaseNode: FC<BaseNodeProps>;
|
|
27
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { SerializedStyles } from '@emotion/serialize';
|
|
2
|
+
export declare const nodeWrapperStyle: SerializedStyles;
|
|
3
|
+
export declare const headerStyle: SerializedStyles;
|
|
4
|
+
export declare const nodeIconStyle: SerializedStyles;
|
|
5
|
+
export declare const titleStyle: SerializedStyles;
|
|
6
|
+
export declare const contentStyle: SerializedStyles;
|
|
7
|
+
export declare const operatorsStyle: SerializedStyles;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { BaseNode, FormContent, FormHeader, NodeIcon, NodeRenderContext, NodeWrapper, useNodeRenderContext } from './base-node';
|
|
2
|
+
export { IsSidebarContext, NodeFormPanel, nodeFormPanelFactory, useIsSidebar } from './node-form-panel';
|
|
3
|
+
export { NodePanel } from './node-panel';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { PanelFactory } from '@flowgram.ai/panel-manager-plugin';
|
|
2
|
+
import { FC, Context } from 'react';
|
|
3
|
+
export declare const IsSidebarContext: Context<boolean>;
|
|
4
|
+
export declare function useIsSidebar(): boolean;
|
|
5
|
+
export interface NodeFormPanelProps {
|
|
6
|
+
nodeId: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const NodeFormPanel: FC<NodeFormPanelProps>;
|
|
9
|
+
export declare const nodeFormPanelFactory: PanelFactory<NodeFormPanelProps>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { WorkflowPortEntity } from '@flowgram.ai/free-layout-editor';
|
|
2
|
+
import { NodePanelRenderProps } from '@flowgram.ai/free-node-panel-plugin';
|
|
3
|
+
interface NodePanelProps extends NodePanelRenderProps {
|
|
4
|
+
panelProps?: {
|
|
5
|
+
fromPort?: WorkflowPortEntity;
|
|
6
|
+
enableNodePlaceholder?: boolean;
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
export declare function NodePanel(props: NodePanelProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './node';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const NODE_START = "start";
|
|
2
|
+
export declare const NODE_END = "end";
|
|
3
|
+
export declare const NODE_APPROVAL = "approval";
|
|
4
|
+
export declare const NODE_HANDLE = "handle";
|
|
5
|
+
export declare const NODE_CONDITION = "condition";
|
|
6
|
+
export declare const NODE_COMMENT = "comment";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { useEditorProps } from './use-editor-props';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { FreeLayoutProps } from '@flowgram.ai/free-layout-editor';
|
|
2
|
+
import { ApprovalFlowDocumentJSON } from '../nodes/types';
|
|
3
|
+
export interface UseEditorPropsOptions {
|
|
4
|
+
initialData: ApprovalFlowDocumentJSON;
|
|
5
|
+
readonly?: boolean;
|
|
6
|
+
onChange?: (data: ApprovalFlowDocumentJSON) => void;
|
|
7
|
+
}
|
|
8
|
+
export declare function useEditorProps(options: UseEditorPropsOptions): FreeLayoutProps;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { ApprovalFlowEditorProps } from './props';
|
|
3
|
+
export declare const ApprovalFlowEditor: FC<ApprovalFlowEditorProps>;
|
|
4
|
+
export type { ApprovalFlowDocumentJSON, ApprovalNodeJSON, ApprovalNodeType } from './nodes/types';
|
|
5
|
+
export type { ApprovalFlowEditorProps } from './props';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { FormMeta, FormRenderProps } from '@flowgram.ai/free-layout-editor';
|
|
2
|
+
import { ApprovalNodeJSON } from '../types';
|
|
3
|
+
export declare function renderForm(_props: FormRenderProps<ApprovalNodeJSON>): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
4
|
+
export declare const formMeta: FormMeta<ApprovalNodeJSON>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { FormMeta, FormRenderProps } from '@flowgram.ai/free-layout-editor';
|
|
2
|
+
import { ApprovalNodeJSON } from '../types';
|
|
3
|
+
export declare const renderForm: (_props: FormRenderProps<ApprovalNodeJSON>) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
4
|
+
export declare const formMeta: FormMeta<ApprovalNodeJSON>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { FormMeta, FormRenderProps } from '@flowgram.ai/free-layout-editor';
|
|
2
|
+
import { ApprovalNodeJSON } from '../types';
|
|
3
|
+
export declare function renderForm(_props: FormRenderProps<ApprovalNodeJSON>): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
4
|
+
export declare const formMeta: FormMeta<ApprovalNodeJSON>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { FormMeta, FormRenderProps } from '@flowgram.ai/free-layout-editor';
|
|
2
|
+
import { ApprovalNodeJSON } from '../types';
|
|
3
|
+
export declare function renderForm(_props: FormRenderProps<ApprovalNodeJSON>): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
4
|
+
export declare const formMeta: FormMeta<ApprovalNodeJSON>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { FormMeta, FormRenderProps } from '@flowgram.ai/free-layout-editor';
|
|
2
|
+
import { ApprovalNodeJSON } from '../types';
|
|
3
|
+
export declare function renderForm(_props: FormRenderProps<ApprovalNodeJSON>): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
4
|
+
export declare const formMeta: FormMeta<ApprovalNodeJSON>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ApprovalNodeRegistry } from './types';
|
|
2
|
+
export { approvalNodeRegistry } from './approval';
|
|
3
|
+
export declare const nodeRegistries: ApprovalNodeRegistry[];
|
|
4
|
+
export { commentNodeRegistry } from './comment';
|
|
5
|
+
export { conditionNodeRegistry } from './condition';
|
|
6
|
+
export { endNodeRegistry } from './end';
|
|
7
|
+
export { handleNodeRegistry } from './handle';
|
|
8
|
+
export { startNodeRegistry } from './start';
|
|
9
|
+
export * from './types';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { FormMeta, FormRenderProps } from '@flowgram.ai/free-layout-editor';
|
|
2
|
+
import { ApprovalNodeJSON } from '../types';
|
|
3
|
+
export declare const renderForm: (_props: FormRenderProps<ApprovalNodeJSON>) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
4
|
+
export declare const formMeta: FormMeta<ApprovalNodeJSON>;
|