@signal24/vue-foundation 4.29.8 → 4.30.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/demo/components/demo-vf-smart-select.vue +1 -1
- package/dist/demo/components/demo-root.vue.d.ts +2 -1
- package/dist/demo/components/demo-vf-alert-modal.vue.d.ts +2 -1
- package/dist/demo/components/demo-vf-smart-select.vue.d.ts +2 -1
- package/dist/src/components/overlay-anchor.vue.d.ts +3 -2
- package/dist/src/components/vf-ajax-select.vue.d.ts +7 -6
- package/dist/src/components/vf-alert-modal.vue.d.ts +2 -1
- package/dist/src/components/vf-ez-smart-select.vue.d.ts +7 -6
- package/dist/src/components/vf-modal.vue.d.ts +3 -2
- package/dist/src/components/vf-smart-select.vue.d.ts +9 -8
- package/dist/src/components/vf-toast.vue.d.ts +2 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/vue-foundation.es.js +805 -817
- package/package.json +24 -24
- package/src/components/overlay-container.ts +2 -2
- package/src/components/vf-smart-select.vue +3 -3
- package/src/directives/sticky-min-width.ts +4 -2
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@signal24/vue-foundation",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "4.
|
|
4
|
+
"version": "4.30.1",
|
|
5
5
|
"description": "Common components, directives, and helpers for Vue 3 apps",
|
|
6
6
|
"module": "./dist/vue-foundation.es.js",
|
|
7
7
|
"exports": {
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"currency.js": "^2.0.4",
|
|
36
36
|
"mark.js": "^8.11.1",
|
|
37
|
-
"uuid": "^
|
|
37
|
+
"uuid": "^13.0.0"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
40
|
"@signal24/openapi-client-codegen": "^2.1.1",
|
|
@@ -43,37 +43,37 @@
|
|
|
43
43
|
"vue": "^3.4.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@eslint/js": "9.
|
|
47
|
-
"@nabla/vite-plugin-eslint": "^2.0.
|
|
48
|
-
"@signal24/openapi-client-codegen": "^2.6.
|
|
46
|
+
"@eslint/js": "9.39.1",
|
|
47
|
+
"@nabla/vite-plugin-eslint": "^2.0.6",
|
|
48
|
+
"@signal24/openapi-client-codegen": "^2.6.2",
|
|
49
49
|
"@tsconfig/node22": "^22.0.2",
|
|
50
|
-
"@types/jsdom": "^
|
|
50
|
+
"@types/jsdom": "^27.0.0",
|
|
51
51
|
"@types/lodash": "^4.17.20",
|
|
52
52
|
"@types/mark.js": "^8",
|
|
53
|
-
"@types/node": "^24.0
|
|
54
|
-
"@types/uuid": "^
|
|
55
|
-
"@vitejs/plugin-vue": "^6.0.
|
|
53
|
+
"@types/node": "^24.10.0",
|
|
54
|
+
"@types/uuid": "^11.0.0",
|
|
55
|
+
"@vitejs/plugin-vue": "^6.0.1",
|
|
56
56
|
"@vue/eslint-config-prettier": "^10.2.0",
|
|
57
|
-
"@vue/eslint-config-typescript": "^14.
|
|
57
|
+
"@vue/eslint-config-typescript": "^14.6.0",
|
|
58
58
|
"@vue/test-utils": "^2.4.6",
|
|
59
|
-
"@vue/tsconfig": "^0.
|
|
59
|
+
"@vue/tsconfig": "^0.8.1",
|
|
60
60
|
"date-fns": "^4.1.0",
|
|
61
|
-
"eslint": "9.
|
|
61
|
+
"eslint": "9.39.1",
|
|
62
62
|
"eslint-plugin-simple-import-sort": "^12.1.1",
|
|
63
|
-
"eslint-plugin-unused-imports": "^4.
|
|
64
|
-
"eslint-plugin-vue": "^10.
|
|
65
|
-
"jsdom": "^
|
|
63
|
+
"eslint-plugin-unused-imports": "^4.3.0",
|
|
64
|
+
"eslint-plugin-vue": "^10.5.1",
|
|
65
|
+
"jsdom": "^27.1.0",
|
|
66
66
|
"lodash": "^4.17.21",
|
|
67
67
|
"prettier": "^3.6.2",
|
|
68
|
-
"sass": "^1.
|
|
69
|
-
"start-server-and-test": "^2.
|
|
70
|
-
"type-fest": "^
|
|
71
|
-
"typescript": "~5.
|
|
72
|
-
"typescript-eslint": "^8.
|
|
73
|
-
"vite": "^7.
|
|
74
|
-
"vitest": "^
|
|
75
|
-
"vue": "^3.5.
|
|
76
|
-
"vue-tsc": "^3.
|
|
68
|
+
"sass": "^1.93.3",
|
|
69
|
+
"start-server-and-test": "^2.1.2",
|
|
70
|
+
"type-fest": "^5.2.0",
|
|
71
|
+
"typescript": "~5.9",
|
|
72
|
+
"typescript-eslint": "^8.46.3",
|
|
73
|
+
"vite": "^7.2.1",
|
|
74
|
+
"vitest": "^4.0.7",
|
|
75
|
+
"vue": "^3.5.23",
|
|
76
|
+
"vue-tsc": "^3.1.3"
|
|
77
77
|
},
|
|
78
78
|
"packageManager": "yarn@4.9.2"
|
|
79
79
|
}
|
|
@@ -148,7 +148,7 @@ export function dismissOverlayInjectionByInternalInstance(instance: ComponentInt
|
|
|
148
148
|
export function dismissOverlayInjectionByVnode(vnode: VNode) {
|
|
149
149
|
const injectionIdx = OverlayInjections.findIndex(i => i.vnode.component === vnode.component);
|
|
150
150
|
if (injectionIdx >= 0) {
|
|
151
|
-
OverlayInjections[injectionIdx]
|
|
151
|
+
OverlayInjections[injectionIdx]!.props.callback();
|
|
152
152
|
return true;
|
|
153
153
|
}
|
|
154
154
|
return false;
|
|
@@ -157,7 +157,7 @@ export function dismissOverlayInjectionByVnode(vnode: VNode) {
|
|
|
157
157
|
export function dismissOverlayInjectionById(id: string) {
|
|
158
158
|
const injectionIdx = OverlayInjections.findIndex(i => i.id === id);
|
|
159
159
|
if (injectionIdx >= 0) {
|
|
160
|
-
OverlayInjections[injectionIdx]
|
|
160
|
+
OverlayInjections[injectionIdx]!.props.callback();
|
|
161
161
|
return true;
|
|
162
162
|
}
|
|
163
163
|
return false;
|
|
@@ -423,7 +423,7 @@ function setHighlightedOptionKey(useFirstItemAsFallback?: boolean) {
|
|
|
423
423
|
if (selectedOption.value) {
|
|
424
424
|
highlightedOptionKey.value = getOptionKey(selectedOption.value);
|
|
425
425
|
} else if (useFirstItemAsFallback) {
|
|
426
|
-
highlightedOptionKey.value = effectiveOptions.value?.[0]
|
|
426
|
+
highlightedOptionKey.value = effectiveOptions.value?.[0]?.key ?? NullSymbol;
|
|
427
427
|
} else if (props.nullTitle) {
|
|
428
428
|
highlightedOptionKey.value = NullSymbol;
|
|
429
429
|
}
|
|
@@ -485,7 +485,7 @@ function teleportOptionsContainer() {
|
|
|
485
485
|
|
|
486
486
|
for (let key in styles) {
|
|
487
487
|
if (!/^(font|text)/.test(key)) continue;
|
|
488
|
-
optionsEl.style[key] = styles[key]
|
|
488
|
+
optionsEl.style[key] = styles[key]!;
|
|
489
489
|
}
|
|
490
490
|
|
|
491
491
|
optionsEl.style.top = targetTop + 'px';
|
|
@@ -527,7 +527,7 @@ function incrementHighlightedOption(increment: number) {
|
|
|
527
527
|
|
|
528
528
|
if (highlightedOptionIdx == targetOptionIdx) return;
|
|
529
529
|
|
|
530
|
-
highlightedOptionKey.value = effectiveOptions.value[targetOptionIdx]
|
|
530
|
+
highlightedOptionKey.value = effectiveOptions.value[targetOptionIdx]!.key;
|
|
531
531
|
|
|
532
532
|
const containerEl = optionsContainer.value!;
|
|
533
533
|
const targetOptionEl = containerEl?.querySelectorAll('.option')[targetOptionIdx] as HTMLElement;
|
|
@@ -5,8 +5,10 @@ const ObserverMap = new WeakMap<HTMLElement, ResizeObserver>();
|
|
|
5
5
|
export const vStickyMinWidth: ObjectDirective<HTMLElement> = {
|
|
6
6
|
beforeMount(el) {
|
|
7
7
|
const observer = new ResizeObserver(() => {
|
|
8
|
-
const
|
|
9
|
-
|
|
8
|
+
const computedMinWidthStr = window.getComputedStyle(el).minWidth.match(/^(\d+)px$/)?.[1];
|
|
9
|
+
const computedMinWidth = computedMinWidthStr ? parseInt(computedMinWidthStr, 10) : 0;
|
|
10
|
+
if (el.clientWidth <= computedMinWidth) return;
|
|
11
|
+
el.style.minWidth = `${el.clientWidth}px`;
|
|
10
12
|
});
|
|
11
13
|
ObserverMap.set(el, observer);
|
|
12
14
|
observer.observe(el);
|