@mj-biz-apps/contracts-ng 0.3.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 +34 -0
- package/dist/lib/form-panels/contract-form.panels.d.ts.map +1 -1
- package/dist/lib/form-panels/contract-form.panels.js +173 -126
- package/dist/lib/form-panels/contract-form.panels.js.map +1 -1
- package/dist/lib/form-panels/contract.panels.d.ts +48 -2
- package/dist/lib/form-panels/contract.panels.d.ts.map +1 -1
- package/dist/lib/form-panels/contract.panels.js +290 -192
- package/dist/lib/form-panels/contract.panels.js.map +1 -1
- package/dist/lib/form-panels/supersede.panel.d.ts +18 -1
- package/dist/lib/form-panels/supersede.panel.d.ts.map +1 -1
- package/dist/lib/form-panels/supersede.panel.js +38 -11
- package/dist/lib/form-panels/supersede.panel.js.map +1 -1
- package/dist/lib/sections/section-shell.component.js +2 -2
- package/package.json +2 -2
|
@@ -8,6 +8,16 @@ interface ContractFieldSpec {
|
|
|
8
8
|
type: ContractFieldType;
|
|
9
9
|
link?: 'Record' | 'URL';
|
|
10
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;
|
|
11
21
|
}
|
|
12
22
|
declare function dateLabel(d: Date | string | null | undefined): string;
|
|
13
23
|
export declare class MJCContractOverviewPanel extends BaseFormPanel<ContractEntity> {
|
|
@@ -25,6 +35,7 @@ export declare class MJCContractOverviewPanel extends BaseFormPanel<ContractEnti
|
|
|
25
35
|
get EndTone(): 'success' | 'warning' | 'muted';
|
|
26
36
|
get NoticeClock(): string;
|
|
27
37
|
get NoticeTone(): 'success' | 'warning' | 'muted';
|
|
38
|
+
get HasSource(): boolean;
|
|
28
39
|
get CanOpenSource(): boolean;
|
|
29
40
|
get SourceLabel(): string;
|
|
30
41
|
get Health(): string[];
|
|
@@ -58,6 +69,29 @@ export declare class MJCContractNotesPanel extends BaseFormPanel<ContractEntity>
|
|
|
58
69
|
static ɵcmp: i0.ɵɵComponentDeclaration<MJCContractNotesPanel, "mjc-contract-notes-panel", never, {}, {}, never, never, true, never>;
|
|
59
70
|
}
|
|
60
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
|
+
*/
|
|
61
95
|
readonly Fields: ContractFieldSpec[];
|
|
62
96
|
static ɵfac: i0.ɵɵFactoryDeclaration<MJCContractProvenanceFieldsPanel, never>;
|
|
63
97
|
static ɵcmp: i0.ɵɵComponentDeclaration<MJCContractProvenanceFieldsPanel, "mjc-contract-provenance-panel", never, {}, {}, never, never, true, never>;
|
|
@@ -1 +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;
|
|
1
|
+
{"version":3,"file":"contract-form.panels.d.ts","sourceRoot":"","sources":["../../../src/lib/form-panels/contract-form.panels.ts"],"names":[],"mappings":"AAmBA,OAAO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