@eui/eds-shared 22.0.0-alpha.39 → 22.0.0-alpha.40
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/assets/eds-components.json +48 -0
- package/index.d.ts +1 -0
- package/index.d.ts.map +1 -1
- package/index.js +1 -0
- package/index.js.map +1 -1
- package/models/eds-menu-item.model.d.ts +48 -0
- package/models/eds-menu-item.model.d.ts.map +1 -0
- package/models/eds-menu-item.model.js +8 -0
- package/models/eds-menu-item.model.js.map +1 -0
- package/models/index.d.ts +2 -0
- package/models/index.d.ts.map +1 -0
- package/models/index.js +3 -0
- package/models/index.js.map +1 -0
- package/package.json +1 -1
|
@@ -1011,6 +1011,38 @@
|
|
|
1011
1011
|
"storybook": false
|
|
1012
1012
|
}
|
|
1013
1013
|
},
|
|
1014
|
+
{
|
|
1015
|
+
"id": "eds-content-item",
|
|
1016
|
+
"label": "Content Item",
|
|
1017
|
+
"group": "Components",
|
|
1018
|
+
"angularUrl": "/showcase-eds/components/eds-content-item",
|
|
1019
|
+
"category": "content",
|
|
1020
|
+
"status": "DEMO",
|
|
1021
|
+
"statusColorVariant": "danger",
|
|
1022
|
+
"figmaLink": "",
|
|
1023
|
+
"availability": {
|
|
1024
|
+
"angular": true,
|
|
1025
|
+
"react": true,
|
|
1026
|
+
"webcomponents": true,
|
|
1027
|
+
"storybook": false
|
|
1028
|
+
}
|
|
1029
|
+
},
|
|
1030
|
+
{
|
|
1031
|
+
"id": "eds-data-grid",
|
|
1032
|
+
"label": "Data Grid",
|
|
1033
|
+
"group": "Components",
|
|
1034
|
+
"angularUrl": "/showcase-eds/components/eds-data-grid",
|
|
1035
|
+
"category": "content",
|
|
1036
|
+
"status": "DEMO",
|
|
1037
|
+
"statusColorVariant": "danger",
|
|
1038
|
+
"figmaLink": "",
|
|
1039
|
+
"availability": {
|
|
1040
|
+
"angular": true,
|
|
1041
|
+
"react": false,
|
|
1042
|
+
"webcomponents": false,
|
|
1043
|
+
"storybook": false
|
|
1044
|
+
}
|
|
1045
|
+
},
|
|
1014
1046
|
{
|
|
1015
1047
|
"id": "eds-date-block",
|
|
1016
1048
|
"label": "Date Block",
|
|
@@ -1266,6 +1298,22 @@
|
|
|
1266
1298
|
"storybook": false
|
|
1267
1299
|
}
|
|
1268
1300
|
},
|
|
1301
|
+
{
|
|
1302
|
+
"id": "eds-menu",
|
|
1303
|
+
"label": "Menu",
|
|
1304
|
+
"group": "Components",
|
|
1305
|
+
"angularUrl": "/showcase-eds/components/eds-menu",
|
|
1306
|
+
"category": "layout",
|
|
1307
|
+
"status": "DEMO",
|
|
1308
|
+
"statusColorVariant": "danger",
|
|
1309
|
+
"figmaLink": "",
|
|
1310
|
+
"availability": {
|
|
1311
|
+
"angular": true,
|
|
1312
|
+
"react": false,
|
|
1313
|
+
"webcomponents": false,
|
|
1314
|
+
"storybook": false
|
|
1315
|
+
}
|
|
1316
|
+
},
|
|
1269
1317
|
{
|
|
1270
1318
|
"id": "eds-message-box-service",
|
|
1271
1319
|
"label": "eds-message-box (S)",
|
package/index.d.ts
CHANGED
package/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAKA,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAKA,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC"}
|
package/index.js
CHANGED
package/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,+CAA+C;AAC/C,EAAE;AACF,yFAAyF;AACzF,iGAAiG;AACjG,gGAAgG;AAChG,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,+CAA+C;AAC/C,EAAE;AACF,yFAAyF;AACzF,iGAAiG;AACjG,gGAAgG;AAChG,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Status-marker color for a menu row. Renders a small dot at the start of the row, tinted with
|
|
3
|
+
* the matching EDS semantic foreground token (e.g. a "draft"/"demo" status dot).
|
|
4
|
+
*/
|
|
5
|
+
export type EdsMenuItemMarker = 'primary' | 'neutral' | 'info' | 'success' | 'warning' | 'critical';
|
|
6
|
+
/**
|
|
7
|
+
* Data model for a single entry in an EDS navigation menu when used in data-driven mode.
|
|
8
|
+
*
|
|
9
|
+
* An entry is either a navigable/expandable item (has `label`) or a plain category caption
|
|
10
|
+
* (set `category: true` with a `label`). Items nest via `children` to any depth.
|
|
11
|
+
*/
|
|
12
|
+
export interface EdsMenuItem<METADATA = unknown> {
|
|
13
|
+
/** Unique id. Auto-generated when omitted. */
|
|
14
|
+
id?: string;
|
|
15
|
+
/** Display label. */
|
|
16
|
+
label?: string;
|
|
17
|
+
/** When true, this entry renders as a plain-text category caption (not interactive). */
|
|
18
|
+
category?: boolean;
|
|
19
|
+
/** EDS icon name (e.g. 'house', 'calendar'). Omit for an icon-less item. */
|
|
20
|
+
icon?: string;
|
|
21
|
+
/** Internal router URL. */
|
|
22
|
+
url?: string;
|
|
23
|
+
/** Router query params. */
|
|
24
|
+
queryParams?: Record<string, string>;
|
|
25
|
+
/** External URL (opens in a new tab by default). */
|
|
26
|
+
urlExternal?: string;
|
|
27
|
+
/** Target for the external URL. Defaults to '_blank'. */
|
|
28
|
+
urlExternalTarget?: string;
|
|
29
|
+
/** Child entries for a multi-level item. */
|
|
30
|
+
children?: EdsMenuItem[];
|
|
31
|
+
/** Whether the item starts expanded (parent items only). */
|
|
32
|
+
expanded?: boolean;
|
|
33
|
+
/** Whether the item is the active/selected entry. */
|
|
34
|
+
active?: boolean;
|
|
35
|
+
/** Whether the item is disabled. */
|
|
36
|
+
disabled?: boolean;
|
|
37
|
+
/** Count badge text shown right-aligned on the row. */
|
|
38
|
+
badge?: string;
|
|
39
|
+
/** Status-dot color shown at the start of the row (e.g. a draft/demo status indicator). */
|
|
40
|
+
marker?: EdsMenuItemMarker;
|
|
41
|
+
/** Reference to the parent entry. Managed internally. */
|
|
42
|
+
parent?: EdsMenuItem;
|
|
43
|
+
/** Callback executed on click instead of navigation. */
|
|
44
|
+
command?: (...params: unknown[]) => void;
|
|
45
|
+
/** Generic typed metadata. */
|
|
46
|
+
metadata?: METADATA;
|
|
47
|
+
}
|
|
48
|
+
//# sourceMappingURL=eds-menu-item.model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eds-menu-item.model.d.ts","sourceRoot":"","sources":["../../src/models/eds-menu-item.model.ts"],"names":[],"mappings":"AAOA;;;GAGG;AACH,MAAM,MAAM,iBAAiB,GACvB,SAAS,GACT,SAAS,GACT,MAAM,GACN,SAAS,GACT,SAAS,GACT,UAAU,CAAC;AAEjB;;;;;GAKG;AACH,MAAM,WAAW,WAAW,CAAC,QAAQ,GAAG,OAAO;IAC3C,8CAA8C;IAC9C,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ,qBAAqB;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,wFAAwF;IACxF,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB,4EAA4E;IAC5E,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd,2BAA2B;IAC3B,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb,2BAA2B;IAC3B,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAErC,oDAAoD;IACpD,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,yDAAyD;IACzD,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAE3B,4CAA4C;IAC5C,QAAQ,CAAC,EAAE,WAAW,EAAE,CAAC;IAEzB,4DAA4D;IAC5D,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB,qDAAqD;IACrD,MAAM,CAAC,EAAE,OAAO,CAAC;IAEjB,oCAAoC;IACpC,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB,uDAAuD;IACvD,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,2FAA2F;IAC3F,MAAM,CAAC,EAAE,iBAAiB,CAAC;IAE3B,yDAAyD;IACzD,MAAM,CAAC,EAAE,WAAW,CAAC;IAErB,wDAAwD;IACxD,OAAO,CAAC,EAAE,CAAC,GAAG,MAAM,EAAE,OAAO,EAAE,KAAK,IAAI,CAAC;IAEzC,8BAA8B;IAC9B,QAAQ,CAAC,EAAE,QAAQ,CAAC;CACvB"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
// Framework-agnostic data contract for an EDS navigation menu entry.
|
|
2
|
+
//
|
|
3
|
+
// This is THE canonical menu-item interface, shared across every EDS projection:
|
|
4
|
+
// @eui/eds (Angular), @eui/eds-react (React), @eui/eds-wc (Web Components).
|
|
5
|
+
// It is consumed by the sidebar menu (`eds-sidebar-menu` / `EdsSidebarMenu` / `eds-wc-sidebar`)
|
|
6
|
+
// and the shell. Pure TypeScript only — no Angular/React/Lit/DOM imports.
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=eds-menu-item.model.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eds-menu-item.model.js","sourceRoot":"","sources":["../../src/models/eds-menu-item.model.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,EAAE;AACF,iFAAiF;AACjF,8EAA8E;AAC9E,gGAAgG;AAChG,0EAA0E"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/models/index.ts"],"names":[],"mappings":"AACA,cAAc,uBAAuB,CAAC"}
|
package/models/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/index.ts"],"names":[],"mappings":"AAAA,6EAA6E;AAC7E,cAAc,uBAAuB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eui/eds-shared",
|
|
3
|
-
"version": "22.0.0-alpha.
|
|
3
|
+
"version": "22.0.0-alpha.40",
|
|
4
4
|
"description": "EDS Shared — framework-agnostic pure-TypeScript primitives (types, unions, constants, helpers) shared across the @eui/eds Angular, @eui/eds-react and @eui/eds-wc projections. No framework dependency.",
|
|
5
5
|
"homepage": "https://eui.ecdevops.eu",
|
|
6
6
|
"author": "ec.europa.eui@gmail.com",
|