@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.
@@ -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" ? H = /* @__PURE__ */ jsx(Graph, {
28731
- view_id: B.filter((j) => j[1] === "graph")[0][0],
28732
- model: U,
28733
- context: G,
28734
- domain: z,
28735
- limit: Z
28736
- }) : (W == null ? void 0 : W.type) === "form" ? H = /* @__PURE__ */ jsx(DashboardForm, {
28737
- model: U,
28738
- actionDomain: z
28739
- }) : (W == null ? void 0 : W.type) === "tree" ? H = /* @__PURE__ */ jsx(DashboardTree, {
28740
- model: U,
28741
- domain: z,
28742
- view_id: B.filter((j) => j[1] === "tree")[0][0],
28743
- onRowClicked: (j) => {
28744
- const K = B.find((X) => {
28745
- const [, F] = X;
28746
- return F === "form";
28747
- });
28748
- if (K) {
28749
- const [X, F] = K, {
28750
- actionId: T,
28751
- actionType: Y,
28752
- title: Q,
28753
- model: ne
28754
- } = S, J = {
28755
- action_id: T,
28756
- action_type: Y,
28757
- name: Q,
28758
- res_id: j.id,
28759
- res_model: ne,
28760
- view_id: X,
28761
- view_type: F
28762
- };
28763
- h(J);
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
- }) : W !== void 0 && (H = /* @__PURE__ */ jsx(ActionView$1, {
28767
- action_id: M,
28768
- action_type: L,
28769
- tabKey: q,
28770
- title: $,
28771
- views: B,
28772
- model: U,
28773
- context: G,
28774
- domain: z,
28775
- setCanWeClose: () => {
28776
- },
28777
- initialView: W,
28778
- limit: Z
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: S,
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,