@symphony-talent/component-library 3.40.0 → 3.41.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/esm2020/lib/organisms/invoice-area/invoice-area.component.mjs +7 -8
- package/esm2020/lib/organisms/invoice-area/invoice-area.model.mjs +1 -1
- package/esm2020/lib/organisms/order-summary/order-summary.component.mjs +4 -4
- package/esm2020/lib/organisms/upload-resume-modal/upload-resume-modal.component.mjs +2 -2
- package/esm2020/lib/pages/modals/advertise-modal/advertise-modal.component.mjs +46 -31
- package/esm2020/projects/component-library/lib/organisms/invoice-area/invoice-area.component.mjs +7 -8
- package/esm2020/projects/component-library/lib/organisms/invoice-area/invoice-area.model.mjs +1 -1
- package/esm2020/projects/component-library/lib/organisms/order-summary/order-summary.component.mjs +4 -4
- package/esm2020/projects/component-library/lib/organisms/upload-resume-modal/upload-resume-modal.component.mjs +2 -2
- package/esm2020/projects/component-library/lib/pages/modals/advertise-modal/advertise-modal.component.mjs +46 -31
- package/fesm2015/symphony-talent-component-library-projects-component-library.mjs +51 -36
- package/fesm2015/symphony-talent-component-library-projects-component-library.mjs.map +1 -1
- package/fesm2015/symphony-talent-component-library.mjs +51 -36
- package/fesm2015/symphony-talent-component-library.mjs.map +1 -1
- package/fesm2020/symphony-talent-component-library-projects-component-library.mjs +51 -36
- package/fesm2020/symphony-talent-component-library-projects-component-library.mjs.map +1 -1
- package/fesm2020/symphony-talent-component-library.mjs +51 -36
- package/fesm2020/symphony-talent-component-library.mjs.map +1 -1
- package/lib/organisms/invoice-area/invoice-area.model.d.ts +2 -1
- package/lib/organisms/upload-resume-modal/upload-resume-modal.component.d.ts +1 -1
- package/package.json +1 -1
- package/projects/component-library/lib/organisms/invoice-area/invoice-area.model.d.ts +2 -1
- package/projects/component-library/lib/organisms/upload-resume-modal/upload-resume-modal.component.d.ts +1 -1
|
@@ -3061,7 +3061,7 @@ class UploadResumeModalComponent {
|
|
|
3061
3061
|
this.docTypeDropdowChange.emit(selectedModel.value);
|
|
3062
3062
|
}
|
|
3063
3063
|
onResumeCheckSelect(updateResumeCheckEvent) {
|
|
3064
|
-
this.updateResumeChecked.emit(updateResumeCheckEvent
|
|
3064
|
+
this.updateResumeChecked.emit(updateResumeCheckEvent);
|
|
3065
3065
|
}
|
|
3066
3066
|
}
|
|
3067
3067
|
UploadResumeModalComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: UploadResumeModalComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
@@ -5048,15 +5048,15 @@ class InvoiceAreaComponent {
|
|
|
5048
5048
|
constructor() {
|
|
5049
5049
|
this.model = {
|
|
5050
5050
|
lineItems: [],
|
|
5051
|
-
|
|
5051
|
+
jobsToAdvertise: '',
|
|
5052
5052
|
};
|
|
5053
5053
|
}
|
|
5054
5054
|
}
|
|
5055
5055
|
InvoiceAreaComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: InvoiceAreaComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
5056
|
-
InvoiceAreaComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.2", type: InvoiceAreaComponent, selector: "symphony-invoice-area", inputs: { model: "model" }, ngImport: i0, template: "<div class=\"job-type-summary sfx-px-20\">\n <
|
|
5056
|
+
InvoiceAreaComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.2", type: InvoiceAreaComponent, selector: "symphony-invoice-area", inputs: { model: "model" }, ngImport: i0, template: "<div class=\"job-type-summary sfx-px-20\">\n <ul class=\"invoice-list list-unstyled sfx-mb-20\">\n <li class=\"invoice-line-item\" *ngFor=\"let lineItem of model.lineItems\">\n <symphony-invoice-line-item\n [model]=\"lineItem\"\n ></symphony-invoice-line-item>\n </li>\n </ul>\n <div class=\"sfx-mb-20\">\n <symphony-invoice-line-item\n [model]=\"model.total\"\n ></symphony-invoice-line-item>\n </div>\n <span>{{model.jobsToAdvertise}}</span>\n <div class=\"job-bold-txt\">\n <symphony-invoice-line-item\n [model]=\"model.subTotal\"\n ></symphony-invoice-line-item>\n </div>\n</div>", styles: [".job-type-summary{border-bottom:1px solid #d9d9d9;padding-bottom:.3rem}.job-bold-txt .body-copy-primary{font-family:neuzeit_groteskbold,sans-serif}\n"], components: [{ type: InvoiceLineItemComponent, selector: "symphony-invoice-line-item", inputs: ["model"] }], directives: [{ type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
5057
5057
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: InvoiceAreaComponent, decorators: [{
|
|
5058
5058
|
type: Component,
|
|
5059
|
-
args: [{ selector: 'symphony-invoice-area', template: "<div class=\"job-type-summary sfx-px-20\">\n <
|
|
5059
|
+
args: [{ selector: 'symphony-invoice-area', encapsulation: ViewEncapsulation.None, template: "<div class=\"job-type-summary sfx-px-20\">\n <ul class=\"invoice-list list-unstyled sfx-mb-20\">\n <li class=\"invoice-line-item\" *ngFor=\"let lineItem of model.lineItems\">\n <symphony-invoice-line-item\n [model]=\"lineItem\"\n ></symphony-invoice-line-item>\n </li>\n </ul>\n <div class=\"sfx-mb-20\">\n <symphony-invoice-line-item\n [model]=\"model.total\"\n ></symphony-invoice-line-item>\n </div>\n <span>{{model.jobsToAdvertise}}</span>\n <div class=\"job-bold-txt\">\n <symphony-invoice-line-item\n [model]=\"model.subTotal\"\n ></symphony-invoice-line-item>\n </div>\n</div>", styles: [".job-type-summary{border-bottom:1px solid #d9d9d9;padding-bottom:.3rem}.job-bold-txt .body-copy-primary{font-family:neuzeit_groteskbold,sans-serif}\n"] }]
|
|
5060
5060
|
}], ctorParameters: function () { return []; }, propDecorators: { model: [{
|
|
5061
5061
|
type: Input
|
|
5062
5062
|
}] } });
|
|
@@ -5070,10 +5070,10 @@ class OrderSummaryComponent {
|
|
|
5070
5070
|
}
|
|
5071
5071
|
}
|
|
5072
5072
|
OrderSummaryComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: OrderSummaryComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
5073
|
-
OrderSummaryComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.2", type: OrderSummaryComponent, selector: "symphony-order-summary", inputs: { model: "model" }, ngImport: i0, template: "<section class=\"order-summary\">\n <symphony-h4>{{ model.title }}</symphony-h4>\n <ul class=\"invoice-area-list list-unstyled sfx-mb-20\">\n <li\n class=\"invoice-area-item\"\n *ngFor=\"let invoiceArea of model.invoiceAreas\"\n >\n <symphony-invoice-area [model]=\"invoiceArea\"></symphony-invoice-area>\n </li>\n </ul>\n <symphony-invoice-line-item\n [model]=\"model.total\"\n ></symphony-invoice-line-item>\n</section>\n", styles: [""], components: [{ type: H4Component, selector: "symphony-h4", inputs: ["text", "isSecondary"] }, { type: InvoiceAreaComponent, selector: "symphony-invoice-area", inputs: ["model"] }, { type: InvoiceLineItemComponent, selector: "symphony-invoice-line-item", inputs: ["model"] }], directives: [{ type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
|
|
5073
|
+
OrderSummaryComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.2", type: OrderSummaryComponent, selector: "symphony-order-summary", inputs: { model: "model" }, ngImport: i0, template: "<section class=\"order-summary\">\n <symphony-h4>{{ model.title }}</symphony-h4>\n <ul class=\"invoice-area-list list-unstyled sfx-mb-20\">\n <li\n class=\"invoice-area-item\"\n *ngFor=\"let invoiceArea of model.invoiceAreas\"\n >\n <symphony-invoice-area [model]=\"invoiceArea\"></symphony-invoice-area>\n </li>\n </ul>\n <div class=\"total-wrap sfx-pb-10\" *ngIf=\"model.invoiceAreas.length > 0\">\n <symphony-invoice-line-item\n [model]=\"model.total\"\n ></symphony-invoice-line-item>\n </div>\n</section>\n", styles: [".total-wrap{border-bottom:1px solid #000}.total-wrap .text-right p{font-family:neuzeit_groteskbold,sans-serif}\n"], components: [{ type: H4Component, selector: "symphony-h4", inputs: ["text", "isSecondary"] }, { type: InvoiceAreaComponent, selector: "symphony-invoice-area", inputs: ["model"] }, { type: InvoiceLineItemComponent, selector: "symphony-invoice-line-item", inputs: ["model"] }], directives: [{ type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
5074
5074
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: OrderSummaryComponent, decorators: [{
|
|
5075
5075
|
type: Component,
|
|
5076
|
-
args: [{ selector: 'symphony-order-summary', template: "<section class=\"order-summary\">\n <symphony-h4>{{ model.title }}</symphony-h4>\n <ul class=\"invoice-area-list list-unstyled sfx-mb-20\">\n <li\n class=\"invoice-area-item\"\n *ngFor=\"let invoiceArea of model.invoiceAreas\"\n >\n <symphony-invoice-area [model]=\"invoiceArea\"></symphony-invoice-area>\n </li>\n </ul>\n <symphony-invoice-line-item\n [model]=\"model.total\"\n ></symphony-invoice-line-item>\n</section>\n", styles: [""] }]
|
|
5076
|
+
args: [{ selector: 'symphony-order-summary', encapsulation: ViewEncapsulation.None, template: "<section class=\"order-summary\">\n <symphony-h4>{{ model.title }}</symphony-h4>\n <ul class=\"invoice-area-list list-unstyled sfx-mb-20\">\n <li\n class=\"invoice-area-item\"\n *ngFor=\"let invoiceArea of model.invoiceAreas\"\n >\n <symphony-invoice-area [model]=\"invoiceArea\"></symphony-invoice-area>\n </li>\n </ul>\n <div class=\"total-wrap sfx-pb-10\" *ngIf=\"model.invoiceAreas.length > 0\">\n <symphony-invoice-line-item\n [model]=\"model.total\"\n ></symphony-invoice-line-item>\n </div>\n</section>\n", styles: [".total-wrap{border-bottom:1px solid #000}.total-wrap .text-right p{font-family:neuzeit_groteskbold,sans-serif}\n"] }]
|
|
5077
5077
|
}], ctorParameters: function () { return []; }, propDecorators: { model: [{
|
|
5078
5078
|
type: Input
|
|
5079
5079
|
}] } });
|
|
@@ -5108,12 +5108,15 @@ class AdvertiseModalComponent {
|
|
|
5108
5108
|
ngOnInit() {
|
|
5109
5109
|
this.initialiseDefaultValues();
|
|
5110
5110
|
this.updateModalHeader();
|
|
5111
|
-
this.
|
|
5111
|
+
const selectedJobBoards = this.model.jobBoards.filter((jb) => jb.isSelected).length;
|
|
5112
|
+
if (selectedJobBoards > 0) {
|
|
5113
|
+
this.updateOrderSummary();
|
|
5114
|
+
}
|
|
5112
5115
|
this.cancelContent = {
|
|
5113
5116
|
title: 'Are you sure you want to abandon your order?',
|
|
5114
5117
|
content: 'All selections will be deleted and you will have to start over.',
|
|
5115
5118
|
btnPrimary: 'Continue Order',
|
|
5116
|
-
btnSecondary: 'Abandon Order'
|
|
5119
|
+
btnSecondary: 'Abandon Order',
|
|
5117
5120
|
};
|
|
5118
5121
|
}
|
|
5119
5122
|
ngOnChanges(changes) {
|
|
@@ -5124,29 +5127,8 @@ class AdvertiseModalComponent {
|
|
|
5124
5127
|
this.jobCount = this.model.jobsToAdvertise.length;
|
|
5125
5128
|
this.orderSummary = {
|
|
5126
5129
|
title: 'Your Order',
|
|
5127
|
-
invoiceAreas: [
|
|
5128
|
-
|
|
5129
|
-
lineItems: [],
|
|
5130
|
-
title: 'Pay-Per-Click',
|
|
5131
|
-
total: {
|
|
5132
|
-
textLeft: 'Cost Programatic Boards',
|
|
5133
|
-
textRight: `x (${this.jobCount}) Jobs = $0`
|
|
5134
|
-
}
|
|
5135
|
-
},
|
|
5136
|
-
{
|
|
5137
|
-
lineItems: [],
|
|
5138
|
-
title: 'Job Boards',
|
|
5139
|
-
total: {
|
|
5140
|
-
textLeft: 'Cost Job Boards',
|
|
5141
|
-
textRight: `x (${this.jobCount}) Jobs = $0`
|
|
5142
|
-
}
|
|
5143
|
-
}
|
|
5144
|
-
],
|
|
5145
|
-
total: {
|
|
5146
|
-
textLeft: '',
|
|
5147
|
-
textRight: '$0',
|
|
5148
|
-
label: 'Total:'
|
|
5149
|
-
}
|
|
5130
|
+
invoiceAreas: [],
|
|
5131
|
+
total: {},
|
|
5150
5132
|
};
|
|
5151
5133
|
}
|
|
5152
5134
|
updateModalHeader() {
|
|
@@ -5190,7 +5172,8 @@ class AdvertiseModalComponent {
|
|
|
5190
5172
|
this.orderSummary.invoiceAreas[invoiceAreaIndex].lineItems.forEach(li => {
|
|
5191
5173
|
invoiceAreaTotal = invoiceAreaTotal + +li.textRight.replace('$', '');
|
|
5192
5174
|
});
|
|
5193
|
-
this.orderSummary.invoiceAreas[invoiceAreaIndex].
|
|
5175
|
+
this.orderSummary.invoiceAreas[invoiceAreaIndex].subTotal.textRight = `$${invoiceAreaTotal * this.model.jobsToAdvertise.length}`;
|
|
5176
|
+
this.orderSummary.invoiceAreas[invoiceAreaIndex].total.textRight = `$${invoiceAreaTotal}`;
|
|
5194
5177
|
return invoiceAreaTotal * this.model.jobsToAdvertise.length;
|
|
5195
5178
|
}
|
|
5196
5179
|
calculateOrderTotal(payPerClickAreaTotal, jobBoardAreaTotal) {
|
|
@@ -5199,14 +5182,46 @@ class AdvertiseModalComponent {
|
|
|
5199
5182
|
const jobToAdvertiseCount = this.model.jobsToAdvertise.length;
|
|
5200
5183
|
const orderSummaryText = `(${selectedJobBoards}) Boards x ${this.model.jobsToAdvertise.length} Jobs = (${selectedJobBoards * jobToAdvertiseCount}) Ads`;
|
|
5201
5184
|
this.orderSummary.total = {
|
|
5202
|
-
label: 'Total
|
|
5203
|
-
textLeft:
|
|
5185
|
+
label: 'Current Total',
|
|
5186
|
+
textLeft: '',
|
|
5204
5187
|
textRight: `$${payPerClickAreaTotal + jobBoardAreaTotal}`
|
|
5205
5188
|
};
|
|
5206
5189
|
}
|
|
5207
5190
|
updateOrderSummary() {
|
|
5208
|
-
this.orderSummary
|
|
5209
|
-
|
|
5191
|
+
this.orderSummary = {
|
|
5192
|
+
title: 'Your Order',
|
|
5193
|
+
invoiceAreas: [
|
|
5194
|
+
{
|
|
5195
|
+
lineItems: [],
|
|
5196
|
+
total: {
|
|
5197
|
+
textLeft: 'Pay-Per-Click Sites, Subtotal Per Job:',
|
|
5198
|
+
textRight: ``
|
|
5199
|
+
},
|
|
5200
|
+
subTotal: {
|
|
5201
|
+
textLeft: 'Pay-Per-Click Sites Subtotal',
|
|
5202
|
+
textRight: `x (${this.jobCount}) Jobs = $0`
|
|
5203
|
+
},
|
|
5204
|
+
jobsToAdvertise: `x (${this.model.jobsToAdvertise.length}) Jobs Selected`
|
|
5205
|
+
},
|
|
5206
|
+
{
|
|
5207
|
+
lineItems: [],
|
|
5208
|
+
subTotal: {
|
|
5209
|
+
textLeft: 'Job Boards Subtotal',
|
|
5210
|
+
textRight: `x (${this.jobCount}) Jobs = $0`
|
|
5211
|
+
},
|
|
5212
|
+
total: {
|
|
5213
|
+
textLeft: 'Duration Job Boards, Subtotal Per Job:',
|
|
5214
|
+
textRight: ``
|
|
5215
|
+
},
|
|
5216
|
+
jobsToAdvertise: `x (${this.model.jobsToAdvertise.length}) Jobs Selected`
|
|
5217
|
+
}
|
|
5218
|
+
],
|
|
5219
|
+
total: {
|
|
5220
|
+
textLeft: '',
|
|
5221
|
+
textRight: '',
|
|
5222
|
+
label: 'Current Total'
|
|
5223
|
+
},
|
|
5224
|
+
};
|
|
5210
5225
|
this.model.jobBoards.forEach(jb => {
|
|
5211
5226
|
if (jb.isSelected) {
|
|
5212
5227
|
if (jb.isPayPerClick) {
|