@things-factory/auth-ui 4.0.35 → 4.0.39
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.
|
@@ -15,7 +15,6 @@ export class DomainManagement extends connect(store)(localize(i18next)(PageView)
|
|
|
15
15
|
static get properties() {
|
|
16
16
|
return {
|
|
17
17
|
active: String,
|
|
18
|
-
_searchFields: Array,
|
|
19
18
|
config: Object
|
|
20
19
|
}
|
|
21
20
|
}
|
|
@@ -31,14 +30,20 @@ export class DomainManagement extends connect(store)(localize(i18next)(PageView)
|
|
|
31
30
|
overflow: hidden;
|
|
32
31
|
}
|
|
33
32
|
|
|
34
|
-
search-form {
|
|
35
|
-
overflow: visible;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
33
|
ox-grist {
|
|
39
34
|
overflow-y: auto;
|
|
40
35
|
flex: 1;
|
|
41
36
|
}
|
|
37
|
+
|
|
38
|
+
#filters {
|
|
39
|
+
display: flex;
|
|
40
|
+
flex-direction: row;
|
|
41
|
+
justify-content: space-between;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
#filters > * {
|
|
45
|
+
padding: var(--padding-default) var(--padding-wide);
|
|
46
|
+
}
|
|
42
47
|
`
|
|
43
48
|
]
|
|
44
49
|
}
|
|
@@ -68,18 +73,15 @@ export class DomainManagement extends connect(store)(localize(i18next)(PageView)
|
|
|
68
73
|
.config=${this.config}
|
|
69
74
|
.fetchHandler="${this.fetchHandler.bind(this)}"
|
|
70
75
|
>
|
|
71
|
-
<
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
.fields=${this._searchFields}
|
|
75
|
-
@submit=${async () => this.dataGrist.fetch()}
|
|
76
|
-
></search-form>
|
|
76
|
+
<div id="filters" slot="headroom">
|
|
77
|
+
<ox-filters-form @change=${e => this.dataGrist.fetch()}></ox-filters-form>
|
|
78
|
+
</div>
|
|
77
79
|
</ox-grist>
|
|
78
80
|
`
|
|
79
81
|
}
|
|
80
82
|
|
|
81
83
|
get searchForm() {
|
|
82
|
-
return this.renderRoot.querySelector('
|
|
84
|
+
return this.renderRoot.querySelector('ox-filters-form')
|
|
83
85
|
}
|
|
84
86
|
|
|
85
87
|
get dataGrist() {
|
|
@@ -87,33 +89,6 @@ export class DomainManagement extends connect(store)(localize(i18next)(PageView)
|
|
|
87
89
|
}
|
|
88
90
|
|
|
89
91
|
async pageInitialized() {
|
|
90
|
-
this._searchFields = [
|
|
91
|
-
{
|
|
92
|
-
name: 'name',
|
|
93
|
-
type: 'text',
|
|
94
|
-
props: {
|
|
95
|
-
placeholder: i18next.t('field.name'),
|
|
96
|
-
searchOper: 'i_like'
|
|
97
|
-
}
|
|
98
|
-
},
|
|
99
|
-
{
|
|
100
|
-
name: 'description',
|
|
101
|
-
type: 'text',
|
|
102
|
-
props: {
|
|
103
|
-
placeholder: i18next.t('field.description'),
|
|
104
|
-
searchOper: 'i_like'
|
|
105
|
-
}
|
|
106
|
-
},
|
|
107
|
-
{
|
|
108
|
-
name: 'subdomain',
|
|
109
|
-
type: 'text',
|
|
110
|
-
props: {
|
|
111
|
-
placeholder: i18next.t('field.subdomain'),
|
|
112
|
-
searchOper: 'i_like'
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
]
|
|
116
|
-
|
|
117
92
|
this.config = {
|
|
118
93
|
rows: {
|
|
119
94
|
appendable: false
|
|
@@ -140,6 +115,7 @@ export class DomainManagement extends connect(store)(localize(i18next)(PageView)
|
|
|
140
115
|
record: {
|
|
141
116
|
editable: false
|
|
142
117
|
},
|
|
118
|
+
filter: 'search',
|
|
143
119
|
width: 200
|
|
144
120
|
},
|
|
145
121
|
{
|
|
@@ -149,6 +125,7 @@ export class DomainManagement extends connect(store)(localize(i18next)(PageView)
|
|
|
149
125
|
record: {
|
|
150
126
|
editable: true
|
|
151
127
|
},
|
|
128
|
+
filter: 'search',
|
|
152
129
|
width: 200
|
|
153
130
|
},
|
|
154
131
|
{
|
|
@@ -158,6 +135,7 @@ export class DomainManagement extends connect(store)(localize(i18next)(PageView)
|
|
|
158
135
|
record: {
|
|
159
136
|
editable: false
|
|
160
137
|
},
|
|
138
|
+
filter: 'search',
|
|
161
139
|
width: 200
|
|
162
140
|
},
|
|
163
141
|
{
|
|
@@ -193,7 +171,7 @@ export class DomainManagement extends connect(store)(localize(i18next)(PageView)
|
|
|
193
171
|
}
|
|
194
172
|
|
|
195
173
|
async fetchHandler({ page, limit, sorters = [] }) {
|
|
196
|
-
const filters = this.searchForm
|
|
174
|
+
const filters = (await this.searchForm.getQueryFilters()) || []
|
|
197
175
|
|
|
198
176
|
const response = await client.query({
|
|
199
177
|
query: gql`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@things-factory/auth-ui",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.39",
|
|
4
4
|
"main": "dist-server/index.js",
|
|
5
5
|
"browser": "client/index.js",
|
|
6
6
|
"things-factory": true,
|
|
@@ -30,14 +30,14 @@
|
|
|
30
30
|
"@material/mwc-icon-button": "^0.25.3",
|
|
31
31
|
"@material/mwc-textarea": "^0.25.3",
|
|
32
32
|
"@material/mwc-textfield": "^0.25.3",
|
|
33
|
-
"@operato/data-grist": "^0.3.
|
|
34
|
-
"@operato/lottie-player": "^0.3.
|
|
35
|
-
"@things-factory/auth-base": "^4.0.
|
|
36
|
-
"@things-factory/i18n-base": "^4.0.
|
|
37
|
-
"@things-factory/i18n-ui": "^4.0.
|
|
38
|
-
"@things-factory/layout-ui": "^4.0.
|
|
39
|
-
"@things-factory/more-base": "^4.0.
|
|
33
|
+
"@operato/data-grist": "^0.3.19",
|
|
34
|
+
"@operato/lottie-player": "^0.3.19",
|
|
35
|
+
"@things-factory/auth-base": "^4.0.39",
|
|
36
|
+
"@things-factory/i18n-base": "^4.0.39",
|
|
37
|
+
"@things-factory/i18n-ui": "^4.0.39",
|
|
38
|
+
"@things-factory/layout-ui": "^4.0.39",
|
|
39
|
+
"@things-factory/more-base": "^4.0.39",
|
|
40
40
|
"clipboard": "^2.0.6"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "a4f93ea85a26cf70ae0aa2fcd298aa59b55dd039"
|
|
43
43
|
}
|