qc-trousse-sdg 1.4.0-develop.1 → 1.4.1
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/README.md +26 -5
- package/dist/css/qc-sdg-design-tokens.min.css +1 -1
- package/dist/css/qc-sdg-no-grid.min.css +1 -1
- package/dist/css/qc-sdg.min.css +1 -1
- package/dist/fonts/open-sans-v43-latin-500.woff2 +0 -0
- package/dist/fonts/open-sans-v43-latin-500italic.woff2 +0 -0
- package/dist/fonts/open-sans-v43-latin-600.woff2 +0 -0
- package/dist/fonts/open-sans-v43-latin-600italic.woff2 +0 -0
- package/dist/fonts/open-sans-v43-latin-700.woff2 +0 -0
- package/dist/fonts/open-sans-v43-latin-700italic.woff2 +0 -0
- package/dist/fonts/open-sans-v43-latin-italic.woff2 +0 -0
- package/dist/fonts/open-sans-v43-latin-regular.woff2 +0 -0
- package/dist/fonts/roboto-mono-v30-latin-500.woff2 +0 -0
- package/dist/fonts/roboto-mono-v30-latin-500italic.woff2 +0 -0
- package/dist/fonts/roboto-mono-v30-latin-600.woff2 +0 -0
- package/dist/fonts/roboto-mono-v30-latin-600italic.woff2 +0 -0
- package/dist/fonts/roboto-mono-v30-latin-700.woff2 +0 -0
- package/dist/fonts/roboto-mono-v30-latin-700italic.woff2 +0 -0
- package/dist/fonts/roboto-mono-v30-latin-italic.woff2 +0 -0
- package/dist/fonts/roboto-mono-v30-latin-regular.woff2 +0 -0
- package/dist/fonts/roboto-v48-latin-500.woff2 +0 -0
- package/dist/fonts/roboto-v48-latin-500italic.woff2 +0 -0
- package/dist/fonts/roboto-v48-latin-600.woff2 +0 -0
- package/dist/fonts/roboto-v48-latin-600italic.woff2 +0 -0
- package/dist/fonts/roboto-v48-latin-700.woff2 +0 -0
- package/dist/fonts/roboto-v48-latin-700italic.woff2 +0 -0
- package/dist/fonts/roboto-v48-latin-italic.woff2 +0 -0
- package/dist/fonts/roboto-v48-latin-regular.woff2 +0 -0
- package/dist/img/icon/adresse.svg +4 -0
- package/dist/img/icon/arrow-up.svg +3 -0
- package/dist/img/icon/calendar.svg +1 -0
- package/dist/img/icon/checkmark.svg +3 -0
- package/dist/img/icon/chevron-up-thin.svg +5 -0
- package/dist/img/{chevron-white.svg → icon/chevron-up.svg} +1 -1
- package/{public/img → dist/img/icon}/clipboard.svg +3 -3
- package/dist/img/icon/clock.svg +1 -0
- package/dist/img/icon/email.svg +1 -0
- package/dist/img/icon/error.svg +1 -0
- package/{public/img/exclamation-white.svg → dist/img/icon/exclamation.svg} +2 -2
- package/{public/img → dist/img/icon}/external-link.svg +2 -2
- package/dist/img/icon/information.svg +1 -0
- package/dist/img/icon/ligth-bulb.svg +1 -0
- package/{public/img → dist/img/icon}/minus.svg +1 -1
- package/dist/img/icon/note.svg +1 -0
- package/dist/img/icon/phone.svg +1 -0
- package/dist/img/{plus.svg → icon/plus.svg} +1 -1
- package/{public/img → dist/img/icon}/question-mark.svg +2 -2
- package/dist/img/icon/search-thin.svg +10 -0
- package/dist/img/icon/search.svg +1 -0
- package/dist/img/icon/success.svg +1 -0
- package/dist/img/icon/user.svg +6 -0
- package/dist/img/icon/warning.svg +1 -0
- package/dist/img/icon/website.svg +1 -0
- package/dist/img/icon/xclose.svg +1 -0
- package/dist/js/qc-sdg.min.js +1 -1
- package/package.json +11 -3
- package/playwright.config.ts +79 -0
- package/plugins/buildDevDoc.js +36 -0
- package/plugins/buildHtmlDoc.js +43 -0
- package/plugins/buildTestFixtures.js +37 -0
- package/public/css/qc-doc-sdg.css +4 -67
- package/public/css/qc-sdg-design-tokens.css +17 -0
- package/public/css/qc-sdg-no-grid.css +1991 -1108
- package/public/css/qc-sdg.css +1992 -1109
- package/public/img/checkmark.svg +3 -0
- package/public/img/question.svg +10 -0
- package/public/index.html +3104 -1387
- package/public/js/qc-doc-sdg.js +40847 -33699
- package/public/js/qc-sdg.js +6037 -757
- package/rollup.config.js +67 -41
- package/scripts/buildImagesMap.js +85 -0
- package/scripts/check-release-note.sh +11 -0
- package/scripts/compile-doc.sh +4 -0
- package/src/doc/_index.html +100 -0
- package/src/doc/_nav.html +53 -0
- package/src/doc/_test.html +32 -0
- package/src/doc/components/Code.svelte +6 -2
- package/src/doc/components/TopNav.svelte +8 -9
- package/src/doc/components/color-doc.svelte +1 -1
- package/src/doc/ejs/layout/index.ejs +129 -0
- package/src/doc/qc-doc-sdg.js +1 -2
- package/src/doc/scss/components/_code.scss +1 -1
- package/src/doc/scss/jQueryUI/_jquery-ui.autocomplete.scss +1 -0
- package/src/doc/scss/qc-doc-sdg.scss +1 -1
- package/src/doc/scss/settings/_base.scss +4 -0
- package/src/sdg/_components.js +9 -2
- package/src/sdg/{components → bases}/Icon/Icon.svelte +13 -6
- package/src/sdg/bases/Icon/IconDoc.ejs +129 -0
- package/src/sdg/{components → bases}/Icon/IconWC.svelte +3 -1
- package/src/sdg/bases/Icon/Test/IconEmbeddedTest.html +1 -0
- package/src/sdg/bases/Icon/Test/IconEmbeddedTest.svelte +168 -0
- package/src/sdg/bases/Icon/Test/iconTest.html +156 -0
- package/src/sdg/bases/Icon/_icon.html +254 -0
- package/src/sdg/bases/Icon/_icons.scss +47 -0
- package/src/sdg/{scss/base → bases/accessibility}/_accessibility.scss +1 -1
- package/src/sdg/bases/colors/_colors.html +112 -0
- package/src/sdg/bases/figures/_figure.html +16 -0
- package/src/sdg/{scss/base → bases/form}/_form.scss +10 -3
- package/src/sdg/bases/grid/_grid.html +118 -0
- package/src/sdg/bases/headings/_headings.html +18 -0
- package/src/sdg/bases/headings/_headings.scss +25 -0
- package/src/sdg/{scss/base → bases/layout}/_layout.scss +1 -4
- package/src/sdg/bases/links/_links.html +104 -0
- package/src/sdg/bases/links/_links.scss +51 -0
- package/src/sdg/bases/lists/_lists.html +27 -0
- package/src/sdg/bases/separator/_separator.html +7 -0
- package/src/sdg/bases/separator/_separator.scss +5 -0
- package/src/sdg/bases/shadings/_shadings.html +14 -0
- package/src/sdg/{scss/base → bases/shadings}/_shadings.scss +1 -1
- package/src/sdg/bases/typography/_font.html +45 -0
- package/src/sdg/bases/typography/_fonts.scss +162 -0
- package/src/sdg/bases/typography/_paragraph.html +17 -0
- package/src/sdg/bases/typography/_paragraph.scss +33 -0
- package/src/sdg/components/Alert/Alert.svelte +2 -5
- package/src/sdg/components/Alert/AlertWC.svelte +3 -2
- package/src/sdg/components/Alert/_alert.html +110 -0
- package/src/sdg/{scss/components → components/Alert}/_alert.scss +1 -1
- package/src/sdg/components/Button/Button.svelte +50 -0
- package/src/sdg/components/Button/ButtonWC.svelte +36 -0
- package/src/sdg/components/Button/Test/buttonTest.html +349 -0
- package/src/sdg/components/Button/_button.html +186 -0
- package/src/sdg/components/Button/_button.scss +202 -0
- package/src/sdg/components/CharCount/_charCount.html +7 -0
- package/src/sdg/components/Checkbox/Checkbox.svelte +77 -0
- package/src/sdg/components/Checkbox/CheckboxWC.svelte +49 -0
- package/src/sdg/components/Checkbox/_checkbox.html +86 -0
- package/src/sdg/components/Checkbox/_checkbox.scss +70 -0
- package/src/sdg/components/Checkbox/updateInput.svelte.js +23 -0
- package/src/sdg/components/ChoiceGroup/ChoiceGroup.svelte +56 -0
- package/src/sdg/components/ChoiceGroup/ChoiceGroupWC.svelte +47 -0
- package/src/sdg/components/ChoiceGroup/Test/ChoiceGroupeEmbededTest.svelte +261 -0
- package/src/sdg/components/ChoiceGroup/Test/checkboxEmbeddedTest.html +1 -0
- package/src/sdg/components/ChoiceGroup/Test/checkboxTest.html +253 -0
- package/src/sdg/components/ChoiceGroup/Test/radiosEmbeddedTest.html +1 -0
- package/src/sdg/components/ChoiceGroup/Test/radiosTest.html +185 -0
- package/src/sdg/components/ChoiceGroup/ToggleSwitchGroupWC.svelte +56 -0
- package/src/sdg/components/ChoiceGroup/_choiceGroup.html +285 -0
- package/src/sdg/components/ChoiceGroup/_choiceGroup.scss +32 -0
- package/src/sdg/components/ChoiceGroup/_selectionButton.scss +53 -0
- package/src/sdg/components/ChoiceGroup/_selectionButtons.html +130 -0
- package/src/sdg/components/DropdownList/DropdownList.svelte +394 -0
- package/src/sdg/components/DropdownList/DropdownListButton/DropdownListButton.svelte +42 -0
- package/src/sdg/components/DropdownList/DropdownListButton/_dropdownListButton.scss +55 -0
- package/src/sdg/components/DropdownList/DropdownListItems/DropdownListItems.svelte +110 -0
- package/src/sdg/components/DropdownList/DropdownListItems/DropdownListItemsMultiple/DropdownListItemsMultiple.svelte +185 -0
- package/src/sdg/components/DropdownList/DropdownListItems/DropdownListItemsMultiple/_dropdownListItemsMultiple.scss +19 -0
- package/src/sdg/components/DropdownList/DropdownListItems/DropdownListItemsSingle/DropdownListItemsSingle.svelte +136 -0
- package/src/sdg/components/DropdownList/DropdownListItems/DropdownListItemsSingle/_dropdownListItemsSingle.scss +11 -0
- package/src/sdg/components/DropdownList/DropdownListItems/_dropdownListItems.scss +67 -0
- package/src/sdg/components/DropdownList/SelectWC.svelte +158 -0
- package/src/sdg/components/DropdownList/Test/DropdownListEmbeddedTest.svelte +89 -0
- package/src/sdg/components/DropdownList/Test/dropdownListEmbeddedTest.html +1 -0
- package/src/sdg/components/DropdownList/Test/dropdownListTest.html +194 -0
- package/src/sdg/components/DropdownList/Test/dropdownListTestUtils.js +113 -0
- package/src/sdg/components/DropdownList/_dropdownList.scss +73 -0
- package/src/sdg/components/DropdownList/_select.html +212 -0
- package/src/sdg/components/ExternalLink/ExternalLink.svelte +1 -1
- package/src/sdg/components/Fieldset/Fieldset.svelte +73 -0
- package/src/sdg/components/Fieldset/_fieldset.scss +95 -0
- package/src/sdg/components/FormError/FormError.svelte +51 -0
- package/src/sdg/components/FormError/_formError.scss +21 -0
- package/src/sdg/components/FormfieldRow/_formfieldRow.html +108 -0
- package/src/sdg/components/IconButton/IconButton.svelte +1 -1
- package/src/sdg/components/IconButton/_iconButton.scss +14 -0
- package/src/sdg/components/Label/Label.svelte +28 -0
- package/src/sdg/components/Label/LabelText.svelte +4 -0
- package/src/sdg/components/Label/_label.scss +19 -0
- package/src/sdg/components/Notice/Notice.svelte +1 -2
- package/src/sdg/components/Notice/NoticeWC.svelte +3 -0
- package/src/sdg/components/Notice/_notice.html +141 -0
- package/src/sdg/{scss/components → components/Notice}/_notice.scss +1 -1
- package/src/sdg/components/PivFooter/PivFooter.svelte +8 -9
- package/src/sdg/components/PivFooter/PivFooterWC.svelte +6 -14
- package/src/sdg/components/PivFooter/_pivFooter.html +153 -0
- package/src/sdg/{scss/components → components/PivFooter}/_pivFooter.scss +1 -1
- package/src/sdg/components/PivHeader/PivHeader.svelte +47 -53
- package/src/sdg/components/PivHeader/PivHeaderWC.svelte +9 -20
- package/src/sdg/components/PivHeader/Test/pivHeaderEmbeddedTest.html +1 -0
- package/src/sdg/components/PivHeader/Test/pivHeaderEmbeddedTest.svelte +28 -0
- package/src/sdg/components/PivHeader/Test/pivHeaderTest.html +43 -0
- package/src/sdg/components/PivHeader/_pivHeader.html +221 -0
- package/src/sdg/{scss/components → components/PivHeader}/_pivHeader.scss +55 -77
- package/src/sdg/components/RadioButton/_radioButton.html +24 -0
- package/src/sdg/components/RadioButton/_radioButton.scss +29 -0
- package/src/sdg/components/SearchBar/SearchBar.svelte +12 -32
- package/src/sdg/components/SearchBar/_searchBar.html +125 -0
- package/src/sdg/{scss/components → components/SearchBar}/_searchBar.scss +3 -3
- package/src/sdg/components/SearchInput/SearchInput.svelte +26 -4
- package/src/sdg/components/SearchInput/SearchInputWC.svelte +3 -1
- package/src/sdg/components/SearchInput/_searchInput.html +85 -0
- package/src/sdg/{scss/components → components/SearchInput}/_searchInput.scss +27 -2
- package/src/sdg/components/TextField/Doc/TextFieldDemo.svelte +143 -0
- package/src/sdg/components/TextField/Test/TextFieldEmbededTest.svelte +129 -0
- package/src/sdg/components/TextField/Test/textFieldEmbeddedTest.html +1 -0
- package/src/sdg/components/TextField/Test/textFieldTest.html +121 -0
- package/src/sdg/components/TextField/TextField.svelte +173 -0
- package/src/sdg/components/TextField/TextFieldWC.svelte +90 -0
- package/src/sdg/components/TextField/_textField.html +218 -0
- package/src/sdg/components/TextField/_textField.scss +110 -0
- package/src/sdg/components/TextField/textFieldUtils.js +19 -0
- package/src/sdg/components/ToTop/ToTop.svelte +2 -4
- package/src/sdg/components/ToTop/_toTop.html +45 -0
- package/src/sdg/{scss/components → components/ToTop}/_toTop.scss +2 -2
- package/src/sdg/components/ToggleSwitch/Test/ToggleSwitchEmbeddedTest.svelte +46 -0
- package/src/sdg/components/ToggleSwitch/Test/toggleSwitchEmbeddedTest.html +1 -0
- package/src/sdg/components/ToggleSwitch/Test/toggleSwitchTest.html +34 -0
- package/src/sdg/components/ToggleSwitch/ToggleSwitch.svelte +34 -0
- package/src/sdg/components/ToggleSwitch/ToggleSwitchWC.svelte +66 -0
- package/src/sdg/components/ToggleSwitch/_toggleSwitch.html +160 -0
- package/src/sdg/components/ToggleSwitch/_toggleSwitch.scss +97 -0
- package/src/sdg/components/utils.js +81 -1
- package/src/sdg/qc-sdg-test.js +6 -0
- package/src/sdg/scss/lib/_functions.scss +10 -2
- package/src/sdg/scss/lib/_mixins.scss +63 -26
- package/src/sdg/scss/qc-sdg.scss +1 -1
- package/src/sdg/scss/qc-sgd-no-grid.scss +30 -18
- package/src/sdg/scss/settings/_base.scss +5 -33
- package/src/sdg/scss/settings/_images.scss +30 -0
- package/src/sdg/scss/settings/_tokens.scss +23 -0
- package/src/sdg/scss/utilities/_display.scss +1 -1
- package/src/sdg/scss/utilities/_states.scss +13 -0
- package/tests/button.spec.ts +11 -0
- package/tests/choice-group.spec.ts +36 -0
- package/tests/dropdown-list.spec.ts +529 -0
- package/tests/icon.spec.ts +19 -0
- package/tests/pivHeader.spec.ts +22 -0
- package/tests/textfield-svelte.spec.ts +28 -0
- package/tests/textfield.spec.ts +37 -0
- package/tests/toggle-switch.spec.ts +20 -0
- package/dist/img/arrow-up-white.svg +0 -3
- package/dist/img/chevron-blue.svg +0 -3
- package/dist/img/clipboard.svg +0 -8
- package/dist/img/error-white.svg +0 -1
- package/dist/img/error.svg +0 -1
- package/dist/img/exclamation-white.svg +0 -37
- package/dist/img/external-link-white.svg +0 -18
- package/dist/img/external-link.svg +0 -10
- package/dist/img/facebook.svg +0 -6
- package/dist/img/information-white.svg +0 -1
- package/dist/img/information.svg +0 -1
- package/dist/img/linkedin.svg +0 -5
- package/dist/img/loupe-piv-fonce.svg +0 -1
- package/dist/img/minus.svg +0 -6
- package/dist/img/qc-sprite.svg +0 -1
- package/dist/img/question-mark.svg +0 -47
- package/dist/img/success-white.svg +0 -1
- package/dist/img/success.svg +0 -1
- package/dist/img/twitter.svg +0 -8
- package/dist/img/warning.svg +0 -1
- package/dist/img/xclose-blue.svg +0 -6
- package/dist/img/xclose-white.svg +0 -1
- package/dist/img/youtube.svg +0 -3
- package/public/img/ampoule.svg +0 -1
- package/public/img/arrow-up-white.svg +0 -3
- package/public/img/chevron-blue.svg +0 -3
- package/public/img/chevron-white.svg +0 -3
- package/public/img/error-white.svg +0 -1
- package/public/img/error.svg +0 -1
- package/public/img/external-link-white.svg +0 -18
- package/public/img/facebook.svg +0 -6
- package/public/img/information-white.svg +0 -1
- package/public/img/information.svg +0 -1
- package/public/img/linkedin.svg +0 -5
- package/public/img/logo-piv-footer-mess.png +0 -0
- package/public/img/loupe-piv-droite.svg +0 -1
- package/public/img/loupe-piv-fonce.svg +0 -1
- package/public/img/note.svg +0 -1
- package/public/img/piv-bas-MCE-theme-clair.png +0 -0
- package/public/img/piv-bas-MCE-theme-sombre.png +0 -0
- package/public/img/piv-logo-pied-de-page.svg +0 -37
- package/public/img/plus.svg +0 -6
- package/public/img/qc-sprite.svg +0 -1
- package/public/img/quebec-logo.svg +0 -13
- package/public/img/success-white.svg +0 -1
- package/public/img/success.svg +0 -1
- package/public/img/twitter.svg +0 -8
- package/public/img/warning.svg +0 -1
- package/public/img/xclose-blue.svg +0 -6
- package/public/img/xclose-white.svg +0 -1
- package/public/img/youtube.svg +0 -3
- package/src/doc/scss/components/_button.scss +0 -61
- package/src/sdg/components/PivFooter/_defaultCopyright.svelte +0 -11
- package/src/sdg/components/PivHeader/_defaultLinks.svelte +0 -24
- package/src/sdg/components/QcCustomElement.js +0 -10
- package/src/sdg/scss/base/_fonts.scss +0 -29
- package/src/sdg/scss/base/_typography.scss +0 -94
- package/src/sdg/scss/components/_icons.scss +0 -169
- package/src/sdg/scss/components/_separator.scss +0 -5
- /package/dist/img/{loupe-piv-droite.svg → piv-search.svg} +0 -0
- /package/src/sdg/{scss/base → bases/colors}/_colors.scss +0 -0
- /package/src/sdg/{scss/base → bases/figures}/_figure.scss +0 -0
- /package/src/sdg/{scss → bases}/grid/_grid-lib.scss +0 -0
- /package/src/sdg/{scss → bases}/grid/_grid.scss +0 -0
- /package/src/sdg/{scss/base → bases/lists}/_lists.scss +0 -0
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import fs from 'fs';
|
|
2
|
+
import path from 'path';
|
|
3
|
+
import glob from 'glob';
|
|
4
|
+
|
|
5
|
+
function buildHtmlDoc({ input }) {
|
|
6
|
+
return {
|
|
7
|
+
name: 'build-dev-doc',
|
|
8
|
+
buildStart() {
|
|
9
|
+
const inputPath = path.resolve(input);
|
|
10
|
+
const srcRoot = path.resolve('src');
|
|
11
|
+
const publicRoot = path.resolve('public');
|
|
12
|
+
const inputFileName = path.basename(inputPath);
|
|
13
|
+
let html = fs.readFileSync(inputPath, 'utf-8');
|
|
14
|
+
|
|
15
|
+
this.addWatchFile(inputPath);
|
|
16
|
+
|
|
17
|
+
const partialPaths = glob.sync('sdg/**/_*.html', {
|
|
18
|
+
cwd: srcRoot,
|
|
19
|
+
absolute: true,
|
|
20
|
+
});
|
|
21
|
+
const partialMarker = `<!-- _partial.html -->`;
|
|
22
|
+
for (const partialPath of partialPaths) {
|
|
23
|
+
this.addWatchFile(partialPath);
|
|
24
|
+
const partialName = path.basename(partialPath, ".html")
|
|
25
|
+
const content = fs.readFileSync(partialPath, 'utf-8');
|
|
26
|
+
const outputPath = publicRoot + "/" + partialName.replace("_", "") + ".dev.html"
|
|
27
|
+
fs.writeFileSync(outputPath
|
|
28
|
+
, html
|
|
29
|
+
.replace(new RegExp(partialMarker, 'g'), content)
|
|
30
|
+
, 'utf-8');
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export default buildHtmlDoc;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import fs from 'fs';
|
|
2
|
+
import path from 'path';
|
|
3
|
+
import glob from 'glob';
|
|
4
|
+
|
|
5
|
+
function buildHtmlDoc({ input, output }) {
|
|
6
|
+
return {
|
|
7
|
+
name: 'build-html-doc',
|
|
8
|
+
buildStart() {
|
|
9
|
+
const inputPath = path.resolve(input);
|
|
10
|
+
const srcRoot = path.resolve('src');
|
|
11
|
+
const inputFileName = path.basename(inputPath);
|
|
12
|
+
let html = fs.readFileSync(inputPath, 'utf-8');
|
|
13
|
+
|
|
14
|
+
this.addWatchFile(inputPath);
|
|
15
|
+
|
|
16
|
+
const partialPaths = glob.sync('**/_*.html', {
|
|
17
|
+
cwd: srcRoot,
|
|
18
|
+
absolute: true,
|
|
19
|
+
ignore: [inputPath] // ignore index.html
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
for (const partialPath of partialPaths) {
|
|
23
|
+
this.addWatchFile(partialPath);
|
|
24
|
+
|
|
25
|
+
const partialName = path.basename(partialPath);
|
|
26
|
+
const marker = `<!-- ${partialName} -->`;
|
|
27
|
+
const content = fs.readFileSync(partialPath, 'utf-8');
|
|
28
|
+
|
|
29
|
+
if (html.includes(marker)) {
|
|
30
|
+
html = html.replace(new RegExp(marker, 'g'), content);
|
|
31
|
+
} else {
|
|
32
|
+
this.warn(`⚠️ Le partiel "${partialName}" n'est pas utilisé dans ${inputFileName}`);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
const outputPath = path.resolve(output);
|
|
37
|
+
fs.mkdirSync(path.dirname(outputPath), { recursive: true });
|
|
38
|
+
fs.writeFileSync(outputPath, html, 'utf-8');
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export default buildHtmlDoc;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import fs from 'fs';
|
|
2
|
+
import path from 'path';
|
|
3
|
+
import glob from 'glob';
|
|
4
|
+
|
|
5
|
+
function buildHtmlDoc({ input }) {
|
|
6
|
+
return {
|
|
7
|
+
name: 'build-test-fixtures',
|
|
8
|
+
buildStart() {
|
|
9
|
+
const inputPath = path.resolve(input);
|
|
10
|
+
const srcRoot = path.resolve('src');
|
|
11
|
+
const publicRoot = path.resolve('public');
|
|
12
|
+
const inputFileName = path.basename(inputPath);
|
|
13
|
+
let html = fs.readFileSync(inputPath, 'utf-8');
|
|
14
|
+
|
|
15
|
+
this.addWatchFile(inputPath);
|
|
16
|
+
|
|
17
|
+
const partialPaths = glob.sync('sdg/**/*Test.html', {
|
|
18
|
+
cwd: srcRoot,
|
|
19
|
+
absolute: true,
|
|
20
|
+
});
|
|
21
|
+
const partialMarker = `<!-- _partial.html -->`;
|
|
22
|
+
const relativePathMarker = `--relativePath--`;
|
|
23
|
+
for (const partialPath of partialPaths) {
|
|
24
|
+
this.addWatchFile(partialPath);
|
|
25
|
+
const partialName = path.basename(partialPath, ".html")
|
|
26
|
+
const content = fs.readFileSync(partialPath, 'utf-8');
|
|
27
|
+
const outputPath = publicRoot + "/" + partialName.replace('Test', '') + ".test.html"
|
|
28
|
+
fs.writeFileSync(outputPath
|
|
29
|
+
, html
|
|
30
|
+
.replace(new RegExp(partialMarker, 'g'), content)
|
|
31
|
+
, 'utf-8');
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export default buildHtmlDoc;
|
|
@@ -7,7 +7,7 @@ pre {
|
|
|
7
7
|
margin: 0;
|
|
8
8
|
padding: 0;
|
|
9
9
|
white-space: pre-wrap;
|
|
10
|
-
overflow:
|
|
10
|
+
overflow: auto;
|
|
11
11
|
}
|
|
12
12
|
pre code, pre .qc-code {
|
|
13
13
|
font-family: var(--qc-font-family-code);
|
|
@@ -171,70 +171,6 @@ code.hljs {
|
|
|
171
171
|
font-weight: bold;
|
|
172
172
|
}
|
|
173
173
|
|
|
174
|
-
.qc-shading-0 {
|
|
175
|
-
border: 1px solid var(--qc-box_shadow-0-color);
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
.qc-shading-1 {
|
|
179
|
-
box-shadow: 0 var(--qc-box_shadow-1-offset) var(--qc-box_shadow-1-blur) var(--qc-color-box_shadow);
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
.qc-shading-2 {
|
|
183
|
-
box-shadow: 0 var(--qc-box_shadow-2-offset) var(--qc-box_shadow-2-blur) var(--qc-color-box_shadow);
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
.qc-shading-3 {
|
|
187
|
-
box-shadow: 0 var(--qc-box_shadow-3-offset) var(--qc-box_shadow-3-blur) var(--qc-color-box_shadow);
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
.qc-shading-4 {
|
|
191
|
-
box-shadow: 0 var(--qc-box_shadow-4-offset) var(--qc-box_shadow-4-blur) var(--qc-color-box_shadow);
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
.btn {
|
|
195
|
-
/* si Compact font-weight: 600; */
|
|
196
|
-
font-size: var(--qc-font-size-md);
|
|
197
|
-
line-height: var(--qc-line-height-md);
|
|
198
|
-
font-weight: var(--qc-font-weight-regular);
|
|
199
|
-
font-family: var(--qc-font-family-content);
|
|
200
|
-
display: inline-block;
|
|
201
|
-
box-sizing: border-box;
|
|
202
|
-
min-width: 11.2rem;
|
|
203
|
-
transition: all 0.24s ease-in-out;
|
|
204
|
-
text-align: center;
|
|
205
|
-
vertical-align: middle;
|
|
206
|
-
text-decoration: none;
|
|
207
|
-
padding: calc(var(--qc-spacer-sm) - 2px) calc(var(--qc-spacer-md) - 2px);
|
|
208
|
-
border: 2px solid transparent;
|
|
209
|
-
border-radius: 0;
|
|
210
|
-
cursor: pointer;
|
|
211
|
-
}
|
|
212
|
-
.btn.btn-sm {
|
|
213
|
-
min-width: 8rem;
|
|
214
|
-
padding: calc(var(--qc-spacer-xs) - 1px) calc(var(--qc-spacer-sm) - 1px);
|
|
215
|
-
border: 1px solid transparent;
|
|
216
|
-
}
|
|
217
|
-
.btn.btn-primary {
|
|
218
|
-
color: var(--qc-color-background);
|
|
219
|
-
border-color: var(--qc-color-blue-piv);
|
|
220
|
-
background-color: var(--qc-color-blue-piv);
|
|
221
|
-
box-shadow: 0 var(--qc-box_shadow-1-offset) var(--qc-box_shadow-1-blur) var(--qc-color-box_shadow);
|
|
222
|
-
}
|
|
223
|
-
.btn.btn-primary:hover {
|
|
224
|
-
border-color: var(--qc-color-blue-regular);
|
|
225
|
-
background-color: var(--qc-color-blue-regular);
|
|
226
|
-
}
|
|
227
|
-
.btn.btn-primary:focus, .btn.btn-primary:focus-visible {
|
|
228
|
-
border-color: var(--qc-color-blue-regular);
|
|
229
|
-
background-color: var(--qc-color-blue-regular);
|
|
230
|
-
box-shadow: 0 2px 8px rgba(34, 54, 84, 0.24), 0 0 0 2px var(--qc-color-blue-light);
|
|
231
|
-
outline: none;
|
|
232
|
-
}
|
|
233
|
-
.btn.btn-primary:active {
|
|
234
|
-
border-color: var(--qc-color-blue-regular_light);
|
|
235
|
-
background-color: var(--qc-color-blue-regular_light);
|
|
236
|
-
}
|
|
237
|
-
|
|
238
174
|
table.qc-table {
|
|
239
175
|
margin-bottom: 0;
|
|
240
176
|
background-color: var(--qc-color-white);
|
|
@@ -270,6 +206,7 @@ table.qc-table.qc-bordered tbody th, table.qc-table.qc-bordered tbody td {
|
|
|
270
206
|
|
|
271
207
|
.ui-autocomplete {
|
|
272
208
|
max-height: calc(16rem + 2px) !important;
|
|
209
|
+
max-width: calc(var(--qc-size-search-bar-max-width) + 2px);
|
|
273
210
|
overflow-y: auto !important;
|
|
274
211
|
list-style-type: none !important;
|
|
275
212
|
padding-left: 0 !important;
|
|
@@ -447,8 +384,7 @@ a.pseudo-active span.qc-ext-link-img {
|
|
|
447
384
|
}
|
|
448
385
|
|
|
449
386
|
p, h1, h2, h3, h4, h5, h6 {
|
|
450
|
-
|
|
451
|
-
hyphens: auto;
|
|
387
|
+
hyphens: auto;
|
|
452
388
|
}
|
|
453
389
|
|
|
454
390
|
table.component-attributes-description td:first-child {
|
|
@@ -492,6 +428,7 @@ dl.qc-list-inline dt::before {
|
|
|
492
428
|
.table-overflow {
|
|
493
429
|
width: 100%;
|
|
494
430
|
overflow-x: auto;
|
|
431
|
+
margin-bottom: var(--qc-spacer-content-block-mb);
|
|
495
432
|
}
|
|
496
433
|
|
|
497
434
|
hr {
|
|
@@ -83,8 +83,12 @@
|
|
|
83
83
|
--qc-color-pink-regular-rgb: 229, 130, 113;
|
|
84
84
|
--qc-color-red-pale: var(--qc-color-pink-pale);
|
|
85
85
|
--qc-color-red-light: var(--qc-color-pink-regular);
|
|
86
|
+
--qc-color-red-regular_light: #eb705a;
|
|
87
|
+
--qc-color-red-regular_light-rgb: 235, 112, 90;
|
|
86
88
|
--qc-color-red-regular: #cb381f;
|
|
87
89
|
--qc-color-red-regular-rgb: 203, 56, 31;
|
|
90
|
+
--qc-color-red-medium: #b52e16;
|
|
91
|
+
--qc-color-red-medium-rgb: 181, 46, 22;
|
|
88
92
|
--qc-color-red-dark: #692519;
|
|
89
93
|
--qc-color-red-dark-rgb: 105, 37, 25;
|
|
90
94
|
--qc-color-green-pale: #d7f0bb;
|
|
@@ -145,6 +149,15 @@
|
|
|
145
149
|
--qc-spacer-content-block-mb: var(--qc-spacer-md);
|
|
146
150
|
--qc-spacer-list-pl: var(--qc-spacer-sm);
|
|
147
151
|
--qc-spacer-list-item-mb: var(--qc-spacer-sm);
|
|
152
|
+
--qc-size-max-width-xs: 6.3rem;
|
|
153
|
+
--qc-size-max-width-sm: 15.6rem;
|
|
154
|
+
--qc-size-max-width-md: 24.9rem;
|
|
155
|
+
--qc-size-max-width-lg: 52.8rem;
|
|
156
|
+
--qc-size-max-width-xl: 82.5rem;
|
|
157
|
+
--qc-size-input-max-width: var(--qc-size-max-width-md);
|
|
158
|
+
--qc-size-textarea-max-width: var(--qc-size-max-width-lg);
|
|
159
|
+
--qc-size-textarea-min-height: 10.8rem;
|
|
160
|
+
--qc-size-search-bar-max-width: 64rem;
|
|
148
161
|
--qc-grid-gutter: 32px;
|
|
149
162
|
--qc-grid-breakpoint-xs: 0;
|
|
150
163
|
--qc-grid-breakpoint-sm: 768px;
|
|
@@ -203,8 +216,12 @@
|
|
|
203
216
|
--qc-color-pink-pale-rgb: 79, 24, 14;
|
|
204
217
|
--qc-color-pink-regular: #BB3A23;
|
|
205
218
|
--qc-color-pink-regular-rgb: 187, 58, 35;
|
|
219
|
+
--qc-color-red-regular_light: #D34027;
|
|
220
|
+
--qc-color-red-regular_light-rgb: 211, 64, 39;
|
|
206
221
|
--qc-color-red-regular: #F26049;
|
|
207
222
|
--qc-color-red-regular-rgb: 242, 96, 73;
|
|
223
|
+
--qc-color-red-medium: #F19387;
|
|
224
|
+
--qc-color-red-medium-rgb: 241, 147, 135;
|
|
208
225
|
--qc-color-red-dark: #F3BCB6;
|
|
209
226
|
--qc-color-red-dark-rgb: 243, 188, 182;
|
|
210
227
|
--qc-color-green-pale: #1E2F17;
|