@almadar/patterns 1.1.1 → 2.0.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-02-12T06:50:46.522Z",
3
+ "exportedAt": "2026-03-03T11:14:06.592Z",
4
4
  "contracts": {
5
5
  "form": {
6
6
  "emits": [
@@ -84,6 +84,13 @@
84
84
  "payload": {
85
85
  "type": "object"
86
86
  }
87
+ },
88
+ {
89
+ "event": "NAVIGATE",
90
+ "trigger": "action",
91
+ "payload": {
92
+ "type": "object"
93
+ }
87
94
  }
88
95
  ],
89
96
  "requires": [],
@@ -92,6 +99,13 @@
92
99
  },
93
100
  "entity-table": {
94
101
  "emits": [
102
+ {
103
+ "event": "NAVIGATE",
104
+ "trigger": "action",
105
+ "payload": {
106
+ "type": "object"
107
+ }
108
+ },
95
109
  {
96
110
  "event": "VIEW",
97
111
  "trigger": "action",
@@ -99,12 +113,40 @@
99
113
  "type": "object"
100
114
  }
101
115
  },
116
+ {
117
+ "event": "DESELECT",
118
+ "trigger": "action",
119
+ "payload": {
120
+ "type": "object"
121
+ }
122
+ },
123
+ {
124
+ "event": "SELECT",
125
+ "trigger": "action",
126
+ "payload": {
127
+ "type": "object"
128
+ }
129
+ },
130
+ {
131
+ "event": "SORT",
132
+ "trigger": "action",
133
+ "payload": {
134
+ "type": "object"
135
+ }
136
+ },
102
137
  {
103
138
  "event": "SEARCH",
104
139
  "trigger": "action",
105
140
  "payload": {
106
141
  "type": "object"
107
142
  }
143
+ },
144
+ {
145
+ "event": "PAGINATE",
146
+ "trigger": "action",
147
+ "payload": {
148
+ "type": "object"
149
+ }
108
150
  }
109
151
  ],
110
152
  "requires": [],
@@ -113,21 +155,26 @@
113
155
  },
114
156
  "entity-cards": {
115
157
  "emits": [
158
+ {
159
+ "event": "PAGINATE",
160
+ "trigger": "action",
161
+ "payload": {
162
+ "type": "object"
163
+ }
164
+ },
116
165
  {
117
166
  "event": "VIEW",
118
167
  "trigger": "action",
119
168
  "payload": {
120
- "type": "EntityRow"
121
- },
122
- "optional": true
169
+ "type": "object"
170
+ }
123
171
  },
124
172
  {
125
- "event": "SELECT",
126
- "trigger": "click",
173
+ "event": "NAVIGATE",
174
+ "trigger": "action",
127
175
  "payload": {
128
- "type": "EntityRow"
129
- },
130
- "optional": true
176
+ "type": "object"
177
+ }
131
178
  }
132
179
  ],
133
180
  "requires": [],
@@ -137,20 +184,32 @@
137
184
  "entity-list": {
138
185
  "emits": [
139
186
  {
140
- "event": "VIEW",
187
+ "event": "NAVIGATE",
141
188
  "trigger": "action",
142
189
  "payload": {
143
- "type": "EntityRow"
144
- },
145
- "optional": true
190
+ "type": "object"
191
+ }
146
192
  },
147
193
  {
148
194
  "event": "SELECT",
149
- "trigger": "click",
195
+ "trigger": "action",
150
196
  "payload": {
151
- "type": "EntityRow"
152
- },
153
- "optional": true
197
+ "type": "object"
198
+ }
199
+ },
200
+ {
201
+ "event": "DESELECT",
202
+ "trigger": "action",
203
+ "payload": {
204
+ "type": "object"
205
+ }
206
+ },
207
+ {
208
+ "event": "VIEW",
209
+ "trigger": "action",
210
+ "payload": {
211
+ "type": "object"
212
+ }
154
213
  }
155
214
  ],
156
215
  "requires": [],
@@ -158,23 +217,37 @@
158
217
  "configDriven": true
159
218
  },
160
219
  "detail-panel": {
161
- "emits": [],
220
+ "emits": [
221
+ {
222
+ "event": "NAVIGATE",
223
+ "trigger": "action",
224
+ "payload": {
225
+ "type": "object"
226
+ }
227
+ },
228
+ {
229
+ "event": "CLOSE",
230
+ "trigger": "action",
231
+ "payload": {
232
+ "type": "object"
233
+ }
234
+ }
235
+ ],
162
236
  "requires": [],
163
237
  "entityAware": true
164
238
  },
165
239
  "page-header": {
166
240
  "emits": [
167
241
  {
168
- "event": "CREATE",
169
- "trigger": "click",
242
+ "event": "NAVIGATE",
243
+ "trigger": "action",
170
244
  "payload": {
171
- "type": "void"
172
- },
173
- "optional": true
245
+ "type": "object"
246
+ }
174
247
  }
175
248
  ],
176
249
  "requires": [],
177
- "entityAware": false,
250
+ "entityAware": true,
178
251
  "configDriven": true
179
252
  },
180
253
  "filter-group": {
@@ -448,7 +521,7 @@
448
521
  "CONFIRM",
449
522
  "CANCEL"
450
523
  ],
451
- "entityAware": false
524
+ "entityAware": true
452
525
  },
453
526
  "master-detail": {
454
527
  "emits": [
@@ -495,28 +568,11 @@
495
568
  "game-menu": {
496
569
  "emits": [
497
570
  {
498
- "event": "START",
499
- "trigger": "click",
500
- "payload": {
501
- "type": "void"
502
- },
503
- "optional": true
504
- },
505
- {
506
- "event": "RESUME",
507
- "trigger": "click",
508
- "payload": {
509
- "type": "void"
510
- },
511
- "optional": true
512
- },
513
- {
514
- "event": "RESTART",
515
- "trigger": "click",
571
+ "event": "NAVIGATE",
572
+ "trigger": "action",
516
573
  "payload": {
517
- "type": "void"
518
- },
519
- "optional": true
574
+ "type": "object"
575
+ }
520
576
  }
521
577
  ],
522
578
  "requires": [],
@@ -825,7 +881,7 @@
825
881
  }
826
882
  ],
827
883
  "requires": [],
828
- "entityAware": false
884
+ "entityAware": true
829
885
  },
830
886
  "modal-slot": {
831
887
  "emits": [
@@ -845,7 +901,7 @@
845
901
  }
846
902
  ],
847
903
  "requires": [],
848
- "entityAware": false
904
+ "entityAware": true
849
905
  },
850
906
  "toast-slot": {
851
907
  "emits": [
@@ -865,7 +921,7 @@
865
921
  }
866
922
  ],
867
923
  "requires": [],
868
- "entityAware": false
924
+ "entityAware": true
869
925
  },
870
926
  "code-viewer": {
871
927
  "emits": [
@@ -915,9 +971,108 @@
915
971
  "payload": {
916
972
  "type": "object"
917
973
  }
974
+ }
975
+ ],
976
+ "requires": [],
977
+ "entityAware": true
978
+ },
979
+ "table": {
980
+ "emits": [
981
+ {
982
+ "event": "SORT",
983
+ "trigger": "action",
984
+ "payload": {
985
+ "type": "object"
986
+ }
987
+ },
988
+ {
989
+ "event": "SELECT",
990
+ "trigger": "action",
991
+ "payload": {
992
+ "type": "object"
993
+ }
994
+ },
995
+ {
996
+ "event": "DESELECT",
997
+ "trigger": "action",
998
+ "payload": {
999
+ "type": "object"
1000
+ }
1001
+ },
1002
+ {
1003
+ "event": "PAGINATE",
1004
+ "trigger": "action",
1005
+ "payload": {
1006
+ "type": "object"
1007
+ }
918
1008
  },
919
1009
  {
920
- "event": "MEDIA_UPLOAD",
1010
+ "event": "SEARCH",
1011
+ "trigger": "action",
1012
+ "payload": {
1013
+ "type": "object"
1014
+ }
1015
+ }
1016
+ ],
1017
+ "requires": [],
1018
+ "entityAware": true
1019
+ },
1020
+ "code-block": {
1021
+ "emits": [
1022
+ {
1023
+ "event": "COPY_CODE",
1024
+ "trigger": "action",
1025
+ "payload": {
1026
+ "type": "object"
1027
+ }
1028
+ }
1029
+ ],
1030
+ "requires": [],
1031
+ "entityAware": false
1032
+ },
1033
+ "book-cover-page": {
1034
+ "emits": [
1035
+ {
1036
+ "event": "BOOK_START",
1037
+ "trigger": "action",
1038
+ "payload": {
1039
+ "type": "object"
1040
+ }
1041
+ }
1042
+ ],
1043
+ "requires": [],
1044
+ "entityAware": true
1045
+ },
1046
+ "book-nav-bar": {
1047
+ "emits": [
1048
+ {
1049
+ "event": "BOOK_PAGE_PREV",
1050
+ "trigger": "action",
1051
+ "payload": {
1052
+ "type": "object"
1053
+ }
1054
+ }
1055
+ ],
1056
+ "requires": [],
1057
+ "entityAware": true
1058
+ },
1059
+ "book-table-of-contents": {
1060
+ "emits": [
1061
+ {
1062
+ "event": "BOOK_NAVIGATE",
1063
+ "trigger": "action",
1064
+ "payload": {
1065
+ "type": "object"
1066
+ }
1067
+ }
1068
+ ],
1069
+ "requires": [],
1070
+ "entityAware": true
1071
+ },
1072
+ "book-viewer": {
1073
+ "emits": [
1074
+ {
1075
+ "event": "BOOK_PAGE_CHANGE",
921
1076
  "trigger": "action",
922
1077
  "payload": {
923
1078
  "type": "object"