sveltekit-ui 1.0.53 → 1.0.55
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/Components/ContentInput/AttributesInput/CustomConfig/Qr/index.svelte.js +4 -2
- package/dist/Components/Qr/index.svelte.js +5 -5
- package/dist/Components/QrInput/index.svelte.js +4 -2
- package/dist/client/docs/index.js +1 -1
- package/package.json +1 -1
- package/src/lib/Components/ContentInput/AttributesInput/CustomConfig/Qr/index.svelte.js +4 -2
- package/src/lib/Components/Qr/index.svelte.js +5 -5
- package/src/lib/Components/QrInput/index.svelte.js +4 -2
- package/src/lib/client/docs/index.js +1 -1
|
@@ -137,8 +137,10 @@ export function create_qr_config_manager(config) {
|
|
|
137
137
|
type: "url",
|
|
138
138
|
label: "Image Url",
|
|
139
139
|
val:
|
|
140
|
-
config?.val?.
|
|
141
|
-
"
|
|
140
|
+
config?.val?.image ??
|
|
141
|
+
`<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" fill-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="2" clip-rule="evenodd" viewBox="0 0 512 512">
|
|
142
|
+
<path id="part-2" fill="#1c82ff" fill-rule="nonzero" d="M400.3 328.6c0 22-5.6 41.7-17 59.2a113 113 0 0 1-49.6 41.2 186 186 0 0 1-77.6 14.8c-35.8 0-65.4-6.7-88.7-20.3-16.5-9.7-30-22.7-40.3-39a88.6 88.6 0 0 1-15.4-47.5c0-8.9 3-16.5 9.3-22.9 6.1-6.4 14-9.5 23.6-9.5a28 28 0 0 1 19.7 7.4c5.4 5 10 12.3 13.8 22 4.6 11.6 9.6 21.3 15 29 5.3 7.8 12.9 14.2 22.6 19.3q14.7 7.5 38.4 7.5c21.8 0 39.6-5 53.2-15.2a45.8 45.8 0 0 0 20.4-38c0-12.1-3.6-22-11-29.4a71 71 0 0 0-28.5-17.3 490 490 0 0 0-46.7-12.6c-26.1-6.1-48-13.2-65.5-21.4a106 106 0 0 1-42-33.5 86.8 86.8 0 0 1-15.4-52.6c0-20 5.4-37.8 16.4-53.3a103 103 0 0 1 47.3-35.8c20.6-8.4 45-12.5 72.8-12.5 22.3 0 41.6 2.7 57.9 8.3a122 122 0 0 1 40.5 22 92 92 0 0 1 23.5 28.9c5 10 7.5 19.9 7.5 29.5 0 8.7-3.1 16.6-9.3 23.6s-14 10.6-23.2 10.6q-12.6 0-19.2-6.3a85 85 0 0 1-14.2-20.7 94 94 0 0 0-23.8-32.1c-9.3-7.7-24.1-11.5-44.6-11.5-19 0-34.3 4.1-46 12.5-11.6 8.3-17.5 18.3-17.5 30 0 7.3 2 13.6 6 19a50 50 0 0 0 16.3 13.5c7 3.8 14 6.8 21.1 9 7.1 2.1 18.8 5.2 35.2 9.4 20.5 4.8 39 10 55.6 15.8a169 169 0 0 1 42.4 21.1 86.6 86.6 0 0 1 27.3 31.3c6.5 12.7 9.7 28.2 9.7 46.5"/>
|
|
143
|
+
</svg>`,
|
|
142
144
|
})
|
|
143
145
|
}
|
|
144
146
|
|
|
@@ -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
|
|
@@ -137,8 +137,10 @@ export function create_qr_input_manager(config) {
|
|
|
137
137
|
type: "text",
|
|
138
138
|
label: "Image Url / SVG",
|
|
139
139
|
val:
|
|
140
|
-
config?.val?.
|
|
141
|
-
"
|
|
140
|
+
config?.val?.image ??
|
|
141
|
+
`<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" fill-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="2" clip-rule="evenodd" viewBox="0 0 512 512">
|
|
142
|
+
<path id="part-2" fill="#1c82ff" fill-rule="nonzero" d="M400.3 328.6c0 22-5.6 41.7-17 59.2a113 113 0 0 1-49.6 41.2 186 186 0 0 1-77.6 14.8c-35.8 0-65.4-6.7-88.7-20.3-16.5-9.7-30-22.7-40.3-39a88.6 88.6 0 0 1-15.4-47.5c0-8.9 3-16.5 9.3-22.9 6.1-6.4 14-9.5 23.6-9.5a28 28 0 0 1 19.7 7.4c5.4 5 10 12.3 13.8 22 4.6 11.6 9.6 21.3 15 29 5.3 7.8 12.9 14.2 22.6 19.3q14.7 7.5 38.4 7.5c21.8 0 39.6-5 53.2-15.2a45.8 45.8 0 0 0 20.4-38c0-12.1-3.6-22-11-29.4a71 71 0 0 0-28.5-17.3 490 490 0 0 0-46.7-12.6c-26.1-6.1-48-13.2-65.5-21.4a106 106 0 0 1-42-33.5 86.8 86.8 0 0 1-15.4-52.6c0-20 5.4-37.8 16.4-53.3a103 103 0 0 1 47.3-35.8c20.6-8.4 45-12.5 72.8-12.5 22.3 0 41.6 2.7 57.9 8.3a122 122 0 0 1 40.5 22 92 92 0 0 1 23.5 28.9c5 10 7.5 19.9 7.5 29.5 0 8.7-3.1 16.6-9.3 23.6s-14 10.6-23.2 10.6q-12.6 0-19.2-6.3a85 85 0 0 1-14.2-20.7 94 94 0 0 0-23.8-32.1c-9.3-7.7-24.1-11.5-44.6-11.5-19 0-34.3 4.1-46 12.5-11.6 8.3-17.5 18.3-17.5 30 0 7.3 2 13.6 6 19a50 50 0 0 0 16.3 13.5c7 3.8 14 6.8 21.1 9 7.1 2.1 18.8 5.2 35.2 9.4 20.5 4.8 39 10 55.6 15.8a169 169 0 0 1 42.4 21.1 86.6 86.6 0 0 1 27.3 31.3c6.5 12.7 9.7 28.2 9.7 46.5"/>
|
|
143
|
+
</svg>`,
|
|
142
144
|
})
|
|
143
145
|
qr_manager = create_qr_manager(val)
|
|
144
146
|
set_changes_button_manager = create_button_manager({
|
|
@@ -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
|
@@ -137,8 +137,10 @@ export function create_qr_config_manager(config) {
|
|
|
137
137
|
type: "url",
|
|
138
138
|
label: "Image Url",
|
|
139
139
|
val:
|
|
140
|
-
config?.val?.
|
|
141
|
-
"
|
|
140
|
+
config?.val?.image ??
|
|
141
|
+
`<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" fill-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="2" clip-rule="evenodd" viewBox="0 0 512 512">
|
|
142
|
+
<path id="part-2" fill="#1c82ff" fill-rule="nonzero" d="M400.3 328.6c0 22-5.6 41.7-17 59.2a113 113 0 0 1-49.6 41.2 186 186 0 0 1-77.6 14.8c-35.8 0-65.4-6.7-88.7-20.3-16.5-9.7-30-22.7-40.3-39a88.6 88.6 0 0 1-15.4-47.5c0-8.9 3-16.5 9.3-22.9 6.1-6.4 14-9.5 23.6-9.5a28 28 0 0 1 19.7 7.4c5.4 5 10 12.3 13.8 22 4.6 11.6 9.6 21.3 15 29 5.3 7.8 12.9 14.2 22.6 19.3q14.7 7.5 38.4 7.5c21.8 0 39.6-5 53.2-15.2a45.8 45.8 0 0 0 20.4-38c0-12.1-3.6-22-11-29.4a71 71 0 0 0-28.5-17.3 490 490 0 0 0-46.7-12.6c-26.1-6.1-48-13.2-65.5-21.4a106 106 0 0 1-42-33.5 86.8 86.8 0 0 1-15.4-52.6c0-20 5.4-37.8 16.4-53.3a103 103 0 0 1 47.3-35.8c20.6-8.4 45-12.5 72.8-12.5 22.3 0 41.6 2.7 57.9 8.3a122 122 0 0 1 40.5 22 92 92 0 0 1 23.5 28.9c5 10 7.5 19.9 7.5 29.5 0 8.7-3.1 16.6-9.3 23.6s-14 10.6-23.2 10.6q-12.6 0-19.2-6.3a85 85 0 0 1-14.2-20.7 94 94 0 0 0-23.8-32.1c-9.3-7.7-24.1-11.5-44.6-11.5-19 0-34.3 4.1-46 12.5-11.6 8.3-17.5 18.3-17.5 30 0 7.3 2 13.6 6 19a50 50 0 0 0 16.3 13.5c7 3.8 14 6.8 21.1 9 7.1 2.1 18.8 5.2 35.2 9.4 20.5 4.8 39 10 55.6 15.8a169 169 0 0 1 42.4 21.1 86.6 86.6 0 0 1 27.3 31.3c6.5 12.7 9.7 28.2 9.7 46.5"/>
|
|
143
|
+
</svg>`,
|
|
142
144
|
})
|
|
143
145
|
}
|
|
144
146
|
|
|
@@ -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
|
|
@@ -137,8 +137,10 @@ export function create_qr_input_manager(config) {
|
|
|
137
137
|
type: "text",
|
|
138
138
|
label: "Image Url / SVG",
|
|
139
139
|
val:
|
|
140
|
-
config?.val?.
|
|
141
|
-
"
|
|
140
|
+
config?.val?.image ??
|
|
141
|
+
`<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" fill-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="2" clip-rule="evenodd" viewBox="0 0 512 512">
|
|
142
|
+
<path id="part-2" fill="#1c82ff" fill-rule="nonzero" d="M400.3 328.6c0 22-5.6 41.7-17 59.2a113 113 0 0 1-49.6 41.2 186 186 0 0 1-77.6 14.8c-35.8 0-65.4-6.7-88.7-20.3-16.5-9.7-30-22.7-40.3-39a88.6 88.6 0 0 1-15.4-47.5c0-8.9 3-16.5 9.3-22.9 6.1-6.4 14-9.5 23.6-9.5a28 28 0 0 1 19.7 7.4c5.4 5 10 12.3 13.8 22 4.6 11.6 9.6 21.3 15 29 5.3 7.8 12.9 14.2 22.6 19.3q14.7 7.5 38.4 7.5c21.8 0 39.6-5 53.2-15.2a45.8 45.8 0 0 0 20.4-38c0-12.1-3.6-22-11-29.4a71 71 0 0 0-28.5-17.3 490 490 0 0 0-46.7-12.6c-26.1-6.1-48-13.2-65.5-21.4a106 106 0 0 1-42-33.5 86.8 86.8 0 0 1-15.4-52.6c0-20 5.4-37.8 16.4-53.3a103 103 0 0 1 47.3-35.8c20.6-8.4 45-12.5 72.8-12.5 22.3 0 41.6 2.7 57.9 8.3a122 122 0 0 1 40.5 22 92 92 0 0 1 23.5 28.9c5 10 7.5 19.9 7.5 29.5 0 8.7-3.1 16.6-9.3 23.6s-14 10.6-23.2 10.6q-12.6 0-19.2-6.3a85 85 0 0 1-14.2-20.7 94 94 0 0 0-23.8-32.1c-9.3-7.7-24.1-11.5-44.6-11.5-19 0-34.3 4.1-46 12.5-11.6 8.3-17.5 18.3-17.5 30 0 7.3 2 13.6 6 19a50 50 0 0 0 16.3 13.5c7 3.8 14 6.8 21.1 9 7.1 2.1 18.8 5.2 35.2 9.4 20.5 4.8 39 10 55.6 15.8a169 169 0 0 1 42.4 21.1 86.6 86.6 0 0 1 27.3 31.3c6.5 12.7 9.7 28.2 9.7 46.5"/>
|
|
143
|
+
</svg>`,
|
|
142
144
|
})
|
|
143
145
|
qr_manager = create_qr_manager(val)
|
|
144
146
|
set_changes_button_manager = create_button_manager({
|
|
@@ -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
|
},
|