@egen-civitas/esm-styleguide 2.3.1 → 3.0.0
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 +40 -0
- package/dist/_all.scss +0 -1
- package/dist/_vars.scss +4 -4
- package/dist/assistant/index.d.ts +7 -0
- package/dist/assistant/index.d.ts.map +1 -1
- package/dist/assistant/index.js +5 -0
- package/dist/assistant/robot/README.md +47 -0
- package/dist/assistant/robot/Robot.d.ts +16 -0
- package/dist/assistant/robot/Robot.d.ts.map +1 -0
- package/dist/assistant/robot/Robot.js +159 -0
- package/dist/assistant/robot/RobotStage.d.ts +31 -0
- package/dist/assistant/robot/RobotStage.d.ts.map +1 -0
- package/dist/assistant/robot/RobotStage.js +250 -0
- package/dist/assistant/robot/clips.d.ts +62 -0
- package/dist/assistant/robot/clips.d.ts.map +1 -0
- package/dist/assistant/robot/clips.js +179 -0
- package/dist/assistant/robot/controller.d.ts +133 -0
- package/dist/assistant/robot/controller.d.ts.map +1 -0
- package/dist/assistant/robot/controller.js +522 -0
- package/dist/assistant/robot/gestures.d.ts +23 -0
- package/dist/assistant/robot/gestures.d.ts.map +1 -0
- package/dist/assistant/robot/gestures.js +1301 -0
- package/dist/assistant/robot/hands.d.ts +55 -0
- package/dist/assistant/robot/hands.d.ts.map +1 -0
- package/dist/assistant/robot/hands.js +121 -0
- package/dist/assistant/robot/ik.d.ts +34 -0
- package/dist/assistant/robot/ik.d.ts.map +1 -0
- package/dist/assistant/robot/ik.js +57 -0
- package/dist/assistant/robot/index.d.ts +18 -0
- package/dist/assistant/robot/index.d.ts.map +1 -0
- package/dist/assistant/robot/index.js +9 -0
- package/dist/assistant/robot/lazy.d.ts +8 -0
- package/dist/assistant/robot/lazy.d.ts.map +1 -0
- package/dist/assistant/robot/lazy.js +33 -0
- package/dist/assistant/robot/materials.d.ts +46 -0
- package/dist/assistant/robot/materials.d.ts.map +1 -0
- package/dist/assistant/robot/materials.js +101 -0
- package/dist/assistant/robot/parts/Body.d.ts +28 -0
- package/dist/assistant/robot/parts/Body.d.ts.map +1 -0
- package/dist/assistant/robot/parts/Body.js +368 -0
- package/dist/assistant/robot/parts/Head.d.ts +11 -0
- package/dist/assistant/robot/parts/Head.d.ts.map +1 -0
- package/dist/assistant/robot/parts/Head.js +210 -0
- package/dist/assistant/robot/parts/primitives.d.ts +36 -0
- package/dist/assistant/robot/parts/primitives.d.ts.map +1 -0
- package/dist/assistant/robot/parts/primitives.js +127 -0
- package/dist/assistant/robot/skeleton.d.ts +66 -0
- package/dist/assistant/robot/skeleton.d.ts.map +1 -0
- package/dist/assistant/robot/skeleton.js +266 -0
- package/dist/cards/card-header.component.d.ts +1 -1
- package/dist/cards/card-header.component.js +1 -1
- package/dist/cards/card-header.stories.js +1 -1
- package/dist/components/_general.scss +3 -3
- package/dist/config-schema.d.ts +0 -17
- package/dist/config-schema.d.ts.map +1 -1
- package/dist/config-schema.js +0 -25
- package/dist/datepicker/datepicker.stories.js +1 -1
- package/dist/empty-card/empty-card.stories.js +2 -2
- package/dist/error-state/error-state.stories.js +2 -2
- package/dist/icons/icon-registration.d.ts.map +1 -1
- package/dist/icons/icon-registration.js +0 -30
- package/dist/icons/icons.d.ts +4 -32
- package/dist/icons/icons.d.ts.map +1 -1
- package/dist/icons/icons.js +18 -148
- package/dist/index.js +0 -2
- package/dist/internal.d.ts +0 -3
- package/dist/internal.d.ts.map +1 -1
- package/dist/internal.js +0 -3
- package/dist/notifications/actionable-notification.stories.js +5 -5
- package/dist/notifications/notification.stories.js +5 -5
- package/dist/page-header/page-header.component.d.ts +1 -1
- package/dist/page-header/page-header.component.js +1 -1
- package/dist/pagination/pagination.stories.js +2 -2
- package/dist/pictograms/pictogram-registration.d.ts.map +1 -1
- package/dist/pictograms/pictogram-registration.js +2 -36
- package/dist/pictograms/pictograms.d.ts +2 -20
- package/dist/pictograms/pictograms.d.ts.map +1 -1
- package/dist/pictograms/pictograms.js +2 -139
- package/dist/public.d.ts +0 -3
- package/dist/public.d.ts.map +1 -1
- package/dist/public.js +0 -3
- package/dist/responsive-wrapper/responsive-wrapper.stories.js +1 -1
- package/dist/snackbars/snackbar.stories.js +1 -1
- package/dist/toasts/toast.stories.js +1 -1
- package/dist/workbench/splitter.component.d.ts +14 -0
- package/dist/workbench/splitter.component.d.ts.map +1 -1
- package/dist/workbench/splitter.component.js +52 -0
- package/dist/workbench/tool-window-rail.component.d.ts.map +1 -1
- package/dist/workbench/tool-window-rail.component.js +9 -1
- package/dist/workbench/tool-window-zone.component.d.ts.map +1 -1
- package/dist/workbench/tool-window-zone.component.js +9 -1
- package/dist/workbench/workbench.module.scss +64 -1
- package/dist/workbench/workbench.store.d.ts +2 -0
- package/dist/workbench/workbench.store.d.ts.map +1 -1
- package/dist/workbench/workbench.store.js +9 -0
- package/dist/workspaces/container/workspace-container.component.d.ts +8 -8
- package/dist/workspaces/container/workspace-container.component.js +9 -9
- package/dist/workspaces2/workspace2.d.ts +3 -3
- package/dist/workspaces2/workspace2.js +3 -3
- package/mock-jest.tsx +0 -41
- package/mock.tsx +0 -41
- package/package.json +26 -23
- package/src/_vars.scss +4 -4
- package/dist/entity-banner/actions-menu/entity-banner-actions-menu.component.d.ts +0 -19
- package/dist/entity-banner/actions-menu/entity-banner-actions-menu.component.d.ts.map +0 -1
- package/dist/entity-banner/actions-menu/entity-banner-actions-menu.component.js +0 -137
- package/dist/entity-banner/actions-menu/entity-banner-actions-menu.module.scss +0 -23
- package/dist/entity-banner/contact-details/entity-banner-contact-details.component.d.ts +0 -9
- package/dist/entity-banner/contact-details/entity-banner-contact-details.component.d.ts.map +0 -1
- package/dist/entity-banner/contact-details/entity-banner-contact-details.component.js +0 -207
- package/dist/entity-banner/contact-details/entity-banner-contact-details.module.scss +0 -47
- package/dist/entity-banner/contact-details/entity-banner-toggle-contact-details-button.component.d.ts +0 -12
- package/dist/entity-banner/contact-details/entity-banner-toggle-contact-details-button.component.d.ts.map +0 -1
- package/dist/entity-banner/contact-details/entity-banner-toggle-contact-details-button.component.js +0 -15
- package/dist/entity-banner/contact-details/types.d.ts +0 -48
- package/dist/entity-banner/contact-details/types.d.ts.map +0 -1
- package/dist/entity-banner/contact-details/types.js +0 -1
- package/dist/entity-banner/contact-details/useEntityAttributes.d.ts +0 -14
- package/dist/entity-banner/contact-details/useEntityAttributes.d.ts.map +0 -1
- package/dist/entity-banner/contact-details/useEntityAttributes.js +0 -12
- package/dist/entity-banner/contact-details/useEntityGroupsForEntity.d.ts +0 -11
- package/dist/entity-banner/contact-details/useEntityGroupsForEntity.d.ts.map +0 -1
- package/dist/entity-banner/contact-details/useEntityGroupsForEntity.js +0 -9
- package/dist/entity-banner/contact-details/useRelationships.d.ts +0 -35
- package/dist/entity-banner/contact-details/useRelationships.d.ts.map +0 -1
- package/dist/entity-banner/contact-details/useRelationships.js +0 -37
- package/dist/entity-banner/entity-info/entity-banner-entity-identifiers.component.d.ts +0 -9
- package/dist/entity-banner/entity-info/entity-banner-entity-identifiers.component.d.ts.map +0 -1
- package/dist/entity-banner/entity-info/entity-banner-entity-identifiers.component.js +0 -77
- package/dist/entity-banner/entity-info/entity-banner-entity-info.component.d.ts +0 -9
- package/dist/entity-banner/entity-info/entity-banner-entity-info.component.d.ts.map +0 -1
- package/dist/entity-banner/entity-info/entity-banner-entity-info.component.js +0 -72
- package/dist/entity-banner/entity-info/entity-banner-entity-info.module.scss +0 -165
- package/dist/entity-banner/index.d.ts +0 -5
- package/dist/entity-banner/index.d.ts.map +0 -1
- package/dist/entity-banner/index.js +0 -4
- package/dist/entity-photo/entity-photo.component.d.ts +0 -21
- package/dist/entity-photo/entity-photo.component.d.ts.map +0 -1
- package/dist/entity-photo/entity-photo.component.js +0 -111
- package/dist/entity-photo/entity-photo.module.scss +0 -21
- package/dist/entity-photo/index.d.ts +0 -3
- package/dist/entity-photo/index.d.ts.map +0 -1
- package/dist/entity-photo/index.js +0 -2
- package/dist/entity-photo/placeholder-icon.component.d.ts +0 -9
- package/dist/entity-photo/placeholder-icon.component.d.ts.map +0 -1
- package/dist/entity-photo/placeholder-icon.component.js +0 -26
- package/dist/entity-photo/useEntityPhoto.d.ts +0 -29
- package/dist/entity-photo/useEntityPhoto.d.ts.map +0 -1
- package/dist/entity-photo/useEntityPhoto.js +0 -37
- package/dist/icons/svgs/baby.svg +0 -1
- package/dist/icons/svgs/chemistry.svg +0 -1
- package/dist/icons/svgs/drug-order.svg +0 -1
- package/dist/icons/svgs/generic-order-type.svg +0 -1
- package/dist/icons/svgs/hospital-bed.svg +0 -1
- package/dist/icons/svgs/image-medical.svg +0 -1
- package/dist/icons/svgs/lab-order.svg +0 -1
- package/dist/icons/svgs/material-order.svg +0 -1
- package/dist/icons/svgs/medication.svg +0 -1
- package/dist/icons/svgs/microscope.svg +0 -1
- package/dist/icons/svgs/mother.svg +0 -1
- package/dist/icons/svgs/procedure-order.svg +0 -1
- package/dist/icons/svgs/referral-order.svg +0 -1
- package/dist/icons/svgs/syringe.svg +0 -1
- package/dist/logo/_logo.scss +0 -34
- package/dist/logo/egen-logo-full.svg +0 -1
- package/dist/logo/egen-logo-icon.svg +0 -1
- package/dist/logo/egen-logo-partial.svg +0 -1
- package/dist/logo/egen-logo-white.svg +0 -1
- package/dist/logo/index.d.ts +0 -8
- package/dist/logo/index.d.ts.map +0 -1
- package/dist/logo/index.js +0 -22
- package/dist/numeric-datapoint/index.d.ts +0 -4
- package/dist/numeric-datapoint/index.d.ts.map +0 -1
- package/dist/numeric-datapoint/index.js +0 -3
- package/dist/numeric-datapoint/interpretation-utils.d.ts +0 -27
- package/dist/numeric-datapoint/interpretation-utils.d.ts.map +0 -1
- package/dist/numeric-datapoint/interpretation-utils.js +0 -66
- package/dist/numeric-datapoint/numeric-datapoint.component.d.ts +0 -44
- package/dist/numeric-datapoint/numeric-datapoint.component.d.ts.map +0 -1
- package/dist/numeric-datapoint/numeric-datapoint.component.js +0 -110
- package/dist/numeric-datapoint/numeric-datapoint.module.scss +0 -141
- package/dist/numeric-datapoint/use-concept-reference-range.d.ts +0 -13
- package/dist/numeric-datapoint/use-concept-reference-range.d.ts.map +0 -1
- package/dist/numeric-datapoint/use-concept-reference-range.js +0 -31
- package/dist/pictograms/svgs/blood-bank.svg +0 -1
- package/dist/pictograms/svgs/cardiology.svg +0 -1
- package/dist/pictograms/svgs/ct-scan.svg +0 -1
- package/dist/pictograms/svgs/dentistry.svg +0 -1
- package/dist/pictograms/svgs/emergency-department.svg +0 -1
- package/dist/pictograms/svgs/geriatrics.svg +0 -1
- package/dist/pictograms/svgs/gynaecology.svg +0 -1
- package/dist/pictograms/svgs/in-patient.svg +0 -1
- package/dist/pictograms/svgs/labs-2.svg +0 -1
- package/dist/pictograms/svgs/labs.svg +0 -1
- package/dist/pictograms/svgs/obstetrics.svg +0 -1
- package/dist/pictograms/svgs/patient-search.svg +0 -1
- package/dist/pictograms/svgs/patients.svg +0 -1
- package/dist/pictograms/svgs/pharmacy-1.svg +0 -1
- package/dist/pictograms/svgs/pharmacy-2.svg +0 -1
- package/dist/pictograms/svgs/triage.svg +0 -1
- package/dist/pictograms/svgs/x-ray.svg +0 -1
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import React, { useMemo } from "react";
|
|
3
|
+
import { BufferAttribute, Color, TorusGeometry } from "three";
|
|
4
|
+
/** Sphère étirée en ellipsoïde — brique de base des formes rondes du corps. */ export function Ellipsoid({ radii, position, rotation, material, segments = 40 }) {
|
|
5
|
+
return /*#__PURE__*/ _jsx("mesh", {
|
|
6
|
+
position: position,
|
|
7
|
+
rotation: rotation,
|
|
8
|
+
scale: radii,
|
|
9
|
+
material: material,
|
|
10
|
+
castShadow: true,
|
|
11
|
+
receiveShadow: true,
|
|
12
|
+
children: /*#__PURE__*/ _jsx("sphereGeometry", {
|
|
13
|
+
args: [
|
|
14
|
+
1,
|
|
15
|
+
segments,
|
|
16
|
+
Math.round(segments * 0.75)
|
|
17
|
+
]
|
|
18
|
+
})
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Segment de membre effilé : du haut de l'articulation (y = 0) jusqu'à y = -length,
|
|
23
|
+
* avec une rondeur à chaque bout (le rayon haut et bas peuvent différer).
|
|
24
|
+
* Les rondeurs sont centrées sur les articulations, ce qui garde les coudes et les
|
|
25
|
+
* genoux lisses quand le membre se plie.
|
|
26
|
+
*/ export function Limb({ length, rTop, rBottom, material, radial = 28 }) {
|
|
27
|
+
return /*#__PURE__*/ _jsxs("group", {
|
|
28
|
+
children: [
|
|
29
|
+
/*#__PURE__*/ _jsx("mesh", {
|
|
30
|
+
position: [
|
|
31
|
+
0,
|
|
32
|
+
-length / 2,
|
|
33
|
+
0
|
|
34
|
+
],
|
|
35
|
+
material: material,
|
|
36
|
+
castShadow: true,
|
|
37
|
+
receiveShadow: true,
|
|
38
|
+
children: /*#__PURE__*/ _jsx("cylinderGeometry", {
|
|
39
|
+
args: [
|
|
40
|
+
rTop,
|
|
41
|
+
rBottom,
|
|
42
|
+
length,
|
|
43
|
+
radial,
|
|
44
|
+
1,
|
|
45
|
+
true
|
|
46
|
+
]
|
|
47
|
+
})
|
|
48
|
+
}),
|
|
49
|
+
/*#__PURE__*/ _jsx("mesh", {
|
|
50
|
+
material: material,
|
|
51
|
+
castShadow: true,
|
|
52
|
+
receiveShadow: true,
|
|
53
|
+
scale: rTop,
|
|
54
|
+
children: /*#__PURE__*/ _jsx("sphereGeometry", {
|
|
55
|
+
args: [
|
|
56
|
+
1,
|
|
57
|
+
radial,
|
|
58
|
+
18
|
|
59
|
+
]
|
|
60
|
+
})
|
|
61
|
+
}),
|
|
62
|
+
/*#__PURE__*/ _jsx("mesh", {
|
|
63
|
+
position: [
|
|
64
|
+
0,
|
|
65
|
+
-length,
|
|
66
|
+
0
|
|
67
|
+
],
|
|
68
|
+
material: material,
|
|
69
|
+
castShadow: true,
|
|
70
|
+
receiveShadow: true,
|
|
71
|
+
scale: rBottom,
|
|
72
|
+
children: /*#__PURE__*/ _jsx("sphereGeometry", {
|
|
73
|
+
args: [
|
|
74
|
+
1,
|
|
75
|
+
radial,
|
|
76
|
+
18
|
|
77
|
+
]
|
|
78
|
+
})
|
|
79
|
+
})
|
|
80
|
+
]
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
/** Fine rainure circulaire autour d'un membre (joint de vinyle). */ export function Seam({ radius, position, material, thickness = 0.0045, rotation = [
|
|
84
|
+
Math.PI / 2,
|
|
85
|
+
0,
|
|
86
|
+
0
|
|
87
|
+
] }) {
|
|
88
|
+
return /*#__PURE__*/ _jsx("mesh", {
|
|
89
|
+
position: position,
|
|
90
|
+
rotation: rotation,
|
|
91
|
+
material: material,
|
|
92
|
+
children: /*#__PURE__*/ _jsx("torusGeometry", {
|
|
93
|
+
args: [
|
|
94
|
+
radius,
|
|
95
|
+
thickness,
|
|
96
|
+
8,
|
|
97
|
+
40
|
|
98
|
+
]
|
|
99
|
+
})
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
/** Tore dont les sommets portent un dégradé entre deux couleurs (néon des casques et du cœur). */ export function useGradientTorus(radius, tube, c1, c2, phase = 0) {
|
|
103
|
+
return useMemo(()=>{
|
|
104
|
+
const g = new TorusGeometry(radius, tube, 16, 64);
|
|
105
|
+
const pos = g.getAttribute('position');
|
|
106
|
+
const col = new Float32Array(pos.count * 3);
|
|
107
|
+
const a = new Color(c1);
|
|
108
|
+
const b = new Color(c2);
|
|
109
|
+
const tmp = new Color();
|
|
110
|
+
for(let i = 0; i < pos.count; i++){
|
|
111
|
+
const ang = Math.atan2(pos.getY(i), pos.getX(i));
|
|
112
|
+
const k = 0.5 + 0.5 * Math.sin(ang + phase);
|
|
113
|
+
tmp.copy(a).lerp(b, k);
|
|
114
|
+
col[i * 3] = tmp.r;
|
|
115
|
+
col[i * 3 + 1] = tmp.g;
|
|
116
|
+
col[i * 3 + 2] = tmp.b;
|
|
117
|
+
}
|
|
118
|
+
g.setAttribute('color', new BufferAttribute(col, 3));
|
|
119
|
+
return g;
|
|
120
|
+
}, [
|
|
121
|
+
radius,
|
|
122
|
+
tube,
|
|
123
|
+
c1,
|
|
124
|
+
c2,
|
|
125
|
+
phase
|
|
126
|
+
]);
|
|
127
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Squelette du robot assistant EGEN.
|
|
3
|
+
*
|
|
4
|
+
* Ce fichier est la SEULE source de vérité sur la structure du corps :
|
|
5
|
+
* - quelles articulations existent et qui est le parent de qui ;
|
|
6
|
+
* - où se trouve chaque articulation par rapport à son parent (en mètres) ;
|
|
7
|
+
* - dans quelles limites chaque articulation peut tourner (en radians).
|
|
8
|
+
*
|
|
9
|
+
* Repère : +y vers le haut, +z vers l'avant (là où le visage regarde), +x vers la
|
|
10
|
+
* gauche du robot (donc à DROITE de l'écran quand on le regarde de face).
|
|
11
|
+
*
|
|
12
|
+
* Conventions de rotation (utiles pour écrire des gestes) :
|
|
13
|
+
* - épaule / hanche / colonne / cou, rotation x NÉGATIVE : le membre part vers l'avant ;
|
|
14
|
+
* - coude, rotation x NÉGATIVE : l'avant-bras se plie vers l'avant ;
|
|
15
|
+
* - genou, rotation x POSITIVE : le tibia se plie vers l'arrière ;
|
|
16
|
+
* - épaule gauche, rotation z POSITIVE : le bras s'écarte du corps (côté droit : z négative) ;
|
|
17
|
+
* - tête / cou, rotation y POSITIVE : le regard va vers +x ; rotation x POSITIVE : on baisse la tête.
|
|
18
|
+
* Le côté droit est le miroir exact du côté gauche (y et z de signe opposé).
|
|
19
|
+
*/
|
|
20
|
+
export type Vec3 = [number, number, number];
|
|
21
|
+
export type Side = 'L' | 'R';
|
|
22
|
+
export type FingerName = 'thumb' | 'index' | 'middle' | 'ring' | 'pinky';
|
|
23
|
+
export type JointName = 'hips' | 'spine' | 'chest' | 'neck' | 'head' | `shoulder${Side}` | `elbow${Side}` | `wrist${Side}` | `hip${Side}` | `knee${Side}` | `ankle${Side}` | `${FingerName}${Side}${1 | 2}`;
|
|
24
|
+
export type EulerOrder = 'XYZ' | 'YXZ' | 'ZXY' | 'ZYX' | 'YZX' | 'XZY';
|
|
25
|
+
export interface JointSpec {
|
|
26
|
+
parent: JointName | null;
|
|
27
|
+
/** Position de l'articulation dans le repère de son parent, au repos. */
|
|
28
|
+
offset: Vec3;
|
|
29
|
+
/** Butées minimales (x, y, z) en radians. */
|
|
30
|
+
min: Vec3;
|
|
31
|
+
/** Butées maximales (x, y, z) en radians. */
|
|
32
|
+
max: Vec3;
|
|
33
|
+
order: EulerOrder;
|
|
34
|
+
}
|
|
35
|
+
/** Longueurs des segments (mètres) — partagées par le rendu et le solveur IK. */
|
|
36
|
+
export declare const DIMS: {
|
|
37
|
+
readonly hipsHeight: 0.62;
|
|
38
|
+
readonly upperArm: 0.25;
|
|
39
|
+
readonly foreArm: 0.23;
|
|
40
|
+
readonly thigh: 0.27;
|
|
41
|
+
readonly shin: 0.26;
|
|
42
|
+
readonly ankleHeight: 0.07;
|
|
43
|
+
readonly shoulderX: 0.27;
|
|
44
|
+
readonly hipX: 0.1;
|
|
45
|
+
};
|
|
46
|
+
export declare const SIDES: readonly Side[];
|
|
47
|
+
export declare const FINGERS: readonly FingerName[];
|
|
48
|
+
/** Place du doigt sur le bord de la paume (côté gauche ; le droit est le miroir). */
|
|
49
|
+
export declare const FINGER_BASE: Record<FingerName, Vec3>;
|
|
50
|
+
/** Longueur de chaque phalange (m). */
|
|
51
|
+
export declare const FINGER_LENGTH: Record<FingerName, [number, number]>;
|
|
52
|
+
export declare const JOINTS: Readonly<Record<JointName, JointSpec>>;
|
|
53
|
+
export declare const JOINT_NAMES: JointName[];
|
|
54
|
+
/** Table parent → enfants, pour construire l'arbre de rendu. */
|
|
55
|
+
export declare const CHILDREN: Readonly<Record<JointName, JointName[]>>;
|
|
56
|
+
export type Pose = Record<JointName, Vec3>;
|
|
57
|
+
export type PartialPose = Partial<Record<JointName, Vec3>>;
|
|
58
|
+
/** Pose de repos : bras le long du corps, légèrement écartés, coudes à peine pliés. */
|
|
59
|
+
export declare function createRestPose(): Pose;
|
|
60
|
+
export declare const REST_POSE: Readonly<Pose>;
|
|
61
|
+
/** Retourne le côté opposé d'un nom d'articulation (`elbowL` → `elbowR`). */
|
|
62
|
+
export declare function mirrorJointName(name: JointName): JointName;
|
|
63
|
+
/** Miroir d'une pose partielle : échange gauche/droite et inverse y et z. */
|
|
64
|
+
export declare function mirrorPose(pose: PartialPose): PartialPose;
|
|
65
|
+
export declare function clampToLimits(name: JointName, value: Vec3): Vec3;
|
|
66
|
+
//# sourceMappingURL=skeleton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"skeleton.d.ts","sourceRoot":"","sources":["../../../src/assistant/robot/skeleton.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,MAAM,MAAM,IAAI,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;AAC5C,MAAM,MAAM,IAAI,GAAG,GAAG,GAAG,GAAG,CAAC;AAC7B,MAAM,MAAM,UAAU,GAAG,OAAO,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,CAAC;AAEzE,MAAM,MAAM,SAAS,GACjB,MAAM,GACN,OAAO,GACP,OAAO,GACP,MAAM,GACN,MAAM,GACN,WAAW,IAAI,EAAE,GACjB,QAAQ,IAAI,EAAE,GACd,QAAQ,IAAI,EAAE,GACd,MAAM,IAAI,EAAE,GACZ,OAAO,IAAI,EAAE,GACb,QAAQ,IAAI,EAAE,GACd,GAAG,UAAU,GAAG,IAAI,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC;AAEnC,MAAM,MAAM,UAAU,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,CAAC;AAEvE,MAAM,WAAW,SAAS;IACxB,MAAM,EAAE,SAAS,GAAG,IAAI,CAAC;IACzB,yEAAyE;IACzE,MAAM,EAAE,IAAI,CAAC;IACb,6CAA6C;IAC7C,GAAG,EAAE,IAAI,CAAC;IACV,6CAA6C;IAC7C,GAAG,EAAE,IAAI,CAAC;IACV,KAAK,EAAE,UAAU,CAAC;CACnB;AAED,iFAAiF;AACjF,eAAO,MAAM,IAAI;;;;;;;;;CASP,CAAC;AAEX,eAAO,MAAM,KAAK,EAAE,SAAS,IAAI,EAAe,CAAC;AACjD,eAAO,MAAM,OAAO,EAAE,SAAS,UAAU,EAAkD,CAAC;AAK5F,qFAAqF;AACrF,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,UAAU,EAAE,IAAI,CAMhD,CAAC;AACF,uCAAuC;AACvC,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,UAAU,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAM9D,CAAC;AAoFF,eAAO,MAAM,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,SAAS,EAAE,SAAS,CAAC,CAAW,CAAC;AACtE,eAAO,MAAM,WAAW,EAA0B,SAAS,EAAE,CAAC;AAE9D,gEAAgE;AAChE,eAAO,MAAM,QAAQ,EAAE,QAAQ,CAAC,MAAM,CAAC,SAAS,EAAE,SAAS,EAAE,CAAC,CAQ1D,CAAC;AAEL,MAAM,MAAM,IAAI,GAAG,MAAM,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;AAC3C,MAAM,MAAM,WAAW,GAAG,OAAO,CAAC,MAAM,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC,CAAC;AAE3D,uFAAuF;AACvF,wBAAgB,cAAc,IAAI,IAAI,CAerC;AACD,eAAO,MAAM,SAAS,EAAE,QAAQ,CAAC,IAAI,CAAoB,CAAC;AAE1D,6EAA6E;AAC7E,wBAAgB,eAAe,CAAC,IAAI,EAAE,SAAS,GAAG,SAAS,CAI1D;AAED,6EAA6E;AAC7E,wBAAgB,UAAU,CAAC,IAAI,EAAE,WAAW,GAAG,WAAW,CAQzD;AAED,wBAAgB,aAAa,CAAC,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,IAAI,GAAG,IAAI,CAOhE"}
|
|
@@ -0,0 +1,266 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Squelette du robot assistant EGEN.
|
|
3
|
+
*
|
|
4
|
+
* Ce fichier est la SEULE source de vérité sur la structure du corps :
|
|
5
|
+
* - quelles articulations existent et qui est le parent de qui ;
|
|
6
|
+
* - où se trouve chaque articulation par rapport à son parent (en mètres) ;
|
|
7
|
+
* - dans quelles limites chaque articulation peut tourner (en radians).
|
|
8
|
+
*
|
|
9
|
+
* Repère : +y vers le haut, +z vers l'avant (là où le visage regarde), +x vers la
|
|
10
|
+
* gauche du robot (donc à DROITE de l'écran quand on le regarde de face).
|
|
11
|
+
*
|
|
12
|
+
* Conventions de rotation (utiles pour écrire des gestes) :
|
|
13
|
+
* - épaule / hanche / colonne / cou, rotation x NÉGATIVE : le membre part vers l'avant ;
|
|
14
|
+
* - coude, rotation x NÉGATIVE : l'avant-bras se plie vers l'avant ;
|
|
15
|
+
* - genou, rotation x POSITIVE : le tibia se plie vers l'arrière ;
|
|
16
|
+
* - épaule gauche, rotation z POSITIVE : le bras s'écarte du corps (côté droit : z négative) ;
|
|
17
|
+
* - tête / cou, rotation y POSITIVE : le regard va vers +x ; rotation x POSITIVE : on baisse la tête.
|
|
18
|
+
* Le côté droit est le miroir exact du côté gauche (y et z de signe opposé).
|
|
19
|
+
*/ /** Longueurs des segments (mètres) — partagées par le rendu et le solveur IK. */ export const DIMS = {
|
|
20
|
+
hipsHeight: 0.62,
|
|
21
|
+
upperArm: 0.25,
|
|
22
|
+
foreArm: 0.23,
|
|
23
|
+
thigh: 0.27,
|
|
24
|
+
shin: 0.26,
|
|
25
|
+
ankleHeight: 0.07,
|
|
26
|
+
shoulderX: 0.27,
|
|
27
|
+
hipX: 0.1
|
|
28
|
+
};
|
|
29
|
+
export const SIDES = [
|
|
30
|
+
'L',
|
|
31
|
+
'R'
|
|
32
|
+
];
|
|
33
|
+
export const FINGERS = [
|
|
34
|
+
'thumb',
|
|
35
|
+
'index',
|
|
36
|
+
'middle',
|
|
37
|
+
'ring',
|
|
38
|
+
'pinky'
|
|
39
|
+
];
|
|
40
|
+
const PI = Math.PI;
|
|
41
|
+
const v = (x, y, z)=>[
|
|
42
|
+
x,
|
|
43
|
+
y,
|
|
44
|
+
z
|
|
45
|
+
];
|
|
46
|
+
/** Place du doigt sur le bord de la paume (côté gauche ; le droit est le miroir). */ export const FINGER_BASE = {
|
|
47
|
+
thumb: v(-0.034, -0.03, 0.022),
|
|
48
|
+
index: v(-0.024, -0.093, 0.004),
|
|
49
|
+
middle: v(-0.008, -0.098, 0.004),
|
|
50
|
+
ring: v(0.008, -0.094, 0.004),
|
|
51
|
+
pinky: v(0.023, -0.087, 0.004)
|
|
52
|
+
};
|
|
53
|
+
/** Longueur de chaque phalange (m). */ export const FINGER_LENGTH = {
|
|
54
|
+
thumb: [
|
|
55
|
+
0.034,
|
|
56
|
+
0.03
|
|
57
|
+
],
|
|
58
|
+
index: [
|
|
59
|
+
0.03,
|
|
60
|
+
0.026
|
|
61
|
+
],
|
|
62
|
+
middle: [
|
|
63
|
+
0.033,
|
|
64
|
+
0.028
|
|
65
|
+
],
|
|
66
|
+
ring: [
|
|
67
|
+
0.03,
|
|
68
|
+
0.026
|
|
69
|
+
],
|
|
70
|
+
pinky: [
|
|
71
|
+
0.024,
|
|
72
|
+
0.022
|
|
73
|
+
]
|
|
74
|
+
};
|
|
75
|
+
function build() {
|
|
76
|
+
const j = {};
|
|
77
|
+
const set = (name, spec)=>{
|
|
78
|
+
j[name] = spec;
|
|
79
|
+
};
|
|
80
|
+
set('hips', {
|
|
81
|
+
parent: null,
|
|
82
|
+
offset: v(0, DIMS.hipsHeight, 0),
|
|
83
|
+
min: v(-0.5, -0.8, -0.4),
|
|
84
|
+
max: v(0.5, 0.8, 0.4),
|
|
85
|
+
order: 'YXZ'
|
|
86
|
+
});
|
|
87
|
+
set('spine', {
|
|
88
|
+
parent: 'hips',
|
|
89
|
+
offset: v(0, 0.05, 0),
|
|
90
|
+
min: v(-0.5, -0.8, -0.4),
|
|
91
|
+
max: v(0.7, 0.8, 0.4),
|
|
92
|
+
order: 'YXZ'
|
|
93
|
+
});
|
|
94
|
+
set('chest', {
|
|
95
|
+
parent: 'spine',
|
|
96
|
+
offset: v(0, 0.24, 0),
|
|
97
|
+
min: v(-0.4, -0.8, -0.4),
|
|
98
|
+
max: v(0.6, 0.8, 0.4),
|
|
99
|
+
order: 'YXZ'
|
|
100
|
+
});
|
|
101
|
+
set('neck', {
|
|
102
|
+
parent: 'chest',
|
|
103
|
+
offset: v(0, 0.27, 0),
|
|
104
|
+
min: v(-0.5, -0.9, -0.4),
|
|
105
|
+
max: v(0.6, 0.9, 0.4),
|
|
106
|
+
order: 'YXZ'
|
|
107
|
+
});
|
|
108
|
+
set('head', {
|
|
109
|
+
parent: 'neck',
|
|
110
|
+
offset: v(0, 0.06, 0),
|
|
111
|
+
min: v(-0.6, -1.0, -0.5),
|
|
112
|
+
max: v(0.7, 1.0, 0.5),
|
|
113
|
+
order: 'YXZ'
|
|
114
|
+
});
|
|
115
|
+
for (const s of SIDES){
|
|
116
|
+
const m = s === 'L' ? 1 : -1;
|
|
117
|
+
// Les butées de y et z sont calculées pour le côté gauche puis retournées pour le droit.
|
|
118
|
+
const flip = (lo, hi)=>m === 1 ? {
|
|
119
|
+
min: lo,
|
|
120
|
+
max: hi
|
|
121
|
+
} : {
|
|
122
|
+
min: v(lo[0], -hi[1], -hi[2]),
|
|
123
|
+
max: v(hi[0], -lo[1], -lo[2])
|
|
124
|
+
};
|
|
125
|
+
set(`shoulder${s}`, {
|
|
126
|
+
parent: 'chest',
|
|
127
|
+
offset: v(m * DIMS.shoulderX, 0.2, 0),
|
|
128
|
+
...flip(v(-PI, -1.7, -0.9), v(1.0, 1.7, PI)),
|
|
129
|
+
order: 'ZXY'
|
|
130
|
+
});
|
|
131
|
+
set(`elbow${s}`, {
|
|
132
|
+
parent: `shoulder${s}`,
|
|
133
|
+
offset: v(0, -DIMS.upperArm, 0),
|
|
134
|
+
...flip(v(-2.6, -0.3, -0.1), v(0.05, 0.3, 0.1)),
|
|
135
|
+
order: 'XYZ'
|
|
136
|
+
});
|
|
137
|
+
set(`wrist${s}`, {
|
|
138
|
+
parent: `elbow${s}`,
|
|
139
|
+
offset: v(0, -DIMS.foreArm, 0),
|
|
140
|
+
...flip(v(-1.1, -1.7, -0.7), v(1.1, 1.7, 0.7)),
|
|
141
|
+
order: 'YXZ'
|
|
142
|
+
});
|
|
143
|
+
set(`hip${s}`, {
|
|
144
|
+
parent: 'hips',
|
|
145
|
+
offset: v(m * DIMS.hipX, -0.02, 0),
|
|
146
|
+
...flip(v(-1.7, -0.6, -0.4), v(0.6, 0.6, 0.9)),
|
|
147
|
+
order: 'XZY'
|
|
148
|
+
});
|
|
149
|
+
set(`knee${s}`, {
|
|
150
|
+
parent: `hip${s}`,
|
|
151
|
+
offset: v(0, -DIMS.thigh, 0),
|
|
152
|
+
min: v(0, 0, 0),
|
|
153
|
+
max: v(2.5, 0, 0),
|
|
154
|
+
order: 'XYZ'
|
|
155
|
+
});
|
|
156
|
+
set(`ankle${s}`, {
|
|
157
|
+
parent: `knee${s}`,
|
|
158
|
+
offset: v(0, -DIMS.shin, 0),
|
|
159
|
+
...flip(v(-0.6, -0.3, -0.3), v(0.6, 0.3, 0.3)),
|
|
160
|
+
order: 'XYZ'
|
|
161
|
+
});
|
|
162
|
+
for (const f of FINGERS){
|
|
163
|
+
const base = FINGER_BASE[f];
|
|
164
|
+
const [l1] = FINGER_LENGTH[f];
|
|
165
|
+
// Les doigts se plient vers la paume (axe z, signe selon le côté).
|
|
166
|
+
const lim = (max)=>flip(v(-0.2, -0.2, -max), v(0.2, 0.2, 0.1));
|
|
167
|
+
// Le pouce s'écarte de la paume (axe x) en plus de se plier ; les autres doigts non.
|
|
168
|
+
const lim1 = f === 'thumb' ? flip(v(-1.5, -0.5, -1.5), v(0.5, 0.5, 0.1)) : lim(1.5);
|
|
169
|
+
set(`${f}${s}1`, {
|
|
170
|
+
parent: `wrist${s}`,
|
|
171
|
+
offset: v(m * base[0], base[1], base[2]),
|
|
172
|
+
...lim1,
|
|
173
|
+
order: 'XYZ'
|
|
174
|
+
});
|
|
175
|
+
set(`${f}${s}2`, {
|
|
176
|
+
parent: `${f}${s}1`,
|
|
177
|
+
offset: v(0, -l1, 0),
|
|
178
|
+
...lim(1.7),
|
|
179
|
+
order: 'XYZ'
|
|
180
|
+
});
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
return j;
|
|
184
|
+
}
|
|
185
|
+
export const JOINTS = build();
|
|
186
|
+
export const JOINT_NAMES = Object.keys(JOINTS);
|
|
187
|
+
/** Table parent → enfants, pour construire l'arbre de rendu. */ export const CHILDREN = (()=>{
|
|
188
|
+
const c = {};
|
|
189
|
+
for (const n of JOINT_NAMES)c[n] = [];
|
|
190
|
+
for (const n of JOINT_NAMES){
|
|
191
|
+
const p = JOINTS[n].parent;
|
|
192
|
+
if (p) c[p].push(n);
|
|
193
|
+
}
|
|
194
|
+
return c;
|
|
195
|
+
})();
|
|
196
|
+
/** Pose de repos : bras le long du corps, légèrement écartés, coudes à peine pliés. */ export function createRestPose() {
|
|
197
|
+
const p = {};
|
|
198
|
+
for (const n of JOINT_NAMES)p[n] = [
|
|
199
|
+
0,
|
|
200
|
+
0,
|
|
201
|
+
0
|
|
202
|
+
];
|
|
203
|
+
for (const s of SIDES){
|
|
204
|
+
const m = s === 'L' ? 1 : -1;
|
|
205
|
+
p[`shoulder${s}`] = [
|
|
206
|
+
0,
|
|
207
|
+
0,
|
|
208
|
+
m * 0.1
|
|
209
|
+
];
|
|
210
|
+
p[`elbow${s}`] = [
|
|
211
|
+
-0.12,
|
|
212
|
+
0,
|
|
213
|
+
0
|
|
214
|
+
];
|
|
215
|
+
p[`hip${s}`] = [
|
|
216
|
+
0,
|
|
217
|
+
0,
|
|
218
|
+
m * 0.03
|
|
219
|
+
];
|
|
220
|
+
for (const f of FINGERS){
|
|
221
|
+
const c = f === 'thumb' ? 0.25 : 0.18;
|
|
222
|
+
p[`${f}${s}1`] = [
|
|
223
|
+
0,
|
|
224
|
+
0,
|
|
225
|
+
-m * c
|
|
226
|
+
];
|
|
227
|
+
p[`${f}${s}2`] = [
|
|
228
|
+
0,
|
|
229
|
+
0,
|
|
230
|
+
-m * c * 1.2
|
|
231
|
+
];
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
return p;
|
|
235
|
+
}
|
|
236
|
+
export const REST_POSE = createRestPose();
|
|
237
|
+
/** Retourne le côté opposé d'un nom d'articulation (`elbowL` → `elbowR`). */ export function mirrorJointName(name) {
|
|
238
|
+
if (name.includes('L')) return name.replace('L', 'R');
|
|
239
|
+
if (name.includes('R')) return name.replace('R', 'L');
|
|
240
|
+
return name;
|
|
241
|
+
}
|
|
242
|
+
/** Miroir d'une pose partielle : échange gauche/droite et inverse y et z. */ export function mirrorPose(pose) {
|
|
243
|
+
const out = {};
|
|
244
|
+
for (const [k, val] of Object.entries(pose)){
|
|
245
|
+
const name = mirrorJointName(k);
|
|
246
|
+
const sided = name !== k;
|
|
247
|
+
out[name] = sided ? [
|
|
248
|
+
val[0],
|
|
249
|
+
-val[1],
|
|
250
|
+
-val[2]
|
|
251
|
+
] : [
|
|
252
|
+
val[0],
|
|
253
|
+
val[1],
|
|
254
|
+
val[2]
|
|
255
|
+
];
|
|
256
|
+
}
|
|
257
|
+
return out;
|
|
258
|
+
}
|
|
259
|
+
export function clampToLimits(name, value) {
|
|
260
|
+
const { min, max } = JOINTS[name];
|
|
261
|
+
return [
|
|
262
|
+
Math.min(max[0], Math.max(min[0], value[0])),
|
|
263
|
+
Math.min(max[1], Math.max(min[1], value[1])),
|
|
264
|
+
Math.min(max[2], Math.max(min[2], value[2]))
|
|
265
|
+
];
|
|
266
|
+
}
|
|
@@ -6,7 +6,7 @@ export interface CardHeaderProps {
|
|
|
6
6
|
children?: React.ReactNode;
|
|
7
7
|
}
|
|
8
8
|
/**
|
|
9
|
-
* Re-usable header component for O3-style cards, like those found on the
|
|
9
|
+
* Re-usable header component for O3-style cards, like those found on the entity chart
|
|
10
10
|
*/
|
|
11
11
|
export declare function CardHeader({ title, children }: CardHeaderProps): React.JSX.Element;
|
|
12
12
|
//# sourceMappingURL=card-header.component.d.ts.map
|
|
@@ -4,7 +4,7 @@ import classNames from "classnames";
|
|
|
4
4
|
import { useLayoutType } from "@egen-civitas/esm-react-utils";
|
|
5
5
|
import styles from "./card-header.module.scss";
|
|
6
6
|
/**
|
|
7
|
-
* Re-usable header component for O3-style cards, like those found on the
|
|
7
|
+
* Re-usable header component for O3-style cards, like those found on the entity chart
|
|
8
8
|
*/ export function CardHeader({ title, children }) {
|
|
9
9
|
const isTablet = useLayoutType() === 'tablet';
|
|
10
10
|
return /*#__PURE__*/ _jsxs("div", {
|
|
@@ -125,7 +125,7 @@ html[data-public-route='true'] {
|
|
|
125
125
|
// ces bords. Les routes publiques la remettent plein cadre, sans teinte.
|
|
126
126
|
margin: calc(var(--egen-workbench-gap, 0.375rem) / 2);
|
|
127
127
|
border-radius: 0.625rem;
|
|
128
|
-
background: var(--egen-workbench-card-bg, rgb(0 0 0 /
|
|
128
|
+
background: var(--egen-workbench-card-bg, rgb(0 0 0 / 24%));
|
|
129
129
|
}
|
|
130
130
|
|
|
131
131
|
// ── Plan de travail : rails fixes + zones redimensionnables (façon IntelliJ) ──
|
|
@@ -140,11 +140,11 @@ html[data-public-route='true'] {
|
|
|
140
140
|
--egen-workbench-gap: 0.375rem;
|
|
141
141
|
// Fond des cartes (zones + centre) : un léger assombrissement, jamais un aplat opaque, pour que
|
|
142
142
|
// le fond global reste visible. Les rails et la TopBar n'ont, eux, AUCUN fond.
|
|
143
|
-
--egen-workbench-card-bg: rgb(0 0 0 /
|
|
143
|
+
--egen-workbench-card-bg: rgb(0 0 0 / 24%);
|
|
144
144
|
}
|
|
145
145
|
|
|
146
146
|
:root[data-theme='light'] {
|
|
147
|
-
--egen-workbench-card-bg: rgb(0 0 0 /
|
|
147
|
+
--egen-workbench-card-bg: rgb(0 0 0 / 8%);
|
|
148
148
|
}
|
|
149
149
|
|
|
150
150
|
// Pendant un redimensionnement : pas de sélection de texte qui suit le pointeur.
|
package/dist/config-schema.d.ts
CHANGED
|
@@ -4,27 +4,10 @@ export interface StyleguideConfigObject {
|
|
|
4
4
|
'Brand color #1': string;
|
|
5
5
|
'Brand color #2': string;
|
|
6
6
|
'Brand color #3': string;
|
|
7
|
-
/**
|
|
8
|
-
* UUIDs of entity identifier code types to exclude from rendering in the entity banner.
|
|
9
|
-
*/
|
|
10
|
-
excludeEntityIdentifierCodeTypes: {
|
|
11
|
-
uuids: Array<string>;
|
|
12
|
-
};
|
|
13
7
|
/**
|
|
14
8
|
* The name of this deployment/implementation, shown in the UI.
|
|
15
9
|
*/
|
|
16
10
|
implementationName: string;
|
|
17
|
-
/**
|
|
18
|
-
* Concept UUID used to look up a profile photo stored as an attachment.
|
|
19
|
-
* Set to `null` to disable and use only generated avatars.
|
|
20
|
-
*/
|
|
21
|
-
entityPhotoConceptUuid: string;
|
|
22
|
-
/**
|
|
23
|
-
* Attribute type UUIDs to show as contact details in the entity banner.
|
|
24
|
-
*/
|
|
25
|
-
contactAttributeTypes: {
|
|
26
|
-
uuids: Array<string>;
|
|
27
|
-
};
|
|
28
11
|
preferredCalendar: {
|
|
29
12
|
[key: string]: string;
|
|
30
13
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config-schema.d.ts","sourceRoot":"","sources":["../src/config-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAoB,MAAM,0BAA0B,CAAC;AAC/E,OAAO,EAAE,KAAK,cAAc,EAAmB,MAAM,YAAY,CAAC;AAElE,MAAM,WAAW,sBAAsB;IACrC,gBAAgB,EAAE,MAAM,CAAC;IACzB,gBAAgB,EAAE,MAAM,CAAC;IACzB,gBAAgB,EAAE,MAAM,CAAC;IACzB;;OAEG;IACH,
|
|
1
|
+
{"version":3,"file":"config-schema.d.ts","sourceRoot":"","sources":["../src/config-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAoB,MAAM,0BAA0B,CAAC;AAC/E,OAAO,EAAE,KAAK,cAAc,EAAmB,MAAM,YAAY,CAAC;AAElE,MAAM,WAAW,sBAAsB;IACrC,gBAAgB,EAAE,MAAM,CAAC;IACzB,gBAAgB,EAAE,MAAM,CAAC;IACzB,gBAAgB,EAAE,MAAM,CAAC;IACzB;;OAEG;IACH,kBAAkB,EAAE,MAAM,CAAC;IAC3B,iBAAiB,EAAE;QACjB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;KACvB,CAAC;IACF,mBAAmB,EAAE;QACnB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;KACvB,CAAC;IACF;;OAEG;IACH,kBAAkB,EAAE;QAClB,YAAY,EAAE,cAAc,CAAC;QAC7B,cAAc,EAAE,cAAc,CAAC;KAChC,CAAC;CACH;AAiBD,eAAO,MAAM,mBAAmB,EAAE,YA+DjC,CAAC"}
|
package/dist/config-schema.js
CHANGED
|
@@ -31,36 +31,11 @@ export const esmStyleGuideSchema = {
|
|
|
31
31
|
_default: '#007d79',
|
|
32
32
|
_type: Type.String
|
|
33
33
|
},
|
|
34
|
-
excludeEntityIdentifierCodeTypes: {
|
|
35
|
-
uuids: {
|
|
36
|
-
_type: Type.Array,
|
|
37
|
-
_description: 'List of UUIDs of entity identifier types to exclude from rendering in the entity banner',
|
|
38
|
-
_default: [],
|
|
39
|
-
_elements: {
|
|
40
|
-
_type: Type.UUID
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
34
|
implementationName: {
|
|
45
35
|
_type: Type.String,
|
|
46
36
|
_description: 'The name of the deployment or authority displayed in the UI.',
|
|
47
37
|
_default: 'Framework'
|
|
48
38
|
},
|
|
49
|
-
entityPhotoConceptUuid: {
|
|
50
|
-
_type: Type.ConceptUuid,
|
|
51
|
-
_default: '736e8771-e501-4615-bfa7-570c03f4bef5',
|
|
52
|
-
_description: 'Used to look up the entity profile photo, stored as an attachment. Set to `null` to disable and use only generated avatars.'
|
|
53
|
-
},
|
|
54
|
-
contactAttributeTypes: {
|
|
55
|
-
uuids: {
|
|
56
|
-
_type: Type.Array,
|
|
57
|
-
_description: 'UUIDs of attribute types to show as contact details in the entity banner',
|
|
58
|
-
_default: [],
|
|
59
|
-
_elements: {
|
|
60
|
-
_type: Type.UUID
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
},
|
|
64
39
|
preferredCalendar: {
|
|
65
40
|
_type: Type.Object,
|
|
66
41
|
_description: "Keys should be locale codes, values should be the preferred calendar for that locale. For example, {'am': 'ethiopic'}.",
|
|
@@ -10,7 +10,7 @@ const meta = {
|
|
|
10
10
|
export default meta;
|
|
11
11
|
export const ServerError = {
|
|
12
12
|
args: {
|
|
13
|
-
headerTitle: '
|
|
13
|
+
headerTitle: 'Metrics',
|
|
14
14
|
error: {
|
|
15
15
|
response: {
|
|
16
16
|
status: 500,
|
|
@@ -21,7 +21,7 @@ export const ServerError = {
|
|
|
21
21
|
};
|
|
22
22
|
export const NotFound = {
|
|
23
23
|
args: {
|
|
24
|
-
headerTitle: '
|
|
24
|
+
headerTitle: 'Documents',
|
|
25
25
|
error: {
|
|
26
26
|
response: {
|
|
27
27
|
status: 404,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icon-registration.d.ts","sourceRoot":"","sources":["../../src/icons/icon-registration.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"icon-registration.d.ts","sourceRoot":"","sources":["../../src/icons/icon-registration.ts"],"names":[],"mappings":"AAgFA,wBAAgB,UAAU,SA6EzB"}
|