@things-factory/form-ui 4.0.10 → 4.0.11
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.
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { LitElement, html, css } from 'lit-element'
|
|
2
1
|
import './custom-input'
|
|
3
2
|
import './custom-select'
|
|
4
3
|
import './form-paginator'
|
|
5
4
|
|
|
5
|
+
import { LitElement, css, html } from 'lit-element'
|
|
6
|
+
|
|
6
7
|
class FormMaster extends LitElement {
|
|
7
8
|
static get styles() {
|
|
8
9
|
return css`
|
|
@@ -2,14 +2,13 @@ import '@material/mwc-icon'
|
|
|
2
2
|
import './custom-input'
|
|
3
3
|
import './custom-select'
|
|
4
4
|
|
|
5
|
-
import
|
|
6
|
-
import { css, html, LitElement } from 'lit-element'
|
|
5
|
+
import { LitElement, css, html } from 'lit-element'
|
|
7
6
|
|
|
7
|
+
import { SearchFormStyles } from '../styles/search-form-styles'
|
|
8
8
|
import { client } from '@things-factory/shell'
|
|
9
|
+
import gql from 'graphql-tag'
|
|
9
10
|
import { gqlBuilder } from '@things-factory/utils'
|
|
10
11
|
|
|
11
|
-
import { SearchFormStyles } from '../styles/search-form-styles'
|
|
12
|
-
|
|
13
12
|
class SearchForm extends LitElement {
|
|
14
13
|
static get styles() {
|
|
15
14
|
return [
|
|
@@ -166,16 +165,16 @@ class SearchForm extends LitElement {
|
|
|
166
165
|
}
|
|
167
166
|
|
|
168
167
|
get form() {
|
|
169
|
-
return this.
|
|
168
|
+
return this.renderRoot.querySelector('form')
|
|
170
169
|
}
|
|
171
170
|
|
|
172
171
|
get formFields() {
|
|
173
|
-
return Array.from(this.form
|
|
172
|
+
return Array.from(this.form?.querySelectorAll('input, select') || [])
|
|
174
173
|
}
|
|
175
174
|
|
|
176
175
|
/* @deprecated */
|
|
177
176
|
getFields() {
|
|
178
|
-
return Array.from(this.form.querySelectorAll('input, select'))
|
|
177
|
+
return Array.from(this.form.querySelectorAll('input, select') || [])
|
|
179
178
|
}
|
|
180
179
|
|
|
181
180
|
get searchParams() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@things-factory/form-ui",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.11",
|
|
4
4
|
"main": "dist-server/index.js",
|
|
5
5
|
"browser": "client/index.js",
|
|
6
6
|
"things-factory": true,
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"migration:create": "node ../../node_modules/typeorm/cli.js migration:create -d ./server/migrations"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@things-factory/layout-base": "^4.0.
|
|
27
|
+
"@things-factory/layout-base": "^4.0.11"
|
|
28
28
|
},
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "47745d8cdbe99f11d8d69bbcab3901c9771525a0"
|
|
30
30
|
}
|