@gisce/react-ooui 1.1.28-rc.0 → 1.1.29

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":"TreeActionBar.d.ts","sourceRoot":"","sources":["TreeActionBar.tsx"],"names":[],"mappings":";AA+BA,aAAK,KAAK,GAAG;IACX,aAAa,CAAC,EAAE,GAAG,CAAC;IACpB,cAAc,EAAE,OAAO,CAAC;IACxB,OAAO,EAAE,GAAG,CAAC;CACd,CAAC;AAEF,iBAAS,aAAa,CAAC,KAAK,EAAE,KAAK,eA4OlC;AAMD,eAAe,aAAa,CAAC"}
1
+ {"version":3,"file":"TreeActionBar.d.ts","sourceRoot":"","sources":["TreeActionBar.tsx"],"names":[],"mappings":";AA+BA,aAAK,KAAK,GAAG;IACX,aAAa,CAAC,EAAE,GAAG,CAAC;IACpB,cAAc,EAAE,OAAO,CAAC;IACxB,OAAO,EAAE,GAAG,CAAC;CACd,CAAC;AAEF,iBAAS,aAAa,CAAC,KAAK,EAAE,KAAK,eA2OlC;AAMD,eAAe,aAAa,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"iconMapper.d.ts","sourceRoot":"","sources":["iconMapper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,QAAQ,MAAM,mBAAmB,CAAC;8BAqGzB,MAAM;AAA3B,wBAYE"}
1
+ {"version":3,"file":"iconMapper.d.ts","sourceRoot":"","sources":["iconMapper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,QAAQ,MAAM,mBAAmB,CAAC;8BAqGzB,MAAM;AAA3B,wBAWE"}
@@ -529,13 +529,7 @@ const {
529
529
  STOCK_CLEAR: "CloseSquare",
530
530
  STOCK_UNINDENT: "AlignLeft",
531
531
  STOCK_PREFERENCES: "Setting"
532
- }, iconMapper = (e) => {
533
- if (e.indexOf("gtk-") !== -1) {
534
- const r = `STOCK_${e.replace("gtk-", "").replace(/\-/g, "_").toUpperCase()}`;
535
- return getIconForKey(iconMapping[r]);
536
- }
537
- return iconMapping.hasOwnProperty(e) ? getIconForKey(iconMapping[e]) : getIconForKey(e);
538
- };
532
+ }, iconMapper = (e) => (e.indexOf("gtk-") !== -1 && (e = `STOCK_${e.replace("gtk-", "").replace(/\-/g, "_").toUpperCase()}`), iconMapping.hasOwnProperty(e) ? getIconForKey(iconMapping[e]) : getIconForKey(e));
539
533
  function toCamelCase(e) {
540
534
  return `${e.split("-").map(
541
535
  (t) => t.replace(
@@ -24375,9 +24369,22 @@ function TreeActionBar(e) {
24375
24369
  onSearch: (N) => {
24376
24370
  N && N.trim().length > 0 ? b == null || b(N) : b == null || b(void 0);
24377
24371
  }
24372
+ }), !O && /* @__PURE__ */ jsx(ButtonWithBadge, {
24373
+ icon: /* @__PURE__ */ jsx(FilterOutlined, {
24374
+ style: {
24375
+ color: m ? "white" : void 0
24376
+ }
24377
+ }),
24378
+ tooltip: w("advanced_search"),
24379
+ type: m ? "primary" : "default",
24380
+ onClick: () => {
24381
+ y == null || y(!m);
24382
+ },
24383
+ disabled: u || s || v,
24384
+ badgeNumber: h == null ? void 0 : h.length
24378
24385
  }), separator$1(), /* @__PURE__ */ jsx(NewButton, {
24379
24386
  disabled: v
24380
- }), separator$1(), /* @__PURE__ */ jsx(ActionButton, {
24387
+ }), /* @__PURE__ */ jsx(ActionButton, {
24381
24388
  icon: /* @__PURE__ */ jsx(CopyOutlined$3, {}),
24382
24389
  tooltip: w("duplicate"),
24383
24390
  disabled: !a || (a == null ? void 0 : a.length) !== 1 || u || v,
@@ -24390,19 +24397,6 @@ function TreeActionBar(e) {
24390
24397
  loading: s,
24391
24398
  onClick: q
24392
24399
  }), separator$1()]
24393
- }), !O && /* @__PURE__ */ jsx(ButtonWithBadge, {
24394
- icon: /* @__PURE__ */ jsx(FilterOutlined, {
24395
- style: {
24396
- color: m ? "white" : void 0
24397
- }
24398
- }),
24399
- tooltip: w("advanced_search"),
24400
- type: m ? "primary" : "default",
24401
- onClick: () => {
24402
- y == null || y(!m);
24403
- },
24404
- disabled: u || s || v,
24405
- badgeNumber: h == null ? void 0 : h.length
24406
24400
  }), /* @__PURE__ */ jsx(ActionButton, {
24407
24401
  icon: /* @__PURE__ */ jsx(InfoCircleOutlined$3, {}),
24408
24402
  tooltip: w("showLogs"),