diff --git a/document-service/documents-ui/package.json b/document-service/documents-ui/package.json index d6e4182b..17f6b69a 100644 --- a/document-service/documents-ui/package.json +++ b/document-service/documents-ui/package.json @@ -1,6 +1,6 @@ { "name": "bcros-documents-ui", - "version": "0.0.6", + "version": "0.0.7", "private": true, "type": "module", "scripts": { @@ -21,6 +21,7 @@ "@nuxt/ui": "^2.16.0", "@nuxtjs/i18n": "^8.3.1", "@pinia/nuxt": "^0.5.1", + "axios": "^1.7.5", "date-fns": "^3.6.0", "http-status-codes": "^2.1.4", "keycloak-js": "^24.0.4", diff --git a/document-service/documents-ui/pnpm-lock.yaml b/document-service/documents-ui/pnpm-lock.yaml index c8a17e05..671ba149 100644 --- a/document-service/documents-ui/pnpm-lock.yaml +++ b/document-service/documents-ui/pnpm-lock.yaml @@ -22,13 +22,16 @@ importers: version: 0.3.13(eslint@9.7.0)(magicast@0.3.4)(rollup@4.19.0)(typescript@5.5.4)(vite@5.3.4(@types/node@20.14.12)(sass@1.77.8)(terser@5.31.3)) '@nuxt/ui': specifier: ^2.16.0 - version: 2.17.0(magicast@0.3.4)(rollup@4.19.0)(vite@5.3.4(@types/node@20.14.12)(sass@1.77.8)(terser@5.31.3))(vue@3.4.33(typescript@5.5.4)) + version: 2.17.0(axios@1.7.5)(magicast@0.3.4)(rollup@4.19.0)(vite@5.3.4(@types/node@20.14.12)(sass@1.77.8)(terser@5.31.3))(vue@3.4.33(typescript@5.5.4)) '@nuxtjs/i18n': specifier: ^8.3.1 version: 8.3.1(magicast@0.3.4)(rollup@4.19.0)(vue@3.4.33(typescript@5.5.4)) '@pinia/nuxt': specifier: ^0.5.1 version: 0.5.1(magicast@0.3.4)(rollup@4.19.0)(typescript@5.5.4)(vue@3.4.33(typescript@5.5.4)) + axios: + specifier: ^1.7.5 + version: 1.7.5 date-fns: specifier: ^3.6.0 version: 3.6.0 @@ -1868,6 +1871,9 @@ packages: async@3.2.5: resolution: {integrity: sha512-baNZyqaaLhyLVKm/DlvdW051MSgO6b8eVfIezl9E5PqWxFgzLm/wQntEW4zOytVburDEr0JlALEpdOFwvErLsg==} + asynckit@0.4.0: + resolution: {integrity: sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==} + at-least-node@1.0.0: resolution: {integrity: sha512-+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg==} engines: {node: '>= 4.0.0'} @@ -1883,6 +1889,9 @@ packages: resolution: {integrity: sha512-wvUjBtSGN7+7SjNpq/9M2Tg350UZD3q62IFZLbRAR1bSMlCo1ZaeW+BJ+D090e4hIIZLBcTDWe4Mh4jvUDajzQ==} engines: {node: '>= 0.4'} + axios@1.7.5: + resolution: {integrity: sha512-fZu86yCo+svH3uqJ/yTdQ0QHpQu5oL+/QE+QPSv6BZSkDAoky9vytxp7u5qk83OJFS3kEBcesWni9WTZAv3tSw==} + b4a@1.6.6: resolution: {integrity: sha512-5Tk1HLk6b6ctmjIkAcU/Ujv/1WqiDl0F0JdRCR80VsOcUlHcu7pWeWRlOqQLHfDEsVx9YH/aif5AG4ehoCtTmg==} @@ -2069,6 +2078,10 @@ packages: colord@2.9.3: resolution: {integrity: sha512-jeC1axXpnb0/2nn/Y1LPuLdgXBLH7aDcHu4KEKfqw3CUhX7ZpfBSlPKyqXE6btIgEzfWtrX3/tyBCaCvXvMkOw==} + combined-stream@1.0.8: + resolution: {integrity: sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==} + engines: {node: '>= 0.8'} + commander@10.0.1: resolution: {integrity: sha512-y4Mg2tXshplEbSGzx7amzPwKKOCGuoSRP/CjEdwwk0FOGlUbq6lKuoyDZTNZkmxHdJtp54hdfY/JUrdL7Xfdug==} engines: {node: '>=14'} @@ -2337,6 +2350,10 @@ packages: defu@6.1.4: resolution: {integrity: sha512-mEQCMmwJu317oSz8CwdIOdwf3xMif1ttiM8LTufzc3g6kR+9Pe236twL8j3IYT1F7GfRgGcW6MWxzZjLIkuHIg==} + delayed-stream@1.0.0: + resolution: {integrity: sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==} + engines: {node: '>=0.4.0'} + delegates@1.0.0: resolution: {integrity: sha512-bd2L678uiWATM6m5Z1VzNCErI3jiGzt6HGY8OVICs40JQq/HALfbyNJmp0UDakEY4pMMaN0Ly5om/B1VI/+xfQ==} @@ -2822,6 +2839,15 @@ packages: flatted@3.3.1: resolution: {integrity: sha512-X8cqMLLie7KsNUDSdzeN8FYK9rEt4Dt67OsG/DNGnYTSDBG4uFAJFBnUeiV+zCVAvwFy56IjM9sH51jVaEhNxw==} + follow-redirects@1.15.6: + resolution: {integrity: sha512-wWN62YITEaOpSK584EZXJafH1AGpO8RVgElfkuXbTOrPX4fIfOyEpW/CsiNd8JdYrAoOvafRTOEnvsO++qCqFA==} + engines: {node: '>=4.0'} + peerDependencies: + debug: '*' + peerDependenciesMeta: + debug: + optional: true + for-each@0.3.3: resolution: {integrity: sha512-jqYfLp7mo9vIyQf8ykW2v7A+2N4QjeCeI5+Dz9XraiO1ign81wjiH7Fb9vSOWvQfNtmSa4H2RoQTrrXivdUZmw==} @@ -2829,6 +2855,10 @@ packages: resolution: {integrity: sha512-PXUUyLqrR2XCWICfv6ukppP96sdFwWbNEnfEMt7jNsISjMsvaLNinAHNDYyvkyU+SZG2BTSbT5NjG+vZslfGTA==} engines: {node: '>=14'} + form-data@4.0.0: + resolution: {integrity: sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==} + engines: {node: '>= 6'} + fraction.js@4.3.7: resolution: {integrity: sha512-ZsDfxO51wGAXREY55a7la9LScWpwv9RxIrYABrlvOFBlH/ShPnrtsXeuUIfXKKOVicNxQ+o8JTbJvjS4M89yew==} @@ -4262,6 +4292,9 @@ packages: protocols@2.0.1: resolution: {integrity: sha512-/XJ368cyBJ7fzLMwLKv1e4vLxOju2MNAIokcr7meSaNcVbWz/CPcW22cP04mwxOErdA5mwjA8Q6w/cdAQxVn7Q==} + proxy-from-env@1.1.0: + resolution: {integrity: sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==} + punycode@2.3.1: resolution: {integrity: sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==} engines: {node: '>=6'} @@ -6314,7 +6347,7 @@ snapshots: - rollup - supports-color - '@nuxt/ui@2.17.0(magicast@0.3.4)(rollup@4.19.0)(vite@5.3.4(@types/node@20.14.12)(sass@1.77.8)(terser@5.31.3))(vue@3.4.33(typescript@5.5.4))': + '@nuxt/ui@2.17.0(axios@1.7.5)(magicast@0.3.4)(rollup@4.19.0)(vite@5.3.4(@types/node@20.14.12)(sass@1.77.8)(terser@5.31.3))(vue@3.4.33(typescript@5.5.4))': dependencies: '@egoist/tailwindcss-icons': 1.8.1(tailwindcss@3.4.6) '@headlessui/tailwindcss': 0.2.1(tailwindcss@3.4.6) @@ -6329,7 +6362,7 @@ snapshots: '@tailwindcss/forms': 0.5.7(tailwindcss@3.4.6) '@tailwindcss/typography': 0.5.13(tailwindcss@3.4.6) '@vueuse/core': 10.11.0(vue@3.4.33(typescript@5.5.4)) - '@vueuse/integrations': 10.11.0(fuse.js@6.6.2)(vue@3.4.33(typescript@5.5.4)) + '@vueuse/integrations': 10.11.0(axios@1.7.5)(fuse.js@6.6.2)(vue@3.4.33(typescript@5.5.4)) '@vueuse/math': 10.11.0(vue@3.4.33(typescript@5.5.4)) defu: 6.1.4 fuse.js: 6.6.2 @@ -7232,12 +7265,13 @@ snapshots: - '@vue/composition-api' - vue - '@vueuse/integrations@10.11.0(fuse.js@6.6.2)(vue@3.4.33(typescript@5.5.4))': + '@vueuse/integrations@10.11.0(axios@1.7.5)(fuse.js@6.6.2)(vue@3.4.33(typescript@5.5.4))': dependencies: '@vueuse/core': 10.11.0(vue@3.4.33(typescript@5.5.4)) '@vueuse/shared': 10.11.0(vue@3.4.33(typescript@5.5.4)) vue-demi: 0.14.9(vue@3.4.33(typescript@5.5.4)) optionalDependencies: + axios: 1.7.5 fuse.js: 6.6.2 transitivePeerDependencies: - '@vue/composition-api' @@ -7437,6 +7471,8 @@ snapshots: async@3.2.5: {} + asynckit@0.4.0: {} + at-least-node@1.0.0: {} autoprefixer@10.4.19(postcss@8.4.39): @@ -7453,6 +7489,14 @@ snapshots: dependencies: possible-typed-array-names: 1.0.0 + axios@1.7.5: + dependencies: + follow-redirects: 1.15.6 + form-data: 4.0.0 + proxy-from-env: 1.1.0 + transitivePeerDependencies: + - debug + b4a@1.6.6: {} balanced-match@1.0.2: {} @@ -7650,6 +7694,10 @@ snapshots: colord@2.9.3: {} + combined-stream@1.0.8: + dependencies: + delayed-stream: 1.0.0 + commander@10.0.1: {} commander@2.20.3: {} @@ -7888,6 +7936,8 @@ snapshots: defu@6.1.4: {} + delayed-stream@1.0.0: {} + delegates@1.0.0: {} denque@2.1.0: {} @@ -8627,6 +8677,8 @@ snapshots: flatted@3.3.1: {} + follow-redirects@1.15.6: {} + for-each@0.3.3: dependencies: is-callable: 1.2.7 @@ -8636,6 +8688,12 @@ snapshots: cross-spawn: 7.0.3 signal-exit: 4.1.0 + form-data@4.0.0: + dependencies: + asynckit: 0.4.0 + combined-stream: 1.0.8 + mime-types: 2.1.35 + fraction.js@4.3.7: {} fresh@0.5.2: {} @@ -10210,6 +10268,8 @@ snapshots: protocols@2.0.1: {} + proxy-from-env@1.1.0: {} + punycode@2.3.1: {} queue-microtask@1.2.3: {} diff --git a/document-service/documents-ui/src/app/router.options.ts b/document-service/documents-ui/src/app/router.options.ts index 0c7665d4..4c64cc95 100644 --- a/document-service/documents-ui/src/app/router.options.ts +++ b/document-service/documents-ui/src/app/router.options.ts @@ -28,7 +28,7 @@ export default > { }, { name: RouteNameE.DOCUMENT_RECORDS, - path: '/document-records', + path: '/document-records/:identifier', component: () => import('~/pages/DocumentRecords.vue').then(r => r.default || r), meta: { layout: 'default', diff --git a/document-service/documents-ui/src/components/DatePicker.vue b/document-service/documents-ui/src/components/DatePicker.vue index b67cde32..8d2d236f 100644 --- a/document-service/documents-ui/src/components/DatePicker.vue +++ b/document-service/documents-ui/src/components/DatePicker.vue @@ -6,7 +6,7 @@ import type { PropType } from 'vue' const props = defineProps({ modelValue: { - type: [String, Date] as PropType, + type: [String, Date, Object] as PropType, default: null }, isRangedPicker: { diff --git a/document-service/documents-ui/src/components/InputDatePicker/index.vue b/document-service/documents-ui/src/components/InputDatePicker/index.vue index 07239496..28a26558 100644 --- a/document-service/documents-ui/src/components/InputDatePicker/index.vue +++ b/document-service/documents-ui/src/components/InputDatePicker/index.vue @@ -1,13 +1,13 @@ + + \ No newline at end of file diff --git a/document-service/documents-ui/src/components/documentReviewModal/index.vue b/document-service/documents-ui/src/components/documentReviewModal/index.vue index 206d4378..9f0a0214 100644 --- a/document-service/documents-ui/src/components/documentReviewModal/index.vue +++ b/document-service/documents-ui/src/components/documentReviewModal/index.vue @@ -1,6 +1,6 @@