@mj-biz-apps/orders-ng 5.46.0 → 5.47.1

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 (67) hide show
  1. package/dist/lib/custom/Product/widgets/product-accounting-widget.component.js +16 -17
  2. package/dist/lib/custom/Product/widgets/product-accounting-widget.component.js.map +1 -1
  3. package/dist/lib/custom/Product/widgets/product-effective-gl-accounts.component.d.ts +49 -24
  4. package/dist/lib/custom/Product/widgets/product-effective-gl-accounts.component.d.ts.map +1 -1
  5. package/dist/lib/custom/Product/widgets/product-effective-gl-accounts.component.js +229 -137
  6. package/dist/lib/custom/Product/widgets/product-effective-gl-accounts.component.js.map +1 -1
  7. package/dist/lib/custom/Product/widgets/product-gl-links.component.d.ts.map +1 -1
  8. package/dist/lib/custom/Product/widgets/product-gl-links.component.js +229 -183
  9. package/dist/lib/custom/Product/widgets/product-gl-links.component.js.map +1 -1
  10. package/dist/lib/custom/Product/widgets/product-pricing-widget.component.d.ts +138 -4
  11. package/dist/lib/custom/Product/widgets/product-pricing-widget.component.d.ts.map +1 -1
  12. package/dist/lib/custom/Product/widgets/product-pricing-widget.component.js +1485 -316
  13. package/dist/lib/custom/Product/widgets/product-pricing-widget.component.js.map +1 -1
  14. package/dist/lib/custom/currency-input.directive.d.ts +31 -0
  15. package/dist/lib/custom/currency-input.directive.d.ts.map +1 -0
  16. package/dist/lib/custom/currency-input.directive.js +121 -0
  17. package/dist/lib/custom/currency-input.directive.js.map +1 -0
  18. package/dist/lib/custom/custom-forms.module.d.ts +29 -28
  19. package/dist/lib/custom/custom-forms.module.d.ts.map +1 -1
  20. package/dist/lib/custom/custom-forms.module.js +7 -2
  21. package/dist/lib/custom/custom-forms.module.js.map +1 -1
  22. package/dist/lib/form-panels/catalog-overviews.panels.d.ts +11 -1
  23. package/dist/lib/form-panels/catalog-overviews.panels.d.ts.map +1 -1
  24. package/dist/lib/form-panels/catalog-overviews.panels.js +53 -42
  25. package/dist/lib/form-panels/catalog-overviews.panels.js.map +1 -1
  26. package/dist/lib/form-panels/commercial-overviews.panels.js +5 -5
  27. package/dist/lib/form-panels/document-forms.module.d.ts +1 -1
  28. package/dist/lib/form-panels/document-forms.module.d.ts.map +1 -1
  29. package/dist/lib/form-panels/document-forms.module.js +7 -4
  30. package/dist/lib/form-panels/document-forms.module.js.map +1 -1
  31. package/dist/lib/form-panels/document-hero.component.js +2 -2
  32. package/dist/lib/form-panels/document-overviews.panels.js +7 -7
  33. package/dist/lib/form-panels/lookup-headers.panels.js +10 -10
  34. package/dist/lib/form-panels/order-access-overrides.panel.js +2 -2
  35. package/dist/lib/form-panels/overview-cards.component.d.ts +2 -0
  36. package/dist/lib/form-panels/overview-cards.component.d.ts.map +1 -1
  37. package/dist/lib/form-panels/overview-cards.component.js +31 -25
  38. package/dist/lib/form-panels/overview-cards.component.js.map +1 -1
  39. package/dist/lib/form-panels/payment-header.panel.js +2 -2
  40. package/dist/lib/form-panels/price-list-header.panel.js +2 -2
  41. package/dist/lib/form-panels/product-header.panel.d.ts +5 -0
  42. package/dist/lib/form-panels/product-header.panel.d.ts.map +1 -1
  43. package/dist/lib/form-panels/product-header.panel.js +148 -83
  44. package/dist/lib/form-panels/product-header.panel.js.map +1 -1
  45. package/dist/lib/form-panels/product-widget.panels.d.ts +26 -7
  46. package/dist/lib/form-panels/product-widget.panels.d.ts.map +1 -1
  47. package/dist/lib/form-panels/product-widget.panels.js +124 -71
  48. package/dist/lib/form-panels/product-widget.panels.js.map +1 -1
  49. package/dist/lib/form-panels/promotion-header.panel.js +2 -2
  50. package/dist/lib/form-panels/subscription-header.panel.js +2 -2
  51. package/dist/lib/form-panels/subscription-revrec.panel.js +2 -2
  52. package/dist/lib/form-panels/subscription-term-header.panel.js +2 -2
  53. package/dist/lib/form-panels/subscription-term-revrec.panel.js +2 -2
  54. package/dist/lib/form-panels/subscription-terms.panel.js +2 -2
  55. package/dist/lib/pages/receivables/external-invoicing-queue.page.d.ts +20 -1
  56. package/dist/lib/pages/receivables/external-invoicing-queue.page.d.ts.map +1 -1
  57. package/dist/lib/pages/receivables/external-invoicing-queue.page.js +131 -10
  58. package/dist/lib/pages/receivables/external-invoicing-queue.page.js.map +1 -1
  59. package/dist/lib/panels/worklist-table.component.d.ts +12 -1
  60. package/dist/lib/panels/worklist-table.component.d.ts.map +1 -1
  61. package/dist/lib/panels/worklist-table.component.js +148 -68
  62. package/dist/lib/panels/worklist-table.component.js.map +1 -1
  63. package/dist/public-api.d.ts +1 -0
  64. package/dist/public-api.d.ts.map +1 -1
  65. package/dist/public-api.js +1 -0
  66. package/dist/public-api.js.map +1 -1
  67. package/package.json +2 -2
@@ -12,33 +12,32 @@ export class BizAppsProductAccountingWidgetComponent {
12
12
  FormContext;
13
13
  Navigate = new EventEmitter();
14
14
  static ɵfac = function BizAppsProductAccountingWidgetComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || BizAppsProductAccountingWidgetComponent)(); };
15
- static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: BizAppsProductAccountingWidgetComponent, selectors: [["bizapps-product-accounting-widget"]], inputs: { Product: "Product", EditMode: "EditMode", FormContext: "FormContext" }, outputs: { Navigate: "Navigate" }, standalone: false, ngContentSelectors: _c0, decls: 15, vars: 4, consts: [["effective", ""], [1, "mjo-acct-widget-wrap"], [1, "mjo-acct-card"], [1, "mjo-card-head"], [1, "fa-solid", "fa-scale-balanced"], [1, "mjo-card-body", "mjo-acct-fields"], [1, "mjo-card-body"], [3, "Navigate", "LinksChanged", "Product", "EditMode", "FormContext"], [3, "Product"]], template: function BizAppsProductAccountingWidgetComponent_Template(rf, ctx) { if (rf & 1) {
15
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: BizAppsProductAccountingWidgetComponent, selectors: [["bizapps-product-accounting-widget"]], inputs: { Product: "Product", EditMode: "EditMode", FormContext: "FormContext" }, outputs: { Navigate: "Navigate" }, standalone: false, ngContentSelectors: _c0, decls: 14, vars: 6, consts: [["effective", ""], [1, "mjo-acct-widget-wrap"], [1, "mjo-acct-card"], [1, "mjo-acct-card__head"], [1, "mjo-acct-card__titles"], [1, "mjo-acct-card__title"], [1, "fa-solid", "fa-book"], [1, "mjo-acct-card__body", "mjo-acct-fields"], [3, "Product", "RevenueRecognitionTypeID", "CompanyID"], [3, "Navigate", "LinksChanged", "Product", "EditMode", "FormContext"]], template: function BizAppsProductAccountingWidgetComponent_Template(rf, ctx) { if (rf & 1) {
16
16
  const _r1 = i0.ɵɵgetCurrentView();
17
17
  i0.ɵɵprojectionDef();
18
- i0.ɵɵelementStart(0, "div", 1)(1, "div", 2)(2, "div", 3);
19
- i0.ɵɵelement(3, "i", 4);
20
- i0.ɵɵelementStart(4, "span");
21
- i0.ɵɵtext(5, "General Ledger & Revenue Recognition Classification");
22
- i0.ɵɵelementEnd()();
23
- i0.ɵɵelementStart(6, "div", 5);
24
- i0.ɵɵprojection(7);
25
- i0.ɵɵelementEnd()();
26
- i0.ɵɵelementStart(8, "div", 2)(9, "div", 6)(10, "bizapps-product-gl-links", 7);
27
- i0.ɵɵlistener("Navigate", function BizAppsProductAccountingWidgetComponent_Template_bizapps_product_gl_links_Navigate_10_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.Navigate.emit($event)); })("LinksChanged", function BizAppsProductAccountingWidgetComponent_Template_bizapps_product_gl_links_LinksChanged_10_listener() { i0.ɵɵrestoreView(_r1); const effective_r2 = i0.ɵɵreference(14); return i0.ɵɵresetView(effective_r2.Refresh()); });
18
+ i0.ɵɵelementStart(0, "div", 1)(1, "section", 2)(2, "header", 3)(3, "div", 4)(4, "h3", 5);
19
+ i0.ɵɵelement(5, "i", 6);
20
+ i0.ɵɵtext(6, "Accounting setup");
28
21
  i0.ɵɵelementEnd()()();
29
- i0.ɵɵelementStart(11, "div", 2)(12, "div", 6);
30
- i0.ɵɵelement(13, "bizapps-product-effective-gl-accounts", 8, 0);
22
+ i0.ɵɵelementStart(7, "div", 7);
23
+ i0.ɵɵprojection(8);
24
+ i0.ɵɵelementEnd()();
25
+ i0.ɵɵelementStart(9, "section", 2);
26
+ i0.ɵɵelement(10, "bizapps-product-effective-gl-accounts", 8, 0);
27
+ i0.ɵɵelementEnd();
28
+ i0.ɵɵelementStart(12, "section", 2)(13, "bizapps-product-gl-links", 9);
29
+ i0.ɵɵlistener("Navigate", function BizAppsProductAccountingWidgetComponent_Template_bizapps_product_gl_links_Navigate_13_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.Navigate.emit($event)); })("LinksChanged", function BizAppsProductAccountingWidgetComponent_Template_bizapps_product_gl_links_LinksChanged_13_listener() { i0.ɵɵrestoreView(_r1); const effective_r2 = i0.ɵɵreference(11); return i0.ɵɵresetView(effective_r2.Refresh()); });
31
30
  i0.ɵɵelementEnd()()();
32
31
  } if (rf & 2) {
33
32
  i0.ɵɵadvance(10);
34
- i0.ɵɵproperty("Product", ctx.Product)("EditMode", ctx.EditMode)("FormContext", ctx.FormContext);
33
+ i0.ɵɵproperty("Product", ctx.Product)("RevenueRecognitionTypeID", ctx.Product == null ? null : ctx.Product.RevenueRecognitionTypeID)("CompanyID", ctx.Product == null ? null : ctx.Product.CompanyID);
35
34
  i0.ɵɵadvance(3);
36
- i0.ɵɵproperty("Product", ctx.Product);
37
- } }, dependencies: [i1.BizAppsProductGLLinksComponent, i2.BizAppsProductEffectiveGLAccountsComponent], styles: [".mjo-acct-widget-wrap[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: var(--mj-space-4, 16px);\n width: 100%;\n}\n\n.mjo-acct-card[_ngcontent-%COMP%] {\n background: var(--mj-bg-surface-card, rgba(255, 255, 255, 0.05));\n border: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.12));\n border-radius: var(--mj-radius-lg, 10px);\n overflow: hidden;\n}\n\n.mjo-card-head[_ngcontent-%COMP%] {\n padding: 12px 16px;\n background: var(--mj-bg-surface-sunken, rgba(0, 0, 0, 0.1));\n border-bottom: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.1));\n font-size: 13.5px;\n font-weight: 700;\n color: var(--mj-text-primary, #0f172a);\n display: flex;\n align-items: center;\n gap: 8px;\n}\n\n.mjo-card-head[_ngcontent-%COMP%] i[_ngcontent-%COMP%] {\n color: var(--mj-brand-primary, #0284c7);\n}\n\n.mjo-card-body[_ngcontent-%COMP%] {\n padding: 16px;\n display: grid;\n \n\n\n grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));\n gap: 16px;\n}\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n[_nghost-%COMP%] .mjo-acct-fields > mj-form-field {\n display: block;\n min-width: 0;\n}"] });
35
+ i0.ɵɵproperty("Product", ctx.Product)("EditMode", ctx.EditMode)("FormContext", ctx.FormContext);
36
+ } }, dependencies: [i1.BizAppsProductGLLinksComponent, i2.BizAppsProductEffectiveGLAccountsComponent], styles: ["\n\n\n\n\n\n\n\n.mjo-acct-widget-wrap[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: var(--mj-space-5, 20px);\n width: 100%;\n font-size: 14px;\n line-height: 1.5;\n}\n\n.mjo-acct-card[_ngcontent-%COMP%] {\n background: var(--mj-bg-surface-card, rgba(255, 255, 255, 0.05));\n border: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.12));\n border-radius: var(--mj-radius-lg, 10px);\n overflow: hidden;\n}\n\n\n\n\n[_nghost-%COMP%] .mjo-acct-card__head {\n display: flex;\n align-items: flex-start;\n justify-content: space-between;\n gap: 16px;\n padding: 16px 20px 14px;\n border-bottom: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.1));\n}\n\n[_nghost-%COMP%] .mjo-acct-card__titles {\n min-width: 0;\n}\n\n[_nghost-%COMP%] .mjo-acct-card__title {\n margin: 0;\n font-size: 15px;\n font-weight: 700;\n color: var(--mj-text-primary, #0f172a);\n display: flex;\n align-items: center;\n gap: 8px;\n}\n\n[_nghost-%COMP%] .mjo-acct-card__title i {\n color: var(--mj-brand-primary, #0284c7);\n font-size: 14px;\n}\n\n[_nghost-%COMP%] .mjo-acct-card__sub {\n margin: 4px 0 0;\n font-size: 13px;\n color: var(--mj-text-muted, #94a3b8);\n max-width: 72ch;\n}\n\n[_nghost-%COMP%] .mjo-acct-card__actions {\n display: flex;\n align-items: center;\n gap: 8px;\n flex-shrink: 0;\n}\n\n[_nghost-%COMP%] .mjo-acct-card__body {\n padding: 16px 20px 20px;\n}\n\n\n\n\n[_nghost-%COMP%] .mjo-acct-btn {\n display: inline-flex;\n align-items: center;\n gap: 6px;\n font: inherit;\n font-size: 13px;\n font-weight: 600;\n padding: 6px 12px;\n border-radius: 6px;\n border: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.15));\n background: transparent;\n color: var(--mj-text-primary, #0f172a);\n cursor: pointer;\n white-space: nowrap;\n}\n\n[_nghost-%COMP%] .mjo-acct-btn:hover:not(:disabled) {\n background: var(--mj-bg-surface-sunken, rgba(0, 0, 0, 0.08));\n}\n\n[_nghost-%COMP%] .mjo-acct-btn:disabled {\n opacity: 0.45;\n cursor: default;\n}\n\n[_nghost-%COMP%] .mjo-acct-btn--primary {\n background: var(--mj-brand-primary, #0284c7);\n border-color: var(--mj-brand-primary, #0284c7);\n color: #fff;\n}\n\n[_nghost-%COMP%] .mjo-acct-btn--primary:hover:not(:disabled) {\n filter: brightness(1.08);\n background: var(--mj-brand-primary, #0284c7);\n}\n\n[_nghost-%COMP%] .mjo-acct-btn--icon {\n width: 32px;\n height: 32px;\n padding: 0;\n justify-content: center;\n color: var(--mj-text-muted, #94a3b8);\n}\n\n[_nghost-%COMP%] .mjo-acct-btn--link {\n border: none;\n padding: 2px 4px;\n font-weight: 600;\n color: var(--mj-brand-primary, #0284c7);\n}\n\n[_nghost-%COMP%] .mjo-acct-btn:focus-visible {\n outline: 2px solid var(--mj-brand-primary, #0284c7);\n outline-offset: 2px;\n}\n\n\n\n\n[_nghost-%COMP%] .mjo-acct-tablewrap {\n overflow-x: auto;\n}\n\n[_nghost-%COMP%] .mjo-acct-table {\n width: 100%;\n border-collapse: collapse;\n font-size: 13.5px;\n font-variant-numeric: tabular-nums;\n}\n\n[_nghost-%COMP%] .mjo-acct-table th {\n text-align: left;\n font-size: 12px;\n font-weight: 600;\n letter-spacing: 0.04em;\n text-transform: uppercase;\n color: var(--mj-text-muted, #94a3b8);\n padding: 0 12px 10px 0;\n border-bottom: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.12));\n white-space: nowrap;\n}\n\n[_nghost-%COMP%] .mjo-acct-table td {\n padding: 10px 12px 10px 0;\n border-bottom: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.08));\n vertical-align: middle;\n}\n\n[_nghost-%COMP%] .mjo-acct-table tr:last-child td {\n border-bottom: none;\n}\n\n[_nghost-%COMP%] .mjo-acct-table th:last-child, \n[_nghost-%COMP%] .mjo-acct-table td:last-child {\n padding-right: 0;\n}\n\n[_nghost-%COMP%] .mjo-acct-table .actions {\n text-align: right;\n white-space: nowrap;\n}\n\n[_nghost-%COMP%] .mjo-acct-table tr.muted td {\n color: var(--mj-text-muted, #94a3b8);\n}\n\n[_nghost-%COMP%] .mjo-acct-account {\n display: inline-flex;\n align-items: baseline;\n gap: 8px;\n min-width: 0;\n}\n\n[_nghost-%COMP%] .mjo-acct-code {\n font-family: var(--mj-font-family-mono, ui-monospace, SFMono-Regular, Menlo, monospace);\n font-weight: 700;\n}\n\n[_nghost-%COMP%] .mjo-acct-name {\n color: var(--mj-text-muted, #94a3b8);\n}\n\n[_nghost-%COMP%] .mjo-acct-link {\n background: none;\n border: none;\n padding: 0;\n cursor: pointer;\n font: inherit;\n color: inherit;\n text-align: left;\n}\n\n[_nghost-%COMP%] .mjo-acct-link:hover .mjo-acct-code {\n text-decoration: underline;\n text-underline-offset: 2px;\n}\n\n\n\n\n[_nghost-%COMP%] .mjo-acct-chip {\n display: inline-block;\n font-size: 12px;\n font-weight: 600;\n padding: 2px 9px;\n border-radius: 999px;\n border: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.2));\n color: var(--mj-text-muted, #94a3b8);\n white-space: nowrap;\n}\n\n[_nghost-%COMP%] .mjo-acct-chip--ok {\n color: var(--mj-status-success-text, #15803d);\n border-color: color-mix(in srgb, var(--mj-status-success-text, #15803d) 40%, transparent);\n background: color-mix(in srgb, var(--mj-status-success-text, #15803d) 10%, transparent);\n}\n\n[_nghost-%COMP%] .mjo-acct-chip--warn {\n color: var(--mj-status-warning-text, #b45309);\n border-color: color-mix(in srgb, var(--mj-status-warning-text, #b45309) 40%, transparent);\n background: color-mix(in srgb, var(--mj-status-warning-text, #b45309) 10%, transparent);\n}\n\n\n\n\n[_nghost-%COMP%] .mjo-acct-note {\n margin: 0;\n font-size: 13.5px;\n color: var(--mj-text-muted, #94a3b8);\n max-width: 72ch;\n}\n\n[_nghost-%COMP%] .mjo-acct-alert {\n display: flex;\n gap: 10px;\n align-items: flex-start;\n margin: 0 0 14px;\n padding: 10px 12px;\n border-radius: 8px;\n font-size: 13.5px;\n color: var(--mj-status-warning-text, #b45309);\n background: color-mix(in srgb, var(--mj-status-warning-text, #b45309) 10%, transparent);\n border: 1px solid color-mix(in srgb, var(--mj-status-warning-text, #b45309) 30%, transparent);\n}\n\n[_nghost-%COMP%] .mjo-acct-alert i {\n margin-top: 3px;\n}\n\n[_nghost-%COMP%] .mjo-acct-alert--error {\n color: var(--mj-status-error-text, #b91c1c);\n background: color-mix(in srgb, var(--mj-status-error-text, #b91c1c) 10%, transparent);\n border-color: color-mix(in srgb, var(--mj-status-error-text, #b91c1c) 30%, transparent);\n}\n\n\n\n\n[_nghost-%COMP%] .mjo-acct-form {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));\n gap: 14px 16px;\n align-items: end;\n margin: 0 0 16px;\n padding: 16px;\n border-radius: 8px;\n background: var(--mj-bg-surface-sunken, rgba(0, 0, 0, 0.08));\n border: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.1));\n}\n\n[_nghost-%COMP%] .mjo-acct-form__title {\n grid-column: 1 / -1;\n margin: 0;\n font-size: 13.5px;\n font-weight: 700;\n}\n\n[_nghost-%COMP%] .mjo-acct-field {\n display: flex;\n flex-direction: column;\n gap: 6px;\n min-width: 0;\n}\n\n[_nghost-%COMP%] .mjo-acct-field > span {\n font-size: 12.5px;\n font-weight: 600;\n color: var(--mj-text-muted, #94a3b8);\n}\n\n[_nghost-%COMP%] .mjo-acct-field select, \n[_nghost-%COMP%] .mjo-acct-field input {\n font: inherit;\n font-size: 13.5px;\n padding: 7px 10px;\n border: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.2));\n border-radius: 6px;\n background: var(--mj-bg-surface, transparent);\n color: inherit;\n width: 100%;\n box-sizing: border-box;\n}\n\n[_nghost-%COMP%] .mjo-acct-field select:disabled, \n[_nghost-%COMP%] .mjo-acct-field input:disabled {\n opacity: 0.55;\n}\n\n[_nghost-%COMP%] .mjo-acct-form__actions {\n display: flex;\n gap: 8px;\n align-items: center;\n}\n\n[_nghost-%COMP%] .mjo-acct-form__note {\n grid-column: 1 / -1;\n margin: 0;\n font-size: 13px;\n color: var(--mj-text-muted, #94a3b8);\n}\n\n\n\n\n.mjo-acct-fields[_ngcontent-%COMP%] {\n display: grid;\n \n\n\n grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));\n gap: 12px 24px;\n}\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n[_nghost-%COMP%] .mjo-acct-fields > mj-form-field {\n display: block;\n min-width: 0;\n}"] });
38
37
  }
39
38
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(BizAppsProductAccountingWidgetComponent, [{
40
39
  type: Component,
41
- args: [{ standalone: false, selector: 'bizapps-product-accounting-widget', template: "<!--\n CARD SHELL \u2014 the product's own fields are PROJECTED by the caller.\n Same reason as the fulfillment and subscription widgets: mj-collapsible-panel reads its\n fields through @ContentChildren, which cannot see a field declared inside a child\n component's view. That query drives hide-when-empty (golive#184) and the rail badge\n (golive#255), so the fields are declared in the panel template and projected in here.\n\n StandaloneSellingPrice is deliberately deprecated off generated forms by\n metadata/entities/.product-standalone-selling-price-deprecation.json and is NOT rendered.\n-->\n<div class=\"mjo-acct-widget-wrap\">\n <div class=\"mjo-acct-card\">\n <div class=\"mjo-card-head\">\n <i class=\"fa-solid fa-scale-balanced\"></i>\n <span>General Ledger &amp; Revenue Recognition Classification</span>\n </div>\n <div class=\"mjo-card-body mjo-acct-fields\">\n <ng-content></ng-content>\n </div>\n </div>\n\n <!--\n bizapps-orders#113 \u2014 the GL accounts this product books to.\n\n Users expect these HERE, under Accounting, and the section showed only the\n product's own columns. The links live in accounting, but they are polymorphic\n ((EntityID, RecordID)) and accounting must not depend on orders, so its own screen\n cannot even name a product. Rendering them from this side is what makes the pair\n something nobody has to type.\n -->\n <div class=\"mjo-acct-card\">\n <div class=\"mjo-card-body\">\n <bizapps-product-gl-links\n [Product]=\"Product\"\n [EditMode]=\"EditMode\"\n [FormContext]=\"FormContext\"\n (Navigate)=\"Navigate.emit($event)\"\n (LinksChanged)=\"effective.Refresh()\">\n </bizapps-product-gl-links>\n </div>\n </div>\n\n <!--\n golive#439 \u2014 which account each role ACTUALLY books to, and from where: the product, its\n category and parents, its product type, or the company default. The panel above lists only the\n product's own links; this one asks the server's walk, so it shows what confirm will use.\n -->\n <div class=\"mjo-acct-card\">\n <div class=\"mjo-card-body\">\n <bizapps-product-effective-gl-accounts #effective [Product]=\"Product\">\n </bizapps-product-effective-gl-accounts>\n </div>\n </div>\n</div>\n", styles: [".mjo-acct-widget-wrap {\n display: flex;\n flex-direction: column;\n gap: var(--mj-space-4, 16px);\n width: 100%;\n}\n\n.mjo-acct-card {\n background: var(--mj-bg-surface-card, rgba(255, 255, 255, 0.05));\n border: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.12));\n border-radius: var(--mj-radius-lg, 10px);\n overflow: hidden;\n}\n\n.mjo-card-head {\n padding: 12px 16px;\n background: var(--mj-bg-surface-sunken, rgba(0, 0, 0, 0.1));\n border-bottom: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.1));\n font-size: 13.5px;\n font-weight: 700;\n color: var(--mj-text-primary, #0f172a);\n display: flex;\n align-items: center;\n gap: 8px;\n}\n\n.mjo-card-head i {\n color: var(--mj-brand-primary, #0284c7);\n}\n\n.mjo-card-body {\n padding: 16px;\n display: grid;\n /* 380px, not 260px: MJ's own `.mj-forms-field` is a `200px 1fr` label/value grid, so a\n narrower cell leaves the value ~79px and wraps it mid-word. See the note below. */\n grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));\n gap: 16px;\n}\n\n/*\n * golive #211 walkthrough (Pin 21): MJ's `mj-form-field` host computes to `display: contents`, so\n * the component is not the grid item \u2014 its label and its control are, and the grid above put them\n * in SEPARATE 260px cells. That is why the \"Revenue Recognition Type Name\" label sat on top of the\n * picker's search-mode chip and the dropdown clipped every option. Making the host a real block\n * puts each field back in one cell; `min-width: 0` lets that cell shrink instead of overflowing.\n * The cell then has to be wide enough for MJ's internal `200px 1fr` label/value grid, which is why\n * the columns above widened to 380px at the same time.\n */\n/*\n * `::ng-deep` because the fields are projected from the panel template (see the .html), so\n * they carry the panel's encapsulation attribute, not this widget's \u2014 a scoped\n * `.mjo-card-body > mj-form-field` stops matching them. `.mjo-acct-fields` keeps the rule off\n * the GL-links card body below.\n */\n:host ::ng-deep .mjo-acct-fields > mj-form-field {\n display: block;\n min-width: 0;\n}\n"] }]
40
+ args: [{ standalone: false, selector: 'bizapps-product-accounting-widget', template: "<!--\n CARD SHELL \u2014 the product's own fields are PROJECTED by the caller.\n Same reason as the fulfillment and subscription widgets: mj-collapsible-panel reads its\n fields through @ContentChildren, which cannot see a field declared inside a child\n component's view. That query drives hide-when-empty (golive#184) and the rail badge\n (golive#255), so the fields are declared in the panel template and projected in here.\n\n StandaloneSellingPrice is deliberately deprecated off generated forms by\n metadata/entities/.product-standalone-selling-price-deprecation.json and is NOT rendered.\n\n ORDER OF THE THREE CARDS. Setup first (the product's own accounting columns), then the accounts\n an order would actually post to (the question a reader has), then the product-level links that\n override the inherited ones (the editing surface). The second card asks the server's walk\n (golive#439); the third lists only links on the product itself (bizapps-orders#113).\n-->\n<div class=\"mjo-acct-widget-wrap\">\n <section class=\"mjo-acct-card\">\n <header class=\"mjo-acct-card__head\">\n <div class=\"mjo-acct-card__titles\">\n <h3 class=\"mjo-acct-card__title\"><i class=\"fa-solid fa-book\"></i>Accounting setup</h3>\n </div>\n </header>\n <div class=\"mjo-acct-card__body mjo-acct-fields\">\n <ng-content></ng-content>\n </div>\n </section>\n\n <section class=\"mjo-acct-card\">\n <!-- The two ids are bound on their own so an edit on the form reaches the card (see its ngOnChanges). -->\n <bizapps-product-effective-gl-accounts\n #effective\n [Product]=\"Product\"\n [RevenueRecognitionTypeID]=\"Product?.RevenueRecognitionTypeID\"\n [CompanyID]=\"Product?.CompanyID\">\n </bizapps-product-effective-gl-accounts>\n </section>\n\n <section class=\"mjo-acct-card\">\n <bizapps-product-gl-links\n [Product]=\"Product\"\n [EditMode]=\"EditMode\"\n [FormContext]=\"FormContext\"\n (Navigate)=\"Navigate.emit($event)\"\n (LinksChanged)=\"effective.Refresh()\">\n </bizapps-product-gl-links>\n </section>\n</div>\n", styles: ["/*\n * The Accounting tab: three cards with one look. The two child components (accounts in use,\n * product-level links) render their own header inside their card; the shared `.mjo-acct-*`\n * rules below reach them through ::ng-deep, so the tab reads as one surface rather than three\n * bolted-on widgets.\n */\n\n.mjo-acct-widget-wrap {\n display: flex;\n flex-direction: column;\n gap: var(--mj-space-5, 20px);\n width: 100%;\n font-size: 14px;\n line-height: 1.5;\n}\n\n.mjo-acct-card {\n background: var(--mj-bg-surface-card, rgba(255, 255, 255, 0.05));\n border: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.12));\n border-radius: var(--mj-radius-lg, 10px);\n overflow: hidden;\n}\n\n/* \u2500\u2500 Card header: title, one-line subtitle, actions on the right \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */\n\n:host ::ng-deep .mjo-acct-card__head {\n display: flex;\n align-items: flex-start;\n justify-content: space-between;\n gap: 16px;\n padding: 16px 20px 14px;\n border-bottom: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.1));\n}\n\n:host ::ng-deep .mjo-acct-card__titles {\n min-width: 0;\n}\n\n:host ::ng-deep .mjo-acct-card__title {\n margin: 0;\n font-size: 15px;\n font-weight: 700;\n color: var(--mj-text-primary, #0f172a);\n display: flex;\n align-items: center;\n gap: 8px;\n}\n\n:host ::ng-deep .mjo-acct-card__title i {\n color: var(--mj-brand-primary, #0284c7);\n font-size: 14px;\n}\n\n:host ::ng-deep .mjo-acct-card__sub {\n margin: 4px 0 0;\n font-size: 13px;\n color: var(--mj-text-muted, #94a3b8);\n max-width: 72ch;\n}\n\n:host ::ng-deep .mjo-acct-card__actions {\n display: flex;\n align-items: center;\n gap: 8px;\n flex-shrink: 0;\n}\n\n:host ::ng-deep .mjo-acct-card__body {\n padding: 16px 20px 20px;\n}\n\n/* \u2500\u2500 Buttons \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */\n\n:host ::ng-deep .mjo-acct-btn {\n display: inline-flex;\n align-items: center;\n gap: 6px;\n font: inherit;\n font-size: 13px;\n font-weight: 600;\n padding: 6px 12px;\n border-radius: 6px;\n border: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.15));\n background: transparent;\n color: var(--mj-text-primary, #0f172a);\n cursor: pointer;\n white-space: nowrap;\n}\n\n:host ::ng-deep .mjo-acct-btn:hover:not(:disabled) {\n background: var(--mj-bg-surface-sunken, rgba(0, 0, 0, 0.08));\n}\n\n:host ::ng-deep .mjo-acct-btn:disabled {\n opacity: 0.45;\n cursor: default;\n}\n\n:host ::ng-deep .mjo-acct-btn--primary {\n background: var(--mj-brand-primary, #0284c7);\n border-color: var(--mj-brand-primary, #0284c7);\n color: #fff;\n}\n\n:host ::ng-deep .mjo-acct-btn--primary:hover:not(:disabled) {\n filter: brightness(1.08);\n background: var(--mj-brand-primary, #0284c7);\n}\n\n:host ::ng-deep .mjo-acct-btn--icon {\n width: 32px;\n height: 32px;\n padding: 0;\n justify-content: center;\n color: var(--mj-text-muted, #94a3b8);\n}\n\n:host ::ng-deep .mjo-acct-btn--link {\n border: none;\n padding: 2px 4px;\n font-weight: 600;\n color: var(--mj-brand-primary, #0284c7);\n}\n\n:host ::ng-deep .mjo-acct-btn:focus-visible {\n outline: 2px solid var(--mj-brand-primary, #0284c7);\n outline-offset: 2px;\n}\n\n/* \u2500\u2500 Tables \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */\n\n:host ::ng-deep .mjo-acct-tablewrap {\n overflow-x: auto;\n}\n\n:host ::ng-deep .mjo-acct-table {\n width: 100%;\n border-collapse: collapse;\n font-size: 13.5px;\n font-variant-numeric: tabular-nums;\n}\n\n:host ::ng-deep .mjo-acct-table th {\n text-align: left;\n font-size: 12px;\n font-weight: 600;\n letter-spacing: 0.04em;\n text-transform: uppercase;\n color: var(--mj-text-muted, #94a3b8);\n padding: 0 12px 10px 0;\n border-bottom: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.12));\n white-space: nowrap;\n}\n\n:host ::ng-deep .mjo-acct-table td {\n padding: 10px 12px 10px 0;\n border-bottom: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.08));\n vertical-align: middle;\n}\n\n:host ::ng-deep .mjo-acct-table tr:last-child td {\n border-bottom: none;\n}\n\n:host ::ng-deep .mjo-acct-table th:last-child,\n:host ::ng-deep .mjo-acct-table td:last-child {\n padding-right: 0;\n}\n\n:host ::ng-deep .mjo-acct-table .actions {\n text-align: right;\n white-space: nowrap;\n}\n\n:host ::ng-deep .mjo-acct-table tr.muted td {\n color: var(--mj-text-muted, #94a3b8);\n}\n\n:host ::ng-deep .mjo-acct-account {\n display: inline-flex;\n align-items: baseline;\n gap: 8px;\n min-width: 0;\n}\n\n:host ::ng-deep .mjo-acct-code {\n font-family: var(--mj-font-family-mono, ui-monospace, SFMono-Regular, Menlo, monospace);\n font-weight: 700;\n}\n\n:host ::ng-deep .mjo-acct-name {\n color: var(--mj-text-muted, #94a3b8);\n}\n\n:host ::ng-deep .mjo-acct-link {\n background: none;\n border: none;\n padding: 0;\n cursor: pointer;\n font: inherit;\n color: inherit;\n text-align: left;\n}\n\n:host ::ng-deep .mjo-acct-link:hover .mjo-acct-code {\n text-decoration: underline;\n text-underline-offset: 2px;\n}\n\n/* \u2500\u2500 Status chips \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */\n\n:host ::ng-deep .mjo-acct-chip {\n display: inline-block;\n font-size: 12px;\n font-weight: 600;\n padding: 2px 9px;\n border-radius: 999px;\n border: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.2));\n color: var(--mj-text-muted, #94a3b8);\n white-space: nowrap;\n}\n\n:host ::ng-deep .mjo-acct-chip--ok {\n color: var(--mj-status-success-text, #15803d);\n border-color: color-mix(in srgb, var(--mj-status-success-text, #15803d) 40%, transparent);\n background: color-mix(in srgb, var(--mj-status-success-text, #15803d) 10%, transparent);\n}\n\n:host ::ng-deep .mjo-acct-chip--warn {\n color: var(--mj-status-warning-text, #b45309);\n border-color: color-mix(in srgb, var(--mj-status-warning-text, #b45309) 40%, transparent);\n background: color-mix(in srgb, var(--mj-status-warning-text, #b45309) 10%, transparent);\n}\n\n/* \u2500\u2500 Notes and alerts \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */\n\n:host ::ng-deep .mjo-acct-note {\n margin: 0;\n font-size: 13.5px;\n color: var(--mj-text-muted, #94a3b8);\n max-width: 72ch;\n}\n\n:host ::ng-deep .mjo-acct-alert {\n display: flex;\n gap: 10px;\n align-items: flex-start;\n margin: 0 0 14px;\n padding: 10px 12px;\n border-radius: 8px;\n font-size: 13.5px;\n color: var(--mj-status-warning-text, #b45309);\n background: color-mix(in srgb, var(--mj-status-warning-text, #b45309) 10%, transparent);\n border: 1px solid color-mix(in srgb, var(--mj-status-warning-text, #b45309) 30%, transparent);\n}\n\n:host ::ng-deep .mjo-acct-alert i {\n margin-top: 3px;\n}\n\n:host ::ng-deep .mjo-acct-alert--error {\n color: var(--mj-status-error-text, #b91c1c);\n background: color-mix(in srgb, var(--mj-status-error-text, #b91c1c) 10%, transparent);\n border-color: color-mix(in srgb, var(--mj-status-error-text, #b91c1c) 30%, transparent);\n}\n\n/* \u2500\u2500 Inline forms (add / edit a link) \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */\n\n:host ::ng-deep .mjo-acct-form {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));\n gap: 14px 16px;\n align-items: end;\n margin: 0 0 16px;\n padding: 16px;\n border-radius: 8px;\n background: var(--mj-bg-surface-sunken, rgba(0, 0, 0, 0.08));\n border: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.1));\n}\n\n:host ::ng-deep .mjo-acct-form__title {\n grid-column: 1 / -1;\n margin: 0;\n font-size: 13.5px;\n font-weight: 700;\n}\n\n:host ::ng-deep .mjo-acct-field {\n display: flex;\n flex-direction: column;\n gap: 6px;\n min-width: 0;\n}\n\n:host ::ng-deep .mjo-acct-field > span {\n font-size: 12.5px;\n font-weight: 600;\n color: var(--mj-text-muted, #94a3b8);\n}\n\n:host ::ng-deep .mjo-acct-field select,\n:host ::ng-deep .mjo-acct-field input {\n font: inherit;\n font-size: 13.5px;\n padding: 7px 10px;\n border: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.2));\n border-radius: 6px;\n background: var(--mj-bg-surface, transparent);\n color: inherit;\n width: 100%;\n box-sizing: border-box;\n}\n\n:host ::ng-deep .mjo-acct-field select:disabled,\n:host ::ng-deep .mjo-acct-field input:disabled {\n opacity: 0.55;\n}\n\n:host ::ng-deep .mjo-acct-form__actions {\n display: flex;\n gap: 8px;\n align-items: center;\n}\n\n:host ::ng-deep .mjo-acct-form__note {\n grid-column: 1 / -1;\n margin: 0;\n font-size: 13px;\n color: var(--mj-text-muted, #94a3b8);\n}\n\n/* \u2500\u2500 The projected fields \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */\n\n.mjo-acct-fields {\n display: grid;\n /* 380px, not 260px: MJ's own `.mj-forms-field` is a `200px 1fr` label/value grid, so a\n narrower cell leaves the value ~79px and wraps it mid-word. See the note below. */\n grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));\n gap: 12px 24px;\n}\n\n/*\n * golive #211 walkthrough (Pin 21): MJ's `mj-form-field` host computes to `display: contents`, so\n * the component is not the grid item \u2014 its label and its control are, and the grid above put them\n * in SEPARATE 260px cells. That is why the \"Revenue Recognition Type Name\" label sat on top of the\n * picker's search-mode chip and the dropdown clipped every option. Making the host a real block\n * puts each field back in one cell; `min-width: 0` lets that cell shrink instead of overflowing.\n * The cell then has to be wide enough for MJ's internal `200px 1fr` label/value grid, which is why\n * the columns above widened to 380px at the same time.\n *\n * `::ng-deep` because the fields are projected from the panel template (see the .html), so\n * they carry the panel's encapsulation attribute, not this widget's.\n */\n:host ::ng-deep .mjo-acct-fields > mj-form-field {\n display: block;\n min-width: 0;\n}\n"] }]
42
41
  }], null, { Product: [{
43
42
  type: Input
44
43
  }], EditMode: [{
@@ -1 +1 @@
1
- {"version":3,"file":"product-accounting-widget.component.js","sourceRoot":"","sources":["../../../../../src/lib/custom/Product/widgets/product-accounting-widget.component.ts","../../../../../src/lib/custom/Product/widgets/product-accounting-widget.component.html"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;;;;;AAIvE;;GAEG;AAOH,MAAM,OAAO,uCAAuC;IAChC,OAAO,CAAgC;IACvC,QAAQ,GAAG,KAAK,CAAC;IACjB,WAAW,CAAe;IAEzB,QAAQ,GAAG,IAAI,YAAY,EAAuB,CAAC;iIAL3D,uCAAuC;6DAAvC,uCAAuC;;;YCD5C,AADJ,AADJ,8BAAkC,aACH,aACI;YACvB,uBAA0C;YAC1C,4BAAM;YAAA,mEAAuD;YACjE,AADiE,iBAAO,EAClE;YACN,8BAA2C;YACvC,kBAAyB;YAEjC,AADI,iBAAM,EACJ;YAaE,AADJ,AADJ,8BAA2B,aACI,mCAMkB;YAArC,AADA,yLAAY,yBAAqB,KAAC,uNAClB,sBAAmB,KAAC;YAGhD,AADI,AADI,iBAA2B,EACzB,EACJ;YAQF,AADJ,+BAA2B,cACI;YACvB,+DACwC;YAGpD,AADI,AADI,iBAAM,EACJ,EACJ;;YApBU,gBAAmB;YAEnB,AADA,AADA,qCAAmB,0BACE,gCACM;YAcmB,eAAmB;YAAnB,qCAAmB;;;iFDpCpE,uCAAuC;cANnD,SAAS;6BACM,KAAK,YACP,mCAAmC;;kBAK5C,KAAK;;kBACL,KAAK;;kBACL,KAAK;;kBAEL,MAAM;;kFALE,uCAAuC"}
1
+ {"version":3,"file":"product-accounting-widget.component.js","sourceRoot":"","sources":["../../../../../src/lib/custom/Product/widgets/product-accounting-widget.component.ts","../../../../../src/lib/custom/Product/widgets/product-accounting-widget.component.html"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;;;;;AAIvE;;GAEG;AAOH,MAAM,OAAO,uCAAuC;IAChC,OAAO,CAAgC;IACvC,QAAQ,GAAG,KAAK,CAAC;IACjB,WAAW,CAAe;IAEzB,QAAQ,GAAG,IAAI,YAAY,EAAuB,CAAC;iIAL3D,uCAAuC;6DAAvC,uCAAuC;;;YCMpC,AADJ,AADJ,AADJ,AADJ,8BAAkC,iBACC,gBACS,aACG,YACE;YAAA,uBAAgC;YAAA,gCAAgB;YAEzF,AADI,AADqF,iBAAK,EACpF,EACD;YACT,8BAAiD;YAC7C,kBAAyB;YAEjC,AADI,iBAAM,EACA;YAEV,kCAA+B;YAE3B,+DAKwC;YAC5C,iBAAU;YAGN,AADJ,mCAA+B,mCAMc;YAArC,AADA,yLAAY,yBAAqB,KAAC,uNAClB,sBAAmB,KAAC;YAGhD,AADI,AADI,iBAA2B,EACrB,EACR;;YAfM,gBAAmB;YAEnB,AADA,AADA,qCAAmB,+FAC2C,iEAC9B;YAMhC,eAAmB;YAEnB,AADA,AADA,qCAAmB,0BACE,gCACM;;;iFD5B1B,uCAAuC;cANnD,SAAS;6BACM,KAAK,YACP,mCAAmC;;kBAK5C,KAAK;;kBACL,KAAK;;kBACL,KAAK;;kBAEL,MAAM;;kFALE,uCAAuC"}
@@ -1,54 +1,79 @@
1
- import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
1
+ import { ChangeDetectorRef, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
2
2
  import { type ExplainedGLRole, type mjBizAppsOrdersProductEntity } from '@mj-biz-apps/orders-entities';
3
3
  import * as i0 from "@angular/core";
4
- /** A company the picker offers. */
5
- export interface CompanyOption {
6
- ID: string;
7
- Name: string;
8
- }
9
4
  /** The roles that resolve nowhere — or whose winner booking would refuse — by name, in list order. */
10
5
  export declare function UnresolvedRoleNames(roles: readonly ExplainedGLRole[]): string[];
6
+ /**
7
+ * The roles confirm cannot post without. `OrderJournalEntryFactory` resolves Accounts Receivable and
8
+ * Sales on every line, Deferred Revenue only when the product's revenue recognition type is deferred,
9
+ * Sales Discounts only when a line carries a discount and nets it into revenue when none is assigned,
10
+ * and nothing books Sales Returns and Allowances today. So a product with the first two (three when
11
+ * deferred) assigned confirms; the rest are optional and must not be reported as blocking.
12
+ */
13
+ export declare function RequiredGLRoleNames(isDeferred: boolean): string[];
14
+ /** The required roles with no account, in list order: the ones the warning names. */
15
+ export declare function MissingRequiredRoleNames(roles: readonly ExplainedGLRole[], isDeferred: boolean): string[];
16
+ /** Why an optional role is optional, for the row that has no account. */
17
+ export declare function OptionalRoleNote(role: string): string;
18
+ /**
19
+ * Where a role's account comes from, in the words of the table's "Assigned on" column: "This product",
20
+ * "Category: Services", "Product type: Membership", "Company default: Betty Bot". The walk's own
21
+ * `Scope` already reads that way for the middle levels; the product level names the product the
22
+ * reader is looking at, and the company level names the product's company. Exported for the unit test.
23
+ */
24
+ export declare function RoleSourceText(role: ExplainedGLRole, companyName: string): string;
25
+ /** The chip shown instead of an account when a role has none, by the walk's failure code. */
26
+ export declare function RoleFailureText(role: ExplainedGLRole): string;
11
27
  /**
12
28
  * The GL account each role books to for this product, and where in the walk it comes from
13
29
  * (golive#439).
14
30
  *
15
- * The direct-links panel above shows only links set on the product itself, so a product that books
16
- * through its category, product type or company looked unlinked. This block asks the server, through
31
+ * The assignments card below shows only links set on the product itself, so a product that books
32
+ * through its category, product type or company looked unassigned. This block asks the server, through
17
33
  * `Orders.ExplainProductGLAccounts`, which runs the walk confirm books through; it never resolves
18
- * anything itself, so it cannot disagree with booking. Each role renders with accounting's
19
- * `mj-gl-resolution-preview`.
34
+ * anything itself, so it cannot disagree with booking.
20
35
  *
21
- * The company defaults to the product's own (g439.2 A); the picker answers the same question for a
22
- * product another company sells.
36
+ * Always for the product's own company: that is the Company field on this tab, and a cross-company
37
+ * sale is the order's question, answered by the order's readiness check. A company picker used to sit
38
+ * here and read as a second, conflicting company control.
23
39
  */
24
- export declare class BizAppsProductEffectiveGLAccountsComponent implements OnInit, OnDestroy {
40
+ export declare class BizAppsProductEffectiveGLAccountsComponent implements OnInit, OnChanges, OnDestroy {
25
41
  private readonly cdr;
26
42
  Product: mjBizAppsOrdersProductEntity;
43
+ /**
44
+ * The product's recognition type and company, bound separately from `Product` so a change made on
45
+ * the form reaches `ngOnChanges`: the entity is the same object before and after an edit, so a
46
+ * binding to it alone never reports a change. Deferred Revenue is required only for a deferred
47
+ * type, and the walk is for the product's company, so each re-reads when its input changes.
48
+ */
49
+ RevenueRecognitionTypeID: string | null | undefined;
50
+ CompanyID: string | null | undefined;
27
51
  Roles: ExplainedGLRole[];
28
- Companies: CompanyOption[];
29
- /** The company explained for; the product's own until the user picks another. */
30
- CompanyID: string;
31
52
  AsOf: string;
32
53
  Loading: boolean;
33
54
  LoadError: string | null;
55
+ /** Whether the product's revenue recognition type defers revenue, which makes Deferred Revenue required. */
56
+ IsDeferred: boolean;
34
57
  private destroyed;
35
58
  constructor(cdr: ChangeDetectorRef);
36
59
  ngOnInit(): Promise<void>;
60
+ ngOnChanges(changes: SimpleChanges): void;
37
61
  ngOnDestroy(): void;
38
62
  private tick;
63
+ private loadRevRec;
39
64
  /** Roles with no account booking would use. */
40
65
  get Unresolved(): string[];
66
+ /** The required roles with no account: what the warning names, and what blocks confirm. */
67
+ get MissingRequired(): string[];
68
+ IsRequired(role: ExplainedGLRole): boolean;
69
+ OptionalNote(role: ExplainedGLRole): string;
70
+ SourceText(role: ExplainedGLRole): string;
71
+ FailureText(role: ExplainedGLRole): string;
41
72
  /** An unsaved product has no links to walk from. */
42
73
  get CanExplain(): boolean;
43
- OnCompanyChange(companyID: string): Promise<void>;
44
- /** Re-asks the server. The direct-links panel calls this after it writes a link. */
74
+ /** Re-asks the server. The assignments card calls this after it writes a link. */
45
75
  Refresh(): Promise<void>;
46
- private loadCompanies;
47
- /** Whether `id` is the product's own company, for the picker's label. */
48
- IsOwnCompany(id: string): boolean;
49
- /** The option value matching `CompanyID` regardless of case, so the select never renders blank. */
50
- get SelectedCompany(): string;
51
76
  static ɵfac: i0.ɵɵFactoryDeclaration<BizAppsProductEffectiveGLAccountsComponent, never>;
52
- static ɵcmp: i0.ɵɵComponentDeclaration<BizAppsProductEffectiveGLAccountsComponent, "bizapps-product-effective-gl-accounts", never, { "Product": { "alias": "Product"; "required": false; }; }, {}, never, never, false, never>;
77
+ static ɵcmp: i0.ɵɵComponentDeclaration<BizAppsProductEffectiveGLAccountsComponent, "bizapps-product-effective-gl-accounts", never, { "Product": { "alias": "Product"; "required": false; }; "RevenueRecognitionTypeID": { "alias": "RevenueRecognitionTypeID"; "required": false; }; "CompanyID": { "alias": "CompanyID"; "required": false; }; }, {}, never, never, false, never>;
53
78
  }
54
79
  //# sourceMappingURL=product-effective-gl-accounts.component.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"product-effective-gl-accounts.component.d.ts","sourceRoot":"","sources":["../../../../../src/lib/custom/Product/widgets/product-effective-gl-accounts.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAoB,SAAS,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAEvF,OAAO,EAEH,KAAK,eAAe,EACpB,KAAK,4BAA4B,EACpC,MAAM,8BAA8B,CAAC;;AAItC,mCAAmC;AACnC,MAAM,WAAW,aAAa;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;CAChB;AAED,sGAAsG;AACtG,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,SAAS,eAAe,EAAE,GAAG,MAAM,EAAE,CAE/E;AAED;;;;;;;;;;;;GAYG;AACH,qBAMa,0CAA2C,YAAW,MAAM,EAAE,SAAS;IAapE,OAAO,CAAC,QAAQ,CAAC,GAAG;IAZhB,OAAO,EAAG,4BAA4B,CAAC;IAEhD,KAAK,EAAE,eAAe,EAAE,CAAM;IAC9B,SAAS,EAAE,aAAa,EAAE,CAAM;IACvC,iFAAiF;IAC1E,SAAS,SAAM;IACf,IAAI,SAAM;IACV,OAAO,UAAS;IAChB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAQ;IAEvC,OAAO,CAAC,SAAS,CAAS;gBAEG,GAAG,EAAE,iBAAiB;IAEtC,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;IAK/B,WAAW,IAAI,IAAI;IAI1B,OAAO,CAAC,IAAI;IAIZ,+CAA+C;IAC/C,IAAW,UAAU,IAAI,MAAM,EAAE,CAEhC;IAED,oDAAoD;IACpD,IAAW,UAAU,IAAI,OAAO,CAE/B;IAEY,eAAe,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAK9D,oFAAoF;IACvE,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;YA8BvB,aAAa;IAa3B,yEAAyE;IAClE,YAAY,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO;IAIxC,mGAAmG;IACnG,IAAW,eAAe,IAAI,MAAM,CAGnC;yCAhGQ,0CAA0C;2CAA1C,0CAA0C;CAiGtD"}
1
+ {"version":3,"file":"product-effective-gl-accounts.component.d.ts","sourceRoot":"","sources":["../../../../../src/lib/custom/Product/widgets/product-effective-gl-accounts.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAoB,SAAS,EAAE,SAAS,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAEjH,OAAO,EAIH,KAAK,eAAe,EACpB,KAAK,4BAA4B,EACpC,MAAM,8BAA8B,CAAC;;AAEtC,sGAAsG;AACtG,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,SAAS,eAAe,EAAE,GAAG,MAAM,EAAE,CAE/E;AAED;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CAAC,UAAU,EAAE,OAAO,GAAG,MAAM,EAAE,CAEjE;AAED,qFAAqF;AACrF,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,SAAS,eAAe,EAAE,EAAE,UAAU,EAAE,OAAO,GAAG,MAAM,EAAE,CAGzG;AAED,yEAAyE;AACzE,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAWrD;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,GAAG,MAAM,CAQjF;AAED,6FAA6F;AAC7F,wBAAgB,eAAe,CAAC,IAAI,EAAE,eAAe,GAAG,MAAM,CAE7D;AAED;;;;;;;;;;;;GAYG;AACH,qBAMa,0CAA2C,YAAW,MAAM,EAAE,SAAS,EAAE,SAAS;IAoB/E,OAAO,CAAC,QAAQ,CAAC,GAAG;IAnBhB,OAAO,EAAG,4BAA4B,CAAC;IACvD;;;;;OAKG;IACa,wBAAwB,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACpD,SAAS,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAE9C,KAAK,EAAE,eAAe,EAAE,CAAM;IAC9B,IAAI,SAAM;IACV,OAAO,UAAS;IAChB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAQ;IACvC,4GAA4G;IACrG,UAAU,UAAS;IAE1B,OAAO,CAAC,SAAS,CAAS;gBAEG,GAAG,EAAE,iBAAiB;IAEtC,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;IAI/B,WAAW,CAAC,OAAO,EAAE,aAAa,GAAG,IAAI;IAMzC,WAAW,IAAI,IAAI;IAI1B,OAAO,CAAC,IAAI;YAIE,UAAU;IAiBxB,+CAA+C;IAC/C,IAAW,UAAU,IAAI,MAAM,EAAE,CAEhC;IAED,2FAA2F;IAC3F,IAAW,eAAe,IAAI,MAAM,EAAE,CAErC;IAEM,UAAU,CAAC,IAAI,EAAE,eAAe,GAAG,OAAO;IAI1C,YAAY,CAAC,IAAI,EAAE,eAAe,GAAG,MAAM;IAI3C,UAAU,CAAC,IAAI,EAAE,eAAe,GAAG,MAAM;IAIzC,WAAW,CAAC,IAAI,EAAE,eAAe,GAAG,MAAM;IAIjD,oDAAoD;IACpD,IAAW,UAAU,IAAI,OAAO,CAE/B;IAED,kFAAkF;IACrE,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;yCAzF5B,0CAA0C;2CAA1C,0CAA0C;CAqHtD"}