@quazardous/qdadm 2.50.1 → 2.51.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 +2 -1
- package/src/components/edit/FormActions.vue +33 -9
- package/src/components/edit/FormPage.vue +8 -0
- package/src/components/editors/JsonStructuredField.vue +36 -219
- package/src/components/editors/PermissionEditor.vue +62 -204
- package/src/components/editors/permissionSuggestions.ts +139 -0
- package/src/components/editors/structured/JsonRawFace.vue +37 -0
- package/src/components/editors/structured/StructuredField.vue +214 -0
- package/src/components/editors/structured/YamlRawFace.vue +70 -0
- package/src/components/editors/structured/faces.ts +35 -0
- package/src/components/editors/structured/registerJson.ts +5 -0
- package/src/components/editors/structured/registerYaml.ts +5 -0
- package/src/components/index.ts +8 -2
- package/src/composables/confirmDelete.ts +6 -3
- package/src/composables/useEntityItemFormPage.ts +15 -5
- package/src/composables/useEntityItemFormPage.types.ts +7 -1
- package/src/editors/index.ts +4 -14
- package/src/editors/json.ts +19 -0
- package/src/editors/yaml.ts +6 -1
- package/src/i18n/defaults/core.en.generated.ts +17 -0
- package/src/i18n/defaults/core.en.yml +17 -0
- package/src/i18n/defaults/core.fr.generated.ts +17 -0
- package/src/i18n/defaults/core.fr.yml +17 -0
- package/src/styles/_forms.scss +2 -1
- package/src/styles/_responsive.scss +2 -1
package/src/editors/yaml.ts
CHANGED
|
@@ -3,10 +3,15 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Import from '@quazardous/qdadm/editors/yaml' only if you install
|
|
5
5
|
* @quazardous/vanilla-yamleditor (an optional peer): it stays out of the
|
|
6
|
-
* main bundle and of '@quazardous/qdadm/editors'.
|
|
6
|
+
* main bundle and of '@quazardous/qdadm/editors/json'.
|
|
7
7
|
*
|
|
8
8
|
* import { VanillaYamlEditor, YamlConfigEditor, restYamlAdapter } from '@quazardous/qdadm/editors/yaml'
|
|
9
|
+
*
|
|
10
|
+
* Importing it also registers the YAML face of StructuredField (#5333).
|
|
9
11
|
*/
|
|
12
|
+
import '../components/editors/structured/registerYaml'
|
|
13
|
+
|
|
14
|
+
export { default as StructuredField } from '../components/editors/structured/StructuredField.vue'
|
|
10
15
|
export { default as VanillaYamlEditor } from '../components/editors/yaml/VanillaYamlEditor.vue'
|
|
11
16
|
export { default as YamlConfigEditor } from '../components/editors/yaml/YamlConfigEditor.vue'
|
|
12
17
|
export {
|
|
@@ -365,6 +365,23 @@ export default `core:
|
|
|
365
365
|
moreKeys: "+{count} more"
|
|
366
366
|
takeTheirs: Load their version
|
|
367
367
|
keepMine: Keep mine and save over it
|
|
368
|
+
# PermissionEditor (#5333)
|
|
369
|
+
permissionEditor:
|
|
370
|
+
placeholder: Type a permission…
|
|
371
|
+
help: 'Type a permission (e.g. "entity:books:read"), Tab to complete'
|
|
372
|
+
noMatch: No matching permission
|
|
373
|
+
noPermissions: No permission to suggest
|
|
374
|
+
all: All permissions
|
|
375
|
+
actionEverywhere: "{action}, everywhere"
|
|
376
|
+
anActionEverywhere: One action, everywhere
|
|
377
|
+
allUnder: "Everything under {prefix}"
|
|
378
|
+
directUnder: "Every {prefix} permission, one level"
|
|
379
|
+
actionUnder: "{action} under {prefix}"
|
|
380
|
+
subItems: "{count} sub-item | {count} sub-items"
|
|
381
|
+
# StructuredField: a structured face and a raw JSON / YAML one (#5333)
|
|
382
|
+
structuredField:
|
|
383
|
+
structured: Structured
|
|
384
|
+
invalid: "Invalid {format}: fix it before switching views"
|
|
368
385
|
# Values a create reveals once: a key's token (QdRevealOnce, #5319)
|
|
369
386
|
revealOnce:
|
|
370
387
|
title: "{entity} created"
|
|
@@ -363,6 +363,23 @@ core:
|
|
|
363
363
|
moreKeys: "+{count} more"
|
|
364
364
|
takeTheirs: Load their version
|
|
365
365
|
keepMine: Keep mine and save over it
|
|
366
|
+
# PermissionEditor (#5333)
|
|
367
|
+
permissionEditor:
|
|
368
|
+
placeholder: Type a permission…
|
|
369
|
+
help: 'Type a permission (e.g. "entity:books:read"), Tab to complete'
|
|
370
|
+
noMatch: No matching permission
|
|
371
|
+
noPermissions: No permission to suggest
|
|
372
|
+
all: All permissions
|
|
373
|
+
actionEverywhere: "{action}, everywhere"
|
|
374
|
+
anActionEverywhere: One action, everywhere
|
|
375
|
+
allUnder: "Everything under {prefix}"
|
|
376
|
+
directUnder: "Every {prefix} permission, one level"
|
|
377
|
+
actionUnder: "{action} under {prefix}"
|
|
378
|
+
subItems: "{count} sub-item | {count} sub-items"
|
|
379
|
+
# StructuredField: a structured face and a raw JSON / YAML one (#5333)
|
|
380
|
+
structuredField:
|
|
381
|
+
structured: Structured
|
|
382
|
+
invalid: "Invalid {format}: fix it before switching views"
|
|
366
383
|
# Values a create reveals once: a key's token (QdRevealOnce, #5319)
|
|
367
384
|
revealOnce:
|
|
368
385
|
title: "{entity} created"
|
|
@@ -365,6 +365,23 @@ export default `core:
|
|
|
365
365
|
moreKeys: "+{count} autres"
|
|
366
366
|
takeTheirs: Charger sa version
|
|
367
367
|
keepMine: Garder la mienne et l'enregistrer par-dessus
|
|
368
|
+
# PermissionEditor (#5333)
|
|
369
|
+
permissionEditor:
|
|
370
|
+
placeholder: Saisir un droit…
|
|
371
|
+
help: 'Saisissez un droit (ex. « entity:books:read »), Tab pour compléter'
|
|
372
|
+
noMatch: Aucun droit correspondant
|
|
373
|
+
noPermissions: Aucun droit à proposer
|
|
374
|
+
all: Tous les droits
|
|
375
|
+
actionEverywhere: "{action}, partout"
|
|
376
|
+
anActionEverywhere: Une action, partout
|
|
377
|
+
allUnder: "Tout ce qui est sous {prefix}"
|
|
378
|
+
directUnder: "Tous les droits de {prefix}, un niveau"
|
|
379
|
+
actionUnder: "{action} sous {prefix}"
|
|
380
|
+
subItems: "{count} sous-élément | {count} sous-éléments"
|
|
381
|
+
# StructuredField: a structured face and a raw JSON / YAML one (#5333)
|
|
382
|
+
structuredField:
|
|
383
|
+
structured: Structuré
|
|
384
|
+
invalid: "{format} invalide : corrigez-le avant de changer de vue"
|
|
368
385
|
# Values a create reveals once: a key's token (QdRevealOnce, #5319)
|
|
369
386
|
revealOnce:
|
|
370
387
|
title: "{entity} : création réussie"
|
|
@@ -363,6 +363,23 @@ core:
|
|
|
363
363
|
moreKeys: "+{count} autres"
|
|
364
364
|
takeTheirs: Charger sa version
|
|
365
365
|
keepMine: Garder la mienne et l'enregistrer par-dessus
|
|
366
|
+
# PermissionEditor (#5333)
|
|
367
|
+
permissionEditor:
|
|
368
|
+
placeholder: Saisir un droit…
|
|
369
|
+
help: 'Saisissez un droit (ex. « entity:books:read »), Tab pour compléter'
|
|
370
|
+
noMatch: Aucun droit correspondant
|
|
371
|
+
noPermissions: Aucun droit à proposer
|
|
372
|
+
all: Tous les droits
|
|
373
|
+
actionEverywhere: "{action}, partout"
|
|
374
|
+
anActionEverywhere: Une action, partout
|
|
375
|
+
allUnder: "Tout ce qui est sous {prefix}"
|
|
376
|
+
directUnder: "Tous les droits de {prefix}, un niveau"
|
|
377
|
+
actionUnder: "{action} sous {prefix}"
|
|
378
|
+
subItems: "{count} sous-élément | {count} sous-éléments"
|
|
379
|
+
# StructuredField: a structured face and a raw JSON / YAML one (#5333)
|
|
380
|
+
structuredField:
|
|
381
|
+
structured: Structuré
|
|
382
|
+
invalid: "{format} invalide : corrigez-le avant de changer de vue"
|
|
366
383
|
# Values a create reveals once: a key's token (QdRevealOnce, #5319)
|
|
367
384
|
revealOnce:
|
|
368
385
|
title: "{entity} : création réussie"
|
package/src/styles/_forms.scss
CHANGED