@linzjs/step-ag-grid 19.0.0 → 19.1.1

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.
@@ -645,12 +645,12 @@ function Bean(beanName) {
645
645
  }
646
646
  function Autowired(name) {
647
647
  return function (target, propertyKey, descriptor) {
648
- autowiredFunc(target, name, false, target, propertyKey, null);
648
+ autowiredFunc(target, name, false, target, propertyKey);
649
649
  };
650
650
  }
651
651
  function Optional(name) {
652
652
  return function (target, propertyKey, descriptor) {
653
- autowiredFunc(target, name, true, target, propertyKey, null);
653
+ autowiredFunc(target, name, true, target, propertyKey);
654
654
  };
655
655
  }
656
656
  function autowiredFunc(target, name, optional, classPrototype, methodOrAttributeName, index) {
@@ -658,10 +658,6 @@ function autowiredFunc(target, name, optional, classPrototype, methodOrAttribute
658
658
  console.error("AG Grid: Autowired name should not be null");
659
659
  return;
660
660
  }
661
- if (typeof index === "number") {
662
- console.error("AG Grid: Autowired should be on an attribute");
663
- return;
664
- }
665
661
  // it's an attribute on the class
666
662
  var props = getOrCreateProps$1(target.constructor);
667
663
  if (!props.agClassAttributes) {
@@ -1259,10 +1255,7 @@ var Column = /** @class */ (function () {
1259
1255
  var colDefAny = this.colDef;
1260
1256
  function warnOnce(msg, key, obj) {
1261
1257
  doOnce(function () {
1262
- if (obj) {
1263
- console.warn(msg, obj);
1264
- }
1265
- else {
1258
+ {
1266
1259
  doOnce(function () { return console.warn(msg); }, key);
1267
1260
  }
1268
1261
  }, key);
@@ -30053,7 +30046,7 @@ var CellComp = /** @class */ (function (_super) {
30053
30046
  _this.forceWrapper = cellCtrl.isForceWrapper();
30054
30047
  _this.refreshWrapper(false);
30055
30048
  var setAttribute = function (name, value, element) {
30056
- var actualElement = element ? element : eGui;
30049
+ var actualElement = eGui;
30057
30050
  if (value != null && value != '') {
30058
30051
  actualElement.setAttribute(name, value);
30059
30052
  }
@@ -31576,7 +31569,7 @@ var HeaderCellComp = /** @class */ (function (_super) {
31576
31569
  var _this = this;
31577
31570
  var eGui = this.getGui();
31578
31571
  var setAttribute = function (name, value, element) {
31579
- var actualElement = element ? element : eGui;
31572
+ var actualElement = eGui;
31580
31573
  if (value != null && value != '') {
31581
31574
  actualElement.setAttribute(name, value);
31582
31575
  }
@@ -51243,44 +51236,48 @@ var AllCommunityModules = [ClientSideRowModelModule, InfiniteRowModelModule, Csv
51243
51236
 
51244
51237
  ModuleRegistry.registerModules(AllCommunityModules);
51245
51238
 
51246
- function r(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=" "),n+=f);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function clsx(){for(var e,t,f=0,n="";f<arguments.length;)(e=arguments[f++])&&(t=r(e))&&(n&&(n+=" "),n+=t);return n}
51239
+ function r(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=" "),n+=f);}else for(f in e)e[f]&&(n&&(n+=" "),n+=f);return n}function clsx(){for(var e,t,f=0,n="",o=arguments.length;f<o;f++)(e=arguments[f])&&(t=r(e))&&(n&&(n+=" "),n+=t);return n}
51247
51240
 
51248
- (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
51249
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
51250
- return new (P || (P = Promise))(function (resolve, reject) {
51251
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
51252
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
51253
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
51254
- step((generator = generator.apply(thisArg, _arguments || [])).next());
51255
- });
51256
- };
51241
+ var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
51257
51242
 
51258
- (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
51259
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
51260
- return new (P || (P = Promise))(function (resolve, reject) {
51261
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
51262
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
51263
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
51264
- step((generator = generator.apply(thisArg, _arguments || [])).next());
51265
- });
51266
- };
51243
+ function getDefaultExportFromCjs (x) {
51244
+ return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
51245
+ }
51246
+
51247
+ /**
51248
+ * lodash (Custom Build) <https://lodash.com/>
51249
+ * Build: `lodash modularize exports="npm" -o ./`
51250
+ * Copyright jQuery Foundation and other contributors <https://jquery.org/>
51251
+ * Released under MIT license <https://lodash.com/license>
51252
+ * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
51253
+ * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
51254
+ */
51267
51255
 
51256
+ /** Detect free variable `global` from Node.js. */
51257
+ var freeGlobal = typeof commonjsGlobal == 'object' && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
51258
+
51259
+ /** Detect free variable `self`. */
51260
+ var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
51261
+
51262
+ /** Used as a reference to the global object. */
51263
+ freeGlobal || freeSelf || Function('return this')();
51264
+
51265
+ var useIsomorphicLayoutEffect$1 = typeof window !== "undefined" ? useLayoutEffect : useEffect;
51268
51266
  function useInterval(callback, delay) {
51269
- const savedCallback = useRef(callback);
51270
- useIsomorphicLayoutEffect$1(() => {
51271
- savedCallback.current = callback;
51272
- }, [callback]);
51273
- useEffect(() => {
51274
- if (!delay && delay !== 0) {
51275
- return;
51276
- }
51277
- const id = setInterval(() => savedCallback.current(), delay);
51278
- return () => clearInterval(id);
51279
- }, [delay]);
51267
+ const savedCallback = useRef(callback);
51268
+ useIsomorphicLayoutEffect$1(() => {
51269
+ savedCallback.current = callback;
51270
+ }, [callback]);
51271
+ useEffect(() => {
51272
+ const id = setInterval(() => {
51273
+ savedCallback.current();
51274
+ }, delay);
51275
+ return () => {
51276
+ clearInterval(id);
51277
+ };
51278
+ }, [delay]);
51280
51279
  }
51281
51280
 
51282
- const useIsomorphicLayoutEffect$1 = typeof window !== 'undefined' ? useLayoutEffect : useEffect;
51283
-
51284
51281
  const GridContext = createContext({
51285
51282
  gridReady: false,
51286
51283
  gridRenderState: () => null,
@@ -54290,7 +54287,7 @@ const GridFilterColumnsToggle = ({ saveState = true }) => {
54290
54287
  },
54291
54288
  }, onChange: () => {
54292
54289
  /*Do nothing, change handled by menuItem*/
54293
- } }) }, col.colId))) }), jsx(MenuDivider, {}, `$$divider_reset_columns`), jsxs(MenuItem, { onClick: (e) => {
54290
+ } }) }, col.colId ?? "no_col_id"))) }), jsx(MenuDivider, {}, `$$divider_reset_columns`), jsxs(MenuItem, { onClick: (e) => {
54294
54291
  // Global react-menu MenuItem handler handles tabs
54295
54292
  if (e.key !== "Tab") {
54296
54293
  e.keepOpen = e.key !== "Enter";
@@ -54403,10 +54400,6 @@ const GridFilterDownloadCsvButton = (csvExportParams) => {
54403
54400
  } })) : (jsx(GridFilterHeaderIconButton, { icon: "ic_csv_file", title: "Download CSV", onClick: handleDownloadClick, disabled: downloading }));
54404
54401
  };
54405
54402
 
54406
- function getDefaultExportFromCjs (x) {
54407
- return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
54408
- }
54409
-
54410
54403
  /* global setTimeout, clearTimeout */
54411
54404
 
54412
54405
  var dist = function debounce(fn) {
@@ -54608,7 +54601,7 @@ const baseMatcher = (inputs, patterns, options, firstMatchOnly) => {
54608
54601
 
54609
54602
  patterns = patterns.map(pattern => makeRegexp(pattern, options));
54610
54603
 
54611
- const {allPatterns} = options || {};
54604
+ const {allPatterns} = {};
54612
54605
  const result = [];
54613
54606
 
54614
54607
  for (const input of inputs) {
@@ -54638,7 +54631,7 @@ const baseMatcher = (inputs, patterns, options, firstMatchOnly) => {
54638
54631
  ) {
54639
54632
  result.push(input);
54640
54633
 
54641
- if (firstMatchOnly) {
54634
+ {
54642
54635
  break;
54643
54636
  }
54644
54637
  }
@@ -54648,7 +54641,7 @@ const baseMatcher = (inputs, patterns, options, firstMatchOnly) => {
54648
54641
  };
54649
54642
 
54650
54643
  function isMatch(inputs, patterns, options) {
54651
- return baseMatcher(inputs, patterns, options, true).length > 0;
54644
+ return baseMatcher(inputs, patterns, options).length > 0;
54652
54645
  }
54653
54646
 
54654
54647
  /**
@@ -55350,7 +55343,7 @@ const GridFormMultiSelectGrid = (props) => {
55350
55343
  e.keepOpen = true;
55351
55344
  toggleValue(o);
55352
55345
  }
55353
- }, children: jsx(LuiCheckboxInput, { isChecked: !!o.checked ?? false, isIndeterminate: o.checked === "partial", value: `${o.value}`, label: jsxs(Fragment$1, { children: [o.warning && jsx(GridIcon, { icon: "ic_warning_outline", title: o.warning }), jsx("span", { className: "GridMultiSelectGrid-Label", children: o.label ?? (o.value == null ? `<${o.value}>` : `${o.value}`) })] }), inputProps: {
55346
+ }, children: jsx(LuiCheckboxInput, { isChecked: !!o.checked ?? false, isIndeterminate: o.checked === "partial", value: `${o.value}`, label: jsxs(Fragment$1, { children: [o.warning && jsx(GridIcon, { icon: "ic_warning_outline", title: o.warning }, "$$icon$$"), jsx("span", { className: "GridMultiSelectGrid-Label", children: o.label ?? (o.value == null ? `<${o.value}>` : `${o.value}`) }, "$$label$$")] }), inputProps: {
55354
55347
  onClick: (e) => {
55355
55348
  // Click is handled by MenuItem onClick
55356
55349
  e.preventDefault();
@@ -55502,16 +55495,6 @@ function v4(options, buf, offset) {
55502
55495
  rnds[6] = rnds[6] & 0x0f | 0x40;
55503
55496
  rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided
55504
55497
 
55505
- if (buf) {
55506
- offset = offset || 0;
55507
-
55508
- for (let i = 0; i < 16; ++i) {
55509
- buf[offset + i] = rnds[i];
55510
- }
55511
-
55512
- return buf;
55513
- }
55514
-
55515
55498
  return unsafeStringify(rnds);
55516
55499
  }
55517
55500