@mj-biz-apps/contracts-ng 0.1.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/LICENSE +183 -0
- package/dist/lib/data/entity-names.d.ts +29 -0
- package/dist/lib/data/entity-names.d.ts.map +1 -0
- package/dist/lib/data/entity-names.js +29 -0
- package/dist/lib/data/entity-names.js.map +1 -0
- package/dist/lib/data/provider.d.ts +44 -0
- package/dist/lib/data/provider.d.ts.map +1 -0
- package/dist/lib/data/provider.js +48 -0
- package/dist/lib/data/provider.js.map +1 -0
- package/dist/lib/directives/fk-navigate.directive.d.ts +63 -0
- package/dist/lib/directives/fk-navigate.directive.d.ts.map +1 -0
- package/dist/lib/directives/fk-navigate.directive.js +99 -0
- package/dist/lib/directives/fk-navigate.directive.js.map +1 -0
- package/dist/lib/form-panels/contract.panels.d.ts +124 -0
- package/dist/lib/form-panels/contract.panels.d.ts.map +1 -0
- package/dist/lib/form-panels/contract.panels.js +1167 -0
- package/dist/lib/form-panels/contract.panels.js.map +1 -0
- package/dist/lib/form-panels/organization.panels.d.ts +23 -0
- package/dist/lib/form-panels/organization.panels.d.ts.map +1 -0
- package/dist/lib/form-panels/organization.panels.js +118 -0
- package/dist/lib/form-panels/organization.panels.js.map +1 -0
- package/dist/lib/form-panels/record-files.panel.d.ts +151 -0
- package/dist/lib/form-panels/record-files.panel.d.ts.map +1 -0
- package/dist/lib/form-panels/record-files.panel.js +1046 -0
- package/dist/lib/form-panels/record-files.panel.js.map +1 -0
- package/dist/lib/form-panels/supersede.panel.d.ts +68 -0
- package/dist/lib/form-panels/supersede.panel.d.ts.map +1 -0
- package/dist/lib/form-panels/supersede.panel.js +415 -0
- package/dist/lib/form-panels/supersede.panel.js.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsContractsContract/mjbizappscontractscontract.form.component.d.ts +10 -0
- package/dist/lib/generated/Entities/mjBizAppsContractsContract/mjbizappscontractscontract.form.component.d.ts.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsContractsContract/mjbizappscontractscontract.form.component.js +196 -0
- package/dist/lib/generated/Entities/mjBizAppsContractsContract/mjbizappscontractscontract.form.component.js.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsContractsContractTemplate/mjbizappscontractscontracttemplate.form.component.d.ts +10 -0
- package/dist/lib/generated/Entities/mjBizAppsContractsContractTemplate/mjbizappscontractscontracttemplate.form.component.d.ts.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsContractsContractTemplate/mjbizappscontractscontracttemplate.form.component.js +120 -0
- package/dist/lib/generated/Entities/mjBizAppsContractsContractTemplate/mjbizappscontractscontracttemplate.form.component.js.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsContractsContractTemplateModification/mjbizappscontractscontracttemplatemodification.form.component.d.ts +10 -0
- package/dist/lib/generated/Entities/mjBizAppsContractsContractTemplateModification/mjbizappscontractscontracttemplatemodification.form.component.d.ts.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsContractsContractTemplateModification/mjbizappscontractscontracttemplatemodification.form.component.js +79 -0
- package/dist/lib/generated/Entities/mjBizAppsContractsContractTemplateModification/mjbizappscontractscontracttemplatemodification.form.component.js.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsContractsContractTemplateProvision/mjbizappscontractscontracttemplateprovision.form.component.d.ts +10 -0
- package/dist/lib/generated/Entities/mjBizAppsContractsContractTemplateProvision/mjbizappscontractscontracttemplateprovision.form.component.d.ts.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsContractsContractTemplateProvision/mjbizappscontractscontracttemplateprovision.form.component.js +79 -0
- package/dist/lib/generated/Entities/mjBizAppsContractsContractTemplateProvision/mjbizappscontractscontracttemplateprovision.form.component.js.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsContractsContractTemplateType/mjbizappscontractscontracttemplatetype.form.component.d.ts +10 -0
- package/dist/lib/generated/Entities/mjBizAppsContractsContractTemplateType/mjbizappscontractscontracttemplatetype.form.component.d.ts.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsContractsContractTemplateType/mjbizappscontractscontracttemplatetype.form.component.js +86 -0
- package/dist/lib/generated/Entities/mjBizAppsContractsContractTemplateType/mjbizappscontractscontracttemplatetype.form.component.js.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsContractsContractType/mjbizappscontractscontracttype.form.component.d.ts +10 -0
- package/dist/lib/generated/Entities/mjBizAppsContractsContractType/mjbizappscontractscontracttype.form.component.d.ts.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsContractsContractType/mjbizappscontractscontracttype.form.component.js +100 -0
- package/dist/lib/generated/Entities/mjBizAppsContractsContractType/mjbizappscontractscontracttype.form.component.js.map +1 -0
- package/dist/lib/generated/generated-forms.module.d.ts +23 -0
- package/dist/lib/generated/generated-forms.module.d.ts.map +1 -0
- package/dist/lib/generated/generated-forms.module.js +78 -0
- package/dist/lib/generated/generated-forms.module.js.map +1 -0
- package/dist/lib/pages/configuration.page.d.ts +83 -0
- package/dist/lib/pages/configuration.page.d.ts.map +1 -0
- package/dist/lib/pages/configuration.page.js +240 -0
- package/dist/lib/pages/configuration.page.js.map +1 -0
- package/dist/lib/pages/contract-grid.page.d.ts +169 -0
- package/dist/lib/pages/contract-grid.page.d.ts.map +1 -0
- package/dist/lib/pages/contract-grid.page.js +487 -0
- package/dist/lib/pages/contract-grid.page.js.map +1 -0
- package/dist/lib/pages/contracts-dashboard.page.d.ts +56 -0
- package/dist/lib/pages/contracts-dashboard.page.d.ts.map +1 -0
- package/dist/lib/pages/contracts-dashboard.page.js +215 -0
- package/dist/lib/pages/contracts-dashboard.page.js.map +1 -0
- package/dist/lib/pages/modifications.page.d.ts +96 -0
- package/dist/lib/pages/modifications.page.d.ts.map +1 -0
- package/dist/lib/pages/modifications.page.js +243 -0
- package/dist/lib/pages/modifications.page.js.map +1 -0
- package/dist/lib/pages/templates.page.d.ts +120 -0
- package/dist/lib/pages/templates.page.d.ts.map +1 -0
- package/dist/lib/pages/templates.page.js +258 -0
- package/dist/lib/pages/templates.page.js.map +1 -0
- package/dist/lib/sections/contracts-sections.component.d.ts +112 -0
- package/dist/lib/sections/contracts-sections.component.d.ts.map +1 -0
- package/dist/lib/sections/contracts-sections.component.js +412 -0
- package/dist/lib/sections/contracts-sections.component.js.map +1 -0
- package/dist/lib/sections/section-nav.model.d.ts +78 -0
- package/dist/lib/sections/section-nav.model.d.ts.map +1 -0
- package/dist/lib/sections/section-nav.model.js +110 -0
- package/dist/lib/sections/section-nav.model.js.map +1 -0
- package/dist/lib/sections/section-shell.component.d.ts +73 -0
- package/dist/lib/sections/section-shell.component.d.ts.map +1 -0
- package/dist/lib/sections/section-shell.component.js +170 -0
- package/dist/lib/sections/section-shell.component.js.map +1 -0
- package/dist/public-api.d.ts +44 -0
- package/dist/public-api.d.ts.map +1 -0
- package/dist/public-api.js +105 -0
- package/dist/public-api.js.map +1 -0
- package/package.json +50 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contract.panels.js","sourceRoot":"","sources":["../../../src/lib/form-panels/contract.panels.ts"],"names":[],"mappings":";;;;;;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,OAAO,EAAE,iBAAiB,EAAE,SAAS,EAAE,iBAAiB,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACxF,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAC/E,OAAO,EAAE,sBAAsB,EAAqD,MAAM,mCAAmC,CAAC;AAC9H,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAE9D,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;;;;;;IAyCX,kCAAsC;IAA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AADA,sCAAoB,2BACE,gCACK;YAEL,cAAqC;YAArC,kDAAqC;YACvD,cAQC;YARD,yCAQC;YAOG,cAAqB;YACrB,AADA,uCAAqB,4EACqB;YAG9C,cAIC;YAJD,8DAIC;4BAnCH,YAAY,EAAE,WAAW,EAAE,eAAe,kCAAE,sBAAsB;;AAwCnE,uBAAuB;IAzGnC,eAAe,CAAC,aAAa,EAAE;QAC5B,GAAG,EAAE,mBAAmB;QACxB,kBAAkB,EAAE,IAAI;QACxB,QAAQ,EAAE;YACN,MAAM,EAAE,YAAY,CAAC,QAAQ;YAC7B,IAAI,EAAE,eAAe;YACrB,OAAO,EAAE,EAAE;YACX,eAAe,EAAE,SAAS;YAC1B,aAAa,EAAE,YAAY,CAAC,QAAQ;YACpC,gBAAgB,EAAE,kBAAkB;YACpC,4EAA4E;YAC5E,EAAE;YACF,uEAAuE;YACvE,8DAA8D;YAC9D,kFAAkF;YAClF,0FAA0F;YAC1F,wEAAwE;YACxE,EAAE;YACF,mFAAmF;YACnF,0FAA0F;YAC1F,yFAAyF;YACzF,qFAAqF;YACrF,iCAAiC;YACjC,EAAE;YACF,0FAA0F;YAC1F,sEAAsE;SACzE;KACJ,CAAC;GA8EW,uBAAuB,CAmGnC;;iFAnGY,uBAAuB;cA7EnC,SAAS;2BACI,4BAA4B,cAC1B,IAAI,iBACD,iBAAiB,CAAC,IAAI,WAkC5B,CAAC,YAAY,EAAE,WAAW,EAAE,eAAe,EAAE,sBAAsB,CAAC,YACnE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAqCT;;kFAEQ,uBAAuB"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { BaseFormPanel } from '@memberjunction/ng-base-forms';
|
|
2
|
+
import type { BaseEntity, RunViewParams } from '@memberjunction/core';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class MJCOrganizationAgreementsPanel extends BaseFormPanel<BaseEntity> {
|
|
5
|
+
/**
|
|
6
|
+
* `Get('ID')` rather than a typed member, and that is correct HERE specifically: the host record is
|
|
7
|
+
* Common's Organization, whose generated class lives in another app's package. Typing this panel to
|
|
8
|
+
* it would make contracts depend on `@mj-biz-apps/common-entities` for one primary key — a real
|
|
9
|
+
* dependency for a string. The conventions rule (D-26) is about not substituting `.Get()` for a
|
|
10
|
+
* typed member that EXISTS in reach; this one does not.
|
|
11
|
+
*/
|
|
12
|
+
get Params(): RunViewParams | null;
|
|
13
|
+
/**
|
|
14
|
+
* Pre-links a new contract to this organisation.
|
|
15
|
+
*
|
|
16
|
+
* Without it, "New" from a customer's form opens an empty contract and the user retypes the customer
|
|
17
|
+
* they were just looking at — and picks the wrong one often enough to matter.
|
|
18
|
+
*/
|
|
19
|
+
get NewValues(): Record<string, unknown>;
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MJCOrganizationAgreementsPanel, never>;
|
|
21
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MJCOrganizationAgreementsPanel, "mjc-organization-agreements-panel", never, {}, {}, never, never, true, never>;
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=organization.panels.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"organization.panels.d.ts","sourceRoot":"","sources":["../../../src/lib/form-panels/organization.panels.ts"],"names":[],"mappings":"AAkBA,OAAO,EAAE,aAAa,EAAmB,MAAM,+BAA+B,CAAC;AAC/E,OAAO,KAAK,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;;AAItE,qBAgCa,8BAA+B,SAAQ,aAAa,CAAC,UAAU,CAAC;IACzE;;;;;;OAMG;IACH,IAAW,MAAM,IAAI,aAAa,GAAG,IAAI,CAUxC;IAED;;;;;OAKG;IACH,IAAW,SAAS,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAG9C;yCA7BQ,8BAA8B;2CAA9B,8BAA8B;CA8B1C"}
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* @fileoverview The customer view (item 11) — delivered ON COMMON'S FORMS, not as a new screen.
|
|
9
|
+
*
|
|
10
|
+
* "Every agreement and document for this customer" is a real need with an obvious home: the Organization
|
|
11
|
+
* record somebody is already looking at. Building a separate org-scoped roster page would mean a second
|
|
12
|
+
* place to look up a customer, and the two would drift.
|
|
13
|
+
*
|
|
14
|
+
* Contracts owns this panel because contracts owns the FK that creates the relationship — the same reason
|
|
15
|
+
* it ships the `.form-chrome.json` inclusion rows. Orders does exactly this with `person-orders.panel.ts`.
|
|
16
|
+
*
|
|
17
|
+
* The grid selects the contract base view, so `State`, `ContractType` and the dates read as names and
|
|
18
|
+
* values rather than ids (D-23) — on someone else's form, where a column of UUIDs would be indefensible.
|
|
19
|
+
*
|
|
20
|
+
* @module @mj-biz-apps/contracts-ng
|
|
21
|
+
*/
|
|
22
|
+
import { Component, ViewEncapsulation } from '@angular/core';
|
|
23
|
+
import { CommonModule } from '@angular/common';
|
|
24
|
+
import { RegisterClassEx } from '@memberjunction/global';
|
|
25
|
+
import { BaseFormPanel, BaseFormsModule } from '@memberjunction/ng-base-forms';
|
|
26
|
+
import { MJC_ENTITIES, MJC_FOREIGN_ENTITIES } from '../data/entity-names';
|
|
27
|
+
import { MJCFkNavigateDirective } from '../directives/fk-navigate.directive';
|
|
28
|
+
import * as i0 from "@angular/core";
|
|
29
|
+
import * as i1 from "@memberjunction/ng-base-forms";
|
|
30
|
+
let MJCOrganizationAgreementsPanel = class MJCOrganizationAgreementsPanel extends BaseFormPanel {
|
|
31
|
+
/**
|
|
32
|
+
* `Get('ID')` rather than a typed member, and that is correct HERE specifically: the host record is
|
|
33
|
+
* Common's Organization, whose generated class lives in another app's package. Typing this panel to
|
|
34
|
+
* it would make contracts depend on `@mj-biz-apps/common-entities` for one primary key — a real
|
|
35
|
+
* dependency for a string. The conventions rule (D-26) is about not substituting `.Get()` for a
|
|
36
|
+
* typed member that EXISTS in reach; this one does not.
|
|
37
|
+
*/
|
|
38
|
+
get Params() {
|
|
39
|
+
const id = this.Record?.Get?.('ID');
|
|
40
|
+
if (!id)
|
|
41
|
+
return null;
|
|
42
|
+
return {
|
|
43
|
+
EntityName: MJC_ENTITIES.Contract,
|
|
44
|
+
ExtraFilter: `CustomerOrganizationID = '${String(id)}'`,
|
|
45
|
+
// Live agreements first, then most-recently-effective. A customer's CURRENT position is
|
|
46
|
+
// the question; history is context underneath it.
|
|
47
|
+
OrderBy: `CASE WHEN State IN ('Active','Executed') THEN 0 ELSE 1 END, EffectiveDate DESC`,
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Pre-links a new contract to this organisation.
|
|
52
|
+
*
|
|
53
|
+
* Without it, "New" from a customer's form opens an empty contract and the user retypes the customer
|
|
54
|
+
* they were just looking at — and picks the wrong one often enough to matter.
|
|
55
|
+
*/
|
|
56
|
+
get NewValues() {
|
|
57
|
+
const id = this.Record?.Get?.('ID');
|
|
58
|
+
return id ? { CustomerOrganizationID: String(id) } : {};
|
|
59
|
+
}
|
|
60
|
+
static ɵfac = /*@__PURE__*/ (() => { let ɵMJCOrganizationAgreementsPanel_BaseFactory; return function MJCOrganizationAgreementsPanel_Factory(__ngFactoryType__) { return (ɵMJCOrganizationAgreementsPanel_BaseFactory || (ɵMJCOrganizationAgreementsPanel_BaseFactory = i0.ɵɵgetInheritedFactory(MJCOrganizationAgreementsPanel)))(__ngFactoryType__ || MJCOrganizationAgreementsPanel); }; })();
|
|
61
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: MJCOrganizationAgreementsPanel, selectors: [["mjc-organization-agreements-panel"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 9, vars: 4, consts: [[1, "mjc-card"], [1, "mjc-card__title"], [1, "mjc-page__intro"], ["mjcFkNavigate", "", 3, "Params", "NewRecordValues", "ShowToolbar", "NavigateOnDoubleClick"]], template: function MJCOrganizationAgreementsPanel_Template(rf, ctx) { if (rf & 1) {
|
|
62
|
+
i0.ɵɵelementStart(0, "div", 0)(1, "h3", 1);
|
|
63
|
+
i0.ɵɵtext(2, "Agreements");
|
|
64
|
+
i0.ɵɵelementEnd();
|
|
65
|
+
i0.ɵɵelementStart(3, "p", 2);
|
|
66
|
+
i0.ɵɵtext(4, " Every contract with this organisation, live ones first. ");
|
|
67
|
+
i0.ɵɵelementStart(5, "strong");
|
|
68
|
+
i0.ɵɵtext(6, "New");
|
|
69
|
+
i0.ɵɵelementEnd();
|
|
70
|
+
i0.ɵɵtext(7, " opens a contract already linked to this customer. ");
|
|
71
|
+
i0.ɵɵelementEnd();
|
|
72
|
+
i0.ɵɵelement(8, "mj-explorer-entity-data-grid", 3);
|
|
73
|
+
i0.ɵɵelementEnd();
|
|
74
|
+
} if (rf & 2) {
|
|
75
|
+
i0.ɵɵadvance(8);
|
|
76
|
+
i0.ɵɵproperty("Params", ctx.Params)("NewRecordValues", ctx.NewValues)("ShowToolbar", true)("NavigateOnDoubleClick", true);
|
|
77
|
+
} }, dependencies: [CommonModule, BaseFormsModule, i1.ExplorerEntityDataGridComponent, MJCFkNavigateDirective], encapsulation: 2 });
|
|
78
|
+
};
|
|
79
|
+
MJCOrganizationAgreementsPanel = __decorate([
|
|
80
|
+
RegisterClassEx(BaseFormPanel, {
|
|
81
|
+
key: 'contracts:organization-agreements',
|
|
82
|
+
skipNullKeyWarning: true,
|
|
83
|
+
metadata: {
|
|
84
|
+
entity: MJC_FOREIGN_ENTITIES.Organization,
|
|
85
|
+
slot: 'after-related',
|
|
86
|
+
sortKey: 90,
|
|
87
|
+
contributionKey: 'agreements',
|
|
88
|
+
relatedEntity: MJC_ENTITIES.Contract,
|
|
89
|
+
relatedJoinField: 'CustomerOrganizationID',
|
|
90
|
+
},
|
|
91
|
+
})
|
|
92
|
+
], MJCOrganizationAgreementsPanel);
|
|
93
|
+
export { MJCOrganizationAgreementsPanel };
|
|
94
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MJCOrganizationAgreementsPanel, [{
|
|
95
|
+
type: Component,
|
|
96
|
+
args: [{
|
|
97
|
+
selector: 'mjc-organization-agreements-panel',
|
|
98
|
+
standalone: true,
|
|
99
|
+
encapsulation: ViewEncapsulation.None,
|
|
100
|
+
imports: [CommonModule, BaseFormsModule, MJCFkNavigateDirective],
|
|
101
|
+
template: `
|
|
102
|
+
<div class="mjc-card">
|
|
103
|
+
<h3 class="mjc-card__title">Agreements</h3>
|
|
104
|
+
<p class="mjc-page__intro">
|
|
105
|
+
Every contract with this organisation, live ones first. <strong>New</strong> opens a
|
|
106
|
+
contract already linked to this customer.
|
|
107
|
+
</p>
|
|
108
|
+
<mj-explorer-entity-data-grid mjcFkNavigate
|
|
109
|
+
[Params]="Params"
|
|
110
|
+
[NewRecordValues]="NewValues"
|
|
111
|
+
[ShowToolbar]="true"
|
|
112
|
+
[NavigateOnDoubleClick]="true" />
|
|
113
|
+
</div>
|
|
114
|
+
`,
|
|
115
|
+
}]
|
|
116
|
+
}], null, null); })();
|
|
117
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MJCOrganizationAgreementsPanel, { className: "MJCOrganizationAgreementsPanel", filePath: "lib/form-panels/organization.panels.ts", lineNumber: 56 }); })();
|
|
118
|
+
//# sourceMappingURL=organization.panels.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":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YACvB,yEAAwD;YAAA,8BAAQ;YAAA,mBAAG;YAAA,iBAAS;YAAC,mEAEjF;YAAA,iBAAI;YACJ,kDAIqC;YACzC,iBAAM;;YAJE,eAAiB;YAGjB,AADA,AADA,AADA,mCAAiB,kCACY,qBACT,+BACU;4BAZhC,YAAY,EAAE,eAAe,sCAAE,sBAAsB;;AAgBtD,8BAA8B;IAhC1C,eAAe,CAAC,aAAa,EAAE;QAC5B,GAAG,EAAE,mCAAmC;QACxC,kBAAkB,EAAE,IAAI;QACxB,QAAQ,EAAE;YACN,MAAM,EAAE,oBAAoB,CAAC,YAAY;YACzC,IAAI,EAAE,eAAe;YACrB,OAAO,EAAE,EAAE;YACX,eAAe,EAAE,YAAY;YAC7B,aAAa,EAAE,YAAY,CAAC,QAAQ;YACpC,gBAAgB,EAAE,wBAAwB;SAC7C;KACJ,CAAC;GAqBW,8BAA8B,CA8B1C;;iFA9BY,8BAA8B;cApB1C,SAAS;eAAC;gBACP,QAAQ,EAAE,mCAAmC;gBAC7C,UAAU,EAAE,IAAI;gBAChB,aAAa,EAAE,iBAAiB,CAAC,IAAI;gBACrC,OAAO,EAAE,CAAC,YAAY,EAAE,eAAe,EAAE,sBAAsB,CAAC;gBAChE,QAAQ,EAAE;;;;;;;;;;;;;KAaT;aACJ;;kFACY,8BAA8B"}
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview `Documents` — the record-scoped file panel MJ does not have yet.
|
|
3
|
+
*
|
|
4
|
+
* CARRIED FORWARD FROM V1 (plan §6.5). The rebuild deleted every other hand-written component in
|
|
5
|
+
* this package; this one survived because the gap it fills is MJ's, not v1's, and it never knew
|
|
6
|
+
* anything about the billing schema. Only its registrations changed — see the bottom of the file.
|
|
7
|
+
*
|
|
8
|
+
* THE GAP THIS FILLS. MJ models record↔file linking properly: `__mj.FileEntityRecordLink` is a
|
|
9
|
+
* polymorphic `EntityID` + `RecordID` pair, so any record can carry any number of files. What it
|
|
10
|
+
* does NOT ship is a way to SEE them on a record. `@memberjunction/ng-file-storage` has
|
|
11
|
+
* `mj-file-browser`, `mj-files-grid` and `mj-files-file-upload`, but all three are **category**
|
|
12
|
+
* scoped; nothing in the MJ Angular tree queries `FileEntityRecordLink` at runtime (the only
|
|
13
|
+
* references are the generated CRUD forms for the link entity itself). So "the files on THIS
|
|
14
|
+
* record" had no UI at all.
|
|
15
|
+
*
|
|
16
|
+
* WHY IT IS A PANEL AND NOT A TAB. `BaseFormPanel` is MJ's own extension point: a panel registers
|
|
17
|
+
* for an entity + slot and the form mounts it automatically, with no edit to the form and nothing
|
|
18
|
+
* for CodeGen to overwrite. That means this panel works identically on every GENERATED form it
|
|
19
|
+
* registers for — and it keeps working when they are regenerated, which is the whole reason v2
|
|
20
|
+
* stopped replacing forms and started contributing panels to them (plan §6.4).
|
|
21
|
+
*
|
|
22
|
+
* BUILT DONATION-SHAPED, ON PURPOSE. Nothing below knows what a contract is. The logic reads
|
|
23
|
+
* `Record.EntityInfo.ID` and `Record.PrimaryKey`, so it is already entity-agnostic — the only
|
|
24
|
+
* contracts-specific thing in the file is *which entities it registers for*, isolated into the
|
|
25
|
+
* one-line subclasses at the bottom. To donate this to MJ base, move the base class and
|
|
26
|
+
* re-register it once with `entity: '*'` (PANELS.md's wildcard); the only new requirement then is
|
|
27
|
+
* self-hiding on forms that have no files, which `HasFiles` already answers.
|
|
28
|
+
*
|
|
29
|
+
* WHY NOT WILDCARD HERE AND NOW: a wildcard panel must render nothing on the ~99% of forms it does
|
|
30
|
+
* not apply to, but a panel that hides when empty can never accept the FIRST file. Registering
|
|
31
|
+
* explicitly for the two entities that carry paper keeps the attach affordance available while
|
|
32
|
+
* staying honest about clutter. That tension is the real design question to settle before donating.
|
|
33
|
+
*
|
|
34
|
+
* @module @mj-biz-apps/contracts-ng
|
|
35
|
+
*/
|
|
36
|
+
import { OnInit } from '@angular/core';
|
|
37
|
+
import { BaseFormPanel } from '@memberjunction/ng-base-forms';
|
|
38
|
+
import * as i0 from "@angular/core";
|
|
39
|
+
/** One linked file, flattened from the link + the file it points at. */
|
|
40
|
+
interface LinkedFile {
|
|
41
|
+
LinkID: string;
|
|
42
|
+
FileID: string;
|
|
43
|
+
Name: string;
|
|
44
|
+
Provider: string | null;
|
|
45
|
+
Status: string | null;
|
|
46
|
+
CreatedAt: string | null;
|
|
47
|
+
/** The path/key inside the provider — what a pre-auth download URL is minted from. */
|
|
48
|
+
ProviderKey: string | null;
|
|
49
|
+
/** The storage ACCOUNT, which is what the download API takes (not the provider type). */
|
|
50
|
+
AccountID: string | null;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* All of the behaviour. Deliberately knows nothing about contracts — see the file header.
|
|
54
|
+
*/
|
|
55
|
+
export declare class RecordFilesPanelBase extends BaseFormPanel implements OnInit {
|
|
56
|
+
private readonly cdr;
|
|
57
|
+
private readonly fileOpen;
|
|
58
|
+
Files: LinkedFile[];
|
|
59
|
+
IsLoading: boolean;
|
|
60
|
+
/** The storage account every action runs against, or null when the instance has none. */
|
|
61
|
+
DefaultAccountID: string | null;
|
|
62
|
+
/** Path typed into the register box. */
|
|
63
|
+
RegisterPath: string;
|
|
64
|
+
/** True while an action is in flight, so the buttons cannot be double-fired. */
|
|
65
|
+
Busy: boolean;
|
|
66
|
+
/** The last action failure, shown in the panel rather than a toast that scrolls away. */
|
|
67
|
+
ActionError: string | null;
|
|
68
|
+
/**
|
|
69
|
+
* Whether this user may DOWNLOAD, as opposed to merely see that documents exist (D-9).
|
|
70
|
+
*
|
|
71
|
+
* ⚠ THE OBVIOUS IMPLEMENTATION IS VACUOUS, and this was written that way first. Reading the HOST
|
|
72
|
+
* RECORD's `CanRead` asks "may they see this contract" — but everyone looking at the panel can
|
|
73
|
+
* already see the contract, so the gate returns true for every viewer and the restriction can
|
|
74
|
+
* never bind. D-9 exists precisely to separate two populations (leadership/finance/legal may
|
|
75
|
+
* download; everyone else sees the record), and gating on record visibility collapses them into
|
|
76
|
+
* one. Caught on review of PR #9.
|
|
77
|
+
*
|
|
78
|
+
* So the gate is the **`MJ: Files` entity's** read permission — a surface genuinely DISTINCT from
|
|
79
|
+
* record visibility. An administrator grants Files read to the three D-9 roles and to nobody else,
|
|
80
|
+
* and the check never mentions contracts, so the panel stays entity-agnostic for donation to MJ.
|
|
81
|
+
*
|
|
82
|
+
* `GetUserPermisions` is the platform's own allow/deny aggregation across the user's roles, so this
|
|
83
|
+
* cannot drift from what the instance actually grants. FALSE on any doubt: a hidden Open button is
|
|
84
|
+
* a nuisance, a leaked executed contract is not.
|
|
85
|
+
*/
|
|
86
|
+
get CanDownload(): boolean;
|
|
87
|
+
/**
|
|
88
|
+
* The signing provider's own URL, when the host record carries one — the always-works fallback.
|
|
89
|
+
*
|
|
90
|
+
* Read generically (`SigningProviderURL`) rather than by typing this panel to ContractEntity,
|
|
91
|
+
* because the panel is deliberately entity-agnostic and intended for donation to MJ. A host entity
|
|
92
|
+
* without the field simply has no fallback link.
|
|
93
|
+
*/
|
|
94
|
+
get SigningProviderURL(): string | null;
|
|
95
|
+
get HasFiles(): boolean;
|
|
96
|
+
ngOnInit(): Promise<void>;
|
|
97
|
+
/**
|
|
98
|
+
* Two reads: the links for this record, then the files they name. It is deliberately two rather
|
|
99
|
+
* than one join — `RunView` is the app's only sanctioned read path (§11.1), and the second read
|
|
100
|
+
* is skipped entirely when a record has no links, which is the common case.
|
|
101
|
+
*/
|
|
102
|
+
private load;
|
|
103
|
+
/**
|
|
104
|
+
* Resolve the instance's storage account once.
|
|
105
|
+
*
|
|
106
|
+
* A `File` row names a PROVIDER (the type — "SharePoint"); the download and upload APIs take an
|
|
107
|
+
* ACCOUNT (a configured instance of one). Nothing on the link or the file gives us the account, so
|
|
108
|
+
* it is looked up here. When there is none, every affordance that needs storage is HIDDEN rather
|
|
109
|
+
* than shown-and-failing: an Open button that always errors is worse than no button.
|
|
110
|
+
*/
|
|
111
|
+
private resolveAccount;
|
|
112
|
+
/**
|
|
113
|
+
* REGISTER an object that is already in storage (§6.5) — the flow this app actually needs.
|
|
114
|
+
*
|
|
115
|
+
* MJ's own `CreateFile` mutation assumes an UPLOAD: it creates the row `Pending` and hands back a
|
|
116
|
+
* pre-auth URL for the browser to push bytes to. Our executed PDFs are already in SharePoint,
|
|
117
|
+
* delivered by PandaDoc → HubSpot → SharePoint, a route MJ knows nothing about. So there is nothing
|
|
118
|
+
* to upload — the work is to create the `MJ: Files` row with the right `ProviderKey` and link it.
|
|
119
|
+
*
|
|
120
|
+
* Done entirely through the ENTITY layer, no GraphQL: two saves, and the second is skipped if the
|
|
121
|
+
* first fails, so a half-registered document (a file row nothing points at) cannot result. It
|
|
122
|
+
* verifies the object EXISTS first — registering a path that is not there produces a record that
|
|
123
|
+
* lies, and a document nobody can open is exactly what this panel exists to prevent.
|
|
124
|
+
*/
|
|
125
|
+
RegisterExisting(): Promise<void>;
|
|
126
|
+
/** The provider (type) behind the resolved account — a File row references the provider, not the account. */
|
|
127
|
+
private resolveProviderID;
|
|
128
|
+
/**
|
|
129
|
+
* Open a document via a time-limited pre-auth URL.
|
|
130
|
+
*
|
|
131
|
+
* Delegated to MJ's own `FileOpenService`, which mints the URL over GraphQL and is provider-agnostic
|
|
132
|
+
* — the same call opens a SharePoint object, an S3 object or a Box object. Its `Provider` is set from
|
|
133
|
+
* the host form's (D-25), which the service's own docs prescribe for multi-provider clients.
|
|
134
|
+
*
|
|
135
|
+
* The URL is pre-authenticated and time-limited, so the bytes never proxy through MJAPI and the link
|
|
136
|
+
* cannot be shared indefinitely.
|
|
137
|
+
*/
|
|
138
|
+
Open(f: LinkedFile): Promise<void>;
|
|
139
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RecordFilesPanelBase, never>;
|
|
140
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RecordFilesPanelBase, "mjc-record-files-panel", never, {}, {}, never, never, true, never>;
|
|
141
|
+
}
|
|
142
|
+
export declare class ContractFilesPanel extends RecordFilesPanelBase {
|
|
143
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ContractFilesPanel, never>;
|
|
144
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ContractFilesPanel, "mjc-contract-files-panel", never, {}, {}, never, never, true, never>;
|
|
145
|
+
}
|
|
146
|
+
export declare class ContractTemplateFilesPanel extends RecordFilesPanelBase {
|
|
147
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ContractTemplateFilesPanel, never>;
|
|
148
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ContractTemplateFilesPanel, "mjc-template-files-panel", never, {}, {}, never, never, true, never>;
|
|
149
|
+
}
|
|
150
|
+
export {};
|
|
151
|
+
//# sourceMappingURL=record-files.panel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"record-files.panel.d.ts","sourceRoot":"","sources":["../../../src/lib/form-panels/record-files.panel.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AAEH,OAAO,EAAgC,MAAM,EAAU,MAAM,eAAe,CAAC;AAI7E,OAAO,EAAE,aAAa,EAAmB,MAAM,+BAA+B,CAAC;;AAM/E,wEAAwE;AACxE,UAAU,UAAU;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,sFAAsF;IACtF,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,yFAAyF;IACzF,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5B;AAsHD;;GAEG;AACH,qBAOa,oBAAqB,SAAQ,aAAc,YAAW,MAAM;IACrE,OAAO,CAAC,QAAQ,CAAC,GAAG,CAA6B;IAEjD,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAA2B;IAE7C,KAA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