@things-factory/sales 10.1.303 → 10.1.308
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.
|
@@ -67,15 +67,7 @@ let OpportunityList = class OpportunityList extends localize(i18next)(PageView)
|
|
|
67
67
|
};
|
|
68
68
|
}
|
|
69
69
|
render() {
|
|
70
|
-
return html `<ox-
|
|
71
|
-
.gridOf=${() => this.grist}
|
|
72
|
-
name=${i18next.t('title.opportunity-list')}
|
|
73
|
-
list="opportunities"
|
|
74
|
-
axis="opportunity"
|
|
75
|
-
.labelOf=${(row) => [row.name, row.counterparty?.name].filter(Boolean).join(' · ')}
|
|
76
|
-
.actions=${[this.editAction]}
|
|
77
|
-
></ox-assistant-selection-bar>
|
|
78
|
-
<ox-grist
|
|
70
|
+
return html `<ox-grist
|
|
79
71
|
class="page-fill"
|
|
80
72
|
search-mode="term"
|
|
81
73
|
.mode=${isMobileDevice() ? 'CARD' : 'GRID'}
|
|
@@ -84,6 +76,15 @@ let OpportunityList = class OpportunityList extends localize(i18next)(PageView)
|
|
|
84
76
|
.countHandler=${this.countHandler.bind(this)}
|
|
85
77
|
?url-params-sensitive=${this.active}
|
|
86
78
|
>
|
|
79
|
+
<ox-assistant-selection-bar
|
|
80
|
+
slot="selection"
|
|
81
|
+
.gridOf=${() => this.grist}
|
|
82
|
+
name=${i18next.t('title.opportunity-list')}
|
|
83
|
+
list="opportunities"
|
|
84
|
+
axis="opportunity"
|
|
85
|
+
.labelOf=${(row) => [row.name, row.counterparty?.name].filter(Boolean).join(' · ')}
|
|
86
|
+
.actions=${[this.editAction]}
|
|
87
|
+
></ox-assistant-selection-bar>
|
|
87
88
|
<div slot="headroom" class="header">
|
|
88
89
|
<div class="filters"><ox-filters-form without-search></ox-filters-form></div>
|
|
89
90
|
</div>
|
|
@@ -14,6 +14,7 @@ import { isMobileDevice } from '@operato/utils';
|
|
|
14
14
|
import { SELECTION_ROW_PICKER } from '@things-factory/ai-assistant/dist-client/index.js';
|
|
15
15
|
import { counterpartOf, documentAmount, issuePeriodOf } from '@things-factory/invoice/dist-client';
|
|
16
16
|
import { QUOTATION_STATUSES, quotationFilters } from '../list-filters';
|
|
17
|
+
import { previewQuotation } from '../quotation-preview';
|
|
17
18
|
import { quotationStatusWord } from '../quotation-words';
|
|
18
19
|
const today = () => new Date().toLocaleDateString('en-CA');
|
|
19
20
|
/**
|
|
@@ -39,6 +40,17 @@ let QuotationList = class QuotationList extends localize(i18next)(PageView) {
|
|
|
39
40
|
navigate(`quotation-editor?id=${row.id}`);
|
|
40
41
|
}
|
|
41
42
|
};
|
|
43
|
+
/* The picked quotation as it goes out - the same preview the editor and the 360 open (the user, 2026-11-24). */
|
|
44
|
+
this.previewAction = {
|
|
45
|
+
title: i18next.t('button.preview'),
|
|
46
|
+
icon: 'preview',
|
|
47
|
+
single: true,
|
|
48
|
+
action: () => {
|
|
49
|
+
const row = this.grist.selected?.[0];
|
|
50
|
+
if (row?.id)
|
|
51
|
+
previewQuotation({ id: row.id, number: row.number, version: row.version, language: row.language });
|
|
52
|
+
}
|
|
53
|
+
};
|
|
42
54
|
}
|
|
43
55
|
static { this.styles = [WorkSurfacePageStyles, CommonGristStyles, CommonHeaderStyles, ScrollbarStyles]; }
|
|
44
56
|
get context() {
|
|
@@ -61,15 +73,7 @@ let QuotationList = class QuotationList extends localize(i18next)(PageView) {
|
|
|
61
73
|
};
|
|
62
74
|
}
|
|
63
75
|
render() {
|
|
64
|
-
return html `<ox-
|
|
65
|
-
.gridOf=${() => this.grist}
|
|
66
|
-
name=${i18next.t('title.quotation-list')}
|
|
67
|
-
list="quotations"
|
|
68
|
-
axis="quotation"
|
|
69
|
-
.labelOf=${(row) => [row.number && `${row.number} v${row.version}`, counterpartOf(row)].filter(Boolean).join(' · ')}
|
|
70
|
-
.actions=${[this.editAction]}
|
|
71
|
-
></ox-assistant-selection-bar>
|
|
72
|
-
<ox-grist
|
|
76
|
+
return html `<ox-grist
|
|
73
77
|
class="page-fill"
|
|
74
78
|
search-mode="term"
|
|
75
79
|
.mode=${isMobileDevice() ? 'CARD' : 'GRID'}
|
|
@@ -78,6 +82,15 @@ let QuotationList = class QuotationList extends localize(i18next)(PageView) {
|
|
|
78
82
|
.countHandler=${this.countHandler.bind(this)}
|
|
79
83
|
?url-params-sensitive=${this.active}
|
|
80
84
|
>
|
|
85
|
+
<ox-assistant-selection-bar
|
|
86
|
+
slot="selection"
|
|
87
|
+
.gridOf=${() => this.grist}
|
|
88
|
+
name=${i18next.t('title.quotation-list')}
|
|
89
|
+
list="quotations"
|
|
90
|
+
axis="quotation"
|
|
91
|
+
.labelOf=${(row) => [row.number && `${row.number} v${row.version}`, counterpartOf(row)].filter(Boolean).join(' · ')}
|
|
92
|
+
.actions=${[this.previewAction, this.editAction]}
|
|
93
|
+
></ox-assistant-selection-bar>
|
|
81
94
|
<div slot="headroom" class="header">
|
|
82
95
|
<div class="filters"><ox-filters-form without-search></ox-filters-form></div>
|
|
83
96
|
</div>
|
|
@@ -162,6 +175,7 @@ let QuotationList = class QuotationList extends localize(i18next)(PageView) {
|
|
|
162
175
|
number
|
|
163
176
|
version
|
|
164
177
|
status
|
|
178
|
+
language
|
|
165
179
|
direction
|
|
166
180
|
currency
|
|
167
181
|
supplierName
|
|
@@ -69,13 +69,7 @@ let SalesProductList = class SalesProductList extends localize(i18next)(PageView
|
|
|
69
69
|
};
|
|
70
70
|
}
|
|
71
71
|
render() {
|
|
72
|
-
return html `<ox-
|
|
73
|
-
.gridOf=${() => this.grist}
|
|
74
|
-
name=${i18next.t('title.sales-product-list')}
|
|
75
|
-
.assistant=${false}
|
|
76
|
-
.actions=${[{ id: 'delete', title: i18next.t('button.delete'), icon: 'delete_outline', emphasis: { danger: true }, action: () => this.delete() }]}
|
|
77
|
-
></ox-assistant-selection-bar>
|
|
78
|
-
<ox-grist
|
|
72
|
+
return html `<ox-grist
|
|
79
73
|
class="page-fill"
|
|
80
74
|
search-mode="term"
|
|
81
75
|
.mode=${isMobileDevice() ? 'CARD' : 'GRID'}
|
|
@@ -84,6 +78,13 @@ let SalesProductList = class SalesProductList extends localize(i18next)(PageView
|
|
|
84
78
|
.countHandler=${this.countHandler.bind(this)}
|
|
85
79
|
?url-params-sensitive=${this.active}
|
|
86
80
|
>
|
|
81
|
+
<ox-assistant-selection-bar
|
|
82
|
+
slot="selection"
|
|
83
|
+
.gridOf=${() => this.grist}
|
|
84
|
+
name=${i18next.t('title.sales-product-list')}
|
|
85
|
+
.assistant=${false}
|
|
86
|
+
.actions=${[{ id: 'delete', title: i18next.t('button.delete'), icon: 'delete_outline', emphasis: { danger: true }, action: () => this.delete() }]}
|
|
87
|
+
></ox-assistant-selection-bar>
|
|
87
88
|
<div slot="headroom" class="header">
|
|
88
89
|
<div class="filters">
|
|
89
90
|
<ox-filters-form without-search autofocus></ox-filters-form>
|
package/dist-client/route.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function route(page: string): "quotation-
|
|
1
|
+
export default function route(page: string): "quotation-editor" | "quotation-list" | "opportunity-list" | "opportunity-editor" | "sales-product-list" | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@things-factory/sales",
|
|
3
|
-
"version": "10.1.
|
|
3
|
+
"version": "10.1.308",
|
|
4
4
|
"main": "dist-server/index.js",
|
|
5
5
|
"browser": "dist-client/index.js",
|
|
6
6
|
"files": [
|
|
@@ -56,12 +56,12 @@
|
|
|
56
56
|
"@operato/shell": "^10.29.69",
|
|
57
57
|
"@operato/styles": "^10.29.1",
|
|
58
58
|
"@operato/utils": "^10.0.0",
|
|
59
|
-
"@things-factory/ai-assistant": "^10.1.
|
|
60
|
-
"@things-factory/auth-base": "^10.1.
|
|
61
|
-
"@things-factory/biz-base": "^10.1.
|
|
62
|
-
"@things-factory/email-base": "^10.1.
|
|
63
|
-
"@things-factory/invoice": "^10.1.
|
|
64
|
-
"@things-factory/shell": "^10.1.
|
|
59
|
+
"@things-factory/ai-assistant": "^10.1.304",
|
|
60
|
+
"@things-factory/auth-base": "^10.1.304",
|
|
61
|
+
"@things-factory/biz-base": "^10.1.304",
|
|
62
|
+
"@things-factory/email-base": "^10.1.304",
|
|
63
|
+
"@things-factory/invoice": "^10.1.304",
|
|
64
|
+
"@things-factory/shell": "^10.1.304"
|
|
65
65
|
},
|
|
66
|
-
"gitHead": "
|
|
66
|
+
"gitHead": "fb1e5f82471a206f641bcc5b79bbb9db909cc0a1"
|
|
67
67
|
}
|