@genesislcap/pbc-notify-ui 1.0.51 → 1.0.52
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.
|
@@ -49,7 +49,6 @@ export declare class FoundationInboxBase extends GenesisElement {
|
|
|
49
49
|
playPauseAlert(ruleClicked: Rule): Promise<void>;
|
|
50
50
|
deleteAlert(ruleClicked: Rule): Promise<void>;
|
|
51
51
|
openTemplateSubscription(ruleTemplate: any): Promise<void>;
|
|
52
|
-
formatDateStrForMatchCriteria(date
|
|
53
|
-
formatDateForMatchCriteria(date: Date): string;
|
|
52
|
+
formatDateStrForMatchCriteria(date?: string): string;
|
|
54
53
|
}
|
|
55
54
|
//# sourceMappingURL=inbox-base.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inbox-base.d.ts","sourceRoot":"","sources":["../../../../../src/components/foundation-inbox/inbox-base/inbox-base.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,+BAA+B,CAAC;AACrD,OAAO,EAEL,UAAU,EAIX,MAAM,kCAAkC,CAAC;AAE1C,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;AACvD,OAAO,EAAE,cAAc,EAAc,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"inbox-base.d.ts","sourceRoot":"","sources":["../../../../../src/components/foundation-inbox/inbox-base/inbox-base.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,+BAA+B,CAAC;AACrD,OAAO,EAEL,UAAU,EAIX,MAAM,kCAAkC,CAAC;AAE1C,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;AACvD,OAAO,EAAE,cAAc,EAAc,MAAM,uBAAuB,CAAC;AAGnE,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAC/D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AAC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IAO7B,qBAAqB;IAWrB,WAAW;IAaX,YAAY,CAAC,OAAO,EAAE,MAAM;IAI5B,gBAAgB,CAAC,QAAQ,KAAA;IASzB,gBAAgB;IA4BhB,SAAS;IAEH,cAAc,CAAC,WAAW,EAAE,IAAI;IAgBhC,WAAW,CAAC,WAAW,EAAE,IAAI;IAO7B,wBAAwB,CAAC,YAAY,EAAE,GAAG;IAYhD,6BAA6B,CAAC,IAAI,CAAC,EAAE,MAAM;CAG5C"}
|
|
@@ -3,6 +3,8 @@ import { Auth } from '@genesislcap/foundation-comms';
|
|
|
3
3
|
import { CriteriaBuilder, ExpressionBuilder, Serialisers, } from '@genesislcap/foundation-criteria';
|
|
4
4
|
import { showNotificationDialog } from '@genesislcap/foundation-notifications';
|
|
5
5
|
import { GenesisElement, observable } from '@genesislcap/web-core';
|
|
6
|
+
import dayjs from 'dayjs';
|
|
7
|
+
import utc from 'dayjs/plugin/utc';
|
|
6
8
|
import { AlertService } from '../../../services/alert.service';
|
|
7
9
|
import { FoundationInboxService } from '../../../services/inbox.service';
|
|
8
10
|
import { RuleService } from '../../../services/rule.service';
|
|
@@ -10,6 +12,7 @@ import { TemplateService } from '../../../services/template.service';
|
|
|
10
12
|
import { logger } from '../../../utils';
|
|
11
13
|
import { showNotificationError } from '../../foundation-notification-dashboard/notification-dashboard.utils';
|
|
12
14
|
import { InboxTab, RuleStatus, } from '../inbox.types';
|
|
15
|
+
dayjs.extend(utc);
|
|
13
16
|
const criteriaBuilder = () => new CriteriaBuilder();
|
|
14
17
|
const expressionBuilder = (field, value, serialiser) => {
|
|
15
18
|
return new ExpressionBuilder()
|
|
@@ -108,8 +111,7 @@ export class FoundationInboxBase extends GenesisElement {
|
|
|
108
111
|
}
|
|
109
112
|
else {
|
|
110
113
|
// if no toDate is set, then force it to be today
|
|
111
|
-
|
|
112
|
-
filterCriteria.withExpression(expressionBuilder('CREATED_AT', this.formatDateForMatchCriteria(today), Serialisers.dateIsLessEqual));
|
|
114
|
+
filterCriteria.withExpression(expressionBuilder('CREATED_AT', this.formatDateStrForMatchCriteria(), Serialisers.dateIsLessEqual));
|
|
113
115
|
}
|
|
114
116
|
// Refresh the data subscription
|
|
115
117
|
this.inboxService.unsubscribe(this.alertSubscription);
|
|
@@ -210,16 +212,7 @@ export class FoundationInboxBase extends GenesisElement {
|
|
|
210
212
|
}
|
|
211
213
|
// #endregion
|
|
212
214
|
formatDateStrForMatchCriteria(date) {
|
|
213
|
-
|
|
214
|
-
return this.formatDateForMatchCriteria(dateObj);
|
|
215
|
-
}
|
|
216
|
-
formatDateForMatchCriteria(date) {
|
|
217
|
-
const formattedDateString = date.getFullYear() +
|
|
218
|
-
'' +
|
|
219
|
-
('0' + (date.getMonth() + 1)).slice(-2) +
|
|
220
|
-
'' +
|
|
221
|
-
('0' + date.getDate()).slice(-2);
|
|
222
|
-
return formattedDateString;
|
|
215
|
+
return dayjs.utc(date).format('YYYYMMDD');
|
|
223
216
|
}
|
|
224
217
|
}
|
|
225
218
|
__decorate([
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@genesislcap/pbc-notify-ui",
|
|
3
3
|
"description": "Genesis PBC Notify UI",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.52",
|
|
5
5
|
"license": "SEE LICENSE IN license.txt",
|
|
6
6
|
"workspaces": [
|
|
7
7
|
"client"
|
|
@@ -101,6 +101,7 @@
|
|
|
101
101
|
"@genesislcap/vite-builder": "~14",
|
|
102
102
|
"@genesislcap/webpack-builder": "~14",
|
|
103
103
|
"conventional-changelog-conventionalcommits": "^6.1.0",
|
|
104
|
+
"dayjs": "^1.11.7",
|
|
104
105
|
"husky": "9.0.11",
|
|
105
106
|
"lint-prepush": "^2.2.1",
|
|
106
107
|
"lint-staged": "^15.2.2",
|