@symphony-talent/component-library 4.10.0 → 4.12.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.
@@ -263,7 +263,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.2", ngImpor
263
263
 
264
264
  class TrimIdPipe {
265
265
  transform(value) {
266
- return value === null || value === void 0 ? void 0 : value.replace(/\s/g, '');
266
+ return value === null || value === void 0 ? void 0 : value.replace(/[^\w]/g, "");
267
267
  }
268
268
  }
269
269
  TrimIdPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: TrimIdPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
@@ -6312,23 +6312,23 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.2", ngImpor
6312
6312
  class InputLimitedTextComponent {
6313
6313
  constructor() {
6314
6314
  this.textChange = new EventEmitter();
6315
- this.characterCount = 0;
6316
6315
  }
6317
6316
  ngOnInit() {
6318
6317
  this.trySetCurrentCount();
6319
6318
  }
6320
6319
  trySetCurrentCount() {
6321
- this.characterCount = this.currentCount ? this.currentCount : 0;
6320
+ const characterCount = this.currentCount ? this.currentCount : 0;
6321
+ this.currentCount = characterCount;
6322
6322
  }
6323
6323
  onTextAreaChanged(event) {
6324
6324
  this.textChange.emit(event);
6325
6325
  }
6326
6326
  }
6327
6327
  InputLimitedTextComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: InputLimitedTextComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
6328
- InputLimitedTextComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.2", type: InputLimitedTextComponent, selector: "symphony-input-limited-text", inputs: { textAreamodel: "textAreamodel", isDisabled: "isDisabled", currentCount: "currentCount", placeholder: "placeholder", rows: "rows" }, outputs: { textChange: "textChange" }, ngImport: i0, template: "<div *ngIf=\"textAreamodel\" class=\"input-limited-text-wrapper\">\n <symphony-input-textarea\n (textAreaChanged)=\"onTextAreaChanged($event)\"\n [model]=\"textAreamodel\"\n [isDisabled]=\"isDisabled\"\n [rows]=\"rows\"\n [placeholder]=\"placeholder\"\n ></symphony-input-textarea>\n <div class=\"input-limited-text-counter-wrapper\">\n <symphony-character-counter\n *ngIf=\"textAreamodel.maxCount\"\n [maxCount]=\"textAreamodel.maxCount\"\n [currentCount]=\"characterCount\"\n ></symphony-character-counter>\n </div>\n</div>\n", styles: [".input-limited-text-wrapper{padding:0}.input-limited-text-counter-wrapper{padding:0;float:right}\n"], components: [{ type: InputTextareaComponent, selector: "symphony-input-textarea", inputs: ["model", "isDisabled", "currentCount", "placeholder", "rows"], outputs: ["textAreaChanged"] }, { type: CharacterCounterComponent, selector: "symphony-character-counter", inputs: ["maxCount", "currentCount"] }], directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
6328
+ InputLimitedTextComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.2", type: InputLimitedTextComponent, selector: "symphony-input-limited-text", inputs: { textAreamodel: "textAreamodel", isDisabled: "isDisabled", currentCount: "currentCount", placeholder: "placeholder", rows: "rows" }, outputs: { textChange: "textChange" }, ngImport: i0, template: "<div *ngIf=\"textAreamodel\" class=\"input-limited-text-wrapper\">\n <symphony-input-textarea\n (textAreaChanged)=\"onTextAreaChanged($event)\"\n [model]=\"textAreamodel\"\n [isDisabled]=\"isDisabled\"\n [rows]=\"rows\"\n [placeholder]=\"placeholder\"\n ></symphony-input-textarea>\n <div class=\"input-limited-text-counter-wrapper\">\n <symphony-character-counter\n *ngIf=\"textAreamodel.maxCount\"\n [maxCount]=\"textAreamodel.maxCount\"\n [currentCount]=\"currentCount\"\n ></symphony-character-counter>\n </div>\n</div>\n", styles: [".input-limited-text-wrapper{padding:0}.input-limited-text-counter-wrapper{padding:0;float:right}\n"], components: [{ type: InputTextareaComponent, selector: "symphony-input-textarea", inputs: ["model", "isDisabled", "currentCount", "placeholder", "rows"], outputs: ["textAreaChanged"] }, { type: CharacterCounterComponent, selector: "symphony-character-counter", inputs: ["maxCount", "currentCount"] }], directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
6329
6329
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: InputLimitedTextComponent, decorators: [{
6330
6330
  type: Component,
6331
- args: [{ selector: 'symphony-input-limited-text', template: "<div *ngIf=\"textAreamodel\" class=\"input-limited-text-wrapper\">\n <symphony-input-textarea\n (textAreaChanged)=\"onTextAreaChanged($event)\"\n [model]=\"textAreamodel\"\n [isDisabled]=\"isDisabled\"\n [rows]=\"rows\"\n [placeholder]=\"placeholder\"\n ></symphony-input-textarea>\n <div class=\"input-limited-text-counter-wrapper\">\n <symphony-character-counter\n *ngIf=\"textAreamodel.maxCount\"\n [maxCount]=\"textAreamodel.maxCount\"\n [currentCount]=\"characterCount\"\n ></symphony-character-counter>\n </div>\n</div>\n", styles: [".input-limited-text-wrapper{padding:0}.input-limited-text-counter-wrapper{padding:0;float:right}\n"] }]
6331
+ args: [{ selector: 'symphony-input-limited-text', template: "<div *ngIf=\"textAreamodel\" class=\"input-limited-text-wrapper\">\n <symphony-input-textarea\n (textAreaChanged)=\"onTextAreaChanged($event)\"\n [model]=\"textAreamodel\"\n [isDisabled]=\"isDisabled\"\n [rows]=\"rows\"\n [placeholder]=\"placeholder\"\n ></symphony-input-textarea>\n <div class=\"input-limited-text-counter-wrapper\">\n <symphony-character-counter\n *ngIf=\"textAreamodel.maxCount\"\n [maxCount]=\"textAreamodel.maxCount\"\n [currentCount]=\"currentCount\"\n ></symphony-character-counter>\n </div>\n</div>\n", styles: [".input-limited-text-wrapper{padding:0}.input-limited-text-counter-wrapper{padding:0;float:right}\n"] }]
6332
6332
  }], propDecorators: { textAreamodel: [{
6333
6333
  type: Input
6334
6334
  }], isDisabled: [{