@eui/eds-shared 22.0.0-alpha.39 → 22.0.0-alpha.41
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 +64 -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 +53 -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",
|
|
@@ -1170,6 +1202,22 @@
|
|
|
1170
1202
|
"storybook": false
|
|
1171
1203
|
}
|
|
1172
1204
|
},
|
|
1205
|
+
{
|
|
1206
|
+
"id": "eds-floating-panel",
|
|
1207
|
+
"label": "Floating Panel",
|
|
1208
|
+
"group": "Components",
|
|
1209
|
+
"angularUrl": "/showcase-eds/components/eds-floating-panel",
|
|
1210
|
+
"category": "layout",
|
|
1211
|
+
"status": "DEMO",
|
|
1212
|
+
"statusColorVariant": "danger",
|
|
1213
|
+
"figmaLink": "",
|
|
1214
|
+
"availability": {
|
|
1215
|
+
"angular": true,
|
|
1216
|
+
"react": false,
|
|
1217
|
+
"webcomponents": false,
|
|
1218
|
+
"storybook": false
|
|
1219
|
+
}
|
|
1220
|
+
},
|
|
1173
1221
|
{
|
|
1174
1222
|
"id": "eds-file-upload",
|
|
1175
1223
|
"label": "File Upload",
|
|
@@ -1266,6 +1314,22 @@
|
|
|
1266
1314
|
"storybook": false
|
|
1267
1315
|
}
|
|
1268
1316
|
},
|
|
1317
|
+
{
|
|
1318
|
+
"id": "eds-menu",
|
|
1319
|
+
"label": "Menu",
|
|
1320
|
+
"group": "Components",
|
|
1321
|
+
"angularUrl": "/showcase-eds/components/eds-menu",
|
|
1322
|
+
"category": "layout",
|
|
1323
|
+
"status": "DEMO",
|
|
1324
|
+
"statusColorVariant": "danger",
|
|
1325
|
+
"figmaLink": "",
|
|
1326
|
+
"availability": {
|
|
1327
|
+
"angular": true,
|
|
1328
|
+
"react": false,
|
|
1329
|
+
"webcomponents": false,
|
|
1330
|
+
"storybook": false
|
|
1331
|
+
}
|
|
1332
|
+
},
|
|
1269
1333
|
{
|
|
1270
1334
|
"id": "eds-message-box-service",
|
|
1271
1335
|
"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,53 @@
|
|
|
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
|
+
/**
|
|
40
|
+
* Alternate text used for the row's tooltip (see the menu's `hasTooltip` options). When set,
|
|
41
|
+
* it overrides the label as the tooltip content; required for `hasTooltipOnlyOnExpanded`.
|
|
42
|
+
*/
|
|
43
|
+
tooltip?: string;
|
|
44
|
+
/** Status-dot color shown at the start of the row (e.g. a draft/demo status indicator). */
|
|
45
|
+
marker?: EdsMenuItemMarker;
|
|
46
|
+
/** Reference to the parent entry. Managed internally. */
|
|
47
|
+
parent?: EdsMenuItem;
|
|
48
|
+
/** Callback executed on click instead of navigation. */
|
|
49
|
+
command?: (...params: unknown[]) => void;
|
|
50
|
+
/** Generic typed metadata. */
|
|
51
|
+
metadata?: METADATA;
|
|
52
|
+
}
|
|
53
|
+
//# sourceMappingURL=eds-men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AAG,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.41",
|
|
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",
|