@multiplatform.one/backoffice 7.2.1 → 7.3.0

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 (195) hide show
  1. package/dist/cjs/config/BackofficeProvider.cjs +4 -10
  2. package/dist/cjs/config/BackofficeProvider.native.js +9 -29
  3. package/dist/cjs/config/BackofficeProvider.native.js.map +1 -1
  4. package/dist/cjs/desk/Desk.cjs +187 -0
  5. package/dist/cjs/desk/Desk.native.js +214 -0
  6. package/dist/cjs/desk/Desk.native.js.map +1 -0
  7. package/dist/cjs/desk/DeskSurface.cjs +123 -0
  8. package/dist/cjs/desk/DeskSurface.native.js +130 -0
  9. package/dist/cjs/desk/DeskSurface.native.js.map +1 -0
  10. package/dist/cjs/desk/resolveDeskPath.cjs +118 -0
  11. package/dist/cjs/desk/resolveDeskPath.native.js +123 -0
  12. package/dist/cjs/desk/resolveDeskPath.native.js.map +1 -0
  13. package/dist/cjs/desk/scope.cjs +54 -0
  14. package/dist/cjs/desk/scope.native.js +61 -0
  15. package/dist/cjs/desk/scope.native.js.map +1 -0
  16. package/dist/cjs/desk/target.cjs +174 -0
  17. package/dist/cjs/desk/target.native.js +178 -0
  18. package/dist/cjs/desk/target.native.js.map +1 -0
  19. package/dist/cjs/index.cjs +13 -0
  20. package/dist/cjs/index.native.js +13 -0
  21. package/dist/cjs/index.native.js.map +1 -1
  22. package/dist/cjs/list/DoctypeListScreen.cjs +3 -1
  23. package/dist/cjs/list/DoctypeListScreen.native.js +3 -1
  24. package/dist/cjs/list/DoctypeListScreen.native.js.map +1 -1
  25. package/dist/cjs/report/DoctypeReportView.cjs +3 -1
  26. package/dist/cjs/report/DoctypeReportView.native.js +4 -2
  27. package/dist/cjs/report/DoctypeReportView.native.js.map +1 -1
  28. package/dist/cjs/views/CalendarView.cjs +5 -0
  29. package/dist/cjs/views/CalendarView.native.js +5 -0
  30. package/dist/cjs/views/CalendarView.native.js.map +1 -1
  31. package/dist/cjs/views/DashboardView.cjs +5 -3
  32. package/dist/cjs/views/DashboardView.native.js +5 -3
  33. package/dist/cjs/views/DashboardView.native.js.map +1 -1
  34. package/dist/cjs/views/ImageView.cjs +5 -0
  35. package/dist/cjs/views/ImageView.native.js +5 -0
  36. package/dist/cjs/views/ImageView.native.js.map +1 -1
  37. package/dist/cjs/views/KanbanView.cjs +5 -2
  38. package/dist/cjs/views/KanbanView.native.js +5 -2
  39. package/dist/cjs/views/KanbanView.native.js.map +1 -1
  40. package/dist/cjs/views/TreeView.cjs +5 -0
  41. package/dist/cjs/views/TreeView.native.js +5 -0
  42. package/dist/cjs/views/TreeView.native.js.map +1 -1
  43. package/dist/esm/config/BackofficeProvider.mjs +5 -11
  44. package/dist/esm/config/BackofficeProvider.mjs.map +1 -1
  45. package/dist/esm/config/BackofficeProvider.native.js +10 -30
  46. package/dist/esm/config/BackofficeProvider.native.js.map +1 -1
  47. package/dist/esm/desk/Desk.mjs +162 -0
  48. package/dist/esm/desk/Desk.mjs.map +1 -0
  49. package/dist/esm/desk/Desk.native.js +186 -0
  50. package/dist/esm/desk/Desk.native.js.map +1 -0
  51. package/dist/esm/desk/DeskSurface.mjs +97 -0
  52. package/dist/esm/desk/DeskSurface.mjs.map +1 -0
  53. package/dist/esm/desk/DeskSurface.native.js +101 -0
  54. package/dist/esm/desk/DeskSurface.native.js.map +1 -0
  55. package/dist/esm/desk/resolveDeskPath.mjs +93 -0
  56. package/dist/esm/desk/resolveDeskPath.mjs.map +1 -0
  57. package/dist/esm/desk/resolveDeskPath.native.js +95 -0
  58. package/dist/esm/desk/resolveDeskPath.native.js.map +1 -0
  59. package/dist/esm/desk/scope.mjs +27 -0
  60. package/dist/esm/desk/scope.mjs.map +1 -0
  61. package/dist/esm/desk/scope.native.js +31 -0
  62. package/dist/esm/desk/scope.native.js.map +1 -0
  63. package/dist/esm/desk/target.mjs +147 -0
  64. package/dist/esm/desk/target.mjs.map +1 -0
  65. package/dist/esm/desk/target.native.js +148 -0
  66. package/dist/esm/desk/target.native.js.map +1 -0
  67. package/dist/esm/index.mjs +6 -1
  68. package/dist/esm/index.mjs.map +1 -1
  69. package/dist/esm/index.native.js +6 -1
  70. package/dist/esm/index.native.js.map +1 -1
  71. package/dist/esm/list/DoctypeListScreen.mjs +3 -1
  72. package/dist/esm/list/DoctypeListScreen.mjs.map +1 -1
  73. package/dist/esm/list/DoctypeListScreen.native.js +3 -1
  74. package/dist/esm/list/DoctypeListScreen.native.js.map +1 -1
  75. package/dist/esm/report/DoctypeReportView.mjs +3 -1
  76. package/dist/esm/report/DoctypeReportView.mjs.map +1 -1
  77. package/dist/esm/report/DoctypeReportView.native.js +4 -2
  78. package/dist/esm/report/DoctypeReportView.native.js.map +1 -1
  79. package/dist/esm/views/CalendarView.mjs +5 -0
  80. package/dist/esm/views/CalendarView.mjs.map +1 -1
  81. package/dist/esm/views/CalendarView.native.js +5 -0
  82. package/dist/esm/views/CalendarView.native.js.map +1 -1
  83. package/dist/esm/views/DashboardView.mjs +5 -3
  84. package/dist/esm/views/DashboardView.mjs.map +1 -1
  85. package/dist/esm/views/DashboardView.native.js +5 -3
  86. package/dist/esm/views/DashboardView.native.js.map +1 -1
  87. package/dist/esm/views/ImageView.mjs +5 -0
  88. package/dist/esm/views/ImageView.mjs.map +1 -1
  89. package/dist/esm/views/ImageView.native.js +5 -0
  90. package/dist/esm/views/ImageView.native.js.map +1 -1
  91. package/dist/esm/views/KanbanView.mjs +5 -2
  92. package/dist/esm/views/KanbanView.mjs.map +1 -1
  93. package/dist/esm/views/KanbanView.native.js +5 -2
  94. package/dist/esm/views/KanbanView.native.js.map +1 -1
  95. package/dist/esm/views/TreeView.mjs +5 -0
  96. package/dist/esm/views/TreeView.mjs.map +1 -1
  97. package/dist/esm/views/TreeView.native.js +5 -0
  98. package/dist/esm/views/TreeView.native.js.map +1 -1
  99. package/dist/jsx/config/BackofficeProvider.mjs +5 -11
  100. package/dist/jsx/config/BackofficeProvider.mjs.map +1 -1
  101. package/dist/jsx/config/BackofficeProvider.native.js +9 -29
  102. package/dist/jsx/config/BackofficeProvider.native.js.map +1 -1
  103. package/dist/jsx/desk/Desk.mjs +162 -0
  104. package/dist/jsx/desk/Desk.mjs.map +1 -0
  105. package/dist/jsx/desk/Desk.native.js +214 -0
  106. package/dist/jsx/desk/Desk.native.js.map +1 -0
  107. package/dist/jsx/desk/DeskSurface.mjs +97 -0
  108. package/dist/jsx/desk/DeskSurface.mjs.map +1 -0
  109. package/dist/jsx/desk/DeskSurface.native.js +130 -0
  110. package/dist/jsx/desk/DeskSurface.native.js.map +1 -0
  111. package/dist/jsx/desk/resolveDeskPath.mjs +93 -0
  112. package/dist/jsx/desk/resolveDeskPath.mjs.map +1 -0
  113. package/dist/jsx/desk/resolveDeskPath.native.js +123 -0
  114. package/dist/jsx/desk/resolveDeskPath.native.js.map +1 -0
  115. package/dist/jsx/desk/scope.mjs +27 -0
  116. package/dist/jsx/desk/scope.mjs.map +1 -0
  117. package/dist/jsx/desk/scope.native.js +61 -0
  118. package/dist/jsx/desk/scope.native.js.map +1 -0
  119. package/dist/jsx/desk/target.mjs +147 -0
  120. package/dist/jsx/desk/target.mjs.map +1 -0
  121. package/dist/jsx/desk/target.native.js +178 -0
  122. package/dist/jsx/desk/target.native.js.map +1 -0
  123. package/dist/jsx/index.js +6 -1
  124. package/dist/jsx/index.js.map +1 -1
  125. package/dist/jsx/index.mjs +6 -1
  126. package/dist/jsx/index.mjs.map +1 -1
  127. package/dist/jsx/index.native.js +13 -0
  128. package/dist/jsx/index.native.js.map +1 -1
  129. package/dist/jsx/list/DoctypeListScreen.mjs +3 -1
  130. package/dist/jsx/list/DoctypeListScreen.mjs.map +1 -1
  131. package/dist/jsx/list/DoctypeListScreen.native.js +3 -1
  132. package/dist/jsx/list/DoctypeListScreen.native.js.map +1 -1
  133. package/dist/jsx/report/DoctypeReportView.mjs +3 -1
  134. package/dist/jsx/report/DoctypeReportView.mjs.map +1 -1
  135. package/dist/jsx/report/DoctypeReportView.native.js +4 -2
  136. package/dist/jsx/report/DoctypeReportView.native.js.map +1 -1
  137. package/dist/jsx/views/CalendarView.mjs +5 -0
  138. package/dist/jsx/views/CalendarView.mjs.map +1 -1
  139. package/dist/jsx/views/CalendarView.native.js +5 -0
  140. package/dist/jsx/views/CalendarView.native.js.map +1 -1
  141. package/dist/jsx/views/DashboardView.mjs +5 -3
  142. package/dist/jsx/views/DashboardView.mjs.map +1 -1
  143. package/dist/jsx/views/DashboardView.native.js +5 -3
  144. package/dist/jsx/views/DashboardView.native.js.map +1 -1
  145. package/dist/jsx/views/ImageView.mjs +5 -0
  146. package/dist/jsx/views/ImageView.mjs.map +1 -1
  147. package/dist/jsx/views/ImageView.native.js +5 -0
  148. package/dist/jsx/views/ImageView.native.js.map +1 -1
  149. package/dist/jsx/views/KanbanView.mjs +5 -2
  150. package/dist/jsx/views/KanbanView.mjs.map +1 -1
  151. package/dist/jsx/views/KanbanView.native.js +5 -2
  152. package/dist/jsx/views/KanbanView.native.js.map +1 -1
  153. package/dist/jsx/views/TreeView.mjs +5 -0
  154. package/dist/jsx/views/TreeView.mjs.map +1 -1
  155. package/dist/jsx/views/TreeView.native.js +5 -0
  156. package/dist/jsx/views/TreeView.native.js.map +1 -1
  157. package/package.json +12 -12
  158. package/src/config/BackofficeProvider.tsx +11 -18
  159. package/src/desk/Desk.spec.tsx +287 -0
  160. package/src/desk/Desk.tsx +308 -0
  161. package/src/desk/DeskSurface.tsx +132 -0
  162. package/src/desk/doctrine.spec.ts +48 -0
  163. package/src/desk/resolveDeskPath.spec.ts +174 -0
  164. package/src/desk/resolveDeskPath.ts +111 -0
  165. package/src/desk/scope.tsx +52 -0
  166. package/src/desk/target.ts +169 -0
  167. package/src/index.ts +17 -0
  168. package/src/list/DoctypeListScreen.tsx +4 -1
  169. package/src/report/DoctypeReportView.tsx +6 -2
  170. package/src/views/CalendarView.tsx +3 -0
  171. package/src/views/DashboardView.tsx +5 -3
  172. package/src/views/ImageView.tsx +3 -0
  173. package/src/views/KanbanView.tsx +5 -1
  174. package/src/views/TreeView.tsx +3 -0
  175. package/types/config/BackofficeProvider.d.ts +6 -4
  176. package/types/config/BackofficeProvider.d.ts.map +1 -1
  177. package/types/desk/Desk.d.ts +91 -0
  178. package/types/desk/Desk.d.ts.map +1 -0
  179. package/types/desk/DeskSurface.d.ts +24 -0
  180. package/types/desk/DeskSurface.d.ts.map +1 -0
  181. package/types/desk/resolveDeskPath.d.ts +60 -0
  182. package/types/desk/resolveDeskPath.d.ts.map +1 -0
  183. package/types/desk/scope.d.ts +31 -0
  184. package/types/desk/scope.d.ts.map +1 -0
  185. package/types/desk/target.d.ts +57 -0
  186. package/types/desk/target.d.ts.map +1 -0
  187. package/types/index.d.ts +10 -0
  188. package/types/index.d.ts.map +1 -1
  189. package/types/list/DoctypeListScreen.d.ts.map +1 -1
  190. package/types/report/DoctypeReportView.d.ts.map +1 -1
  191. package/types/views/CalendarView.d.ts.map +1 -1
  192. package/types/views/DashboardView.d.ts.map +1 -1
  193. package/types/views/ImageView.d.ts.map +1 -1
  194. package/types/views/KanbanView.d.ts.map +1 -1
  195. package/types/views/TreeView.d.ts.map +1 -1
@@ -0,0 +1,174 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all) __defProp(target, name, {
7
+ get: all[name],
8
+ enumerable: true
9
+ });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
14
+ get: () => from[key],
15
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
16
+ });
17
+ }
18
+ return to;
19
+ };
20
+ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
21
+ value: true
22
+ }), mod);
23
+ var target_exports = {};
24
+ __export(target_exports, {
25
+ guessDeskTarget: () => guessDeskTarget,
26
+ hasDeskPin: () => hasDeskPin,
27
+ useDeskTarget: () => useDeskTarget
28
+ });
29
+ module.exports = __toCommonJS(target_exports);
30
+ var import_react = require("react");
31
+ var import_BackofficeProvider = require("../config/BackofficeProvider.cjs");
32
+ var import_navigator = require("../navigation/navigator.cjs");
33
+ var import_paths = require("../navigation/paths.cjs");
34
+ var import_useSlugTarget = require("../shared/useSlugTarget.cjs");
35
+ var import_resolveDeskPath = require("./resolveDeskPath.cjs");
36
+ function hasDeskPin(pins) {
37
+ return Boolean(pins.doctype || pins.workspace || pins.report || pins.path);
38
+ }
39
+ function pinnedTarget(pins) {
40
+ if (pins.doctype) {
41
+ if (pins.name === "new") return {
42
+ kind: "new",
43
+ doctype: pins.doctype
44
+ };
45
+ if (pins.name) return {
46
+ kind: "form",
47
+ doctype: pins.doctype,
48
+ name: pins.name
49
+ };
50
+ if (pins.view && pins.view !== "list") {
51
+ return {
52
+ kind: "view",
53
+ doctype: pins.doctype,
54
+ view: pins.view
55
+ };
56
+ }
57
+ return {
58
+ kind: "list",
59
+ doctype: pins.doctype
60
+ };
61
+ }
62
+ if (pins.workspace) return {
63
+ kind: "workspace",
64
+ workspace: pins.workspace
65
+ };
66
+ if (pins.report) return {
67
+ kind: "report",
68
+ reportName: pins.report
69
+ };
70
+ return void 0;
71
+ }
72
+ function addressToTarget(address, slugKind, slugName) {
73
+ switch (address.kind) {
74
+ case "home":
75
+ return {
76
+ kind: "home"
77
+ };
78
+ case "report":
79
+ return {
80
+ kind: "report",
81
+ reportName: address.reportName,
82
+ filtersParam: address.filtersParam
83
+ };
84
+ case "not-found":
85
+ return {
86
+ kind: "not-found"
87
+ };
88
+ default:
89
+ break;
90
+ }
91
+ if (slugKind === "loading") return void 0;
92
+ if (slugKind === "not-found" || !slugName) return {
93
+ kind: "not-found",
94
+ slug: address.slug
95
+ };
96
+ if (slugKind === "workspace") {
97
+ return address.kind === "slug" ? {
98
+ kind: "workspace",
99
+ workspace: slugName
100
+ } : {
101
+ kind: "not-found",
102
+ slug: address.slug
103
+ };
104
+ }
105
+ switch (address.kind) {
106
+ case "slug":
107
+ return {
108
+ kind: "list",
109
+ doctype: slugName,
110
+ filtersParam: address.filtersParam,
111
+ sortParam: address.sortParam
112
+ };
113
+ case "slug-view":
114
+ return {
115
+ kind: "view",
116
+ doctype: slugName,
117
+ view: address.view,
118
+ params: address.params
119
+ };
120
+ case "slug-new":
121
+ return {
122
+ kind: "new",
123
+ doctype: slugName,
124
+ defaults: address.defaults
125
+ };
126
+ case "slug-name":
127
+ return {
128
+ kind: "form",
129
+ doctype: slugName,
130
+ name: address.name
131
+ };
132
+ }
133
+ }
134
+ function guessDeskTarget(path, basePath) {
135
+ const {
136
+ path: cleanPath,
137
+ params
138
+ } = (0, import_navigator.parseBackofficeHref)(path);
139
+ const address = (0, import_resolveDeskPath.resolveDeskPath)(cleanPath, basePath, params);
140
+ const guess = "slug" in address ? (0, import_paths.slugToDisplayName)(address.slug) : void 0;
141
+ return addressToTarget(address, guess ? "doctype" : "not-found", guess) ?? {
142
+ kind: "not-found"
143
+ };
144
+ }
145
+ function useDeskTarget(pins) {
146
+ const {
147
+ basePath
148
+ } = (0, import_BackofficeProvider.useBackofficeConfig)();
149
+ const location = (0, import_BackofficeProvider.useBackofficeLocation)();
150
+ const initialLocation = (0, import_react.useRef)(location);
151
+ const entryActive = location === initialLocation.current;
152
+ const address = (0, import_react.useMemo)(() => {
153
+ if (entryActive && pins.path) {
154
+ const prefix = basePath === "/" ? "" : basePath.replace(/\/+$/, "");
155
+ const {
156
+ path,
157
+ params
158
+ } = (0, import_navigator.parseBackofficeHref)(`${prefix}${pins.path}`);
159
+ return (0, import_resolveDeskPath.resolveDeskPath)(path, basePath, params);
160
+ }
161
+ if (entryActive && hasDeskPin(pins)) return void 0;
162
+ return (0, import_resolveDeskPath.resolveDeskPath)(location.path, basePath, location.params);
163
+ }, [entryActive, pins, basePath, location]);
164
+ const pinned = entryActive && !pins.path ? pinnedTarget(pins) : void 0;
165
+ const slug = !pinned && address && "slug" in address ? address.slug : void 0;
166
+ const slugTarget = (0, import_useSlugTarget.useSlugTarget)(slug);
167
+ return (0, import_react.useMemo)(() => {
168
+ if (pinned) return pinned;
169
+ if (!address) return void 0;
170
+ const slugKind = slugTarget.status === "loading" ? "loading" : slugTarget.status === "not-found" ? "not-found" : slugTarget.kind;
171
+ const slugName = slugTarget.status === "resolved" ? slugTarget.kind === "workspace" ? slugTarget.workspace : slugTarget.doctype : void 0;
172
+ return addressToTarget(address, slugKind, slugName);
173
+ }, [pinned, address, slugTarget]);
174
+ }
@@ -0,0 +1,178 @@
1
+ "use strict";
2
+
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all) __defProp(target, name, {
9
+ get: all[name],
10
+ enumerable: true
11
+ });
12
+ };
13
+ var __copyProps = (to, from, except, desc) => {
14
+ if (from && typeof from === "object" || typeof from === "function") {
15
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
16
+ get: () => from[key],
17
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
18
+ });
19
+ }
20
+ return to;
21
+ };
22
+ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
23
+ value: true
24
+ }), mod);
25
+ var target_exports = {};
26
+ __export(target_exports, {
27
+ guessDeskTarget: () => guessDeskTarget,
28
+ hasDeskPin: () => hasDeskPin,
29
+ useDeskTarget: () => useDeskTarget
30
+ });
31
+ module.exports = __toCommonJS(target_exports);
32
+ var import_react = require("react");
33
+ var import_BackofficeProvider = require("../config/BackofficeProvider.native.js");
34
+ var import_navigator = require("../navigation/navigator.native.js");
35
+ var import_paths = require("../navigation/paths.native.js");
36
+ var import_useSlugTarget = require("../shared/useSlugTarget.native.js");
37
+ var import_resolveDeskPath = require("./resolveDeskPath.native.js");
38
+ function hasDeskPin(pins) {
39
+ return Boolean(pins.doctype || pins.workspace || pins.report || pins.path);
40
+ }
41
+ function pinnedTarget(pins) {
42
+ if (pins.doctype) {
43
+ if (pins.name === "new") return {
44
+ kind: "new",
45
+ doctype: pins.doctype
46
+ };
47
+ if (pins.name) return {
48
+ kind: "form",
49
+ doctype: pins.doctype,
50
+ name: pins.name
51
+ };
52
+ if (pins.view && pins.view !== "list") {
53
+ return {
54
+ kind: "view",
55
+ doctype: pins.doctype,
56
+ view: pins.view
57
+ };
58
+ }
59
+ return {
60
+ kind: "list",
61
+ doctype: pins.doctype
62
+ };
63
+ }
64
+ if (pins.workspace) return {
65
+ kind: "workspace",
66
+ workspace: pins.workspace
67
+ };
68
+ if (pins.report) return {
69
+ kind: "report",
70
+ reportName: pins.report
71
+ };
72
+ return void 0;
73
+ }
74
+ function addressToTarget(address, slugKind, slugName) {
75
+ switch (address.kind) {
76
+ case "home":
77
+ return {
78
+ kind: "home"
79
+ };
80
+ case "report":
81
+ return {
82
+ kind: "report",
83
+ reportName: address.reportName,
84
+ filtersParam: address.filtersParam
85
+ };
86
+ case "not-found":
87
+ return {
88
+ kind: "not-found"
89
+ };
90
+ default:
91
+ break;
92
+ }
93
+ if (slugKind === "loading") return void 0;
94
+ if (slugKind === "not-found" || !slugName) return {
95
+ kind: "not-found",
96
+ slug: address.slug
97
+ };
98
+ if (slugKind === "workspace") {
99
+ return address.kind === "slug" ? {
100
+ kind: "workspace",
101
+ workspace: slugName
102
+ } : {
103
+ kind: "not-found",
104
+ slug: address.slug
105
+ };
106
+ }
107
+ switch (address.kind) {
108
+ case "slug":
109
+ return {
110
+ kind: "list",
111
+ doctype: slugName,
112
+ filtersParam: address.filtersParam,
113
+ sortParam: address.sortParam
114
+ };
115
+ case "slug-view":
116
+ return {
117
+ kind: "view",
118
+ doctype: slugName,
119
+ view: address.view,
120
+ params: address.params
121
+ };
122
+ case "slug-new":
123
+ return {
124
+ kind: "new",
125
+ doctype: slugName,
126
+ defaults: address.defaults
127
+ };
128
+ case "slug-name":
129
+ return {
130
+ kind: "form",
131
+ doctype: slugName,
132
+ name: address.name
133
+ };
134
+ }
135
+ }
136
+ function guessDeskTarget(path, basePath) {
137
+ var _addressToTarget;
138
+ var {
139
+ path: cleanPath,
140
+ params
141
+ } = (0, import_navigator.parseBackofficeHref)(path);
142
+ var address = (0, import_resolveDeskPath.resolveDeskPath)(cleanPath, basePath, params);
143
+ var guess = "slug" in address ? (0, import_paths.slugToDisplayName)(address.slug) : void 0;
144
+ return (_addressToTarget = addressToTarget(address, guess ? "doctype" : "not-found", guess)) !== null && _addressToTarget !== void 0 ? _addressToTarget : {
145
+ kind: "not-found"
146
+ };
147
+ }
148
+ function useDeskTarget(pins) {
149
+ var {
150
+ basePath
151
+ } = (0, import_BackofficeProvider.useBackofficeConfig)();
152
+ var location = (0, import_BackofficeProvider.useBackofficeLocation)();
153
+ var initialLocation = (0, import_react.useRef)(location);
154
+ var entryActive = location === initialLocation.current;
155
+ var address = (0, import_react.useMemo)(function () {
156
+ if (entryActive && pins.path) {
157
+ var prefix = basePath === "/" ? "" : basePath.replace(/\/+$/, "");
158
+ var {
159
+ path,
160
+ params
161
+ } = (0, import_navigator.parseBackofficeHref)(`${prefix}${pins.path}`);
162
+ return (0, import_resolveDeskPath.resolveDeskPath)(path, basePath, params);
163
+ }
164
+ if (entryActive && hasDeskPin(pins)) return void 0;
165
+ return (0, import_resolveDeskPath.resolveDeskPath)(location.path, basePath, location.params);
166
+ }, [entryActive, pins, basePath, location]);
167
+ var pinned = entryActive && !pins.path ? pinnedTarget(pins) : void 0;
168
+ var slug = !pinned && address && "slug" in address ? address.slug : void 0;
169
+ var slugTarget = (0, import_useSlugTarget.useSlugTarget)(slug);
170
+ return (0, import_react.useMemo)(function () {
171
+ if (pinned) return pinned;
172
+ if (!address) return void 0;
173
+ var slugKind = slugTarget.status === "loading" ? "loading" : slugTarget.status === "not-found" ? "not-found" : slugTarget.kind;
174
+ var slugName = slugTarget.status === "resolved" ? slugTarget.kind === "workspace" ? slugTarget.workspace : slugTarget.doctype : void 0;
175
+ return addressToTarget(address, slugKind, slugName);
176
+ }, [pinned, address, slugTarget]);
177
+ }
178
+ //# sourceMappingURL=target.native.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["__defProp","Object","defineProperty","__getOwnPropDesc","getOwnPropertyDescriptor","__getOwnPropNames","getOwnPropertyNames","__hasOwnProp","prototype","hasOwnProperty","__export","target","all","name","get","enumerable","__copyProps","to","from","except","desc","key","call","__toCommonJS","mod","value","target_exports","guessDeskTarget","hasDeskPin","useDeskTarget","module","exports","import_react","require","import_BackofficeProvider","import_navigator","import_paths","import_useSlugTarget","import_resolveDeskPath","pins","Boolean","doctype","workspace","report","path","pinnedTarget","kind","view","reportName","addressToTarget","address","slugKind","slugName","filtersParam","slug","sortParam","params","defaults","basePath","_addressToTarget","cleanPath","parseBackofficeHref","resolveDeskPath","guess","slugToDisplayName","useBackofficeConfig","location","useBackofficeLocation","initialLocation","useRef","entryActive","current","useMemo","prefix","replace","pinned","slugTarget","useSlugTarget","status"],"sources":["target.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar target_exports = {};\n__export(target_exports, {\n guessDeskTarget: () => guessDeskTarget,\n hasDeskPin: () => hasDeskPin,\n useDeskTarget: () => useDeskTarget\n});\nmodule.exports = __toCommonJS(target_exports);\nvar import_react = require(\"react\");\nvar import_BackofficeProvider = require(\"../config/BackofficeProvider\");\nvar import_navigator = require(\"../navigation/navigator\");\nvar import_paths = require(\"../navigation/paths\");\nvar import_useSlugTarget = require(\"../shared/useSlugTarget\");\nvar import_resolveDeskPath = require(\"./resolveDeskPath\");\nfunction hasDeskPin(pins) {\n return Boolean(pins.doctype || pins.workspace || pins.report || pins.path);\n}\nfunction pinnedTarget(pins) {\n if (pins.doctype) {\n if (pins.name === \"new\") return {\n kind: \"new\",\n doctype: pins.doctype\n };\n if (pins.name) return {\n kind: \"form\",\n doctype: pins.doctype,\n name: pins.name\n };\n if (pins.view && pins.view !== \"list\") {\n return {\n kind: \"view\",\n doctype: pins.doctype,\n view: pins.view\n };\n }\n return {\n kind: \"list\",\n doctype: pins.doctype\n };\n }\n if (pins.workspace) return {\n kind: \"workspace\",\n workspace: pins.workspace\n };\n if (pins.report) return {\n kind: \"report\",\n reportName: pins.report\n };\n return void 0;\n}\nfunction addressToTarget(address, slugKind, slugName) {\n switch (address.kind) {\n case \"home\":\n return {\n kind: \"home\"\n };\n case \"report\":\n return {\n kind: \"report\",\n reportName: address.reportName,\n filtersParam: address.filtersParam\n };\n case \"not-found\":\n return {\n kind: \"not-found\"\n };\n default:\n break;\n }\n if (slugKind === \"loading\") return void 0;\n if (slugKind === \"not-found\" || !slugName) return {\n kind: \"not-found\",\n slug: address.slug\n };\n if (slugKind === \"workspace\") {\n return address.kind === \"slug\" ? {\n kind: \"workspace\",\n workspace: slugName\n } : {\n kind: \"not-found\",\n slug: address.slug\n };\n }\n switch (address.kind) {\n case \"slug\":\n return {\n kind: \"list\",\n doctype: slugName,\n filtersParam: address.filtersParam,\n sortParam: address.sortParam\n };\n case \"slug-view\":\n return {\n kind: \"view\",\n doctype: slugName,\n view: address.view,\n params: address.params\n };\n case \"slug-new\":\n return {\n kind: \"new\",\n doctype: slugName,\n defaults: address.defaults\n };\n case \"slug-name\":\n return {\n kind: \"form\",\n doctype: slugName,\n name: address.name\n };\n }\n}\nfunction guessDeskTarget(path, basePath) {\n var _addressToTarget;\n var { path: cleanPath, params } = (0, import_navigator.parseBackofficeHref)(path);\n var address = (0, import_resolveDeskPath.resolveDeskPath)(cleanPath, basePath, params);\n var guess = \"slug\" in address ? (0, import_paths.slugToDisplayName)(address.slug) : void 0;\n return (_addressToTarget = addressToTarget(address, guess ? \"doctype\" : \"not-found\", guess)) !== null && _addressToTarget !== void 0 ? _addressToTarget : {\n kind: \"not-found\"\n };\n}\nfunction useDeskTarget(pins) {\n var { basePath } = (0, import_BackofficeProvider.useBackofficeConfig)();\n var location = (0, import_BackofficeProvider.useBackofficeLocation)();\n var initialLocation = (0, import_react.useRef)(location);\n var entryActive = location === initialLocation.current;\n var address = (0, import_react.useMemo)(function() {\n if (entryActive && pins.path) {\n var prefix = basePath === \"/\" ? \"\" : basePath.replace(/\\/+$/, \"\");\n var { path, params } = (0, import_navigator.parseBackofficeHref)(`${prefix}${pins.path}`);\n return (0, import_resolveDeskPath.resolveDeskPath)(path, basePath, params);\n }\n if (entryActive && hasDeskPin(pins)) return void 0;\n return (0, import_resolveDeskPath.resolveDeskPath)(location.path, basePath, location.params);\n }, [\n entryActive,\n pins,\n basePath,\n location\n ]);\n var pinned = entryActive && !pins.path ? pinnedTarget(pins) : void 0;\n var slug = !pinned && address && \"slug\" in address ? address.slug : void 0;\n var slugTarget = (0, import_useSlugTarget.useSlugTarget)(slug);\n return (0, import_react.useMemo)(function() {\n if (pinned) return pinned;\n if (!address) return void 0;\n var slugKind = slugTarget.status === \"loading\" ? \"loading\" : slugTarget.status === \"not-found\" ? \"not-found\" : slugTarget.kind;\n var slugName = slugTarget.status === \"resolved\" ? slugTarget.kind === \"workspace\" ? slugTarget.workspace : slugTarget.doctype : void 0;\n return addressToTarget(address, slugKind, slugName);\n }, [\n pinned,\n address,\n slugTarget\n ]);\n}\n//# sourceMappingURL=target.js.map\n"],"mappings":"AAAA,YAAY;;AACZ,IAAIA,SAAS,GAAGC,MAAM,CAACC,cAAc;AACrC,IAAIC,gBAAgB,GAAGF,MAAM,CAACG,wBAAwB;AACtD,IAAIC,iBAAiB,GAAGJ,MAAM,CAACK,mBAAmB;AAClD,IAAIC,YAAY,GAAGN,MAAM,CAACO,SAAS,CAACC,cAAc;AAClD,IAAIC,QAAQ,GAAGA,CAACC,MAAM,EAAEC,GAAG,KAAK;EAC9B,KAAK,IAAIC,IAAI,IAAID,GAAG,EAClBZ,SAAS,CAACW,MAAM,EAAEE,IAAI,EAAE;IAAEC,GAAG,EAAEF,GAAG,CAACC,IAAI,CAAC;IAAEE,UAAU,EAAE;EAAK,CAAC,CAAC;AACjE,CAAC;AACD,IAAIC,WAAW,GAAGA,CAACC,EAAE,EAAEC,IAAI,EAAEC,MAAM,EAAEC,IAAI,KAAK;EAC5C,IAAIF,IAAI,IAAI,OAAOA,IAAI,KAAK,QAAQ,IAAI,OAAOA,IAAI,KAAK,UAAU,EAAE;IAClE,KAAK,IAAIG,GAAG,IAAIhB,iBAAiB,CAACa,IAAI,CAAC,EACrC,IAAI,CAACX,YAAY,CAACe,IAAI,CAACL,EAAE,EAAEI,GAAG,CAAC,IAAIA,GAAG,KAAKF,MAAM,EAC/CnB,SAAS,CAACiB,EAAE,EAAEI,GAAG,EAAE;MAAEP,GAAG,EAAEA,CAAA,KAAMI,IAAI,CAACG,GAAG,CAAC;MAAEN,UAAU,EAAE,EAAEK,IAAI,GAAGjB,gBAAgB,CAACe,IAAI,EAAEG,GAAG,CAAC,CAAC,IAAID,IAAI,CAACL;IAAW,CAAC,CAAC;EACxH;EACA,OAAOE,EAAE;AACX,CAAC;AACD,IAAIM,YAAY,GAAIC,GAAG,IAAKR,WAAW,CAAChB,SAAS,CAAC,CAAC,CAAC,EAAE,YAAY,EA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Q,CACT,CAAC;EACF,IAAIS,MAAM,GAAGL,WAAW,IAAI,CAAC/B,IAAI,CAACK,IAAI,GAAGC,YAAY,CAACN,IAAI,CAAC,GAAG,KAAK,CAAC;EACpE,IAAIe,IAAI,GAAG,CAACqB,MAAM,IAAIzB,OAAO,IAAI,MAAM,IAAIA,OAAO,GAAGA,OAAO,CAACI,IAAI,GAAG,KAAK,CAAC;EAC1E,IAAIsB,UAAU,GAAG,CAAC,CAAC,EAAEvC,oBAAoB,CAACwC,aAAa,EAAEvB,IAAI,CAAC;EAC9D,OAAO,CAAC,CAAC,EAAEtB,YAAY,CAACwC,OAAO,EAAE,YAAW;IAC1C,IAAIG,MAAM,EAAE,OAAOA,MAAM;IACzB,IAAI,CAACzB,OAAO,EAAE,OAAO,KAAK,CAAC;IAC3B,IAAIC,QAAQ,GAAGyB,UAAU,CAACE,MAAM,KAAK,SAAS,GAAG,SAAS,GAAGF,UAAU,CAACE,MAAM,KAAK,WAAW,GAAG,WAAW,GAAGF,UAAU,CAAC9B,IAAI;IAC9H,IAAIM,QAAQ,GAAGwB,UAAU,CAACE,MAAM,KAAK,UAAU,GAAGF,UAAU,CAAC9B,IAAI,KAAK,WAAW,GAAG8B,UAAU,CAAClC,SAAS,GAAGkC,UAAU,CAACnC,OAAO,GAAG,KAAK,CAAC;IACtI,OAAOQ,eAAe,CAACC,OAAO,EAAEC,QAAQ,EAAEC,QAAQ,CAAC;EACrD,CAAC,EAAE,CACDuB,MAAM,EACNzB,OAAO,EACP0B,UAAU,CACX,CAAC;AACJ","ignoreList":[]}
@@ -41,6 +41,9 @@ __export(index_exports, {
41
41
  CreateBoardDialog: () => import_kanban_board_controls.CreateBoardDialog,
42
42
  DESK_OPERATOR_LABELS: () => import_filter_fields.DESK_OPERATOR_LABELS,
43
43
  DashboardView: () => import_DashboardView.DashboardView,
44
+ Desk: () => import_Desk.Desk,
45
+ DeskScopeProvider: () => import_scope.DeskScopeProvider,
46
+ DeskSurface: () => import_DeskSurface.DeskSurface,
44
47
  DocFormScreen: () => import_DocFormScreen.DocFormScreen,
45
48
  DoctypeListScreen: () => import_DoctypeListScreen.DoctypeListScreen,
46
49
  DoctypeReportToolbar: () => import_report_toolbar.ReportToolbar,
@@ -192,6 +195,7 @@ __export(index_exports, {
192
195
  fromDeskReportSettings: () => import_reportViewModel.fromDeskReportSettings,
193
196
  groupConnectionLinks: () => import_connections_data.groupConnectionLinks,
194
197
  groupLinks: () => import_parseContent.groupLinks,
198
+ guessDeskTarget: () => import_target.guessDeskTarget,
195
199
  headerLevel: () => import_parseContent.headerLevel,
196
200
  homePath: () => import_paths.homePath,
197
201
  humanizeFrappeError: () => import_reportShapes.humanizeFrappeError,
@@ -245,6 +249,7 @@ __export(index_exports, {
245
249
  reportColumnsFromMeta: () => import_reportViewModel.reportColumnsFromMeta,
246
250
  resolveCapabilities: () => import_capabilities.resolveCapabilities,
247
251
  resolveCreatedName: () => import_quickEntryPlan.resolveCreatedName,
252
+ resolveDeskPath: () => import_resolveDeskPath.resolveDeskPath,
248
253
  resolveIndicator: () => import_FormToolbar.resolveIndicator,
249
254
  resolveLinkTarget: () => import_WorkspaceLinkCard.resolveLinkTarget,
250
255
  resolveReportColumns: () => import_reportViewModel.resolveSelectedColumns,
@@ -291,6 +296,8 @@ __export(index_exports, {
291
296
  useConnectionCounts: () => import_connections_data.useConnectionCounts,
292
297
  useDashboardChartData: () => import_useDashboardChart.useDashboardChartData,
293
298
  useDefaultWorkspace: () => import_useWorkspaces.useDefaultWorkspace,
299
+ useDeskScope: () => import_scope.useDeskScope,
300
+ useDeskTarget: () => import_target.useDeskTarget,
294
301
  useDocinfo: () => import_useDocinfo.useDocinfo,
295
302
  useDoctypeMeta: () => import_useDoctypeMeta.useDoctypeMeta,
296
303
  useFormEngine: () => import_useFormEngine.useFormEngine,
@@ -305,6 +312,7 @@ __export(index_exports, {
305
312
  useRecentVisit: () => import_useRecentVisit.useRecentVisit,
306
313
  useSaveShortcut: () => import_platformHooks.useSaveShortcut,
307
314
  useSavedReports: () => import_savedReports.useSavedReports,
315
+ useScopedFilters: () => import_scope.useScopedFilters,
308
316
  useSessionUser: () => import_useWorkspaces.useSessionUser,
309
317
  useSessionUserId: () => import_useSessionUserId.useSessionUserId,
310
318
  useSessionUserInfo: () => import_user_session.useSessionUserInfo,
@@ -326,6 +334,11 @@ __export(index_exports, {
326
334
  module.exports = __toCommonJS(index_exports);
327
335
  var import_BackofficeProvider = require("./config/BackofficeProvider.cjs");
328
336
  var import_capabilities = require("./config/capabilities.cjs");
337
+ var import_Desk = require("./desk/Desk.cjs");
338
+ var import_DeskSurface = require("./desk/DeskSurface.cjs");
339
+ var import_resolveDeskPath = require("./desk/resolveDeskPath.cjs");
340
+ var import_target = require("./desk/target.cjs");
341
+ var import_scope = require("./desk/scope.cjs");
329
342
  var import_navigator = require("./navigation/navigator.cjs");
330
343
  var import_paths = require("./navigation/paths.cjs");
331
344
  var import_i18n = require("./i18n/index.cjs");
@@ -43,6 +43,9 @@ __export(index_exports, {
43
43
  CreateBoardDialog: () => import_kanban_board_controls.CreateBoardDialog,
44
44
  DESK_OPERATOR_LABELS: () => import_filter_fields.DESK_OPERATOR_LABELS,
45
45
  DashboardView: () => import_DashboardView.DashboardView,
46
+ Desk: () => import_Desk.Desk,
47
+ DeskScopeProvider: () => import_scope.DeskScopeProvider,
48
+ DeskSurface: () => import_DeskSurface.DeskSurface,
46
49
  DocFormScreen: () => import_DocFormScreen.DocFormScreen,
47
50
  DoctypeListScreen: () => import_DoctypeListScreen.DoctypeListScreen,
48
51
  DoctypeReportToolbar: () => import_report_toolbar.ReportToolbar,
@@ -194,6 +197,7 @@ __export(index_exports, {
194
197
  fromDeskReportSettings: () => import_reportViewModel.fromDeskReportSettings,
195
198
  groupConnectionLinks: () => import_connections_data.groupConnectionLinks,
196
199
  groupLinks: () => import_parseContent.groupLinks,
200
+ guessDeskTarget: () => import_target.guessDeskTarget,
197
201
  headerLevel: () => import_parseContent.headerLevel,
198
202
  homePath: () => import_paths.homePath,
199
203
  humanizeFrappeError: () => import_reportShapes.humanizeFrappeError,
@@ -247,6 +251,7 @@ __export(index_exports, {
247
251
  reportColumnsFromMeta: () => import_reportViewModel.reportColumnsFromMeta,
248
252
  resolveCapabilities: () => import_capabilities.resolveCapabilities,
249
253
  resolveCreatedName: () => import_quickEntryPlan.resolveCreatedName,
254
+ resolveDeskPath: () => import_resolveDeskPath.resolveDeskPath,
250
255
  resolveIndicator: () => import_FormToolbar.resolveIndicator,
251
256
  resolveLinkTarget: () => import_WorkspaceLinkCard.resolveLinkTarget,
252
257
  resolveReportColumns: () => import_reportViewModel.resolveSelectedColumns,
@@ -293,6 +298,8 @@ __export(index_exports, {
293
298
  useConnectionCounts: () => import_connections_data.useConnectionCounts,
294
299
  useDashboardChartData: () => import_useDashboardChart.useDashboardChartData,
295
300
  useDefaultWorkspace: () => import_useWorkspaces.useDefaultWorkspace,
301
+ useDeskScope: () => import_scope.useDeskScope,
302
+ useDeskTarget: () => import_target.useDeskTarget,
296
303
  useDocinfo: () => import_useDocinfo.useDocinfo,
297
304
  useDoctypeMeta: () => import_useDoctypeMeta.useDoctypeMeta,
298
305
  useFormEngine: () => import_useFormEngine.useFormEngine,
@@ -307,6 +314,7 @@ __export(index_exports, {
307
314
  useRecentVisit: () => import_useRecentVisit.useRecentVisit,
308
315
  useSaveShortcut: () => import_platformHooks.useSaveShortcut,
309
316
  useSavedReports: () => import_savedReports.useSavedReports,
317
+ useScopedFilters: () => import_scope.useScopedFilters,
310
318
  useSessionUser: () => import_useWorkspaces.useSessionUser,
311
319
  useSessionUserId: () => import_useSessionUserId.useSessionUserId,
312
320
  useSessionUserInfo: () => import_user_session.useSessionUserInfo,
@@ -328,6 +336,11 @@ __export(index_exports, {
328
336
  module.exports = __toCommonJS(index_exports);
329
337
  var import_BackofficeProvider = require("./config/BackofficeProvider.native.js");
330
338
  var import_capabilities = require("./config/capabilities.native.js");
339
+ var import_Desk = require("./desk/Desk.native.js");
340
+ var import_DeskSurface = require("./desk/DeskSurface.native.js");
341
+ var import_resolveDeskPath = require("./desk/resolveDeskPath.native.js");
342
+ var import_target = require("./desk/target.native.js");
343
+ var import_scope = require("./desk/scope.native.js");
331
344
  var import_navigator = require("./navigation/navigator.native.js");
332
345
  var import_paths = require("./navigation/paths.native.js");
333
346
  var import_i18n = require("./i18n");