@gouvfr/dsfr-roller 1.0.31 → 1.0.33
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/package.json +2 -2
- package/src/component/components/sidemenu.js +2 -1
- package/src/node/directive/components/table/table-container-directive.js +2 -2
- package/src/node/directive/doc/guidance/guideline-container-directive.js +2 -2
- package/src/node/directive/home/hp-showcase-card-container-directive.js +3 -4
- package/src/node/generic/image-node.js +1 -1
- package/src/page/body/edit.js +59 -0
- package/src/page/body/toc.js +3 -0
- package/src/page/head/share.js +2 -0
- package/src/script/main/cmp/index.js +2 -2
- package/src/script/main/elements/storybook.js +1 -1
- package/src/style/home/_showcase.scss +12 -0
- package/src/style/main/components/_index.scss +0 -1
- package/src/style/main/utility/_global.scss +58 -19
- package/src/template/templates/editorial-template.js +13 -10
- package/static/file/Note_SIG_d_application_du_DSFR_et_gouv_fr_13_07_2023.docx +0 -0
- package/static/html/v1.14/palette/accent.html +3447 -0
- package/static/html/v1.14/palette/neutre.html +546 -0
- package/static/html/v1.14/palette/primaire.html +658 -0
- package/static/html/v1.14/palette/systeme.html +1029 -0
- package/src/component/components/edit.js +0 -20
- package/src/component/ejs/edit/edit.ejs +0 -32
- package/src/style/main/components/_dsfr-doc-storybook.scss +0 -5
- /package/static/{pdf/1_Circulaire_n_6411_SG_sites_Internet_de_l_Etat_et_demarches_numeriques_07_07_2023_14df00e6c2.pdf → file/Circulaire_n_6411_SG_sites_Internet_de_l_Etat_et_demarches_numeriques_07_07_2023.pdf} +0 -0
- /package/static/{pdf/3_Note_DINUM_qualite_des_services_numeriques_17_07_2023_9bd158313d.pdf → file/Note_DINUM_qualite_des_services_numeriques_17_07_2023.pdf} +0 -0
- /package/static/{pdf/2_Note_SIG_d_application_du_DSFR_et_gouv_fr_13_07_2023_e4824418a3.pdf → file/Note_SIG_d_application_du_DSFR_et_gouv_fr_13_07_2023.pdf} +0 -0
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { Component } from '../component.js';
|
|
2
|
-
import { EJS_PKG } from '../ejs-pkg.js';
|
|
3
|
-
class Edit extends Component {
|
|
4
|
-
constructor (data) {
|
|
5
|
-
super(data, 'edit', EJS_PKG.ROLLER);
|
|
6
|
-
}
|
|
7
|
-
get ejsPath () {
|
|
8
|
-
return 'src/component/ejs/edit/edit.ejs';
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
async format () {
|
|
12
|
-
return {
|
|
13
|
-
title: this.data.title,
|
|
14
|
-
description: this.data.description,
|
|
15
|
-
link: { label: this.data.link, href: this.data.editUrl, blank: true, attributes: {title: `${this.data.link} - ${this.data.blankLabel}`} },
|
|
16
|
-
};
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export { Edit };
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
<%#
|
|
2
|
-
# paramètres du bloc d'édition
|
|
3
|
-
|
|
4
|
-
* edit (object, optional) : Paramètres du bloc édit
|
|
5
|
-
** edit.title (string) : titre du bloc
|
|
6
|
-
** edit.description (string) : description du bloc
|
|
7
|
-
** edit.icon (string, optional) : icône du bloc (par défaut : 'edit-fill')
|
|
8
|
-
** edit.link (object) : lien vers la page d'édition
|
|
9
|
-
*** edit.link.label (string) : libellé du lien
|
|
10
|
-
*** edit.link.url (string) : url du lien
|
|
11
|
-
*** edit.link.blank (boolean, optional) : ouvre le lien dans un nouvel onglet
|
|
12
|
-
%>
|
|
13
|
-
<%
|
|
14
|
-
const edit = locals.edit || {};
|
|
15
|
-
const icon = edit.icon || 'edit-fill';
|
|
16
|
-
const classes = edit.classes || [];
|
|
17
|
-
classes.push(`fr-link`);
|
|
18
|
-
%>
|
|
19
|
-
|
|
20
|
-
<% eval(include(`${dsfrPkg}src/dsfr/core/index.ejs`)); %>
|
|
21
|
-
|
|
22
|
-
<div class="dsfr-doc-edit <%= prefix %>-background-alt--blue-france <%= prefix %>-icon-<%= icon %>">
|
|
23
|
-
<p class="dsfr-doc-edit__title fr-h5">
|
|
24
|
-
<%= edit.title %>
|
|
25
|
-
</p>
|
|
26
|
-
<p class="dsfr-doc-edit__description">
|
|
27
|
-
<%= edit.description %>
|
|
28
|
-
</p>
|
|
29
|
-
<p class="dsfr-doc-edit__link">
|
|
30
|
-
<%- include(`${dsfrPkg}src/dsfr/core/template/ejs/action/action.ejs`, { action: {...edit.link, markup: 'a', classes: classes} }); %>
|
|
31
|
-
</p>
|
|
32
|
-
</div>
|
|
File without changes
|
|
File without changes
|