@operato/app 1.0.6 → 1.0.9
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/CHANGELOG.md +25 -0
- package/dist/src/grist-editor/ox-grist-editor-resource-object.js +2 -1
- package/dist/src/grist-editor/ox-grist-editor-resource-object.js.map +1 -1
- package/dist/src/grist-editor/ox-selector-resource-object.d.ts +4 -0
- package/dist/src/grist-editor/ox-selector-resource-object.js +8 -4
- package/dist/src/grist-editor/ox-selector-resource-object.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +8 -8
- package/src/grist-editor/ox-grist-editor-resource-object.ts +2 -0
- package/src/grist-editor/ox-selector-resource-object.ts +9 -4
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "WebApplication production supporting components following open-wc recommendations",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "heartyoh",
|
|
6
|
-
"version": "1.0.
|
|
6
|
+
"version": "1.0.9",
|
|
7
7
|
"main": "dist/src/index.js",
|
|
8
8
|
"module": "dist/src/index.js",
|
|
9
9
|
"exports": {
|
|
@@ -115,16 +115,16 @@
|
|
|
115
115
|
"@material/mwc-button": "^0.26.1",
|
|
116
116
|
"@material/mwc-icon": "^0.26.1",
|
|
117
117
|
"@material/mwc-icon-button": "^0.26.1",
|
|
118
|
-
"@operato/attachment": "^1.0.
|
|
119
|
-
"@operato/data-grist": "^1.0.
|
|
120
|
-
"@operato/font": "^1.0.
|
|
118
|
+
"@operato/attachment": "^1.0.8",
|
|
119
|
+
"@operato/data-grist": "^1.0.8",
|
|
120
|
+
"@operato/font": "^1.0.8",
|
|
121
121
|
"@operato/form": "^1.0.6",
|
|
122
122
|
"@operato/graphql": "^1.0.6",
|
|
123
123
|
"@operato/i18n": "^1.0.6",
|
|
124
124
|
"@operato/input": "^1.0.6",
|
|
125
|
-
"@operato/layout": "^1.0.
|
|
126
|
-
"@operato/property-editor": "^1.0.
|
|
127
|
-
"@operato/shell": "^1.0.
|
|
125
|
+
"@operato/layout": "^1.0.7",
|
|
126
|
+
"@operato/property-editor": "^1.0.8",
|
|
127
|
+
"@operato/shell": "^1.0.7",
|
|
128
128
|
"@operato/styles": "^1.0.6",
|
|
129
129
|
"@operato/utils": "^1.0.6",
|
|
130
130
|
"codemirror": "^5.64.0",
|
|
@@ -167,5 +167,5 @@
|
|
|
167
167
|
"prettier --write"
|
|
168
168
|
]
|
|
169
169
|
},
|
|
170
|
-
"gitHead": "
|
|
170
|
+
"gitHead": "2e0182e37744a96a75b9fc4f5e0781c8a1c233f2"
|
|
171
171
|
}
|
|
@@ -60,6 +60,7 @@ export class OxGristEditorResourceObject extends OxGristEditor {
|
|
|
60
60
|
basicArgs,
|
|
61
61
|
select,
|
|
62
62
|
columns,
|
|
63
|
+
pagination,
|
|
63
64
|
list
|
|
64
65
|
} = this.column.record.options || {}
|
|
65
66
|
|
|
@@ -112,6 +113,7 @@ export class OxGristEditorResourceObject extends OxGristEditor {
|
|
|
112
113
|
.confirmCallback=${confirmCallback.bind(this)}
|
|
113
114
|
.queryName=${queryName}
|
|
114
115
|
.columns=${columns}
|
|
116
|
+
.pagination=${pagination}
|
|
115
117
|
.list=${list}
|
|
116
118
|
.basicArgs=${basicArgs}
|
|
117
119
|
.valueField=${valueField}
|
|
@@ -63,6 +63,10 @@ export class OxSelectorResourceObject extends LitElement {
|
|
|
63
63
|
queryName: string
|
|
64
64
|
width: number
|
|
65
65
|
}[] = []
|
|
66
|
+
@property({ type: Object }) pagination?: {
|
|
67
|
+
limit: number
|
|
68
|
+
pages: number[]
|
|
69
|
+
}
|
|
66
70
|
@property({ type: Object }) list: any
|
|
67
71
|
@property({ type: String }) valueField: string | ((item: any) => any) = 'id'
|
|
68
72
|
|
|
@@ -153,7 +157,7 @@ export class OxSelectorResourceObject extends LitElement {
|
|
|
153
157
|
}
|
|
154
158
|
|
|
155
159
|
async firstUpdated() {
|
|
156
|
-
|
|
160
|
+
const config = {
|
|
157
161
|
columns: [
|
|
158
162
|
{
|
|
159
163
|
type: 'gutter',
|
|
@@ -176,7 +180,8 @@ export class OxSelectorResourceObject extends LitElement {
|
|
|
176
180
|
}) as GristEventHandler
|
|
177
181
|
},
|
|
178
182
|
appendable: false
|
|
179
|
-
}
|
|
183
|
+
},
|
|
184
|
+
pagination: this.pagination
|
|
180
185
|
}
|
|
181
186
|
|
|
182
187
|
const columns = this.columns || [
|
|
@@ -211,9 +216,9 @@ export class OxSelectorResourceObject extends LitElement {
|
|
|
211
216
|
]
|
|
212
217
|
|
|
213
218
|
this.config = {
|
|
214
|
-
...
|
|
219
|
+
...config,
|
|
215
220
|
columns: [
|
|
216
|
-
...
|
|
221
|
+
...config.columns,
|
|
217
222
|
...columns.map(selectField => {
|
|
218
223
|
return {
|
|
219
224
|
...selectField,
|