@things-factory/document-template-ui 4.3.109-alpha.0 → 4.3.109
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.
|
@@ -85,6 +85,18 @@ class DocumentTemplateList extends localize(i18next)(PageView) {
|
|
|
85
85
|
this.templateTypes = await getCodeByName('TEMPLATE_TYPES')
|
|
86
86
|
|
|
87
87
|
this.searchFields = [
|
|
88
|
+
{
|
|
89
|
+
name: 'name',
|
|
90
|
+
label: i18next.t('field.name'),
|
|
91
|
+
type: 'text',
|
|
92
|
+
props: { searchOper: 'i_like' }
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
name: 'description',
|
|
96
|
+
label: i18next.t('field.description'),
|
|
97
|
+
type: 'text',
|
|
98
|
+
props: { searchOper: 'i_like' }
|
|
99
|
+
},
|
|
88
100
|
{
|
|
89
101
|
name: 'category',
|
|
90
102
|
label: i18next.t('field.category'),
|
|
@@ -95,7 +107,7 @@ class DocumentTemplateList extends localize(i18next)(PageView) {
|
|
|
95
107
|
|
|
96
108
|
this.config = {
|
|
97
109
|
list: {
|
|
98
|
-
fields: ['category', '
|
|
110
|
+
fields: ['category', 'domain', 'updatedAt', 'updater']
|
|
99
111
|
},
|
|
100
112
|
rows: { appendable: false, selectable: { multiple: true } },
|
|
101
113
|
columns: [
|
|
@@ -109,14 +121,6 @@ class DocumentTemplateList extends localize(i18next)(PageView) {
|
|
|
109
121
|
sortable: true,
|
|
110
122
|
width: 150
|
|
111
123
|
},
|
|
112
|
-
{
|
|
113
|
-
type: 'string',
|
|
114
|
-
name: 'description',
|
|
115
|
-
header: i18next.t('field.description'),
|
|
116
|
-
record: { editable: false, align: 'left' },
|
|
117
|
-
sortable: true,
|
|
118
|
-
width: 200
|
|
119
|
-
},
|
|
120
124
|
{
|
|
121
125
|
type: 'object',
|
|
122
126
|
name: 'domain',
|
|
@@ -121,10 +121,7 @@ class DocumentUploadTemplate extends localize(i18next)(LitElement) {
|
|
|
121
121
|
}
|
|
122
122
|
|
|
123
123
|
_getAttachmentInfo() {
|
|
124
|
-
if (
|
|
125
|
-
throw new Error('no attachment uploaded')
|
|
126
|
-
}
|
|
127
|
-
else if (this.renderRoot.querySelector('form').checkValidity()) {
|
|
124
|
+
if (this.renderRoot.querySelector('form').checkValidity()) {
|
|
128
125
|
return {
|
|
129
126
|
file: this._template.files[0],
|
|
130
127
|
category: this._getInputByName('category').value,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@things-factory/document-template-ui",
|
|
3
|
-
"version": "4.3.109
|
|
3
|
+
"version": "4.3.109",
|
|
4
4
|
"main": "dist-server/index.js",
|
|
5
5
|
"browser": "client/index.js",
|
|
6
6
|
"things-factory": true,
|
|
@@ -24,13 +24,13 @@
|
|
|
24
24
|
"migration:create": "node ../../node_modules/typeorm/cli.js migration:create -d ./server/migrations"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@things-factory/code-base": "^4.3.109
|
|
28
|
-
"@things-factory/document-template-base": "^4.3.109
|
|
29
|
-
"@things-factory/form-ui": "^4.3.109
|
|
30
|
-
"@things-factory/grist-ui": "^4.3.109
|
|
31
|
-
"@things-factory/i18n-base": "^4.3.109
|
|
32
|
-
"@things-factory/styles": "^4.3.109
|
|
33
|
-
"@things-factory/utils": "^4.3.109
|
|
27
|
+
"@things-factory/code-base": "^4.3.109",
|
|
28
|
+
"@things-factory/document-template-base": "^4.3.109",
|
|
29
|
+
"@things-factory/form-ui": "^4.3.109",
|
|
30
|
+
"@things-factory/grist-ui": "^4.3.109",
|
|
31
|
+
"@things-factory/i18n-base": "^4.3.109",
|
|
32
|
+
"@things-factory/styles": "^4.3.109",
|
|
33
|
+
"@things-factory/utils": "^4.3.109"
|
|
34
34
|
},
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "a1b81fa991795b27a9f30867347a3c1774d2c41b"
|
|
36
36
|
}
|