diff --git a/.vscode/settings.json b/.vscode/settings.json index ed8a895..02df2a7 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,4 +1,5 @@ { + "editor.formatOnSaveMode": "modificationsIfAvailable", "editor.formatOnSave": true, "editor.defaultFormatter": "esbenp.prettier-vscode", "cSpell.words": [] diff --git a/package.json b/package.json index b725780..e9cab7c 100644 --- a/package.json +++ b/package.json @@ -28,6 +28,8 @@ "@angular/platform-browser-dynamic": "^19.0.0", "@angular/router": "^19.0.0", "@ikilote/json2html": "0.5.0", + "@jsverse/transloco": "^7.5.0", + "bootstrap": "^5.3.3", "bowser": "2.11.0", "core-js": "^2.5.4", "graphemer": "^1.4.0", @@ -74,4 +76,4 @@ "tslib": "^2.3.0", "typescript": "~5.6.3" } -} \ No newline at end of file +} diff --git a/projects/ng-select2-component/src/lib/select2-hint.component.ts b/projects/ng-select2-component/src/lib/select2-hint.component.ts index b61663d..91bb164 100644 --- a/projects/ng-select2-component/src/lib/select2-hint.component.ts +++ b/projects/ng-select2-component/src/lib/select2-hint.component.ts @@ -1,4 +1,4 @@ import { Directive } from '@angular/core'; -@Directive({ selector: 'select2-hint' }) +@Directive({ selector: 'select2-hint, ng-select2-hint' }) export class Select2Hint {} diff --git a/projects/ng-select2-component/src/lib/select2-label.component.ts b/projects/ng-select2-component/src/lib/select2-label.component.ts index 3a54069..b562314 100644 --- a/projects/ng-select2-component/src/lib/select2-label.component.ts +++ b/projects/ng-select2-component/src/lib/select2-label.component.ts @@ -1,4 +1,4 @@ import { Directive } from '@angular/core'; -@Directive({ selector: 'select2-label' }) +@Directive({ selector: 'select2-label, ng-select2-label' }) export class Select2Label {} diff --git a/projects/ng-select2-component/src/lib/select2.component.html b/projects/ng-select2-component/src/lib/select2.component.html index 75f0778..0da75b2 100644 --- a/projects/ng-select2-component/src/lib/select2.component.html +++ b/projects/ng-select2-component/src/lib/select2.component.html @@ -1,5 +1,5 @@