@erxes/ui 4.0.0-v2.10 → 4.0.0-v2.12

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 (42) hide show
  1. package/CATALOG.md +10 -3
  2. package/dist/components/combobox.js +4 -1
  3. package/dist/components/dialog.d.ts +5 -2
  4. package/dist/components/dialog.js +19 -10
  5. package/dist/components/field-control.d.ts +16 -0
  6. package/dist/components/field-control.js +19 -0
  7. package/dist/components/form-layout.d.ts +19 -0
  8. package/dist/components/form-layout.js +56 -0
  9. package/dist/components/form.d.ts +9 -2
  10. package/dist/components/form.js +17 -7
  11. package/dist/components/input.js +7 -2
  12. package/dist/components/multiselect.js +4 -1
  13. package/dist/components/popover.js +17 -13
  14. package/dist/components/select.js +16 -11
  15. package/dist/components/sheet.d.ts +5 -2
  16. package/dist/components/sheet.js +18 -9
  17. package/dist/components/textarea.js +4 -1
  18. package/dist/hooks/use-focus-first-field.d.ts +8 -0
  19. package/dist/hooks/use-focus-first-field.js +15 -0
  20. package/dist/hooks/use-page-hotkey.d.ts +2 -0
  21. package/dist/hooks/use-page-hotkey.js +4 -2
  22. package/dist/index.d.ts +4 -2
  23. package/dist/index.js +4 -2
  24. package/dist/lib/render-in-dom.d.ts +6 -0
  25. package/dist/lib/render-in-dom.js +26 -0
  26. package/dist/modules/list/ListFilter.d.ts +7 -1
  27. package/dist/modules/list/ListFilter.js +8 -2
  28. package/dist/modules/list/ViewBar.d.ts +36 -4
  29. package/dist/modules/list/ViewBar.js +33 -9
  30. package/dist/modules/record-field/components/TextField.js +1 -4
  31. package/dist/modules/record-panel/PanelForm.d.ts +12 -4
  32. package/dist/modules/record-panel/PanelForm.js +85 -12
  33. package/dist/node_modules/.pnpm/vitest@5.1.0_@opentelemetry_api@1.10.0_@types_node@26.6.6_@vitest_browser-preview@5.1.0_d78d0f63d2a6b1c4a51a56547b330411/node_modules/vitest/dist/chunks/display.BlTmubjj.js +181 -0
  34. package/dist/node_modules/.pnpm/vitest@5.1.0_@opentelemetry_api@1.10.0_@types_node@26.6.6_@vitest_browser-preview@5.1.0_d78d0f63d2a6b1c4a51a56547b330411/node_modules/vitest/dist/chunks/index.D0heQG4v.js +987 -0
  35. package/dist/node_modules/.pnpm/vitest@5.1.0_@opentelemetry_api@1.10.0_@types_node@26.6.6_@vitest_browser-preview@5.1.0_d78d0f63d2a6b1c4a51a56547b330411/node_modules/vitest/dist/chunks/pathe.M-eThtNZ.zq3TM4NT.js +176 -0
  36. package/dist/node_modules/.pnpm/vitest@5.1.0_@opentelemetry_api@1.10.0_@types_node@26.6.6_@vitest_browser-preview@5.1.0_d78d0f63d2a6b1c4a51a56547b330411/node_modules/vitest/dist/chunks/run.CjdgFZiW.js +1509 -0
  37. package/dist/node_modules/.pnpm/vitest@5.1.0_@opentelemetry_api@1.10.0_@types_node@26.6.6_@vitest_browser-preview@5.1.0_d78d0f63d2a6b1c4a51a56547b330411/node_modules/vitest/dist/chunks/source-map.DakdQc29.js +687 -0
  38. package/dist/node_modules/.pnpm/vitest@5.1.0_@opentelemetry_api@1.10.0_@types_node@26.6.6_@vitest_browser-preview@5.1.0_d78d0f63d2a6b1c4a51a56547b330411/node_modules/vitest/dist/chunks/tinyrainbow.Do8I1XRG.js +85 -0
  39. package/dist/node_modules/.pnpm/vitest@5.1.0_@opentelemetry_api@1.10.0_@types_node@26.6.6_@vitest_browser-preview@5.1.0_d78d0f63d2a6b1c4a51a56547b330411/node_modules/vitest/dist/task-utils.js +6 -0
  40. package/dist/types/UIConfig.d.ts +5 -5
  41. package/exports.txt +7 -0
  42. package/package.json +4 -1
@@ -0,0 +1,85 @@
1
+ // ../../node_modules/.pnpm/vitest@5.1.0_@opentelemetry+api@1.10.0_@types+node@26.6.6_@vitest+browser-preview@5.1.0_d78d0f63d2a6b1c4a51a56547b330411/node_modules/vitest/dist/chunks/tinyrainbow.Do8I1XRG.js
2
+ var d = (e) => String(e);
3
+ d.open = d.close = "";
4
+ var i = () => d;
5
+ var t = "\x1B[39m";
6
+ var o = "\x1B[49m";
7
+ var F = (e, r, a, n, l) => {
8
+ let m = "", g = 0;
9
+ do
10
+ m += e.substring(g, n) + a, g = n + l, n = e.indexOf(r, g);
11
+ while (~n);
12
+ return m + e.substring(g);
13
+ };
14
+ var u = (e, r, a = e, n = e.length) => {
15
+ let l = r.length, m = (g) => {
16
+ let s = g + "", x = s.indexOf(r, n);
17
+ return ~x ? e + F(s, r, a, x, l) + r : e + s + r;
18
+ };
19
+ return m.open = e, m.close = r, m;
20
+ };
21
+ var B = (e, r) => u(e, r, e, 5);
22
+ var c = (e) => {
23
+ let r = e.charCodeAt(0) === 35 ? e.slice(1) : e, a = parseInt(r, 16) || 0;
24
+ return r.length < 6 ? `${(a >> 8 & 15) * 17};${(a >> 4 & 15) * 17};${(a & 15) * 17}` : `${a >> 16 & 255};${a >> 8 & 255};${a & 255}`;
25
+ };
26
+ function y(e) {
27
+ let r = e ? u : i;
28
+ return {
29
+ isColorSupported: e,
30
+ reset: r("\x1B[0m", "\x1B[0m"),
31
+ bold: r("\x1B[1m", "\x1B[22m", "\x1B[22m\x1B[1m"),
32
+ dim: r("\x1B[2m", "\x1B[22m", "\x1B[22m\x1B[2m"),
33
+ italic: r("\x1B[3m", "\x1B[23m"),
34
+ underline: r("\x1B[4m", "\x1B[24m"),
35
+ inverse: r("\x1B[7m", "\x1B[27m"),
36
+ hidden: r("\x1B[8m", "\x1B[28m"),
37
+ strikethrough: r("\x1B[9m", "\x1B[29m"),
38
+ black: r("\x1B[30m", t),
39
+ red: r("\x1B[31m", t),
40
+ green: r("\x1B[32m", t),
41
+ yellow: r("\x1B[33m", t),
42
+ blue: r("\x1B[34m", t),
43
+ magenta: r("\x1B[35m", t),
44
+ cyan: r("\x1B[36m", t),
45
+ white: r("\x1B[37m", t),
46
+ gray: r("\x1B[90m", t),
47
+ bgBlack: r("\x1B[40m", o),
48
+ bgRed: r("\x1B[41m", o),
49
+ bgGreen: r("\x1B[42m", o),
50
+ bgYellow: r("\x1B[43m", o),
51
+ bgBlue: r("\x1B[44m", o),
52
+ bgMagenta: r("\x1B[45m", o),
53
+ bgCyan: r("\x1B[46m", o),
54
+ bgWhite: r("\x1B[47m", o),
55
+ blackBright: r("\x1B[90m", t),
56
+ redBright: r("\x1B[91m", t),
57
+ greenBright: r("\x1B[92m", t),
58
+ yellowBright: r("\x1B[93m", t),
59
+ blueBright: r("\x1B[94m", t),
60
+ magentaBright: r("\x1B[95m", t),
61
+ cyanBright: r("\x1B[96m", t),
62
+ whiteBright: r("\x1B[97m", t),
63
+ bgBlackBright: r("\x1B[100m", o),
64
+ bgRedBright: r("\x1B[101m", o),
65
+ bgGreenBright: r("\x1B[102m", o),
66
+ bgYellowBright: r("\x1B[103m", o),
67
+ bgBlueBright: r("\x1B[104m", o),
68
+ bgMagentaBright: r("\x1B[105m", o),
69
+ bgCyanBright: r("\x1B[106m", o),
70
+ bgWhiteBright: r("\x1B[107m", o),
71
+ rgb: e ? (n, l, m) => B(`\x1B[38;2;${n};${l};${m}m`, t) : i,
72
+ bgRgb: e ? (n, l, m) => B(`\x1B[48;2;${n};${l};${m}m`, o) : i,
73
+ hex: e ? (n) => B(`\x1B[38;2;${c(n)}m`, t) : i,
74
+ bgHex: e ? (n) => B(`\x1B[48;2;${c(n)}m`, o) : i
75
+ };
76
+ }
77
+ function C() {
78
+ let e = typeof process != "undefined" ? process : void 0, r = (e == null ? void 0 : e.env) || {}, a = r.FORCE_TTY !== "false", n = (e == null ? void 0 : e.argv) || [];
79
+ return !("NO_COLOR" in r || n.includes("--no-color")) && ("FORCE_COLOR" in r || n.includes("--color") || (e == null ? void 0 : e.platform) === "win32" || a && r.TERM !== "dumb" || "CI" in r) || typeof window != "undefined" && !!window.chrome;
80
+ }
81
+ function h({ force: e } = {}) {
82
+ return y(e || C());
83
+ }
84
+ var $ = h();
85
+ export { $ };
@@ -0,0 +1,6 @@
1
+ // ../../node_modules/.pnpm/vitest@5.1.0_@opentelemetry+api@1.10.0_@types+node@26.6.6_@vitest+browser-preview@5.1.0_d78d0f63d2a6b1c4a51a56547b330411/node_modules/vitest/dist/task-utils.js
2
+ /* @__NO_SIDE_EFFECTS__ */
3
+ function createTaskName(names, separator = " > ") {
4
+ return names.filter((name) => name !== void 0).join(separator);
5
+ }
6
+ export { createTaskName };
@@ -121,17 +121,17 @@ export type TPanelRecordType = {
121
121
  export type TRelationTabProps = TRecordSlotProps & TRecordContacts;
122
122
  /**
123
123
  * A plugin's tab on other records' panels, listing its own records.
124
- * It lists the plugin's own records of the same customers and companies: a customer's deals, a
125
- * task's deals. Shown on core's customers and companies
126
- * (their contacts are themselves) and on plugin record types that give `contacts`. A record
127
- * clicked in it opens on top in the same panel (`useOpenRecord().open`), and Back returns.
124
+ * It lists the plugin's own records of the same customers and companies: a customer's deals.
125
+ * Shown on core's customers and companies (their contacts are themselves), and on the plugin
126
+ * record types `hosts` names that give `contacts` (a task's deals). A record clicked in it opens
127
+ * on top in the same panel (`useOpenRecord().open`), and Back returns.
128
128
  */
129
129
  export type TRelationTab = {
130
130
  /** Unique within the plugin, e.g. `deals`. */
131
131
  name: string;
132
132
  title: string;
133
133
  icon: Icon;
134
- /** The content types it shows on (`core:customer`, `tasks:task`); every one when omitted. */
134
+ /** Plugin record types it also shows on (`tasks:task`); customers and companies always. */
135
135
  hosts?: string[];
136
136
  component: React.ComponentType<TRelationTabProps>;
137
137
  };
package/exports.txt CHANGED
@@ -44,7 +44,9 @@ type TDashboardWidgetPreview
44
44
  type TListDisplay
45
45
  type TListFilterField
46
46
  type TListFilterProps
47
+ type TListViews
47
48
  type TPanelRecordType
49
+ type TPluginListType
48
50
  type TPropertyInputMeta
49
51
  type TPropertyInputProps
50
52
  type TRecordContacts
@@ -55,6 +57,7 @@ type TRecordSlotProps
55
57
  type TRecordTab
56
58
  type TRelationTab
57
59
  type TRelationTabProps
60
+ type TViewTabsProps
58
61
  type Tag
59
62
  type TagsQuery
60
63
  value Accordion
@@ -111,6 +114,7 @@ value Kbd
111
114
  value LANGUAGES
112
115
  value Label
113
116
  value ListFilter
117
+ value ListViewsProvider
114
118
  value LookupPicker
115
119
  value MemberInline
116
120
  value MultipleSelector
@@ -206,11 +210,14 @@ value toAmountInput
206
210
  value toIsoDay
207
211
  value toast
208
212
  value useConfirm
213
+ value useFieldControl
209
214
  value useFilterContext
215
+ value useFocusFirstField
210
216
  value useFormat
211
217
  value useItemKeys
212
218
  value useListDisplay
213
219
  value useListFilterParams
220
+ value useListViews
214
221
  value useLiveSignal
215
222
  value useMemberOptions
216
223
  value useMembersById
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@erxes/ui",
3
- "version": "4.0.0-v2.10",
3
+ "version": "4.0.0-v2.12",
4
4
  "private": false,
5
5
  "description": "erxes design system: UI primitives, layout, hooks and shared frontend state",
6
6
  "license": "AGPL-3.0-only",
@@ -95,6 +95,9 @@
95
95
  "react-i18next": "^18.0.1",
96
96
  "react-router-dom": "^7.1.1"
97
97
  },
98
+ "inlinedDependencies": {
99
+ "vitest": "5.1.0"
100
+ },
98
101
  "scripts": {
99
102
  "build": "tsdown",
100
103
  "cn:tables": "cn build --full --css src/styles.css --out src/lib/cn-tables.ts --quiet"