@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.
Files changed (44) hide show
  1. package/.turbo/turbo-build.log +17 -17
  2. package/CHANGELOG.md +13 -0
  3. package/dist/locale/index.cjs +24 -0
  4. package/dist/locale/index.cjs.map +1 -1
  5. package/dist/locale/index.d.ts +8 -1
  6. package/dist/locale/index.js +24 -1
  7. package/dist/locale/index.js.map +1 -1
  8. package/dist/locale/index.umd.js +24 -0
  9. package/dist/locale/index.umd.js.map +1 -1
  10. package/dist/playwright/index.cjs +2 -2
  11. package/dist/playwright/index.cjs.map +1 -1
  12. package/dist/playwright/index.js +2 -2
  13. package/dist/playwright/index.js.map +1 -1
  14. package/dist/playwright/index.umd.js +2 -2
  15. package/dist/playwright/index.umd.js.map +1 -1
  16. package/dist/stencil/index.cjs +1595 -1
  17. package/dist/stencil/index.cjs.map +1 -1
  18. package/dist/stencil/index.js +1595 -1
  19. package/dist/stencil/index.js.map +1 -1
  20. package/dist/stencil/index.umd.js +1595 -1
  21. package/dist/stencil/index.umd.js.map +1 -1
  22. package/dist/storybook/index.cjs +1633 -18
  23. package/dist/storybook/index.cjs.map +1 -1
  24. package/dist/storybook/index.js +1633 -18
  25. package/dist/storybook/index.js.map +1 -1
  26. package/dist/storybook/index.umd.js +1633 -18
  27. package/dist/storybook/index.umd.js.map +1 -1
  28. package/dist/vue/index.cjs.map +1 -1
  29. package/dist/vue/index.js.map +1 -1
  30. package/dist/vue/index.umd.js.map +1 -1
  31. package/package.json +15 -16
  32. package/rollup.config.mjs +1 -1
  33. package/src/locale/index.spec.ts +2 -1
  34. package/src/locale/locale.spec.ts +94 -1
  35. package/src/locale/locale.ts +27 -0
  36. package/src/playwright/utils/__snapshots__/utils.spec.ts.snap +4 -4
  37. package/src/playwright/utils/utils.spec.ts +1 -1
  38. package/src/playwright/utils/utils.ts +2 -2
  39. package/src/stencil/ide/ide.spec.ts +5 -1
  40. package/src/stencil/index.spec.ts +5 -1
  41. package/src/storybook/index.spec.ts +5 -1
  42. package/src/storybook/stencil/stencil.spec.ts +4 -0
  43. package/src/tests/unit/__snapshots__/unit.spec.ts.snap +4 -4
  44. 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 spy],
15
+ "disconnect": [MockFunction],
16
16
  "observe": [Function],
17
17
  "takeRecords": [Function],
18
18
  },
19
- "disconnect": [MockFunction spy],
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 spy],
37
+ "disconnect": [MockFunction],
38
38
  "observe": [Function],
39
39
  "unobserve": [Function],
40
40
  },
41
- "disconnect": [MockFunction spy],
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{ [Symbol(impl)]: URLImpl{ _url: { scheme: 'http', username: '', password: '', host: 'url.fr', port: null, path: [ 'next', 'page' ], query: null, fragment: null }, _query: URLSearchParamsImpl{ _list: [], _url: URLImpl[Circular], [Symbol(wrapper)]: URLSearchParams{ [Symbol(impl)]: URLSearchParamsImpl[Circular] } }, [Symbol(wrapper)]: URL[Circular] } } } } 1`] = `
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],