@symphony-talent/component-library 3.48.1 → 3.49.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/atoms/input-editable-text/input-editable-text.component.mjs +36 -6
- package/esm2020/lib/atoms/input-editable-text/input-editable-text.model.mjs +1 -1
- package/esm2020/lib/molecules/advertise-postingboard-selection-item/advertise-postingboard-selection-item.component.mjs +21 -3
- package/esm2020/lib/organisms/advertise-postingboard-selection-list/advertise-postingboard-selection-list.component.mjs +9 -5
- package/esm2020/lib/pages/modals/advertise-modal/advertise-modal.component.mjs +13 -4
- package/esm2020/lib/pages/modals/advertise-modal/advertise-modal.model.mjs +1 -1
- package/esm2020/projects/component-library/lib/atoms/input-editable-text/input-editable-text.component.mjs +36 -6
- package/esm2020/projects/component-library/lib/atoms/input-editable-text/input-editable-text.model.mjs +1 -1
- package/esm2020/projects/component-library/lib/molecules/advertise-postingboard-selection-item/advertise-postingboard-selection-item.component.mjs +21 -3
- package/esm2020/projects/component-library/lib/organisms/advertise-postingboard-selection-list/advertise-postingboard-selection-list.component.mjs +9 -5
- package/esm2020/projects/component-library/lib/pages/modals/advertise-modal/advertise-modal.component.mjs +13 -4
- package/esm2020/projects/component-library/lib/pages/modals/advertise-modal/advertise-modal.model.mjs +1 -1
- package/fesm2015/symphony-talent-component-library-projects-component-library.mjs +74 -13
- package/fesm2015/symphony-talent-component-library-projects-component-library.mjs.map +1 -1
- package/fesm2015/symphony-talent-component-library.mjs +74 -13
- package/fesm2015/symphony-talent-component-library.mjs.map +1 -1
- package/fesm2020/symphony-talent-component-library-projects-component-library.mjs +74 -13
- package/fesm2020/symphony-talent-component-library-projects-component-library.mjs.map +1 -1
- package/fesm2020/symphony-talent-component-library.mjs +74 -13
- package/fesm2020/symphony-talent-component-library.mjs.map +1 -1
- package/lib/atoms/input-editable-text/input-editable-text.component.d.ts +8 -3
- package/lib/atoms/input-editable-text/input-editable-text.model.d.ts +3 -0
- package/lib/molecules/advertise-postingboard-selection-item/advertise-postingboard-selection-item.component.d.ts +5 -1
- package/lib/organisms/advertise-postingboard-selection-list/advertise-postingboard-selection-list.component.d.ts +2 -0
- package/lib/pages/modals/advertise-modal/advertise-modal.model.d.ts +3 -0
- package/package.json +1 -1
- package/projects/component-library/lib/atoms/input-editable-text/input-editable-text.component.d.ts +8 -3
- package/projects/component-library/lib/atoms/input-editable-text/input-editable-text.model.d.ts +3 -0
- package/projects/component-library/lib/molecules/advertise-postingboard-selection-item/advertise-postingboard-selection-item.component.d.ts +5 -1
- package/projects/component-library/lib/organisms/advertise-postingboard-selection-list/advertise-postingboard-selection-list.component.d.ts +2 -0
- package/projects/component-library/lib/pages/modals/advertise-modal/advertise-modal.model.d.ts +3 -0
|
@@ -5052,45 +5052,87 @@ class InputEditableTextComponent {
|
|
|
5052
5052
|
constructor() {
|
|
5053
5053
|
this.type = 'number';
|
|
5054
5054
|
this.confirm = new EventEmitter();
|
|
5055
|
+
this.validate = new EventEmitter();
|
|
5056
|
+
this.editMode = new EventEmitter();
|
|
5057
|
+
}
|
|
5058
|
+
ngOnInit() {
|
|
5059
|
+
if (this.model.minValue) {
|
|
5060
|
+
this.maxMinPlaceholder = `${this.model.minValue}`;
|
|
5061
|
+
}
|
|
5062
|
+
if (this.model.minValue && this.model.maxValue) {
|
|
5063
|
+
this.maxMinPlaceholder = `${this.model.inputMask}${this.model.minValue} - ${this.model.inputMask}${this.model.maxValue}`;
|
|
5064
|
+
}
|
|
5055
5065
|
}
|
|
5056
5066
|
onEditClick() {
|
|
5057
5067
|
this.model.isInEditMode = true;
|
|
5058
5068
|
this.previousValue = this.model.value;
|
|
5069
|
+
this.editMode.emit(this.model);
|
|
5059
5070
|
}
|
|
5060
5071
|
onConfirmClick() {
|
|
5061
|
-
this.model.
|
|
5062
|
-
|
|
5072
|
+
if (!this.model.isInvalid) {
|
|
5073
|
+
this.model.isInEditMode = false;
|
|
5074
|
+
this.confirm.emit(this.model);
|
|
5075
|
+
}
|
|
5063
5076
|
}
|
|
5064
5077
|
onCloseClick() {
|
|
5065
5078
|
this.model.value = this.previousValue;
|
|
5066
5079
|
this.model.isInEditMode = false;
|
|
5067
5080
|
}
|
|
5081
|
+
onValidate(event) {
|
|
5082
|
+
if (Number(this.model.value) < this.model.minValue) {
|
|
5083
|
+
this.model.isInvalid = true;
|
|
5084
|
+
}
|
|
5085
|
+
else if (this.model.maxValue &&
|
|
5086
|
+
Number(this.model.value) > this.model.maxValue) {
|
|
5087
|
+
this.model.isInvalid = true;
|
|
5088
|
+
}
|
|
5089
|
+
else {
|
|
5090
|
+
this.model.isInvalid = false;
|
|
5091
|
+
}
|
|
5092
|
+
this.validate.emit(this.model);
|
|
5093
|
+
}
|
|
5068
5094
|
}
|
|
5069
5095
|
InputEditableTextComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: InputEditableTextComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
5070
|
-
InputEditableTextComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.2", type: InputEditableTextComponent, selector: "symphony-input-editable-text", inputs: { model: "model", type: "type" }, outputs: { confirm: "confirm" }, ngImport: i0, template: "<div *ngIf=\"model\">\n <div *ngIf=\"!model.isInEditMode\">\n <div class=\"flex sfx-pt-10\">\n <div>\n <symphony-paragraph\n >{{ model.inputMask }}{{ model.value }}</symphony-paragraph\n >\n </div>\n <div *ngIf=\"model.isEditable\" (click)=\"onEditClick()\" class=\"sfx-pl-10\">\n <symphony-icon [icon]=\"'si-edit'\" [size]=\"'14px'\"></symphony-icon>\n </div>\n <div *ngIf=\"!model.isEditable\" class=\"no-icon-padding\"></div>\n </div>\n </div>\n <div
|
|
5096
|
+
InputEditableTextComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.2", type: InputEditableTextComponent, selector: "symphony-input-editable-text", inputs: { model: "model", type: "type" }, outputs: { confirm: "confirm", validate: "validate", editMode: "editMode" }, ngImport: i0, template: "<div *ngIf=\"model\">\n <div *ngIf=\"!model.isInEditMode\">\n <div class=\"flex sfx-pt-10\">\n <div>\n <symphony-paragraph\n >{{ model.inputMask }}{{ model.value }}</symphony-paragraph\n >\n </div>\n <div *ngIf=\"model.isEditable\" (click)=\"onEditClick()\" class=\"sfx-pl-10\">\n <symphony-icon [icon]=\"'si-edit'\" [size]=\"'14px'\"></symphony-icon>\n </div>\n <div *ngIf=\"!model.isEditable\" class=\"no-icon-padding\"></div>\n </div>\n </div>\n <div\n *ngIf=\"model.isInEditMode\"\n class=\"editMode\"\n [ngClass]=\"{\n invalid: model.isInvalid\n }\"\n >\n <span class=\"sfx-pr-10\"\n ><input\n type=\"{{ type }}\"\n *ngIf=\"maxMinPlaceholder\"\n [placeholder]=\"maxMinPlaceholder\"\n [(ngModel)]=\"model.value\"\n [ngClass]=\"{\n 'min-max-placeholder': model.minValue && model.maxValue\n }\"\n (keyup)=\"onValidate($event)\"\n />\n <input\n type=\"{{ type }}\"\n *ngIf=\"!maxMinPlaceholder\"\n [(ngModel)]=\"model.value\"\n [ngClass]=\"{\n 'min-max-placeholder': model.minValue && model.maxValue\n }\"\n (keyup)=\"onValidate($event)\"\n />\n </span>\n <span class=\"edit-i-postion\"\n ><symphony-icon\n [ngClass]=\"{\n 'invalid-confirm': model.isInvalid\n }\"\n [icon]=\"'si-confirmation'\"\n (click)=\"onConfirmClick()\"\n ></symphony-icon\n ></span>\n <span class=\"sfx-ml-10 edit-i-postion\"\n ><symphony-icon\n [icon]=\"'si-close-modal'\"\n (click)=\"onCloseClick()\"\n ></symphony-icon\n ></span>\n </div>\n</div>\n", styles: [".color-sample{float:left;border-radius:50%;height:30px;width:30px;margin-top:10px;margin-right:20px}.background-color-black{background-color:#000}.background-color-grey{background-color:#bababa}.background-color-light-grey-1{background-color:#d0d0d0}.background-color-light-grey-2{background-color:#d9d9d9}.background-color-light-grey-3{background-color:#ebebeb}.background-color-medium-black{background-color:#464646}.background-color-space-grey{background-color:#141414}.background-color-white{background-color:#fff}.background-color-green{background-color:#00d56b}.background-color-ice-blue{background-color:#03bcce}.background-color-lavender{background-color:#af5af9}.background-color-orange{background-color:#ffa700}.background-color-pink{background-color:#ff6cff}.background-color-purple{background-color:#801afc}.background-color-red{background-color:#f0001e}.background-color-skyblue{background-color:#007dbb}.background-color-turquoise{background-color:#00ebb5}.background-color-yellow{background-color:#fde928}.background-color-cyan{background-color:#00ffd8}.background-color-strong-orange{background-color:#ffa700}.background-color-soft-lime-green{background-color:#67f95a}.background-color-bright-violet{background-color:#7428fd}.background-color-lime-green{background-color:#00bb5e}input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input[type=number]{-moz-appearance:textfield;padding:0}input{border-width:0px;border:none;width:75px}input:focus{outline:none}.flex{display:flex}.no-icon-padding{padding-right:23px}.editMode{border:1px solid #d9d9d9;padding:7.5px 10px;border-radius:4px}.editMode.invalid{border:1px solid #f0001e}.editMode .edit-i-postion{position:relative;top:2px}.editMode .min-max-placeholder::placeholder{color:#bababa}.invalid-confirm{color:#d0d0d0}.invalid-confirm:hover{cursor:no-drop}.invalid-confirm i{pointer-events:none}\n"], components: [{ type: ParagraphComponent, selector: "symphony-paragraph", inputs: ["text", "isSecondary"] }, { type: IconComponent, selector: "symphony-icon", inputs: ["icon", "isSecondary", "size", "iconColor"], outputs: ["clicked"] }], directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
5071
5097
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: InputEditableTextComponent, decorators: [{
|
|
5072
5098
|
type: Component,
|
|
5073
|
-
args: [{ selector: 'symphony-input-editable-text', template: "<div *ngIf=\"model\">\n <div *ngIf=\"!model.isInEditMode\">\n <div class=\"flex sfx-pt-10\">\n <div>\n <symphony-paragraph\n >{{ model.inputMask }}{{ model.value }}</symphony-paragraph\n >\n </div>\n <div *ngIf=\"model.isEditable\" (click)=\"onEditClick()\" class=\"sfx-pl-10\">\n <symphony-icon [icon]=\"'si-edit'\" [size]=\"'14px'\"></symphony-icon>\n </div>\n <div *ngIf=\"!model.isEditable\" class=\"no-icon-padding\"></div>\n </div>\n </div>\n <div
|
|
5099
|
+
args: [{ selector: 'symphony-input-editable-text', encapsulation: ViewEncapsulation.None, template: "<div *ngIf=\"model\">\n <div *ngIf=\"!model.isInEditMode\">\n <div class=\"flex sfx-pt-10\">\n <div>\n <symphony-paragraph\n >{{ model.inputMask }}{{ model.value }}</symphony-paragraph\n >\n </div>\n <div *ngIf=\"model.isEditable\" (click)=\"onEditClick()\" class=\"sfx-pl-10\">\n <symphony-icon [icon]=\"'si-edit'\" [size]=\"'14px'\"></symphony-icon>\n </div>\n <div *ngIf=\"!model.isEditable\" class=\"no-icon-padding\"></div>\n </div>\n </div>\n <div\n *ngIf=\"model.isInEditMode\"\n class=\"editMode\"\n [ngClass]=\"{\n invalid: model.isInvalid\n }\"\n >\n <span class=\"sfx-pr-10\"\n ><input\n type=\"{{ type }}\"\n *ngIf=\"maxMinPlaceholder\"\n [placeholder]=\"maxMinPlaceholder\"\n [(ngModel)]=\"model.value\"\n [ngClass]=\"{\n 'min-max-placeholder': model.minValue && model.maxValue\n }\"\n (keyup)=\"onValidate($event)\"\n />\n <input\n type=\"{{ type }}\"\n *ngIf=\"!maxMinPlaceholder\"\n [(ngModel)]=\"model.value\"\n [ngClass]=\"{\n 'min-max-placeholder': model.minValue && model.maxValue\n }\"\n (keyup)=\"onValidate($event)\"\n />\n </span>\n <span class=\"edit-i-postion\"\n ><symphony-icon\n [ngClass]=\"{\n 'invalid-confirm': model.isInvalid\n }\"\n [icon]=\"'si-confirmation'\"\n (click)=\"onConfirmClick()\"\n ></symphony-icon\n ></span>\n <span class=\"sfx-ml-10 edit-i-postion\"\n ><symphony-icon\n [icon]=\"'si-close-modal'\"\n (click)=\"onCloseClick()\"\n ></symphony-icon\n ></span>\n </div>\n</div>\n", styles: [".color-sample{float:left;border-radius:50%;height:30px;width:30px;margin-top:10px;margin-right:20px}.background-color-black{background-color:#000}.background-color-grey{background-color:#bababa}.background-color-light-grey-1{background-color:#d0d0d0}.background-color-light-grey-2{background-color:#d9d9d9}.background-color-light-grey-3{background-color:#ebebeb}.background-color-medium-black{background-color:#464646}.background-color-space-grey{background-color:#141414}.background-color-white{background-color:#fff}.background-color-green{background-color:#00d56b}.background-color-ice-blue{background-color:#03bcce}.background-color-lavender{background-color:#af5af9}.background-color-orange{background-color:#ffa700}.background-color-pink{background-color:#ff6cff}.background-color-purple{background-color:#801afc}.background-color-red{background-color:#f0001e}.background-color-skyblue{background-color:#007dbb}.background-color-turquoise{background-color:#00ebb5}.background-color-yellow{background-color:#fde928}.background-color-cyan{background-color:#00ffd8}.background-color-strong-orange{background-color:#ffa700}.background-color-soft-lime-green{background-color:#67f95a}.background-color-bright-violet{background-color:#7428fd}.background-color-lime-green{background-color:#00bb5e}input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input[type=number]{-moz-appearance:textfield;padding:0}input{border-width:0px;border:none;width:75px}input:focus{outline:none}.flex{display:flex}.no-icon-padding{padding-right:23px}.editMode{border:1px solid #d9d9d9;padding:7.5px 10px;border-radius:4px}.editMode.invalid{border:1px solid #f0001e}.editMode .edit-i-postion{position:relative;top:2px}.editMode .min-max-placeholder::placeholder{color:#bababa}.invalid-confirm{color:#d0d0d0}.invalid-confirm:hover{cursor:no-drop}.invalid-confirm i{pointer-events:none}\n"] }]
|
|
5074
5100
|
}], ctorParameters: function () { return []; }, propDecorators: { model: [{
|
|
5075
5101
|
type: Input
|
|
5076
5102
|
}], type: [{
|
|
5077
5103
|
type: Input
|
|
5078
5104
|
}], confirm: [{
|
|
5079
5105
|
type: Output
|
|
5106
|
+
}], validate: [{
|
|
5107
|
+
type: Output
|
|
5108
|
+
}], editMode: [{
|
|
5109
|
+
type: Output
|
|
5080
5110
|
}] } });
|
|
5081
5111
|
|
|
5082
5112
|
class AdvertisePostingboardSelectionItemComponent {
|
|
5083
5113
|
constructor() {
|
|
5084
5114
|
this.priceChange = new EventEmitter();
|
|
5115
|
+
this.validationChange = new EventEmitter();
|
|
5116
|
+
this.editModeChange = new EventEmitter();
|
|
5085
5117
|
this.postingBoardSelect = new EventEmitter();
|
|
5086
5118
|
}
|
|
5087
5119
|
ngOnInit() {
|
|
5088
5120
|
this.mapModel();
|
|
5089
5121
|
}
|
|
5090
5122
|
onBoardPriceChange(priceChangeEvent) {
|
|
5123
|
+
this.model.isInEditMode = priceChangeEvent.isInEditMode;
|
|
5091
5124
|
this.model.boardPrice = +priceChangeEvent.value;
|
|
5092
5125
|
this.priceChange.emit(this.model);
|
|
5093
5126
|
}
|
|
5127
|
+
onBoardValidateChange(validateChange) {
|
|
5128
|
+
this.model.isInEditMode = validateChange.isInEditMode;
|
|
5129
|
+
this.model.isInvalid = validateChange.isInvalid;
|
|
5130
|
+
this.validationChange.emit(this.model);
|
|
5131
|
+
}
|
|
5132
|
+
onBoardEditMode(editModeChange) {
|
|
5133
|
+
this.model.isInEditMode = editModeChange.isInEditMode;
|
|
5134
|
+
this.editModeChange.emit(this.model);
|
|
5135
|
+
}
|
|
5094
5136
|
onPostingBoardSelect(postingBoardSelectEvent) {
|
|
5095
5137
|
this.model.isSelected = postingBoardSelectEvent.isActive;
|
|
5096
5138
|
this.postingBoardSelect.emit(this.model);
|
|
@@ -5103,19 +5145,25 @@ class AdvertisePostingboardSelectionItemComponent {
|
|
|
5103
5145
|
isEditable: this.model.isEditable,
|
|
5104
5146
|
isInEditMode: this.model.isInEditMode,
|
|
5105
5147
|
id: this.model.id,
|
|
5148
|
+
minValue: this.model.minValue,
|
|
5149
|
+
maxValue: this.model.maxValue
|
|
5106
5150
|
};
|
|
5107
5151
|
}
|
|
5108
5152
|
}
|
|
5109
5153
|
}
|
|
5110
5154
|
AdvertisePostingboardSelectionItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: AdvertisePostingboardSelectionItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
5111
|
-
AdvertisePostingboardSelectionItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.2", type: AdvertisePostingboardSelectionItemComponent, selector: "symphony-advertise-postingboard-selection-item", inputs: { model: "model" }, outputs: { priceChange: "priceChange", postingBoardSelect: "postingBoardSelect" }, ngImport: i0, template: "<div *ngIf=\"model && model.isVisible\" class=\"posting-board-selection-item\">\n <div class=\"inline-block\">\n <symphony-input-checkbox\n [label]=\"model.boardName\"\n [isActive]=\"model.isSelected\"\n (clicked)=\"onPostingBoardSelect($event)\"\n ></symphony-input-checkbox>\n </div>\n <div class=\"inline-block editText\">\n <symphony-input-editable-text\n [model]=\"editableTextModel\"\n (confirm)=\"onBoardPriceChange($event)\"\n ></symphony-input-editable-text>\n </div>\n</div>\n", styles: [".posting-board-selection-item{position:relative;padding-right:100px}.posting-board-selection-item .editText{position:absolute;right:0}.inline-block{display:inline-block}\n"], components: [{ type: InputCheckboxComponent, selector: "symphony-input-checkbox", inputs: ["isActive", "label", "isRequired"], outputs: ["clicked"] }, { type: InputEditableTextComponent, selector: "symphony-input-editable-text", inputs: ["model", "type"], outputs: ["confirm"] }], directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
5155
|
+
AdvertisePostingboardSelectionItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.2", type: AdvertisePostingboardSelectionItemComponent, selector: "symphony-advertise-postingboard-selection-item", inputs: { model: "model" }, outputs: { priceChange: "priceChange", validationChange: "validationChange", editModeChange: "editModeChange", postingBoardSelect: "postingBoardSelect" }, ngImport: i0, template: "<div *ngIf=\"model && model.isVisible\" class=\"posting-board-selection-item\">\n <div class=\"inline-block\">\n <symphony-input-checkbox\n [label]=\"model.boardName\"\n [isActive]=\"model.isSelected\"\n (clicked)=\"onPostingBoardSelect($event)\"\n ></symphony-input-checkbox>\n </div>\n <div class=\"inline-block editText\">\n <symphony-input-editable-text\n [model]=\"editableTextModel\"\n (confirm)=\"onBoardPriceChange($event)\"\n (validate)=\"onBoardValidateChange($event)\"\n (editMode)=\"onBoardEditMode($event)\"\n ></symphony-input-editable-text>\n </div>\n</div>\n", styles: [".posting-board-selection-item{position:relative;padding-right:100px}.posting-board-selection-item .editText{position:absolute;right:0}.inline-block{display:inline-block}\n"], components: [{ type: InputCheckboxComponent, selector: "symphony-input-checkbox", inputs: ["isActive", "label", "isRequired"], outputs: ["clicked"] }, { type: InputEditableTextComponent, selector: "symphony-input-editable-text", inputs: ["model", "type"], outputs: ["confirm", "validate", "editMode"] }], directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
5112
5156
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: AdvertisePostingboardSelectionItemComponent, decorators: [{
|
|
5113
5157
|
type: Component,
|
|
5114
|
-
args: [{ selector: 'symphony-advertise-postingboard-selection-item', template: "<div *ngIf=\"model && model.isVisible\" class=\"posting-board-selection-item\">\n <div class=\"inline-block\">\n <symphony-input-checkbox\n [label]=\"model.boardName\"\n [isActive]=\"model.isSelected\"\n (clicked)=\"onPostingBoardSelect($event)\"\n ></symphony-input-checkbox>\n </div>\n <div class=\"inline-block editText\">\n <symphony-input-editable-text\n [model]=\"editableTextModel\"\n (confirm)=\"onBoardPriceChange($event)\"\n ></symphony-input-editable-text>\n </div>\n</div>\n", styles: [".posting-board-selection-item{position:relative;padding-right:100px}.posting-board-selection-item .editText{position:absolute;right:0}.inline-block{display:inline-block}\n"] }]
|
|
5158
|
+
args: [{ selector: 'symphony-advertise-postingboard-selection-item', template: "<div *ngIf=\"model && model.isVisible\" class=\"posting-board-selection-item\">\n <div class=\"inline-block\">\n <symphony-input-checkbox\n [label]=\"model.boardName\"\n [isActive]=\"model.isSelected\"\n (clicked)=\"onPostingBoardSelect($event)\"\n ></symphony-input-checkbox>\n </div>\n <div class=\"inline-block editText\">\n <symphony-input-editable-text\n [model]=\"editableTextModel\"\n (confirm)=\"onBoardPriceChange($event)\"\n (validate)=\"onBoardValidateChange($event)\"\n (editMode)=\"onBoardEditMode($event)\"\n ></symphony-input-editable-text>\n </div>\n</div>\n", styles: [".posting-board-selection-item{position:relative;padding-right:100px}.posting-board-selection-item .editText{position:absolute;right:0}.inline-block{display:inline-block}\n"] }]
|
|
5115
5159
|
}], ctorParameters: function () { return []; }, propDecorators: { model: [{
|
|
5116
5160
|
type: Input
|
|
5117
5161
|
}], priceChange: [{
|
|
5118
5162
|
type: Output
|
|
5163
|
+
}], validationChange: [{
|
|
5164
|
+
type: Output
|
|
5165
|
+
}], editModeChange: [{
|
|
5166
|
+
type: Output
|
|
5119
5167
|
}], postingBoardSelect: [{
|
|
5120
5168
|
type: Output
|
|
5121
5169
|
}] } });
|
|
@@ -5125,19 +5173,23 @@ class AdvertisePostingboardSelectionListComponent {
|
|
|
5125
5173
|
this.postingBoardChange = new EventEmitter();
|
|
5126
5174
|
}
|
|
5127
5175
|
onPostingBoardSelect(selectedBoard) {
|
|
5128
|
-
console.log('onPostingBoardSelect');
|
|
5129
5176
|
this.postingBoardChange.emit(selectedBoard);
|
|
5130
5177
|
}
|
|
5131
5178
|
onPriceChange(priceChangeBoard) {
|
|
5132
|
-
console.log('onPriceChange');
|
|
5133
5179
|
this.postingBoardChange.emit(priceChangeBoard);
|
|
5134
5180
|
}
|
|
5181
|
+
onValidationChange(validationChangeBoard) {
|
|
5182
|
+
this.postingBoardChange.emit(validationChangeBoard);
|
|
5183
|
+
}
|
|
5184
|
+
onEditModeChange(editModeChangeBoard) {
|
|
5185
|
+
this.postingBoardChange.emit(editModeChangeBoard);
|
|
5186
|
+
}
|
|
5135
5187
|
}
|
|
5136
5188
|
AdvertisePostingboardSelectionListComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: AdvertisePostingboardSelectionListComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
5137
|
-
AdvertisePostingboardSelectionListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.2", type: AdvertisePostingboardSelectionListComponent, selector: "symphony-advertise-postingboard-selection-list", inputs: { model: "model" }, outputs: { postingBoardChange: "postingBoardChange" }, ngImport: i0, template: "<symphony-advertise-postingboard-selection-item\n *ngFor=\"let item of model\"\n [model]=\"item\"\n (postingBoardSelect)=\"onPostingBoardSelect($event)\"\n (priceChange)=\"onPriceChange($event)\"\n></symphony-advertise-postingboard-selection-item>\n", styles: [""], components: [{ type: AdvertisePostingboardSelectionItemComponent, selector: "symphony-advertise-postingboard-selection-item", inputs: ["model"], outputs: ["priceChange", "postingBoardSelect"] }], directives: [{ type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
|
|
5189
|
+
AdvertisePostingboardSelectionListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.2", type: AdvertisePostingboardSelectionListComponent, selector: "symphony-advertise-postingboard-selection-list", inputs: { model: "model" }, outputs: { postingBoardChange: "postingBoardChange" }, ngImport: i0, template: "<symphony-advertise-postingboard-selection-item\n *ngFor=\"let item of model\"\n [model]=\"item\"\n (postingBoardSelect)=\"onPostingBoardSelect($event)\"\n (priceChange)=\"onPriceChange($event)\"\n (validationChange)=\"onValidationChange($event)\"\n (editModeChange)=\"onEditModeChange($event)\"\n></symphony-advertise-postingboard-selection-item>\n", styles: [""], components: [{ type: AdvertisePostingboardSelectionItemComponent, selector: "symphony-advertise-postingboard-selection-item", inputs: ["model"], outputs: ["priceChange", "validationChange", "editModeChange", "postingBoardSelect"] }], directives: [{ type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
|
|
5138
5190
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: AdvertisePostingboardSelectionListComponent, decorators: [{
|
|
5139
5191
|
type: Component,
|
|
5140
|
-
args: [{ selector: 'symphony-advertise-postingboard-selection-list', template: "<symphony-advertise-postingboard-selection-item\n *ngFor=\"let item of model\"\n [model]=\"item\"\n (postingBoardSelect)=\"onPostingBoardSelect($event)\"\n (priceChange)=\"onPriceChange($event)\"\n></symphony-advertise-postingboard-selection-item>\n", styles: [""] }]
|
|
5192
|
+
args: [{ selector: 'symphony-advertise-postingboard-selection-list', template: "<symphony-advertise-postingboard-selection-item\n *ngFor=\"let item of model\"\n [model]=\"item\"\n (postingBoardSelect)=\"onPostingBoardSelect($event)\"\n (priceChange)=\"onPriceChange($event)\"\n (validationChange)=\"onValidationChange($event)\"\n (editModeChange)=\"onEditModeChange($event)\"\n></symphony-advertise-postingboard-selection-item>\n", styles: [""] }]
|
|
5141
5193
|
}], ctorParameters: function () { return []; }, propDecorators: { model: [{
|
|
5142
5194
|
type: Input
|
|
5143
5195
|
}], postingBoardChange: [{
|
|
@@ -5268,11 +5320,20 @@ class AdvertiseModalComponent {
|
|
|
5268
5320
|
this.closeButtonClicked.emit();
|
|
5269
5321
|
}
|
|
5270
5322
|
onPostingBoardChange(selectedBoard) {
|
|
5271
|
-
const selectedJobBoards = this.model.jobBoards.filter(jb => jb.isSelected)
|
|
5272
|
-
|
|
5273
|
-
if (selectedJobBoards > 0) {
|
|
5323
|
+
const selectedJobBoards = this.model.jobBoards.filter(jb => jb.isSelected);
|
|
5324
|
+
if (selectedJobBoards.length > 0) {
|
|
5274
5325
|
this.updateOrderSummary();
|
|
5275
5326
|
}
|
|
5327
|
+
const invalidJobBoards = selectedJobBoards.filter(jb => jb.isInvalid)
|
|
5328
|
+
.length;
|
|
5329
|
+
if (invalidJobBoards > 0) {
|
|
5330
|
+
this.isJobBoardNextButtonDisabled = true;
|
|
5331
|
+
}
|
|
5332
|
+
const editModeJobBoards = selectedJobBoards.filter(jb => jb.isInEditMode)
|
|
5333
|
+
.length;
|
|
5334
|
+
if (editModeJobBoards > 0) {
|
|
5335
|
+
this.isJobBoardNextButtonDisabled = true;
|
|
5336
|
+
}
|
|
5276
5337
|
}
|
|
5277
5338
|
addLineItem(invoiceAreaIndex, selectedBoard) {
|
|
5278
5339
|
this.orderSummary.invoiceAreas[invoiceAreaIndex].lineItems.push({
|