@teselagen/ui 0.3.20 → 0.3.21

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/index.cjs.js CHANGED
@@ -30630,11 +30630,11 @@ var _enumBugKeys = (
30630
30630
  ).split(',');
30631
30631
 
30632
30632
  // 19.1.2.14 / 15.2.3.14 Object.keys(O)
30633
- var $keys$2 = _objectKeysInternal;
30633
+ var $keys$3 = _objectKeysInternal;
30634
30634
  var enumBugKeys = _enumBugKeys;
30635
30635
 
30636
30636
  var _objectKeys = Object.keys || function keys(O) {
30637
- return $keys$2(O, enumBugKeys);
30637
+ return $keys$3(O, enumBugKeys);
30638
30638
  };
30639
30639
 
30640
30640
  var _objectGops = {};
@@ -31422,24 +31422,17 @@ var _objectGopnExt = {};
31422
31422
 
31423
31423
  var _objectGopn = {};
31424
31424
 
31425
- var hasRequired_objectGopn;
31426
-
31427
- function require_objectGopn () {
31428
- if (hasRequired_objectGopn) return _objectGopn;
31429
- hasRequired_objectGopn = 1;
31430
- // 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O)
31431
- var $keys = _objectKeysInternal;
31432
- var hiddenKeys = _enumBugKeys.concat('length', 'prototype');
31425
+ // 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O)
31426
+ var $keys$2 = _objectKeysInternal;
31427
+ var hiddenKeys = _enumBugKeys.concat('length', 'prototype');
31433
31428
 
31434
- _objectGopn.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
31435
- return $keys(O, hiddenKeys);
31436
- };
31437
- return _objectGopn;
31438
- }
31429
+ _objectGopn.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
31430
+ return $keys$2(O, hiddenKeys);
31431
+ };
31439
31432
 
31440
31433
  // fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window
31441
31434
  var toIObject$2 = _toIobject;
31442
- var gOPN$1 = require_objectGopn().f;
31435
+ var gOPN$1 = _objectGopn.f;
31443
31436
  var toString$5 = {}.toString;
31444
31437
 
31445
31438
  var windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames
@@ -31626,7 +31619,7 @@ if (!USE_NATIVE) {
31626
31619
 
31627
31620
  $GOPD.f = $getOwnPropertyDescriptor;
31628
31621
  $DP.f = $defineProperty;
31629
- require_objectGopn().f = gOPNExt.f = $getOwnPropertyNames;
31622
+ _objectGopn.f = gOPNExt.f = $getOwnPropertyNames;
31630
31623
  require_objectPie().f = $propertyIsEnumerable;
31631
31624
  $GOPS.f = $getOwnPropertySymbols;
31632
31625
 
@@ -85561,7 +85554,9 @@ function withTableParams(compOrOpts, pTopLevelOpts) {
85561
85554
  }
85562
85555
  if (mergedOpts.orderByFirstColumn && !mergedOpts.defaults?.order?.length) {
85563
85556
  const r = [
85564
- lodashExports.camelCase(schema.fields[0].displayName || schema.fields[0].path)
85557
+ lodashExports.camelCase(
85558
+ convertedSchema.fields[0].displayName || convertedSchema.fields[0].path
85559
+ )
85565
85560
  ];
85566
85561
  lodashExports.set(mergedOpts, "defaults.order", r);
85567
85562
  }
package/index.es.js CHANGED
@@ -30609,11 +30609,11 @@ var _enumBugKeys = (
30609
30609
  ).split(',');
30610
30610
 
30611
30611
  // 19.1.2.14 / 15.2.3.14 Object.keys(O)
30612
- var $keys$2 = _objectKeysInternal;
30612
+ var $keys$3 = _objectKeysInternal;
30613
30613
  var enumBugKeys = _enumBugKeys;
30614
30614
 
30615
30615
  var _objectKeys = Object.keys || function keys(O) {
30616
- return $keys$2(O, enumBugKeys);
30616
+ return $keys$3(O, enumBugKeys);
30617
30617
  };
30618
30618
 
30619
30619
  var _objectGops = {};
@@ -31401,24 +31401,17 @@ var _objectGopnExt = {};
31401
31401
 
31402
31402
  var _objectGopn = {};
31403
31403
 
31404
- var hasRequired_objectGopn;
31405
-
31406
- function require_objectGopn () {
31407
- if (hasRequired_objectGopn) return _objectGopn;
31408
- hasRequired_objectGopn = 1;
31409
- // 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O)
31410
- var $keys = _objectKeysInternal;
31411
- var hiddenKeys = _enumBugKeys.concat('length', 'prototype');
31404
+ // 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O)
31405
+ var $keys$2 = _objectKeysInternal;
31406
+ var hiddenKeys = _enumBugKeys.concat('length', 'prototype');
31412
31407
 
31413
- _objectGopn.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
31414
- return $keys(O, hiddenKeys);
31415
- };
31416
- return _objectGopn;
31417
- }
31408
+ _objectGopn.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
31409
+ return $keys$2(O, hiddenKeys);
31410
+ };
31418
31411
 
31419
31412
  // fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window
31420
31413
  var toIObject$2 = _toIobject;
31421
- var gOPN$1 = require_objectGopn().f;
31414
+ var gOPN$1 = _objectGopn.f;
31422
31415
  var toString$5 = {}.toString;
31423
31416
 
31424
31417
  var windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames
@@ -31605,7 +31598,7 @@ if (!USE_NATIVE) {
31605
31598
 
31606
31599
  $GOPD.f = $getOwnPropertyDescriptor;
31607
31600
  $DP.f = $defineProperty;
31608
- require_objectGopn().f = gOPNExt.f = $getOwnPropertyNames;
31601
+ _objectGopn.f = gOPNExt.f = $getOwnPropertyNames;
31609
31602
  require_objectPie().f = $propertyIsEnumerable;
31610
31603
  $GOPS.f = $getOwnPropertySymbols;
31611
31604
 
@@ -85540,7 +85533,9 @@ function withTableParams(compOrOpts, pTopLevelOpts) {
85540
85533
  }
85541
85534
  if (mergedOpts.orderByFirstColumn && !mergedOpts.defaults?.order?.length) {
85542
85535
  const r = [
85543
- lodashExports.camelCase(schema.fields[0].displayName || schema.fields[0].path)
85536
+ lodashExports.camelCase(
85537
+ convertedSchema.fields[0].displayName || convertedSchema.fields[0].path
85538
+ )
85544
85539
  ];
85545
85540
  lodashExports.set(mergedOpts, "defaults.order", r);
85546
85541
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teselagen/ui",
3
- "version": "0.3.20",
3
+ "version": "0.3.21",
4
4
  "main": "./src/index.js",
5
5
  "exports": {
6
6
  ".": {
@@ -69,7 +69,7 @@ export default function withTableParams(compOrOpts, pTopLevelOpts) {
69
69
  } = mergedOpts;
70
70
 
71
71
  const schema = getSchema(mergedOpts);
72
- const convertedSchema = convertSchema(schema)
72
+ const convertedSchema = convertSchema(schema);
73
73
  if (ownProps.isTableParamsConnected) {
74
74
  if (
75
75
  formName &&
@@ -97,11 +97,17 @@ export default function withTableParams(compOrOpts, pTopLevelOpts) {
97
97
  schema
98
98
  );
99
99
  }
100
- if (mergedOpts.orderByFirstColumn && !mergedOpts.defaults?.order?.length) {
100
+ if (
101
+ mergedOpts.orderByFirstColumn &&
102
+ !mergedOpts.defaults?.order?.length
103
+ ) {
101
104
  const r = [
102
- camelCase(schema.fields[0].displayName || schema.fields[0].path)
105
+ camelCase(
106
+ convertedSchema.fields[0].displayName ||
107
+ convertedSchema.fields[0].path
108
+ )
103
109
  ];
104
- set(mergedOpts, 'defaults.order', r)
110
+ set(mergedOpts, "defaults.order", r);
105
111
  }
106
112
  } else {
107
113
  //in user instantiated withTableParams() call