ng-thaana 1.1.0 → 1.3.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/esm2022/lib/ng-thaana.directive.mjs +38 -0
- package/esm2022/lib/ng-thaana.module.mjs +21 -0
- package/{fesm2015/ng-thaana.js → fesm2022/ng-thaana.mjs} +13 -12
- package/fesm2022/ng-thaana.mjs.map +1 -0
- package/lib/ng-thaana.directive.d.ts +2 -2
- package/package.json +17 -10
- package/bundles/ng-thaana.umd.js +0 -102
- package/bundles/ng-thaana.umd.js.map +0 -1
- package/esm2015/lib/ng-thaana.directive.js +0 -37
- package/esm2015/lib/ng-thaana.module.js +0 -21
- package/fesm2015/ng-thaana.js.map +0 -1
- /package/{esm2015/ng-thaana.js → esm2022/ng-thaana.mjs} +0 -0
- /package/{esm2015/public-api.js → esm2022/public-api.mjs} +0 -0
- /package/{ng-thaana.d.ts → index.d.ts} +0 -0
|
@@ -0,0 +1,38 @@
|
|
|
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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmctdGhhYW5hLmRpcmVjdGl2ZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL25nLXRoYWFuYS9zcmMvbGliL25nLXRoYWFuYS5kaXJlY3RpdmUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFpQixZQUFZLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDNUQsT0FBTyxFQUFHLFNBQVMsRUFBYyxLQUFLLEVBQUUsTUFBTSxFQUFDLE1BQU0sZUFBZSxDQUFDO0FBRXJFLE9BQVEsTUFBTSxNQUFNLFNBQVMsQ0FBQTs7QUFRN0IsTUFBTSxPQUFPLGlCQUFpQj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|
|
|
1
|
+
import { NgModule } from '@angular/core';
|
|
2
|
+
import { NgThaanaDirective } from './ng-thaana.directive';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
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
|
+
}
|
|
9
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.5", ngImport: i0, type: NgThaanaModule, decorators: [{
|
|
10
|
+
type: NgModule,
|
|
11
|
+
args: [{
|
|
12
|
+
declarations: [
|
|
13
|
+
NgThaanaDirective
|
|
14
|
+
],
|
|
15
|
+
imports: [],
|
|
16
|
+
exports: [
|
|
17
|
+
NgThaanaDirective
|
|
18
|
+
]
|
|
19
|
+
}]
|
|
20
|
+
}] });
|
|
21
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmctdGhhYW5hLm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL25nLXRoYWFuYS9zcmMvbGliL25nLXRoYWFuYS5tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFFBQVEsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUN6QyxPQUFPLEVBQUUsaUJBQWlCLEVBQUUsTUFBTSx1QkFBdUIsQ0FBQzs7QUFjMUQsTUFBTSxPQUFPLGNBQWM7dUdBQWQsY0FBYzt3R0FBZCxjQUFjLGlCQVJ2QixpQkFBaUIsYUFLakIsaUJBQWlCO3dHQUdSLGNBQWM7OzJGQUFkLGNBQWM7a0JBVjFCLFFBQVE7bUJBQUM7b0JBQ1IsWUFBWSxFQUFFO3dCQUNaLGlCQUFpQjtxQkFDbEI7b0JBQ0QsT0FBTyxFQUFFLEVBQ1I7b0JBQ0QsT0FBTyxFQUFFO3dCQUNQLGlCQUFpQjtxQkFDbEI7aUJBQ0YiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBOZ01vZHVsZSB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuaW1wb3J0IHsgTmdUaGFhbmFEaXJlY3RpdmUgfSBmcm9tICcuL25nLXRoYWFuYS5kaXJlY3RpdmUnO1xuXG5cblxuQE5nTW9kdWxlKHtcbiAgZGVjbGFyYXRpb25zOiBbXG4gICAgTmdUaGFhbmFEaXJlY3RpdmVcbiAgXSxcbiAgaW1wb3J0czogW1xuICBdLFxuICBleHBvcnRzOiBbXG4gICAgTmdUaGFhbmFEaXJlY3RpdmVcbiAgXVxufSlcbmV4cG9ydCBjbGFzcyBOZ1RoYWFuYU1vZHVsZSB7IH1cbiJdfQ==
|
|
@@ -3,11 +3,12 @@ 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();
|
|
6
10
|
constructor(el) {
|
|
7
11
|
this.el = el;
|
|
8
|
-
this.flavor = 'phonetic';
|
|
9
|
-
this.ngThaana = new EventEmitter();
|
|
10
|
-
this.thaanaToggled = new EventEmitter();
|
|
11
12
|
}
|
|
12
13
|
ngAfterViewInit() {
|
|
13
14
|
this.el.nativeElement.style.direction = 'rtl';
|
|
@@ -16,15 +17,15 @@ class NgThaanaDirective {
|
|
|
16
17
|
});
|
|
17
18
|
Thaana(this.el.nativeElement, { flavor: this.flavor });
|
|
18
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 });
|
|
19
22
|
}
|
|
20
|
-
|
|
21
|
-
NgThaanaDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.1.2", 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: "12.1.2", ngImport: i0, type: NgThaanaDirective, decorators: [{
|
|
23
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.5", ngImport: i0, type: NgThaanaDirective, decorators: [{
|
|
23
24
|
type: Directive,
|
|
24
25
|
args: [{
|
|
25
26
|
selector: '[ng-thaana]',
|
|
26
27
|
}]
|
|
27
|
-
}], ctorParameters:
|
|
28
|
+
}], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { flavor: [{
|
|
28
29
|
type: Input,
|
|
29
30
|
args: ['flavor']
|
|
30
31
|
}], ngThaana: [{
|
|
@@ -36,11 +37,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.1.2", ngImpor
|
|
|
36
37
|
}] } });
|
|
37
38
|
|
|
38
39
|
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 });
|
|
39
43
|
}
|
|
40
|
-
|
|
41
|
-
NgThaanaModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0, type: NgThaanaModule, declarations: [NgThaanaDirective], exports: [NgThaanaDirective] });
|
|
42
|
-
NgThaanaModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0, type: NgThaanaModule, imports: [[]] });
|
|
43
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0, type: NgThaanaModule, decorators: [{
|
|
44
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.5", ngImport: i0, type: NgThaanaModule, decorators: [{
|
|
44
45
|
type: NgModule,
|
|
45
46
|
args: [{
|
|
46
47
|
declarations: [
|
|
@@ -62,4 +63,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.1.2", ngImpor
|
|
|
62
63
|
*/
|
|
63
64
|
|
|
64
65
|
export { NgThaanaDirective, NgThaanaModule };
|
|
65
|
-
//# sourceMappingURL=ng-thaana.
|
|
66
|
+
//# 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;AAMR,IAAA,EAAA,CAAA;IAJH,MAAM,GAAW,UAAU,CAAC;AACxB,IAAA,QAAQ,GAAG,IAAI,YAAY,EAAU,CAAC;AACjC,IAAA,aAAa,GAAG,IAAI,YAAY,EAAU,CAAC;AAErE,IAAA,WAAA,CAAoB,EAAc,EAAA;QAAd,IAAE,CAAA,EAAA,GAAF,EAAE,CAAY;KAAI;IAEtC,eAAe,GAAA;QACb,IAAI,CAAC,EAAE,CAAC,aAAa,CAAC,KAAK,CAAC,SAAS,GAAG,KAAK,CAAA;AAC7C,QAAA,IAAI,CAAC,EAAE,CAAC,aAAa,CA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A,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
|
|
4
|
+
export 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": "flavor"; }, { "ngThaana": "ng-thaana"; "thaanaToggled": "thaana-toggled"; }, never>;
|
|
13
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<NgThaanaDirective, "[ng-thaana]", never, { "flavor": { "alias": "flavor"; "required": false; }; }, { "ngThaana": "ng-thaana"; "thaanaToggled": "thaana-toggled"; }, never, never, false, never>;
|
|
14
14
|
}
|
package/package.json
CHANGED
|
@@ -1,18 +1,25 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ng-thaana",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"peerDependencies": {
|
|
5
|
-
"@angular/common": "^
|
|
6
|
-
"@angular/core": "^
|
|
5
|
+
"@angular/common": "^17.0.5",
|
|
6
|
+
"@angular/core": "^17.0.5"
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
9
|
"tslib": "^2.2.0"
|
|
10
10
|
},
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
11
|
+
"module": "fesm2022/ng-thaana.mjs",
|
|
12
|
+
"typings": "index.d.ts",
|
|
13
|
+
"exports": {
|
|
14
|
+
"./package.json": {
|
|
15
|
+
"default": "./package.json"
|
|
16
|
+
},
|
|
17
|
+
".": {
|
|
18
|
+
"types": "./index.d.ts",
|
|
19
|
+
"esm2022": "./esm2022/ng-thaana.mjs",
|
|
20
|
+
"esm": "./esm2022/ng-thaana.mjs",
|
|
21
|
+
"default": "./fesm2022/ng-thaana.mjs"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
17
24
|
"sideEffects": false
|
|
18
|
-
}
|
|
25
|
+
}
|
package/bundles/ng-thaana.umd.js
DELETED
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('dhivehi')) :
|
|
3
|
-
typeof define === 'function' && define.amd ? define('ng-thaana', ['exports', '@angular/core', 'dhivehi'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global['ng-thaana'] = {}, global.ng.core, global.Thaana));
|
|
5
|
-
}(this, (function (exports, i0, Thaana) { 'use strict';
|
|
6
|
-
|
|
7
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
|
-
|
|
9
|
-
function _interopNamespace(e) {
|
|
10
|
-
if (e && e.__esModule) return e;
|
|
11
|
-
var n = Object.create(null);
|
|
12
|
-
if (e) {
|
|
13
|
-
Object.keys(e).forEach(function (k) {
|
|
14
|
-
if (k !== 'default') {
|
|
15
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
16
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
17
|
-
enumerable: true,
|
|
18
|
-
get: function () {
|
|
19
|
-
return e[k];
|
|
20
|
-
}
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
}
|
|
25
|
-
n['default'] = e;
|
|
26
|
-
return Object.freeze(n);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
|
|
30
|
-
var Thaana__default = /*#__PURE__*/_interopDefaultLegacy(Thaana);
|
|
31
|
-
|
|
32
|
-
var NgThaanaDirective = /** @class */ (function () {
|
|
33
|
-
function NgThaanaDirective(el) {
|
|
34
|
-
this.el = el;
|
|
35
|
-
this.flavor = 'phonetic';
|
|
36
|
-
this.ngThaana = new i0.EventEmitter();
|
|
37
|
-
this.thaanaToggled = new i0.EventEmitter();
|
|
38
|
-
}
|
|
39
|
-
NgThaanaDirective.prototype.ngAfterViewInit = function () {
|
|
40
|
-
var _this = this;
|
|
41
|
-
this.el.nativeElement.style.direction = 'rtl';
|
|
42
|
-
this.el.nativeElement.addEventListener('thaana-toggled', function (e) {
|
|
43
|
-
_this.thaanaToggled.emit(e.detail);
|
|
44
|
-
});
|
|
45
|
-
Thaana__default['default'](this.el.nativeElement, { flavor: this.flavor });
|
|
46
|
-
};
|
|
47
|
-
return NgThaanaDirective;
|
|
48
|
-
}());
|
|
49
|
-
NgThaanaDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: NgThaanaDirective, deps: [{ token: i0__namespace.ElementRef }], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
50
|
-
NgThaanaDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.1.2", type: NgThaanaDirective, selector: "[ng-thaana]", inputs: { flavor: "flavor" }, outputs: { ngThaana: "ng-thaana", thaanaToggled: "thaana-toggled" }, ngImport: i0__namespace });
|
|
51
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: NgThaanaDirective, decorators: [{
|
|
52
|
-
type: i0.Directive,
|
|
53
|
-
args: [{
|
|
54
|
-
selector: '[ng-thaana]',
|
|
55
|
-
}]
|
|
56
|
-
}], ctorParameters: function () { return [{ type: i0__namespace.ElementRef }]; }, propDecorators: { flavor: [{
|
|
57
|
-
type: i0.Input,
|
|
58
|
-
args: ['flavor']
|
|
59
|
-
}], ngThaana: [{
|
|
60
|
-
type: i0.Output,
|
|
61
|
-
args: ['ng-thaana']
|
|
62
|
-
}], thaanaToggled: [{
|
|
63
|
-
type: i0.Output,
|
|
64
|
-
args: ['thaana-toggled']
|
|
65
|
-
}] } });
|
|
66
|
-
|
|
67
|
-
var NgThaanaModule = /** @class */ (function () {
|
|
68
|
-
function NgThaanaModule() {
|
|
69
|
-
}
|
|
70
|
-
return NgThaanaModule;
|
|
71
|
-
}());
|
|
72
|
-
NgThaanaModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: NgThaanaModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
73
|
-
NgThaanaModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: NgThaanaModule, declarations: [NgThaanaDirective], exports: [NgThaanaDirective] });
|
|
74
|
-
NgThaanaModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: NgThaanaModule, imports: [[]] });
|
|
75
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: NgThaanaModule, decorators: [{
|
|
76
|
-
type: i0.NgModule,
|
|
77
|
-
args: [{
|
|
78
|
-
declarations: [
|
|
79
|
-
NgThaanaDirective
|
|
80
|
-
],
|
|
81
|
-
imports: [],
|
|
82
|
-
exports: [
|
|
83
|
-
NgThaanaDirective
|
|
84
|
-
]
|
|
85
|
-
}]
|
|
86
|
-
}] });
|
|
87
|
-
|
|
88
|
-
/*
|
|
89
|
-
* Public API Surface of ng-thaana
|
|
90
|
-
*/
|
|
91
|
-
|
|
92
|
-
/**
|
|
93
|
-
* Generated bundle index. Do not edit.
|
|
94
|
-
*/
|
|
95
|
-
|
|
96
|
-
exports.NgThaanaDirective = NgThaanaDirective;
|
|
97
|
-
exports.NgThaanaModule = NgThaanaModule;
|
|
98
|
-
|
|
99
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
100
|
-
|
|
101
|
-
})));
|
|
102
|
-
//# sourceMappingURL=ng-thaana.umd.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ng-thaana.umd.js","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":["EventEmitter","Thaana","Directive","Input","Output","NgModule"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAiBE,2BAAoB,EAAc;YAAd,OAAE,GAAF,EAAE,CAAY;YAJjB,WAAM,GAAW,UAAU,CAAC;YACxB,aAAQ,GAAG,IAAIA,eAAY,EAAU,CAAC;YACjC,kBAAa,GAAG,IAAIA,eAAY,EAAU,CAAC;SAE/B;QAEtC,2CAAe,GAAf;YAAA,iBAMC;YALC,IAAI,CAAC,EAAE,CAAC,aAAa,CAAC,KAAK,CAAC,SAAS,GAAG,KAAK,CAAA;YAC7C,IAAI,CAAC,EAAE,CAAC,aAAa,CAAC,gBAAgB,CAAC,gBAAgB,EAAE,UAAC,CAAc;gBACtE,KAAI,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,CAAA;aAClC,CAAC,CAAA;YACFC,0BAAM,CAAC,IAAI,CAAC,EAAE,CAAC,aAAa,EAAE,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,CAAA;SACvD;;;wIAdU,iBAAiB;iHAAjB,iBAAiB;qHAAjB,iBAAiB;sBAH7BC,YAAS;uBAAC;wBACT,QAAQ,EAAE,aAAa;qBACxB;gHAGkB,MAAM;0BAAtBC,QAAK;2BAAC,QAAQ;oBACM,QAAQ;0BAA5BC,SAAM;2BAAC,WAAW;oBACO,aAAa;0BAAtCA,SAAM;2BAAC,gBAAgB;;;;QCA1B;;;;qIAAa,cAAc;sIAAd,cAAc,iBARvB,iBAAiB,aAKjB,iBAAiB;sIAGR,cAAc,YANhB,EACR;qHAKU,cAAc;sBAV1BC,WAAQ;uBAAC;wBACR,YAAY,EAAE;4BACZ,iBAAiB;yBAClB;wBACD,OAAO,EAAE,EACR;wBACD,OAAO,EAAE;4BACP,iBAAiB;yBAClB;qBACF;;;ICdD;;;;ICAA;;;;;;;;;;;;;"}
|
|
@@ -1,37 +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
|
-
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: "12.1.2", ngImport: i0, type: NgThaanaDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
21
|
-
NgThaanaDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.1.2", 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: "12.1.2", 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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmctdGhhYW5hLmRpcmVjdGl2ZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL25nLXRoYWFuYS9zcmMvbGliL25nLXRoYWFuYS5kaXJlY3RpdmUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFpQixZQUFZLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDNUQsT0FBTyxFQUFHLFNBQVMsRUFBYyxLQUFLLEVBQUUsTUFBTSxFQUFDLE1BQU0sZUFBZSxDQUFDO0FBRXJFLE9BQVEsTUFBTSxNQUFNLFNBQVMsQ0FBQTs7QUFRN0IsTUFBTSxPQUFPLGlCQUFpQjtJQU01QixZQUFvQixFQUFjO1FBQWQsT0FBRSxHQUFGLEVBQUUsQ0FBWTtRQUpqQixXQUFNLEdBQVcsVUFBVSxDQUFDO1FBQ3hCLGFBQVEsR0FBRyxJQUFJLFlBQVksRUFBVSxDQUFDO1FBQ2pDLGtCQUFhLEdBQUcsSUFBSSxZQUFZLEVBQVUsQ0FBQztJQUVoQyxDQUFDO0lBRXRDLGVBQWU7UUFDYixJQUFJLENBQUMsRUFBRSxDQUFDLGFBQWEsQ0FBQyxLQUFLLENBQUMsU0FBUyxHQUFHLEtBQUssQ0FBQTtRQUM3QyxJQUFJ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0ZXJWaWV3SW5pdCB7XG5cbiAgQElucHV0KCdmbGF2b3InKSBmbGF2b3I6IEZsYXZvciA9ICdwaG9uZXRpYyc7XG4gIEBPdXRwdXQoJ25nLXRoYWFuYScpIG5nVGhhYW5hID0gbmV3IEV2ZW50RW1pdHRlcjxzdHJpbmc+KCk7XG4gIEBPdXRwdXQoJ3RoYWFuYS10b2dnbGVkJykgdGhhYW5hVG9nZ2xlZCA9IG5ldyBFdmVudEVtaXR0ZXI8c3RyaW5nPigpO1xuXG4gIGNvbnN0cnVjdG9yKHByaXZhdGUgZWw6IEVsZW1lbnRSZWYpIHt9XG5cbiAgbmdBZnRlclZpZXdJbml0KCk6IHZvaWQge1xuICAgIHRoaXMuZWwubmF0aXZlRWxlbWVudC5zdHlsZS5kaXJlY3Rpb24gPSAncnRsJ1xuICAgIHRoaXMuZWwubmF0aXZlRWxlbWVudC5hZGRFdmVudExpc3RlbmVyKCd0aGFhbmEtdG9nZ2xlZCcsIChlOiBDdXN0b21FdmVudCkgPT4ge1xuICAgICAgdGhpcy50aGFhbmFUb2dnbGVkLmVtaXQoZS5kZXRhaWwpXG4gICAgfSlcbiAgICBUaGFhbmEodGhpcy5lbC5uYXRpdmVFbGVtZW50LCB7IGZsYXZvcjogdGhpcy5mbGF2b3IgfSlcbiAgfVxuXG59XG4iXX0=
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { NgModule } from '@angular/core';
|
|
2
|
-
import { NgThaanaDirective } from './ng-thaana.directive';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export class NgThaanaModule {
|
|
5
|
-
}
|
|
6
|
-
NgThaanaModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0, type: NgThaanaModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
7
|
-
NgThaanaModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0, type: NgThaanaModule, declarations: [NgThaanaDirective], exports: [NgThaanaDirective] });
|
|
8
|
-
NgThaanaModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0, type: NgThaanaModule, imports: [[]] });
|
|
9
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0, type: NgThaanaModule, decorators: [{
|
|
10
|
-
type: NgModule,
|
|
11
|
-
args: [{
|
|
12
|
-
declarations: [
|
|
13
|
-
NgThaanaDirective
|
|
14
|
-
],
|
|
15
|
-
imports: [],
|
|
16
|
-
exports: [
|
|
17
|
-
NgThaanaDirective
|
|
18
|
-
]
|
|
19
|
-
}]
|
|
20
|
-
}] });
|
|
21
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmctdGhhYW5hLm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL25nLXRoYWFuYS9zcmMvbGliL25nLXRoYWFuYS5tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFFBQVEsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUN6QyxPQUFPLEVBQUUsaUJBQWlCLEVBQUUsTUFBTSx1QkFBdUIsQ0FBQzs7QUFjMUQsTUFBTSxPQUFPLGNBQWM7OzJHQUFkLGNBQWM7NEdBQWQsY0FBYyxpQkFSdkIsaUJBQWlCLGFBS2pCLGlCQUFpQjs0R0FHUixjQUFjLFlBTmhCLEVBQ1I7MkZBS1UsY0FBYztrQkFWMUIsUUFBUTttQkFBQztvQkFDUixZQUFZLEVBQUU7d0JBQ1osaUJBQWlCO3FCQUNsQjtvQkFDRCxPQUFPLEVBQUUsRUFDUjtvQkFDRCxPQUFPLEVBQUU7d0JBQ1AsaUJBQWlCO3FCQUNsQjtpQkFDRiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IE5nTW9kdWxlIH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5pbXBvcnQgeyBOZ1RoYWFuYURpcmVjdGl2ZSB9IGZyb20gJy4vbmctdGhhYW5hLmRpcmVjdGl2ZSc7XG5cblxuXG5ATmdNb2R1bGUoe1xuICBkZWNsYXJhdGlvbnM6IFtcbiAgICBOZ1RoYWFuYURpcmVjdGl2ZVxuICBdLFxuICBpbXBvcnRzOiBbXG4gIF0sXG4gIGV4cG9ydHM6IFtcbiAgICBOZ1RoYWFuYURpcmVjdGl2ZVxuICBdXG59KVxuZXhwb3J0IGNsYXNzIE5nVGhhYW5hTW9kdWxlIHsgfVxuIl19
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ng-thaana.js","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;IAM5B,YAAoB,EAAc;QAAd,OAAE,GAAF,EAAE,CAAY;QAJjB,WAAM,GAAW,UAAU,CAAC;QACxB,aAAQ,GAAG,IAAI,YAAY,EAAU,CAAC;QACjC,kBAAa,GAAG,IAAI,YAAY,EAAU,CAAC;KAE/B;IAEtC,eAAe;QACb,IAAI,CAAC,EAAE,CAAC,aAAa,CAAC,KAAK,CAAC,SAAS,GAAG,KAAK,CAAA;QAC7C,IAAI,CAAC,EAAE,CAAC,aAAa,CAAC,gBAAgB,CAAC,gBAAgB,EAAE,CAAC,CAAc;YACtE,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,CAAA;SAClC,CAAC,CAAA;QACF,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,aAAa,EAAE,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,CAAA;KACvD;;8GAdU,iBAAiB;kGAAjB,iBAAiB;2FAAjB,iBAAiB;kBAH7B,SAAS;mBAAC;oBACT,QAAQ,EAAE,aAAa;iBACxB;iGAGkB,MAAM;sBAAtB,KAAK;uBAAC,QAAQ;gBACM,QAAQ;sBAA5B,MAAM;uBAAC,WAAW;gBACO,aAAa;sBAAtC,MAAM;uBAAC,gBAAgB;;;MCAb,cAAc;;2GAAd,cAAc;4GAAd,cAAc,iBARvB,iBAAiB,aAKjB,iBAAiB;4GAGR,cAAc,YANhB,EACR;2FAKU,cAAc;kBAV1B,QAAQ;mBAAC;oBACR,YAAY,EAAE;wBACZ,iBAAiB;qBAClB;oBACD,OAAO,EAAE,EACR;oBACD,OAAO,EAAE;wBACP,iBAAiB;qBAClB;iBACF;;;ACdD;;;;ACAA;;;;;;"}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|