diff --git a/package-lock.json b/package-lock.json
index 46a2e120c..b364f2218 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -10897,11 +10897,6 @@
"vue": "^2.5.21"
}
},
- "vue-slim-tabs": {
- "version": "0.4.0",
- "resolved": "https://registry.npmjs.org/vue-slim-tabs/-/vue-slim-tabs-0.4.0.tgz",
- "integrity": "sha512-19bwuKs2HICja0E039QmE7N7PMQcjdZXcpigmXlJTtTYGZy40C112tZF6q7bS18XNZGFcd/sP3jOJRGC80gVVw=="
- },
"vue-split-panel": {
"version": "1.0.4",
"resolved": "https://registry.npmjs.org/vue-split-panel/-/vue-split-panel-1.0.4.tgz",
@@ -10934,6 +10929,11 @@
"vue-pagination-2": "^3.0"
}
},
+ "vue-tabs-component": {
+ "version": "1.5.0",
+ "resolved": "https://registry.npmjs.org/vue-tabs-component/-/vue-tabs-component-1.5.0.tgz",
+ "integrity": "sha512-ld4p+hv49Fimw+zv/7GQqMhbjAHjpbWF3UiJtmMaSnvLKbsB1ysfs9dQH0SZ8NvdYpqqKay/VLIqR9yXgse1Sg=="
+ },
"vue-template-compiler": {
"version": "2.6.12",
"resolved": "https://registry.npmjs.org/vue-template-compiler/-/vue-template-compiler-2.6.12.tgz",
diff --git a/package.json b/package.json
index 6cbe19a76..50bb5479a 100644
--- a/package.json
+++ b/package.json
@@ -52,7 +52,6 @@
"vue-router": "^3.4.9",
"vue-search-select": "^2.7.0",
"vue-sidebar-menu": "^4.5.1",
- "vue-slim-tabs": "^0.4.0",
"vue-split-panel": "^1.0.4",
"vue-tables-2": "^2.1.46",
"vue-upload-component": "^2.8.20",
@@ -62,4 +61,4 @@
"vuetify": "^1.1.4",
"web-animations-js": "^2.3.2"
}
-}
+}
\ No newline at end of file
diff --git a/resources/assets/js/api/Cases.js b/resources/assets/js/api/Cases.js
index 0c6195c53..b4b244afe 100644
--- a/resources/assets/js/api/Cases.js
+++ b/resources/assets/js/api/Cases.js
@@ -45,6 +45,14 @@ export let cases = {
keys: {}
});
},
+ summary(data) {
+ return Api.get({
+ service: "UNASSIGNED_LIST",
+ params: {
+ },
+ keys: {}
+ });
+ },
inputdocuments(data) {
var params = new FormData();
params.append('appUid', data.APP_UID);
diff --git a/resources/assets/js/components/Tabs.vue b/resources/assets/js/components/Tabs.vue
deleted file mode 100644
index e2fee1c22..000000000
--- a/resources/assets/js/components/Tabs.vue
+++ /dev/null
@@ -1,38 +0,0 @@
-
-
-
- {{ item.title }}
-
-
-
-
-
-
\ No newline at end of file
diff --git a/resources/assets/js/components/home/caseDetail/PmCaseSummary.vue b/resources/assets/js/components/home/caseDetail/PmCaseSummary.vue
new file mode 100644
index 000000000..9a5662332
--- /dev/null
+++ b/resources/assets/js/components/home/caseDetail/PmCaseSummary.vue
@@ -0,0 +1,56 @@
+
+
+
+
+
{{ section.title }}
+
+
+ {{ item.label }} :
+ {{ item.value }}
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/resources/assets/js/components/home/caseDetail/Tabs.vue b/resources/assets/js/components/home/caseDetail/Tabs.vue
deleted file mode 100644
index d3329cbbb..000000000
--- a/resources/assets/js/components/home/caseDetail/Tabs.vue
+++ /dev/null
@@ -1,40 +0,0 @@
-
-
-
- {{ item.title }}
-
-
-
-
-
-
\ No newline at end of file
diff --git a/resources/assets/js/components/tabs/Tab.vue b/resources/assets/js/components/tabs/Tab.vue
new file mode 100644
index 000000000..5adedfabf
--- /dev/null
+++ b/resources/assets/js/components/tabs/Tab.vue
@@ -0,0 +1,41 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/resources/assets/js/components/tabs/Tabs.vue b/resources/assets/js/components/tabs/Tabs.vue
new file mode 100644
index 000000000..bb78119b1
--- /dev/null
+++ b/resources/assets/js/components/tabs/Tabs.vue
@@ -0,0 +1,160 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/resources/assets/js/components/tabs/expiringStorage.js b/resources/assets/js/components/tabs/expiringStorage.js
new file mode 100644
index 000000000..36d528c6f
--- /dev/null
+++ b/resources/assets/js/components/tabs/expiringStorage.js
@@ -0,0 +1,30 @@
+class ExpiringStorage {
+ get(key) {
+ const cached = JSON.parse(
+ localStorage.getItem(key)
+ );
+
+ if (!cached) {
+ return null;
+ }
+
+ const expires = new Date(cached.expires);
+
+ if (expires < new Date()) {
+ localStorage.removeItem(key);
+ return null;
+ }
+
+ return cached.value;
+ }
+
+ set(key, value, lifeTimeInMinutes) {
+ const currentTime = new Date().getTime();
+
+ const expires = new Date(currentTime + lifeTimeInMinutes * 60000);
+
+ localStorage.setItem(key, JSON.stringify({ value, expires }));
+ }
+}
+
+export default new ExpiringStorage();
\ No newline at end of file
diff --git a/resources/assets/js/home/CaseDetail.vue b/resources/assets/js/home/CaseDetail.vue
index 994465c5f..dad04f0c5 100644
--- a/resources/assets/js/home/CaseDetail.vue
+++ b/resources/assets/js/home/CaseDetail.vue
@@ -40,7 +40,7 @@
-
+
diff --git a/resources/assets/js/home/TabsCaseDetail.vue b/resources/assets/js/home/TabsCaseDetail.vue
new file mode 100644
index 000000000..4612412cf
--- /dev/null
+++ b/resources/assets/js/home/TabsCaseDetail.vue
@@ -0,0 +1,152 @@
+
+
+
+
+
+
+
+ Second tab
+ This is the content of the second tab.
+
+
+ Disabled tab
+ This content will be unavailable while :is-disabled prop set to true
+
+
+ Custom fragment
+ The hash that is appended to the url can be customized.
+
+
+ Prefix and suffix
+ A prefix and a suffix can be added — HTML allowed.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+