@dmsi/wedgekit-react 0.0.417 → 0.0.419
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/dist/{chunk-CAQWLY5V.js → chunk-CANJ2YPW.js} +1 -1
- package/dist/chunk-ESCNCQGI.js +9 -0
- package/dist/{chunk-NRNWEQD7.js → chunk-IFHMGICR.js} +1 -1
- package/dist/components/CalendarRange.cjs +28 -25
- package/dist/components/CalendarRange.js +5 -4
- package/dist/components/CompactImagesPreview.cjs +1 -1
- package/dist/components/CompactImagesPreview.js +1 -1
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.cjs +5 -2
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.js +5 -4
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.cjs +12 -9
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.js +5 -4
- package/dist/components/DataGrid/PinnedColumns.cjs +23 -20
- package/dist/components/DataGrid/PinnedColumns.js +5 -4
- package/dist/components/DataGrid/TableBody/LoadingCell.cjs +8 -5
- package/dist/components/DataGrid/TableBody/LoadingCell.js +5 -4
- package/dist/components/DataGrid/TableBody/TableBodyRow.cjs +10 -7
- package/dist/components/DataGrid/TableBody/TableBodyRow.js +5 -4
- package/dist/components/DataGrid/TableBody/index.cjs +23 -20
- package/dist/components/DataGrid/TableBody/index.js +5 -4
- package/dist/components/DataGrid/index.cjs +83 -80
- package/dist/components/DataGrid/index.js +5 -4
- package/dist/components/DataGrid/utils.cjs +6 -3
- package/dist/components/DataGrid/utils.js +5 -4
- package/dist/components/DateInput.cjs +34 -31
- package/dist/components/DateInput.js +5 -4
- package/dist/components/DateRangeInput.cjs +34 -31
- package/dist/components/DateRangeInput.js +5 -4
- package/dist/components/ListGroup.cjs +1 -1
- package/dist/components/ListGroup.js +1 -1
- package/dist/components/MobileDataGrid/ColumnSelector/index.cjs +11 -8
- package/dist/components/MobileDataGrid/ColumnSelector/index.js +5 -4
- package/dist/components/MobileDataGrid/MobileDataGridHeader.cjs +19 -16
- package/dist/components/MobileDataGrid/MobileDataGridHeader.js +5 -4
- package/dist/components/MobileDataGrid/index.cjs +64 -61
- package/dist/components/MobileDataGrid/index.js +5 -4
- package/dist/components/SkeletonParagraph.js +3 -6
- package/dist/components/index.cjs +10 -2
- package/dist/components/index.js +8 -4
- package/package.json +1 -1
- package/src/components/CompactImagesPreview.tsx +1 -1
- package/src/components/ListGroup.tsx +1 -1
- package/src/components/index.ts +1 -0
- package/dist/{chunk-HYJIDHAK.js → chunk-TQIKP534.js} +3 -3
|
@@ -5041,6 +5041,9 @@ var Pagination = ({
|
|
|
5041
5041
|
};
|
|
5042
5042
|
Pagination.displayName = "Pagination";
|
|
5043
5043
|
|
|
5044
|
+
// src/components/SkeletonParagraph.tsx
|
|
5045
|
+
var import_jsx_runtime51 = require("react/jsx-runtime");
|
|
5046
|
+
|
|
5044
5047
|
// src/components/MobileDataGrid/GridContextProvider/useGridContext.ts
|
|
5045
5048
|
var import_react34 = require("react");
|
|
5046
5049
|
|
|
@@ -5058,7 +5061,7 @@ function useGridContext() {
|
|
|
5058
5061
|
}
|
|
5059
5062
|
|
|
5060
5063
|
// src/components/MobileDataGrid/ColumnSelector/index.tsx
|
|
5061
|
-
var
|
|
5064
|
+
var import_jsx_runtime52 = require("react/jsx-runtime");
|
|
5062
5065
|
function ColumnSelector() {
|
|
5063
5066
|
const context = useGridContext();
|
|
5064
5067
|
const ref = (0, import_react35.useRef)(null);
|
|
@@ -5079,7 +5082,7 @@ function ColumnSelector() {
|
|
|
5079
5082
|
},
|
|
5080
5083
|
[dispatch]
|
|
5081
5084
|
);
|
|
5082
|
-
return /* @__PURE__ */ (0,
|
|
5085
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
|
|
5083
5086
|
"div",
|
|
5084
5087
|
{
|
|
5085
5088
|
id: id ? `${id}-column-selector` : void 0,
|
|
@@ -5087,7 +5090,7 @@ function ColumnSelector() {
|
|
|
5087
5090
|
className: "text-text-secondary-normal border-l border-brand-200 p-mobile-container-padding",
|
|
5088
5091
|
ref,
|
|
5089
5092
|
children: [
|
|
5090
|
-
/* @__PURE__ */ (0,
|
|
5093
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
5091
5094
|
Button,
|
|
5092
5095
|
{
|
|
5093
5096
|
id: id ? `${id}-button` : void 0,
|
|
@@ -5096,10 +5099,10 @@ function ColumnSelector() {
|
|
|
5096
5099
|
variant: "navigation",
|
|
5097
5100
|
iconOnly: true,
|
|
5098
5101
|
size: 24,
|
|
5099
|
-
leftIcon: /* @__PURE__ */ (0,
|
|
5102
|
+
leftIcon: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Icon, { name: "tune" })
|
|
5100
5103
|
}
|
|
5101
5104
|
),
|
|
5102
|
-
/* @__PURE__ */ (0,
|
|
5105
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
|
|
5103
5106
|
Menu,
|
|
5104
5107
|
{
|
|
5105
5108
|
id: id ? `${id}-menu` : void 0,
|
|
@@ -5110,7 +5113,7 @@ function ColumnSelector() {
|
|
|
5110
5113
|
setShow,
|
|
5111
5114
|
calculateMinMaxHeight: true,
|
|
5112
5115
|
children: [
|
|
5113
|
-
/* @__PURE__ */ (0,
|
|
5116
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
5114
5117
|
Button,
|
|
5115
5118
|
{
|
|
5116
5119
|
id: id ? `${id}-reset-button` : void 0,
|
|
@@ -5128,11 +5131,11 @@ function ColumnSelector() {
|
|
|
5128
5131
|
return (_a = x.meta) == null ? void 0 : _a.inVisibilityMenu;
|
|
5129
5132
|
}).map((column) => {
|
|
5130
5133
|
var _a, _b, _c;
|
|
5131
|
-
return /* @__PURE__ */ (0,
|
|
5134
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
5132
5135
|
MenuOption,
|
|
5133
5136
|
{
|
|
5134
5137
|
testid: testid ? `${testid}-option-${column.id}` : void 0,
|
|
5135
|
-
children: /* @__PURE__ */ (0,
|
|
5138
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
5136
5139
|
Checkbox,
|
|
5137
5140
|
{
|
|
5138
5141
|
id: id ? `${id}-checkbox-${column.id}` : void 0,
|
|
@@ -5162,7 +5165,7 @@ function ColumnSelector() {
|
|
|
5162
5165
|
}
|
|
5163
5166
|
|
|
5164
5167
|
// src/components/MobileDataGrid/MobileDataGridHeader.tsx
|
|
5165
|
-
var
|
|
5168
|
+
var import_jsx_runtime53 = require("react/jsx-runtime");
|
|
5166
5169
|
function MobileDataGridHeader({
|
|
5167
5170
|
header: Header,
|
|
5168
5171
|
enableColumnSelector,
|
|
@@ -5180,15 +5183,15 @@ function MobileDataGridHeader({
|
|
|
5180
5183
|
handleRowSelectAll
|
|
5181
5184
|
} = ctx;
|
|
5182
5185
|
if (typeof Header === "undefined" && !primaryKey) return null;
|
|
5183
|
-
if (typeof Header === "function") return /* @__PURE__ */ (0,
|
|
5186
|
+
if (typeof Header === "function") return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Header, __spreadValues({}, ctx));
|
|
5184
5187
|
if (typeof Header === "string" || primaryKey)
|
|
5185
|
-
return /* @__PURE__ */ (0,
|
|
5188
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
5186
5189
|
"div",
|
|
5187
5190
|
{
|
|
5188
5191
|
id: id ? `${id}-header` : void 0,
|
|
5189
5192
|
"data-testid": testid ? `${testid}-header` : void 0,
|
|
5190
5193
|
className: "sticky top-0",
|
|
5191
|
-
children: /* @__PURE__ */ (0,
|
|
5194
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Theme, { theme: "brand", children: /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(
|
|
5192
5195
|
Stack,
|
|
5193
5196
|
{
|
|
5194
5197
|
horizontal: true,
|
|
@@ -5197,7 +5200,7 @@ function MobileDataGridHeader({
|
|
|
5197
5200
|
justify: "between",
|
|
5198
5201
|
backgroundColor: "background-primary-normal",
|
|
5199
5202
|
children: [
|
|
5200
|
-
enableRowSelection && /* @__PURE__ */ (0,
|
|
5203
|
+
enableRowSelection && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: "p-mobile-component-padding border-r border-brand-200 max-w-fit h-full", children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
5201
5204
|
Checkbox,
|
|
5202
5205
|
{
|
|
5203
5206
|
id: id ? `${id}-select-all-checkbox` : void 0,
|
|
@@ -5207,7 +5210,7 @@ function MobileDataGridHeader({
|
|
|
5207
5210
|
onChange: handleRowSelectAll
|
|
5208
5211
|
}
|
|
5209
5212
|
) }),
|
|
5210
|
-
/* @__PURE__ */ (0,
|
|
5213
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
5211
5214
|
Stack,
|
|
5212
5215
|
{
|
|
5213
5216
|
horizontal: true,
|
|
@@ -5215,10 +5218,10 @@ function MobileDataGridHeader({
|
|
|
5215
5218
|
items: "center",
|
|
5216
5219
|
sizing: "component",
|
|
5217
5220
|
padding: true,
|
|
5218
|
-
children: /* @__PURE__ */ (0,
|
|
5221
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Heading3, { as: "span", color: "text-primary-normal", children: typeof Header === "string" ? Header : (_b = (_a = columns.find((col) => col.id === primaryKey)) == null ? void 0 : _a.header) == null ? void 0 : _b.toString() })
|
|
5219
5222
|
}
|
|
5220
5223
|
),
|
|
5221
|
-
enableColumnSelector && /* @__PURE__ */ (0,
|
|
5224
|
+
enableColumnSelector && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(ColumnSelector, {})
|
|
5222
5225
|
]
|
|
5223
5226
|
}
|
|
5224
5227
|
) })
|
|
@@ -5257,7 +5260,7 @@ function dataGridReducer(state, action) {
|
|
|
5257
5260
|
}
|
|
5258
5261
|
|
|
5259
5262
|
// src/components/MobileDataGrid/GridContextProvider/index.tsx
|
|
5260
|
-
var
|
|
5263
|
+
var import_jsx_runtime54 = require("react/jsx-runtime");
|
|
5261
5264
|
function GridContextProvider(props) {
|
|
5262
5265
|
const {
|
|
5263
5266
|
initialColumns,
|
|
@@ -5328,7 +5331,7 @@ function GridContextProvider(props) {
|
|
|
5328
5331
|
return ((_a = x.meta) == null ? void 0 : _a.visible) !== false;
|
|
5329
5332
|
}).slice(0, effectiveLimit);
|
|
5330
5333
|
}, [columns, numberOfColumnsToShow, primaryKey]);
|
|
5331
|
-
return /* @__PURE__ */ (0,
|
|
5334
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
5332
5335
|
GridContext.Provider,
|
|
5333
5336
|
{
|
|
5334
5337
|
value: {
|
|
@@ -5356,12 +5359,12 @@ function GridContextProvider(props) {
|
|
|
5356
5359
|
}
|
|
5357
5360
|
|
|
5358
5361
|
// src/components/MobileDataGrid/MobileDataGridCard/MobileDataGridColumn.tsx
|
|
5359
|
-
var
|
|
5362
|
+
var import_jsx_runtime55 = require("react/jsx-runtime");
|
|
5360
5363
|
function MobileDataGridColumn(props) {
|
|
5361
5364
|
var _a;
|
|
5362
5365
|
const { column, data } = props;
|
|
5363
|
-
return /* @__PURE__ */ (0,
|
|
5364
|
-
/* @__PURE__ */ (0,
|
|
5366
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("div", { className: "mb-2 grid grid-cols-2 gap-2 px-3 flex-1", children: [
|
|
5367
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(Paragraph, { color: "text-secondary-normal", className: "text-left", children: [
|
|
5365
5368
|
(_a = column.header) == null ? void 0 : _a.toString(),
|
|
5366
5369
|
":"
|
|
5367
5370
|
] }),
|
|
@@ -5371,28 +5374,28 @@ function MobileDataGridColumn(props) {
|
|
|
5371
5374
|
}
|
|
5372
5375
|
|
|
5373
5376
|
// src/components/MobileDataGrid/RowDetailModalProvider/ModalContent.tsx
|
|
5374
|
-
var
|
|
5377
|
+
var import_jsx_runtime56 = require("react/jsx-runtime");
|
|
5375
5378
|
function ModalContent2() {
|
|
5376
5379
|
const context = useGridContext();
|
|
5377
5380
|
const { columns, currentRow } = context;
|
|
5378
5381
|
if (!currentRow) return null;
|
|
5379
|
-
return /* @__PURE__ */ (0,
|
|
5382
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Stack, { sizing: "layout-group", children: columns.filter((x) => {
|
|
5380
5383
|
var _a;
|
|
5381
5384
|
return !((_a = x.id) == null ? void 0 : _a.startsWith("__"));
|
|
5382
5385
|
}).map(
|
|
5383
5386
|
(column, index) => {
|
|
5384
5387
|
var _a, _b;
|
|
5385
|
-
return ((_a = column.meta) == null ? void 0 : _a.useCustomRenderer) && column.meta.mobileCell && column.id ? /* @__PURE__ */ (0,
|
|
5388
|
+
return ((_a = column.meta) == null ? void 0 : _a.useCustomRenderer) && column.meta.mobileCell && column.id ? /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
|
|
5386
5389
|
"div",
|
|
5387
5390
|
{
|
|
5388
5391
|
className: "mb-2 grid grid-cols-2 gap-2 px-3 items-center flex-1",
|
|
5389
5392
|
children: [
|
|
5390
|
-
/* @__PURE__ */ (0,
|
|
5393
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(Paragraph, { color: "text-secondary-normal", className: "text-left", children: [
|
|
5391
5394
|
(_b = column.header) == null ? void 0 : _b.toString(),
|
|
5392
5395
|
":"
|
|
5393
5396
|
] }),
|
|
5394
5397
|
" ",
|
|
5395
|
-
/* @__PURE__ */ (0,
|
|
5398
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
5396
5399
|
column.meta.mobileCell,
|
|
5397
5400
|
{
|
|
5398
5401
|
column,
|
|
@@ -5403,7 +5406,7 @@ function ModalContent2() {
|
|
|
5403
5406
|
]
|
|
5404
5407
|
},
|
|
5405
5408
|
`${column.id}-${index}`
|
|
5406
|
-
) : /* @__PURE__ */ (0,
|
|
5409
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
5407
5410
|
MobileDataGridColumn,
|
|
5408
5411
|
{
|
|
5409
5412
|
column,
|
|
@@ -5416,7 +5419,7 @@ function ModalContent2() {
|
|
|
5416
5419
|
}
|
|
5417
5420
|
|
|
5418
5421
|
// src/components/MobileDataGrid/RowDetailModalProvider/index.tsx
|
|
5419
|
-
var
|
|
5422
|
+
var import_jsx_runtime57 = require("react/jsx-runtime");
|
|
5420
5423
|
function RowDetailModalProvider() {
|
|
5421
5424
|
var _a;
|
|
5422
5425
|
const context = useGridContext();
|
|
@@ -5428,7 +5431,7 @@ function RowDetailModalProvider() {
|
|
|
5428
5431
|
primaryKey,
|
|
5429
5432
|
closeRowDetail
|
|
5430
5433
|
} = context;
|
|
5431
|
-
return /* @__PURE__ */ (0,
|
|
5434
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
5432
5435
|
Modal,
|
|
5433
5436
|
{
|
|
5434
5437
|
fixedHeightScrolling: true,
|
|
@@ -5437,7 +5440,7 @@ function RowDetailModalProvider() {
|
|
|
5437
5440
|
hideCloseIcon: true,
|
|
5438
5441
|
size: "medium",
|
|
5439
5442
|
className: "!p-0",
|
|
5440
|
-
headerIcon: /* @__PURE__ */ (0,
|
|
5443
|
+
headerIcon: /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
|
|
5441
5444
|
Stack,
|
|
5442
5445
|
{
|
|
5443
5446
|
horizontal: true,
|
|
@@ -5446,8 +5449,8 @@ function RowDetailModalProvider() {
|
|
|
5446
5449
|
justify: "between",
|
|
5447
5450
|
width: "full",
|
|
5448
5451
|
children: [
|
|
5449
|
-
/* @__PURE__ */ (0,
|
|
5450
|
-
/* @__PURE__ */ (0,
|
|
5452
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Heading2, { children: (_a = currentRow == null ? void 0 : currentRow[primaryKey != null ? primaryKey : "id"]) != null ? _a : "Grid Detail" }),
|
|
5453
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
5451
5454
|
Button,
|
|
5452
5455
|
{
|
|
5453
5456
|
id: id ? `${id}-open-in-new-button` : void 0,
|
|
@@ -5455,15 +5458,15 @@ function RowDetailModalProvider() {
|
|
|
5455
5458
|
iconOnly: true,
|
|
5456
5459
|
variant: "tertiary",
|
|
5457
5460
|
onClick: closeRowDetail,
|
|
5458
|
-
leftIcon: /* @__PURE__ */ (0,
|
|
5461
|
+
leftIcon: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("span", { className: "text-icon-primary-normal contents", children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Icon, { name: "open_in_new", size: 24 }) })
|
|
5459
5462
|
}
|
|
5460
5463
|
)
|
|
5461
5464
|
]
|
|
5462
5465
|
}
|
|
5463
5466
|
),
|
|
5464
|
-
customActions: /* @__PURE__ */ (0,
|
|
5467
|
+
customActions: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Button, { onClick: closeRowDetail, className: "w-full", children: "Close" }),
|
|
5465
5468
|
showButtons: true,
|
|
5466
|
-
children: /* @__PURE__ */ (0,
|
|
5469
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { className: "bg-white max-h-full flex flex-col flex-grow-1", children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(ModalContent2, {}) })
|
|
5467
5470
|
}
|
|
5468
5471
|
);
|
|
5469
5472
|
}
|
|
@@ -5473,7 +5476,7 @@ var import_clsx37 = __toESM(require("clsx"), 1);
|
|
|
5473
5476
|
|
|
5474
5477
|
// src/components/MobileDataGrid/MobileDataGridCard/index.tsx
|
|
5475
5478
|
var import_clsx36 = __toESM(require("clsx"), 1);
|
|
5476
|
-
var
|
|
5479
|
+
var import_jsx_runtime58 = require("react/jsx-runtime");
|
|
5477
5480
|
function MobileDataGridCard({
|
|
5478
5481
|
renderLink,
|
|
5479
5482
|
renderChevron = true,
|
|
@@ -5485,7 +5488,7 @@ function MobileDataGridCard({
|
|
|
5485
5488
|
var _a;
|
|
5486
5489
|
const context = useGridContext();
|
|
5487
5490
|
const { id, testid, visibleColumns, getId, handleRowSelect, openRowDetail } = context;
|
|
5488
|
-
return /* @__PURE__ */ (0,
|
|
5491
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
|
|
5489
5492
|
"li",
|
|
5490
5493
|
{
|
|
5491
5494
|
id: id ? `${id}-card-${getId(data)}` : void 0,
|
|
@@ -5496,16 +5499,16 @@ function MobileDataGridCard({
|
|
|
5496
5499
|
),
|
|
5497
5500
|
onClick: () => openRowDetail(data),
|
|
5498
5501
|
children: [
|
|
5499
|
-
/* @__PURE__ */ (0,
|
|
5500
|
-
/* @__PURE__ */ (0,
|
|
5501
|
-
enableRowSelection && /* @__PURE__ */ (0,
|
|
5502
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(Stack, { sizing: "component", children: [
|
|
5503
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(Stack, { horizontal: true, horizontalMobile: true, items: "center", justify: "between", children: [
|
|
5504
|
+
enableRowSelection && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
5502
5505
|
Stack,
|
|
5503
5506
|
{
|
|
5504
5507
|
sizing: "component",
|
|
5505
5508
|
padding: true,
|
|
5506
5509
|
width: "fit",
|
|
5507
5510
|
onClick: (e) => e.stopPropagation(),
|
|
5508
|
-
children: /* @__PURE__ */ (0,
|
|
5511
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
5509
5512
|
Checkbox,
|
|
5510
5513
|
{
|
|
5511
5514
|
id: id ? `${id}-${getId(data)}-select-checkbox` : void 0,
|
|
@@ -5516,16 +5519,16 @@ function MobileDataGridCard({
|
|
|
5516
5519
|
)
|
|
5517
5520
|
}
|
|
5518
5521
|
),
|
|
5519
|
-
/* @__PURE__ */ (0,
|
|
5522
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
5520
5523
|
Stack,
|
|
5521
5524
|
{
|
|
5522
5525
|
sizing: "component",
|
|
5523
5526
|
padding: true,
|
|
5524
5527
|
onClick: (e) => e.stopPropagation(),
|
|
5525
|
-
children: renderLink ? renderLink(data) : /* @__PURE__ */ (0,
|
|
5528
|
+
children: renderLink ? renderLink(data) : /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Subheader, { children: String((_a = data[context.primaryKey]) != null ? _a : "") })
|
|
5526
5529
|
}
|
|
5527
5530
|
),
|
|
5528
|
-
/* @__PURE__ */ (0,
|
|
5531
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
5529
5532
|
Stack,
|
|
5530
5533
|
{
|
|
5531
5534
|
horizontal: true,
|
|
@@ -5538,18 +5541,18 @@ function MobileDataGridCard({
|
|
|
5538
5541
|
}
|
|
5539
5542
|
)
|
|
5540
5543
|
] }),
|
|
5541
|
-
/* @__PURE__ */ (0,
|
|
5544
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Stack, { sizing: "layout-group", children: visibleColumns.filter((x) => {
|
|
5542
5545
|
var _a2, _b;
|
|
5543
5546
|
return ((_a2 = x.meta) == null ? void 0 : _a2.visible) !== false && !((_b = x.id) == null ? void 0 : _b.startsWith("__"));
|
|
5544
5547
|
}).map(
|
|
5545
5548
|
(column, index) => {
|
|
5546
5549
|
var _a2, _b;
|
|
5547
|
-
return ((_a2 = column.meta) == null ? void 0 : _a2.useCustomRenderer) && column.meta.mobileCell && column.id ? /* @__PURE__ */ (0,
|
|
5550
|
+
return ((_a2 = column.meta) == null ? void 0 : _a2.useCustomRenderer) && column.meta.mobileCell && column.id ? /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
|
|
5548
5551
|
"div",
|
|
5549
5552
|
{
|
|
5550
5553
|
className: "mb-2 grid grid-cols-2 gap-2 px-3 items-center flex-1",
|
|
5551
5554
|
children: [
|
|
5552
|
-
/* @__PURE__ */ (0,
|
|
5555
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
|
|
5553
5556
|
Paragraph,
|
|
5554
5557
|
{
|
|
5555
5558
|
color: "text-secondary-normal",
|
|
@@ -5561,7 +5564,7 @@ function MobileDataGridCard({
|
|
|
5561
5564
|
}
|
|
5562
5565
|
),
|
|
5563
5566
|
" ",
|
|
5564
|
-
/* @__PURE__ */ (0,
|
|
5567
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
5565
5568
|
column.meta.mobileCell,
|
|
5566
5569
|
{
|
|
5567
5570
|
column,
|
|
@@ -5572,7 +5575,7 @@ function MobileDataGridCard({
|
|
|
5572
5575
|
]
|
|
5573
5576
|
},
|
|
5574
5577
|
`${column.id}-${index}`
|
|
5575
|
-
) : /* @__PURE__ */ (0,
|
|
5578
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
5576
5579
|
MobileDataGridColumn,
|
|
5577
5580
|
{
|
|
5578
5581
|
column,
|
|
@@ -5583,14 +5586,14 @@ function MobileDataGridCard({
|
|
|
5583
5586
|
}
|
|
5584
5587
|
) })
|
|
5585
5588
|
] }),
|
|
5586
|
-
renderChevron && /* @__PURE__ */ (0,
|
|
5589
|
+
renderChevron && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Stack, { items: "center", justify: "center", horizontal: true, horizontalMobile: true, children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Icon, { name: "keyboard_arrow_down" }) })
|
|
5587
5590
|
]
|
|
5588
5591
|
}
|
|
5589
5592
|
);
|
|
5590
5593
|
}
|
|
5591
5594
|
|
|
5592
5595
|
// src/components/MobileDataGrid/ColumnList.tsx
|
|
5593
|
-
var
|
|
5596
|
+
var import_jsx_runtime59 = require("react/jsx-runtime");
|
|
5594
5597
|
function ColumnList(props) {
|
|
5595
5598
|
const {
|
|
5596
5599
|
withBorder,
|
|
@@ -5602,14 +5605,14 @@ function ColumnList(props) {
|
|
|
5602
5605
|
} = props;
|
|
5603
5606
|
const ctx = useGridContext();
|
|
5604
5607
|
const { id, testid, data, getId, selectedRowIds } = ctx;
|
|
5605
|
-
return /* @__PURE__ */ (0,
|
|
5608
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
5606
5609
|
"div",
|
|
5607
5610
|
{
|
|
5608
5611
|
className: (0, import_clsx37.default)(
|
|
5609
5612
|
"flex flex-col flex-1 relative overflow-y-auto overflow-x-hidden",
|
|
5610
5613
|
!!Footer && "mb-20"
|
|
5611
5614
|
),
|
|
5612
|
-
children: /* @__PURE__ */ (0,
|
|
5615
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
|
|
5613
5616
|
"ul",
|
|
5614
5617
|
{
|
|
5615
5618
|
id,
|
|
@@ -5622,7 +5625,7 @@ function ColumnList(props) {
|
|
|
5622
5625
|
children: [
|
|
5623
5626
|
data.map((item) => {
|
|
5624
5627
|
const id2 = getId(item);
|
|
5625
|
-
return /* @__PURE__ */ (0,
|
|
5628
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
5626
5629
|
MobileDataGridCard,
|
|
5627
5630
|
{
|
|
5628
5631
|
data: item,
|
|
@@ -5635,7 +5638,7 @@ function ColumnList(props) {
|
|
|
5635
5638
|
id2
|
|
5636
5639
|
);
|
|
5637
5640
|
}),
|
|
5638
|
-
!!Footer && /* @__PURE__ */ (0,
|
|
5641
|
+
!!Footer && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: "fixed left-0 right-0 bottom-0 flex flex-col w-full min-h-20", children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Footer, __spreadValues({}, ctx)) })
|
|
5639
5642
|
]
|
|
5640
5643
|
}
|
|
5641
5644
|
)
|
|
@@ -5644,7 +5647,7 @@ function ColumnList(props) {
|
|
|
5644
5647
|
}
|
|
5645
5648
|
|
|
5646
5649
|
// src/components/MobileDataGrid/index.tsx
|
|
5647
|
-
var
|
|
5650
|
+
var import_jsx_runtime60 = require("react/jsx-runtime");
|
|
5648
5651
|
function MobileDataGrid(props) {
|
|
5649
5652
|
const {
|
|
5650
5653
|
columns,
|
|
@@ -5666,7 +5669,7 @@ function MobileDataGrid(props) {
|
|
|
5666
5669
|
rowActions,
|
|
5667
5670
|
rounded
|
|
5668
5671
|
} = props;
|
|
5669
|
-
return /* @__PURE__ */ (0,
|
|
5672
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(
|
|
5670
5673
|
GridContextProvider,
|
|
5671
5674
|
{
|
|
5672
5675
|
initialColumns: columns,
|
|
@@ -5678,7 +5681,7 @@ function MobileDataGrid(props) {
|
|
|
5678
5681
|
numberOfColumnsToShow,
|
|
5679
5682
|
primaryKey,
|
|
5680
5683
|
children: [
|
|
5681
|
-
/* @__PURE__ */ (0,
|
|
5684
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(
|
|
5682
5685
|
Stack,
|
|
5683
5686
|
{
|
|
5684
5687
|
height: "full",
|
|
@@ -5686,7 +5689,7 @@ function MobileDataGrid(props) {
|
|
|
5686
5689
|
overflowX: "hidden",
|
|
5687
5690
|
overflowY: "hidden",
|
|
5688
5691
|
children: [
|
|
5689
|
-
!hideHeader && /* @__PURE__ */ (0,
|
|
5692
|
+
!hideHeader && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
5690
5693
|
MobileDataGridHeader,
|
|
5691
5694
|
{
|
|
5692
5695
|
header,
|
|
@@ -5694,7 +5697,7 @@ function MobileDataGrid(props) {
|
|
|
5694
5697
|
enableRowSelection
|
|
5695
5698
|
}
|
|
5696
5699
|
),
|
|
5697
|
-
/* @__PURE__ */ (0,
|
|
5700
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
5698
5701
|
ColumnList,
|
|
5699
5702
|
{
|
|
5700
5703
|
withBorder,
|
|
@@ -5708,7 +5711,7 @@ function MobileDataGrid(props) {
|
|
|
5708
5711
|
]
|
|
5709
5712
|
}
|
|
5710
5713
|
),
|
|
5711
|
-
/* @__PURE__ */ (0,
|
|
5714
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(RowDetailModalProvider, {})
|
|
5712
5715
|
]
|
|
5713
5716
|
}
|
|
5714
5717
|
);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
MobileDataGrid
|
|
3
|
-
} from "../../chunk-
|
|
4
|
-
import "../../chunk-M7INAUAJ.js";
|
|
3
|
+
} from "../../chunk-TQIKP534.js";
|
|
5
4
|
import "../../chunk-7AXHAWJX.js";
|
|
6
5
|
import "../../chunk-P3MIP2FD.js";
|
|
6
|
+
import "../../chunk-M7INAUAJ.js";
|
|
7
7
|
import "../../chunk-3HBYDOYE.js";
|
|
8
8
|
import "../../chunk-IMOIZFJZ.js";
|
|
9
9
|
import "../../chunk-MBZ55T2D.js";
|
|
@@ -23,6 +23,7 @@ import "../../chunk-VJVY6NPF.js";
|
|
|
23
23
|
import "../../chunk-EWGHVZL5.js";
|
|
24
24
|
import "../../chunk-DCLNAUC4.js";
|
|
25
25
|
import "../../chunk-PQWWVBSR.js";
|
|
26
|
+
import "../../chunk-ESCNCQGI.js";
|
|
26
27
|
import "../../chunk-AT4AWD6B.js";
|
|
27
28
|
import "../../chunk-J5V2JRIK.js";
|
|
28
29
|
import "../../chunk-TYAQWVIM.js";
|
|
@@ -32,13 +33,13 @@ import "../../chunk-AG43RS4Q.js";
|
|
|
32
33
|
import "../../chunk-XM7IQHBU.js";
|
|
33
34
|
import "../../chunk-FRHPFACM.js";
|
|
34
35
|
import "../../chunk-T36HX6QY.js";
|
|
35
|
-
import "../../chunk-
|
|
36
|
+
import "../../chunk-IFHMGICR.js";
|
|
36
37
|
import "../../chunk-SBRRNFOP.js";
|
|
37
38
|
import "../../chunk-Y2GK27RX.js";
|
|
38
39
|
import "../../chunk-EU73QPW7.js";
|
|
39
40
|
import "../../chunk-QVWYTQKL.js";
|
|
40
41
|
import "../../chunk-NO5BIKWS.js";
|
|
41
|
-
import "../../chunk-
|
|
42
|
+
import "../../chunk-CANJ2YPW.js";
|
|
42
43
|
import "../../chunk-V47RTW7E.js";
|
|
43
44
|
import "../../chunk-22VBZWJG.js";
|
|
44
45
|
import "../../chunk-NVOZAVEX.js";
|
|
@@ -1,10 +1,7 @@
|
|
|
1
|
+
import {
|
|
2
|
+
SkeletonParagraph
|
|
3
|
+
} from "../chunk-ESCNCQGI.js";
|
|
1
4
|
import "../chunk-ORMEWXMH.js";
|
|
2
|
-
|
|
3
|
-
// src/components/SkeletonParagraph.tsx
|
|
4
|
-
import { jsx } from "react/jsx-runtime";
|
|
5
|
-
function SkeletonParagraph() {
|
|
6
|
-
return /* @__PURE__ */ jsx("div", { className: "h-[24px] bg-gradient-to-r from-neutral-100 to-[#f7f7f7] w-full rounded-xs min-w-32 " });
|
|
7
|
-
}
|
|
8
5
|
export {
|
|
9
6
|
SkeletonParagraph
|
|
10
7
|
};
|
|
@@ -83,6 +83,7 @@ __export(components_exports, {
|
|
|
83
83
|
Search: () => Search,
|
|
84
84
|
Select: () => Select,
|
|
85
85
|
SimpleTable: () => SimpleTable,
|
|
86
|
+
SkeletonParagraph: () => SkeletonParagraph,
|
|
86
87
|
Subheader: () => Subheader,
|
|
87
88
|
Tooltip: () => Tooltip
|
|
88
89
|
});
|
|
@@ -6621,7 +6622,7 @@ function CompactImagesPreview(props) {
|
|
|
6621
6622
|
onClick: onMainImageClick
|
|
6622
6623
|
}
|
|
6623
6624
|
),
|
|
6624
|
-
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "flex flex-row flex-wrap items-center gap-3", children: sources.map((source, index) => /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
6625
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "flex flex-row flex-wrap items-center gap-3", children: sources.slice(0, 4).map((source, index) => /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
6625
6626
|
"button",
|
|
6626
6627
|
{
|
|
6627
6628
|
onClick: (e) => {
|
|
@@ -7036,7 +7037,7 @@ function ListGroup({
|
|
|
7036
7037
|
]
|
|
7037
7038
|
}
|
|
7038
7039
|
),
|
|
7039
|
-
isOpen && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Stack, { sizing: "layout",
|
|
7040
|
+
isOpen && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Stack, { sizing: "layout", paddingTop: true, children })
|
|
7040
7041
|
] }) });
|
|
7041
7042
|
}
|
|
7042
7043
|
|
|
@@ -7185,6 +7186,12 @@ var Pagination = ({
|
|
|
7185
7186
|
);
|
|
7186
7187
|
};
|
|
7187
7188
|
Pagination.displayName = "Pagination";
|
|
7189
|
+
|
|
7190
|
+
// src/components/SkeletonParagraph.tsx
|
|
7191
|
+
var import_jsx_runtime60 = require("react/jsx-runtime");
|
|
7192
|
+
function SkeletonParagraph() {
|
|
7193
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("div", { className: "h-[24px] bg-gradient-to-r from-neutral-100 to-[#f7f7f7] w-full rounded-xs min-w-32 " });
|
|
7194
|
+
}
|
|
7188
7195
|
// Annotate the CommonJS export names for ESM import in node:
|
|
7189
7196
|
0 && (module.exports = {
|
|
7190
7197
|
Accordion,
|
|
@@ -7211,6 +7218,7 @@ Pagination.displayName = "Pagination";
|
|
|
7211
7218
|
Search,
|
|
7212
7219
|
Select,
|
|
7213
7220
|
SimpleTable,
|
|
7221
|
+
SkeletonParagraph,
|
|
7214
7222
|
Subheader,
|
|
7215
7223
|
Tooltip
|
|
7216
7224
|
});
|
package/dist/components/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DataGrid,
|
|
3
3
|
MobileDataGrid
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-M7INAUAJ.js";
|
|
4
|
+
} from "../chunk-TQIKP534.js";
|
|
6
5
|
import "../chunk-7AXHAWJX.js";
|
|
7
6
|
import "../chunk-P3MIP2FD.js";
|
|
7
|
+
import "../chunk-M7INAUAJ.js";
|
|
8
8
|
import {
|
|
9
9
|
PDFViewer
|
|
10
10
|
} from "../chunk-3HBYDOYE.js";
|
|
@@ -32,6 +32,9 @@ import {
|
|
|
32
32
|
import {
|
|
33
33
|
SimpleTable
|
|
34
34
|
} from "../chunk-PQWWVBSR.js";
|
|
35
|
+
import {
|
|
36
|
+
SkeletonParagraph
|
|
37
|
+
} from "../chunk-ESCNCQGI.js";
|
|
35
38
|
import "../chunk-AT4AWD6B.js";
|
|
36
39
|
import {
|
|
37
40
|
Select
|
|
@@ -47,7 +50,7 @@ import "../chunk-FRHPFACM.js";
|
|
|
47
50
|
import "../chunk-T36HX6QY.js";
|
|
48
51
|
import {
|
|
49
52
|
ListGroup
|
|
50
|
-
} from "../chunk-
|
|
53
|
+
} from "../chunk-IFHMGICR.js";
|
|
51
54
|
import "../chunk-SBRRNFOP.js";
|
|
52
55
|
import "../chunk-Y2GK27RX.js";
|
|
53
56
|
import "../chunk-EU73QPW7.js";
|
|
@@ -57,7 +60,7 @@ import {
|
|
|
57
60
|
} from "../chunk-NO5BIKWS.js";
|
|
58
61
|
import {
|
|
59
62
|
CompactImagesPreview
|
|
60
|
-
} from "../chunk-
|
|
63
|
+
} from "../chunk-CANJ2YPW.js";
|
|
61
64
|
import {
|
|
62
65
|
DataCellHeader,
|
|
63
66
|
DataGridCell,
|
|
@@ -131,6 +134,7 @@ export {
|
|
|
131
134
|
Search,
|
|
132
135
|
Select,
|
|
133
136
|
SimpleTable,
|
|
137
|
+
SkeletonParagraph,
|
|
134
138
|
Subheader,
|
|
135
139
|
Tooltip
|
|
136
140
|
};
|
package/package.json
CHANGED
|
@@ -97,7 +97,7 @@ export function CompactImagesPreview(props: CompactImagesPreviewProps) {
|
|
|
97
97
|
onClick={onMainImageClick}
|
|
98
98
|
/>
|
|
99
99
|
<div className="flex flex-row flex-wrap items-center gap-3">
|
|
100
|
-
{sources.map((source, index) => (
|
|
100
|
+
{sources.slice(0, 4).map((source, index) => (
|
|
101
101
|
<button
|
|
102
102
|
key={`compact-image-${source.uri}-${index}`}
|
|
103
103
|
onClick={(e) => {
|
package/src/components/index.ts
CHANGED