@dmsi/wedgekit-react 0.0.556 → 0.0.557

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.
Files changed (34) hide show
  1. package/dist/{chunk-5CIANSOX.js → chunk-LKFYNRJZ.js} +12 -6
  2. package/dist/components/CalendarRange.cjs +12 -6
  3. package/dist/components/CalendarRange.js +4 -4
  4. package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.cjs +12 -6
  5. package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.js +4 -4
  6. package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.cjs +12 -6
  7. package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.js +4 -4
  8. package/dist/components/DataGrid/PinnedColumns.cjs +12 -6
  9. package/dist/components/DataGrid/PinnedColumns.js +4 -4
  10. package/dist/components/DataGrid/TableBody/LoadingCell.cjs +12 -6
  11. package/dist/components/DataGrid/TableBody/LoadingCell.js +4 -4
  12. package/dist/components/DataGrid/TableBody/TableBodyRow.cjs +12 -6
  13. package/dist/components/DataGrid/TableBody/TableBodyRow.js +4 -4
  14. package/dist/components/DataGrid/TableBody/index.cjs +12 -6
  15. package/dist/components/DataGrid/TableBody/index.js +4 -4
  16. package/dist/components/DataGrid/index.cjs +12 -6
  17. package/dist/components/DataGrid/index.js +4 -4
  18. package/dist/components/DataGrid/utils.cjs +12 -6
  19. package/dist/components/DataGrid/utils.js +4 -4
  20. package/dist/components/DateInput.cjs +12 -6
  21. package/dist/components/DateInput.js +4 -4
  22. package/dist/components/DateRangeInput.cjs +12 -6
  23. package/dist/components/DateRangeInput.js +4 -4
  24. package/dist/components/MobileDataGrid/ColumnSelector/index.cjs +12 -6
  25. package/dist/components/MobileDataGrid/ColumnSelector/index.js +4 -4
  26. package/dist/components/MobileDataGrid/MobileDataGridHeader.cjs +12 -6
  27. package/dist/components/MobileDataGrid/MobileDataGridHeader.js +4 -4
  28. package/dist/components/MobileDataGrid/index.cjs +12 -6
  29. package/dist/components/MobileDataGrid/index.js +4 -4
  30. package/dist/components/ProductImagePreview/index.js +3 -3
  31. package/dist/components/index.cjs +12 -6
  32. package/dist/components/index.js +4 -4
  33. package/package.json +1 -1
  34. package/dist/{chunk-ZD2A45VT.js → chunk-YGAFYULX.js} +6 -6
@@ -5320,12 +5320,14 @@ function PinnedColumns(_a) {
5320
5320
  className: "flex w-full",
5321
5321
  children: [
5322
5322
  headerGroup.headers.map((header) => {
5323
- var _a3, _b2, _c;
5323
+ var _a3, _b2, _c, _d, _e, _f;
5324
5324
  if (!header) {
5325
5325
  return;
5326
5326
  }
5327
+ const cellValue = (_a3 = table.getRowModel().rows[0]) == null ? void 0 : _a3.getValue(header.column.id);
5328
+ const cellAlignment = (_c = (_b2 = header.column.columnDef.meta) == null ? void 0 : _b2.align) != null ? _c : typeof cellValue === "number" ? "right" : "left";
5327
5329
  if (typeof header.column.columnDef.header === "string") {
5328
- const customHeaderWidth = (_a3 = header.column.columnDef.meta) == null ? void 0 : _a3.headerWidth;
5330
+ const customHeaderWidth = (_d = header.column.columnDef.meta) == null ? void 0 : _d.headerWidth;
5329
5331
  return /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(
5330
5332
  DataCellHeader,
5331
5333
  {
@@ -5336,14 +5338,18 @@ function PinnedColumns(_a) {
5336
5338
  width: customHeaderWidth,
5337
5339
  className: (0, import_clsx41.default)(
5338
5340
  header.column.getCanSort() ? "cursor-pointer" : "cursor-grab",
5339
- "group"
5341
+ "group",
5342
+ {
5343
+ "justify-start": cellAlignment === "left",
5344
+ "justify-end": cellAlignment === "right"
5345
+ }
5340
5346
  ),
5341
5347
  children: [
5342
5348
  /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Subheader, { tall: true, children: header.column.columnDef.header }),
5343
5349
  getSortIcon(header.column.getIsSorted()),
5344
5350
  !header.column.getIsSorted() && header.column.getCanSort() && getSortIcon(header.column.getNextSortingOrder(), true),
5345
5351
  header.column.getSortIndex() !== -1 && table.getState().sorting.length > 1 && /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Subheader, { tall: true, children: header.column.getSortIndex() + 1 }),
5346
- !((_b2 = header.column.columnDef.meta) == null ? void 0 : _b2.locked) && /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
5352
+ !((_e = header.column.columnDef.meta) == null ? void 0 : _e.locked) && /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
5347
5353
  "div",
5348
5354
  {
5349
5355
  onDoubleClick: (e) => {
@@ -5366,7 +5372,7 @@ function PinnedColumns(_a) {
5366
5372
  header.id
5367
5373
  );
5368
5374
  }
5369
- return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_react37.default.Fragment, { children: ((_c = header.column.columnDef.meta) == null ? void 0 : _c.checkbox) ? /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(DataGridCell, { type: "header", component: "checkbox", locked: true, children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
5375
+ return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_react37.default.Fragment, { children: ((_f = header.column.columnDef.meta) == null ? void 0 : _f.checkbox) ? /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(DataGridCell, { type: "header", component: "checkbox", locked: true, children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
5370
5376
  Checkbox,
5371
5377
  {
5372
5378
  checked: allSelectedAcrossPages,
@@ -5401,7 +5407,7 @@ function PinnedColumns(_a) {
5401
5407
  testid: pinnedTestId
5402
5408
  }, props), {
5403
5409
  table,
5404
- locked: !enableColumnSelector,
5410
+ locked: !enableColumnSelector || pinDirection === "right",
5405
5411
  pinDirection
5406
5412
  })
5407
5413
  )
@@ -2,17 +2,17 @@
2
2
  import {
3
3
  DataGrid,
4
4
  DataGrid_default
5
- } from "../../chunk-5CIANSOX.js";
5
+ } from "../../chunk-LKFYNRJZ.js";
6
6
  import "../../chunk-CJ7V4X6B.js";
7
7
  import "../../chunk-M7INAUAJ.js";
8
8
  import "../../chunk-7ZCXZDJD.js";
9
- import "../../chunk-ZD2A45VT.js";
9
+ import "../../chunk-YGAFYULX.js";
10
+ import "../../chunk-MBZ55T2D.js";
11
+ import "../../chunk-2IKT6IHB.js";
10
12
  import "../../chunk-YCDDBSVU.js";
11
13
  import "../../chunk-3X3Y4TMS.js";
12
14
  import "../../chunk-BQNPOGD5.js";
13
15
  import "../../chunk-Y5GD2FJA.js";
14
- import "../../chunk-MBZ55T2D.js";
15
- import "../../chunk-2IKT6IHB.js";
16
16
  import "../../chunk-RZ5EIDX4.js";
17
17
  import "../../chunk-AGHBLWDZ.js";
18
18
  import "../../chunk-5IFPG6TS.js";
@@ -3104,12 +3104,14 @@ function PinnedColumns(_a) {
3104
3104
  className: "flex w-full",
3105
3105
  children: [
3106
3106
  headerGroup.headers.map((header) => {
3107
- var _a3, _b2, _c;
3107
+ var _a3, _b2, _c, _d, _e, _f;
3108
3108
  if (!header) {
3109
3109
  return;
3110
3110
  }
3111
+ const cellValue = (_a3 = table.getRowModel().rows[0]) == null ? void 0 : _a3.getValue(header.column.id);
3112
+ const cellAlignment = (_c = (_b2 = header.column.columnDef.meta) == null ? void 0 : _b2.align) != null ? _c : typeof cellValue === "number" ? "right" : "left";
3111
3113
  if (typeof header.column.columnDef.header === "string") {
3112
- const customHeaderWidth = (_a3 = header.column.columnDef.meta) == null ? void 0 : _a3.headerWidth;
3114
+ const customHeaderWidth = (_d = header.column.columnDef.meta) == null ? void 0 : _d.headerWidth;
3113
3115
  return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
3114
3116
  DataCellHeader,
3115
3117
  {
@@ -3120,14 +3122,18 @@ function PinnedColumns(_a) {
3120
3122
  width: customHeaderWidth,
3121
3123
  className: (0, import_clsx12.default)(
3122
3124
  header.column.getCanSort() ? "cursor-pointer" : "cursor-grab",
3123
- "group"
3125
+ "group",
3126
+ {
3127
+ "justify-start": cellAlignment === "left",
3128
+ "justify-end": cellAlignment === "right"
3129
+ }
3124
3130
  ),
3125
3131
  children: [
3126
3132
  /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(Subheader, { tall: true, children: header.column.columnDef.header }),
3127
3133
  getSortIcon(header.column.getIsSorted()),
3128
3134
  !header.column.getIsSorted() && header.column.getCanSort() && getSortIcon(header.column.getNextSortingOrder(), true),
3129
3135
  header.column.getSortIndex() !== -1 && table.getState().sorting.length > 1 && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(Subheader, { tall: true, children: header.column.getSortIndex() + 1 }),
3130
- !((_b2 = header.column.columnDef.meta) == null ? void 0 : _b2.locked) && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
3136
+ !((_e = header.column.columnDef.meta) == null ? void 0 : _e.locked) && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
3131
3137
  "div",
3132
3138
  {
3133
3139
  onDoubleClick: (e) => {
@@ -3150,7 +3156,7 @@ function PinnedColumns(_a) {
3150
3156
  header.id
3151
3157
  );
3152
3158
  }
3153
- return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_react15.default.Fragment, { children: ((_c = header.column.columnDef.meta) == null ? void 0 : _c.checkbox) ? /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(DataGridCell, { type: "header", component: "checkbox", locked: true, children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
3159
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_react15.default.Fragment, { children: ((_f = header.column.columnDef.meta) == null ? void 0 : _f.checkbox) ? /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(DataGridCell, { type: "header", component: "checkbox", locked: true, children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
3154
3160
  Checkbox,
3155
3161
  {
3156
3162
  checked: allSelectedAcrossPages,
@@ -3185,7 +3191,7 @@ function PinnedColumns(_a) {
3185
3191
  testid: pinnedTestId
3186
3192
  }, props), {
3187
3193
  table,
3188
- locked: !enableColumnSelector,
3194
+ locked: !enableColumnSelector || pinDirection === "right",
3189
3195
  pinDirection
3190
3196
  })
3191
3197
  )
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  getSortIcon
3
- } from "../../chunk-5CIANSOX.js";
3
+ } from "../../chunk-LKFYNRJZ.js";
4
4
  import "../../chunk-CJ7V4X6B.js";
5
5
  import "../../chunk-M7INAUAJ.js";
6
6
  import "../../chunk-7ZCXZDJD.js";
7
- import "../../chunk-ZD2A45VT.js";
7
+ import "../../chunk-YGAFYULX.js";
8
+ import "../../chunk-MBZ55T2D.js";
9
+ import "../../chunk-2IKT6IHB.js";
8
10
  import "../../chunk-YCDDBSVU.js";
9
11
  import "../../chunk-3X3Y4TMS.js";
10
12
  import "../../chunk-BQNPOGD5.js";
11
13
  import "../../chunk-Y5GD2FJA.js";
12
- import "../../chunk-MBZ55T2D.js";
13
- import "../../chunk-2IKT6IHB.js";
14
14
  import "../../chunk-RZ5EIDX4.js";
15
15
  import "../../chunk-AGHBLWDZ.js";
16
16
  import "../../chunk-5IFPG6TS.js";
@@ -3127,12 +3127,14 @@ function PinnedColumns(_a) {
3127
3127
  className: "flex w-full",
3128
3128
  children: [
3129
3129
  headerGroup.headers.map((header) => {
3130
- var _a3, _b2, _c;
3130
+ var _a3, _b2, _c, _d, _e, _f;
3131
3131
  if (!header) {
3132
3132
  return;
3133
3133
  }
3134
+ const cellValue = (_a3 = table.getRowModel().rows[0]) == null ? void 0 : _a3.getValue(header.column.id);
3135
+ const cellAlignment = (_c = (_b2 = header.column.columnDef.meta) == null ? void 0 : _b2.align) != null ? _c : typeof cellValue === "number" ? "right" : "left";
3134
3136
  if (typeof header.column.columnDef.header === "string") {
3135
- const customHeaderWidth = (_a3 = header.column.columnDef.meta) == null ? void 0 : _a3.headerWidth;
3137
+ const customHeaderWidth = (_d = header.column.columnDef.meta) == null ? void 0 : _d.headerWidth;
3136
3138
  return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
3137
3139
  DataCellHeader,
3138
3140
  {
@@ -3143,14 +3145,18 @@ function PinnedColumns(_a) {
3143
3145
  width: customHeaderWidth,
3144
3146
  className: (0, import_clsx13.default)(
3145
3147
  header.column.getCanSort() ? "cursor-pointer" : "cursor-grab",
3146
- "group"
3148
+ "group",
3149
+ {
3150
+ "justify-start": cellAlignment === "left",
3151
+ "justify-end": cellAlignment === "right"
3152
+ }
3147
3153
  ),
3148
3154
  children: [
3149
3155
  /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Subheader, { tall: true, children: header.column.columnDef.header }),
3150
3156
  getSortIcon(header.column.getIsSorted()),
3151
3157
  !header.column.getIsSorted() && header.column.getCanSort() && getSortIcon(header.column.getNextSortingOrder(), true),
3152
3158
  header.column.getSortIndex() !== -1 && table.getState().sorting.length > 1 && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Subheader, { tall: true, children: header.column.getSortIndex() + 1 }),
3153
- !((_b2 = header.column.columnDef.meta) == null ? void 0 : _b2.locked) && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
3159
+ !((_e = header.column.columnDef.meta) == null ? void 0 : _e.locked) && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
3154
3160
  "div",
3155
3161
  {
3156
3162
  onDoubleClick: (e) => {
@@ -3173,7 +3179,7 @@ function PinnedColumns(_a) {
3173
3179
  header.id
3174
3180
  );
3175
3181
  }
3176
- return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_react15.default.Fragment, { children: ((_c = header.column.columnDef.meta) == null ? void 0 : _c.checkbox) ? /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(DataGridCell, { type: "header", component: "checkbox", locked: true, children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
3182
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_react15.default.Fragment, { children: ((_f = header.column.columnDef.meta) == null ? void 0 : _f.checkbox) ? /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(DataGridCell, { type: "header", component: "checkbox", locked: true, children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
3177
3183
  Checkbox,
3178
3184
  {
3179
3185
  checked: allSelectedAcrossPages,
@@ -3208,7 +3214,7 @@ function PinnedColumns(_a) {
3208
3214
  testid: pinnedTestId
3209
3215
  }, props), {
3210
3216
  table,
3211
- locked: !enableColumnSelector,
3217
+ locked: !enableColumnSelector || pinDirection === "right",
3212
3218
  pinDirection
3213
3219
  })
3214
3220
  )
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  DateInput
3
- } from "../chunk-5CIANSOX.js";
3
+ } from "../chunk-LKFYNRJZ.js";
4
4
  import "../chunk-CJ7V4X6B.js";
5
5
  import "../chunk-M7INAUAJ.js";
6
6
  import "../chunk-7ZCXZDJD.js";
7
- import "../chunk-ZD2A45VT.js";
7
+ import "../chunk-YGAFYULX.js";
8
+ import "../chunk-MBZ55T2D.js";
9
+ import "../chunk-2IKT6IHB.js";
8
10
  import "../chunk-YCDDBSVU.js";
9
11
  import "../chunk-3X3Y4TMS.js";
10
12
  import "../chunk-BQNPOGD5.js";
11
13
  import "../chunk-Y5GD2FJA.js";
12
- import "../chunk-MBZ55T2D.js";
13
- import "../chunk-2IKT6IHB.js";
14
14
  import "../chunk-RZ5EIDX4.js";
15
15
  import "../chunk-AGHBLWDZ.js";
16
16
  import "../chunk-5IFPG6TS.js";
@@ -3135,12 +3135,14 @@ function PinnedColumns(_a) {
3135
3135
  className: "flex w-full",
3136
3136
  children: [
3137
3137
  headerGroup.headers.map((header) => {
3138
- var _a3, _b2, _c;
3138
+ var _a3, _b2, _c, _d, _e, _f;
3139
3139
  if (!header) {
3140
3140
  return;
3141
3141
  }
3142
+ const cellValue = (_a3 = table.getRowModel().rows[0]) == null ? void 0 : _a3.getValue(header.column.id);
3143
+ const cellAlignment = (_c = (_b2 = header.column.columnDef.meta) == null ? void 0 : _b2.align) != null ? _c : typeof cellValue === "number" ? "right" : "left";
3142
3144
  if (typeof header.column.columnDef.header === "string") {
3143
- const customHeaderWidth = (_a3 = header.column.columnDef.meta) == null ? void 0 : _a3.headerWidth;
3145
+ const customHeaderWidth = (_d = header.column.columnDef.meta) == null ? void 0 : _d.headerWidth;
3144
3146
  return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
3145
3147
  DataCellHeader,
3146
3148
  {
@@ -3151,14 +3153,18 @@ function PinnedColumns(_a) {
3151
3153
  width: customHeaderWidth,
3152
3154
  className: (0, import_clsx13.default)(
3153
3155
  header.column.getCanSort() ? "cursor-pointer" : "cursor-grab",
3154
- "group"
3156
+ "group",
3157
+ {
3158
+ "justify-start": cellAlignment === "left",
3159
+ "justify-end": cellAlignment === "right"
3160
+ }
3155
3161
  ),
3156
3162
  children: [
3157
3163
  /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Subheader, { tall: true, children: header.column.columnDef.header }),
3158
3164
  getSortIcon(header.column.getIsSorted()),
3159
3165
  !header.column.getIsSorted() && header.column.getCanSort() && getSortIcon(header.column.getNextSortingOrder(), true),
3160
3166
  header.column.getSortIndex() !== -1 && table.getState().sorting.length > 1 && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Subheader, { tall: true, children: header.column.getSortIndex() + 1 }),
3161
- !((_b2 = header.column.columnDef.meta) == null ? void 0 : _b2.locked) && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
3167
+ !((_e = header.column.columnDef.meta) == null ? void 0 : _e.locked) && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
3162
3168
  "div",
3163
3169
  {
3164
3170
  onDoubleClick: (e) => {
@@ -3181,7 +3187,7 @@ function PinnedColumns(_a) {
3181
3187
  header.id
3182
3188
  );
3183
3189
  }
3184
- return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_react15.default.Fragment, { children: ((_c = header.column.columnDef.meta) == null ? void 0 : _c.checkbox) ? /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(DataGridCell, { type: "header", component: "checkbox", locked: true, children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
3190
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_react15.default.Fragment, { children: ((_f = header.column.columnDef.meta) == null ? void 0 : _f.checkbox) ? /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(DataGridCell, { type: "header", component: "checkbox", locked: true, children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
3185
3191
  Checkbox,
3186
3192
  {
3187
3193
  checked: allSelectedAcrossPages,
@@ -3216,7 +3222,7 @@ function PinnedColumns(_a) {
3216
3222
  testid: pinnedTestId
3217
3223
  }, props), {
3218
3224
  table,
3219
- locked: !enableColumnSelector,
3225
+ locked: !enableColumnSelector || pinDirection === "right",
3220
3226
  pinDirection
3221
3227
  })
3222
3228
  )
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  CalendarRange
3
- } from "../chunk-5CIANSOX.js";
3
+ } from "../chunk-LKFYNRJZ.js";
4
4
  import "../chunk-CJ7V4X6B.js";
5
5
  import "../chunk-M7INAUAJ.js";
6
6
  import "../chunk-7ZCXZDJD.js";
7
- import "../chunk-ZD2A45VT.js";
7
+ import "../chunk-YGAFYULX.js";
8
+ import "../chunk-MBZ55T2D.js";
9
+ import "../chunk-2IKT6IHB.js";
8
10
  import "../chunk-YCDDBSVU.js";
9
11
  import "../chunk-3X3Y4TMS.js";
10
12
  import "../chunk-BQNPOGD5.js";
11
13
  import "../chunk-Y5GD2FJA.js";
12
- import "../chunk-MBZ55T2D.js";
13
- import "../chunk-2IKT6IHB.js";
14
14
  import "../chunk-RZ5EIDX4.js";
15
15
  import "../chunk-AGHBLWDZ.js";
16
16
  import "../chunk-5IFPG6TS.js";
@@ -3121,12 +3121,14 @@ function PinnedColumns(_a) {
3121
3121
  className: "flex w-full",
3122
3122
  children: [
3123
3123
  headerGroup.headers.map((header) => {
3124
- var _a3, _b2, _c;
3124
+ var _a3, _b2, _c, _d, _e, _f;
3125
3125
  if (!header) {
3126
3126
  return;
3127
3127
  }
3128
+ const cellValue = (_a3 = table.getRowModel().rows[0]) == null ? void 0 : _a3.getValue(header.column.id);
3129
+ const cellAlignment = (_c = (_b2 = header.column.columnDef.meta) == null ? void 0 : _b2.align) != null ? _c : typeof cellValue === "number" ? "right" : "left";
3128
3130
  if (typeof header.column.columnDef.header === "string") {
3129
- const customHeaderWidth = (_a3 = header.column.columnDef.meta) == null ? void 0 : _a3.headerWidth;
3131
+ const customHeaderWidth = (_d = header.column.columnDef.meta) == null ? void 0 : _d.headerWidth;
3130
3132
  return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
3131
3133
  DataCellHeader,
3132
3134
  {
@@ -3137,14 +3139,18 @@ function PinnedColumns(_a) {
3137
3139
  width: customHeaderWidth,
3138
3140
  className: (0, import_clsx13.default)(
3139
3141
  header.column.getCanSort() ? "cursor-pointer" : "cursor-grab",
3140
- "group"
3142
+ "group",
3143
+ {
3144
+ "justify-start": cellAlignment === "left",
3145
+ "justify-end": cellAlignment === "right"
3146
+ }
3141
3147
  ),
3142
3148
  children: [
3143
3149
  /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Subheader, { tall: true, children: header.column.columnDef.header }),
3144
3150
  getSortIcon(header.column.getIsSorted()),
3145
3151
  !header.column.getIsSorted() && header.column.getCanSort() && getSortIcon(header.column.getNextSortingOrder(), true),
3146
3152
  header.column.getSortIndex() !== -1 && table.getState().sorting.length > 1 && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Subheader, { tall: true, children: header.column.getSortIndex() + 1 }),
3147
- !((_b2 = header.column.columnDef.meta) == null ? void 0 : _b2.locked) && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
3153
+ !((_e = header.column.columnDef.meta) == null ? void 0 : _e.locked) && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
3148
3154
  "div",
3149
3155
  {
3150
3156
  onDoubleClick: (e) => {
@@ -3167,7 +3173,7 @@ function PinnedColumns(_a) {
3167
3173
  header.id
3168
3174
  );
3169
3175
  }
3170
- return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_react15.default.Fragment, { children: ((_c = header.column.columnDef.meta) == null ? void 0 : _c.checkbox) ? /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(DataGridCell, { type: "header", component: "checkbox", locked: true, children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
3176
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_react15.default.Fragment, { children: ((_f = header.column.columnDef.meta) == null ? void 0 : _f.checkbox) ? /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(DataGridCell, { type: "header", component: "checkbox", locked: true, children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
3171
3177
  Checkbox,
3172
3178
  {
3173
3179
  checked: allSelectedAcrossPages,
@@ -3202,7 +3208,7 @@ function PinnedColumns(_a) {
3202
3208
  testid: pinnedTestId
3203
3209
  }, props), {
3204
3210
  table,
3205
- locked: !enableColumnSelector,
3211
+ locked: !enableColumnSelector || pinDirection === "right",
3206
3212
  pinDirection
3207
3213
  })
3208
3214
  )
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  ColumnSelector
3
- } from "../../../chunk-5CIANSOX.js";
3
+ } from "../../../chunk-LKFYNRJZ.js";
4
4
  import "../../../chunk-CJ7V4X6B.js";
5
5
  import "../../../chunk-M7INAUAJ.js";
6
6
  import "../../../chunk-7ZCXZDJD.js";
7
- import "../../../chunk-ZD2A45VT.js";
7
+ import "../../../chunk-YGAFYULX.js";
8
+ import "../../../chunk-MBZ55T2D.js";
9
+ import "../../../chunk-2IKT6IHB.js";
8
10
  import "../../../chunk-YCDDBSVU.js";
9
11
  import "../../../chunk-3X3Y4TMS.js";
10
12
  import "../../../chunk-BQNPOGD5.js";
11
13
  import "../../../chunk-Y5GD2FJA.js";
12
- import "../../../chunk-MBZ55T2D.js";
13
- import "../../../chunk-2IKT6IHB.js";
14
14
  import "../../../chunk-RZ5EIDX4.js";
15
15
  import "../../../chunk-AGHBLWDZ.js";
16
16
  import "../../../chunk-5IFPG6TS.js";
@@ -3552,12 +3552,14 @@ function PinnedColumns(_a) {
3552
3552
  className: "flex w-full",
3553
3553
  children: [
3554
3554
  headerGroup.headers.map((header) => {
3555
- var _a3, _b2, _c;
3555
+ var _a3, _b2, _c, _d, _e, _f;
3556
3556
  if (!header) {
3557
3557
  return;
3558
3558
  }
3559
+ const cellValue = (_a3 = table.getRowModel().rows[0]) == null ? void 0 : _a3.getValue(header.column.id);
3560
+ const cellAlignment = (_c = (_b2 = header.column.columnDef.meta) == null ? void 0 : _b2.align) != null ? _c : typeof cellValue === "number" ? "right" : "left";
3559
3561
  if (typeof header.column.columnDef.header === "string") {
3560
- const customHeaderWidth = (_a3 = header.column.columnDef.meta) == null ? void 0 : _a3.headerWidth;
3562
+ const customHeaderWidth = (_d = header.column.columnDef.meta) == null ? void 0 : _d.headerWidth;
3561
3563
  return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
3562
3564
  DataCellHeader,
3563
3565
  {
@@ -3568,14 +3570,18 @@ function PinnedColumns(_a) {
3568
3570
  width: customHeaderWidth,
3569
3571
  className: (0, import_clsx16.default)(
3570
3572
  header.column.getCanSort() ? "cursor-pointer" : "cursor-grab",
3571
- "group"
3573
+ "group",
3574
+ {
3575
+ "justify-start": cellAlignment === "left",
3576
+ "justify-end": cellAlignment === "right"
3577
+ }
3572
3578
  ),
3573
3579
  children: [
3574
3580
  /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Subheader, { tall: true, children: header.column.columnDef.header }),
3575
3581
  getSortIcon(header.column.getIsSorted()),
3576
3582
  !header.column.getIsSorted() && header.column.getCanSort() && getSortIcon(header.column.getNextSortingOrder(), true),
3577
3583
  header.column.getSortIndex() !== -1 && table.getState().sorting.length > 1 && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Subheader, { tall: true, children: header.column.getSortIndex() + 1 }),
3578
- !((_b2 = header.column.columnDef.meta) == null ? void 0 : _b2.locked) && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
3584
+ !((_e = header.column.columnDef.meta) == null ? void 0 : _e.locked) && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
3579
3585
  "div",
3580
3586
  {
3581
3587
  onDoubleClick: (e) => {
@@ -3598,7 +3604,7 @@ function PinnedColumns(_a) {
3598
3604
  header.id
3599
3605
  );
3600
3606
  }
3601
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_react15.default.Fragment, { children: ((_c = header.column.columnDef.meta) == null ? void 0 : _c.checkbox) ? /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(DataGridCell, { type: "header", component: "checkbox", locked: true, children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
3607
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_react15.default.Fragment, { children: ((_f = header.column.columnDef.meta) == null ? void 0 : _f.checkbox) ? /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(DataGridCell, { type: "header", component: "checkbox", locked: true, children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
3602
3608
  Checkbox,
3603
3609
  {
3604
3610
  checked: allSelectedAcrossPages,
@@ -3633,7 +3639,7 @@ function PinnedColumns(_a) {
3633
3639
  testid: pinnedTestId
3634
3640
  }, props), {
3635
3641
  table,
3636
- locked: !enableColumnSelector,
3642
+ locked: !enableColumnSelector || pinDirection === "right",
3637
3643
  pinDirection
3638
3644
  })
3639
3645
  )
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  MobileDataGridHeader
3
- } from "../../chunk-5CIANSOX.js";
3
+ } from "../../chunk-LKFYNRJZ.js";
4
4
  import "../../chunk-CJ7V4X6B.js";
5
5
  import "../../chunk-M7INAUAJ.js";
6
6
  import "../../chunk-7ZCXZDJD.js";
7
- import "../../chunk-ZD2A45VT.js";
7
+ import "../../chunk-YGAFYULX.js";
8
+ import "../../chunk-MBZ55T2D.js";
9
+ import "../../chunk-2IKT6IHB.js";
8
10
  import "../../chunk-YCDDBSVU.js";
9
11
  import "../../chunk-3X3Y4TMS.js";
10
12
  import "../../chunk-BQNPOGD5.js";
11
13
  import "../../chunk-Y5GD2FJA.js";
12
- import "../../chunk-MBZ55T2D.js";
13
- import "../../chunk-2IKT6IHB.js";
14
14
  import "../../chunk-RZ5EIDX4.js";
15
15
  import "../../chunk-AGHBLWDZ.js";
16
16
  import "../../chunk-5IFPG6TS.js";
@@ -3552,12 +3552,14 @@ function PinnedColumns(_a) {
3552
3552
  className: "flex w-full",
3553
3553
  children: [
3554
3554
  headerGroup.headers.map((header) => {
3555
- var _a3, _b2, _c;
3555
+ var _a3, _b2, _c, _d, _e, _f;
3556
3556
  if (!header) {
3557
3557
  return;
3558
3558
  }
3559
+ const cellValue = (_a3 = table.getRowModel().rows[0]) == null ? void 0 : _a3.getValue(header.column.id);
3560
+ const cellAlignment = (_c = (_b2 = header.column.columnDef.meta) == null ? void 0 : _b2.align) != null ? _c : typeof cellValue === "number" ? "right" : "left";
3559
3561
  if (typeof header.column.columnDef.header === "string") {
3560
- const customHeaderWidth = (_a3 = header.column.columnDef.meta) == null ? void 0 : _a3.headerWidth;
3562
+ const customHeaderWidth = (_d = header.column.columnDef.meta) == null ? void 0 : _d.headerWidth;
3561
3563
  return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
3562
3564
  DataCellHeader,
3563
3565
  {
@@ -3568,14 +3570,18 @@ function PinnedColumns(_a) {
3568
3570
  width: customHeaderWidth,
3569
3571
  className: (0, import_clsx16.default)(
3570
3572
  header.column.getCanSort() ? "cursor-pointer" : "cursor-grab",
3571
- "group"
3573
+ "group",
3574
+ {
3575
+ "justify-start": cellAlignment === "left",
3576
+ "justify-end": cellAlignment === "right"
3577
+ }
3572
3578
  ),
3573
3579
  children: [
3574
3580
  /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Subheader, { tall: true, children: header.column.columnDef.header }),
3575
3581
  getSortIcon(header.column.getIsSorted()),
3576
3582
  !header.column.getIsSorted() && header.column.getCanSort() && getSortIcon(header.column.getNextSortingOrder(), true),
3577
3583
  header.column.getSortIndex() !== -1 && table.getState().sorting.length > 1 && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Subheader, { tall: true, children: header.column.getSortIndex() + 1 }),
3578
- !((_b2 = header.column.columnDef.meta) == null ? void 0 : _b2.locked) && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
3584
+ !((_e = header.column.columnDef.meta) == null ? void 0 : _e.locked) && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
3579
3585
  "div",
3580
3586
  {
3581
3587
  onDoubleClick: (e) => {
@@ -3598,7 +3604,7 @@ function PinnedColumns(_a) {
3598
3604
  header.id
3599
3605
  );
3600
3606
  }
3601
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_react15.default.Fragment, { children: ((_c = header.column.columnDef.meta) == null ? void 0 : _c.checkbox) ? /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(DataGridCell, { type: "header", component: "checkbox", locked: true, children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
3607
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_react15.default.Fragment, { children: ((_f = header.column.columnDef.meta) == null ? void 0 : _f.checkbox) ? /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(DataGridCell, { type: "header", component: "checkbox", locked: true, children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
3602
3608
  Checkbox,
3603
3609
  {
3604
3610
  checked: allSelectedAcrossPages,
@@ -3633,7 +3639,7 @@ function PinnedColumns(_a) {
3633
3639
  testid: pinnedTestId
3634
3640
  }, props), {
3635
3641
  table,
3636
- locked: !enableColumnSelector,
3642
+ locked: !enableColumnSelector || pinDirection === "right",
3637
3643
  pinDirection
3638
3644
  })
3639
3645
  )
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  MobileDataGrid
3
- } from "../../chunk-5CIANSOX.js";
3
+ } from "../../chunk-LKFYNRJZ.js";
4
4
  import "../../chunk-CJ7V4X6B.js";
5
5
  import "../../chunk-M7INAUAJ.js";
6
6
  import "../../chunk-7ZCXZDJD.js";
7
- import "../../chunk-ZD2A45VT.js";
7
+ import "../../chunk-YGAFYULX.js";
8
+ import "../../chunk-MBZ55T2D.js";
9
+ import "../../chunk-2IKT6IHB.js";
8
10
  import "../../chunk-YCDDBSVU.js";
9
11
  import "../../chunk-3X3Y4TMS.js";
10
12
  import "../../chunk-BQNPOGD5.js";
11
13
  import "../../chunk-Y5GD2FJA.js";
12
- import "../../chunk-MBZ55T2D.js";
13
- import "../../chunk-2IKT6IHB.js";
14
14
  import "../../chunk-RZ5EIDX4.js";
15
15
  import "../../chunk-AGHBLWDZ.js";
16
16
  import "../../chunk-5IFPG6TS.js";
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  ProductImagePreview
3
- } from "../../chunk-ZD2A45VT.js";
3
+ } from "../../chunk-YGAFYULX.js";
4
+ import "../../chunk-MBZ55T2D.js";
5
+ import "../../chunk-2IKT6IHB.js";
4
6
  import "../../chunk-YCDDBSVU.js";
5
7
  import "../../chunk-3X3Y4TMS.js";
6
8
  import "../../chunk-BQNPOGD5.js";
7
- import "../../chunk-MBZ55T2D.js";
8
- import "../../chunk-2IKT6IHB.js";
9
9
  import "../../chunk-AT4AWD6B.js";
10
10
  import "../../chunk-QVWYTQKL.js";
11
11
  import "../../chunk-BWPNXY7T.js";
@@ -3152,12 +3152,14 @@ function PinnedColumns(_a) {
3152
3152
  className: "flex w-full",
3153
3153
  children: [
3154
3154
  headerGroup.headers.map((header) => {
3155
- var _a3, _b2, _c;
3155
+ var _a3, _b2, _c, _d, _e, _f;
3156
3156
  if (!header) {
3157
3157
  return;
3158
3158
  }
3159
+ const cellValue = (_a3 = table.getRowModel().rows[0]) == null ? void 0 : _a3.getValue(header.column.id);
3160
+ const cellAlignment = (_c = (_b2 = header.column.columnDef.meta) == null ? void 0 : _b2.align) != null ? _c : typeof cellValue === "number" ? "right" : "left";
3159
3161
  if (typeof header.column.columnDef.header === "string") {
3160
- const customHeaderWidth = (_a3 = header.column.columnDef.meta) == null ? void 0 : _a3.headerWidth;
3162
+ const customHeaderWidth = (_d = header.column.columnDef.meta) == null ? void 0 : _d.headerWidth;
3161
3163
  return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
3162
3164
  DataCellHeader,
3163
3165
  {
@@ -3168,14 +3170,18 @@ function PinnedColumns(_a) {
3168
3170
  width: customHeaderWidth,
3169
3171
  className: (0, import_clsx13.default)(
3170
3172
  header.column.getCanSort() ? "cursor-pointer" : "cursor-grab",
3171
- "group"
3173
+ "group",
3174
+ {
3175
+ "justify-start": cellAlignment === "left",
3176
+ "justify-end": cellAlignment === "right"
3177
+ }
3172
3178
  ),
3173
3179
  children: [
3174
3180
  /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Subheader, { tall: true, children: header.column.columnDef.header }),
3175
3181
  getSortIcon(header.column.getIsSorted()),
3176
3182
  !header.column.getIsSorted() && header.column.getCanSort() && getSortIcon(header.column.getNextSortingOrder(), true),
3177
3183
  header.column.getSortIndex() !== -1 && table.getState().sorting.length > 1 && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Subheader, { tall: true, children: header.column.getSortIndex() + 1 }),
3178
- !((_b2 = header.column.columnDef.meta) == null ? void 0 : _b2.locked) && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
3184
+ !((_e = header.column.columnDef.meta) == null ? void 0 : _e.locked) && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
3179
3185
  "div",
3180
3186
  {
3181
3187
  onDoubleClick: (e) => {
@@ -3198,7 +3204,7 @@ function PinnedColumns(_a) {
3198
3204
  header.id
3199
3205
  );
3200
3206
  }
3201
- return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_react15.default.Fragment, { children: ((_c = header.column.columnDef.meta) == null ? void 0 : _c.checkbox) ? /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(DataGridCell, { type: "header", component: "checkbox", locked: true, children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
3207
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_react15.default.Fragment, { children: ((_f = header.column.columnDef.meta) == null ? void 0 : _f.checkbox) ? /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(DataGridCell, { type: "header", component: "checkbox", locked: true, children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
3202
3208
  Checkbox,
3203
3209
  {
3204
3210
  checked: allSelectedAcrossPages,
@@ -3233,7 +3239,7 @@ function PinnedColumns(_a) {
3233
3239
  testid: pinnedTestId
3234
3240
  }, props), {
3235
3241
  table,
3236
- locked: !enableColumnSelector,
3242
+ locked: !enableColumnSelector || pinDirection === "right",
3237
3243
  pinDirection
3238
3244
  })
3239
3245
  )