@snabcentr/vue-ui-lib 4.17.4 → 4.18.1
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/manifest.json +2 -2
- package/dist/release_notes.tmp +4 -2
- package/dist/sc-vue-ui-lib.css +1 -1
- package/dist/sc-vue-ui-lib.js +8432 -7953
- package/dist/sc-vue-ui-lib.js.map +1 -1
- package/dist/sc-vue-ui-lib.umd.cjs +65 -65
- package/dist/sc-vue-ui-lib.umd.cjs.map +1 -1
- package/dist/src/components/{button-with-confirm-action.vue.d.ts → buttons/button-with-confirm-action.vue.d.ts} +4 -4
- package/dist/src/components/buttons/index.d.ts +1 -0
- package/dist/src/components/catalog/category-collapse.vue.d.ts +1 -1
- package/dist/src/components/catalog/dialogs/add-product-to-cart-dialog.vue.d.ts +5 -5
- package/dist/src/components/dates/date-range/date-range-dialog.vue.d.ts +57 -0
- package/dist/src/components/dates/date-range/date-range-fields.vue.d.ts +66 -0
- package/dist/src/components/dates/date-range/date-range-helper.d.ts +24 -0
- package/dist/src/components/dates/date-range/date-range-input.vue.d.ts +38 -0
- package/dist/src/components/dates/date-range/month-range-grid.vue.d.ts +33 -0
- package/dist/src/components/dates/date-range/month-year-sidebar.vue.d.ts +31 -0
- package/dist/src/components/dates/date-range/standard-periods.vue.d.ts +31 -0
- package/dist/src/components/dates/date-range.vue.d.ts +28 -61
- package/dist/src/components/debt/index.d.ts +1 -0
- package/dist/src/components/dialog/base-dialog.vue.d.ts +2 -2
- package/dist/src/components/{comment-editor.vue.d.ts → editors/comment-editor.vue.d.ts} +1 -1
- package/dist/src/components/editors/index.d.ts +1 -0
- package/dist/src/components/icons/index.d.ts +1 -0
- package/dist/src/components/index.d.ts +5 -5
- package/dist/src/components/inline/inline-view.vue.d.ts +1 -1
- package/dist/src/components/sliding-content/index.d.ts +1 -0
- package/dist/src/properties/interfaces/i-date-range-disabled.d.ts +18 -0
- package/dist/src/properties/interfaces/i-predefined-date-ranges.d.ts +10 -0
- package/dist/src/properties/interfaces/index.d.ts +2 -0
- package/dist/src/test/component-test-support.d.ts +87 -0
- package/package.json +15 -6
- /package/dist/src/components/{debt.vue.d.ts → debt/debt.vue.d.ts} +0 -0
- /package/dist/src/components/{warning-icon.vue.d.ts → icons/warning-icon.vue.d.ts} +0 -0
- /package/dist/src/components/{sliding-content-with-drawer.vue.d.ts → sliding-content/sliding-content-with-drawer.vue.d.ts} +0 -0
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { VueWrapper } from '@vue/test-utils';
|
|
2
|
+
/**
|
|
3
|
+
* Общие опции mount для компонентов с иконками.
|
|
4
|
+
*/
|
|
5
|
+
export declare const componentMountOptions: {
|
|
6
|
+
global: {
|
|
7
|
+
directives: {
|
|
8
|
+
FocusNext: {
|
|
9
|
+
mounted(): void;
|
|
10
|
+
};
|
|
11
|
+
focusNext: {
|
|
12
|
+
mounted(): void;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
stubs: {
|
|
16
|
+
IconIonWarning: {
|
|
17
|
+
inheritAttrs: boolean;
|
|
18
|
+
template: string;
|
|
19
|
+
};
|
|
20
|
+
IconTablerExternalLink: {
|
|
21
|
+
inheritAttrs: boolean;
|
|
22
|
+
template: string;
|
|
23
|
+
};
|
|
24
|
+
IconIonDownloadOutline: {
|
|
25
|
+
inheritAttrs: boolean;
|
|
26
|
+
template: string;
|
|
27
|
+
};
|
|
28
|
+
IconIonOptionsOutline: {
|
|
29
|
+
inheritAttrs: boolean;
|
|
30
|
+
template: string;
|
|
31
|
+
};
|
|
32
|
+
IconIonCheckmarkDoneSharp: {
|
|
33
|
+
inheritAttrs: boolean;
|
|
34
|
+
template: string;
|
|
35
|
+
};
|
|
36
|
+
IconIonClose: {
|
|
37
|
+
inheritAttrs: boolean;
|
|
38
|
+
template: string;
|
|
39
|
+
};
|
|
40
|
+
IconTablerPhoneCall: {
|
|
41
|
+
inheritAttrs: boolean;
|
|
42
|
+
template: string;
|
|
43
|
+
};
|
|
44
|
+
IconIonCall: {
|
|
45
|
+
inheritAttrs: boolean;
|
|
46
|
+
template: string;
|
|
47
|
+
};
|
|
48
|
+
IconLogosTelegram: {
|
|
49
|
+
inheritAttrs: boolean;
|
|
50
|
+
template: string;
|
|
51
|
+
};
|
|
52
|
+
IconLogosWhatsappIcon: {
|
|
53
|
+
inheritAttrs: boolean;
|
|
54
|
+
template: string;
|
|
55
|
+
};
|
|
56
|
+
IconFa6BrandsViber: {
|
|
57
|
+
inheritAttrs: boolean;
|
|
58
|
+
template: string;
|
|
59
|
+
};
|
|
60
|
+
IconTablerMail: {
|
|
61
|
+
inheritAttrs: boolean;
|
|
62
|
+
template: string;
|
|
63
|
+
};
|
|
64
|
+
IconMdiEnvelope: {
|
|
65
|
+
inheritAttrs: boolean;
|
|
66
|
+
template: string;
|
|
67
|
+
};
|
|
68
|
+
IconIonRemoveCircleOutline: {
|
|
69
|
+
inheritAttrs: boolean;
|
|
70
|
+
template: string;
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
/**
|
|
76
|
+
* Монтирует компонент с общими заглушками Naive UI и иконок.
|
|
77
|
+
*
|
|
78
|
+
* @param component Тестируемый компонент.
|
|
79
|
+
* @param options Дополнительные опции mount.
|
|
80
|
+
*/
|
|
81
|
+
export declare const mountComponent: (component: unknown, options?: Record<string, unknown>) => VueWrapper;
|
|
82
|
+
/**
|
|
83
|
+
* Устанавливает ширину окна для тестов, зависящих от разрешения экрана.
|
|
84
|
+
*
|
|
85
|
+
* @param value Ширина окна в пикселях.
|
|
86
|
+
*/
|
|
87
|
+
export declare const setWindowWidth: (value: number) => void;
|
package/package.json
CHANGED
|
@@ -4,16 +4,21 @@
|
|
|
4
4
|
"keywords": [],
|
|
5
5
|
"author": "Sergey S. Smirnov <dev@snabcentr.com>",
|
|
6
6
|
"type": "module",
|
|
7
|
-
"version": "4.
|
|
7
|
+
"version": "4.18.1",
|
|
8
8
|
"license": "ISC",
|
|
9
9
|
"scripts": {
|
|
10
10
|
"dev": "vite",
|
|
11
|
-
"build": "tsc && vite build && rm dist/vite.* && cp readme.md dist/readme.md",
|
|
11
|
+
"build": "tsc -p tsconfig.build.json && vite build && rm dist/vite.* && cp readme.md dist/readme.md",
|
|
12
12
|
"build-watch": "vite build -w",
|
|
13
|
-
"
|
|
14
|
-
"lint": "eslint --ignore-path .gitignore
|
|
13
|
+
"lint:files": "eslint --ignore-path .gitignore",
|
|
14
|
+
"lint": "eslint --ignore-path .gitignore src",
|
|
15
|
+
"lint:fix": "eslint --fix --ignore-path .gitignore src",
|
|
15
16
|
"lint:staged": "npx lint-staged",
|
|
16
17
|
"preview": "vite preview",
|
|
18
|
+
"test": "vitest",
|
|
19
|
+
"test:once": "vitest run",
|
|
20
|
+
"test:coverage": "mkdir -p coverage/.tmp && vitest run --coverage",
|
|
21
|
+
"test:ci": "mkdir -p junit coverage && vitest run --coverage --coverage.reporter=text-summary --coverage.reporter=cobertura --reporter=default --reporter=junit --outputFile.junit=junit/test_results.xml | tee coverage/coverage_report.txt && cp coverage/cobertura-coverage.xml coverage/coverage_report.xml",
|
|
17
22
|
"publish:lib": "npm publish",
|
|
18
23
|
"init_git_hooks": "husky",
|
|
19
24
|
"uninstall_git_hooks": "husky uninstall"
|
|
@@ -36,7 +41,7 @@
|
|
|
36
41
|
},
|
|
37
42
|
"lint-staged": {
|
|
38
43
|
"*.(js|jsx|ts|tsx|vue)": [
|
|
39
|
-
"npm run
|
|
44
|
+
"npm run lint:files"
|
|
40
45
|
]
|
|
41
46
|
},
|
|
42
47
|
"peerDependencies": {
|
|
@@ -46,7 +51,7 @@
|
|
|
46
51
|
"@iconify-json/logos": "^1.2.9",
|
|
47
52
|
"@iconify-json/mdi": "^1.2.3",
|
|
48
53
|
"@iconify-json/tabler": "^1.2.23",
|
|
49
|
-
"@snabcentr/common-lib": "^2.
|
|
54
|
+
"@snabcentr/common-lib": "^2.18.0",
|
|
50
55
|
"@tailwindcss/container-queries": "^0.1.1",
|
|
51
56
|
"date-fns": "^3.6.0",
|
|
52
57
|
"libphonenumber-js": "^1.12.23",
|
|
@@ -68,9 +73,12 @@
|
|
|
68
73
|
"@types/node": "^22.20.1",
|
|
69
74
|
"@types/vue-tel-input": "^2.1.1",
|
|
70
75
|
"@vitejs/plugin-vue": "^5.2.4",
|
|
76
|
+
"@vitest/coverage-v8": "^3.2.7",
|
|
77
|
+
"@vue/test-utils": "^2.4.11",
|
|
71
78
|
"autoprefixer": "^10.5.4",
|
|
72
79
|
"baseline-browser-mapping": "^2.11.7",
|
|
73
80
|
"eslint-plugin-vue": "^9.32.0",
|
|
81
|
+
"happy-dom": "^17.6.3",
|
|
74
82
|
"husky": "^9.1.7",
|
|
75
83
|
"lint-staged": "^16.4.0",
|
|
76
84
|
"rollup-plugin-visualizer": "^6.0.11",
|
|
@@ -84,6 +92,7 @@
|
|
|
84
92
|
"vite-plugin-manifest-sri": "^0.2.0",
|
|
85
93
|
"vite-plugin-static-copy": "^2.3.2",
|
|
86
94
|
"vite-plugin-vue-devtools": "^8.2.1",
|
|
95
|
+
"vitest": "^3.2.7",
|
|
87
96
|
"vue-json-pretty": "^2.6.0",
|
|
88
97
|
"vue-router": "^4.6.4",
|
|
89
98
|
"vue-tsc": "^3.3.8"
|
|
File without changes
|
|
File without changes
|