@erxes/ui 4.0.0-v2.11 → 4.0.0-v2.13

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 (51) hide show
  1. package/CATALOG.md +9 -2
  2. package/dist/components/color-picker.js +2 -2
  3. package/dist/components/combobox.js +4 -1
  4. package/dist/components/command-bar.js +3 -0
  5. package/dist/components/dialog.d.ts +5 -2
  6. package/dist/components/dialog.js +19 -10
  7. package/dist/components/field-control.d.ts +16 -0
  8. package/dist/components/field-control.js +19 -0
  9. package/dist/components/form-layout.d.ts +19 -0
  10. package/dist/components/form-layout.js +56 -0
  11. package/dist/components/form.d.ts +9 -2
  12. package/dist/components/form.js +17 -7
  13. package/dist/components/input.d.ts +1 -1
  14. package/dist/components/input.js +9 -4
  15. package/dist/components/multiselect.js +4 -1
  16. package/dist/components/on-demand.d.ts +9 -2
  17. package/dist/components/on-demand.js +15 -1
  18. package/dist/components/popover.js +17 -13
  19. package/dist/components/select.js +16 -11
  20. package/dist/components/sheet.d.ts +5 -2
  21. package/dist/components/sheet.js +18 -9
  22. package/dist/components/textarea.js +4 -1
  23. package/dist/hooks/use-focus-first-field.d.ts +8 -0
  24. package/dist/hooks/use-focus-first-field.js +15 -0
  25. package/dist/hooks/use-page-hotkey.d.ts +2 -0
  26. package/dist/hooks/use-page-hotkey.js +4 -2
  27. package/dist/index.d.ts +4 -2
  28. package/dist/index.js +4 -2
  29. package/dist/lib/render-in-dom.d.ts +6 -0
  30. package/dist/lib/render-in-dom.js +26 -0
  31. package/dist/modules/conditions/PathPicker.js +7 -2
  32. package/dist/modules/conditions/conditions.d.ts +2 -0
  33. package/dist/modules/filter/components/FilterBar.js +3 -0
  34. package/dist/modules/list/ListFilter.d.ts +11 -3
  35. package/dist/modules/list/ListFilter.js +8 -2
  36. package/dist/modules/list/ViewBar.d.ts +36 -4
  37. package/dist/modules/list/ViewBar.js +33 -9
  38. package/dist/modules/list/filter/ListFilterBar.js +11 -4
  39. package/dist/modules/list/filter/RuleChips.js +1 -5
  40. package/dist/modules/record-field/components/TextField.js +1 -4
  41. package/dist/modules/record-panel/PanelForm.d.ts +4 -2
  42. package/dist/modules/record-panel/PanelForm.js +73 -7
  43. 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
  44. 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
  45. 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
  46. 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
  47. 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
  48. 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
  49. 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
  50. package/exports.txt +7 -0
  51. 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 };
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.11",
3
+ "version": "4.0.0-v2.13",
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"