taxtank-core 0.31.49 → 0.31.50
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.
- package/esm2020/lib/db/Models/user/user.mjs +1 -1
- package/esm2020/lib/forms/document-folder/document.form.mjs +2 -2
- package/esm2020/lib/models/user/user.mjs +1 -1
- package/esm2020/lib/pipes/app-currency.pipe.mjs +2 -2
- package/esm2020/lib/services/http/chat/chat.service.mjs +6 -1
- package/fesm2015/taxtank-core.mjs +7 -2
- package/fesm2015/taxtank-core.mjs.map +1 -1
- package/fesm2020/taxtank-core.mjs +6 -2
- package/fesm2020/taxtank-core.mjs.map +1 -1
- package/lib/db/Models/user/user.d.ts +1 -1
- package/lib/services/http/chat/chat.service.d.ts +2 -0
- package/package.json +1 -1
|
@@ -11526,6 +11526,10 @@ class ChatService extends RestService$1 {
|
|
|
11526
11526
|
this.listenChats();
|
|
11527
11527
|
this.listenMessages();
|
|
11528
11528
|
}
|
|
11529
|
+
get(path = this.apiUrl) {
|
|
11530
|
+
// users contact ttAdvisor through intercom support
|
|
11531
|
+
return super.get(path).pipe(map((chats) => chats.filter((chat) => chat.employee.email !== this.environment.ttAdvisor)));
|
|
11532
|
+
}
|
|
11529
11533
|
/**
|
|
11530
11534
|
* Listen chats events
|
|
11531
11535
|
*/
|
|
@@ -19892,7 +19896,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImpor
|
|
|
19892
19896
|
class AppCurrencyPipe extends CurrencyPipe {
|
|
19893
19897
|
transform(value, currencyCode, display, digitsInfo, locale) {
|
|
19894
19898
|
// 2 non-zero decimals by default (43.43344 => 43.43, 0.0000114201553151 => $0.000011)
|
|
19895
|
-
digitsInfo = digitsInfo ?? '1.0-' + (value.toString().match(/[1-9]/)
|
|
19899
|
+
digitsInfo = digitsInfo ?? '1.0-' + (value.toString().match(/[1-9]/)?.index || 2);
|
|
19896
19900
|
return super.transform(value, currencyCode, display, digitsInfo, locale);
|
|
19897
19901
|
}
|
|
19898
19902
|
}
|
|
@@ -20684,7 +20688,7 @@ class DocumentForm extends AbstractForm {
|
|
|
20684
20688
|
constructor(document) {
|
|
20685
20689
|
super({
|
|
20686
20690
|
folder: new FormControl(document.folder, Validators.required),
|
|
20687
|
-
file: new FormControl(document.file)
|
|
20691
|
+
file: new FormControl(document.file, Validators.required),
|
|
20688
20692
|
}, document);
|
|
20689
20693
|
}
|
|
20690
20694
|
}
|