@things-factory/import-ui 6.2.6 → 6.2.10
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,11 +1,12 @@
|
|
|
1
1
|
import '@material/mwc-button/mwc-button'
|
|
2
2
|
import '@operato/data-grist'
|
|
3
3
|
import { i18next, localize } from '@things-factory/i18n-base'
|
|
4
|
-
import { CustomAlert } from '@things-factory/shell'
|
|
5
4
|
import { ScrollbarStyles } from '@things-factory/styles'
|
|
6
5
|
import { isMobileDevice } from '@things-factory/utils'
|
|
7
6
|
import { css, html, LitElement } from 'lit'
|
|
8
7
|
|
|
8
|
+
import { OxPrompt } from '@operato/popup/ox-prompt.js'
|
|
9
|
+
|
|
9
10
|
class ImportPopUp extends localize(i18next)(LitElement) {
|
|
10
11
|
static get properties() {
|
|
11
12
|
return {
|
|
@@ -69,18 +70,18 @@ class ImportPopUp extends localize(i18next)(LitElement) {
|
|
|
69
70
|
@click=${async () => {
|
|
70
71
|
const patches = this.getCurrentRecord()
|
|
71
72
|
if (patches.length) {
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
73
|
+
if (
|
|
74
|
+
await OxPrompt.open({
|
|
75
|
+
title: i18next.t('label.import'),
|
|
76
|
+
text: i18next.t('text.are_you_sure'),
|
|
77
|
+
confirmButton: { text: i18next.t('button.import') },
|
|
78
|
+
cancelButton: { text: i18next.t('button.cancel') }
|
|
79
|
+
})
|
|
80
|
+
) {
|
|
81
|
+
this.importHandler(patches)
|
|
82
|
+
}
|
|
82
83
|
} else {
|
|
83
|
-
|
|
84
|
+
OxPrompt.open({
|
|
84
85
|
title: i18next.t('text.nothing_selected'),
|
|
85
86
|
text: i18next.t('text.there_is_nothing_to_save')
|
|
86
87
|
})
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@things-factory/import-ui",
|
|
3
|
-
"version": "6.2.
|
|
3
|
+
"version": "6.2.10",
|
|
4
4
|
"main": "dist-server/index.js",
|
|
5
5
|
"browser": "client/index.js",
|
|
6
6
|
"things-factory": true,
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
"@operato/data-grist": "^1.3.5",
|
|
28
28
|
"@operato/layout": "^1.0.1",
|
|
29
29
|
"@things-factory/context-ui": "^6.2.6",
|
|
30
|
-
"@things-factory/i18n-base": "^6.2.
|
|
30
|
+
"@things-factory/i18n-base": "^6.2.10",
|
|
31
31
|
"@things-factory/import-base": "^6.2.6"
|
|
32
32
|
},
|
|
33
|
-
"gitHead": "
|
|
33
|
+
"gitHead": "a93e333b304f0452e1f5dafedf497cecebdbe03e"
|
|
34
34
|
}
|