@mj-biz-apps/orders-ng 0.0.1 → 5.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +183 -0
- package/README.md +34 -2
- package/dist/checkout-element/main.js +38080 -0
- package/dist/lib/checkout-widget/checkout-draft-line.d.ts +25 -0
- package/dist/lib/checkout-widget/checkout-draft-line.d.ts.map +1 -0
- package/dist/lib/checkout-widget/checkout-draft-line.js +46 -0
- package/dist/lib/checkout-widget/checkout-draft-line.js.map +1 -0
- package/dist/lib/checkout-widget/checkout-public-host.component.d.ts +80 -0
- package/dist/lib/checkout-widget/checkout-public-host.component.d.ts.map +1 -0
- package/dist/lib/checkout-widget/checkout-public-host.component.js +360 -0
- package/dist/lib/checkout-widget/checkout-public-host.component.js.map +1 -0
- package/dist/lib/checkout-widget/checkout-widget.component.d.ts +143 -0
- package/dist/lib/checkout-widget/checkout-widget.component.d.ts.map +1 -0
- package/dist/lib/checkout-widget/checkout-widget.component.js +873 -0
- package/dist/lib/checkout-widget/checkout-widget.component.js.map +1 -0
- package/dist/lib/custom/OrderHeader/line-extension-cache.d.ts +22 -0
- package/dist/lib/custom/OrderHeader/line-extension-cache.d.ts.map +1 -0
- package/dist/lib/custom/OrderHeader/line-extension-cache.js +46 -0
- package/dist/lib/custom/OrderHeader/line-extension-cache.js.map +1 -0
- package/dist/lib/custom/OrderHeader/line-extension-fields.d.ts +58 -0
- package/dist/lib/custom/OrderHeader/line-extension-fields.d.ts.map +1 -0
- package/dist/lib/custom/OrderHeader/line-extension-fields.js +137 -0
- package/dist/lib/custom/OrderHeader/line-extension-fields.js.map +1 -0
- package/dist/lib/custom/OrderHeader/order-header-form.component.d.ts +127 -0
- package/dist/lib/custom/OrderHeader/order-header-form.component.d.ts.map +1 -0
- package/dist/lib/custom/OrderHeader/order-header-form.component.js +1429 -0
- package/dist/lib/custom/OrderHeader/order-header-form.component.js.map +1 -0
- package/dist/lib/custom/OrderHeader/order-header-prefs.d.ts +18 -0
- package/dist/lib/custom/OrderHeader/order-header-prefs.d.ts.map +1 -0
- package/dist/lib/custom/OrderHeader/order-header-prefs.js +20 -0
- package/dist/lib/custom/OrderHeader/order-header-prefs.js.map +1 -0
- package/dist/lib/custom/OrderHeader/order-lines-editor.component.d.ts +72 -0
- package/dist/lib/custom/OrderHeader/order-lines-editor.component.d.ts.map +1 -0
- package/dist/lib/custom/OrderHeader/order-lines-editor.component.js +621 -0
- package/dist/lib/custom/OrderHeader/order-lines-editor.component.js.map +1 -0
- package/dist/lib/custom/PaymentHeader/payment-header-form.component.d.ts +135 -0
- package/dist/lib/custom/PaymentHeader/payment-header-form.component.d.ts.map +1 -0
- package/dist/lib/custom/PaymentHeader/payment-header-form.component.js +2169 -0
- package/dist/lib/custom/PaymentHeader/payment-header-form.component.js.map +1 -0
- package/dist/lib/custom/PriceList/price-list-form.component.d.ts +46 -0
- package/dist/lib/custom/PriceList/price-list-form.component.d.ts.map +1 -0
- package/dist/lib/custom/PriceList/price-list-form.component.js +363 -0
- package/dist/lib/custom/PriceList/price-list-form.component.js.map +1 -0
- package/dist/lib/custom/Product/product-form.component.d.ts +81 -0
- package/dist/lib/custom/Product/product-form.component.d.ts.map +1 -0
- package/dist/lib/custom/Product/product-form.component.js +665 -0
- package/dist/lib/custom/Product/product-form.component.js.map +1 -0
- package/dist/lib/custom/Product/widgets/product-accounting-widget.component.d.ts +16 -0
- package/dist/lib/custom/Product/widgets/product-accounting-widget.component.d.ts.map +1 -0
- package/dist/lib/custom/Product/widgets/product-accounting-widget.component.js +55 -0
- package/dist/lib/custom/Product/widgets/product-accounting-widget.component.js.map +1 -0
- package/dist/lib/custom/Product/widgets/product-fulfillment-widget.component.d.ts +16 -0
- package/dist/lib/custom/Product/widgets/product-fulfillment-widget.component.d.ts.map +1 -0
- package/dist/lib/custom/Product/widgets/product-fulfillment-widget.component.js +65 -0
- package/dist/lib/custom/Product/widgets/product-fulfillment-widget.component.js.map +1 -0
- package/dist/lib/custom/Product/widgets/product-pricing-widget.component.d.ts +103 -0
- package/dist/lib/custom/Product/widgets/product-pricing-widget.component.d.ts.map +1 -0
- package/dist/lib/custom/Product/widgets/product-pricing-widget.component.js +950 -0
- package/dist/lib/custom/Product/widgets/product-pricing-widget.component.js.map +1 -0
- package/dist/lib/custom/Product/widgets/product-promotions-widget.component.d.ts +21 -0
- package/dist/lib/custom/Product/widgets/product-promotions-widget.component.d.ts.map +1 -0
- package/dist/lib/custom/Product/widgets/product-promotions-widget.component.js +67 -0
- package/dist/lib/custom/Product/widgets/product-promotions-widget.component.js.map +1 -0
- package/dist/lib/custom/Product/widgets/product-subscription-widget.component.d.ts +18 -0
- package/dist/lib/custom/Product/widgets/product-subscription-widget.component.d.ts.map +1 -0
- package/dist/lib/custom/Product/widgets/product-subscription-widget.component.js +55 -0
- package/dist/lib/custom/Product/widgets/product-subscription-widget.component.js.map +1 -0
- package/dist/lib/custom/Promotion/promotion-form.component.d.ts +33 -0
- package/dist/lib/custom/Promotion/promotion-form.component.d.ts.map +1 -0
- package/dist/lib/custom/Promotion/promotion-form.component.js +350 -0
- package/dist/lib/custom/Promotion/promotion-form.component.js.map +1 -0
- package/dist/lib/custom/Subscription/subscription-form.component.d.ts +96 -0
- package/dist/lib/custom/Subscription/subscription-form.component.d.ts.map +1 -0
- package/dist/lib/custom/Subscription/subscription-form.component.js +885 -0
- package/dist/lib/custom/Subscription/subscription-form.component.js.map +1 -0
- package/dist/lib/custom/SubscriptionTerm/subscription-term-form.component.d.ts +60 -0
- package/dist/lib/custom/SubscriptionTerm/subscription-term-form.component.d.ts.map +1 -0
- package/dist/lib/custom/SubscriptionTerm/subscription-term-form.component.js +567 -0
- package/dist/lib/custom/SubscriptionTerm/subscription-term-form.component.js.map +1 -0
- package/dist/lib/custom/custom-forms.module.d.ts +29 -0
- package/dist/lib/custom/custom-forms.module.d.ts.map +1 -0
- package/dist/lib/custom/custom-forms.module.js +127 -0
- package/dist/lib/custom/custom-forms.module.js.map +1 -0
- package/dist/lib/custom/form-navigation-helper.d.ts +10 -0
- package/dist/lib/custom/form-navigation-helper.d.ts.map +1 -0
- package/dist/lib/custom/form-navigation-helper.js +51 -0
- package/dist/lib/custom/form-navigation-helper.js.map +1 -0
- package/dist/lib/data/entity-names.d.ts +84 -0
- package/dist/lib/data/entity-names.d.ts.map +1 -0
- package/dist/lib/data/entity-names.js +85 -0
- package/dist/lib/data/entity-names.js.map +1 -0
- package/dist/lib/data/orders-queries.d.ts +394 -0
- package/dist/lib/data/orders-queries.d.ts.map +1 -0
- package/dist/lib/data/orders-queries.js +897 -0
- package/dist/lib/data/orders-queries.js.map +1 -0
- package/dist/lib/form-panels/catalog-overviews.panels.d.ts +36 -0
- package/dist/lib/form-panels/catalog-overviews.panels.d.ts.map +1 -0
- package/dist/lib/form-panels/catalog-overviews.panels.js +443 -0
- package/dist/lib/form-panels/catalog-overviews.panels.js.map +1 -0
- package/dist/lib/form-panels/commercial-overviews.panels.d.ts +30 -0
- package/dist/lib/form-panels/commercial-overviews.panels.d.ts.map +1 -0
- package/dist/lib/form-panels/commercial-overviews.panels.js +315 -0
- package/dist/lib/form-panels/commercial-overviews.panels.js.map +1 -0
- package/dist/lib/form-panels/document-form.helpers.d.ts +38 -0
- package/dist/lib/form-panels/document-form.helpers.d.ts.map +1 -0
- package/dist/lib/form-panels/document-form.helpers.js +183 -0
- package/dist/lib/form-panels/document-form.helpers.js.map +1 -0
- package/dist/lib/form-panels/document-forms.module.d.ts +34 -0
- package/dist/lib/form-panels/document-forms.module.d.ts.map +1 -0
- package/dist/lib/form-panels/document-forms.module.js +183 -0
- package/dist/lib/form-panels/document-forms.module.js.map +1 -0
- package/dist/lib/form-panels/document-hero.component.d.ts +28 -0
- package/dist/lib/form-panels/document-hero.component.d.ts.map +1 -0
- package/dist/lib/form-panels/document-hero.component.js +167 -0
- package/dist/lib/form-panels/document-hero.component.js.map +1 -0
- package/dist/lib/form-panels/document-overviews.panels.d.ts +42 -0
- package/dist/lib/form-panels/document-overviews.panels.d.ts.map +1 -0
- package/dist/lib/form-panels/document-overviews.panels.js +457 -0
- package/dist/lib/form-panels/document-overviews.panels.js.map +1 -0
- package/dist/lib/form-panels/lookup-headers.panels.d.ts +68 -0
- package/dist/lib/form-panels/lookup-headers.panels.d.ts.map +1 -0
- package/dist/lib/form-panels/lookup-headers.panels.js +399 -0
- package/dist/lib/form-panels/lookup-headers.panels.js.map +1 -0
- package/dist/lib/form-panels/organization-header.panel.d.ts +15 -0
- package/dist/lib/form-panels/organization-header.panel.d.ts.map +1 -0
- package/dist/lib/form-panels/organization-header.panel.js +77 -0
- package/dist/lib/form-panels/organization-header.panel.js.map +1 -0
- package/dist/lib/form-panels/organization-orders-overview.panel.d.ts +13 -0
- package/dist/lib/form-panels/organization-orders-overview.panel.d.ts.map +1 -0
- package/dist/lib/form-panels/organization-orders-overview.panel.js +77 -0
- package/dist/lib/form-panels/organization-orders-overview.panel.js.map +1 -0
- package/dist/lib/form-panels/organization-orders.panel.d.ts +16 -0
- package/dist/lib/form-panels/organization-orders.panel.d.ts.map +1 -0
- package/dist/lib/form-panels/organization-orders.panel.js +88 -0
- package/dist/lib/form-panels/organization-orders.panel.js.map +1 -0
- package/dist/lib/form-panels/overview-cards.component.d.ts +30 -0
- package/dist/lib/form-panels/overview-cards.component.d.ts.map +1 -0
- package/dist/lib/form-panels/overview-cards.component.js +250 -0
- package/dist/lib/form-panels/overview-cards.component.js.map +1 -0
- package/dist/lib/form-panels/overview-load.d.ts +7 -0
- package/dist/lib/form-panels/overview-load.d.ts.map +1 -0
- package/dist/lib/form-panels/overview-load.js +31 -0
- package/dist/lib/form-panels/overview-load.js.map +1 -0
- package/dist/lib/form-panels/party-headers.module.d.ts +18 -0
- package/dist/lib/form-panels/party-headers.module.d.ts.map +1 -0
- package/dist/lib/form-panels/party-headers.module.js +63 -0
- package/dist/lib/form-panels/party-headers.module.js.map +1 -0
- package/dist/lib/form-panels/party-order-stats.d.ts +26 -0
- package/dist/lib/form-panels/party-order-stats.d.ts.map +1 -0
- package/dist/lib/form-panels/party-order-stats.js +149 -0
- package/dist/lib/form-panels/party-order-stats.js.map +1 -0
- package/dist/lib/form-panels/payment-header.panel.d.ts +21 -0
- package/dist/lib/form-panels/payment-header.panel.d.ts.map +1 -0
- package/dist/lib/form-panels/payment-header.panel.js +111 -0
- package/dist/lib/form-panels/payment-header.panel.js.map +1 -0
- package/dist/lib/form-panels/payment-journals.panel.d.ts +32 -0
- package/dist/lib/form-panels/payment-journals.panel.d.ts.map +1 -0
- package/dist/lib/form-panels/payment-journals.panel.js +332 -0
- package/dist/lib/form-panels/payment-journals.panel.js.map +1 -0
- package/dist/lib/form-panels/person-header.panel.d.ts +15 -0
- package/dist/lib/form-panels/person-header.panel.d.ts.map +1 -0
- package/dist/lib/form-panels/person-header.panel.js +77 -0
- package/dist/lib/form-panels/person-header.panel.js.map +1 -0
- package/dist/lib/form-panels/person-orders-overview.panel.d.ts +13 -0
- package/dist/lib/form-panels/person-orders-overview.panel.d.ts.map +1 -0
- package/dist/lib/form-panels/person-orders-overview.panel.js +77 -0
- package/dist/lib/form-panels/person-orders-overview.panel.js.map +1 -0
- package/dist/lib/form-panels/person-orders.panel.d.ts +17 -0
- package/dist/lib/form-panels/person-orders.panel.d.ts.map +1 -0
- package/dist/lib/form-panels/person-orders.panel.js +89 -0
- package/dist/lib/form-panels/person-orders.panel.js.map +1 -0
- package/dist/lib/form-panels/price-list-header.panel.d.ts +11 -0
- package/dist/lib/form-panels/price-list-header.panel.d.ts.map +1 -0
- package/dist/lib/form-panels/price-list-header.panel.js +76 -0
- package/dist/lib/form-panels/price-list-header.panel.js.map +1 -0
- package/dist/lib/form-panels/price-list-simulator.panel.d.ts +19 -0
- package/dist/lib/form-panels/price-list-simulator.panel.d.ts.map +1 -0
- package/dist/lib/form-panels/price-list-simulator.panel.js +125 -0
- package/dist/lib/form-panels/price-list-simulator.panel.js.map +1 -0
- package/dist/lib/form-panels/product-category-hierarchy.panel.d.ts +23 -0
- package/dist/lib/form-panels/product-category-hierarchy.panel.d.ts.map +1 -0
- package/dist/lib/form-panels/product-category-hierarchy.panel.js +118 -0
- package/dist/lib/form-panels/product-category-hierarchy.panel.js.map +1 -0
- package/dist/lib/form-panels/product-header.panel.d.ts +14 -0
- package/dist/lib/form-panels/product-header.panel.d.ts.map +1 -0
- package/dist/lib/form-panels/product-header.panel.js +105 -0
- package/dist/lib/form-panels/product-header.panel.js.map +1 -0
- package/dist/lib/form-panels/product-widget.panels.d.ts +24 -0
- package/dist/lib/form-panels/product-widget.panels.d.ts.map +1 -0
- package/dist/lib/form-panels/product-widget.panels.js +253 -0
- package/dist/lib/form-panels/product-widget.panels.js.map +1 -0
- package/dist/lib/form-panels/promotion-header.panel.d.ts +14 -0
- package/dist/lib/form-panels/promotion-header.panel.d.ts.map +1 -0
- package/dist/lib/form-panels/promotion-header.panel.js +112 -0
- package/dist/lib/form-panels/promotion-header.panel.js.map +1 -0
- package/dist/lib/form-panels/subscription-header.panel.d.ts +17 -0
- package/dist/lib/form-panels/subscription-header.panel.d.ts.map +1 -0
- package/dist/lib/form-panels/subscription-header.panel.js +127 -0
- package/dist/lib/form-panels/subscription-header.panel.js.map +1 -0
- package/dist/lib/form-panels/subscription-revrec.panel.d.ts +32 -0
- package/dist/lib/form-panels/subscription-revrec.panel.d.ts.map +1 -0
- package/dist/lib/form-panels/subscription-revrec.panel.js +184 -0
- package/dist/lib/form-panels/subscription-revrec.panel.js.map +1 -0
- package/dist/lib/form-panels/subscription-term-header.panel.d.ts +13 -0
- package/dist/lib/form-panels/subscription-term-header.panel.d.ts.map +1 -0
- package/dist/lib/form-panels/subscription-term-header.panel.js +113 -0
- package/dist/lib/form-panels/subscription-term-header.panel.js.map +1 -0
- package/dist/lib/form-panels/subscription-term-revrec.panel.d.ts +23 -0
- package/dist/lib/form-panels/subscription-term-revrec.panel.d.ts.map +1 -0
- package/dist/lib/form-panels/subscription-term-revrec.panel.js +144 -0
- package/dist/lib/form-panels/subscription-term-revrec.panel.js.map +1 -0
- package/dist/lib/form-panels/subscription-terms.panel.d.ts +25 -0
- package/dist/lib/form-panels/subscription-terms.panel.d.ts.map +1 -0
- package/dist/lib/form-panels/subscription-terms.panel.js +173 -0
- package/dist/lib/form-panels/subscription-terms.panel.js.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersChargeType/mjbizappsorderschargetype.form.component.d.ts +10 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersChargeType/mjbizappsorderschargetype.form.component.d.ts.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersChargeType/mjbizappsorderschargetype.form.component.js +102 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersChargeType/mjbizappsorderschargetype.form.component.js.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersCheckoutSession/mjbizappsorderscheckoutsession.form.component.d.ts +10 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersCheckoutSession/mjbizappsorderscheckoutsession.form.component.d.ts.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersCheckoutSession/mjbizappsorderscheckoutsession.form.component.js +103 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersCheckoutSession/mjbizappsorderscheckoutsession.form.component.js.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersCheckoutWidget/mjbizappsorderscheckoutwidget.form.component.d.ts +10 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersCheckoutWidget/mjbizappsorderscheckoutwidget.form.component.d.ts.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersCheckoutWidget/mjbizappsorderscheckoutwidget.form.component.js +136 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersCheckoutWidget/mjbizappsorderscheckoutwidget.form.component.js.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersCheckoutWidgetDistribution/mjbizappsorderscheckoutwidgetdistribution.form.component.d.ts +10 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersCheckoutWidgetDistribution/mjbizappsorderscheckoutwidgetdistribution.form.component.d.ts.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersCheckoutWidgetDistribution/mjbizappsorderscheckoutwidgetdistribution.form.component.js +106 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersCheckoutWidgetDistribution/mjbizappsorderscheckoutwidgetdistribution.form.component.js.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersCustomerPaymentMethod/mjbizappsorderscustomerpaymentmethod.form.component.d.ts +10 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersCustomerPaymentMethod/mjbizappsorderscustomerpaymentmethod.form.component.d.ts.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersCustomerPaymentMethod/mjbizappsorderscustomerpaymentmethod.form.component.js +98 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersCustomerPaymentMethod/mjbizappsorderscustomerpaymentmethod.form.component.js.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersCustomerPaymentTerms/mjbizappsorderscustomerpaymentterms.form.component.d.ts +10 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersCustomerPaymentTerms/mjbizappsorderscustomerpaymentterms.form.component.d.ts.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersCustomerPaymentTerms/mjbizappsorderscustomerpaymentterms.form.component.js +89 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersCustomerPaymentTerms/mjbizappsorderscustomerpaymentterms.form.component.js.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersCustomerTaxExemption/mjbizappsorderscustomertaxexemption.form.component.d.ts +10 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersCustomerTaxExemption/mjbizappsorderscustomertaxexemption.form.component.d.ts.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersCustomerTaxExemption/mjbizappsorderscustomertaxexemption.form.component.js +103 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersCustomerTaxExemption/mjbizappsorderscustomertaxexemption.form.component.js.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersEntitlementGrant/mjbizappsordersentitlementgrant.form.component.d.ts +10 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersEntitlementGrant/mjbizappsordersentitlementgrant.form.component.d.ts.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersEntitlementGrant/mjbizappsordersentitlementgrant.form.component.js +107 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersEntitlementGrant/mjbizappsordersentitlementgrant.form.component.js.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersEventOrderLine/mjbizappsorderseventorderline.form.component.d.ts +10 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersEventOrderLine/mjbizappsorderseventorderline.form.component.d.ts.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersEventOrderLine/mjbizappsorderseventorderline.form.component.js +139 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersEventOrderLine/mjbizappsorderseventorderline.form.component.js.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersEventProduct/mjbizappsorderseventproduct.form.component.d.ts +10 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersEventProduct/mjbizappsorderseventproduct.form.component.d.ts.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersEventProduct/mjbizappsorderseventproduct.form.component.js +129 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersEventProduct/mjbizappsorderseventproduct.form.component.js.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersOrderAdjustment/mjbizappsordersorderadjustment.form.component.d.ts +10 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersOrderAdjustment/mjbizappsordersorderadjustment.form.component.d.ts.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersOrderAdjustment/mjbizappsordersorderadjustment.form.component.js +122 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersOrderAdjustment/mjbizappsordersorderadjustment.form.component.js.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersOrderAdjustmentAllocation/mjbizappsordersorderadjustmentallocation.form.component.d.ts +10 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersOrderAdjustmentAllocation/mjbizappsordersorderadjustmentallocation.form.component.d.ts.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersOrderAdjustmentAllocation/mjbizappsordersorderadjustmentallocation.form.component.js +67 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersOrderAdjustmentAllocation/mjbizappsordersorderadjustmentallocation.form.component.js.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersOrderCharge/mjbizappsordersordercharge.form.component.d.ts +10 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersOrderCharge/mjbizappsordersordercharge.form.component.d.ts.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersOrderCharge/mjbizappsordersordercharge.form.component.js +132 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersOrderCharge/mjbizappsordersordercharge.form.component.js.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersOrderChargeAllocation/mjbizappsordersorderchargeallocation.form.component.d.ts +10 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersOrderChargeAllocation/mjbizappsordersorderchargeallocation.form.component.d.ts.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersOrderChargeAllocation/mjbizappsordersorderchargeallocation.form.component.js +67 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersOrderChargeAllocation/mjbizappsordersorderchargeallocation.form.component.js.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersOrderCompanyPolicy/mjbizappsordersordercompanypolicy.form.component.d.ts +10 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersOrderCompanyPolicy/mjbizappsordersordercompanypolicy.form.component.d.ts.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersOrderCompanyPolicy/mjbizappsordersordercompanypolicy.form.component.js +85 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersOrderCompanyPolicy/mjbizappsordersordercompanypolicy.form.component.js.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersOrderHeader/mjbizappsordersorderheader.form.component.d.ts +10 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersOrderHeader/mjbizappsordersorderheader.form.component.d.ts.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersOrderHeader/mjbizappsordersorderheader.form.component.js +342 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersOrderHeader/mjbizappsordersorderheader.form.component.js.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersOrderLine/mjbizappsordersorderline.form.component.d.ts +10 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersOrderLine/mjbizappsordersorderline.form.component.d.ts.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersOrderLine/mjbizappsordersorderline.form.component.js +378 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersOrderLine/mjbizappsordersorderline.form.component.js.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersOrderLineDimension/mjbizappsordersorderlinedimension.form.component.d.ts +10 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersOrderLineDimension/mjbizappsordersorderlinedimension.form.component.d.ts.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersOrderLineDimension/mjbizappsordersorderlinedimension.form.component.js +71 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersOrderLineDimension/mjbizappsordersorderlinedimension.form.component.js.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersOrderLinePriceComponent/mjbizappsordersorderlinepricecomponent.form.component.d.ts +10 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersOrderLinePriceComponent/mjbizappsordersorderlinepricecomponent.form.component.d.ts.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersOrderLinePriceComponent/mjbizappsordersorderlinepricecomponent.form.component.js +89 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersOrderLinePriceComponent/mjbizappsordersorderlinepricecomponent.form.component.js.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersOrderSequence/mjbizappsordersordersequence.form.component.d.ts +10 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersOrderSequence/mjbizappsordersordersequence.form.component.d.ts.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersOrderSequence/mjbizappsordersordersequence.form.component.js +63 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersOrderSequence/mjbizappsordersordersequence.form.component.js.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersPaymentDetail/mjbizappsorderspaymentdetail.form.component.d.ts +10 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersPaymentDetail/mjbizappsorderspaymentdetail.form.component.d.ts.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersPaymentDetail/mjbizappsorderspaymentdetail.form.component.js +180 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersPaymentDetail/mjbizappsorderspaymentdetail.form.component.js.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersPaymentHeader/mjbizappsorderspaymentheader.form.component.d.ts +10 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersPaymentHeader/mjbizappsorderspaymentheader.form.component.d.ts.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersPaymentHeader/mjbizappsorderspaymentheader.form.component.js +206 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersPaymentHeader/mjbizappsorderspaymentheader.form.component.js.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersPaymentIntent/mjbizappsorderspaymentintent.form.component.d.ts +10 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersPaymentIntent/mjbizappsorderspaymentintent.form.component.d.ts.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersPaymentIntent/mjbizappsorderspaymentintent.form.component.js +128 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersPaymentIntent/mjbizappsorderspaymentintent.form.component.js.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersPaymentLine/mjbizappsorderspaymentline.form.component.d.ts +10 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersPaymentLine/mjbizappsorderspaymentline.form.component.d.ts.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersPaymentLine/mjbizappsorderspaymentline.form.component.js +87 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersPaymentLine/mjbizappsorderspaymentline.form.component.js.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersPaymentProvider/mjbizappsorderspaymentprovider.form.component.d.ts +10 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersPaymentProvider/mjbizappsorderspaymentprovider.form.component.d.ts.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersPaymentProvider/mjbizappsorderspaymentprovider.form.component.js +158 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersPaymentProvider/mjbizappsorderspaymentprovider.form.component.js.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersPaymentProviderType/mjbizappsorderspaymentprovidertype.form.component.d.ts +10 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersPaymentProviderType/mjbizappsorderspaymentprovidertype.form.component.d.ts.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersPaymentProviderType/mjbizappsorderspaymentprovidertype.form.component.js +110 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersPaymentProviderType/mjbizappsorderspaymentprovidertype.form.component.js.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersPaymentSequence/mjbizappsorderspaymentsequence.form.component.d.ts +10 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersPaymentSequence/mjbizappsorderspaymentsequence.form.component.d.ts.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersPaymentSequence/mjbizappsorderspaymentsequence.form.component.js +63 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersPaymentSequence/mjbizappsorderspaymentsequence.form.component.js.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersPaymentTermsType/mjbizappsorderspaymenttermstype.form.component.d.ts +10 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersPaymentTermsType/mjbizappsorderspaymenttermstype.form.component.d.ts.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersPaymentTermsType/mjbizappsorderspaymenttermstype.form.component.js +108 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersPaymentTermsType/mjbizappsorderspaymenttermstype.form.component.js.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersPaymentType/mjbizappsorderspaymenttype.form.component.d.ts +10 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersPaymentType/mjbizappsorderspaymenttype.form.component.d.ts.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersPaymentType/mjbizappsorderspaymenttype.form.component.js +144 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersPaymentType/mjbizappsorderspaymenttype.form.component.js.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersPriceList/mjbizappsorderspricelist.form.component.d.ts +10 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersPriceList/mjbizappsorderspricelist.form.component.d.ts.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersPriceList/mjbizappsorderspricelist.form.component.js +134 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersPriceList/mjbizappsorderspricelist.form.component.js.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersPriceListAssignment/mjbizappsorderspricelistassignment.form.component.d.ts +10 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersPriceListAssignment/mjbizappsorderspricelistassignment.form.component.d.ts.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersPriceListAssignment/mjbizappsorderspricelistassignment.form.component.js +89 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersPriceListAssignment/mjbizappsorderspricelistassignment.form.component.js.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersPriceTier/mjbizappsorderspricetier.form.component.d.ts +10 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersPriceTier/mjbizappsorderspricetier.form.component.d.ts.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersPriceTier/mjbizappsorderspricetier.form.component.js +71 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersPriceTier/mjbizappsorderspricetier.form.component.js.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersProduct/mjbizappsordersproduct.form.component.d.ts +10 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersProduct/mjbizappsordersproduct.form.component.d.ts.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersProduct/mjbizappsordersproduct.form.component.js +294 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersProduct/mjbizappsordersproduct.form.component.js.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersProductBundleItem/mjbizappsordersproductbundleitem.form.component.d.ts +10 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersProductBundleItem/mjbizappsordersproductbundleitem.form.component.d.ts.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersProductBundleItem/mjbizappsordersproductbundleitem.form.component.js +83 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersProductBundleItem/mjbizappsordersproductbundleitem.form.component.js.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersProductCategory/mjbizappsordersproductcategory.form.component.d.ts +10 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersProductCategory/mjbizappsordersproductcategory.form.component.d.ts.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersProductCategory/mjbizappsordersproductcategory.form.component.js +168 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersProductCategory/mjbizappsordersproductcategory.form.component.js.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersProductEntitlement/mjbizappsordersproductentitlement.form.component.d.ts +10 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersProductEntitlement/mjbizappsordersproductentitlement.form.component.d.ts.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersProductEntitlement/mjbizappsordersproductentitlement.form.component.js +114 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersProductEntitlement/mjbizappsordersproductentitlement.form.component.js.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersProductPrice/mjbizappsordersproductprice.form.component.d.ts +10 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersProductPrice/mjbizappsordersproductprice.form.component.d.ts.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersProductPrice/mjbizappsordersproductprice.form.component.js +162 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersProductPrice/mjbizappsordersproductprice.form.component.js.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersProductType/mjbizappsordersproducttype.form.component.d.ts +10 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersProductType/mjbizappsordersproducttype.form.component.d.ts.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersProductType/mjbizappsordersproducttype.form.component.js +136 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersProductType/mjbizappsordersproducttype.form.component.js.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersPromotion/mjbizappsorderspromotion.form.component.d.ts +10 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersPromotion/mjbizappsorderspromotion.form.component.d.ts.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersPromotion/mjbizappsorderspromotion.form.component.js +182 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersPromotion/mjbizappsorderspromotion.form.component.js.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersPromotionCode/mjbizappsorderspromotioncode.form.component.d.ts +10 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersPromotionCode/mjbizappsorderspromotioncode.form.component.d.ts.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersPromotionCode/mjbizappsorderspromotioncode.form.component.js +108 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersPromotionCode/mjbizappsorderspromotioncode.form.component.js.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersPromotionTarget/mjbizappsorderspromotiontarget.form.component.d.ts +10 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersPromotionTarget/mjbizappsorderspromotiontarget.form.component.d.ts.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersPromotionTarget/mjbizappsorderspromotiontarget.form.component.js +75 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersPromotionTarget/mjbizappsorderspromotiontarget.form.component.js.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersPromotionType/mjbizappsorderspromotiontype.form.component.d.ts +10 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersPromotionType/mjbizappsorderspromotiontype.form.component.d.ts.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersPromotionType/mjbizappsorderspromotiontype.form.component.js +90 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersPromotionType/mjbizappsorderspromotiontype.form.component.js.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersRevenueRecognitionType/mjbizappsordersrevenuerecognitiontype.form.component.d.ts +10 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersRevenueRecognitionType/mjbizappsordersrevenuerecognitiontype.form.component.d.ts.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersRevenueRecognitionType/mjbizappsordersrevenuerecognitiontype.form.component.js +138 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersRevenueRecognitionType/mjbizappsordersrevenuerecognitiontype.form.component.js.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersSalesAuthority/mjbizappsorderssalesauthority.form.component.d.ts +10 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersSalesAuthority/mjbizappsorderssalesauthority.form.component.d.ts.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersSalesAuthority/mjbizappsorderssalesauthority.form.component.js +98 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersSalesAuthority/mjbizappsorderssalesauthority.form.component.js.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersSalesRule/mjbizappsorderssalesrule.form.component.d.ts +10 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersSalesRule/mjbizappsorderssalesrule.form.component.d.ts.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersSalesRule/mjbizappsorderssalesrule.form.component.js +87 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersSalesRule/mjbizappsorderssalesrule.form.component.js.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersStoredValueAccount/mjbizappsordersstoredvalueaccount.form.component.d.ts +10 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersStoredValueAccount/mjbizappsordersstoredvalueaccount.form.component.d.ts.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersStoredValueAccount/mjbizappsordersstoredvalueaccount.form.component.js +134 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersStoredValueAccount/mjbizappsordersstoredvalueaccount.form.component.js.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersStoredValueTransaction/mjbizappsordersstoredvaluetransaction.form.component.d.ts +10 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersStoredValueTransaction/mjbizappsordersstoredvaluetransaction.form.component.d.ts.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersStoredValueTransaction/mjbizappsordersstoredvaluetransaction.form.component.js +87 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersStoredValueTransaction/mjbizappsordersstoredvaluetransaction.form.component.js.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersSubscription/mjbizappsorderssubscription.form.component.d.ts +10 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersSubscription/mjbizappsorderssubscription.form.component.d.ts.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersSubscription/mjbizappsorderssubscription.form.component.js +234 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersSubscription/mjbizappsorderssubscription.form.component.js.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersSubscriptionEvent/mjbizappsorderssubscriptionevent.form.component.d.ts +10 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersSubscriptionEvent/mjbizappsorderssubscriptionevent.form.component.d.ts.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersSubscriptionEvent/mjbizappsorderssubscriptionevent.form.component.js +87 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersSubscriptionEvent/mjbizappsorderssubscriptionevent.form.component.js.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersSubscriptionSequence/mjbizappsorderssubscriptionsequence.form.component.d.ts +10 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersSubscriptionSequence/mjbizappsorderssubscriptionsequence.form.component.d.ts.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersSubscriptionSequence/mjbizappsorderssubscriptionsequence.form.component.js +63 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersSubscriptionSequence/mjbizappsorderssubscriptionsequence.form.component.js.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersSubscriptionTerm/mjbizappsorderssubscriptionterm.form.component.d.ts +10 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersSubscriptionTerm/mjbizappsorderssubscriptionterm.form.component.d.ts.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersSubscriptionTerm/mjbizappsorderssubscriptionterm.form.component.js +122 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersSubscriptionTerm/mjbizappsorderssubscriptionterm.form.component.js.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersSubscriptionType/mjbizappsorderssubscriptiontype.form.component.d.ts +10 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersSubscriptionType/mjbizappsorderssubscriptiontype.form.component.d.ts.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersSubscriptionType/mjbizappsorderssubscriptiontype.form.component.js +188 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersSubscriptionType/mjbizappsorderssubscriptiontype.form.component.js.map +1 -0
- package/dist/lib/generated/class-registrations-manifest.d.ts +7 -0
- package/dist/lib/generated/class-registrations-manifest.d.ts.map +1 -0
- package/dist/lib/generated/class-registrations-manifest.js +7 -0
- package/dist/lib/generated/class-registrations-manifest.js.map +1 -0
- package/dist/lib/generated/generated-forms.module.d.ts +79 -0
- package/dist/lib/generated/generated-forms.module.d.ts.map +1 -0
- package/dist/lib/generated/generated-forms.module.js +276 -0
- package/dist/lib/generated/generated-forms.module.js.map +1 -0
- package/dist/lib/pages/catalog/pricing.page.d.ts +81 -0
- package/dist/lib/pages/catalog/pricing.page.d.ts.map +1 -0
- package/dist/lib/pages/catalog/pricing.page.js +555 -0
- package/dist/lib/pages/catalog/pricing.page.js.map +1 -0
- package/dist/lib/pages/catalog/products.page.d.ts +98 -0
- package/dist/lib/pages/catalog/products.page.d.ts.map +1 -0
- package/dist/lib/pages/catalog/products.page.js +877 -0
- package/dist/lib/pages/catalog/products.page.js.map +1 -0
- package/dist/lib/pages/orders/fulfillment.page.d.ts +54 -0
- package/dist/lib/pages/orders/fulfillment.page.d.ts.map +1 -0
- package/dist/lib/pages/orders/fulfillment.page.js +279 -0
- package/dist/lib/pages/orders/fulfillment.page.js.map +1 -0
- package/dist/lib/pages/orders/order-document.page.d.ts +71 -0
- package/dist/lib/pages/orders/order-document.page.d.ts.map +1 -0
- package/dist/lib/pages/orders/order-document.page.js +573 -0
- package/dist/lib/pages/orders/order-document.page.js.map +1 -0
- package/dist/lib/pages/orders/orders-dashboard.page.d.ts +79 -0
- package/dist/lib/pages/orders/orders-dashboard.page.d.ts.map +1 -0
- package/dist/lib/pages/orders/orders-dashboard.page.js +819 -0
- package/dist/lib/pages/orders/orders-dashboard.page.js.map +1 -0
- package/dist/lib/pages/orders/orders-list.page.d.ts +21 -0
- package/dist/lib/pages/orders/orders-list.page.d.ts.map +1 -0
- package/dist/lib/pages/orders/orders-list.page.js +74 -0
- package/dist/lib/pages/orders/orders-list.page.js.map +1 -0
- package/dist/lib/pages/orders/return.page.d.ts +96 -0
- package/dist/lib/pages/orders/return.page.d.ts.map +1 -0
- package/dist/lib/pages/orders/return.page.js +549 -0
- package/dist/lib/pages/orders/return.page.js.map +1 -0
- package/dist/lib/pages/payments/account-credit.page.d.ts +96 -0
- package/dist/lib/pages/payments/account-credit.page.d.ts.map +1 -0
- package/dist/lib/pages/payments/account-credit.page.js +463 -0
- package/dist/lib/pages/payments/account-credit.page.js.map +1 -0
- package/dist/lib/pages/payments/payments-dashboard.page.d.ts +61 -0
- package/dist/lib/pages/payments/payments-dashboard.page.d.ts.map +1 -0
- package/dist/lib/pages/payments/payments-dashboard.page.js +359 -0
- package/dist/lib/pages/payments/payments-dashboard.page.js.map +1 -0
- package/dist/lib/pages/payments/payments-list.page.d.ts +18 -0
- package/dist/lib/pages/payments/payments-list.page.d.ts.map +1 -0
- package/dist/lib/pages/payments/payments-list.page.js +71 -0
- package/dist/lib/pages/payments/payments-list.page.js.map +1 -0
- package/dist/lib/pages/payments/refund.page.d.ts +74 -0
- package/dist/lib/pages/payments/refund.page.d.ts.map +1 -0
- package/dist/lib/pages/payments/refund.page.js +477 -0
- package/dist/lib/pages/payments/refund.page.js.map +1 -0
- package/dist/lib/pages/receivables/customer-ar.page.d.ts +102 -0
- package/dist/lib/pages/receivables/customer-ar.page.d.ts.map +1 -0
- package/dist/lib/pages/receivables/customer-ar.page.js +782 -0
- package/dist/lib/pages/receivables/customer-ar.page.js.map +1 -0
- package/dist/lib/pages/receivables/overdue.page.d.ts +71 -0
- package/dist/lib/pages/receivables/overdue.page.d.ts.map +1 -0
- package/dist/lib/pages/receivables/overdue.page.js +338 -0
- package/dist/lib/pages/receivables/overdue.page.js.map +1 -0
- package/dist/lib/pages/receivables/subscriptions.page.d.ts +115 -0
- package/dist/lib/pages/receivables/subscriptions.page.d.ts.map +1 -0
- package/dist/lib/pages/receivables/subscriptions.page.js +632 -0
- package/dist/lib/pages/receivables/subscriptions.page.js.map +1 -0
- package/dist/lib/panels/aging-bar.component.d.ts +59 -0
- package/dist/lib/panels/aging-bar.component.d.ts.map +1 -0
- package/dist/lib/panels/aging-bar.component.js +180 -0
- package/dist/lib/panels/aging-bar.component.js.map +1 -0
- package/dist/lib/panels/allocation-grid.component.d.ts +90 -0
- package/dist/lib/panels/allocation-grid.component.d.ts.map +1 -0
- package/dist/lib/panels/allocation-grid.component.js +425 -0
- package/dist/lib/panels/allocation-grid.component.js.map +1 -0
- package/dist/lib/panels/allocation-math.d.ts +59 -0
- package/dist/lib/panels/allocation-math.d.ts.map +1 -0
- package/dist/lib/panels/allocation-math.js +99 -0
- package/dist/lib/panels/allocation-math.js.map +1 -0
- package/dist/lib/panels/chips.component.d.ts +104 -0
- package/dist/lib/panels/chips.component.d.ts.map +1 -0
- package/dist/lib/panels/chips.component.js +274 -0
- package/dist/lib/panels/chips.component.js.map +1 -0
- package/dist/lib/panels/day-bars.component.d.ts +64 -0
- package/dist/lib/panels/day-bars.component.d.ts.map +1 -0
- package/dist/lib/panels/day-bars.component.js +143 -0
- package/dist/lib/panels/day-bars.component.js.map +1 -0
- package/dist/lib/panels/decomposition-ladder.component.d.ts +68 -0
- package/dist/lib/panels/decomposition-ladder.component.d.ts.map +1 -0
- package/dist/lib/panels/decomposition-ladder.component.js +217 -0
- package/dist/lib/panels/decomposition-ladder.component.js.map +1 -0
- package/dist/lib/panels/index.d.ts +46 -0
- package/dist/lib/panels/index.d.ts.map +1 -0
- package/dist/lib/panels/index.js +58 -0
- package/dist/lib/panels/index.js.map +1 -0
- package/dist/lib/panels/journal-entry-preview.component.d.ts +71 -0
- package/dist/lib/panels/journal-entry-preview.component.d.ts.map +1 -0
- package/dist/lib/panels/journal-entry-preview.component.js +281 -0
- package/dist/lib/panels/journal-entry-preview.component.js.map +1 -0
- package/dist/lib/panels/money-format.d.ts +182 -0
- package/dist/lib/panels/money-format.d.ts.map +1 -0
- package/dist/lib/panels/money-format.js +297 -0
- package/dist/lib/panels/money-format.js.map +1 -0
- package/dist/lib/panels/money-strip.component.d.ts +69 -0
- package/dist/lib/panels/money-strip.component.d.ts.map +1 -0
- package/dist/lib/panels/money-strip.component.js +233 -0
- package/dist/lib/panels/money-strip.component.js.map +1 -0
- package/dist/lib/panels/order-stages.d.ts +75 -0
- package/dist/lib/panels/order-stages.d.ts.map +1 -0
- package/dist/lib/panels/order-stages.js +100 -0
- package/dist/lib/panels/order-stages.js.map +1 -0
- package/dist/lib/panels/party-orders-overview.component.d.ts +79 -0
- package/dist/lib/panels/party-orders-overview.component.d.ts.map +1 -0
- package/dist/lib/panels/party-orders-overview.component.js +906 -0
- package/dist/lib/panels/party-orders-overview.component.js.map +1 -0
- package/dist/lib/panels/stat-tile.component.d.ts +75 -0
- package/dist/lib/panels/stat-tile.component.d.ts.map +1 -0
- package/dist/lib/panels/stat-tile.component.js +214 -0
- package/dist/lib/panels/stat-tile.component.js.map +1 -0
- package/dist/lib/panels/status-stepper.component.d.ts +60 -0
- package/dist/lib/panels/status-stepper.component.d.ts.map +1 -0
- package/dist/lib/panels/status-stepper.component.js +160 -0
- package/dist/lib/panels/status-stepper.component.js.map +1 -0
- package/dist/lib/panels/summary-strip.component.d.ts +48 -0
- package/dist/lib/panels/summary-strip.component.d.ts.map +1 -0
- package/dist/lib/panels/summary-strip.component.js +100 -0
- package/dist/lib/panels/summary-strip.component.js.map +1 -0
- package/dist/lib/panels/worklist-table.component.d.ts +127 -0
- package/dist/lib/panels/worklist-table.component.d.ts.map +1 -0
- package/dist/lib/panels/worklist-table.component.js +444 -0
- package/dist/lib/panels/worklist-table.component.js.map +1 -0
- package/dist/lib/sections/orders-sections.component.d.ts +282 -0
- package/dist/lib/sections/orders-sections.component.d.ts.map +1 -0
- package/dist/lib/sections/orders-sections.component.js +1117 -0
- package/dist/lib/sections/orders-sections.component.js.map +1 -0
- package/dist/lib/sections/section-nav.model.d.ts +74 -0
- package/dist/lib/sections/section-nav.model.d.ts.map +1 -0
- package/dist/lib/sections/section-nav.model.js +114 -0
- package/dist/lib/sections/section-nav.model.js.map +1 -0
- package/dist/lib/sections/section-shell.component.d.ts +70 -0
- package/dist/lib/sections/section-shell.component.d.ts.map +1 -0
- package/dist/lib/sections/section-shell.component.js +193 -0
- package/dist/lib/sections/section-shell.component.js.map +1 -0
- package/dist/lib/services/pricing-scheduler.service.d.ts +181 -0
- package/dist/lib/services/pricing-scheduler.service.d.ts.map +1 -0
- package/dist/lib/services/pricing-scheduler.service.js +292 -0
- package/dist/lib/services/pricing-scheduler.service.js.map +1 -0
- package/dist/lib/services/save-error.d.ts +24 -0
- package/dist/lib/services/save-error.d.ts.map +1 -0
- package/dist/lib/services/save-error.js +47 -0
- package/dist/lib/services/save-error.js.map +1 -0
- package/dist/lib/styles/orders-kit.css +841 -0
- package/dist/lib/transfer-pending/workspace-tabs/workspace-card.component.d.ts +55 -0
- package/dist/lib/transfer-pending/workspace-tabs/workspace-card.component.d.ts.map +1 -0
- package/dist/lib/transfer-pending/workspace-tabs/workspace-card.component.js +243 -0
- package/dist/lib/transfer-pending/workspace-tabs/workspace-card.component.js.map +1 -0
- package/dist/lib/transfer-pending/workspace-tabs/workspace-tab-store.d.ts +47 -0
- package/dist/lib/transfer-pending/workspace-tabs/workspace-tab-store.d.ts.map +1 -0
- package/dist/lib/transfer-pending/workspace-tabs/workspace-tab-store.js +112 -0
- package/dist/lib/transfer-pending/workspace-tabs/workspace-tab-store.js.map +1 -0
- package/dist/lib/transfer-pending/workspace-tabs/workspace-tab-strip.component.d.ts +36 -0
- package/dist/lib/transfer-pending/workspace-tabs/workspace-tab-strip.component.d.ts.map +1 -0
- package/dist/lib/transfer-pending/workspace-tabs/workspace-tab-strip.component.js +179 -0
- package/dist/lib/transfer-pending/workspace-tabs/workspace-tab-strip.component.js.map +1 -0
- package/dist/lib/transfer-pending/workspace-tabs/workspace-tabs.types.d.ts +36 -0
- package/dist/lib/transfer-pending/workspace-tabs/workspace-tabs.types.d.ts.map +1 -0
- package/dist/lib/transfer-pending/workspace-tabs/workspace-tabs.types.js +9 -0
- package/dist/lib/transfer-pending/workspace-tabs/workspace-tabs.types.js.map +1 -0
- package/dist/lib/transfer-pending/workspace-tabs/workspace-tip.directive.d.ts +35 -0
- package/dist/lib/transfer-pending/workspace-tabs/workspace-tip.directive.d.ts.map +1 -0
- package/dist/lib/transfer-pending/workspace-tabs/workspace-tip.directive.js +124 -0
- package/dist/lib/transfer-pending/workspace-tabs/workspace-tip.directive.js.map +1 -0
- package/dist/public-api.d.ts +80 -0
- package/dist/public-api.d.ts.map +1 -0
- package/dist/public-api.js +98 -0
- package/dist/public-api.js.map +1 -0
- package/package.json +78 -5
|
@@ -0,0 +1,1117 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* @fileoverview The four Explorer tabs.
|
|
9
|
+
*
|
|
10
|
+
* Each class is registered with `@RegisterClass(BaseResourceComponent, '<DriverClass>')`
|
|
11
|
+
* under the name the Application's `DefaultNavItems` reference
|
|
12
|
+
* (`metadata/applications/.orders-application.json`), which is what makes these
|
|
13
|
+
* plug into MJ Explorer with no host-side wiring: Explorer reads the nav metadata,
|
|
14
|
+
* asks the class factory for the driver class, and mounts it as a tab.
|
|
15
|
+
*
|
|
16
|
+
* Each section is deliberately thin. It owns three things — its rail, which
|
|
17
|
+
* sub-page is showing, and remembering that across sessions — and delegates the
|
|
18
|
+
* frame to {@link MJOSectionShellComponent} and the content to the sub-page
|
|
19
|
+
* components. Anything more here would be logic that belongs to a page.
|
|
20
|
+
*
|
|
21
|
+
* SUB-PAGE HOSTING. Pages are created once and CACHED, so switching rails and
|
|
22
|
+
* coming back does not discard a half-entered order. That is not an optimisation;
|
|
23
|
+
* an order taker who loses their work to a mis-click stops trusting the tool.
|
|
24
|
+
*
|
|
25
|
+
* @module @mj-biz-apps/orders-ng
|
|
26
|
+
*/
|
|
27
|
+
import { ChangeDetectorRef, Component, Directive, ViewChild, ViewContainerRef, inject, } from '@angular/core';
|
|
28
|
+
import { CommonModule } from '@angular/common';
|
|
29
|
+
import { RegisterClass } from '@memberjunction/global';
|
|
30
|
+
import { BaseResourceComponent } from '@memberjunction/ng-shared';
|
|
31
|
+
import { MJOSectionShellComponent } from './section-shell.component.js';
|
|
32
|
+
import { MJOPricingScheduler } from '../services/pricing-scheduler.service.js';
|
|
33
|
+
import { MJOOrdersListPageComponent } from '../pages/orders/orders-list.page.js';
|
|
34
|
+
import { MJOOrdersDashboardPageComponent } from '../pages/orders/orders-dashboard.page.js';
|
|
35
|
+
import { MJOFulfillmentPageComponent } from '../pages/orders/fulfillment.page.js';
|
|
36
|
+
import { MJOPaymentsListPageComponent } from '../pages/payments/payments-list.page.js';
|
|
37
|
+
import { MJORefundPageComponent } from '../pages/payments/refund.page.js';
|
|
38
|
+
import { MJOAccountCreditPageComponent } from '../pages/payments/account-credit.page.js';
|
|
39
|
+
import { MJOPaymentsDashboardPageComponent } from '../pages/payments/payments-dashboard.page.js';
|
|
40
|
+
import { MJOOverduePageComponent } from '../pages/receivables/overdue.page.js';
|
|
41
|
+
import { MJOCustomerARPageComponent } from '../pages/receivables/customer-ar.page.js';
|
|
42
|
+
import { MJOSubscriptionsPageComponent } from '../pages/receivables/subscriptions.page.js';
|
|
43
|
+
import { MJOProductsPageComponent, MJOChargesTaxPageComponent } from '../pages/catalog/products.page.js';
|
|
44
|
+
import { MJOPricingPageComponent, MJOPromotionsPageComponent } from '../pages/catalog/pricing.page.js';
|
|
45
|
+
import { MJOReturnPageComponent } from '../pages/orders/return.page.js';
|
|
46
|
+
import { MJAlertComponent, MJButtonDirective } from '@memberjunction/ng-ui-components';
|
|
47
|
+
import { CompositeKey, Metadata } from '@memberjunction/core';
|
|
48
|
+
import { MJO_ENTITIES } from '../data/entity-names.js';
|
|
49
|
+
import { GetCatalogOptions, GetPaymentTypes, GetProducts, GetSellingCompanies } from '../data/orders-queries.js';
|
|
50
|
+
import { BuildLeftNavSections, CATALOG_SUB_PAGES, ORDERS_SUB_PAGES, PAYMENTS_SUB_PAGES, RECEIVABLES_SUB_PAGES, } from './section-nav.model.js';
|
|
51
|
+
import * as i0 from "@angular/core";
|
|
52
|
+
const _c0 = ["pageHost"];
|
|
53
|
+
function OrdersSectionResource_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
54
|
+
i0.ɵɵelementStart(0, "span", 3);
|
|
55
|
+
i0.ɵɵtext(1);
|
|
56
|
+
i0.ɵɵelementEnd();
|
|
57
|
+
} if (rf & 2) {
|
|
58
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
59
|
+
i0.ɵɵadvance();
|
|
60
|
+
i0.ɵɵtextInterpolate1(" as of ", ctx_r1.LoadedAtDisplay, " ");
|
|
61
|
+
} }
|
|
62
|
+
function OrdersSectionResource_Conditional_6_Template(rf, ctx) { if (rf & 1) {
|
|
63
|
+
const _r3 = i0.ɵɵgetCurrentView();
|
|
64
|
+
i0.ɵɵelementStart(0, "button", 9);
|
|
65
|
+
i0.ɵɵlistener("click", function OrdersSectionResource_Conditional_6_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.StartPrimary()); });
|
|
66
|
+
i0.ɵɵelement(1, "i", 10);
|
|
67
|
+
i0.ɵɵtext(2);
|
|
68
|
+
i0.ɵɵelementEnd();
|
|
69
|
+
} if (rf & 2) {
|
|
70
|
+
const action_r4 = ctx;
|
|
71
|
+
i0.ɵɵadvance();
|
|
72
|
+
i0.ɵɵclassMap(action_r4.Icon);
|
|
73
|
+
i0.ɵɵadvance();
|
|
74
|
+
i0.ɵɵtextInterpolate1(" ", action_r4.Label, " ");
|
|
75
|
+
} }
|
|
76
|
+
function OrdersSectionResource_Conditional_9_Template(rf, ctx) { if (rf & 1) {
|
|
77
|
+
i0.ɵɵelementStart(0, "mj-alert", 8)(1, "strong");
|
|
78
|
+
i0.ɵɵtext(2, "Nothing was confirmed.");
|
|
79
|
+
i0.ɵɵelementEnd();
|
|
80
|
+
i0.ɵɵtext(3);
|
|
81
|
+
i0.ɵɵelementEnd();
|
|
82
|
+
} if (rf & 2) {
|
|
83
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
84
|
+
i0.ɵɵadvance(3);
|
|
85
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r1.ConfirmError, " ");
|
|
86
|
+
} }
|
|
87
|
+
function PaymentsSectionResource_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
88
|
+
i0.ɵɵelementStart(0, "span", 3);
|
|
89
|
+
i0.ɵɵtext(1);
|
|
90
|
+
i0.ɵɵelementEnd();
|
|
91
|
+
} if (rf & 2) {
|
|
92
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
93
|
+
i0.ɵɵadvance();
|
|
94
|
+
i0.ɵɵtextInterpolate1(" as of ", ctx_r1.LoadedAtDisplay, " ");
|
|
95
|
+
} }
|
|
96
|
+
function PaymentsSectionResource_Conditional_6_Template(rf, ctx) { if (rf & 1) {
|
|
97
|
+
const _r3 = i0.ɵɵgetCurrentView();
|
|
98
|
+
i0.ɵɵelementStart(0, "button", 8);
|
|
99
|
+
i0.ɵɵlistener("click", function PaymentsSectionResource_Conditional_6_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.StartPrimary()); });
|
|
100
|
+
i0.ɵɵelement(1, "i", 9);
|
|
101
|
+
i0.ɵɵtext(2);
|
|
102
|
+
i0.ɵɵelementEnd();
|
|
103
|
+
} if (rf & 2) {
|
|
104
|
+
const action_r4 = ctx;
|
|
105
|
+
i0.ɵɵadvance();
|
|
106
|
+
i0.ɵɵclassMap(action_r4.Icon);
|
|
107
|
+
i0.ɵɵadvance();
|
|
108
|
+
i0.ɵɵtextInterpolate1(" ", action_r4.Label, " ");
|
|
109
|
+
} }
|
|
110
|
+
function ReceivablesSectionResource_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
111
|
+
i0.ɵɵelementStart(0, "span", 3);
|
|
112
|
+
i0.ɵɵtext(1);
|
|
113
|
+
i0.ɵɵelementEnd();
|
|
114
|
+
} if (rf & 2) {
|
|
115
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
116
|
+
i0.ɵɵadvance();
|
|
117
|
+
i0.ɵɵtextInterpolate1(" as of ", ctx_r1.LoadedAtDisplay, " ");
|
|
118
|
+
} }
|
|
119
|
+
function ReceivablesSectionResource_Conditional_6_Template(rf, ctx) { if (rf & 1) {
|
|
120
|
+
const _r3 = i0.ɵɵgetCurrentView();
|
|
121
|
+
i0.ɵɵelementStart(0, "button", 8);
|
|
122
|
+
i0.ɵɵlistener("click", function ReceivablesSectionResource_Conditional_6_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.StartPrimary()); });
|
|
123
|
+
i0.ɵɵelement(1, "i", 9);
|
|
124
|
+
i0.ɵɵtext(2);
|
|
125
|
+
i0.ɵɵelementEnd();
|
|
126
|
+
} if (rf & 2) {
|
|
127
|
+
const action_r4 = ctx;
|
|
128
|
+
i0.ɵɵadvance();
|
|
129
|
+
i0.ɵɵclassMap(action_r4.Icon);
|
|
130
|
+
i0.ɵɵadvance();
|
|
131
|
+
i0.ɵɵtextInterpolate1(" ", action_r4.Label, " ");
|
|
132
|
+
} }
|
|
133
|
+
function CatalogSectionResource_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
134
|
+
i0.ɵɵelementStart(0, "span", 3);
|
|
135
|
+
i0.ɵɵtext(1);
|
|
136
|
+
i0.ɵɵelementEnd();
|
|
137
|
+
} if (rf & 2) {
|
|
138
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
139
|
+
i0.ɵɵadvance();
|
|
140
|
+
i0.ɵɵtextInterpolate1(" as of ", ctx_r1.LoadedAtDisplay, " ");
|
|
141
|
+
} }
|
|
142
|
+
function CatalogSectionResource_Conditional_6_Template(rf, ctx) { if (rf & 1) {
|
|
143
|
+
const _r3 = i0.ɵɵgetCurrentView();
|
|
144
|
+
i0.ɵɵelementStart(0, "button", 8);
|
|
145
|
+
i0.ɵɵlistener("click", function CatalogSectionResource_Conditional_6_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.StartPrimary()); });
|
|
146
|
+
i0.ɵɵelement(1, "i", 9);
|
|
147
|
+
i0.ɵɵtext(2);
|
|
148
|
+
i0.ɵɵelementEnd();
|
|
149
|
+
} if (rf & 2) {
|
|
150
|
+
const action_r4 = ctx;
|
|
151
|
+
i0.ɵɵadvance();
|
|
152
|
+
i0.ɵɵclassMap(action_r4.Icon);
|
|
153
|
+
i0.ɵɵadvance();
|
|
154
|
+
i0.ɵɵtextInterpolate1(" ", action_r4.Label, " ");
|
|
155
|
+
} }
|
|
156
|
+
/**
|
|
157
|
+
* An order and its lines, loaded together.
|
|
158
|
+
*
|
|
159
|
+
* A free function rather than a service method: it constructs an entity and asks it to load itself,
|
|
160
|
+
* which is `docs/ui-architecture.md`'s definition of work that does not belong behind an injectable.
|
|
161
|
+
*/
|
|
162
|
+
async function loadOrder(orderHeaderID) {
|
|
163
|
+
const md = new Metadata();
|
|
164
|
+
const order = await md.GetEntityObject(MJO_ENTITIES.OrderHeader);
|
|
165
|
+
return (await order.LoadWithLines(orderHeaderID)) ? order : null;
|
|
166
|
+
}
|
|
167
|
+
/**
|
|
168
|
+
* Shared behaviour for the four sections: rail construction, active-page state,
|
|
169
|
+
* per-user persistence of where someone was, and cached sub-page mounting.
|
|
170
|
+
*
|
|
171
|
+
* A `@Directive` rather than a plain class so Angular's compiler accepts the
|
|
172
|
+
* `@ViewChild` declared here and inherited by each concrete section — the
|
|
173
|
+
* documented way to share member decorators across component subclasses.
|
|
174
|
+
*/
|
|
175
|
+
export class MJOSectionBaseComponent extends BaseResourceComponent {
|
|
176
|
+
/** Where a sub-page is created. Declared once, inherited by all four sections. */
|
|
177
|
+
pageHost;
|
|
178
|
+
cdr = inject(ChangeDetectorRef);
|
|
179
|
+
/** The rail, rebuilt whenever a badge count changes. */
|
|
180
|
+
NavSections = [];
|
|
181
|
+
/** Which sub-page is showing. */
|
|
182
|
+
ActivePageId = null;
|
|
183
|
+
IsLoading = false;
|
|
184
|
+
LoadError = null;
|
|
185
|
+
/** Live counts the rail badges. Sections refresh these; zero badges do not render. */
|
|
186
|
+
badges = {};
|
|
187
|
+
mounted = new Map();
|
|
188
|
+
ngOnInit() {
|
|
189
|
+
super.ngOnInit();
|
|
190
|
+
this.NavSections = BuildLeftNavSections(this.subPages, this.badges);
|
|
191
|
+
this.ActivePageId = this.restorePageId();
|
|
192
|
+
// The host view has to exist before a page can be created into it, AND the
|
|
193
|
+
// page must be created outside the change-detection pass that is running now.
|
|
194
|
+
//
|
|
195
|
+
// WHY NOT queueMicrotask. Microtasks drain before the CD cycle finishes, so
|
|
196
|
+
// the page was constructed inside this turn. Its `ngOnInit` is async, so the
|
|
197
|
+
// fetch resolved between Angular's check pass and its dev-mode verify pass —
|
|
198
|
+
// NG0100, which ABORTS the rest of that update. Nothing schedules another
|
|
199
|
+
// tick afterwards, so the DOM stayed frozen on the pre-fetch render: the
|
|
200
|
+
// Orders dashboard sat at "0 open orders / $0.00" against a database holding
|
|
201
|
+
// 73 orders, and looked like a quiet day rather than a bug.
|
|
202
|
+
//
|
|
203
|
+
// A macrotask lands after the cycle completes, so the child's fetch resolves
|
|
204
|
+
// in its own tick and simply re-renders.
|
|
205
|
+
setTimeout(async () => {
|
|
206
|
+
await this.showPage(this.ActivePageId);
|
|
207
|
+
this.LoadedAt = new Date();
|
|
208
|
+
// Mounting the page and stamping the timestamp both change what the
|
|
209
|
+
// header and the rail render. Writing the DOM here keeps that inside
|
|
210
|
+
// one pass — without it the nav's active index is read as -1 before
|
|
211
|
+
// the mount and 2 after, which is NG0100 and freezes the section the
|
|
212
|
+
// same way it froze the pages.
|
|
213
|
+
this.cdr.detectChanges();
|
|
214
|
+
});
|
|
215
|
+
}
|
|
216
|
+
/** Rail click handler. */
|
|
217
|
+
async OnPageSelected(pageId) {
|
|
218
|
+
this.ActivePageId = pageId;
|
|
219
|
+
this.persistPageId(pageId);
|
|
220
|
+
await this.showPage(pageId);
|
|
221
|
+
this.cdr.detectChanges();
|
|
222
|
+
}
|
|
223
|
+
/** Rebuild the rail after badge counts change. */
|
|
224
|
+
refreshBadges(badges) {
|
|
225
|
+
this.badges = { ...this.badges, ...badges };
|
|
226
|
+
this.NavSections = BuildLeftNavSections(this.subPages, this.badges);
|
|
227
|
+
}
|
|
228
|
+
/**
|
|
229
|
+
* Mount a page, reusing the instance if it has been shown before.
|
|
230
|
+
*
|
|
231
|
+
* Cached views are detached rather than destroyed, which is what preserves a
|
|
232
|
+
* part-typed order across a trip to another rail item.
|
|
233
|
+
*/
|
|
234
|
+
async showPage(pageId) {
|
|
235
|
+
const host = this.pageHost;
|
|
236
|
+
if (!host)
|
|
237
|
+
return;
|
|
238
|
+
host.detach();
|
|
239
|
+
const cached = this.mounted.get(pageId);
|
|
240
|
+
if (cached) {
|
|
241
|
+
host.insert(cached.hostView);
|
|
242
|
+
// A CACHED PAGE STILL HAS TO BE TOLD WHICH RECORD TO OPEN. Clicking a row in All
|
|
243
|
+
// orders sets PendingRecordID and navigates here; the fresh-mount path below hands
|
|
244
|
+
// that to the page, but this path returned without doing so — so opening an order
|
|
245
|
+
// worked exactly once, before the editor had ever been visited, and silently did
|
|
246
|
+
// nothing every time after. From the user's side the row simply stopped responding.
|
|
247
|
+
if (this.PendingRecordID) {
|
|
248
|
+
const instance = cached.instance;
|
|
249
|
+
if ('OrderID' in instance)
|
|
250
|
+
cached.setInput('OrderID', this.PendingRecordID);
|
|
251
|
+
else if ('RecordID' in instance)
|
|
252
|
+
cached.setInput('RecordID', this.PendingRecordID);
|
|
253
|
+
this.PendingRecordID = null;
|
|
254
|
+
// The page is detached-and-reinserted rather than constructed, so nothing has
|
|
255
|
+
// scheduled a check for it — without this the input lands and nothing repaints.
|
|
256
|
+
cached.changeDetectorRef.detectChanges();
|
|
257
|
+
}
|
|
258
|
+
return;
|
|
259
|
+
}
|
|
260
|
+
const type = this.resolvePage(pageId);
|
|
261
|
+
if (!type) {
|
|
262
|
+
// Say so, rather than showing an empty pane. A blank content area reads
|
|
263
|
+
// as a broken app; a sentence reads as work in progress, which is what
|
|
264
|
+
// it is while the sub-pages land one at a time.
|
|
265
|
+
const label = this.subPages.find((p) => p.Id === pageId)?.Label ?? pageId;
|
|
266
|
+
this.LoadError = `${label} is not built yet — see /mockups for the approved design.`;
|
|
267
|
+
return;
|
|
268
|
+
}
|
|
269
|
+
try {
|
|
270
|
+
// Load the shared inputs BEFORE constructing the page. A component
|
|
271
|
+
// created imperatively runs `ngOnInit` on its first change detection,
|
|
272
|
+
// and fast entry builds its order there from `CompanyID` — so an
|
|
273
|
+
// input that arrives afterwards is an input that arrives too late. The
|
|
274
|
+
// draft was being built with an empty company, which made every
|
|
275
|
+
// preview fail validation and left the line "resolving…" forever.
|
|
276
|
+
const inputs = await this.sharedInputs();
|
|
277
|
+
// A page opened FOR A RECORD needs that record, not a blank one.
|
|
278
|
+
// Opening an order used to set PendingRecordID and navigate, and the
|
|
279
|
+
// editor — which only accepts a Draft — was handed an empty one, so
|
|
280
|
+
// the screen came up blank and the click looked broken.
|
|
281
|
+
if (this.PendingRecordID && (pageId === 'editor' || pageId === 'document')) {
|
|
282
|
+
const draft = await loadOrder(this.PendingRecordID);
|
|
283
|
+
if (draft)
|
|
284
|
+
inputs['Draft'] = draft;
|
|
285
|
+
inputs['OrderID'] = this.PendingRecordID;
|
|
286
|
+
this.PendingRecordID = null;
|
|
287
|
+
}
|
|
288
|
+
const ref = host.createComponent(type);
|
|
289
|
+
const instance = ref.instance;
|
|
290
|
+
for (const [name, value] of Object.entries(inputs)) {
|
|
291
|
+
// `setInput` rather than assignment: it marks the view dirty and
|
|
292
|
+
// runs ngOnChanges, which direct assignment on an imperatively
|
|
293
|
+
// created component does not.
|
|
294
|
+
if (name in instance)
|
|
295
|
+
ref.setInput(name, value);
|
|
296
|
+
}
|
|
297
|
+
this.wirePage(ref);
|
|
298
|
+
this.mounted.set(pageId, ref);
|
|
299
|
+
this.LoadError = null;
|
|
300
|
+
}
|
|
301
|
+
catch (e) {
|
|
302
|
+
// A page that fails to construct must not take the section down with
|
|
303
|
+
// it — the rail has to stay usable so the user can go somewhere else.
|
|
304
|
+
this.LoadError = `That page could not be opened: ${e instanceof Error ? e.message : String(e)}`;
|
|
305
|
+
// …and the banner has to actually appear. This assignment lands after an await on an
|
|
306
|
+
// imperatively-created, zoneless component, so without a tick the user gets a blank
|
|
307
|
+
// pane and no explanation — the failure state was itself invisible.
|
|
308
|
+
this.cdr.detectChanges();
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
/**
|
|
312
|
+
* Connect a freshly created page to the section.
|
|
313
|
+
*
|
|
314
|
+
* A page created through `ViewContainerRef.createComponent` has NO template
|
|
315
|
+
* binding its outputs — there is no host markup for Angular to wire. Every
|
|
316
|
+
* `@Output()` on every page therefore emitted into nothing: the confirm button
|
|
317
|
+
* fired `ConfirmRequested` at no listener, dashboard tiles fired
|
|
318
|
+
* `NavigateRequested` at no listener, and list rows fired `OrderOpened` at no
|
|
319
|
+
* listener. The pages looked complete and were inert.
|
|
320
|
+
*
|
|
321
|
+
* Subscribed by NAME and only when present, because the four sections host
|
|
322
|
+
* different pages and a missing output is normal rather than an error.
|
|
323
|
+
*/
|
|
324
|
+
wirePage(ref) {
|
|
325
|
+
const instance = ref.instance;
|
|
326
|
+
const subscriptions = [];
|
|
327
|
+
const on = (name, handler) => {
|
|
328
|
+
const output = instance[name];
|
|
329
|
+
if (!output?.subscribe)
|
|
330
|
+
return;
|
|
331
|
+
subscriptions.push(output.subscribe(handler));
|
|
332
|
+
};
|
|
333
|
+
// Navigation within the rail.
|
|
334
|
+
on('NavigateRequested', (pageId) => this.OnPageSelected(pageId));
|
|
335
|
+
// Opening a record routes to the page that shows it. Each carries its id,
|
|
336
|
+
// which the destination reads on activation.
|
|
337
|
+
on('OrderOpened', (row) => this.openEntity(MJO_ENTITIES.OrderHeader, row));
|
|
338
|
+
on('PaymentOpened', (row) => this.openEntity(MJO_ENTITIES.PaymentHeader, row));
|
|
339
|
+
on('ProductOpened', (row) => this.openEntity(MJO_ENTITIES.Product, row));
|
|
340
|
+
// The irreversible step. Straight to the engine — there is no dry run in front of it.
|
|
341
|
+
on('ConfirmRequested', (draft) => void this.Confirm(draft));
|
|
342
|
+
// The order workspace confirms in place — it owns the draft, so it does not hand one back
|
|
343
|
+
// for the section's pre-flight. What the section still needs is to know an order now
|
|
344
|
+
// EXISTS: any list or dashboard it has already mounted was read before the confirm and is
|
|
345
|
+
// now stale. Dropping the cached pages makes the next visit re-read rather than show a
|
|
346
|
+
// list the just-confirmed order is missing from.
|
|
347
|
+
on('OrderConfirmed', () => this.dropStalePages());
|
|
348
|
+
// ESCALATION CARRIES THE DRAFT. This used to ignore the emitted payload and merely
|
|
349
|
+
// navigate, so "open in full editor" landed on an empty workspace and the half-typed order
|
|
350
|
+
// was silently gone — the button looked like it did nothing. Fast entry and the editor were
|
|
351
|
+
// designed to share one draft instance; this is the handoff that makes that true.
|
|
352
|
+
on('EscalateRequested', (draft) => {
|
|
353
|
+
if (draft.ID) {
|
|
354
|
+
this.navigationService.OpenEntityRecord(MJO_ENTITIES.OrderHeader, CompositeKey.FromID(draft.ID));
|
|
355
|
+
}
|
|
356
|
+
});
|
|
357
|
+
// Pages are cached rather than destroyed on rail changes, so these live as
|
|
358
|
+
// long as the section does — but a destroyed section must not leave them
|
|
359
|
+
// holding a reference to it.
|
|
360
|
+
ref.onDestroy(() => subscriptions.forEach((sub) => sub.unsubscribe()));
|
|
361
|
+
}
|
|
362
|
+
/**
|
|
363
|
+
* Give a page the data its inputs expect.
|
|
364
|
+
*
|
|
365
|
+
* Set by NAME and only when the property exists, because the four sections
|
|
366
|
+
* host different pages and an absent input is normal rather than an error —
|
|
367
|
+
* the same shape as the output wiring above.
|
|
368
|
+
*
|
|
369
|
+
* The catalog is loaded ONCE per section and shared. Every page that needs it
|
|
370
|
+
* needs the same list, and re-reading it per page would be a round trip to
|
|
371
|
+
* produce an answer already in memory.
|
|
372
|
+
*/
|
|
373
|
+
async sharedInputs() {
|
|
374
|
+
const [Catalog, CompanyID, Tenders, Companies] = await Promise.all([
|
|
375
|
+
this.catalogOptions(),
|
|
376
|
+
this.defaultCompanyID(),
|
|
377
|
+
this.tenderOptions(),
|
|
378
|
+
GetSellingCompanies(),
|
|
379
|
+
]);
|
|
380
|
+
return { Catalog, CompanyID, Tenders, Companies };
|
|
381
|
+
}
|
|
382
|
+
catalogCache = null;
|
|
383
|
+
/** The product picker's options, shaped as it expects them. */
|
|
384
|
+
async catalogOptions() {
|
|
385
|
+
if (!this.catalogCache) {
|
|
386
|
+
this.catalogCache = await GetCatalogOptions();
|
|
387
|
+
}
|
|
388
|
+
return this.catalogCache;
|
|
389
|
+
}
|
|
390
|
+
companyCache = null;
|
|
391
|
+
/**
|
|
392
|
+
* The company a new order belongs to.
|
|
393
|
+
*
|
|
394
|
+
* Taken from the catalog rather than asked for: a company with no products
|
|
395
|
+
* cannot be sold from, so the first product's company is a better default than
|
|
396
|
+
* an empty picker. A multi-company user changes it on the order.
|
|
397
|
+
*/
|
|
398
|
+
async defaultCompanyID() {
|
|
399
|
+
if (this.companyCache)
|
|
400
|
+
return this.companyCache;
|
|
401
|
+
const products = await GetProducts({ MaxRows: 1 });
|
|
402
|
+
this.companyCache = String(products[0]?.['CompanyID'] ?? '');
|
|
403
|
+
return this.companyCache;
|
|
404
|
+
}
|
|
405
|
+
tenderCache = null;
|
|
406
|
+
/** Tenders a payment can be taken on. */
|
|
407
|
+
async tenderOptions() {
|
|
408
|
+
if (!this.tenderCache) {
|
|
409
|
+
const types = await GetPaymentTypes();
|
|
410
|
+
this.tenderCache = types.map((type) => ({
|
|
411
|
+
ID: String(type['ID']),
|
|
412
|
+
Code: String(type['Code'] ?? ''),
|
|
413
|
+
Name: String(type['Name'] ?? ''),
|
|
414
|
+
RequiresReference: !!type['RequiresReference'],
|
|
415
|
+
RequiresInstrument: !!type['RequiresInstrument'],
|
|
416
|
+
}));
|
|
417
|
+
}
|
|
418
|
+
return this.tenderCache;
|
|
419
|
+
}
|
|
420
|
+
/** Remember which record a destination page should open, then go there. */
|
|
421
|
+
openRecord(pageId, row) {
|
|
422
|
+
this.PendingRecordID = typeof row === 'string' ? row : (row?.ID ?? null);
|
|
423
|
+
this.OnPageSelected(pageId);
|
|
424
|
+
}
|
|
425
|
+
/** Open an entity record in Explorer — same path as the generated form host. */
|
|
426
|
+
openEntity(entityName, row) {
|
|
427
|
+
const id = typeof row === 'string' ? row : row?.ID;
|
|
428
|
+
if (!id)
|
|
429
|
+
return;
|
|
430
|
+
this.navigationService.OpenEntityRecord(entityName, CompositeKey.FromID(id));
|
|
431
|
+
}
|
|
432
|
+
/** Set when a page was opened for a specific record. */
|
|
433
|
+
PendingRecordID = null;
|
|
434
|
+
/* ── Header ─────────────────────────────────────────────────────────── */
|
|
435
|
+
/**
|
|
436
|
+
* The action the primary button performs, or null for a section that has no
|
|
437
|
+
* single obvious thing to start.
|
|
438
|
+
*
|
|
439
|
+
* Deliberately per-section rather than a global "New order". On Receivables
|
|
440
|
+
* and Catalog there is no one thing a person arrives wanting to create, and a
|
|
441
|
+
* primary button that guesses is worse than none — it makes the wrong action
|
|
442
|
+
* the most prominent one on the page.
|
|
443
|
+
*/
|
|
444
|
+
get primaryAction() {
|
|
445
|
+
return null;
|
|
446
|
+
}
|
|
447
|
+
/** When the visible data was last read. Shown so a stale screen can be spotted. */
|
|
448
|
+
LoadedAt = null;
|
|
449
|
+
/** The 'as of' chip. Time only — the date is today by construction. */
|
|
450
|
+
get LoadedAtDisplay() {
|
|
451
|
+
if (!this.LoadedAt)
|
|
452
|
+
return '';
|
|
453
|
+
return this.LoadedAt.toLocaleTimeString(undefined, { hour: 'numeric', minute: '2-digit' });
|
|
454
|
+
}
|
|
455
|
+
/**
|
|
456
|
+
* Re-read the active page.
|
|
457
|
+
*
|
|
458
|
+
* Destroys the cached instance rather than asking it to reload, because a page
|
|
459
|
+
* has no reload contract — some load in `ngOnInit`, some on a preset change,
|
|
460
|
+
* and inventing an interface every page must implement to support one button
|
|
461
|
+
* is more surface than the button is worth. Recreating runs whatever the page
|
|
462
|
+
* already does on mount.
|
|
463
|
+
*/
|
|
464
|
+
RefreshActivePage() {
|
|
465
|
+
const pageId = this.ActivePageId;
|
|
466
|
+
if (!pageId)
|
|
467
|
+
return;
|
|
468
|
+
const cached = this.mounted.get(pageId);
|
|
469
|
+
if (cached) {
|
|
470
|
+
this.mounted.delete(pageId);
|
|
471
|
+
cached.destroy();
|
|
472
|
+
}
|
|
473
|
+
void this.showPage(pageId);
|
|
474
|
+
this.LoadedAt = new Date();
|
|
475
|
+
}
|
|
476
|
+
/** Start the section's primary action. */
|
|
477
|
+
StartPrimary() {
|
|
478
|
+
const action = this.primaryAction;
|
|
479
|
+
if (!action)
|
|
480
|
+
return;
|
|
481
|
+
if (action.EntityName) {
|
|
482
|
+
this.navigationService.OpenEntityRecord(action.EntityName, new CompositeKey());
|
|
483
|
+
return;
|
|
484
|
+
}
|
|
485
|
+
if (action.PageId) {
|
|
486
|
+
this.OnPageSelected(action.PageId);
|
|
487
|
+
// STARTING SOMETHING NEW MEANS A BLANK SURFACE. Pages are cached and re-inserted rather
|
|
488
|
+
// than rebuilt (that is what preserves a part-typed order across a trip to another rail
|
|
489
|
+
// item), so navigating alone hands back whatever was on screen last time. A page that can
|
|
490
|
+
// be started fresh says so by exposing `Reset()`; one that must NOT be blanked simply does
|
|
491
|
+
// not, which is why this asks rather than destroying the cached view.
|
|
492
|
+
const page = this.mounted.get(action.PageId)?.instance;
|
|
493
|
+
if (typeof page?.Reset === 'function')
|
|
494
|
+
void page.Reset();
|
|
495
|
+
}
|
|
496
|
+
}
|
|
497
|
+
/* ── Confirm ────────────────────────────────────────────────────────── */
|
|
498
|
+
entry = inject(MJOPricingScheduler);
|
|
499
|
+
/** A confirm is in flight — the button says so and cannot be pressed twice. */
|
|
500
|
+
Confirming = false;
|
|
501
|
+
/** Why the last confirm was refused, rendered verbatim. Null when there is nothing to say. */
|
|
502
|
+
ConfirmError = null;
|
|
503
|
+
/**
|
|
504
|
+
* Confirm an order. THE ENGINE IS THE ONLY AUTHORITY, AND IT IS ASKED ONCE.
|
|
505
|
+
*
|
|
506
|
+
* This used to open a pre-flight backed by `Orders.PreviewConfirm`, which ran the
|
|
507
|
+
* REAL confirm inside a rolled-back transaction so it could show the journal
|
|
508
|
+
* entries the commit would write. Truthful, and far too expensive: every confirm
|
|
509
|
+
* booked the order twice, and the button was GATED on the throwaway run, so a
|
|
510
|
+
* transient failure in the half nobody would ever see blocked the half that
|
|
511
|
+
* mattered. Repeatedly, that presented as "the confirm button does nothing".
|
|
512
|
+
*
|
|
513
|
+
* So there is no dry run. `Orders.ConfirmOrder` either books — journal entries,
|
|
514
|
+
* subscriptions, entitlements, the initial payment, one transaction — or it is
|
|
515
|
+
* refused with a reason. Every rule that was pre-checked is still enforced, by
|
|
516
|
+
* `OrderEntityServer.ValidateAsync` and the booking walk; the difference is that
|
|
517
|
+
* the refusal now reaches the user as itself rather than as a prediction of
|
|
518
|
+
* itself. `MJOPricingScheduler.Confirm` throws on refusal, and the catch below
|
|
519
|
+
* puts that sentence on screen.
|
|
520
|
+
*
|
|
521
|
+
* A richer pre-flight can come back, but it must be built on a read-only decide
|
|
522
|
+
* pass (the shape `Orders.PreviewPrice` already has), never on a save.
|
|
523
|
+
*/
|
|
524
|
+
async Confirm(draft) {
|
|
525
|
+
if (this.Confirming)
|
|
526
|
+
return;
|
|
527
|
+
this.Confirming = true;
|
|
528
|
+
this.ConfirmError = null;
|
|
529
|
+
this.cdr.detectChanges();
|
|
530
|
+
try {
|
|
531
|
+
const output = await draft.Confirm();
|
|
532
|
+
// A CONFIRMED ORDER OPENS IN THE EDITOR. Both lanes, one destination.
|
|
533
|
+
//
|
|
534
|
+
// The order is the thing that was just created and it is the thing the user
|
|
535
|
+
// wants to see, so the confirm ends by putting it on screen — with its number,
|
|
536
|
+
// its status, its lines and (once the confirm has booked them) its journal
|
|
537
|
+
// entries and subscriptions. Every previous ending was a step away from it:
|
|
538
|
+
// fast entry blanked its own form, and the editor navigated to the list.
|
|
539
|
+
//
|
|
540
|
+
// Supersedes the fast-entry "stay put and clear" behaviour. That treated the
|
|
541
|
+
// lane as a QUEUE — book one, start the next — which is a real workflow and
|
|
542
|
+
// will want a way back; the trade is deliberate (Marcelo, 2026-08-07) and
|
|
543
|
+
// taking the queue behaviour further is deferred until the editor path is
|
|
544
|
+
// proven. What is NOT lost is the reason it existed: whatever replaces it must
|
|
545
|
+
// never leave the next order starting as an edit of the last one, which is how
|
|
546
|
+
// a line gets billed twice.
|
|
547
|
+
//
|
|
548
|
+
// dropStalePages FIRST. Pages are cached and re-inserted with the data they
|
|
549
|
+
// originally loaded, so a cached list or editor read before this order existed
|
|
550
|
+
// would show a world without it — indistinguishable, from the user's side,
|
|
551
|
+
// from the confirm having done nothing, which is how it was reported and how
|
|
552
|
+
// they were led to press confirm again.
|
|
553
|
+
this.dropStalePages();
|
|
554
|
+
if (draft.ID) {
|
|
555
|
+
this.navigationService.OpenEntityRecord(MJO_ENTITIES.OrderHeader, CompositeKey.FromID(draft.ID));
|
|
556
|
+
return;
|
|
557
|
+
}
|
|
558
|
+
// No id came back — the confirm reported success without saying WHAT it
|
|
559
|
+
// created. Nothing to open, so fall back to the list rather than leaving the
|
|
560
|
+
// user on a form that no longer describes anything.
|
|
561
|
+
await this.OnPageSelected('list');
|
|
562
|
+
}
|
|
563
|
+
catch (e) {
|
|
564
|
+
// `Confirm` THROWS on a refusal. Without this catch the rejection escapes the handler,
|
|
565
|
+
// nothing is set, and the screen sits there — precisely the silent confirm the throw
|
|
566
|
+
// was added to eliminate, reintroduced one layer up.
|
|
567
|
+
this.ConfirmError = e instanceof Error ? e.message : String(e);
|
|
568
|
+
}
|
|
569
|
+
finally {
|
|
570
|
+
this.Confirming = false;
|
|
571
|
+
// MUST tick. Everything above lands after an `await`, and this component is created
|
|
572
|
+
// imperatively (no host template, zoneless), so assigning state repaints nothing on its
|
|
573
|
+
// own. Without this the order really IS booked but the screen never says so — which
|
|
574
|
+
// reads as failure and invites a second confirm.
|
|
575
|
+
this.cdr.detectChanges();
|
|
576
|
+
}
|
|
577
|
+
}
|
|
578
|
+
/** Dismiss the refusal banner. */
|
|
579
|
+
ClearConfirmError() {
|
|
580
|
+
this.ConfirmError = null;
|
|
581
|
+
}
|
|
582
|
+
/**
|
|
583
|
+
* Throw away cached pages so the next visit re-reads.
|
|
584
|
+
*
|
|
585
|
+
* The ACTIVE page is kept: it is on screen, the user is looking at it, and destroying it under
|
|
586
|
+
* them would blank the view mid-interaction. Everything else is a snapshot of the world before
|
|
587
|
+
* whatever just changed.
|
|
588
|
+
*/
|
|
589
|
+
dropStalePages() {
|
|
590
|
+
for (const [pageId, ref] of this.mounted) {
|
|
591
|
+
if (pageId === this.ActivePageId)
|
|
592
|
+
continue;
|
|
593
|
+
ref.destroy();
|
|
594
|
+
this.mounted.delete(pageId);
|
|
595
|
+
}
|
|
596
|
+
}
|
|
597
|
+
/** First page in the rail — the fallback when nothing is remembered. */
|
|
598
|
+
get defaultPageId() {
|
|
599
|
+
return this.subPages[0]?.Id ?? '';
|
|
600
|
+
}
|
|
601
|
+
/**
|
|
602
|
+
* Restore the last page this user was on.
|
|
603
|
+
*
|
|
604
|
+
* Guarded, and falls back to the default rather than throwing: an unknown id
|
|
605
|
+
* means the rail was renamed since the preference was written, and stranding
|
|
606
|
+
* someone on a blank tab because of a rename is the wrong trade.
|
|
607
|
+
*/
|
|
608
|
+
restorePageId() {
|
|
609
|
+
try {
|
|
610
|
+
const saved = globalThis.localStorage?.getItem(this.preferenceKey);
|
|
611
|
+
if (saved && this.subPages.some((p) => p.Id === saved))
|
|
612
|
+
return saved;
|
|
613
|
+
}
|
|
614
|
+
catch {
|
|
615
|
+
/* storage unavailable — the default is a fine answer */
|
|
616
|
+
}
|
|
617
|
+
return this.defaultPageId;
|
|
618
|
+
}
|
|
619
|
+
persistPageId(pageId) {
|
|
620
|
+
try {
|
|
621
|
+
globalThis.localStorage?.setItem(this.preferenceKey, pageId);
|
|
622
|
+
}
|
|
623
|
+
catch {
|
|
624
|
+
/* preferences simply do not persist */
|
|
625
|
+
}
|
|
626
|
+
}
|
|
627
|
+
async GetResourceDisplayName(_data) {
|
|
628
|
+
return this.sectionTitle;
|
|
629
|
+
}
|
|
630
|
+
async GetResourceIconClass(_data) {
|
|
631
|
+
return this.sectionIcon;
|
|
632
|
+
}
|
|
633
|
+
ngOnDestroy() {
|
|
634
|
+
for (const ref of this.mounted.values()) {
|
|
635
|
+
ref.destroy();
|
|
636
|
+
}
|
|
637
|
+
this.mounted.clear();
|
|
638
|
+
super.ngOnDestroy?.();
|
|
639
|
+
}
|
|
640
|
+
static ɵfac = /*@__PURE__*/ (() => { let ɵMJOSectionBaseComponent_BaseFactory; return function MJOSectionBaseComponent_Factory(__ngFactoryType__) { return (ɵMJOSectionBaseComponent_BaseFactory || (ɵMJOSectionBaseComponent_BaseFactory = i0.ɵɵgetInheritedFactory(MJOSectionBaseComponent)))(__ngFactoryType__ || MJOSectionBaseComponent); }; })();
|
|
641
|
+
static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: MJOSectionBaseComponent, viewQuery: function MJOSectionBaseComponent_Query(rf, ctx) { if (rf & 1) {
|
|
642
|
+
i0.ɵɵviewQuery(_c0, 5, ViewContainerRef);
|
|
643
|
+
} if (rf & 2) {
|
|
644
|
+
let _t;
|
|
645
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.pageHost = _t.first);
|
|
646
|
+
} }, features: [i0.ɵɵInheritDefinitionFeature] });
|
|
647
|
+
}
|
|
648
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MJOSectionBaseComponent, [{
|
|
649
|
+
type: Directive
|
|
650
|
+
}], null, { pageHost: [{
|
|
651
|
+
type: ViewChild,
|
|
652
|
+
args: ['pageHost', { read: ViewContainerRef, static: false }]
|
|
653
|
+
}] }); })();
|
|
654
|
+
/* ────────────────────────────────────────────────────────────────────────────
|
|
655
|
+
* Orders
|
|
656
|
+
* ──────────────────────────────────────────────────────────────────────────── */
|
|
657
|
+
/**
|
|
658
|
+
* The Orders tab — take an order, then work the ones you have.
|
|
659
|
+
*
|
|
660
|
+
* Default tab of the application, because taking an order is the job most people
|
|
661
|
+
* open this app to do.
|
|
662
|
+
*/
|
|
663
|
+
let OrdersSectionResource = class OrdersSectionResource extends MJOSectionBaseComponent {
|
|
664
|
+
/** Taking an order is what someone arrives at this section to do. */
|
|
665
|
+
get primaryAction() {
|
|
666
|
+
return { Label: 'New order', Icon: 'fa-solid fa-plus', PageId: 'list' };
|
|
667
|
+
}
|
|
668
|
+
StartPrimary() {
|
|
669
|
+
this.navigationService.OpenNewEntityRecord(MJO_ENTITIES.OrderHeader);
|
|
670
|
+
}
|
|
671
|
+
get subPages() {
|
|
672
|
+
return ORDERS_SUB_PAGES;
|
|
673
|
+
}
|
|
674
|
+
get preferenceKey() {
|
|
675
|
+
return 'mjOrders.section.orders.page';
|
|
676
|
+
}
|
|
677
|
+
get sectionTitle() {
|
|
678
|
+
return 'Orders';
|
|
679
|
+
}
|
|
680
|
+
get sectionIcon() {
|
|
681
|
+
return 'fa-solid fa-file-invoice-dollar';
|
|
682
|
+
}
|
|
683
|
+
/**
|
|
684
|
+
* Dashboard, list, fulfillment, and returns. New/existing orders open as
|
|
685
|
+
* Explorer record tabs via NavigationService, not as rail pages.
|
|
686
|
+
*/
|
|
687
|
+
resolvePage(pageId) {
|
|
688
|
+
switch (pageId) {
|
|
689
|
+
case 'list':
|
|
690
|
+
return MJOOrdersListPageComponent;
|
|
691
|
+
case 'dashboard':
|
|
692
|
+
return MJOOrdersDashboardPageComponent;
|
|
693
|
+
case 'fulfillment':
|
|
694
|
+
return MJOFulfillmentPageComponent;
|
|
695
|
+
case 'returns':
|
|
696
|
+
return MJOReturnPageComponent;
|
|
697
|
+
default:
|
|
698
|
+
return null;
|
|
699
|
+
}
|
|
700
|
+
}
|
|
701
|
+
static ɵfac = /*@__PURE__*/ (() => { let ɵOrdersSectionResource_BaseFactory; return function OrdersSectionResource_Factory(__ngFactoryType__) { return (ɵOrdersSectionResource_BaseFactory || (ɵOrdersSectionResource_BaseFactory = i0.ɵɵgetInheritedFactory(OrdersSectionResource)))(__ngFactoryType__ || OrdersSectionResource); }; })();
|
|
702
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: OrdersSectionResource, selectors: [["mjo-orders-section"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 10, vars: 7, consts: [["pageHost", ""], ["Title", "Orders", "Icon", "fa-solid fa-file-invoice-dollar", "Subtitle", "Take an order, then work the ones you have", 3, "PageSelected", "NavSections", "ActivePageId", "Loading", "Error"], ["meta", ""], ["title", "When this screen last read the database", 1, "mj-chip", "mj-chip--outline"], ["actions", ""], ["type", "button", "mjButton", "", "variant", "outline", "aria-label", "Refresh this page", 3, "click"], ["aria-hidden", "true", 1, "fa-solid", "fa-arrow-rotate-right"], ["type", "button", "mjButton", "", "variant", "primary"], ["Variant", "error", "Icon", "fa-solid fa-triangle-exclamation", "role", "alert", 1, "mjo-section__confirm-error"], ["type", "button", "mjButton", "", "variant", "primary", 3, "click"], ["aria-hidden", "true"]], template: function OrdersSectionResource_Template(rf, ctx) { if (rf & 1) {
|
|
703
|
+
const _r1 = i0.ɵɵgetCurrentView();
|
|
704
|
+
i0.ɵɵelementStart(0, "mjo-section-shell", 1);
|
|
705
|
+
i0.ɵɵlistener("PageSelected", function OrdersSectionResource_Template_mjo_section_shell_PageSelected_0_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.OnPageSelected($event)); });
|
|
706
|
+
i0.ɵɵelementStart(1, "div", 2);
|
|
707
|
+
i0.ɵɵconditionalCreate(2, OrdersSectionResource_Conditional_2_Template, 2, 1, "span", 3);
|
|
708
|
+
i0.ɵɵelementEnd();
|
|
709
|
+
i0.ɵɵelementStart(3, "div", 4)(4, "button", 5);
|
|
710
|
+
i0.ɵɵlistener("click", function OrdersSectionResource_Template_button_click_4_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.RefreshActivePage()); });
|
|
711
|
+
i0.ɵɵelement(5, "i", 6);
|
|
712
|
+
i0.ɵɵelementEnd();
|
|
713
|
+
i0.ɵɵconditionalCreate(6, OrdersSectionResource_Conditional_6_Template, 3, 3, "button", 7);
|
|
714
|
+
i0.ɵɵelementEnd();
|
|
715
|
+
i0.ɵɵelementContainer(7, null, 0);
|
|
716
|
+
i0.ɵɵelementEnd();
|
|
717
|
+
i0.ɵɵconditionalCreate(9, OrdersSectionResource_Conditional_9_Template, 4, 1, "mj-alert", 8);
|
|
718
|
+
} if (rf & 2) {
|
|
719
|
+
let tmp_6_0;
|
|
720
|
+
i0.ɵɵproperty("NavSections", ctx.NavSections)("ActivePageId", ctx.ActivePageId)("Loading", ctx.IsLoading)("Error", ctx.LoadError);
|
|
721
|
+
i0.ɵɵadvance(2);
|
|
722
|
+
i0.ɵɵconditional(ctx.LoadedAtDisplay ? 2 : -1);
|
|
723
|
+
i0.ɵɵadvance(4);
|
|
724
|
+
i0.ɵɵconditional((tmp_6_0 = ctx.primaryAction) ? 6 : -1, tmp_6_0);
|
|
725
|
+
i0.ɵɵadvance(3);
|
|
726
|
+
i0.ɵɵconditional(ctx.ConfirmError ? 9 : -1);
|
|
727
|
+
} }, dependencies: [MJButtonDirective, CommonModule, MJOSectionShellComponent, MJAlertComponent], styles: [".mjo-section__confirm-error[_ngcontent-%COMP%] {\n position: fixed; left: 50%; bottom: var(--mj-space-6);\n transform: translateX(-50%); z-index: 60; max-width: 560px;\n }"] });
|
|
728
|
+
};
|
|
729
|
+
OrdersSectionResource = __decorate([
|
|
730
|
+
RegisterClass(BaseResourceComponent, 'OrdersSectionResource')
|
|
731
|
+
], OrdersSectionResource);
|
|
732
|
+
export { OrdersSectionResource };
|
|
733
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(OrdersSectionResource, [{
|
|
734
|
+
type: Component,
|
|
735
|
+
args: [{ selector: 'mjo-orders-section', standalone: true, imports: [MJButtonDirective, CommonModule, MJOSectionShellComponent, MJAlertComponent], template: `
|
|
736
|
+
<mjo-section-shell
|
|
737
|
+
Title="Orders"
|
|
738
|
+
Icon="fa-solid fa-file-invoice-dollar"
|
|
739
|
+
Subtitle="Take an order, then work the ones you have"
|
|
740
|
+
[NavSections]="NavSections"
|
|
741
|
+
[ActivePageId]="ActivePageId"
|
|
742
|
+
[Loading]="IsLoading"
|
|
743
|
+
[Error]="LoadError"
|
|
744
|
+
(PageSelected)="OnPageSelected($event)">
|
|
745
|
+
|
|
746
|
+
<div meta>
|
|
747
|
+
@if (LoadedAtDisplay) {
|
|
748
|
+
<span class="mj-chip mj-chip--outline" title="When this screen last read the database">
|
|
749
|
+
as of {{ LoadedAtDisplay }}
|
|
750
|
+
</span>
|
|
751
|
+
}
|
|
752
|
+
</div>
|
|
753
|
+
|
|
754
|
+
<div actions>
|
|
755
|
+
<button
|
|
756
|
+
type="button"
|
|
757
|
+
mjButton variant="outline"
|
|
758
|
+
(click)="RefreshActivePage()"
|
|
759
|
+
aria-label="Refresh this page">
|
|
760
|
+
<i class="fa-solid fa-arrow-rotate-right" aria-hidden="true"></i>
|
|
761
|
+
</button>
|
|
762
|
+
@if (primaryAction; as action) {
|
|
763
|
+
<button type="button" mjButton variant="primary" (click)="StartPrimary()">
|
|
764
|
+
<i [class]="action.Icon" aria-hidden="true"></i> {{ action.Label }}
|
|
765
|
+
</button>
|
|
766
|
+
}
|
|
767
|
+
</div>
|
|
768
|
+
<ng-container #pageHost />
|
|
769
|
+
</mjo-section-shell>
|
|
770
|
+
|
|
771
|
+
<!--
|
|
772
|
+
The refusal banner lives at the SECTION, not on a page: both fast entry and
|
|
773
|
+
the full editor confirm, and the message must survive the rail switch
|
|
774
|
+
between them.
|
|
775
|
+
|
|
776
|
+
position:fixed is load-bearing here, not styling. The old pre-flight rendered
|
|
777
|
+
as a plain block at the end of this template, so on a scrolled page it
|
|
778
|
+
appeared BELOW THE FOLD — refusals reached the user only because the banner
|
|
779
|
+
was fixed and successes never did. Whatever replaces this must stay pinned.
|
|
780
|
+
-->
|
|
781
|
+
@if (ConfirmError) {
|
|
782
|
+
<mj-alert Variant="error" Icon="fa-solid fa-triangle-exclamation" class="mjo-section__confirm-error" role="alert">
|
|
783
|
+
<strong>Nothing was confirmed.</strong> {{ ConfirmError }}
|
|
784
|
+
</mj-alert>
|
|
785
|
+
}
|
|
786
|
+
`, styles: ["\n .mjo-section__confirm-error {\n position: fixed; left: 50%; bottom: var(--mj-space-6);\n transform: translateX(-50%); z-index: 60; max-width: 560px;\n }\n "] }]
|
|
787
|
+
}], null, null); })();
|
|
788
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(OrdersSectionResource, { className: "OrdersSectionResource", filePath: "lib/sections/orders-sections.component.ts", lineNumber: 694 }); })();
|
|
789
|
+
/* ────────────────────────────────────────────────────────────────────────────
|
|
790
|
+
* Payments
|
|
791
|
+
* ──────────────────────────────────────────────────────────────────────────── */
|
|
792
|
+
/** The Payments tab — take the cash, and say what it settles. */
|
|
793
|
+
let PaymentsSectionResource = class PaymentsSectionResource extends MJOSectionBaseComponent {
|
|
794
|
+
get primaryAction() {
|
|
795
|
+
return { Label: 'New payment', Icon: 'fa-solid fa-plus', EntityName: MJO_ENTITIES.PaymentHeader };
|
|
796
|
+
}
|
|
797
|
+
get subPages() {
|
|
798
|
+
return PAYMENTS_SUB_PAGES;
|
|
799
|
+
}
|
|
800
|
+
get preferenceKey() {
|
|
801
|
+
return 'mjOrders.section.payments.page';
|
|
802
|
+
}
|
|
803
|
+
get sectionTitle() {
|
|
804
|
+
return 'Payments';
|
|
805
|
+
}
|
|
806
|
+
get sectionIcon() {
|
|
807
|
+
return 'fa-solid fa-money-check-dollar';
|
|
808
|
+
}
|
|
809
|
+
resolvePage(pageId) {
|
|
810
|
+
switch (pageId) {
|
|
811
|
+
case 'list':
|
|
812
|
+
return MJOPaymentsListPageComponent;
|
|
813
|
+
case 'dashboard':
|
|
814
|
+
return MJOPaymentsDashboardPageComponent;
|
|
815
|
+
case 'refund':
|
|
816
|
+
return MJORefundPageComponent;
|
|
817
|
+
case 'credit':
|
|
818
|
+
return MJOAccountCreditPageComponent;
|
|
819
|
+
default:
|
|
820
|
+
return null;
|
|
821
|
+
}
|
|
822
|
+
}
|
|
823
|
+
static ɵfac = /*@__PURE__*/ (() => { let ɵPaymentsSectionResource_BaseFactory; return function PaymentsSectionResource_Factory(__ngFactoryType__) { return (ɵPaymentsSectionResource_BaseFactory || (ɵPaymentsSectionResource_BaseFactory = i0.ɵɵgetInheritedFactory(PaymentsSectionResource)))(__ngFactoryType__ || PaymentsSectionResource); }; })();
|
|
824
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PaymentsSectionResource, selectors: [["mjo-payments-section"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 9, vars: 6, consts: [["pageHost", ""], ["Title", "Payments", "Icon", "fa-solid fa-money-check-dollar", "Subtitle", "Record the cash, then say what it settles", 3, "PageSelected", "NavSections", "ActivePageId", "Loading", "Error"], ["meta", ""], ["title", "When this screen last read the database", 1, "mj-chip", "mj-chip--outline"], ["actions", ""], ["type", "button", "mjButton", "", "variant", "outline", "aria-label", "Refresh this page", 3, "click"], ["aria-hidden", "true", 1, "fa-solid", "fa-arrow-rotate-right"], ["type", "button", "mjButton", "", "variant", "primary"], ["type", "button", "mjButton", "", "variant", "primary", 3, "click"], ["aria-hidden", "true"]], template: function PaymentsSectionResource_Template(rf, ctx) { if (rf & 1) {
|
|
825
|
+
const _r1 = i0.ɵɵgetCurrentView();
|
|
826
|
+
i0.ɵɵelementStart(0, "mjo-section-shell", 1);
|
|
827
|
+
i0.ɵɵlistener("PageSelected", function PaymentsSectionResource_Template_mjo_section_shell_PageSelected_0_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.OnPageSelected($event)); });
|
|
828
|
+
i0.ɵɵelementStart(1, "div", 2);
|
|
829
|
+
i0.ɵɵconditionalCreate(2, PaymentsSectionResource_Conditional_2_Template, 2, 1, "span", 3);
|
|
830
|
+
i0.ɵɵelementEnd();
|
|
831
|
+
i0.ɵɵelementStart(3, "div", 4)(4, "button", 5);
|
|
832
|
+
i0.ɵɵlistener("click", function PaymentsSectionResource_Template_button_click_4_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.RefreshActivePage()); });
|
|
833
|
+
i0.ɵɵelement(5, "i", 6);
|
|
834
|
+
i0.ɵɵelementEnd();
|
|
835
|
+
i0.ɵɵconditionalCreate(6, PaymentsSectionResource_Conditional_6_Template, 3, 3, "button", 7);
|
|
836
|
+
i0.ɵɵelementEnd();
|
|
837
|
+
i0.ɵɵelementContainer(7, null, 0);
|
|
838
|
+
i0.ɵɵelementEnd();
|
|
839
|
+
} if (rf & 2) {
|
|
840
|
+
let tmp_6_0;
|
|
841
|
+
i0.ɵɵproperty("NavSections", ctx.NavSections)("ActivePageId", ctx.ActivePageId)("Loading", ctx.IsLoading)("Error", ctx.LoadError);
|
|
842
|
+
i0.ɵɵadvance(2);
|
|
843
|
+
i0.ɵɵconditional(ctx.LoadedAtDisplay ? 2 : -1);
|
|
844
|
+
i0.ɵɵadvance(4);
|
|
845
|
+
i0.ɵɵconditional((tmp_6_0 = ctx.primaryAction) ? 6 : -1, tmp_6_0);
|
|
846
|
+
} }, dependencies: [MJButtonDirective, CommonModule, MJOSectionShellComponent], encapsulation: 2 });
|
|
847
|
+
};
|
|
848
|
+
PaymentsSectionResource = __decorate([
|
|
849
|
+
RegisterClass(BaseResourceComponent, 'PaymentsSectionResource')
|
|
850
|
+
], PaymentsSectionResource);
|
|
851
|
+
export { PaymentsSectionResource };
|
|
852
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PaymentsSectionResource, [{
|
|
853
|
+
type: Component,
|
|
854
|
+
args: [{
|
|
855
|
+
selector: 'mjo-payments-section',
|
|
856
|
+
standalone: true,
|
|
857
|
+
imports: [MJButtonDirective, CommonModule, MJOSectionShellComponent],
|
|
858
|
+
template: `
|
|
859
|
+
<mjo-section-shell
|
|
860
|
+
Title="Payments"
|
|
861
|
+
Icon="fa-solid fa-money-check-dollar"
|
|
862
|
+
Subtitle="Record the cash, then say what it settles"
|
|
863
|
+
[NavSections]="NavSections"
|
|
864
|
+
[ActivePageId]="ActivePageId"
|
|
865
|
+
[Loading]="IsLoading"
|
|
866
|
+
[Error]="LoadError"
|
|
867
|
+
(PageSelected)="OnPageSelected($event)">
|
|
868
|
+
|
|
869
|
+
<div meta>
|
|
870
|
+
@if (LoadedAtDisplay) {
|
|
871
|
+
<span class="mj-chip mj-chip--outline" title="When this screen last read the database">
|
|
872
|
+
as of {{ LoadedAtDisplay }}
|
|
873
|
+
</span>
|
|
874
|
+
}
|
|
875
|
+
</div>
|
|
876
|
+
|
|
877
|
+
<div actions>
|
|
878
|
+
<button
|
|
879
|
+
type="button"
|
|
880
|
+
mjButton variant="outline"
|
|
881
|
+
(click)="RefreshActivePage()"
|
|
882
|
+
aria-label="Refresh this page">
|
|
883
|
+
<i class="fa-solid fa-arrow-rotate-right" aria-hidden="true"></i>
|
|
884
|
+
</button>
|
|
885
|
+
@if (primaryAction; as action) {
|
|
886
|
+
<button type="button" mjButton variant="primary" (click)="StartPrimary()">
|
|
887
|
+
<i [class]="action.Icon" aria-hidden="true"></i> {{ action.Label }}
|
|
888
|
+
</button>
|
|
889
|
+
}
|
|
890
|
+
</div>
|
|
891
|
+
<ng-container #pageHost />
|
|
892
|
+
</mjo-section-shell>
|
|
893
|
+
`,
|
|
894
|
+
}]
|
|
895
|
+
}], null, null); })();
|
|
896
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(PaymentsSectionResource, { className: "PaymentsSectionResource", filePath: "lib/sections/orders-sections.component.ts", lineNumber: 784 }); })();
|
|
897
|
+
/* ────────────────────────────────────────────────────────────────────────────
|
|
898
|
+
* Receivables
|
|
899
|
+
* ──────────────────────────────────────────────────────────────────────────── */
|
|
900
|
+
/**
|
|
901
|
+
* The Receivables tab — A/R, collections and subscriptions.
|
|
902
|
+
*
|
|
903
|
+
* Its own section rather than a "Reports" folder: aging and renewals are
|
|
904
|
+
* operational work with worklists and actions, and filing them under Reports
|
|
905
|
+
* would tell the accounting team their work is read-only.
|
|
906
|
+
*/
|
|
907
|
+
let ReceivablesSectionResource = class ReceivablesSectionResource extends MJOSectionBaseComponent {
|
|
908
|
+
get subPages() {
|
|
909
|
+
return RECEIVABLES_SUB_PAGES;
|
|
910
|
+
}
|
|
911
|
+
get preferenceKey() {
|
|
912
|
+
return 'mjOrders.section.receivables.page';
|
|
913
|
+
}
|
|
914
|
+
get sectionTitle() {
|
|
915
|
+
return 'Receivables';
|
|
916
|
+
}
|
|
917
|
+
get sectionIcon() {
|
|
918
|
+
return 'fa-solid fa-chart-column';
|
|
919
|
+
}
|
|
920
|
+
resolvePage(pageId) {
|
|
921
|
+
switch (pageId) {
|
|
922
|
+
case 'overdue':
|
|
923
|
+
return MJOOverduePageComponent;
|
|
924
|
+
case 'aging':
|
|
925
|
+
return MJOCustomerARPageComponent;
|
|
926
|
+
case 'subscriptions':
|
|
927
|
+
return MJOSubscriptionsPageComponent;
|
|
928
|
+
default:
|
|
929
|
+
return null;
|
|
930
|
+
}
|
|
931
|
+
}
|
|
932
|
+
static ɵfac = /*@__PURE__*/ (() => { let ɵReceivablesSectionResource_BaseFactory; return function ReceivablesSectionResource_Factory(__ngFactoryType__) { return (ɵReceivablesSectionResource_BaseFactory || (ɵReceivablesSectionResource_BaseFactory = i0.ɵɵgetInheritedFactory(ReceivablesSectionResource)))(__ngFactoryType__ || ReceivablesSectionResource); }; })();
|
|
933
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ReceivablesSectionResource, selectors: [["mjo-receivables-section"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 9, vars: 6, consts: [["pageHost", ""], ["Title", "Receivables", "Icon", "fa-solid fa-chart-column", "Subtitle", "Where each relationship stands before you pick up the phone", 3, "PageSelected", "NavSections", "ActivePageId", "Loading", "Error"], ["meta", ""], ["title", "When this screen last read the database", 1, "mj-chip", "mj-chip--outline"], ["actions", ""], ["type", "button", "mjButton", "", "variant", "outline", "aria-label", "Refresh this page", 3, "click"], ["aria-hidden", "true", 1, "fa-solid", "fa-arrow-rotate-right"], ["type", "button", "mjButton", "", "variant", "primary"], ["type", "button", "mjButton", "", "variant", "primary", 3, "click"], ["aria-hidden", "true"]], template: function ReceivablesSectionResource_Template(rf, ctx) { if (rf & 1) {
|
|
934
|
+
const _r1 = i0.ɵɵgetCurrentView();
|
|
935
|
+
i0.ɵɵelementStart(0, "mjo-section-shell", 1);
|
|
936
|
+
i0.ɵɵlistener("PageSelected", function ReceivablesSectionResource_Template_mjo_section_shell_PageSelected_0_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.OnPageSelected($event)); });
|
|
937
|
+
i0.ɵɵelementStart(1, "div", 2);
|
|
938
|
+
i0.ɵɵconditionalCreate(2, ReceivablesSectionResource_Conditional_2_Template, 2, 1, "span", 3);
|
|
939
|
+
i0.ɵɵelementEnd();
|
|
940
|
+
i0.ɵɵelementStart(3, "div", 4)(4, "button", 5);
|
|
941
|
+
i0.ɵɵlistener("click", function ReceivablesSectionResource_Template_button_click_4_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.RefreshActivePage()); });
|
|
942
|
+
i0.ɵɵelement(5, "i", 6);
|
|
943
|
+
i0.ɵɵelementEnd();
|
|
944
|
+
i0.ɵɵconditionalCreate(6, ReceivablesSectionResource_Conditional_6_Template, 3, 3, "button", 7);
|
|
945
|
+
i0.ɵɵelementEnd();
|
|
946
|
+
i0.ɵɵelementContainer(7, null, 0);
|
|
947
|
+
i0.ɵɵelementEnd();
|
|
948
|
+
} if (rf & 2) {
|
|
949
|
+
let tmp_6_0;
|
|
950
|
+
i0.ɵɵproperty("NavSections", ctx.NavSections)("ActivePageId", ctx.ActivePageId)("Loading", ctx.IsLoading)("Error", ctx.LoadError);
|
|
951
|
+
i0.ɵɵadvance(2);
|
|
952
|
+
i0.ɵɵconditional(ctx.LoadedAtDisplay ? 2 : -1);
|
|
953
|
+
i0.ɵɵadvance(4);
|
|
954
|
+
i0.ɵɵconditional((tmp_6_0 = ctx.primaryAction) ? 6 : -1, tmp_6_0);
|
|
955
|
+
} }, dependencies: [MJButtonDirective, CommonModule, MJOSectionShellComponent], encapsulation: 2 });
|
|
956
|
+
};
|
|
957
|
+
ReceivablesSectionResource = __decorate([
|
|
958
|
+
RegisterClass(BaseResourceComponent, 'ReceivablesSectionResource')
|
|
959
|
+
], ReceivablesSectionResource);
|
|
960
|
+
export { ReceivablesSectionResource };
|
|
961
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ReceivablesSectionResource, [{
|
|
962
|
+
type: Component,
|
|
963
|
+
args: [{
|
|
964
|
+
selector: 'mjo-receivables-section',
|
|
965
|
+
standalone: true,
|
|
966
|
+
imports: [MJButtonDirective, CommonModule, MJOSectionShellComponent],
|
|
967
|
+
template: `
|
|
968
|
+
<mjo-section-shell
|
|
969
|
+
Title="Receivables"
|
|
970
|
+
Icon="fa-solid fa-chart-column"
|
|
971
|
+
Subtitle="Where each relationship stands before you pick up the phone"
|
|
972
|
+
[NavSections]="NavSections"
|
|
973
|
+
[ActivePageId]="ActivePageId"
|
|
974
|
+
[Loading]="IsLoading"
|
|
975
|
+
[Error]="LoadError"
|
|
976
|
+
(PageSelected)="OnPageSelected($event)">
|
|
977
|
+
|
|
978
|
+
<div meta>
|
|
979
|
+
@if (LoadedAtDisplay) {
|
|
980
|
+
<span class="mj-chip mj-chip--outline" title="When this screen last read the database">
|
|
981
|
+
as of {{ LoadedAtDisplay }}
|
|
982
|
+
</span>
|
|
983
|
+
}
|
|
984
|
+
</div>
|
|
985
|
+
|
|
986
|
+
<div actions>
|
|
987
|
+
<button
|
|
988
|
+
type="button"
|
|
989
|
+
mjButton variant="outline"
|
|
990
|
+
(click)="RefreshActivePage()"
|
|
991
|
+
aria-label="Refresh this page">
|
|
992
|
+
<i class="fa-solid fa-arrow-rotate-right" aria-hidden="true"></i>
|
|
993
|
+
</button>
|
|
994
|
+
@if (primaryAction; as action) {
|
|
995
|
+
<button type="button" mjButton variant="primary" (click)="StartPrimary()">
|
|
996
|
+
<i [class]="action.Icon" aria-hidden="true"></i> {{ action.Label }}
|
|
997
|
+
</button>
|
|
998
|
+
}
|
|
999
|
+
</div>
|
|
1000
|
+
<ng-container #pageHost />
|
|
1001
|
+
</mjo-section-shell>
|
|
1002
|
+
`,
|
|
1003
|
+
}]
|
|
1004
|
+
}], null, null); })();
|
|
1005
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReceivablesSectionResource, { className: "ReceivablesSectionResource", filePath: "lib/sections/orders-sections.component.ts", lineNumber: 870 }); })();
|
|
1006
|
+
/* ────────────────────────────────────────────────────────────────────────────
|
|
1007
|
+
* Catalog
|
|
1008
|
+
* ──────────────────────────────────────────────────────────────────────────── */
|
|
1009
|
+
/**
|
|
1010
|
+
* The Catalog tab — where the behaviour every order inherits is configured.
|
|
1011
|
+
*
|
|
1012
|
+
* Product type decides revenue recognition, taxability, fulfillment and
|
|
1013
|
+
* recurrence, so this is the section that makes the order screens correct by
|
|
1014
|
+
* default instead of asking the user to restate it per line.
|
|
1015
|
+
*/
|
|
1016
|
+
let CatalogSectionResource = class CatalogSectionResource extends MJOSectionBaseComponent {
|
|
1017
|
+
get subPages() {
|
|
1018
|
+
return CATALOG_SUB_PAGES;
|
|
1019
|
+
}
|
|
1020
|
+
get preferenceKey() {
|
|
1021
|
+
return 'mjOrders.section.catalog.page';
|
|
1022
|
+
}
|
|
1023
|
+
get sectionTitle() {
|
|
1024
|
+
return 'Catalog';
|
|
1025
|
+
}
|
|
1026
|
+
get sectionIcon() {
|
|
1027
|
+
return 'fa-solid fa-box-open';
|
|
1028
|
+
}
|
|
1029
|
+
resolvePage(pageId) {
|
|
1030
|
+
switch (pageId) {
|
|
1031
|
+
case 'products':
|
|
1032
|
+
return MJOProductsPageComponent;
|
|
1033
|
+
case 'charges':
|
|
1034
|
+
return MJOChargesTaxPageComponent;
|
|
1035
|
+
case 'pricing':
|
|
1036
|
+
return MJOPricingPageComponent;
|
|
1037
|
+
case 'promotions':
|
|
1038
|
+
return MJOPromotionsPageComponent;
|
|
1039
|
+
default:
|
|
1040
|
+
return null;
|
|
1041
|
+
}
|
|
1042
|
+
}
|
|
1043
|
+
static ɵfac = /*@__PURE__*/ (() => { let ɵCatalogSectionResource_BaseFactory; return function CatalogSectionResource_Factory(__ngFactoryType__) { return (ɵCatalogSectionResource_BaseFactory || (ɵCatalogSectionResource_BaseFactory = i0.ɵɵgetInheritedFactory(CatalogSectionResource)))(__ngFactoryType__ || CatalogSectionResource); }; })();
|
|
1044
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CatalogSectionResource, selectors: [["mjo-catalog-section"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 9, vars: 6, consts: [["pageHost", ""], ["Title", "Catalog", "Icon", "fa-solid fa-box-open", "Subtitle", "Products, prices, promotions and the charges every order inherits", 3, "PageSelected", "NavSections", "ActivePageId", "Loading", "Error"], ["meta", ""], ["title", "When this screen last read the database", 1, "mj-chip", "mj-chip--outline"], ["actions", ""], ["type", "button", "mjButton", "", "variant", "outline", "aria-label", "Refresh this page", 3, "click"], ["aria-hidden", "true", 1, "fa-solid", "fa-arrow-rotate-right"], ["type", "button", "mjButton", "", "variant", "primary"], ["type", "button", "mjButton", "", "variant", "primary", 3, "click"], ["aria-hidden", "true"]], template: function CatalogSectionResource_Template(rf, ctx) { if (rf & 1) {
|
|
1045
|
+
const _r1 = i0.ɵɵgetCurrentView();
|
|
1046
|
+
i0.ɵɵelementStart(0, "mjo-section-shell", 1);
|
|
1047
|
+
i0.ɵɵlistener("PageSelected", function CatalogSectionResource_Template_mjo_section_shell_PageSelected_0_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.OnPageSelected($event)); });
|
|
1048
|
+
i0.ɵɵelementStart(1, "div", 2);
|
|
1049
|
+
i0.ɵɵconditionalCreate(2, CatalogSectionResource_Conditional_2_Template, 2, 1, "span", 3);
|
|
1050
|
+
i0.ɵɵelementEnd();
|
|
1051
|
+
i0.ɵɵelementStart(3, "div", 4)(4, "button", 5);
|
|
1052
|
+
i0.ɵɵlistener("click", function CatalogSectionResource_Template_button_click_4_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.RefreshActivePage()); });
|
|
1053
|
+
i0.ɵɵelement(5, "i", 6);
|
|
1054
|
+
i0.ɵɵelementEnd();
|
|
1055
|
+
i0.ɵɵconditionalCreate(6, CatalogSectionResource_Conditional_6_Template, 3, 3, "button", 7);
|
|
1056
|
+
i0.ɵɵelementEnd();
|
|
1057
|
+
i0.ɵɵelementContainer(7, null, 0);
|
|
1058
|
+
i0.ɵɵelementEnd();
|
|
1059
|
+
} if (rf & 2) {
|
|
1060
|
+
let tmp_6_0;
|
|
1061
|
+
i0.ɵɵproperty("NavSections", ctx.NavSections)("ActivePageId", ctx.ActivePageId)("Loading", ctx.IsLoading)("Error", ctx.LoadError);
|
|
1062
|
+
i0.ɵɵadvance(2);
|
|
1063
|
+
i0.ɵɵconditional(ctx.LoadedAtDisplay ? 2 : -1);
|
|
1064
|
+
i0.ɵɵadvance(4);
|
|
1065
|
+
i0.ɵɵconditional((tmp_6_0 = ctx.primaryAction) ? 6 : -1, tmp_6_0);
|
|
1066
|
+
} }, dependencies: [MJButtonDirective, CommonModule, MJOSectionShellComponent], encapsulation: 2 });
|
|
1067
|
+
};
|
|
1068
|
+
CatalogSectionResource = __decorate([
|
|
1069
|
+
RegisterClass(BaseResourceComponent, 'CatalogSectionResource')
|
|
1070
|
+
], CatalogSectionResource);
|
|
1071
|
+
export { CatalogSectionResource };
|
|
1072
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CatalogSectionResource, [{
|
|
1073
|
+
type: Component,
|
|
1074
|
+
args: [{
|
|
1075
|
+
selector: 'mjo-catalog-section',
|
|
1076
|
+
standalone: true,
|
|
1077
|
+
imports: [MJButtonDirective, CommonModule, MJOSectionShellComponent],
|
|
1078
|
+
template: `
|
|
1079
|
+
<mjo-section-shell
|
|
1080
|
+
Title="Catalog"
|
|
1081
|
+
Icon="fa-solid fa-box-open"
|
|
1082
|
+
Subtitle="Products, prices, promotions and the charges every order inherits"
|
|
1083
|
+
[NavSections]="NavSections"
|
|
1084
|
+
[ActivePageId]="ActivePageId"
|
|
1085
|
+
[Loading]="IsLoading"
|
|
1086
|
+
[Error]="LoadError"
|
|
1087
|
+
(PageSelected)="OnPageSelected($event)">
|
|
1088
|
+
|
|
1089
|
+
<div meta>
|
|
1090
|
+
@if (LoadedAtDisplay) {
|
|
1091
|
+
<span class="mj-chip mj-chip--outline" title="When this screen last read the database">
|
|
1092
|
+
as of {{ LoadedAtDisplay }}
|
|
1093
|
+
</span>
|
|
1094
|
+
}
|
|
1095
|
+
</div>
|
|
1096
|
+
|
|
1097
|
+
<div actions>
|
|
1098
|
+
<button
|
|
1099
|
+
type="button"
|
|
1100
|
+
mjButton variant="outline"
|
|
1101
|
+
(click)="RefreshActivePage()"
|
|
1102
|
+
aria-label="Refresh this page">
|
|
1103
|
+
<i class="fa-solid fa-arrow-rotate-right" aria-hidden="true"></i>
|
|
1104
|
+
</button>
|
|
1105
|
+
@if (primaryAction; as action) {
|
|
1106
|
+
<button type="button" mjButton variant="primary" (click)="StartPrimary()">
|
|
1107
|
+
<i [class]="action.Icon" aria-hidden="true"></i> {{ action.Label }}
|
|
1108
|
+
</button>
|
|
1109
|
+
}
|
|
1110
|
+
</div>
|
|
1111
|
+
<ng-container #pageHost />
|
|
1112
|
+
</mjo-section-shell>
|
|
1113
|
+
`,
|
|
1114
|
+
}]
|
|
1115
|
+
}], null, null); })();
|
|
1116
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CatalogSectionResource, { className: "CatalogSectionResource", filePath: "lib/sections/orders-sections.component.ts", lineNumber: 950 }); })();
|
|
1117
|
+
//# sourceMappingURL=orders-sections.component.js.map
|