@egen-civitas/esm-styleguide 1.9.0 → 1.10.1
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/CHANGELOG.md +12 -0
- package/dist/internal.d.ts +1 -0
- package/dist/internal.d.ts.map +1 -1
- package/dist/internal.js +1 -0
- package/dist/public.d.ts +1 -0
- package/dist/public.d.ts.map +1 -1
- package/dist/public.js +1 -0
- package/dist/sites/index.d.ts +13 -0
- package/dist/sites/index.d.ts.map +1 -0
- package/dist/sites/index.js +19 -0
- package/dist/sites/site-activity-panel.component.d.ts +13 -0
- package/dist/sites/site-activity-panel.component.d.ts.map +1 -0
- package/dist/sites/site-activity-panel.component.js +180 -0
- package/dist/sites/site-applications-panel.component.d.ts +14 -0
- package/dist/sites/site-applications-panel.component.d.ts.map +1 -0
- package/dist/sites/site-applications-panel.component.js +139 -0
- package/dist/sites/site-banner.component.d.ts +16 -0
- package/dist/sites/site-banner.component.d.ts.map +1 -0
- package/dist/sites/site-banner.component.js +57 -0
- package/dist/sites/site-carousel.component.d.ts +18 -0
- package/dist/sites/site-carousel.component.d.ts.map +1 -0
- package/dist/sites/site-carousel.component.js +148 -0
- package/dist/sites/site-members-panel.component.d.ts +13 -0
- package/dist/sites/site-members-panel.component.d.ts.map +1 -0
- package/dist/sites/site-members-panel.component.js +188 -0
- package/dist/sites/site-panel-header.component.d.ts +13 -0
- package/dist/sites/site-panel-header.component.d.ts.map +1 -0
- package/dist/sites/site-panel-header.component.js +33 -0
- package/dist/sites/site-resources-panel.component.d.ts +28 -0
- package/dist/sites/site-resources-panel.component.d.ts.map +1 -0
- package/dist/sites/site-resources-panel.component.js +152 -0
- package/dist/sites/site-search-bar.component.d.ts +18 -0
- package/dist/sites/site-search-bar.component.d.ts.map +1 -0
- package/dist/sites/site-search-bar.component.js +84 -0
- package/dist/sites/site-settings-panel.component.d.ts +19 -0
- package/dist/sites/site-settings-panel.component.d.ts.map +1 -0
- package/dist/sites/site-settings-panel.component.js +296 -0
- package/dist/sites/site-tabbed-layout.component.d.ts +23 -0
- package/dist/sites/site-tabbed-layout.component.d.ts.map +1 -0
- package/dist/sites/site-tabbed-layout.component.js +90 -0
- package/dist/sites/site-tasks-panel.component.d.ts +20 -0
- package/dist/sites/site-tasks-panel.component.d.ts.map +1 -0
- package/dist/sites/site-tasks-panel.component.js +386 -0
- package/dist/sites/site.types.d.ts +96 -0
- package/dist/sites/site.types.d.ts.map +1 -0
- package/dist/sites/site.types.js +1 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @egen-civitas/esm-styleguide
|
|
2
2
|
|
|
3
|
+
## 1.10.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- d8f7023: Exporte la catégorie `sites` depuis le point d'entrée `internal` (celui du `.` du package, donc de `@egen-civitas/esm-framework`) : elle n'était exposée que par `public`, les apps ne la voyaient pas.
|
|
8
|
+
|
|
9
|
+
## 1.10.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- 6a75627: Ajoute la catégorie `sites` (Tailwind, présentationnelle) : `SiteCarousel`, `SiteSearchBar`, `SiteTabbedLayout`, `SitePanelHeader`, `SiteBanner` et les panneaux `SiteApplicationsPanel`, `SiteResourcesPanel`, `SiteMembersPanel`, `SiteTasksPanel`, `SiteActivityPanel`, `SiteSettingsPanel`, avec leurs types. Reprise des composants « sites » de Civitas-GED, rendus autonomes : aucun routage, aucune donnée ni son, tout passe par les props et callbacks.
|
|
14
|
+
|
|
3
15
|
## 1.9.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
package/dist/internal.d.ts
CHANGED
|
@@ -44,6 +44,7 @@ export * from './carousel/index.js';
|
|
|
44
44
|
export * from './content-section/index.js';
|
|
45
45
|
export * from './hero-mosaic/index.js';
|
|
46
46
|
export * from './top-bar/index.js';
|
|
47
|
+
export * from './sites/index.js';
|
|
47
48
|
export * from './assistant/index.js';
|
|
48
49
|
export * from './filters/index.js';
|
|
49
50
|
//# sourceMappingURL=internal.d.ts.map
|
package/dist/internal.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../src/internal.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qCAAqC,CAAC;AACpD,cAAc,iCAAiC,CAAC;AAChD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,uBAAuB,CAAC;AACtC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,mBAAmB,CAAC;AAClC,cAAc,0BAA0B,CAAC;AACzC,cAAc,sDAAsD,CAAC;AACrE,cAAc,2CAA2C,CAAC;AAC1D,cAAc,oDAAoD,CAAC;AACnE,cAAc,4BAA4B,CAAC;AAC3C,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,sBAAsB,CAAC;AACrC,cAAc,mCAAmC,CAAC;AAClD,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,uDAAuD,CAAC;AACtE,cAAc,2BAA2B,CAAC;AAC1C,cAAc,mCAAmC,CAAC;AAClD,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;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cAAc,uDAAuD,CAAC;AACtE,cAAc,2BAA2B,CAAC;AAC1C,cAAc,mCAAmC,CAAC;AAClD,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC"}
|
package/dist/internal.js
CHANGED
|
@@ -44,5 +44,6 @@ export * from "./carousel/index.js";
|
|
|
44
44
|
export * from "./content-section/index.js";
|
|
45
45
|
export * from "./hero-mosaic/index.js";
|
|
46
46
|
export * from "./top-bar/index.js";
|
|
47
|
+
export * from "./sites/index.js";
|
|
47
48
|
export * from "./assistant/index.js";
|
|
48
49
|
export * from "./filters/index.js";
|
package/dist/public.d.ts
CHANGED
|
@@ -39,6 +39,7 @@ export * from './carousel/index.js';
|
|
|
39
39
|
export * from './content-section/index.js';
|
|
40
40
|
export * from './hero-mosaic/index.js';
|
|
41
41
|
export * from './top-bar/index.js';
|
|
42
|
+
export * from './sites/index.js';
|
|
42
43
|
export * from './assistant/index.js';
|
|
43
44
|
export * from './filters/index.js';
|
|
44
45
|
//# sourceMappingURL=public.d.ts.map
|
package/dist/public.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"public.d.ts","sourceRoot":"","sources":["../src/public.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AACjE,cAAc,kBAAkB,CAAC;AACjC,cAAc,iCAAiC,CAAC;AAChD,cAAc,qCAAqC,CAAC;AACpD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,uBAA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C;AAC9C,OAAO,EAAE,YAAY,EAAE,KAAK,kBAAkB,EAAE,KAAK,YAAY,EAAE,KAAK,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACnH,OAAO,EACL,SAAS,EACT,KAAK,WAAW,EAChB,KAAK,eAAe,EACpB,KAAK,SAAS,EACd,KAAK,YAAY,EACjB,KAAK,qBAAqB,GAC3B,MAAM,mBAAmB,CAAC;AAC3B,cAAc,wBAAwB,CAAC;AACvC,OAAO,EACL,gBAAgB,EAChB,qBAAqB,EACrB,oBAAoB,EACpB,4BAA4B,EAC5B,oBAAoB,EACpB,iBAAiB,EACjB,UAAU,EACV,KAAK,oBAAoB,EACzB,KAAK,yBAAyB,GAC/B,MAAM,wBAAwB,CAAC;AAChC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,mCAAmC,CAAC;AAClD,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC"}
|
package/dist/public.js
CHANGED
|
@@ -36,5 +36,6 @@ export * from "./carousel/index.js";
|
|
|
36
36
|
export * from "./content-section/index.js";
|
|
37
37
|
export * from "./hero-mosaic/index.js";
|
|
38
38
|
export * from "./top-bar/index.js";
|
|
39
|
+
export * from "./sites/index.js";
|
|
39
40
|
export * from "./assistant/index.js";
|
|
40
41
|
export * from "./filters/index.js";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export * from './site.types.js';
|
|
2
|
+
export * from './site-carousel.component.js';
|
|
3
|
+
export * from './site-search-bar.component.js';
|
|
4
|
+
export * from './site-tabbed-layout.component.js';
|
|
5
|
+
export * from './site-panel-header.component.js';
|
|
6
|
+
export * from './site-applications-panel.component.js';
|
|
7
|
+
export * from './site-resources-panel.component.js';
|
|
8
|
+
export * from './site-members-panel.component.js';
|
|
9
|
+
export * from './site-tasks-panel.component.js';
|
|
10
|
+
export * from './site-activity-panel.component.js';
|
|
11
|
+
export * from './site-settings-panel.component.js';
|
|
12
|
+
export * from './site-banner.component.js';
|
|
13
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/sites/index.ts"],"names":[],"mappings":"AAOA,cAAc,iBAAiB,CAAC;AAChC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,mCAAmC,CAAC;AAClD,cAAc,kCAAkC,CAAC;AACjD,cAAc,wCAAwC,CAAC;AACvD,cAAc,qCAAqC,CAAC;AACpD,cAAc,mCAAmC,CAAC;AAClD,cAAc,iCAAiC,CAAC;AAChD,cAAc,oCAAoC,CAAC;AACnD,cAAc,oCAAoC,CAAC;AACnD,cAAc,4BAA4B,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// ============================================================================
|
|
2
|
+
// Catégorie « sites »
|
|
3
|
+
// Composants présentationnels (Tailwind) d'un espace « Sites » : sélection
|
|
4
|
+
// (carrousel + recherche/filtres), vue détaillée à onglets et panneaux
|
|
5
|
+
// (applications, ressources, membres, tâches, activité, paramètres).
|
|
6
|
+
// Aucun routage, aucune donnée, aucun son : tout vient des props/callbacks.
|
|
7
|
+
// ============================================================================
|
|
8
|
+
export * from "./site.types.js";
|
|
9
|
+
export * from "./site-carousel.component.js";
|
|
10
|
+
export * from "./site-search-bar.component.js";
|
|
11
|
+
export * from "./site-tabbed-layout.component.js";
|
|
12
|
+
export * from "./site-panel-header.component.js";
|
|
13
|
+
export * from "./site-applications-panel.component.js";
|
|
14
|
+
export * from "./site-resources-panel.component.js";
|
|
15
|
+
export * from "./site-members-panel.component.js";
|
|
16
|
+
export * from "./site-tasks-panel.component.js";
|
|
17
|
+
export * from "./site-activity-panel.component.js";
|
|
18
|
+
export * from "./site-settings-panel.component.js";
|
|
19
|
+
export * from "./site-banner.component.js";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/** @category Sites */
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import type { SiteActivity } from './site.types.js';
|
|
4
|
+
export interface SiteActivityPanelProps {
|
|
5
|
+
siteName: string;
|
|
6
|
+
activities: SiteActivity[];
|
|
7
|
+
/** Si fourni, affiche le bouton « Actualiser le flux » ; la promesse pilote l'animation. */
|
|
8
|
+
onRefresh?: () => void | Promise<void>;
|
|
9
|
+
className?: string;
|
|
10
|
+
}
|
|
11
|
+
/** Journal d'activité filtrable d'un site (timeline d'audit). */
|
|
12
|
+
export declare function SiteActivityPanel({ siteName, activities, onRefresh, className }: SiteActivityPanelProps): React.JSX.Element;
|
|
13
|
+
//# sourceMappingURL=site-activity-panel.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"site-activity-panel.component.d.ts","sourceRoot":"","sources":["../../src/sites/site-activity-panel.component.tsx"],"names":[],"mappings":"AAAA,sBAAsB;AACtB,OAAO,KAA4B,MAAM,OAAO,CAAC;AAIjD,OAAO,KAAK,EAAE,YAAY,EAAsB,MAAM,iBAAiB,CAAC;AAExE,MAAM,WAAW,sBAAsB;IACrC,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,YAAY,EAAE,CAAC;IAC3B,4FAA4F;IAC5F,SAAS,CAAC,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACvC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAkBD,iEAAiE;AACjE,wBAAgB,iBAAiB,CAAC,EAAE,QAAQ,EAAE,UAAU,EAAE,SAAS,EAAE,SAAS,EAAE,EAAE,sBAAsB,qBA0FvG"}
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
/** @category Sites */ import React, { useMemo, useState } from "react";
|
|
3
|
+
import { Activity, FileText, RefreshCw } from "lucide-react";
|
|
4
|
+
import { cn } from "../page-background/page-background.utils.js";
|
|
5
|
+
import { SitePanelHeader } from "./site-panel-header.component.js";
|
|
6
|
+
const FILTERS = [
|
|
7
|
+
{
|
|
8
|
+
id: 'all',
|
|
9
|
+
label: 'Tous les événements'
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
id: 'upload',
|
|
13
|
+
label: 'Téléversements & GED'
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
id: 'validate',
|
|
17
|
+
label: 'Validations & Scellements'
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
id: 'member_join',
|
|
21
|
+
label: 'Habilitations & Membres'
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
id: 'security',
|
|
25
|
+
label: 'Sécurité & Audit'
|
|
26
|
+
}
|
|
27
|
+
];
|
|
28
|
+
const BADGE = {
|
|
29
|
+
upload: {
|
|
30
|
+
cls: 'bg-sky-500',
|
|
31
|
+
glyph: '↑'
|
|
32
|
+
},
|
|
33
|
+
validate: {
|
|
34
|
+
cls: 'bg-emerald-500',
|
|
35
|
+
glyph: '✓'
|
|
36
|
+
},
|
|
37
|
+
member_join: {
|
|
38
|
+
cls: 'bg-amber-500',
|
|
39
|
+
glyph: '+'
|
|
40
|
+
},
|
|
41
|
+
security: {
|
|
42
|
+
cls: 'bg-indigo-500',
|
|
43
|
+
glyph: '!'
|
|
44
|
+
},
|
|
45
|
+
edit: {
|
|
46
|
+
cls: 'bg-teal-500',
|
|
47
|
+
glyph: '✎'
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
/** Journal d'activité filtrable d'un site (timeline d'audit). */ export function SiteActivityPanel({ siteName, activities, onRefresh, className }) {
|
|
51
|
+
const [filter, setFilter] = useState('all');
|
|
52
|
+
const [refreshing, setRefreshing] = useState(false);
|
|
53
|
+
const visible = useMemo(()=>activities.filter((a)=>filter === 'all' || a.action === filter), [
|
|
54
|
+
activities,
|
|
55
|
+
filter
|
|
56
|
+
]);
|
|
57
|
+
const refresh = async ()=>{
|
|
58
|
+
setRefreshing(true);
|
|
59
|
+
try {
|
|
60
|
+
await onRefresh?.();
|
|
61
|
+
} finally{
|
|
62
|
+
setRefreshing(false);
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
return /*#__PURE__*/ _jsxs("div", {
|
|
66
|
+
className: cn('flex-1 min-h-0 flex flex-col gap-3 text-slate-100', className),
|
|
67
|
+
children: [
|
|
68
|
+
/*#__PURE__*/ _jsx(SitePanelHeader, {
|
|
69
|
+
icon: /*#__PURE__*/ _jsx(Activity, {
|
|
70
|
+
className: "w-4 h-4 text-sky-400"
|
|
71
|
+
}),
|
|
72
|
+
title: `Activité & Journal d'Audit — ${siteName}`,
|
|
73
|
+
description: "Traçabilité en temps réel des versements, consultations, modifications et habilitations du site.",
|
|
74
|
+
actions: onRefresh && /*#__PURE__*/ _jsxs("button", {
|
|
75
|
+
type: "button",
|
|
76
|
+
disabled: refreshing,
|
|
77
|
+
onClick: refresh,
|
|
78
|
+
className: "px-3 py-1.5 rounded-lg bg-white/5 hover:bg-white/10 border border-white/10 text-slate-200 text-xs flex items-center gap-1.5 transition-colors cursor-pointer disabled:opacity-60",
|
|
79
|
+
children: [
|
|
80
|
+
/*#__PURE__*/ _jsx(RefreshCw, {
|
|
81
|
+
className: cn('w-3.5 h-3.5', refreshing && 'animate-spin text-teal-400')
|
|
82
|
+
}),
|
|
83
|
+
/*#__PURE__*/ _jsx("span", {
|
|
84
|
+
children: "Actualiser le flux"
|
|
85
|
+
})
|
|
86
|
+
]
|
|
87
|
+
})
|
|
88
|
+
}),
|
|
89
|
+
/*#__PURE__*/ _jsx("div", {
|
|
90
|
+
className: "flex items-center gap-1 bg-white/5 p-1 rounded-xl border border-white/10 text-xs overflow-x-auto",
|
|
91
|
+
children: FILTERS.map((f)=>/*#__PURE__*/ _jsxs("button", {
|
|
92
|
+
type: "button",
|
|
93
|
+
onClick: ()=>setFilter(f.id),
|
|
94
|
+
className: cn('px-3 py-1 rounded-lg font-medium whitespace-nowrap transition-colors cursor-pointer', filter === f.id ? 'bg-sky-500 text-slate-950 font-bold' : 'text-slate-300 hover:text-white'),
|
|
95
|
+
children: [
|
|
96
|
+
f.label,
|
|
97
|
+
f.id === 'all' && ` (${activities.length})`
|
|
98
|
+
]
|
|
99
|
+
}, f.id))
|
|
100
|
+
}),
|
|
101
|
+
/*#__PURE__*/ _jsx("ul", {
|
|
102
|
+
className: "flex-1 min-h-0 overflow-y-auto space-y-2 pr-1",
|
|
103
|
+
children: visible.map((item)=>/*#__PURE__*/ _jsxs("li", {
|
|
104
|
+
className: "p-3 rounded-xl bg-slate-900/60 border border-white/10 hover:border-sky-400/40 transition-all flex items-start gap-3",
|
|
105
|
+
children: [
|
|
106
|
+
/*#__PURE__*/ _jsxs("div", {
|
|
107
|
+
className: "relative shrink-0",
|
|
108
|
+
children: [
|
|
109
|
+
item.userAvatar ? /*#__PURE__*/ _jsx("img", {
|
|
110
|
+
src: item.userAvatar,
|
|
111
|
+
alt: "",
|
|
112
|
+
className: "w-8 h-8 rounded-full object-cover border border-white/20"
|
|
113
|
+
}) : /*#__PURE__*/ _jsx("span", {
|
|
114
|
+
className: "w-8 h-8 rounded-full bg-slate-700 border border-white/20 flex items-center justify-center text-[11px] font-bold",
|
|
115
|
+
children: item.userName.slice(0, 1)
|
|
116
|
+
}),
|
|
117
|
+
/*#__PURE__*/ _jsx("span", {
|
|
118
|
+
"aria-hidden": "true",
|
|
119
|
+
className: cn('absolute -bottom-1 -right-1 w-4 h-4 rounded-full flex items-center justify-center text-[9px] font-bold text-white border border-slate-950', BADGE[item.action].cls),
|
|
120
|
+
children: BADGE[item.action].glyph
|
|
121
|
+
})
|
|
122
|
+
]
|
|
123
|
+
}),
|
|
124
|
+
/*#__PURE__*/ _jsxs("div", {
|
|
125
|
+
className: "flex-1 min-w-0",
|
|
126
|
+
children: [
|
|
127
|
+
/*#__PURE__*/ _jsxs("div", {
|
|
128
|
+
className: "flex flex-col sm:flex-row sm:items-center justify-between gap-1",
|
|
129
|
+
children: [
|
|
130
|
+
/*#__PURE__*/ _jsxs("p", {
|
|
131
|
+
className: "text-xs text-white",
|
|
132
|
+
children: [
|
|
133
|
+
/*#__PURE__*/ _jsx("strong", {
|
|
134
|
+
className: "font-semibold text-sky-300",
|
|
135
|
+
children: item.userName
|
|
136
|
+
}),
|
|
137
|
+
/*#__PURE__*/ _jsxs("span", {
|
|
138
|
+
className: "text-slate-400",
|
|
139
|
+
children: [
|
|
140
|
+
" (",
|
|
141
|
+
item.userRole,
|
|
142
|
+
") "
|
|
143
|
+
]
|
|
144
|
+
}),
|
|
145
|
+
/*#__PURE__*/ _jsx("span", {
|
|
146
|
+
className: "text-slate-300",
|
|
147
|
+
children: item.actionLabel
|
|
148
|
+
})
|
|
149
|
+
]
|
|
150
|
+
}),
|
|
151
|
+
/*#__PURE__*/ _jsx("span", {
|
|
152
|
+
className: "text-[10px] text-slate-400 shrink-0 font-mono",
|
|
153
|
+
children: item.timeAgo
|
|
154
|
+
})
|
|
155
|
+
]
|
|
156
|
+
}),
|
|
157
|
+
/*#__PURE__*/ _jsxs("div", {
|
|
158
|
+
className: "mt-1.5 flex items-center gap-2 p-2 rounded-lg bg-black/30 border border-white/5",
|
|
159
|
+
children: [
|
|
160
|
+
/*#__PURE__*/ _jsx(FileText, {
|
|
161
|
+
className: "w-3.5 h-3.5 text-sky-400 shrink-0"
|
|
162
|
+
}),
|
|
163
|
+
/*#__PURE__*/ _jsx("span", {
|
|
164
|
+
className: "text-xs font-semibold text-white truncate",
|
|
165
|
+
children: item.targetTitle
|
|
166
|
+
}),
|
|
167
|
+
/*#__PURE__*/ _jsx("span", {
|
|
168
|
+
className: "ml-auto text-[9px] px-1.5 rounded bg-white/10 text-slate-300 shrink-0",
|
|
169
|
+
children: item.targetType
|
|
170
|
+
})
|
|
171
|
+
]
|
|
172
|
+
})
|
|
173
|
+
]
|
|
174
|
+
})
|
|
175
|
+
]
|
|
176
|
+
}, item.id))
|
|
177
|
+
})
|
|
178
|
+
]
|
|
179
|
+
});
|
|
180
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/** @category Sites */
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import type { SiteApplication } from './site.types.js';
|
|
4
|
+
export interface SiteApplicationsPanelProps {
|
|
5
|
+
applications: SiteApplication[];
|
|
6
|
+
onOpen: (application: SiteApplication) => void;
|
|
7
|
+
title?: string;
|
|
8
|
+
description?: string;
|
|
9
|
+
allLabel?: string;
|
|
10
|
+
className?: string;
|
|
11
|
+
}
|
|
12
|
+
/** Grille filtrable (recherche + catégories) des applications d'un site. */
|
|
13
|
+
export declare function SiteApplicationsPanel({ applications, onOpen, title, description, allLabel, className, }: SiteApplicationsPanelProps): React.JSX.Element;
|
|
14
|
+
//# sourceMappingURL=site-applications-panel.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"site-applications-panel.component.d.ts","sourceRoot":"","sources":["../../src/sites/site-applications-panel.component.tsx"],"names":[],"mappings":"AAAA,sBAAsB;AACtB,OAAO,KAA4B,MAAM,OAAO,CAAC;AAGjD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAEvD,MAAM,WAAW,0BAA0B;IACzC,YAAY,EAAE,eAAe,EAAE,CAAC;IAChC,MAAM,EAAE,CAAC,WAAW,EAAE,eAAe,KAAK,IAAI,CAAC;IAC/C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,4EAA4E;AAC5E,wBAAgB,qBAAqB,CAAC,EACpC,YAAY,EACZ,MAAM,EACN,KAAsC,EACtC,WAAwE,EACxE,QAAiB,EACjB,SAAS,GACV,EAAE,0BAA0B,qBAqF5B"}
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
/** @category Sites */ import React, { useMemo, useState } from "react";
|
|
3
|
+
import { ExternalLink, Search } from "lucide-react";
|
|
4
|
+
import { cn } from "../page-background/page-background.utils.js";
|
|
5
|
+
/** Grille filtrable (recherche + catégories) des applications d'un site. */ export function SiteApplicationsPanel({ applications, onOpen, title = 'Applications & Outils Métier', description = 'Sélectionnez une application pour y accéder directement.', allLabel = 'Tous', className }) {
|
|
6
|
+
const [query, setQuery] = useState('');
|
|
7
|
+
const [category, setCategory] = useState(allLabel);
|
|
8
|
+
const categories = useMemo(()=>[
|
|
9
|
+
allLabel,
|
|
10
|
+
...Array.from(new Set(applications.map((a)=>a.category)))
|
|
11
|
+
], [
|
|
12
|
+
applications,
|
|
13
|
+
allLabel
|
|
14
|
+
]);
|
|
15
|
+
const visible = useMemo(()=>{
|
|
16
|
+
const q = query.trim().toLowerCase();
|
|
17
|
+
return applications.filter((a)=>(category === allLabel || a.category === category) && (!q || a.name.toLowerCase().includes(q) || a.description.toLowerCase().includes(q)));
|
|
18
|
+
}, [
|
|
19
|
+
applications,
|
|
20
|
+
query,
|
|
21
|
+
category,
|
|
22
|
+
allLabel
|
|
23
|
+
]);
|
|
24
|
+
return /*#__PURE__*/ _jsxs("div", {
|
|
25
|
+
className: cn('space-y-6', className),
|
|
26
|
+
children: [
|
|
27
|
+
/*#__PURE__*/ _jsxs("div", {
|
|
28
|
+
className: "flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4 pb-4 border-b border-white/10",
|
|
29
|
+
children: [
|
|
30
|
+
/*#__PURE__*/ _jsxs("div", {
|
|
31
|
+
children: [
|
|
32
|
+
/*#__PURE__*/ _jsx("h2", {
|
|
33
|
+
className: "text-xl font-bold text-white",
|
|
34
|
+
children: title
|
|
35
|
+
}),
|
|
36
|
+
/*#__PURE__*/ _jsx("p", {
|
|
37
|
+
className: "text-xs text-slate-300 mt-1",
|
|
38
|
+
children: description
|
|
39
|
+
})
|
|
40
|
+
]
|
|
41
|
+
}),
|
|
42
|
+
/*#__PURE__*/ _jsxs("div", {
|
|
43
|
+
className: "relative w-full sm:w-64",
|
|
44
|
+
children: [
|
|
45
|
+
/*#__PURE__*/ _jsx(Search, {
|
|
46
|
+
className: "w-4 h-4 text-slate-400 absolute left-3 top-2.5"
|
|
47
|
+
}),
|
|
48
|
+
/*#__PURE__*/ _jsx("input", {
|
|
49
|
+
type: "text",
|
|
50
|
+
value: query,
|
|
51
|
+
onChange: (e)=>setQuery(e.target.value),
|
|
52
|
+
placeholder: "Rechercher un outil...",
|
|
53
|
+
"aria-label": "Rechercher un outil",
|
|
54
|
+
className: "w-full bg-slate-900/80 text-white placeholder-slate-400 text-xs pl-9 pr-3 py-2 rounded-lg border border-white/10 focus:outline-hidden focus:border-teal-400/50"
|
|
55
|
+
})
|
|
56
|
+
]
|
|
57
|
+
})
|
|
58
|
+
]
|
|
59
|
+
}),
|
|
60
|
+
/*#__PURE__*/ _jsx("div", {
|
|
61
|
+
className: "flex flex-wrap gap-3 text-xs font-medium",
|
|
62
|
+
children: categories.map((cat)=>/*#__PURE__*/ _jsx("button", {
|
|
63
|
+
type: "button",
|
|
64
|
+
onClick: ()=>setCategory(cat),
|
|
65
|
+
className: cn('transition-colors cursor-pointer', category === cat ? 'text-teal-300 font-bold border-b-2 border-teal-400 pb-0.5' : 'text-slate-400 hover:text-white'),
|
|
66
|
+
children: cat
|
|
67
|
+
}, cat))
|
|
68
|
+
}),
|
|
69
|
+
/*#__PURE__*/ _jsx("div", {
|
|
70
|
+
className: "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",
|
|
71
|
+
children: visible.map((app)=>{
|
|
72
|
+
const Icon = app.icon;
|
|
73
|
+
return /*#__PURE__*/ _jsxs("button", {
|
|
74
|
+
type: "button",
|
|
75
|
+
onClick: ()=>onOpen(app),
|
|
76
|
+
className: "group text-left p-4 rounded-xl bg-slate-900/60 border border-white/10 hover:border-teal-400/40 hover:bg-slate-800/80 transition-all cursor-pointer flex flex-col justify-between space-y-3",
|
|
77
|
+
children: [
|
|
78
|
+
/*#__PURE__*/ _jsxs("div", {
|
|
79
|
+
className: "space-y-2",
|
|
80
|
+
children: [
|
|
81
|
+
/*#__PURE__*/ _jsxs("div", {
|
|
82
|
+
className: "flex items-center justify-between",
|
|
83
|
+
children: [
|
|
84
|
+
/*#__PURE__*/ _jsx("div", {
|
|
85
|
+
className: cn('p-2 rounded-lg bg-gradient-to-br text-white shadow-xs', app.gradient ?? 'from-teal-500 to-emerald-600'),
|
|
86
|
+
children: /*#__PURE__*/ _jsx(Icon, {
|
|
87
|
+
className: "w-5 h-5"
|
|
88
|
+
})
|
|
89
|
+
}),
|
|
90
|
+
/*#__PURE__*/ _jsx("span", {
|
|
91
|
+
className: "text-[10px] font-semibold text-slate-400",
|
|
92
|
+
children: app.status
|
|
93
|
+
})
|
|
94
|
+
]
|
|
95
|
+
}),
|
|
96
|
+
/*#__PURE__*/ _jsxs("div", {
|
|
97
|
+
children: [
|
|
98
|
+
/*#__PURE__*/ _jsxs("h3", {
|
|
99
|
+
className: "text-sm font-bold text-white group-hover:text-teal-300 transition-colors flex items-center justify-between",
|
|
100
|
+
children: [
|
|
101
|
+
/*#__PURE__*/ _jsx("span", {
|
|
102
|
+
children: app.name
|
|
103
|
+
}),
|
|
104
|
+
/*#__PURE__*/ _jsx(ExternalLink, {
|
|
105
|
+
className: "w-3.5 h-3.5 opacity-0 group-hover:opacity-100 transition-opacity text-teal-300"
|
|
106
|
+
})
|
|
107
|
+
]
|
|
108
|
+
}),
|
|
109
|
+
/*#__PURE__*/ _jsx("p", {
|
|
110
|
+
className: "text-[11px] text-teal-400/80 font-medium mt-0.5",
|
|
111
|
+
children: app.category
|
|
112
|
+
})
|
|
113
|
+
]
|
|
114
|
+
}),
|
|
115
|
+
/*#__PURE__*/ _jsx("p", {
|
|
116
|
+
className: "text-xs text-slate-300 line-clamp-2 leading-relaxed",
|
|
117
|
+
children: app.description
|
|
118
|
+
})
|
|
119
|
+
]
|
|
120
|
+
}),
|
|
121
|
+
/*#__PURE__*/ _jsxs("div", {
|
|
122
|
+
className: "pt-2 border-t border-white/5 flex items-center justify-between text-[11px] text-slate-400 group-hover:text-slate-200",
|
|
123
|
+
children: [
|
|
124
|
+
/*#__PURE__*/ _jsx("span", {
|
|
125
|
+
children: "Accéder à l'application"
|
|
126
|
+
}),
|
|
127
|
+
/*#__PURE__*/ _jsx("span", {
|
|
128
|
+
className: "text-teal-400 font-semibold group-hover:translate-x-1 transition-transform",
|
|
129
|
+
children: "→"
|
|
130
|
+
})
|
|
131
|
+
]
|
|
132
|
+
})
|
|
133
|
+
]
|
|
134
|
+
}, app.id);
|
|
135
|
+
})
|
|
136
|
+
})
|
|
137
|
+
]
|
|
138
|
+
});
|
|
139
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/** @category Sites */
|
|
2
|
+
import React from 'react';
|
|
3
|
+
export interface SiteBannerProps {
|
|
4
|
+
title: string;
|
|
5
|
+
subtitle?: string;
|
|
6
|
+
/** Icône/avatar à gauche. */
|
|
7
|
+
avatar?: React.ReactNode;
|
|
8
|
+
following?: boolean;
|
|
9
|
+
onToggleFollow?: () => void;
|
|
10
|
+
/** Actions supplémentaires à droite (boutons, indicateurs…). */
|
|
11
|
+
actions?: React.ReactNode;
|
|
12
|
+
className?: string;
|
|
13
|
+
}
|
|
14
|
+
/** Bandeau d'en-tête d'un site : identité à gauche, suivi + actions à droite. */
|
|
15
|
+
export declare function SiteBanner({ title, subtitle, avatar, following, onToggleFollow, actions, className }: SiteBannerProps): React.JSX.Element;
|
|
16
|
+
//# sourceMappingURL=site-banner.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"site-banner.component.d.ts","sourceRoot":"","sources":["../../src/sites/site-banner.component.tsx"],"names":[],"mappings":"AAAA,sBAAsB;AACtB,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,6BAA6B;IAC7B,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAC5B,gEAAgE;IAChE,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,iFAAiF;AACjF,wBAAgB,UAAU,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,cAAc,EAAE,OAAO,EAAE,SAAS,EAAE,EAAE,eAAe,qBA8BrH"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
/** @category Sites */ import React from "react";
|
|
3
|
+
import { Star } from "lucide-react";
|
|
4
|
+
import { cn } from "../page-background/page-background.utils.js";
|
|
5
|
+
/** Bandeau d'en-tête d'un site : identité à gauche, suivi + actions à droite. */ export function SiteBanner({ title, subtitle, avatar, following, onToggleFollow, actions, className }) {
|
|
6
|
+
return /*#__PURE__*/ _jsx("div", {
|
|
7
|
+
className: cn('w-full bg-teal-700 border-b border-teal-500/30 text-white px-3 sm:px-6 py-2 shadow-xs', className),
|
|
8
|
+
children: /*#__PURE__*/ _jsxs("div", {
|
|
9
|
+
className: "max-w-7xl mx-auto flex items-center justify-between gap-2",
|
|
10
|
+
children: [
|
|
11
|
+
/*#__PURE__*/ _jsxs("div", {
|
|
12
|
+
className: "flex items-center gap-2 min-w-0",
|
|
13
|
+
children: [
|
|
14
|
+
avatar && /*#__PURE__*/ _jsx("div", {
|
|
15
|
+
className: "w-8 h-8 bg-slate-900/50 border border-teal-300/40 flex items-center justify-center shrink-0",
|
|
16
|
+
children: avatar
|
|
17
|
+
}),
|
|
18
|
+
/*#__PURE__*/ _jsxs("div", {
|
|
19
|
+
className: "flex flex-col -space-y-0.5 min-w-0",
|
|
20
|
+
children: [
|
|
21
|
+
/*#__PURE__*/ _jsx("h1", {
|
|
22
|
+
className: "text-sm sm:text-base font-bold tracking-tight leading-tight truncate",
|
|
23
|
+
children: title
|
|
24
|
+
}),
|
|
25
|
+
subtitle && /*#__PURE__*/ _jsx("p", {
|
|
26
|
+
className: "text-teal-100/80 text-[10px] sm:text-[11px] leading-none truncate",
|
|
27
|
+
children: subtitle
|
|
28
|
+
})
|
|
29
|
+
]
|
|
30
|
+
})
|
|
31
|
+
]
|
|
32
|
+
}),
|
|
33
|
+
/*#__PURE__*/ _jsxs("div", {
|
|
34
|
+
className: "flex items-center gap-2 shrink-0",
|
|
35
|
+
children: [
|
|
36
|
+
onToggleFollow && /*#__PURE__*/ _jsxs("button", {
|
|
37
|
+
type: "button",
|
|
38
|
+
"aria-pressed": following,
|
|
39
|
+
onClick: onToggleFollow,
|
|
40
|
+
className: "flex items-center gap-1.5 px-2.5 py-1 border border-white/30 hover:bg-white/10 text-xs font-semibold transition-colors cursor-pointer",
|
|
41
|
+
children: [
|
|
42
|
+
/*#__PURE__*/ _jsx(Star, {
|
|
43
|
+
className: cn('w-3.5 h-3.5', following && 'fill-amber-300 text-amber-300')
|
|
44
|
+
}),
|
|
45
|
+
/*#__PURE__*/ _jsx("span", {
|
|
46
|
+
className: "hidden sm:inline",
|
|
47
|
+
children: following ? 'Suivi' : 'Suivre'
|
|
48
|
+
})
|
|
49
|
+
]
|
|
50
|
+
}),
|
|
51
|
+
actions
|
|
52
|
+
]
|
|
53
|
+
})
|
|
54
|
+
]
|
|
55
|
+
})
|
|
56
|
+
});
|
|
57
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/** @category Sites */
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import type { SiteSummary } from './site.types.js';
|
|
4
|
+
export interface SiteCarouselProps {
|
|
5
|
+
sites: SiteSummary[];
|
|
6
|
+
/** Appelé quand l'utilisateur valide la carte centrale. */
|
|
7
|
+
onSelect?: (site: SiteSummary) => void;
|
|
8
|
+
/** Hauteur de la scène. @default 500 */
|
|
9
|
+
height?: number | string;
|
|
10
|
+
className?: string;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Carrousel « en quinconce » de sites : la carte centrale est sélectionnable,
|
|
14
|
+
* les autres l'amènent au centre. Glisser/swiper ou flèches pour naviguer.
|
|
15
|
+
* Présentationnel : aucune navigation ni son, tout passe par `onSelect`.
|
|
16
|
+
*/
|
|
17
|
+
export declare function SiteCarousel({ sites, onSelect, height, className }: SiteCarouselProps): React.JSX.Element;
|
|
18
|
+
//# sourceMappingURL=site-carousel.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"site-carousel.component.d.ts","sourceRoot":"","sources":["../../src/sites/site-carousel.component.tsx"],"names":[],"mappings":"AAAA,sBAAsB;AACtB,OAAO,KAAsC,MAAM,OAAO,CAAC;AAG3D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEnD,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,WAAW,EAAE,CAAC;IACrB,2DAA2D;IAC3D,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,WAAW,KAAK,IAAI,CAAC;IACvC,wCAAwC;IACxC,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAUD;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAY,EAAE,SAAS,EAAE,EAAE,iBAAiB,qBA0H3F"}
|