@platforma-sdk/ui-vue 1.10.13 → 1.10.17

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platforma-sdk/ui-vue",
3
- "version": "1.10.13",
3
+ "version": "1.10.17",
4
4
  "type": "module",
5
5
  "main": "dist/lib.umd.cjs",
6
6
  "module": "dist/lib.js",
@@ -37,8 +37,8 @@
37
37
  "@ag-grid-community/theming": "^32.3.3",
38
38
  "@ag-grid-enterprise/side-bar": "^32.3.3",
39
39
  "@ag-grid-enterprise/column-tool-panel": "^32.3.3",
40
- "@milaboratories/uikit": "^2.2.6",
41
- "@platforma-sdk/model": "^1.10.12"
40
+ "@platforma-sdk/model": "^1.10.12",
41
+ "@milaboratories/uikit": "^2.2.8"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@faker-js/faker": "^8.4.1",
@@ -3,7 +3,7 @@ import type { BlockOutputsBase } from '@platforma-sdk/model';
3
3
  import type { OutputErrors } from '../../types';
4
4
  // @TODO module
5
5
  import './pl-app-error-notification-alert.scss';
6
- import { PlBtnPrimary, PlDialogModal, PlNotificationAlert, PlSpacer, PlCopyData } from '@milaboratories/uikit';
6
+ import { PlBtnPrimary, PlDialogModal, PlNotificationAlert, PlSpacer, PlLogView } from '@milaboratories/uikit';
7
7
  import { computed, ref, watch } from 'vue';
8
8
 
9
9
  const props = defineProps<{ errors: OutputErrors<BlockOutputsBase> }>();
@@ -18,12 +18,6 @@ function showErrors() {
18
18
  isModalOpen.value = true;
19
19
  }
20
20
 
21
- function copyData(data: OutputErrors<BlockOutputsBase>[string]) {
22
- if (navigator.clipboard) {
23
- navigator.clipboard.writeText(JSON.stringify(data));
24
- }
25
- }
26
-
27
21
  // @TODO (temp)
28
22
  watch(
29
23
  () => props.errors,
@@ -41,12 +35,7 @@ watch(
41
35
  <template v-for="item in existingErrors" :key="item[0]">
42
36
  <div class="pl-app-notification-alert__item">
43
37
  <div class="pl-app-notification-alert__title">{{ item[0] }}</div>
44
- <div class="pl-app-notification-alert__error-description">
45
- <code>
46
- {{ item[1]?.message }}
47
- </code>
48
- <PlCopyData class="pl-app-notification-alert__copy-icon" @copy-data="copyData(item[1])" />
49
- </div>
38
+ <PlLogView :value="item[1]?.message" />
50
39
  </div>
51
40
  </template>
52
41
  </div>
@@ -15,31 +15,6 @@
15
15
  max-height: 100%;
16
16
  }
17
17
 
18
- &__error-description {
19
- display: flex;
20
- border-radius: 6px;
21
- border: 1px solid var(--border-color-div-grey);
22
- background: var(--bg-base-light);
23
- max-height: 600px; // @TODO
24
- min-height: 50px;
25
- position: relative;
26
-
27
-
28
- >code {
29
- white-space: pre-wrap;
30
- display: block;
31
- padding: 12px 4px 24px 12px;
32
- @include scrollbar();
33
- }
34
- }
35
-
36
- &__copy-icon {
37
- top: 12px;
38
- right: 12px;
39
- position: absolute;
40
- background: var(--ic-02);
41
- }
42
-
43
18
  &__item {
44
19
  position: relative;
45
20
  }