0.8.11 • Published 5 months ago

@catala-lang/catala-web-assets v0.8.11

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
5 months ago

catala-web-assets

Web assets generated from Catala programs about the French law:

To use

Add the package to your project:

yarn add catala-web-assets

Import the wanted file from the assets folder:

require("catala-web-assets/assets/<file_name>")

In local dev

In order to test and update the assets without having to publish a new package version you can:

# In this repo
yarn link

# In the website repo
yarn link catala-web-assets

Generating assets

The assets folder is generated from the Catala compiler. To generate these assets, please refer to the dedicated section of the Catala compiler INSTALL.md.

Websites using this assets

Note on the redaction of schemas

Title

The titles must not be defined inside "kind" properties of the object definition but just before the "$ref" of the calling parent:

"categorieEquivalenceLoyerD84216": {
  "title": "Catégorie de personnes résidant en logement-foyer",
  "$ref": "#/definitions/categorie_equivalence_loyer_allocation_logement_foyer"
}

Dsfr dedicated UI options

To be used with the Dsfr, there dedicated options for the UI schemas:

ui:tabLabel and ui:hideTitle

ui:hideTitle is needed to be specified for item of type object inside a item of type array to hide the unique title of the array's items.

ui:hideTitle allows to defines tab's label. It needs to be specified at the root of the item of type array.

Example:

"personnesACharge": {
    "ui:tabLabel": "Personne",
    "items": {
        "ui:hideTitle": true,
...
0.8.11

5 months ago

0.8.10

5 months ago

0.8.9

6 months ago

0.8.8

7 months ago

0.8.5

7 months ago

0.8.4

8 months ago

0.8.7

7 months ago

0.8.6

7 months ago

0.8.3

11 months ago

0.8.2

12 months ago

0.8.0-b

12 months ago

0.8.0

12 months ago

0.1.0-b.2

1 year ago