@things-factory/export-ui 9.2.5 → 10.0.0-beta.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,14 +1,12 @@
|
|
|
1
1
|
import '@material/web/icon/icon.js'
|
|
2
2
|
|
|
3
3
|
import { LitElement, css, html } from 'lit'
|
|
4
|
-
import { connect } from 'pwa-helpers'
|
|
5
|
-
|
|
6
4
|
import { ContextToolbarOverlayStyle } from '@operato/context/ox-context-toolbar-overlay-style.js'
|
|
7
5
|
import { ScrollbarStyles } from '@operato/styles'
|
|
8
6
|
import { store } from '@operato/shell'
|
|
9
7
|
import { EXPORT } from '@things-factory/export-base'
|
|
10
8
|
|
|
11
|
-
class ExportOverlayTemplate extends
|
|
9
|
+
class ExportOverlayTemplate extends LitElement {
|
|
12
10
|
static get properties() {
|
|
13
11
|
return {
|
|
14
12
|
_context: Object,
|
|
@@ -59,9 +57,35 @@ class ExportOverlayTemplate extends connect(store)(LitElement) {
|
|
|
59
57
|
this.dispatchEvent(new CustomEvent('close-overlay', { detail: { name: 'export-overlay-template', bubbles: true, composed: true } }))
|
|
60
58
|
}
|
|
61
59
|
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
60
|
+
private _unsubscribe?: () => void
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
connectedCallback() {
|
|
64
|
+
|
|
65
|
+
super.connectedCallback()
|
|
66
|
+
|
|
67
|
+
this._applyState()
|
|
68
|
+
|
|
69
|
+
this._unsubscribe = store.subscribe(() => this._applyState())
|
|
70
|
+
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
disconnectedCallback() {
|
|
75
|
+
|
|
76
|
+
super.disconnectedCallback()
|
|
77
|
+
|
|
78
|
+
this._unsubscribe?.()
|
|
79
|
+
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
private _applyState() {
|
|
84
|
+
|
|
85
|
+
const __state__ = store.getState() as any
|
|
86
|
+
this._extensions = (__state__.exporting && __state__.exporting.extensions) || []
|
|
87
|
+
this._context = __state__.route.context
|
|
88
|
+
|
|
65
89
|
}
|
|
66
90
|
}
|
|
67
91
|
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@things-factory/export-ui",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "10.0.0-beta.10",
|
|
4
4
|
"main": "dist-server/index.js",
|
|
5
|
-
"browser": "client/index.
|
|
5
|
+
"browser": "client/index.ts",
|
|
6
6
|
"things-factory": true,
|
|
7
7
|
"author": "",
|
|
8
8
|
"description": "User interface for showing export options.",
|
|
@@ -24,9 +24,9 @@
|
|
|
24
24
|
"migration:create": "node ../../node_modules/typeorm/cli.js migration:create ./server/migrations/migration"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@operato/layout": "^
|
|
28
|
-
"@things-factory/context-ui": "^
|
|
29
|
-
"@things-factory/export-base": "^
|
|
27
|
+
"@operato/layout": "^10.0.0-beta.1",
|
|
28
|
+
"@things-factory/context-ui": "^10.0.0-beta.10",
|
|
29
|
+
"@things-factory/export-base": "^10.0.0-beta.10"
|
|
30
30
|
},
|
|
31
|
-
"gitHead": "
|
|
31
|
+
"gitHead": "95acadd39e9a0ff3b2f34d9f7082142395903179"
|
|
32
32
|
}
|
|
File without changes
|
|
File without changes
|