@illuminateeducation/dna-atd-frontend 1.0.1-DNAATD-2189.0 → 1.0.2-DNAATD-3045-v3-POC.0

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 (95) hide show
  1. package/README.md +21 -21
  2. package/dist/assets/dna-atd-frontend.css +1 -0
  3. package/dist/index.d.ts +1 -0
  4. package/dist/index.es.js +47350 -0
  5. package/dist/index.es.js.map +1 -0
  6. package/dist/src/App.vue.d.ts +2 -0
  7. package/dist/src/components/common/BaseButton.vue.d.ts +16 -0
  8. package/dist/src/components/common/BaseInput.vue.d.ts +8 -0
  9. package/dist/src/components/common/BaseModal.vue.d.ts +19 -0
  10. package/dist/src/components/common/ErrorBoundary.vue.d.ts +37 -0
  11. package/dist/src/composables/useAsync.d.ts +24 -0
  12. package/dist/src/composables/useClickOutside.d.ts +7 -0
  13. package/dist/src/composables/useForm.d.ts +38 -0
  14. package/dist/src/composables/useLocalStorage.d.ts +24 -0
  15. package/dist/src/composables/useWindowSize.d.ts +20 -0
  16. package/dist/src/config/app.config.d.ts +67 -0
  17. package/dist/src/context/backendContext.d.ts +9 -0
  18. package/dist/src/features/admin/customization/composables/useCustomization.d.ts +19 -0
  19. package/dist/src/features/admin/customization/store/customizationStore.d.ts +30 -0
  20. package/dist/src/features/admin/customization/views/CustomizationView.vue.d.ts +2 -0
  21. package/dist/src/features/admin/validation/composables/useValidation.d.ts +18 -0
  22. package/dist/src/features/admin/validation/store/validationStore.d.ts +27 -0
  23. package/dist/src/features/admin/validation/views/ValidationView.vue.d.ts +2 -0
  24. package/dist/src/features/reports/codeBasedJasper/components/AssessmentFinder.vue.d.ts +618 -0
  25. package/dist/src/features/reports/codeBasedJasper/components/DownloadButtons.vue.d.ts +13 -0
  26. package/dist/src/features/reports/codeBasedJasper/components/FavoritesWidget.vue.d.ts +10 -0
  27. package/dist/src/features/reports/codeBasedJasper/components/MultipleAssessmentIdsField.vue.d.ts +18 -0
  28. package/dist/src/features/reports/codeBasedJasper/components/ReportFilters.vue.d.ts +18 -0
  29. package/dist/src/features/reports/codeBasedJasper/components/ReportPagination.vue.d.ts +11 -0
  30. package/dist/src/features/reports/codeBasedJasper/components/ReportViewer.vue.d.ts +16 -0
  31. package/dist/src/features/reports/codeBasedJasper/composables/useCodeBasedJasper.d.ts +184 -0
  32. package/dist/src/features/reports/codeBasedJasper/mount.d.ts +1 -0
  33. package/dist/src/features/reports/codeBasedJasper/services/codeBasedJasperApi.d.ts +190 -0
  34. package/dist/src/features/reports/codeBasedJasper/store/codeBasedJasperStore.d.ts +503 -0
  35. package/dist/src/features/reports/codeBasedJasper/types/index.d.ts +54 -0
  36. package/dist/src/features/reports/codeBasedJasper/views/CodeBasedJasperReportView.vue.d.ts +32 -0
  37. package/dist/src/index.d.ts +51 -0
  38. package/dist/src/layouts/AdminLayout.vue.d.ts +2 -0
  39. package/dist/src/plugins/globalErrorHandling.d.ts +36 -0
  40. package/dist/src/plugins/vuetify.d.ts +86 -0
  41. package/dist/src/router/index.d.ts +16 -0
  42. package/dist/src/services/apiService.d.ts +33 -0
  43. package/dist/src/services/integration.d.ts +54 -0
  44. package/dist/src/types/api.d.ts +27 -0
  45. package/dist/src/types/backend.d.ts +27 -0
  46. package/dist/src/utils/helpers.d.ts +50 -0
  47. package/dist/src/utils/safeJson.d.ts +17 -0
  48. package/dist/src/views/HomeView.vue.d.ts +2 -0
  49. package/dist/src/views/NotFoundView.vue.d.ts +2 -0
  50. package/package.json +33 -22
  51. package/dist/.vite/manifest.json +0 -87
  52. package/dist/assets/AdminLayout.css +0 -1
  53. package/dist/assets/AdminLayout.js +0 -1
  54. package/dist/assets/CustomizationView.css +0 -1
  55. package/dist/assets/CustomizationView.js +0 -1
  56. package/dist/assets/HomeView.css +0 -1
  57. package/dist/assets/HomeView.js +0 -1
  58. package/dist/assets/NotFoundView.css +0 -1
  59. package/dist/assets/NotFoundView.js +0 -1
  60. package/dist/assets/ValidationView.css +0 -1
  61. package/dist/assets/ValidationView.js +0 -1
  62. package/dist/assets/_plugin-vue_export-helper.js +0 -1
  63. package/dist/assets/index.css +0 -1
  64. package/dist/assets/index.js +0 -2
  65. package/dist/index.html +0 -14
  66. package/index.js +0 -1
  67. package/src/App.vue +0 -68
  68. package/src/__tests__/App.spec.js +0 -26
  69. package/src/components/common/BaseButton.vue +0 -20
  70. package/src/components/common/BaseInput.vue +0 -27
  71. package/src/components/common/BaseModal.vue +0 -37
  72. package/src/composables/useAsync.js +0 -34
  73. package/src/composables/useClickOutside.js +0 -29
  74. package/src/composables/useForm.js +0 -89
  75. package/src/composables/useLocalStorage.js +0 -51
  76. package/src/composables/useWindowSize.js +0 -30
  77. package/src/config/app.config.js +0 -79
  78. package/src/features/admin/customization/composables/useCustomization.js +0 -19
  79. package/src/features/admin/customization/store/customizationStore.js +0 -30
  80. package/src/features/admin/customization/views/CustomizationView.vue +0 -17
  81. package/src/features/admin/validation/composables/useValidation.js +0 -18
  82. package/src/features/admin/validation/store/validationStore.js +0 -25
  83. package/src/features/admin/validation/views/ValidationView.vue +0 -17
  84. package/src/index.js +0 -53
  85. package/src/layouts/AdminLayout.vue +0 -146
  86. package/src/main.js +0 -41
  87. package/src/router/index.js +0 -57
  88. package/src/services/apiService.js +0 -72
  89. package/src/services/integration.js +0 -59
  90. package/src/services/phpIntegration.js +0 -1
  91. package/src/stores/counter.js +0 -12
  92. package/src/utils/helpers.js +0 -119
  93. package/src/utils/validators.js +0 -131
  94. package/src/views/HomeView.vue +0 -121
  95. package/src/views/NotFoundView.vue +0 -56
package/README.md CHANGED
@@ -1,17 +1,13 @@
1
1
  # DNA ATD Frontend
2
2
 
3
- ![Build and Publish](https://github.com/YOUR_USERNAME/dna-atd-frontend/workflows/Build%20and%20Publish%20to%20Private%20Repository/badge.svg)
4
- ![CI](https://github.com/YOUR_USERNAME/dna-atd-frontend/workflows/Continuous%20Integration/badge.svg)
5
- ![Release](https://github.com/YOUR_USERNAME/dna-atd-frontend/workflows/Release%20to%20Private%20Repository/badge.svg)
6
-
7
- Vue 3 application with feature-based architecture and backend integration.
3
+ Vue 3 library with feature-based architecture and host-app integration helpers.
8
4
 
9
5
  ---
10
6
 
11
7
  ## Quick Start
12
8
 
13
9
  ```bash
14
- npm install
10
+ npm ci
15
11
  npm run dev
16
12
  npm run build
17
13
  ```
@@ -30,7 +26,7 @@ src/
30
26
  ├── layouts/ # Layout components
31
27
  ├── router/ # Routes
32
28
  ├── services/ # API & Integration
33
- ├── utils/ # Helpers & Validators
29
+ ├── utils/ # Helpers
34
30
  └── views/ # Main views
35
31
  ```
36
32
 
@@ -38,32 +34,36 @@ src/
38
34
 
39
35
  ## Backend Integration
40
36
 
41
- **Pass data via HTML attributes:**
37
+ This library reads backend bootstrap data from a host-provided global object (default: `window.APP_DATA`) and exposes it via Vue Provide/Inject.
38
+
39
+ **Provide bootstrap data from PHP:**
42
40
 
43
41
  ```html
44
- <div id="app"
45
- data-config='{"api_url":"https://api.example.com"}'
46
- data-user='{"id":1,"name":"John"}'>
47
- </div>
48
- <script type="module" src="/dist/assets/index.js"></script>
42
+ <div id="app"></div>
43
+ <script>
44
+ window.APP_DATA = {
45
+ config: { api_url: 'https://api.example.com' },
46
+ user: { id: 1, name: 'John' },
47
+ }
48
+ </script>
49
49
  ```
50
50
 
51
- **Use in Vue:**
51
+ **Consume in Vue (Composition API):**
52
52
 
53
53
  ```javascript
54
- import integration from '@/services/integration'
54
+ import { useBackendContext } from '@illuminateeducation/dna-atd-frontend'
55
55
 
56
- const config = integration.getConfig()
57
- const user = integration.getUser()
56
+ const { config, user } = useBackendContext()
58
57
  ```
59
58
 
60
59
  ---
61
60
 
62
61
  ## Build Configuration
63
62
 
64
- - Single JS/CSS output
65
- - Relative paths
66
- - Manifest generation
63
+ This package is published as an **ESM-only** npm library.
64
+
65
+ - Build output: `dist/index.es.js` + `dist/index.d.ts`
66
+ - Library build: `npm run build`
67
67
 
68
68
  ---
69
69
 
@@ -74,4 +74,4 @@ const user = integration.getUser()
74
74
 
75
75
  ---
76
76
 
77
- **Built with Vue 3 + Vite + Pinia**
77
+ **Built with Vue 3 + Vite + Pinia + Vuetify**