@operato/app 2.0.0-alpha.102 → 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/CHANGELOG.md +9 -0
- package/dist/src/filters-form/filter-resource-select.js.map +1 -1
- package/dist/src/selector/ox-selector-resource-object-legacy.d.ts +2 -2
- package/dist/src/selector/ox-selector-resource-object-legacy.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +7 -7
- package/src/filters-form/filter-resource-select.ts +6 -6
- package/src/selector/ox-selector-resource-object-legacy.ts +2 -2
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.
|
|
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,15 +134,15 @@
|
|
|
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.
|
|
138
|
-
"@operato/data-grist": "^2.0.0-alpha.
|
|
139
|
-
"@operato/font": "^2.0.0-alpha.
|
|
140
|
-
"@operato/form": "^2.0.0-alpha.
|
|
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
143
|
"@operato/input": "^2.0.0-alpha.102",
|
|
144
144
|
"@operato/layout": "^2.0.0-alpha.102",
|
|
145
|
-
"@operato/property-editor": "^2.0.0-alpha.
|
|
145
|
+
"@operato/property-editor": "^2.0.0-alpha.103",
|
|
146
146
|
"@operato/shell": "^2.0.0-alpha.102",
|
|
147
147
|
"@operato/styles": "^2.0.0-alpha.102",
|
|
148
148
|
"@operato/utils": "^2.0.0-alpha.68",
|
|
@@ -187,5 +187,5 @@
|
|
|
187
187
|
"prettier --write"
|
|
188
188
|
]
|
|
189
189
|
},
|
|
190
|
-
"gitHead": "
|
|
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
|
-
|
|
76
|
-
|
|
77
|
-
|
|
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
|
-
|
|
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,
|
|
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!:
|
|
79
|
+
@query('ox-search-form') searchForm!: OxSearchForm
|
|
80
80
|
|
|
81
81
|
render() {
|
|
82
82
|
return html`
|