@mj-biz-apps/orders-ng 5.46.0 → 5.47.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/custom/Product/widgets/product-accounting-widget.component.js +16 -17
- package/dist/lib/custom/Product/widgets/product-accounting-widget.component.js.map +1 -1
- package/dist/lib/custom/Product/widgets/product-effective-gl-accounts.component.d.ts +49 -24
- package/dist/lib/custom/Product/widgets/product-effective-gl-accounts.component.d.ts.map +1 -1
- package/dist/lib/custom/Product/widgets/product-effective-gl-accounts.component.js +229 -137
- package/dist/lib/custom/Product/widgets/product-effective-gl-accounts.component.js.map +1 -1
- package/dist/lib/custom/Product/widgets/product-gl-links.component.d.ts.map +1 -1
- package/dist/lib/custom/Product/widgets/product-gl-links.component.js +229 -183
- package/dist/lib/custom/Product/widgets/product-gl-links.component.js.map +1 -1
- package/dist/lib/custom/Product/widgets/product-pricing-widget.component.d.ts +138 -4
- package/dist/lib/custom/Product/widgets/product-pricing-widget.component.d.ts.map +1 -1
- package/dist/lib/custom/Product/widgets/product-pricing-widget.component.js +1485 -316
- package/dist/lib/custom/Product/widgets/product-pricing-widget.component.js.map +1 -1
- package/dist/lib/custom/currency-input.directive.d.ts +31 -0
- package/dist/lib/custom/currency-input.directive.d.ts.map +1 -0
- package/dist/lib/custom/currency-input.directive.js +121 -0
- package/dist/lib/custom/currency-input.directive.js.map +1 -0
- package/dist/lib/custom/custom-forms.module.d.ts +29 -28
- package/dist/lib/custom/custom-forms.module.d.ts.map +1 -1
- package/dist/lib/custom/custom-forms.module.js +7 -2
- package/dist/lib/custom/custom-forms.module.js.map +1 -1
- package/dist/lib/form-panels/catalog-overviews.panels.d.ts +11 -1
- package/dist/lib/form-panels/catalog-overviews.panels.d.ts.map +1 -1
- package/dist/lib/form-panels/catalog-overviews.panels.js +53 -42
- package/dist/lib/form-panels/catalog-overviews.panels.js.map +1 -1
- package/dist/lib/form-panels/commercial-overviews.panels.js +5 -5
- package/dist/lib/form-panels/document-forms.module.d.ts +1 -1
- package/dist/lib/form-panels/document-forms.module.d.ts.map +1 -1
- package/dist/lib/form-panels/document-forms.module.js +7 -4
- package/dist/lib/form-panels/document-forms.module.js.map +1 -1
- package/dist/lib/form-panels/document-hero.component.js +2 -2
- package/dist/lib/form-panels/document-overviews.panels.js +7 -7
- package/dist/lib/form-panels/lookup-headers.panels.js +10 -10
- package/dist/lib/form-panels/order-access-overrides.panel.js +2 -2
- package/dist/lib/form-panels/overview-cards.component.d.ts +2 -0
- package/dist/lib/form-panels/overview-cards.component.d.ts.map +1 -1
- package/dist/lib/form-panels/overview-cards.component.js +31 -25
- package/dist/lib/form-panels/overview-cards.component.js.map +1 -1
- package/dist/lib/form-panels/payment-header.panel.js +2 -2
- package/dist/lib/form-panels/price-list-header.panel.js +2 -2
- package/dist/lib/form-panels/product-header.panel.d.ts +5 -0
- package/dist/lib/form-panels/product-header.panel.d.ts.map +1 -1
- package/dist/lib/form-panels/product-header.panel.js +148 -83
- package/dist/lib/form-panels/product-header.panel.js.map +1 -1
- package/dist/lib/form-panels/product-widget.panels.d.ts +26 -7
- package/dist/lib/form-panels/product-widget.panels.d.ts.map +1 -1
- package/dist/lib/form-panels/product-widget.panels.js +124 -71
- package/dist/lib/form-panels/product-widget.panels.js.map +1 -1
- package/dist/lib/form-panels/promotion-header.panel.js +2 -2
- package/dist/lib/form-panels/subscription-header.panel.js +2 -2
- package/dist/lib/form-panels/subscription-revrec.panel.js +2 -2
- package/dist/lib/form-panels/subscription-term-header.panel.js +2 -2
- package/dist/lib/form-panels/subscription-term-revrec.panel.js +2 -2
- package/dist/lib/form-panels/subscription-terms.panel.js +2 -2
- package/dist/public-api.d.ts +1 -0
- package/dist/public-api.d.ts.map +1 -1
- package/dist/public-api.js +1 -0
- package/dist/public-api.js.map +1 -1
- package/package.json +2 -2
|
@@ -15,19 +15,19 @@ import * as i4 from "../custom/Product/widgets/product-accounting-widget.compone
|
|
|
15
15
|
import * as i5 from "./product-rev-rec-field.component.js";
|
|
16
16
|
import * as i6 from "../custom/Product/widgets/product-fulfillment-widget.component.js";
|
|
17
17
|
import * as i7 from "../custom/Product/widgets/product-subscription-widget.component.js";
|
|
18
|
-
function
|
|
18
|
+
function ProductAccountingPanel_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
19
19
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
20
|
-
i0.ɵɵelementStart(0, "mj-form-field",
|
|
21
|
-
i0.ɵɵlistener("Navigate", function
|
|
20
|
+
i0.ɵɵelementStart(0, "mj-form-field", 6);
|
|
21
|
+
i0.ɵɵlistener("Navigate", function ProductAccountingPanel_Conditional_2_Template_mj_form_field_Navigate_0_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.FormComponent.OnFormNavigate($event)); });
|
|
22
22
|
i0.ɵɵelementEnd();
|
|
23
23
|
} if (rf & 2) {
|
|
24
24
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
25
25
|
i0.ɵɵproperty("Record", ctx_r1.Record)("ShowLabel", true)("EditMode", ctx_r1.EditMode)("FormContext", ctx_r1.FormContext);
|
|
26
26
|
} }
|
|
27
|
-
function
|
|
27
|
+
function ProductAccountingPanel_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
28
28
|
const _r3 = i0.ɵɵgetCurrentView();
|
|
29
|
-
i0.ɵɵelementStart(0, "mjo-product-rev-rec-field",
|
|
30
|
-
i0.ɵɵlistener("Navigate", function
|
|
29
|
+
i0.ɵɵelementStart(0, "mjo-product-rev-rec-field", 7);
|
|
30
|
+
i0.ɵɵlistener("Navigate", function ProductAccountingPanel_Conditional_3_Template_mjo_product_rev_rec_field_Navigate_0_listener($event) { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.FormComponent.OnFormNavigate($event)); });
|
|
31
31
|
i0.ɵɵelementEnd();
|
|
32
32
|
} if (rf & 2) {
|
|
33
33
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
@@ -133,31 +133,26 @@ export { ProductPromosPanel };
|
|
|
133
133
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ProductPromosPanel, { className: "ProductPromosPanel", filePath: "lib/form-panels/product-widget.panels.ts", lineNumber: 68 }); })();
|
|
134
134
|
let ProductAccountingPanel = class ProductAccountingPanel extends BaseFormPanel {
|
|
135
135
|
static ɵfac = /*@__PURE__*/ (() => { let ɵProductAccountingPanel_BaseFactory; return function ProductAccountingPanel_Factory(__ngFactoryType__) { return (ɵProductAccountingPanel_BaseFactory || (ɵProductAccountingPanel_BaseFactory = i0.ɵɵgetInheritedFactory(ProductAccountingPanel)))(__ngFactoryType__ || ProductAccountingPanel); }; })();
|
|
136
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ProductAccountingPanel, selectors: [["mjo-product-accounting-panel"]], standalone: false, features: [i0.ɵɵInheritDefinitionFeature], decls:
|
|
136
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ProductAccountingPanel, selectors: [["mjo-product-accounting-panel"]], standalone: false, features: [i0.ɵɵInheritDefinitionFeature], decls: 6, vars: 16, consts: [["SectionKey", "accounting", "SectionName", "Accounting", "Icon", "fa-solid fa-book", 3, "Form", "FormContext"], [3, "Navigate", "Product", "EditMode", "FormContext"], ["FieldName", "RevenueRecognitionTypeID", "Type", "textbox", "LinkType", "Record", 3, "Record", "ShowLabel", "EditMode", "FormContext"], [3, "Record"], ["FieldName", "IsTaxable", "Type", "checkbox", 3, "Navigate", "Record", "ShowLabel", "EditMode", "FormContext", "HideWhenEmptyInReadOnlyMode"], ["FieldName", "TaxCategory", "Type", "textbox", 3, "Navigate", "Record", "ShowLabel", "EditMode", "FormContext", "HideWhenEmptyInReadOnlyMode"], ["FieldName", "RevenueRecognitionTypeID", "Type", "textbox", "LinkType", "Record", 3, "Navigate", "Record", "ShowLabel", "EditMode", "FormContext"], [3, "Navigate", "Record"]], template: function ProductAccountingPanel_Template(rf, ctx) { if (rf & 1) {
|
|
137
137
|
i0.ɵɵelementStart(0, "mj-collapsible-panel", 0)(1, "bizapps-product-accounting-widget", 1);
|
|
138
138
|
i0.ɵɵlistener("Navigate", function ProductAccountingPanel_Template_bizapps_product_accounting_widget_Navigate_1_listener($event) { return ctx.FormComponent.OnFormNavigate($event); });
|
|
139
|
-
i0.ɵɵ
|
|
140
|
-
i0.ɵɵ
|
|
139
|
+
i0.ɵɵconditionalCreate(2, ProductAccountingPanel_Conditional_2_Template, 1, 4, "mj-form-field", 2)(3, ProductAccountingPanel_Conditional_3_Template, 1, 1, "mjo-product-rev-rec-field", 3);
|
|
140
|
+
i0.ɵɵelementStart(4, "mj-form-field", 4);
|
|
141
|
+
i0.ɵɵlistener("Navigate", function ProductAccountingPanel_Template_mj_form_field_Navigate_4_listener($event) { return ctx.FormComponent.OnFormNavigate($event); });
|
|
141
142
|
i0.ɵɵelementEnd();
|
|
142
|
-
i0.ɵɵconditionalCreate(3, ProductAccountingPanel_Conditional_3_Template, 1, 4, "mj-form-field", 3)(4, ProductAccountingPanel_Conditional_4_Template, 1, 1, "mjo-product-rev-rec-field", 4);
|
|
143
143
|
i0.ɵɵelementStart(5, "mj-form-field", 5);
|
|
144
144
|
i0.ɵɵlistener("Navigate", function ProductAccountingPanel_Template_mj_form_field_Navigate_5_listener($event) { return ctx.FormComponent.OnFormNavigate($event); });
|
|
145
|
-
i0.ɵɵelementEnd();
|
|
146
|
-
i0.ɵɵelementStart(6, "mj-form-field", 6);
|
|
147
|
-
i0.ɵɵlistener("Navigate", function ProductAccountingPanel_Template_mj_form_field_Navigate_6_listener($event) { return ctx.FormComponent.OnFormNavigate($event); });
|
|
148
145
|
i0.ɵɵelementEnd()()();
|
|
149
146
|
} if (rf & 2) {
|
|
150
147
|
i0.ɵɵproperty("Form", ctx.FormComponent)("FormContext", ctx.FormContext);
|
|
151
148
|
i0.ɵɵadvance();
|
|
152
149
|
i0.ɵɵproperty("Product", ctx.Record)("EditMode", ctx.EditMode)("FormContext", ctx.FormContext);
|
|
153
150
|
i0.ɵɵadvance();
|
|
154
|
-
i0.ɵɵ
|
|
155
|
-
i0.ɵɵadvance();
|
|
156
|
-
i0.ɵɵconditional(ctx.EditMode ? 3 : 4);
|
|
151
|
+
i0.ɵɵconditional(ctx.EditMode ? 2 : 3);
|
|
157
152
|
i0.ɵɵadvance(2);
|
|
158
|
-
i0.ɵɵproperty("Record", ctx.Record)("ShowLabel", true)("EditMode", ctx.EditMode)("FormContext", ctx.FormContext);
|
|
153
|
+
i0.ɵɵproperty("Record", ctx.Record)("ShowLabel", true)("EditMode", ctx.EditMode)("FormContext", ctx.FormContext)("HideWhenEmptyInReadOnlyMode", false);
|
|
159
154
|
i0.ɵɵadvance();
|
|
160
|
-
i0.ɵɵproperty("Record", ctx.Record)("ShowLabel", true)("EditMode", ctx.EditMode)("FormContext", ctx.FormContext);
|
|
155
|
+
i0.ɵɵproperty("Record", ctx.Record)("ShowLabel", true)("EditMode", ctx.EditMode)("FormContext", ctx.FormContext)("HideWhenEmptyInReadOnlyMode", false);
|
|
161
156
|
} }, dependencies: [i1.MjFormFieldComponent, i1.MjCollapsiblePanelComponent, i4.BizAppsProductAccountingWidgetComponent, i5.MJOProductRevRecFieldComponent], encapsulation: 2 });
|
|
162
157
|
};
|
|
163
158
|
ProductAccountingPanel = __decorate([
|
|
@@ -169,9 +164,9 @@ ProductAccountingPanel = __decorate([
|
|
|
169
164
|
sortKey: 60,
|
|
170
165
|
contributionKey: 'accounting',
|
|
171
166
|
// Claims the generated `financialAndAccounting` section, which rendered the same
|
|
172
|
-
// Rev-Rec / IsTaxable / TaxCategory fields a second time. CompanyID
|
|
173
|
-
// panel
|
|
174
|
-
//
|
|
167
|
+
// Rev-Rec / IsTaxable / TaxCategory fields a second time. CompanyID renders in the
|
|
168
|
+
// Details panel; StandaloneSellingPrice is deliberately deprecated off generated forms
|
|
169
|
+
// and is not carried over.
|
|
175
170
|
replacesSectionKey: 'financialAndAccounting',
|
|
176
171
|
},
|
|
177
172
|
})
|
|
@@ -191,11 +186,11 @@ export { ProductAccountingPanel };
|
|
|
191
186
|
// RevenueRecognitionTypeID sat empty and red (golive #255).
|
|
192
187
|
//
|
|
193
188
|
// This used to keep its fields in the widget so the panel could never hide-when-empty
|
|
194
|
-
// and take the GL links with it. That is not a risk:
|
|
195
|
-
// RevenueRecognitionTypeID
|
|
189
|
+
// and take the GL links with it. That is not a risk: IsTaxable is a NOT NULL bit and
|
|
190
|
+
// RevenueRecognitionTypeID is NOT NULL, so a saved record always has a renderable field
|
|
196
191
|
// here, and an unsaved one opens in edit mode where fields render regardless. In read mode
|
|
197
192
|
// RevenueRecognitionTypeID renders as mjo-product-rev-rec-field instead, which leaves
|
|
198
|
-
//
|
|
193
|
+
// IsTaxable as the field the section always sees.
|
|
199
194
|
template: `
|
|
200
195
|
<mj-collapsible-panel
|
|
201
196
|
SectionKey="accounting"
|
|
@@ -208,16 +203,6 @@ export { ProductAccountingPanel };
|
|
|
208
203
|
[EditMode]="EditMode"
|
|
209
204
|
[FormContext]="FormContext"
|
|
210
205
|
(Navigate)="FormComponent.OnFormNavigate($event)">
|
|
211
|
-
<mj-form-field
|
|
212
|
-
[Record]="Record"
|
|
213
|
-
[ShowLabel]="true"
|
|
214
|
-
FieldName="CompanyID"
|
|
215
|
-
Type="textbox"
|
|
216
|
-
[EditMode]="EditMode"
|
|
217
|
-
[FormContext]="FormContext"
|
|
218
|
-
LinkType="Record"
|
|
219
|
-
(Navigate)="FormComponent.OnFormNavigate($event)">
|
|
220
|
-
</mj-form-field>
|
|
221
206
|
<!-- Read mode shows the name resolved by id, the value the header shows, instead of
|
|
222
207
|
the record's virtual name, which can lag the id (bc-aidp-next-golive#436). -->
|
|
223
208
|
@if (EditMode) {
|
|
@@ -237,6 +222,13 @@ export { ProductAccountingPanel };
|
|
|
237
222
|
(Navigate)="FormComponent.OnFormNavigate($event)">
|
|
238
223
|
</mjo-product-rev-rec-field>
|
|
239
224
|
}
|
|
225
|
+
<!--
|
|
226
|
+
Never hidden when empty: with CompanyID gone to Details and RevenueRecognitionTypeID
|
|
227
|
+
rendered by mjo-product-rev-rec-field in read mode, these two are the only
|
|
228
|
+
mj-form-fields the section projects. A section whose every projected field hides
|
|
229
|
+
as empty hides itself and drops off the rail, GL cards and all. A tax status is
|
|
230
|
+
also worth reading when it is "not taxable" or has no category.
|
|
231
|
+
-->
|
|
240
232
|
<mj-form-field
|
|
241
233
|
[Record]="Record"
|
|
242
234
|
[ShowLabel]="true"
|
|
@@ -244,6 +236,7 @@ export { ProductAccountingPanel };
|
|
|
244
236
|
Type="checkbox"
|
|
245
237
|
[EditMode]="EditMode"
|
|
246
238
|
[FormContext]="FormContext"
|
|
239
|
+
[HideWhenEmptyInReadOnlyMode]="false"
|
|
247
240
|
(Navigate)="FormComponent.OnFormNavigate($event)">
|
|
248
241
|
</mj-form-field>
|
|
249
242
|
<mj-form-field
|
|
@@ -253,6 +246,7 @@ export { ProductAccountingPanel };
|
|
|
253
246
|
Type="textbox"
|
|
254
247
|
[EditMode]="EditMode"
|
|
255
248
|
[FormContext]="FormContext"
|
|
249
|
+
[HideWhenEmptyInReadOnlyMode]="false"
|
|
256
250
|
(Navigate)="FormComponent.OnFormNavigate($event)">
|
|
257
251
|
</mj-form-field>
|
|
258
252
|
</bizapps-product-accounting-widget>
|
|
@@ -260,7 +254,7 @@ export { ProductAccountingPanel };
|
|
|
260
254
|
`,
|
|
261
255
|
}]
|
|
262
256
|
}], null, null); })();
|
|
263
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ProductAccountingPanel, { className: "ProductAccountingPanel", filePath: "lib/form-panels/product-widget.panels.ts", lineNumber:
|
|
257
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ProductAccountingPanel, { className: "ProductAccountingPanel", filePath: "lib/form-panels/product-widget.panels.ts", lineNumber: 163 }); })();
|
|
264
258
|
let ProductFulfillmentPanel = class ProductFulfillmentPanel extends BaseFormPanel {
|
|
265
259
|
static ɵfac = /*@__PURE__*/ (() => { let ɵProductFulfillmentPanel_BaseFactory; return function ProductFulfillmentPanel_Factory(__ngFactoryType__) { return (ɵProductFulfillmentPanel_BaseFactory || (ɵProductFulfillmentPanel_BaseFactory = i0.ɵɵgetInheritedFactory(ProductFulfillmentPanel)))(__ngFactoryType__ || ProductFulfillmentPanel); }; })();
|
|
266
260
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ProductFulfillmentPanel, selectors: [["mjo-product-fulfillment-panel"]], standalone: false, features: [i0.ɵɵInheritDefinitionFeature], decls: 6, vars: 18, consts: [["SectionKey", "fulfillment", "SectionName", "Fulfillment", "Icon", "fa-solid fa-truck", 3, "Form", "FormContext"], ["FieldName", "EntitlementGrantTiming", "Type", "select", 3, "Navigate", "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "EntitlementQuantityMode", "Type", "select", 3, "Navigate", "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "EntitlementValidityMode", "Type", "select", 3, "Navigate", "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "SuccessorProductID", "Type", "textbox", "LinkType", "Record", 3, "Navigate", "Record", "ShowLabel", "EditMode", "FormContext"]], template: function ProductFulfillmentPanel_Template(rf, ctx) { if (rf & 1) {
|
|
@@ -360,29 +354,41 @@ export { ProductFulfillmentPanel };
|
|
|
360
354
|
`,
|
|
361
355
|
}]
|
|
362
356
|
}], null, null); })();
|
|
363
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ProductFulfillmentPanel, { className: "ProductFulfillmentPanel", filePath: "lib/form-panels/product-widget.panels.ts", lineNumber:
|
|
357
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ProductFulfillmentPanel, { className: "ProductFulfillmentPanel", filePath: "lib/form-panels/product-widget.panels.ts", lineNumber: 231 }); })();
|
|
364
358
|
/**
|
|
365
|
-
*
|
|
359
|
+
* Details: the selling company, Status, the availability window and IsSellableNew.
|
|
366
360
|
*
|
|
367
361
|
* Status decides whether a product is sellable: the deal and order pickers show Active products
|
|
368
|
-
* only. It sat under Fulfillment, where nobody looked for it,
|
|
369
|
-
*
|
|
370
|
-
*
|
|
362
|
+
* only. It sat under Fulfillment, where nobody looked for it (golive#433), then in a Lifecycle
|
|
363
|
+
* panel of its own. It now sits with the company and the dates in one Details panel, directly
|
|
364
|
+
* under the header. The header's Draft banner activates in one click; this is where any other
|
|
365
|
+
* status is set.
|
|
366
|
+
*
|
|
367
|
+
* WHY THIS CLAIMS `details` AND A SECOND PANEL CLAIMS `catalogLifecycle`. CodeGen emits a
|
|
368
|
+
* `details` section with no fields for Products, and mj-collapsible-panel hides a section only
|
|
369
|
+
* when every field it projects is unreadable, never when it projects none, so the generated
|
|
370
|
+
* Details rendered as an empty panel. Claiming it puts this panel in its place. The generated
|
|
371
|
+
* `catalogLifecycle` section still has to be claimed or Status and the dates render twice, and
|
|
372
|
+
* on MJ 6.1 a panel claims ONE section (`replacesSectionKeys` arrives in 6.2), so
|
|
373
|
+
* `ProductLifecycleClaimPanel` below claims it and renders nothing.
|
|
371
374
|
*/
|
|
372
|
-
let
|
|
373
|
-
static ɵfac = /*@__PURE__*/ (() => { let ɵ
|
|
374
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type:
|
|
375
|
+
let ProductDetailsPanel = class ProductDetailsPanel extends BaseFormPanel {
|
|
376
|
+
static ɵfac = /*@__PURE__*/ (() => { let ɵProductDetailsPanel_BaseFactory; return function ProductDetailsPanel_Factory(__ngFactoryType__) { return (ɵProductDetailsPanel_BaseFactory || (ɵProductDetailsPanel_BaseFactory = i0.ɵɵgetInheritedFactory(ProductDetailsPanel)))(__ngFactoryType__ || ProductDetailsPanel); }; })();
|
|
377
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ProductDetailsPanel, selectors: [["mjo-product-details-panel"]], standalone: false, features: [i0.ɵɵInheritDefinitionFeature], decls: 6, vars: 22, consts: [["SectionKey", "productDetails", "SectionName", "Details", "Icon", "fa-solid fa-circle-info", 3, "Form", "FormContext"], ["FieldName", "Status", "Type", "select", 3, "Navigate", "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "CompanyID", "Type", "textbox", "LinkType", "Record", 3, "Navigate", "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "IsSellableNew", "Type", "checkbox", 3, "Navigate", "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "AvailableFrom", "Type", "datepicker", 3, "Navigate", "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "AvailableTo", "Type", "datepicker", 3, "Navigate", "Record", "ShowLabel", "EditMode", "FormContext"]], template: function ProductDetailsPanel_Template(rf, ctx) { if (rf & 1) {
|
|
375
378
|
i0.ɵɵelementStart(0, "mj-collapsible-panel", 0)(1, "mj-form-field", 1);
|
|
376
|
-
i0.ɵɵlistener("Navigate", function
|
|
379
|
+
i0.ɵɵlistener("Navigate", function ProductDetailsPanel_Template_mj_form_field_Navigate_1_listener($event) { return ctx.FormComponent.OnFormNavigate($event); });
|
|
377
380
|
i0.ɵɵelementEnd();
|
|
378
381
|
i0.ɵɵelementStart(2, "mj-form-field", 2);
|
|
379
|
-
i0.ɵɵlistener("Navigate", function
|
|
382
|
+
i0.ɵɵlistener("Navigate", function ProductDetailsPanel_Template_mj_form_field_Navigate_2_listener($event) { return ctx.FormComponent.OnFormNavigate($event); });
|
|
380
383
|
i0.ɵɵelementEnd();
|
|
381
384
|
i0.ɵɵelementStart(3, "mj-form-field", 3);
|
|
382
|
-
i0.ɵɵlistener("Navigate", function
|
|
385
|
+
i0.ɵɵlistener("Navigate", function ProductDetailsPanel_Template_mj_form_field_Navigate_3_listener($event) { return ctx.FormComponent.OnFormNavigate($event); });
|
|
383
386
|
i0.ɵɵelementEnd();
|
|
384
387
|
i0.ɵɵelementStart(4, "mj-form-field", 4);
|
|
385
|
-
i0.ɵɵlistener("Navigate", function
|
|
388
|
+
i0.ɵɵlistener("Navigate", function ProductDetailsPanel_Template_mj_form_field_Navigate_4_listener($event) { return ctx.FormComponent.OnFormNavigate($event); });
|
|
389
|
+
i0.ɵɵelementEnd();
|
|
390
|
+
i0.ɵɵelementStart(5, "mj-form-field", 5);
|
|
391
|
+
i0.ɵɵlistener("Navigate", function ProductDetailsPanel_Template_mj_form_field_Navigate_5_listener($event) { return ctx.FormComponent.OnFormNavigate($event); });
|
|
386
392
|
i0.ɵɵelementEnd()();
|
|
387
393
|
} if (rf & 2) {
|
|
388
394
|
i0.ɵɵproperty("Form", ctx.FormComponent)("FormContext", ctx.FormContext);
|
|
@@ -394,34 +400,39 @@ let ProductLifecyclePanel = class ProductLifecyclePanel extends BaseFormPanel {
|
|
|
394
400
|
i0.ɵɵproperty("Record", ctx.Record)("ShowLabel", true)("EditMode", ctx.EditMode)("FormContext", ctx.FormContext);
|
|
395
401
|
i0.ɵɵadvance();
|
|
396
402
|
i0.ɵɵproperty("Record", ctx.Record)("ShowLabel", true)("EditMode", ctx.EditMode)("FormContext", ctx.FormContext);
|
|
403
|
+
i0.ɵɵadvance();
|
|
404
|
+
i0.ɵɵproperty("Record", ctx.Record)("ShowLabel", true)("EditMode", ctx.EditMode)("FormContext", ctx.FormContext);
|
|
397
405
|
} }, dependencies: [i1.MjFormFieldComponent, i1.MjCollapsiblePanelComponent], encapsulation: 2 });
|
|
398
406
|
};
|
|
399
|
-
|
|
407
|
+
ProductDetailsPanel = __decorate([
|
|
400
408
|
RegisterClassEx(BaseFormPanel, {
|
|
401
|
-
key: 'form-panel:Products:
|
|
409
|
+
key: 'form-panel:Products:details',
|
|
402
410
|
metadata: {
|
|
403
411
|
entity: 'MJ_BizApps_Orders: Products',
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
replacesSectionKey: 'catalogLifecycle',
|
|
412
|
+
// Right under the header, above the generated Product Classification section.
|
|
413
|
+
slot: 'before-fields',
|
|
414
|
+
sortKey: 200,
|
|
415
|
+
contributionKey: 'details',
|
|
416
|
+
replacesSectionKey: 'details',
|
|
410
417
|
},
|
|
411
418
|
})
|
|
412
|
-
],
|
|
413
|
-
export {
|
|
414
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(
|
|
419
|
+
], ProductDetailsPanel);
|
|
420
|
+
export { ProductDetailsPanel };
|
|
421
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ProductDetailsPanel, [{
|
|
415
422
|
type: Component,
|
|
416
423
|
args: [{
|
|
417
424
|
standalone: false,
|
|
418
|
-
selector: 'mjo-product-
|
|
425
|
+
selector: 'mjo-product-details-panel',
|
|
419
426
|
// Declared directly under mj-collapsible-panel so its hide-when-empty check sees them (golive#184).
|
|
420
427
|
template: `
|
|
428
|
+
<!--
|
|
429
|
+
SectionKey is NOT "details": the form hides every section whose key a panel claims, and
|
|
430
|
+
this panel claims the generated "details", so sharing the key would hide this panel too.
|
|
431
|
+
-->
|
|
421
432
|
<mj-collapsible-panel
|
|
422
|
-
SectionKey="
|
|
423
|
-
SectionName="
|
|
424
|
-
Icon="fa-solid fa-
|
|
433
|
+
SectionKey="productDetails"
|
|
434
|
+
SectionName="Details"
|
|
435
|
+
Icon="fa-solid fa-circle-info"
|
|
425
436
|
[Form]="FormComponent"
|
|
426
437
|
[FormContext]="FormContext">
|
|
427
438
|
<mj-form-field
|
|
@@ -436,28 +447,38 @@ export { ProductLifecyclePanel };
|
|
|
436
447
|
<mj-form-field
|
|
437
448
|
[Record]="Record"
|
|
438
449
|
[ShowLabel]="true"
|
|
439
|
-
FieldName="
|
|
440
|
-
Type="
|
|
450
|
+
FieldName="CompanyID"
|
|
451
|
+
Type="textbox"
|
|
441
452
|
[EditMode]="EditMode"
|
|
442
453
|
[FormContext]="FormContext"
|
|
454
|
+
LinkType="Record"
|
|
443
455
|
(Navigate)="FormComponent.OnFormNavigate($event)">
|
|
444
456
|
</mj-form-field>
|
|
457
|
+
<!-- Off for products kept for existing orders, imports and renewals: the add-product
|
|
458
|
+
pickers stop offering them, and pricing still accepts them (golive#360). -->
|
|
445
459
|
<mj-form-field
|
|
446
460
|
[Record]="Record"
|
|
447
461
|
[ShowLabel]="true"
|
|
448
|
-
FieldName="
|
|
462
|
+
FieldName="IsSellableNew"
|
|
463
|
+
Type="checkbox"
|
|
464
|
+
[EditMode]="EditMode"
|
|
465
|
+
[FormContext]="FormContext"
|
|
466
|
+
(Navigate)="FormComponent.OnFormNavigate($event)">
|
|
467
|
+
</mj-form-field>
|
|
468
|
+
<mj-form-field
|
|
469
|
+
[Record]="Record"
|
|
470
|
+
[ShowLabel]="true"
|
|
471
|
+
FieldName="AvailableFrom"
|
|
449
472
|
Type="datepicker"
|
|
450
473
|
[EditMode]="EditMode"
|
|
451
474
|
[FormContext]="FormContext"
|
|
452
475
|
(Navigate)="FormComponent.OnFormNavigate($event)">
|
|
453
476
|
</mj-form-field>
|
|
454
|
-
<!-- Off for products kept for existing orders, imports and renewals: the add-product
|
|
455
|
-
pickers stop offering them, and pricing still accepts them (golive#360). -->
|
|
456
477
|
<mj-form-field
|
|
457
478
|
[Record]="Record"
|
|
458
479
|
[ShowLabel]="true"
|
|
459
|
-
FieldName="
|
|
460
|
-
Type="
|
|
480
|
+
FieldName="AvailableTo"
|
|
481
|
+
Type="datepicker"
|
|
461
482
|
[EditMode]="EditMode"
|
|
462
483
|
[FormContext]="FormContext"
|
|
463
484
|
(Navigate)="FormComponent.OnFormNavigate($event)">
|
|
@@ -466,7 +487,39 @@ export { ProductLifecyclePanel };
|
|
|
466
487
|
`,
|
|
467
488
|
}]
|
|
468
489
|
}], null, null); })();
|
|
469
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(
|
|
490
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ProductDetailsPanel, { className: "ProductDetailsPanel", filePath: "lib/form-panels/product-widget.panels.ts", lineNumber: 327 }); })();
|
|
491
|
+
/**
|
|
492
|
+
* Claims the generated `catalogLifecycle` section and renders nothing: its fields live in
|
|
493
|
+
* `ProductDetailsPanel`, which already claims the generated `details` section, and a panel can
|
|
494
|
+
* claim one section on MJ 6.1. Remove this and claim both from the Details panel with
|
|
495
|
+
* `replacesSectionKeys` once the host runs 6.2.
|
|
496
|
+
*/
|
|
497
|
+
let ProductLifecycleClaimPanel = class ProductLifecycleClaimPanel extends BaseFormPanel {
|
|
498
|
+
static ɵfac = /*@__PURE__*/ (() => { let ɵProductLifecycleClaimPanel_BaseFactory; return function ProductLifecycleClaimPanel_Factory(__ngFactoryType__) { return (ɵProductLifecycleClaimPanel_BaseFactory || (ɵProductLifecycleClaimPanel_BaseFactory = i0.ɵɵgetInheritedFactory(ProductLifecycleClaimPanel)))(__ngFactoryType__ || ProductLifecycleClaimPanel); }; })();
|
|
499
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ProductLifecycleClaimPanel, selectors: [["mjo-product-lifecycle-claim-panel"]], standalone: false, features: [i0.ɵɵInheritDefinitionFeature], decls: 0, vars: 0, template: function ProductLifecycleClaimPanel_Template(rf, ctx) { }, encapsulation: 2 });
|
|
500
|
+
};
|
|
501
|
+
ProductLifecycleClaimPanel = __decorate([
|
|
502
|
+
RegisterClassEx(BaseFormPanel, {
|
|
503
|
+
key: 'form-panel:Products:lifecycle',
|
|
504
|
+
metadata: {
|
|
505
|
+
entity: 'MJ_BizApps_Orders: Products',
|
|
506
|
+
slot: 'after-fields',
|
|
507
|
+
sortKey: 95,
|
|
508
|
+
contributionKey: 'lifecycle',
|
|
509
|
+
replacesSectionKey: 'catalogLifecycle',
|
|
510
|
+
},
|
|
511
|
+
})
|
|
512
|
+
], ProductLifecycleClaimPanel);
|
|
513
|
+
export { ProductLifecycleClaimPanel };
|
|
514
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ProductLifecycleClaimPanel, [{
|
|
515
|
+
type: Component,
|
|
516
|
+
args: [{
|
|
517
|
+
standalone: false,
|
|
518
|
+
selector: 'mjo-product-lifecycle-claim-panel',
|
|
519
|
+
template: '',
|
|
520
|
+
}]
|
|
521
|
+
}], null, null); })();
|
|
522
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ProductLifecycleClaimPanel, { className: "ProductLifecycleClaimPanel", filePath: "lib/form-panels/product-widget.panels.ts", lineNumber: 350 }); })();
|
|
470
523
|
let ProductSubscriptionsPanel = class ProductSubscriptionsPanel extends BaseFormPanel {
|
|
471
524
|
static ɵfac = /*@__PURE__*/ (() => { let ɵProductSubscriptionsPanel_BaseFactory; return function ProductSubscriptionsPanel_Factory(__ngFactoryType__) { return (ɵProductSubscriptionsPanel_BaseFactory || (ɵProductSubscriptionsPanel_BaseFactory = i0.ɵɵgetInheritedFactory(ProductSubscriptionsPanel)))(__ngFactoryType__ || ProductSubscriptionsPanel); }; })();
|
|
472
525
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ProductSubscriptionsPanel, selectors: [["mjo-product-subscriptions-panel"]], standalone: false, features: [i0.ɵɵInheritDefinitionFeature], decls: 6, vars: 18, consts: [["SectionKey", "subscriptions", "SectionName", "Subscription", "Icon", "fa-solid fa-repeat", 3, "Form", "FormContext"], ["FieldName", "SubscriptionTypeID", "Type", "textbox", "LinkType", "Record", 3, "Navigate", "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "SubscriptionFamilyID", "Type", "textbox", "LinkType", "Record", 3, "Navigate", "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "EntitlementValidityMode", "Type", "select", 3, "Navigate", "Record", "ShowLabel", "EditMode", "FormContext"], ["FieldName", "RenewalIncreasePercent", "Type", "number", 3, "Navigate", "Record", "ShowLabel", "EditMode", "FormContext"]], template: function ProductSubscriptionsPanel_Template(rf, ctx) { if (rf & 1) {
|
|
@@ -570,5 +623,5 @@ export { ProductSubscriptionsPanel };
|
|
|
570
623
|
`,
|
|
571
624
|
}]
|
|
572
625
|
}], null, null); })();
|
|
573
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ProductSubscriptionsPanel, { className: "ProductSubscriptionsPanel", filePath: "lib/form-panels/product-widget.panels.ts", lineNumber:
|
|
626
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ProductSubscriptionsPanel, { className: "ProductSubscriptionsPanel", filePath: "lib/form-panels/product-widget.panels.ts", lineNumber: 422 }); })();
|
|
574
627
|
//# sourceMappingURL=product-widget.panels.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product-widget.panels.js","sourceRoot":"","sources":["../../../src/lib/form-panels/product-widget.panels.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"product-widget.panels.js","sourceRoot":"","sources":["../../../src/lib/form-panels/product-widget.panels.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;;;;;;;;;;;IAiH1C,wCAQsD;IAAlD,6MAAY,2CAAoC,KAAC;IACrD,iBAAgB;;;IAHZ,AADA,AAHA,AADA,sCAAiB,mBACC,6BAGG,mCACM;;;;IAK/B,oDAEsD;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YACrD,iBAAgB;YAChB,wCAOsD;YAAlD,yHAAY,wCAAoC,IAAC;YAG7D,AADI,AADI,iBAAgB,EACkB,EACnB;;YA3CnB,AADA,wCAAsB,gCACK;YAGnB,eAAiB;YAKjB,AADA,AAHA,AADA,mCAAiB,mBACC,0BAGG,gCACM;YAO3B,cAAiB;YAKjB,AADA,AAHA,AADA,mCAAiB,mBACC,0BAGG,gCACM;YAK3B,cAAiB;YAKjB,AADA,AAHA,AADA,mCAAiB,mBACC,0BAGG,gCACM;YAI3B,cAAiB;YAKjB,AADA,AAHA,AADA,mCAAiB,mBACC,0BAGG,gCACM;;;AAOlC,yBAAyB;IAtErC,eAAe,CAAC,aAAa,EAAE;QAC5B,GAAG,EAAE,mCAAmC;QACxC,QAAQ,EAAE;YACN,MAAM,EAAE,6BAA6B;YACrC,IAAI,EAAE,cAAc;YACpB,OAAO,EAAE,EAAE;YACX,eAAe,EAAE,eAAe;YAChC,qFAAqF;YACrF,qEAAqE;YACrE,kBAAkB,EAAE,6BAA6B;SACpD;KACJ,CAAC;GA2DW,yBAAyB,CAAuD;;iFAAhF,yBAAyB;cA1DrC,SAAS;eAAC;gBACP,UAAU,EAAE,KAAK;gBACjB,QAAQ,EAAE,iCAAiC;gBAC3C,kEAAkE;gBAClE,8EAA8E;gBAC9E,kEAAkE;gBAClE,QAAQ,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAkDT;aACJ;;kFACY,yBAAyB"}
|
|
@@ -90,7 +90,7 @@ let PromotionHeaderPanel = class PromotionHeaderPanel extends BaseFormPanel {
|
|
|
90
90
|
i0.ɵɵtextInterpolate(ctx.Schedule);
|
|
91
91
|
i0.ɵɵadvance(5);
|
|
92
92
|
i0.ɵɵtextInterpolate(ctx.MaxUses);
|
|
93
|
-
} }, styles: [".mjo-doc-hero[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: var(--mj-space-4);\n padding: var(--mj-space-4) var(--mj-space-5);\n margin-bottom: var(--mj-space-4);\n background: var(--mj-bg-surface-card);\n border: 1px solid var(--mj-border-default);\n border-radius: var(--mj-radius-lg);\n box-shadow: var(--mj-shadow-sm, 0 1px 3px rgba(0, 0, 0, 0.04));\n}\n\n.mjo-doc-hero__identity[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: var(--mj-space-4);\n min-width: 0;\n}\n\n.mjo-doc-hero__avatar[_ngcontent-%COMP%] {\n flex: none;\n width: 52px;\n height: 52px;\n border-radius: var(--mj-radius-md);\n display: flex;\n align-items: center;\n justify-content: center;\n background: color-mix(in srgb, var(--mj-brand-primary) 18%, var(--mj-bg-surface));\n color: var(--mj-brand-primary);\n font-size: 1.25rem;\n}\n\n.mjo-doc-hero__avatar--reverse[_ngcontent-%COMP%] {\n background: color-mix(in srgb, var(--mj-status-warning) 22%, var(--mj-bg-surface));\n color: var(--mj-status-warning-text);\n}\n\n.mjo-doc-hero__copy[_ngcontent-%COMP%] {\n min-width: 0;\n flex: 1;\n}\n\n.mjo-doc-hero__title-row[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n flex-wrap: wrap;\n gap: var(--mj-space-2) var(--mj-space-3);\n}\n\n.mjo-doc-hero__title[_ngcontent-%COMP%] {\n margin: 0;\n font-size: var(--mj-text-lg);\n font-weight: 700;\n color: var(--mj-text-primary);\n line-height: 1.25;\n}\n\n.mjo-doc-hero__meta[_ngcontent-%COMP%] {\n display: flex;\n flex-wrap: wrap;\n gap: var(--mj-space-3);\n color: var(--mj-text-secondary);\n font-size: var(--mj-text-sm);\n}\n\n.mjo-doc-hero__stats[_ngcontent-%COMP%] {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));\n gap: var(--mj-space-3);\n}\n\n.mjo-doc-stat[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: 2px;\n min-width: 0;\n}\n\n.mjo-doc-stat__label[_ngcontent-%COMP%] {\n font-size: var(--mj-text-xs);\n font-weight: 600;\n letter-spacing: 0.04em;\n text-transform: uppercase;\n color: var(--mj-text-muted);\n}\n\n.mjo-doc-stat__value[_ngcontent-%COMP%] {\n font-size: var(--mj-text-base);\n font-weight: 650;\n color: var(--mj-text-primary);\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.mjo-doc-chip[_ngcontent-%COMP%] {\n display: inline-flex;\n align-items: center;\n gap: 4px;\n padding: 2px 8px;\n border-radius: var(--mj-radius-sm);\n font-size: var(--mj-text-xs);\n font-weight: 600;\n background: var(--mj-bg-surface-sunken);\n color: var(--mj-text-secondary);\n}\n\n.mjo-doc-chip--ok[_ngcontent-%COMP%] {\n background: var(--mj-status-success-bg);\n color: var(--mj-status-success-text);\n}\n\n.mjo-doc-chip--draft[_ngcontent-%COMP%] {\n background: var(--mj-bg-surface-sunken);\n color: var(--mj-text-secondary);\n}\n\n.mjo-doc-chip--error[_ngcontent-%COMP%] {\n background: var(--mj-status-error-bg);\n color: var(--mj-status-error-text);\n}\n\n.mjo-doc-chip--warn[_ngcontent-%COMP%] {\n background: var(--mj-status-warning-bg);\n color: var(--mj-status-warning-text);\n}\n\n.mjo-doc-chip--info[_ngcontent-%COMP%] {\n background: var(--mj-status-info-bg);\n color: var(--mj-status-info-text);\n}\n\n.mjo-doc-chip--muted[_ngcontent-%COMP%] {\n background: var(--mj-bg-surface-sunken);\n color: var(--mj-text-muted);\n}\n\n.mjo-doc-chip--on[_ngcontent-%COMP%] {\n background: var(--mj-status-success-bg);\n color: var(--mj-status-success-text);\n}\n\n.mjo-doc-chip--off[_ngcontent-%COMP%] {\n background: var(--mj-bg-surface-sunken);\n color: var(--mj-text-muted);\n}\n\n.mjo-terms-toolbar[_ngcontent-%COMP%] {\n display: flex;\n justify-content: flex-end;\n margin-bottom: var(--mj-space-3);\n}\n\n.mjo-term-empty[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: var(--mj-space-2);\n padding: var(--mj-space-4);\n color: var(--mj-text-muted);\n}\n\n.mjo-doc-stat__sub[_ngcontent-%COMP%] {\n font-size: var(--mj-text-xs);\n color: var(--mj-text-muted);\n}\n\n.mjo-ov[_ngcontent-%COMP%] {\n display: grid;\n grid-template-columns: 1fr 1fr;\n gap: var(--mj-space-4);\n}\n\n.mjo-ov-card[_ngcontent-%COMP%] {\n background: var(--mj-bg-surface);\n border: 1px solid var(--mj-border-default);\n border-radius: var(--mj-radius-lg);\n box-shadow: var(--mj-shadow-sm, 0 1px 3px rgba(0, 0, 0, 0.04));\n min-width: 0;\n}\n\n.mjo-ov-card--wide[_ngcontent-%COMP%] {\n grid-column: 1 / -1;\n}\n\n.mjo-ov-card__h[_ngcontent-%COMP%] {\n padding: var(--mj-space-3) var(--mj-space-4) var(--mj-space-2);\n}\n\n.mjo-ov-card__h[_ngcontent-%COMP%] h3[_ngcontent-%COMP%] {\n margin: 0;\n font-size: var(--mj-text-sm);\n font-weight: 700;\n display: flex;\n align-items: center;\n gap: var(--mj-space-2);\n}\n\n.mjo-ov-card__h[_ngcontent-%COMP%] i[_ngcontent-%COMP%] {\n color: var(--mj-brand-primary);\n font-size: 12px;\n}\n\n.mjo-ov-card__b[_ngcontent-%COMP%] {\n padding: 4px var(--mj-space-4) var(--mj-space-4);\n}\n\n.mjo-ov-note[_ngcontent-%COMP%] {\n margin: 0 0 var(--mj-space-3);\n font-size: var(--mj-text-sm);\n color: var(--mj-text-secondary);\n line-height: 1.5;\n}\n\n.mjo-ov-facts[_ngcontent-%COMP%] {\n display: grid;\n grid-template-columns: 1fr 1fr;\n gap: var(--mj-space-3) var(--mj-space-4);\n}\n\n.mjo-ov-fact__l[_ngcontent-%COMP%] {\n font-size: 10.5px;\n font-weight: 700;\n letter-spacing: 0.04em;\n text-transform: uppercase;\n color: var(--mj-text-muted);\n}\n\n.mjo-ov-fact__v[_ngcontent-%COMP%] {\n font-size: var(--mj-text-sm);\n font-weight: 650;\n color: var(--mj-text-primary);\n}\n\n.mjo-ov-table[_ngcontent-%COMP%] {\n width: 100%;\n border-collapse: collapse;\n font-size: var(--mj-text-sm);\n}\n\n.mjo-ov-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%] {\n text-align: left;\n font-size: 10.5px;\n font-weight: 700;\n letter-spacing: 0.04em;\n text-transform: uppercase;\n color: var(--mj-text-muted);\n padding: 6px 8px;\n border-bottom: 1px solid var(--mj-border-default);\n}\n\n.mjo-ov-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%] {\n padding: 8px;\n border-bottom: 1px solid var(--mj-border-subtle);\n color: var(--mj-text-secondary);\n}\n\n.mjo-ov-table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:last-child td[_ngcontent-%COMP%] {\n border-bottom: 0;\n}\n\n.mjo-ov-row[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: var(--mj-space-3);\n padding: 8px 0;\n border-bottom: 1px solid var(--mj-border-subtle);\n}\n\n.mjo-ov-row[_ngcontent-%COMP%]:last-child {\n border-bottom: 0;\n}\n\n.mjo-ov-row[_ngcontent-%COMP%] h4[_ngcontent-%COMP%] {\n margin: 0;\n font-size: var(--mj-text-sm);\n font-weight: 650;\n}\n\n.mjo-ov-row[_ngcontent-%COMP%] p[_ngcontent-%COMP%] {\n margin: 2px 0 0;\n font-size: 12px;\n color: var(--mj-text-secondary);\n}\n\n@media (max-width: 800px) {\n .mjo-ov[_ngcontent-%COMP%], \n .mjo-ov-facts[_ngcontent-%COMP%] {\n grid-template-columns: 1fr;\n }\n\n .mjo-ov-card--wide[_ngcontent-%COMP%] {\n grid-column: auto;\n }\n}\n\n.mjo-doc-hero__description[_ngcontent-%COMP%] {\n margin: 0;\n color: var(--mj-text-secondary);\n font-size: var(--mj-text-sm);\n line-height: 1.5;\n white-space: pre-wrap;\n}\n\n\n\n\n.mjo-doc-hero__edit[_ngcontent-%COMP%] {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));\n gap: var(--mj-space-3) var(--mj-space-4);\n padding-top: var(--mj-space-4);\n border-top: 1px solid var(--mj-border-subtle);\n}\n\n.mjo-doc-hero__field[_ngcontent-%COMP%] {\n min-width: 0;\n}\n\n.mjo-doc-hero__field--span[_ngcontent-%COMP%] {\n grid-column: 1 / -1;\n}\n\n\n\n\n.mjo-doc-hero__field[_ngcontent-%COMP%] .mj-forms-field {\n display: flex;\n flex-direction: column;\n align-items: stretch;\n gap: 4px;\n padding: 0;\n}\n\n.mjo-doc-hero__field[_ngcontent-%COMP%] .mj-forms-field-label {\n font-size: var(--mj-text-xs);\n font-weight: var(--mj-font-bold);\n letter-spacing: 0.06em;\n text-transform: uppercase;\n color: var(--mj-text-muted);\n}\n\n.mjo-doc-hero__field[_ngcontent-%COMP%] .mj-forms-field--editing:hover {\n margin: 0;\n padding: 0;\n}\n\n.mjo-doc-hero__field[_ngcontent-%COMP%] .mj-forms-field-control {\n width: 100%;\n}\n\n\n\n.mjo-doc-hero__draft[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: 8px;\n margin-top: 12px;\n}\n\n.mjo-doc-hero__readiness[_ngcontent-%COMP%] {\n border: 1px solid var(--mj-status-warning-border, #e8c27a);\n border-radius: 6px;\n padding: 10px 12px;\n font-size: 13px;\n}\n\n.mjo-doc-hero__readiness[_ngcontent-%COMP%] p[_ngcontent-%COMP%] {\n margin: 0 0 6px;\n}\n\n.mjo-doc-hero__readiness[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] {\n margin: 0 0 8px;\n padding-left: 18px;\n}\n\n.mjo-doc-hero__readiness-actions[_ngcontent-%COMP%] {\n display: flex;\n justify-content: flex-end;\n gap: 8px;\n}"] });
|
|
93
|
+
} }, styles: [".mjo-doc-hero[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: var(--mj-space-4);\n padding: var(--mj-space-4) var(--mj-space-5);\n margin-bottom: var(--mj-space-4);\n background: var(--mj-bg-surface-card);\n border: 1px solid var(--mj-border-default);\n border-radius: var(--mj-radius-lg);\n box-shadow: var(--mj-shadow-sm, 0 1px 3px rgba(0, 0, 0, 0.04));\n}\n\n.mjo-doc-hero__identity[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: var(--mj-space-4);\n min-width: 0;\n}\n\n.mjo-doc-hero__avatar[_ngcontent-%COMP%] {\n flex: none;\n width: 52px;\n height: 52px;\n border-radius: var(--mj-radius-md);\n display: flex;\n align-items: center;\n justify-content: center;\n background: color-mix(in srgb, var(--mj-brand-primary) 18%, var(--mj-bg-surface));\n color: var(--mj-brand-primary);\n font-size: 1.25rem;\n}\n\n.mjo-doc-hero__avatar--reverse[_ngcontent-%COMP%] {\n background: color-mix(in srgb, var(--mj-status-warning) 22%, var(--mj-bg-surface));\n color: var(--mj-status-warning-text);\n}\n\n.mjo-doc-hero__copy[_ngcontent-%COMP%] {\n min-width: 0;\n flex: 1;\n}\n\n.mjo-doc-hero__title-row[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n flex-wrap: wrap;\n gap: var(--mj-space-2) var(--mj-space-3);\n}\n\n.mjo-doc-hero__title[_ngcontent-%COMP%] {\n margin: 0;\n font-size: var(--mj-text-lg);\n font-weight: 700;\n color: var(--mj-text-primary);\n line-height: 1.25;\n}\n\n.mjo-doc-hero__meta[_ngcontent-%COMP%] {\n display: flex;\n flex-wrap: wrap;\n gap: var(--mj-space-3);\n color: var(--mj-text-secondary);\n font-size: var(--mj-text-sm);\n}\n\n.mjo-doc-hero__stats[_ngcontent-%COMP%] {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));\n gap: var(--mj-space-3);\n}\n\n.mjo-doc-stat[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: 2px;\n min-width: 0;\n}\n\n.mjo-doc-stat__label[_ngcontent-%COMP%] {\n font-size: var(--mj-text-xs);\n font-weight: 600;\n letter-spacing: 0.04em;\n text-transform: uppercase;\n color: var(--mj-text-muted);\n}\n\n.mjo-doc-stat__value[_ngcontent-%COMP%] {\n font-size: var(--mj-text-base);\n font-weight: 650;\n color: var(--mj-text-primary);\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.mjo-doc-chip[_ngcontent-%COMP%] {\n display: inline-flex;\n align-items: center;\n gap: 4px;\n padding: 2px 8px;\n border-radius: var(--mj-radius-sm);\n font-size: var(--mj-text-xs);\n font-weight: 600;\n background: var(--mj-bg-surface-sunken);\n color: var(--mj-text-secondary);\n}\n\n.mjo-doc-chip--ok[_ngcontent-%COMP%] {\n background: var(--mj-status-success-bg);\n color: var(--mj-status-success-text);\n}\n\n.mjo-doc-chip--draft[_ngcontent-%COMP%] {\n background: var(--mj-bg-surface-sunken);\n color: var(--mj-text-secondary);\n}\n\n.mjo-doc-chip--error[_ngcontent-%COMP%] {\n background: var(--mj-status-error-bg);\n color: var(--mj-status-error-text);\n}\n\n.mjo-doc-chip--warn[_ngcontent-%COMP%] {\n background: var(--mj-status-warning-bg);\n color: var(--mj-status-warning-text);\n}\n\n.mjo-doc-chip--info[_ngcontent-%COMP%] {\n background: var(--mj-status-info-bg);\n color: var(--mj-status-info-text);\n}\n\n.mjo-doc-chip--muted[_ngcontent-%COMP%] {\n background: var(--mj-bg-surface-sunken);\n color: var(--mj-text-muted);\n}\n\n.mjo-doc-chip--on[_ngcontent-%COMP%] {\n background: var(--mj-status-success-bg);\n color: var(--mj-status-success-text);\n}\n\n.mjo-doc-chip--off[_ngcontent-%COMP%] {\n background: var(--mj-bg-surface-sunken);\n color: var(--mj-text-muted);\n}\n\n.mjo-terms-toolbar[_ngcontent-%COMP%] {\n display: flex;\n justify-content: flex-end;\n margin-bottom: var(--mj-space-3);\n}\n\n.mjo-term-empty[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: var(--mj-space-2);\n padding: var(--mj-space-4);\n color: var(--mj-text-muted);\n}\n\n.mjo-doc-stat__sub[_ngcontent-%COMP%] {\n font-size: var(--mj-text-xs);\n color: var(--mj-text-muted);\n}\n\n.mjo-ov[_ngcontent-%COMP%] {\n display: grid;\n grid-template-columns: 1fr 1fr;\n gap: var(--mj-space-4);\n}\n\n.mjo-ov-card[_ngcontent-%COMP%] {\n background: var(--mj-bg-surface);\n border: 1px solid var(--mj-border-default);\n border-radius: var(--mj-radius-lg);\n box-shadow: var(--mj-shadow-sm, 0 1px 3px rgba(0, 0, 0, 0.04));\n min-width: 0;\n}\n\n.mjo-ov-card--wide[_ngcontent-%COMP%] {\n grid-column: 1 / -1;\n}\n\n.mjo-ov-card__h[_ngcontent-%COMP%] {\n padding: var(--mj-space-3) var(--mj-space-4) var(--mj-space-2);\n}\n\n.mjo-ov-card__h[_ngcontent-%COMP%] h3[_ngcontent-%COMP%] {\n margin: 0;\n font-size: var(--mj-text-sm);\n font-weight: 700;\n display: flex;\n align-items: center;\n gap: var(--mj-space-2);\n}\n\n.mjo-ov-card__h[_ngcontent-%COMP%] i[_ngcontent-%COMP%] {\n color: var(--mj-brand-primary);\n font-size: 12px;\n}\n\n.mjo-ov-card__b[_ngcontent-%COMP%] {\n padding: 4px var(--mj-space-4) var(--mj-space-4);\n}\n\n.mjo-ov-note[_ngcontent-%COMP%] {\n margin: 0 0 var(--mj-space-3);\n font-size: var(--mj-text-sm);\n color: var(--mj-text-secondary);\n line-height: 1.5;\n}\n\n.mjo-ov-facts[_ngcontent-%COMP%] {\n display: grid;\n grid-template-columns: 1fr 1fr;\n gap: var(--mj-space-3) var(--mj-space-4);\n}\n\n.mjo-ov-fact__l[_ngcontent-%COMP%] {\n font-size: 10.5px;\n font-weight: 700;\n letter-spacing: 0.04em;\n text-transform: uppercase;\n color: var(--mj-text-muted);\n}\n\n.mjo-ov-fact__v[_ngcontent-%COMP%] {\n font-size: var(--mj-text-sm);\n font-weight: 650;\n color: var(--mj-text-primary);\n}\n\n.mjo-ov-table[_ngcontent-%COMP%] {\n width: 100%;\n border-collapse: collapse;\n font-size: var(--mj-text-sm);\n}\n\n.mjo-ov-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%] {\n text-align: left;\n font-size: 10.5px;\n font-weight: 700;\n letter-spacing: 0.04em;\n text-transform: uppercase;\n color: var(--mj-text-muted);\n padding: 6px 8px;\n border-bottom: 1px solid var(--mj-border-default);\n}\n\n.mjo-ov-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%] {\n padding: 8px;\n border-bottom: 1px solid var(--mj-border-subtle);\n color: var(--mj-text-secondary);\n}\n\n.mjo-ov-table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:last-child td[_ngcontent-%COMP%] {\n border-bottom: 0;\n}\n\n.mjo-ov-table[_ngcontent-%COMP%] .num[_ngcontent-%COMP%] {\n text-align: right;\n font-variant-numeric: tabular-nums;\n white-space: nowrap;\n}\n\n.mjo-ov-row[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: var(--mj-space-3);\n padding: 8px 0;\n border-bottom: 1px solid var(--mj-border-subtle);\n}\n\n.mjo-ov-row[_ngcontent-%COMP%]:last-child {\n border-bottom: 0;\n}\n\n.mjo-ov-row[_ngcontent-%COMP%] h4[_ngcontent-%COMP%] {\n margin: 0;\n font-size: var(--mj-text-sm);\n font-weight: 650;\n}\n\n.mjo-ov-row[_ngcontent-%COMP%] p[_ngcontent-%COMP%] {\n margin: 2px 0 0;\n font-size: 12px;\n color: var(--mj-text-secondary);\n}\n\n@media (max-width: 800px) {\n .mjo-ov[_ngcontent-%COMP%], \n .mjo-ov-facts[_ngcontent-%COMP%] {\n grid-template-columns: 1fr;\n }\n\n .mjo-ov-card--wide[_ngcontent-%COMP%] {\n grid-column: auto;\n }\n}\n\n.mjo-doc-hero__description[_ngcontent-%COMP%] {\n margin: 0;\n color: var(--mj-text-secondary);\n font-size: var(--mj-text-sm);\n line-height: 1.5;\n white-space: pre-wrap;\n}\n\n\n\n\n.mjo-doc-hero__edit[_ngcontent-%COMP%] {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));\n gap: var(--mj-space-3) var(--mj-space-4);\n padding-top: var(--mj-space-4);\n border-top: 1px solid var(--mj-border-subtle);\n}\n\n.mjo-doc-hero__field[_ngcontent-%COMP%] {\n min-width: 0;\n}\n\n.mjo-doc-hero__field--span[_ngcontent-%COMP%] {\n grid-column: 1 / -1;\n}\n\n\n\n\n.mjo-doc-hero__field[_ngcontent-%COMP%] .mj-forms-field {\n display: flex;\n flex-direction: column;\n align-items: stretch;\n gap: 4px;\n padding: 0;\n}\n\n.mjo-doc-hero__field[_ngcontent-%COMP%] .mj-forms-field-label {\n font-size: var(--mj-text-xs);\n font-weight: var(--mj-font-bold);\n letter-spacing: 0.06em;\n text-transform: uppercase;\n color: var(--mj-text-muted);\n}\n\n.mjo-doc-hero__field[_ngcontent-%COMP%] .mj-forms-field--editing:hover {\n margin: 0;\n padding: 0;\n}\n\n.mjo-doc-hero__field[_ngcontent-%COMP%] .mj-forms-field-control {\n width: 100%;\n}\n\n\n\n.mjo-doc-hero__draft[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: 8px;\n margin-top: 12px;\n}\n\n.mjo-doc-hero__readiness[_ngcontent-%COMP%] {\n border: 1px solid var(--mj-status-warning-border, #e8c27a);\n border-radius: 6px;\n padding: 10px 12px;\n font-size: 13px;\n}\n\n.mjo-doc-hero__readiness[_ngcontent-%COMP%] p[_ngcontent-%COMP%] {\n margin: 0 0 6px;\n}\n\n.mjo-doc-hero__readiness[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] {\n margin: 0 0 8px;\n padding-left: 18px;\n}\n\n.mjo-doc-hero__readiness-actions[_ngcontent-%COMP%] {\n display: flex;\n justify-content: flex-end;\n gap: 8px;\n}"] });
|
|
94
94
|
};
|
|
95
95
|
PromotionHeaderPanel = __decorate([
|
|
96
96
|
RegisterClassEx(BaseFormPanel, {
|
|
@@ -106,7 +106,7 @@ PromotionHeaderPanel = __decorate([
|
|
|
106
106
|
export { PromotionHeaderPanel };
|
|
107
107
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PromotionHeaderPanel, [{
|
|
108
108
|
type: Component,
|
|
109
|
-
args: [{ standalone: false, selector: 'mjo-promotion-header-panel', template: "<div class=\"mjo-doc-hero\">\n <div class=\"mjo-doc-hero__identity\">\n <div class=\"mjo-doc-hero__avatar\">\n <i class=\"fa-solid fa-ticket\" aria-hidden=\"true\"></i>\n </div>\n <div class=\"mjo-doc-hero__copy\">\n <div class=\"mjo-doc-hero__title-row\">\n <h1 class=\"mjo-doc-hero__title\">{{ Title }}</h1>\n <span class=\"mjo-doc-chip\">{{ Record.Code || 'CODE TBD' }}</span>\n <span class=\"mjo-doc-chip\">{{ ValueLabel }}</span>\n <span class=\"mjo-doc-chip\">{{ Stacking }}</span>\n <span [class]=\"StatusClass\">{{ Record.Status || 'Active' }}</span>\n </div>\n </div>\n </div>\n <div class=\"mjo-doc-hero__stats\">\n <div class=\"mjo-doc-stat\">\n <span class=\"mjo-doc-stat__label\">Discount</span>\n <span class=\"mjo-doc-stat__value\">{{ ValueLabel }}</span>\n </div>\n <div class=\"mjo-doc-stat\">\n <span class=\"mjo-doc-stat__label\">Schedule</span>\n <span class=\"mjo-doc-stat__value\">{{ Schedule }}</span>\n </div>\n <div class=\"mjo-doc-stat\">\n <span class=\"mjo-doc-stat__label\">Max uses</span>\n <span class=\"mjo-doc-stat__value\">{{ MaxUses }}</span>\n </div>\n </div>\n</div>\n", styles: [".mjo-doc-hero {\n display: flex;\n flex-direction: column;\n gap: var(--mj-space-4);\n padding: var(--mj-space-4) var(--mj-space-5);\n margin-bottom: var(--mj-space-4);\n background: var(--mj-bg-surface-card);\n border: 1px solid var(--mj-border-default);\n border-radius: var(--mj-radius-lg);\n box-shadow: var(--mj-shadow-sm, 0 1px 3px rgba(0, 0, 0, 0.04));\n}\n\n.mjo-doc-hero__identity {\n display: flex;\n align-items: center;\n gap: var(--mj-space-4);\n min-width: 0;\n}\n\n.mjo-doc-hero__avatar {\n flex: none;\n width: 52px;\n height: 52px;\n border-radius: var(--mj-radius-md);\n display: flex;\n align-items: center;\n justify-content: center;\n background: color-mix(in srgb, var(--mj-brand-primary) 18%, var(--mj-bg-surface));\n color: var(--mj-brand-primary);\n font-size: 1.25rem;\n}\n\n.mjo-doc-hero__avatar--reverse {\n background: color-mix(in srgb, var(--mj-status-warning) 22%, var(--mj-bg-surface));\n color: var(--mj-status-warning-text);\n}\n\n.mjo-doc-hero__copy {\n min-width: 0;\n flex: 1;\n}\n\n.mjo-doc-hero__title-row {\n display: flex;\n align-items: center;\n flex-wrap: wrap;\n gap: var(--mj-space-2) var(--mj-space-3);\n}\n\n.mjo-doc-hero__title {\n margin: 0;\n font-size: var(--mj-text-lg);\n font-weight: 700;\n color: var(--mj-text-primary);\n line-height: 1.25;\n}\n\n.mjo-doc-hero__meta {\n display: flex;\n flex-wrap: wrap;\n gap: var(--mj-space-3);\n color: var(--mj-text-secondary);\n font-size: var(--mj-text-sm);\n}\n\n.mjo-doc-hero__stats {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));\n gap: var(--mj-space-3);\n}\n\n.mjo-doc-stat {\n display: flex;\n flex-direction: column;\n gap: 2px;\n min-width: 0;\n}\n\n.mjo-doc-stat__label {\n font-size: var(--mj-text-xs);\n font-weight: 600;\n letter-spacing: 0.04em;\n text-transform: uppercase;\n color: var(--mj-text-muted);\n}\n\n.mjo-doc-stat__value {\n font-size: var(--mj-text-base);\n font-weight: 650;\n color: var(--mj-text-primary);\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.mjo-doc-chip {\n display: inline-flex;\n align-items: center;\n gap: 4px;\n padding: 2px 8px;\n border-radius: var(--mj-radius-sm);\n font-size: var(--mj-text-xs);\n font-weight: 600;\n background: var(--mj-bg-surface-sunken);\n color: var(--mj-text-secondary);\n}\n\n.mjo-doc-chip--ok {\n background: var(--mj-status-success-bg);\n color: var(--mj-status-success-text);\n}\n\n.mjo-doc-chip--draft {\n background: var(--mj-bg-surface-sunken);\n color: var(--mj-text-secondary);\n}\n\n.mjo-doc-chip--error {\n background: var(--mj-status-error-bg);\n color: var(--mj-status-error-text);\n}\n\n.mjo-doc-chip--warn {\n background: var(--mj-status-warning-bg);\n color: var(--mj-status-warning-text);\n}\n\n.mjo-doc-chip--info {\n background: var(--mj-status-info-bg);\n color: var(--mj-status-info-text);\n}\n\n.mjo-doc-chip--muted {\n background: var(--mj-bg-surface-sunken);\n color: var(--mj-text-muted);\n}\n\n.mjo-doc-chip--on {\n background: var(--mj-status-success-bg);\n color: var(--mj-status-success-text);\n}\n\n.mjo-doc-chip--off {\n background: var(--mj-bg-surface-sunken);\n color: var(--mj-text-muted);\n}\n\n.mjo-terms-toolbar {\n display: flex;\n justify-content: flex-end;\n margin-bottom: var(--mj-space-3);\n}\n\n.mjo-term-empty {\n display: flex;\n align-items: center;\n gap: var(--mj-space-2);\n padding: var(--mj-space-4);\n color: var(--mj-text-muted);\n}\n\n.mjo-doc-stat__sub {\n font-size: var(--mj-text-xs);\n color: var(--mj-text-muted);\n}\n\n.mjo-ov {\n display: grid;\n grid-template-columns: 1fr 1fr;\n gap: var(--mj-space-4);\n}\n\n.mjo-ov-card {\n background: var(--mj-bg-surface);\n border: 1px solid var(--mj-border-default);\n border-radius: var(--mj-radius-lg);\n box-shadow: var(--mj-shadow-sm, 0 1px 3px rgba(0, 0, 0, 0.04));\n min-width: 0;\n}\n\n.mjo-ov-card--wide {\n grid-column: 1 / -1;\n}\n\n.mjo-ov-card__h {\n padding: var(--mj-space-3) var(--mj-space-4) var(--mj-space-2);\n}\n\n.mjo-ov-card__h h3 {\n margin: 0;\n font-size: var(--mj-text-sm);\n font-weight: 700;\n display: flex;\n align-items: center;\n gap: var(--mj-space-2);\n}\n\n.mjo-ov-card__h i {\n color: var(--mj-brand-primary);\n font-size: 12px;\n}\n\n.mjo-ov-card__b {\n padding: 4px var(--mj-space-4) var(--mj-space-4);\n}\n\n.mjo-ov-note {\n margin: 0 0 var(--mj-space-3);\n font-size: var(--mj-text-sm);\n color: var(--mj-text-secondary);\n line-height: 1.5;\n}\n\n.mjo-ov-facts {\n display: grid;\n grid-template-columns: 1fr 1fr;\n gap: var(--mj-space-3) var(--mj-space-4);\n}\n\n.mjo-ov-fact__l {\n font-size: 10.5px;\n font-weight: 700;\n letter-spacing: 0.04em;\n text-transform: uppercase;\n color: var(--mj-text-muted);\n}\n\n.mjo-ov-fact__v {\n font-size: var(--mj-text-sm);\n font-weight: 650;\n color: var(--mj-text-primary);\n}\n\n.mjo-ov-table {\n width: 100%;\n border-collapse: collapse;\n font-size: var(--mj-text-sm);\n}\n\n.mjo-ov-table th {\n text-align: left;\n font-size: 10.5px;\n font-weight: 700;\n letter-spacing: 0.04em;\n text-transform: uppercase;\n color: var(--mj-text-muted);\n padding: 6px 8px;\n border-bottom: 1px solid var(--mj-border-default);\n}\n\n.mjo-ov-table td {\n padding: 8px;\n border-bottom: 1px solid var(--mj-border-subtle);\n color: var(--mj-text-secondary);\n}\n\n.mjo-ov-table tr:last-child td {\n border-bottom: 0;\n}\n\n.mjo-ov-row {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: var(--mj-space-3);\n padding: 8px 0;\n border-bottom: 1px solid var(--mj-border-subtle);\n}\n\n.mjo-ov-row:last-child {\n border-bottom: 0;\n}\n\n.mjo-ov-row h4 {\n margin: 0;\n font-size: var(--mj-text-sm);\n font-weight: 650;\n}\n\n.mjo-ov-row p {\n margin: 2px 0 0;\n font-size: 12px;\n color: var(--mj-text-secondary);\n}\n\n@media (max-width: 800px) {\n .mjo-ov,\n .mjo-ov-facts {\n grid-template-columns: 1fr;\n }\n\n .mjo-ov-card--wide {\n grid-column: auto;\n }\n}\n\n.mjo-doc-hero__description {\n margin: 0;\n color: var(--mj-text-secondary);\n font-size: var(--mj-text-sm);\n line-height: 1.5;\n white-space: pre-wrap;\n}\n\n/* mj-form-field is display: contents \u2014 its label and control would otherwise\n become direct children of this grid. Each field sits in a wrapping cell. */\n.mjo-doc-hero__edit {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));\n gap: var(--mj-space-3) var(--mj-space-4);\n padding-top: var(--mj-space-4);\n border-top: 1px solid var(--mj-border-subtle);\n}\n\n.mjo-doc-hero__field {\n min-width: 0;\n}\n\n.mjo-doc-hero__field--span {\n grid-column: 1 / -1;\n}\n\n/* Label above the control. The shared field is a 200px | 1fr row, which needs\n ~28rem per field \u2014 far more than a hero column gets. */\n.mjo-doc-hero__field ::ng-deep .mj-forms-field {\n display: flex;\n flex-direction: column;\n align-items: stretch;\n gap: 4px;\n padding: 0;\n}\n\n.mjo-doc-hero__field ::ng-deep .mj-forms-field-label {\n font-size: var(--mj-text-xs);\n font-weight: var(--mj-font-bold);\n letter-spacing: 0.06em;\n text-transform: uppercase;\n color: var(--mj-text-muted);\n}\n\n.mjo-doc-hero__field ::ng-deep .mj-forms-field--editing:hover {\n margin: 0;\n padding: 0;\n}\n\n.mjo-doc-hero__field ::ng-deep .mj-forms-field-control {\n width: 100%;\n}\n\n/* golive#433 \u2014 the Draft banner and the readiness warning under it. */\n.mjo-doc-hero__draft {\n display: flex;\n flex-direction: column;\n gap: 8px;\n margin-top: 12px;\n}\n\n.mjo-doc-hero__readiness {\n border: 1px solid var(--mj-status-warning-border, #e8c27a);\n border-radius: 6px;\n padding: 10px 12px;\n font-size: 13px;\n}\n\n.mjo-doc-hero__readiness p {\n margin: 0 0 6px;\n}\n\n.mjo-doc-hero__readiness ul {\n margin: 0 0 8px;\n padding-left: 18px;\n}\n\n.mjo-doc-hero__readiness-actions {\n display: flex;\n justify-content: flex-end;\n gap: 8px;\n}\n"] }]
|
|
109
|
+
args: [{ standalone: false, selector: 'mjo-promotion-header-panel', template: "<div class=\"mjo-doc-hero\">\n <div class=\"mjo-doc-hero__identity\">\n <div class=\"mjo-doc-hero__avatar\">\n <i class=\"fa-solid fa-ticket\" aria-hidden=\"true\"></i>\n </div>\n <div class=\"mjo-doc-hero__copy\">\n <div class=\"mjo-doc-hero__title-row\">\n <h1 class=\"mjo-doc-hero__title\">{{ Title }}</h1>\n <span class=\"mjo-doc-chip\">{{ Record.Code || 'CODE TBD' }}</span>\n <span class=\"mjo-doc-chip\">{{ ValueLabel }}</span>\n <span class=\"mjo-doc-chip\">{{ Stacking }}</span>\n <span [class]=\"StatusClass\">{{ Record.Status || 'Active' }}</span>\n </div>\n </div>\n </div>\n <div class=\"mjo-doc-hero__stats\">\n <div class=\"mjo-doc-stat\">\n <span class=\"mjo-doc-stat__label\">Discount</span>\n <span class=\"mjo-doc-stat__value\">{{ ValueLabel }}</span>\n </div>\n <div class=\"mjo-doc-stat\">\n <span class=\"mjo-doc-stat__label\">Schedule</span>\n <span class=\"mjo-doc-stat__value\">{{ Schedule }}</span>\n </div>\n <div class=\"mjo-doc-stat\">\n <span class=\"mjo-doc-stat__label\">Max uses</span>\n <span class=\"mjo-doc-stat__value\">{{ MaxUses }}</span>\n </div>\n </div>\n</div>\n", styles: [".mjo-doc-hero {\n display: flex;\n flex-direction: column;\n gap: var(--mj-space-4);\n padding: var(--mj-space-4) var(--mj-space-5);\n margin-bottom: var(--mj-space-4);\n background: var(--mj-bg-surface-card);\n border: 1px solid var(--mj-border-default);\n border-radius: var(--mj-radius-lg);\n box-shadow: var(--mj-shadow-sm, 0 1px 3px rgba(0, 0, 0, 0.04));\n}\n\n.mjo-doc-hero__identity {\n display: flex;\n align-items: center;\n gap: var(--mj-space-4);\n min-width: 0;\n}\n\n.mjo-doc-hero__avatar {\n flex: none;\n width: 52px;\n height: 52px;\n border-radius: var(--mj-radius-md);\n display: flex;\n align-items: center;\n justify-content: center;\n background: color-mix(in srgb, var(--mj-brand-primary) 18%, var(--mj-bg-surface));\n color: var(--mj-brand-primary);\n font-size: 1.25rem;\n}\n\n.mjo-doc-hero__avatar--reverse {\n background: color-mix(in srgb, var(--mj-status-warning) 22%, var(--mj-bg-surface));\n color: var(--mj-status-warning-text);\n}\n\n.mjo-doc-hero__copy {\n min-width: 0;\n flex: 1;\n}\n\n.mjo-doc-hero__title-row {\n display: flex;\n align-items: center;\n flex-wrap: wrap;\n gap: var(--mj-space-2) var(--mj-space-3);\n}\n\n.mjo-doc-hero__title {\n margin: 0;\n font-size: var(--mj-text-lg);\n font-weight: 700;\n color: var(--mj-text-primary);\n line-height: 1.25;\n}\n\n.mjo-doc-hero__meta {\n display: flex;\n flex-wrap: wrap;\n gap: var(--mj-space-3);\n color: var(--mj-text-secondary);\n font-size: var(--mj-text-sm);\n}\n\n.mjo-doc-hero__stats {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));\n gap: var(--mj-space-3);\n}\n\n.mjo-doc-stat {\n display: flex;\n flex-direction: column;\n gap: 2px;\n min-width: 0;\n}\n\n.mjo-doc-stat__label {\n font-size: var(--mj-text-xs);\n font-weight: 600;\n letter-spacing: 0.04em;\n text-transform: uppercase;\n color: var(--mj-text-muted);\n}\n\n.mjo-doc-stat__value {\n font-size: var(--mj-text-base);\n font-weight: 650;\n color: var(--mj-text-primary);\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.mjo-doc-chip {\n display: inline-flex;\n align-items: center;\n gap: 4px;\n padding: 2px 8px;\n border-radius: var(--mj-radius-sm);\n font-size: var(--mj-text-xs);\n font-weight: 600;\n background: var(--mj-bg-surface-sunken);\n color: var(--mj-text-secondary);\n}\n\n.mjo-doc-chip--ok {\n background: var(--mj-status-success-bg);\n color: var(--mj-status-success-text);\n}\n\n.mjo-doc-chip--draft {\n background: var(--mj-bg-surface-sunken);\n color: var(--mj-text-secondary);\n}\n\n.mjo-doc-chip--error {\n background: var(--mj-status-error-bg);\n color: var(--mj-status-error-text);\n}\n\n.mjo-doc-chip--warn {\n background: var(--mj-status-warning-bg);\n color: var(--mj-status-warning-text);\n}\n\n.mjo-doc-chip--info {\n background: var(--mj-status-info-bg);\n color: var(--mj-status-info-text);\n}\n\n.mjo-doc-chip--muted {\n background: var(--mj-bg-surface-sunken);\n color: var(--mj-text-muted);\n}\n\n.mjo-doc-chip--on {\n background: var(--mj-status-success-bg);\n color: var(--mj-status-success-text);\n}\n\n.mjo-doc-chip--off {\n background: var(--mj-bg-surface-sunken);\n color: var(--mj-text-muted);\n}\n\n.mjo-terms-toolbar {\n display: flex;\n justify-content: flex-end;\n margin-bottom: var(--mj-space-3);\n}\n\n.mjo-term-empty {\n display: flex;\n align-items: center;\n gap: var(--mj-space-2);\n padding: var(--mj-space-4);\n color: var(--mj-text-muted);\n}\n\n.mjo-doc-stat__sub {\n font-size: var(--mj-text-xs);\n color: var(--mj-text-muted);\n}\n\n.mjo-ov {\n display: grid;\n grid-template-columns: 1fr 1fr;\n gap: var(--mj-space-4);\n}\n\n.mjo-ov-card {\n background: var(--mj-bg-surface);\n border: 1px solid var(--mj-border-default);\n border-radius: var(--mj-radius-lg);\n box-shadow: var(--mj-shadow-sm, 0 1px 3px rgba(0, 0, 0, 0.04));\n min-width: 0;\n}\n\n.mjo-ov-card--wide {\n grid-column: 1 / -1;\n}\n\n.mjo-ov-card__h {\n padding: var(--mj-space-3) var(--mj-space-4) var(--mj-space-2);\n}\n\n.mjo-ov-card__h h3 {\n margin: 0;\n font-size: var(--mj-text-sm);\n font-weight: 700;\n display: flex;\n align-items: center;\n gap: var(--mj-space-2);\n}\n\n.mjo-ov-card__h i {\n color: var(--mj-brand-primary);\n font-size: 12px;\n}\n\n.mjo-ov-card__b {\n padding: 4px var(--mj-space-4) var(--mj-space-4);\n}\n\n.mjo-ov-note {\n margin: 0 0 var(--mj-space-3);\n font-size: var(--mj-text-sm);\n color: var(--mj-text-secondary);\n line-height: 1.5;\n}\n\n.mjo-ov-facts {\n display: grid;\n grid-template-columns: 1fr 1fr;\n gap: var(--mj-space-3) var(--mj-space-4);\n}\n\n.mjo-ov-fact__l {\n font-size: 10.5px;\n font-weight: 700;\n letter-spacing: 0.04em;\n text-transform: uppercase;\n color: var(--mj-text-muted);\n}\n\n.mjo-ov-fact__v {\n font-size: var(--mj-text-sm);\n font-weight: 650;\n color: var(--mj-text-primary);\n}\n\n.mjo-ov-table {\n width: 100%;\n border-collapse: collapse;\n font-size: var(--mj-text-sm);\n}\n\n.mjo-ov-table th {\n text-align: left;\n font-size: 10.5px;\n font-weight: 700;\n letter-spacing: 0.04em;\n text-transform: uppercase;\n color: var(--mj-text-muted);\n padding: 6px 8px;\n border-bottom: 1px solid var(--mj-border-default);\n}\n\n.mjo-ov-table td {\n padding: 8px;\n border-bottom: 1px solid var(--mj-border-subtle);\n color: var(--mj-text-secondary);\n}\n\n.mjo-ov-table tr:last-child td {\n border-bottom: 0;\n}\n\n.mjo-ov-table .num {\n text-align: right;\n font-variant-numeric: tabular-nums;\n white-space: nowrap;\n}\n\n.mjo-ov-row {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: var(--mj-space-3);\n padding: 8px 0;\n border-bottom: 1px solid var(--mj-border-subtle);\n}\n\n.mjo-ov-row:last-child {\n border-bottom: 0;\n}\n\n.mjo-ov-row h4 {\n margin: 0;\n font-size: var(--mj-text-sm);\n font-weight: 650;\n}\n\n.mjo-ov-row p {\n margin: 2px 0 0;\n font-size: 12px;\n color: var(--mj-text-secondary);\n}\n\n@media (max-width: 800px) {\n .mjo-ov,\n .mjo-ov-facts {\n grid-template-columns: 1fr;\n }\n\n .mjo-ov-card--wide {\n grid-column: auto;\n }\n}\n\n.mjo-doc-hero__description {\n margin: 0;\n color: var(--mj-text-secondary);\n font-size: var(--mj-text-sm);\n line-height: 1.5;\n white-space: pre-wrap;\n}\n\n/* mj-form-field is display: contents \u2014 its label and control would otherwise\n become direct children of this grid. Each field sits in a wrapping cell. */\n.mjo-doc-hero__edit {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));\n gap: var(--mj-space-3) var(--mj-space-4);\n padding-top: var(--mj-space-4);\n border-top: 1px solid var(--mj-border-subtle);\n}\n\n.mjo-doc-hero__field {\n min-width: 0;\n}\n\n.mjo-doc-hero__field--span {\n grid-column: 1 / -1;\n}\n\n/* Label above the control. The shared field is a 200px | 1fr row, which needs\n ~28rem per field \u2014 far more than a hero column gets. */\n.mjo-doc-hero__field ::ng-deep .mj-forms-field {\n display: flex;\n flex-direction: column;\n align-items: stretch;\n gap: 4px;\n padding: 0;\n}\n\n.mjo-doc-hero__field ::ng-deep .mj-forms-field-label {\n font-size: var(--mj-text-xs);\n font-weight: var(--mj-font-bold);\n letter-spacing: 0.06em;\n text-transform: uppercase;\n color: var(--mj-text-muted);\n}\n\n.mjo-doc-hero__field ::ng-deep .mj-forms-field--editing:hover {\n margin: 0;\n padding: 0;\n}\n\n.mjo-doc-hero__field ::ng-deep .mj-forms-field-control {\n width: 100%;\n}\n\n/* golive#433 \u2014 the Draft banner and the readiness warning under it. */\n.mjo-doc-hero__draft {\n display: flex;\n flex-direction: column;\n gap: 8px;\n margin-top: 12px;\n}\n\n.mjo-doc-hero__readiness {\n border: 1px solid var(--mj-status-warning-border, #e8c27a);\n border-radius: 6px;\n padding: 10px 12px;\n font-size: 13px;\n}\n\n.mjo-doc-hero__readiness p {\n margin: 0 0 6px;\n}\n\n.mjo-doc-hero__readiness ul {\n margin: 0 0 8px;\n padding-left: 18px;\n}\n\n.mjo-doc-hero__readiness-actions {\n display: flex;\n justify-content: flex-end;\n gap: 8px;\n}\n"] }]
|
|
110
110
|
}], null, null); })();
|
|
111
111
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(PromotionHeaderPanel, { className: "PromotionHeaderPanel", filePath: "lib/form-panels/promotion-header.panel.ts", lineNumber: 22 }); })();
|
|
112
112
|
//# sourceMappingURL=promotion-header.panel.js.map
|