@almadar/patterns 2.20.0 → 2.20.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 +17 -5
- package/dist/index.js +20 -9
- package/dist/index.js.map +1 -1
- package/dist/patterns-registry.json +18 -7
- package/dist/registry.json +18 -7
- package/dist/types.d.ts +40 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -9391,7 +9391,10 @@ export declare const registry: {
|
|
|
9391
9391
|
fields: {
|
|
9392
9392
|
types: string[];
|
|
9393
9393
|
description: string;
|
|
9394
|
-
|
|
9394
|
+
};
|
|
9395
|
+
columns: {
|
|
9396
|
+
types: string[];
|
|
9397
|
+
description: string;
|
|
9395
9398
|
};
|
|
9396
9399
|
itemActions: {
|
|
9397
9400
|
types: string[];
|
|
@@ -9489,7 +9492,10 @@ export declare const registry: {
|
|
|
9489
9492
|
fields: {
|
|
9490
9493
|
types: string[];
|
|
9491
9494
|
description: string;
|
|
9492
|
-
|
|
9495
|
+
};
|
|
9496
|
+
columns: {
|
|
9497
|
+
types: string[];
|
|
9498
|
+
description: string;
|
|
9493
9499
|
};
|
|
9494
9500
|
itemActions: {
|
|
9495
9501
|
types: string[];
|
|
@@ -26038,7 +26044,10 @@ export declare const PATTERN_REGISTRY: {
|
|
|
26038
26044
|
fields: {
|
|
26039
26045
|
types: string[];
|
|
26040
26046
|
description: string;
|
|
26041
|
-
|
|
26047
|
+
};
|
|
26048
|
+
columns: {
|
|
26049
|
+
types: string[];
|
|
26050
|
+
description: string;
|
|
26042
26051
|
};
|
|
26043
26052
|
itemActions: {
|
|
26044
26053
|
types: string[];
|
|
@@ -26136,7 +26145,10 @@ export declare const PATTERN_REGISTRY: {
|
|
|
26136
26145
|
fields: {
|
|
26137
26146
|
types: string[];
|
|
26138
26147
|
description: string;
|
|
26139
|
-
|
|
26148
|
+
};
|
|
26149
|
+
columns: {
|
|
26150
|
+
types: string[];
|
|
26151
|
+
description: string;
|
|
26140
26152
|
};
|
|
26141
26153
|
itemActions: {
|
|
26142
26154
|
types: string[];
|
|
@@ -36419,7 +36431,7 @@ export declare const EVENT_CONTRACTS: {
|
|
|
36419
36431
|
};
|
|
36420
36432
|
};
|
|
36421
36433
|
import type { PatternPropDef } from './types.js';
|
|
36422
|
-
export type { PatternPropDef, PropKind } from './types.js';
|
|
36434
|
+
export type { PatternPropDef, PropKind, PatternPayloadField, PatternCallbackArg, } from './types.js';
|
|
36423
36435
|
export type { ItemActionPayload, SelectionChangePayload, LoadMoreRequestPayload, FormSubmitPayload, } from './payloads.js';
|
|
36424
36436
|
export type PatternEntry = {
|
|
36425
36437
|
type: string;
|
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-04T08:21:23.048Z",
|
|
5
5
|
patterns: {
|
|
6
6
|
"entity-table": {
|
|
7
7
|
type: "entity-table",
|
|
@@ -3977,9 +3977,10 @@ var patterns_registry_default = {
|
|
|
3977
3977
|
},
|
|
3978
3978
|
label: {
|
|
3979
3979
|
types: [
|
|
3980
|
-
"string"
|
|
3980
|
+
"string",
|
|
3981
|
+
"number"
|
|
3981
3982
|
],
|
|
3982
|
-
description: "Badge label text (alternative to children for schema-driven rendering)"
|
|
3983
|
+
description: "Badge label text (alternative to children for schema-driven rendering). Numeric values are auto-coerced to string for rendering \u2014 common case is unread counts, error counts, status codes, etc."
|
|
3983
3984
|
},
|
|
3984
3985
|
icon: {
|
|
3985
3986
|
types: [
|
|
@@ -14712,8 +14713,13 @@ var patterns_registry_default = {
|
|
|
14712
14713
|
types: [
|
|
14713
14714
|
"array"
|
|
14714
14715
|
],
|
|
14715
|
-
description: "Field definitions for rendering each card"
|
|
14716
|
-
|
|
14716
|
+
description: "Field definitions for rendering each card. The pattern contract in `@almadar/patterns` documents `columns` as the wire-format alias the compiler emits \u2014 both names resolve to the same shape here. Pass either."
|
|
14717
|
+
},
|
|
14718
|
+
columns: {
|
|
14719
|
+
types: [
|
|
14720
|
+
"array"
|
|
14721
|
+
],
|
|
14722
|
+
description: "Alias for `fields` \u2014 the compiler emits `columns` for field defs."
|
|
14717
14723
|
},
|
|
14718
14724
|
itemActions: {
|
|
14719
14725
|
types: [
|
|
@@ -14869,8 +14875,13 @@ var patterns_registry_default = {
|
|
|
14869
14875
|
types: [
|
|
14870
14876
|
"array"
|
|
14871
14877
|
],
|
|
14872
|
-
description: "Field definitions for rendering each row"
|
|
14873
|
-
|
|
14878
|
+
description: "Field definitions for rendering each row. The pattern contract in `@almadar/patterns` documents `columns` as the wire-format alias the compiler emits \u2014 both names resolve to the same shape here. Pass either."
|
|
14879
|
+
},
|
|
14880
|
+
columns: {
|
|
14881
|
+
types: [
|
|
14882
|
+
"array"
|
|
14883
|
+
],
|
|
14884
|
+
description: "Alias for `fields` \u2014 the compiler emits `columns` for field defs."
|
|
14874
14885
|
},
|
|
14875
14886
|
itemActions: {
|
|
14876
14887
|
types: [
|
|
@@ -26656,7 +26667,7 @@ var integrators_registry_default = {
|
|
|
26656
26667
|
// src/component-mapping.json
|
|
26657
26668
|
var component_mapping_default = {
|
|
26658
26669
|
version: "1.0.0",
|
|
26659
|
-
exportedAt: "2026-05-
|
|
26670
|
+
exportedAt: "2026-05-04T08:21:23.048Z",
|
|
26660
26671
|
mappings: {
|
|
26661
26672
|
"page-header": {
|
|
26662
26673
|
component: "PageHeader",
|
|
@@ -28467,7 +28478,7 @@ var component_mapping_default = {
|
|
|
28467
28478
|
// src/event-contracts.json
|
|
28468
28479
|
var event_contracts_default = {
|
|
28469
28480
|
version: "1.0.0",
|
|
28470
|
-
exportedAt: "2026-05-
|
|
28481
|
+
exportedAt: "2026-05-04T08:21:23.048Z",
|
|
28471
28482
|
contracts: {
|
|
28472
28483
|
form: {
|
|
28473
28484
|
emits: [
|