@almadar/patterns 2.20.2 → 2.20.3
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 +78 -0
- package/dist/index.js +62 -7
- package/dist/index.js.map +1 -1
- package/dist/patterns-registry.json +60 -5
- package/dist/registry.json +60 -5
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -5505,6 +5505,45 @@ export declare const registry: {
|
|
|
5505
5505
|
types: string[];
|
|
5506
5506
|
description: string;
|
|
5507
5507
|
};
|
|
5508
|
+
searchEvent: {
|
|
5509
|
+
types: string[];
|
|
5510
|
+
description: string;
|
|
5511
|
+
kind: string;
|
|
5512
|
+
emitPayloadSchema: {
|
|
5513
|
+
name: string;
|
|
5514
|
+
type: string;
|
|
5515
|
+
required: boolean;
|
|
5516
|
+
}[];
|
|
5517
|
+
};
|
|
5518
|
+
onSearchSubmit: {
|
|
5519
|
+
types: string[];
|
|
5520
|
+
description: string;
|
|
5521
|
+
kind: string;
|
|
5522
|
+
callbackArgs: {
|
|
5523
|
+
name: string;
|
|
5524
|
+
type: string;
|
|
5525
|
+
}[];
|
|
5526
|
+
};
|
|
5527
|
+
notifications: {
|
|
5528
|
+
types: string[];
|
|
5529
|
+
description: string;
|
|
5530
|
+
};
|
|
5531
|
+
notificationClickEvent: {
|
|
5532
|
+
types: string[];
|
|
5533
|
+
description: string;
|
|
5534
|
+
kind: string;
|
|
5535
|
+
emitPayloadSchema: never[];
|
|
5536
|
+
};
|
|
5537
|
+
onNotificationClick: {
|
|
5538
|
+
types: string[];
|
|
5539
|
+
description: string;
|
|
5540
|
+
kind: string;
|
|
5541
|
+
callbackArgs: never[];
|
|
5542
|
+
};
|
|
5543
|
+
showThemeToggle: {
|
|
5544
|
+
types: string[];
|
|
5545
|
+
description: string;
|
|
5546
|
+
};
|
|
5508
5547
|
sidebarFooter: {
|
|
5509
5548
|
types: string[];
|
|
5510
5549
|
description: string;
|
|
@@ -22158,6 +22197,45 @@ export declare const PATTERN_REGISTRY: {
|
|
|
22158
22197
|
types: string[];
|
|
22159
22198
|
description: string;
|
|
22160
22199
|
};
|
|
22200
|
+
searchEvent: {
|
|
22201
|
+
types: string[];
|
|
22202
|
+
description: string;
|
|
22203
|
+
kind: string;
|
|
22204
|
+
emitPayloadSchema: {
|
|
22205
|
+
name: string;
|
|
22206
|
+
type: string;
|
|
22207
|
+
required: boolean;
|
|
22208
|
+
}[];
|
|
22209
|
+
};
|
|
22210
|
+
onSearchSubmit: {
|
|
22211
|
+
types: string[];
|
|
22212
|
+
description: string;
|
|
22213
|
+
kind: string;
|
|
22214
|
+
callbackArgs: {
|
|
22215
|
+
name: string;
|
|
22216
|
+
type: string;
|
|
22217
|
+
}[];
|
|
22218
|
+
};
|
|
22219
|
+
notifications: {
|
|
22220
|
+
types: string[];
|
|
22221
|
+
description: string;
|
|
22222
|
+
};
|
|
22223
|
+
notificationClickEvent: {
|
|
22224
|
+
types: string[];
|
|
22225
|
+
description: string;
|
|
22226
|
+
kind: string;
|
|
22227
|
+
emitPayloadSchema: never[];
|
|
22228
|
+
};
|
|
22229
|
+
onNotificationClick: {
|
|
22230
|
+
types: string[];
|
|
22231
|
+
description: string;
|
|
22232
|
+
kind: string;
|
|
22233
|
+
callbackArgs: never[];
|
|
22234
|
+
};
|
|
22235
|
+
showThemeToggle: {
|
|
22236
|
+
types: string[];
|
|
22237
|
+
description: string;
|
|
22238
|
+
};
|
|
22161
22239
|
sidebarFooter: {
|
|
22162
22240
|
types: string[];
|
|
22163
22241
|
description: 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-04T18:38:26.384Z",
|
|
5
5
|
patterns: {
|
|
6
6
|
"entity-table": {
|
|
7
7
|
type: "entity-table",
|
|
@@ -8712,7 +8712,7 @@ var patterns_registry_default = {
|
|
|
8712
8712
|
types: [
|
|
8713
8713
|
"array"
|
|
8714
8714
|
],
|
|
8715
|
-
description: "Navigation items"
|
|
8715
|
+
description: "Navigation items. Apps that need a Settings page should add it as a navItems entry, not depend on baked-in chrome."
|
|
8716
8716
|
},
|
|
8717
8717
|
user: {
|
|
8718
8718
|
types: [
|
|
@@ -8724,19 +8724,74 @@ var patterns_registry_default = {
|
|
|
8724
8724
|
types: [
|
|
8725
8725
|
"node"
|
|
8726
8726
|
],
|
|
8727
|
-
description: "Header actions (
|
|
8727
|
+
description: "Header actions (extra slots beyond bell/search/theme)."
|
|
8728
8728
|
},
|
|
8729
8729
|
showSearch: {
|
|
8730
8730
|
types: [
|
|
8731
8731
|
"boolean"
|
|
8732
8732
|
],
|
|
8733
|
-
description: "Show search in
|
|
8733
|
+
description: "Show the top-bar search box. Default `false` \u2014 opt in by setting `searchEvent` (any truthy value implies showSearch) or this flag."
|
|
8734
|
+
},
|
|
8735
|
+
searchEvent: {
|
|
8736
|
+
types: [
|
|
8737
|
+
"string"
|
|
8738
|
+
],
|
|
8739
|
+
description: "Declarative search event \u2014 fires `UI:{searchEvent}` on the bus when the user submits the search box (Enter key). Setting this implies `showSearch=true`. Use `onSearchSubmit` for direct React usage instead.",
|
|
8740
|
+
kind: "event-ref",
|
|
8741
|
+
emitPayloadSchema: [
|
|
8742
|
+
{
|
|
8743
|
+
name: "value",
|
|
8744
|
+
type: "string",
|
|
8745
|
+
required: true
|
|
8746
|
+
}
|
|
8747
|
+
]
|
|
8748
|
+
},
|
|
8749
|
+
onSearchSubmit: {
|
|
8750
|
+
types: [
|
|
8751
|
+
"function"
|
|
8752
|
+
],
|
|
8753
|
+
description: "React-side search submit callback. Used when the host wires the layout directly (not via render-ui pattern resolution).",
|
|
8754
|
+
kind: "callback",
|
|
8755
|
+
callbackArgs: [
|
|
8756
|
+
{
|
|
8757
|
+
name: "value",
|
|
8758
|
+
type: "string"
|
|
8759
|
+
}
|
|
8760
|
+
]
|
|
8761
|
+
},
|
|
8762
|
+
notifications: {
|
|
8763
|
+
types: [
|
|
8764
|
+
"array"
|
|
8765
|
+
],
|
|
8766
|
+
description: "Notification list. Pass an empty array to show the bell with no badge; omit / pass null to hide the bell entirely."
|
|
8767
|
+
},
|
|
8768
|
+
notificationClickEvent: {
|
|
8769
|
+
types: [
|
|
8770
|
+
"string"
|
|
8771
|
+
],
|
|
8772
|
+
description: "Declarative bell click event \u2014 fires `UI:{notificationClickEvent}` on the bus with an empty payload when the user clicks the bell.",
|
|
8773
|
+
kind: "event-ref",
|
|
8774
|
+
emitPayloadSchema: []
|
|
8775
|
+
},
|
|
8776
|
+
onNotificationClick: {
|
|
8777
|
+
types: [
|
|
8778
|
+
"function"
|
|
8779
|
+
],
|
|
8780
|
+
description: "React-side bell click callback.",
|
|
8781
|
+
kind: "callback",
|
|
8782
|
+
callbackArgs: []
|
|
8783
|
+
},
|
|
8784
|
+
showThemeToggle: {
|
|
8785
|
+
types: [
|
|
8786
|
+
"boolean"
|
|
8787
|
+
],
|
|
8788
|
+
description: "Show the theme toggle button in the header. Default `true` \u2014 universally useful for a11y / dark mode."
|
|
8734
8789
|
},
|
|
8735
8790
|
sidebarFooter: {
|
|
8736
8791
|
types: [
|
|
8737
8792
|
"node"
|
|
8738
8793
|
],
|
|
8739
|
-
description: "Custom sidebar footer"
|
|
8794
|
+
description: "Custom sidebar footer (optional). When omitted, the sidebar has no footer \u2014 apps that need Settings/etc. add them via navItems."
|
|
8740
8795
|
},
|
|
8741
8796
|
onSignOut: {
|
|
8742
8797
|
types: [
|
|
@@ -26667,7 +26722,7 @@ var integrators_registry_default = {
|
|
|
26667
26722
|
// src/component-mapping.json
|
|
26668
26723
|
var component_mapping_default = {
|
|
26669
26724
|
version: "1.0.0",
|
|
26670
|
-
exportedAt: "2026-05-
|
|
26725
|
+
exportedAt: "2026-05-04T18:38:26.384Z",
|
|
26671
26726
|
mappings: {
|
|
26672
26727
|
"page-header": {
|
|
26673
26728
|
component: "PageHeader",
|
|
@@ -28478,7 +28533,7 @@ var component_mapping_default = {
|
|
|
28478
28533
|
// src/event-contracts.json
|
|
28479
28534
|
var event_contracts_default = {
|
|
28480
28535
|
version: "1.0.0",
|
|
28481
|
-
exportedAt: "2026-05-
|
|
28536
|
+
exportedAt: "2026-05-04T18:38:26.384Z",
|
|
28482
28537
|
contracts: {
|
|
28483
28538
|
form: {
|
|
28484
28539
|
emits: [
|