@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
package/dist/index.d.ts
CHANGED
|
@@ -7674,6 +7674,38 @@ export declare const registry: {
|
|
|
7674
7674
|
suggestedFor: string[];
|
|
7675
7675
|
typicalSize: string;
|
|
7676
7676
|
propsSchema: {
|
|
7677
|
+
dragGroup: {
|
|
7678
|
+
types: string[];
|
|
7679
|
+
description: string;
|
|
7680
|
+
};
|
|
7681
|
+
accepts: {
|
|
7682
|
+
types: string[];
|
|
7683
|
+
description: string;
|
|
7684
|
+
};
|
|
7685
|
+
sortable: {
|
|
7686
|
+
types: string[];
|
|
7687
|
+
description: string;
|
|
7688
|
+
};
|
|
7689
|
+
dropEvent: {
|
|
7690
|
+
types: string[];
|
|
7691
|
+
description: string;
|
|
7692
|
+
};
|
|
7693
|
+
reorderEvent: {
|
|
7694
|
+
types: string[];
|
|
7695
|
+
description: string;
|
|
7696
|
+
};
|
|
7697
|
+
positionEvent: {
|
|
7698
|
+
types: string[];
|
|
7699
|
+
description: string;
|
|
7700
|
+
};
|
|
7701
|
+
dndItemIdField: {
|
|
7702
|
+
types: string[];
|
|
7703
|
+
description: string;
|
|
7704
|
+
};
|
|
7705
|
+
dndRoot: {
|
|
7706
|
+
types: string[];
|
|
7707
|
+
description: string;
|
|
7708
|
+
};
|
|
7677
7709
|
entity: {
|
|
7678
7710
|
types: string[];
|
|
7679
7711
|
description: string;
|
|
@@ -7846,6 +7878,39 @@ export declare const registry: {
|
|
|
7846
7878
|
suggestedFor: string[];
|
|
7847
7879
|
typicalSize: string;
|
|
7848
7880
|
propsSchema: {
|
|
7881
|
+
dragGroup: {
|
|
7882
|
+
types: string[];
|
|
7883
|
+
description: string;
|
|
7884
|
+
};
|
|
7885
|
+
accepts: {
|
|
7886
|
+
types: string[];
|
|
7887
|
+
description: string;
|
|
7888
|
+
};
|
|
7889
|
+
sortable: {
|
|
7890
|
+
types: string[];
|
|
7891
|
+
description: string;
|
|
7892
|
+
};
|
|
7893
|
+
dropEvent: {
|
|
7894
|
+
types: string[];
|
|
7895
|
+
description: string;
|
|
7896
|
+
};
|
|
7897
|
+
reorderEvent: {
|
|
7898
|
+
types: string[];
|
|
7899
|
+
description: string;
|
|
7900
|
+
kind: string;
|
|
7901
|
+
};
|
|
7902
|
+
positionEvent: {
|
|
7903
|
+
types: string[];
|
|
7904
|
+
description: string;
|
|
7905
|
+
};
|
|
7906
|
+
dndItemIdField: {
|
|
7907
|
+
types: string[];
|
|
7908
|
+
description: string;
|
|
7909
|
+
};
|
|
7910
|
+
dndRoot: {
|
|
7911
|
+
types: string[];
|
|
7912
|
+
description: string;
|
|
7913
|
+
};
|
|
7849
7914
|
entity: {
|
|
7850
7915
|
types: string[];
|
|
7851
7916
|
description: string;
|
|
@@ -7968,11 +8033,6 @@ export declare const registry: {
|
|
|
7968
8033
|
types: string[];
|
|
7969
8034
|
description: string;
|
|
7970
8035
|
};
|
|
7971
|
-
reorderEvent: {
|
|
7972
|
-
types: string[];
|
|
7973
|
-
description: string;
|
|
7974
|
-
kind: string;
|
|
7975
|
-
};
|
|
7976
8036
|
swipeLeftEvent: {
|
|
7977
8037
|
types: string[];
|
|
7978
8038
|
description: string;
|
|
@@ -8341,7 +8401,6 @@ export declare const registry: {
|
|
|
8341
8401
|
types: string[];
|
|
8342
8402
|
};
|
|
8343
8403
|
};
|
|
8344
|
-
required: string[];
|
|
8345
8404
|
};
|
|
8346
8405
|
};
|
|
8347
8406
|
currentIndex: {
|
|
@@ -25840,6 +25899,38 @@ export declare const PATTERN_REGISTRY: {
|
|
|
25840
25899
|
suggestedFor: string[];
|
|
25841
25900
|
typicalSize: string;
|
|
25842
25901
|
propsSchema: {
|
|
25902
|
+
dragGroup: {
|
|
25903
|
+
types: string[];
|
|
25904
|
+
description: string;
|
|
25905
|
+
};
|
|
25906
|
+
accepts: {
|
|
25907
|
+
types: string[];
|
|
25908
|
+
description: string;
|
|
25909
|
+
};
|
|
25910
|
+
sortable: {
|
|
25911
|
+
types: string[];
|
|
25912
|
+
description: string;
|
|
25913
|
+
};
|
|
25914
|
+
dropEvent: {
|
|
25915
|
+
types: string[];
|
|
25916
|
+
description: string;
|
|
25917
|
+
};
|
|
25918
|
+
reorderEvent: {
|
|
25919
|
+
types: string[];
|
|
25920
|
+
description: string;
|
|
25921
|
+
};
|
|
25922
|
+
positionEvent: {
|
|
25923
|
+
types: string[];
|
|
25924
|
+
description: string;
|
|
25925
|
+
};
|
|
25926
|
+
dndItemIdField: {
|
|
25927
|
+
types: string[];
|
|
25928
|
+
description: string;
|
|
25929
|
+
};
|
|
25930
|
+
dndRoot: {
|
|
25931
|
+
types: string[];
|
|
25932
|
+
description: string;
|
|
25933
|
+
};
|
|
25843
25934
|
entity: {
|
|
25844
25935
|
types: string[];
|
|
25845
25936
|
description: string;
|
|
@@ -26012,6 +26103,39 @@ export declare const PATTERN_REGISTRY: {
|
|
|
26012
26103
|
suggestedFor: string[];
|
|
26013
26104
|
typicalSize: string;
|
|
26014
26105
|
propsSchema: {
|
|
26106
|
+
dragGroup: {
|
|
26107
|
+
types: string[];
|
|
26108
|
+
description: string;
|
|
26109
|
+
};
|
|
26110
|
+
accepts: {
|
|
26111
|
+
types: string[];
|
|
26112
|
+
description: string;
|
|
26113
|
+
};
|
|
26114
|
+
sortable: {
|
|
26115
|
+
types: string[];
|
|
26116
|
+
description: string;
|
|
26117
|
+
};
|
|
26118
|
+
dropEvent: {
|
|
26119
|
+
types: string[];
|
|
26120
|
+
description: string;
|
|
26121
|
+
};
|
|
26122
|
+
reorderEvent: {
|
|
26123
|
+
types: string[];
|
|
26124
|
+
description: string;
|
|
26125
|
+
kind: string;
|
|
26126
|
+
};
|
|
26127
|
+
positionEvent: {
|
|
26128
|
+
types: string[];
|
|
26129
|
+
description: string;
|
|
26130
|
+
};
|
|
26131
|
+
dndItemIdField: {
|
|
26132
|
+
types: string[];
|
|
26133
|
+
description: string;
|
|
26134
|
+
};
|
|
26135
|
+
dndRoot: {
|
|
26136
|
+
types: string[];
|
|
26137
|
+
description: string;
|
|
26138
|
+
};
|
|
26015
26139
|
entity: {
|
|
26016
26140
|
types: string[];
|
|
26017
26141
|
description: string;
|
|
@@ -26134,11 +26258,6 @@ export declare const PATTERN_REGISTRY: {
|
|
|
26134
26258
|
types: string[];
|
|
26135
26259
|
description: string;
|
|
26136
26260
|
};
|
|
26137
|
-
reorderEvent: {
|
|
26138
|
-
types: string[];
|
|
26139
|
-
description: string;
|
|
26140
|
-
kind: string;
|
|
26141
|
-
};
|
|
26142
26261
|
swipeLeftEvent: {
|
|
26143
26262
|
types: string[];
|
|
26144
26263
|
description: string;
|
|
@@ -26507,7 +26626,6 @@ export declare const PATTERN_REGISTRY: {
|
|
|
26507
26626
|
types: string[];
|
|
26508
26627
|
};
|
|
26509
26628
|
};
|
|
26510
|
-
required: string[];
|
|
26511
26629
|
};
|
|
26512
26630
|
};
|
|
26513
26631
|
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-
|
|
4
|
+
exportedAt: "2026-05-14T12:35:55.693Z",
|
|
5
5
|
patterns: {
|
|
6
6
|
"entity-table": {
|
|
7
7
|
type: "entity-table",
|
|
@@ -12372,6 +12372,54 @@ var patterns_registry_default = {
|
|
|
12372
12372
|
],
|
|
12373
12373
|
typicalSize: "medium",
|
|
12374
12374
|
propsSchema: {
|
|
12375
|
+
dragGroup: {
|
|
12376
|
+
types: [
|
|
12377
|
+
"string"
|
|
12378
|
+
],
|
|
12379
|
+
description: "When set, items in this container are draggable and announce this group as their source"
|
|
12380
|
+
},
|
|
12381
|
+
accepts: {
|
|
12382
|
+
types: [
|
|
12383
|
+
"string"
|
|
12384
|
+
],
|
|
12385
|
+
description: "When set, the container accepts drops whose dragGroup matches this value (or '*' for any group)"
|
|
12386
|
+
},
|
|
12387
|
+
sortable: {
|
|
12388
|
+
types: [
|
|
12389
|
+
"boolean"
|
|
12390
|
+
],
|
|
12391
|
+
description: "Enable in-container reorder; items can be dragged to new positions among siblings"
|
|
12392
|
+
},
|
|
12393
|
+
dropEvent: {
|
|
12394
|
+
types: [
|
|
12395
|
+
"string"
|
|
12396
|
+
],
|
|
12397
|
+
description: "Bus event fired on cross-container drop. Payload: { id, sourceGroup, targetGroup, newIndex }"
|
|
12398
|
+
},
|
|
12399
|
+
reorderEvent: {
|
|
12400
|
+
types: [
|
|
12401
|
+
"string"
|
|
12402
|
+
],
|
|
12403
|
+
description: "Bus event fired on in-container reorder. Payload: { id, oldIndex, newIndex }"
|
|
12404
|
+
},
|
|
12405
|
+
positionEvent: {
|
|
12406
|
+
types: [
|
|
12407
|
+
"string"
|
|
12408
|
+
],
|
|
12409
|
+
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 }"
|
|
12410
|
+
},
|
|
12411
|
+
dndItemIdField: {
|
|
12412
|
+
types: [
|
|
12413
|
+
"string"
|
|
12414
|
+
],
|
|
12415
|
+
description: "Row field used as the @dnd-kit draggable id (default 'id')"
|
|
12416
|
+
},
|
|
12417
|
+
dndRoot: {
|
|
12418
|
+
types: [
|
|
12419
|
+
"boolean"
|
|
12420
|
+
],
|
|
12421
|
+
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."
|
|
12422
|
+
},
|
|
12375
12423
|
entity: {
|
|
12376
12424
|
types: [
|
|
12377
12425
|
"object",
|
|
@@ -12683,6 +12731,55 @@ var patterns_registry_default = {
|
|
|
12683
12731
|
],
|
|
12684
12732
|
typicalSize: "medium",
|
|
12685
12733
|
propsSchema: {
|
|
12734
|
+
dragGroup: {
|
|
12735
|
+
types: [
|
|
12736
|
+
"string"
|
|
12737
|
+
],
|
|
12738
|
+
description: "When set, items in this container are draggable and announce this group as their source"
|
|
12739
|
+
},
|
|
12740
|
+
accepts: {
|
|
12741
|
+
types: [
|
|
12742
|
+
"string"
|
|
12743
|
+
],
|
|
12744
|
+
description: "When set, the container accepts drops whose dragGroup matches this value (or '*' for any group)"
|
|
12745
|
+
},
|
|
12746
|
+
sortable: {
|
|
12747
|
+
types: [
|
|
12748
|
+
"boolean"
|
|
12749
|
+
],
|
|
12750
|
+
description: "Enable in-container reorder; items can be dragged to new positions among siblings"
|
|
12751
|
+
},
|
|
12752
|
+
dropEvent: {
|
|
12753
|
+
types: [
|
|
12754
|
+
"string"
|
|
12755
|
+
],
|
|
12756
|
+
description: "Bus event fired on cross-container drop. Payload: { id, sourceGroup, targetGroup, newIndex }"
|
|
12757
|
+
},
|
|
12758
|
+
reorderEvent: {
|
|
12759
|
+
types: [
|
|
12760
|
+
"string"
|
|
12761
|
+
],
|
|
12762
|
+
description: "Event emitted on reorder: UI:{reorderEvent} with { fromIndex, toIndex }",
|
|
12763
|
+
kind: "event"
|
|
12764
|
+
},
|
|
12765
|
+
positionEvent: {
|
|
12766
|
+
types: [
|
|
12767
|
+
"string"
|
|
12768
|
+
],
|
|
12769
|
+
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 }"
|
|
12770
|
+
},
|
|
12771
|
+
dndItemIdField: {
|
|
12772
|
+
types: [
|
|
12773
|
+
"string"
|
|
12774
|
+
],
|
|
12775
|
+
description: "Row field used as the @dnd-kit draggable id (default 'id')"
|
|
12776
|
+
},
|
|
12777
|
+
dndRoot: {
|
|
12778
|
+
types: [
|
|
12779
|
+
"boolean"
|
|
12780
|
+
],
|
|
12781
|
+
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."
|
|
12782
|
+
},
|
|
12686
12783
|
entity: {
|
|
12687
12784
|
types: [
|
|
12688
12785
|
"object",
|
|
@@ -12916,13 +13013,6 @@ var patterns_registry_default = {
|
|
|
12916
13013
|
],
|
|
12917
13014
|
description: "Enable drag-to-reorder with grip handles"
|
|
12918
13015
|
},
|
|
12919
|
-
reorderEvent: {
|
|
12920
|
-
types: [
|
|
12921
|
-
"string"
|
|
12922
|
-
],
|
|
12923
|
-
description: "Event emitted on reorder: UI:{reorderEvent} with { fromIndex, toIndex }",
|
|
12924
|
-
kind: "event"
|
|
12925
|
-
},
|
|
12926
13016
|
swipeLeftEvent: {
|
|
12927
13017
|
types: [
|
|
12928
13018
|
"string"
|
|
@@ -13538,10 +13628,7 @@ var patterns_registry_default = {
|
|
|
13538
13628
|
"string"
|
|
13539
13629
|
]
|
|
13540
13630
|
}
|
|
13541
|
-
}
|
|
13542
|
-
required: [
|
|
13543
|
-
"src"
|
|
13544
|
-
]
|
|
13631
|
+
}
|
|
13545
13632
|
}
|
|
13546
13633
|
},
|
|
13547
13634
|
currentIndex: {
|
|
@@ -23274,8 +23361,7 @@ var patterns_registry_default = {
|
|
|
23274
23361
|
}
|
|
23275
23362
|
},
|
|
23276
23363
|
required: [
|
|
23277
|
-
"label"
|
|
23278
|
-
"value"
|
|
23364
|
+
"label"
|
|
23279
23365
|
]
|
|
23280
23366
|
}
|
|
23281
23367
|
},
|
|
@@ -29912,7 +29998,7 @@ var integrators_registry_default = {
|
|
|
29912
29998
|
// src/component-mapping.json
|
|
29913
29999
|
var component_mapping_default = {
|
|
29914
30000
|
version: "1.0.0",
|
|
29915
|
-
exportedAt: "2026-05-
|
|
30001
|
+
exportedAt: "2026-05-14T12:35:55.693Z",
|
|
29916
30002
|
mappings: {
|
|
29917
30003
|
"page-header": {
|
|
29918
30004
|
component: "PageHeader",
|
|
@@ -31417,7 +31503,7 @@ var component_mapping_default = {
|
|
|
31417
31503
|
// src/event-contracts.json
|
|
31418
31504
|
var event_contracts_default = {
|
|
31419
31505
|
version: "1.0.0",
|
|
31420
|
-
exportedAt: "2026-05-
|
|
31506
|
+
exportedAt: "2026-05-14T12:35:55.693Z",
|
|
31421
31507
|
contracts: {
|
|
31422
31508
|
form: {
|
|
31423
31509
|
emits: [
|