@operato/app 2.0.0-alpha.100 → 2.0.0-alpha.103

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
@@ -2,7 +2,7 @@
2
2
  "name": "@operato/app",
3
3
  "description": "WebApplication production supporting components following open-wc recommendations",
4
4
  "author": "heartyoh",
5
- "version": "2.0.0-alpha.100",
5
+ "version": "2.0.0-alpha.103",
6
6
  "main": "dist/src/index.js",
7
7
  "module": "dist/src/index.js",
8
8
  "exports": {
@@ -134,17 +134,17 @@
134
134
  "@graphql-tools/delegate": "^10.0.1",
135
135
  "@graphql-tools/wrap": "^8.5.0",
136
136
  "@material/web": "^1.4.0",
137
- "@operato/attachment": "^2.0.0-alpha.100",
138
- "@operato/data-grist": "^2.0.0-alpha.100",
139
- "@operato/font": "^2.0.0-alpha.100",
140
- "@operato/form": "^2.0.0-alpha.94",
137
+ "@operato/attachment": "^2.0.0-alpha.103",
138
+ "@operato/data-grist": "^2.0.0-alpha.103",
139
+ "@operato/font": "^2.0.0-alpha.103",
140
+ "@operato/form": "^2.0.0-alpha.103",
141
141
  "@operato/graphql": "^2.0.0-alpha.57",
142
142
  "@operato/i18n": "^2.0.0-alpha.59",
143
- "@operato/input": "^2.0.0-alpha.100",
144
- "@operato/layout": "^2.0.0-alpha.100",
145
- "@operato/property-editor": "^2.0.0-alpha.100",
146
- "@operato/shell": "^2.0.0-alpha.100",
147
- "@operato/styles": "^2.0.0-alpha.100",
143
+ "@operato/input": "^2.0.0-alpha.102",
144
+ "@operato/layout": "^2.0.0-alpha.102",
145
+ "@operato/property-editor": "^2.0.0-alpha.103",
146
+ "@operato/shell": "^2.0.0-alpha.102",
147
+ "@operato/styles": "^2.0.0-alpha.102",
148
148
  "@operato/utils": "^2.0.0-alpha.68",
149
149
  "cm6-graphql": "^0.0.14",
150
150
  "codemirror": "^6.0.1",
@@ -187,5 +187,5 @@
187
187
  "prettier --write"
188
188
  ]
189
189
  },
190
- "gitHead": "efe5f575ce5241aeb84a0af45915dca63dcce68e"
190
+ "gitHead": "d3dd19b352689dcff2b5e0ce64f71785452e0dbb"
191
191
  }
@@ -11,7 +11,7 @@ import { GristRecord } from '@operato/data-grist'
11
11
  type SelectedCallback = (value?: Partial<GristRecord>) => void
12
12
 
13
13
  function openResourceSelector(filter: FilterConfig, value: any, confirmCallback: SelectedCallback) {
14
- const { queryName, select, list, basicArgs, valueField = 'id', title } = filter.options || {}
14
+ const { queryName, select, list, basicArgs, valueField = 'id', title } = filter.options || ({} as any)
15
15
 
16
16
  var template = html`
17
17
  <ox-selector-resource-object
@@ -47,7 +47,7 @@ function openResourceSelector(filter: FilterConfig, value: any, confirmCallback:
47
47
 
48
48
  export const FilterResourceSelect: FilterSelectRenderer = (filter, value, owner: any) => {
49
49
  const { name, operator = 'like' } = filter
50
- var { idField = 'id', nameField = 'name', descriptionField = 'description' } = filter.options || {}
50
+ var { idField = 'id', nameField = 'name', descriptionField = 'description' } = filter.options || ({} as any)
51
51
  const hideValue = value ? value[idField] : ''
52
52
  const text = value ? value[nameField] : ''
53
53
 
@@ -72,9 +72,9 @@ export const FilterResourceSelect: FilterSelectRenderer = (filter, value, owner:
72
72
  }}
73
73
  />`
74
74
  : operator == 'in'
75
- ? html``
76
- : operator === 'eq'
77
- ? html`
75
+ ? html``
76
+ : operator === 'eq'
77
+ ? html`
78
78
  <input name='${name}' .value=${hideValue} type="text" hidden></input>
79
79
  <input
80
80
  type="text"
@@ -126,5 +126,5 @@ export const FilterResourceSelect: FilterSelectRenderer = (filter, value, owner:
126
126
  }}
127
127
  />
128
128
  `
129
- : html``
129
+ : html``
130
130
  }
@@ -17,7 +17,7 @@ import {
17
17
  InheritedValueType,
18
18
  ZERO_DATA
19
19
  } from '@operato/data-grist'
20
- import { MultiColumnFormStyles, SearchForm } from '@operato/form'
20
+ import { MultiColumnFormStyles, OxSearchForm } from '@operato/form'
21
21
  import { buildArgs, client, gqlContext } from '@operato/graphql'
22
22
  import { i18next } from '@operato/i18n'
23
23
  import { closePopup } from '@operato/popup'
@@ -76,7 +76,7 @@ export class OxSelectorResourceObjectLegacy extends LitElement {
76
76
  @property({ type: String }) valueField: string | ((item: any) => any) = 'id'
77
77
 
78
78
  @query('ox-grist') grist!: DataGrist
79
- @query('ox-search-form') searchForm!: SearchForm
79
+ @query('ox-search-form') searchForm!: OxSearchForm
80
80
 
81
81
  render() {
82
82
  return html`