@vuu-ui/vuu-table-extras 0.8.5-debug → 0.8.6-debug

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/cjs/index.js CHANGED
@@ -1870,12 +1870,12 @@ var import_classnames6 = __toESM(require("classnames"), 1);
1870
1870
  var import_react12 = require("react");
1871
1871
 
1872
1872
  // src/datagrid-configuration-ui/column-picker/ColumnPicker.tsx
1873
- var import_salt_lab2 = require("@heswell/salt-lab");
1873
+ var import_lab2 = require("@salt-ds/lab");
1874
1874
  var import_core = require("@salt-ds/core");
1875
1875
  var import_react5 = require("react");
1876
1876
 
1877
1877
  // src/datagrid-configuration-ui/column-picker/ColumnListItem.tsx
1878
- var import_salt_lab = require("@heswell/salt-lab");
1878
+ var import_lab = require("@salt-ds/lab");
1879
1879
  var import_classnames3 = __toESM(require("classnames"), 1);
1880
1880
  var import_jsx_runtime4 = require("react/jsx-runtime");
1881
1881
  var classBase4 = "vuuColumnListItem";
@@ -1890,7 +1890,7 @@ var ColumnListItem = ({
1890
1890
  [`${classBase4}-calculated`]: item == null ? void 0 : item.expression,
1891
1891
  [`${classBase4}-hidden`]: item == null ? void 0 : item.hidden
1892
1892
  });
1893
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_salt_lab.ListItem, { className, ...restProps, children: [
1893
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_lab.ListItem, { className, ...restProps, children: [
1894
1894
  /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: `${classBase4}-iconType` }),
1895
1895
  /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("label", { className: `${classBase4}-label`, children: label }),
1896
1896
  /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: `${classBase4}-iconHidden` })
@@ -1943,12 +1943,6 @@ var ColumnPicker = ({
1943
1943
  (evt, selected) => onSelectionChange == null ? void 0 : onSelectionChange(selected),
1944
1944
  [onSelectionChange]
1945
1945
  );
1946
- const handleDrop = (0, import_react5.useCallback)(
1947
- (moveFrom, moveTo) => {
1948
- dispatch({ type: "moveColumn", moveFrom, moveTo });
1949
- },
1950
- [dispatch]
1951
- );
1952
1946
  return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: classBase5, id, children: [
1953
1947
  /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: `${classBase5}-listColumn`, children: [
1954
1948
  /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("label", { htmlFor: `available-${id}`, children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_core.Text, { as: "h4", children: "Available Columns" }) }),
@@ -1958,7 +1952,7 @@ var ColumnPicker = ({
1958
1952
  className: `${classBase5}-listContainer`,
1959
1953
  style: { flex: 1, overflow: "hidden" },
1960
1954
  children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
1961
- import_salt_lab2.List,
1955
+ import_lab2.List,
1962
1956
  {
1963
1957
  borderless: true,
1964
1958
  checkable: false,
@@ -1998,16 +1992,14 @@ var ColumnPicker = ({
1998
1992
  className: `${classBase5}-listContainer`,
1999
1993
  style: { flex: 1, overflow: "hidden" },
2000
1994
  children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
2001
- import_salt_lab2.List,
1995
+ import_lab2.List,
2002
1996
  {
2003
1997
  ListItem: ColumnListItem,
2004
- allowDragDrop: true,
2005
1998
  borderless: true,
2006
1999
  height: "100%",
2007
2000
  id: `selected-${id}`,
2008
2001
  itemHeight: 24,
2009
2002
  itemToString: (item) => item.name,
2010
- onMoveListItem: handleDrop,
2011
2003
  onSelectionChange: handleSelectionChange2,
2012
2004
  selected: selectedColumn,
2013
2005
  style: { flex: 1 },
@@ -2070,20 +2062,20 @@ var ColumnPicker = ({
2070
2062
 
2071
2063
  // src/datagrid-configuration-ui/column-settings-panel/ColumnSettingsPanel.tsx
2072
2064
  var import_vuu_layout = require("@vuu-ui/vuu-layout");
2073
- var import_salt_lab5 = require("@heswell/salt-lab");
2065
+ var import_lab5 = require("@salt-ds/lab");
2074
2066
  var import_core4 = require("@salt-ds/core");
2075
2067
  var import_classnames5 = __toESM(require("classnames"), 1);
2076
2068
  var import_react8 = require("react");
2077
2069
 
2078
2070
  // src/datagrid-configuration-ui/column-type-panel/ColumnTypePanel.tsx
2079
2071
  var import_vuu_utils7 = require("@vuu-ui/vuu-utils");
2080
- var import_salt_lab4 = require("@heswell/salt-lab");
2072
+ var import_lab4 = require("@salt-ds/lab");
2081
2073
  var import_core3 = require("@salt-ds/core");
2082
2074
  var import_classnames4 = __toESM(require("classnames"), 1);
2083
2075
  var import_react7 = require("react");
2084
2076
 
2085
2077
  // src/datagrid-configuration-ui/column-type-panel/NumericColumnPanel.tsx
2086
- var import_salt_lab3 = require("@heswell/salt-lab");
2078
+ var import_lab3 = require("@salt-ds/lab");
2087
2079
  var import_core2 = require("@salt-ds/core");
2088
2080
  var import_react6 = require("react");
2089
2081
  var import_jsx_runtime6 = require("react/jsx-runtime");
@@ -2138,9 +2130,12 @@ var NumericColumnPanel = ({
2138
2130
  switch (column.serverDataType) {
2139
2131
  case "double":
2140
2132
  return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
2141
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_salt_lab3.FormField, { label: "No of Decimals", labelPlacement: "top", children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_salt_lab3.StepperInput, { value: decimals, onChange: handleChangeDecimals }) }),
2133
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_core2.FormField, { labelPlacement: "top", children: [
2134
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_core2.FormFieldLabel, { children: "No of Decimals" }),
2135
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_lab3.StepperInput, { value: decimals, onChange: handleChangeDecimals })
2136
+ ] }),
2142
2137
  /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
2143
- import_salt_lab3.Switch,
2138
+ import_lab3.Switch,
2144
2139
  {
2145
2140
  checked: alignOnDecimals,
2146
2141
  label: "Align on decimals",
@@ -2149,7 +2144,7 @@ var NumericColumnPanel = ({
2149
2144
  }
2150
2145
  ),
2151
2146
  /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
2152
- import_salt_lab3.Switch,
2147
+ import_lab3.Switch,
2153
2148
  {
2154
2149
  checked: zeroPad,
2155
2150
  label: "Zero pad",
@@ -2231,7 +2226,7 @@ var ColumnTypePanel = ({
2231
2226
  const availableRenderers = getAvailableCellRenderers(column);
2232
2227
  return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_jsx_runtime8.Fragment, { children: [
2233
2228
  /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
2234
- import_salt_lab4.Dropdown,
2229
+ import_lab4.Dropdown,
2235
2230
  {
2236
2231
  className: (0, import_classnames4.default)(`${classBase6}-renderer`),
2237
2232
  fullWidth: true,
@@ -2256,7 +2251,6 @@ var classBase7 = "vuuColumnSettingsPanel";
2256
2251
  var tabstripProps = {
2257
2252
  className: "salt-density-high"
2258
2253
  };
2259
- var NullActivationIndicator = () => null;
2260
2254
  var ColumnSettingsPanel = ({
2261
2255
  column,
2262
2256
  dispatchColumnAction,
@@ -2282,11 +2276,11 @@ var ColumnSettingsPanel = ({
2282
2276
  [dispatchUpdate]
2283
2277
  );
2284
2278
  const handleChangeHidden = (0, import_react8.useCallback)(
2285
- (evt, value) => dispatchUpdate({ hidden: value }),
2279
+ (evt) => dispatchUpdate({ hidden: evt.target.checked }),
2286
2280
  [dispatchUpdate]
2287
2281
  );
2288
2282
  const handleChangeLabel = (0, import_react8.useCallback)(
2289
- (evt, value) => dispatchUpdate({ label: value }),
2283
+ (evt) => dispatchUpdate({ label: evt.target.value }),
2290
2284
  [dispatchUpdate]
2291
2285
  );
2292
2286
  const handleChangeWidth = (0, import_react8.useCallback)(
@@ -2307,76 +2301,72 @@ var ColumnSettingsPanel = ({
2307
2301
  import_vuu_layout.Stack,
2308
2302
  {
2309
2303
  active: activeTab,
2310
- showTabs: true,
2311
2304
  className: (0, import_classnames5.default)(`${classBase7}-columnTabs`),
2312
2305
  onTabSelectionChanged: setActiveTab,
2313
2306
  TabstripProps: tabstripProps,
2314
2307
  children: [
2315
2308
  /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(import_core4.Panel, { title: "Column", children: [
2316
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_salt_lab5.FormField, { label: "Hidden", labelPlacement: "left", children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
2317
- import_salt_lab5.Checkbox,
2318
- {
2319
- checked: column.hidden === true,
2320
- onChange: handleChangeHidden
2321
- }
2322
- ) }),
2323
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_salt_lab5.FormField, { label: "Label", labelPlacement: "left", children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
2324
- import_salt_lab5.Input,
2325
- {
2326
- value: (_a = column.label) != null ? _a : column.name,
2327
- onChange: handleChangeLabel
2328
- }
2329
- ) }),
2330
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_salt_lab5.FormField, { label: "Width", labelPlacement: "left", children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
2331
- import_salt_lab5.StepperInput,
2332
- {
2333
- value: (_b = column.width) != null ? _b : 100,
2334
- onChange: handleChangeWidth
2335
- }
2336
- ) }),
2337
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
2338
- import_salt_lab5.FormField,
2339
- {
2340
- label: "Align",
2341
- labelPlacement: "left",
2342
- ActivationIndicatorComponent: NullActivationIndicator,
2343
- children: /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
2344
- import_salt_lab5.RadioButtonGroup,
2345
- {
2346
- "aria-label": "Column Align",
2347
- value: (_c = column.align) != null ? _c : "left",
2348
- legend: "Align",
2349
- onChange: handleChangeAlign,
2350
- children: [
2351
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_salt_lab5.RadioButton, { label: "Left", value: "left" }),
2352
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_salt_lab5.RadioButton, { label: "Right", value: "right" })
2353
- ]
2354
- }
2355
- )
2356
- }
2357
- ),
2358
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
2359
- import_salt_lab5.FormField,
2360
- {
2361
- label: "Pin Column",
2362
- labelPlacement: "left",
2363
- ActivationIndicatorComponent: NullActivationIndicator,
2364
- children: /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
2365
- import_salt_lab5.RadioButtonGroup,
2366
- {
2367
- "aria-label": "Pin Column",
2368
- value: (_d = column.pin) != null ? _d : "",
2369
- legend: "Pin Column",
2370
- onChange: handleChangePin,
2371
- children: [
2372
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_salt_lab5.RadioButton, { label: "Do not pin", value: "" }),
2373
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_salt_lab5.RadioButton, { label: "Left", value: "left" }),
2374
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_salt_lab5.RadioButton, { label: "Right", value: "right" })
2375
- ]
2376
- }
2377
- )
2378
- }
2379
- )
2309
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(import_core4.FormField, { labelPlacement: "left", children: [
2310
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_core4.FormFieldLabel, { children: "Hidden" }),
2311
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
2312
+ import_core4.Checkbox,
2313
+ {
2314
+ checked: column.hidden === true,
2315
+ onChange: handleChangeHidden
2316
+ }
2317
+ )
2318
+ ] }),
2319
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(import_core4.FormField, { labelPlacement: "left", children: [
2320
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_core4.FormFieldLabel, { children: "Label" }),
2321
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
2322
+ import_core4.Input,
2323
+ {
2324
+ value: (_a = column.label) != null ? _a : column.name,
2325
+ onChange: handleChangeLabel
2326
+ }
2327
+ )
2328
+ ] }),
2329
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(import_core4.FormField, { labelPlacement: "left", children: [
2330
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_core4.FormFieldLabel, { children: "Width" }),
2331
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
2332
+ import_lab5.StepperInput,
2333
+ {
2334
+ value: (_b = column.width) != null ? _b : 100,
2335
+ onChange: handleChangeWidth
2336
+ }
2337
+ )
2338
+ ] }),
2339
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(import_core4.FormField, { labelPlacement: "left", children: [
2340
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_core4.FormFieldLabel, { children: "ALign" }),
2341
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
2342
+ import_core4.RadioButtonGroup,
2343
+ {
2344
+ "aria-label": "Column Align",
2345
+ value: (_c = column.align) != null ? _c : "left",
2346
+ onChange: handleChangeAlign,
2347
+ children: [
2348
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_core4.RadioButton, { label: "Left", value: "left" }),
2349
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_core4.RadioButton, { label: "Right", value: "right" })
2350
+ ]
2351
+ }
2352
+ )
2353
+ ] }),
2354
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(import_core4.FormField, { labelPlacement: "left", children: [
2355
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_core4.FormFieldLabel, { children: "Pin Column" }),
2356
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
2357
+ import_core4.RadioButtonGroup,
2358
+ {
2359
+ "aria-label": "Pin Column",
2360
+ value: (_d = column.pin) != null ? _d : "",
2361
+ onChange: handleChangePin,
2362
+ children: [
2363
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_core4.RadioButton, { label: "Do not pin", value: "" }),
2364
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_core4.RadioButton, { label: "Left", value: "left" }),
2365
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_core4.RadioButton, { label: "Right", value: "right" })
2366
+ ]
2367
+ }
2368
+ )
2369
+ ] })
2380
2370
  ] }),
2381
2371
  /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
2382
2372
  ColumnTypePanel,
@@ -2387,26 +2377,14 @@ var ColumnSettingsPanel = ({
2387
2377
  }
2388
2378
  ),
2389
2379
  /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(import_core4.Panel, { title: "Vuu", variant: "secondary", children: [
2390
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
2391
- import_salt_lab5.FormField,
2392
- {
2393
- label: "Name",
2394
- labelPlacement: "top",
2395
- readOnly: true,
2396
- variant: "secondary",
2397
- children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_salt_lab5.Input, { value: column.name })
2398
- }
2399
- ),
2400
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
2401
- import_salt_lab5.FormField,
2402
- {
2403
- label: "Vuu type",
2404
- labelPlacement: "top",
2405
- readOnly: true,
2406
- variant: "secondary",
2407
- children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_salt_lab5.Input, { value: column.serverDataType })
2408
- }
2409
- )
2380
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(import_core4.FormField, { labelPlacement: "top", readOnly: true, children: [
2381
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_core4.FormFieldLabel, { children: "Name" }),
2382
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_core4.Input, { value: column.name })
2383
+ ] }),
2384
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(import_core4.FormField, { labelPlacement: "top", readOnly: true, children: [
2385
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_core4.FormFieldLabel, { children: "Vuu Type" }),
2386
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_core4.Input, { value: column.serverDataType })
2387
+ ] })
2410
2388
  ] })
2411
2389
  ]
2412
2390
  }
@@ -2417,12 +2395,11 @@ var ColumnSettingsPanel = ({
2417
2395
  };
2418
2396
 
2419
2397
  // src/datagrid-configuration-ui/settings-panel/GridSettingsPanel.tsx
2420
- var import_salt_lab6 = require("@heswell/salt-lab");
2421
2398
  var import_core5 = require("@salt-ds/core");
2399
+ var import_lab6 = require("@salt-ds/lab");
2422
2400
  var import_react9 = require("react");
2423
2401
  var import_jsx_runtime10 = require("react/jsx-runtime");
2424
2402
  var classBase8 = "vuuGridSettingsPanel";
2425
- var NullActivationIndicator2 = () => null;
2426
2403
  var GridSettingsPanel = ({
2427
2404
  config,
2428
2405
  dispatchColumnAction,
@@ -2458,35 +2435,32 @@ var GridSettingsPanel = ({
2458
2435
  children: [
2459
2436
  /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_core5.Text, { as: "h4", children: "Grid Settings" }),
2460
2437
  /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(import_core5.Panel, { children: [
2461
- /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
2462
- import_salt_lab6.FormField,
2463
- {
2464
- label: "Format column labels",
2465
- labelPlacement: "left",
2466
- ActivationIndicatorComponent: NullActivationIndicator2,
2467
- children: /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(
2468
- import_salt_lab6.RadioButtonGroup,
2469
- {
2470
- "aria-label": "Format column labels",
2471
- value: config.columnFormatHeader,
2472
- legend: "Format column labels",
2473
- onChange: handleChangeLabelFormatting,
2474
- children: [
2475
- /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_salt_lab6.RadioButton, { label: "No Formatting", value: void 0 }),
2476
- /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_salt_lab6.RadioButton, { label: "Capitalize", value: "capitalize" }),
2477
- /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_salt_lab6.RadioButton, { label: "Uppercase", value: "uppercase" })
2478
- ]
2479
- }
2480
- )
2481
- }
2482
- ),
2483
- /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_salt_lab6.FormField, { label: "Default Column Width", labelPlacement: "left", children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
2484
- import_salt_lab6.StepperInput,
2485
- {
2486
- value: (_a = config.columnDefaultWidth) != null ? _a : 100,
2487
- onChange: handleChangeWidth
2488
- }
2489
- ) })
2438
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(import_core5.FormField, { labelPlacement: "left", children: [
2439
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_core5.FormFieldLabel, { children: "Format column labels" }),
2440
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(
2441
+ import_core5.RadioButtonGroup,
2442
+ {
2443
+ "aria-label": "Format column labels",
2444
+ value: config.columnFormatHeader,
2445
+ onChange: handleChangeLabelFormatting,
2446
+ children: [
2447
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_core5.RadioButton, { label: "No Formatting", value: void 0 }),
2448
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_core5.RadioButton, { label: "Capitalize", value: "capitalize" }),
2449
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_core5.RadioButton, { label: "Uppercase", value: "uppercase" })
2450
+ ]
2451
+ }
2452
+ )
2453
+ ] }),
2454
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(import_core5.FormField, { labelPlacement: "left", children: [
2455
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_core5.FormFieldLabel, { children: "Default Column Width" }),
2456
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
2457
+ import_lab6.StepperInput,
2458
+ {
2459
+ value: (_a = config.columnDefaultWidth) != null ? _a : 100,
2460
+ onChange: handleChangeWidth
2461
+ }
2462
+ )
2463
+ ] })
2490
2464
  ] })
2491
2465
  ]
2492
2466
  }
@@ -2495,7 +2469,7 @@ var GridSettingsPanel = ({
2495
2469
 
2496
2470
  // src/datagrid-configuration-ui/settings-panel/useGridSettings.ts
2497
2471
  var import_react10 = require("react");
2498
- var import_salt_lab7 = require("@heswell/salt-lab");
2472
+ var import_vuu_ui_controls = require("@vuu-ui/vuu-ui-controls");
2499
2473
  var import_vuu_utils8 = require("@vuu-ui/vuu-utils");
2500
2474
  var gridSettingsReducer = (state, action) => {
2501
2475
  console.log(`gridSettingsReducer ${action.type}`);
@@ -2571,7 +2545,7 @@ function moveColumn(state, { column, moveBy, moveFrom, moveTo }) {
2571
2545
  } else if (typeof moveFrom === "number" && typeof moveTo === "number") {
2572
2546
  return {
2573
2547
  ...state,
2574
- columns: (0, import_salt_lab7.moveItem)(stateColumns, moveFrom, moveTo)
2548
+ columns: (0, import_vuu_ui_controls.moveItem)(stateColumns, moveFrom, moveTo)
2575
2549
  };
2576
2550
  } else {
2577
2551
  return state;
@@ -2654,7 +2628,6 @@ function replaceColumn(columns, column) {
2654
2628
  var import_vuu_layout2 = require("@vuu-ui/vuu-layout");
2655
2629
 
2656
2630
  // src/datagrid-configuration-ui/calculated-column-panel/CalculatedColumnPanel.tsx
2657
- var import_salt_lab8 = require("@heswell/salt-lab");
2658
2631
  var import_core6 = require("@salt-ds/core");
2659
2632
  var import_react11 = require("react");
2660
2633
  var import_jsx_runtime11 = require("react/jsx-runtime");
@@ -2702,7 +2675,10 @@ var CalculatedColumnPanel = ({
2702
2675
  }, [columnName, dispatchColumnAction]);
2703
2676
  return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(import_core6.Panel, { className: "vuuCalculatedColumnPanel", title: "Define Computed Column", children: [
2704
2677
  /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_core6.Text, { styleAs: "h4", children: "Define Computed Column" }),
2705
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_salt_lab8.FormField, { label: "Column Name", labelPlacement: "left", children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_salt_lab8.Input, { value: columnName, onChange: handleChangeName }) }),
2678
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(import_core6.FormField, { labelPlacement: "left", children: [
2679
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_core6.FormFieldLabel, { children: "Column Name" }),
2680
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_core6.Input, { value: columnName, onChange: handleChangeName })
2681
+ ] }),
2706
2682
  /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
2707
2683
  ColumnExpressionInput,
2708
2684
  {
@@ -2782,7 +2758,6 @@ var DatagridSettingsPanel = ({
2782
2758
  getTabLabel,
2783
2759
  active: selectedTabIndex === 2 ? 1 : selectedTabIndex,
2784
2760
  onTabSelectionChanged: handleTabSelectionChanged,
2785
- showTabs: true,
2786
2761
  children: [
2787
2762
  /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
2788
2763
  GridSettingsPanel,
@@ -2864,20 +2839,20 @@ var DataSourceStats = ({
2864
2839
 
2865
2840
  // src/table-settings/column-settings-panel/ColumnSettingsPanel.tsx
2866
2841
  var import_vuu_layout3 = require("@vuu-ui/vuu-layout");
2867
- var import_salt_lab11 = require("@heswell/salt-lab");
2842
+ var import_lab9 = require("@salt-ds/lab");
2868
2843
  var import_core10 = require("@salt-ds/core");
2869
2844
  var import_classnames9 = __toESM(require("classnames"), 1);
2870
2845
  var import_react16 = require("react");
2871
2846
 
2872
2847
  // src/table-settings/column-type-panel/ColumnTypePanel.tsx
2873
2848
  var import_vuu_utils9 = require("@vuu-ui/vuu-utils");
2874
- var import_salt_lab10 = require("@heswell/salt-lab");
2849
+ var import_lab8 = require("@salt-ds/lab");
2875
2850
  var import_core9 = require("@salt-ds/core");
2876
2851
  var import_classnames8 = __toESM(require("classnames"), 1);
2877
2852
  var import_react15 = require("react");
2878
2853
 
2879
2854
  // src/table-settings/column-type-panel/NumericColumnPanel.tsx
2880
- var import_salt_lab9 = require("@heswell/salt-lab");
2855
+ var import_lab7 = require("@salt-ds/lab");
2881
2856
  var import_core8 = require("@salt-ds/core");
2882
2857
  var import_react14 = require("react");
2883
2858
  var import_jsx_runtime14 = require("react/jsx-runtime");
@@ -2932,9 +2907,12 @@ var NumericColumnPanel2 = ({
2932
2907
  switch (column.serverDataType) {
2933
2908
  case "double":
2934
2909
  return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(import_jsx_runtime14.Fragment, { children: [
2935
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_salt_lab9.FormField, { label: "No of Decimals", labelPlacement: "top", children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_salt_lab9.StepperInput, { value: decimals, onChange: handleChangeDecimals }) }),
2910
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(import_core8.FormField, { labelPlacement: "top", children: [
2911
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_core8.FormFieldLabel, { children: "No of Decimals" }),
2912
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_lab7.StepperInput, { value: decimals, onChange: handleChangeDecimals })
2913
+ ] }),
2936
2914
  /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
2937
- import_salt_lab9.Switch,
2915
+ import_lab7.Switch,
2938
2916
  {
2939
2917
  checked: alignOnDecimals,
2940
2918
  label: "Align on decimals",
@@ -2943,7 +2921,7 @@ var NumericColumnPanel2 = ({
2943
2921
  }
2944
2922
  ),
2945
2923
  /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
2946
- import_salt_lab9.Switch,
2924
+ import_lab7.Switch,
2947
2925
  {
2948
2926
  checked: zeroPad,
2949
2927
  label: "Zero pad",
@@ -3025,7 +3003,7 @@ var ColumnTypePanel2 = ({
3025
3003
  const availableRenderers = getAvailableCellRenderers2(column);
3026
3004
  return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(import_jsx_runtime16.Fragment, { children: [
3027
3005
  /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
3028
- import_salt_lab10.Dropdown,
3006
+ import_lab8.Dropdown,
3029
3007
  {
3030
3008
  className: (0, import_classnames8.default)(`${classBase11}-renderer`),
3031
3009
  fullWidth: true,
@@ -3050,7 +3028,6 @@ var classBase12 = "vuuColumnSettingsPanel";
3050
3028
  var tabstripProps2 = {
3051
3029
  className: "salt-density-high"
3052
3030
  };
3053
- var NullActivationIndicator3 = () => null;
3054
3031
  var ColumnSettingsPanel2 = ({
3055
3032
  column,
3056
3033
  dispatchColumnAction,
@@ -3076,11 +3053,11 @@ var ColumnSettingsPanel2 = ({
3076
3053
  [dispatchUpdate]
3077
3054
  );
3078
3055
  const handleChangeHidden = (0, import_react16.useCallback)(
3079
- (evt, value) => dispatchUpdate({ hidden: value }),
3056
+ (evt) => dispatchUpdate({ hidden: evt.target.checked }),
3080
3057
  [dispatchUpdate]
3081
3058
  );
3082
3059
  const handleChangeLabel = (0, import_react16.useCallback)(
3083
- (evt, value) => dispatchUpdate({ label: value }),
3060
+ (evt) => dispatchUpdate({ label: evt.target.value }),
3084
3061
  [dispatchUpdate]
3085
3062
  );
3086
3063
  const handleChangeWidth = (0, import_react16.useCallback)(
@@ -3101,76 +3078,72 @@ var ColumnSettingsPanel2 = ({
3101
3078
  import_vuu_layout3.Stack,
3102
3079
  {
3103
3080
  active: activeTab,
3104
- showTabs: true,
3105
3081
  className: (0, import_classnames9.default)(`${classBase12}-columnTabs`),
3106
3082
  onTabSelectionChanged: setActiveTab,
3107
3083
  TabstripProps: tabstripProps2,
3108
3084
  children: [
3109
3085
  /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(import_core10.Panel, { title: "Column", children: [
3110
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_salt_lab11.FormField, { label: "Hidden", labelPlacement: "left", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
3111
- import_salt_lab11.Checkbox,
3112
- {
3113
- checked: column.hidden === true,
3114
- onChange: handleChangeHidden
3115
- }
3116
- ) }),
3117
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_salt_lab11.FormField, { label: "Label", labelPlacement: "left", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
3118
- import_salt_lab11.Input,
3119
- {
3120
- value: (_a = column.label) != null ? _a : column.name,
3121
- onChange: handleChangeLabel
3122
- }
3123
- ) }),
3124
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_salt_lab11.FormField, { label: "Width", labelPlacement: "left", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
3125
- import_salt_lab11.StepperInput,
3126
- {
3127
- value: (_b = column.width) != null ? _b : 100,
3128
- onChange: handleChangeWidth
3129
- }
3130
- ) }),
3131
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
3132
- import_salt_lab11.FormField,
3133
- {
3134
- label: "Align",
3135
- labelPlacement: "left",
3136
- ActivationIndicatorComponent: NullActivationIndicator3,
3137
- children: /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
3138
- import_salt_lab11.RadioButtonGroup,
3139
- {
3140
- "aria-label": "Column Align",
3141
- value: (_c = column.align) != null ? _c : "left",
3142
- legend: "Align",
3143
- onChange: handleChangeAlign,
3144
- children: [
3145
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_salt_lab11.RadioButton, { label: "Left", value: "left" }),
3146
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_salt_lab11.RadioButton, { label: "Right", value: "right" })
3147
- ]
3148
- }
3149
- )
3150
- }
3151
- ),
3152
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
3153
- import_salt_lab11.FormField,
3154
- {
3155
- label: "Pin Column",
3156
- labelPlacement: "left",
3157
- ActivationIndicatorComponent: NullActivationIndicator3,
3158
- children: /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
3159
- import_salt_lab11.RadioButtonGroup,
3160
- {
3161
- "aria-label": "Pin Column",
3162
- value: (_d = column.pin) != null ? _d : "",
3163
- legend: "Pin Column",
3164
- onChange: handleChangePin,
3165
- children: [
3166
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_salt_lab11.RadioButton, { label: "Do not pin", value: "" }),
3167
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_salt_lab11.RadioButton, { label: "Left", value: "left" }),
3168
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_salt_lab11.RadioButton, { label: "Right", value: "right" })
3169
- ]
3170
- }
3171
- )
3172
- }
3173
- )
3086
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(import_core10.FormField, { labelPlacement: "left", children: [
3087
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_core10.FormFieldLabel, { children: "Hidden" }),
3088
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
3089
+ import_core10.Checkbox,
3090
+ {
3091
+ checked: column.hidden === true,
3092
+ onChange: handleChangeHidden
3093
+ }
3094
+ )
3095
+ ] }),
3096
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(import_core10.FormField, { labelPlacement: "left", children: [
3097
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_core10.FormFieldLabel, { children: "Label" }),
3098
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
3099
+ import_core10.Input,
3100
+ {
3101
+ value: (_a = column.label) != null ? _a : column.name,
3102
+ onChange: handleChangeLabel
3103
+ }
3104
+ )
3105
+ ] }),
3106
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(import_core10.FormField, { labelPlacement: "left", children: [
3107
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_core10.FormFieldLabel, { children: "Width" }),
3108
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
3109
+ import_lab9.StepperInput,
3110
+ {
3111
+ value: (_b = column.width) != null ? _b : 100,
3112
+ onChange: handleChangeWidth
3113
+ }
3114
+ )
3115
+ ] }),
3116
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(import_core10.FormField, { labelPlacement: "left", children: [
3117
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_core10.FormFieldLabel, { children: "Align" }),
3118
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
3119
+ import_core10.RadioButtonGroup,
3120
+ {
3121
+ "aria-label": "Column Align",
3122
+ value: (_c = column.align) != null ? _c : "left",
3123
+ onChange: handleChangeAlign,
3124
+ children: [
3125
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_core10.RadioButton, { label: "Left", value: "left" }),
3126
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_core10.RadioButton, { label: "Right", value: "right" })
3127
+ ]
3128
+ }
3129
+ )
3130
+ ] }),
3131
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(import_core10.FormField, { labelPlacement: "left", children: [
3132
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_core10.FormFieldLabel, { children: "Pin Column" }),
3133
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
3134
+ import_core10.RadioButtonGroup,
3135
+ {
3136
+ "aria-label": "Pin Column",
3137
+ value: (_d = column.pin) != null ? _d : "",
3138
+ onChange: handleChangePin,
3139
+ children: [
3140
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_core10.RadioButton, { label: "Do not pin", value: "" }),
3141
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_core10.RadioButton, { label: "Left", value: "left" }),
3142
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_core10.RadioButton, { label: "Right", value: "right" })
3143
+ ]
3144
+ }
3145
+ )
3146
+ ] })
3174
3147
  ] }),
3175
3148
  /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
3176
3149
  ColumnTypePanel2,
@@ -3181,26 +3154,14 @@ var ColumnSettingsPanel2 = ({
3181
3154
  }
3182
3155
  ),
3183
3156
  /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(import_core10.Panel, { title: "Vuu", variant: "secondary", children: [
3184
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
3185
- import_salt_lab11.FormField,
3186
- {
3187
- label: "Name",
3188
- labelPlacement: "top",
3189
- readOnly: true,
3190
- variant: "secondary",
3191
- children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_salt_lab11.Input, { value: column.name })
3192
- }
3193
- ),
3194
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
3195
- import_salt_lab11.FormField,
3196
- {
3197
- label: "Vuu type",
3198
- labelPlacement: "top",
3199
- readOnly: true,
3200
- variant: "secondary",
3201
- children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_salt_lab11.Input, { value: column.serverDataType })
3202
- }
3203
- )
3157
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(import_core10.FormField, { labelPlacement: "top", readOnly: true, children: [
3158
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_core10.FormFieldLabel, { children: "Name" }),
3159
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_core10.Input, { value: column.name })
3160
+ ] }),
3161
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(import_core10.FormField, { labelPlacement: "top", readOnly: true, children: [
3162
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_core10.FormFieldLabel, { children: "Vuu Type" }),
3163
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_core10.Input, { value: column.serverDataType })
3164
+ ] })
3204
3165
  ] })
3205
3166
  ]
3206
3167
  }