@vef-framework/starter 2.0.10 → 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.
Files changed (122) hide show
  1. package/dist/cjs/components/approval-flow-editor/assets/icons.cjs +19 -0
  2. package/dist/cjs/components/approval-flow-editor/components/base-node/index.cjs +1 -0
  3. package/dist/cjs/components/approval-flow-editor/components/base-node/styles.cjs +1 -0
  4. package/dist/cjs/components/approval-flow-editor/components/node-form-panel/index.cjs +1 -0
  5. package/dist/cjs/components/approval-flow-editor/components/node-panel/index.cjs +1 -0
  6. package/dist/cjs/components/approval-flow-editor/hooks/index.cjs +1 -0
  7. package/dist/cjs/components/approval-flow-editor/hooks/use-editor-props.cjs +1 -0
  8. package/dist/cjs/components/approval-flow-editor/index.cjs +1 -0
  9. package/dist/cjs/components/approval-flow-editor/nodes/approval/form-meta.cjs +1 -0
  10. package/dist/cjs/components/approval-flow-editor/nodes/approval/index.cjs +1 -0
  11. package/dist/cjs/components/approval-flow-editor/nodes/comment/form-meta.cjs +1 -0
  12. package/dist/cjs/components/approval-flow-editor/nodes/comment/index.cjs +1 -0
  13. package/dist/cjs/components/approval-flow-editor/nodes/condition/form-meta.cjs +1 -0
  14. package/dist/cjs/components/approval-flow-editor/nodes/condition/index.cjs +1 -0
  15. package/dist/cjs/components/approval-flow-editor/nodes/end/form-meta.cjs +1 -0
  16. package/dist/cjs/components/approval-flow-editor/nodes/end/index.cjs +1 -0
  17. package/dist/cjs/components/approval-flow-editor/nodes/handle/form-meta.cjs +1 -0
  18. package/dist/cjs/components/approval-flow-editor/nodes/handle/index.cjs +1 -0
  19. package/dist/cjs/components/approval-flow-editor/nodes/index.cjs +1 -0
  20. package/dist/cjs/components/approval-flow-editor/nodes/start/form-meta.cjs +1 -0
  21. package/dist/cjs/components/approval-flow-editor/nodes/start/index.cjs +1 -0
  22. package/dist/cjs/components/approval-flow-editor/nodes/types.cjs +1 -0
  23. package/dist/cjs/components/crud/components/main.cjs +1 -1
  24. package/dist/cjs/components/index.cjs +1 -1
  25. package/dist/cjs/components/page/index.cjs +1 -1
  26. package/dist/cjs/components/pro-table/components/column-setting-item.cjs +1 -0
  27. package/dist/cjs/components/pro-table/components/column-settings-panel.cjs +1 -0
  28. package/dist/cjs/components/pro-table/components/column-settings.cjs +1 -0
  29. package/dist/cjs/components/pro-table/components/index.cjs +1 -1
  30. package/dist/cjs/components/pro-table/components/table.cjs +1 -1
  31. package/dist/cjs/components/pro-table/components/width-popover.cjs +1 -0
  32. package/dist/cjs/components/pro-table/context.cjs +1 -1
  33. package/dist/cjs/components/pro-table/hooks/index.cjs +1 -1
  34. package/dist/cjs/components/pro-table/hooks/use-column-settings-persistence.cjs +1 -0
  35. package/dist/cjs/components/pro-table/hooks/use-table-columns.cjs +1 -1
  36. package/dist/cjs/components/pro-table/index.cjs +1 -1
  37. package/dist/cjs/components/pro-table/store.cjs +1 -1
  38. package/dist/cjs/helpers/app.cjs +1 -1
  39. package/dist/cjs/index.cjs +1 -1
  40. package/dist/es/components/approval-flow-editor/assets/icons.js +35 -0
  41. package/dist/es/components/approval-flow-editor/components/base-node/index.js +111 -0
  42. package/dist/es/components/approval-flow-editor/components/base-node/styles.js +55 -0
  43. package/dist/es/components/approval-flow-editor/components/node-form-panel/index.js +68 -0
  44. package/dist/es/components/approval-flow-editor/components/node-panel/index.js +110 -0
  45. package/dist/es/components/approval-flow-editor/hooks/index.js +4 -0
  46. package/dist/es/components/approval-flow-editor/hooks/use-editor-props.js +104 -0
  47. package/dist/es/components/approval-flow-editor/index.js +88 -0
  48. package/dist/es/components/approval-flow-editor/nodes/approval/form-meta.js +139 -0
  49. package/dist/es/components/approval-flow-editor/nodes/approval/index.js +39 -0
  50. package/dist/es/components/approval-flow-editor/nodes/comment/form-meta.js +57 -0
  51. package/dist/es/components/approval-flow-editor/nodes/comment/index.js +36 -0
  52. package/dist/es/components/approval-flow-editor/nodes/condition/form-meta.js +107 -0
  53. package/dist/es/components/approval-flow-editor/nodes/condition/index.js +46 -0
  54. package/dist/es/components/approval-flow-editor/nodes/end/form-meta.js +91 -0
  55. package/dist/es/components/approval-flow-editor/nodes/end/index.js +29 -0
  56. package/dist/es/components/approval-flow-editor/nodes/handle/form-meta.js +130 -0
  57. package/dist/es/components/approval-flow-editor/nodes/handle/index.js +39 -0
  58. package/dist/es/components/approval-flow-editor/nodes/index.js +18 -0
  59. package/dist/es/components/approval-flow-editor/nodes/start/form-meta.js +90 -0
  60. package/dist/es/components/approval-flow-editor/nodes/start/index.js +30 -0
  61. package/dist/es/components/approval-flow-editor/nodes/types.js +11 -0
  62. package/dist/es/components/crud/components/main.js +34 -33
  63. package/dist/es/components/index.js +28 -26
  64. package/dist/es/components/page/index.js +30 -30
  65. package/dist/es/components/pro-table/components/column-setting-item.js +114 -0
  66. package/dist/es/components/pro-table/components/column-settings-panel.js +60 -0
  67. package/dist/es/components/pro-table/components/column-settings.js +15 -0
  68. package/dist/es/components/pro-table/components/index.js +17 -9
  69. package/dist/es/components/pro-table/components/table.js +57 -53
  70. package/dist/es/components/pro-table/components/width-popover.js +59 -0
  71. package/dist/es/components/pro-table/context.js +12 -6
  72. package/dist/es/components/pro-table/hooks/index.js +5 -2
  73. package/dist/es/components/pro-table/hooks/use-column-settings-persistence.js +64 -0
  74. package/dist/es/components/pro-table/hooks/use-table-columns.js +91 -31
  75. package/dist/es/components/pro-table/index.js +46 -33
  76. package/dist/es/components/pro-table/store.js +84 -17
  77. package/dist/es/helpers/app.js +1 -1
  78. package/dist/es/index.js +73 -71
  79. package/dist/types/components/approval-flow-editor/assets/icons.d.ts +7 -0
  80. package/dist/types/components/approval-flow-editor/components/base-node/index.d.ts +27 -0
  81. package/dist/types/components/approval-flow-editor/components/base-node/styles.d.ts +7 -0
  82. package/dist/types/components/approval-flow-editor/components/index.d.ts +3 -0
  83. package/dist/types/components/approval-flow-editor/components/node-form-panel/index.d.ts +9 -0
  84. package/dist/types/components/approval-flow-editor/components/node-panel/index.d.ts +10 -0
  85. package/dist/types/components/approval-flow-editor/constants/index.d.ts +1 -0
  86. package/dist/types/components/approval-flow-editor/constants/node.d.ts +6 -0
  87. package/dist/types/components/approval-flow-editor/hooks/index.d.ts +1 -0
  88. package/dist/types/components/approval-flow-editor/hooks/use-editor-props.d.ts +8 -0
  89. package/dist/types/components/approval-flow-editor/index.d.ts +5 -0
  90. package/dist/types/components/approval-flow-editor/nodes/approval/form-meta.d.ts +4 -0
  91. package/dist/types/components/approval-flow-editor/nodes/approval/index.d.ts +2 -0
  92. package/dist/types/components/approval-flow-editor/nodes/comment/form-meta.d.ts +4 -0
  93. package/dist/types/components/approval-flow-editor/nodes/comment/index.d.ts +2 -0
  94. package/dist/types/components/approval-flow-editor/nodes/condition/form-meta.d.ts +4 -0
  95. package/dist/types/components/approval-flow-editor/nodes/condition/index.d.ts +2 -0
  96. package/dist/types/components/approval-flow-editor/nodes/end/form-meta.d.ts +4 -0
  97. package/dist/types/components/approval-flow-editor/nodes/end/index.d.ts +2 -0
  98. package/dist/types/components/approval-flow-editor/nodes/handle/form-meta.d.ts +4 -0
  99. package/dist/types/components/approval-flow-editor/nodes/handle/index.d.ts +2 -0
  100. package/dist/types/components/approval-flow-editor/nodes/index.d.ts +9 -0
  101. package/dist/types/components/approval-flow-editor/nodes/start/form-meta.d.ts +4 -0
  102. package/dist/types/components/approval-flow-editor/nodes/start/index.d.ts +2 -0
  103. package/dist/types/components/approval-flow-editor/nodes/types.d.ts +49 -0
  104. package/dist/types/components/approval-flow-editor/props.d.ts +8 -0
  105. package/dist/types/components/crud/props.d.ts +12 -1
  106. package/dist/types/components/index.d.ts +1 -0
  107. package/dist/types/components/pro-table/components/column-setting-item.d.ts +12 -0
  108. package/dist/types/components/pro-table/components/column-settings-panel.d.ts +2 -0
  109. package/dist/types/components/pro-table/components/column-settings.d.ts +6 -0
  110. package/dist/types/components/pro-table/components/index.d.ts +4 -0
  111. package/dist/types/components/pro-table/components/table.d.ts +9 -4
  112. package/dist/types/components/pro-table/components/width-popover.d.ts +9 -0
  113. package/dist/types/components/pro-table/context.d.ts +2 -0
  114. package/dist/types/components/pro-table/hooks/index.d.ts +1 -0
  115. package/dist/types/components/pro-table/hooks/use-column-settings-persistence.d.ts +7 -0
  116. package/dist/types/components/pro-table/hooks/use-table-columns.d.ts +3 -2
  117. package/dist/types/components/pro-table/index.d.ts +1 -1
  118. package/dist/types/components/pro-table/props.d.ts +10 -3
  119. package/dist/types/components/pro-table/store.d.ts +73 -3
  120. package/dist/types/components/pro-table/types.d.ts +17 -0
  121. package/dist/types/index.d.ts +1 -1
  122. package/package.json +20 -10
@@ -1,12 +1,15 @@
1
- import { jsxs as d, jsx as g } from "@emotion/react/jsx-runtime";
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 { ProTableStoreProvider as t } from "./store.js";
7
- import { ProTableRefHolder as u } from "./components/ref.js";
8
- import { NonPaginatedTable as J, PaginatedTable as s } from "./components/table.js";
9
- function e() {
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,eyJ2ZXJzaW9uIjozLCJzb3V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W5hYmxlZD17cXVlcnlFbmFibGVkfVxuICAgICAgICAgICAgICAgIHF1ZXJ5Rm49e3Jlc3RQcm9wcy5xdWVyeUZufVxuICAgICAgICAgICAgICAgIHF1ZXJ5UGFyYW1zPXtxdWVyeVBhcmFtc31cbiAgICAgICAgICAgICAgICByb3dLZXk9e3Jvd0tleX1cbiAgICAgICAgICAgICAgICByb3dTZWxlY3Rpb249e3Jvd1NlbGVjdGlvbn1cbiAgICAgICAgICAgICAgICBzZWxlY3RlZFJvd0tleXM9e3NlbGVjdGVkUm93S2V5c31cbiAgICAgICAgICAgICAgICBzaG93U2VxdWVuY2VDb2x1bW49e3Nob3dTZXF1ZW5jZUNvbHVtbn1cbiAgICAgICAgICAgICAgICBzdHlsZT17c3R5bGV9XG4gICAgICAgICAgICAgICAgdmlydHVhbD17dmlydHVhbH1cbiAgICAgICAgICAgICAgICBvblNlbGVjdGVkUm93S2V5c0NoYW5nZT17b25TZWxlY3RlZFJvd0tleXNDaGFuZ2V9XG4gICAgICAgICAgICAgIC8+XG4gICAgICAgICAgICApXG4gICAgICAgICAgOiAoXG4gICAgICAgICAgICAgIDxQYWdpbmF0ZWRUYWJsZVxuICAgICAgICAgICAgICAgIGNsYXNzTmFtZT17Y2xhc3NOYW1lfVxuICAgICAgICAgICAgICAgIGNvbHVtbnM9e2NvbHVtbnN9XG4gICAgICAgICAgICAgICAgb3BlcmF0aW9uQ29sdW1uPXtvcGVyYXRpb25Db2x1bW59XG4gICAgICAgICAgICAgICAgcXVlcnlFbmFibGVkPXtxdWVyeUVuYWJsZWR9XG4gICAgICAgICAgICAgICAgcXVlcnlGbj17cmVzdFByb3BzLnF1ZXJ5Rm59XG4gICAgICAgICAgICAgICAgcXVlcnlQYXJhbXM9e3F1ZXJ5UGFyYW1zfVxuICAgICAgICAgICAgICAgIHJvd0tleT17cm93S2V5fVxuICAgICAgICAgICAgICAgIHJvd1NlbGVjdGlvbj17cm93U2VsZWN0aW9ufVxuICAgICAgICAgICAgICAgI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b3J0IHR5cGUge1xuICBQcm9UYWJsZVN0YXRlXG59IGZyb20gXCIuL3N0b3JlXCI7XG5leHBvcnQgdHlwZSB7XG4gIE9wZXJhdGlvbkNvbHVtbkNvbmZpZyxcbiAgUGFyYW1zV2l0aFBhZ2luYXRpb24sXG4gIFBhcmFtc1dpdGhTb3J0LFxuICBQcm9UYWJsZVJlZixcbiAgUm93U2VsZWN0aW9uQ29uZmlnXG59IGZyb20gXCIuL3R5cGVzXCI7XG4iXX0= */",
18
- toString: e
19
- }, a = x(({
20
- className: C,
21
- style: b,
22
- columns: A,
23
- rowKey: c,
24
- rowSelection: l,
25
- queryEnabled: V,
26
- queryParams: G,
27
- showSequenceColumn: X,
28
- operationColumn: Z,
29
- selectedRowKeys: m,
30
- virtual: y,
31
- ref: i,
32
- header: F,
33
- footer: B,
34
- onSelectedRowKeysChange: W,
35
- ...I
36
- }) => /* @__PURE__ */ d(t, { children: [
37
- /* @__PURE__ */ g(u, { ref: i }),
38
- /* @__PURE__ */ d(Y, { css: R, gap: "middle", children: [
39
- F,
40
- I.isPaginated === !1 ? /* @__PURE__ */ g(J, { className: C, columns: A, operationColumn: Z, queryEnabled: V, queryFn: I.queryFn, queryParams: G, rowKey: c, rowSelection: l, selectedRowKeys: m, showSequenceColumn: X, style: b, virtual: y, onSelectedRowKeysChange: W }) : /* @__PURE__ */ g(s, { className: C, columns: A, operationColumn: Z, queryEnabled: V, queryFn: I.queryFn, queryParams: G, rowKey: c, rowSelection: l, selectedRowKeys: m, showSequenceColumn: X, style: b, virtual: y, onSelectedRowKeysChange: W }),
41
- B
42
- ] })
20
+ styles: "height:100%/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9Vc2Vycy92ZW51cy9WRUYvdmVmLWZyYW1ld29yay1yZWFjdC9wYWNrYWdlcy9zdGFydGVyL3NyYy9jb21wb25lbnRzL3Byby10YWJsZS9pbmRleC50c3giXSwibmFtZXMiOltdL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1cbiAgICAgICAgICAgICAgICAgIHF1ZXJ5UGFyYW1zPXtxdWVyeVBhcmFtc31cbiAgICAgICAgICAgICAgICAgIHJvd0tleT17cm93S2V5fVxuICAgICAgICAgICAgICAgICAgcm93U2VsZWN0aW9uPXtyb3dTZWxlY3Rpb259XG4gICAgICAgICAgICAgICAgICBzZWxlY3RlZFJvd0tleXM9e3NlbGVjdGVkUm93S2V5c31cbiAgICAgICAgICAgICAgICAgIHNob3dTZXF1ZW5jZUNvbHVtbj17c2hvd1NlcXVlbmNlQ29sdW1ufVxuICAgICAgICAgICAgICAgICAgc2l6ZT17c2l6ZX1cbiAgICAgICAgICAgICAgICAgIHN0eWxlPXtzdHlsZX1cbiAgICAgICAgICAgICAgICAgIHZpcnR1YWw9e3ZpcnR1YWx9XG4gICAgICAgICAgICAgICAgICBvblNlbGVjdGVkUm93S2V5c0NoYW5nZT17b25TZWxlY3RlZFJvd0tleXNDaGFuZ2V9XG4gICAgICAgICAgICAgICAgLz5cbiAgICAgICAgICAgICAgKVxuICAgICAgICAgICAgOiAoXG4gICAgICAgICAgICAgICAgPFBhZ2luYXRlZFRhYmxlXG4gICAgICAgICAgICAgICAgICBjbGFzc05hbWU9e2NsYXNzTmFtZX1cbiAgICAgICAgICAgICAgICAgIGNvbHVtbnM9e2NvbHVtbnN9XG4gICAgICAgICAgICAgICAgICBjb2x1bW5TZXR0aW5ncz17Y29sdW1uU2V0dGluZ3N9XG4gICAgICAgICAgICAgICAgICBvcGVyYXRpb25Db2x1bW49e29wZXJhdGlvbkNvbHVtbn1cbiAgICAgICAgICAgICAgICAgIHF1ZXJ5RW5hYmxlZD17cXVlcnlFbmFibGVkfVxuICAgICAgICAgICAgICAgICAgcXVlcnlGbj17cmVzdFByb3BzLnF1ZXJ5Rm59XG4gICAgICAgICAgICAgICAgICBxdWVyeVBhcmFtcz17cXVlcnlQYXJhbXN9XG4gICAgICAgICAgICAgICAgICByb3dLZXk9e3Jvd0tleX1cbiAgICAgICAgICAgICAg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zIFByb1RhYmxlU3Vic2NyaWJlclByb3BzXG59IGZyb20gXCIuL2NvbXBvbmVudHNcIjtcbmV4cG9ydCB0eXBlIHtcbiAgUHJvVGFibGVQcm9wc1xufSBmcm9tIFwiLi9wcm9wc1wiO1xuZXhwb3J0IHR5cGUge1xuICBQcm9UYWJsZVN0YXRlXG59IGZyb20gXCIuL3N0b3JlXCI7XG5leHBvcnQgdHlwZSB7XG4gIENvbHVtblNldHRpbmdzQ29uZmlnLFxuICBDb2x1bW5TZXR0aW5nc1Byb3AsXG4gIE9wZXJhdGlvbkNvbHVtbkNvbmZpZyxcbiAgUGFyYW1zV2l0aFBhZ2luYXRpb24sXG4gIFBhcmFtc1dpdGhTb3J0LFxuICBQcm9UYWJsZVJlZixcbiAgUm93U2VsZWN0aW9uQ29uZmlnXG59IGZyb20gXCIuL3R5cGVzXCI7XG4iXX0= */",
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
- a.displayName = "ProTable";
57
+ h.displayName = "ProTable";
45
58
  export {
46
- a as ProTable
59
+ h as ProTable
47
60
  };
@@ -1,33 +1,100 @@
1
- import { pageSizeOptions as a } from "@vef-framework/components";
2
- import { createComponentStore as i } from "@vef-framework/core";
3
- import { createEventEmitter as m } from "./event.js";
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: P,
6
- useStore: S,
7
- useStoreApi: c
8
- } = i("ProTable", (t, o) => ({
9
- eventEmitter: m(),
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: a[1]
27
+ size: S[1]
13
28
  },
14
29
  setPaginationParams: (e) => {
15
- t((r) => {
16
- r.paginationParams = e;
30
+ t((i) => {
31
+ i.paginationParams = e;
17
32
  });
18
33
  },
19
34
  sort: [],
20
35
  setSort: (e) => {
21
- t((r) => {
22
- r.sort = e;
36
+ t((i) => {
37
+ i.sort = e;
23
38
  });
24
39
  },
25
40
  refetch: () => {
26
- o().eventEmitter.emit("refetch");
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
- P as ProTableStoreProvider,
31
- S as useProTableStore,
32
- c as useProTableStoreApi
95
+ E as ProTableStoreProvider,
96
+ u as createColumnSetting,
97
+ v as getColumnId,
98
+ T as useProTableStore,
99
+ z as useProTableStoreApi
33
100
  };
@@ -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 = !0,
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 { createCrudKit as x } from "./components/crud/helpers.js";
7
- import { Crud as a } from "./components/crud/index.js";
8
- import { CrudPage as _ } from "./components/crud-page/index.js";
9
- import { FlexCard as u } from "./components/flex-card/index.js";
10
- import { FormDrawer as S } from "./components/form-drawer/index.js";
11
- import { FormModal as R } from "./components/form-modal/index.js";
12
- import { OperationButtonGroup as s } from "./components/pro-table/components/operation-button-group.js";
13
- import { Page as D } from "./components/page/index.js";
14
- import { ProSearch as N } from "./components/pro-search/index.js";
15
- import { ProTable as P } from "./components/pro-table/index.js";
16
- import { TableSubscriber as l } from "./components/pro-table/components/table-subscriber.js";
17
- import { useViewportHeight as b } from "./components/page/viewport-context.js";
18
- import { ACCESS_DENIED_EVENT as F, RELOAD_PAGE_EVENT as G, UNAUTHENTICATED_EVENT as g } from "./constants/event.js";
19
- import { ACCESS_DENIED_ROUTE_ID as H, ACCESS_DENIED_ROUTE_PATH as V, INDEX_ROUTE_ID as M, INDEX_ROUTE_PATH as X, LOGIN_ROUTE_ID as Y, LOGIN_ROUTE_PATH as B } from "./constants/router.js";
20
- import { STORAGE_KEY_PREFIX_STORE as v, STORAGE_KEY_SUFFIX_STORE as w } from "./constants/storage.js";
21
- import { SYMBOL_PAGINATION as Q, SYMBOL_SORT as j } from "./constants/symbols.js";
22
- import { createApiClient as q } from "./helpers/api.js";
23
- import { createApp as J } from "./helpers/app.js";
24
- import { setupAppVersionNotification as Z } from "./helpers/app-version.js";
25
- import { handleClientLogout as rr } from "./helpers/auth.js";
26
- import { dispatchCustomEvent as er, eventEmitter as tr, reloadPage as pr } from "./helpers/event.js";
27
- import { extractQueryParams as Er, noopMutationFn as xr } from "./helpers/query.js";
28
- import { createRouter as ar } from "./helpers/router.js";
29
- import { createAccessDeniedRouteOptions as _r } from "./routes/access-denied.js";
30
- import { createLayoutRouteOptions as ur } from "./routes/layout.js";
31
- import { createLoginRouteOptions as Sr } from "./routes/login.js";
32
- import { createRootRouteOptions as Rr } from "./routes/root.js";
33
- import { useAppStore as sr } from "./stores/app.js";
34
- import { useTabStore as Dr } from "./stores/tab.js";
35
- import { useThemeStore as Nr } from "./stores/theme.js";
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
- F as ACCESS_DENIED_EVENT,
38
- H as ACCESS_DENIED_ROUTE_ID,
39
- V as ACCESS_DENIED_ROUTE_PATH,
40
- a as Crud,
41
- _ as CrudPage,
42
- u as FlexCard,
43
- S as FormDrawer,
44
- R as FormModal,
45
- M as INDEX_ROUTE_ID,
46
- X as INDEX_ROUTE_PATH,
47
- Y as LOGIN_ROUTE_ID,
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
- s as OperationButtonGroup,
50
- D as Page,
51
- N as ProSearch,
52
- P as ProTable,
53
- l as ProTableSubscriber,
54
- G as RELOAD_PAGE_EVENT,
55
- v as STORAGE_KEY_PREFIX_STORE,
56
- w as STORAGE_KEY_SUFFIX_STORE,
57
- Q as SYMBOL_PAGINATION,
58
- j as SYMBOL_SORT,
59
- g as UNAUTHENTICATED_EVENT,
60
- _r as createAccessDeniedRouteOptions,
61
- q as createApiClient,
62
- J as createApp,
63
- x as createCrudKit,
64
- ur as createLayoutRouteOptions,
65
- Sr as createLoginRouteOptions,
66
- Rr as createRootRouteOptions,
67
- ar as createRouter,
68
- er as dispatchCustomEvent,
69
- tr as eventEmitter,
70
- Er as extractQueryParams,
71
- rr as handleClientLogout,
72
- xr as noopMutationFn,
73
- pr as reloadPage,
74
- Z as setupAppVersionNotification,
75
- sr as useAppStore,
76
- Dr as useTabStore,
77
- Nr as useThemeStore,
78
- b as useViewportHeight
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,2 @@
1
+ import { ApprovalNodeRegistry } from '../types';
2
+ export declare const approvalNodeRegistry: ApprovalNodeRegistry;
@@ -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,2 @@
1
+ import { ApprovalNodeRegistry } from '../types';
2
+ export declare const commentNodeRegistry: ApprovalNodeRegistry;
@@ -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,2 @@
1
+ import { ApprovalNodeRegistry } from '../types';
2
+ export declare const conditionNodeRegistry: ApprovalNodeRegistry;
@@ -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,2 @@
1
+ import { ApprovalNodeRegistry } from '../types';
2
+ export declare const endNodeRegistry: ApprovalNodeRegistry;
@@ -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,2 @@
1
+ import { ApprovalNodeRegistry } from '../types';
2
+ export declare const handleNodeRegistry: ApprovalNodeRegistry;
@@ -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>;
@@ -0,0 +1,2 @@
1
+ import { ApprovalNodeRegistry } from '../types';
2
+ export declare const startNodeRegistry: ApprovalNodeRegistry;