@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
  "mappings": {
5
5
  "page-header": {
6
6
  "component": "PageHeader",
@@ -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
  "contracts": {
5
5
  "form": {
6
6
  "emits": [
package/dist/index.d.ts CHANGED
@@ -1485,7 +1485,6 @@ export declare const registry: {
1485
1485
  steps: {
1486
1486
  types: string[];
1487
1487
  description: string;
1488
- required: boolean;
1489
1488
  items: {
1490
1489
  types: string[];
1491
1490
  };
@@ -1576,14 +1575,32 @@ export declare const registry: {
1576
1575
  onBack: {
1577
1576
  types: string[];
1578
1577
  description: string;
1578
+ kind: string;
1579
+ emitPayloadSchema: {
1580
+ name: string;
1581
+ type: string;
1582
+ required: boolean;
1583
+ }[];
1579
1584
  };
1580
1585
  onNext: {
1581
1586
  types: string[];
1582
1587
  description: string;
1588
+ kind: string;
1589
+ emitPayloadSchema: {
1590
+ name: string;
1591
+ type: string;
1592
+ required: boolean;
1593
+ }[];
1583
1594
  };
1584
1595
  onComplete: {
1585
1596
  types: string[];
1586
1597
  description: string;
1598
+ kind: string;
1599
+ emitPayloadSchema: {
1600
+ name: string;
1601
+ type: string;
1602
+ required: boolean;
1603
+ }[];
1587
1604
  };
1588
1605
  onBackClick: {
1589
1606
  types: string[];
@@ -2878,6 +2895,10 @@ export declare const registry: {
2878
2895
  types: string[];
2879
2896
  description: string;
2880
2897
  };
2898
+ disabled: {
2899
+ types: string[];
2900
+ description: string;
2901
+ };
2881
2902
  };
2882
2903
  };
2883
2904
  badge: {
@@ -7674,6 +7695,38 @@ export declare const registry: {
7674
7695
  suggestedFor: string[];
7675
7696
  typicalSize: string;
7676
7697
  propsSchema: {
7698
+ dragGroup: {
7699
+ types: string[];
7700
+ description: string;
7701
+ };
7702
+ accepts: {
7703
+ types: string[];
7704
+ description: string;
7705
+ };
7706
+ sortable: {
7707
+ types: string[];
7708
+ description: string;
7709
+ };
7710
+ dropEvent: {
7711
+ types: string[];
7712
+ description: string;
7713
+ };
7714
+ reorderEvent: {
7715
+ types: string[];
7716
+ description: string;
7717
+ };
7718
+ positionEvent: {
7719
+ types: string[];
7720
+ description: string;
7721
+ };
7722
+ dndItemIdField: {
7723
+ types: string[];
7724
+ description: string;
7725
+ };
7726
+ dndRoot: {
7727
+ types: string[];
7728
+ description: string;
7729
+ };
7677
7730
  entity: {
7678
7731
  types: string[];
7679
7732
  description: string;
@@ -7846,6 +7899,39 @@ export declare const registry: {
7846
7899
  suggestedFor: string[];
7847
7900
  typicalSize: string;
7848
7901
  propsSchema: {
7902
+ dragGroup: {
7903
+ types: string[];
7904
+ description: string;
7905
+ };
7906
+ accepts: {
7907
+ types: string[];
7908
+ description: string;
7909
+ };
7910
+ sortable: {
7911
+ types: string[];
7912
+ description: string;
7913
+ };
7914
+ dropEvent: {
7915
+ types: string[];
7916
+ description: string;
7917
+ };
7918
+ reorderEvent: {
7919
+ types: string[];
7920
+ description: string;
7921
+ kind: string;
7922
+ };
7923
+ positionEvent: {
7924
+ types: string[];
7925
+ description: string;
7926
+ };
7927
+ dndItemIdField: {
7928
+ types: string[];
7929
+ description: string;
7930
+ };
7931
+ dndRoot: {
7932
+ types: string[];
7933
+ description: string;
7934
+ };
7849
7935
  entity: {
7850
7936
  types: string[];
7851
7937
  description: string;
@@ -7968,11 +8054,6 @@ export declare const registry: {
7968
8054
  types: string[];
7969
8055
  description: string;
7970
8056
  };
7971
- reorderEvent: {
7972
- types: string[];
7973
- description: string;
7974
- kind: string;
7975
- };
7976
8057
  swipeLeftEvent: {
7977
8058
  types: string[];
7978
8059
  description: string;
@@ -8341,7 +8422,6 @@ export declare const registry: {
8341
8422
  types: string[];
8342
8423
  };
8343
8424
  };
8344
- required: string[];
8345
8425
  };
8346
8426
  };
8347
8427
  currentIndex: {
@@ -19651,7 +19731,6 @@ export declare const PATTERN_REGISTRY: {
19651
19731
  steps: {
19652
19732
  types: string[];
19653
19733
  description: string;
19654
- required: boolean;
19655
19734
  items: {
19656
19735
  types: string[];
19657
19736
  };
@@ -19742,14 +19821,32 @@ export declare const PATTERN_REGISTRY: {
19742
19821
  onBack: {
19743
19822
  types: string[];
19744
19823
  description: string;
19824
+ kind: string;
19825
+ emitPayloadSchema: {
19826
+ name: string;
19827
+ type: string;
19828
+ required: boolean;
19829
+ }[];
19745
19830
  };
19746
19831
  onNext: {
19747
19832
  types: string[];
19748
19833
  description: string;
19834
+ kind: string;
19835
+ emitPayloadSchema: {
19836
+ name: string;
19837
+ type: string;
19838
+ required: boolean;
19839
+ }[];
19749
19840
  };
19750
19841
  onComplete: {
19751
19842
  types: string[];
19752
19843
  description: string;
19844
+ kind: string;
19845
+ emitPayloadSchema: {
19846
+ name: string;
19847
+ type: string;
19848
+ required: boolean;
19849
+ }[];
19753
19850
  };
19754
19851
  onBackClick: {
19755
19852
  types: string[];
@@ -21044,6 +21141,10 @@ export declare const PATTERN_REGISTRY: {
21044
21141
  types: string[];
21045
21142
  description: string;
21046
21143
  };
21144
+ disabled: {
21145
+ types: string[];
21146
+ description: string;
21147
+ };
21047
21148
  };
21048
21149
  };
21049
21150
  badge: {
@@ -25840,6 +25941,38 @@ export declare const PATTERN_REGISTRY: {
25840
25941
  suggestedFor: string[];
25841
25942
  typicalSize: string;
25842
25943
  propsSchema: {
25944
+ dragGroup: {
25945
+ types: string[];
25946
+ description: string;
25947
+ };
25948
+ accepts: {
25949
+ types: string[];
25950
+ description: string;
25951
+ };
25952
+ sortable: {
25953
+ types: string[];
25954
+ description: string;
25955
+ };
25956
+ dropEvent: {
25957
+ types: string[];
25958
+ description: string;
25959
+ };
25960
+ reorderEvent: {
25961
+ types: string[];
25962
+ description: string;
25963
+ };
25964
+ positionEvent: {
25965
+ types: string[];
25966
+ description: string;
25967
+ };
25968
+ dndItemIdField: {
25969
+ types: string[];
25970
+ description: string;
25971
+ };
25972
+ dndRoot: {
25973
+ types: string[];
25974
+ description: string;
25975
+ };
25843
25976
  entity: {
25844
25977
  types: string[];
25845
25978
  description: string;
@@ -26012,6 +26145,39 @@ export declare const PATTERN_REGISTRY: {
26012
26145
  suggestedFor: string[];
26013
26146
  typicalSize: string;
26014
26147
  propsSchema: {
26148
+ dragGroup: {
26149
+ types: string[];
26150
+ description: string;
26151
+ };
26152
+ accepts: {
26153
+ types: string[];
26154
+ description: string;
26155
+ };
26156
+ sortable: {
26157
+ types: string[];
26158
+ description: string;
26159
+ };
26160
+ dropEvent: {
26161
+ types: string[];
26162
+ description: string;
26163
+ };
26164
+ reorderEvent: {
26165
+ types: string[];
26166
+ description: string;
26167
+ kind: string;
26168
+ };
26169
+ positionEvent: {
26170
+ types: string[];
26171
+ description: string;
26172
+ };
26173
+ dndItemIdField: {
26174
+ types: string[];
26175
+ description: string;
26176
+ };
26177
+ dndRoot: {
26178
+ types: string[];
26179
+ description: string;
26180
+ };
26015
26181
  entity: {
26016
26182
  types: string[];
26017
26183
  description: string;
@@ -26134,11 +26300,6 @@ export declare const PATTERN_REGISTRY: {
26134
26300
  types: string[];
26135
26301
  description: string;
26136
26302
  };
26137
- reorderEvent: {
26138
- types: string[];
26139
- description: string;
26140
- kind: string;
26141
- };
26142
26303
  swipeLeftEvent: {
26143
26304
  types: string[];
26144
26305
  description: string;
@@ -26507,7 +26668,6 @@ export declare const PATTERN_REGISTRY: {
26507
26668
  types: string[];
26508
26669
  };
26509
26670
  };
26510
- required: string[];
26511
26671
  };
26512
26672
  };
26513
26673
  currentIndex: {
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  // src/patterns-registry.json
2
2
  var patterns_registry_default = {
3
3
  version: "1.0.0",
4
- exportedAt: "2026-05-12T04:13:35.549Z",
4
+ exportedAt: "2026-05-14T13:39:01.007Z",
5
5
  patterns: {
6
6
  "entity-table": {
7
7
  type: "entity-table",
@@ -2368,7 +2368,6 @@ var patterns_registry_default = {
2368
2368
  "array"
2369
2369
  ],
2370
2370
  description: "Step definitions (compatible with WizardContainer's WizardStep). A string is shorthand for `{ id: str, title: str }`.",
2371
- required: true,
2372
2371
  items: {
2373
2372
  types: [
2374
2373
  "object",
@@ -2500,19 +2499,58 @@ var patterns_registry_default = {
2500
2499
  types: [
2501
2500
  "string"
2502
2501
  ],
2503
- description: "Event to emit on Back click"
2502
+ description: "Event to emit on Back click \u2014 emits UI:{onBack} with { currentStep, totalSteps }",
2503
+ kind: "event-ref",
2504
+ emitPayloadSchema: [
2505
+ {
2506
+ name: "currentStep",
2507
+ type: "number",
2508
+ required: true
2509
+ },
2510
+ {
2511
+ name: "totalSteps",
2512
+ type: "number",
2513
+ required: true
2514
+ }
2515
+ ]
2504
2516
  },
2505
2517
  onNext: {
2506
2518
  types: [
2507
2519
  "string"
2508
2520
  ],
2509
- description: "Event to emit on Next click"
2521
+ description: "Event to emit on Next click \u2014 emits UI:{onNext} with { currentStep, totalSteps }",
2522
+ kind: "event-ref",
2523
+ emitPayloadSchema: [
2524
+ {
2525
+ name: "currentStep",
2526
+ type: "number",
2527
+ required: true
2528
+ },
2529
+ {
2530
+ name: "totalSteps",
2531
+ type: "number",
2532
+ required: true
2533
+ }
2534
+ ]
2510
2535
  },
2511
2536
  onComplete: {
2512
2537
  types: [
2513
2538
  "string"
2514
2539
  ],
2515
- description: "Event to emit on Complete click"
2540
+ description: "Event to emit on Complete click \u2014 emits UI:{onComplete} with { currentStep, totalSteps }",
2541
+ kind: "event-ref",
2542
+ emitPayloadSchema: [
2543
+ {
2544
+ name: "currentStep",
2545
+ type: "number",
2546
+ required: true
2547
+ },
2548
+ {
2549
+ name: "totalSteps",
2550
+ type: "number",
2551
+ required: true
2552
+ }
2553
+ ]
2516
2554
  },
2517
2555
  onBackClick: {
2518
2556
  types: [
@@ -4665,6 +4703,12 @@ var patterns_registry_default = {
4665
4703
  "string"
4666
4704
  ],
4667
4705
  description: "Button label text (alternative to children for schema-driven rendering)"
4706
+ },
4707
+ disabled: {
4708
+ types: [
4709
+ "boolean"
4710
+ ],
4711
+ description: "Disable the button (greys out, blocks click events)"
4668
4712
  }
4669
4713
  }
4670
4714
  },
@@ -12372,6 +12416,54 @@ var patterns_registry_default = {
12372
12416
  ],
12373
12417
  typicalSize: "medium",
12374
12418
  propsSchema: {
12419
+ dragGroup: {
12420
+ types: [
12421
+ "string"
12422
+ ],
12423
+ description: "When set, items in this container are draggable and announce this group as their source"
12424
+ },
12425
+ accepts: {
12426
+ types: [
12427
+ "string"
12428
+ ],
12429
+ description: "When set, the container accepts drops whose dragGroup matches this value (or '*' for any group)"
12430
+ },
12431
+ sortable: {
12432
+ types: [
12433
+ "boolean"
12434
+ ],
12435
+ description: "Enable in-container reorder; items can be dragged to new positions among siblings"
12436
+ },
12437
+ dropEvent: {
12438
+ types: [
12439
+ "string"
12440
+ ],
12441
+ description: "Bus event fired on cross-container drop. Payload: { id, sourceGroup, targetGroup, newIndex }"
12442
+ },
12443
+ reorderEvent: {
12444
+ types: [
12445
+ "string"
12446
+ ],
12447
+ description: "Bus event fired on in-container reorder. Payload: { id, oldIndex, newIndex }"
12448
+ },
12449
+ positionEvent: {
12450
+ types: [
12451
+ "string"
12452
+ ],
12453
+ 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 }"
12454
+ },
12455
+ dndItemIdField: {
12456
+ types: [
12457
+ "string"
12458
+ ],
12459
+ description: "Row field used as the @dnd-kit draggable id (default 'id')"
12460
+ },
12461
+ dndRoot: {
12462
+ types: [
12463
+ "boolean"
12464
+ ],
12465
+ description: "Mark this container as the DnD root for its subtree \u2014 descendant zones share one DndContext (cross-container drag). Use on an outer container whose own items are not draggable."
12466
+ },
12375
12467
  entity: {
12376
12468
  types: [
12377
12469
  "object",
@@ -12683,6 +12775,55 @@ var patterns_registry_default = {
12683
12775
  ],
12684
12776
  typicalSize: "medium",
12685
12777
  propsSchema: {
12778
+ dragGroup: {
12779
+ types: [
12780
+ "string"
12781
+ ],
12782
+ description: "When set, items in this container are draggable and announce this group as their source"
12783
+ },
12784
+ accepts: {
12785
+ types: [
12786
+ "string"
12787
+ ],
12788
+ description: "When set, the container accepts drops whose dragGroup matches this value (or '*' for any group)"
12789
+ },
12790
+ sortable: {
12791
+ types: [
12792
+ "boolean"
12793
+ ],
12794
+ description: "Enable in-container reorder; items can be dragged to new positions among siblings"
12795
+ },
12796
+ dropEvent: {
12797
+ types: [
12798
+ "string"
12799
+ ],
12800
+ description: "Bus event fired on cross-container drop. Payload: { id, sourceGroup, targetGroup, newIndex }"
12801
+ },
12802
+ reorderEvent: {
12803
+ types: [
12804
+ "string"
12805
+ ],
12806
+ description: "Event emitted on reorder: UI:{reorderEvent} with { fromIndex, toIndex }",
12807
+ kind: "event"
12808
+ },
12809
+ positionEvent: {
12810
+ types: [
12811
+ "string"
12812
+ ],
12813
+ 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 }"
12814
+ },
12815
+ dndItemIdField: {
12816
+ types: [
12817
+ "string"
12818
+ ],
12819
+ description: "Row field used as the @dnd-kit draggable id (default 'id')"
12820
+ },
12821
+ dndRoot: {
12822
+ types: [
12823
+ "boolean"
12824
+ ],
12825
+ description: "Mark this container as the DnD root for its subtree \u2014 descendant zones share one DndContext (cross-container drag). Use on an outer container whose own items are not draggable."
12826
+ },
12686
12827
  entity: {
12687
12828
  types: [
12688
12829
  "object",
@@ -12916,13 +13057,6 @@ var patterns_registry_default = {
12916
13057
  ],
12917
13058
  description: "Enable drag-to-reorder with grip handles"
12918
13059
  },
12919
- reorderEvent: {
12920
- types: [
12921
- "string"
12922
- ],
12923
- description: "Event emitted on reorder: UI:{reorderEvent} with { fromIndex, toIndex }",
12924
- kind: "event"
12925
- },
12926
13060
  swipeLeftEvent: {
12927
13061
  types: [
12928
13062
  "string"
@@ -13538,10 +13672,7 @@ var patterns_registry_default = {
13538
13672
  "string"
13539
13673
  ]
13540
13674
  }
13541
- },
13542
- required: [
13543
- "src"
13544
- ]
13675
+ }
13545
13676
  }
13546
13677
  },
13547
13678
  currentIndex: {
@@ -23274,8 +23405,7 @@ var patterns_registry_default = {
23274
23405
  }
23275
23406
  },
23276
23407
  required: [
23277
- "label",
23278
- "value"
23408
+ "label"
23279
23409
  ]
23280
23410
  }
23281
23411
  },
@@ -29912,7 +30042,7 @@ var integrators_registry_default = {
29912
30042
  // src/component-mapping.json
29913
30043
  var component_mapping_default = {
29914
30044
  version: "1.0.0",
29915
- exportedAt: "2026-05-12T04:13:35.549Z",
30045
+ exportedAt: "2026-05-14T13:39:01.007Z",
29916
30046
  mappings: {
29917
30047
  "page-header": {
29918
30048
  component: "PageHeader",
@@ -31417,7 +31547,7 @@ var component_mapping_default = {
31417
31547
  // src/event-contracts.json
31418
31548
  var event_contracts_default = {
31419
31549
  version: "1.0.0",
31420
- exportedAt: "2026-05-12T04:13:35.549Z",
31550
+ exportedAt: "2026-05-14T13:39:01.007Z",
31421
31551
  contracts: {
31422
31552
  form: {
31423
31553
  emits: [