@mj-biz-apps/sales-ng 5.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.
Files changed (182) hide show
  1. package/LICENSE +183 -0
  2. package/dist/lib/activities/deal-activity-timeline.component.d.ts +104 -0
  3. package/dist/lib/activities/deal-activity-timeline.component.d.ts.map +1 -0
  4. package/dist/lib/activities/deal-activity-timeline.component.js +580 -0
  5. package/dist/lib/activities/deal-activity-timeline.component.js.map +1 -0
  6. package/dist/lib/board/deal-board.component.d.ts +194 -0
  7. package/dist/lib/board/deal-board.component.d.ts.map +1 -0
  8. package/dist/lib/board/deal-board.component.js +626 -0
  9. package/dist/lib/board/deal-board.component.js.map +1 -0
  10. package/dist/lib/custom/custom-forms.module.d.ts +14 -0
  11. package/dist/lib/custom/custom-forms.module.d.ts.map +1 -0
  12. package/dist/lib/custom/custom-forms.module.js +38 -0
  13. package/dist/lib/custom/custom-forms.module.js.map +1 -0
  14. package/dist/lib/custom/deal-form.component.d.ts +38 -0
  15. package/dist/lib/custom/deal-form.component.d.ts.map +1 -0
  16. package/dist/lib/custom/deal-form.component.js +346 -0
  17. package/dist/lib/custom/deal-form.component.js.map +1 -0
  18. package/dist/lib/custom/deal-line-form.component.d.ts +22 -0
  19. package/dist/lib/custom/deal-line-form.component.d.ts.map +1 -0
  20. package/dist/lib/custom/deal-line-form.component.js +129 -0
  21. package/dist/lib/custom/deal-line-form.component.js.map +1 -0
  22. package/dist/lib/custom/deal-stage-event-form.component.d.ts +26 -0
  23. package/dist/lib/custom/deal-stage-event-form.component.d.ts.map +1 -0
  24. package/dist/lib/custom/deal-stage-event-form.component.js +112 -0
  25. package/dist/lib/custom/deal-stage-event-form.component.js.map +1 -0
  26. package/dist/lib/custom/server-owned-fields.d.ts +47 -0
  27. package/dist/lib/custom/server-owned-fields.d.ts.map +1 -0
  28. package/dist/lib/custom/server-owned-fields.js +31 -0
  29. package/dist/lib/custom/server-owned-fields.js.map +1 -0
  30. package/dist/lib/generated/Entities/mjBizAppsSalesAccountType/mjbizappssalesaccounttype.form.component.d.ts +10 -0
  31. package/dist/lib/generated/Entities/mjBizAppsSalesAccountType/mjbizappssalesaccounttype.form.component.d.ts.map +1 -0
  32. package/dist/lib/generated/Entities/mjBizAppsSalesAccountType/mjbizappssalesaccounttype.form.component.js +90 -0
  33. package/dist/lib/generated/Entities/mjBizAppsSalesAccountType/mjbizappssalesaccounttype.form.component.js.map +1 -0
  34. package/dist/lib/generated/Entities/mjBizAppsSalesBuyingRoleType/mjbizappssalesbuyingroletype.form.component.d.ts +10 -0
  35. package/dist/lib/generated/Entities/mjBizAppsSalesBuyingRoleType/mjbizappssalesbuyingroletype.form.component.d.ts.map +1 -0
  36. package/dist/lib/generated/Entities/mjBizAppsSalesBuyingRoleType/mjbizappssalesbuyingroletype.form.component.js +108 -0
  37. package/dist/lib/generated/Entities/mjBizAppsSalesBuyingRoleType/mjbizappssalesbuyingroletype.form.component.js.map +1 -0
  38. package/dist/lib/generated/Entities/mjBizAppsSalesDeal/mjbizappssalesdeal.form.component.d.ts +10 -0
  39. package/dist/lib/generated/Entities/mjBizAppsSalesDeal/mjbizappssalesdeal.form.component.d.ts.map +1 -0
  40. package/dist/lib/generated/Entities/mjBizAppsSalesDeal/mjbizappssalesdeal.form.component.js +216 -0
  41. package/dist/lib/generated/Entities/mjBizAppsSalesDeal/mjbizappssalesdeal.form.component.js.map +1 -0
  42. package/dist/lib/generated/Entities/mjBizAppsSalesDealContactRole/mjbizappssalesdealcontactrole.form.component.d.ts +10 -0
  43. package/dist/lib/generated/Entities/mjBizAppsSalesDealContactRole/mjbizappssalesdealcontactrole.form.component.d.ts.map +1 -0
  44. package/dist/lib/generated/Entities/mjBizAppsSalesDealContactRole/mjbizappssalesdealcontactrole.form.component.js +65 -0
  45. package/dist/lib/generated/Entities/mjBizAppsSalesDealContactRole/mjbizappssalesdealcontactrole.form.component.js.map +1 -0
  46. package/dist/lib/generated/Entities/mjBizAppsSalesDealLine/mjbizappssalesdealline.form.component.d.ts +10 -0
  47. package/dist/lib/generated/Entities/mjBizAppsSalesDealLine/mjbizappssalesdealline.form.component.d.ts.map +1 -0
  48. package/dist/lib/generated/Entities/mjBizAppsSalesDealLine/mjbizappssalesdealline.form.component.js +95 -0
  49. package/dist/lib/generated/Entities/mjBizAppsSalesDealLine/mjbizappssalesdealline.form.component.js.map +1 -0
  50. package/dist/lib/generated/Entities/mjBizAppsSalesDealLineType/mjbizappssalesdeallinetype.form.component.d.ts +10 -0
  51. package/dist/lib/generated/Entities/mjBizAppsSalesDealLineType/mjbizappssalesdeallinetype.form.component.d.ts.map +1 -0
  52. package/dist/lib/generated/Entities/mjBizAppsSalesDealLineType/mjbizappssalesdeallinetype.form.component.js +86 -0
  53. package/dist/lib/generated/Entities/mjBizAppsSalesDealLineType/mjbizappssalesdeallinetype.form.component.js.map +1 -0
  54. package/dist/lib/generated/Entities/mjBizAppsSalesDealPaymentSchedule/mjbizappssalesdealpaymentschedule.form.component.d.ts +10 -0
  55. package/dist/lib/generated/Entities/mjBizAppsSalesDealPaymentSchedule/mjbizappssalesdealpaymentschedule.form.component.d.ts.map +1 -0
  56. package/dist/lib/generated/Entities/mjBizAppsSalesDealPaymentSchedule/mjbizappssalesdealpaymentschedule.form.component.js +65 -0
  57. package/dist/lib/generated/Entities/mjBizAppsSalesDealPaymentSchedule/mjbizappssalesdealpaymentschedule.form.component.js.map +1 -0
  58. package/dist/lib/generated/Entities/mjBizAppsSalesDealRole/mjbizappssalesdealrole.form.component.d.ts +10 -0
  59. package/dist/lib/generated/Entities/mjBizAppsSalesDealRole/mjbizappssalesdealrole.form.component.d.ts.map +1 -0
  60. package/dist/lib/generated/Entities/mjBizAppsSalesDealRole/mjbizappssalesdealrole.form.component.js +92 -0
  61. package/dist/lib/generated/Entities/mjBizAppsSalesDealRole/mjbizappssalesdealrole.form.component.js.map +1 -0
  62. package/dist/lib/generated/Entities/mjBizAppsSalesDealSequence/mjbizappssalesdealsequence.form.component.d.ts +10 -0
  63. package/dist/lib/generated/Entities/mjBizAppsSalesDealSequence/mjbizappssalesdealsequence.form.component.d.ts.map +1 -0
  64. package/dist/lib/generated/Entities/mjBizAppsSalesDealSequence/mjbizappssalesdealsequence.form.component.js +57 -0
  65. package/dist/lib/generated/Entities/mjBizAppsSalesDealSequence/mjbizappssalesdealsequence.form.component.js.map +1 -0
  66. package/dist/lib/generated/Entities/mjBizAppsSalesDealStageEvent/mjbizappssalesdealstageevent.form.component.d.ts +10 -0
  67. package/dist/lib/generated/Entities/mjBizAppsSalesDealStageEvent/mjbizappssalesdealstageevent.form.component.d.ts.map +1 -0
  68. package/dist/lib/generated/Entities/mjBizAppsSalesDealStageEvent/mjbizappssalesdealstageevent.form.component.js +77 -0
  69. package/dist/lib/generated/Entities/mjBizAppsSalesDealStageEvent/mjbizappssalesdealstageevent.form.component.js.map +1 -0
  70. package/dist/lib/generated/Entities/mjBizAppsSalesDealStatusType/mjbizappssalesdealstatustype.form.component.d.ts +10 -0
  71. package/dist/lib/generated/Entities/mjBizAppsSalesDealStatusType/mjbizappssalesdealstatustype.form.component.d.ts.map +1 -0
  72. package/dist/lib/generated/Entities/mjBizAppsSalesDealStatusType/mjbizappssalesdealstatustype.form.component.js +148 -0
  73. package/dist/lib/generated/Entities/mjBizAppsSalesDealStatusType/mjbizappssalesdealstatustype.form.component.js.map +1 -0
  74. package/dist/lib/generated/Entities/mjBizAppsSalesDealTeamMember/mjbizappssalesdealteammember.form.component.d.ts +10 -0
  75. package/dist/lib/generated/Entities/mjBizAppsSalesDealTeamMember/mjbizappssalesdealteammember.form.component.d.ts.map +1 -0
  76. package/dist/lib/generated/Entities/mjBizAppsSalesDealTeamMember/mjbizappssalesdealteammember.form.component.js +73 -0
  77. package/dist/lib/generated/Entities/mjBizAppsSalesDealTeamMember/mjbizappssalesdealteammember.form.component.js.map +1 -0
  78. package/dist/lib/generated/Entities/mjBizAppsSalesDealType/mjbizappssalesdealtype.form.component.d.ts +10 -0
  79. package/dist/lib/generated/Entities/mjBizAppsSalesDealType/mjbizappssalesdealtype.form.component.d.ts.map +1 -0
  80. package/dist/lib/generated/Entities/mjBizAppsSalesDealType/mjbizappssalesdealtype.form.component.js +108 -0
  81. package/dist/lib/generated/Entities/mjBizAppsSalesDealType/mjbizappssalesdealtype.form.component.js.map +1 -0
  82. package/dist/lib/generated/Entities/mjBizAppsSalesForecastCategoryType/mjbizappssalesforecastcategorytype.form.component.d.ts +10 -0
  83. package/dist/lib/generated/Entities/mjBizAppsSalesForecastCategoryType/mjbizappssalesforecastcategorytype.form.component.d.ts.map +1 -0
  84. package/dist/lib/generated/Entities/mjBizAppsSalesForecastCategoryType/mjbizappssalesforecastcategorytype.form.component.js +126 -0
  85. package/dist/lib/generated/Entities/mjBizAppsSalesForecastCategoryType/mjbizappssalesforecastcategorytype.form.component.js.map +1 -0
  86. package/dist/lib/generated/Entities/mjBizAppsSalesForecastSnapshot/mjbizappssalesforecastsnapshot.form.component.d.ts +10 -0
  87. package/dist/lib/generated/Entities/mjBizAppsSalesForecastSnapshot/mjbizappssalesforecastsnapshot.form.component.d.ts.map +1 -0
  88. package/dist/lib/generated/Entities/mjBizAppsSalesForecastSnapshot/mjbizappssalesforecastsnapshot.form.component.js +77 -0
  89. package/dist/lib/generated/Entities/mjBizAppsSalesForecastSnapshot/mjbizappssalesforecastsnapshot.form.component.js.map +1 -0
  90. package/dist/lib/generated/Entities/mjBizAppsSalesLeadSourceType/mjbizappssalesleadsourcetype.form.component.d.ts +10 -0
  91. package/dist/lib/generated/Entities/mjBizAppsSalesLeadSourceType/mjbizappssalesleadsourcetype.form.component.d.ts.map +1 -0
  92. package/dist/lib/generated/Entities/mjBizAppsSalesLeadSourceType/mjbizappssalesleadsourcetype.form.component.js +126 -0
  93. package/dist/lib/generated/Entities/mjBizAppsSalesLeadSourceType/mjbizappssalesleadsourcetype.form.component.js.map +1 -0
  94. package/dist/lib/generated/Entities/mjBizAppsSalesLifecycleStageType/mjbizappssaleslifecyclestagetype.form.component.d.ts +10 -0
  95. package/dist/lib/generated/Entities/mjBizAppsSalesLifecycleStageType/mjbizappssaleslifecyclestagetype.form.component.d.ts.map +1 -0
  96. package/dist/lib/generated/Entities/mjBizAppsSalesLifecycleStageType/mjbizappssaleslifecyclestagetype.form.component.js +108 -0
  97. package/dist/lib/generated/Entities/mjBizAppsSalesLifecycleStageType/mjbizappssaleslifecyclestagetype.form.component.js.map +1 -0
  98. package/dist/lib/generated/Entities/mjBizAppsSalesLossReason/mjbizappssaleslossreason.form.component.d.ts +10 -0
  99. package/dist/lib/generated/Entities/mjBizAppsSalesLossReason/mjbizappssaleslossreason.form.component.d.ts.map +1 -0
  100. package/dist/lib/generated/Entities/mjBizAppsSalesLossReason/mjbizappssaleslossreason.form.component.js +90 -0
  101. package/dist/lib/generated/Entities/mjBizAppsSalesLossReason/mjbizappssaleslossreason.form.component.js.map +1 -0
  102. package/dist/lib/generated/Entities/mjBizAppsSalesPipeline/mjbizappssalespipeline.form.component.d.ts +10 -0
  103. package/dist/lib/generated/Entities/mjBizAppsSalesPipeline/mjbizappssalespipeline.form.component.d.ts.map +1 -0
  104. package/dist/lib/generated/Entities/mjBizAppsSalesPipeline/mjbizappssalespipeline.form.component.js +150 -0
  105. package/dist/lib/generated/Entities/mjBizAppsSalesPipeline/mjbizappssalespipeline.form.component.js.map +1 -0
  106. package/dist/lib/generated/Entities/mjBizAppsSalesPipelineStage/mjbizappssalespipelinestage.form.component.d.ts +10 -0
  107. package/dist/lib/generated/Entities/mjBizAppsSalesPipelineStage/mjbizappssalespipelinestage.form.component.d.ts.map +1 -0
  108. package/dist/lib/generated/Entities/mjBizAppsSalesPipelineStage/mjbizappssalespipelinestage.form.component.js +138 -0
  109. package/dist/lib/generated/Entities/mjBizAppsSalesPipelineStage/mjbizappssalespipelinestage.form.component.js.map +1 -0
  110. package/dist/lib/generated/Entities/mjBizAppsSalesSalesAccount/mjbizappssalessalesaccount.form.component.d.ts +10 -0
  111. package/dist/lib/generated/Entities/mjBizAppsSalesSalesAccount/mjbizappssalessalesaccount.form.component.d.ts.map +1 -0
  112. package/dist/lib/generated/Entities/mjBizAppsSalesSalesAccount/mjbizappssalessalesaccount.form.component.js +124 -0
  113. package/dist/lib/generated/Entities/mjBizAppsSalesSalesAccount/mjbizappssalessalesaccount.form.component.js.map +1 -0
  114. package/dist/lib/generated/Entities/mjBizAppsSalesSalesContact/mjbizappssalessalescontact.form.component.d.ts +10 -0
  115. package/dist/lib/generated/Entities/mjBizAppsSalesSalesContact/mjbizappssalessalescontact.form.component.d.ts.map +1 -0
  116. package/dist/lib/generated/Entities/mjBizAppsSalesSalesContact/mjbizappssalessalescontact.form.component.js +156 -0
  117. package/dist/lib/generated/Entities/mjBizAppsSalesSalesContact/mjbizappssalessalescontact.form.component.js.map +1 -0
  118. package/dist/lib/generated/class-registrations-manifest.d.ts +20 -0
  119. package/dist/lib/generated/class-registrations-manifest.d.ts.map +1 -0
  120. package/dist/lib/generated/class-registrations-manifest.js +20 -0
  121. package/dist/lib/generated/class-registrations-manifest.js.map +1 -0
  122. package/dist/lib/generated/generated-forms.module.d.ts +37 -0
  123. package/dist/lib/generated/generated-forms.module.d.ts.map +1 -0
  124. package/dist/lib/generated/generated-forms.module.js +120 -0
  125. package/dist/lib/generated/generated-forms.module.js.map +1 -0
  126. package/dist/lib/nav/sales-nav.model.d.ts +93 -0
  127. package/dist/lib/nav/sales-nav.model.d.ts.map +1 -0
  128. package/dist/lib/nav/sales-nav.model.js +126 -0
  129. package/dist/lib/nav/sales-nav.model.js.map +1 -0
  130. package/dist/lib/sections/sales-section.component.d.ts +213 -0
  131. package/dist/lib/sections/sales-section.component.d.ts.map +1 -0
  132. package/dist/lib/sections/sales-section.component.js +905 -0
  133. package/dist/lib/sections/sales-section.component.js.map +1 -0
  134. package/dist/lib/vendored/workspace-tabs/workspace-card.component.d.ts +55 -0
  135. package/dist/lib/vendored/workspace-tabs/workspace-card.component.d.ts.map +1 -0
  136. package/dist/lib/vendored/workspace-tabs/workspace-card.component.js +243 -0
  137. package/dist/lib/vendored/workspace-tabs/workspace-card.component.js.map +1 -0
  138. package/dist/lib/vendored/workspace-tabs/workspace-tab-store.d.ts +47 -0
  139. package/dist/lib/vendored/workspace-tabs/workspace-tab-store.d.ts.map +1 -0
  140. package/dist/lib/vendored/workspace-tabs/workspace-tab-store.js +112 -0
  141. package/dist/lib/vendored/workspace-tabs/workspace-tab-store.js.map +1 -0
  142. package/dist/lib/vendored/workspace-tabs/workspace-tab-strip.component.d.ts +36 -0
  143. package/dist/lib/vendored/workspace-tabs/workspace-tab-strip.component.d.ts.map +1 -0
  144. package/dist/lib/vendored/workspace-tabs/workspace-tab-strip.component.js +179 -0
  145. package/dist/lib/vendored/workspace-tabs/workspace-tab-strip.component.js.map +1 -0
  146. package/dist/lib/vendored/workspace-tabs/workspace-tabs.types.d.ts +36 -0
  147. package/dist/lib/vendored/workspace-tabs/workspace-tabs.types.d.ts.map +1 -0
  148. package/dist/lib/vendored/workspace-tabs/workspace-tabs.types.js +9 -0
  149. package/dist/lib/vendored/workspace-tabs/workspace-tabs.types.js.map +1 -0
  150. package/dist/lib/vendored/workspace-tabs/workspace-tip.directive.d.ts +35 -0
  151. package/dist/lib/vendored/workspace-tabs/workspace-tip.directive.d.ts.map +1 -0
  152. package/dist/lib/vendored/workspace-tabs/workspace-tip.directive.js +124 -0
  153. package/dist/lib/vendored/workspace-tabs/workspace-tip.directive.js.map +1 -0
  154. package/dist/lib/workspace/deal-workspace.component.d.ts +706 -0
  155. package/dist/lib/workspace/deal-workspace.component.d.ts.map +1 -0
  156. package/dist/lib/workspace/deal-workspace.component.js +2749 -0
  157. package/dist/lib/workspace/deal-workspace.component.js.map +1 -0
  158. package/dist/lib/workspace/deal-workspace.dates.d.ts +40 -0
  159. package/dist/lib/workspace/deal-workspace.dates.d.ts.map +1 -0
  160. package/dist/lib/workspace/deal-workspace.dates.js +60 -0
  161. package/dist/lib/workspace/deal-workspace.dates.js.map +1 -0
  162. package/dist/lib/workspace/deal-workspace.products.d.ts +61 -0
  163. package/dist/lib/workspace/deal-workspace.products.d.ts.map +1 -0
  164. package/dist/lib/workspace/deal-workspace.products.js +58 -0
  165. package/dist/lib/workspace/deal-workspace.products.js.map +1 -0
  166. package/dist/lib/workspace/deal-workspace.service.d.ts +207 -0
  167. package/dist/lib/workspace/deal-workspace.service.d.ts.map +1 -0
  168. package/dist/lib/workspace/deal-workspace.service.js +501 -0
  169. package/dist/lib/workspace/deal-workspace.service.js.map +1 -0
  170. package/dist/lib/workspace/deal-workspace.types.d.ts +101 -0
  171. package/dist/lib/workspace/deal-workspace.types.d.ts.map +1 -0
  172. package/dist/lib/workspace/deal-workspace.types.js +35 -0
  173. package/dist/lib/workspace/deal-workspace.types.js.map +1 -0
  174. package/dist/lib/workspace/deal-workspace.validation.d.ts +174 -0
  175. package/dist/lib/workspace/deal-workspace.validation.d.ts.map +1 -0
  176. package/dist/lib/workspace/deal-workspace.validation.js +288 -0
  177. package/dist/lib/workspace/deal-workspace.validation.js.map +1 -0
  178. package/dist/public-api.d.ts +63 -0
  179. package/dist/public-api.d.ts.map +1 -0
  180. package/dist/public-api.js +96 -0
  181. package/dist/public-api.js.map +1 -0
  182. package/package.json +57 -0
@@ -0,0 +1,129 @@
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 Deal Line form — the pricing provenance is the server's, not the user's.
9
+ *
10
+ * `DealLine.ResolvedUnitPrice`, `ResolvedExtendedAmount`, `PriceComponentsJSON` and `PricedAt` are
11
+ * WRITE-ONLY from sales' point of view: they are populated from an orders pricing response and never
12
+ * computed or hand-edited here (the first of the three rules this app exists to uphold).
13
+ * `DealLineEntity.RefusePricingProvenanceEdits()` enforces that on save.
14
+ *
15
+ * The generated form does not know any of this and renders all four as ordinary editable fields. So a
16
+ * user can type a price into a quote, press Save, and be refused — correctly, but only after the round
17
+ * trip, and with nothing pointing at which field was the problem. This form moves that refusal forward
18
+ * to the moment they try to save, and names the field.
19
+ *
20
+ * It does NOT grey the fields out, and that is a limitation rather than a choice: see
21
+ * `server-owned-fields.mixin.ts` for why `BaseFormComponent` cannot express per-field read-only.
22
+ *
23
+ * @module @mj-biz-apps/sales-ng
24
+ */
25
+ import { Component } from '@angular/core';
26
+ import { RegisterClass } from '@memberjunction/global';
27
+ import { BaseFormComponent } from '@memberjunction/ng-base-forms';
28
+ import { PRICING_PROVENANCE_FIELDS } from '@mj-biz-apps/sales-entities';
29
+ import { mjBizAppsSalesDealLineFormComponent } from '../generated/Entities/mjBizAppsSalesDealLine/mjbizappssalesdealline.form.component';
30
+ import { RefuseServerOwnedEdits } from './server-owned-fields';
31
+ import * as i0 from "@angular/core";
32
+ import * as i1 from "@memberjunction/ng-base-forms";
33
+ /**
34
+ * Registered at PRIORITY 2, explicitly.
35
+ *
36
+ * The generated form registers under the same key at the auto-assigned priority, and MJ's ClassFactory
37
+ * resolves the highest priority. Relying on import order instead — which is the common pattern — makes
38
+ * the winner depend on which file the bundler happened to reach first, and that is not a property worth
39
+ * betting a form on.
40
+ */
41
+ let DealLineFormComponentExtended = class DealLineFormComponentExtended extends mjBizAppsSalesDealLineFormComponent {
42
+ /** The write-only pricing stamps, from the SAME list `DealLineEntity` refuses edits to. */
43
+ ServerOwnedFields = [...PRICING_PROVENANCE_FIELDS];
44
+ ServerOwnedReason = 'Priced by Orders, not editable here. Sales records what was asked for — product, quantity and ' +
45
+ 'requested discount — and Orders returns the money. To change a price, change the request and ' +
46
+ 'reprice.';
47
+ Validate() {
48
+ return RefuseServerOwnedEdits(super.Validate(), this.record, this.ServerOwnedFields, this.ServerOwnedReason);
49
+ }
50
+ static ɵfac = /*@__PURE__*/ (() => { let ɵDealLineFormComponentExtended_BaseFactory; return function DealLineFormComponentExtended_Factory(__ngFactoryType__) { return (ɵDealLineFormComponentExtended_BaseFactory || (ɵDealLineFormComponentExtended_BaseFactory = i0.ɵɵgetInheritedFactory(DealLineFormComponentExtended)))(__ngFactoryType__ || DealLineFormComponentExtended); }; })();
51
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: DealLineFormComponentExtended, selectors: [["mjs-deal-line-form"]], standalone: false, features: [i0.ɵɵInheritDefinitionFeature], decls: 27, vars: 107, consts: [[3, "Navigate", "DeleteRequested", "FavoriteToggled", "HistoryRequested", "ListManagementRequested", "Record", "FormComponent"], ["Slot", "before-fields", 3, "Entity", "Record", "FormComponent", "FormContext"], ["SectionKey", "details", "SectionName", "Details", "Icon", "fa fa-align-left", 3, "Form", "FormContext"], ["FieldName", "DealID", "Type", "textbox", "LinkType", "Record", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "ProductID", "Type", "textbox", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "ProductName", "Type", "textbox", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "Quantity", "Type", "number", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "RequestedDiscountPct", "Type", "number", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "OverrideUnitPrice", "Type", "number", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "TermMonths", "Type", "number", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "ServicePeriodStart", "Type", "datepicker", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "ServicePeriodEnd", "Type", "datepicker", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "DealLineTypeID", "Type", "textbox", "LinkType", "Record", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "DisplayOrder", "Type", "number", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "Description", "Type", "textarea", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "AnnualGrossFees", "Type", "number", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "DiscountAmount", "Type", "number", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "Total", "Type", "number", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "ResolvedUnitPrice", "Type", "number", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "ResolvedExtendedAmount", "Type", "number", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "PriceComponentsJSON", "Type", "textarea", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "PricedAt", "Type", "datepicker", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "CompanyID", "Type", "textbox", "LinkType", "Record", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "__mj_CreatedAt", "Type", "textbox", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "__mj_UpdatedAt", "Type", "textbox", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["Slot", "after-fields", 3, "Entity", "Record", "FormComponent", "FormContext"], ["Slot", "after-related", 3, "Entity", "Record", "FormComponent", "FormContext"]], template: function DealLineFormComponentExtended_Template(rf, ctx) { if (rf & 1) {
52
+ i0.ɵɵelementStart(0, "mj-record-form-container", 0);
53
+ i0.ɵɵlistener("Navigate", function DealLineFormComponentExtended_Template_mj_record_form_container_Navigate_0_listener($event) { return ctx.OnFormNavigate($event); })("DeleteRequested", function DealLineFormComponentExtended_Template_mj_record_form_container_DeleteRequested_0_listener() { return ctx.OnDeleteRequested(); })("FavoriteToggled", function DealLineFormComponentExtended_Template_mj_record_form_container_FavoriteToggled_0_listener() { return ctx.OnFavoriteToggled(); })("HistoryRequested", function DealLineFormComponentExtended_Template_mj_record_form_container_HistoryRequested_0_listener() { return ctx.OnHistoryRequested(); })("ListManagementRequested", function DealLineFormComponentExtended_Template_mj_record_form_container_ListManagementRequested_0_listener() { return ctx.OnListManagementRequested(); });
54
+ i0.ɵɵelement(1, "mj-form-panel-slot", 1);
55
+ i0.ɵɵelementStart(2, "mj-collapsible-panel", 2);
56
+ i0.ɵɵelement(3, "mj-form-field", 3)(4, "mj-form-field", 4)(5, "mj-form-field", 5)(6, "mj-form-field", 6)(7, "mj-form-field", 7)(8, "mj-form-field", 8)(9, "mj-form-field", 9)(10, "mj-form-field", 10)(11, "mj-form-field", 11)(12, "mj-form-field", 12)(13, "mj-form-field", 13)(14, "mj-form-field", 14)(15, "mj-form-field", 15)(16, "mj-form-field", 16)(17, "mj-form-field", 17)(18, "mj-form-field", 18)(19, "mj-form-field", 19)(20, "mj-form-field", 20)(21, "mj-form-field", 21)(22, "mj-form-field", 22)(23, "mj-form-field", 23)(24, "mj-form-field", 24);
57
+ i0.ɵɵelementEnd();
58
+ i0.ɵɵelement(25, "mj-form-panel-slot", 25)(26, "mj-form-panel-slot", 26);
59
+ i0.ɵɵelementEnd();
60
+ } if (rf & 2) {
61
+ i0.ɵɵproperty("Record", ctx.record)("FormComponent", ctx);
62
+ i0.ɵɵadvance();
63
+ i0.ɵɵproperty("Entity", i0.ɵɵinterpolate(ctx.record.EntityInfo.Name))("Record", ctx.record)("FormComponent", ctx)("FormContext", ctx.formContext);
64
+ i0.ɵɵadvance();
65
+ i0.ɵɵproperty("Form", ctx)("FormContext", ctx.formContext);
66
+ i0.ɵɵadvance();
67
+ i0.ɵɵproperty("Record", ctx.record)("ShowLabel", true)("EditMode", ctx.EditMode)("FormContext", ctx.formContext);
68
+ i0.ɵɵadvance();
69
+ i0.ɵɵproperty("Record", ctx.record)("ShowLabel", true)("EditMode", ctx.EditMode)("FormContext", ctx.formContext);
70
+ i0.ɵɵadvance();
71
+ i0.ɵɵproperty("Record", ctx.record)("ShowLabel", true)("EditMode", ctx.EditMode)("FormContext", ctx.formContext);
72
+ i0.ɵɵadvance();
73
+ i0.ɵɵproperty("Record", ctx.record)("ShowLabel", true)("EditMode", ctx.EditMode)("FormContext", ctx.formContext);
74
+ i0.ɵɵadvance();
75
+ i0.ɵɵproperty("Record", ctx.record)("ShowLabel", true)("EditMode", ctx.EditMode)("FormContext", ctx.formContext);
76
+ i0.ɵɵadvance();
77
+ i0.ɵɵproperty("Record", ctx.record)("ShowLabel", true)("EditMode", ctx.EditMode)("FormContext", ctx.formContext);
78
+ i0.ɵɵadvance();
79
+ i0.ɵɵproperty("Record", ctx.record)("ShowLabel", true)("EditMode", ctx.EditMode)("FormContext", ctx.formContext);
80
+ i0.ɵɵadvance();
81
+ i0.ɵɵproperty("Record", ctx.record)("ShowLabel", true)("EditMode", ctx.EditMode)("FormContext", ctx.formContext);
82
+ i0.ɵɵadvance();
83
+ i0.ɵɵproperty("Record", ctx.record)("ShowLabel", true)("EditMode", ctx.EditMode)("FormContext", ctx.formContext);
84
+ i0.ɵɵadvance();
85
+ i0.ɵɵproperty("Record", ctx.record)("ShowLabel", true)("EditMode", ctx.EditMode)("FormContext", ctx.formContext);
86
+ i0.ɵɵadvance();
87
+ i0.ɵɵproperty("Record", ctx.record)("ShowLabel", true)("EditMode", ctx.EditMode)("FormContext", ctx.formContext);
88
+ i0.ɵɵadvance();
89
+ i0.ɵɵproperty("Record", ctx.record)("ShowLabel", true)("EditMode", ctx.EditMode)("FormContext", ctx.formContext);
90
+ i0.ɵɵadvance();
91
+ i0.ɵɵproperty("Record", ctx.record)("ShowLabel", true)("EditMode", ctx.EditMode)("FormContext", ctx.formContext);
92
+ i0.ɵɵadvance();
93
+ i0.ɵɵproperty("Record", ctx.record)("ShowLabel", true)("EditMode", ctx.EditMode)("FormContext", ctx.formContext);
94
+ i0.ɵɵadvance();
95
+ i0.ɵɵproperty("Record", ctx.record)("ShowLabel", true)("EditMode", ctx.EditMode)("FormContext", ctx.formContext);
96
+ i0.ɵɵadvance();
97
+ i0.ɵɵproperty("Record", ctx.record)("ShowLabel", true)("EditMode", ctx.EditMode)("FormContext", ctx.formContext);
98
+ i0.ɵɵadvance();
99
+ i0.ɵɵproperty("Record", ctx.record)("ShowLabel", true)("EditMode", ctx.EditMode)("FormContext", ctx.formContext);
100
+ i0.ɵɵadvance();
101
+ i0.ɵɵproperty("Record", ctx.record)("ShowLabel", true)("EditMode", ctx.EditMode)("FormContext", ctx.formContext);
102
+ i0.ɵɵadvance();
103
+ i0.ɵɵproperty("Record", ctx.record)("ShowLabel", true)("EditMode", ctx.EditMode)("FormContext", ctx.formContext);
104
+ i0.ɵɵadvance();
105
+ i0.ɵɵproperty("Record", ctx.record)("ShowLabel", true)("EditMode", ctx.EditMode)("FormContext", ctx.formContext);
106
+ i0.ɵɵadvance();
107
+ i0.ɵɵproperty("Record", ctx.record)("ShowLabel", true)("EditMode", ctx.EditMode)("FormContext", ctx.formContext);
108
+ i0.ɵɵadvance();
109
+ i0.ɵɵproperty("Record", ctx.record)("ShowLabel", true)("EditMode", ctx.EditMode)("FormContext", ctx.formContext);
110
+ i0.ɵɵadvance();
111
+ i0.ɵɵproperty("Entity", i0.ɵɵinterpolate(ctx.record.EntityInfo.Name))("Record", ctx.record)("FormComponent", ctx)("FormContext", ctx.formContext);
112
+ i0.ɵɵadvance();
113
+ i0.ɵɵproperty("Entity", i0.ɵɵinterpolate(ctx.record.EntityInfo.Name))("Record", ctx.record)("FormComponent", ctx)("FormContext", ctx.formContext);
114
+ } }, dependencies: [i1.MjFormFieldComponent, i1.MjCollapsiblePanelComponent, i1.MjRecordFormContainerComponent, i1.FormPanelSlotComponent], encapsulation: 2 });
115
+ };
116
+ DealLineFormComponentExtended = __decorate([
117
+ RegisterClass(BaseFormComponent, 'MJ_BizApps_Sales: Deal Lines', 2)
118
+ ], DealLineFormComponentExtended);
119
+ export { DealLineFormComponentExtended };
120
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DealLineFormComponentExtended, [{
121
+ type: Component,
122
+ args: [{ standalone: false, selector: 'mjs-deal-line-form', template: "<mj-record-form-container [Record]=\"record\" [FormComponent]=\"this\"\n (Navigate)=\"OnFormNavigate($event)\"\n (DeleteRequested)=\"OnDeleteRequested()\"\n (FavoriteToggled)=\"OnFavoriteToggled()\"\n (HistoryRequested)=\"OnHistoryRequested()\"\n (ListManagementRequested)=\"OnListManagementRequested()\">\n\n <mj-form-panel-slot Entity=\"{{record.EntityInfo.Name}}\" Slot=\"before-fields\" [Record]=\"record\" [FormComponent]=\"this\" [FormContext]=\"formContext\"></mj-form-panel-slot>\n\n <!-- ========================================\n FIELD PANELS\n ======================================== -->\n <!-- Details Section -->\n <mj-collapsible-panel\n SectionKey=\"details\"\n SectionName=\"Details\"\n Icon=\"fa fa-align-left\"\n [Form]=\"this\"\n [FormContext]=\"formContext\">\n <mj-form-field \n [Record]=\"record\"\n [ShowLabel]=\"true\"\n FieldName=\"DealID\"\n Type=\"textbox\"\n [EditMode]=\"EditMode\"\n [FormContext]=\"formContext\"\n LinkType=\"Record\"\n ></mj-form-field>\n <mj-form-field \n [Record]=\"record\"\n [ShowLabel]=\"true\"\n FieldName=\"ProductID\"\n Type=\"textbox\"\n [EditMode]=\"EditMode\"\n [FormContext]=\"formContext\"\n ></mj-form-field>\n <mj-form-field \n [Record]=\"record\"\n [ShowLabel]=\"true\"\n FieldName=\"ProductName\"\n Type=\"textbox\"\n [EditMode]=\"EditMode\"\n [FormContext]=\"formContext\"\n ></mj-form-field>\n <mj-form-field \n [Record]=\"record\"\n [ShowLabel]=\"true\"\n FieldName=\"Quantity\"\n Type=\"number\"\n [EditMode]=\"EditMode\"\n [FormContext]=\"formContext\"\n ></mj-form-field>\n <mj-form-field \n [Record]=\"record\"\n [ShowLabel]=\"true\"\n FieldName=\"RequestedDiscountPct\"\n Type=\"number\"\n [EditMode]=\"EditMode\"\n [FormContext]=\"formContext\"\n ></mj-form-field>\n <mj-form-field \n [Record]=\"record\"\n [ShowLabel]=\"true\"\n FieldName=\"OverrideUnitPrice\"\n Type=\"number\"\n [EditMode]=\"EditMode\"\n [FormContext]=\"formContext\"\n ></mj-form-field>\n <mj-form-field \n [Record]=\"record\"\n [ShowLabel]=\"true\"\n FieldName=\"TermMonths\"\n Type=\"number\"\n [EditMode]=\"EditMode\"\n [FormContext]=\"formContext\"\n ></mj-form-field>\n <mj-form-field \n [Record]=\"record\"\n [ShowLabel]=\"true\"\n FieldName=\"ServicePeriodStart\"\n Type=\"datepicker\"\n [EditMode]=\"EditMode\"\n [FormContext]=\"formContext\"\n ></mj-form-field>\n <mj-form-field \n [Record]=\"record\"\n [ShowLabel]=\"true\"\n FieldName=\"ServicePeriodEnd\"\n Type=\"datepicker\"\n [EditMode]=\"EditMode\"\n [FormContext]=\"formContext\"\n ></mj-form-field>\n <mj-form-field \n [Record]=\"record\"\n [ShowLabel]=\"true\"\n FieldName=\"DealLineTypeID\"\n Type=\"textbox\"\n [EditMode]=\"EditMode\"\n [FormContext]=\"formContext\"\n LinkType=\"Record\"\n ></mj-form-field>\n <mj-form-field \n [Record]=\"record\"\n [ShowLabel]=\"true\"\n FieldName=\"DisplayOrder\"\n Type=\"number\"\n [EditMode]=\"EditMode\"\n [FormContext]=\"formContext\"\n ></mj-form-field>\n <mj-form-field \n [Record]=\"record\"\n [ShowLabel]=\"true\"\n FieldName=\"Description\"\n Type=\"textarea\"\n [EditMode]=\"EditMode\"\n [FormContext]=\"formContext\"\n ></mj-form-field>\n <mj-form-field \n [Record]=\"record\"\n [ShowLabel]=\"true\"\n FieldName=\"AnnualGrossFees\"\n Type=\"number\"\n [EditMode]=\"EditMode\"\n [FormContext]=\"formContext\"\n ></mj-form-field>\n <mj-form-field \n [Record]=\"record\"\n [ShowLabel]=\"true\"\n FieldName=\"DiscountAmount\"\n Type=\"number\"\n [EditMode]=\"EditMode\"\n [FormContext]=\"formContext\"\n ></mj-form-field>\n <mj-form-field \n [Record]=\"record\"\n [ShowLabel]=\"true\"\n FieldName=\"Total\"\n Type=\"number\"\n [EditMode]=\"EditMode\"\n [FormContext]=\"formContext\"\n ></mj-form-field>\n <mj-form-field \n [Record]=\"record\"\n [ShowLabel]=\"true\"\n FieldName=\"ResolvedUnitPrice\"\n Type=\"number\"\n [EditMode]=\"EditMode\"\n [FormContext]=\"formContext\"\n ></mj-form-field>\n <mj-form-field \n [Record]=\"record\"\n [ShowLabel]=\"true\"\n FieldName=\"ResolvedExtendedAmount\"\n Type=\"number\"\n [EditMode]=\"EditMode\"\n [FormContext]=\"formContext\"\n ></mj-form-field>\n <mj-form-field \n [Record]=\"record\"\n [ShowLabel]=\"true\"\n FieldName=\"PriceComponentsJSON\"\n Type=\"textarea\"\n [EditMode]=\"EditMode\"\n [FormContext]=\"formContext\"\n ></mj-form-field>\n <mj-form-field \n [Record]=\"record\"\n [ShowLabel]=\"true\"\n FieldName=\"PricedAt\"\n Type=\"datepicker\"\n [EditMode]=\"EditMode\"\n [FormContext]=\"formContext\"\n ></mj-form-field>\n <mj-form-field \n [Record]=\"record\"\n [ShowLabel]=\"true\"\n FieldName=\"CompanyID\"\n Type=\"textbox\"\n [EditMode]=\"EditMode\"\n [FormContext]=\"formContext\"\n LinkType=\"Record\"\n ></mj-form-field>\n <mj-form-field \n [Record]=\"record\"\n [ShowLabel]=\"true\"\n FieldName=\"__mj_CreatedAt\"\n Type=\"textbox\"\n [EditMode]=\"EditMode\"\n [FormContext]=\"formContext\"\n ></mj-form-field>\n <mj-form-field \n [Record]=\"record\"\n [ShowLabel]=\"true\"\n FieldName=\"__mj_UpdatedAt\"\n Type=\"textbox\"\n [EditMode]=\"EditMode\"\n [FormContext]=\"formContext\"\n ></mj-form-field>\n\n </mj-collapsible-panel>\n\n <mj-form-panel-slot Entity=\"{{record.EntityInfo.Name}}\" Slot=\"after-fields\" [Record]=\"record\" [FormComponent]=\"this\" [FormContext]=\"formContext\"></mj-form-panel-slot>\n\n <mj-form-panel-slot Entity=\"{{record.EntityInfo.Name}}\" Slot=\"after-related\" [Record]=\"record\" [FormComponent]=\"this\" [FormContext]=\"formContext\"></mj-form-panel-slot>\n</mj-record-form-container>\n " }]
123
+ }], null, null); })();
124
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(DealLineFormComponentExtended, { className: "DealLineFormComponentExtended", filePath: "lib/custom/deal-line-form.component.ts", lineNumber: 42 }); })();
125
+ /** Anti-tree-shaking anchor. Nothing references this class by name, so the import must be held open. */
126
+ export function LoadDealLineForm() {
127
+ /* keeps the registration alive */
128
+ }
129
+ //# sourceMappingURL=deal-line-form.component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deal-line-form.component.js","sourceRoot":"","sources":["../../../src/lib/custom/deal-line-form.component.ts","../../../src/lib/generated/Entities/mjBizAppsSalesDealLine/mjbizappssalesdealline.form.component.html"],"names":[],"mappings":"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"}
@@ -0,0 +1,26 @@
1
+ import { mjBizAppsSalesDealStageEventFormComponent } from '../generated/Entities/mjBizAppsSalesDealStageEvent/mjbizappssalesdealstageevent.form.component';
2
+ import * as i0 from "@angular/core";
3
+ /**
4
+ * The registration priority is EXPLICIT rather than left to import order.
5
+ *
6
+ * `@RegisterClass` resolves last-registration-wins, so two subclasses for one entity would be decided by
7
+ * whichever module the bundler happened to import second -- stable in dev and not necessarily in a
8
+ * different build. Stating the priority makes the winner a decision instead of an accident.
9
+ */
10
+ export declare class DealStageEventFormComponentExtended extends mjBizAppsSalesDealStageEventFormComponent {
11
+ /** Shown instead of silently doing nothing, so a refused Edit click explains itself. */
12
+ ReadOnlyNotice: string | null;
13
+ /**
14
+ * Refuses edit mode outright.
15
+ *
16
+ * Overriding this rather than hiding the Edit button in a forked template: the button lives in
17
+ * generated chrome, a fork would drift from CodeGen, and hiding a control is a weaker guarantee than
18
+ * refusing the transition it triggers — a keyboard shortcut or a programmatic caller still lands here.
19
+ */
20
+ StartEditMode(): void;
21
+ static ɵfac: i0.ɵɵFactoryDeclaration<DealStageEventFormComponentExtended, never>;
22
+ static ɵcmp: i0.ɵɵComponentDeclaration<DealStageEventFormComponentExtended, "mjs-deal-stage-event-form", never, {}, {}, never, never, false, never>;
23
+ }
24
+ /** Anti-tree-shaking anchor. */
25
+ export declare function LoadDealStageEventForm(): void;
26
+ //# sourceMappingURL=deal-stage-event-form.component.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deal-stage-event-form.component.d.ts","sourceRoot":"","sources":["../../../src/lib/custom/deal-stage-event-form.component.ts"],"names":[],"mappings":"AAkBA,OAAO,EAAE,yCAAyC,EAAE,MAAM,gGAAgG,CAAC;;AAE3J;;;;;;GAMG;AACH,qBAOa,mCAAoC,SAAQ,yCAAyC;IAC9F,wFAAwF;IACjF,cAAc,EAAE,MAAM,GAAG,IAAI,CAAQ;IAE5C;;;;;;OAMG;IACa,aAAa,IAAI,IAAI;yCAX5B,mCAAmC;2CAAnC,mCAAmC;CAkB/C;AAED,gCAAgC;AAChC,wBAAgB,sBAAsB,IAAI,IAAI,CAE7C"}
@@ -0,0 +1,112 @@
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 Deal Stage Event form — provenance is read, never written. "Pen, not pencil."
9
+ *
10
+ * `DealStageEvent` is APPEND-ONLY (the third rule this app upholds). Each row stamps
11
+ * `AmountAtTransition` and `ProbabilityAtTransition` at the moment of a transition, and those stamps are
12
+ * the only reason "what did we think the forecast was on the 1st" is answerable once amounts have moved.
13
+ * Editing one does not correct history; it destroys the record that made history checkable.
14
+ *
15
+ * Unlike the Deal Line form, this one CAN be expressed exactly: the whole record is read-only, and
16
+ * `BaseFormComponent.EditMode` is a whole-form switch. So this form simply refuses to enter edit mode
17
+ * and says why, rather than offering an Edit button that leads to a wall.
18
+ *
19
+ * @module @mj-biz-apps/sales-ng
20
+ */
21
+ import { Component } from '@angular/core';
22
+ import { RegisterClass } from '@memberjunction/global';
23
+ import { BaseFormComponent } from '@memberjunction/ng-base-forms';
24
+ import { mjBizAppsSalesDealStageEventFormComponent } from '../generated/Entities/mjBizAppsSalesDealStageEvent/mjbizappssalesdealstageevent.form.component';
25
+ import * as i0 from "@angular/core";
26
+ import * as i1 from "@memberjunction/ng-base-forms";
27
+ /**
28
+ * The registration priority is EXPLICIT rather than left to import order.
29
+ *
30
+ * `@RegisterClass` resolves last-registration-wins, so two subclasses for one entity would be decided by
31
+ * whichever module the bundler happened to import second -- stable in dev and not necessarily in a
32
+ * different build. Stating the priority makes the winner a decision instead of an accident.
33
+ */
34
+ let DealStageEventFormComponentExtended = class DealStageEventFormComponentExtended extends mjBizAppsSalesDealStageEventFormComponent {
35
+ /** Shown instead of silently doing nothing, so a refused Edit click explains itself. */
36
+ ReadOnlyNotice = null;
37
+ /**
38
+ * Refuses edit mode outright.
39
+ *
40
+ * Overriding this rather than hiding the Edit button in a forked template: the button lives in
41
+ * generated chrome, a fork would drift from CodeGen, and hiding a control is a weaker guarantee than
42
+ * refusing the transition it triggers — a keyboard shortcut or a programmatic caller still lands here.
43
+ */
44
+ StartEditMode() {
45
+ this.ReadOnlyNotice =
46
+ 'Stage events are append-only. This row records what the deal looked like at a transition, ' +
47
+ 'and editing it would rewrite the history the forecast is checked against. To change the ' +
48
+ 'deal, change the deal — a new event will be recorded.';
49
+ this.cdr?.detectChanges();
50
+ }
51
+ static ɵfac = /*@__PURE__*/ (() => { let ɵDealStageEventFormComponentExtended_BaseFactory; return function DealStageEventFormComponentExtended_Factory(__ngFactoryType__) { return (ɵDealStageEventFormComponentExtended_BaseFactory || (ɵDealStageEventFormComponentExtended_BaseFactory = i0.ɵɵgetInheritedFactory(DealStageEventFormComponentExtended)))(__ngFactoryType__ || DealStageEventFormComponentExtended); }; })();
52
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: DealStageEventFormComponentExtended, selectors: [["mjs-deal-stage-event-form"]], standalone: false, features: [i0.ɵɵInheritDefinitionFeature], decls: 18, vars: 71, consts: [[3, "Navigate", "DeleteRequested", "FavoriteToggled", "HistoryRequested", "ListManagementRequested", "Record", "FormComponent"], ["Slot", "before-fields", 3, "Entity", "Record", "FormComponent", "FormContext"], ["SectionKey", "details", "SectionName", "Details", "Icon", "fa fa-align-left", 3, "Form", "FormContext"], ["FieldName", "DealID", "Type", "textbox", "LinkType", "Record", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "FromStageID", "Type", "textbox", "LinkType", "Record", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "ToStageID", "Type", "textbox", "LinkType", "Record", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "FromDealStatusTypeID", "Type", "textbox", "LinkType", "Record", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "ToDealStatusTypeID", "Type", "textbox", "LinkType", "Record", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "ChangedByUserID", "Type", "textbox", "LinkType", "Record", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "ChangedAt", "Type", "datepicker", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "DaysInPreviousStage", "Type", "number", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "AmountAtTransition", "Type", "number", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "ProbabilityAtTransition", "Type", "number", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "Notes", "Type", "textarea", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "__mj_CreatedAt", "Type", "textbox", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "__mj_UpdatedAt", "Type", "textbox", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["Slot", "after-fields", 3, "Entity", "Record", "FormComponent", "FormContext"], ["Slot", "after-related", 3, "Entity", "Record", "FormComponent", "FormContext"]], template: function DealStageEventFormComponentExtended_Template(rf, ctx) { if (rf & 1) {
53
+ i0.ɵɵelementStart(0, "mj-record-form-container", 0);
54
+ i0.ɵɵlistener("Navigate", function DealStageEventFormComponentExtended_Template_mj_record_form_container_Navigate_0_listener($event) { return ctx.OnFormNavigate($event); })("DeleteRequested", function DealStageEventFormComponentExtended_Template_mj_record_form_container_DeleteRequested_0_listener() { return ctx.OnDeleteRequested(); })("FavoriteToggled", function DealStageEventFormComponentExtended_Template_mj_record_form_container_FavoriteToggled_0_listener() { return ctx.OnFavoriteToggled(); })("HistoryRequested", function DealStageEventFormComponentExtended_Template_mj_record_form_container_HistoryRequested_0_listener() { return ctx.OnHistoryRequested(); })("ListManagementRequested", function DealStageEventFormComponentExtended_Template_mj_record_form_container_ListManagementRequested_0_listener() { return ctx.OnListManagementRequested(); });
55
+ i0.ɵɵelement(1, "mj-form-panel-slot", 1);
56
+ i0.ɵɵelementStart(2, "mj-collapsible-panel", 2);
57
+ i0.ɵɵelement(3, "mj-form-field", 3)(4, "mj-form-field", 4)(5, "mj-form-field", 5)(6, "mj-form-field", 6)(7, "mj-form-field", 7)(8, "mj-form-field", 8)(9, "mj-form-field", 9)(10, "mj-form-field", 10)(11, "mj-form-field", 11)(12, "mj-form-field", 12)(13, "mj-form-field", 13)(14, "mj-form-field", 14)(15, "mj-form-field", 15);
58
+ i0.ɵɵelementEnd();
59
+ i0.ɵɵelement(16, "mj-form-panel-slot", 16)(17, "mj-form-panel-slot", 17);
60
+ i0.ɵɵelementEnd();
61
+ } if (rf & 2) {
62
+ i0.ɵɵproperty("Record", ctx.record)("FormComponent", ctx);
63
+ i0.ɵɵadvance();
64
+ i0.ɵɵproperty("Entity", i0.ɵɵinterpolate(ctx.record.EntityInfo.Name))("Record", ctx.record)("FormComponent", ctx)("FormContext", ctx.formContext);
65
+ i0.ɵɵadvance();
66
+ i0.ɵɵproperty("Form", ctx)("FormContext", ctx.formContext);
67
+ i0.ɵɵadvance();
68
+ i0.ɵɵproperty("Record", ctx.record)("ShowLabel", true)("EditMode", ctx.EditMode)("FormContext", ctx.formContext);
69
+ i0.ɵɵadvance();
70
+ i0.ɵɵproperty("Record", ctx.record)("ShowLabel", true)("EditMode", ctx.EditMode)("FormContext", ctx.formContext);
71
+ i0.ɵɵadvance();
72
+ i0.ɵɵproperty("Record", ctx.record)("ShowLabel", true)("EditMode", ctx.EditMode)("FormContext", ctx.formContext);
73
+ i0.ɵɵadvance();
74
+ i0.ɵɵproperty("Record", ctx.record)("ShowLabel", true)("EditMode", ctx.EditMode)("FormContext", ctx.formContext);
75
+ i0.ɵɵadvance();
76
+ i0.ɵɵproperty("Record", ctx.record)("ShowLabel", true)("EditMode", ctx.EditMode)("FormContext", ctx.formContext);
77
+ i0.ɵɵadvance();
78
+ i0.ɵɵproperty("Record", ctx.record)("ShowLabel", true)("EditMode", ctx.EditMode)("FormContext", ctx.formContext);
79
+ i0.ɵɵadvance();
80
+ i0.ɵɵproperty("Record", ctx.record)("ShowLabel", true)("EditMode", ctx.EditMode)("FormContext", ctx.formContext);
81
+ i0.ɵɵadvance();
82
+ i0.ɵɵproperty("Record", ctx.record)("ShowLabel", true)("EditMode", ctx.EditMode)("FormContext", ctx.formContext);
83
+ i0.ɵɵadvance();
84
+ i0.ɵɵproperty("Record", ctx.record)("ShowLabel", true)("EditMode", ctx.EditMode)("FormContext", ctx.formContext);
85
+ i0.ɵɵadvance();
86
+ i0.ɵɵproperty("Record", ctx.record)("ShowLabel", true)("EditMode", ctx.EditMode)("FormContext", ctx.formContext);
87
+ i0.ɵɵadvance();
88
+ i0.ɵɵproperty("Record", ctx.record)("ShowLabel", true)("EditMode", ctx.EditMode)("FormContext", ctx.formContext);
89
+ i0.ɵɵadvance();
90
+ i0.ɵɵproperty("Record", ctx.record)("ShowLabel", true)("EditMode", ctx.EditMode)("FormContext", ctx.formContext);
91
+ i0.ɵɵadvance();
92
+ i0.ɵɵproperty("Record", ctx.record)("ShowLabel", true)("EditMode", ctx.EditMode)("FormContext", ctx.formContext);
93
+ i0.ɵɵadvance();
94
+ i0.ɵɵproperty("Entity", i0.ɵɵinterpolate(ctx.record.EntityInfo.Name))("Record", ctx.record)("FormComponent", ctx)("FormContext", ctx.formContext);
95
+ i0.ɵɵadvance();
96
+ i0.ɵɵproperty("Entity", i0.ɵɵinterpolate(ctx.record.EntityInfo.Name))("Record", ctx.record)("FormComponent", ctx)("FormContext", ctx.formContext);
97
+ } }, dependencies: [i1.MjFormFieldComponent, i1.MjCollapsiblePanelComponent, i1.MjRecordFormContainerComponent, i1.FormPanelSlotComponent], encapsulation: 2 });
98
+ };
99
+ DealStageEventFormComponentExtended = __decorate([
100
+ RegisterClass(BaseFormComponent, 'MJ_BizApps_Sales: Deal Stage Events', 2)
101
+ ], DealStageEventFormComponentExtended);
102
+ export { DealStageEventFormComponentExtended };
103
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DealStageEventFormComponentExtended, [{
104
+ type: Component,
105
+ args: [{ standalone: false, selector: 'mjs-deal-stage-event-form', template: "<mj-record-form-container [Record]=\"record\" [FormComponent]=\"this\"\n (Navigate)=\"OnFormNavigate($event)\"\n (DeleteRequested)=\"OnDeleteRequested()\"\n (FavoriteToggled)=\"OnFavoriteToggled()\"\n (HistoryRequested)=\"OnHistoryRequested()\"\n (ListManagementRequested)=\"OnListManagementRequested()\">\n\n <mj-form-panel-slot Entity=\"{{record.EntityInfo.Name}}\" Slot=\"before-fields\" [Record]=\"record\" [FormComponent]=\"this\" [FormContext]=\"formContext\"></mj-form-panel-slot>\n\n <!-- ========================================\n FIELD PANELS\n ======================================== -->\n <!-- Details Section -->\n <mj-collapsible-panel\n SectionKey=\"details\"\n SectionName=\"Details\"\n Icon=\"fa fa-align-left\"\n [Form]=\"this\"\n [FormContext]=\"formContext\">\n <mj-form-field \n [Record]=\"record\"\n [ShowLabel]=\"true\"\n FieldName=\"DealID\"\n Type=\"textbox\"\n [EditMode]=\"EditMode\"\n [FormContext]=\"formContext\"\n LinkType=\"Record\"\n ></mj-form-field>\n <mj-form-field \n [Record]=\"record\"\n [ShowLabel]=\"true\"\n FieldName=\"FromStageID\"\n Type=\"textbox\"\n [EditMode]=\"EditMode\"\n [FormContext]=\"formContext\"\n LinkType=\"Record\"\n ></mj-form-field>\n <mj-form-field \n [Record]=\"record\"\n [ShowLabel]=\"true\"\n FieldName=\"ToStageID\"\n Type=\"textbox\"\n [EditMode]=\"EditMode\"\n [FormContext]=\"formContext\"\n LinkType=\"Record\"\n ></mj-form-field>\n <mj-form-field \n [Record]=\"record\"\n [ShowLabel]=\"true\"\n FieldName=\"FromDealStatusTypeID\"\n Type=\"textbox\"\n [EditMode]=\"EditMode\"\n [FormContext]=\"formContext\"\n LinkType=\"Record\"\n ></mj-form-field>\n <mj-form-field \n [Record]=\"record\"\n [ShowLabel]=\"true\"\n FieldName=\"ToDealStatusTypeID\"\n Type=\"textbox\"\n [EditMode]=\"EditMode\"\n [FormContext]=\"formContext\"\n LinkType=\"Record\"\n ></mj-form-field>\n <mj-form-field \n [Record]=\"record\"\n [ShowLabel]=\"true\"\n FieldName=\"ChangedByUserID\"\n Type=\"textbox\"\n [EditMode]=\"EditMode\"\n [FormContext]=\"formContext\"\n LinkType=\"Record\"\n ></mj-form-field>\n <mj-form-field \n [Record]=\"record\"\n [ShowLabel]=\"true\"\n FieldName=\"ChangedAt\"\n Type=\"datepicker\"\n [EditMode]=\"EditMode\"\n [FormContext]=\"formContext\"\n ></mj-form-field>\n <mj-form-field \n [Record]=\"record\"\n [ShowLabel]=\"true\"\n FieldName=\"DaysInPreviousStage\"\n Type=\"number\"\n [EditMode]=\"EditMode\"\n [FormContext]=\"formContext\"\n ></mj-form-field>\n <mj-form-field \n [Record]=\"record\"\n [ShowLabel]=\"true\"\n FieldName=\"AmountAtTransition\"\n Type=\"number\"\n [EditMode]=\"EditMode\"\n [FormContext]=\"formContext\"\n ></mj-form-field>\n <mj-form-field \n [Record]=\"record\"\n [ShowLabel]=\"true\"\n FieldName=\"ProbabilityAtTransition\"\n Type=\"number\"\n [EditMode]=\"EditMode\"\n [FormContext]=\"formContext\"\n ></mj-form-field>\n <mj-form-field \n [Record]=\"record\"\n [ShowLabel]=\"true\"\n FieldName=\"Notes\"\n Type=\"textarea\"\n [EditMode]=\"EditMode\"\n [FormContext]=\"formContext\"\n ></mj-form-field>\n <mj-form-field \n [Record]=\"record\"\n [ShowLabel]=\"true\"\n FieldName=\"__mj_CreatedAt\"\n Type=\"textbox\"\n [EditMode]=\"EditMode\"\n [FormContext]=\"formContext\"\n ></mj-form-field>\n <mj-form-field \n [Record]=\"record\"\n [ShowLabel]=\"true\"\n FieldName=\"__mj_UpdatedAt\"\n Type=\"textbox\"\n [EditMode]=\"EditMode\"\n [FormContext]=\"formContext\"\n ></mj-form-field>\n\n </mj-collapsible-panel>\n\n <mj-form-panel-slot Entity=\"{{record.EntityInfo.Name}}\" Slot=\"after-fields\" [Record]=\"record\" [FormComponent]=\"this\" [FormContext]=\"formContext\"></mj-form-panel-slot>\n\n <mj-form-panel-slot Entity=\"{{record.EntityInfo.Name}}\" Slot=\"after-related\" [Record]=\"record\" [FormComponent]=\"this\" [FormContext]=\"formContext\"></mj-form-panel-slot>\n</mj-record-form-container>\n " }]
106
+ }], null, null); })();
107
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(DealStageEventFormComponentExtended, { className: "DealStageEventFormComponentExtended", filePath: "lib/custom/deal-stage-event-form.component.ts", lineNumber: 35 }); })();
108
+ /** Anti-tree-shaking anchor. */
109
+ export function LoadDealStageEventForm() {
110
+ /* keeps the registration alive */
111
+ }
112
+ //# sourceMappingURL=deal-stage-event-form.component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deal-stage-event-form.component.js","sourceRoot":"","sources":["../../../src/lib/custom/deal-stage-event-form.component.ts","../../../src/lib/generated/Entities/mjBizAppsSalesDealStageEvent/mjbizappssalesdealstageevent.form.component.html"],"names":[],"mappings":"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"}
@@ -0,0 +1,47 @@
1
+ /**
2
+ * @fileoverview The shared rule for forms holding SERVER-OWNED fields.
3
+ *
4
+ * ── WHY A HELPER AND NOT A BASE CLASS OR A MIXIN ────────────────────────────────────────────────
5
+ *
6
+ * Each custom form must extend its OWN generated form component — that is where the section list, the
7
+ * record typing and the related-grid wiring live, and re-declaring them by hand would drift the moment
8
+ * CodeGen runs. TypeScript has single inheritance, so a shared base class cannot also sit in that chain.
9
+ *
10
+ * A mixin was the obvious next answer and is the wrong one here: TypeScript requires a mixin's
11
+ * constructor to be `(...args: any[])`, and this codebase does not use `any`. Trading a documented
12
+ * type-safety rule for three lines of shared inheritance is a bad trade, especially when the shared part
13
+ * is one pure function.
14
+ *
15
+ * So the shape is: each form extends its generated parent and overrides `Validate()` in two lines,
16
+ * calling into here. The BEHAVIOUR — which fields, how detected, what the message is — lives in exactly
17
+ * one place, which is what mattered.
18
+ *
19
+ * ── WHY THIS REFUSES EARLY INSTEAD OF GREYING FIELDS OUT ────────────────────────────────────────
20
+ *
21
+ * The honest constraint, stated plainly: **`BaseFormComponent` has no per-field read-only hook.** It
22
+ * exposes `EditMode` (whole form), `Validate()` and `SaveRecord()`. MJ metadata has no field-level UI
23
+ * config either — the JSON contracts upstream cover entities and relationships, not fields. So a subclass
24
+ * cannot grey out four fields on a form of twenty-six.
25
+ *
26
+ * What it CAN do is make the refusal arrive at the right moment. Without this, a user edits a
27
+ * server-owned field, presses Save, and the entity server refuses — a correct refusal delivered after the
28
+ * round trip, attached to no particular field. With it, `Validate()` fails immediately and names the
29
+ * field.
30
+ *
31
+ * True greying is left undone deliberately rather than faked with a forked template, which would drift
32
+ * from CodeGen on the next run.
33
+ *
34
+ * @module @mj-biz-apps/sales-ng
35
+ */
36
+ import type { BaseEntity, ValidationResult } from '@memberjunction/core';
37
+ /** The server-owned fields the user has actually touched. */
38
+ export declare function DirtyServerOwnedFields(record: BaseEntity | null | undefined, fields: readonly string[]): string[];
39
+ /**
40
+ * Fails `result` for every server-owned field the user has edited.
41
+ *
42
+ * MUTATES AND RETURNS the caller's result rather than building a new one, so the generated validation and
43
+ * the entity's own `Validate()` still report everything they found. This only adds the failure the server
44
+ * would otherwise deliver late.
45
+ */
46
+ export declare function RefuseServerOwnedEdits(result: ValidationResult, record: BaseEntity | null | undefined, fields: readonly string[], reason: string): ValidationResult;
47
+ //# sourceMappingURL=server-owned-fields.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"server-owned-fields.d.ts","sourceRoot":"","sources":["../../../src/lib/custom/server-owned-fields.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,OAAO,KAAK,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAEzE,6DAA6D;AAC7D,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,UAAU,GAAG,IAAI,GAAG,SAAS,EAAE,MAAM,EAAE,SAAS,MAAM,EAAE,GAAG,MAAM,EAAE,CAKjH;AAED;;;;;;GAMG;AACH,wBAAgB,sBAAsB,CAClC,MAAM,EAAE,gBAAgB,EACxB,MAAM,EAAE,UAAU,GAAG,IAAI,GAAG,SAAS,EACrC,MAAM,EAAE,SAAS,MAAM,EAAE,EACzB,MAAM,EAAE,MAAM,GACf,gBAAgB,CAgBlB"}
@@ -0,0 +1,31 @@
1
+ /** The server-owned fields the user has actually touched. */
2
+ export function DirtyServerOwnedFields(record, fields) {
3
+ if (!record) {
4
+ return [];
5
+ }
6
+ return fields.filter((name) => record.GetFieldByName(name)?.Dirty === true);
7
+ }
8
+ /**
9
+ * Fails `result` for every server-owned field the user has edited.
10
+ *
11
+ * MUTATES AND RETURNS the caller's result rather than building a new one, so the generated validation and
12
+ * the entity's own `Validate()` still report everything they found. This only adds the failure the server
13
+ * would otherwise deliver late.
14
+ */
15
+ export function RefuseServerOwnedEdits(result, record, fields, reason) {
16
+ const dirty = DirtyServerOwnedFields(record, fields);
17
+ if (dirty.length === 0) {
18
+ return result;
19
+ }
20
+ result.Success = false;
21
+ for (const field of dirty) {
22
+ result.Errors.push({
23
+ Source: field,
24
+ Message: reason,
25
+ Value: record?.Get(field) ?? null,
26
+ Type: 'Failure',
27
+ });
28
+ }
29
+ return result;
30
+ }
31
+ //# sourceMappingURL=server-owned-fields.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"server-owned-fields.js","sourceRoot":"","sources":["../../../src/lib/custom/server-owned-fields.ts"],"names":[],"mappings":"AAqCA,6DAA6D;AAC7D,MAAM,UAAU,sBAAsB,CAAC,MAAqC,EAAE,MAAyB;IACnG,IAAI,CAAC,MAAM,EAAE,CAAC;QACV,OAAO,EAAE,CAAC;IACd,CAAC;IACD,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,MAAM,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE,KAAK,KAAK,IAAI,CAAC,CAAC;AAChF,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,sBAAsB,CAClC,MAAwB,EACxB,MAAqC,EACrC,MAAyB,EACzB,MAAc;IAEd,MAAM,KAAK,GAAG,sBAAsB,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACrD,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACrB,OAAO,MAAM,CAAC;IAClB,CAAC;IAED,MAAM,CAAC,OAAO,GAAG,KAAK,CAAC;IACvB,KAAK,MAAM,KAAK,IAAI,KAAK,EAAE,CAAC;QACxB,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC;YACf,MAAM,EAAE,KAAK;YACb,OAAO,EAAE,MAAM;YACf,KAAK,EAAE,MAAM,EAAE,GAAG,CAAC,KAAK,CAAC,IAAI,IAAI;YACjC,IAAI,EAAE,SAAS;SAClB,CAAC,CAAC;IACP,CAAC;IACD,OAAO,MAAM,CAAC;AAClB,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { mjBizAppsSalesAccountTypeEntity } from '@mj-biz-apps/sales-entities';
2
+ import { BaseFormComponent } from '@memberjunction/ng-base-forms';
3
+ import * as i0 from "@angular/core";
4
+ export declare class mjBizAppsSalesAccountTypeFormComponent extends BaseFormComponent {
5
+ record: mjBizAppsSalesAccountTypeEntity;
6
+ ngOnInit(): Promise<void>;
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<mjBizAppsSalesAccountTypeFormComponent, never>;
8
+ static ɵcmp: i0.ɵɵComponentDeclaration<mjBizAppsSalesAccountTypeFormComponent, "gen-mjbizappssalesaccounttype-form", never, {}, {}, never, never, false, never>;
9
+ }
10
+ //# sourceMappingURL=mjbizappssalesaccounttype.form.component.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mjbizappssalesaccounttype.form.component.d.ts","sourceRoot":"","sources":["../../../../../src/lib/generated/Entities/mjBizAppsSalesAccountType/mjbizappssalesaccounttype.form.component.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,+BAA+B,EAAE,MAAM,6BAA6B,CAAC;AAE9E,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;;AAGlE,qBAMa,sCAAuC,SAAQ,iBAAiB;IAClE,MAAM,EAAG,+BAA+B,CAAC;IAEjC,QAAQ;yCAHd,sCAAsC;2CAAtC,sCAAsC;CAUlD"}
@@ -0,0 +1,90 @@
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
+ import { Component } from '@angular/core';
8
+ import { RegisterClass } from '@memberjunction/global';
9
+ import { BaseFormComponent } from '@memberjunction/ng-base-forms';
10
+ import * as i0 from "@angular/core";
11
+ import * as i1 from "@memberjunction/ng-base-forms";
12
+ function mjBizAppsSalesAccountTypeFormComponent_Conditional_15_Template(rf, ctx) { if (rf & 1) {
13
+ const _r1 = i0.ɵɵgetCurrentView();
14
+ i0.ɵɵelementStart(0, "div")(1, "mj-explorer-entity-data-grid", 16);
15
+ i0.ɵɵlistener("Navigate", function mjBizAppsSalesAccountTypeFormComponent_Conditional_15_Template_mj_explorer_entity_data_grid_Navigate_1_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnFormNavigate($event)); })("AfterDataLoad", function mjBizAppsSalesAccountTypeFormComponent_Conditional_15_Template_mj_explorer_entity_data_grid_AfterDataLoad_1_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.SetSectionRowCount("mJBizAppsSalesSalesAccounts", $event.totalRowCount)); });
16
+ i0.ɵɵelementEnd()();
17
+ } if (rf & 2) {
18
+ const ctx_r1 = i0.ɵɵnextContext();
19
+ i0.ɵɵadvance();
20
+ i0.ɵɵproperty("Params", ctx_r1.BuildRelationshipViewParamsByEntityName("MJ_BizApps_Sales: Sales Accounts", "AccountTypeID"))("NewRecordValues", ctx_r1.NewRecordValues("MJ_BizApps_Sales: Sales Accounts", "AccountTypeID"))("AllowLoad", ctx_r1.IsSectionExpanded("mJBizAppsSalesSalesAccounts"))("ShowToolbar", true);
21
+ } }
22
+ let mjBizAppsSalesAccountTypeFormComponent = class mjBizAppsSalesAccountTypeFormComponent extends BaseFormComponent {
23
+ record;
24
+ async ngOnInit() {
25
+ await super.ngOnInit();
26
+ this.initSections([
27
+ { sectionKey: 'details', sectionName: 'Details', isExpanded: true },
28
+ { sectionKey: 'mJBizAppsSalesSalesAccounts', sectionName: 'Sales Accounts', isExpanded: false }
29
+ ]);
30
+ }
31
+ static ɵfac = /*@__PURE__*/ (() => { let ɵmjBizAppsSalesAccountTypeFormComponent_BaseFactory; return function mjBizAppsSalesAccountTypeFormComponent_Factory(__ngFactoryType__) { return (ɵmjBizAppsSalesAccountTypeFormComponent_BaseFactory || (ɵmjBizAppsSalesAccountTypeFormComponent_BaseFactory = i0.ɵɵgetInheritedFactory(mjBizAppsSalesAccountTypeFormComponent)))(__ngFactoryType__ || mjBizAppsSalesAccountTypeFormComponent); }; })();
32
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: mjBizAppsSalesAccountTypeFormComponent, selectors: [["gen-mjbizappssalesaccounttype-form"]], standalone: false, features: [i0.ɵɵInheritDefinitionFeature], decls: 17, vars: 64, consts: [[3, "Navigate", "DeleteRequested", "FavoriteToggled", "HistoryRequested", "ListManagementRequested", "Record", "FormComponent"], ["Slot", "before-fields", 3, "Entity", "Record", "FormComponent", "FormContext"], ["SectionKey", "details", "SectionName", "Details", "Icon", "fa fa-align-left", 3, "Form", "FormContext"], ["FieldName", "Code", "Type", "textbox", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "Name", "Type", "textbox", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "Description", "Type", "textarea", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "IsCustomer", "Type", "checkbox", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "IsProspect", "Type", "checkbox", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "IsPartner", "Type", "checkbox", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "DisplayRank", "Type", "number", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "IsActive", "Type", "checkbox", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "__mj_CreatedAt", "Type", "textbox", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "__mj_UpdatedAt", "Type", "textbox", 3, "Record", "ShowLabel", "EditMode", "FormContext"], ["Slot", "after-fields", 3, "Entity", "Record", "FormComponent", "FormContext"], ["SectionKey", "mJBizAppsSalesSalesAccounts", "SectionName", "Sales Accounts", "Icon", "fa fa-table", "Variant", "related-entity", 3, "Form", "FormContext", "BadgeCount", "DefaultExpanded"], ["Slot", "after-related", 3, "Entity", "Record", "FormComponent", "FormContext"], [3, "Navigate", "AfterDataLoad", "Params", "NewRecordValues", "AllowLoad", "ShowToolbar"]], template: function mjBizAppsSalesAccountTypeFormComponent_Template(rf, ctx) { if (rf & 1) {
33
+ i0.ɵɵelementStart(0, "mj-record-form-container", 0);
34
+ i0.ɵɵlistener("Navigate", function mjBizAppsSalesAccountTypeFormComponent_Template_mj_record_form_container_Navigate_0_listener($event) { return ctx.OnFormNavigate($event); })("DeleteRequested", function mjBizAppsSalesAccountTypeFormComponent_Template_mj_record_form_container_DeleteRequested_0_listener() { return ctx.OnDeleteRequested(); })("FavoriteToggled", function mjBizAppsSalesAccountTypeFormComponent_Template_mj_record_form_container_FavoriteToggled_0_listener() { return ctx.OnFavoriteToggled(); })("HistoryRequested", function mjBizAppsSalesAccountTypeFormComponent_Template_mj_record_form_container_HistoryRequested_0_listener() { return ctx.OnHistoryRequested(); })("ListManagementRequested", function mjBizAppsSalesAccountTypeFormComponent_Template_mj_record_form_container_ListManagementRequested_0_listener() { return ctx.OnListManagementRequested(); });
35
+ i0.ɵɵelement(1, "mj-form-panel-slot", 1);
36
+ i0.ɵɵelementStart(2, "mj-collapsible-panel", 2);
37
+ i0.ɵɵelement(3, "mj-form-field", 3)(4, "mj-form-field", 4)(5, "mj-form-field", 5)(6, "mj-form-field", 6)(7, "mj-form-field", 7)(8, "mj-form-field", 8)(9, "mj-form-field", 9)(10, "mj-form-field", 10)(11, "mj-form-field", 11)(12, "mj-form-field", 12);
38
+ i0.ɵɵelementEnd();
39
+ i0.ɵɵelement(13, "mj-form-panel-slot", 13);
40
+ i0.ɵɵelementStart(14, "mj-collapsible-panel", 14);
41
+ i0.ɵɵconditionalCreate(15, mjBizAppsSalesAccountTypeFormComponent_Conditional_15_Template, 2, 4, "div");
42
+ i0.ɵɵelementEnd();
43
+ i0.ɵɵelement(16, "mj-form-panel-slot", 15);
44
+ i0.ɵɵelementEnd();
45
+ } if (rf & 2) {
46
+ i0.ɵɵproperty("Record", ctx.record)("FormComponent", ctx);
47
+ i0.ɵɵadvance();
48
+ i0.ɵɵproperty("Entity", i0.ɵɵinterpolate(ctx.record.EntityInfo.Name))("Record", ctx.record)("FormComponent", ctx)("FormContext", ctx.formContext);
49
+ i0.ɵɵadvance();
50
+ i0.ɵɵproperty("Form", ctx)("FormContext", ctx.formContext);
51
+ i0.ɵɵadvance();
52
+ i0.ɵɵproperty("Record", ctx.record)("ShowLabel", true)("EditMode", ctx.EditMode)("FormContext", ctx.formContext);
53
+ i0.ɵɵadvance();
54
+ i0.ɵɵproperty("Record", ctx.record)("ShowLabel", true)("EditMode", ctx.EditMode)("FormContext", ctx.formContext);
55
+ i0.ɵɵadvance();
56
+ i0.ɵɵproperty("Record", ctx.record)("ShowLabel", true)("EditMode", ctx.EditMode)("FormContext", ctx.formContext);
57
+ i0.ɵɵadvance();
58
+ i0.ɵɵproperty("Record", ctx.record)("ShowLabel", true)("EditMode", ctx.EditMode)("FormContext", ctx.formContext);
59
+ i0.ɵɵadvance();
60
+ i0.ɵɵproperty("Record", ctx.record)("ShowLabel", true)("EditMode", ctx.EditMode)("FormContext", ctx.formContext);
61
+ i0.ɵɵadvance();
62
+ i0.ɵɵproperty("Record", ctx.record)("ShowLabel", true)("EditMode", ctx.EditMode)("FormContext", ctx.formContext);
63
+ i0.ɵɵadvance();
64
+ i0.ɵɵproperty("Record", ctx.record)("ShowLabel", true)("EditMode", ctx.EditMode)("FormContext", ctx.formContext);
65
+ i0.ɵɵadvance();
66
+ i0.ɵɵproperty("Record", ctx.record)("ShowLabel", true)("EditMode", ctx.EditMode)("FormContext", ctx.formContext);
67
+ i0.ɵɵadvance();
68
+ i0.ɵɵproperty("Record", ctx.record)("ShowLabel", true)("EditMode", ctx.EditMode)("FormContext", ctx.formContext);
69
+ i0.ɵɵadvance();
70
+ i0.ɵɵproperty("Record", ctx.record)("ShowLabel", true)("EditMode", ctx.EditMode)("FormContext", ctx.formContext);
71
+ i0.ɵɵadvance();
72
+ i0.ɵɵproperty("Entity", i0.ɵɵinterpolate(ctx.record.EntityInfo.Name))("Record", ctx.record)("FormComponent", ctx)("FormContext", ctx.formContext);
73
+ i0.ɵɵadvance();
74
+ i0.ɵɵproperty("Form", ctx)("FormContext", ctx.formContext)("BadgeCount", ctx.GetSectionRowCount("mJBizAppsSalesSalesAccounts"))("DefaultExpanded", false);
75
+ i0.ɵɵadvance();
76
+ i0.ɵɵconditional(ctx.record.IsSaved ? 15 : -1);
77
+ i0.ɵɵadvance();
78
+ i0.ɵɵproperty("Entity", i0.ɵɵinterpolate(ctx.record.EntityInfo.Name))("Record", ctx.record)("FormComponent", ctx)("FormContext", ctx.formContext);
79
+ } }, dependencies: [i1.MjFormFieldComponent, i1.MjCollapsiblePanelComponent, i1.MjRecordFormContainerComponent, i1.ExplorerEntityDataGridComponent, i1.FormPanelSlotComponent], encapsulation: 2 });
80
+ };
81
+ mjBizAppsSalesAccountTypeFormComponent = __decorate([
82
+ RegisterClass(BaseFormComponent, 'MJ_BizApps_Sales: Account Types') // Tell MemberJunction about this class
83
+ ], mjBizAppsSalesAccountTypeFormComponent);
84
+ export { mjBizAppsSalesAccountTypeFormComponent };
85
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(mjBizAppsSalesAccountTypeFormComponent, [{
86
+ type: Component,
87
+ args: [{ standalone: false, selector: 'gen-mjbizappssalesaccounttype-form', template: "<mj-record-form-container [Record]=\"record\" [FormComponent]=\"this\"\n (Navigate)=\"OnFormNavigate($event)\"\n (DeleteRequested)=\"OnDeleteRequested()\"\n (FavoriteToggled)=\"OnFavoriteToggled()\"\n (HistoryRequested)=\"OnHistoryRequested()\"\n (ListManagementRequested)=\"OnListManagementRequested()\">\n\n <mj-form-panel-slot Entity=\"{{record.EntityInfo.Name}}\" Slot=\"before-fields\" [Record]=\"record\" [FormComponent]=\"this\" [FormContext]=\"formContext\"></mj-form-panel-slot>\n\n <!-- ========================================\n FIELD PANELS\n ======================================== -->\n <!-- Details Section -->\n <mj-collapsible-panel\n SectionKey=\"details\"\n SectionName=\"Details\"\n Icon=\"fa fa-align-left\"\n [Form]=\"this\"\n [FormContext]=\"formContext\">\n <mj-form-field \n [Record]=\"record\"\n [ShowLabel]=\"true\"\n FieldName=\"Code\"\n Type=\"textbox\"\n [EditMode]=\"EditMode\"\n [FormContext]=\"formContext\"\n ></mj-form-field>\n <mj-form-field \n [Record]=\"record\"\n [ShowLabel]=\"true\"\n FieldName=\"Name\"\n Type=\"textbox\"\n [EditMode]=\"EditMode\"\n [FormContext]=\"formContext\"\n ></mj-form-field>\n <mj-form-field \n [Record]=\"record\"\n [ShowLabel]=\"true\"\n FieldName=\"Description\"\n Type=\"textarea\"\n [EditMode]=\"EditMode\"\n [FormContext]=\"formContext\"\n ></mj-form-field>\n <mj-form-field \n [Record]=\"record\"\n [ShowLabel]=\"true\"\n FieldName=\"IsCustomer\"\n Type=\"checkbox\"\n [EditMode]=\"EditMode\"\n [FormContext]=\"formContext\"\n ></mj-form-field>\n <mj-form-field \n [Record]=\"record\"\n [ShowLabel]=\"true\"\n FieldName=\"IsProspect\"\n Type=\"checkbox\"\n [EditMode]=\"EditMode\"\n [FormContext]=\"formContext\"\n ></mj-form-field>\n <mj-form-field \n [Record]=\"record\"\n [ShowLabel]=\"true\"\n FieldName=\"IsPartner\"\n Type=\"checkbox\"\n [EditMode]=\"EditMode\"\n [FormContext]=\"formContext\"\n ></mj-form-field>\n <mj-form-field \n [Record]=\"record\"\n [ShowLabel]=\"true\"\n FieldName=\"DisplayRank\"\n Type=\"number\"\n [EditMode]=\"EditMode\"\n [FormContext]=\"formContext\"\n ></mj-form-field>\n <mj-form-field \n [Record]=\"record\"\n [ShowLabel]=\"true\"\n FieldName=\"IsActive\"\n Type=\"checkbox\"\n [EditMode]=\"EditMode\"\n [FormContext]=\"formContext\"\n ></mj-form-field>\n <mj-form-field \n [Record]=\"record\"\n [ShowLabel]=\"true\"\n FieldName=\"__mj_CreatedAt\"\n Type=\"textbox\"\n [EditMode]=\"EditMode\"\n [FormContext]=\"formContext\"\n ></mj-form-field>\n <mj-form-field \n [Record]=\"record\"\n [ShowLabel]=\"true\"\n FieldName=\"__mj_UpdatedAt\"\n Type=\"textbox\"\n [EditMode]=\"EditMode\"\n [FormContext]=\"formContext\"\n ></mj-form-field>\n\n </mj-collapsible-panel>\n\n <mj-form-panel-slot Entity=\"{{record.EntityInfo.Name}}\" Slot=\"after-fields\" [Record]=\"record\" [FormComponent]=\"this\" [FormContext]=\"formContext\"></mj-form-panel-slot>\n\n <!-- ========================================\n RELATED ENTITY PANELS\n ======================================== -->\n\n <!-- Sales Accounts Section -->\n <mj-collapsible-panel\n SectionKey=\"mJBizAppsSalesSalesAccounts\"\n SectionName=\"Sales Accounts\"\n Icon=\"fa fa-table\"\n Variant=\"related-entity\"\n [Form]=\"this\"\n [FormContext]=\"formContext\"\n [BadgeCount]=\"GetSectionRowCount('mJBizAppsSalesSalesAccounts')\"\n [DefaultExpanded]=\"false\">\n @if (record.IsSaved) {\n <div>\n <mj-explorer-entity-data-grid\n [Params]=\"BuildRelationshipViewParamsByEntityName('MJ_BizApps_Sales: Sales Accounts','AccountTypeID')\"\n [NewRecordValues]=\"NewRecordValues('MJ_BizApps_Sales: Sales Accounts','AccountTypeID')\"\n [AllowLoad]=\"IsSectionExpanded('mJBizAppsSalesSalesAccounts')\"\n [ShowToolbar]=\"true\"\n (Navigate)=\"OnFormNavigate($event)\"\n (AfterDataLoad)=\"SetSectionRowCount('mJBizAppsSalesSalesAccounts', $event.totalRowCount)\"\n >\n </mj-explorer-entity-data-grid>\n </div>\n }\n </mj-collapsible-panel>\n\n <mj-form-panel-slot Entity=\"{{record.EntityInfo.Name}}\" Slot=\"after-related\" [Record]=\"record\" [FormComponent]=\"this\" [FormContext]=\"formContext\"></mj-form-panel-slot>\n</mj-record-form-container>\n " }]
88
+ }], null, null); })();
89
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(mjBizAppsSalesAccountTypeFormComponent, { className: "mjBizAppsSalesAccountTypeFormComponent", filePath: "lib/generated/entities/mjbizappssalesaccounttype/mjbizappssalesaccounttype.form.component.ts", lineNumber: 13 }); })();
90
+ //# sourceMappingURL=mjbizappssalesaccounttype.form.component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mjbizappssalesaccounttype.form.component.js","sourceRoot":"","sources":["../../../../../src/lib/generated/Entities/mjBizAppsSalesAccountType/mjbizappssalesaccounttype.form.component.ts","../../../../../src/lib/generated/Entities/mjBizAppsSalesAccountType/mjbizappssalesaccounttype.form.component.html"],"names":[],"mappings":"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"}
@@ -0,0 +1,10 @@
1
+ import { mjBizAppsSalesBuyingRoleTypeEntity } from '@mj-biz-apps/sales-entities';
2
+ import { BaseFormComponent } from '@memberjunction/ng-base-forms';
3
+ import * as i0 from "@angular/core";
4
+ export declare class mjBizAppsSalesBuyingRoleTypeFormComponent extends BaseFormComponent {
5
+ record: mjBizAppsSalesBuyingRoleTypeEntity;
6
+ ngOnInit(): Promise<void>;
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<mjBizAppsSalesBuyingRoleTypeFormComponent, never>;
8
+ static ɵcmp: i0.ɵɵComponentDeclaration<mjBizAppsSalesBuyingRoleTypeFormComponent, "gen-mjbizappssalesbuyingroletype-form", never, {}, {}, never, never, false, never>;
9
+ }
10
+ //# sourceMappingURL=mjbizappssalesbuyingroletype.form.component.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mjbizappssalesbuyingroletype.form.component.d.ts","sourceRoot":"","sources":["../../../../../src/lib/generated/Entities/mjBizAppsSalesBuyingRoleType/mjbizappssalesbuyingroletype.form.component.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kCAAkC,EAAE,MAAM,6BAA6B,CAAC;AAEjF,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;;AAGlE,qBAMa,yCAA0C,SAAQ,iBAAiB;IACrE,MAAM,EAAG,kCAAkC,CAAC;IAEpC,QAAQ;yCAHd,yCAAyC;2CAAzC,yCAAyC;CAWrD"}