@cellaware/utils 8.3.5 → 8.3.7
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/dist/chatwms/datagrid.js +8 -8
- package/dist/chatwms/report.d.ts +10 -0
- package/dist/chatwms/report.js +12 -0
- package/package.json +1 -1
package/dist/chatwms/datagrid.js
CHANGED
|
@@ -290,18 +290,18 @@ export async function summarizeConditionMarkdown(condition, localeMessageFn) {
|
|
|
290
290
|
let ruleStr = '';
|
|
291
291
|
switch (condition.rule) {
|
|
292
292
|
case ConditionalFormatRule.BETWEEN:
|
|
293
|
-
ruleStr =
|
|
293
|
+
ruleStr = `${await localeMessageFn(CHATWMS_DEFAULT_LANGUAGE, condition.rule)} ${condition.value} ${await localeMessageFn(CHATWMS_DEFAULT_LANGUAGE, 'conditional-format-rule-and')} ${condition.value2}`;
|
|
294
294
|
break;
|
|
295
295
|
case ConditionalFormatRule.BLANK:
|
|
296
296
|
case ConditionalFormatRule.NOT_BLANK:
|
|
297
|
-
ruleStr =
|
|
297
|
+
ruleStr = `${await localeMessageFn(CHATWMS_DEFAULT_LANGUAGE, condition.rule)}`;
|
|
298
298
|
break;
|
|
299
299
|
default:
|
|
300
300
|
if (condition.dataType === 'text') {
|
|
301
|
-
ruleStr =
|
|
301
|
+
ruleStr = `${await localeMessageFn(CHATWMS_DEFAULT_LANGUAGE, condition.rule)} '${condition.value}'`;
|
|
302
302
|
}
|
|
303
303
|
else {
|
|
304
|
-
ruleStr =
|
|
304
|
+
ruleStr = `${await localeMessageFn(CHATWMS_DEFAULT_LANGUAGE, condition.rule)} ${condition.value}`;
|
|
305
305
|
}
|
|
306
306
|
break;
|
|
307
307
|
}
|
|
@@ -311,18 +311,18 @@ export async function summarizeConditionHtml(condition, localeMessageFn) {
|
|
|
311
311
|
let ruleStr = '';
|
|
312
312
|
switch (condition.rule) {
|
|
313
313
|
case ConditionalFormatRule.BETWEEN:
|
|
314
|
-
ruleStr =
|
|
314
|
+
ruleStr = `${await localeMessageFn(CHATWMS_DEFAULT_LANGUAGE, condition.rule)} ${condition.value} ${await localeMessageFn(CHATWMS_DEFAULT_LANGUAGE, 'conditional-format-rule-and')} ${condition.value2}`;
|
|
315
315
|
break;
|
|
316
316
|
case ConditionalFormatRule.BLANK:
|
|
317
317
|
case ConditionalFormatRule.NOT_BLANK:
|
|
318
|
-
ruleStr =
|
|
318
|
+
ruleStr = `${await localeMessageFn(CHATWMS_DEFAULT_LANGUAGE, condition.rule)}`;
|
|
319
319
|
break;
|
|
320
320
|
default:
|
|
321
321
|
if (condition.dataType === 'text') {
|
|
322
|
-
ruleStr =
|
|
322
|
+
ruleStr = `${await localeMessageFn(CHATWMS_DEFAULT_LANGUAGE, condition.rule)} '${condition.value}'`;
|
|
323
323
|
}
|
|
324
324
|
else {
|
|
325
|
-
ruleStr =
|
|
325
|
+
ruleStr = `${await localeMessageFn(CHATWMS_DEFAULT_LANGUAGE, condition.rule)} ${condition.value}`;
|
|
326
326
|
}
|
|
327
327
|
break;
|
|
328
328
|
}
|
package/dist/chatwms/report.d.ts
CHANGED
|
@@ -77,3 +77,13 @@ export interface ReportUsage {
|
|
|
77
77
|
datetime: Date;
|
|
78
78
|
customerLevel?: boolean;
|
|
79
79
|
}
|
|
80
|
+
export interface ReportSchedule {
|
|
81
|
+
scheduleId: string;
|
|
82
|
+
reportId: string;
|
|
83
|
+
cronExpression: string;
|
|
84
|
+
popup?: boolean;
|
|
85
|
+
emails?: string[];
|
|
86
|
+
clientId: string;
|
|
87
|
+
userId: string;
|
|
88
|
+
}
|
|
89
|
+
export declare function initReportSchedule(): ReportSchedule;
|
package/dist/chatwms/report.js
CHANGED
|
@@ -31,3 +31,15 @@ export function initReportLineResult() {
|
|
|
31
31
|
chartRows: []
|
|
32
32
|
};
|
|
33
33
|
}
|
|
34
|
+
export function initReportSchedule() {
|
|
35
|
+
return {
|
|
36
|
+
scheduleId: '',
|
|
37
|
+
reportId: '',
|
|
38
|
+
cronExpression: '',
|
|
39
|
+
popup: false,
|
|
40
|
+
emails: [],
|
|
41
|
+
// subscriptions: [],
|
|
42
|
+
clientId: '',
|
|
43
|
+
userId: ''
|
|
44
|
+
};
|
|
45
|
+
}
|