@almadar/patterns 2.27.0 → 2.28.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/component-mapping.json +1 -1
- package/dist/event-contracts.json +1 -1
- package/dist/index.d.ts +130 -12
- package/dist/index.js +102 -16
- package/dist/index.js.map +1 -1
- package/dist/patterns-registry.json +100 -14
- package/dist/registry.json +100 -14
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": "1.0.0",
|
|
3
|
-
"exportedAt": "2026-05-
|
|
3
|
+
"exportedAt": "2026-05-14T12:35:55.693Z",
|
|
4
4
|
"patterns": {
|
|
5
5
|
"entity-table": {
|
|
6
6
|
"type": "entity-table",
|
|
@@ -12371,6 +12371,54 @@
|
|
|
12371
12371
|
],
|
|
12372
12372
|
"typicalSize": "medium",
|
|
12373
12373
|
"propsSchema": {
|
|
12374
|
+
"dragGroup": {
|
|
12375
|
+
"types": [
|
|
12376
|
+
"string"
|
|
12377
|
+
],
|
|
12378
|
+
"description": "When set, items in this container are draggable and announce this group as their source"
|
|
12379
|
+
},
|
|
12380
|
+
"accepts": {
|
|
12381
|
+
"types": [
|
|
12382
|
+
"string"
|
|
12383
|
+
],
|
|
12384
|
+
"description": "When set, the container accepts drops whose dragGroup matches this value (or '*' for any group)"
|
|
12385
|
+
},
|
|
12386
|
+
"sortable": {
|
|
12387
|
+
"types": [
|
|
12388
|
+
"boolean"
|
|
12389
|
+
],
|
|
12390
|
+
"description": "Enable in-container reorder; items can be dragged to new positions among siblings"
|
|
12391
|
+
},
|
|
12392
|
+
"dropEvent": {
|
|
12393
|
+
"types": [
|
|
12394
|
+
"string"
|
|
12395
|
+
],
|
|
12396
|
+
"description": "Bus event fired on cross-container drop. Payload: { id, sourceGroup, targetGroup, newIndex }"
|
|
12397
|
+
},
|
|
12398
|
+
"reorderEvent": {
|
|
12399
|
+
"types": [
|
|
12400
|
+
"string"
|
|
12401
|
+
],
|
|
12402
|
+
"description": "Bus event fired on in-container reorder. Payload: { id, oldIndex, newIndex }"
|
|
12403
|
+
},
|
|
12404
|
+
"positionEvent": {
|
|
12405
|
+
"types": [
|
|
12406
|
+
"string"
|
|
12407
|
+
],
|
|
12408
|
+
"description": "Bus event fired N times per drop (one per item in affected zones) so the trait can persist new positions for the WHOLE zone, not just the moved item. Payload: { id, position }"
|
|
12409
|
+
},
|
|
12410
|
+
"dndItemIdField": {
|
|
12411
|
+
"types": [
|
|
12412
|
+
"string"
|
|
12413
|
+
],
|
|
12414
|
+
"description": "Row field used as the @dnd-kit draggable id (default 'id')"
|
|
12415
|
+
},
|
|
12416
|
+
"dndRoot": {
|
|
12417
|
+
"types": [
|
|
12418
|
+
"boolean"
|
|
12419
|
+
],
|
|
12420
|
+
"description": "Mark this container as the DnD root for its subtree — descendant zones share one DndContext (cross-container drag). Use on an outer container whose own items are not draggable."
|
|
12421
|
+
},
|
|
12374
12422
|
"entity": {
|
|
12375
12423
|
"types": [
|
|
12376
12424
|
"object",
|
|
@@ -12682,6 +12730,55 @@
|
|
|
12682
12730
|
],
|
|
12683
12731
|
"typicalSize": "medium",
|
|
12684
12732
|
"propsSchema": {
|
|
12733
|
+
"dragGroup": {
|
|
12734
|
+
"types": [
|
|
12735
|
+
"string"
|
|
12736
|
+
],
|
|
12737
|
+
"description": "When set, items in this container are draggable and announce this group as their source"
|
|
12738
|
+
},
|
|
12739
|
+
"accepts": {
|
|
12740
|
+
"types": [
|
|
12741
|
+
"string"
|
|
12742
|
+
],
|
|
12743
|
+
"description": "When set, the container accepts drops whose dragGroup matches this value (or '*' for any group)"
|
|
12744
|
+
},
|
|
12745
|
+
"sortable": {
|
|
12746
|
+
"types": [
|
|
12747
|
+
"boolean"
|
|
12748
|
+
],
|
|
12749
|
+
"description": "Enable in-container reorder; items can be dragged to new positions among siblings"
|
|
12750
|
+
},
|
|
12751
|
+
"dropEvent": {
|
|
12752
|
+
"types": [
|
|
12753
|
+
"string"
|
|
12754
|
+
],
|
|
12755
|
+
"description": "Bus event fired on cross-container drop. Payload: { id, sourceGroup, targetGroup, newIndex }"
|
|
12756
|
+
},
|
|
12757
|
+
"reorderEvent": {
|
|
12758
|
+
"types": [
|
|
12759
|
+
"string"
|
|
12760
|
+
],
|
|
12761
|
+
"description": "Event emitted on reorder: UI:{reorderEvent} with { fromIndex, toIndex }",
|
|
12762
|
+
"kind": "event"
|
|
12763
|
+
},
|
|
12764
|
+
"positionEvent": {
|
|
12765
|
+
"types": [
|
|
12766
|
+
"string"
|
|
12767
|
+
],
|
|
12768
|
+
"description": "Bus event fired N times per drop (one per item in affected zones) so the trait can persist new positions for the WHOLE zone, not just the moved item. Payload: { id, position }"
|
|
12769
|
+
},
|
|
12770
|
+
"dndItemIdField": {
|
|
12771
|
+
"types": [
|
|
12772
|
+
"string"
|
|
12773
|
+
],
|
|
12774
|
+
"description": "Row field used as the @dnd-kit draggable id (default 'id')"
|
|
12775
|
+
},
|
|
12776
|
+
"dndRoot": {
|
|
12777
|
+
"types": [
|
|
12778
|
+
"boolean"
|
|
12779
|
+
],
|
|
12780
|
+
"description": "Mark this container as the DnD root for its subtree — descendant zones share one DndContext (cross-container drag). Use on an outer container whose own items are not draggable."
|
|
12781
|
+
},
|
|
12685
12782
|
"entity": {
|
|
12686
12783
|
"types": [
|
|
12687
12784
|
"object",
|
|
@@ -12915,13 +13012,6 @@
|
|
|
12915
13012
|
],
|
|
12916
13013
|
"description": "Enable drag-to-reorder with grip handles"
|
|
12917
13014
|
},
|
|
12918
|
-
"reorderEvent": {
|
|
12919
|
-
"types": [
|
|
12920
|
-
"string"
|
|
12921
|
-
],
|
|
12922
|
-
"description": "Event emitted on reorder: UI:{reorderEvent} with { fromIndex, toIndex }",
|
|
12923
|
-
"kind": "event"
|
|
12924
|
-
},
|
|
12925
13015
|
"swipeLeftEvent": {
|
|
12926
13016
|
"types": [
|
|
12927
13017
|
"string"
|
|
@@ -13537,10 +13627,7 @@
|
|
|
13537
13627
|
"string"
|
|
13538
13628
|
]
|
|
13539
13629
|
}
|
|
13540
|
-
}
|
|
13541
|
-
"required": [
|
|
13542
|
-
"src"
|
|
13543
|
-
]
|
|
13630
|
+
}
|
|
13544
13631
|
}
|
|
13545
13632
|
},
|
|
13546
13633
|
"currentIndex": {
|
|
@@ -23273,8 +23360,7 @@
|
|
|
23273
23360
|
}
|
|
23274
23361
|
},
|
|
23275
23362
|
"required": [
|
|
23276
|
-
"label"
|
|
23277
|
-
"value"
|
|
23363
|
+
"label"
|
|
23278
23364
|
]
|
|
23279
23365
|
}
|
|
23280
23366
|
},
|
package/dist/registry.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": "1.0.0",
|
|
3
|
-
"exportedAt": "2026-05-
|
|
3
|
+
"exportedAt": "2026-05-14T12:35:55.693Z",
|
|
4
4
|
"patterns": {
|
|
5
5
|
"entity-table": {
|
|
6
6
|
"type": "entity-table",
|
|
@@ -12371,6 +12371,54 @@
|
|
|
12371
12371
|
],
|
|
12372
12372
|
"typicalSize": "medium",
|
|
12373
12373
|
"propsSchema": {
|
|
12374
|
+
"dragGroup": {
|
|
12375
|
+
"types": [
|
|
12376
|
+
"string"
|
|
12377
|
+
],
|
|
12378
|
+
"description": "When set, items in this container are draggable and announce this group as their source"
|
|
12379
|
+
},
|
|
12380
|
+
"accepts": {
|
|
12381
|
+
"types": [
|
|
12382
|
+
"string"
|
|
12383
|
+
],
|
|
12384
|
+
"description": "When set, the container accepts drops whose dragGroup matches this value (or '*' for any group)"
|
|
12385
|
+
},
|
|
12386
|
+
"sortable": {
|
|
12387
|
+
"types": [
|
|
12388
|
+
"boolean"
|
|
12389
|
+
],
|
|
12390
|
+
"description": "Enable in-container reorder; items can be dragged to new positions among siblings"
|
|
12391
|
+
},
|
|
12392
|
+
"dropEvent": {
|
|
12393
|
+
"types": [
|
|
12394
|
+
"string"
|
|
12395
|
+
],
|
|
12396
|
+
"description": "Bus event fired on cross-container drop. Payload: { id, sourceGroup, targetGroup, newIndex }"
|
|
12397
|
+
},
|
|
12398
|
+
"reorderEvent": {
|
|
12399
|
+
"types": [
|
|
12400
|
+
"string"
|
|
12401
|
+
],
|
|
12402
|
+
"description": "Bus event fired on in-container reorder. Payload: { id, oldIndex, newIndex }"
|
|
12403
|
+
},
|
|
12404
|
+
"positionEvent": {
|
|
12405
|
+
"types": [
|
|
12406
|
+
"string"
|
|
12407
|
+
],
|
|
12408
|
+
"description": "Bus event fired N times per drop (one per item in affected zones) so the trait can persist new positions for the WHOLE zone, not just the moved item. Payload: { id, position }"
|
|
12409
|
+
},
|
|
12410
|
+
"dndItemIdField": {
|
|
12411
|
+
"types": [
|
|
12412
|
+
"string"
|
|
12413
|
+
],
|
|
12414
|
+
"description": "Row field used as the @dnd-kit draggable id (default 'id')"
|
|
12415
|
+
},
|
|
12416
|
+
"dndRoot": {
|
|
12417
|
+
"types": [
|
|
12418
|
+
"boolean"
|
|
12419
|
+
],
|
|
12420
|
+
"description": "Mark this container as the DnD root for its subtree — descendant zones share one DndContext (cross-container drag). Use on an outer container whose own items are not draggable."
|
|
12421
|
+
},
|
|
12374
12422
|
"entity": {
|
|
12375
12423
|
"types": [
|
|
12376
12424
|
"object",
|
|
@@ -12682,6 +12730,55 @@
|
|
|
12682
12730
|
],
|
|
12683
12731
|
"typicalSize": "medium",
|
|
12684
12732
|
"propsSchema": {
|
|
12733
|
+
"dragGroup": {
|
|
12734
|
+
"types": [
|
|
12735
|
+
"string"
|
|
12736
|
+
],
|
|
12737
|
+
"description": "When set, items in this container are draggable and announce this group as their source"
|
|
12738
|
+
},
|
|
12739
|
+
"accepts": {
|
|
12740
|
+
"types": [
|
|
12741
|
+
"string"
|
|
12742
|
+
],
|
|
12743
|
+
"description": "When set, the container accepts drops whose dragGroup matches this value (or '*' for any group)"
|
|
12744
|
+
},
|
|
12745
|
+
"sortable": {
|
|
12746
|
+
"types": [
|
|
12747
|
+
"boolean"
|
|
12748
|
+
],
|
|
12749
|
+
"description": "Enable in-container reorder; items can be dragged to new positions among siblings"
|
|
12750
|
+
},
|
|
12751
|
+
"dropEvent": {
|
|
12752
|
+
"types": [
|
|
12753
|
+
"string"
|
|
12754
|
+
],
|
|
12755
|
+
"description": "Bus event fired on cross-container drop. Payload: { id, sourceGroup, targetGroup, newIndex }"
|
|
12756
|
+
},
|
|
12757
|
+
"reorderEvent": {
|
|
12758
|
+
"types": [
|
|
12759
|
+
"string"
|
|
12760
|
+
],
|
|
12761
|
+
"description": "Event emitted on reorder: UI:{reorderEvent} with { fromIndex, toIndex }",
|
|
12762
|
+
"kind": "event"
|
|
12763
|
+
},
|
|
12764
|
+
"positionEvent": {
|
|
12765
|
+
"types": [
|
|
12766
|
+
"string"
|
|
12767
|
+
],
|
|
12768
|
+
"description": "Bus event fired N times per drop (one per item in affected zones) so the trait can persist new positions for the WHOLE zone, not just the moved item. Payload: { id, position }"
|
|
12769
|
+
},
|
|
12770
|
+
"dndItemIdField": {
|
|
12771
|
+
"types": [
|
|
12772
|
+
"string"
|
|
12773
|
+
],
|
|
12774
|
+
"description": "Row field used as the @dnd-kit draggable id (default 'id')"
|
|
12775
|
+
},
|
|
12776
|
+
"dndRoot": {
|
|
12777
|
+
"types": [
|
|
12778
|
+
"boolean"
|
|
12779
|
+
],
|
|
12780
|
+
"description": "Mark this container as the DnD root for its subtree — descendant zones share one DndContext (cross-container drag). Use on an outer container whose own items are not draggable."
|
|
12781
|
+
},
|
|
12685
12782
|
"entity": {
|
|
12686
12783
|
"types": [
|
|
12687
12784
|
"object",
|
|
@@ -12915,13 +13012,6 @@
|
|
|
12915
13012
|
],
|
|
12916
13013
|
"description": "Enable drag-to-reorder with grip handles"
|
|
12917
13014
|
},
|
|
12918
|
-
"reorderEvent": {
|
|
12919
|
-
"types": [
|
|
12920
|
-
"string"
|
|
12921
|
-
],
|
|
12922
|
-
"description": "Event emitted on reorder: UI:{reorderEvent} with { fromIndex, toIndex }",
|
|
12923
|
-
"kind": "event"
|
|
12924
|
-
},
|
|
12925
13015
|
"swipeLeftEvent": {
|
|
12926
13016
|
"types": [
|
|
12927
13017
|
"string"
|
|
@@ -13537,10 +13627,7 @@
|
|
|
13537
13627
|
"string"
|
|
13538
13628
|
]
|
|
13539
13629
|
}
|
|
13540
|
-
}
|
|
13541
|
-
"required": [
|
|
13542
|
-
"src"
|
|
13543
|
-
]
|
|
13630
|
+
}
|
|
13544
13631
|
}
|
|
13545
13632
|
},
|
|
13546
13633
|
"currentIndex": {
|
|
@@ -23273,8 +23360,7 @@
|
|
|
23273
23360
|
}
|
|
23274
23361
|
},
|
|
23275
23362
|
"required": [
|
|
23276
|
-
"label"
|
|
23277
|
-
"value"
|
|
23363
|
+
"label"
|
|
23278
23364
|
]
|
|
23279
23365
|
}
|
|
23280
23366
|
},
|