sveltekit-ui 1.0.54 → 1.0.56
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.
|
@@ -23,7 +23,7 @@ export function create_qr_manager(config) {
|
|
|
23
23
|
|
|
24
24
|
let copy_button_manager = $state(null)
|
|
25
25
|
let download_button_manager = $state(null)
|
|
26
|
-
let
|
|
26
|
+
let extention_dropdown_manager = $state(null)
|
|
27
27
|
let qr__styling = $state(null)
|
|
28
28
|
let is_loaded = $state(false)
|
|
29
29
|
let error_message = $state(null)
|
|
@@ -199,7 +199,7 @@ export function create_qr_manager(config) {
|
|
|
199
199
|
support_icon: "download",
|
|
200
200
|
on_click: () => download(),
|
|
201
201
|
})
|
|
202
|
-
|
|
202
|
+
extention_dropdown_manager = create_dropdown_manager({
|
|
203
203
|
val: extension,
|
|
204
204
|
options: [
|
|
205
205
|
{ key: "svg", name: "svg" },
|
|
@@ -209,7 +209,7 @@ export function create_qr_manager(config) {
|
|
|
209
209
|
target_height: 130,
|
|
210
210
|
on_item_click: (input) => {
|
|
211
211
|
extension = input?.key
|
|
212
|
-
|
|
212
|
+
extention_dropdown_manager.set_val(input?.key)
|
|
213
213
|
},
|
|
214
214
|
})
|
|
215
215
|
}
|
|
@@ -278,8 +278,8 @@ export function create_qr_manager(config) {
|
|
|
278
278
|
get download_button_manager() {
|
|
279
279
|
return download_button_manager
|
|
280
280
|
},
|
|
281
|
-
get
|
|
282
|
-
return
|
|
281
|
+
get extention_dropdown_manager() {
|
|
282
|
+
return extention_dropdown_manager
|
|
283
283
|
},
|
|
284
284
|
get is_loaded() {
|
|
285
285
|
return is_loaded
|
|
@@ -6235,7 +6235,7 @@ export const definitions = {
|
|
|
6235
6235
|
type: "object",
|
|
6236
6236
|
description: "Button manager for triggering the QR code download if is_show_download=true.",
|
|
6237
6237
|
},
|
|
6238
|
-
|
|
6238
|
+
extention_dropdown_manager: {
|
|
6239
6239
|
type: "object",
|
|
6240
6240
|
description: "Dropdown manager controlling which extension is used when downloading (svg, png, webp).",
|
|
6241
6241
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sveltekit-ui",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.56",
|
|
4
4
|
"description": "A SvelteKit UI component library for building modern web applications",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -19,14 +19,14 @@
|
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"context-filter-polyfill": "^0.3.23",
|
|
21
21
|
"qr-code-styling": "^1.9.2",
|
|
22
|
-
"svelte": "^5.38.
|
|
22
|
+
"svelte": "^5.38.10"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
25
25
|
"@sveltejs/kit": "^2.22.2"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@sveltejs/adapter-vercel": "^5.10.2",
|
|
29
|
-
"@sveltejs/kit": "^2.
|
|
29
|
+
"@sveltejs/kit": "^2.39.0",
|
|
30
30
|
"@sveltejs/package": "^2.5.0",
|
|
31
31
|
"@sveltejs/vite-plugin-svelte": "^6.2.0",
|
|
32
32
|
"@vercel/analytics": "^1.5.0",
|
|
@@ -23,7 +23,7 @@ export function create_qr_manager(config) {
|
|
|
23
23
|
|
|
24
24
|
let copy_button_manager = $state(null)
|
|
25
25
|
let download_button_manager = $state(null)
|
|
26
|
-
let
|
|
26
|
+
let extention_dropdown_manager = $state(null)
|
|
27
27
|
let qr__styling = $state(null)
|
|
28
28
|
let is_loaded = $state(false)
|
|
29
29
|
let error_message = $state(null)
|
|
@@ -199,7 +199,7 @@ export function create_qr_manager(config) {
|
|
|
199
199
|
support_icon: "download",
|
|
200
200
|
on_click: () => download(),
|
|
201
201
|
})
|
|
202
|
-
|
|
202
|
+
extention_dropdown_manager = create_dropdown_manager({
|
|
203
203
|
val: extension,
|
|
204
204
|
options: [
|
|
205
205
|
{ key: "svg", name: "svg" },
|
|
@@ -209,7 +209,7 @@ export function create_qr_manager(config) {
|
|
|
209
209
|
target_height: 130,
|
|
210
210
|
on_item_click: (input) => {
|
|
211
211
|
extension = input?.key
|
|
212
|
-
|
|
212
|
+
extention_dropdown_manager.set_val(input?.key)
|
|
213
213
|
},
|
|
214
214
|
})
|
|
215
215
|
}
|
|
@@ -278,8 +278,8 @@ export function create_qr_manager(config) {
|
|
|
278
278
|
get download_button_manager() {
|
|
279
279
|
return download_button_manager
|
|
280
280
|
},
|
|
281
|
-
get
|
|
282
|
-
return
|
|
281
|
+
get extention_dropdown_manager() {
|
|
282
|
+
return extention_dropdown_manager
|
|
283
283
|
},
|
|
284
284
|
get is_loaded() {
|
|
285
285
|
return is_loaded
|
|
@@ -6235,7 +6235,7 @@ export const definitions = {
|
|
|
6235
6235
|
type: "object",
|
|
6236
6236
|
description: "Button manager for triggering the QR code download if is_show_download=true.",
|
|
6237
6237
|
},
|
|
6238
|
-
|
|
6238
|
+
extention_dropdown_manager: {
|
|
6239
6239
|
type: "object",
|
|
6240
6240
|
description: "Dropdown manager controlling which extension is used when downloading (svg, png, webp).",
|
|
6241
6241
|
},
|