@mgdis/stencil-helpers 1.1.0 → 1.1.2
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/ide/index.d.ts +1 -0
- package/dist/index.es.js +253 -247
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +21 -21
- package/dist/index.umd.js.map +1 -1
- package/dist/locale/index.d.ts +4 -2
- package/dist/locale/index.d.ts.map +1 -1
- package/dist/storybook/index.d.ts +2 -1
- package/dist/storybook/index.d.ts.map +1 -1
- package/dist/test/unit.d.ts +2 -1
- package/package.json +12 -12
package/dist/locale/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ObjectType } from './index.conf';
|
|
2
|
+
|
|
2
3
|
/**
|
|
3
4
|
* Gets the date pattern based on the specified locale.
|
|
4
5
|
* @param locale - the locale to refer to
|
|
@@ -35,13 +36,14 @@ export declare const localeCurrency: (number: number, locale: string, currency:
|
|
|
35
36
|
* Format number to locale
|
|
36
37
|
* @param number - number to format
|
|
37
38
|
* @param locale - locale to apply
|
|
39
|
+
* @param decimalLength - decimal length to apply
|
|
38
40
|
* @returns formatted number
|
|
39
41
|
* @example
|
|
40
42
|
* ```ts
|
|
41
43
|
* localeNumber(1234567890.12, 'fr') // 1 234 567 890,12
|
|
42
44
|
* ```
|
|
43
45
|
*/
|
|
44
|
-
export declare const localeNumber: (number: number, locale: string) => string;
|
|
46
|
+
export declare const localeNumber: (number: number, locale: string, decimalLength?: number) => string;
|
|
45
47
|
/**
|
|
46
48
|
* Date RegExp, usefull to test if string is a follow the date pattern
|
|
47
49
|
* @example
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/locale/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C;;;;;;;;GAQG;AACH,eAAO,MAAM,oBAAoB,WAAY,MAAM,WAKlD,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,YAAY,SAAU,IAAI,KAAG,MAAM,GAAG,SAA6C,CAAC;AAwBjG;;;;;;;;;;GAUG;AACH,eAAO,MAAM,cAAc,WAAY,MAAM,UAAU,MAAM,YAAY,MAAM,KAAG,MAAuF,CAAC;AAE1K
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/locale/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C;;;;;;;;GAQG;AACH,eAAO,MAAM,oBAAoB,WAAY,MAAM,WAKlD,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,YAAY,SAAU,IAAI,KAAG,MAAM,GAAG,SAA6C,CAAC;AAwBjG;;;;;;;;;;GAUG;AACH,eAAO,MAAM,cAAc,WAAY,MAAM,UAAU,MAAM,YAAY,MAAM,KAAG,MAAuF,CAAC;AAE1K;;;;;;;;;;GAUG;AACH,eAAO,MAAM,YAAY,WAAY,MAAM,UAAU,MAAM,kBAAiB,MAAM,KAAO,MAC4D,CAAC;AAEtJ;;;;;;;GAOG;AACH,eAAO,MAAM,UAAU,QAAkD,CAAC;AAE1E;;;;;;;;;GASG;AACH,eAAO,MAAM,UAAU,SAAU,MAAM,GAAG,SAAS,UAAU,MAAM,KAAG,MAKrE,CAAC;AAEF;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,aAAa,aACb,UAAU,iBAAiB,IAAI,GAAG,IAAI,GAAG,MAAM,eAChD,WAAW,KAAG;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,UAAU,CAAA;CACT,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import type { VNode } from '@stencil/core';
|
|
2
1
|
import { ArgsType } from './index.conf';
|
|
2
|
+
import { VNode } from '@stencil/core';
|
|
3
|
+
|
|
3
4
|
/**
|
|
4
5
|
* Filter default argument on component argument to prevent them to be rendered
|
|
5
6
|
* @param args - all possible args with custom values
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/storybook/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AA6CxC;;;;;;;;;;GAUG;AACH,eAAO,MAAM,UAAU,YAAa,CAAC,kBAAkB,CAAC,KAAG,CAgB1D,CAAC;AAEF;;;;;;;;;;;GAWG;AAEH,eAAO,MAAM,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/storybook/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AA6CxC;;;;;;;;;;GAUG;AACH,eAAO,MAAM,UAAU,YAAa,CAAC,kBAAkB,CAAC,KAAG,CAgB1D,CAAC;AAEF;;;;;;;;;;;GAWG;AAEH,eAAO,MAAM,cAAc,YAAa,CAAC,GAAG,EAAE,GAAG,KAAK,IAAI,WAAW,QAAQ,KAAG,OAAO,GAAG,SAqBzF,CAAC;AAEF;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,YAAY,2CAA4C,KAAK,KAAG,MAM5E,CAAC"}
|
package/dist/test/unit.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { SetupMutationObserverMockParams, setupResizeObserverMockParams } from './unit.conf';
|
|
2
|
+
|
|
2
3
|
/**
|
|
3
4
|
* Utility function that mocks the `MutationObserver` API. Recommended to execute inside `beforeEach`.
|
|
4
5
|
* @param mutationObserverMock - Parameter that is sent to the `Object.defineProperty`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mgdis/stencil-helpers",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.2",
|
|
4
4
|
"license": "ISC",
|
|
5
5
|
"author": "Nicolas Jouanno <jouanno-n@mgdis.fr>",
|
|
6
6
|
"maintainers": [
|
|
@@ -21,21 +21,21 @@
|
|
|
21
21
|
}
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@stencil/core": "4.
|
|
24
|
+
"@stencil/core": "4.14.0"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@types/node": "20.
|
|
28
|
-
"@vitest/coverage-istanbul": "1.
|
|
29
|
-
"@vitest/coverage-v8": "1.
|
|
30
|
-
"typedoc": "0.25.
|
|
27
|
+
"@types/node": "20.12.7",
|
|
28
|
+
"@vitest/coverage-istanbul": "1.4.0",
|
|
29
|
+
"@vitest/coverage-v8": "1.4.0",
|
|
30
|
+
"typedoc": "0.25.13",
|
|
31
31
|
"typedoc-plugin-markdown": "3.17.1",
|
|
32
|
-
"typescript": "5.4.
|
|
33
|
-
"vite": "5.
|
|
34
|
-
"vite-plugin-dts": "3.
|
|
35
|
-
"vitest": "1.
|
|
36
|
-
"
|
|
32
|
+
"typescript": "5.4.5",
|
|
33
|
+
"vite": "5.2.8",
|
|
34
|
+
"vite-plugin-dts": "3.8.2",
|
|
35
|
+
"vitest": "1.4.0",
|
|
36
|
+
"eslint-config-custom": "1.0.7",
|
|
37
37
|
"tsconfig": "1.0.2",
|
|
38
|
-
"
|
|
38
|
+
"prettier-config": "1.0.1"
|
|
39
39
|
},
|
|
40
40
|
"scripts": {
|
|
41
41
|
"build": "tsc --noEmit && vite build && typedoc",
|