@mgdis/core-ui-helpers 1.0.6 → 1.1.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/.turbo/turbo-build.log +17 -17
- package/CHANGELOG.md +13 -0
- package/dist/locale/index.cjs +24 -0
- package/dist/locale/index.cjs.map +1 -1
- package/dist/locale/index.d.ts +8 -1
- package/dist/locale/index.js +24 -1
- package/dist/locale/index.js.map +1 -1
- package/dist/locale/index.umd.js +24 -0
- package/dist/locale/index.umd.js.map +1 -1
- package/dist/playwright/index.cjs +2 -2
- package/dist/playwright/index.cjs.map +1 -1
- package/dist/playwright/index.js +2 -2
- package/dist/playwright/index.js.map +1 -1
- package/dist/playwright/index.umd.js +2 -2
- package/dist/playwright/index.umd.js.map +1 -1
- package/dist/stencil/index.cjs +1595 -1
- package/dist/stencil/index.cjs.map +1 -1
- package/dist/stencil/index.js +1595 -1
- package/dist/stencil/index.js.map +1 -1
- package/dist/stencil/index.umd.js +1595 -1
- package/dist/stencil/index.umd.js.map +1 -1
- package/dist/storybook/index.cjs +1633 -18
- package/dist/storybook/index.cjs.map +1 -1
- package/dist/storybook/index.js +1633 -18
- package/dist/storybook/index.js.map +1 -1
- package/dist/storybook/index.umd.js +1633 -18
- package/dist/storybook/index.umd.js.map +1 -1
- package/dist/vue/index.cjs.map +1 -1
- package/dist/vue/index.js.map +1 -1
- package/dist/vue/index.umd.js.map +1 -1
- package/package.json +15 -16
- package/rollup.config.mjs +1 -1
- package/src/locale/index.spec.ts +2 -1
- package/src/locale/locale.spec.ts +94 -1
- package/src/locale/locale.ts +27 -0
- package/src/playwright/utils/__snapshots__/utils.spec.ts.snap +4 -4
- package/src/playwright/utils/utils.spec.ts +1 -1
- package/src/playwright/utils/utils.ts +2 -2
- package/src/stencil/ide/ide.spec.ts +5 -1
- package/src/stencil/index.spec.ts +5 -1
- package/src/storybook/index.spec.ts +5 -1
- package/src/storybook/stencil/stencil.spec.ts +4 -0
- package/src/tests/unit/__snapshots__/unit.spec.ts.snap +4 -4
- package/src/utils/components/__snapshots__/components.spec.ts.snap +1 -1
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
import { describe, expect, test } from 'vitest';
|
|
1
|
+
import { describe, expect, test, vi } from 'vitest';
|
|
2
2
|
import { webTypesGenerator, vsCodeGenerator, vsCodeCssGenerator } from '.';
|
|
3
3
|
|
|
4
|
+
vi.mock('@stencil/core/internal/client', () => ({
|
|
5
|
+
renderVdom: vi.fn(),
|
|
6
|
+
}));
|
|
7
|
+
|
|
4
8
|
describe('stencil', () => {
|
|
5
9
|
describe('ide', () => {
|
|
6
10
|
test('import', () => {
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
import { describe, expect, test } from 'vitest';
|
|
1
|
+
import { describe, expect, test, vi } from 'vitest';
|
|
2
2
|
import { filterArgs, getStorybookUrl, getStoryHTML, stencilWrapper, StorybookPreview } from '.';
|
|
3
3
|
|
|
4
|
+
vi.mock('@stencil/core/internal/client', () => ({
|
|
5
|
+
renderVdom: vi.fn(),
|
|
6
|
+
}));
|
|
7
|
+
|
|
4
8
|
describe('storybook', () => {
|
|
5
9
|
describe('stencil', () => {
|
|
6
10
|
test('import', () => {
|
|
@@ -4,6 +4,10 @@ import { VNode } from '@stencil/core';
|
|
|
4
4
|
import jsonDocs from '../../../json-doc.test.json';
|
|
5
5
|
import { JsonDocs } from '@stencil/core/internal';
|
|
6
6
|
|
|
7
|
+
vi.mock('@stencil/core/internal/client', () => ({
|
|
8
|
+
renderVdom: vi.fn(),
|
|
9
|
+
}));
|
|
10
|
+
|
|
7
11
|
describe('stencil', () => {
|
|
8
12
|
describe('filterArgs', () => {
|
|
9
13
|
test('Should get renderable args, case filtred default args', () => {
|
|
@@ -12,11 +12,11 @@ MockMutationObserver {
|
|
|
12
12
|
exports[`unit > setupMutationObserverMock > Should render html 2`] = `
|
|
13
13
|
MockMutationObserver {
|
|
14
14
|
"cb": {
|
|
15
|
-
"disconnect": [MockFunction
|
|
15
|
+
"disconnect": [MockFunction],
|
|
16
16
|
"observe": [Function],
|
|
17
17
|
"takeRecords": [Function],
|
|
18
18
|
},
|
|
19
|
-
"disconnect": [MockFunction
|
|
19
|
+
"disconnect": [MockFunction],
|
|
20
20
|
"observe": [Function],
|
|
21
21
|
"takeRecords": [Function],
|
|
22
22
|
}
|
|
@@ -34,11 +34,11 @@ MockResizeObserver {
|
|
|
34
34
|
exports[`unit > setupResizeObserverMock > Should render html 2`] = `
|
|
35
35
|
MockResizeObserver {
|
|
36
36
|
"cb": {
|
|
37
|
-
"disconnect": [MockFunction
|
|
37
|
+
"disconnect": [MockFunction],
|
|
38
38
|
"observe": [Function],
|
|
39
39
|
"unobserve": [Function],
|
|
40
40
|
},
|
|
41
|
-
"disconnect": [MockFunction
|
|
41
|
+
"disconnect": [MockFunction],
|
|
42
42
|
"observe": [Function],
|
|
43
43
|
"unobserve": undefined,
|
|
44
44
|
}
|
|
@@ -130,7 +130,7 @@ Page {
|
|
|
130
130
|
}
|
|
131
131
|
`;
|
|
132
132
|
|
|
133
|
-
exports[`components > Paginate > getPage() > Shoud get paginated page from instance { items: [ '1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20', '21', '22', '23', '24', '25', '26', '27', '28', '29', '30', '31', '32', '33', '34' ], options: { next: URL{
|
|
133
|
+
exports[`components > Paginate > getPage() > Shoud get paginated page from instance { items: [ '1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20', '21', '22', '23', '24', '25', '26', '27', '28', '29', '30', '31', '32', '33', '34' ], options: { next: URL$1 { href: 'http://url.fr/next/page', origin: 'http://url.fr', protocol: 'http:', username: '', password: '', host: 'url.fr', hostname: 'url.fr', port: '', pathname: '/next/page', search: '', searchParams: [Object], hash: '' } } } 1`] = `
|
|
134
134
|
Page {
|
|
135
135
|
"baseIndex": 1,
|
|
136
136
|
"getIndexFromCursor": [Function],
|