@symphony-talent/component-library 4.10.0 → 4.11.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/molecules/input-limited-text/input-limited-text.component.mjs +5 -5
- package/esm2020/projects/component-library/lib/molecules/input-limited-text/input-limited-text.component.mjs +5 -5
- package/fesm2015/symphony-talent-component-library-projects-component-library.mjs +4 -4
- package/fesm2015/symphony-talent-component-library-projects-component-library.mjs.map +1 -1
- package/fesm2015/symphony-talent-component-library.mjs +4 -4
- package/fesm2015/symphony-talent-component-library.mjs.map +1 -1
- package/fesm2020/symphony-talent-component-library-projects-component-library.mjs +4 -4
- package/fesm2020/symphony-talent-component-library-projects-component-library.mjs.map +1 -1
- package/fesm2020/symphony-talent-component-library.mjs +4 -4
- package/fesm2020/symphony-talent-component-library.mjs.map +1 -1
- package/lib/molecules/input-limited-text/input-limited-text.component.d.ts +0 -1
- package/package.json +1 -1
- package/projects/component-library/lib/molecules/input-limited-text/input-limited-text.component.d.ts +0 -1
|
@@ -6308,23 +6308,23 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.2", ngImpor
|
|
|
6308
6308
|
class InputLimitedTextComponent {
|
|
6309
6309
|
constructor() {
|
|
6310
6310
|
this.textChange = new EventEmitter();
|
|
6311
|
-
this.characterCount = 0;
|
|
6312
6311
|
}
|
|
6313
6312
|
ngOnInit() {
|
|
6314
6313
|
this.trySetCurrentCount();
|
|
6315
6314
|
}
|
|
6316
6315
|
trySetCurrentCount() {
|
|
6317
|
-
|
|
6316
|
+
const characterCount = this.currentCount ? this.currentCount : 0;
|
|
6317
|
+
this.currentCount = characterCount;
|
|
6318
6318
|
}
|
|
6319
6319
|
onTextAreaChanged(event) {
|
|
6320
6320
|
this.textChange.emit(event);
|
|
6321
6321
|
}
|
|
6322
6322
|
}
|
|
6323
6323
|
InputLimitedTextComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: InputLimitedTextComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
6324
|
-
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]=\"
|
|
6324
|
+
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"] }] });
|
|
6325
6325
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: InputLimitedTextComponent, decorators: [{
|
|
6326
6326
|
type: Component,
|
|
6327
|
-
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]=\"
|
|
6327
|
+
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"] }]
|
|
6328
6328
|
}], propDecorators: { textAreamodel: [{
|
|
6329
6329
|
type: Input
|
|
6330
6330
|
}], isDisabled: [{
|