@operato/app 1.0.7 → 1.0.15

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
@@ -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.7",
6
+ "version": "1.0.15",
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.7",
119
- "@operato/data-grist": "^1.0.6",
120
- "@operato/font": "^1.0.7",
118
+ "@operato/attachment": "^1.0.15",
119
+ "@operato/data-grist": "^1.0.8",
120
+ "@operato/font": "^1.0.15",
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.7",
126
- "@operato/property-editor": "^1.0.7",
127
- "@operato/shell": "^1.0.7",
125
+ "@operato/layout": "^1.0.15",
126
+ "@operato/property-editor": "^1.0.15",
127
+ "@operato/shell": "^1.0.15",
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": "24e241b4f2d4cde785816ea5241f110ffb7a692c"
170
+ "gitHead": "6b727ee8ad5598ab97dfc0bc77d3dc685f6a1328"
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
- this.config = {
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
- ...this.config,
219
+ ...config,
215
220
  columns: [
216
- ...this.config.columns,
221
+ ...config.columns,
217
222
  ...columns.map(selectField => {
218
223
  return {
219
224
  ...selectField,