@gisce/react-ooui 1.1.10 → 1.1.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.
- package/dist/react-ooui.es.js +70 -52
- package/dist/react-ooui.es.js.map +1 -1
- package/dist/react-ooui.umd.js +2 -2
- package/dist/react-ooui.umd.js.map +1 -1
- package/dist/views/RootView.d.ts.map +1 -1
- package/dist/widgets/base/Integer.d.ts.map +1 -1
- package/dist/widgets/views/Dashboard/Dashboard.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/stories/mocks/models/crm_case.ts +7 -10
- package/src/views/RootView.tsx +5 -1
- package/src/widgets/base/Integer.tsx +1 -0
- package/src/widgets/views/Dashboard/Dashboard.tsx +5 -1
package/dist/react-ooui.es.js
CHANGED
|
@@ -17863,7 +17863,8 @@ const Form$1 = forwardRef(Form), FormModal = (e) => {
|
|
|
17863
17863
|
n == null || n(d);
|
|
17864
17864
|
},
|
|
17865
17865
|
defaultValue: 0,
|
|
17866
|
-
onBlur: l
|
|
17866
|
+
onBlur: l,
|
|
17867
|
+
precision: 0
|
|
17867
17868
|
})
|
|
17868
17869
|
});
|
|
17869
17870
|
};
|
|
@@ -28727,56 +28728,68 @@ function Dashboard(e, t) {
|
|
|
28727
28728
|
};
|
|
28728
28729
|
}
|
|
28729
28730
|
let H = null;
|
|
28730
|
-
(W == null ? void 0 : W.type) === "graph"
|
|
28731
|
-
|
|
28732
|
-
|
|
28733
|
-
|
|
28734
|
-
|
|
28735
|
-
|
|
28736
|
-
|
|
28737
|
-
|
|
28738
|
-
|
|
28739
|
-
|
|
28740
|
-
|
|
28741
|
-
|
|
28742
|
-
|
|
28743
|
-
|
|
28744
|
-
|
|
28745
|
-
|
|
28746
|
-
|
|
28747
|
-
|
|
28748
|
-
|
|
28749
|
-
const
|
|
28750
|
-
|
|
28751
|
-
|
|
28752
|
-
|
|
28753
|
-
|
|
28754
|
-
|
|
28755
|
-
|
|
28756
|
-
|
|
28757
|
-
|
|
28758
|
-
|
|
28759
|
-
|
|
28760
|
-
|
|
28761
|
-
|
|
28762
|
-
|
|
28763
|
-
|
|
28731
|
+
if ((W == null ? void 0 : W.type) === "graph")
|
|
28732
|
+
H = /* @__PURE__ */ jsx(Graph, {
|
|
28733
|
+
view_id: B.filter((j) => j[1] === "graph")[0][0],
|
|
28734
|
+
model: U,
|
|
28735
|
+
context: G,
|
|
28736
|
+
domain: z,
|
|
28737
|
+
limit: Z
|
|
28738
|
+
});
|
|
28739
|
+
else if ((W == null ? void 0 : W.type) === "form")
|
|
28740
|
+
H = /* @__PURE__ */ jsx(DashboardForm, {
|
|
28741
|
+
model: U,
|
|
28742
|
+
actionDomain: z
|
|
28743
|
+
});
|
|
28744
|
+
else if ((W == null ? void 0 : W.type) === "tree")
|
|
28745
|
+
H = /* @__PURE__ */ jsx(DashboardTree, {
|
|
28746
|
+
model: U,
|
|
28747
|
+
domain: z,
|
|
28748
|
+
view_id: B.filter((j) => j[1] === "tree")[0][0],
|
|
28749
|
+
onRowClicked: (j) => {
|
|
28750
|
+
const K = B.find((X) => {
|
|
28751
|
+
const [, F] = X;
|
|
28752
|
+
return F === "form";
|
|
28753
|
+
});
|
|
28754
|
+
if (K) {
|
|
28755
|
+
const [X, F] = K, {
|
|
28756
|
+
actionId: T,
|
|
28757
|
+
actionType: Y,
|
|
28758
|
+
title: Q,
|
|
28759
|
+
model: ne
|
|
28760
|
+
} = S, J = {
|
|
28761
|
+
action_id: T,
|
|
28762
|
+
action_type: Y,
|
|
28763
|
+
name: Q,
|
|
28764
|
+
res_id: j.id,
|
|
28765
|
+
res_model: ne,
|
|
28766
|
+
view_id: X,
|
|
28767
|
+
view_type: F
|
|
28768
|
+
};
|
|
28769
|
+
h(J);
|
|
28770
|
+
}
|
|
28764
28771
|
}
|
|
28765
|
-
}
|
|
28766
|
-
|
|
28767
|
-
|
|
28768
|
-
|
|
28769
|
-
|
|
28770
|
-
|
|
28771
|
-
|
|
28772
|
-
|
|
28773
|
-
|
|
28774
|
-
|
|
28775
|
-
|
|
28776
|
-
|
|
28777
|
-
|
|
28778
|
-
|
|
28779
|
-
|
|
28772
|
+
});
|
|
28773
|
+
else if (W !== void 0) {
|
|
28774
|
+
const j = W && Array.isArray(W.id) ? {
|
|
28775
|
+
...W,
|
|
28776
|
+
id: W.id[0]
|
|
28777
|
+
} : W;
|
|
28778
|
+
H = /* @__PURE__ */ jsx(ActionView$1, {
|
|
28779
|
+
action_id: M,
|
|
28780
|
+
action_type: L,
|
|
28781
|
+
tabKey: q,
|
|
28782
|
+
title: $,
|
|
28783
|
+
views: B,
|
|
28784
|
+
model: U,
|
|
28785
|
+
context: G,
|
|
28786
|
+
domain: z,
|
|
28787
|
+
setCanWeClose: () => {
|
|
28788
|
+
},
|
|
28789
|
+
initialView: j,
|
|
28790
|
+
limit: Z
|
|
28791
|
+
});
|
|
28792
|
+
}
|
|
28780
28793
|
let P;
|
|
28781
28794
|
const A = B.find((j) => {
|
|
28782
28795
|
const [, K] = j;
|
|
@@ -29403,7 +29416,11 @@ function RootView(e, t) {
|
|
|
29403
29416
|
view_id: U.view_id
|
|
29404
29417
|
}
|
|
29405
29418
|
});
|
|
29406
|
-
} else
|
|
29419
|
+
} else {
|
|
29420
|
+
const U = S && Array.isArray(S.id) ? {
|
|
29421
|
+
...S,
|
|
29422
|
+
id: S.id[0]
|
|
29423
|
+
} : S;
|
|
29407
29424
|
v({
|
|
29408
29425
|
title: w,
|
|
29409
29426
|
action: {
|
|
@@ -29423,7 +29440,7 @@ function RootView(e, t) {
|
|
|
29423
29440
|
},
|
|
29424
29441
|
domain: y,
|
|
29425
29442
|
setCanWeClose: h,
|
|
29426
|
-
initialView:
|
|
29443
|
+
initialView: U,
|
|
29427
29444
|
res_id: D,
|
|
29428
29445
|
formDefaultValues: M,
|
|
29429
29446
|
formForcedValues: L,
|
|
@@ -29432,6 +29449,7 @@ function RootView(e, t) {
|
|
|
29432
29449
|
}),
|
|
29433
29450
|
key: B
|
|
29434
29451
|
});
|
|
29452
|
+
}
|
|
29435
29453
|
}
|
|
29436
29454
|
return /* @__PURE__ */ jsx(LocaleContextProvider, {
|
|
29437
29455
|
lang: a,
|