@things-factory/biz-ui 4.3.40 → 4.3.43
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.
|
@@ -14,7 +14,7 @@ class ContactPointsPopup extends localize(i18next)(LitElement) {
|
|
|
14
14
|
config: Object,
|
|
15
15
|
data: Object,
|
|
16
16
|
type: String,
|
|
17
|
-
|
|
17
|
+
partnerBizplaceIds: Array
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
|
|
@@ -71,6 +71,11 @@ class ContactPointsPopup extends localize(i18next)(LitElement) {
|
|
|
71
71
|
]
|
|
72
72
|
}
|
|
73
73
|
|
|
74
|
+
constructor() {
|
|
75
|
+
super()
|
|
76
|
+
this.partnerBizplaceIds = []
|
|
77
|
+
}
|
|
78
|
+
|
|
74
79
|
render() {
|
|
75
80
|
return html`
|
|
76
81
|
<search-form id="search-form" .fields=${this._searchFields} @submit=${() => this.dataGrist.fetch()}></search-form>
|
|
@@ -86,11 +91,7 @@ class ContactPointsPopup extends localize(i18next)(LitElement) {
|
|
|
86
91
|
</div>
|
|
87
92
|
|
|
88
93
|
<div class="button-container">
|
|
89
|
-
|
|
90
|
-
@click=${this._cancel.bind(this)}
|
|
91
|
-
label="${`${i18next.t('button.cancel')}`}"
|
|
92
|
-
raised
|
|
93
|
-
></mwc-button>
|
|
94
|
+
<mwc-button @click=${this._cancel.bind(this)} label="${`${i18next.t('button.cancel')}`}" raised></mwc-button>
|
|
94
95
|
|
|
95
96
|
<mwc-button
|
|
96
97
|
@click=${this._selectBizplace.bind(this)}
|
|
@@ -214,8 +215,8 @@ class ContactPointsPopup extends localize(i18next)(LitElement) {
|
|
|
214
215
|
let filters = await this.searchForm.getQueryFilters()
|
|
215
216
|
|
|
216
217
|
if (this.type) filters = [...filters, { name: 'type', operator: 'eq', value: this.type }]
|
|
217
|
-
if (this.
|
|
218
|
-
filters = [...filters, { name: 'bizplace_id', operator: '
|
|
218
|
+
if (this.partnerBizplaceIds && this.partnerBizplaceIds.length > 0)
|
|
219
|
+
filters = [...filters, { name: 'bizplace_id', operator: 'in', value: this.partnerBizplaceIds }]
|
|
219
220
|
|
|
220
221
|
const response = await client.query({
|
|
221
222
|
query: gql`
|
|
@@ -277,7 +278,7 @@ class ContactPointsPopup extends localize(i18next)(LitElement) {
|
|
|
277
278
|
history.back()
|
|
278
279
|
}
|
|
279
280
|
|
|
280
|
-
_cancel(){
|
|
281
|
+
_cancel() {
|
|
281
282
|
history.back()
|
|
282
283
|
}
|
|
283
284
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@things-factory/biz-ui",
|
|
3
|
-
"version": "4.3.
|
|
3
|
+
"version": "4.3.43",
|
|
4
4
|
"main": "dist-server/index.js",
|
|
5
5
|
"browser": "client/index.js",
|
|
6
6
|
"things-factory": true,
|
|
@@ -33,5 +33,5 @@
|
|
|
33
33
|
"@things-factory/layout-base": "^4.3.35",
|
|
34
34
|
"@things-factory/shell": "^4.3.35"
|
|
35
35
|
},
|
|
36
|
-
"gitHead": "
|
|
36
|
+
"gitHead": "45b1a76384731ef43ba872c9867fa56bc3b491ec"
|
|
37
37
|
}
|