@starley/ion-directives 1.2.11 → 1.2.12
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/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/{utils.d.ts → provider/ion-utils-provider.d.ts} +3 -3
- package/dist/{utils.js → provider/ion-utils-provider.js} +10 -10
- package/dist/provider/ion-utils-provider.js.map +1 -0
- package/package.json +9 -9
- package/dist/utils.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -2,4 +2,4 @@ export * from './input-mask/input-mask.directive';
|
|
|
2
2
|
export * from './press-hold/press-hold.directive';
|
|
3
3
|
export * from './tap/tap.directive';
|
|
4
4
|
export * from './directive.module';
|
|
5
|
-
export {
|
|
5
|
+
export { IonUtilsProvider } from './provider/ion-utils-provider';
|
package/dist/index.js
CHANGED
|
@@ -2,5 +2,5 @@ export * from './input-mask/input-mask.directive';
|
|
|
2
2
|
export * from './press-hold/press-hold.directive';
|
|
3
3
|
export * from './tap/tap.directive';
|
|
4
4
|
export * from './directive.module';
|
|
5
|
-
export {
|
|
5
|
+
export { IonUtilsProvider } from './provider/ion-utils-provider';
|
|
6
6
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,mCAAmC,CAAA;AACjD,cAAc,mCAAmC,CAAC;AAClD,cAAc,qBAAqB,CAAA;AACnC,cAAc,oBAAoB,CAAC;AACnC,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,mCAAmC,CAAA;AACjD,cAAc,mCAAmC,CAAC;AAClD,cAAc,qBAAqB,CAAA;AACnC,cAAc,oBAAoB,CAAC;AACnC,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAA","sourcesContent":["export * from './input-mask/input-mask.directive'\nexport * from './press-hold/press-hold.directive';\nexport * from './tap/tap.directive'\nexport * from './directive.module';\nexport { IonUtilsProvider } from './provider/ion-utils-provider'\n"]}
|
|
@@ -3,7 +3,7 @@ import * as i0 from "@angular/core";
|
|
|
3
3
|
* Classe responsavel gerenciar os utils
|
|
4
4
|
* @author Starley Cazorla
|
|
5
5
|
*/
|
|
6
|
-
export declare class
|
|
6
|
+
export declare class IonUtilsProvider {
|
|
7
7
|
constructor();
|
|
8
8
|
/**
|
|
9
9
|
* Veifica se a data esta valida
|
|
@@ -17,6 +17,6 @@ export declare class Utils {
|
|
|
17
17
|
* @returns
|
|
18
18
|
*/
|
|
19
19
|
convertJsonToArray(data: any): Promise<[]>;
|
|
20
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
21
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IonUtilsProvider, never>;
|
|
21
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<IonUtilsProvider>;
|
|
22
22
|
}
|
|
@@ -4,15 +4,15 @@ import * as i0 from "@angular/core";
|
|
|
4
4
|
* Classe responsavel gerenciar os utils
|
|
5
5
|
* @author Starley Cazorla
|
|
6
6
|
*/
|
|
7
|
-
var
|
|
8
|
-
function
|
|
7
|
+
var IonUtilsProvider = /** @class */ (function () {
|
|
8
|
+
function IonUtilsProvider() {
|
|
9
9
|
}
|
|
10
10
|
/**
|
|
11
11
|
* Veifica se a data esta valida
|
|
12
12
|
* @param v
|
|
13
13
|
* @returns
|
|
14
14
|
*/
|
|
15
|
-
|
|
15
|
+
IonUtilsProvider.prototype.isValidDate = function (v) {
|
|
16
16
|
if (!v)
|
|
17
17
|
return false;
|
|
18
18
|
// Regex format: DD/MM/YYYY | DD-MM-YYYY | DD.MM.YYYY
|
|
@@ -24,17 +24,17 @@ var Utils = /** @class */ (function () {
|
|
|
24
24
|
* @param data
|
|
25
25
|
* @returns
|
|
26
26
|
*/
|
|
27
|
-
|
|
27
|
+
IonUtilsProvider.prototype.convertJsonToArray = function (data) {
|
|
28
28
|
var jsonData = data.map(function (val) { return JSON.stringify(val); });
|
|
29
29
|
return jsonData.filter(function (value, ind) { return jsonData.indexOf(value) == ind; }).map(function (val) { return JSON.parse(val); });
|
|
30
30
|
};
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
return
|
|
31
|
+
IonUtilsProvider.ɵfac = function IonUtilsProvider_Factory(t) { return new (t || IonUtilsProvider)(); };
|
|
32
|
+
IonUtilsProvider.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: IonUtilsProvider, factory: IonUtilsProvider.ɵfac, providedIn: 'root' });
|
|
33
|
+
return IonUtilsProvider;
|
|
34
34
|
}());
|
|
35
|
-
export {
|
|
36
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(
|
|
35
|
+
export { IonUtilsProvider };
|
|
36
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(IonUtilsProvider, [{
|
|
37
37
|
type: Injectable,
|
|
38
38
|
args: [{ providedIn: 'root' }]
|
|
39
39
|
}], function () { return []; }, null); })();
|
|
40
|
-
//# sourceMappingURL=utils.js.map
|
|
40
|
+
//# sourceMappingURL=ion-utils-provider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ion-utils-provider.js","sourceRoot":"","sources":["../../src/provider/ion-utils-provider.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;;AAE3C;;;GAGG;AAEH;IAGI;IAAgB,CAAC;IAEjB;;;;OAIG;IACH,sCAAW,GAAX,UAAY,CAAS;QACjB,IAAI,CAAC,CAAC;YAAE,OAAO,KAAK,CAAC;QACrB,qDAAqD;QACrD,IAAI,EAAE,GAAG,sUAAsU,CAAC;QAChV,OAAO,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACtB,CAAC;IAED;;;;OAIG;IACH,6CAAkB,GAAlB,UAAmB,IAAS;QACxB,IAAI,QAAQ,GAAG,IAAI,CAAC,GAAG,CAAC,UAAC,GAAQ,IAAO,OAAO,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAA,CAAC,CAAC,CAAC,CAAC;QACtE,OAAO,QAAQ,CAAC,MAAM,CAAC,UAAC,KAAU,EAAE,GAAQ,IAAK,OAAA,QAAQ,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,GAAG,EAA9B,CAA8B,CAAC,CAAC,GAAG,CAAC,UAAC,GAAW,IAAO,OAAO,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAA,CAAC,CAAC,CAAC,CAAC;IACtI,CAAC;oFAxBQ,gBAAgB;0EAAhB,gBAAgB,WAAhB,gBAAgB,mBADH,MAAM;2BAPhC;CAkCC,AA3BD,IA2BC;SA1BY,gBAAgB;uFAAhB,gBAAgB;cAD5B,UAAU;eAAC,EAAE,UAAU,EAAE,MAAM,EAAE","sourcesContent":["import { Injectable } from \"@angular/core\";\n\n/**\n * Classe responsavel gerenciar os utils\n * @author Starley Cazorla\n */\n\n@Injectable({ providedIn: 'root' })\nexport class IonUtilsProvider {\n\n constructor() { }\n\n /**\n * Veifica se a data esta valida\n * @param v \n * @returns \n */\n isValidDate(v: string) {\n if (!v) return false;\n // Regex format: DD/MM/YYYY | DD-MM-YYYY | DD.MM.YYYY\n let re = /^(?:(?:31(\\/|-|\\.)(?:0?[13578]|1[02]))\\1|(?:(?:29|30)(\\/|-|\\.)(?:0?[1,3-9]|1[0-2])\\2))(?:(?:1[6-9]|[2-9]\\d)?\\d{2})$|^(?:29(\\/|-|\\.)0?2\\3(?:(?:(?:1[6-9]|[2-9]\\d)?(?:0[48]|[2468][048]|[13579][26])|(?:(?:16|[2468][048]|[3579][26])00))))$|^(?:0?[1-9]|1\\d|2[0-8])(\\/|-|\\.)(?:(?:0?[1-9])|(?:1[0-2]))\\4(?:(?:1[6-9]|[2-9]\\d)?\\d{2})$/;\n return re.test(v);\n }\n\n /**\n * Converte JSON em Array\n * @param data \n * @returns \n */\n convertJsonToArray(data: any): Promise<[]> {\n let jsonData = data.map((val: any) => { return JSON.stringify(val) });\n return jsonData.filter((value: any, ind: any) => jsonData.indexOf(value) == ind).map((val: string) => { return JSON.parse(val) });\n }\n\n}"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@starley/ion-directives",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.12",
|
|
4
4
|
"description": "Directivas internas para ionic",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"typings": "./dist/index.d.ts",
|
|
@@ -37,17 +37,17 @@
|
|
|
37
37
|
},
|
|
38
38
|
"homepage": "https://github.com/StarleyDev/ion-directives#readme",
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@angular/common": "^15.1.
|
|
41
|
-
"@angular/compiler": "^15.1.
|
|
42
|
-
"@angular/compiler-cli": "^15.1.
|
|
43
|
-
"@angular/core": "^15.1.
|
|
44
|
-
"@angular/forms": "^15.1.
|
|
45
|
-
"@types/node": "^18.
|
|
40
|
+
"@angular/common": "^15.1.4",
|
|
41
|
+
"@angular/compiler": "^15.1.4",
|
|
42
|
+
"@angular/compiler-cli": "^15.1.4",
|
|
43
|
+
"@angular/core": "^15.1.4",
|
|
44
|
+
"@angular/forms": "^15.1.4",
|
|
45
|
+
"@types/node": "^18.13.0",
|
|
46
46
|
"nodemon": "^2.0.20",
|
|
47
47
|
"ts-node": "^10.9.1",
|
|
48
|
-
"typescript": "^4.9.
|
|
48
|
+
"typescript": "^4.9.5"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"tslib": "^2.
|
|
51
|
+
"tslib": "^2.5.0"
|
|
52
52
|
}
|
|
53
53
|
}
|
package/dist/utils.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;;AAE3C;;;GAGG;AAEH;IAGI;IAAgB,CAAC;IAEjB;;;;OAIG;IACH,2BAAW,GAAX,UAAY,CAAS;QACjB,IAAI,CAAC,CAAC;YAAE,OAAO,KAAK,CAAC;QACrB,qDAAqD;QACrD,IAAI,EAAE,GAAG,sUAAsU,CAAC;QAChV,OAAO,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACtB,CAAC;IAED;;;;OAIG;IACH,kCAAkB,GAAlB,UAAmB,IAAS;QACxB,IAAI,QAAQ,GAAG,IAAI,CAAC,GAAG,CAAC,UAAC,GAAQ,IAAO,OAAO,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAA,CAAC,CAAC,CAAC,CAAC;QACtE,OAAO,QAAQ,CAAC,MAAM,CAAC,UAAC,KAAU,EAAE,GAAQ,IAAK,OAAA,QAAQ,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,GAAG,EAA9B,CAA8B,CAAC,CAAC,GAAG,CAAC,UAAC,GAAW,IAAO,OAAO,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAA,CAAC,CAAC,CAAC,CAAC;IACtI,CAAC;8DAxBQ,KAAK;+DAAL,KAAK,WAAL,KAAK,mBADQ,MAAM;gBAPhC;CAkCC,AA3BD,IA2BC;SA1BY,KAAK;uFAAL,KAAK;cADjB,UAAU;eAAC,EAAE,UAAU,EAAE,MAAM,EAAE","sourcesContent":["import { Injectable } from \"@angular/core\";\n\n/**\n * Classe responsavel gerenciar os utils\n * @author Starley Cazorla\n */\n\n@Injectable({ providedIn: 'root' })\nexport class Utils {\n\n constructor() { }\n\n /**\n * Veifica se a data esta valida\n * @param v \n * @returns \n */\n isValidDate(v: string) {\n if (!v) return false;\n // Regex format: DD/MM/YYYY | DD-MM-YYYY | DD.MM.YYYY\n let re = /^(?:(?:31(\\/|-|\\.)(?:0?[13578]|1[02]))\\1|(?:(?:29|30)(\\/|-|\\.)(?:0?[1,3-9]|1[0-2])\\2))(?:(?:1[6-9]|[2-9]\\d)?\\d{2})$|^(?:29(\\/|-|\\.)0?2\\3(?:(?:(?:1[6-9]|[2-9]\\d)?(?:0[48]|[2468][048]|[13579][26])|(?:(?:16|[2468][048]|[3579][26])00))))$|^(?:0?[1-9]|1\\d|2[0-8])(\\/|-|\\.)(?:(?:0?[1-9])|(?:1[0-2]))\\4(?:(?:1[6-9]|[2-9]\\d)?\\d{2})$/;\n return re.test(v);\n }\n\n /**\n * Converte JSON em Array\n * @param data \n * @returns \n */\n convertJsonToArray(data: any): Promise<[]> {\n let jsonData = data.map((val: any) => { return JSON.stringify(val) });\n return jsonData.filter((value: any, ind: any) => jsonData.indexOf(value) == ind).map((val: string) => { return JSON.parse(val) });\n }\n\n}"]}
|