@almadar/patterns 2.27.0 → 2.28.1

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": "1.0.0",
3
- "exportedAt": "2026-05-12T04:13:35.549Z",
3
+ "exportedAt": "2026-05-14T13:39:01.007Z",
4
4
  "patterns": {
5
5
  "entity-table": {
6
6
  "type": "entity-table",
@@ -2367,7 +2367,6 @@
2367
2367
  "array"
2368
2368
  ],
2369
2369
  "description": "Step definitions (compatible with WizardContainer's WizardStep). A string is shorthand for `{ id: str, title: str }`.",
2370
- "required": true,
2371
2370
  "items": {
2372
2371
  "types": [
2373
2372
  "object",
@@ -2499,19 +2498,58 @@
2499
2498
  "types": [
2500
2499
  "string"
2501
2500
  ],
2502
- "description": "Event to emit on Back click"
2501
+ "description": "Event to emit on Back click — emits UI:{onBack} with { currentStep, totalSteps }",
2502
+ "kind": "event-ref",
2503
+ "emitPayloadSchema": [
2504
+ {
2505
+ "name": "currentStep",
2506
+ "type": "number",
2507
+ "required": true
2508
+ },
2509
+ {
2510
+ "name": "totalSteps",
2511
+ "type": "number",
2512
+ "required": true
2513
+ }
2514
+ ]
2503
2515
  },
2504
2516
  "onNext": {
2505
2517
  "types": [
2506
2518
  "string"
2507
2519
  ],
2508
- "description": "Event to emit on Next click"
2520
+ "description": "Event to emit on Next click — emits UI:{onNext} with { currentStep, totalSteps }",
2521
+ "kind": "event-ref",
2522
+ "emitPayloadSchema": [
2523
+ {
2524
+ "name": "currentStep",
2525
+ "type": "number",
2526
+ "required": true
2527
+ },
2528
+ {
2529
+ "name": "totalSteps",
2530
+ "type": "number",
2531
+ "required": true
2532
+ }
2533
+ ]
2509
2534
  },
2510
2535
  "onComplete": {
2511
2536
  "types": [
2512
2537
  "string"
2513
2538
  ],
2514
- "description": "Event to emit on Complete click"
2539
+ "description": "Event to emit on Complete click — emits UI:{onComplete} with { currentStep, totalSteps }",
2540
+ "kind": "event-ref",
2541
+ "emitPayloadSchema": [
2542
+ {
2543
+ "name": "currentStep",
2544
+ "type": "number",
2545
+ "required": true
2546
+ },
2547
+ {
2548
+ "name": "totalSteps",
2549
+ "type": "number",
2550
+ "required": true
2551
+ }
2552
+ ]
2515
2553
  },
2516
2554
  "onBackClick": {
2517
2555
  "types": [
@@ -4664,6 +4702,12 @@
4664
4702
  "string"
4665
4703
  ],
4666
4704
  "description": "Button label text (alternative to children for schema-driven rendering)"
4705
+ },
4706
+ "disabled": {
4707
+ "types": [
4708
+ "boolean"
4709
+ ],
4710
+ "description": "Disable the button (greys out, blocks click events)"
4667
4711
  }
4668
4712
  }
4669
4713
  },
@@ -12371,6 +12415,54 @@
12371
12415
  ],
12372
12416
  "typicalSize": "medium",
12373
12417
  "propsSchema": {
12418
+ "dragGroup": {
12419
+ "types": [
12420
+ "string"
12421
+ ],
12422
+ "description": "When set, items in this container are draggable and announce this group as their source"
12423
+ },
12424
+ "accepts": {
12425
+ "types": [
12426
+ "string"
12427
+ ],
12428
+ "description": "When set, the container accepts drops whose dragGroup matches this value (or '*' for any group)"
12429
+ },
12430
+ "sortable": {
12431
+ "types": [
12432
+ "boolean"
12433
+ ],
12434
+ "description": "Enable in-container reorder; items can be dragged to new positions among siblings"
12435
+ },
12436
+ "dropEvent": {
12437
+ "types": [
12438
+ "string"
12439
+ ],
12440
+ "description": "Bus event fired on cross-container drop. Payload: { id, sourceGroup, targetGroup, newIndex }"
12441
+ },
12442
+ "reorderEvent": {
12443
+ "types": [
12444
+ "string"
12445
+ ],
12446
+ "description": "Bus event fired on in-container reorder. Payload: { id, oldIndex, newIndex }"
12447
+ },
12448
+ "positionEvent": {
12449
+ "types": [
12450
+ "string"
12451
+ ],
12452
+ "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 }"
12453
+ },
12454
+ "dndItemIdField": {
12455
+ "types": [
12456
+ "string"
12457
+ ],
12458
+ "description": "Row field used as the @dnd-kit draggable id (default 'id')"
12459
+ },
12460
+ "dndRoot": {
12461
+ "types": [
12462
+ "boolean"
12463
+ ],
12464
+ "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."
12465
+ },
12374
12466
  "entity": {
12375
12467
  "types": [
12376
12468
  "object",
@@ -12682,6 +12774,55 @@
12682
12774
  ],
12683
12775
  "typicalSize": "medium",
12684
12776
  "propsSchema": {
12777
+ "dragGroup": {
12778
+ "types": [
12779
+ "string"
12780
+ ],
12781
+ "description": "When set, items in this container are draggable and announce this group as their source"
12782
+ },
12783
+ "accepts": {
12784
+ "types": [
12785
+ "string"
12786
+ ],
12787
+ "description": "When set, the container accepts drops whose dragGroup matches this value (or '*' for any group)"
12788
+ },
12789
+ "sortable": {
12790
+ "types": [
12791
+ "boolean"
12792
+ ],
12793
+ "description": "Enable in-container reorder; items can be dragged to new positions among siblings"
12794
+ },
12795
+ "dropEvent": {
12796
+ "types": [
12797
+ "string"
12798
+ ],
12799
+ "description": "Bus event fired on cross-container drop. Payload: { id, sourceGroup, targetGroup, newIndex }"
12800
+ },
12801
+ "reorderEvent": {
12802
+ "types": [
12803
+ "string"
12804
+ ],
12805
+ "description": "Event emitted on reorder: UI:{reorderEvent} with { fromIndex, toIndex }",
12806
+ "kind": "event"
12807
+ },
12808
+ "positionEvent": {
12809
+ "types": [
12810
+ "string"
12811
+ ],
12812
+ "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 }"
12813
+ },
12814
+ "dndItemIdField": {
12815
+ "types": [
12816
+ "string"
12817
+ ],
12818
+ "description": "Row field used as the @dnd-kit draggable id (default 'id')"
12819
+ },
12820
+ "dndRoot": {
12821
+ "types": [
12822
+ "boolean"
12823
+ ],
12824
+ "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."
12825
+ },
12685
12826
  "entity": {
12686
12827
  "types": [
12687
12828
  "object",
@@ -12915,13 +13056,6 @@
12915
13056
  ],
12916
13057
  "description": "Enable drag-to-reorder with grip handles"
12917
13058
  },
12918
- "reorderEvent": {
12919
- "types": [
12920
- "string"
12921
- ],
12922
- "description": "Event emitted on reorder: UI:{reorderEvent} with { fromIndex, toIndex }",
12923
- "kind": "event"
12924
- },
12925
13059
  "swipeLeftEvent": {
12926
13060
  "types": [
12927
13061
  "string"
@@ -13537,10 +13671,7 @@
13537
13671
  "string"
13538
13672
  ]
13539
13673
  }
13540
- },
13541
- "required": [
13542
- "src"
13543
- ]
13674
+ }
13544
13675
  }
13545
13676
  },
13546
13677
  "currentIndex": {
@@ -23273,8 +23404,7 @@
23273
23404
  }
23274
23405
  },
23275
23406
  "required": [
23276
- "label",
23277
- "value"
23407
+ "label"
23278
23408
  ]
23279
23409
  }
23280
23410
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": "1.0.0",
3
- "exportedAt": "2026-05-12T04:13:35.549Z",
3
+ "exportedAt": "2026-05-14T13:39:01.007Z",
4
4
  "patterns": {
5
5
  "entity-table": {
6
6
  "type": "entity-table",
@@ -2367,7 +2367,6 @@
2367
2367
  "array"
2368
2368
  ],
2369
2369
  "description": "Step definitions (compatible with WizardContainer's WizardStep). A string is shorthand for `{ id: str, title: str }`.",
2370
- "required": true,
2371
2370
  "items": {
2372
2371
  "types": [
2373
2372
  "object",
@@ -2499,19 +2498,58 @@
2499
2498
  "types": [
2500
2499
  "string"
2501
2500
  ],
2502
- "description": "Event to emit on Back click"
2501
+ "description": "Event to emit on Back click — emits UI:{onBack} with { currentStep, totalSteps }",
2502
+ "kind": "event-ref",
2503
+ "emitPayloadSchema": [
2504
+ {
2505
+ "name": "currentStep",
2506
+ "type": "number",
2507
+ "required": true
2508
+ },
2509
+ {
2510
+ "name": "totalSteps",
2511
+ "type": "number",
2512
+ "required": true
2513
+ }
2514
+ ]
2503
2515
  },
2504
2516
  "onNext": {
2505
2517
  "types": [
2506
2518
  "string"
2507
2519
  ],
2508
- "description": "Event to emit on Next click"
2520
+ "description": "Event to emit on Next click — emits UI:{onNext} with { currentStep, totalSteps }",
2521
+ "kind": "event-ref",
2522
+ "emitPayloadSchema": [
2523
+ {
2524
+ "name": "currentStep",
2525
+ "type": "number",
2526
+ "required": true
2527
+ },
2528
+ {
2529
+ "name": "totalSteps",
2530
+ "type": "number",
2531
+ "required": true
2532
+ }
2533
+ ]
2509
2534
  },
2510
2535
  "onComplete": {
2511
2536
  "types": [
2512
2537
  "string"
2513
2538
  ],
2514
- "description": "Event to emit on Complete click"
2539
+ "description": "Event to emit on Complete click — emits UI:{onComplete} with { currentStep, totalSteps }",
2540
+ "kind": "event-ref",
2541
+ "emitPayloadSchema": [
2542
+ {
2543
+ "name": "currentStep",
2544
+ "type": "number",
2545
+ "required": true
2546
+ },
2547
+ {
2548
+ "name": "totalSteps",
2549
+ "type": "number",
2550
+ "required": true
2551
+ }
2552
+ ]
2515
2553
  },
2516
2554
  "onBackClick": {
2517
2555
  "types": [
@@ -4664,6 +4702,12 @@
4664
4702
  "string"
4665
4703
  ],
4666
4704
  "description": "Button label text (alternative to children for schema-driven rendering)"
4705
+ },
4706
+ "disabled": {
4707
+ "types": [
4708
+ "boolean"
4709
+ ],
4710
+ "description": "Disable the button (greys out, blocks click events)"
4667
4711
  }
4668
4712
  }
4669
4713
  },
@@ -12371,6 +12415,54 @@
12371
12415
  ],
12372
12416
  "typicalSize": "medium",
12373
12417
  "propsSchema": {
12418
+ "dragGroup": {
12419
+ "types": [
12420
+ "string"
12421
+ ],
12422
+ "description": "When set, items in this container are draggable and announce this group as their source"
12423
+ },
12424
+ "accepts": {
12425
+ "types": [
12426
+ "string"
12427
+ ],
12428
+ "description": "When set, the container accepts drops whose dragGroup matches this value (or '*' for any group)"
12429
+ },
12430
+ "sortable": {
12431
+ "types": [
12432
+ "boolean"
12433
+ ],
12434
+ "description": "Enable in-container reorder; items can be dragged to new positions among siblings"
12435
+ },
12436
+ "dropEvent": {
12437
+ "types": [
12438
+ "string"
12439
+ ],
12440
+ "description": "Bus event fired on cross-container drop. Payload: { id, sourceGroup, targetGroup, newIndex }"
12441
+ },
12442
+ "reorderEvent": {
12443
+ "types": [
12444
+ "string"
12445
+ ],
12446
+ "description": "Bus event fired on in-container reorder. Payload: { id, oldIndex, newIndex }"
12447
+ },
12448
+ "positionEvent": {
12449
+ "types": [
12450
+ "string"
12451
+ ],
12452
+ "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 }"
12453
+ },
12454
+ "dndItemIdField": {
12455
+ "types": [
12456
+ "string"
12457
+ ],
12458
+ "description": "Row field used as the @dnd-kit draggable id (default 'id')"
12459
+ },
12460
+ "dndRoot": {
12461
+ "types": [
12462
+ "boolean"
12463
+ ],
12464
+ "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."
12465
+ },
12374
12466
  "entity": {
12375
12467
  "types": [
12376
12468
  "object",
@@ -12682,6 +12774,55 @@
12682
12774
  ],
12683
12775
  "typicalSize": "medium",
12684
12776
  "propsSchema": {
12777
+ "dragGroup": {
12778
+ "types": [
12779
+ "string"
12780
+ ],
12781
+ "description": "When set, items in this container are draggable and announce this group as their source"
12782
+ },
12783
+ "accepts": {
12784
+ "types": [
12785
+ "string"
12786
+ ],
12787
+ "description": "When set, the container accepts drops whose dragGroup matches this value (or '*' for any group)"
12788
+ },
12789
+ "sortable": {
12790
+ "types": [
12791
+ "boolean"
12792
+ ],
12793
+ "description": "Enable in-container reorder; items can be dragged to new positions among siblings"
12794
+ },
12795
+ "dropEvent": {
12796
+ "types": [
12797
+ "string"
12798
+ ],
12799
+ "description": "Bus event fired on cross-container drop. Payload: { id, sourceGroup, targetGroup, newIndex }"
12800
+ },
12801
+ "reorderEvent": {
12802
+ "types": [
12803
+ "string"
12804
+ ],
12805
+ "description": "Event emitted on reorder: UI:{reorderEvent} with { fromIndex, toIndex }",
12806
+ "kind": "event"
12807
+ },
12808
+ "positionEvent": {
12809
+ "types": [
12810
+ "string"
12811
+ ],
12812
+ "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 }"
12813
+ },
12814
+ "dndItemIdField": {
12815
+ "types": [
12816
+ "string"
12817
+ ],
12818
+ "description": "Row field used as the @dnd-kit draggable id (default 'id')"
12819
+ },
12820
+ "dndRoot": {
12821
+ "types": [
12822
+ "boolean"
12823
+ ],
12824
+ "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."
12825
+ },
12685
12826
  "entity": {
12686
12827
  "types": [
12687
12828
  "object",
@@ -12915,13 +13056,6 @@
12915
13056
  ],
12916
13057
  "description": "Enable drag-to-reorder with grip handles"
12917
13058
  },
12918
- "reorderEvent": {
12919
- "types": [
12920
- "string"
12921
- ],
12922
- "description": "Event emitted on reorder: UI:{reorderEvent} with { fromIndex, toIndex }",
12923
- "kind": "event"
12924
- },
12925
13059
  "swipeLeftEvent": {
12926
13060
  "types": [
12927
13061
  "string"
@@ -13537,10 +13671,7 @@
13537
13671
  "string"
13538
13672
  ]
13539
13673
  }
13540
- },
13541
- "required": [
13542
- "src"
13543
- ]
13674
+ }
13544
13675
  }
13545
13676
  },
13546
13677
  "currentIndex": {
@@ -23273,8 +23404,7 @@
23273
23404
  }
23274
23405
  },
23275
23406
  "required": [
23276
- "label",
23277
- "value"
23407
+ "label"
23278
23408
  ]
23279
23409
  }
23280
23410
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@almadar/patterns",
3
- "version": "2.27.0",
3
+ "version": "2.28.1",
4
4
  "description": "Pattern registry and component mappings for Almadar",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",