Skip to content

Commit

Permalink
zemke/tagbox#v0.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Zemke committed Sep 2, 2022
1 parent 3f989ab commit c9d9c37
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion cwt-angular/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"@angular/router": "^7",
"@fortawesome/fontawesome-free": "^5.15.1",
"@ng-bootstrap/ng-bootstrap": "4.x",
"@zemke/tagbox": "https://github.com/zemke/tagbox#v0.1.0",
"@zemke/tagbox": "https://github.com/zemke/tagbox#v0.2.0",
"bootstrap": "^4.3.1",
"core-js": "^2.5.7",
"hamburgers": "^1.1.3",
Expand Down
5 changes: 5 additions & 0 deletions cwt-angular/src/main/webapp/app/custom.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -469,3 +469,8 @@ export interface MapDto {
texture: string;
game: GameMinimalDto;
}

export interface ZemkeTagboxElement extends HTMLElement {
zemkeInput: HTMLInputElement;
}

Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
Input,
ViewChild,
} from '@angular/core';
import {MessageCreationDto, UserMinimalDto, MessageDto, JwtUser} from "../custom";
import {MessageCreationDto, UserMinimalDto, MessageDto, JwtUser, ZemkeTagboxElement} from "../custom";
import {AuthService} from "../_services/auth.service";
import {RequestService} from "../_services/request.service";

Expand All @@ -22,7 +22,7 @@ export class ChatInputComponent {
@Input()
messages: MessageDto[];

@ViewChild('tagbox') tagbox: ElementRef<HTMLElement>;
@ViewChild('tagbox') tagbox: ElementRef<ZemkeTagboxElement>;
@ViewChild('valueEl') valueEl: ElementRef<HTMLInputElement>;

value = '';
Expand All @@ -37,7 +37,7 @@ export class ChatInputComponent {
}

get chatInputEl() {
return this.tagbox.nativeElement.chatInputEl;
return this.tagbox.nativeElement.zemkeInput;
}

get disabled() {
Expand Down
4 changes: 2 additions & 2 deletions cwt-angular/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1233,9 +1233,9 @@
resolved "https://registry.yarnpkg.com/@zemke/http-mock/-/http-mock-4.0.2.tgz#8d93c0c5d72662ac4bf901766725a361ac6ec9f1"
integrity sha512-M8pnl8LGZcpGBNRbHb0l0FchauN1hxmiNoURpZpy4ziFyBN3FgyK821ZszjnQ7+3kFkdx+JvEix3FBgdEscdag==

"@zemke/tagbox@https://github.com/zemke/tagbox#v0.1.0":
"@zemke/tagbox@https://github.com/zemke/tagbox#v0.2.0":
version "0.1.0"
resolved "https://github.com/zemke/tagbox#b798ea3dd4c2d2736f8b831a910bef766aee67ba"
resolved "https://github.com/zemke/tagbox#ff406658d23fa9dac1a06df6e784b38bf3cd5f16"

abbrev@1:
version "1.1.1"
Expand Down

0 comments on commit c9d9c37

Please sign in to comment.