@mj-biz-apps/contracts-ng 0.2.0 → 0.4.0
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/lib/form-panels/contract-form.panels.d.ts +111 -0
- package/dist/lib/form-panels/contract-form.panels.d.ts.map +1 -0
- package/dist/lib/form-panels/contract-form.panels.js +1002 -0
- package/dist/lib/form-panels/contract-form.panels.js.map +1 -0
- package/dist/lib/form-panels/contract-form.policy.d.ts +5 -0
- package/dist/lib/form-panels/contract-form.policy.d.ts.map +1 -0
- package/dist/lib/form-panels/contract-form.policy.js +33 -0
- package/dist/lib/form-panels/contract-form.policy.js.map +1 -0
- package/dist/lib/form-panels/contract.panels.d.ts +55 -3
- package/dist/lib/form-panels/contract.panels.d.ts.map +1 -1
- package/dist/lib/form-panels/contract.panels.js +619 -362
- package/dist/lib/form-panels/contract.panels.js.map +1 -1
- package/dist/lib/form-panels/organization.panels.d.ts +4 -13
- package/dist/lib/form-panels/organization.panels.d.ts.map +1 -1
- package/dist/lib/form-panels/organization.panels.js +54 -62
- package/dist/lib/form-panels/organization.panels.js.map +1 -1
- package/dist/lib/form-panels/person.panels.d.ts +14 -0
- package/dist/lib/form-panels/person.panels.d.ts.map +1 -0
- package/dist/lib/form-panels/person.panels.js +108 -0
- package/dist/lib/form-panels/person.panels.js.map +1 -0
- package/dist/lib/form-panels/supersede.panel.d.ts +29 -3
- package/dist/lib/form-panels/supersede.panel.d.ts.map +1 -1
- package/dist/lib/form-panels/supersede.panel.js +81 -23
- package/dist/lib/form-panels/supersede.panel.js.map +1 -1
- package/dist/lib/pages/contracts-dashboard.page.d.ts +37 -17
- package/dist/lib/pages/contracts-dashboard.page.d.ts.map +1 -1
- package/dist/lib/pages/contracts-dashboard.page.js +365 -63
- package/dist/lib/pages/contracts-dashboard.page.js.map +1 -1
- package/dist/lib/sections/section-shell.component.js +2 -2
- package/dist/public-api.d.ts +3 -1
- package/dist/public-api.d.ts.map +1 -1
- package/dist/public-api.js +15 -4
- package/dist/public-api.js.map +1 -1
- package/package.json +2 -3
- package/dist/lib/form-panels/record-files.panel.d.ts +0 -151
- package/dist/lib/form-panels/record-files.panel.d.ts.map +0 -1
- package/dist/lib/form-panels/record-files.panel.js +0 -1046
- package/dist/lib/form-panels/record-files.panel.js.map +0 -1
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import { BaseFormPanel } from '@memberjunction/ng-base-forms';
|
|
2
|
+
import type { AfterDataLoadEventArgs } from '@memberjunction/ng-entity-viewer';
|
|
3
|
+
import { ContractEntity, type ContractState } from '@mj-biz-apps/contracts-entities';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
type ContractFieldType = 'textbox' | 'textarea' | 'number' | 'datepicker' | 'checkbox' | 'select' | 'autocomplete' | 'code' | 'dropdownlist' | 'numerictextbox';
|
|
6
|
+
interface ContractFieldSpec {
|
|
7
|
+
name: string;
|
|
8
|
+
type: ContractFieldType;
|
|
9
|
+
link?: 'Record' | 'URL';
|
|
10
|
+
span?: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Never editable, even in Edit mode — the SERVER owns this value (issue #28 item 18).
|
|
13
|
+
*
|
|
14
|
+
* Distinct from a field the API happens to reject: these render as an input a person can type
|
|
15
|
+
* into, and the typing is silently discarded or overwritten on save. `ContractNumber` is minted
|
|
16
|
+
* under a lock in `assignContractNumber()`, `HasModifications` is settled by the server's
|
|
17
|
+
* `ValidateAsync()`, and `SupersededByContractID` is written only by `Contracts.Supersede` on the
|
|
18
|
+
* SUCCESSOR — editing it here would set the opposite direction from the Re-papering panel.
|
|
19
|
+
*/
|
|
20
|
+
readOnly?: boolean;
|
|
21
|
+
}
|
|
22
|
+
declare function dateLabel(d: Date | string | null | undefined): string;
|
|
23
|
+
export declare class MJCContractOverviewPanel extends BaseFormPanel<ContractEntity> {
|
|
24
|
+
dateLabel: typeof dateLabel;
|
|
25
|
+
get State(): ContractState;
|
|
26
|
+
get TypeName(): string;
|
|
27
|
+
get CustomerName(): string;
|
|
28
|
+
get ContactName(): string;
|
|
29
|
+
get CompanyName(): string;
|
|
30
|
+
get TemplateName(): string;
|
|
31
|
+
get IncreaseLabel(): string;
|
|
32
|
+
DaysLabel(n: number | null | undefined): string;
|
|
33
|
+
get StateTone(): 'success' | 'warning' | 'muted';
|
|
34
|
+
get EndClock(): string;
|
|
35
|
+
get EndTone(): 'success' | 'warning' | 'muted';
|
|
36
|
+
get NoticeClock(): string;
|
|
37
|
+
get NoticeTone(): 'success' | 'warning' | 'muted';
|
|
38
|
+
get HasSource(): boolean;
|
|
39
|
+
get CanOpenSource(): boolean;
|
|
40
|
+
get SourceLabel(): string;
|
|
41
|
+
get Health(): string[];
|
|
42
|
+
get NextMove(): string | null;
|
|
43
|
+
OpenCustomer(event: MouseEvent): void;
|
|
44
|
+
OpenContact(event: MouseEvent): void;
|
|
45
|
+
OpenSource(event: MouseEvent): void;
|
|
46
|
+
private open;
|
|
47
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MJCContractOverviewPanel, never>;
|
|
48
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MJCContractOverviewPanel, "mjc-contract-overview-panel", never, {}, {}, never, never, true, never>;
|
|
49
|
+
}
|
|
50
|
+
export declare class MJCContractAgreementPanel extends BaseFormPanel<ContractEntity> {
|
|
51
|
+
readonly Fields: ContractFieldSpec[];
|
|
52
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MJCContractAgreementPanel, never>;
|
|
53
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MJCContractAgreementPanel, "mjc-contract-agreement-panel", never, {}, {}, never, never, true, never>;
|
|
54
|
+
}
|
|
55
|
+
export declare class MJCContractPartiesPanel extends BaseFormPanel<ContractEntity> {
|
|
56
|
+
/**
|
|
57
|
+
* Record links on these fields emit `Navigate` from `mj-form-field`. That output must be
|
|
58
|
+
* forwarded to `FormComponent.OnFormNavigate`, which Explorer maps onto
|
|
59
|
+
* `NavigationService.OpenEntityRecord`. Without the binding the cells look like links and
|
|
60
|
+
* do nothing — Overview's customer/contact buttons already go through this path.
|
|
61
|
+
*/
|
|
62
|
+
readonly Fields: ContractFieldSpec[];
|
|
63
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MJCContractPartiesPanel, never>;
|
|
64
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MJCContractPartiesPanel, "mjc-contract-parties-panel", never, {}, {}, never, never, true, never>;
|
|
65
|
+
}
|
|
66
|
+
export declare class MJCContractNotesPanel extends BaseFormPanel<ContractEntity> {
|
|
67
|
+
readonly Fields: ContractFieldSpec[];
|
|
68
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MJCContractNotesPanel, never>;
|
|
69
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MJCContractNotesPanel, "mjc-contract-notes-panel", never, {}, {}, never, never, true, never>;
|
|
70
|
+
}
|
|
71
|
+
export declare class MJCContractProvenanceFieldsPanel extends BaseFormPanel<ContractEntity> {
|
|
72
|
+
/**
|
|
73
|
+
* READ-ONLY, and the section KEPT — a deliberate departure from issue #28 item 18.
|
|
74
|
+
*
|
|
75
|
+
* Item 18 says to hide this section entirely, on the stated grounds that the hero's Source Deal
|
|
76
|
+
* link (item 1) replaces it. That premise does not hold yet. Item 1 renders the stat ONLY when
|
|
77
|
+
* `CreatingEntityID` and `CreatingRecordID` are both set, and on this database exactly one contract
|
|
78
|
+
* of eleven has them — `CTR-000026`, whose pair was typed in by hand: the entity is
|
|
79
|
+
* `MJ: Explorer Navigation Items` rather than Deals and the record id is not a valid UUID. So on
|
|
80
|
+
* every contract a person can currently open, the replacement is invisible. Hiding this section
|
|
81
|
+
* today would remove the only visible provenance for a stat that does not appear.
|
|
82
|
+
*
|
|
83
|
+
* WHAT ITEM 18 IS ACTUALLY ABOUT, and this half is not in doubt: these two fields rendered as
|
|
84
|
+
* ordinary inputs a person could type into, which is how that junk pair got there.
|
|
85
|
+
* `CreatingEntityID` is a real FK to `__mj.Entity` and `CreatingRecordID` is the row it names, and
|
|
86
|
+
* `CK_Contract_CreatingPairBothOrNeither` requires both or neither — so editing one field alone
|
|
87
|
+
* produces a save the constraint refuses, and editing both silently re-points a contract's
|
|
88
|
+
* provenance at an unrelated record, which is then what the hero's link displays. The server sets
|
|
89
|
+
* this pair (`LiveContractsSeam.setProvenance`, on Close-Won) and nothing else should.
|
|
90
|
+
*
|
|
91
|
+
* Read-only closes that defect and keeps the ids visible beneath the hero's human-readable name —
|
|
92
|
+
* complements rather than duplicates. Revisit hiding the section once a contract created by a real
|
|
93
|
+
* Close-Won deal exists to verify item 1 against.
|
|
94
|
+
*/
|
|
95
|
+
readonly Fields: ContractFieldSpec[];
|
|
96
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MJCContractProvenanceFieldsPanel, never>;
|
|
97
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MJCContractProvenanceFieldsPanel, "mjc-contract-provenance-panel", never, {}, {}, never, never, true, never>;
|
|
98
|
+
}
|
|
99
|
+
export declare class MJCContractLifecyclePanel extends BaseFormPanel<ContractEntity> {
|
|
100
|
+
readonly Fields: ContractFieldSpec[];
|
|
101
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MJCContractLifecyclePanel, never>;
|
|
102
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MJCContractLifecyclePanel, "mjc-contract-lifecycle-panel", never, {}, {}, never, never, true, never>;
|
|
103
|
+
}
|
|
104
|
+
export declare class MJCContractModificationsPanel extends BaseFormPanel<ContractEntity> {
|
|
105
|
+
readonly Entity: "MJ_BizApps_Contracts: Contract Template Modifications";
|
|
106
|
+
OnDataLoad(event: AfterDataLoadEventArgs): void;
|
|
107
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MJCContractModificationsPanel, never>;
|
|
108
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MJCContractModificationsPanel, "mjc-contract-modifications-panel", never, {}, {}, never, never, true, never>;
|
|
109
|
+
}
|
|
110
|
+
export {};
|
|
111
|
+
//# sourceMappingURL=contract-form.panels.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contract-form.panels.d.ts","sourceRoot":"","sources":["../../../src/lib/form-panels/contract-form.panels.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAE,aAAa,EAAmB,MAAM,+BAA+B,CAAC;AAC/E,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAC/E,OAAO,EAAE,cAAc,EAAE,KAAK,aAAa,EAAE,MAAM,iCAAiC,CAAC;;AAKrF,KAAK,iBAAiB,GAChB,SAAS,GAAG,UAAU,GAAG,QAAQ,GAAG,YAAY,GAAG,UAAU,GAC7D,QAAQ,GAAG,cAAc,GAAG,MAAM,GAAG,cAAc,GAAG,gBAAgB,CAAC;AAE7E,UAAU,iBAAiB;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,iBAAiB,CAAC;IACxB,IAAI,CAAC,EAAE,QAAQ,GAAG,KAAK,CAAC;IACxB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf;;;;;;;;OAQG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACtB;AAsBD,iBAAS,SAAS,CAAC,CAAC,EAAE,IAAI,GAAG,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,MAAM,CAG9D;AAyBD,qBA+Ka,wBAAyB,SAAQ,aAAa,CAAC,cAAc,CAAC;IAChE,SAAS,mBAAa;IAC7B,IAAW,KAAK,IAAI,aAAa,CAA6D;IAC9F,IAAW,QAAQ,IAAI,MAAM,CAA4C;IACzE,IAAW,YAAY,IAAI,MAAM,CAAoD;IACrF,IAAW,WAAW,IAAI,MAAM,CAAoD;IACpF,IAAW,WAAW,IAAI,MAAM,CAAuC;IACvE,IAAW,YAAY,IAAI,MAAM,CAAgD;IACjF,IAAW,aAAa,IAAI,MAAM,CAGjC;IACM,SAAS,CAAC,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,MAAM;IAG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