@eui/core 21.0.0-alpha.9 → 21.0.0-next.2

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 (121) hide show
  1. package/CHANGELOG.md +674 -5326
  2. package/docs/changelog.html +796 -7624
  3. package/docs/classes/ActivatedRouteAction.html +18 -0
  4. package/docs/classes/AddApiQueueItemAction.html +18 -0
  5. package/docs/classes/AddAppLoadedConfigModulesAction.html +18 -0
  6. package/docs/classes/ApiQueueServiceMock.html +18 -0
  7. package/docs/classes/AsyncStorageService.html +18 -0
  8. package/docs/classes/AsyncStorageServiceMock.html +18 -0
  9. package/docs/classes/CssUtils.html +45 -0
  10. package/docs/classes/EmptyApiQueueAction.html +18 -0
  11. package/docs/classes/ErrorSubClass.html +18 -0
  12. package/docs/classes/EuiCoreRootGuardClass.html +18 -0
  13. package/docs/classes/EuiError.html +18 -0
  14. package/docs/classes/I18nResourceImpl.html +18 -0
  15. package/docs/classes/InitStoreAction.html +18 -0
  16. package/docs/classes/LogServiceMock.html +18 -0
  17. package/docs/classes/RemoveApiQueueItemAction.html +18 -0
  18. package/docs/classes/StorageService.html +18 -0
  19. package/docs/classes/StorageServiceMock.html +18 -0
  20. package/docs/classes/TranslateServiceMock.html +18 -0
  21. package/docs/classes/UpdateAppConnectionAction.html +18 -0
  22. package/docs/classes/UpdateAppStatusAction.html +18 -0
  23. package/docs/classes/UpdateAppVersionAction.html +18 -0
  24. package/docs/classes/UpdateCurrentModuleAction.html +18 -0
  25. package/docs/classes/UpdateI18nStateAction.html +18 -0
  26. package/docs/classes/UpdateLocaleStateAction.html +18 -0
  27. package/docs/classes/UpdateNotificationsListAction.html +18 -0
  28. package/docs/classes/UpdateUserDashboardAction.html +18 -0
  29. package/docs/classes/UpdateUserDetailsAction.html +18 -0
  30. package/docs/classes/UpdateUserPreferencesAction.html +18 -0
  31. package/docs/classes/UpdateUserRightsAction.html +18 -0
  32. package/docs/classes/UpdateUserStateAction.html +18 -0
  33. package/docs/dependencies.html +18 -0
  34. package/docs/directives/TranslateMockDirective.html +18 -0
  35. package/docs/index.html +20 -2
  36. package/docs/injectables/ApiQueueService.html +18 -0
  37. package/docs/injectables/EuiAppShellService.html +55 -0
  38. package/docs/injectables/EuiDynamicComponentService.html +18 -0
  39. package/docs/injectables/EuiDynamicMenuService.html +18 -0
  40. package/docs/injectables/EuiGrowlService.html +18 -0
  41. package/docs/injectables/EuiLoaderService.html +18 -0
  42. package/docs/injectables/EuiPermissionService.html +18 -0
  43. package/docs/injectables/EuiThemeService.html +18 -0
  44. package/docs/injectables/EuiTimezoneService.html +18 -0
  45. package/docs/injectables/GlobalErrorHandler.html +18 -0
  46. package/docs/injectables/I18nLoader.html +18 -0
  47. package/docs/injectables/I18nService.html +18 -0
  48. package/docs/injectables/I18nServiceMock.html +18 -0
  49. package/docs/injectables/LocalForageService.html +18 -0
  50. package/docs/injectables/LocalStorageService.html +18 -0
  51. package/docs/injectables/LocaleService.html +18 -0
  52. package/docs/injectables/LocaleServiceMock.html +18 -0
  53. package/docs/injectables/LogService.html +18 -0
  54. package/docs/injectables/SessionStorageService.html +18 -0
  55. package/docs/injectables/StoreService.html +18 -0
  56. package/docs/injectables/StoreServiceMock.html +18 -0
  57. package/docs/injectables/UserService.html +18 -0
  58. package/docs/injectables/UserServiceMock.html +18 -0
  59. package/docs/interceptors/AddLangParamInterceptor.html +18 -0
  60. package/docs/interceptors/CachePreventionInterceptor.html +18 -0
  61. package/docs/interceptors/CorsSecurityInterceptor.html +18 -0
  62. package/docs/interceptors/CsrfPreventionInterceptor.html +18 -0
  63. package/docs/interceptors/EuLoginSessionTimeoutHandlingInterceptor.html +18 -0
  64. package/docs/interceptors/HttpErrorHandlerInterceptor.html +18 -0
  65. package/docs/interceptors/UxRequestErrorModelInterceptor.html +18 -0
  66. package/docs/interfaces/Action.html +18 -0
  67. package/docs/interfaces/ActionReducer.html +18 -0
  68. package/docs/interfaces/Dependency.html +18 -0
  69. package/docs/interfaces/EuiTimeZone.html +18 -0
  70. package/docs/interfaces/IEuiTheme.html +18 -0
  71. package/docs/interfaces/Library.html +18 -0
  72. package/docs/interfaces/LoadedResources.html +18 -0
  73. package/docs/interfaces/LoadedResourcesError.html +18 -0
  74. package/docs/interfaces/MemoizedSelector.html +18 -0
  75. package/docs/interfaces/MemoizedSelectorWithProps.html +18 -0
  76. package/docs/interfaces/ModuleLoadEvent.html +18 -0
  77. package/docs/interfaces/Policy.html +18 -0
  78. package/docs/interfaces/ResourceError.html +18 -0
  79. package/docs/interfaces/ThemeState.html +18 -0
  80. package/docs/interfaces/TranslationKeys.html +18 -0
  81. package/docs/interfaces/UIState.html +108 -0
  82. package/docs/interfaces/body.html +18 -0
  83. package/docs/js/libs/bootstrap-native.js +1 -1
  84. package/docs/js/libs/jszip.min.js +13 -0
  85. package/docs/js/libs/svg-pan-zoom.min.js +3 -3
  86. package/docs/js/libs/tablesort.min.js +3 -3
  87. package/docs/js/libs/tablesort.number.min.js +3 -3
  88. package/docs/js/menu-wc.js +16 -20
  89. package/docs/js/menu-wc_es5.js +1 -1
  90. package/docs/js/routes/routes_index.js +1 -0
  91. package/docs/js/routes.js +15 -8
  92. package/docs/js/search/search_index.js +2 -2
  93. package/docs/license.html +20 -2
  94. package/docs/miscellaneous/enumerations.html +18 -0
  95. package/docs/miscellaneous/functions.html +18 -0
  96. package/docs/miscellaneous/typealiases.html +18 -0
  97. package/docs/miscellaneous/variables.html +48 -53
  98. package/docs/modules/CoreModule.html +18 -0
  99. package/docs/modules/I18nModule.html +18 -0
  100. package/docs/modules/LogModule.html +18 -0
  101. package/docs/modules/TranslateMockModule.html +18 -0
  102. package/docs/modules.html +18 -0
  103. package/docs/overview.html +28 -0
  104. package/docs/pipes/TranslateMockPipe.html +18 -0
  105. package/docs/properties.html +19 -1
  106. package/docs/routes.html +204 -0
  107. package/docs/template-playground/default-templates.json +192 -0
  108. package/docs/template-playground/hbs-render.service.ts +212 -0
  109. package/docs/template-playground/main.ts +9 -0
  110. package/docs/template-playground/template-editor.service.ts +173 -0
  111. package/docs/template-playground/template-playground.component.ts +614 -0
  112. package/docs/template-playground/template-playground.module.ts +29 -0
  113. package/docs/template-playground/zip-export.service.ts +86 -0
  114. package/docs/template-playground-app/app.js +1389 -0
  115. package/docs/template-playground-app/index.html +462 -0
  116. package/fesm2022/eui-core.mjs +150 -110
  117. package/fesm2022/eui-core.mjs.map +1 -1
  118. package/package.json +44 -45
  119. package/{index.d.ts → types/eui-core.d.ts} +13 -1
  120. package/types/eui-core.d.ts.map +1 -0
  121. package/index.d.ts.map +0 -1
@@ -0,0 +1,86 @@
1
+ import { Injectable } from '@angular/core';
2
+
3
+ declare const JSZip: any;
4
+
5
+ @Injectable({
6
+ providedIn: 'root'
7
+ })
8
+ export class ZipExportService {
9
+
10
+ exportTemplates(files: any[]) {
11
+ const zip = new JSZip();
12
+
13
+ // Add all template files to the ZIP
14
+ files.forEach(file => {
15
+ zip.file(file.path, file.content);
16
+ });
17
+
18
+ // Add a README with instructions
19
+ const readme = this.generateReadme();
20
+ zip.file('README.md', readme);
21
+
22
+ // Generate and download the ZIP file
23
+ zip.generateAsync({ type: 'blob' })
24
+ .then((content: Blob) => {
25
+ this.downloadBlob(content, 'compodoc-templates.zip');
26
+ });
27
+ }
28
+
29
+ private generateReadme(): string {
30
+ return `# Compodoc Custom Templates
31
+
32
+ This ZIP file contains customized templates for Compodoc documentation generation.
33
+
34
+ ## Contents
35
+
36
+ - **Templates** (\`.hbs\` files): Handlebars templates for generating documentation pages
37
+ - **Styles** (\`.css\` files): Stylesheets for customizing the appearance
38
+ - **Scripts** (\`.js\` files): JavaScript files for additional functionality
39
+
40
+ ## Usage
41
+
42
+ 1. Extract this ZIP file to a directory on your system
43
+ 2. Use the \`--templates\` flag when running Compodoc to specify the path to your custom templates:
44
+
45
+ \`\`\`bash
46
+ compodoc -p tsconfig.json --templates ./path/to/custom/templates/
47
+ \`\`\`
48
+
49
+ ## Template Structure
50
+
51
+ - \`page.hbs\` - Main page template
52
+ - \`partials/\` - Directory containing partial templates
53
+ - \`styles/\` - Directory containing CSS files
54
+ - \`js/\` - Directory containing JavaScript files
55
+
56
+ ## Customization Tips
57
+
58
+ 1. **Templates**: Use Handlebars syntax to customize the HTML structure
59
+ 2. **Styles**: Modify CSS to change colors, fonts, layout, etc.
60
+ 3. **Scripts**: Add custom JavaScript functionality
61
+
62
+ ## Backup
63
+
64
+ Always keep a backup of your original templates before making changes.
65
+
66
+ ## Documentation
67
+
68
+ For more information about customizing Compodoc templates, visit:
69
+ https://compodoc.app/guides/template-customization.html
70
+
71
+ Generated by Compodoc Template Playground
72
+ `;
73
+ }
74
+
75
+ private downloadBlob(blob: Blob, filename: string) {
76
+ const url = window.URL.createObjectURL(blob);
77
+ const a = document.createElement('a');
78
+ a.href = url;
79
+ a.download = filename;
80
+ a.style.display = 'none';
81
+ document.body.appendChild(a);
82
+ a.click();
83
+ document.body.removeChild(a);
84
+ window.URL.revokeObjectURL(url);
85
+ }
86
+ }