@genesislcap/pbc-reporting-ui 1.0.382 → 1.0.383
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/dts/new/main/edit-config/base-config/base-config.d.ts +6 -0
- package/dist/dts/new/main/edit-config/base-config/base-config.d.ts.map +1 -1
- package/dist/dts/new/main/edit-config/base-config/base-config.template.d.ts +1 -1
- package/dist/dts/new/main/edit-config/base-config/base-config.template.d.ts.map +1 -1
- package/dist/dts/new/main/generated-reports/generated-reports.d.ts.map +1 -1
- package/dist/dts/new/store/slices/base-config.d.ts +5 -2
- package/dist/dts/new/store/slices/base-config.d.ts.map +1 -1
- package/dist/dts/new/store/slices/types.d.ts +1 -0
- package/dist/dts/new/store/slices/types.d.ts.map +1 -1
- package/dist/dts/new/store/store.d.ts +84 -42
- package/dist/dts/new/store/store.d.ts.map +1 -1
- package/dist/dts/new/types/misc.d.ts +22 -0
- package/dist/dts/new/types/misc.d.ts.map +1 -1
- package/dist/esm/new/main/edit-config/base-config/base-config.js +29 -1
- package/dist/esm/new/main/edit-config/base-config/base-config.template.js +34 -5
- package/dist/esm/new/store/slices/base-config.js +6 -0
- package/dist/esm/new/types/misc.js +11 -0
- package/package.json +1 -1
|
@@ -1,4 +1,10 @@
|
|
|
1
|
+
import { Connect } from '@genesislcap/foundation-comms';
|
|
1
2
|
import { GenesisElement } from '@genesislcap/web-core';
|
|
3
|
+
import { Genesis } from '../../../types';
|
|
2
4
|
export declare class BaseConfig extends GenesisElement {
|
|
5
|
+
connect: Connect;
|
|
6
|
+
fileTemplates: Array<Genesis.FileStorageDataRow>;
|
|
7
|
+
connectedCallback(): void;
|
|
8
|
+
getFileTemplates(): Promise<void>;
|
|
3
9
|
}
|
|
4
10
|
//# sourceMappingURL=base-config.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base-config.d.ts","sourceRoot":"","sources":["../../../../../../src/new/main/edit-config/base-config/base-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,cAAc,
|
|
1
|
+
{"version":3,"file":"base-config.d.ts","sourceRoot":"","sources":["../../../../../../src/new/main/edit-config/base-config/base-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAU,MAAM,+BAA+B,CAAC;AAEhE,OAAO,EAAiB,cAAc,EAAc,MAAM,uBAAuB,CAAC;AAClF,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAIzC,qBAKa,UAAW,SAAQ,cAAc;IACnC,OAAO,EAAG,OAAO,CAAC;IAEf,aAAa,EAAE,KAAK,CAAC,OAAO,CAAC,kBAAkB,CAAC,CAAC;IAE7D,iBAAiB;IAKX,gBAAgB,IAAI,OAAO,CAAC,IAAI,CAAC;CAkBxC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base-config.template.d.ts","sourceRoot":"","sources":["../../../../../../src/new/main/edit-config/base-config/base-config.template.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"base-config.template.d.ts","sourceRoot":"","sources":["../../../../../../src/new/main/edit-config/base-config/base-config.template.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAqC3C,eAAO,MAAM,QAAQ,iEA+DpB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generated-reports.d.ts","sourceRoot":"","sources":["../../../../../src/new/main/generated-reports/generated-reports.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"generated-reports.d.ts","sourceRoot":"","sources":["../../../../../src/new/main/generated-reports/generated-reports.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAuB,MAAM,yBAAyB,CAAC;AACtE,OAAO,EAAE,OAAO,EAAU,MAAM,+BAA+B,CAAC;AAEhE,OAAO,EAAE,iBAAiB,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AAC1F,OAAO,EAAiB,cAAc,EAAQ,MAAM,uBAAuB,CAAC;AAQ5E,qBAKa,gBAAiB,SAAQ,cAAc;IACzC,OAAO,EAAE,OAAO,CAAC;IAC1B,0BAA0B,EAAE,wBAAwB,CAAC;IACrD,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;IAEjC,QAAQ,qGAYN;IAEF,iBAAiB,yBAEf;IAEF,aAAa;IAkEb,cAAc;YA6BA,cAAc;YAkCd,YAAY;CAmC3B"}
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import { PayloadAction } from '@reduxjs/toolkit';
|
|
2
2
|
import { PayloadStateUpdater } from '../../types';
|
|
3
|
-
import { BaseConfig } from './types';
|
|
3
|
+
import { BaseConfig, ReportOutputTypes } from './types';
|
|
4
4
|
export declare const baseSlice: import("@reduxjs/toolkit").Slice<BaseConfig, {
|
|
5
|
-
updateState(state: BaseConfig, action: PayloadStateUpdater<Omit<BaseConfig, 'DESTINATION_IDS'>>): void;
|
|
5
|
+
updateState(state: BaseConfig, action: PayloadStateUpdater<Omit<BaseConfig, 'DESTINATION_IDS' | 'OUTPUT_FORMAT'>>): void;
|
|
6
6
|
setOutputs(state: BaseConfig, action: PayloadAction<{
|
|
7
7
|
ids: string[];
|
|
8
8
|
}>): void;
|
|
9
9
|
loadState(_: BaseConfig, action: PayloadAction<BaseConfig>): BaseConfig;
|
|
10
|
+
setOutputFormat(state: BaseConfig, action: PayloadAction<{
|
|
11
|
+
format: ReportOutputTypes;
|
|
12
|
+
}>): void;
|
|
10
13
|
}, "baseConfig", "baseConfig", {
|
|
11
14
|
getConfig(state: BaseConfig): BaseConfig;
|
|
12
15
|
getConfigTest(state: BaseConfig, test: boolean, test2: boolean): BaseConfig;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base-config.d.ts","sourceRoot":"","sources":["../../../../../src/new/store/slices/base-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"base-config.d.ts","sourceRoot":"","sources":["../../../../../src/new/store/slices/base-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAMxD,eAAO,MAAM,SAAS;uBAKT,UAAU,UACT,oBAAoB,KAAK,UAAU,EAAE,iBAAiB,GAAG,eAAe,CAAC,CAAC;sBAKlE,UAAU,UAAU,cAAc;QAAE,GAAG,EAAE,MAAM,EAAE,CAAA;KAAE,CAAC;iBAGzD,UAAU,UAAU,cAAc,UAAU,CAAC;2BAGnC,UAAU,UAAU,cAAc;QAAE,MAAM,EAAE,iBAAiB,CAAA;KAAE,CAAC;;qBAStE,UAAU;yBAIN,UAAU,QAAQ,OAAO,SAAS,OAAO;EAMhE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/new/store/slices/types.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAE7D,eAAO,MAAM,gBAAgB,uCAAwC,CAAC;AACtE,MAAM,MAAM,oBAAoB,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,CAAC,CAAC;AAErE,eAAO,MAAM,iBAAiB,qCAAsC,CAAC;AACrE,MAAM,MAAM,qBAAqB,GAAG,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,CAAC,CAAC;AAavE,MAAM,MAAM,aAAa,GAAG,GAAG,oBAAoB,IAAI,MAAM,EAAE,CAAC;AAEhE,MAAM,MAAM,iBAAiB,GAAG;IAC9B,c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
|
9
|
+
key: "FILE_NAME";
|
|
10
10
|
value: string;
|
|
11
11
|
} | {
|
|
12
|
-
key: "
|
|
12
|
+
key: "ID";
|
|
13
13
|
value: string;
|
|
14
14
|
} | {
|
|
15
|
-
key: "
|
|
16
|
-
value: NonNullable<"CSV" | "XLSX">;
|
|
17
|
-
} | {
|
|
18
|
-
key: "FILE_NAME";
|
|
15
|
+
key: "DESCRIPTION";
|
|
19
16
|
value: string;
|
|
20
17
|
} | {
|
|
21
18
|
key: "AUTO_DISPATCH";
|
|
22
19
|
value: boolean;
|
|
20
|
+
} | {
|
|
21
|
+
key: "DOCUMENT_TEMPLATE_ID";
|
|
22
|
+
value: string;
|
|
23
23
|
};
|
|
24
24
|
type: string;
|
|
25
25
|
}): void;
|
|
@@ -33,6 +33,12 @@ export declare const store: import("../types").RootStateFromSlices<(import("@red
|
|
|
33
33
|
payload: import("./slices").BaseConfig;
|
|
34
34
|
type: string;
|
|
35
35
|
}): import("./slices").BaseConfig;
|
|
36
|
+
setOutputFormat(state: import("./slices").BaseConfig, action: {
|
|
37
|
+
payload: {
|
|
38
|
+
format: "CSV" | "XLSX";
|
|
39
|
+
};
|
|
40
|
+
type: string;
|
|
41
|
+
}): void;
|
|
36
42
|
}, "baseConfig", "baseConfig", {
|
|
37
43
|
getConfig(state: import("./slices").BaseConfig): import("./slices").BaseConfig;
|
|
38
44
|
getConfigTest(state: import("./slices").BaseConfig, test: boolean, test2: boolean): import("./slices").BaseConfig;
|
|
@@ -130,20 +136,20 @@ export declare const store: import("../types").RootStateFromSlices<(import("@red
|
|
|
130
136
|
key: "NAME";
|
|
131
137
|
value: string;
|
|
132
138
|
} | {
|
|
133
|
-
key: "
|
|
139
|
+
key: "FILE_NAME";
|
|
134
140
|
value: string;
|
|
135
141
|
} | {
|
|
136
|
-
key: "
|
|
142
|
+
key: "ID";
|
|
137
143
|
value: string;
|
|
138
144
|
} | {
|
|
139
|
-
key: "
|
|
140
|
-
value: NonNullable<"CSV" | "XLSX">;
|
|
141
|
-
} | {
|
|
142
|
-
key: "FILE_NAME";
|
|
145
|
+
key: "DESCRIPTION";
|
|
143
146
|
value: string;
|
|
144
147
|
} | {
|
|
145
148
|
key: "AUTO_DISPATCH";
|
|
146
149
|
value: boolean;
|
|
150
|
+
} | {
|
|
151
|
+
key: "DOCUMENT_TEMPLATE_ID";
|
|
152
|
+
value: string;
|
|
147
153
|
};
|
|
148
154
|
type: string;
|
|
149
155
|
}): void;
|
|
@@ -157,6 +163,12 @@ export declare const store: import("../types").RootStateFromSlices<(import("@red
|
|
|
157
163
|
payload: import("./slices").BaseConfig;
|
|
158
164
|
type: string;
|
|
159
165
|
}): import("./slices").BaseConfig;
|
|
166
|
+
setOutputFormat(state: import("./slices").BaseConfig, action: {
|
|
167
|
+
payload: {
|
|
168
|
+
format: "CSV" | "XLSX";
|
|
169
|
+
};
|
|
170
|
+
type: string;
|
|
171
|
+
}): void;
|
|
160
172
|
}, "baseConfig", "baseConfig", {
|
|
161
173
|
getConfig(state: import("./slices").BaseConfig): import("./slices").BaseConfig;
|
|
162
174
|
getConfigTest(state: import("./slices").BaseConfig, test: boolean, test2: boolean): import("./slices").BaseConfig;
|
|
@@ -257,20 +269,20 @@ export declare const store: import("../types").RootStateFromSlices<(import("@red
|
|
|
257
269
|
key: "NAME";
|
|
258
270
|
value: string;
|
|
259
271
|
} | {
|
|
260
|
-
key: "
|
|
272
|
+
key: "FILE_NAME";
|
|
261
273
|
value: string;
|
|
262
274
|
} | {
|
|
263
|
-
key: "
|
|
275
|
+
key: "ID";
|
|
264
276
|
value: string;
|
|
265
277
|
} | {
|
|
266
|
-
key: "
|
|
267
|
-
value: NonNullable<"CSV" | "XLSX">;
|
|
268
|
-
} | {
|
|
269
|
-
key: "FILE_NAME";
|
|
278
|
+
key: "DESCRIPTION";
|
|
270
279
|
value: string;
|
|
271
280
|
} | {
|
|
272
281
|
key: "AUTO_DISPATCH";
|
|
273
282
|
value: boolean;
|
|
283
|
+
} | {
|
|
284
|
+
key: "DOCUMENT_TEMPLATE_ID";
|
|
285
|
+
value: string;
|
|
274
286
|
};
|
|
275
287
|
type: string;
|
|
276
288
|
}): void;
|
|
@@ -284,6 +296,12 @@ export declare const store: import("../types").RootStateFromSlices<(import("@red
|
|
|
284
296
|
payload: import("./slices").BaseConfig;
|
|
285
297
|
type: string;
|
|
286
298
|
}): import("./slices").BaseConfig;
|
|
299
|
+
setOutputFormat(state: import("./slices").BaseConfig, action: {
|
|
300
|
+
payload: {
|
|
301
|
+
format: "CSV" | "XLSX";
|
|
302
|
+
};
|
|
303
|
+
type: string;
|
|
304
|
+
}): void;
|
|
287
305
|
}, "baseConfig", "baseConfig", {
|
|
288
306
|
getConfig(state: import("./slices").BaseConfig): import("./slices").BaseConfig;
|
|
289
307
|
getConfigTest(state: import("./slices").BaseConfig, test: boolean, test2: boolean): import("./slices").BaseConfig;
|
|
@@ -381,20 +399,20 @@ export declare const store: import("../types").RootStateFromSlices<(import("@red
|
|
|
381
399
|
key: "NAME";
|
|
382
400
|
value: string;
|
|
383
401
|
} | {
|
|
384
|
-
key: "
|
|
402
|
+
key: "FILE_NAME";
|
|
385
403
|
value: string;
|
|
386
404
|
} | {
|
|
387
|
-
key: "
|
|
405
|
+
key: "ID";
|
|
388
406
|
value: string;
|
|
389
407
|
} | {
|
|
390
|
-
key: "
|
|
391
|
-
value: NonNullable<"CSV" | "XLSX">;
|
|
392
|
-
} | {
|
|
393
|
-
key: "FILE_NAME";
|
|
408
|
+
key: "DESCRIPTION";
|
|
394
409
|
value: string;
|
|
395
410
|
} | {
|
|
396
411
|
key: "AUTO_DISPATCH";
|
|
397
412
|
value: boolean;
|
|
413
|
+
} | {
|
|
414
|
+
key: "DOCUMENT_TEMPLATE_ID";
|
|
415
|
+
value: string;
|
|
398
416
|
};
|
|
399
417
|
type: string;
|
|
400
418
|
}): void;
|
|
@@ -408,6 +426,12 @@ export declare const store: import("../types").RootStateFromSlices<(import("@red
|
|
|
408
426
|
payload: import("./slices").BaseConfig;
|
|
409
427
|
type: string;
|
|
410
428
|
}): import("./slices").BaseConfig;
|
|
429
|
+
setOutputFormat(state: import("./slices").BaseConfig, action: {
|
|
430
|
+
payload: {
|
|
431
|
+
format: "CSV" | "XLSX";
|
|
432
|
+
};
|
|
433
|
+
type: string;
|
|
434
|
+
}): void;
|
|
411
435
|
}, "baseConfig", "baseConfig", {
|
|
412
436
|
getConfig(state: import("./slices").BaseConfig): import("./slices").BaseConfig;
|
|
413
437
|
getConfigTest(state: import("./slices").BaseConfig, test: boolean, test2: boolean): import("./slices").BaseConfig;
|
|
@@ -505,20 +529,20 @@ export declare const store: import("../types").RootStateFromSlices<(import("@red
|
|
|
505
529
|
key: "NAME";
|
|
506
530
|
value: string;
|
|
507
531
|
} | {
|
|
508
|
-
key: "
|
|
532
|
+
key: "FILE_NAME";
|
|
509
533
|
value: string;
|
|
510
534
|
} | {
|
|
511
|
-
key: "
|
|
535
|
+
key: "ID";
|
|
512
536
|
value: string;
|
|
513
537
|
} | {
|
|
514
|
-
key: "
|
|
515
|
-
value: NonNullable<"CSV" | "XLSX">;
|
|
516
|
-
} | {
|
|
517
|
-
key: "FILE_NAME";
|
|
538
|
+
key: "DESCRIPTION";
|
|
518
539
|
value: string;
|
|
519
540
|
} | {
|
|
520
541
|
key: "AUTO_DISPATCH";
|
|
521
542
|
value: boolean;
|
|
543
|
+
} | {
|
|
544
|
+
key: "DOCUMENT_TEMPLATE_ID";
|
|
545
|
+
value: string;
|
|
522
546
|
};
|
|
523
547
|
type: string;
|
|
524
548
|
}): void;
|
|
@@ -532,6 +556,12 @@ export declare const store: import("../types").RootStateFromSlices<(import("@red
|
|
|
532
556
|
payload: import("./slices").BaseConfig;
|
|
533
557
|
type: string;
|
|
534
558
|
}): import("./slices").BaseConfig;
|
|
559
|
+
setOutputFormat(state: import("./slices").BaseConfig, action: {
|
|
560
|
+
payload: {
|
|
561
|
+
format: "CSV" | "XLSX";
|
|
562
|
+
};
|
|
563
|
+
type: string;
|
|
564
|
+
}): void;
|
|
535
565
|
}, "baseConfig", "baseConfig", {
|
|
536
566
|
getConfig(state: import("./slices").BaseConfig): import("./slices").BaseConfig;
|
|
537
567
|
getConfigTest(state: import("./slices").BaseConfig, test: boolean, test2: boolean): import("./slices").BaseConfig;
|
|
@@ -629,20 +659,20 @@ export declare const store: import("../types").RootStateFromSlices<(import("@red
|
|
|
629
659
|
key: "NAME";
|
|
630
660
|
value: string;
|
|
631
661
|
} | {
|
|
632
|
-
key: "
|
|
662
|
+
key: "FILE_NAME";
|
|
633
663
|
value: string;
|
|
634
664
|
} | {
|
|
635
|
-
key: "
|
|
665
|
+
key: "ID";
|
|
636
666
|
value: string;
|
|
637
667
|
} | {
|
|
638
|
-
key: "
|
|
639
|
-
value: NonNullable<"CSV" | "XLSX">;
|
|
640
|
-
} | {
|
|
641
|
-
key: "FILE_NAME";
|
|
668
|
+
key: "DESCRIPTION";
|
|
642
669
|
value: string;
|
|
643
670
|
} | {
|
|
644
671
|
key: "AUTO_DISPATCH";
|
|
645
672
|
value: boolean;
|
|
673
|
+
} | {
|
|
674
|
+
key: "DOCUMENT_TEMPLATE_ID";
|
|
675
|
+
value: string;
|
|
646
676
|
};
|
|
647
677
|
type: string;
|
|
648
678
|
}): void;
|
|
@@ -656,6 +686,12 @@ export declare const store: import("../types").RootStateFromSlices<(import("@red
|
|
|
656
686
|
payload: import("./slices").BaseConfig;
|
|
657
687
|
type: string;
|
|
658
688
|
}): import("./slices").BaseConfig;
|
|
689
|
+
setOutputFormat(state: import("./slices").BaseConfig, action: {
|
|
690
|
+
payload: {
|
|
691
|
+
format: "CSV" | "XLSX";
|
|
692
|
+
};
|
|
693
|
+
type: string;
|
|
694
|
+
}): void;
|
|
659
695
|
}, "baseConfig", "baseConfig", {
|
|
660
696
|
getConfig(state: import("./slices").BaseConfig): import("./slices").BaseConfig;
|
|
661
697
|
getConfigTest(state: import("./slices").BaseConfig, test: boolean, test2: boolean): import("./slices").BaseConfig;
|
|
@@ -753,20 +789,20 @@ export declare const store: import("../types").RootStateFromSlices<(import("@red
|
|
|
753
789
|
key: "NAME";
|
|
754
790
|
value: string;
|
|
755
791
|
} | {
|
|
756
|
-
key: "
|
|
792
|
+
key: "FILE_NAME";
|
|
757
793
|
value: string;
|
|
758
794
|
} | {
|
|
759
|
-
key: "
|
|
795
|
+
key: "ID";
|
|
760
796
|
value: string;
|
|
761
797
|
} | {
|
|
762
|
-
key: "
|
|
763
|
-
value: NonNullable<"CSV" | "XLSX">;
|
|
764
|
-
} | {
|
|
765
|
-
key: "FILE_NAME";
|
|
798
|
+
key: "DESCRIPTION";
|
|
766
799
|
value: string;
|
|
767
800
|
} | {
|
|
768
801
|
key: "AUTO_DISPATCH";
|
|
769
802
|
value: boolean;
|
|
803
|
+
} | {
|
|
804
|
+
key: "DOCUMENT_TEMPLATE_ID";
|
|
805
|
+
value: string;
|
|
770
806
|
};
|
|
771
807
|
type: string;
|
|
772
808
|
}): void;
|
|
@@ -780,6 +816,12 @@ export declare const store: import("../types").RootStateFromSlices<(import("@red
|
|
|
780
816
|
payload: import("./slices").BaseConfig;
|
|
781
817
|
type: string;
|
|
782
818
|
}): import("./slices").BaseConfig;
|
|
819
|
+
setOutputFormat(state: import("./slices").BaseConfig, action: {
|
|
820
|
+
payload: {
|
|
821
|
+
format: "CSV" | "XLSX";
|
|
822
|
+
};
|
|
823
|
+
type: string;
|
|
824
|
+
}): void;
|
|
783
825
|
}, "baseConfig", "baseConfig", {
|
|
784
826
|
getConfig(state: import("./slices").BaseConfig): import("./slices").BaseConfig;
|
|
785
827
|
getConfigTest(state: import("./slices").BaseConfig, test: boolean, test2: boolean): import("./slices").BaseConfig;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../../../src/new/store/store.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE1C,eAAO,MAAM,eAAe,cAAc,OAAO,KAAU,eAIxD,CAAC;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBACkD,CAAC;AAEjE,MAAM,MAAM,KAAK,GAAG,UAAU,CAAC,OAAO,QAAQ,CAAC,CAAC;AAChD,MAAM,MAAM,WAAW,GAAG,OAAO,QAAQ,CAAC;AAE1C,eAAO,MAAM,eAAe,UAAW,eAAe,SAGrD,CAAC;AAEF,eAAO,MAAM,cAAc,QAAO,eAGhC,CAAC"}
|
|
@@ -18,6 +18,28 @@ export declare namespace Genesis {
|
|
|
18
18
|
};
|
|
19
19
|
})[];
|
|
20
20
|
} & BaseConfig;
|
|
21
|
+
const FileStorageFields: {
|
|
22
|
+
readonly FILE_STORAGE_ID: "FILE_STORAGE_ID";
|
|
23
|
+
readonly STORAGE_MANAGER: "STORAGE_MANAGER";
|
|
24
|
+
readonly FILE_NAME: "FILE_NAME";
|
|
25
|
+
readonly FILE_SIZE: "FILE_SIZE";
|
|
26
|
+
readonly MODIFIED_AT: "MODIFIED_AT";
|
|
27
|
+
readonly MODIFIED_BY: "MODIFIED_BY";
|
|
28
|
+
readonly CREATED_BY: "CREATED_BY";
|
|
29
|
+
readonly CREATED_AT: "CREATED_AT";
|
|
30
|
+
readonly LOCATION_DETAILS: "LOCATION_DETAILS";
|
|
31
|
+
};
|
|
32
|
+
type FileStorageDataRow = {
|
|
33
|
+
[FileStorageFields.FILE_STORAGE_ID]: string;
|
|
34
|
+
[FileStorageFields.STORAGE_MANAGER]: string;
|
|
35
|
+
[FileStorageFields.FILE_NAME]: string;
|
|
36
|
+
[FileStorageFields.FILE_SIZE]: number;
|
|
37
|
+
[FileStorageFields.MODIFIED_AT]: number;
|
|
38
|
+
[FileStorageFields.MODIFIED_BY]: string;
|
|
39
|
+
[FileStorageFields.CREATED_BY]: string;
|
|
40
|
+
[FileStorageFields.CREATED_AT]: number;
|
|
41
|
+
[FileStorageFields.LOCATION_DETAILS]: string;
|
|
42
|
+
};
|
|
21
43
|
}
|
|
22
44
|
export type Result<L, R> = {
|
|
23
45
|
k: 'ok';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"misc.d.ts","sourceRoot":"","sources":["../../../../src/new/types/misc.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,IAAI,aAAa,EAAE,MAAM,aAAa,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAC1F,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnD,yBAAiB,OAAO,CAAC;IAChB,MAAM,iBAAiB,qIAapB,CAAC;IAEX,KAAY,iBAAiB,GAAG,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,CAAC,CAAC;IAEnE,KAAY,WAAW,GAAG,aAAa,GAAG;QACxC,UAAU,CAAC,EACP;YACE,CAAC,GAAG,EAAE,MAAM,GAAG,aAAa,GAAG;gBAAE,WAAW,EAAE,iBAAiB,CAAA;aAAE,CAAC;SACnE,GACD,SAAS,CAAC;KACf,CAAC;IAEF,KAAY,kBAAkB,GAAG;QAC/B,YAAY,EAAE,CAAC,IAAI,CAAC,gBAAgB,CAAC,aAAa,CAAC,EAAE,2BAA2B,CAAC,GAAG;YAClF,yBAAyB,EAAE,IAAI,CAAC,iBAAiB,EAAE,gBAAgB,GAAG,gBAAgB,CAAC,GAAG;gBACxF,WAAW,EAAE,cAAc,CAAC,cAAc,CAAC;aAC5C,CAAC;SACH,CAAC,EAAE,CAAC;KACN,GAAG,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"misc.d.ts","sourceRoot":"","sources":["../../../../src/new/types/misc.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,IAAI,aAAa,EAAE,MAAM,aAAa,CAAC;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AC;QACvC,CAAC,iBAAiB,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;QACvC,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC;KAC9C,CAAC;CACH;AAED,MAAM,MAAM,MAAM,CAAC,CAAC,EAAE,CAAC,IAAI;IAAE,CAAC,EAAE,IAAI,CAAC;IAAC,IAAI,CAAC,EAAE,CAAC,CAAA;CAAE,GAAG;IAAE,CAAC,EAAE,KAAK,CAAC;IAAC,IAAI,CAAC,EAAE,CAAC,CAAA;CAAE,CAAC"}
|
|
@@ -1,9 +1,37 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
|
-
import {
|
|
2
|
+
import { Connect, logger } from '@genesislcap/foundation-comms';
|
|
3
|
+
import { showNotificationToast } from '@genesislcap/foundation-notifications';
|
|
4
|
+
import { customElement, GenesisElement, observable } from '@genesislcap/web-core';
|
|
3
5
|
import { styles } from './base-config.styles';
|
|
4
6
|
import { template } from './base-config.template';
|
|
5
7
|
let BaseConfig = class BaseConfig extends GenesisElement {
|
|
8
|
+
connectedCallback() {
|
|
9
|
+
super.connectedCallback();
|
|
10
|
+
this.getFileTemplates();
|
|
11
|
+
}
|
|
12
|
+
async getFileTemplates() {
|
|
13
|
+
try {
|
|
14
|
+
const response = await this.connect.request('FILE_STORAGE_TEMPLATES');
|
|
15
|
+
if (!response.REPLY || !Array.isArray(response.REPLY))
|
|
16
|
+
throw new Error('Invalid data returned for FILE_STORAGE_TEMPLATES');
|
|
17
|
+
this.fileTemplates = response.REPLY;
|
|
18
|
+
}
|
|
19
|
+
catch (e) {
|
|
20
|
+
showNotificationToast({
|
|
21
|
+
title: 'Edit Report Config',
|
|
22
|
+
body: `Unable to fetch template data.`,
|
|
23
|
+
toast: { type: 'critical' },
|
|
24
|
+
}, 'rapid');
|
|
25
|
+
logger.error(e);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
6
28
|
};
|
|
29
|
+
__decorate([
|
|
30
|
+
Connect
|
|
31
|
+
], BaseConfig.prototype, "connect", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
observable
|
|
34
|
+
], BaseConfig.prototype, "fileTemplates", void 0);
|
|
7
35
|
BaseConfig = __decorate([
|
|
8
36
|
customElement({
|
|
9
37
|
name: 'base-config',
|
|
@@ -1,8 +1,33 @@
|
|
|
1
|
-
import { html, repeat } from '@genesislcap/web-core';
|
|
1
|
+
import { html, repeat, when, whenElse } from '@genesislcap/web-core';
|
|
2
2
|
import { actions, reportOutputFormats, selectors } from '../../../store';
|
|
3
|
+
import { Genesis } from '../../../types';
|
|
4
|
+
const fileTemplatePicker = html `
|
|
5
|
+
${when((_) => selectors.baseConfig.getConfig().OUTPUT_FORMAT !== 'CSV', html `
|
|
6
|
+
<label class="label">Output template</label>
|
|
7
|
+
${whenElse((x) => { var _a; return ((_a = x.fileTemplates) === null || _a === void 0 ? void 0 : _a.length) > 0; }, html `
|
|
8
|
+
<rapid-select
|
|
9
|
+
data-test-id="config-document-template"
|
|
10
|
+
value=${() => selectors.baseConfig.getConfig().DOCUMENT_TEMPLATE_ID}
|
|
11
|
+
@change=${(_, ctx) => actions.baseConfig.updateState({
|
|
12
|
+
key: 'DOCUMENT_TEMPLATE_ID',
|
|
13
|
+
value: ctx.event.target.value,
|
|
14
|
+
})}
|
|
15
|
+
>
|
|
16
|
+
${repeat((x) => x.fileTemplates, html `
|
|
17
|
+
<rapid-option value="${(x) => x[Genesis.FileStorageFields.FILE_STORAGE_ID]}">
|
|
18
|
+
${(x) => x[Genesis.FileStorageFields.FILE_NAME]}
|
|
19
|
+
</rapid-option>
|
|
20
|
+
`)}
|
|
21
|
+
</rapid-select>
|
|
22
|
+
`, html `
|
|
23
|
+
No templates defined on file server.
|
|
24
|
+
`)}
|
|
25
|
+
`)}
|
|
26
|
+
`;
|
|
3
27
|
export const template = html `
|
|
4
28
|
<label class="label">Report name</label>
|
|
5
29
|
<rapid-text-field
|
|
30
|
+
data-test-id="config-report-name"
|
|
6
31
|
placeholder="Enter report name..."
|
|
7
32
|
value="${() => selectors.baseConfig.getConfig().NAME}"
|
|
8
33
|
@change="${(_, ctx) => actions.baseConfig.updateState({
|
|
@@ -12,6 +37,7 @@ export const template = html `
|
|
|
12
37
|
></rapid-text-field>
|
|
13
38
|
<label class="label">Report description</label>
|
|
14
39
|
<rapid-text-area
|
|
40
|
+
data-test-id="config-report-description"
|
|
15
41
|
value="${() => selectors.baseConfig.getConfig().DESCRIPTION}"
|
|
16
42
|
placeholder="Enter report description..."
|
|
17
43
|
@change="${(_, ctx) => actions.baseConfig.updateState({
|
|
@@ -21,6 +47,7 @@ export const template = html `
|
|
|
21
47
|
></rapid-text-area>
|
|
22
48
|
<label class="label">File name</label>
|
|
23
49
|
<rapid-text-field
|
|
50
|
+
data-test-id="config-report-filename"
|
|
24
51
|
placeholder="Enter file name..."
|
|
25
52
|
value="${() => selectors.baseConfig.getConfig().FILE_NAME}"
|
|
26
53
|
@change="${(_, ctx) => actions.baseConfig.updateState({
|
|
@@ -31,8 +58,9 @@ export const template = html `
|
|
|
31
58
|
<div class="auto-dispatch">
|
|
32
59
|
<label class="label">Auto dispatch?</label>
|
|
33
60
|
<rapid-checkbox
|
|
61
|
+
data-test-id="config-report-auto-dispatch"
|
|
34
62
|
checked=${() => { var _a; return (_a = selectors.baseConfig.getConfig().AUTO_DISPATCH) !== null && _a !== void 0 ? _a : false; }}
|
|
35
|
-
@change=${(
|
|
63
|
+
@change=${(_, ctx) => actions.baseConfig.updateState({
|
|
36
64
|
key: 'AUTO_DISPATCH',
|
|
37
65
|
value: ctx.event.target.checked,
|
|
38
66
|
})}
|
|
@@ -40,14 +68,15 @@ export const template = html `
|
|
|
40
68
|
</div>
|
|
41
69
|
<label class="label">File type</label>
|
|
42
70
|
<rapid-select
|
|
71
|
+
data-test-id="config-report-file-type"
|
|
43
72
|
value=${() => selectors.baseConfig.getConfig().OUTPUT_FORMAT}
|
|
44
|
-
@change=${(
|
|
45
|
-
|
|
46
|
-
value: ctx.event.target.value,
|
|
73
|
+
@change=${(_, ctx) => actions.baseConfig.setOutputFormat({
|
|
74
|
+
format: ctx.event.target.value,
|
|
47
75
|
})}
|
|
48
76
|
>
|
|
49
77
|
${repeat(() => reportOutputFormats, html `
|
|
50
78
|
<rapid-option value="${(x) => x}">${(x) => '.' + x.toLowerCase()}</rapid-option>
|
|
51
79
|
`)}
|
|
52
80
|
</rapid-select>
|
|
81
|
+
${fileTemplatePicker}
|
|
53
82
|
`;
|
|
@@ -16,6 +16,12 @@ export const baseSlice = createSlice({
|
|
|
16
16
|
loadState(_, action) {
|
|
17
17
|
return action.payload;
|
|
18
18
|
},
|
|
19
|
+
setOutputFormat(state, action) {
|
|
20
|
+
state.OUTPUT_FORMAT = action.payload.format;
|
|
21
|
+
if (action.payload.format === 'CSV') {
|
|
22
|
+
delete state.DOCUMENT_TEMPLATE_ID;
|
|
23
|
+
}
|
|
24
|
+
},
|
|
19
25
|
},
|
|
20
26
|
selectors: {
|
|
21
27
|
// could add additional params if needed
|
|
@@ -14,4 +14,15 @@ export var Genesis;
|
|
|
14
14
|
'RAW',
|
|
15
15
|
'NANO_TIMESTAMP',
|
|
16
16
|
];
|
|
17
|
+
Genesis.FileStorageFields = {
|
|
18
|
+
FILE_STORAGE_ID: 'FILE_STORAGE_ID',
|
|
19
|
+
STORAGE_MANAGER: 'STORAGE_MANAGER',
|
|
20
|
+
FILE_NAME: 'FILE_NAME',
|
|
21
|
+
FILE_SIZE: 'FILE_SIZE',
|
|
22
|
+
MODIFIED_AT: 'MODIFIED_AT',
|
|
23
|
+
MODIFIED_BY: 'MODIFIED_BY',
|
|
24
|
+
CREATED_BY: 'CREATED_BY',
|
|
25
|
+
CREATED_AT: 'CREATED_AT',
|
|
26
|
+
LOCATION_DETAILS: 'LOCATION_DETAILS',
|
|
27
|
+
};
|
|
17
28
|
})(Genesis || (Genesis = {}));
|
package/package.json
CHANGED