@gisce/react-ooui 1.1.9 → 1.1.10-rc.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.
@@ -1 +1 @@
1
- {"version":3,"file":"ContentRootContext.d.ts","sourceRoot":"","sources":["ContentRootContext.tsx"],"names":[],"mappings":"AACA,OAAO,KAMN,MAAM,OAAO,CAAC;AAcf,oBAAY,sBAAsB,GAAG;IACnC,aAAa,EAAE,CAAC,EACd,UAAU,EACV,MAAM,EACN,MAAM,EACN,OAAO,GACR,EAAE;QACD,UAAU,EAAE,GAAG,CAAC;QAChB,MAAM,EAAE,GAAG,CAAC;QACZ,MAAM,EAAE,GAAG,CAAC;QACZ,OAAO,CAAC,EAAE,GAAG,CAAC;QACd,qBAAqB,CAAC,EAAE,MAAM,IAAI,CAAC;KACpC,KAAK,OAAO,CAAC,GAAG,CAAC,CAAC;IACnB,YAAY,CAAC,EAAE,GAAG,CAAC;CACpB,CAAC;AAUF,eAAO,MAAM,kBAAkB,8CAE9B,CAAC;AAEF,aAAK,wBAAwB,GAAG;IAC9B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,YAAY,CAAC,EAAE,GAAG,CAAC;CACpB,CAAC;;AAqWF,wBAA+C"}
1
+ {"version":3,"file":"ContentRootContext.d.ts","sourceRoot":"","sources":["ContentRootContext.tsx"],"names":[],"mappings":"AACA,OAAO,KAMN,MAAM,OAAO,CAAC;AAcf,oBAAY,sBAAsB,GAAG;IACnC,aAAa,EAAE,CAAC,EACd,UAAU,EACV,MAAM,EACN,MAAM,EACN,OAAO,GACR,EAAE;QACD,UAAU,EAAE,GAAG,CAAC;QAChB,MAAM,EAAE,GAAG,CAAC;QACZ,MAAM,EAAE,GAAG,CAAC;QACZ,OAAO,CAAC,EAAE,GAAG,CAAC;QACd,qBAAqB,CAAC,EAAE,MAAM,IAAI,CAAC;KACpC,KAAK,OAAO,CAAC,GAAG,CAAC,CAAC;IACnB,YAAY,CAAC,EAAE,GAAG,CAAC;CACpB,CAAC;AAUF,eAAO,MAAM,kBAAkB,8CAC2B,CAAC;AAE3D,aAAK,wBAAwB,GAAG;IAC9B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,YAAY,CAAC,EAAE,GAAG,CAAC;CACpB,CAAC;;AA6WF,wBAA+C"}
@@ -16762,13 +16762,17 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
16762
16762
  },
16763
16763
  children: t
16764
16764
  });
16765
- }, ContentRootContext = React__default.createContext(null), ContentRootProvider = (e, t) => {
16765
+ }, ContentRootContext = React__default.createContext(null), callRefreshValues = async (e) => {
16766
+ var t;
16767
+ for (let n = 0; n < e.length; n++)
16768
+ await ((t = e == null ? void 0 : e[n]) == null ? void 0 : t.call(e));
16769
+ }, ContentRootProvider = (e, t) => {
16766
16770
  const {
16767
16771
  children: n,
16768
16772
  globalValues: r = {}
16769
16773
  } = e, o = useRef(), a = useRef(), [s, c] = useState(!1), l = useContext(TabManagerContext), {
16770
16774
  openAction: u
16771
- } = l || {}, d = useRef(), {
16775
+ } = l || {}, d = useRef([]), {
16772
16776
  t: f
16773
16777
  } = useContext(LocaleContext);
16774
16778
  useImperativeHandle(t, () => ({
@@ -16845,7 +16849,7 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
16845
16849
  const {
16846
16850
  type: N
16847
16851
  } = E;
16848
- return d.current = k, N === "ir.actions.report.xml" ? await x({
16852
+ return d.current.push(k), N === "ir.actions.report.xml" ? await x({
16849
16853
  reportData: E,
16850
16854
  fields: w,
16851
16855
  values: _,
@@ -16986,8 +16990,7 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
16986
16990
  }), h(!0);
16987
16991
  }
16988
16992
  async function b() {
16989
- var E;
16990
- (E = d.current) == null || E.call(d), h(!1), v({
16993
+ callRefreshValues(d.current), d.current = [], h(!1), v({
16991
16994
  domain: void 0,
16992
16995
  model: void 0,
16993
16996
  context: {},
@@ -17018,8 +17021,7 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
17018
17021
  visible: p,
17019
17022
  onSubmitSucceed: b,
17020
17023
  onCancel: () => {
17021
- var E;
17022
- (E = d.current) == null || E.call(d), h(!1), v({
17024
+ callRefreshValues(d.current), d.current = [], h(!1), v({
17023
17025
  domain: void 0,
17024
17026
  model: void 0,
17025
17027
  context: {},