@itfin/components 2.0.29 → 2.0.31

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": "@itfin/components",
3
- "version": "2.0.29",
3
+ "version": "2.0.31",
4
4
  "author": "Vitalii Savchuk <esvit666@gmail.com>",
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -20,36 +20,36 @@
20
20
  "libs/"
21
21
  ],
22
22
  "dependencies": {
23
- "@calumk/editorjs-codecup": "^1.1.1",
23
+ "@calumk/editorjs-codecup": "^1.3.0",
24
24
  "@editorjs/attaches": "^1.3.0",
25
- "@editorjs/code": "^2.9.0",
26
- "@editorjs/delimiter": "^1.4.0",
27
- "@editorjs/editorjs": "^2.29.0",
28
- "@editorjs/embed": "^2.7.0",
29
- "@editorjs/header": "^2.8.1",
30
- "@editorjs/image": "^2.9.0",
31
- "@editorjs/inline-code": "^1.5.0",
25
+ "@editorjs/code": "^2.9.3",
26
+ "@editorjs/delimiter": "^1.4.2",
27
+ "@editorjs/editorjs": "^2.30.8",
28
+ "@editorjs/embed": "^2.7.6",
29
+ "@editorjs/header": "^2.8.8",
30
+ "@editorjs/image": "^2.10.2",
31
+ "@editorjs/inline-code": "^1.5.2",
32
32
  "@editorjs/link": "^2.6.2",
33
33
  "@editorjs/marker": "^1.4.0",
34
- "@editorjs/nested-list": "^1.4.2",
35
- "@editorjs/quote": "^2.6.0",
36
- "@editorjs/table": "^2.3.0",
34
+ "@editorjs/nested-list": "^1.4.3",
35
+ "@editorjs/quote": "^2.7.6",
36
+ "@editorjs/table": "^2.4.5",
37
37
  "@egjs/vue-flicking": "^4.10.4",
38
38
  "@mdi/js": "^7.2.96",
39
39
  "@popperjs/core": "^2.11.8",
40
40
  "@shopify/draggable": "^1.0.0-beta.8",
41
- "@vue/composition-api": "^1.7.1",
41
+ "@vue/composition-api": "^1.7.2",
42
42
  "@vue/vue2-jest": "^27.0.0",
43
43
  "@vue/web-component-wrapper": "^1.3.0",
44
- "bootstrap": "^5.3.x",
44
+ "bootstrap": "^5.3.6",
45
45
  "bpmn-js": "^17.0.2",
46
46
  "clipboard": "^2.0.11",
47
47
  "core-js": "^3.7.0",
48
48
  "intersection-observer": "^0.12.2",
49
+ "json5": "^2.2.3",
49
50
  "lodash": "^4.17.20",
50
51
  "luxon": "^3.3.0",
51
52
  "pdfjs-dist": "^2.10.377",
52
- "storybook-dark-mode": "^3.0.3",
53
53
  "tippy.js": "^6.3.2",
54
54
  "vue-grid-layout": "^2.4.0",
55
55
  "vue-imask": "^6.6.3",
@@ -62,9 +62,6 @@
62
62
  "@babel/plugin-proposal-numeric-separator": "^7.18.6",
63
63
  "@babel/plugin-syntax-numeric-separator": "^7.10.4",
64
64
  "@babel/plugin-transform-nullish-coalescing-operator": "^7.23.4",
65
- "@storybook/addon-docs": "=6.3.8",
66
- "@storybook/addon-viewport": "=6.3.8",
67
- "@storybook/vue": "=6.3.8",
68
65
  "@vue/cli-plugin-babel": "^5.0.8",
69
66
  "@vue/cli-plugin-eslint": "^5.0.8",
70
67
  "@vue/cli-plugin-unit-jest": "^5.0.8",
@@ -76,7 +73,6 @@
76
73
  "eslint-plugin-import": "^2.22.1",
77
74
  "eslint-plugin-prettier": "^4.2.1",
78
75
  "eslint-plugin-vue": "^9.9.0",
79
- "fibers": "^5.0.0",
80
76
  "marked": "^4.2.5",
81
77
  "postcss-cli": "^11.0.0",
82
78
  "sass": "^1.29.0",
@@ -84,6 +80,7 @@
84
80
  "vue": "^2.6.12",
85
81
  "vue-class-component": "^7.2.6",
86
82
  "vue-eslint-parser": "^9.1.0",
83
+ "vue-jest": "^3.0.7",
87
84
  "vue-template-compiler": "=2.6.14"
88
85
  },
89
86
  "eslintConfig": {
@@ -119,7 +116,7 @@
119
116
  "jest": {
120
117
  "preset": "@vue/cli-plugin-unit-jest",
121
118
  "testMatch": [
122
- "**/src/**/*.spec.js"
119
+ "**/src/**/*.spec.(j|t)s"
123
120
  ],
124
121
  "testPathIgnorePatterns": [
125
122
  "dist/"
@@ -75,10 +75,12 @@ class itfApp extends Vue {
75
75
  try {
76
76
  await func();
77
77
  } catch (err) {
78
- console.error(err);
79
- this.showError(err.message);
80
- if (errFunc) {
81
- errFunc(err);
78
+ if (err.code !== 'ERR_CANCELED') {
79
+ console.error(err);
80
+ this.showError(err.message);
81
+ if (errFunc) {
82
+ errFunc(err);
83
+ }
82
84
  }
83
85
  }
84
86
  }
@@ -52,7 +52,7 @@
52
52
  </div>
53
53
  <slot name="after-filters"></slot>
54
54
  </div>
55
- <div v-if="loading">
55
+ <div v-if="loading && !visibleFilters.length">
56
56
  <span class="itf-spinner"></span>
57
57
  {{$t('loading')}}
58
58
  </div>
@@ -235,15 +235,7 @@ class FilterPanel extends Vue {
235
235
 
236
236
  this.filters = this.staticFilters ?? [];
237
237
  if (this.endpoint) {
238
- this.loading = true;
239
- await this.$try(async () => {
240
- const payload = this.panel ? this.panel.getPayload() : {};
241
- const {filters, tableSchema} = await this.$axios.$get(this.endpoint, { params: payload });
242
- this.filters = filters;
243
- this.$emit('set-table-schema', tableSchema);
244
- this.loadFiltersValue();
245
- });
246
- this.loading = false;
238
+ this.loadData();
247
239
  } else {
248
240
  this.loadFiltersValue();
249
241
  }
@@ -252,6 +244,21 @@ class FilterPanel extends Vue {
252
244
  }
253
245
  }
254
246
 
247
+ async loadData() {
248
+ this.loading = true;
249
+ await this.$try(async () => {
250
+ const payload = this.panel ? this.panel.getPayload() : {};
251
+ const {filters, tableSchema} = await this.$axios.$get(this.endpoint, {
252
+ preventRaceCondition: true,
253
+ params: payload
254
+ });
255
+ this.filters = filters;
256
+ this.$emit('set-table-schema', tableSchema);
257
+ this.loadFiltersValue();
258
+ });
259
+ this.loading = false;
260
+ }
261
+
255
262
  toggleFilters() {
256
263
  this.showFilters = !this.showFilters;
257
264
  if (this.stateName) {
@@ -0,0 +1,6 @@
1
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path style="transform: translate(-9px, 9px)" d="M19 10V5.3C19 5.13431 18.8657 5 18.7 5H14" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"/>
3
+ <path style="transform: translate(9px, -9px)" d="M5 14V18.7C5 18.8657 5.13431 19 5.3 19H10" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"/>
4
+ <path d="M5.5 18.5L9.5 14.5" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"/>
5
+ <path d="M14.5 9.5L18.5 5.5" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"/>
6
+ </svg>
@@ -0,0 +1,4 @@
1
+ <template><svg width="24" height="24" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M10.0003 15.8337C13.222 15.8337 15.8337 13.222 15.8337 10.0003C15.8337 6.77866 13.222 4.16699 10.0003 4.16699C6.77866 4.16699 4.16699 6.77866 4.16699 10.0003C4.16699 13.222 6.77866 15.8337 10.0003 15.8337ZM7.91697 10.0003C7.91697 8.84973 8.84971 7.91699 10.0003 7.91699C11.1509 7.91699 12.0836 8.84973 12.0836 10.0003C12.0836 11.1509 11.1509 12.0837 10.0003 12.0837C8.84971 12.0837 7.91697 11.1509 7.91697 10.0003ZM10.0003 6.25032C7.92924 6.25032 6.25031 7.92925 6.25031 10.0003C6.25031 12.0714 7.92924 13.7503 10.0003 13.7503C12.0714 13.7503 13.7503 12.0714 13.7503 10.0003C13.7503 7.92925 12.0714 6.25032 10.0003 6.25032Z" fill="currentColor"/>
3
+ </svg>
4
+ </template>