ng-thaana 1.3.0 → 1.4.1
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/README.md +13 -90
- package/esm2020/lib/ng-thaana.directive.mjs +37 -0
- package/{esm2022 → esm2020}/lib/ng-thaana.module.mjs +5 -5
- package/{fesm2022 → fesm2015}/ng-thaana.mjs +11 -12
- package/{fesm2022 → fesm2015}/ng-thaana.mjs.map +1 -1
- package/fesm2020/ng-thaana.mjs +65 -0
- package/fesm2020/ng-thaana.mjs.map +1 -0
- package/lib/ng-thaana.directive.d.ts +2 -2
- package/package.json +15 -8
- package/esm2022/lib/ng-thaana.directive.mjs +0 -38
- /package/{esm2022 → esm2020}/ng-thaana.mjs +0 -0
- /package/{esm2022 → esm2020}/public-api.mjs +0 -0
package/README.md
CHANGED
|
@@ -1,101 +1,24 @@
|
|
|
1
|
-
#
|
|
1
|
+
# NgThaana
|
|
2
2
|
|
|
3
|
-
[
|
|
3
|
+
This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 14.0.0.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
## Code scaffolding
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
Run `ng generate component component-name --project ng-thaana` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project ng-thaana`.
|
|
8
|
+
> Note: Don't forget to add `--project ng-thaana` or else it will be added to the default project in your `angular.json` file.
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
## Build
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
Run `ng build ng-thaana` to build the project. The build artifacts will be stored in the `dist/` directory.
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
## Publishing
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
After building your library with `ng build ng-thaana`, go to the dist folder `cd dist/ng-thaana` and run `npm publish`.
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
## Running unit tests
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
$ yarn add ng-thaana
|
|
20
|
+
Run `ng test ng-thaana` to execute the unit tests via [Karma](https://karma-runner.github.io).
|
|
22
21
|
|
|
23
|
-
|
|
24
|
-
$ npm i ng-thaana
|
|
22
|
+
## Further help
|
|
25
23
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
### Usage
|
|
29
|
-
```javascript
|
|
30
|
-
// import the module
|
|
31
|
-
import { NgThaanaModule } from 'ng-thaana';
|
|
32
|
-
|
|
33
|
-
// Register the module in the app.modules.ts or the main module.ts file
|
|
34
|
-
|
|
35
|
-
@NgModule({
|
|
36
|
-
declarations: [
|
|
37
|
-
AppComponent,
|
|
38
|
-
],
|
|
39
|
-
imports: [
|
|
40
|
-
BrowserModule,
|
|
41
|
-
FormsModule,
|
|
42
|
-
// as such
|
|
43
|
-
NgThaanaModule,
|
|
44
|
-
],
|
|
45
|
-
providers: [],
|
|
46
|
-
bootstrap: [AppComponent]
|
|
47
|
-
})
|
|
48
|
-
export class AppModule { }
|
|
49
|
-
```
|
|
50
|
-
|
|
51
|
-
`ng-thaana` supports pasting latin characters which on the fly will transliterate the provide string into the preferred `flavor`. Here flavors are `phonetic` (default), `typewriter` and `faseyha`
|
|
52
|
-
|
|
53
|
-
For example when `divehi` is pasted it will be `ދިވެހި` in `phonetic` flavor however the same will be `ިިހެވިދ` in `faseyha` flavor. In each flavor the keyboard layout is slightly different.
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
### In the template
|
|
57
|
-
```html
|
|
58
|
-
<div>
|
|
59
|
-
|
|
60
|
-
<input [(ngModel)]='name' ng-thaana placeholder="Your name please..." />
|
|
61
|
-
|
|
62
|
-
<!-- With explicit flavor -->
|
|
63
|
-
<input [(ngModel)]='name' flavor='faseyha' ng-thaana placeholder="Your name please..." />
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
<!-- With post callback -->
|
|
67
|
-
<input [(ngModel)]='name' (ng-thaana)='postCallback($event)' placeholder="Your name please..." />
|
|
68
|
-
|
|
69
|
-
</div>
|
|
70
|
-
```
|
|
71
|
-
|
|
72
|
-
### Toggling
|
|
73
|
-
ng-thaana now supports toggling its effective state. Meaning you can turn off ng-thaana and vise-versa. This can be done by pressing shift key twice under a second.
|
|
74
|
-
|
|
75
|
-
This has several interesting use cases such as when a charactor from English/Any language is required maybe in the middle of a word or sentence. For instance ID card number requires an `A` prefixed. There are plenty of such if you think about it.
|
|
76
|
-
|
|
77
|
-
You will want to indicate the toggling of `ng-thaana` which can be handled like so.
|
|
78
|
-
|
|
79
|
-
In the template/view
|
|
80
|
-
```html
|
|
81
|
-
<input [(ngModel)]='name' (thaana-toggled)="toggled($event)" ng-thaana placeholder="Search..." />
|
|
82
|
-
```
|
|
83
|
-
And on the js side
|
|
84
|
-
```javascript
|
|
85
|
-
toggled(e: boolean) {
|
|
86
|
-
// Maybe show something like a toast or indicate it on the input itself
|
|
87
|
-
console.log('You toggled ng-thaana: ', e);
|
|
88
|
-
}
|
|
89
|
-
```
|
|
90
|
-
|
|
91
|
-
### Todos
|
|
92
|
-
|
|
93
|
-
- Write Tests
|
|
94
|
-
- Better doc
|
|
95
|
-
|
|
96
|
-
License
|
|
97
|
-
----
|
|
98
|
-
MIT
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
**Free Software, Hell Yeah!**
|
|
24
|
+
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { Directive, Input, Output } from '@angular/core';
|
|
3
|
+
import Thaana from 'dhivehi';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export class NgThaanaDirective {
|
|
6
|
+
constructor(el) {
|
|
7
|
+
this.el = el;
|
|
8
|
+
this.flavor = 'phonetic';
|
|
9
|
+
this.ngThaana = new EventEmitter();
|
|
10
|
+
this.thaanaToggled = new EventEmitter();
|
|
11
|
+
}
|
|
12
|
+
ngAfterViewInit() {
|
|
13
|
+
this.el.nativeElement.style.direction = 'rtl';
|
|
14
|
+
this.el.nativeElement.addEventListener('thaana-toggled', (e) => {
|
|
15
|
+
this.thaanaToggled.emit(e.detail);
|
|
16
|
+
});
|
|
17
|
+
Thaana(this.el.nativeElement, { flavor: this.flavor });
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
NgThaanaDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NgThaanaDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
21
|
+
NgThaanaDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.3.0", type: NgThaanaDirective, selector: "[ng-thaana]", inputs: { flavor: "flavor" }, outputs: { ngThaana: "ng-thaana", thaanaToggled: "thaana-toggled" }, ngImport: i0 });
|
|
22
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NgThaanaDirective, decorators: [{
|
|
23
|
+
type: Directive,
|
|
24
|
+
args: [{
|
|
25
|
+
selector: '[ng-thaana]',
|
|
26
|
+
}]
|
|
27
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { flavor: [{
|
|
28
|
+
type: Input,
|
|
29
|
+
args: ['flavor']
|
|
30
|
+
}], ngThaana: [{
|
|
31
|
+
type: Output,
|
|
32
|
+
args: ['ng-thaana']
|
|
33
|
+
}], thaanaToggled: [{
|
|
34
|
+
type: Output,
|
|
35
|
+
args: ['thaana-toggled']
|
|
36
|
+
}] } });
|
|
37
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmctdGhhYW5hLmRpcmVjdGl2ZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL25nLXRoYWFuYS9zcmMvbGliL25nLXRoYW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bWVudC5hZGRFdmVudExpc3RlbmVyKCd0aGFhbmEtdG9nZ2xlZCcsIChlOiBDdXN0b21FdmVudCkgPT4ge1xuICAgICAgdGhpcy50aGFhbmFUb2dnbGVkLmVtaXQoZS5kZXRhaWwpXG4gICAgfSlcbiAgICBUaGFhbmEodGhpcy5lbC5uYXRpdmVFbGVtZW50LCB7IGZsYXZvcjogdGhpcy5mbGF2b3IgfSlcbiAgfVxuXG59XG4iXX0=
|
|
@@ -2,11 +2,11 @@ import { NgModule } from '@angular/core';
|
|
|
2
2
|
import { NgThaanaDirective } from './ng-thaana.directive';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export class NgThaanaModule {
|
|
5
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.5", ngImport: i0, type: NgThaanaModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
6
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.5", ngImport: i0, type: NgThaanaModule, declarations: [NgThaanaDirective], exports: [NgThaanaDirective] });
|
|
7
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.5", ngImport: i0, type: NgThaanaModule });
|
|
8
5
|
}
|
|
9
|
-
i0.ɵɵ
|
|
6
|
+
NgThaanaModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NgThaanaModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
7
|
+
NgThaanaModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: NgThaanaModule, declarations: [NgThaanaDirective], exports: [NgThaanaDirective] });
|
|
8
|
+
NgThaanaModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NgThaanaModule });
|
|
9
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NgThaanaModule, decorators: [{
|
|
10
10
|
type: NgModule,
|
|
11
11
|
args: [{
|
|
12
12
|
declarations: [
|
|
@@ -18,4 +18,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.5", ngImpor
|
|
|
18
18
|
]
|
|
19
19
|
}]
|
|
20
20
|
}] });
|
|
21
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
21
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmctdGhhYW5hLm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL25nLXRoYWFuYS9zcmMvbGliL25nLXRoYWFuYS5tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFFBQVEsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUN6QyxPQUFPLEVBQUUsaUJBQWlCLEVBQUUsTUFBTSx1QkFBdUIsQ0FBQzs7QUFjMUQsTUFBTSxPQUFPLGNBQWM7OzJHQUFkLGNBQWM7NEdBQWQsY0FBYyxpQkFSdkIsaUJBQWlCLGFBS2pCLGlCQUFpQjs0R0FHUixjQUFjOzJGQUFkLGNBQWM7a0JBVjFCLFFBQVE7bUJBQUM7b0JBQ1IsWUFBWSxFQUFFO3dCQUNaLGlCQUFpQjtxQkFDbEI7b0JBQ0QsT0FBTyxFQUFFLEVBQ1I7b0JBQ0QsT0FBTyxFQUFFO3dCQUNQLGlCQUFpQjtxQkFDbEI7aUJBQ0YiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBOZ01vZHVsZSB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuaW1wb3J0IHsgTmdUaGFhbmFEaXJlY3RpdmUgfSBmcm9tICcuL25nLXRoYWFuYS5kaXJlY3RpdmUnO1xuXG5cblxuQE5nTW9kdWxlKHtcbiAgZGVjbGFyYXRpb25zOiBbXG4gICAgTmdUaGFhbmFEaXJlY3RpdmVcbiAgXSxcbiAgaW1wb3J0czogW1xuICBdLFxuICBleHBvcnRzOiBbXG4gICAgTmdUaGFhbmFEaXJlY3RpdmVcbiAgXVxufSlcbmV4cG9ydCBjbGFzcyBOZ1RoYWFuYU1vZHVsZSB7IH1cbiJdfQ==
|
|
@@ -3,12 +3,11 @@ import { EventEmitter, Directive, Input, Output, NgModule } from '@angular/core'
|
|
|
3
3
|
import Thaana from 'dhivehi';
|
|
4
4
|
|
|
5
5
|
class NgThaanaDirective {
|
|
6
|
-
el;
|
|
7
|
-
flavor = 'phonetic';
|
|
8
|
-
ngThaana = new EventEmitter();
|
|
9
|
-
thaanaToggled = new EventEmitter();
|
|
10
6
|
constructor(el) {
|
|
11
7
|
this.el = el;
|
|
8
|
+
this.flavor = 'phonetic';
|
|
9
|
+
this.ngThaana = new EventEmitter();
|
|
10
|
+
this.thaanaToggled = new EventEmitter();
|
|
12
11
|
}
|
|
13
12
|
ngAfterViewInit() {
|
|
14
13
|
this.el.nativeElement.style.direction = 'rtl';
|
|
@@ -17,15 +16,15 @@ class NgThaanaDirective {
|
|
|
17
16
|
});
|
|
18
17
|
Thaana(this.el.nativeElement, { flavor: this.flavor });
|
|
19
18
|
}
|
|
20
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.5", ngImport: i0, type: NgThaanaDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
21
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.0.5", type: NgThaanaDirective, selector: "[ng-thaana]", inputs: { flavor: "flavor" }, outputs: { ngThaana: "ng-thaana", thaanaToggled: "thaana-toggled" }, ngImport: i0 });
|
|
22
19
|
}
|
|
23
|
-
i0.ɵɵ
|
|
20
|
+
NgThaanaDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NgThaanaDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
21
|
+
NgThaanaDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.3.0", type: NgThaanaDirective, selector: "[ng-thaana]", inputs: { flavor: "flavor" }, outputs: { ngThaana: "ng-thaana", thaanaToggled: "thaana-toggled" }, ngImport: i0 });
|
|
22
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NgThaanaDirective, decorators: [{
|
|
24
23
|
type: Directive,
|
|
25
24
|
args: [{
|
|
26
25
|
selector: '[ng-thaana]',
|
|
27
26
|
}]
|
|
28
|
-
}], ctorParameters: ()
|
|
27
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { flavor: [{
|
|
29
28
|
type: Input,
|
|
30
29
|
args: ['flavor']
|
|
31
30
|
}], ngThaana: [{
|
|
@@ -37,11 +36,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.5", ngImpor
|
|
|
37
36
|
}] } });
|
|
38
37
|
|
|
39
38
|
class NgThaanaModule {
|
|
40
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.5", ngImport: i0, type: NgThaanaModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
41
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.5", ngImport: i0, type: NgThaanaModule, declarations: [NgThaanaDirective], exports: [NgThaanaDirective] });
|
|
42
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.5", ngImport: i0, type: NgThaanaModule });
|
|
43
39
|
}
|
|
44
|
-
i0.ɵɵ
|
|
40
|
+
NgThaanaModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NgThaanaModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
41
|
+
NgThaanaModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: NgThaanaModule, declarations: [NgThaanaDirective], exports: [NgThaanaDirective] });
|
|
42
|
+
NgThaanaModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NgThaanaModule });
|
|
43
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NgThaanaModule, decorators: [{
|
|
45
44
|
type: NgModule,
|
|
46
45
|
args: [{
|
|
47
46
|
declarations: [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ng-thaana.mjs","sources":["../../../projects/ng-thaana/src/lib/ng-thaana.directive.ts","../../../projects/ng-thaana/src/lib/ng-thaana.module.ts","../../../projects/ng-thaana/src/public-api.ts","../../../projects/ng-thaana/src/ng-thaana.ts"],"sourcesContent":["import { AfterViewInit, EventEmitter } from '@angular/core';\nimport { Directive, ElementRef, Input, Output} from '@angular/core';\n\nimport Thaana from 'dhivehi'\n\n\nexport type Flavor = 'phonetic' | 'typewriter' | 'faseyha'\n\n@Directive({\n selector: '[ng-thaana]',\n})\nexport class NgThaanaDirective implements AfterViewInit {\n\n @Input('flavor') flavor: Flavor = 'phonetic';\n @Output('ng-thaana') ngThaana = new EventEmitter<string>();\n @Output('thaana-toggled') thaanaToggled = new EventEmitter<string>();\n\n constructor(private el: ElementRef) {}\n\n ngAfterViewInit(): void {\n this.el.nativeElement.style.direction = 'rtl'\n this.el.nativeElement.addEventListener('thaana-toggled', (e: CustomEvent) => {\n this.thaanaToggled.emit(e.detail)\n })\n Thaana(this.el.nativeElement, { flavor: this.flavor })\n }\n\n}\n","import { NgModule } from '@angular/core';\nimport { NgThaanaDirective } from './ng-thaana.directive';\n\n\n\n@NgModule({\n declarations: [\n NgThaanaDirective\n ],\n imports: [\n ],\n exports: [\n NgThaanaDirective\n ]\n})\nexport class NgThaanaModule { }\n","/*\n * Public API Surface of ng-thaana\n */\n\nexport * from './lib/ng-thaana.directive';\nexport * from './lib/ng-thaana.module';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;MAWa,iBAAiB,CAAA;
|
|
1
|
+
{"version":3,"file":"ng-thaana.mjs","sources":["../../../projects/ng-thaana/src/lib/ng-thaana.directive.ts","../../../projects/ng-thaana/src/lib/ng-thaana.module.ts","../../../projects/ng-thaana/src/public-api.ts","../../../projects/ng-thaana/src/ng-thaana.ts"],"sourcesContent":["import { AfterViewInit, EventEmitter } from '@angular/core';\nimport { Directive, ElementRef, Input, Output} from '@angular/core';\n\nimport Thaana from 'dhivehi'\n\n\nexport type Flavor = 'phonetic' | 'typewriter' | 'faseyha'\n\n@Directive({\n selector: '[ng-thaana]',\n})\nexport class NgThaanaDirective implements AfterViewInit {\n\n @Input('flavor') flavor: Flavor = 'phonetic';\n @Output('ng-thaana') ngThaana = new EventEmitter<string>();\n @Output('thaana-toggled') thaanaToggled = new EventEmitter<string>();\n\n constructor(private el: ElementRef) {}\n\n ngAfterViewInit(): void {\n this.el.nativeElement.style.direction = 'rtl'\n this.el.nativeElement.addEventListener('thaana-toggled', (e: CustomEvent) => {\n this.thaanaToggled.emit(e.detail)\n })\n Thaana(this.el.nativeElement, { flavor: this.flavor })\n }\n\n}\n","import { NgModule } from '@angular/core';\nimport { NgThaanaDirective } from './ng-thaana.directive';\n\n\n\n@NgModule({\n declarations: [\n NgThaanaDirective\n ],\n imports: [\n ],\n exports: [\n NgThaanaDirective\n ]\n})\nexport class NgThaanaModule { }\n","/*\n * Public API Surface of ng-thaana\n */\n\nexport * from './lib/ng-thaana.directive';\nexport * from './lib/ng-thaana.module';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;MAWa,iBAAiB,CAAA;AAM5B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EAAA,CAAA;sBAA5B,MAAM;uBAAC,WAAW,CAAA;gBACO,aAAa,EAAA,CAAA;sBAAtC,MAAM;uBAAC,gBAAgB,CAAA;;;MCAb,cAAc,CAAA;;2GAAd,cAAc,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;4GAAd,cAAc,EAAA,YAAA,EAAA,CARvB,iBAAiB,CAAA,EAAA,OAAA,EAAA,CAKjB,iBAAiB,CAAA,EAAA,CAAA,CAAA;4GAGR,cAAc,EAAA,CAAA,CAAA;2FAAd,cAAc,EAAA,UAAA,EAAA,CAAA;kBAV1B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE;wBACZ,iBAAiB;AAClB,qBAAA;AACD,oBAAA,OAAO,EAAE,EACR;AACD,oBAAA,OAAO,EAAE;wBACP,iBAAiB;AAClB,qBAAA;iBACF,CAAA;;;ACdD;;AAEG;;ACFH;;AAEG;;;;"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { EventEmitter, Directive, Input, Output, NgModule } from '@angular/core';
|
|
3
|
+
import Thaana from 'dhivehi';
|
|
4
|
+
|
|
5
|
+
class NgThaanaDirective {
|
|
6
|
+
constructor(el) {
|
|
7
|
+
this.el = el;
|
|
8
|
+
this.flavor = 'phonetic';
|
|
9
|
+
this.ngThaana = new EventEmitter();
|
|
10
|
+
this.thaanaToggled = new EventEmitter();
|
|
11
|
+
}
|
|
12
|
+
ngAfterViewInit() {
|
|
13
|
+
this.el.nativeElement.style.direction = 'rtl';
|
|
14
|
+
this.el.nativeElement.addEventListener('thaana-toggled', (e) => {
|
|
15
|
+
this.thaanaToggled.emit(e.detail);
|
|
16
|
+
});
|
|
17
|
+
Thaana(this.el.nativeElement, { flavor: this.flavor });
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
NgThaanaDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NgThaanaDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
21
|
+
NgThaanaDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.3.0", type: NgThaanaDirective, selector: "[ng-thaana]", inputs: { flavor: "flavor" }, outputs: { ngThaana: "ng-thaana", thaanaToggled: "thaana-toggled" }, ngImport: i0 });
|
|
22
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NgThaanaDirective, decorators: [{
|
|
23
|
+
type: Directive,
|
|
24
|
+
args: [{
|
|
25
|
+
selector: '[ng-thaana]',
|
|
26
|
+
}]
|
|
27
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { flavor: [{
|
|
28
|
+
type: Input,
|
|
29
|
+
args: ['flavor']
|
|
30
|
+
}], ngThaana: [{
|
|
31
|
+
type: Output,
|
|
32
|
+
args: ['ng-thaana']
|
|
33
|
+
}], thaanaToggled: [{
|
|
34
|
+
type: Output,
|
|
35
|
+
args: ['thaana-toggled']
|
|
36
|
+
}] } });
|
|
37
|
+
|
|
38
|
+
class NgThaanaModule {
|
|
39
|
+
}
|
|
40
|
+
NgThaanaModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NgThaanaModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
41
|
+
NgThaanaModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: NgThaanaModule, declarations: [NgThaanaDirective], exports: [NgThaanaDirective] });
|
|
42
|
+
NgThaanaModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NgThaanaModule });
|
|
43
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NgThaanaModule, decorators: [{
|
|
44
|
+
type: NgModule,
|
|
45
|
+
args: [{
|
|
46
|
+
declarations: [
|
|
47
|
+
NgThaanaDirective
|
|
48
|
+
],
|
|
49
|
+
imports: [],
|
|
50
|
+
exports: [
|
|
51
|
+
NgThaanaDirective
|
|
52
|
+
]
|
|
53
|
+
}]
|
|
54
|
+
}] });
|
|
55
|
+
|
|
56
|
+
/*
|
|
57
|
+
* Public API Surface of ng-thaana
|
|
58
|
+
*/
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Generated bundle index. Do not edit.
|
|
62
|
+
*/
|
|
63
|
+
|
|
64
|
+
export { NgThaanaDirective, NgThaanaModule };
|
|
65
|
+
//# sourceMappingURL=ng-thaana.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ng-thaana.mjs","sources":["../../../projects/ng-thaana/src/lib/ng-thaana.directive.ts","../../../projects/ng-thaana/src/lib/ng-thaana.module.ts","../../../projects/ng-thaana/src/public-api.ts","../../../projects/ng-thaana/src/ng-thaana.ts"],"sourcesContent":["import { AfterViewInit, EventEmitter } from '@angular/core';\nimport { Directive, ElementRef, Input, Output} from '@angular/core';\n\nimport Thaana from 'dhivehi'\n\n\nexport type Flavor = 'phonetic' | 'typewriter' | 'faseyha'\n\n@Directive({\n selector: '[ng-thaana]',\n})\nexport class NgThaanaDirective implements AfterViewInit {\n\n @Input('flavor') flavor: Flavor = 'phonetic';\n @Output('ng-thaana') ngThaana = new EventEmitter<string>();\n @Output('thaana-toggled') thaanaToggled = new EventEmitter<string>();\n\n constructor(private el: ElementRef) {}\n\n ngAfterViewInit(): void {\n this.el.nativeElement.style.direction = 'rtl'\n this.el.nativeElement.addEventListener('thaana-toggled', (e: CustomEvent) => {\n this.thaanaToggled.emit(e.detail)\n })\n Thaana(this.el.nativeElement, { flavor: this.flavor })\n }\n\n}\n","import { NgModule } from '@angular/core';\nimport { NgThaanaDirective } from './ng-thaana.directive';\n\n\n\n@NgModule({\n declarations: [\n NgThaanaDirective\n ],\n imports: [\n ],\n exports: [\n NgThaanaDirective\n ]\n})\nexport class NgThaanaModule { }\n","/*\n * Public API Surface of ng-thaana\n */\n\nexport * from './lib/ng-thaana.directive';\nexport * from './lib/ng-thaana.module';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;MAWa,iBAAiB,CAAA;AAM5B,IAAA,WAAA,CAAoB,EAAc,EAAA;QAAd,IAAE,CAAA,EAAA,GAAF,EAAE,CAAY;QAJjB,IAAM,CAAA,MAAA,GAAW,UAAU,CAAC;AACxB,QAAA,IAAA,CAAA,QAAQ,GAAG,IAAI,YAAY,EAAU,CAAC;AACjC,QAAA,IAAA,CAAA,aAAa,GAAG,IAAI,YAAY,EAAU,CAAC;KAE/B;IAEtC,eAAe,GAAA;QACb,IAAI,CAAC,EAAE,CAAC,aAAa,CAAC,KAAK,CAAC,SAAS,GAAG,KAAK,CAAA;AAC7C,QAAA,IAAI,CAAC,EAAE,CAAC,aAAa,CAAC,gBAAgB,CAAC,gBAAgB,EAAE,CAAC,CAAc,KAAI;YAC1E,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,CAAA;AACnC,SAAC,CAAC,CAAA;AACF,QAAA,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,aAAa,EAAE,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,CAAA;KACvD;;8GAdU,iBAAiB,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,EAAA,CAAA,UAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;kGAAjB,iBAAiB,EAAA,QAAA,EAAA,aAAA,EAAA,MAAA,EAAA,EAAA,MAAA,EAAA,QAAA,EAAA,EAAA,OAAA,EAAA,EAAA,QAAA,EAAA,WAAA,EAAA,aAAA,EAAA,gBAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;2FAAjB,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAH7B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,aAAa;AACxB,iBAAA,CAAA;iGAGkB,MAAM,EAAA,CAAA;sBAAtB,KAAK;uBAAC,QAAQ,CAAA;gBACM,QAAQ,EAAA,CAAA;sBAA5B,MAAM;uBAAC,WAAW,CAAA;gBACO,aAAa,EAAA,CAAA;sBAAtC,MAAM;uBAAC,gBAAgB,CAAA;;;MCAb,cAAc,CAAA;;2GAAd,cAAc,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;4GAAd,cAAc,EAAA,YAAA,EAAA,CARvB,iBAAiB,CAAA,EAAA,OAAA,EAAA,CAKjB,iBAAiB,CAAA,EAAA,CAAA,CAAA;4GAGR,cAAc,EAAA,CAAA,CAAA;2FAAd,cAAc,EAAA,UAAA,EAAA,CAAA;kBAV1B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE;wBACZ,iBAAiB;AAClB,qBAAA;AACD,oBAAA,OAAO,EAAE,EACR;AACD,oBAAA,OAAO,EAAE;wBACP,iBAAiB;AAClB,qBAAA;AACF,iBAAA,CAAA;;;ACdD;;AAEG;;ACFH;;AAEG;;;;"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AfterViewInit, EventEmitter } from '@angular/core';
|
|
2
2
|
import { ElementRef } from '@angular/core';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
-
export type Flavor = 'phonetic' | 'typewriter' | 'faseyha';
|
|
4
|
+
export declare type Flavor = 'phonetic' | 'typewriter' | 'faseyha';
|
|
5
5
|
export declare class NgThaanaDirective implements AfterViewInit {
|
|
6
6
|
private el;
|
|
7
7
|
flavor: Flavor;
|
|
@@ -10,5 +10,5 @@ export declare class NgThaanaDirective implements AfterViewInit {
|
|
|
10
10
|
constructor(el: ElementRef);
|
|
11
11
|
ngAfterViewInit(): void;
|
|
12
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgThaanaDirective, never>;
|
|
13
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<NgThaanaDirective, "[ng-thaana]", never, { "flavor":
|
|
13
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<NgThaanaDirective, "[ng-thaana]", never, { "flavor": "flavor"; }, { "ngThaana": "ng-thaana"; "thaanaToggled": "thaana-toggled"; }, never, never, false>;
|
|
14
14
|
}
|
package/package.json
CHANGED
|
@@ -1,14 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ng-thaana",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.1",
|
|
4
4
|
"peerDependencies": {
|
|
5
|
-
"@angular/common": "^
|
|
6
|
-
"@angular/core": "^
|
|
5
|
+
"@angular/common": "^14.0.0",
|
|
6
|
+
"@angular/core": "^14.0.0",
|
|
7
|
+
"dhivehi": "^1.2.8"
|
|
7
8
|
},
|
|
8
9
|
"dependencies": {
|
|
9
|
-
"tslib": "^2.
|
|
10
|
+
"tslib": "^2.3.0"
|
|
10
11
|
},
|
|
11
|
-
"module": "
|
|
12
|
+
"module": "fesm2015/ng-thaana.mjs",
|
|
13
|
+
"es2020": "fesm2020/ng-thaana.mjs",
|
|
14
|
+
"esm2020": "esm2020/ng-thaana.mjs",
|
|
15
|
+
"fesm2020": "fesm2020/ng-thaana.mjs",
|
|
16
|
+
"fesm2015": "fesm2015/ng-thaana.mjs",
|
|
12
17
|
"typings": "index.d.ts",
|
|
13
18
|
"exports": {
|
|
14
19
|
"./package.json": {
|
|
@@ -16,9 +21,11 @@
|
|
|
16
21
|
},
|
|
17
22
|
".": {
|
|
18
23
|
"types": "./index.d.ts",
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
"
|
|
24
|
+
"esm2020": "./esm2020/ng-thaana.mjs",
|
|
25
|
+
"es2020": "./fesm2020/ng-thaana.mjs",
|
|
26
|
+
"es2015": "./fesm2015/ng-thaana.mjs",
|
|
27
|
+
"node": "./fesm2015/ng-thaana.mjs",
|
|
28
|
+
"default": "./fesm2020/ng-thaana.mjs"
|
|
22
29
|
}
|
|
23
30
|
},
|
|
24
31
|
"sideEffects": false
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { EventEmitter } from '@angular/core';
|
|
2
|
-
import { Directive, Input, Output } from '@angular/core';
|
|
3
|
-
import Thaana from 'dhivehi';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export class NgThaanaDirective {
|
|
6
|
-
el;
|
|
7
|
-
flavor = 'phonetic';
|
|
8
|
-
ngThaana = new EventEmitter();
|
|
9
|
-
thaanaToggled = new EventEmitter();
|
|
10
|
-
constructor(el) {
|
|
11
|
-
this.el = el;
|
|
12
|
-
}
|
|
13
|
-
ngAfterViewInit() {
|
|
14
|
-
this.el.nativeElement.style.direction = 'rtl';
|
|
15
|
-
this.el.nativeElement.addEventListener('thaana-toggled', (e) => {
|
|
16
|
-
this.thaanaToggled.emit(e.detail);
|
|
17
|
-
});
|
|
18
|
-
Thaana(this.el.nativeElement, { flavor: this.flavor });
|
|
19
|
-
}
|
|
20
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.5", ngImport: i0, type: NgThaanaDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
21
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.0.5", type: NgThaanaDirective, selector: "[ng-thaana]", inputs: { flavor: "flavor" }, outputs: { ngThaana: "ng-thaana", thaanaToggled: "thaana-toggled" }, ngImport: i0 });
|
|
22
|
-
}
|
|
23
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.5", ngImport: i0, type: NgThaanaDirective, decorators: [{
|
|
24
|
-
type: Directive,
|
|
25
|
-
args: [{
|
|
26
|
-
selector: '[ng-thaana]',
|
|
27
|
-
}]
|
|
28
|
-
}], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { flavor: [{
|
|
29
|
-
type: Input,
|
|
30
|
-
args: ['flavor']
|
|
31
|
-
}], ngThaana: [{
|
|
32
|
-
type: Output,
|
|
33
|
-
args: ['ng-thaana']
|
|
34
|
-
}], thaanaToggled: [{
|
|
35
|
-
type: Output,
|
|
36
|
-
args: ['thaana-toggled']
|
|
37
|
-
}] } });
|
|
38
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmctdGhhYW5hLmRpcmVjdGl2ZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL25nLXRoYWFuYS9zcmMvbGliL25nLXRoYWFuYS5kaXJlY3RpdmUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFpQixZQUFZLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDNUQsT0FBTyxFQUFHLFNBQVMsRUFBYyxLQUFLLEVBQUUsTUFBTSxFQUFDLE1BQU0sZUFBZSxDQUFDO0FBRXJFLE9BQVEsTUFBTSxNQUFNLFNBQVMsQ0FBQTs7QUFRN0IsTUFBTSxPQUFPLGlCQUFpQjtJQU1SO0lBSkgsTUFBTSxHQUFXLFVBQVUsQ0FBQztJQUN4QixRQUFRLEdBQUcsSUFBSSxZQUFZLEVBQVUsQ0FBQztJQUNqQyxhQUFhLEdBQUcsSUFBSSxZQUFZLEVBQVUsQ0FBQztJQUVyRSxZQUFvQixFQUFjO1FBQWQsT0FBRSxHQUFGLEVBQUUsQ0FBWTtJQUFHLENBQUM7SUFFdEMsZUFBZTtRQUNiLElBQUksQ0FBQyxFQUFFLENBQUMsYUFBYSxDQUFDLEtBQUssQ0FBQy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