@almadar/patterns 2.17.1 → 2.17.2
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 +98 -0
- package/dist/index.js +95 -46
- package/dist/index.js.map +1 -1
- package/dist/patterns-registry.json +93 -44
- package/dist/registry.json +93 -44
- package/package.json +1 -1
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-04-
|
|
4
|
+
exportedAt: "2026-04-22T03:26:00.903Z",
|
|
5
5
|
patterns: {
|
|
6
6
|
"entity-table": {
|
|
7
7
|
type: "entity-table",
|
|
@@ -491,7 +491,9 @@ var patterns_registry_default = {
|
|
|
491
491
|
types: [
|
|
492
492
|
"array"
|
|
493
493
|
],
|
|
494
|
-
description: "Actions for each card item (schema-driven)"
|
|
494
|
+
description: "Actions for each card item (schema-driven)",
|
|
495
|
+
kind: "event-list",
|
|
496
|
+
eventField: "event"
|
|
495
497
|
},
|
|
496
498
|
showTotal: {
|
|
497
499
|
types: [
|
|
@@ -954,13 +956,15 @@ var patterns_registry_default = {
|
|
|
954
956
|
types: [
|
|
955
957
|
"string"
|
|
956
958
|
],
|
|
957
|
-
description: "Event dispatch props (for trait state machine integration)"
|
|
959
|
+
description: "Event dispatch props (for trait state machine integration)",
|
|
960
|
+
kind: "event"
|
|
958
961
|
},
|
|
959
962
|
cancelEvent: {
|
|
960
963
|
types: [
|
|
961
964
|
"string"
|
|
962
965
|
],
|
|
963
|
-
description: "Event to dispatch on cancel (defaults to 'CANCEL')"
|
|
966
|
+
description: "Event to dispatch on cancel (defaults to 'CANCEL')",
|
|
967
|
+
kind: "event"
|
|
964
968
|
},
|
|
965
969
|
entityId: {
|
|
966
970
|
types: [
|
|
@@ -1162,13 +1166,15 @@ var patterns_registry_default = {
|
|
|
1162
1166
|
types: [
|
|
1163
1167
|
"string"
|
|
1164
1168
|
],
|
|
1165
|
-
description: "Event dispatch props (for trait state machine integration)"
|
|
1169
|
+
description: "Event dispatch props (for trait state machine integration)",
|
|
1170
|
+
kind: "event"
|
|
1166
1171
|
},
|
|
1167
1172
|
cancelEvent: {
|
|
1168
1173
|
types: [
|
|
1169
1174
|
"string"
|
|
1170
1175
|
],
|
|
1171
|
-
description: "Event to dispatch on cancel (defaults to 'CANCEL')"
|
|
1176
|
+
description: "Event to dispatch on cancel (defaults to 'CANCEL')",
|
|
1177
|
+
kind: "event"
|
|
1172
1178
|
},
|
|
1173
1179
|
entityId: {
|
|
1174
1180
|
types: [
|
|
@@ -2581,7 +2587,8 @@ var patterns_registry_default = {
|
|
|
2581
2587
|
types: [
|
|
2582
2588
|
"string"
|
|
2583
2589
|
],
|
|
2584
|
-
description: "Declarative close event \u2014 emits UI:{closeEvent} via eventBus when drawer should close"
|
|
2590
|
+
description: "Declarative close event \u2014 emits UI:{closeEvent} via eventBus when drawer should close",
|
|
2591
|
+
kind: "event"
|
|
2585
2592
|
}
|
|
2586
2593
|
}
|
|
2587
2594
|
},
|
|
@@ -2986,7 +2993,8 @@ var patterns_registry_default = {
|
|
|
2986
2993
|
types: [
|
|
2987
2994
|
"string"
|
|
2988
2995
|
],
|
|
2989
|
-
description: "Declarative event name \u2014 emits UI:{action} via eventBus on click"
|
|
2996
|
+
description: "Declarative event name \u2014 emits UI:{action} via eventBus on click",
|
|
2997
|
+
kind: "event"
|
|
2990
2998
|
},
|
|
2991
2999
|
actionPayload: {
|
|
2992
3000
|
types: [
|
|
@@ -2998,7 +3006,8 @@ var patterns_registry_default = {
|
|
|
2998
3006
|
types: [
|
|
2999
3007
|
"string"
|
|
3000
3008
|
],
|
|
3001
|
-
description: "Declarative hover event \u2014 emits UI:{hoverEvent} with { hovered: true/false } on mouseEnter/mouseLeave"
|
|
3009
|
+
description: "Declarative hover event \u2014 emits UI:{hoverEvent} with { hovered: true/false } on mouseEnter/mouseLeave",
|
|
3010
|
+
kind: "event"
|
|
3002
3011
|
},
|
|
3003
3012
|
maxWidth: {
|
|
3004
3013
|
types: [
|
|
@@ -3839,7 +3848,8 @@ var patterns_registry_default = {
|
|
|
3839
3848
|
types: [
|
|
3840
3849
|
"string"
|
|
3841
3850
|
],
|
|
3842
|
-
description: "Declarative event name \u2014 emits UI:{action} via eventBus on click"
|
|
3851
|
+
description: "Declarative event name \u2014 emits UI:{action} via eventBus on click",
|
|
3852
|
+
kind: "event"
|
|
3843
3853
|
},
|
|
3844
3854
|
actionPayload: {
|
|
3845
3855
|
types: [
|
|
@@ -4003,7 +4013,8 @@ var patterns_registry_default = {
|
|
|
4003
4013
|
types: [
|
|
4004
4014
|
"string"
|
|
4005
4015
|
],
|
|
4006
|
-
description: "Declarative event name \u2014 emits UI:{action} via eventBus on click"
|
|
4016
|
+
description: "Declarative event name \u2014 emits UI:{action} via eventBus on click",
|
|
4017
|
+
kind: "event"
|
|
4007
4018
|
},
|
|
4008
4019
|
actionPayload: {
|
|
4009
4020
|
types: [
|
|
@@ -4143,7 +4154,8 @@ var patterns_registry_default = {
|
|
|
4143
4154
|
types: [
|
|
4144
4155
|
"string"
|
|
4145
4156
|
],
|
|
4146
|
-
description: "Declarative event name \u2014 emits UI:{action} via eventBus on card click"
|
|
4157
|
+
description: "Declarative event name \u2014 emits UI:{action} via eventBus on card click",
|
|
4158
|
+
kind: "event"
|
|
4147
4159
|
},
|
|
4148
4160
|
isSelected: {
|
|
4149
4161
|
types: [
|
|
@@ -4345,7 +4357,8 @@ var patterns_registry_default = {
|
|
|
4345
4357
|
types: [
|
|
4346
4358
|
"string"
|
|
4347
4359
|
],
|
|
4348
|
-
description: "Declarative event name for trait dispatch"
|
|
4360
|
+
description: "Declarative event name for trait dispatch",
|
|
4361
|
+
kind: "event"
|
|
4349
4362
|
},
|
|
4350
4363
|
inputType: {
|
|
4351
4364
|
types: [
|
|
@@ -4451,7 +4464,8 @@ var patterns_registry_default = {
|
|
|
4451
4464
|
types: [
|
|
4452
4465
|
"string"
|
|
4453
4466
|
],
|
|
4454
|
-
description: "Declarative event name for trait dispatch"
|
|
4467
|
+
description: "Declarative event name for trait dispatch",
|
|
4468
|
+
kind: "event"
|
|
4455
4469
|
},
|
|
4456
4470
|
error: {
|
|
4457
4471
|
types: [
|
|
@@ -4495,7 +4509,8 @@ var patterns_registry_default = {
|
|
|
4495
4509
|
types: [
|
|
4496
4510
|
"string"
|
|
4497
4511
|
],
|
|
4498
|
-
description: "Declarative event name for trait dispatch"
|
|
4512
|
+
description: "Declarative event name for trait dispatch",
|
|
4513
|
+
kind: "event"
|
|
4499
4514
|
},
|
|
4500
4515
|
error: {
|
|
4501
4516
|
types: [
|
|
@@ -4562,7 +4577,8 @@ var patterns_registry_default = {
|
|
|
4562
4577
|
types: [
|
|
4563
4578
|
"string"
|
|
4564
4579
|
],
|
|
4565
|
-
description: "Declarative event name for trait dispatch"
|
|
4580
|
+
description: "Declarative event name for trait dispatch",
|
|
4581
|
+
kind: "event"
|
|
4566
4582
|
},
|
|
4567
4583
|
label: {
|
|
4568
4584
|
types: [
|
|
@@ -4762,7 +4778,8 @@ var patterns_registry_default = {
|
|
|
4762
4778
|
types: [
|
|
4763
4779
|
"string"
|
|
4764
4780
|
],
|
|
4765
|
-
description: "Declarative dismiss event \u2014 emits UI:{dismissEvent} via eventBus when alert is dismissed"
|
|
4781
|
+
description: "Declarative dismiss event \u2014 emits UI:{dismissEvent} via eventBus when alert is dismissed",
|
|
4782
|
+
kind: "event"
|
|
4766
4783
|
}
|
|
4767
4784
|
}
|
|
4768
4785
|
},
|
|
@@ -5386,7 +5403,8 @@ var patterns_registry_default = {
|
|
|
5386
5403
|
types: [
|
|
5387
5404
|
"string"
|
|
5388
5405
|
],
|
|
5389
|
-
description: "Declarative event name \u2014 emits UI:{action} via eventBus on click"
|
|
5406
|
+
description: "Declarative event name \u2014 emits UI:{action} via eventBus on click",
|
|
5407
|
+
kind: "event"
|
|
5390
5408
|
}
|
|
5391
5409
|
}
|
|
5392
5410
|
},
|
|
@@ -5521,7 +5539,8 @@ var patterns_registry_default = {
|
|
|
5521
5539
|
types: [
|
|
5522
5540
|
"string"
|
|
5523
5541
|
],
|
|
5524
|
-
description: "Declarative event name \u2014 emits UI:{action} via eventBus on click"
|
|
5542
|
+
description: "Declarative event name \u2014 emits UI:{action} via eventBus on click",
|
|
5543
|
+
kind: "event"
|
|
5525
5544
|
},
|
|
5526
5545
|
actionPayload: {
|
|
5527
5546
|
types: [
|
|
@@ -5606,13 +5625,15 @@ var patterns_registry_default = {
|
|
|
5606
5625
|
types: [
|
|
5607
5626
|
"string"
|
|
5608
5627
|
],
|
|
5609
|
-
description: "Declarative event name \u2014 emits UI:{action} via eventBus on click"
|
|
5628
|
+
description: "Declarative event name \u2014 emits UI:{action} via eventBus on click",
|
|
5629
|
+
kind: "event"
|
|
5610
5630
|
},
|
|
5611
5631
|
hoverEvent: {
|
|
5612
5632
|
types: [
|
|
5613
5633
|
"string"
|
|
5614
5634
|
],
|
|
5615
|
-
description: "Declarative hover event \u2014 emits UI:{hoverEvent} with { hovered: true/false }"
|
|
5635
|
+
description: "Declarative hover event \u2014 emits UI:{hoverEvent} with { hovered: true/false }",
|
|
5636
|
+
kind: "event"
|
|
5616
5637
|
}
|
|
5617
5638
|
}
|
|
5618
5639
|
},
|
|
@@ -5859,13 +5880,15 @@ var patterns_registry_default = {
|
|
|
5859
5880
|
types: [
|
|
5860
5881
|
"string"
|
|
5861
5882
|
],
|
|
5862
|
-
description: "Declarative event name emitted on press via useEventBus"
|
|
5883
|
+
description: "Declarative event name emitted on press via useEventBus",
|
|
5884
|
+
kind: "event"
|
|
5863
5885
|
},
|
|
5864
5886
|
releaseEvent: {
|
|
5865
5887
|
types: [
|
|
5866
5888
|
"string"
|
|
5867
5889
|
],
|
|
5868
|
-
description: "Declarative event name emitted on release via useEventBus"
|
|
5890
|
+
description: "Declarative event name emitted on release via useEventBus",
|
|
5891
|
+
kind: "event"
|
|
5869
5892
|
},
|
|
5870
5893
|
pressed: {
|
|
5871
5894
|
types: [
|
|
@@ -6119,7 +6142,8 @@ var patterns_registry_default = {
|
|
|
6119
6142
|
types: [
|
|
6120
6143
|
"string"
|
|
6121
6144
|
],
|
|
6122
|
-
description: "Declarative event name emitted on click via useEventBus"
|
|
6145
|
+
description: "Declarative event name emitted on click via useEventBus",
|
|
6146
|
+
kind: "event"
|
|
6123
6147
|
}
|
|
6124
6148
|
}
|
|
6125
6149
|
},
|
|
@@ -7092,7 +7116,8 @@ var patterns_registry_default = {
|
|
|
7092
7116
|
types: [
|
|
7093
7117
|
"string"
|
|
7094
7118
|
],
|
|
7095
|
-
description: "Event to emit on click (REQUIRED for interactive elements)"
|
|
7119
|
+
description: "Event to emit on click (REQUIRED for interactive elements)",
|
|
7120
|
+
kind: "event"
|
|
7096
7121
|
},
|
|
7097
7122
|
payload: {
|
|
7098
7123
|
types: [
|
|
@@ -8941,7 +8966,9 @@ var patterns_registry_default = {
|
|
|
8941
8966
|
types: [
|
|
8942
8967
|
"array"
|
|
8943
8968
|
],
|
|
8944
|
-
description: "Actions per item"
|
|
8969
|
+
description: "Actions per item",
|
|
8970
|
+
kind: "event-list",
|
|
8971
|
+
eventField: "event"
|
|
8945
8972
|
}
|
|
8946
8973
|
}
|
|
8947
8974
|
},
|
|
@@ -13512,7 +13539,9 @@ var patterns_registry_default = {
|
|
|
13512
13539
|
types: [
|
|
13513
13540
|
"array"
|
|
13514
13541
|
],
|
|
13515
|
-
description: "Per-item action buttons"
|
|
13542
|
+
description: "Per-item action buttons",
|
|
13543
|
+
kind: "event-list",
|
|
13544
|
+
eventField: "event"
|
|
13516
13545
|
},
|
|
13517
13546
|
cols: {
|
|
13518
13547
|
types: [
|
|
@@ -13573,7 +13602,8 @@ var patterns_registry_default = {
|
|
|
13573
13602
|
types: [
|
|
13574
13603
|
"string"
|
|
13575
13604
|
],
|
|
13576
|
-
description: "Selection change event name (emits UI:{selectionEvent} with { selectedIds: string[] })"
|
|
13605
|
+
description: "Selection change event name (emits UI:{selectionEvent} with { selectedIds: string[] })",
|
|
13606
|
+
kind: "event"
|
|
13577
13607
|
},
|
|
13578
13608
|
infiniteScroll: {
|
|
13579
13609
|
types: [
|
|
@@ -13585,7 +13615,8 @@ var patterns_registry_default = {
|
|
|
13585
13615
|
types: [
|
|
13586
13616
|
"string"
|
|
13587
13617
|
],
|
|
13588
|
-
description: "Event emitted when more items needed: UI:{loadMoreEvent}"
|
|
13618
|
+
description: "Event emitted when more items needed: UI:{loadMoreEvent}",
|
|
13619
|
+
kind: "event"
|
|
13589
13620
|
},
|
|
13590
13621
|
hasMore: {
|
|
13591
13622
|
types: [
|
|
@@ -13649,7 +13680,9 @@ var patterns_registry_default = {
|
|
|
13649
13680
|
types: [
|
|
13650
13681
|
"array"
|
|
13651
13682
|
],
|
|
13652
|
-
description: "Per-item action buttons"
|
|
13683
|
+
description: "Per-item action buttons",
|
|
13684
|
+
kind: "event-list",
|
|
13685
|
+
eventField: "event"
|
|
13653
13686
|
},
|
|
13654
13687
|
gap: {
|
|
13655
13688
|
types: [
|
|
@@ -13721,13 +13754,15 @@ var patterns_registry_default = {
|
|
|
13721
13754
|
types: [
|
|
13722
13755
|
"string"
|
|
13723
13756
|
],
|
|
13724
|
-
description: "Event emitted on reorder: UI:{reorderEvent} with { fromIndex, toIndex }"
|
|
13757
|
+
description: "Event emitted on reorder: UI:{reorderEvent} with { fromIndex, toIndex }",
|
|
13758
|
+
kind: "event"
|
|
13725
13759
|
},
|
|
13726
13760
|
swipeLeftEvent: {
|
|
13727
13761
|
types: [
|
|
13728
13762
|
"string"
|
|
13729
13763
|
],
|
|
13730
|
-
description: "Event emitted on left swipe: UI:{swipeLeftEvent} with { row }"
|
|
13764
|
+
description: "Event emitted on left swipe: UI:{swipeLeftEvent} with { row }",
|
|
13765
|
+
kind: "event"
|
|
13731
13766
|
},
|
|
13732
13767
|
swipeLeftActions: {
|
|
13733
13768
|
types: [
|
|
@@ -13739,7 +13774,8 @@ var patterns_registry_default = {
|
|
|
13739
13774
|
types: [
|
|
13740
13775
|
"string"
|
|
13741
13776
|
],
|
|
13742
|
-
description: "Event emitted on right swipe: UI:{swipeRightEvent} with { row }"
|
|
13777
|
+
description: "Event emitted on right swipe: UI:{swipeRightEvent} with { row }",
|
|
13778
|
+
kind: "event"
|
|
13743
13779
|
},
|
|
13744
13780
|
swipeRightActions: {
|
|
13745
13781
|
types: [
|
|
@@ -13751,7 +13787,8 @@ var patterns_registry_default = {
|
|
|
13751
13787
|
types: [
|
|
13752
13788
|
"string"
|
|
13753
13789
|
],
|
|
13754
|
-
description: "Event emitted on long press: UI:{longPressEvent} with { row }"
|
|
13790
|
+
description: "Event emitted on long press: UI:{longPressEvent} with { row }",
|
|
13791
|
+
kind: "event"
|
|
13755
13792
|
},
|
|
13756
13793
|
infiniteScroll: {
|
|
13757
13794
|
types: [
|
|
@@ -13763,7 +13800,8 @@ var patterns_registry_default = {
|
|
|
13763
13800
|
types: [
|
|
13764
13801
|
"string"
|
|
13765
13802
|
],
|
|
13766
|
-
description: "Event emitted when more items needed: UI:{loadMoreEvent}"
|
|
13803
|
+
description: "Event emitted when more items needed: UI:{loadMoreEvent}",
|
|
13804
|
+
kind: "event"
|
|
13767
13805
|
},
|
|
13768
13806
|
hasMore: {
|
|
13769
13807
|
types: [
|
|
@@ -14065,7 +14103,8 @@ var patterns_registry_default = {
|
|
|
14065
14103
|
types: [
|
|
14066
14104
|
"string"
|
|
14067
14105
|
],
|
|
14068
|
-
description: "Declarative event name for value changes"
|
|
14106
|
+
description: "Declarative event name for value changes",
|
|
14107
|
+
kind: "event"
|
|
14069
14108
|
},
|
|
14070
14109
|
actionPayload: {
|
|
14071
14110
|
types: [
|
|
@@ -14318,7 +14357,8 @@ var patterns_registry_default = {
|
|
|
14318
14357
|
types: [
|
|
14319
14358
|
"string"
|
|
14320
14359
|
],
|
|
14321
|
-
description: "Declarative event name for value changes"
|
|
14360
|
+
description: "Declarative event name for value changes",
|
|
14361
|
+
kind: "event"
|
|
14322
14362
|
},
|
|
14323
14363
|
actionPayload: {
|
|
14324
14364
|
types: [
|
|
@@ -14394,7 +14434,8 @@ var patterns_registry_default = {
|
|
|
14394
14434
|
types: [
|
|
14395
14435
|
"string"
|
|
14396
14436
|
],
|
|
14397
|
-
description: "Declarative event name for rating changes"
|
|
14437
|
+
description: "Declarative event name for rating changes",
|
|
14438
|
+
kind: "event"
|
|
14398
14439
|
},
|
|
14399
14440
|
actionPayload: {
|
|
14400
14441
|
types: [
|
|
@@ -14480,7 +14521,8 @@ var patterns_registry_default = {
|
|
|
14480
14521
|
types: [
|
|
14481
14522
|
"string"
|
|
14482
14523
|
],
|
|
14483
|
-
description: "Declarative event name for file selection"
|
|
14524
|
+
description: "Declarative event name for file selection",
|
|
14525
|
+
kind: "event"
|
|
14484
14526
|
},
|
|
14485
14527
|
actionPayload: {
|
|
14486
14528
|
types: [
|
|
@@ -14596,7 +14638,8 @@ var patterns_registry_default = {
|
|
|
14596
14638
|
"string"
|
|
14597
14639
|
],
|
|
14598
14640
|
description: "Event name to emit when load-more is triggered (emitted as UI:{loadMoreEvent})",
|
|
14599
|
-
required: true
|
|
14641
|
+
required: true,
|
|
14642
|
+
kind: "event"
|
|
14600
14643
|
},
|
|
14601
14644
|
loadMorePayload: {
|
|
14602
14645
|
types: [
|
|
@@ -14768,7 +14811,8 @@ var patterns_registry_default = {
|
|
|
14768
14811
|
"string"
|
|
14769
14812
|
],
|
|
14770
14813
|
description: "Event name to emit on refresh (emitted as UI:{refreshEvent})",
|
|
14771
|
-
required: true
|
|
14814
|
+
required: true,
|
|
14815
|
+
kind: "event"
|
|
14772
14816
|
},
|
|
14773
14817
|
refreshPayload: {
|
|
14774
14818
|
types: [
|
|
@@ -14827,7 +14871,8 @@ var patterns_registry_default = {
|
|
|
14827
14871
|
"string"
|
|
14828
14872
|
],
|
|
14829
14873
|
description: "reorderEvent prop",
|
|
14830
|
-
required: true
|
|
14874
|
+
required: true,
|
|
14875
|
+
kind: "event"
|
|
14831
14876
|
},
|
|
14832
14877
|
reorderPayload: {
|
|
14833
14878
|
types: [
|
|
@@ -14868,13 +14913,17 @@ var patterns_registry_default = {
|
|
|
14868
14913
|
types: [
|
|
14869
14914
|
"array"
|
|
14870
14915
|
],
|
|
14871
|
-
description: "leftActions prop"
|
|
14916
|
+
description: "leftActions prop",
|
|
14917
|
+
kind: "event-list",
|
|
14918
|
+
eventField: "event"
|
|
14872
14919
|
},
|
|
14873
14920
|
rightActions: {
|
|
14874
14921
|
types: [
|
|
14875
14922
|
"array"
|
|
14876
14923
|
],
|
|
14877
|
-
description: "rightActions prop"
|
|
14924
|
+
description: "rightActions prop",
|
|
14925
|
+
kind: "event-list",
|
|
14926
|
+
eventField: "event"
|
|
14878
14927
|
},
|
|
14879
14928
|
threshold: {
|
|
14880
14929
|
types: [
|
|
@@ -24675,7 +24724,7 @@ var integrators_registry_default = {
|
|
|
24675
24724
|
// src/component-mapping.json
|
|
24676
24725
|
var component_mapping_default = {
|
|
24677
24726
|
version: "1.0.0",
|
|
24678
|
-
exportedAt: "2026-04-
|
|
24727
|
+
exportedAt: "2026-04-22T03:26:00.903Z",
|
|
24679
24728
|
mappings: {
|
|
24680
24729
|
"page-header": {
|
|
24681
24730
|
component: "PageHeader",
|
|
@@ -26486,7 +26535,7 @@ var component_mapping_default = {
|
|
|
26486
26535
|
// src/event-contracts.json
|
|
26487
26536
|
var event_contracts_default = {
|
|
26488
26537
|
version: "1.0.0",
|
|
26489
|
-
exportedAt: "2026-04-
|
|
26538
|
+
exportedAt: "2026-04-22T03:26:00.903Z",
|
|
26490
26539
|
contracts: {
|
|
26491
26540
|
form: {
|
|
26492
26541
|
emits: [
|