@webitel/ui-sdk 24.12.130 → 24.12.132
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/CHANGELOG.md +6 -0
- package/dist/ui-sdk.css +1 -1
- package/dist/ui-sdk.js +2918 -2918
- package/dist/ui-sdk.umd.cjs +15 -15
- package/package.json +1 -1
- package/src/components/wt-indicator/_variables.scss +2 -2
- package/src/composables/useCard/useCardComponent.js +9 -7
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
--wt-indicator-transfer-color: var(--transfer-color);
|
|
16
16
|
--wt-indicator-break-out-color: var(--warning-color);
|
|
17
17
|
--wt-indicator-info-color: var(--info-color);
|
|
18
|
-
--wt-indicator-
|
|
19
|
-
--wt-indicator-
|
|
18
|
+
--wt-indicator-final-status-color: var(--green-accent-4);
|
|
19
|
+
--wt-indicator-initial-status-color: var(--red-accent-2);
|
|
20
20
|
--wt-indicator-other-status-color: var(--orange-accent-2);
|
|
21
21
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { computed, onMounted, onUnmounted } from 'vue';
|
|
1
|
+
import { computed, onMounted, onUnmounted, ref } from 'vue';
|
|
2
2
|
import { useI18n } from 'vue-i18n';
|
|
3
3
|
import { useRoute, useRouter } from 'vue-router';
|
|
4
4
|
|
|
@@ -23,6 +23,8 @@ export const useCardComponent = (params) => {
|
|
|
23
23
|
|
|
24
24
|
const { name: pathName } = useCachedItemInstanceName(itemInstance);
|
|
25
25
|
|
|
26
|
+
const isLoading = ref(true);
|
|
27
|
+
|
|
26
28
|
const isNew = computed(() => route.params.id === 'new');
|
|
27
29
|
const disabledSave = computed(() => {
|
|
28
30
|
return invalid?.value || !itemInstance.value._dirty;
|
|
@@ -57,26 +59,26 @@ export const useCardComponent = (params) => {
|
|
|
57
59
|
|
|
58
60
|
async function initializeCard() {
|
|
59
61
|
try {
|
|
62
|
+
isLoading.value = true;
|
|
60
63
|
const { id } = route.params;
|
|
61
64
|
await setId(id);
|
|
62
65
|
await loadItem();
|
|
63
|
-
}
|
|
64
|
-
|
|
66
|
+
} finally {
|
|
67
|
+
isLoading.value = false;
|
|
65
68
|
}
|
|
66
69
|
}
|
|
67
70
|
|
|
68
71
|
function initialize() {
|
|
69
|
-
onMounted(() => {
|
|
70
|
-
initializeCard();
|
|
71
|
-
});
|
|
72
|
-
|
|
73
72
|
onUnmounted(() => {
|
|
74
73
|
resetState();
|
|
75
74
|
});
|
|
75
|
+
|
|
76
|
+
return initializeCard();
|
|
76
77
|
}
|
|
77
78
|
|
|
78
79
|
return {
|
|
79
80
|
id,
|
|
81
|
+
isLoading,
|
|
80
82
|
itemInstance,
|
|
81
83
|
isNew,
|
|
82
84
|
pathName,
|