@almadar/core 10.61.0 → 10.62.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/builders.d.ts +3 -3
- package/dist/builders.js +10 -0
- package/dist/builders.js.map +1 -1
- package/dist/{effect-a1W_hXyG.d.ts → effect-M22diOHo.d.ts} +41 -6
- package/dist/{entityAccess-DU_mdtr5.d.ts → entityAccess-BFmlJWS5.d.ts} +1 -1
- package/dist/factory/index.d.ts +4 -4
- package/dist/factory-runtime/index.d.ts +3 -3
- package/dist/factory-runtime/index.js +10 -0
- package/dist/factory-runtime/index.js.map +1 -1
- package/dist/{index-C-qK6t2U.d.ts → index-BGTJcLOt.d.ts} +4 -4
- package/dist/index.d.ts +11 -11
- package/dist/index.js +254 -6
- package/dist/index.js.map +1 -1
- package/dist/mock/index.d.ts +4 -4
- package/dist/mock/index.js +30 -0
- package/dist/mock/index.js.map +1 -1
- package/dist/patterns/component-mapping.json +1 -1
- package/dist/patterns/event-contracts.json +1 -1
- package/dist/patterns/index.d.ts +519 -6
- package/dist/patterns/index.js +234 -4
- package/dist/patterns/index.js.map +1 -1
- package/dist/patterns/patterns-registry.json +228 -1
- package/dist/patterns/registry.json +228 -1
- package/dist/{schema-Dj4GC3Vo.d.ts → schema-CtOCXxsy.d.ts} +2 -2
- package/dist/{trait-DgZ5Exel.d.ts → trait-C7w1IVQm.d.ts} +1 -1
- package/dist/types/index.d.ts +5 -5
- package/dist/types/index.js +14 -1
- package/dist/types/index.js.map +1 -1
- package/dist/{types-CGjZ7Odu.d.ts → types-CTH6fbI8.d.ts} +2 -2
- package/package.json +1 -1
package/dist/patterns/index.js
CHANGED
|
@@ -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-08-
|
|
6
|
+
exportedAt: "2026-08-20T06:39:15.858Z",
|
|
7
7
|
patterns: {
|
|
8
8
|
"entity-table": {
|
|
9
9
|
type: "entity-table",
|
|
@@ -1239,6 +1239,7 @@ var patterns_registry_default = {
|
|
|
1239
1239
|
tier: "organisms",
|
|
1240
1240
|
family: "core",
|
|
1241
1241
|
description: "Detail view panel for drawers/sidebars",
|
|
1242
|
+
fieldsContract: "display",
|
|
1242
1243
|
suggestedFor: [
|
|
1243
1244
|
"drawer content",
|
|
1244
1245
|
"side panels",
|
|
@@ -1520,6 +1521,54 @@ var patterns_registry_default = {
|
|
|
1520
1521
|
]
|
|
1521
1522
|
}
|
|
1522
1523
|
},
|
|
1524
|
+
backAction: {
|
|
1525
|
+
types: [
|
|
1526
|
+
"object"
|
|
1527
|
+
],
|
|
1528
|
+
description: "Navigation-back affordance. Renders top-LEFT before the title (OS/back convention \u2014 Almadar_UX \xA78.4), spatially separated from the right-aligned action buttons + close X. Never inferred from actions[] labels.",
|
|
1529
|
+
properties: {
|
|
1530
|
+
label: {
|
|
1531
|
+
types: [
|
|
1532
|
+
"string"
|
|
1533
|
+
]
|
|
1534
|
+
},
|
|
1535
|
+
icon: {
|
|
1536
|
+
types: [
|
|
1537
|
+
"icon",
|
|
1538
|
+
"string"
|
|
1539
|
+
]
|
|
1540
|
+
},
|
|
1541
|
+
onClick: {
|
|
1542
|
+
types: [
|
|
1543
|
+
"function"
|
|
1544
|
+
]
|
|
1545
|
+
},
|
|
1546
|
+
event: {
|
|
1547
|
+
types: [
|
|
1548
|
+
"string"
|
|
1549
|
+
]
|
|
1550
|
+
},
|
|
1551
|
+
navigatesTo: {
|
|
1552
|
+
types: [
|
|
1553
|
+
"string"
|
|
1554
|
+
]
|
|
1555
|
+
},
|
|
1556
|
+
variant: {
|
|
1557
|
+
types: [
|
|
1558
|
+
"string"
|
|
1559
|
+
],
|
|
1560
|
+
enumValues: [
|
|
1561
|
+
"primary",
|
|
1562
|
+
"secondary",
|
|
1563
|
+
"ghost",
|
|
1564
|
+
"danger"
|
|
1565
|
+
]
|
|
1566
|
+
}
|
|
1567
|
+
},
|
|
1568
|
+
propertyRequired: [
|
|
1569
|
+
"label"
|
|
1570
|
+
]
|
|
1571
|
+
},
|
|
1523
1572
|
footer: {
|
|
1524
1573
|
types: [
|
|
1525
1574
|
"node"
|
|
@@ -1554,6 +1603,26 @@ var patterns_registry_default = {
|
|
|
1554
1603
|
types: [
|
|
1555
1604
|
"string"
|
|
1556
1605
|
]
|
|
1606
|
+
},
|
|
1607
|
+
type: {
|
|
1608
|
+
types: [
|
|
1609
|
+
"string"
|
|
1610
|
+
]
|
|
1611
|
+
},
|
|
1612
|
+
values: {
|
|
1613
|
+
types: [
|
|
1614
|
+
"array"
|
|
1615
|
+
],
|
|
1616
|
+
items: {
|
|
1617
|
+
types: [
|
|
1618
|
+
"string"
|
|
1619
|
+
]
|
|
1620
|
+
}
|
|
1621
|
+
},
|
|
1622
|
+
relation: {
|
|
1623
|
+
types: [
|
|
1624
|
+
"string"
|
|
1625
|
+
]
|
|
1557
1626
|
}
|
|
1558
1627
|
},
|
|
1559
1628
|
required: [
|
|
@@ -1618,6 +1687,48 @@ var patterns_registry_default = {
|
|
|
1618
1687
|
"boolean"
|
|
1619
1688
|
],
|
|
1620
1689
|
description: "Show actions flag"
|
|
1690
|
+
},
|
|
1691
|
+
relationsData: {
|
|
1692
|
+
types: [
|
|
1693
|
+
"object"
|
|
1694
|
+
],
|
|
1695
|
+
description: "Relation display data: { fieldName: [{value, label}] } \u2014 injected server-side by the runtime (relation-option injection) or bound by compiled codegen; resolves stored foreign ids to display names.",
|
|
1696
|
+
mapValue: {
|
|
1697
|
+
types: [
|
|
1698
|
+
"array"
|
|
1699
|
+
],
|
|
1700
|
+
items: {
|
|
1701
|
+
types: [
|
|
1702
|
+
"object"
|
|
1703
|
+
],
|
|
1704
|
+
properties: {
|
|
1705
|
+
value: {
|
|
1706
|
+
types: [
|
|
1707
|
+
"string"
|
|
1708
|
+
]
|
|
1709
|
+
},
|
|
1710
|
+
label: {
|
|
1711
|
+
types: [
|
|
1712
|
+
"string"
|
|
1713
|
+
]
|
|
1714
|
+
},
|
|
1715
|
+
description: {
|
|
1716
|
+
types: [
|
|
1717
|
+
"string"
|
|
1718
|
+
]
|
|
1719
|
+
},
|
|
1720
|
+
disabled: {
|
|
1721
|
+
types: [
|
|
1722
|
+
"boolean"
|
|
1723
|
+
]
|
|
1724
|
+
}
|
|
1725
|
+
},
|
|
1726
|
+
required: [
|
|
1727
|
+
"value",
|
|
1728
|
+
"label"
|
|
1729
|
+
]
|
|
1730
|
+
}
|
|
1731
|
+
}
|
|
1621
1732
|
}
|
|
1622
1733
|
}
|
|
1623
1734
|
},
|
|
@@ -1889,6 +2000,7 @@ var patterns_registry_default = {
|
|
|
1889
2000
|
tier: "organisms",
|
|
1890
2001
|
family: "core",
|
|
1891
2002
|
description: "Complete form with fields and actions",
|
|
2003
|
+
fieldsContract: "form",
|
|
1892
2004
|
suggestedFor: [
|
|
1893
2005
|
"create forms",
|
|
1894
2006
|
"edit forms",
|
|
@@ -2121,6 +2233,11 @@ var patterns_registry_default = {
|
|
|
2121
2233
|
types: [
|
|
2122
2234
|
"boolean"
|
|
2123
2235
|
]
|
|
2236
|
+
},
|
|
2237
|
+
hint: {
|
|
2238
|
+
types: [
|
|
2239
|
+
"string"
|
|
2240
|
+
]
|
|
2124
2241
|
}
|
|
2125
2242
|
}
|
|
2126
2243
|
}
|
|
@@ -2273,6 +2390,42 @@ var patterns_registry_default = {
|
|
|
2273
2390
|
},
|
|
2274
2391
|
default: {}
|
|
2275
2392
|
},
|
|
2393
|
+
fieldOverrides: {
|
|
2394
|
+
types: [
|
|
2395
|
+
"array"
|
|
2396
|
+
],
|
|
2397
|
+
description: "Per-field display-copy overrides (label/placeholder/hint), merged by field name over the schema-enriched fields.",
|
|
2398
|
+
items: {
|
|
2399
|
+
types: [
|
|
2400
|
+
"object"
|
|
2401
|
+
],
|
|
2402
|
+
properties: {
|
|
2403
|
+
name: {
|
|
2404
|
+
types: [
|
|
2405
|
+
"string"
|
|
2406
|
+
]
|
|
2407
|
+
},
|
|
2408
|
+
label: {
|
|
2409
|
+
types: [
|
|
2410
|
+
"string"
|
|
2411
|
+
]
|
|
2412
|
+
},
|
|
2413
|
+
placeholder: {
|
|
2414
|
+
types: [
|
|
2415
|
+
"string"
|
|
2416
|
+
]
|
|
2417
|
+
},
|
|
2418
|
+
hint: {
|
|
2419
|
+
types: [
|
|
2420
|
+
"string"
|
|
2421
|
+
]
|
|
2422
|
+
}
|
|
2423
|
+
},
|
|
2424
|
+
required: [
|
|
2425
|
+
"name"
|
|
2426
|
+
]
|
|
2427
|
+
}
|
|
2428
|
+
},
|
|
2276
2429
|
conditionalFields: {
|
|
2277
2430
|
types: [
|
|
2278
2431
|
"object",
|
|
@@ -2615,6 +2768,11 @@ var patterns_registry_default = {
|
|
|
2615
2768
|
types: [
|
|
2616
2769
|
"boolean"
|
|
2617
2770
|
]
|
|
2771
|
+
},
|
|
2772
|
+
hint: {
|
|
2773
|
+
types: [
|
|
2774
|
+
"string"
|
|
2775
|
+
]
|
|
2618
2776
|
}
|
|
2619
2777
|
}
|
|
2620
2778
|
}
|
|
@@ -2698,6 +2856,7 @@ var patterns_registry_default = {
|
|
|
2698
2856
|
tier: "organisms",
|
|
2699
2857
|
family: "core",
|
|
2700
2858
|
description: "Alias for form \u2014 Complete form with fields and actions",
|
|
2859
|
+
fieldsContract: "form",
|
|
2701
2860
|
suggestedFor: [
|
|
2702
2861
|
"create forms",
|
|
2703
2862
|
"edit forms",
|
|
@@ -2930,6 +3089,11 @@ var patterns_registry_default = {
|
|
|
2930
3089
|
types: [
|
|
2931
3090
|
"boolean"
|
|
2932
3091
|
]
|
|
3092
|
+
},
|
|
3093
|
+
hint: {
|
|
3094
|
+
types: [
|
|
3095
|
+
"string"
|
|
3096
|
+
]
|
|
2933
3097
|
}
|
|
2934
3098
|
}
|
|
2935
3099
|
}
|
|
@@ -3082,6 +3246,42 @@ var patterns_registry_default = {
|
|
|
3082
3246
|
},
|
|
3083
3247
|
default: {}
|
|
3084
3248
|
},
|
|
3249
|
+
fieldOverrides: {
|
|
3250
|
+
types: [
|
|
3251
|
+
"array"
|
|
3252
|
+
],
|
|
3253
|
+
description: "Per-field display-copy overrides (label/placeholder/hint), merged by field name over the schema-enriched fields.",
|
|
3254
|
+
items: {
|
|
3255
|
+
types: [
|
|
3256
|
+
"object"
|
|
3257
|
+
],
|
|
3258
|
+
properties: {
|
|
3259
|
+
name: {
|
|
3260
|
+
types: [
|
|
3261
|
+
"string"
|
|
3262
|
+
]
|
|
3263
|
+
},
|
|
3264
|
+
label: {
|
|
3265
|
+
types: [
|
|
3266
|
+
"string"
|
|
3267
|
+
]
|
|
3268
|
+
},
|
|
3269
|
+
placeholder: {
|
|
3270
|
+
types: [
|
|
3271
|
+
"string"
|
|
3272
|
+
]
|
|
3273
|
+
},
|
|
3274
|
+
hint: {
|
|
3275
|
+
types: [
|
|
3276
|
+
"string"
|
|
3277
|
+
]
|
|
3278
|
+
}
|
|
3279
|
+
},
|
|
3280
|
+
required: [
|
|
3281
|
+
"name"
|
|
3282
|
+
]
|
|
3283
|
+
}
|
|
3284
|
+
},
|
|
3085
3285
|
conditionalFields: {
|
|
3086
3286
|
types: [
|
|
3087
3287
|
"object",
|
|
@@ -3424,6 +3624,11 @@ var patterns_registry_default = {
|
|
|
3424
3624
|
types: [
|
|
3425
3625
|
"boolean"
|
|
3426
3626
|
]
|
|
3627
|
+
},
|
|
3628
|
+
hint: {
|
|
3629
|
+
types: [
|
|
3630
|
+
"string"
|
|
3631
|
+
]
|
|
3427
3632
|
}
|
|
3428
3633
|
}
|
|
3429
3634
|
}
|
|
@@ -40055,6 +40260,28 @@ var patterns_registry_default = {
|
|
|
40055
40260
|
}
|
|
40056
40261
|
]
|
|
40057
40262
|
},
|
|
40263
|
+
keyMap: {
|
|
40264
|
+
types: [
|
|
40265
|
+
"object"
|
|
40266
|
+
],
|
|
40267
|
+
description: "Maps a keydown `e.code` \u2192 the board's SEMANTIC event (device-agnostic input), emitted as `UI:{event}` \u2014 same contract as the game canvas keyMap.",
|
|
40268
|
+
mapValue: {
|
|
40269
|
+
types: [
|
|
40270
|
+
"string"
|
|
40271
|
+
]
|
|
40272
|
+
}
|
|
40273
|
+
},
|
|
40274
|
+
keyUpMap: {
|
|
40275
|
+
types: [
|
|
40276
|
+
"object"
|
|
40277
|
+
],
|
|
40278
|
+
description: "Maps a keyup `e.code` \u2192 the board's SEMANTIC event.",
|
|
40279
|
+
mapValue: {
|
|
40280
|
+
types: [
|
|
40281
|
+
"string"
|
|
40282
|
+
]
|
|
40283
|
+
}
|
|
40284
|
+
},
|
|
40058
40285
|
isLoading: {
|
|
40059
40286
|
types: [
|
|
40060
40287
|
"boolean"
|
|
@@ -47751,7 +47978,7 @@ var integrators_registry_default = {
|
|
|
47751
47978
|
// src/patterns/component-mapping.json
|
|
47752
47979
|
var component_mapping_default = {
|
|
47753
47980
|
version: "1.0.0",
|
|
47754
|
-
exportedAt: "2026-08-
|
|
47981
|
+
exportedAt: "2026-08-20T06:39:15.858Z",
|
|
47755
47982
|
mappings: {
|
|
47756
47983
|
"page-header": {
|
|
47757
47984
|
component: "PageHeader",
|
|
@@ -49151,7 +49378,7 @@ var component_mapping_default = {
|
|
|
49151
49378
|
// src/patterns/event-contracts.json
|
|
49152
49379
|
var event_contracts_default = {
|
|
49153
49380
|
version: "1.0.0",
|
|
49154
|
-
exportedAt: "2026-08-
|
|
49381
|
+
exportedAt: "2026-08-20T06:39:15.858Z",
|
|
49155
49382
|
contracts: {
|
|
49156
49383
|
form: {
|
|
49157
49384
|
emits: [
|
|
@@ -51056,6 +51283,9 @@ function eventListPropsOf(patternType) {
|
|
|
51056
51283
|
eventListPropsCache.set(patternType, out);
|
|
51057
51284
|
return out;
|
|
51058
51285
|
}
|
|
51286
|
+
function getPatternFieldsContract(patternType) {
|
|
51287
|
+
return getPatternDefinition(patternType)?.fieldsContract;
|
|
51288
|
+
}
|
|
51059
51289
|
function isDrawablePattern(patternType) {
|
|
51060
51290
|
const definition = getPatternDefinition(patternType);
|
|
51061
51291
|
if (!definition) return false;
|
|
@@ -51095,6 +51325,6 @@ function propHostsDrawables(schema) {
|
|
|
51095
51325
|
return false;
|
|
51096
51326
|
}
|
|
51097
51327
|
|
|
51098
|
-
export { COMPONENT_MAPPING, EVENT_CONTRACTS, INTEGRATORS_REGISTRY, PATTERN_REGISTRY, PATTERN_TYPES, buildRecommendationContext, collectRenderUiPatternTypes, component_mapping_default as componentMapping, event_contracts_default as eventContracts, eventKeyPropsOf, eventListPropsOf, findCompatiblePatterns, formatRecommendationsForPrompt, generatePatternDescription, getAllPatternTypes, getComponentForPattern, getEmittedEvents, getEntityCardinality, getOrbAllowedPatterns, getOrbAllowedPatternsCompact, getOrbAllowedPatternsFiltered, getOrbAllowedPatternsSlim, getPatternActionsRef, getPatternDefinition, getPatternMetadata, getPatternPropsCompact, getPatternsGroupedByCategory, integrators_registry_default as integratorsRegistry, isContentBodyPattern, isContentBodyPatternType, isDrawHostPattern, isDrawablePattern, isEntityAwarePattern, isMainSlotRenderUi, isValidPatternType, isValueInputPattern, patterns_registry_default as patternsRegistry, recommendPatterns, registry, renderUiPatternTypesOf };
|
|
51328
|
+
export { COMPONENT_MAPPING, EVENT_CONTRACTS, INTEGRATORS_REGISTRY, PATTERN_REGISTRY, PATTERN_TYPES, buildRecommendationContext, collectRenderUiPatternTypes, component_mapping_default as componentMapping, event_contracts_default as eventContracts, eventKeyPropsOf, eventListPropsOf, findCompatiblePatterns, formatRecommendationsForPrompt, generatePatternDescription, getAllPatternTypes, getComponentForPattern, getEmittedEvents, getEntityCardinality, getOrbAllowedPatterns, getOrbAllowedPatternsCompact, getOrbAllowedPatternsFiltered, getOrbAllowedPatternsSlim, getPatternActionsRef, getPatternDefinition, getPatternFieldsContract, getPatternMetadata, getPatternPropsCompact, getPatternsGroupedByCategory, integrators_registry_default as integratorsRegistry, isContentBodyPattern, isContentBodyPatternType, isDrawHostPattern, isDrawablePattern, isEntityAwarePattern, isMainSlotRenderUi, isValidPatternType, isValueInputPattern, patterns_registry_default as patternsRegistry, recommendPatterns, registry, renderUiPatternTypesOf };
|
|
51099
51329
|
//# sourceMappingURL=index.js.map
|
|
51100
51330
|
//# sourceMappingURL=index.js.map
|