@simple-reporting/base 1.0.18 → 1.0.19

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.
Files changed (103) hide show
  1. package/dev/package.json +1 -2
  2. package/package.json +1 -1
  3. package/scripts/beaver.js +5 -5
  4. package/scripts/build.js +5 -5
  5. package/scripts/folders.js +1 -1
  6. package/scripts/prepare.js +13 -1
  7. package/srl/{tsconfig.srl.json → .srl/tsconfig.srl.json} +2 -2
  8. package/srl/srl/colors.scss +2 -2
  9. package/srl/srl/config.scss +7 -7
  10. package/srl/srl/core-styles.scss +1 -1
  11. package/srl/srl/fonts.scss +1 -1
  12. package/srl/srl/grid.scss +1 -1
  13. package/srl/srl/helpers.scss +1 -1
  14. package/srl/srl/index.scss +9 -9
  15. package/srl/srl/meta.scss +1 -1
  16. package/srl/srl/pdf.scss +1 -1
  17. package/srl/srl/spacer.scss +1 -1
  18. package/srl/srl/system.scss +1 -1
  19. package/srl/srl/typography.scss +2 -2
  20. /package/{srl/scss → scss}/colors/functions.scss +0 -0
  21. /package/{srl/scss → scss}/colors/index.scss +0 -0
  22. /package/{srl/scss → scss}/colors/mixins.scss +0 -0
  23. /package/{srl/scss → scss}/colors/variables.scss +0 -0
  24. /package/{srl/scss → scss}/config.scss +0 -0
  25. /package/{srl/scss → scss}/core-styles.scss +0 -0
  26. /package/{srl/scss → scss}/fonts/functions.scss +0 -0
  27. /package/{srl/scss → scss}/fonts/index.scss +0 -0
  28. /package/{srl/scss → scss}/fonts/mixins.scss +0 -0
  29. /package/{srl/scss → scss}/fonts/variables.scss +0 -0
  30. /package/{srl/scss → scss}/grid/functions.scss +0 -0
  31. /package/{srl/scss → scss}/grid/index.scss +0 -0
  32. /package/{srl/scss → scss}/grid/mixins.scss +0 -0
  33. /package/{srl/scss → scss}/grid/variables.scss +0 -0
  34. /package/{srl/scss → scss}/helpers/functions.scss +0 -0
  35. /package/{srl/scss → scss}/helpers/index.scss +0 -0
  36. /package/{srl/scss → scss}/helpers/mixins.scss +0 -0
  37. /package/{srl/scss → scss}/helpers/variables.scss +0 -0
  38. /package/{srl/scss → scss}/index.scss +0 -0
  39. /package/{srl/scss → scss}/meta/functions.scss +0 -0
  40. /package/{srl/scss → scss}/meta/index.scss +0 -0
  41. /package/{srl/scss → scss}/meta/mixins.scss +0 -0
  42. /package/{srl/scss → scss}/meta/variables.scss +0 -0
  43. /package/{srl/scss → scss}/spacer/functions.scss +0 -0
  44. /package/{srl/scss → scss}/spacer/index.scss +0 -0
  45. /package/{srl/scss → scss}/spacer/mixins.scss +0 -0
  46. /package/{srl/scss → scss}/spacer/variables.scss +0 -0
  47. /package/{srl/scss → scss}/system/functions.scss +0 -0
  48. /package/{srl/scss → scss}/system/index.scss +0 -0
  49. /package/{srl/scss → scss}/system/mixins.scss +0 -0
  50. /package/{srl/scss → scss}/system/root.scss +0 -0
  51. /package/{srl/scss → scss}/system/variables.scss +0 -0
  52. /package/{srl/scss → scss}/typography/functions.scss +0 -0
  53. /package/{srl/scss → scss}/typography/index.scss +0 -0
  54. /package/{srl/scss → scss}/typography/mixins.scss +0 -0
  55. /package/{srl/scss → scss}/typography/variables.scss +0 -0
  56. /package/{srl/scss → scss}/xbrl-core-styles.scss +0 -0
  57. /package/srl/{App.vue → .srl/App.vue} +0 -0
  58. /package/srl/{components → .srl/components}/Srl/Aria/TabChain.vue +0 -0
  59. /package/srl/{components → .srl/components}/Srl/Article/Autoload.vue +0 -0
  60. /package/srl/{components → .srl/components}/Srl/Article/Dialog/Button.vue +0 -0
  61. /package/srl/{components → .srl/components}/Srl/Article/Root.vue +0 -0
  62. /package/srl/{components → .srl/components}/Srl/Category/Accordion/Content.vue +0 -0
  63. /package/srl/{components → .srl/components}/Srl/Category/Accordion/Toggle.vue +0 -0
  64. /package/srl/{components → .srl/components}/Srl/Category/Accordion.vue +0 -0
  65. /package/srl/{components → .srl/components}/Srl/Menu/Item/Content/Icon/After.vue +0 -0
  66. /package/srl/{components → .srl/components}/Srl/Menu/Item/Content/Icon/Before.vue +0 -0
  67. /package/srl/{components → .srl/components}/Srl/Menu/Item/Content/Icon.vue +0 -0
  68. /package/srl/{components → .srl/components}/Srl/Menu/Item/Content/Image/After.vue +0 -0
  69. /package/srl/{components → .srl/components}/Srl/Menu/Item/Content/Image/Before.vue +0 -0
  70. /package/srl/{components → .srl/components}/Srl/Menu/Item/Content/Image.vue +0 -0
  71. /package/srl/{components → .srl/components}/Srl/Menu/Item/Content/Text.vue +0 -0
  72. /package/srl/{components → .srl/components}/Srl/Menu/Item/Content.vue +0 -0
  73. /package/srl/{components → .srl/components}/Srl/Menu/Item.vue +0 -0
  74. /package/srl/{components → .srl/components}/Srl/Menu.vue +0 -0
  75. /package/srl/{components → .srl/components}/Srl/Page/Dialog.vue +0 -0
  76. /package/srl/{composables → .srl/composables}/article.ts +0 -0
  77. /package/srl/{composables → .srl/composables}/articles.ts +0 -0
  78. /package/srl/{composables → .srl/composables}/config.ts +0 -0
  79. /package/srl/{composables → .srl/composables}/cssStyles.ts +0 -0
  80. /package/srl/{composables → .srl/composables}/downloads.ts +0 -0
  81. /package/srl/{composables → .srl/composables}/index.ts +0 -0
  82. /package/srl/{composables → .srl/composables}/languageSwitch.ts +0 -0
  83. /package/srl/{composables → .srl/composables}/locale.ts +0 -0
  84. /package/srl/{composables → .srl/composables}/menu.ts +0 -0
  85. /package/srl/{composables → .srl/composables}/search.ts +0 -0
  86. /package/srl/{composables → .srl/composables}/settings.ts +0 -0
  87. /package/srl/{composables → .srl/composables}/viewPort.ts +0 -0
  88. /package/srl/{imports → .srl/imports}/app.scss +0 -0
  89. /package/srl/{imports → .srl/imports}/ldd.scss +0 -0
  90. /package/srl/{imports → .srl/imports}/pdf.scss +0 -0
  91. /package/srl/{imports → .srl/imports}/word.scss +0 -0
  92. /package/srl/{imports → .srl/imports}/xbrl.scss +0 -0
  93. /package/srl/{plugins → .srl/plugins}/asyncLdComponent.ts +0 -0
  94. /package/srl/{plugins → .srl/plugins}/asyncSrlComponents.ts +0 -0
  95. /package/srl/{plugins → .srl/plugins}/initProject.ts +0 -0
  96. /package/srl/{plugins → .srl/plugins}/vueSrlPlugin.ts +0 -0
  97. /package/srl/{types → .srl/types}/components.d.ts +0 -0
  98. /package/srl/{types → .srl/types}/global.d.ts +0 -0
  99. /package/srl/{types → .srl/types}/nswow.d.ts +0 -0
  100. /package/srl/{utils → .srl/utils}/camelCase.ts +0 -0
  101. /package/srl/{utils → .srl/utils}/html.ts +0 -0
  102. /package/srl/{utils → .srl/utils}/index.ts +0 -0
  103. /package/srl/{utils → .srl/utils}/uri.ts +0 -0
package/dev/package.json CHANGED
@@ -19,7 +19,7 @@
19
19
  "postinstall": "srl prepare"
20
20
  },
21
21
  "dependencies": {
22
- "@simple-reporting/base": "^1.0.18",
22
+ "@simple-reporting/base": "^1.0.19",
23
23
  "axios": "^1.12.2",
24
24
  "chalk": "^5.6.2",
25
25
  "exceljs": "^4.4.0",
@@ -29,7 +29,6 @@
29
29
  "node-html-parser": "^7.0.1",
30
30
  "pinia": "^2.3.1",
31
31
  "scrollmonitor": "^1.2.11",
32
- "standard-scss": "github:mms-neidhartschoen/nsfd_standard-scss",
33
32
  "vite-plugin-pwa": "^0.21.2",
34
33
  "vue": "^3.5.13",
35
34
  "vue-i18n": "^11.1.12",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@simple-reporting/base",
3
- "version": "1.0.18",
3
+ "version": "1.0.19",
4
4
  "description": "Manage srl templates, build and publish",
5
5
  "bin": {
6
6
  "srl": "cli.js"
package/scripts/beaver.js CHANGED
@@ -46,7 +46,7 @@ function mapValues(values) {
46
46
  * @returns {string} - The generated SCSS code.
47
47
  */
48
48
  function writeTypographyScss(typography) {
49
- let r = [`@use "config";`, `@forward "../scss/typography";`];
49
+ let r = [`@use "config";`, `@forward "@simple-reporting/base/scss/typography";`];
50
50
  if (typography) {
51
51
  if (typography.typography) {
52
52
  let o = [];
@@ -57,7 +57,7 @@ function writeTypographyScss(typography) {
57
57
  o.push(`}\n`);
58
58
  }
59
59
  if (o.length) {
60
- r.push(`@use "../scss/typography";\n`);
60
+ r.push(`@use "@simple-reporting/base/scss/typography";\n`);
61
61
  r.push(o.join(`\n`));
62
62
  }
63
63
  }
@@ -72,7 +72,7 @@ function writeTypographyScss(typography) {
72
72
  * @returns {string} - The SCSS code for importing and forwarding colors.
73
73
  */
74
74
  function writeColorsScss(colors) {
75
- let r = [`@use "config";`, `@forward "../scss/colors";`];
75
+ let r = [`@use "config";`, `@forward "@simple-reporting/base/scss/colors";`];
76
76
  if (colors) {
77
77
  if (colors.colors) {
78
78
  let o = [];
@@ -84,7 +84,7 @@ function writeColorsScss(colors) {
84
84
  }
85
85
 
86
86
  if (o.length) {
87
- r.push(`@use "../scss/colors";\n`);
87
+ r.push(`@use "@simple-reporting/base/scss/colors";\n`);
88
88
  r.push(o.join(`\n`));
89
89
  }
90
90
  }
@@ -263,7 +263,7 @@ async function beaver(verbose = 0) {
263
263
  if (typeof map[file] !== 'undefined') {
264
264
  const o = [];
265
265
  o.push(
266
- `@use "../scss/${file}/variables.scss" as ${file}Variables with (`,
266
+ `@use "@simple-reporting/base/scss/${file}/variables.scss" as ${file}Variables with (`,
267
267
  );
268
268
  let v = [];
269
269
  for (const variable in map[file]) {
package/scripts/build.js CHANGED
@@ -862,32 +862,32 @@ async function mapScss() {
862
862
  join(folders.srlImports, 'app.scss'),
863
863
  `@use ` +
864
864
  output.app.join(';\n@use ') +
865
- `;\n@use "../scss/core-styles.scss" as *;\n`,
865
+ `;\n@use "@simple-reporting/base/scss/core-styles.scss" as *;\n`,
866
866
  );
867
867
  await writeFileSync(
868
868
  join(folders.srlImports, 'ldd.scss'),
869
869
  `@use ` +
870
870
  output.ldd.join(';\n@use ') +
871
- `;\n@use "../scss/core-styles.scss" as *;\n`,
871
+ `;\n@use "@simple-reporting/base/scss/core-styles.scss" as *;\n`,
872
872
  );
873
873
  await writeFileSync(
874
874
  join(folders.srlImports, 'pdf.scss'),
875
875
  `@use ` +
876
876
  output.pdf.join(';\n@use ') +
877
- `;\n@use "../scss/core-styles.scss" as *;\n`,
877
+ `;\n@use "@simple-reporting/base/scss/core-styles.scss" as *;\n`,
878
878
  );
879
879
  await writeFileSync(
880
880
  join(folders.srlImports, 'word.scss'),
881
881
  `@use ` +
882
882
  output.word.join(';\n@use ') +
883
- `;\n@use "../scss/core-styles.scss" as *;\n`,
883
+ `;\n@use "@simple-reporting/base/scss/core-styles.scss" as *;\n`,
884
884
  );
885
885
 
886
886
  await writeFileSync(
887
887
  join(folders.srlImports, 'xbrl.scss'),
888
888
  output.xbrl.length
889
889
  ? `@use ` + output.xbrl.join(';\n@use ')
890
- : '' + `;\n@use "../scss/xbrl-core-styles.scss" as *;\n`,
890
+ : '' + `;\n@use "@simple-reporting/base/scss/xbrl-core-styles.scss" as *;\n`,
891
891
  );
892
892
 
893
893
  return true;
@@ -7,7 +7,7 @@ export const packagePath = join(root, 'node_modules', packageName);
7
7
  export const packageSrl = join(packagePath, 'srl');
8
8
  export const packageLd = join(packagePath, 'livingdocs');
9
9
  export const srlRoot = join(root, '.srl');
10
- export const srlSystem = join(srlRoot, 'srl');
10
+ export const srlSystem = join(root, 'srl');
11
11
  export const srlComponents = join(srlRoot, 'components');
12
12
  export const srlComposables = join(srlRoot, 'composables');
13
13
  export const srlUtils = join(srlRoot, 'utils');
@@ -1,11 +1,23 @@
1
1
  import folders from './folders.js';
2
2
  import fs from 'fs';
3
+ import { join } from 'path/posix';
3
4
 
4
5
  async function prepare() {
5
6
  if (fs.existsSync(folders.srlRoot)) {
6
7
  await fs.rmSync(folders.srlRoot, { recursive: true, force: true });
7
8
  }
8
- await fs.cpSync(folders.packageSrl, folders.srlRoot, { recursive: true });
9
+ const srlFolders = fs.readdirSync(folders.packageSrl, { withFileTypes: true });
10
+ for (const srlFolder of srlFolders) {
11
+ const srcPath = join(folders.packageSrl, srlFolder.name);
12
+ const destPath = join(folders.root, srlFolder.name);
13
+ fs.cpSync(srcPath, destPath, { recursive: true });
14
+ }
15
+ const srlIgnoresFiles = fs.readdirSync(join(folders.packageSrl, 'srl'), { withFileTypes: true });
16
+ const srlIgnoreContent = [];
17
+ for (const srlIgnoreFile of srlIgnoresFiles) {
18
+ srlIgnoreContent.push(`/${srlIgnoreFile.name}`);
19
+ }
20
+ fs.writeFileSync(join(folders.root, 'srl', '.gitignore'), srlIgnoreContent.join('\n'));
9
21
  }
10
22
 
11
23
  export default prepare;
@@ -79,10 +79,10 @@
79
79
  "../src/assets/*"
80
80
  ],
81
81
  "srl": [
82
- "./srl"
82
+ "../srl"
83
83
  ],
84
84
  "srl/*": [
85
- "./srl/*"
85
+ "../srl/*"
86
86
  ]
87
87
  }
88
88
  }
@@ -1,3 +1,3 @@
1
1
  @use 'config';
2
- @forward '../scss/colors';
3
- @use '../scss/colors';
2
+ @forward '@simple-reporting/base/scss/colors';
3
+ @use '@simple-reporting/base/scss/colors';
@@ -1,7 +1,7 @@
1
- @use '../scss/system/variables' as systemVariables;
2
- @use '../scss/meta/variables' as metaVariables;
3
- @use '../scss/grid/variables' as gridVariables;
4
- @use '../scss/colors/variables' as colorsVariables;
5
- @use '../scss/typography/variables' as typographyVariables;
6
- @use '../scss/spacer/variables' as spacerVariables;
7
- @use '../scss/helpers/variables' as helpersVariables;
1
+ @use '@simple-reporting/base/scss/system/variables' as systemVariables;
2
+ @use '@simple-reporting/base/scss/meta/variables' as metaVariables;
3
+ @use '@simple-reporting/base/scss/grid/variables' as gridVariables;
4
+ @use '@simple-reporting/base/scss/colors/variables' as colorsVariables;
5
+ @use '@simple-reporting/base/scss/typography/variables' as typographyVariables;
6
+ @use '@simple-reporting/base/scss/spacer/variables' as spacerVariables;
7
+ @use '@simple-reporting/base/scss/helpers/variables' as helpersVariables;
@@ -1,2 +1,2 @@
1
1
  @use 'config';
2
- @forward '../scss/core-styles';
2
+ @forward '@simple-reporting/base/scss/core-styles';
@@ -1,2 +1,2 @@
1
1
  @use 'config';
2
- @forward '../scss/fonts';
2
+ @forward '@simple-reporting/base/scss/fonts';
package/srl/srl/grid.scss CHANGED
@@ -1,2 +1,2 @@
1
1
  @use 'config';
2
- @forward '../scss/grid';
2
+ @forward '@simple-reporting/base/scss/grid';
@@ -1,2 +1,2 @@
1
1
  @use 'config';
2
- @forward '../scss/helpers';
2
+ @forward '@simple-reporting/base/scss/helpers';
@@ -1,9 +1,9 @@
1
- @use 'config';
2
- @forward 'system' as system-*;
3
- @forward 'fonts' as fonts-*;
4
- @forward 'grid' as grid-*;
5
- @forward 'colors' as colors-*;
6
- @forward 'typography' as typography-*;
7
- @forward 'helpers' as helpers-*;
8
- @forward 'spacer' as spacer-*;
9
- @forward 'meta';
1
+ @use './config';
2
+ @forward './system' as system-*;
3
+ @forward './fonts' as fonts-*;
4
+ @forward './grid' as grid-*;
5
+ @forward './colors' as colors-*;
6
+ @forward './typography' as typography-*;
7
+ @forward './helpers' as helpers-*;
8
+ @forward './spacer' as spacer-*;
9
+ @forward './meta';
package/srl/srl/meta.scss CHANGED
@@ -1,2 +1,2 @@
1
1
  @use 'config';
2
- @forward '../scss/meta';
2
+ @forward '@simple-reporting/base/scss/meta';
package/srl/srl/pdf.scss CHANGED
@@ -1,2 +1,2 @@
1
1
  @use 'config';
2
- @forward '../scss/pdf';
2
+ @forward '@simple-reporting/base/scss/pdf';
@@ -1,2 +1,2 @@
1
1
  @use 'config';
2
- @forward '../scss/spacer';
2
+ @forward '@simple-reporting/base/scss/spacer';
@@ -1,2 +1,2 @@
1
1
  @use 'config';
2
- @forward '../scss/system';
2
+ @forward '@simple-reporting/base/scss/system';
@@ -1,3 +1,3 @@
1
1
  @use 'config';
2
- @forward '../scss/typography';
3
- @use '../scss/typography';
2
+ @forward '@simple-reporting/base/scss/typography';
3
+ @use '@simple-reporting/base/scss/typography';
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes