@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.
Files changed (23) hide show
  1. package/esm2020/lib/organisms/invoice-area/invoice-area.component.mjs +7 -8
  2. package/esm2020/lib/organisms/invoice-area/invoice-area.model.mjs +1 -1
  3. package/esm2020/lib/organisms/order-summary/order-summary.component.mjs +4 -4
  4. package/esm2020/lib/organisms/upload-resume-modal/upload-resume-modal.component.mjs +2 -2
  5. package/esm2020/lib/pages/modals/advertise-modal/advertise-modal.component.mjs +46 -31
  6. package/esm2020/projects/component-library/lib/organisms/invoice-area/invoice-area.component.mjs +7 -8
  7. package/esm2020/projects/component-library/lib/organisms/invoice-area/invoice-area.model.mjs +1 -1
  8. package/esm2020/projects/component-library/lib/organisms/order-summary/order-summary.component.mjs +4 -4
  9. package/esm2020/projects/component-library/lib/organisms/upload-resume-modal/upload-resume-modal.component.mjs +2 -2
  10. package/esm2020/projects/component-library/lib/pages/modals/advertise-modal/advertise-modal.component.mjs +46 -31
  11. package/fesm2015/symphony-talent-component-library-projects-component-library.mjs +51 -36
  12. package/fesm2015/symphony-talent-component-library-projects-component-library.mjs.map +1 -1
  13. package/fesm2015/symphony-talent-component-library.mjs +51 -36
  14. package/fesm2015/symphony-talent-component-library.mjs.map +1 -1
  15. package/fesm2020/symphony-talent-component-library-projects-component-library.mjs +51 -36
  16. package/fesm2020/symphony-talent-component-library-projects-component-library.mjs.map +1 -1
  17. package/fesm2020/symphony-talent-component-library.mjs +51 -36
  18. package/fesm2020/symphony-talent-component-library.mjs.map +1 -1
  19. package/lib/organisms/invoice-area/invoice-area.model.d.ts +2 -1
  20. package/lib/organisms/upload-resume-modal/upload-resume-modal.component.d.ts +1 -1
  21. package/package.json +1 -1
  22. package/projects/component-library/lib/organisms/invoice-area/invoice-area.model.d.ts +2 -1
  23. package/projects/component-library/lib/organisms/upload-resume-modal/upload-resume-modal.component.d.ts +1 -1
@@ -3064,7 +3064,7 @@ class UploadResumeModalComponent {
3064
3064
  this.docTypeDropdowChange.emit(selectedModel.value);
3065
3065
  }
3066
3066
  onResumeCheckSelect(updateResumeCheckEvent) {
3067
- this.updateResumeChecked.emit(updateResumeCheckEvent.label);
3067
+ this.updateResumeChecked.emit(updateResumeCheckEvent);
3068
3068
  }
3069
3069
  }
3070
3070
  UploadResumeModalComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: UploadResumeModalComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
@@ -5052,15 +5052,15 @@ class InvoiceAreaComponent {
5052
5052
  constructor() {
5053
5053
  this.model = {
5054
5054
  lineItems: [],
5055
- title: '',
5055
+ jobsToAdvertise: '',
5056
5056
  };
5057
5057
  }
5058
5058
  }
5059
5059
  InvoiceAreaComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: InvoiceAreaComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
5060
- 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 <div class=\"job-type-title\">\n <symphony-h5 [text]=\"model.title\"></symphony-h5>\n </div>\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 <symphony-invoice-line-item\n [model]=\"model.total\"\n ></symphony-invoice-line-item>\n</div>\n", styles: [".job-type-summary{border-bottom:1px solid #d9d9d9}\n"], components: [{ type: H5Component, selector: "symphony-h5", inputs: ["text", "isSecondary"] }, { type: InvoiceLineItemComponent, selector: "symphony-invoice-line-item", inputs: ["model"] }], directives: [{ type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
5060
+ 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 });
5061
5061
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: InvoiceAreaComponent, decorators: [{
5062
5062
  type: Component,
5063
- args: [{ selector: 'symphony-invoice-area', template: "<div class=\"job-type-summary sfx-px-20\">\n <div class=\"job-type-title\">\n <symphony-h5 [text]=\"model.title\"></symphony-h5>\n </div>\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 <symphony-invoice-line-item\n [model]=\"model.total\"\n ></symphony-invoice-line-item>\n</div>\n", styles: [".job-type-summary{border-bottom:1px solid #d9d9d9}\n"] }]
5063
+ 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"] }]
5064
5064
  }], ctorParameters: function () { return []; }, propDecorators: { model: [{
5065
5065
  type: Input
5066
5066
  }] } });
@@ -5074,10 +5074,10 @@ class OrderSummaryComponent {
5074
5074
  }
5075
5075
  }
5076
5076
  OrderSummaryComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: OrderSummaryComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
5077
- 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"] }] });
5077
+ 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 });
5078
5078
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: OrderSummaryComponent, decorators: [{
5079
5079
  type: Component,
5080
- 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: [""] }]
5080
+ 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"] }]
5081
5081
  }], ctorParameters: function () { return []; }, propDecorators: { model: [{
5082
5082
  type: Input
5083
5083
  }] } });
@@ -5112,12 +5112,15 @@ class AdvertiseModalComponent {
5112
5112
  ngOnInit() {
5113
5113
  this.initialiseDefaultValues();
5114
5114
  this.updateModalHeader();
5115
- this.updateOrderSummary();
5115
+ const selectedJobBoards = this.model.jobBoards.filter((jb) => jb.isSelected).length;
5116
+ if (selectedJobBoards > 0) {
5117
+ this.updateOrderSummary();
5118
+ }
5116
5119
  this.cancelContent = {
5117
5120
  title: 'Are you sure you want to abandon your order?',
5118
5121
  content: 'All selections will be deleted and you will have to start over.',
5119
5122
  btnPrimary: 'Continue Order',
5120
- btnSecondary: 'Abandon Order'
5123
+ btnSecondary: 'Abandon Order',
5121
5124
  };
5122
5125
  }
5123
5126
  ngOnChanges(changes) {
@@ -5128,29 +5131,8 @@ class AdvertiseModalComponent {
5128
5131
  this.jobCount = this.model.jobsToAdvertise.length;
5129
5132
  this.orderSummary = {
5130
5133
  title: 'Your Order',
5131
- invoiceAreas: [
5132
- {
5133
- lineItems: [],
5134
- title: 'Pay-Per-Click',
5135
- total: {
5136
- textLeft: 'Cost Programatic Boards',
5137
- textRight: `x (${this.jobCount}) Jobs = $0`
5138
- }
5139
- },
5140
- {
5141
- lineItems: [],
5142
- title: 'Job Boards',
5143
- total: {
5144
- textLeft: 'Cost Job Boards',
5145
- textRight: `x (${this.jobCount}) Jobs = $0`
5146
- }
5147
- }
5148
- ],
5149
- total: {
5150
- textLeft: '',
5151
- textRight: '$0',
5152
- label: 'Total:'
5153
- }
5134
+ invoiceAreas: [],
5135
+ total: {},
5154
5136
  };
5155
5137
  }
5156
5138
  updateModalHeader() {
@@ -5194,7 +5176,8 @@ class AdvertiseModalComponent {
5194
5176
  this.orderSummary.invoiceAreas[invoiceAreaIndex].lineItems.forEach(li => {
5195
5177
  invoiceAreaTotal = invoiceAreaTotal + +li.textRight.replace('$', '');
5196
5178
  });
5197
- this.orderSummary.invoiceAreas[invoiceAreaIndex].total.textRight = `x (${this.model.jobsToAdvertise.length}) Jobs = $${invoiceAreaTotal * this.model.jobsToAdvertise.length}`;
5179
+ this.orderSummary.invoiceAreas[invoiceAreaIndex].subTotal.textRight = `$${invoiceAreaTotal * this.model.jobsToAdvertise.length}`;
5180
+ this.orderSummary.invoiceAreas[invoiceAreaIndex].total.textRight = `$${invoiceAreaTotal}`;
5198
5181
  return invoiceAreaTotal * this.model.jobsToAdvertise.length;
5199
5182
  }
5200
5183
  calculateOrderTotal(payPerClickAreaTotal, jobBoardAreaTotal) {
@@ -5203,14 +5186,46 @@ class AdvertiseModalComponent {
5203
5186
  const jobToAdvertiseCount = this.model.jobsToAdvertise.length;
5204
5187
  const orderSummaryText = `(${selectedJobBoards}) Boards x ${this.model.jobsToAdvertise.length} Jobs = (${selectedJobBoards * jobToAdvertiseCount}) Ads`;
5205
5188
  this.orderSummary.total = {
5206
- label: 'Total:',
5207
- textLeft: orderSummaryText,
5189
+ label: 'Current Total',
5190
+ textLeft: '',
5208
5191
  textRight: `$${payPerClickAreaTotal + jobBoardAreaTotal}`
5209
5192
  };
5210
5193
  }
5211
5194
  updateOrderSummary() {
5212
- this.orderSummary.invoiceAreas[0].lineItems = [];
5213
- this.orderSummary.invoiceAreas[1].lineItems = [];
5195
+ this.orderSummary = {
5196
+ title: 'Your Order',
5197
+ invoiceAreas: [
5198
+ {
5199
+ lineItems: [],
5200
+ total: {
5201
+ textLeft: 'Pay-Per-Click Sites, Subtotal Per Job:',
5202
+ textRight: ``
5203
+ },
5204
+ subTotal: {
5205
+ textLeft: 'Pay-Per-Click Sites Subtotal',
5206
+ textRight: `x (${this.jobCount}) Jobs = $0`
5207
+ },
5208
+ jobsToAdvertise: `x (${this.model.jobsToAdvertise.length}) Jobs Selected`
5209
+ },
5210
+ {
5211
+ lineItems: [],
5212
+ subTotal: {
5213
+ textLeft: 'Job Boards Subtotal',
5214
+ textRight: `x (${this.jobCount}) Jobs = $0`
5215
+ },
5216
+ total: {
5217
+ textLeft: 'Duration Job Boards, Subtotal Per Job:',
5218
+ textRight: ``
5219
+ },
5220
+ jobsToAdvertise: `x (${this.model.jobsToAdvertise.length}) Jobs Selected`
5221
+ }
5222
+ ],
5223
+ total: {
5224
+ textLeft: '',
5225
+ textRight: '',
5226
+ label: 'Current Total'
5227
+ },
5228
+ };
5214
5229
  this.model.jobBoards.forEach(jb => {
5215
5230
  if (jb.isSelected) {
5216
5231
  if (jb.isPayPerClick) {