@hitsoft/e-donusum 1.0.63 → 1.0.64

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.
Files changed (46) hide show
  1. package/config/providers/hit-providers/auto-send-rule-route.provider.d.ts +9 -0
  2. package/esm2020/config/e-donusum-config.module.mjs +3 -1
  3. package/esm2020/config/providers/auto-send-rule-doc-type-route.provider.mjs +2 -2
  4. package/esm2020/config/providers/auto-send-rule-route.provider.mjs +2 -2
  5. package/esm2020/config/providers/auto-send-rule-scenario-route.provider.mjs +2 -2
  6. package/esm2020/config/providers/hit-providers/auto-send-rule-route.provider.mjs +20 -0
  7. package/esm2020/lib/auto-send-rules/auto-send-rule/auto-send-rule-routing.module.mjs +15 -3
  8. package/esm2020/lib/auto-send-rules/auto-send-rule/components/auto-send-rule.component.mjs +5 -4
  9. package/esm2020/lib/components/hit-auto-send-rules/hit-auto-send-rule.component.mjs +297 -0
  10. package/esm2020/lib/components/hit-auto-send-rules/hit-auto-send-rule.module.mjs +73 -0
  11. package/esm2020/lib/components/hit-document-serial/hit-document-serial.component.mjs +28 -18
  12. package/esm2020/lib/despatches/despatch/despatch.module.mjs +1 -1
  13. package/esm2020/lib/e-donusum-routing.module.mjs +3 -1
  14. package/esm2020/lib/e-donusum.module.mjs +6 -1
  15. package/esm2020/lib/hit-proxy/hit-auto-send-rule-doc-types/hit-auto-send-rule-doc-type.service.mjs +23 -0
  16. package/esm2020/lib/hit-proxy/hit-auto-send-rule-scenarios/hit-auto-send-rule-scenario.service.mjs +23 -0
  17. package/esm2020/lib/hit-proxy/hit-auto-send-rules/hit-auto-send-rule.service.mjs +59 -0
  18. package/esm2020/lib/hit-proxy/hit-auto-send-rules/models.mjs +2 -0
  19. package/esm2020/lib/hit-proxy/hit-document-serials/hit-document-serial.service.mjs +6 -1
  20. package/esm2020/lib/invoices/invoice/invoice.module.mjs +1 -1
  21. package/esm2020/lib/proxy/auto-send-rule-doc-types/index.mjs +3 -0
  22. package/esm2020/lib/proxy/auto-send-rule-scenarios/index.mjs +3 -0
  23. package/esm2020/lib/proxy/auto-send-rules/auto-send-rule.service.mjs +2 -2
  24. package/esm2020/lib/proxy/auto-send-rules/index.mjs +3 -0
  25. package/esm2020/lib/proxy/auto-send-rules/models.mjs +1 -1
  26. package/fesm2015/hitsoft-e-donusum-config.mjs +141 -122
  27. package/fesm2015/hitsoft-e-donusum-config.mjs.map +1 -1
  28. package/fesm2015/hitsoft-e-donusum.mjs +493 -26
  29. package/fesm2015/hitsoft-e-donusum.mjs.map +1 -1
  30. package/fesm2020/hitsoft-e-donusum-config.mjs +141 -122
  31. package/fesm2020/hitsoft-e-donusum-config.mjs.map +1 -1
  32. package/fesm2020/hitsoft-e-donusum.mjs +490 -26
  33. package/fesm2020/hitsoft-e-donusum.mjs.map +1 -1
  34. package/lib/components/hit-auto-send-rules/hit-auto-send-rule.component.d.ts +70 -0
  35. package/lib/components/hit-auto-send-rules/hit-auto-send-rule.module.d.ts +15 -0
  36. package/lib/components/hit-document-serial/hit-document-serial.component.d.ts +4 -1
  37. package/lib/hit-proxy/hit-auto-send-rule-doc-types/hit-auto-send-rule-doc-type.service.d.ts +11 -0
  38. package/lib/hit-proxy/hit-auto-send-rule-scenarios/hit-auto-send-rule-scenario.service.d.ts +11 -0
  39. package/lib/hit-proxy/hit-auto-send-rules/hit-auto-send-rule.service.d.ts +23 -0
  40. package/lib/hit-proxy/hit-auto-send-rules/models.d.ts +34 -0
  41. package/lib/hit-proxy/hit-document-serials/hit-document-serial.service.d.ts +1 -0
  42. package/lib/proxy/auto-send-rule-doc-types/index.d.ts +2 -0
  43. package/lib/proxy/auto-send-rule-scenarios/index.d.ts +2 -0
  44. package/lib/proxy/auto-send-rules/index.d.ts +2 -0
  45. package/lib/proxy/auto-send-rules/models.d.ts +4 -0
  46. package/package.json +1 -1
@@ -0,0 +1,70 @@
1
+ import { ListService, TrackByService } from '@abp/ng.core';
2
+ import { ConfirmationService, ToasterService } from '@abp/ng.theme.shared';
3
+ import { ChangeDetectorRef, OnInit } from '@angular/core';
4
+ import { FormBuilder, FormGroup } from '@angular/forms';
5
+ import { DxDataGridComponent } from 'devextreme-angular';
6
+ import { HitNoteRulesService } from '../../hit-proxy/hit-note-rules/hit-note-rule.service';
7
+ import { AutoSendRuleDto, AutoSendRuleWithNavigationPropertiesDto } from '../../proxy/auto-send-rules';
8
+ import { HitAutoSendRulesService } from '../../hit-proxy/hit-auto-send-rules/hit-auto-send-rule.service';
9
+ import { HitAutoSendRuleDocTypesService } from '../../hit-proxy/hit-auto-send-rule-doc-types/hit-auto-send-rule-doc-type.service';
10
+ import { HitAutoSendRuleScenariosService } from '../../hit-proxy/hit-auto-send-rule-scenarios/hit-auto-send-rule-scenario.service';
11
+ import { HitDocumentSerialService } from '../../hit-proxy/hit-document-serials/hit-document-serial.service';
12
+ import * as i0 from "@angular/core";
13
+ export declare class HitAutoSendRuleComponent implements OnInit {
14
+ readonly list: ListService;
15
+ readonly track: TrackByService;
16
+ readonly service: HitAutoSendRulesService;
17
+ private confirmation;
18
+ private readonly toasterService;
19
+ private fb;
20
+ private ref;
21
+ private readonly noteRulesService;
22
+ private readonly documentSerialService;
23
+ private readonly autoSendRuleDocTypesService;
24
+ private readonly autoSendRuleScenariosService;
25
+ dxAutoSendRuleInstance: DxDataGridComponent;
26
+ dxScenarioInstance: DxDataGridComponent;
27
+ dxDocTypeInstance: DxDataGridComponent;
28
+ dxParamInstance: DxDataGridComponent;
29
+ autoSendRuleDataSource: any;
30
+ docTypeDataSource: any;
31
+ scenarioDataSource: any;
32
+ form: FormGroup;
33
+ enterPressed: boolean;
34
+ isModalBusy: boolean;
35
+ isModalOpen: boolean;
36
+ htmlMentionDataSource: any[];
37
+ tablesDataSource: any[];
38
+ autoSendTypesDataSource: any[];
39
+ documentSerialGridBoxValue: any;
40
+ isDocumentSerialGridBoxOpened: boolean;
41
+ serialCodes: any;
42
+ serialCodesForLookup: any;
43
+ selected?: AutoSendRuleDto;
44
+ selectedDocTypes: any[];
45
+ selectedScenarios: any[];
46
+ previewDataSource: [];
47
+ paramsDataSource: any[];
48
+ isParameterless: boolean;
49
+ isModalBusyPreview: boolean;
50
+ isModalOpenPreview: boolean;
51
+ constructor(list: ListService, track: TrackByService, service: HitAutoSendRulesService, confirmation: ConfirmationService, toasterService: ToasterService, fb: FormBuilder, ref: ChangeDetectorRef, noteRulesService: HitNoteRulesService, documentSerialService: HitDocumentSerialService, autoSendRuleDocTypesService: HitAutoSendRuleDocTypesService, autoSendRuleScenariosService: HitAutoSendRuleScenariosService);
52
+ ngOnInit(): void;
53
+ buildForm(): void;
54
+ hideForm(): void;
55
+ showForm(): void;
56
+ submitForm(): void;
57
+ create(): void;
58
+ update(record: AutoSendRuleWithNavigationPropertiesDto): void;
59
+ delete(record: AutoSendRuleWithNavigationPropertiesDto): void;
60
+ documentSerialGridBox_displayExpr(item: any): string;
61
+ onDocumentSerialGridBoxOptionChanged(e: any): void;
62
+ serialTypeChanged(): void;
63
+ previewQuery(): void;
64
+ runQuery(): void;
65
+ handleKeyDown(event: KeyboardEvent): void;
66
+ stripHTML(input: string): string;
67
+ checkTableAfterFrom(query: string): boolean;
68
+ static ɵfac: i0.ɵɵFactoryDeclaration<HitAutoSendRuleComponent, never>;
69
+ static ɵcmp: i0.ɵɵComponentDeclaration<HitAutoSendRuleComponent, "lib-auto-send-rule", never, {}, {}, never, never, false>;
70
+ }
@@ -0,0 +1,15 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./hit-auto-send-rule.component";
3
+ import * as i2 from "@abp/ng.core";
4
+ import * as i3 from "@abp/ng.theme.shared";
5
+ import * as i4 from "@volo/abp.commercial.ng.ui";
6
+ import * as i5 from "@ngx-validate/core";
7
+ import * as i6 from "@ng-bootstrap/ng-bootstrap";
8
+ import * as i7 from "devextreme-angular";
9
+ import * as i8 from "@abp/ng.components/page";
10
+ export declare class HitAutoSendRuleModule {
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<HitAutoSendRuleModule, never>;
12
+ static ɵmod: i0.ɵɵNgModuleDeclaration<HitAutoSendRuleModule, [typeof i1.HitAutoSendRuleComponent], [typeof i2.CoreModule, typeof i3.ThemeSharedModule, typeof i4.CommercialUiModule, typeof i5.NgxValidateCoreModule, typeof i6.NgbCollapseModule, typeof i6.NgbDatepickerModule, typeof i6.NgbDropdownModule, typeof i7.DxDataGridModule, typeof i7.DxTextAreaModule, typeof i7.DxTextBoxModule, typeof i7.DxHtmlEditorModule, typeof i7.DxSelectBoxModule, typeof i7.DxLookupModule, typeof i7.DxTabPanelModule, typeof i8.PageModule, typeof i7.DxDropDownBoxModule], never>;
13
+ static ɵinj: i0.ɵɵInjectorDeclaration<HitAutoSendRuleModule>;
14
+ }
15
+ export declare function loadHitAutoSendRuleModuleAsChild(): Promise<typeof HitAutoSendRuleModule>;
@@ -5,6 +5,7 @@ import { DxDataGridComponent } from 'devextreme-angular/ui/data-grid';
5
5
  import { DocumentSerialDto, DocumentSerialService } from '../../proxy/document-serials';
6
6
  import { HitDocumentSerialService } from '../../hit-proxy/hit-document-serials/hit-document-serial.service';
7
7
  import { HitXsltFormatService } from '../../hit-proxy/hit-xslt-formats/hit-xslt-format.service';
8
+ import { HitParamsGeneralsService } from '../../hit-proxy/hit-params-generals/hit-params-general.service';
8
9
  import * as i0 from "@angular/core";
9
10
  export declare class HitDocumentSerialComponent implements OnInit {
10
11
  private readonly toasterService;
@@ -12,15 +13,17 @@ export declare class HitDocumentSerialComponent implements OnInit {
12
13
  private readonly service;
13
14
  private readonly hitDocumentSerialService;
14
15
  private readonly hitXsltFormatService;
16
+ private readonly hitParamsGeneral;
15
17
  private fb;
16
18
  dxDocumentSerialInstance: DxDataGridComponent;
17
- constructor(toasterService: ToasterService, confirmation: ConfirmationService, service: DocumentSerialService, hitDocumentSerialService: HitDocumentSerialService, hitXsltFormatService: HitXsltFormatService, fb: FormBuilder);
19
+ constructor(toasterService: ToasterService, confirmation: ConfirmationService, service: DocumentSerialService, hitDocumentSerialService: HitDocumentSerialService, hitXsltFormatService: HitXsltFormatService, hitParamsGeneral: HitParamsGeneralsService, fb: FormBuilder);
18
20
  documentSerialDataSource: any;
19
21
  typesDataSource: any[];
20
22
  form: FormGroup;
21
23
  isModalBusy: boolean;
22
24
  isModalOpen: boolean;
23
25
  selected?: DocumentSerialDto;
26
+ paramsGeneral: any;
24
27
  ngOnInit(): void;
25
28
  create(): void;
26
29
  showForm(): void;
@@ -0,0 +1,11 @@
1
+ import { RestService } from "@abp/ng.core";
2
+ import { AutoSendRuleDocTypeDto } from "../../proxy/auto-send-rule-doc-types";
3
+ import * as i0 from "@angular/core";
4
+ export declare class HitAutoSendRuleDocTypesService {
5
+ private restService;
6
+ apiName: string;
7
+ getSelectedDocTypes: (autoSendRuleId: string) => import("rxjs").Observable<AutoSendRuleDocTypeDto[]>;
8
+ constructor(restService: RestService);
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<HitAutoSendRuleDocTypesService, never>;
10
+ static ɵprov: i0.ɵɵInjectableDeclaration<HitAutoSendRuleDocTypesService>;
11
+ }
@@ -0,0 +1,11 @@
1
+ import { RestService } from "@abp/ng.core";
2
+ import { AutoSendRuleScenarioDto } from "../../proxy/auto-send-rule-scenarios";
3
+ import * as i0 from "@angular/core";
4
+ export declare class HitAutoSendRuleScenariosService {
5
+ private restService;
6
+ apiName: string;
7
+ getSelectedScenarios: (autoSendRuleId: string) => import("rxjs").Observable<AutoSendRuleScenarioDto[]>;
8
+ constructor(restService: RestService);
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<HitAutoSendRuleScenariosService, never>;
10
+ static ɵprov: i0.ɵɵInjectableDeclaration<HitAutoSendRuleScenariosService>;
11
+ }
@@ -0,0 +1,23 @@
1
+ import { RestService } from "@abp/ng.core";
2
+ import { DevexpressRestService } from "../devexpress-query-builder/devexpress-query-builder";
3
+ import { HitAutoSendRuleCreateDto, HitAutoSendRuleUpdateDto, PreviewAutoSendRuleRequestDto } from "./models";
4
+ import { EnumDto } from "../hit-xslt-formats/models";
5
+ import { AutoSendRuleDto } from "../../proxy/auto-send-rules";
6
+ import * as i0 from "@angular/core";
7
+ export declare class HitAutoSendRulesService {
8
+ private restService;
9
+ private devexService;
10
+ apiName: string;
11
+ LoadAutoSendRules: import("devextreme-aspnet-data-nojquery").CustomStore;
12
+ create: (input: HitAutoSendRuleCreateDto) => import("rxjs").Observable<AutoSendRuleDto>;
13
+ update: (id: string, input: HitAutoSendRuleUpdateDto) => import("rxjs").Observable<AutoSendRuleDto>;
14
+ delete: (id: string) => import("rxjs").Observable<void>;
15
+ LoadDocTypes: import("devextreme-aspnet-data-nojquery").CustomStore;
16
+ LoadScenarios: import("devextreme-aspnet-data-nojquery").CustomStore;
17
+ getParamNames: () => import("rxjs").Observable<EnumDto[]>;
18
+ previewRuleResult: (requestDto: PreviewAutoSendRuleRequestDto) => import("rxjs").Observable<any>;
19
+ getTypes: () => import("rxjs").Observable<EnumDto[]>;
20
+ constructor(restService: RestService, devexService: DevexpressRestService);
21
+ static ɵfac: i0.ɵɵFactoryDeclaration<HitAutoSendRulesService, never>;
22
+ static ɵprov: i0.ɵɵInjectableDeclaration<HitAutoSendRulesService>;
23
+ }
@@ -0,0 +1,34 @@
1
+ import { AutoSendRuleDocTypeCreateDto, AutoSendRuleDocTypeUpdateDto } from "../../proxy/auto-send-rule-doc-types";
2
+ import { AutoSendRuleScenarioCreateDto, AutoSendRuleScenarioUpdateDto } from "../../proxy/auto-send-rule-scenarios";
3
+ import { AutoSendRuleCreateDto, AutoSendRuleUpdateDto } from "../../proxy/auto-send-rules";
4
+ export interface AutoSendRuleCreateOrUpdateDto extends AutoSendRuleUpdateDto {
5
+ id: string;
6
+ }
7
+ export interface HitAutoSendRuleCreateDto {
8
+ autoSendRule: AutoSendRuleCreateOrUpdateDto;
9
+ autoSendRuleScenarios: AutoSendRuleScenarioCreateDto[];
10
+ autoSendRuleDocTypes: AutoSendRuleDocTypeCreateDto[];
11
+ }
12
+ export interface HitAutoSendRuleUpdateDto {
13
+ autoSendRule: AutoSendRuleCreateOrUpdateDto;
14
+ autoSendRuleScenarios: HitAutoSendRuleScenarioUpdateDto[];
15
+ autoSendRuleDocTypes: HitAutoSendRuleDocTypeUpdateDto[];
16
+ }
17
+ export interface HitAutoSendRuleDocTypeUpdateDto extends AutoSendRuleDocTypeUpdateDto {
18
+ id: string;
19
+ }
20
+ export interface HitAutoSendRuleScenarioUpdateDto extends AutoSendRuleScenarioUpdateDto {
21
+ id: string;
22
+ }
23
+ export interface EnumDto {
24
+ id: number;
25
+ displayName: string;
26
+ }
27
+ export interface PreviewAutoSendRuleRequestDto {
28
+ autoSendRule: AutoSendRuleCreateDto;
29
+ ruleParameters: RuleParameters[];
30
+ }
31
+ export interface RuleParameters {
32
+ paramName: string;
33
+ paramValue: string;
34
+ }
@@ -6,6 +6,7 @@ export declare class HitDocumentSerialService {
6
6
  private devexService;
7
7
  apiName: string;
8
8
  LoadDocumentSerials: import("devextreme-aspnet-data-nojquery").CustomStore;
9
+ LoadDocumentSerialsByType: (documentType: number) => import("devextreme-aspnet-data-nojquery").CustomStore;
9
10
  ListActiveSeriesForDocument: (eDocType: number) => import("rxjs").Observable<any>;
10
11
  constructor(restService: RestService, devexService: DevexpressRestService);
11
12
  static ɵfac: i0.ɵɵFactoryDeclaration<HitDocumentSerialService, never>;
@@ -0,0 +1,2 @@
1
+ export * from './auto-send-rule-doc-type.service';
2
+ export * from './models';
@@ -0,0 +1,2 @@
1
+ export * from './auto-send-rule-scenario.service';
2
+ export * from './models';
@@ -0,0 +1,2 @@
1
+ export * from './auto-send-rule.service';
2
+ export * from './models';
@@ -9,6 +9,7 @@ export interface AutoSendRuleCreateDto {
9
9
  isPassive?: boolean;
10
10
  desc?: string;
11
11
  noteQueryHTML?: string;
12
+ isAutoSend?: boolean;
12
13
  documentSerialId: string;
13
14
  }
14
15
  export interface AutoSendRuleDto extends FullAuditedEntityDto<string> {
@@ -20,6 +21,7 @@ export interface AutoSendRuleDto extends FullAuditedEntityDto<string> {
20
21
  isPassive?: boolean;
21
22
  desc?: string;
22
23
  noteQueryHTML?: string;
24
+ isAutoSend?: boolean;
23
25
  documentSerialId: string;
24
26
  concurrencyStamp?: string;
25
27
  }
@@ -32,6 +34,7 @@ export interface AutoSendRuleUpdateDto {
32
34
  isPassive?: boolean;
33
35
  desc?: string;
34
36
  noteQueryHTML?: string;
37
+ isAutoSend?: boolean;
35
38
  documentSerialId: string;
36
39
  concurrencyStamp?: string;
37
40
  }
@@ -52,5 +55,6 @@ export interface GetAutoSendRulesInput extends PagedAndSortedResultRequestDto {
52
55
  isPassive?: boolean;
53
56
  desc?: string;
54
57
  noteQueryHTML?: string;
58
+ isAutoSend?: boolean;
55
59
  documentSerialId?: string;
56
60
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hitsoft/e-donusum",
3
- "version": "1.0.63",
3
+ "version": "1.0.64",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=9",
6
6
  "@angular/core": ">=9",