@almadar/core 10.40.0 → 10.42.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.
@@ -1,11 +1,10 @@
1
- import { A as AnyPatternConfig, S as RenderBinding, I as PatternType } from '../effect-DQPFowvO.js';
2
- export { P as PATTERN_TYPES, z as PatternConfig, G as PatternProps, H as PatternPropsMap, aK as isValidPatternType } from '../effect-DQPFowvO.js';
1
+ import { A as AnyPatternConfig, h as RenderBinding, F as FieldValue, a$ as PatternType, J as JsonValue } from '../effect-D4os99OL.js';
2
+ export { aU as PATTERN_TYPES, aY as PatternConfig, aZ as PatternProps, a_ as PatternPropsMap, cR as isValidPatternType } from '../effect-D4os99OL.js';
3
3
  import { d as EventPayloadValue, a as EventPayload } from '../expression-DpAj1RzP.js';
4
- import { F as FieldValue, J as JsonValue } from '../entity-DfD-iXkn.js';
5
4
  import 'zod';
6
5
 
7
6
  var version$3 = "1.0.0";
8
- var exportedAt$3 = "2026-07-28T10:40:00.004Z";
7
+ var exportedAt$3 = "2026-07-28T16:34:50.202Z";
9
8
  var patterns = {
10
9
  "entity-table": {
11
10
  type: "entity-table",
@@ -18225,6 +18224,22 @@ var patterns = {
18225
18224
  description: "Max items to show before \"Show More\" button. Defaults to 5. Set to 0 to disable.",
18226
18225
  "default": 5
18227
18226
  },
18227
+ sortBy: {
18228
+ types: [
18229
+ "string"
18230
+ ],
18231
+ description: "Field name to order rows by. Values are compared by their own type — numbers numerically, date-like strings chronologically, everything else alphabetically — never by what the field is called. Empty cells sort last. Unset leaves the incoming order untouched. Orders only the rows already fetched: a collection larger than its `limit` still needs ordering at the data layer."
18232
+ },
18233
+ sortDirection: {
18234
+ types: [
18235
+ "string"
18236
+ ],
18237
+ description: "Direction for `sortBy`. Defaults to ascending.",
18238
+ enumValues: [
18239
+ "asc",
18240
+ "desc"
18241
+ ]
18242
+ },
18228
18243
  look: {
18229
18244
  types: [
18230
18245
  "string"
@@ -39314,7 +39329,8 @@ var patterns = {
39314
39329
  "cell",
39315
39330
  "rect",
39316
39331
  "ellipse",
39317
- "poly"
39332
+ "poly",
39333
+ "path"
39318
39334
  ]
39319
39335
  },
39320
39336
  position: {
@@ -39399,6 +39415,12 @@ var patterns = {
39399
39415
  ]
39400
39416
  }
39401
39417
  },
39418
+ d: {
39419
+ types: [
39420
+ "string"
39421
+ ],
39422
+ description: "SVG path data in world units relative to the cell's projected top-left — same coordinate convention as `points`."
39423
+ },
39402
39424
  fill: {
39403
39425
  types: [
39404
39426
  "string"
@@ -39799,7 +39821,8 @@ var patterns = {
39799
39821
  "cell",
39800
39822
  "rect",
39801
39823
  "ellipse",
39802
- "poly"
39824
+ "poly",
39825
+ "path"
39803
39826
  ]
39804
39827
  },
39805
39828
  position: {
@@ -39874,6 +39897,11 @@ var patterns = {
39874
39897
  ]
39875
39898
  }
39876
39899
  },
39900
+ d: {
39901
+ types: [
39902
+ "string"
39903
+ ]
39904
+ },
39877
39905
  fill: {
39878
39906
  types: [
39879
39907
  "string"
@@ -41024,6 +41052,96 @@ var patterns = {
41024
41052
  description: "Additional CSS classes"
41025
41053
  }
41026
41054
  }
41055
+ },
41056
+ "draw-group": {
41057
+ type: "draw-group",
41058
+ category: "game",
41059
+ tier: "atoms",
41060
+ family: "game",
41061
+ description: "DrawGroup component",
41062
+ suggestedFor: [
41063
+ "draw",
41064
+ "group",
41065
+ "draw group"
41066
+ ],
41067
+ typicalSize: "small",
41068
+ propsSchema: {
41069
+ id: {
41070
+ types: [
41071
+ "string"
41072
+ ],
41073
+ description: "Optional source-tagged hit-test handle — the host indexes the drawable's ScenePos→id so a pointer/raycast at that cell resolves to this id (unit/entity click). No id → the host emits only the coordinate (tile click)."
41074
+ },
41075
+ type: {
41076
+ types: [
41077
+ "unknown"
41078
+ ],
41079
+ description: "type prop",
41080
+ required: true
41081
+ },
41082
+ position: {
41083
+ types: [
41084
+ "object"
41085
+ ],
41086
+ description: "Logical scene position; the projector maps it to pixels / world.",
41087
+ required: true,
41088
+ properties: {
41089
+ x: {
41090
+ types: [
41091
+ "number"
41092
+ ]
41093
+ },
41094
+ y: {
41095
+ types: [
41096
+ "number"
41097
+ ]
41098
+ },
41099
+ z: {
41100
+ types: [
41101
+ "number"
41102
+ ]
41103
+ }
41104
+ },
41105
+ propertyRequired: [
41106
+ "x",
41107
+ "y"
41108
+ ],
41109
+ scenePos: true
41110
+ },
41111
+ scale: {
41112
+ types: [
41113
+ "number"
41114
+ ],
41115
+ description: "Uniform scale applied to the whole group."
41116
+ },
41117
+ rotate: {
41118
+ types: [
41119
+ "number"
41120
+ ],
41121
+ description: "Rotation in radians (painter units)."
41122
+ },
41123
+ opacity: {
41124
+ types: [
41125
+ "number"
41126
+ ],
41127
+ description: "0..1 opacity."
41128
+ },
41129
+ items: {
41130
+ types: [
41131
+ "array"
41132
+ ],
41133
+ description: "The grouped drawables, painted through the normal dispatch.",
41134
+ required: true,
41135
+ items: {
41136
+ types: [
41137
+ "object"
41138
+ ],
41139
+ drawableSlot: true
41140
+ }
41141
+ }
41142
+ },
41143
+ drawable: true,
41144
+ drawHost: true
41027
41145
  }
41028
41146
  };
41029
41147
  var categories$1 = [
@@ -41951,7 +42069,7 @@ var integratorsRegistry = {
41951
42069
  };
41952
42070
 
41953
42071
  var version$1 = "1.0.0";
41954
- var exportedAt$1 = "2026-07-28T10:40:00.004Z";
42072
+ var exportedAt$1 = "2026-07-28T16:34:50.202Z";
41955
42073
  var mappings = {
41956
42074
  "page-header": {
41957
42075
  component: "PageHeader",
@@ -43324,6 +43442,11 @@ var mappings = {
43324
43442
  component: "ImportSourcePicker",
43325
43443
  importPath: "@/components/core/molecules/ImportSourcePicker",
43326
43444
  category: "component"
43445
+ },
43446
+ "draw-group": {
43447
+ component: "DrawGroup",
43448
+ importPath: "@/components/game/atoms/DrawGroup",
43449
+ category: "game"
43327
43450
  }
43328
43451
  };
43329
43452
  var componentMapping = {
@@ -43333,7 +43456,7 @@ var componentMapping = {
43333
43456
  };
43334
43457
 
43335
43458
  var version = "1.0.0";
43336
- var exportedAt = "2026-07-28T10:40:00.004Z";
43459
+ var exportedAt = "2026-07-28T16:34:50.202Z";
43337
43460
  var contracts = {
43338
43461
  form: {
43339
43462
  emits: [
@@ -56144,6 +56267,15 @@ declare const registry: {
56144
56267
  description: string;
56145
56268
  default: number;
56146
56269
  };
56270
+ sortBy: {
56271
+ types: string[];
56272
+ description: string;
56273
+ };
56274
+ sortDirection: {
56275
+ types: string[];
56276
+ description: string;
56277
+ enumValues: string[];
56278
+ };
56147
56279
  look: {
56148
56280
  types: string[];
56149
56281
  description: string;
@@ -69118,6 +69250,10 @@ declare const registry: {
69118
69250
  types: string[];
69119
69251
  };
69120
69252
  };
69253
+ d: {
69254
+ types: string[];
69255
+ description: string;
69256
+ };
69121
69257
  fill: {
69122
69258
  types: string[];
69123
69259
  description: string;
@@ -69414,6 +69550,9 @@ declare const registry: {
69414
69550
  types: string[];
69415
69551
  };
69416
69552
  };
69553
+ d: {
69554
+ types: string[];
69555
+ };
69417
69556
  fill: {
69418
69557
  types: string[];
69419
69558
  };
@@ -70114,6 +70253,67 @@ declare const registry: {
70114
70253
  };
70115
70254
  };
70116
70255
  };
70256
+ "draw-group": {
70257
+ type: string;
70258
+ category: string;
70259
+ tier: string;
70260
+ family: string;
70261
+ description: string;
70262
+ suggestedFor: string[];
70263
+ typicalSize: string;
70264
+ propsSchema: {
70265
+ id: {
70266
+ types: string[];
70267
+ description: string;
70268
+ };
70269
+ type: {
70270
+ types: string[];
70271
+ description: string;
70272
+ required: boolean;
70273
+ };
70274
+ position: {
70275
+ types: string[];
70276
+ description: string;
70277
+ required: boolean;
70278
+ properties: {
70279
+ x: {
70280
+ types: string[];
70281
+ };
70282
+ y: {
70283
+ types: string[];
70284
+ };
70285
+ z: {
70286
+ types: string[];
70287
+ };
70288
+ };
70289
+ propertyRequired: string[];
70290
+ scenePos: boolean;
70291
+ };
70292
+ scale: {
70293
+ types: string[];
70294
+ description: string;
70295
+ };
70296
+ rotate: {
70297
+ types: string[];
70298
+ description: string;
70299
+ };
70300
+ opacity: {
70301
+ types: string[];
70302
+ description: string;
70303
+ };
70304
+ items: {
70305
+ types: string[];
70306
+ description: string;
70307
+ required: boolean;
70308
+ items: {
70309
+ types: string[];
70310
+ drawableSlot: boolean;
70311
+ };
70312
+ };
70313
+ };
70314
+ drawable: boolean;
70315
+ drawHost: boolean;
70316
+ };
70117
70317
  };
70118
70318
  categories: string[];
70119
70319
  };
@@ -81207,6 +81407,15 @@ declare const PATTERN_REGISTRY: {
81207
81407
  description: string;
81208
81408
  default: number;
81209
81409
  };
81410
+ sortBy: {
81411
+ types: string[];
81412
+ description: string;
81413
+ };
81414
+ sortDirection: {
81415
+ types: string[];
81416
+ description: string;
81417
+ enumValues: string[];
81418
+ };
81210
81419
  look: {
81211
81420
  types: string[];
81212
81421
  description: string;
@@ -94181,6 +94390,10 @@ declare const PATTERN_REGISTRY: {
94181
94390
  types: string[];
94182
94391
  };
94183
94392
  };
94393
+ d: {
94394
+ types: string[];
94395
+ description: string;
94396
+ };
94184
94397
  fill: {
94185
94398
  types: string[];
94186
94399
  description: string;
@@ -94477,6 +94690,9 @@ declare const PATTERN_REGISTRY: {
94477
94690
  types: string[];
94478
94691
  };
94479
94692
  };
94693
+ d: {
94694
+ types: string[];
94695
+ };
94480
94696
  fill: {
94481
94697
  types: string[];
94482
94698
  };
@@ -95177,6 +95393,67 @@ declare const PATTERN_REGISTRY: {
95177
95393
  };
95178
95394
  };
95179
95395
  };
95396
+ "draw-group": {
95397
+ type: string;
95398
+ category: string;
95399
+ tier: string;
95400
+ family: string;
95401
+ description: string;
95402
+ suggestedFor: string[];
95403
+ typicalSize: string;
95404
+ propsSchema: {
95405
+ id: {
95406
+ types: string[];
95407
+ description: string;
95408
+ };
95409
+ type: {
95410
+ types: string[];
95411
+ description: string;
95412
+ required: boolean;
95413
+ };
95414
+ position: {
95415
+ types: string[];
95416
+ description: string;
95417
+ required: boolean;
95418
+ properties: {
95419
+ x: {
95420
+ types: string[];
95421
+ };
95422
+ y: {
95423
+ types: string[];
95424
+ };
95425
+ z: {
95426
+ types: string[];
95427
+ };
95428
+ };
95429
+ propertyRequired: string[];
95430
+ scenePos: boolean;
95431
+ };
95432
+ scale: {
95433
+ types: string[];
95434
+ description: string;
95435
+ };
95436
+ rotate: {
95437
+ types: string[];
95438
+ description: string;
95439
+ };
95440
+ opacity: {
95441
+ types: string[];
95442
+ description: string;
95443
+ };
95444
+ items: {
95445
+ types: string[];
95446
+ description: string;
95447
+ required: boolean;
95448
+ items: {
95449
+ types: string[];
95450
+ drawableSlot: boolean;
95451
+ };
95452
+ };
95453
+ };
95454
+ drawable: boolean;
95455
+ drawHost: boolean;
95456
+ };
95180
95457
  };
95181
95458
  categories: string[];
95182
95459
  };
@@ -97250,6 +97527,11 @@ declare const COMPONENT_MAPPING: {
97250
97527
  importPath: string;
97251
97528
  category: string;
97252
97529
  };
97530
+ "draw-group": {
97531
+ component: string;
97532
+ importPath: string;
97533
+ category: string;
97534
+ };
97253
97535
  };
97254
97536
  };
97255
97537
  declare const EVENT_CONTRACTS: {
@@ -3,7 +3,7 @@ import { z } from 'zod';
3
3
  // src/patterns/patterns-registry.json
4
4
  var patterns_registry_default = {
5
5
  version: "1.0.0",
6
- exportedAt: "2026-07-28T10:40:00.004Z",
6
+ exportedAt: "2026-07-28T16:34:50.202Z",
7
7
  patterns: {
8
8
  "entity-table": {
9
9
  type: "entity-table",
@@ -18160,6 +18160,22 @@ var patterns_registry_default = {
18160
18160
  description: 'Max items to show before "Show More" button. Defaults to 5. Set to 0 to disable.',
18161
18161
  default: 5
18162
18162
  },
18163
+ sortBy: {
18164
+ types: [
18165
+ "string"
18166
+ ],
18167
+ description: "Field name to order rows by. Values are compared by their own type \u2014 numbers numerically, date-like strings chronologically, everything else alphabetically \u2014 never by what the field is called. Empty cells sort last. Unset leaves the incoming order untouched. Orders only the rows already fetched: a collection larger than its `limit` still needs ordering at the data layer."
18168
+ },
18169
+ sortDirection: {
18170
+ types: [
18171
+ "string"
18172
+ ],
18173
+ description: "Direction for `sortBy`. Defaults to ascending.",
18174
+ enumValues: [
18175
+ "asc",
18176
+ "desc"
18177
+ ]
18178
+ },
18163
18179
  look: {
18164
18180
  types: [
18165
18181
  "string"
@@ -39210,7 +39226,8 @@ var patterns_registry_default = {
39210
39226
  "cell",
39211
39227
  "rect",
39212
39228
  "ellipse",
39213
- "poly"
39229
+ "poly",
39230
+ "path"
39214
39231
  ]
39215
39232
  },
39216
39233
  position: {
@@ -39295,6 +39312,12 @@ var patterns_registry_default = {
39295
39312
  ]
39296
39313
  }
39297
39314
  },
39315
+ d: {
39316
+ types: [
39317
+ "string"
39318
+ ],
39319
+ description: "SVG path data in world units relative to the cell's projected top-left \u2014 same coordinate convention as `points`."
39320
+ },
39298
39321
  fill: {
39299
39322
  types: [
39300
39323
  "string"
@@ -39695,7 +39718,8 @@ var patterns_registry_default = {
39695
39718
  "cell",
39696
39719
  "rect",
39697
39720
  "ellipse",
39698
- "poly"
39721
+ "poly",
39722
+ "path"
39699
39723
  ]
39700
39724
  },
39701
39725
  position: {
@@ -39770,6 +39794,11 @@ var patterns_registry_default = {
39770
39794
  ]
39771
39795
  }
39772
39796
  },
39797
+ d: {
39798
+ types: [
39799
+ "string"
39800
+ ]
39801
+ },
39773
39802
  fill: {
39774
39803
  types: [
39775
39804
  "string"
@@ -40916,6 +40945,96 @@ var patterns_registry_default = {
40916
40945
  description: "Additional CSS classes"
40917
40946
  }
40918
40947
  }
40948
+ },
40949
+ "draw-group": {
40950
+ type: "draw-group",
40951
+ category: "game",
40952
+ tier: "atoms",
40953
+ family: "game",
40954
+ description: "DrawGroup component",
40955
+ suggestedFor: [
40956
+ "draw",
40957
+ "group",
40958
+ "draw group"
40959
+ ],
40960
+ typicalSize: "small",
40961
+ propsSchema: {
40962
+ id: {
40963
+ types: [
40964
+ "string"
40965
+ ],
40966
+ description: "Optional source-tagged hit-test handle \u2014 the host indexes the drawable's ScenePos\u2192id so a pointer/raycast at that cell resolves to this id (unit/entity click). No id \u2192 the host emits only the coordinate (tile click)."
40967
+ },
40968
+ type: {
40969
+ types: [
40970
+ "unknown"
40971
+ ],
40972
+ description: "type prop",
40973
+ required: true
40974
+ },
40975
+ position: {
40976
+ types: [
40977
+ "object"
40978
+ ],
40979
+ description: "Logical scene position; the projector maps it to pixels / world.",
40980
+ required: true,
40981
+ properties: {
40982
+ x: {
40983
+ types: [
40984
+ "number"
40985
+ ]
40986
+ },
40987
+ y: {
40988
+ types: [
40989
+ "number"
40990
+ ]
40991
+ },
40992
+ z: {
40993
+ types: [
40994
+ "number"
40995
+ ]
40996
+ }
40997
+ },
40998
+ propertyRequired: [
40999
+ "x",
41000
+ "y"
41001
+ ],
41002
+ scenePos: true
41003
+ },
41004
+ scale: {
41005
+ types: [
41006
+ "number"
41007
+ ],
41008
+ description: "Uniform scale applied to the whole group."
41009
+ },
41010
+ rotate: {
41011
+ types: [
41012
+ "number"
41013
+ ],
41014
+ description: "Rotation in radians (painter units)."
41015
+ },
41016
+ opacity: {
41017
+ types: [
41018
+ "number"
41019
+ ],
41020
+ description: "0..1 opacity."
41021
+ },
41022
+ items: {
41023
+ types: [
41024
+ "array"
41025
+ ],
41026
+ description: "The grouped drawables, painted through the normal dispatch.",
41027
+ required: true,
41028
+ items: {
41029
+ types: [
41030
+ "object"
41031
+ ],
41032
+ drawableSlot: true
41033
+ }
41034
+ }
41035
+ },
41036
+ drawable: true,
41037
+ drawHost: true
40919
41038
  }
40920
41039
  },
40921
41040
  categories: [
@@ -41837,7 +41956,7 @@ var integrators_registry_default = {
41837
41956
  // src/patterns/component-mapping.json
41838
41957
  var component_mapping_default = {
41839
41958
  version: "1.0.0",
41840
- exportedAt: "2026-07-28T10:40:00.004Z",
41959
+ exportedAt: "2026-07-28T16:34:50.202Z",
41841
41960
  mappings: {
41842
41961
  "page-header": {
41843
41962
  component: "PageHeader",
@@ -43210,6 +43329,11 @@ var component_mapping_default = {
43210
43329
  component: "ImportSourcePicker",
43211
43330
  importPath: "@/components/core/molecules/ImportSourcePicker",
43212
43331
  category: "component"
43332
+ },
43333
+ "draw-group": {
43334
+ component: "DrawGroup",
43335
+ importPath: "@/components/game/atoms/DrawGroup",
43336
+ category: "game"
43213
43337
  }
43214
43338
  }
43215
43339
  };
@@ -43217,7 +43341,7 @@ var component_mapping_default = {
43217
43341
  // src/patterns/event-contracts.json
43218
43342
  var event_contracts_default = {
43219
43343
  version: "1.0.0",
43220
- exportedAt: "2026-07-28T10:40:00.004Z",
43344
+ exportedAt: "2026-07-28T16:34:50.202Z",
43221
43345
  contracts: {
43222
43346
  form: {
43223
43347
  emits: [
@@ -44447,6 +44571,7 @@ var PATTERN_TYPES = [
44447
44571
  "doc-sidebar",
44448
44572
  "doc-toc",
44449
44573
  "document-viewer",
44574
+ "draw-group",
44450
44575
  "draw-shape",
44451
44576
  "draw-shape-layer",
44452
44577
  "draw-sprite",