@mgdis/stencil-helpers 2.0.0 → 2.2.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/dist/components/index.d.ts +14 -2
- package/dist/components/index.d.ts.map +1 -1
- package/dist/ide/index.d.ts +0 -1
- package/dist/index.es.js +235 -218
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +2 -2
- package/dist/index.umd.js.map +1 -1
- package/dist/locale/index.d.ts +30 -2
- package/dist/locale/index.d.ts.map +1 -1
- package/dist/storybook/index.d.ts +0 -1
- package/dist/storybook/index.d.ts.map +1 -1
- package/dist/tests/unit.d.ts +0 -1
- package/dist/tests/unit.d.ts.map +1 -1
- package/package.json +12 -12
|
@@ -5,6 +5,12 @@
|
|
|
5
5
|
* @returns ID
|
|
6
6
|
*/
|
|
7
7
|
export declare const createID: (prefix?: string, length?: number) => string;
|
|
8
|
+
/**
|
|
9
|
+
* Validate html `id` format
|
|
10
|
+
* @param newValue - id value to validate
|
|
11
|
+
* @returns true if `id` is valid
|
|
12
|
+
*/
|
|
13
|
+
export declare const isValideID: (newValue: unknown) => boolean;
|
|
8
14
|
/**
|
|
9
15
|
* Class to manage component classlist
|
|
10
16
|
*/
|
|
@@ -77,11 +83,17 @@ export declare const getParentWindows: (localWindow: Window, windows?: Window[])
|
|
|
77
83
|
*/
|
|
78
84
|
export declare const isValidString: (value: unknown) => value is string;
|
|
79
85
|
/**
|
|
80
|
-
*
|
|
81
|
-
* @param value
|
|
86
|
+
* Stringify value
|
|
87
|
+
* @param value - value to stringify
|
|
82
88
|
* @returns stringified value
|
|
83
89
|
*/
|
|
84
90
|
export declare const toString: (value: unknown) => string;
|
|
91
|
+
/**
|
|
92
|
+
* Validate number
|
|
93
|
+
* @param value - value to check
|
|
94
|
+
* @returns `true` if number is valid
|
|
95
|
+
*/
|
|
96
|
+
export declare const isValidNumber: (value: unknown) => value is number;
|
|
85
97
|
/**
|
|
86
98
|
* Cleans string characters by removing special characters and converting to lowercase.
|
|
87
99
|
* @param text - text to clean
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,eAAO,MAAM,QAAQ,wCAA+B,MAWnD,CAAC;AAEF;;GAEG;AACH,qBAAa,SAAS;IACpB;;OAEG;IACH,OAAO,EAAE,MAAM,EAAE,CAAC;gBAEN,SAAS,GAAE,MAAM,EAAO;IAIpC;;;OAGG;IACH,GAAG,cAAe,MAAM,KAAG,IAAI,CAI7B;IAEF;;;OAGG;IACH,MAAM,cAAe,MAAM,KAAG,IAAI,CAKhC;IAEF;;;;OAIG;IACH,GAAG,cAAe,MAAM,KAAG,OAAO,CAEhC;IAEF;;;OAGG;IACH,IAAI,QAAO,MAAM,CAEf;CACH;AAED;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,UAAW,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,eAAO,MAAM,QAAQ,wCAA+B,MAWnD,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,UAAU,aAAc,OAAO,KAAG,OAA+F,CAAC;AAE/I;;GAEG;AACH,qBAAa,SAAS;IACpB;;OAEG;IACH,OAAO,EAAE,MAAM,EAAE,CAAC;gBAEN,SAAS,GAAE,MAAM,EAAO;IAIpC;;;OAGG;IACH,GAAG,cAAe,MAAM,KAAG,IAAI,CAI7B;IAEF;;;OAGG;IACH,MAAM,cAAe,MAAM,KAAG,IAAI,CAKhC;IAEF;;;;OAIG;IACH,GAAG,cAAe,MAAM,KAAG,OAAO,CAEhC;IAEF;;;OAGG;IACH,IAAI,QAAO,MAAM,CAEf;CACH;AAED;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,UAAW,OAAO,KAAG,KAAK,IAAI,MAAM,EAA2E,CAAC;AAE9I;;;;;GAKG;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