bfg-common 1.5.875 → 1.5.877

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.
@@ -1,66 +1,17 @@
1
1
  <template>
2
- <div class="ui-no-data-provided">
3
- <div class="ui-no-data-provided-center">
4
- <div class="ui-no-data-provided-icon">
5
- <ui-icon name="no-data-provided" width="92" height="92" />
6
- </div>
7
- <span class="ui-no-data-provided-title">
8
- {{ localization.common.noDataProvided }}
9
- </span>
10
- <span class="ui-no-data-provided-subtitle">
11
- {{ localization.common.noDataProvidedMessage }}
12
- </span>
13
- </div>
14
- </div>
2
+ <component :is="currentComponent" />
15
3
  </template>
16
4
 
17
5
  <script setup lang="ts">
18
- import type { UI_I_Localization } from '~/lib/models/interfaces'
6
+ const { $store }: any = useNuxtApp()
19
7
 
20
- const localization = computed<UI_I_Localization>(() => useLocal())
21
- </script>
22
-
23
- <style scoped lang="scss">
24
- .ui-no-data-provided {
25
- width: 100%;
26
- height: 100%;
27
- position: relative;
28
-
29
- .ui-no-data-provided-center {
30
- position: absolute;
31
-
32
- top: 50%;
33
- left: 50%;
34
- transform: translate(-50%, -50%);
8
+ const isNewView = computed<boolean>(() => $store.getters['main/getIsNewView'])
35
9
 
36
- display: flex;
37
- flex-direction: column;
38
- align-items: center;
39
-
40
- .ui-no-data-provided-icon {
41
- width: 92px;
42
- height: 92px;
43
- }
44
-
45
- .ui-no-data-provided-title {
46
- font-weight: 500;
47
- font-size: 16px;
48
- line-height: 19px;
49
- letter-spacing: 0;
50
- text-align: center;
51
- margin: 16px 0 6px;
52
- color: var(--title-form-first-color);
53
- }
10
+ const currentComponent = computed(() =>
11
+ isNewView.value
12
+ ? defineAsyncComponent(() => import('./NoDataProvidedNew.vue'))
13
+ : defineAsyncComponent(() => import('./NoDataProvidedOld.vue'))
14
+ )
15
+ </script>
54
16
 
55
- .ui-no-data-provided-subtitle {
56
- font-weight: 400;
57
- font-size: 13px;
58
- line-height: 16px;
59
- letter-spacing: 0;
60
- text-align: center;
61
- vertical-align: middle;
62
- color: var(--form-icon-color);
63
- }
64
- }
65
- }
66
- </style>
17
+ <style scoped lang="scss"></style>
@@ -0,0 +1,66 @@
1
+ <template>
2
+ <div class="ui-no-data-provided">
3
+ <div class="ui-no-data-provided-center">
4
+ <div class="ui-no-data-provided-icon">
5
+ <ui-icon name="no-data-provided" width="92" height="92" />
6
+ </div>
7
+ <span class="ui-no-data-provided-title">
8
+ {{ localization.common.noDataProvided }}
9
+ </span>
10
+ <span class="ui-no-data-provided-subtitle">
11
+ {{ localization.common.noDataProvidedMessage }}
12
+ </span>
13
+ </div>
14
+ </div>
15
+ </template>
16
+
17
+ <script setup lang="ts">
18
+ import type { UI_I_Localization } from '~/lib/models/interfaces'
19
+
20
+ const localization = computed<UI_I_Localization>(() => useLocal())
21
+ </script>
22
+
23
+ <style scoped lang="scss">
24
+ .ui-no-data-provided {
25
+ width: 100%;
26
+ height: 100%;
27
+ position: relative;
28
+
29
+ .ui-no-data-provided-center {
30
+ position: absolute;
31
+
32
+ top: 50%;
33
+ left: 50%;
34
+ transform: translate(-50%, -50%);
35
+
36
+ display: flex;
37
+ flex-direction: column;
38
+ align-items: center;
39
+
40
+ .ui-no-data-provided-icon {
41
+ width: 92px;
42
+ height: 92px;
43
+ }
44
+
45
+ .ui-no-data-provided-title {
46
+ font-weight: 500;
47
+ font-size: 16px;
48
+ line-height: 19px;
49
+ letter-spacing: 0;
50
+ text-align: center;
51
+ margin: 16px 0 6px;
52
+ color: var(--title-form-first-color);
53
+ }
54
+
55
+ .ui-no-data-provided-subtitle {
56
+ font-weight: 400;
57
+ font-size: 13px;
58
+ line-height: 16px;
59
+ letter-spacing: 0;
60
+ text-align: center;
61
+ vertical-align: middle;
62
+ color: var(--form-icon-color);
63
+ }
64
+ }
65
+ }
66
+ </style>
@@ -0,0 +1,18 @@
1
+ <template>
2
+ <div class="summary__empty-block flex items-center justify-center">
3
+ {{ localization.common.noDataProvided }}
4
+ </div>
5
+ </template>
6
+
7
+ <script setup lang="ts">
8
+ import type { UI_I_Localization } from '~/lib/models/interfaces'
9
+
10
+ const localization = computed<UI_I_Localization>(() => useLocal())
11
+ </script>
12
+
13
+ <style scoped lang="scss">
14
+ .summary__empty-block {
15
+ height: inherit;
16
+ font-size: 25px;
17
+ }
18
+ </style>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bfg-common",
3
3
  "private": false,
4
- "version": "1.5.875",
4
+ "version": "1.5.877",
5
5
  "scripts": {
6
6
  "build": "nuxt build",
7
7
  "dev": "nuxt dev --port=3002",