@things-factory/resource-ui 6.0.145 → 6.1.0
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/client/bootstrap.js
CHANGED
|
@@ -3,11 +3,7 @@ import { OxGristEditorResourceObjectLegacy } from '@operato/app/grist-editor/ox-
|
|
|
3
3
|
import { OxGristEditorResourceObject } from '@operato/app/grist-editor/ox-grist-editor-resource-object.js'
|
|
4
4
|
import { OxGristRendererResourceObject } from '@operato/app/grist-editor/ox-grist-renderer-resource-object.js'
|
|
5
5
|
import { OxGristRendererText } from '@operato/data-grist'
|
|
6
|
-
|
|
7
|
-
import {
|
|
8
|
-
registerEditor as registerGristEditor,
|
|
9
|
-
registerRenderer as registerGristRenderer
|
|
10
|
-
} from '@things-factory/grist-ui'
|
|
6
|
+
import { registerEditor as registerGristEditor, registerRenderer as registerGristRenderer } from '@operato/data-grist'
|
|
11
7
|
import { addRoutingType } from '@things-factory/menu-base'
|
|
12
8
|
import { store } from '@things-factory/shell'
|
|
13
9
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import '@
|
|
1
|
+
import '@operato/data-grist'
|
|
2
2
|
|
|
3
3
|
import { LitElement, css, html } from 'lit'
|
|
4
4
|
|
|
@@ -40,7 +40,7 @@ export class DataListWrapper extends LitElement {
|
|
|
40
40
|
flex-direction: row;
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
-
|
|
43
|
+
ox-grist {
|
|
44
44
|
flex: 1;
|
|
45
45
|
}
|
|
46
46
|
`
|
|
@@ -59,19 +59,19 @@ export class DataListWrapper extends LitElement {
|
|
|
59
59
|
|
|
60
60
|
render() {
|
|
61
61
|
return html`
|
|
62
|
-
<
|
|
62
|
+
<ox-grist
|
|
63
63
|
.mode=${this.mode}
|
|
64
64
|
.config=${this._config}
|
|
65
65
|
.editHandler=${this.editHandler}
|
|
66
66
|
.fetchHandler=${this.fetchHandler}
|
|
67
67
|
.fetchOptions=${this.fetchOptions}
|
|
68
68
|
>
|
|
69
|
-
</
|
|
69
|
+
</ox-grist>
|
|
70
70
|
`
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
get dataGrist() {
|
|
74
|
-
return this.shadowRoot.querySelector('
|
|
74
|
+
return this.shadowRoot.querySelector('ox-grist')
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
fetch() {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MultiColumnFormStyles } from '@things-factory/form-ui'
|
|
2
|
-
import '@
|
|
2
|
+
import '@operato/data-grist'
|
|
3
3
|
import { i18next } from '@things-factory/i18n-base'
|
|
4
4
|
import { client, gqlContext } from '@things-factory/shell'
|
|
5
5
|
import { gqlBuilder, isMobileDevice } from '@things-factory/utils'
|
|
@@ -34,7 +34,7 @@ export class ObjectSelector extends LitElement {
|
|
|
34
34
|
background-color: #fff;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
|
|
37
|
+
ox-grist {
|
|
38
38
|
flex: 1;
|
|
39
39
|
}
|
|
40
40
|
|
|
@@ -68,13 +68,13 @@ export class ObjectSelector extends LitElement {
|
|
|
68
68
|
.fields="${this.searchFields}"
|
|
69
69
|
></search-form>
|
|
70
70
|
|
|
71
|
-
<
|
|
71
|
+
<ox-grist
|
|
72
72
|
.mode=${isMobileDevice() ? 'LIST' : 'GRID'}
|
|
73
73
|
.config=${this.config}
|
|
74
74
|
.data=${this.data}
|
|
75
75
|
.fetchHandler="${this.fetchHandler.bind(this)}"
|
|
76
76
|
.selectedRecords=${this.selectedRecords}
|
|
77
|
-
></
|
|
77
|
+
></ox-grist>
|
|
78
78
|
|
|
79
79
|
<div class="button-container">
|
|
80
80
|
<mwc-button @click=${this.oncancel.bind(this)}>${i18next.t('button.cancel')}</mwc-button>
|
|
@@ -84,7 +84,7 @@ export class ObjectSelector extends LitElement {
|
|
|
84
84
|
}
|
|
85
85
|
|
|
86
86
|
get grist() {
|
|
87
|
-
return this.shadowRoot.querySelector('
|
|
87
|
+
return this.shadowRoot.querySelector('ox-grist')
|
|
88
88
|
}
|
|
89
89
|
|
|
90
90
|
oncancel(e) {
|
|
@@ -322,7 +322,7 @@ export class ObjectSelector extends LitElement {
|
|
|
322
322
|
}
|
|
323
323
|
|
|
324
324
|
get selected() {
|
|
325
|
-
var grist = this.shadowRoot.querySelector('
|
|
325
|
+
var grist = this.shadowRoot.querySelector('ox-grist')
|
|
326
326
|
|
|
327
327
|
var selected = grist.selected
|
|
328
328
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@things-factory/resource-ui",
|
|
3
|
-
"version": "6.0
|
|
3
|
+
"version": "6.1.0",
|
|
4
4
|
"main": "dist-server/index.js",
|
|
5
5
|
"browser": "client/index.js",
|
|
6
6
|
"things-factory": true,
|
|
@@ -25,15 +25,15 @@
|
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@operato/app": "^1.0.1",
|
|
28
|
+
"@operato/data-grist": "^1.3.5",
|
|
28
29
|
"@operato/layout": "^1.0.1",
|
|
29
|
-
"@things-factory/auth-ui": "^6.0
|
|
30
|
-
"@things-factory/context-ui": "^6.0
|
|
31
|
-
"@things-factory/form-ui": "^6.0
|
|
32
|
-
"@things-factory/
|
|
33
|
-
"@things-factory/
|
|
34
|
-
"@things-factory/
|
|
35
|
-
"@things-factory/
|
|
36
|
-
"@things-factory/resource-base": "^6.0.145"
|
|
30
|
+
"@things-factory/auth-ui": "^6.1.0",
|
|
31
|
+
"@things-factory/context-ui": "^6.1.0",
|
|
32
|
+
"@things-factory/form-ui": "^6.1.0",
|
|
33
|
+
"@things-factory/i18n-base": "^6.1.0",
|
|
34
|
+
"@things-factory/import-ui-csv": "^6.1.0",
|
|
35
|
+
"@things-factory/menu-base": "^6.1.0",
|
|
36
|
+
"@things-factory/resource-base": "^6.1.0"
|
|
37
37
|
},
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "205ac14ff55275d948a8cc6d7c514b90d6baf6ef"
|
|
39
39
|
}
|