sveltekit-ui 1.0.10 → 1.0.12
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/Content/index.svelte +12 -12
- package/dist/Components/Content/index.svelte.js +97 -49
- package/dist/Components/ContentInput/AttributesInput/CustomConfig/Dropdown/index.svelte.js +1 -5
- package/dist/Components/ContentInput/AttributesInput/CustomConfig/Number/index.svelte.js +1 -2
- package/dist/Components/ContentInput/AttributesInput/CustomConfig/Qr/index.svelte.js +1 -3
- package/dist/Components/ContentInput/AttributesInput/CustomConfig/Slider/index.svelte.js +2 -4
- package/dist/Components/ContentInput/AttributesInput/CustomConfig/TableAdvanced/index.svelte.js +28 -32
- package/dist/Components/ContentInput/AttributesInput/CustomConfig/TextInput/index.svelte.js +1 -3
- package/dist/Components/ContentInput/AttributesInput/CustomConfig/TimeInput/index.svelte.js +1 -3
- package/dist/Components/ContentInput/AttributesInput/DefinedTypeInput/index.svelte.js +3 -13
- package/dist/Components/ContentInput/AttributesInput/index.svelte +1 -0
- package/dist/Components/ContentInput/AttributesInput/index.svelte.js +89 -120
- package/dist/Components/ContentInput/index.svelte.js +38 -62
- package/dist/Components/DataTypeInput/index.svelte.js +0 -3
- package/dist/Components/IconInput/index.svelte +1 -1
- package/dist/Components/TableAdvanced/ColumnInput/index.svelte.js +15 -62
- package/dist/Components/TableAdvanced/SortByInput/index.svelte.js +2 -1
- package/dist/Components/TableAdvanced/index.svelte.js +72 -73
- package/dist/Components/TextInput/index.svelte +1 -1
- package/dist/Components/TextInput/index.svelte.js +12 -0
- package/dist/Components/VariablePathInput/index.svelte +47 -93
- package/dist/Components/VariablePathInput/index.svelte.js +205 -191
- package/dist/client/astc_formatting/index.js +15 -58
- package/dist/client/docs/index.js +4 -23
- package/dist/client/index.js +38 -90
- package/dist/client/types/index.js +2 -0
- package/dist/index.js +2 -0
- package/package.json +6 -6
- package/src/lib/Components/Content/index.svelte +12 -12
- package/src/lib/Components/Content/index.svelte.js +97 -49
- package/src/lib/Components/ContentInput/AttributesInput/CustomConfig/Dropdown/index.svelte.js +1 -5
- package/src/lib/Components/ContentInput/AttributesInput/CustomConfig/Number/index.svelte.js +1 -2
- package/src/lib/Components/ContentInput/AttributesInput/CustomConfig/Qr/index.svelte.js +1 -3
- package/src/lib/Components/ContentInput/AttributesInput/CustomConfig/Slider/index.svelte.js +2 -4
- package/src/lib/Components/ContentInput/AttributesInput/CustomConfig/TableAdvanced/index.svelte.js +28 -32
- package/src/lib/Components/ContentInput/AttributesInput/CustomConfig/TextInput/index.svelte.js +1 -3
- package/src/lib/Components/ContentInput/AttributesInput/CustomConfig/TimeInput/index.svelte.js +1 -3
- package/src/lib/Components/ContentInput/AttributesInput/DefinedTypeInput/index.svelte.js +3 -13
- package/src/lib/Components/ContentInput/AttributesInput/index.svelte +1 -0
- package/src/lib/Components/ContentInput/AttributesInput/index.svelte.js +89 -120
- package/src/lib/Components/ContentInput/index.svelte.js +38 -62
- package/src/lib/Components/DataTypeInput/index.svelte.js +0 -3
- package/src/lib/Components/IconInput/index.svelte +1 -1
- package/src/lib/Components/TableAdvanced/ColumnInput/index.svelte.js +15 -62
- package/src/lib/Components/TableAdvanced/SortByInput/index.svelte.js +2 -1
- package/src/lib/Components/TableAdvanced/index.svelte.js +72 -73
- package/src/lib/Components/TextInput/index.svelte +1 -1
- package/src/lib/Components/TextInput/index.svelte.js +12 -0
- package/src/lib/Components/VariablePathInput/index.svelte +47 -93
- package/src/lib/Components/VariablePathInput/index.svelte.js +205 -191
- package/src/lib/client/astc_formatting/index.js +15 -58
- package/src/lib/client/docs/index.js +4 -23
- package/src/lib/client/index.js +38 -90
- package/src/lib/client/types/index.js +2 -0
- package/src/lib/index.js +2 -0
- package/src/routes/+layout.svelte +21 -0
- package/src/routes/[component]/Showcase/Content/index.svelte +49 -83
- package/src/routes/[component]/Showcase/ContentInput/index.svelte +11 -13
- package/src/routes/[component]/Showcase/TableAdvanced/index.svelte +71 -252
|
@@ -33,10 +33,9 @@ export function create_attributes_input_manager(config) {
|
|
|
33
33
|
let finish_button_manager = $state(null)
|
|
34
34
|
let selector_id = $state(null)
|
|
35
35
|
let val_original = $state(null)
|
|
36
|
+
let defined_data_type = $state(null)
|
|
36
37
|
|
|
37
|
-
let variables_data_type = $derived(set_closurable(config?.variables_data_type, null))
|
|
38
38
|
let val = $derived(attributes_manager?.val)
|
|
39
|
-
|
|
40
39
|
let has_changed = $derived(!is_deep_equal(val, val_original))
|
|
41
40
|
|
|
42
41
|
const align_dropdown_options = [
|
|
@@ -49,66 +48,12 @@ export function create_attributes_input_manager(config) {
|
|
|
49
48
|
{ key: "space-evenly", name: "Space Evenly" },
|
|
50
49
|
]
|
|
51
50
|
|
|
52
|
-
// if (att_val?.input_type == "dropdown") {
|
|
53
|
-
// input_type = "dropdown"
|
|
54
|
-
// manager = create_dropdown_manager({
|
|
55
|
-
// is_button_compressed: true,
|
|
56
|
-
// val: typeof val?.[att_key] == "undefined" ? att_val?.default : val?.[att_key],
|
|
57
|
-
// is_multiselect: att_val?.is_multiselect,
|
|
58
|
-
// options: att_val?.options,
|
|
59
|
-
// })
|
|
60
|
-
// } else if (att_val?.type == "text_literal") {
|
|
61
|
-
// input_type = "text_input"
|
|
62
|
-
// manager = create_text_input_manager({
|
|
63
|
-
// type: att_val?.text_type ?? "text",
|
|
64
|
-
// val: typeof val?.[att_key] == "undefined" ? att_val?.default : val?.[att_key],
|
|
65
|
-
// placeholder: val?.placeholder,
|
|
66
|
-
// })
|
|
67
|
-
// } else if (att_val?.type == "email_address_literal") {
|
|
68
|
-
// input_type = "text_input"
|
|
69
|
-
// manager = create_text_input_manager({
|
|
70
|
-
// type: "email",
|
|
71
|
-
// val: typeof val?.[att_key] == "undefined" ? att_val?.default : val?.[att_key],
|
|
72
|
-
// placeholder: att_val?.placeholder,
|
|
73
|
-
// })
|
|
74
|
-
// } else if (att_val?.type == "phone_literal") {
|
|
75
|
-
// input_type = "text_input"
|
|
76
|
-
// manager = create_text_input_manager({
|
|
77
|
-
// type: "tel",
|
|
78
|
-
// val: typeof val?.[att_key] == "undefined" ? att_val?.default : val?.[att_key],
|
|
79
|
-
// placeholder: att_val?.placeholder,
|
|
80
|
-
// })
|
|
81
|
-
// } else if (att_val?.type == "color_literal") {
|
|
82
|
-
// input_type = "color_input"
|
|
83
|
-
// manager = create_color_input_manager({
|
|
84
|
-
// val: typeof val?.[att_key] == "undefined" ? att_val?.default : val?.[att_key],
|
|
85
|
-
// })
|
|
86
|
-
// } else if (att_val?.type == "boolean_literal") {
|
|
87
|
-
// input_type = "checkbox"
|
|
88
|
-
// manager = create_checkbox_manager({
|
|
89
|
-
// val: typeof val?.[att_key] == "undefined" ? att_val?.default : val?.[att_key],
|
|
90
|
-
// })
|
|
91
|
-
// } else if (att_val?.type == "time_literal") {
|
|
92
|
-
// input_type = "time_input"
|
|
93
|
-
// manager = create_time_input_manager({
|
|
94
|
-
// val: typeof val?.[att_key] == "undefined" ? att_val?.default : val?.[att_key],
|
|
95
|
-
// })
|
|
96
|
-
// } else if (att_val?.type == "variable_path_literal") {
|
|
97
|
-
// input_type = "variable_path_input"
|
|
98
|
-
// manager = create_variable_path_input_manager({
|
|
99
|
-
// val: typeof val?.[att_key] == "undefined" ? att_val?.default : val?.[att_key],
|
|
100
|
-
// variables_data_type: () => variables_data_type,
|
|
101
|
-
// })
|
|
102
|
-
// } else if (att_val?.type == "location_literal") {
|
|
103
|
-
// input_type = "location_input"
|
|
104
|
-
// manager = create_location_input_manager({
|
|
105
|
-
// val: typeof val?.[att_key] == "undefined" ? att_val?.default : val?.[att_key],
|
|
106
|
-
// })
|
|
107
|
-
// }
|
|
108
|
-
|
|
109
51
|
function init(config) {
|
|
52
|
+
console.log("dt_yyy", config?.defined_data_type)
|
|
110
53
|
val_original = set_closurable(config?.val, null)
|
|
111
54
|
content_type = config?.content_type
|
|
55
|
+
defined_data_type = config?.defined_data_type
|
|
56
|
+
console.log("att_defined_data_type", defined_data_type)
|
|
112
57
|
popover_manager = create_popover_manager({
|
|
113
58
|
header: config?.header ?? "Edit Attributes",
|
|
114
59
|
type: "panel",
|
|
@@ -118,37 +63,38 @@ export function create_attributes_input_manager(config) {
|
|
|
118
63
|
if (content_type == "number") {
|
|
119
64
|
attributes_manager = create_number_config_manager({
|
|
120
65
|
val: config?.val,
|
|
121
|
-
|
|
66
|
+
get_defined_options: config?.get_defined_options,
|
|
122
67
|
})
|
|
123
68
|
} else if (content_type == "qr") {
|
|
124
69
|
attributes_manager = create_qr_config_manager({
|
|
125
70
|
val: config?.val,
|
|
126
|
-
|
|
71
|
+
get_defined_options: config?.get_defined_options,
|
|
127
72
|
})
|
|
128
73
|
} else if (content_type == "variable_path_input") {
|
|
129
74
|
attributes_manager = create_variable_path_input_manager({
|
|
130
75
|
val: config?.val,
|
|
131
|
-
|
|
76
|
+
get_defined_options: config?.get_defined_options,
|
|
77
|
+
on_finish: () => attributes_manager.close_popover(),
|
|
132
78
|
})
|
|
133
79
|
} else if (content_type == "table_advanced") {
|
|
134
80
|
attributes_manager = create_table_advanced_config_manager({
|
|
135
81
|
val: config?.val,
|
|
136
|
-
|
|
82
|
+
get_defined_options: config?.get_defined_options,
|
|
137
83
|
})
|
|
138
84
|
} else if (content_type == "dropdown") {
|
|
139
85
|
attributes_manager = create_dropdown_config_manager({
|
|
140
86
|
val: config?.val,
|
|
141
|
-
|
|
87
|
+
get_defined_options: config?.get_defined_options,
|
|
142
88
|
})
|
|
143
89
|
} else if (content_type == "slider") {
|
|
144
90
|
attributes_manager = create_slider_config_manager({
|
|
145
91
|
val: config?.val,
|
|
146
|
-
|
|
92
|
+
get_defined_options: config?.get_defined_options,
|
|
147
93
|
})
|
|
148
94
|
} else if (content_type == "time_input") {
|
|
149
95
|
attributes_manager = create_time_input_config_manager({
|
|
150
96
|
val: config?.val,
|
|
151
|
-
|
|
97
|
+
get_defined_options: config?.get_defined_options,
|
|
152
98
|
})
|
|
153
99
|
} else if (content_type == "time") {
|
|
154
100
|
let val_format_dropdown_manager = $state(null)
|
|
@@ -162,7 +108,7 @@ export function create_attributes_input_manager(config) {
|
|
|
162
108
|
)
|
|
163
109
|
let val_defined_type_input_manager = $state(
|
|
164
110
|
create_defined_type_input_manager({
|
|
165
|
-
|
|
111
|
+
get_defined_options: config?.get_defined_options,
|
|
166
112
|
label: "Val",
|
|
167
113
|
attribute_root_key: "val",
|
|
168
114
|
attribute_const_val: () => val_time_input_manager?.val,
|
|
@@ -218,7 +164,7 @@ export function create_attributes_input_manager(config) {
|
|
|
218
164
|
)
|
|
219
165
|
let background_color_defined_type_input_manager = $state(
|
|
220
166
|
create_defined_type_input_manager({
|
|
221
|
-
|
|
167
|
+
get_defined_options: config?.get_defined_options,
|
|
222
168
|
label: "Background Color",
|
|
223
169
|
attribute_root_key: "background_color",
|
|
224
170
|
attribute_const_val: () => background_color_color_input_manager?.val,
|
|
@@ -233,7 +179,7 @@ export function create_attributes_input_manager(config) {
|
|
|
233
179
|
)
|
|
234
180
|
let border_color_defined_type_input_manager = $state(
|
|
235
181
|
create_defined_type_input_manager({
|
|
236
|
-
|
|
182
|
+
get_defined_options: config?.get_defined_options,
|
|
237
183
|
label: "Border Color",
|
|
238
184
|
attribute_root_key: "border_color",
|
|
239
185
|
attribute_const_val: () => border_color_color_input_manager?.val,
|
|
@@ -250,7 +196,7 @@ export function create_attributes_input_manager(config) {
|
|
|
250
196
|
)
|
|
251
197
|
let border_radius_defined_type_input_manager = $state(
|
|
252
198
|
create_defined_type_input_manager({
|
|
253
|
-
|
|
199
|
+
get_defined_options: config?.get_defined_options,
|
|
254
200
|
label: "Border Radius",
|
|
255
201
|
attribute_root_key: "border_radius",
|
|
256
202
|
attribute_const_val: () => border_radius_slider_manager?.val,
|
|
@@ -267,7 +213,7 @@ export function create_attributes_input_manager(config) {
|
|
|
267
213
|
)
|
|
268
214
|
let padding_defined_type_input_manager = $state(
|
|
269
215
|
create_defined_type_input_manager({
|
|
270
|
-
|
|
216
|
+
get_defined_options: config?.get_defined_options,
|
|
271
217
|
label: "Padding",
|
|
272
218
|
attribute_root_key: "padding",
|
|
273
219
|
attribute_const_val: () => padding_slider_manager?.val,
|
|
@@ -302,7 +248,7 @@ export function create_attributes_input_manager(config) {
|
|
|
302
248
|
)
|
|
303
249
|
let caption_defined_type_input_manager = $state(
|
|
304
250
|
create_defined_type_input_manager({
|
|
305
|
-
|
|
251
|
+
get_defined_options: config?.get_defined_options,
|
|
306
252
|
label: "Caption",
|
|
307
253
|
attribute_root_key: "caption",
|
|
308
254
|
attribute_const_val: () => caption_text_input_manager?.val,
|
|
@@ -327,7 +273,7 @@ export function create_attributes_input_manager(config) {
|
|
|
327
273
|
)
|
|
328
274
|
let background_color_defined_type_input_manager = $state(
|
|
329
275
|
create_defined_type_input_manager({
|
|
330
|
-
|
|
276
|
+
get_defined_options: config?.get_defined_options,
|
|
331
277
|
label: "Background Color",
|
|
332
278
|
attribute_root_key: "background_color",
|
|
333
279
|
attribute_const_val: () => background_color_color_input_manager?.val,
|
|
@@ -342,7 +288,7 @@ export function create_attributes_input_manager(config) {
|
|
|
342
288
|
)
|
|
343
289
|
let border_color_defined_type_input_manager = $state(
|
|
344
290
|
create_defined_type_input_manager({
|
|
345
|
-
|
|
291
|
+
get_defined_options: config?.get_defined_options,
|
|
346
292
|
label: "Border Color",
|
|
347
293
|
attribute_root_key: "border_color",
|
|
348
294
|
attribute_const_val: () => border_color_color_input_manager?.val,
|
|
@@ -359,7 +305,7 @@ export function create_attributes_input_manager(config) {
|
|
|
359
305
|
)
|
|
360
306
|
let border_radius_defined_type_input_manager = $state(
|
|
361
307
|
create_defined_type_input_manager({
|
|
362
|
-
|
|
308
|
+
get_defined_options: config?.get_defined_options,
|
|
363
309
|
label: "Border Radius",
|
|
364
310
|
attribute_root_key: "border_radius",
|
|
365
311
|
attribute_const_val: () => border_radius_slider_manager?.val,
|
|
@@ -376,7 +322,7 @@ export function create_attributes_input_manager(config) {
|
|
|
376
322
|
)
|
|
377
323
|
let padding_defined_type_input_manager = $state(
|
|
378
324
|
create_defined_type_input_manager({
|
|
379
|
-
|
|
325
|
+
get_defined_options: config?.get_defined_options,
|
|
380
326
|
label: "Padding",
|
|
381
327
|
attribute_root_key: "padding",
|
|
382
328
|
attribute_const_val: () => padding_slider_manager?.val,
|
|
@@ -392,7 +338,7 @@ export function create_attributes_input_manager(config) {
|
|
|
392
338
|
)
|
|
393
339
|
let align_content_defined_type_input_manager = $state(
|
|
394
340
|
create_defined_type_input_manager({
|
|
395
|
-
|
|
341
|
+
get_defined_options: config?.get_defined_options,
|
|
396
342
|
label: "Align Content",
|
|
397
343
|
attribute_root_key: "align_content",
|
|
398
344
|
attribute_const_val: () => align_content_dropdown_manager?.val,
|
|
@@ -408,7 +354,7 @@ export function create_attributes_input_manager(config) {
|
|
|
408
354
|
)
|
|
409
355
|
let justify_content_defined_type_input_manager = $state(
|
|
410
356
|
create_defined_type_input_manager({
|
|
411
|
-
|
|
357
|
+
get_defined_options: config?.get_defined_options,
|
|
412
358
|
label: "Justify Content",
|
|
413
359
|
attribute_root_key: "justify_content",
|
|
414
360
|
attribute_const_val: () => justify_content_dropdown_manager?.val,
|
|
@@ -441,7 +387,7 @@ export function create_attributes_input_manager(config) {
|
|
|
441
387
|
}
|
|
442
388
|
} else if (content_type == "text_input") {
|
|
443
389
|
attributes_manager = create_text_input_config_manager({
|
|
444
|
-
|
|
390
|
+
get_defined_options: config?.get_defined_options,
|
|
445
391
|
val: config?.val,
|
|
446
392
|
})
|
|
447
393
|
} else if (content_type == "color_input") {
|
|
@@ -457,7 +403,7 @@ export function create_attributes_input_manager(config) {
|
|
|
457
403
|
)
|
|
458
404
|
let val_defined_type_input_manager = $state(
|
|
459
405
|
create_defined_type_input_manager({
|
|
460
|
-
|
|
406
|
+
get_defined_options: config?.get_defined_options,
|
|
461
407
|
label: "Val",
|
|
462
408
|
attribute_root_key: "val",
|
|
463
409
|
attribute_const_val: () => val_color_input_manager?.val,
|
|
@@ -473,7 +419,7 @@ export function create_attributes_input_manager(config) {
|
|
|
473
419
|
)
|
|
474
420
|
let is_show_details_defined_type_input_manager = $state(
|
|
475
421
|
create_defined_type_input_manager({
|
|
476
|
-
|
|
422
|
+
get_defined_options: config?.get_defined_options,
|
|
477
423
|
label: "Is Show Details",
|
|
478
424
|
attribute_root_key: "is_show_details",
|
|
479
425
|
attribute_const_val: () => is_show_details_checkbox_manager?.val,
|
|
@@ -490,7 +436,7 @@ export function create_attributes_input_manager(config) {
|
|
|
490
436
|
)
|
|
491
437
|
let size_defined_type_input_manager = $state(
|
|
492
438
|
create_defined_type_input_manager({
|
|
493
|
-
|
|
439
|
+
get_defined_options: config?.get_defined_options,
|
|
494
440
|
label: "Size",
|
|
495
441
|
attribute_root_key: "size",
|
|
496
442
|
attribute_const_val: () => size_slider_manager?.val,
|
|
@@ -507,7 +453,7 @@ export function create_attributes_input_manager(config) {
|
|
|
507
453
|
)
|
|
508
454
|
let border_radius_defined_type_input_manager = $state(
|
|
509
455
|
create_defined_type_input_manager({
|
|
510
|
-
|
|
456
|
+
get_defined_options: config?.get_defined_options,
|
|
511
457
|
label: "Border Radius",
|
|
512
458
|
attribute_root_key: "border_radius",
|
|
513
459
|
attribute_const_val: () => border_radius_slider_manager?.val,
|
|
@@ -538,7 +484,7 @@ export function create_attributes_input_manager(config) {
|
|
|
538
484
|
storage_default_folder_path: config?.storage_default_folder_path,
|
|
539
485
|
storage_path: config?.storage_path,
|
|
540
486
|
val: config?.val,
|
|
541
|
-
|
|
487
|
+
get_defined_options: config?.get_defined_options,
|
|
542
488
|
})
|
|
543
489
|
} else if (content_type == "audio") {
|
|
544
490
|
attributes_manager = create_audio_config_manager({
|
|
@@ -546,7 +492,7 @@ export function create_attributes_input_manager(config) {
|
|
|
546
492
|
storage_default_folder_path: config?.storage_default_folder_path,
|
|
547
493
|
storage_path: config?.storage_path,
|
|
548
494
|
val: config?.val,
|
|
549
|
-
|
|
495
|
+
get_defined_options: config?.get_defined_options,
|
|
550
496
|
})
|
|
551
497
|
} else if (["h1", "h2", "h3", "h4", "h5", "base_text", "em", "strong", "strong_em"].includes(content_type)) {
|
|
552
498
|
let content_text_input_manager = $state(
|
|
@@ -560,7 +506,7 @@ export function create_attributes_input_manager(config) {
|
|
|
560
506
|
)
|
|
561
507
|
let content_defined_type_input_manager = $state(
|
|
562
508
|
create_defined_type_input_manager({
|
|
563
|
-
|
|
509
|
+
get_defined_options: config?.get_defined_options,
|
|
564
510
|
label: "Content",
|
|
565
511
|
attribute_root_key: "content",
|
|
566
512
|
attribute_const_val: () => content_text_input_manager?.val,
|
|
@@ -575,7 +521,7 @@ export function create_attributes_input_manager(config) {
|
|
|
575
521
|
)
|
|
576
522
|
let text_color_defined_type_input_manager = $state(
|
|
577
523
|
create_defined_type_input_manager({
|
|
578
|
-
|
|
524
|
+
get_defined_options: config?.get_defined_options,
|
|
579
525
|
label: "Text Color",
|
|
580
526
|
attribute_root_key: "text_color",
|
|
581
527
|
attribute_const_val: () => text_color_color_input_manager?.val,
|
|
@@ -606,7 +552,7 @@ export function create_attributes_input_manager(config) {
|
|
|
606
552
|
)
|
|
607
553
|
let content_defined_type_input_manager = $state(
|
|
608
554
|
create_defined_type_input_manager({
|
|
609
|
-
|
|
555
|
+
get_defined_options: config?.get_defined_options,
|
|
610
556
|
label: "Content",
|
|
611
557
|
attribute_root_key: "content",
|
|
612
558
|
attribute_const_val: () => content_text_input_manager?.val,
|
|
@@ -622,7 +568,7 @@ export function create_attributes_input_manager(config) {
|
|
|
622
568
|
)
|
|
623
569
|
let is_show_copy_button_defined_type_input_manager = $state(
|
|
624
570
|
create_defined_type_input_manager({
|
|
625
|
-
|
|
571
|
+
get_defined_options: config?.get_defined_options,
|
|
626
572
|
label: "Is Show Copy Button",
|
|
627
573
|
attribute_root_key: "is_show_copy_button",
|
|
628
574
|
attribute_const_val: () => is_show_copy_button_checkbox_manager?.val,
|
|
@@ -637,7 +583,7 @@ export function create_attributes_input_manager(config) {
|
|
|
637
583
|
)
|
|
638
584
|
let text_color_defined_type_input_manager = $state(
|
|
639
585
|
create_defined_type_input_manager({
|
|
640
|
-
|
|
586
|
+
get_defined_options: config?.get_defined_options,
|
|
641
587
|
label: "Text Color",
|
|
642
588
|
attribute_root_key: "text_color",
|
|
643
589
|
attribute_const_val: () => text_color_color_input_manager?.val,
|
|
@@ -669,7 +615,7 @@ export function create_attributes_input_manager(config) {
|
|
|
669
615
|
)
|
|
670
616
|
let post_id_defined_type_input_manager = $state(
|
|
671
617
|
create_defined_type_input_manager({
|
|
672
|
-
|
|
618
|
+
get_defined_options: config?.get_defined_options,
|
|
673
619
|
label: "Post ID",
|
|
674
620
|
attribute_root_key: "post_id",
|
|
675
621
|
attribute_const_val: () => post_id_text_input_manager?.val,
|
|
@@ -684,7 +630,7 @@ export function create_attributes_input_manager(config) {
|
|
|
684
630
|
)
|
|
685
631
|
let is_dark_theme_defined_type_input_manager = $state(
|
|
686
632
|
create_defined_type_input_manager({
|
|
687
|
-
|
|
633
|
+
get_defined_options: config?.get_defined_options,
|
|
688
634
|
label: "Is Dark Theme",
|
|
689
635
|
attribute_root_key: "is_dark_theme",
|
|
690
636
|
attribute_const_val: () => is_dark_theme_checkbox_manager?.val,
|
|
@@ -713,7 +659,7 @@ export function create_attributes_input_manager(config) {
|
|
|
713
659
|
)
|
|
714
660
|
let video_id_defined_type_input_manager = $state(
|
|
715
661
|
create_defined_type_input_manager({
|
|
716
|
-
|
|
662
|
+
get_defined_options: config?.get_defined_options,
|
|
717
663
|
label: "Video ID",
|
|
718
664
|
attribute_root_key: "video_id",
|
|
719
665
|
attribute_const_val: () => video_id_text_input_manager?.val,
|
|
@@ -728,7 +674,7 @@ export function create_attributes_input_manager(config) {
|
|
|
728
674
|
)
|
|
729
675
|
let is_dark_theme_defined_type_input_manager = $state(
|
|
730
676
|
create_defined_type_input_manager({
|
|
731
|
-
|
|
677
|
+
get_defined_options: config?.get_defined_options,
|
|
732
678
|
label: "Is Dark Theme",
|
|
733
679
|
attribute_root_key: "is_dark_theme",
|
|
734
680
|
attribute_const_val: () => is_dark_theme_checkbox_manager?.val,
|
|
@@ -769,7 +715,7 @@ export function create_attributes_input_manager(config) {
|
|
|
769
715
|
)
|
|
770
716
|
let is_run_serverside_defined_type_input_manager = $state(
|
|
771
717
|
create_defined_type_input_manager({
|
|
772
|
-
|
|
718
|
+
get_defined_options: config?.get_defined_options,
|
|
773
719
|
label: "Is Run Serverside",
|
|
774
720
|
attribute_root_key: "is_run_serverside",
|
|
775
721
|
attribute_const_val: () => is_run_serverside_checkbox_manager?.val,
|
|
@@ -795,7 +741,7 @@ export function create_attributes_input_manager(config) {
|
|
|
795
741
|
)
|
|
796
742
|
let is_show_defined_type_input_manager = $state(
|
|
797
743
|
create_defined_type_input_manager({
|
|
798
|
-
|
|
744
|
+
get_defined_options: config?.get_defined_options,
|
|
799
745
|
label: "Is Show",
|
|
800
746
|
attribute_root_key: "is_show",
|
|
801
747
|
attribute_const_val: () => is_show_checkbox_manager?.val,
|
|
@@ -822,7 +768,7 @@ export function create_attributes_input_manager(config) {
|
|
|
822
768
|
)
|
|
823
769
|
let val_defined_type_input_manager = $state(
|
|
824
770
|
create_defined_type_input_manager({
|
|
825
|
-
|
|
771
|
+
get_defined_options: config?.get_defined_options,
|
|
826
772
|
label: "Val",
|
|
827
773
|
attribute_root_key: "val",
|
|
828
774
|
attribute_const_val: () => val_checkbox_manager?.val,
|
|
@@ -842,7 +788,7 @@ export function create_attributes_input_manager(config) {
|
|
|
842
788
|
)
|
|
843
789
|
let type_defined_type_input_manager = $state(
|
|
844
790
|
create_defined_type_input_manager({
|
|
845
|
-
|
|
791
|
+
get_defined_options: config?.get_defined_options,
|
|
846
792
|
label: "Type",
|
|
847
793
|
attribute_root_key: "type",
|
|
848
794
|
attribute_const_val: () => type_dropdown_manager?.val,
|
|
@@ -860,7 +806,7 @@ export function create_attributes_input_manager(config) {
|
|
|
860
806
|
)
|
|
861
807
|
let size_defined_type_input_manager = $state(
|
|
862
808
|
create_defined_type_input_manager({
|
|
863
|
-
|
|
809
|
+
get_defined_options: config?.get_defined_options,
|
|
864
810
|
label: "Size",
|
|
865
811
|
attribute_root_key: "size",
|
|
866
812
|
attribute_const_val: () => size_slider_manager?.val,
|
|
@@ -875,7 +821,7 @@ export function create_attributes_input_manager(config) {
|
|
|
875
821
|
)
|
|
876
822
|
let color_defined_type_input_manager = $state(
|
|
877
823
|
create_defined_type_input_manager({
|
|
878
|
-
|
|
824
|
+
get_defined_options: config?.get_defined_options,
|
|
879
825
|
label: "Color",
|
|
880
826
|
attribute_root_key: "color",
|
|
881
827
|
attribute_const_val: () => color_input_manager?.val,
|
|
@@ -912,7 +858,7 @@ export function create_attributes_input_manager(config) {
|
|
|
912
858
|
)
|
|
913
859
|
let content_defined_type_input_manager = $state(
|
|
914
860
|
create_defined_type_input_manager({
|
|
915
|
-
|
|
861
|
+
get_defined_options: config?.get_defined_options,
|
|
916
862
|
label: "Content",
|
|
917
863
|
attribute_root_key: "content",
|
|
918
864
|
attribute_const_val: () => content_text_input_manager?.val,
|
|
@@ -928,7 +874,7 @@ export function create_attributes_input_manager(config) {
|
|
|
928
874
|
)
|
|
929
875
|
let language_defined_type_input_manager = $state(
|
|
930
876
|
create_defined_type_input_manager({
|
|
931
|
-
|
|
877
|
+
get_defined_options: config?.get_defined_options,
|
|
932
878
|
label: "Language",
|
|
933
879
|
attribute_root_key: "language",
|
|
934
880
|
attribute_const_val: () => language_text_input_manager?.val,
|
|
@@ -959,7 +905,7 @@ export function create_attributes_input_manager(config) {
|
|
|
959
905
|
)
|
|
960
906
|
let val_defined_type_input_manager = $state(
|
|
961
907
|
create_defined_type_input_manager({
|
|
962
|
-
|
|
908
|
+
get_defined_options: config?.get_defined_options,
|
|
963
909
|
label: "Val",
|
|
964
910
|
attribute_root_key: "val",
|
|
965
911
|
attribute_const_val: () => val_text_input_manager?.val,
|
|
@@ -1020,7 +966,7 @@ export function create_attributes_input_manager(config) {
|
|
|
1020
966
|
)
|
|
1021
967
|
let val_defined_type_input_manager = $state(
|
|
1022
968
|
create_defined_type_input_manager({
|
|
1023
|
-
|
|
969
|
+
get_defined_options: config?.get_defined_options,
|
|
1024
970
|
label: "Val",
|
|
1025
971
|
attribute_root_key: "val",
|
|
1026
972
|
attribute_const_val: () => val_location_input_manager?.val,
|
|
@@ -1064,7 +1010,7 @@ export function create_attributes_input_manager(config) {
|
|
|
1064
1010
|
)
|
|
1065
1011
|
let href_defined_type_input_manager = $state(
|
|
1066
1012
|
create_defined_type_input_manager({
|
|
1067
|
-
|
|
1013
|
+
get_defined_options: config?.get_defined_options,
|
|
1068
1014
|
label: "href",
|
|
1069
1015
|
attribute_root_key: "href",
|
|
1070
1016
|
attribute_const_val: () => href_text_input_manager?.val,
|
|
@@ -1080,7 +1026,7 @@ export function create_attributes_input_manager(config) {
|
|
|
1080
1026
|
)
|
|
1081
1027
|
let display_text_defined_type_input_manager = $state(
|
|
1082
1028
|
create_defined_type_input_manager({
|
|
1083
|
-
|
|
1029
|
+
get_defined_options: config?.get_defined_options,
|
|
1084
1030
|
label: "Dispaly Text",
|
|
1085
1031
|
attribute_root_key: "display_text",
|
|
1086
1032
|
attribute_const_val: () => display_text_text_input_manager?.val,
|
|
@@ -1095,7 +1041,7 @@ export function create_attributes_input_manager(config) {
|
|
|
1095
1041
|
)
|
|
1096
1042
|
let text_color_defined_type_input_manager = $state(
|
|
1097
1043
|
create_defined_type_input_manager({
|
|
1098
|
-
|
|
1044
|
+
get_defined_options: config?.get_defined_options,
|
|
1099
1045
|
label: "Text Color",
|
|
1100
1046
|
attribute_root_key: "text_color",
|
|
1101
1047
|
attribute_const_val: () => text_color_color_input_manager?.val,
|
|
@@ -1111,7 +1057,7 @@ export function create_attributes_input_manager(config) {
|
|
|
1111
1057
|
)
|
|
1112
1058
|
let is_show_preview_defined_type_input_manager = $state(
|
|
1113
1059
|
create_defined_type_input_manager({
|
|
1114
|
-
|
|
1060
|
+
get_defined_options: config?.get_defined_options,
|
|
1115
1061
|
label: "Is Show Preview",
|
|
1116
1062
|
attribute_root_key: "is_show_preview",
|
|
1117
1063
|
attribute_const_val: () => display_text_text_input_manager?.val,
|
|
@@ -1148,7 +1094,7 @@ export function create_attributes_input_manager(config) {
|
|
|
1148
1094
|
)
|
|
1149
1095
|
let is_icon_only_defined_type_input_manager = $state(
|
|
1150
1096
|
create_defined_type_input_manager({
|
|
1151
|
-
|
|
1097
|
+
get_defined_options: config?.get_defined_options,
|
|
1152
1098
|
label: "Is Icon Only",
|
|
1153
1099
|
attribute_root_key: "is_icon_only",
|
|
1154
1100
|
attribute_const_val: () => is_icon_only_checkbox_manager?.val,
|
|
@@ -1162,7 +1108,7 @@ export function create_attributes_input_manager(config) {
|
|
|
1162
1108
|
})
|
|
1163
1109
|
let val_defined_type_input_manager = $state(
|
|
1164
1110
|
create_defined_type_input_manager({
|
|
1165
|
-
|
|
1111
|
+
get_defined_options: config?.get_defined_options,
|
|
1166
1112
|
label: "Val",
|
|
1167
1113
|
attribute_root_key: "val",
|
|
1168
1114
|
attribute_const_val: () => val_icon_input_manager?.val,
|
|
@@ -1190,7 +1136,7 @@ export function create_attributes_input_manager(config) {
|
|
|
1190
1136
|
)
|
|
1191
1137
|
let icon_id_defined_type_input_manager = $state(
|
|
1192
1138
|
create_defined_type_input_manager({
|
|
1193
|
-
|
|
1139
|
+
get_defined_options: config?.get_defined_options,
|
|
1194
1140
|
label: "Icon ID",
|
|
1195
1141
|
attribute_root_key: "icon_id",
|
|
1196
1142
|
attribute_const_val: () => icon_id_icon_input_manager?.val,
|
|
@@ -1208,7 +1154,7 @@ export function create_attributes_input_manager(config) {
|
|
|
1208
1154
|
)
|
|
1209
1155
|
let icon_size_defined_type_input_manager = $state(
|
|
1210
1156
|
create_defined_type_input_manager({
|
|
1211
|
-
|
|
1157
|
+
get_defined_options: config?.get_defined_options,
|
|
1212
1158
|
label: "Size",
|
|
1213
1159
|
attribute_root_key: "size",
|
|
1214
1160
|
attribute_const_val: () => icon_size_slider_manager?.val,
|
|
@@ -1226,7 +1172,7 @@ export function create_attributes_input_manager(config) {
|
|
|
1226
1172
|
)
|
|
1227
1173
|
let icon_sw_defined_type_input_manager = $state(
|
|
1228
1174
|
create_defined_type_input_manager({
|
|
1229
|
-
|
|
1175
|
+
get_defined_options: config?.get_defined_options,
|
|
1230
1176
|
label: "Stroke Width",
|
|
1231
1177
|
attribute_root_key: "sw",
|
|
1232
1178
|
attribute_const_val: () => icon_sw_slider_manager?.val,
|
|
@@ -1244,7 +1190,7 @@ export function create_attributes_input_manager(config) {
|
|
|
1244
1190
|
)
|
|
1245
1191
|
let icon_deg_defined_type_input_manager = $state(
|
|
1246
1192
|
create_defined_type_input_manager({
|
|
1247
|
-
|
|
1193
|
+
get_defined_options: config?.get_defined_options,
|
|
1248
1194
|
label: "Degrees Turned",
|
|
1249
1195
|
attribute_root_key: "deg",
|
|
1250
1196
|
attribute_const_val: () => icon_deg_slider_manager?.val,
|
|
@@ -1259,7 +1205,7 @@ export function create_attributes_input_manager(config) {
|
|
|
1259
1205
|
)
|
|
1260
1206
|
let icon_color_defined_type_input_manager = $state(
|
|
1261
1207
|
create_defined_type_input_manager({
|
|
1262
|
-
|
|
1208
|
+
get_defined_options: config?.get_defined_options,
|
|
1263
1209
|
label: "Icon Color",
|
|
1264
1210
|
attribute_root_key: "color",
|
|
1265
1211
|
attribute_const_val: () => icon_color_color_input_manager?.val,
|
|
@@ -1297,7 +1243,7 @@ export function create_attributes_input_manager(config) {
|
|
|
1297
1243
|
)
|
|
1298
1244
|
let val_defined_type_input_manager = $state(
|
|
1299
1245
|
create_defined_type_input_manager({
|
|
1300
|
-
|
|
1246
|
+
get_defined_options: config?.get_defined_options,
|
|
1301
1247
|
label: "Val",
|
|
1302
1248
|
attribute_root_key: "val",
|
|
1303
1249
|
attribute_const_val: () => val_cron_input_manager?.val,
|
|
@@ -1322,7 +1268,7 @@ export function create_attributes_input_manager(config) {
|
|
|
1322
1268
|
)
|
|
1323
1269
|
let val_defined_type_input_manager = $state(
|
|
1324
1270
|
create_defined_type_input_manager({
|
|
1325
|
-
|
|
1271
|
+
get_defined_options: config?.get_defined_options,
|
|
1326
1272
|
label: "Val",
|
|
1327
1273
|
attribute_root_key: "val",
|
|
1328
1274
|
attribute_const_val: () => val_cron_input_manager?.val,
|
|
@@ -1339,10 +1285,25 @@ export function create_attributes_input_manager(config) {
|
|
|
1339
1285
|
},
|
|
1340
1286
|
}
|
|
1341
1287
|
} else if (content_type == "loop") {
|
|
1288
|
+
let iter_identifier_text_input_manager = $state(
|
|
1289
|
+
create_text_input_manager({
|
|
1290
|
+
label: "Iter Identifier",
|
|
1291
|
+
val: config?.val?.iter_identifier,
|
|
1292
|
+
placeholder: "some_key",
|
|
1293
|
+
})
|
|
1294
|
+
)
|
|
1342
1295
|
let val_input_manager = $state(
|
|
1343
1296
|
create_variable_path_input_manager({
|
|
1344
1297
|
val: config?.val?.val_from_variable_path,
|
|
1345
|
-
|
|
1298
|
+
// defined_data_type: {
|
|
1299
|
+
// ...defined_data_type,
|
|
1300
|
+
// properties: {
|
|
1301
|
+
// ...defined_data_type?.properties,
|
|
1302
|
+
// [iter_identifier_text_input_manager?.val]: { type: "int_literal" },
|
|
1303
|
+
// },
|
|
1304
|
+
// },
|
|
1305
|
+
get_defined_options: config?.get_defined_options,
|
|
1306
|
+
on_finish: () => attributes_manager.close_popover(),
|
|
1346
1307
|
})
|
|
1347
1308
|
)
|
|
1348
1309
|
let join_text_text_input_manager = $state(
|
|
@@ -1354,7 +1315,13 @@ export function create_attributes_input_manager(config) {
|
|
|
1354
1315
|
)
|
|
1355
1316
|
let join_text_defined_type_input_manager = $state(
|
|
1356
1317
|
create_defined_type_input_manager({
|
|
1357
|
-
|
|
1318
|
+
defined_data_type: {
|
|
1319
|
+
...defined_data_type,
|
|
1320
|
+
properties: {
|
|
1321
|
+
...defined_data_type?.properties,
|
|
1322
|
+
[iter_identifier_text_input_manager?.val]: { type: "int_literal" },
|
|
1323
|
+
},
|
|
1324
|
+
},
|
|
1358
1325
|
label: "Join Text",
|
|
1359
1326
|
attribute_root_key: "join_text",
|
|
1360
1327
|
attribute_const_val: () => join_text_text_input_manager?.val,
|
|
@@ -1363,10 +1330,12 @@ export function create_attributes_input_manager(config) {
|
|
|
1363
1330
|
)
|
|
1364
1331
|
attributes_manager = {
|
|
1365
1332
|
val_input_manager: val_input_manager,
|
|
1333
|
+
iter_identifier_text_input_manager: iter_identifier_text_input_manager,
|
|
1366
1334
|
join_text_text_input_manager: join_text_text_input_manager,
|
|
1367
1335
|
join_text_defined_type_input_manager: join_text_defined_type_input_manager,
|
|
1368
1336
|
get val() {
|
|
1369
1337
|
return {
|
|
1338
|
+
iter_identifier: iter_identifier_text_input_manager?.val,
|
|
1370
1339
|
val_from_variable_path: val_input_manager?.val,
|
|
1371
1340
|
...join_text_defined_type_input_manager?.val,
|
|
1372
1341
|
}
|
|
@@ -1380,7 +1349,7 @@ export function create_attributes_input_manager(config) {
|
|
|
1380
1349
|
)
|
|
1381
1350
|
let val_defined_type_input_manager = $state(
|
|
1382
1351
|
create_defined_type_input_manager({
|
|
1383
|
-
|
|
1352
|
+
get_defined_options: config?.get_defined_options,
|
|
1384
1353
|
label: "Val",
|
|
1385
1354
|
attribute_root_key: "val",
|
|
1386
1355
|
attribute_const_val: () => val_text_input_manager?.val,
|