@almadar/ui 4.7.0 → 4.8.0
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/avl/index.cjs +2 -6
- package/dist/avl/index.js +2 -6
- package/dist/components/index.cjs +2 -6
- package/dist/components/index.js +2 -6
- package/dist/components/molecules/DataGrid.d.ts +1 -3
- package/dist/components/molecules/DataList.d.ts +1 -3
- package/dist/providers/index.cjs +2 -6
- package/dist/providers/index.js +2 -6
- package/dist/runtime/index.cjs +2 -6
- package/dist/runtime/index.js +2 -6
- package/package.json +1 -1
package/dist/avl/index.cjs
CHANGED
|
@@ -21942,8 +21942,7 @@ function formatValue(value, format) {
|
|
|
21942
21942
|
}
|
|
21943
21943
|
function DataGrid({
|
|
21944
21944
|
entity,
|
|
21945
|
-
fields
|
|
21946
|
-
columns: columnsProp,
|
|
21945
|
+
fields,
|
|
21947
21946
|
itemActions,
|
|
21948
21947
|
cols,
|
|
21949
21948
|
gap = "md",
|
|
@@ -21964,7 +21963,6 @@ function DataGrid({
|
|
|
21964
21963
|
const { t } = useTranslate();
|
|
21965
21964
|
const [selectedIds, setSelectedIds] = React127.useState(/* @__PURE__ */ new Set());
|
|
21966
21965
|
const [visibleCount, setVisibleCount] = React127.useState(pageSize || Infinity);
|
|
21967
|
-
const fields = fieldsProp ?? columnsProp ?? [];
|
|
21968
21966
|
const allData = Array.isArray(entity) ? entity : entity ? [entity] : [];
|
|
21969
21967
|
const data = pageSize > 0 ? allData.slice(0, visibleCount) : allData;
|
|
21970
21968
|
const hasMoreLocal = pageSize > 0 && visibleCount < allData.length;
|
|
@@ -22307,8 +22305,7 @@ function groupData(items, field) {
|
|
|
22307
22305
|
}
|
|
22308
22306
|
function DataList({
|
|
22309
22307
|
entity,
|
|
22310
|
-
fields
|
|
22311
|
-
columns: columnsProp,
|
|
22308
|
+
fields,
|
|
22312
22309
|
itemActions,
|
|
22313
22310
|
gap = "none",
|
|
22314
22311
|
variant = "default",
|
|
@@ -22337,7 +22334,6 @@ function DataList({
|
|
|
22337
22334
|
const eventBus = useEventBus();
|
|
22338
22335
|
const { t } = useTranslate();
|
|
22339
22336
|
const [visibleCount, setVisibleCount] = React127__namespace.default.useState(pageSize || Infinity);
|
|
22340
|
-
const fields = fieldsProp ?? columnsProp ?? [];
|
|
22341
22337
|
const allData = Array.isArray(entity) ? entity : entity ? [entity] : [];
|
|
22342
22338
|
const data = pageSize > 0 ? allData.slice(0, visibleCount) : allData;
|
|
22343
22339
|
const hasMoreLocal = pageSize > 0 && visibleCount < allData.length;
|
package/dist/avl/index.js
CHANGED
|
@@ -21896,8 +21896,7 @@ function formatValue(value, format) {
|
|
|
21896
21896
|
}
|
|
21897
21897
|
function DataGrid({
|
|
21898
21898
|
entity,
|
|
21899
|
-
fields
|
|
21900
|
-
columns: columnsProp,
|
|
21899
|
+
fields,
|
|
21901
21900
|
itemActions,
|
|
21902
21901
|
cols,
|
|
21903
21902
|
gap = "md",
|
|
@@ -21918,7 +21917,6 @@ function DataGrid({
|
|
|
21918
21917
|
const { t } = useTranslate();
|
|
21919
21918
|
const [selectedIds, setSelectedIds] = useState(/* @__PURE__ */ new Set());
|
|
21920
21919
|
const [visibleCount, setVisibleCount] = useState(pageSize || Infinity);
|
|
21921
|
-
const fields = fieldsProp ?? columnsProp ?? [];
|
|
21922
21920
|
const allData = Array.isArray(entity) ? entity : entity ? [entity] : [];
|
|
21923
21921
|
const data = pageSize > 0 ? allData.slice(0, visibleCount) : allData;
|
|
21924
21922
|
const hasMoreLocal = pageSize > 0 && visibleCount < allData.length;
|
|
@@ -22261,8 +22259,7 @@ function groupData(items, field) {
|
|
|
22261
22259
|
}
|
|
22262
22260
|
function DataList({
|
|
22263
22261
|
entity,
|
|
22264
|
-
fields
|
|
22265
|
-
columns: columnsProp,
|
|
22262
|
+
fields,
|
|
22266
22263
|
itemActions,
|
|
22267
22264
|
gap = "none",
|
|
22268
22265
|
variant = "default",
|
|
@@ -22291,7 +22288,6 @@ function DataList({
|
|
|
22291
22288
|
const eventBus = useEventBus();
|
|
22292
22289
|
const { t } = useTranslate();
|
|
22293
22290
|
const [visibleCount, setVisibleCount] = React127__default.useState(pageSize || Infinity);
|
|
22294
|
-
const fields = fieldsProp ?? columnsProp ?? [];
|
|
22295
22291
|
const allData = Array.isArray(entity) ? entity : entity ? [entity] : [];
|
|
22296
22292
|
const data = pageSize > 0 ? allData.slice(0, visibleCount) : allData;
|
|
22297
22293
|
const hasMoreLocal = pageSize > 0 && visibleCount < allData.length;
|
|
@@ -17335,8 +17335,7 @@ function formatValue(value, format) {
|
|
|
17335
17335
|
}
|
|
17336
17336
|
function DataGrid({
|
|
17337
17337
|
entity,
|
|
17338
|
-
fields
|
|
17339
|
-
columns: columnsProp,
|
|
17338
|
+
fields,
|
|
17340
17339
|
itemActions,
|
|
17341
17340
|
cols,
|
|
17342
17341
|
gap = "md",
|
|
@@ -17357,7 +17356,6 @@ function DataGrid({
|
|
|
17357
17356
|
const { t } = useTranslate();
|
|
17358
17357
|
const [selectedIds, setSelectedIds] = React111.useState(/* @__PURE__ */ new Set());
|
|
17359
17358
|
const [visibleCount, setVisibleCount] = React111.useState(pageSize || Infinity);
|
|
17360
|
-
const fields = fieldsProp ?? columnsProp ?? [];
|
|
17361
17359
|
const allData = Array.isArray(entity) ? entity : entity ? [entity] : [];
|
|
17362
17360
|
const data = pageSize > 0 ? allData.slice(0, visibleCount) : allData;
|
|
17363
17361
|
const hasMoreLocal = pageSize > 0 && visibleCount < allData.length;
|
|
@@ -17700,8 +17698,7 @@ function groupData(items, field) {
|
|
|
17700
17698
|
}
|
|
17701
17699
|
function DataList({
|
|
17702
17700
|
entity,
|
|
17703
|
-
fields
|
|
17704
|
-
columns: columnsProp,
|
|
17701
|
+
fields,
|
|
17705
17702
|
itemActions,
|
|
17706
17703
|
gap = "none",
|
|
17707
17704
|
variant = "default",
|
|
@@ -17730,7 +17727,6 @@ function DataList({
|
|
|
17730
17727
|
const eventBus = useEventBus();
|
|
17731
17728
|
const { t } = useTranslate();
|
|
17732
17729
|
const [visibleCount, setVisibleCount] = React111__namespace.default.useState(pageSize || Infinity);
|
|
17733
|
-
const fields = fieldsProp ?? columnsProp ?? [];
|
|
17734
17730
|
const allData = Array.isArray(entity) ? entity : entity ? [entity] : [];
|
|
17735
17731
|
const data = pageSize > 0 ? allData.slice(0, visibleCount) : allData;
|
|
17736
17732
|
const hasMoreLocal = pageSize > 0 && visibleCount < allData.length;
|
package/dist/components/index.js
CHANGED
|
@@ -17290,8 +17290,7 @@ function formatValue(value, format) {
|
|
|
17290
17290
|
}
|
|
17291
17291
|
function DataGrid({
|
|
17292
17292
|
entity,
|
|
17293
|
-
fields
|
|
17294
|
-
columns: columnsProp,
|
|
17293
|
+
fields,
|
|
17295
17294
|
itemActions,
|
|
17296
17295
|
cols,
|
|
17297
17296
|
gap = "md",
|
|
@@ -17312,7 +17311,6 @@ function DataGrid({
|
|
|
17312
17311
|
const { t } = useTranslate();
|
|
17313
17312
|
const [selectedIds, setSelectedIds] = useState(/* @__PURE__ */ new Set());
|
|
17314
17313
|
const [visibleCount, setVisibleCount] = useState(pageSize || Infinity);
|
|
17315
|
-
const fields = fieldsProp ?? columnsProp ?? [];
|
|
17316
17314
|
const allData = Array.isArray(entity) ? entity : entity ? [entity] : [];
|
|
17317
17315
|
const data = pageSize > 0 ? allData.slice(0, visibleCount) : allData;
|
|
17318
17316
|
const hasMoreLocal = pageSize > 0 && visibleCount < allData.length;
|
|
@@ -17655,8 +17653,7 @@ function groupData(items, field) {
|
|
|
17655
17653
|
}
|
|
17656
17654
|
function DataList({
|
|
17657
17655
|
entity,
|
|
17658
|
-
fields
|
|
17659
|
-
columns: columnsProp,
|
|
17656
|
+
fields,
|
|
17660
17657
|
itemActions,
|
|
17661
17658
|
gap = "none",
|
|
17662
17659
|
variant = "default",
|
|
@@ -17685,7 +17682,6 @@ function DataList({
|
|
|
17685
17682
|
const eventBus = useEventBus();
|
|
17686
17683
|
const { t } = useTranslate();
|
|
17687
17684
|
const [visibleCount, setVisibleCount] = React111__default.useState(pageSize || Infinity);
|
|
17688
|
-
const fields = fieldsProp ?? columnsProp ?? [];
|
|
17689
17685
|
const allData = Array.isArray(entity) ? entity : entity ? [entity] : [];
|
|
17690
17686
|
const data = pageSize > 0 ? allData.slice(0, visibleCount) : allData;
|
|
17691
17687
|
const hasMoreLocal = pageSize > 0 && visibleCount < allData.length;
|
|
@@ -57,8 +57,6 @@ export interface DataGridProps<T extends EntityRow = EntityRow> {
|
|
|
57
57
|
entity: T | readonly T[];
|
|
58
58
|
/** Field definitions for rendering each card */
|
|
59
59
|
fields: readonly DataGridField[];
|
|
60
|
-
/** Alias for fields (compiler generates `columns` for field definitions) */
|
|
61
|
-
columns?: readonly DataGridField[];
|
|
62
60
|
/** Per-item action buttons */
|
|
63
61
|
itemActions?: readonly DataGridItemAction[];
|
|
64
62
|
/** Number of columns (uses auto-fit if omitted) */
|
|
@@ -98,7 +96,7 @@ export interface DataGridProps<T extends EntityRow = EntityRow> {
|
|
|
98
96
|
/** Max items to show before "Show More" button. Defaults to 0 (disabled). */
|
|
99
97
|
pageSize?: number;
|
|
100
98
|
}
|
|
101
|
-
export declare function DataGrid<T extends EntityRow = EntityRow>({ entity, fields
|
|
99
|
+
export declare function DataGrid<T extends EntityRow = EntityRow>({ entity, fields, itemActions, cols, gap, minCardWidth, className, isLoading, error, imageField, selectable, selectionEvent, infiniteScroll, loadMoreEvent, hasMore, children, pageSize, }: DataGridProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
102
100
|
export declare namespace DataGrid {
|
|
103
101
|
var displayName: string;
|
|
104
102
|
}
|
|
@@ -47,8 +47,6 @@ export interface DataListProps<T extends EntityRow = EntityRow> {
|
|
|
47
47
|
entity: T | readonly T[];
|
|
48
48
|
/** Field definitions for rendering each row */
|
|
49
49
|
fields: readonly DataListField[];
|
|
50
|
-
/** Alias for fields (compiler may generate `columns` for field definitions) */
|
|
51
|
-
columns?: readonly DataListField[];
|
|
52
50
|
/** Per-item action buttons */
|
|
53
51
|
itemActions?: readonly DataListItemAction[];
|
|
54
52
|
/** Gap between rows */
|
|
@@ -112,7 +110,7 @@ export interface DataListProps<T extends EntityRow = EntityRow> {
|
|
|
112
110
|
/** Max items to show before "Show More" button. Defaults to 5. Set to 0 to disable. */
|
|
113
111
|
pageSize?: number;
|
|
114
112
|
}
|
|
115
|
-
export declare function DataList<T extends EntityRow = EntityRow>({ entity, fields
|
|
113
|
+
export declare function DataList<T extends EntityRow = EntityRow>({ entity, fields, itemActions, gap, variant, groupBy, senderField, currentUser, className, isLoading, error, reorderable: _reorderable, reorderEvent: _reorderEvent, swipeLeftEvent: _swipeLeftEvent, swipeLeftActions: _swipeLeftActions, swipeRightEvent: _swipeRightEvent, swipeRightActions: _swipeRightActions, longPressEvent: _longPressEvent, infiniteScroll, loadMoreEvent, hasMore, children, pageSize, }: DataListProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
116
114
|
export declare namespace DataList {
|
|
117
115
|
var displayName: string;
|
|
118
116
|
}
|
package/dist/providers/index.cjs
CHANGED
|
@@ -18651,8 +18651,7 @@ function formatValue(value, format) {
|
|
|
18651
18651
|
}
|
|
18652
18652
|
function DataGrid({
|
|
18653
18653
|
entity,
|
|
18654
|
-
fields
|
|
18655
|
-
columns: columnsProp,
|
|
18654
|
+
fields,
|
|
18656
18655
|
itemActions,
|
|
18657
18656
|
cols,
|
|
18658
18657
|
gap = "md",
|
|
@@ -18673,7 +18672,6 @@ function DataGrid({
|
|
|
18673
18672
|
const { t } = useTranslate();
|
|
18674
18673
|
const [selectedIds, setSelectedIds] = React116.useState(/* @__PURE__ */ new Set());
|
|
18675
18674
|
const [visibleCount, setVisibleCount] = React116.useState(pageSize || Infinity);
|
|
18676
|
-
const fields = fieldsProp ?? columnsProp ?? [];
|
|
18677
18675
|
const allData = Array.isArray(entity) ? entity : entity ? [entity] : [];
|
|
18678
18676
|
const data = pageSize > 0 ? allData.slice(0, visibleCount) : allData;
|
|
18679
18677
|
const hasMoreLocal = pageSize > 0 && visibleCount < allData.length;
|
|
@@ -19016,8 +19014,7 @@ function groupData(items, field) {
|
|
|
19016
19014
|
}
|
|
19017
19015
|
function DataList({
|
|
19018
19016
|
entity,
|
|
19019
|
-
fields
|
|
19020
|
-
columns: columnsProp,
|
|
19017
|
+
fields,
|
|
19021
19018
|
itemActions,
|
|
19022
19019
|
gap = "none",
|
|
19023
19020
|
variant = "default",
|
|
@@ -19046,7 +19043,6 @@ function DataList({
|
|
|
19046
19043
|
const eventBus = useEventBus();
|
|
19047
19044
|
const { t } = useTranslate();
|
|
19048
19045
|
const [visibleCount, setVisibleCount] = React116__namespace.default.useState(pageSize || Infinity);
|
|
19049
|
-
const fields = fieldsProp ?? columnsProp ?? [];
|
|
19050
19046
|
const allData = Array.isArray(entity) ? entity : entity ? [entity] : [];
|
|
19051
19047
|
const data = pageSize > 0 ? allData.slice(0, visibleCount) : allData;
|
|
19052
19048
|
const hasMoreLocal = pageSize > 0 && visibleCount < allData.length;
|
package/dist/providers/index.js
CHANGED
|
@@ -18606,8 +18606,7 @@ function formatValue(value, format) {
|
|
|
18606
18606
|
}
|
|
18607
18607
|
function DataGrid({
|
|
18608
18608
|
entity,
|
|
18609
|
-
fields
|
|
18610
|
-
columns: columnsProp,
|
|
18609
|
+
fields,
|
|
18611
18610
|
itemActions,
|
|
18612
18611
|
cols,
|
|
18613
18612
|
gap = "md",
|
|
@@ -18628,7 +18627,6 @@ function DataGrid({
|
|
|
18628
18627
|
const { t } = useTranslate();
|
|
18629
18628
|
const [selectedIds, setSelectedIds] = useState(/* @__PURE__ */ new Set());
|
|
18630
18629
|
const [visibleCount, setVisibleCount] = useState(pageSize || Infinity);
|
|
18631
|
-
const fields = fieldsProp ?? columnsProp ?? [];
|
|
18632
18630
|
const allData = Array.isArray(entity) ? entity : entity ? [entity] : [];
|
|
18633
18631
|
const data = pageSize > 0 ? allData.slice(0, visibleCount) : allData;
|
|
18634
18632
|
const hasMoreLocal = pageSize > 0 && visibleCount < allData.length;
|
|
@@ -18971,8 +18969,7 @@ function groupData(items, field) {
|
|
|
18971
18969
|
}
|
|
18972
18970
|
function DataList({
|
|
18973
18971
|
entity,
|
|
18974
|
-
fields
|
|
18975
|
-
columns: columnsProp,
|
|
18972
|
+
fields,
|
|
18976
18973
|
itemActions,
|
|
18977
18974
|
gap = "none",
|
|
18978
18975
|
variant = "default",
|
|
@@ -19001,7 +18998,6 @@ function DataList({
|
|
|
19001
18998
|
const eventBus = useEventBus();
|
|
19002
18999
|
const { t } = useTranslate();
|
|
19003
19000
|
const [visibleCount, setVisibleCount] = React116__default.useState(pageSize || Infinity);
|
|
19004
|
-
const fields = fieldsProp ?? columnsProp ?? [];
|
|
19005
19001
|
const allData = Array.isArray(entity) ? entity : entity ? [entity] : [];
|
|
19006
19002
|
const data = pageSize > 0 ? allData.slice(0, visibleCount) : allData;
|
|
19007
19003
|
const hasMoreLocal = pageSize > 0 && visibleCount < allData.length;
|
package/dist/runtime/index.cjs
CHANGED
|
@@ -18551,8 +18551,7 @@ function formatValue(value, format) {
|
|
|
18551
18551
|
}
|
|
18552
18552
|
function DataGrid({
|
|
18553
18553
|
entity,
|
|
18554
|
-
fields
|
|
18555
|
-
columns: columnsProp,
|
|
18554
|
+
fields,
|
|
18556
18555
|
itemActions,
|
|
18557
18556
|
cols,
|
|
18558
18557
|
gap = "md",
|
|
@@ -18573,7 +18572,6 @@ function DataGrid({
|
|
|
18573
18572
|
const { t } = useTranslate();
|
|
18574
18573
|
const [selectedIds, setSelectedIds] = React115.useState(/* @__PURE__ */ new Set());
|
|
18575
18574
|
const [visibleCount, setVisibleCount] = React115.useState(pageSize || Infinity);
|
|
18576
|
-
const fields = fieldsProp ?? columnsProp ?? [];
|
|
18577
18575
|
const allData = Array.isArray(entity) ? entity : entity ? [entity] : [];
|
|
18578
18576
|
const data = pageSize > 0 ? allData.slice(0, visibleCount) : allData;
|
|
18579
18577
|
const hasMoreLocal = pageSize > 0 && visibleCount < allData.length;
|
|
@@ -18916,8 +18914,7 @@ function groupData(items, field) {
|
|
|
18916
18914
|
}
|
|
18917
18915
|
function DataList({
|
|
18918
18916
|
entity,
|
|
18919
|
-
fields
|
|
18920
|
-
columns: columnsProp,
|
|
18917
|
+
fields,
|
|
18921
18918
|
itemActions,
|
|
18922
18919
|
gap = "none",
|
|
18923
18920
|
variant = "default",
|
|
@@ -18946,7 +18943,6 @@ function DataList({
|
|
|
18946
18943
|
const eventBus = useEventBus();
|
|
18947
18944
|
const { t } = useTranslate();
|
|
18948
18945
|
const [visibleCount, setVisibleCount] = React115__namespace.default.useState(pageSize || Infinity);
|
|
18949
|
-
const fields = fieldsProp ?? columnsProp ?? [];
|
|
18950
18946
|
const allData = Array.isArray(entity) ? entity : entity ? [entity] : [];
|
|
18951
18947
|
const data = pageSize > 0 ? allData.slice(0, visibleCount) : allData;
|
|
18952
18948
|
const hasMoreLocal = pageSize > 0 && visibleCount < allData.length;
|
package/dist/runtime/index.js
CHANGED
|
@@ -18506,8 +18506,7 @@ function formatValue(value, format) {
|
|
|
18506
18506
|
}
|
|
18507
18507
|
function DataGrid({
|
|
18508
18508
|
entity,
|
|
18509
|
-
fields
|
|
18510
|
-
columns: columnsProp,
|
|
18509
|
+
fields,
|
|
18511
18510
|
itemActions,
|
|
18512
18511
|
cols,
|
|
18513
18512
|
gap = "md",
|
|
@@ -18528,7 +18527,6 @@ function DataGrid({
|
|
|
18528
18527
|
const { t } = useTranslate();
|
|
18529
18528
|
const [selectedIds, setSelectedIds] = useState(/* @__PURE__ */ new Set());
|
|
18530
18529
|
const [visibleCount, setVisibleCount] = useState(pageSize || Infinity);
|
|
18531
|
-
const fields = fieldsProp ?? columnsProp ?? [];
|
|
18532
18530
|
const allData = Array.isArray(entity) ? entity : entity ? [entity] : [];
|
|
18533
18531
|
const data = pageSize > 0 ? allData.slice(0, visibleCount) : allData;
|
|
18534
18532
|
const hasMoreLocal = pageSize > 0 && visibleCount < allData.length;
|
|
@@ -18871,8 +18869,7 @@ function groupData(items, field) {
|
|
|
18871
18869
|
}
|
|
18872
18870
|
function DataList({
|
|
18873
18871
|
entity,
|
|
18874
|
-
fields
|
|
18875
|
-
columns: columnsProp,
|
|
18872
|
+
fields,
|
|
18876
18873
|
itemActions,
|
|
18877
18874
|
gap = "none",
|
|
18878
18875
|
variant = "default",
|
|
@@ -18901,7 +18898,6 @@ function DataList({
|
|
|
18901
18898
|
const eventBus = useEventBus();
|
|
18902
18899
|
const { t } = useTranslate();
|
|
18903
18900
|
const [visibleCount, setVisibleCount] = React115__default.useState(pageSize || Infinity);
|
|
18904
|
-
const fields = fieldsProp ?? columnsProp ?? [];
|
|
18905
18901
|
const allData = Array.isArray(entity) ? entity : entity ? [entity] : [];
|
|
18906
18902
|
const data = pageSize > 0 ? allData.slice(0, visibleCount) : allData;
|
|
18907
18903
|
const hasMoreLocal = pageSize > 0 && visibleCount < allData.length;
|