@illuminateeducation/dna-atd-frontend 1.0.1 → 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.
- package/README.md +20 -20
- package/dist/assets/dna-atd-frontend.css +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +47350 -0
- package/dist/index.es.js.map +1 -0
- package/dist/src/App.vue.d.ts +2 -0
- package/dist/src/components/common/BaseButton.vue.d.ts +16 -0
- package/dist/src/components/common/BaseInput.vue.d.ts +8 -0
- package/dist/src/components/common/BaseModal.vue.d.ts +19 -0
- package/dist/src/components/common/ErrorBoundary.vue.d.ts +37 -0
- package/dist/src/composables/useAsync.d.ts +24 -0
- package/dist/src/composables/useClickOutside.d.ts +7 -0
- package/dist/src/composables/useForm.d.ts +38 -0
- package/dist/src/composables/useLocalStorage.d.ts +24 -0
- package/dist/src/composables/useWindowSize.d.ts +20 -0
- package/dist/src/config/app.config.d.ts +67 -0
- package/dist/src/context/backendContext.d.ts +9 -0
- package/dist/src/features/admin/customization/composables/useCustomization.d.ts +19 -0
- package/dist/src/features/admin/customization/store/customizationStore.d.ts +30 -0
- package/dist/src/features/admin/customization/views/CustomizationView.vue.d.ts +2 -0
- package/dist/src/features/admin/validation/composables/useValidation.d.ts +18 -0
- package/dist/src/features/admin/validation/store/validationStore.d.ts +27 -0
- package/dist/src/features/admin/validation/views/ValidationView.vue.d.ts +2 -0
- package/dist/src/features/reports/codeBasedJasper/components/AssessmentFinder.vue.d.ts +618 -0
- package/dist/src/features/reports/codeBasedJasper/components/DownloadButtons.vue.d.ts +13 -0
- package/dist/src/features/reports/codeBasedJasper/components/FavoritesWidget.vue.d.ts +10 -0
- package/dist/src/features/reports/codeBasedJasper/components/MultipleAssessmentIdsField.vue.d.ts +18 -0
- package/dist/src/features/reports/codeBasedJasper/components/ReportFilters.vue.d.ts +18 -0
- package/dist/src/features/reports/codeBasedJasper/components/ReportPagination.vue.d.ts +11 -0
- package/dist/src/features/reports/codeBasedJasper/components/ReportViewer.vue.d.ts +16 -0
- package/dist/src/features/reports/codeBasedJasper/composables/useCodeBasedJasper.d.ts +184 -0
- package/dist/src/features/reports/codeBasedJasper/mount.d.ts +1 -0
- package/dist/src/features/reports/codeBasedJasper/services/codeBasedJasperApi.d.ts +190 -0
- package/dist/src/features/reports/codeBasedJasper/store/codeBasedJasperStore.d.ts +503 -0
- package/dist/src/features/reports/codeBasedJasper/types/index.d.ts +54 -0
- package/dist/src/features/reports/codeBasedJasper/views/CodeBasedJasperReportView.vue.d.ts +32 -0
- package/dist/src/index.d.ts +51 -0
- package/dist/src/layouts/AdminLayout.vue.d.ts +2 -0
- package/dist/src/plugins/globalErrorHandling.d.ts +36 -0
- package/dist/src/plugins/vuetify.d.ts +86 -0
- package/dist/src/router/index.d.ts +16 -0
- package/dist/src/services/apiService.d.ts +33 -0
- package/dist/src/services/integration.d.ts +54 -0
- package/dist/src/types/api.d.ts +27 -0
- package/dist/src/types/backend.d.ts +27 -0
- package/dist/src/utils/helpers.d.ts +50 -0
- package/dist/src/utils/safeJson.d.ts +17 -0
- package/dist/src/views/HomeView.vue.d.ts +2 -0
- package/dist/src/views/NotFoundView.vue.d.ts +2 -0
- package/package.json +32 -9
- package/dist/.vite/manifest.json +0 -80
- package/dist/assets/AdminLayout.css +0 -1
- package/dist/assets/AdminLayout.js +0 -1
- package/dist/assets/CustomizationView.css +0 -1
- package/dist/assets/CustomizationView.js +0 -1
- package/dist/assets/HomeView.js +0 -1
- package/dist/assets/NotFoundView.css +0 -1
- package/dist/assets/NotFoundView.js +0 -1
- package/dist/assets/ValidationView.css +0 -1
- package/dist/assets/ValidationView.js +0 -1
- package/dist/assets/_plugin-vue_export-helper.js +0 -1
- package/dist/assets/index.css +0 -1
- package/dist/assets/index.js +0 -2
- package/dist/index.html +0 -14
- package/index.js +0 -1
package/README.md
CHANGED
|
@@ -1,17 +1,13 @@
|
|
|
1
1
|
# DNA ATD Frontend
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-

|
|
5
|
-

|
|
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
|
|
10
|
+
npm ci
|
|
15
11
|
npm run dev
|
|
16
12
|
npm run build
|
|
17
13
|
```
|
|
@@ -38,32 +34,36 @@ src/
|
|
|
38
34
|
|
|
39
35
|
## Backend Integration
|
|
40
36
|
|
|
41
|
-
|
|
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
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
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
|
-
**
|
|
51
|
+
**Consume in Vue (Composition API):**
|
|
52
52
|
|
|
53
53
|
```javascript
|
|
54
|
-
import
|
|
54
|
+
import { useBackendContext } from '@illuminateeducation/dna-atd-frontend'
|
|
55
55
|
|
|
56
|
-
const config =
|
|
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
|
-
-
|
|
65
|
-
|
|
66
|
-
-
|
|
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**
|