@things-factory/document-template-ui 7.0.1-alpha.26 → 7.0.1-alpha.27

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.
@@ -57,7 +57,7 @@ class DocumentTemplateList extends localize(i18next)(PageView) {
57
57
 
58
58
  <div id="sorters">
59
59
  Sort
60
- <mwc-icon
60
+ <md-icon
61
61
  @click=${e => {
62
62
  const target = e.currentTarget
63
63
  this.renderRoot.querySelector('#sorter-control').open({
@@ -65,7 +65,7 @@ class DocumentTemplateList extends localize(i18next)(PageView) {
65
65
  top: target.offsetTop + target.offsetHeight
66
66
  })
67
67
  }}
68
- >expand_more</mwc-icon
68
+ >expand_more</md-icon
69
69
  >
70
70
  <ox-popup id="sorter-control">
71
71
  <ox-sorters-control> </ox-sorters-control>
@@ -73,8 +73,8 @@ class DocumentTemplateList extends localize(i18next)(PageView) {
73
73
  </div>
74
74
 
75
75
  <div id="modes">
76
- <mwc-icon @click=${() => (this.mode = 'GRID')} ?active=${mode == 'GRID'}>grid_on</mwc-icon>
77
- <mwc-icon @click=${() => (this.mode = 'LIST')} ?active=${mode == 'LIST'}>format_list_bulleted</mwc-icon>
76
+ <md-icon @click=${() => (this.mode = 'GRID')} ?active=${mode == 'GRID'}>grid_on</md-icon>
77
+ <md-icon @click=${() => (this.mode = 'LIST')} ?active=${mode == 'LIST'}>format_list_bulleted</md-icon>
78
78
  </div>
79
79
  </div>
80
80
  </ox-grist>
@@ -157,10 +157,7 @@ class DocumentTemplateList extends localize(i18next)(PageView) {
157
157
 
158
158
  async fetchHandler({ filters = [], page, limit, sorters = [] }) {
159
159
  if (this.templateTypes?.length) {
160
- filters = [
161
- ...filters,
162
- { name: 'category', operator: 'in', value: this.templateTypes.map(type => type.name) || [] }
163
- ]
160
+ filters = [...filters, { name: 'category', operator: 'in', value: this.templateTypes.map(type => type.name) || [] }]
164
161
  }
165
162
  const pagination = { page, limit }
166
163
  const sortings = sorters
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/document-template-ui",
3
- "version": "7.0.1-alpha.26",
3
+ "version": "7.0.1-alpha.27",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "client/index.js",
6
6
  "things-factory": true,
@@ -32,5 +32,5 @@
32
32
  "@things-factory/styles": "^7.0.1-alpha.26",
33
33
  "@things-factory/utils": "^7.0.1-alpha.26"
34
34
  },
35
- "gitHead": "664e741d90e09b8b0e26763eb1eb03fd3f75b6d7"
35
+ "gitHead": "ce732afe6518f62850fc0b3499fd062e7a1eea1d"
36
36
  }