@quazardous/qdadm 2.37.0 → 2.39.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/dist/styles/qdadm.css +1 -1
- package/package.json +8 -2
- package/src/components/editors/yaml/VanillaYamlEditor.vue +146 -0
- package/src/components/editors/yaml/YamlConfigEditor.vue +353 -0
- package/src/components/editors/yaml/yamlConfigAdapter.ts +141 -0
- package/src/components/index.ts +1 -0
- package/src/components/layout/CardsDashboard.vue +395 -0
- package/src/components/layout/DashboardLayout.vue +12 -1
- package/src/components/pages/LoginPage.vue +284 -18
- package/src/components/pages/OAuthCallbackPage.vue +32 -4
- package/src/composables/useCardsArrangement.ts +220 -0
- package/src/composables/useNavigation.ts +5 -6
- package/src/editors/yaml.ts +24 -0
- package/src/i18n/defaults/core.en.generated.ts +73 -0
- package/src/i18n/defaults/core.en.yml +73 -0
- package/src/i18n/defaults/core.fr.generated.ts +73 -0
- package/src/i18n/defaults/core.fr.yml +73 -0
- package/src/index.ts +10 -0
- package/src/kernel/KernelContext.types.ts +1 -1
- package/src/module/moduleRegistry.ts +1 -1
- package/src/styles/_cards-dashboard.scss +189 -0
- package/src/styles/_yaml-editor.scss +111 -0
- package/src/styles/index.scss +2 -0
- package/src/zones/ZoneRegistry.ts +25 -1
- package/src/zones/index.ts +1 -0
|
@@ -34,7 +34,7 @@ export interface NavItem {
|
|
|
34
34
|
href?: string
|
|
35
35
|
/** Where an `href` entry opens: default `_blank` for an absolute URL, same tab otherwise. */
|
|
36
36
|
target?: string
|
|
37
|
-
/**
|
|
37
|
+
/** The entry is shown only to whoever is granted this attribute (`route` or `href`). */
|
|
38
38
|
permission?: string
|
|
39
39
|
/** Set on `href` entries by `navSections`: opens outside the app in another tab. */
|
|
40
40
|
external?: boolean
|
|
@@ -110,11 +110,10 @@ export function useNavigation(): UseNavigationReturn {
|
|
|
110
110
|
* Check if user can access a nav item: canList() when it opens a list route, canRead() otherwise
|
|
111
111
|
*/
|
|
112
112
|
function canAccessNavItem(item: NavItem): boolean {
|
|
113
|
-
//
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
if (!item.entity || !orchestrator) return true
|
|
113
|
+
// Its own permission, on any entry (#3675, #4318): a link out has nothing
|
|
114
|
+
// else to check, a route entry no longer needs `entity` to follow rights.
|
|
115
|
+
if (item.permission && securityChecker && !securityChecker.isGranted(item.permission)) return false
|
|
116
|
+
if (item.href || !item.entity || !orchestrator) return true
|
|
118
117
|
const manager = orchestrator.get(item.entity)
|
|
119
118
|
if (!manager) return true
|
|
120
119
|
// A menu entry is shown to whoever may do what its page does (#2497): a
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* qdadm/editors/yaml - YAML editors on @quazardous/vanilla-yamleditor (#4303)
|
|
3
|
+
*
|
|
4
|
+
* Import from '@quazardous/qdadm/editors/yaml' only if you install
|
|
5
|
+
* @quazardous/vanilla-yamleditor (an optional peer): it stays out of the
|
|
6
|
+
* main bundle and of '@quazardous/qdadm/editors'.
|
|
7
|
+
*
|
|
8
|
+
* import { VanillaYamlEditor, YamlConfigEditor, restYamlAdapter } from '@quazardous/qdadm/editors/yaml'
|
|
9
|
+
*/
|
|
10
|
+
export { default as VanillaYamlEditor } from '../components/editors/yaml/VanillaYamlEditor.vue'
|
|
11
|
+
export { default as YamlConfigEditor } from '../components/editors/yaml/YamlConfigEditor.vue'
|
|
12
|
+
export {
|
|
13
|
+
restYamlAdapter,
|
|
14
|
+
normalizeProblems,
|
|
15
|
+
normalizeProblemPath,
|
|
16
|
+
YamlConflictError,
|
|
17
|
+
type RestYamlAdapterOptions,
|
|
18
|
+
type YamlConfigAdapter,
|
|
19
|
+
type YamlConfigDocument,
|
|
20
|
+
type YamlHistoryEntry,
|
|
21
|
+
type YamlRevision,
|
|
22
|
+
type YamlSaveInput,
|
|
23
|
+
} from '../components/editors/yaml/yamlConfigAdapter'
|
|
24
|
+
export type { JsonSchema, YamlProblem, YamlProblemInput, YamlEditorMode, YamlEditorStatus } from '@quazardous/vanilla-yamleditor'
|
|
@@ -174,6 +174,36 @@ export default `core:
|
|
|
174
174
|
invalidCredentials: Invalid credentials
|
|
175
175
|
configError: Configuration Error
|
|
176
176
|
noAuthAdapter: No auth adapter configured
|
|
177
|
+
# Identity provider first (#4321)
|
|
178
|
+
sso: Sign in
|
|
179
|
+
providerHome: My account
|
|
180
|
+
localFallback: Alternative login
|
|
181
|
+
localSection: Alternative login
|
|
182
|
+
noSso: No sign-in flow configured for this button
|
|
183
|
+
# CardsDashboard (#4320)
|
|
184
|
+
cardsDashboard:
|
|
185
|
+
customise: Customise
|
|
186
|
+
done: Done
|
|
187
|
+
reset: Reset
|
|
188
|
+
resetDone: Default arrangement restored
|
|
189
|
+
hidden: Hidden cards
|
|
190
|
+
noneHidden: None
|
|
191
|
+
move: "Move {title}"
|
|
192
|
+
moved: "{title}: card {position} of {total}"
|
|
193
|
+
help: Arrow keys move the card, Home and End to the start or the end
|
|
194
|
+
dragCancelled: Move cancelled
|
|
195
|
+
pin: "Pin {title} at the top"
|
|
196
|
+
unpin: "Unpin {title}"
|
|
197
|
+
pinnedOne: "{title} pinned at the top"
|
|
198
|
+
unpinnedOne: "{title} unpinned"
|
|
199
|
+
hide: "Hide {title}"
|
|
200
|
+
hiddenOne: "{title} hidden"
|
|
201
|
+
restore: "Show {title}"
|
|
202
|
+
restoredOne: "{title} shown"
|
|
203
|
+
show: Show
|
|
204
|
+
trayView: Show hidden cards as
|
|
205
|
+
viewCards: Cards
|
|
206
|
+
viewCompact: Compact
|
|
177
207
|
# NotificationPanel and NotificationBadge (#4171)
|
|
178
208
|
notifications:
|
|
179
209
|
title: Notifications
|
|
@@ -194,6 +224,49 @@ export default `core:
|
|
|
194
224
|
next: Next message
|
|
195
225
|
position: "{index} of {count}"
|
|
196
226
|
close: Close this message
|
|
227
|
+
# VanillaYamlEditor and YamlConfigEditor (#4303)
|
|
228
|
+
yamlEditor:
|
|
229
|
+
text: Text
|
|
230
|
+
tree: Form
|
|
231
|
+
modes: View
|
|
232
|
+
syntaxBlocked: Fix the syntax errors before switching to the form
|
|
233
|
+
syntaxErrors: "{count} syntax error | {count} syntax errors"
|
|
234
|
+
addItem: Add item
|
|
235
|
+
addKey: Add
|
|
236
|
+
newKey: new key
|
|
237
|
+
remove: Remove
|
|
238
|
+
rename: Key name
|
|
239
|
+
empty: (empty)
|
|
240
|
+
alias: An alias, edit it in the text view
|
|
241
|
+
count: "{count} entry | {count} entries"
|
|
242
|
+
loading: Loading
|
|
243
|
+
loadError: "Could not load: {message}"
|
|
244
|
+
readOnly: Read only
|
|
245
|
+
unsaved: Unsaved changes
|
|
246
|
+
upToDate: Up to date
|
|
247
|
+
check: Check
|
|
248
|
+
checkOk: No problem found
|
|
249
|
+
problems: "{count} problem | {count} problems"
|
|
250
|
+
save: Save…
|
|
251
|
+
review: Review the change
|
|
252
|
+
noChange: Nothing changed
|
|
253
|
+
reason: Reason
|
|
254
|
+
reasonPlaceholder: Why this change? It goes into the history.
|
|
255
|
+
confirmSave: Save
|
|
256
|
+
saved: Saved
|
|
257
|
+
saveError: "Could not save: {message}"
|
|
258
|
+
cancel: Cancel
|
|
259
|
+
revert: Discard changes
|
|
260
|
+
before: Before
|
|
261
|
+
after: After
|
|
262
|
+
history: History
|
|
263
|
+
historyEmpty: No history yet
|
|
264
|
+
restore: Load this version
|
|
265
|
+
restored: "Version {revision} loaded: review and save it to restore it"
|
|
266
|
+
conflictTitle: Changed meanwhile
|
|
267
|
+
conflictText: Someone saved this document after you opened it. Their version is on the left, yours on the right.
|
|
268
|
+
takeTheirs: Load their version
|
|
269
|
+
keepMine: Keep mine and save over it
|
|
197
270
|
# NotFoundPage
|
|
198
271
|
notFound:
|
|
199
272
|
title: Page not found
|
|
@@ -172,6 +172,36 @@ core:
|
|
|
172
172
|
invalidCredentials: Invalid credentials
|
|
173
173
|
configError: Configuration Error
|
|
174
174
|
noAuthAdapter: No auth adapter configured
|
|
175
|
+
# Identity provider first (#4321)
|
|
176
|
+
sso: Sign in
|
|
177
|
+
providerHome: My account
|
|
178
|
+
localFallback: Alternative login
|
|
179
|
+
localSection: Alternative login
|
|
180
|
+
noSso: No sign-in flow configured for this button
|
|
181
|
+
# CardsDashboard (#4320)
|
|
182
|
+
cardsDashboard:
|
|
183
|
+
customise: Customise
|
|
184
|
+
done: Done
|
|
185
|
+
reset: Reset
|
|
186
|
+
resetDone: Default arrangement restored
|
|
187
|
+
hidden: Hidden cards
|
|
188
|
+
noneHidden: None
|
|
189
|
+
move: "Move {title}"
|
|
190
|
+
moved: "{title}: card {position} of {total}"
|
|
191
|
+
help: Arrow keys move the card, Home and End to the start or the end
|
|
192
|
+
dragCancelled: Move cancelled
|
|
193
|
+
pin: "Pin {title} at the top"
|
|
194
|
+
unpin: "Unpin {title}"
|
|
195
|
+
pinnedOne: "{title} pinned at the top"
|
|
196
|
+
unpinnedOne: "{title} unpinned"
|
|
197
|
+
hide: "Hide {title}"
|
|
198
|
+
hiddenOne: "{title} hidden"
|
|
199
|
+
restore: "Show {title}"
|
|
200
|
+
restoredOne: "{title} shown"
|
|
201
|
+
show: Show
|
|
202
|
+
trayView: Show hidden cards as
|
|
203
|
+
viewCards: Cards
|
|
204
|
+
viewCompact: Compact
|
|
175
205
|
# NotificationPanel and NotificationBadge (#4171)
|
|
176
206
|
notifications:
|
|
177
207
|
title: Notifications
|
|
@@ -192,6 +222,49 @@ core:
|
|
|
192
222
|
next: Next message
|
|
193
223
|
position: "{index} of {count}"
|
|
194
224
|
close: Close this message
|
|
225
|
+
# VanillaYamlEditor and YamlConfigEditor (#4303)
|
|
226
|
+
yamlEditor:
|
|
227
|
+
text: Text
|
|
228
|
+
tree: Form
|
|
229
|
+
modes: View
|
|
230
|
+
syntaxBlocked: Fix the syntax errors before switching to the form
|
|
231
|
+
syntaxErrors: "{count} syntax error | {count} syntax errors"
|
|
232
|
+
addItem: Add item
|
|
233
|
+
addKey: Add
|
|
234
|
+
newKey: new key
|
|
235
|
+
remove: Remove
|
|
236
|
+
rename: Key name
|
|
237
|
+
empty: (empty)
|
|
238
|
+
alias: An alias, edit it in the text view
|
|
239
|
+
count: "{count} entry | {count} entries"
|
|
240
|
+
loading: Loading
|
|
241
|
+
loadError: "Could not load: {message}"
|
|
242
|
+
readOnly: Read only
|
|
243
|
+
unsaved: Unsaved changes
|
|
244
|
+
upToDate: Up to date
|
|
245
|
+
check: Check
|
|
246
|
+
checkOk: No problem found
|
|
247
|
+
problems: "{count} problem | {count} problems"
|
|
248
|
+
save: Save…
|
|
249
|
+
review: Review the change
|
|
250
|
+
noChange: Nothing changed
|
|
251
|
+
reason: Reason
|
|
252
|
+
reasonPlaceholder: Why this change? It goes into the history.
|
|
253
|
+
confirmSave: Save
|
|
254
|
+
saved: Saved
|
|
255
|
+
saveError: "Could not save: {message}"
|
|
256
|
+
cancel: Cancel
|
|
257
|
+
revert: Discard changes
|
|
258
|
+
before: Before
|
|
259
|
+
after: After
|
|
260
|
+
history: History
|
|
261
|
+
historyEmpty: No history yet
|
|
262
|
+
restore: Load this version
|
|
263
|
+
restored: "Version {revision} loaded: review and save it to restore it"
|
|
264
|
+
conflictTitle: Changed meanwhile
|
|
265
|
+
conflictText: Someone saved this document after you opened it. Their version is on the left, yours on the right.
|
|
266
|
+
takeTheirs: Load their version
|
|
267
|
+
keepMine: Keep mine and save over it
|
|
195
268
|
# NotFoundPage
|
|
196
269
|
notFound:
|
|
197
270
|
title: Page not found
|
|
@@ -174,6 +174,36 @@ export default `core:
|
|
|
174
174
|
invalidCredentials: Identifiants invalides
|
|
175
175
|
configError: Erreur de configuration
|
|
176
176
|
noAuthAdapter: Aucun adaptateur d'authentification configuré
|
|
177
|
+
# Identity provider first (#4321)
|
|
178
|
+
sso: Se connecter
|
|
179
|
+
providerHome: Mon compte
|
|
180
|
+
localFallback: Login alternatif
|
|
181
|
+
localSection: Login alternatif
|
|
182
|
+
noSso: Aucun parcours de connexion configuré pour ce bouton
|
|
183
|
+
# CardsDashboard (#4320)
|
|
184
|
+
cardsDashboard:
|
|
185
|
+
customise: Personnaliser
|
|
186
|
+
done: Terminé
|
|
187
|
+
reset: Réinitialiser
|
|
188
|
+
resetDone: Disposition par défaut rétablie
|
|
189
|
+
hidden: Cartes masquées
|
|
190
|
+
noneHidden: Aucune
|
|
191
|
+
move: "Déplacer {title}"
|
|
192
|
+
moved: "{title} : carte {position} sur {total}"
|
|
193
|
+
help: Les flèches déplacent la carte, Début et Fin vers le début ou la fin
|
|
194
|
+
dragCancelled: Déplacement annulé
|
|
195
|
+
pin: "Épingler {title} en haut"
|
|
196
|
+
unpin: "Désépingler {title}"
|
|
197
|
+
pinnedOne: "{title} épinglée en haut"
|
|
198
|
+
unpinnedOne: "{title} désépinglée"
|
|
199
|
+
hide: "Masquer {title}"
|
|
200
|
+
hiddenOne: "{title} masquée"
|
|
201
|
+
restore: "Afficher {title}"
|
|
202
|
+
restoredOne: "{title} affichée"
|
|
203
|
+
show: Afficher
|
|
204
|
+
trayView: Afficher les cartes masquées en
|
|
205
|
+
viewCards: Cartes
|
|
206
|
+
viewCompact: Compact
|
|
177
207
|
# NotificationPanel and NotificationBadge (#4171)
|
|
178
208
|
notifications:
|
|
179
209
|
title: Notifications
|
|
@@ -194,6 +224,49 @@ export default `core:
|
|
|
194
224
|
next: Message suivant
|
|
195
225
|
position: "{index} sur {count}"
|
|
196
226
|
close: Fermer ce message
|
|
227
|
+
# VanillaYamlEditor and YamlConfigEditor (#4303)
|
|
228
|
+
yamlEditor:
|
|
229
|
+
text: Texte
|
|
230
|
+
tree: Formulaire
|
|
231
|
+
modes: Vue
|
|
232
|
+
syntaxBlocked: Corrigez les erreurs de syntaxe avant de passer au formulaire
|
|
233
|
+
syntaxErrors: "{count} erreur de syntaxe | {count} erreurs de syntaxe"
|
|
234
|
+
addItem: Ajouter un élément
|
|
235
|
+
addKey: Ajouter
|
|
236
|
+
newKey: nouvelle clé
|
|
237
|
+
remove: Retirer
|
|
238
|
+
rename: Nom de la clé
|
|
239
|
+
empty: (vide)
|
|
240
|
+
alias: Un alias, à modifier dans la vue texte
|
|
241
|
+
count: "{count} entrée | {count} entrées"
|
|
242
|
+
loading: Chargement
|
|
243
|
+
loadError: "Chargement impossible : {message}"
|
|
244
|
+
readOnly: Lecture seule
|
|
245
|
+
unsaved: Modifications non enregistrées
|
|
246
|
+
upToDate: À jour
|
|
247
|
+
check: Vérifier
|
|
248
|
+
checkOk: Aucun problème trouvé
|
|
249
|
+
problems: "{count} problème | {count} problèmes"
|
|
250
|
+
save: Enregistrer…
|
|
251
|
+
review: Relire la modification
|
|
252
|
+
noChange: Rien n'a changé
|
|
253
|
+
reason: Motif
|
|
254
|
+
reasonPlaceholder: Pourquoi ce changement ? Il figure dans l'historique.
|
|
255
|
+
confirmSave: Enregistrer
|
|
256
|
+
saved: Enregistré
|
|
257
|
+
saveError: "Enregistrement impossible : {message}"
|
|
258
|
+
cancel: Annuler
|
|
259
|
+
revert: Abandonner les modifications
|
|
260
|
+
before: Avant
|
|
261
|
+
after: Après
|
|
262
|
+
history: Historique
|
|
263
|
+
historyEmpty: Pas encore d'historique
|
|
264
|
+
restore: Charger cette version
|
|
265
|
+
restored: "Version {revision} chargée : relisez-la et enregistrez-la pour la restaurer"
|
|
266
|
+
conflictTitle: Modifié entre-temps
|
|
267
|
+
conflictText: Quelqu'un a enregistré ce document après votre ouverture. Sa version est à gauche, la vôtre à droite.
|
|
268
|
+
takeTheirs: Charger sa version
|
|
269
|
+
keepMine: Garder la mienne et l'enregistrer par-dessus
|
|
197
270
|
# NotFoundPage
|
|
198
271
|
notFound:
|
|
199
272
|
title: Page introuvable
|
|
@@ -172,6 +172,36 @@ core:
|
|
|
172
172
|
invalidCredentials: Identifiants invalides
|
|
173
173
|
configError: Erreur de configuration
|
|
174
174
|
noAuthAdapter: Aucun adaptateur d'authentification configuré
|
|
175
|
+
# Identity provider first (#4321)
|
|
176
|
+
sso: Se connecter
|
|
177
|
+
providerHome: Mon compte
|
|
178
|
+
localFallback: Login alternatif
|
|
179
|
+
localSection: Login alternatif
|
|
180
|
+
noSso: Aucun parcours de connexion configuré pour ce bouton
|
|
181
|
+
# CardsDashboard (#4320)
|
|
182
|
+
cardsDashboard:
|
|
183
|
+
customise: Personnaliser
|
|
184
|
+
done: Terminé
|
|
185
|
+
reset: Réinitialiser
|
|
186
|
+
resetDone: Disposition par défaut rétablie
|
|
187
|
+
hidden: Cartes masquées
|
|
188
|
+
noneHidden: Aucune
|
|
189
|
+
move: "Déplacer {title}"
|
|
190
|
+
moved: "{title} : carte {position} sur {total}"
|
|
191
|
+
help: Les flèches déplacent la carte, Début et Fin vers le début ou la fin
|
|
192
|
+
dragCancelled: Déplacement annulé
|
|
193
|
+
pin: "Épingler {title} en haut"
|
|
194
|
+
unpin: "Désépingler {title}"
|
|
195
|
+
pinnedOne: "{title} épinglée en haut"
|
|
196
|
+
unpinnedOne: "{title} désépinglée"
|
|
197
|
+
hide: "Masquer {title}"
|
|
198
|
+
hiddenOne: "{title} masquée"
|
|
199
|
+
restore: "Afficher {title}"
|
|
200
|
+
restoredOne: "{title} affichée"
|
|
201
|
+
show: Afficher
|
|
202
|
+
trayView: Afficher les cartes masquées en
|
|
203
|
+
viewCards: Cartes
|
|
204
|
+
viewCompact: Compact
|
|
175
205
|
# NotificationPanel and NotificationBadge (#4171)
|
|
176
206
|
notifications:
|
|
177
207
|
title: Notifications
|
|
@@ -192,6 +222,49 @@ core:
|
|
|
192
222
|
next: Message suivant
|
|
193
223
|
position: "{index} sur {count}"
|
|
194
224
|
close: Fermer ce message
|
|
225
|
+
# VanillaYamlEditor and YamlConfigEditor (#4303)
|
|
226
|
+
yamlEditor:
|
|
227
|
+
text: Texte
|
|
228
|
+
tree: Formulaire
|
|
229
|
+
modes: Vue
|
|
230
|
+
syntaxBlocked: Corrigez les erreurs de syntaxe avant de passer au formulaire
|
|
231
|
+
syntaxErrors: "{count} erreur de syntaxe | {count} erreurs de syntaxe"
|
|
232
|
+
addItem: Ajouter un élément
|
|
233
|
+
addKey: Ajouter
|
|
234
|
+
newKey: nouvelle clé
|
|
235
|
+
remove: Retirer
|
|
236
|
+
rename: Nom de la clé
|
|
237
|
+
empty: (vide)
|
|
238
|
+
alias: Un alias, à modifier dans la vue texte
|
|
239
|
+
count: "{count} entrée | {count} entrées"
|
|
240
|
+
loading: Chargement
|
|
241
|
+
loadError: "Chargement impossible : {message}"
|
|
242
|
+
readOnly: Lecture seule
|
|
243
|
+
unsaved: Modifications non enregistrées
|
|
244
|
+
upToDate: À jour
|
|
245
|
+
check: Vérifier
|
|
246
|
+
checkOk: Aucun problème trouvé
|
|
247
|
+
problems: "{count} problème | {count} problèmes"
|
|
248
|
+
save: Enregistrer…
|
|
249
|
+
review: Relire la modification
|
|
250
|
+
noChange: Rien n'a changé
|
|
251
|
+
reason: Motif
|
|
252
|
+
reasonPlaceholder: Pourquoi ce changement ? Il figure dans l'historique.
|
|
253
|
+
confirmSave: Enregistrer
|
|
254
|
+
saved: Enregistré
|
|
255
|
+
saveError: "Enregistrement impossible : {message}"
|
|
256
|
+
cancel: Annuler
|
|
257
|
+
revert: Abandonner les modifications
|
|
258
|
+
before: Avant
|
|
259
|
+
after: Après
|
|
260
|
+
history: Historique
|
|
261
|
+
historyEmpty: Pas encore d'historique
|
|
262
|
+
restore: Charger cette version
|
|
263
|
+
restored: "Version {revision} chargée : relisez-la et enregistrez-la pour la restaurer"
|
|
264
|
+
conflictTitle: Modifié entre-temps
|
|
265
|
+
conflictText: Quelqu'un a enregistré ce document après votre ouverture. Sa version est à gauche, la vôtre à droite.
|
|
266
|
+
takeTheirs: Charger sa version
|
|
267
|
+
keepMine: Garder la mienne et l'enregistrer par-dessus
|
|
195
268
|
# NotFoundPage
|
|
196
269
|
notFound:
|
|
197
270
|
title: Page introuvable
|
package/src/index.ts
CHANGED
|
@@ -381,6 +381,15 @@ export {
|
|
|
381
381
|
type AppBannerStore,
|
|
382
382
|
type UseAppBannerReturn,
|
|
383
383
|
} from './composables/useAppBanner'
|
|
384
|
+
export {
|
|
385
|
+
useCardsArrangement,
|
|
386
|
+
reconcileArrangement,
|
|
387
|
+
defaultArrangement,
|
|
388
|
+
type CardDef,
|
|
389
|
+
type CardsArrangement,
|
|
390
|
+
type CardsGroups,
|
|
391
|
+
type UseCardsArrangementReturn,
|
|
392
|
+
} from './composables/useCardsArrangement'
|
|
384
393
|
export {
|
|
385
394
|
useUserImpersonator,
|
|
386
395
|
type UseUserImpersonatorOptions,
|
|
@@ -476,6 +485,7 @@ export {
|
|
|
476
485
|
type ZoneDetailInfo,
|
|
477
486
|
type ZoneInspection,
|
|
478
487
|
type ZoneRegistryOptions,
|
|
488
|
+
type BlockCard,
|
|
479
489
|
// BlockConfig - already exported from kernel
|
|
480
490
|
} from './zones/ZoneRegistry'
|
|
481
491
|
export {
|
|
@@ -96,7 +96,7 @@ export interface NavItem {
|
|
|
96
96
|
href?: string
|
|
97
97
|
/** Where an `href` entry opens: default `_blank` for an absolute URL, same tab otherwise. */
|
|
98
98
|
target?: string
|
|
99
|
-
/**
|
|
99
|
+
/** The entry is shown only to whoever is granted this attribute (`route` or `href`). */
|
|
100
100
|
permission?: string
|
|
101
101
|
label: string
|
|
102
102
|
icon?: string
|
|
@@ -82,7 +82,7 @@ export interface NavItem {
|
|
|
82
82
|
href?: string
|
|
83
83
|
/** Where an `href` entry opens: default `_blank` for an absolute URL, same tab otherwise. */
|
|
84
84
|
target?: string
|
|
85
|
-
/**
|
|
85
|
+
/** The entry is shown only to whoever is granted this attribute (`route` or `href`). */
|
|
86
86
|
permission?: string
|
|
87
87
|
label: string
|
|
88
88
|
icon?: string
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CardsDashboard (#4320): an auto grid of cards, an edit bar on each card in
|
|
3
|
+
* edit mode, the hidden cards' tray.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
.qd-cards-dashboard {
|
|
7
|
+
display: flex;
|
|
8
|
+
flex-direction: column;
|
|
9
|
+
gap: 0.75rem;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.qd-cards-toolbar {
|
|
13
|
+
display: flex;
|
|
14
|
+
justify-content: flex-end;
|
|
15
|
+
gap: 0.5rem;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.qd-cards-grid {
|
|
19
|
+
container-type: inline-size;
|
|
20
|
+
display: grid;
|
|
21
|
+
grid-template-columns: repeat(auto-fill, minmax(min(var(--qd-card-min, 18rem), 100%), 1fr));
|
|
22
|
+
gap: 1rem;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.qd-cards-slot {
|
|
26
|
+
grid-column: span var(--qd-card-span, 1);
|
|
27
|
+
display: flex;
|
|
28
|
+
flex-direction: column;
|
|
29
|
+
min-width: 0;
|
|
30
|
+
|
|
31
|
+
> :not(.qd-cards-bar) {
|
|
32
|
+
flex: 1;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
// Too narrow for a wide card: it takes one column like the others
|
|
37
|
+
@container (max-width: 40rem) {
|
|
38
|
+
.qd-cards-slot {
|
|
39
|
+
grid-column: auto;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.qd-cards-editing .qd-cards-slot {
|
|
44
|
+
outline: 1px dashed var(--p-content-border-color, #d1d5db);
|
|
45
|
+
outline-offset: 4px;
|
|
46
|
+
border-radius: var(--p-content-border-radius, 6px);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.qd-cards-editing .qd-cards-pinned {
|
|
50
|
+
outline-color: var(--p-primary-color);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.qd-cards-dragging {
|
|
54
|
+
opacity: 0.6;
|
|
55
|
+
outline: 2px solid var(--p-primary-color) !important;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.qd-cards-bar {
|
|
59
|
+
display: flex;
|
|
60
|
+
align-items: center;
|
|
61
|
+
gap: 0.25rem;
|
|
62
|
+
margin-bottom: 0.5rem;
|
|
63
|
+
font-size: 0.875rem;
|
|
64
|
+
color: var(--p-text-muted-color, #6b7280);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.qd-cards-title {
|
|
68
|
+
flex: 1;
|
|
69
|
+
min-width: 0;
|
|
70
|
+
overflow: hidden;
|
|
71
|
+
text-overflow: ellipsis;
|
|
72
|
+
white-space: nowrap;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.qd-cards-handle,
|
|
76
|
+
.qd-cards-action {
|
|
77
|
+
display: inline-flex;
|
|
78
|
+
align-items: center;
|
|
79
|
+
justify-content: center;
|
|
80
|
+
width: 2rem;
|
|
81
|
+
height: 2rem;
|
|
82
|
+
border: 1px solid transparent;
|
|
83
|
+
border-radius: var(--p-content-border-radius, 6px);
|
|
84
|
+
background: transparent;
|
|
85
|
+
color: inherit;
|
|
86
|
+
cursor: pointer;
|
|
87
|
+
|
|
88
|
+
&:hover {
|
|
89
|
+
background: var(--p-content-hover-background, rgba(0, 0, 0, 0.04));
|
|
90
|
+
color: var(--p-text-color);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
&:focus-visible {
|
|
94
|
+
outline: 2px solid var(--p-primary-color);
|
|
95
|
+
outline-offset: 1px;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
// The page must not scroll under a finger that drags
|
|
100
|
+
.qd-cards-handle {
|
|
101
|
+
cursor: grab;
|
|
102
|
+
touch-action: none;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.qd-cards-dragging .qd-cards-handle {
|
|
106
|
+
cursor: grabbing;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.qd-cards-on {
|
|
110
|
+
color: var(--p-primary-color);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.qd-cards-tray {
|
|
114
|
+
display: flex;
|
|
115
|
+
flex-direction: column;
|
|
116
|
+
gap: 0.75rem;
|
|
117
|
+
padding: 0.75rem;
|
|
118
|
+
border: 1px dashed var(--p-content-border-color, #d1d5db);
|
|
119
|
+
border-radius: var(--p-content-border-radius, 6px);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.qd-cards-tray-head {
|
|
123
|
+
display: flex;
|
|
124
|
+
flex-wrap: wrap;
|
|
125
|
+
align-items: center;
|
|
126
|
+
gap: 0.5rem;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.qd-cards-tray-label {
|
|
130
|
+
font-weight: 500;
|
|
131
|
+
font-size: 0.875rem;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.qd-cards-tray-empty {
|
|
135
|
+
font-size: 0.875rem;
|
|
136
|
+
color: var(--p-text-muted-color, #6b7280);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
// Cards / Compact, a two-option switch
|
|
140
|
+
.qd-cards-tray-view {
|
|
141
|
+
display: inline-flex;
|
|
142
|
+
margin-left: auto;
|
|
143
|
+
border: 1px solid var(--p-content-border-color, #d1d5db);
|
|
144
|
+
border-radius: var(--p-content-border-radius, 6px);
|
|
145
|
+
overflow: hidden;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.qd-cards-tray-view-option {
|
|
149
|
+
padding: 0.25rem 0.625rem;
|
|
150
|
+
border: 0;
|
|
151
|
+
background: transparent;
|
|
152
|
+
color: var(--p-text-muted-color, #6b7280);
|
|
153
|
+
font: inherit;
|
|
154
|
+
font-size: 0.8125rem;
|
|
155
|
+
cursor: pointer;
|
|
156
|
+
|
|
157
|
+
&[aria-pressed='true'] {
|
|
158
|
+
background: var(--p-primary-color);
|
|
159
|
+
color: var(--p-primary-contrast-color, #fff);
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
&:focus-visible {
|
|
163
|
+
outline: 2px solid var(--p-primary-color);
|
|
164
|
+
outline-offset: -2px;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.qd-cards-chips {
|
|
169
|
+
display: flex;
|
|
170
|
+
flex-wrap: wrap;
|
|
171
|
+
gap: 0.5rem;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
// A hidden card, whole: dimmed and inert, only its "Show" acts
|
|
175
|
+
.qd-cards-hidden .qd-cards-hidden-body {
|
|
176
|
+
flex: 1;
|
|
177
|
+
opacity: 0.45;
|
|
178
|
+
filter: grayscale(0.6);
|
|
179
|
+
pointer-events: none;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
.qd-cards-sr {
|
|
183
|
+
position: absolute;
|
|
184
|
+
width: 1px;
|
|
185
|
+
height: 1px;
|
|
186
|
+
overflow: hidden;
|
|
187
|
+
clip: rect(0 0 0 0);
|
|
188
|
+
white-space: nowrap;
|
|
189
|
+
}
|