@platforma-sdk/ui-vue 1.42.24 → 1.42.26

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 (27) hide show
  1. package/.turbo/turbo-build.log +13 -13
  2. package/.turbo/turbo-type-check.log +1 -1
  3. package/CHANGELOG.md +6 -0
  4. package/dist/plugins/Monetization/LimitCard.vue2.js +59 -46
  5. package/dist/plugins/Monetization/LimitCard.vue2.js.map +1 -1
  6. package/dist/plugins/Monetization/LimitCard.vue3.js +21 -17
  7. package/dist/plugins/Monetization/LimitCard.vue3.js.map +1 -1
  8. package/dist/plugins/Monetization/MonetizationSidebar.vue.js +39 -39
  9. package/dist/plugins/Monetization/MonetizationSidebar.vue.js.map +1 -1
  10. package/dist/plugins/Monetization/RunStatus.vue.d.ts +1 -0
  11. package/dist/plugins/Monetization/RunStatus.vue2.js +17 -20
  12. package/dist/plugins/Monetization/RunStatus.vue2.js.map +1 -1
  13. package/dist/plugins/Monetization/RunStatus.vue3.js +15 -13
  14. package/dist/plugins/Monetization/RunStatus.vue3.js.map +1 -1
  15. package/dist/plugins/Monetization/UserCabinetCard.vue.d.ts +1 -0
  16. package/dist/plugins/Monetization/UserCabinetCard.vue2.js +42 -34
  17. package/dist/plugins/Monetization/UserCabinetCard.vue2.js.map +1 -1
  18. package/dist/plugins/Monetization/UserCabinetCard.vue3.js +17 -15
  19. package/dist/plugins/Monetization/UserCabinetCard.vue3.js.map +1 -1
  20. package/dist/plugins/Monetization/useInfo.js +5 -5
  21. package/dist/plugins/Monetization/useInfo.js.map +1 -1
  22. package/package.json +6 -6
  23. package/src/plugins/Monetization/LimitCard.vue +94 -40
  24. package/src/plugins/Monetization/MonetizationSidebar.vue +3 -5
  25. package/src/plugins/Monetization/RunStatus.vue +11 -15
  26. package/src/plugins/Monetization/UserCabinetCard.vue +23 -1
  27. package/src/plugins/Monetization/useInfo.ts +1 -1
@@ -1,21 +1,17 @@
1
1
  <script setup lang="ts">
2
2
  import { computed } from 'vue';
3
- import { PlIcon24, PlTooltip } from '@milaboratories/uikit';
4
3
 
5
4
  const props = defineProps<{
6
5
  canRun: boolean | undefined;
7
6
  statusText: string | undefined;
7
+ isLoading?: boolean;
8
8
  }>();
9
9
 
10
- const tooltipText = computed(() => {
11
- if (props.canRun) {
12
- return 'Can run';
10
+ const badgeText = computed(() => {
11
+ if (props.isLoading) {
12
+ return 'Updating...';
13
13
  }
14
14
 
15
- return 'Cannot run: check your monetization settings';
16
- });
17
-
18
- const badgeText = computed(() => {
19
15
  if (props.canRun) {
20
16
  return 'Ready to run';
21
17
  }
@@ -26,7 +22,7 @@ const badgeText = computed(() => {
26
22
 
27
23
  <template>
28
24
  <div>
29
- <div :class="[{ [$style['can-run']]: canRun }, $style.container]">
25
+ <div :class="[{ [$style['can-run']]: canRun, [$style.loading]: isLoading }, $style.container]">
30
26
  <div :class="$style.badge">
31
27
  <i :class="$style.blob">
32
28
  <span>
@@ -35,12 +31,6 @@ const badgeText = computed(() => {
35
31
  </i>
36
32
  <span>{{ badgeText }}</span>
37
33
  </div>
38
- <PlTooltip v-if="false">
39
- <template #tooltip>
40
- {{ tooltipText }}
41
- </template>
42
- <PlIcon24 name="info" />
43
- </PlTooltip>
44
34
  <slot />
45
35
  </div>
46
36
  <div v-if="statusText" :class="$style.statusText">{{ statusText }}</div>
@@ -54,10 +44,16 @@ const badgeText = computed(() => {
54
44
  gap: 8px;
55
45
  --blob-color: #FF5C5C;
56
46
  --badge-background: rgba(255, 92, 92, 0.12);
47
+
57
48
  &.can-run {
58
49
  --blob-color: #49CC49;
59
50
  --badge-background: rgba(99, 224, 36, 0.12);
60
51
  }
52
+
53
+ &.loading {
54
+ --blob-color: #FFAD0A;
55
+ --badge-background: rgba(255, 173, 10, 0.12);
56
+ }
61
57
  }
62
58
 
63
59
  .statusText {
@@ -4,6 +4,7 @@ import { PlTooltip, PlMaskIcon24 } from '@milaboratories/uikit';
4
4
 
5
5
  const props = defineProps<{
6
6
  userCabinetUrl: string;
7
+ email?: string;
7
8
  }>();
8
9
 
9
10
  const copiedMessage = ref('');
@@ -41,6 +42,10 @@ const copyToClipboard = () => {
41
42
  <template #tooltip>{{ copiedMessage ? copiedMessage : 'Copy' }}</template>
42
43
  </PlTooltip>
43
44
  </div>
45
+ <div v-if="email" :class="$style.email">
46
+ <span>License owner:</span>
47
+ <span>{{ email }}</span>
48
+ </div>
44
49
  </div>
45
50
  <div :class="$style.hint">
46
51
  * Copy and paste the link into your browser
@@ -57,6 +62,22 @@ const copyToClipboard = () => {
57
62
  line-height: 16px;
58
63
  }
59
64
 
65
+ .email {
66
+ display: flex;
67
+ align-items: center;
68
+ justify-content: space-between;
69
+ font-size: 12px;
70
+ color: var(--txt-03);
71
+
72
+ > span:last-child {
73
+ max-width: 200px;
74
+ text-overflow: ellipsis;
75
+ display: block;
76
+ white-space: nowrap;
77
+ overflow: hidden;
78
+ }
79
+ }
80
+
60
81
  .copyIcon {
61
82
  cursor: pointer;
62
83
  }
@@ -66,8 +87,9 @@ const copyToClipboard = () => {
66
87
  flex-direction: column;
67
88
  gap: 8px;
68
89
  padding: 12px;
69
- background-color: #f0f0f0;
90
+ background-color: #F7F8FA;
70
91
  border-radius: 6px;
92
+ border: 1px solid #E1E3EB;
71
93
  }
72
94
 
73
95
  .urlLabel {
@@ -38,7 +38,7 @@ export function useInfo() {
38
38
 
39
39
  const canRun = computed(() => !!result.value?.canRun);
40
40
 
41
- const status = computed(() => currentInfo.value ? result.value?.status : 'awaiting');
41
+ const status = computed(() => currentInfo.value ? result.value?.status : '');
42
42
 
43
43
  const customerEmail = computed(() => result.value?.customerEmail);
44
44