@nubitio/crud 0.5.6 → 0.5.8
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/index.cjs +8 -8
- package/dist/index.mjs +8 -8
- package/dist/style.css +14 -10
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -4332,6 +4332,14 @@ const NativeDataGridView = (0, react.forwardRef)((options, ref) => {
|
|
|
4332
4332
|
className: "nb-datagrid__hscroll-inner",
|
|
4333
4333
|
style: { width: layoutWidth }
|
|
4334
4334
|
})
|
|
4335
|
+
}),
|
|
4336
|
+
isGridLoading && rows.length > 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
4337
|
+
className: "nb-datagrid__loading-overlay",
|
|
4338
|
+
"aria-live": "polite",
|
|
4339
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
4340
|
+
className: "nb-datagrid__loading-card",
|
|
4341
|
+
children: loadingMessage || t("grid.loading")
|
|
4342
|
+
})
|
|
4335
4343
|
})
|
|
4336
4344
|
]
|
|
4337
4345
|
}),
|
|
@@ -4474,14 +4482,6 @@ const NativeDataGridView = (0, react.forwardRef)((options, ref) => {
|
|
|
4474
4482
|
onCancel: () => setConfirmRow(null),
|
|
4475
4483
|
onConfirm: confirmDelete
|
|
4476
4484
|
}),
|
|
4477
|
-
isGridLoading && rows.length > 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
4478
|
-
className: "nb-datagrid__loading-overlay",
|
|
4479
|
-
"aria-live": "polite",
|
|
4480
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
4481
|
-
className: "nb-datagrid__loading-card",
|
|
4482
|
-
children: loadingMessage || t("grid.loading")
|
|
4483
|
-
})
|
|
4484
|
-
}),
|
|
4485
4485
|
openRowMenu && (0, react_dom.createPortal)(isMobile ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
4486
4486
|
className: "nb-datagrid__sheet-root",
|
|
4487
4487
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
package/dist/index.mjs
CHANGED
|
@@ -4308,6 +4308,14 @@ const NativeDataGridView = forwardRef((options, ref) => {
|
|
|
4308
4308
|
className: "nb-datagrid__hscroll-inner",
|
|
4309
4309
|
style: { width: layoutWidth }
|
|
4310
4310
|
})
|
|
4311
|
+
}),
|
|
4312
|
+
isGridLoading && rows.length > 0 && /* @__PURE__ */ jsx("div", {
|
|
4313
|
+
className: "nb-datagrid__loading-overlay",
|
|
4314
|
+
"aria-live": "polite",
|
|
4315
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
4316
|
+
className: "nb-datagrid__loading-card",
|
|
4317
|
+
children: loadingMessage || t("grid.loading")
|
|
4318
|
+
})
|
|
4311
4319
|
})
|
|
4312
4320
|
]
|
|
4313
4321
|
}),
|
|
@@ -4450,14 +4458,6 @@ const NativeDataGridView = forwardRef((options, ref) => {
|
|
|
4450
4458
|
onCancel: () => setConfirmRow(null),
|
|
4451
4459
|
onConfirm: confirmDelete
|
|
4452
4460
|
}),
|
|
4453
|
-
isGridLoading && rows.length > 0 && /* @__PURE__ */ jsx("div", {
|
|
4454
|
-
className: "nb-datagrid__loading-overlay",
|
|
4455
|
-
"aria-live": "polite",
|
|
4456
|
-
children: /* @__PURE__ */ jsx("div", {
|
|
4457
|
-
className: "nb-datagrid__loading-card",
|
|
4458
|
-
children: loadingMessage || t("grid.loading")
|
|
4459
|
-
})
|
|
4460
|
-
}),
|
|
4461
4461
|
openRowMenu && createPortal(isMobile ? /* @__PURE__ */ jsxs("div", {
|
|
4462
4462
|
className: "nb-datagrid__sheet-root",
|
|
4463
4463
|
children: [/* @__PURE__ */ jsx("button", {
|
package/dist/style.css
CHANGED
|
@@ -20,7 +20,6 @@
|
|
|
20
20
|
flex: 1 1 auto;
|
|
21
21
|
min-height: 0;
|
|
22
22
|
overflow: hidden;
|
|
23
|
-
position: relative;
|
|
24
23
|
}
|
|
25
24
|
|
|
26
25
|
.view-wrapper.view-wrapper-datagrid-list {
|
|
@@ -415,9 +414,13 @@
|
|
|
415
414
|
.nb-datagrid__row:hover td {
|
|
416
415
|
background: var(--grid-row-hover-bg, var(--surface-2));
|
|
417
416
|
}
|
|
417
|
+
.nb-datagrid__row:focus-visible {
|
|
418
|
+
outline: 2px solid var(--focus-ring-color);
|
|
419
|
+
outline-offset: -2px;
|
|
420
|
+
}
|
|
418
421
|
.nb-datagrid__row:focus-visible td {
|
|
419
422
|
background: color-mix(in srgb, var(--accent-color) 7%, var(--surface-1));
|
|
420
|
-
box-shadow:
|
|
423
|
+
box-shadow: none;
|
|
421
424
|
}
|
|
422
425
|
.nb-datagrid__row.nb-datagrid__row--selected td {
|
|
423
426
|
background: var(--grid-row-selected-bg, var(--surface-2));
|
|
@@ -1234,7 +1237,7 @@ html[data-density=compact] .nb-datagrid .nb-badge {
|
|
|
1234
1237
|
inset: 0;
|
|
1235
1238
|
justify-content: center;
|
|
1236
1239
|
position: absolute;
|
|
1237
|
-
z-index:
|
|
1240
|
+
z-index: 10;
|
|
1238
1241
|
}
|
|
1239
1242
|
|
|
1240
1243
|
.nb-datagrid__loading-card {
|
|
@@ -3291,6 +3294,10 @@ html[data-density=compact] .nb-crud-page-shell__footer {
|
|
|
3291
3294
|
gap: var(--space-1);
|
|
3292
3295
|
padding: var(--space-2) var(--space-3);
|
|
3293
3296
|
}
|
|
3297
|
+
.nb-audit-trail-drawer .nb-drawer__body {
|
|
3298
|
+
padding: var(--space-4) var(--space-5) var(--space-6);
|
|
3299
|
+
}
|
|
3300
|
+
|
|
3294
3301
|
.nb-audit-trail {
|
|
3295
3302
|
display: flex;
|
|
3296
3303
|
flex-direction: column;
|
|
@@ -3342,12 +3349,9 @@ html[data-density=compact] .nb-crud-page-shell__footer {
|
|
|
3342
3349
|
}
|
|
3343
3350
|
|
|
3344
3351
|
.nb-audit-trail__change {
|
|
3345
|
-
background: var(--surface-2);
|
|
3346
|
-
border: 1px solid var(--border-color);
|
|
3347
|
-
border-radius: var(--radius-md, 6px);
|
|
3348
3352
|
display: grid;
|
|
3349
3353
|
gap: var(--space-1);
|
|
3350
|
-
padding:
|
|
3354
|
+
padding: 0;
|
|
3351
3355
|
}
|
|
3352
3356
|
|
|
3353
3357
|
.nb-audit-trail__field {
|
|
@@ -3372,13 +3376,13 @@ html[data-density=compact] .nb-crud-page-shell__footer {
|
|
|
3372
3376
|
}
|
|
3373
3377
|
|
|
3374
3378
|
.nb-audit-trail__value--before {
|
|
3375
|
-
color: var(--danger-color);
|
|
3379
|
+
color: var(--status-danger-text, var(--error-color));
|
|
3376
3380
|
text-decoration: line-through;
|
|
3377
|
-
text-decoration-color: color-mix(in srgb, var(--
|
|
3381
|
+
text-decoration-color: color-mix(in srgb, var(--error-color) 55%, transparent);
|
|
3378
3382
|
}
|
|
3379
3383
|
|
|
3380
3384
|
.nb-audit-trail__value--after {
|
|
3381
|
-
color: var(--success-color);
|
|
3385
|
+
color: var(--status-success-text, var(--success-color));
|
|
3382
3386
|
font-weight: 500;
|
|
3383
3387
|
}
|
|
3384
3388
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nubitio/crud",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.8",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Declarative CRUD engine with field DSL, forms, datagrids, RBAC, conditional logic and pluggable adapters (Hydra/REST).",
|
|
6
6
|
"license": "MIT",
|
|
@@ -56,8 +56,8 @@
|
|
|
56
56
|
"react-dom": "^19.0.0",
|
|
57
57
|
"react-i18next": "^14.0.0",
|
|
58
58
|
"react-router-dom": "^6.0.0",
|
|
59
|
-
"@nubitio/core": "^0.5.
|
|
60
|
-
"@nubitio/ui": "^0.5.
|
|
59
|
+
"@nubitio/core": "^0.5.8",
|
|
60
|
+
"@nubitio/ui": "^0.5.8"
|
|
61
61
|
},
|
|
62
62
|
"dependencies": {
|
|
63
63
|
"react-dropzone": "^15.0.0"
|