sveltekit-ui 1.0.34 → 1.0.35
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.
|
@@ -93,14 +93,12 @@ export function create_content_manager(config) {
|
|
|
93
93
|
let cleaned_path = []
|
|
94
94
|
if (Array.isArray(input) && input.length > 0) {
|
|
95
95
|
let is_def = is_defined(input?.[0], definition_stack)
|
|
96
|
-
console.log("is_def", { is_def, item: input?.[0] })
|
|
97
96
|
if (!is_def) {
|
|
98
97
|
return []
|
|
99
98
|
}
|
|
100
99
|
for (let item of input) {
|
|
101
100
|
if (Array.isArray(item)) {
|
|
102
101
|
const res = get_def_from_variable_path(item, definition_stack)
|
|
103
|
-
console.log("get_def_from_variable_path", { item, res })
|
|
104
102
|
cleaned_path.push(res)
|
|
105
103
|
} else {
|
|
106
104
|
cleaned_path.push(item)
|
|
@@ -115,7 +113,6 @@ export function create_content_manager(config) {
|
|
|
115
113
|
return
|
|
116
114
|
}
|
|
117
115
|
let cleaned_path = clean_variable_path(path)
|
|
118
|
-
console.log("set_variable_at_path88", deep_copy({ path, value, type, cleaned_path, definition_stack }))
|
|
119
116
|
if (typeof config?.on_event == "function") {
|
|
120
117
|
if (type == "insert") {
|
|
121
118
|
return config?.on_event({
|
|
@@ -363,7 +360,6 @@ export function create_content_manager(config) {
|
|
|
363
360
|
children: [],
|
|
364
361
|
}
|
|
365
362
|
} else if (val_loc?.type_id == "color_input") {
|
|
366
|
-
console.log("color_input555", val_loc?.attributes)
|
|
367
363
|
return {
|
|
368
364
|
type_id: val_loc?.type_id,
|
|
369
365
|
selector_id: val_loc?.selector_id,
|
|
@@ -860,7 +856,6 @@ export function create_content_manager(config) {
|
|
|
860
856
|
},
|
|
861
857
|
on_change: (input) => set_variable_at_path(val_loc?.attributes?.val_from_variable_path, input),
|
|
862
858
|
})
|
|
863
|
-
console.log("table_dropdown", { val_loc, val_from: val_loc?.attributes?.val_from_variable_path })
|
|
864
859
|
return {
|
|
865
860
|
type_id: val_loc?.type_id,
|
|
866
861
|
selector_id: val_loc?.selector_id,
|
|
@@ -841,7 +841,7 @@ export function variables_data_type_remaining_to_astc(
|
|
|
841
841
|
})
|
|
842
842
|
: null
|
|
843
843
|
if (preferred_content_use == "input") {
|
|
844
|
-
let children = label ? [label] : []
|
|
844
|
+
let children = variables_data_type_remaining?.attributes?.label ? [label] : []
|
|
845
845
|
for (let [key, val] of Object.entries(variables_data_type_remaining?.properties || {})) {
|
|
846
846
|
let property_children = []
|
|
847
847
|
property_children.push(
|
package/package.json
CHANGED
|
@@ -93,14 +93,12 @@ export function create_content_manager(config) {
|
|
|
93
93
|
let cleaned_path = []
|
|
94
94
|
if (Array.isArray(input) && input.length > 0) {
|
|
95
95
|
let is_def = is_defined(input?.[0], definition_stack)
|
|
96
|
-
console.log("is_def", { is_def, item: input?.[0] })
|
|
97
96
|
if (!is_def) {
|
|
98
97
|
return []
|
|
99
98
|
}
|
|
100
99
|
for (let item of input) {
|
|
101
100
|
if (Array.isArray(item)) {
|
|
102
101
|
const res = get_def_from_variable_path(item, definition_stack)
|
|
103
|
-
console.log("get_def_from_variable_path", { item, res })
|
|
104
102
|
cleaned_path.push(res)
|
|
105
103
|
} else {
|
|
106
104
|
cleaned_path.push(item)
|
|
@@ -115,7 +113,6 @@ export function create_content_manager(config) {
|
|
|
115
113
|
return
|
|
116
114
|
}
|
|
117
115
|
let cleaned_path = clean_variable_path(path)
|
|
118
|
-
console.log("set_variable_at_path88", deep_copy({ path, value, type, cleaned_path, definition_stack }))
|
|
119
116
|
if (typeof config?.on_event == "function") {
|
|
120
117
|
if (type == "insert") {
|
|
121
118
|
return config?.on_event({
|
|
@@ -363,7 +360,6 @@ export function create_content_manager(config) {
|
|
|
363
360
|
children: [],
|
|
364
361
|
}
|
|
365
362
|
} else if (val_loc?.type_id == "color_input") {
|
|
366
|
-
console.log("color_input555", val_loc?.attributes)
|
|
367
363
|
return {
|
|
368
364
|
type_id: val_loc?.type_id,
|
|
369
365
|
selector_id: val_loc?.selector_id,
|
|
@@ -860,7 +856,6 @@ export function create_content_manager(config) {
|
|
|
860
856
|
},
|
|
861
857
|
on_change: (input) => set_variable_at_path(val_loc?.attributes?.val_from_variable_path, input),
|
|
862
858
|
})
|
|
863
|
-
console.log("table_dropdown", { val_loc, val_from: val_loc?.attributes?.val_from_variable_path })
|
|
864
859
|
return {
|
|
865
860
|
type_id: val_loc?.type_id,
|
|
866
861
|
selector_id: val_loc?.selector_id,
|
|
@@ -841,7 +841,7 @@ export function variables_data_type_remaining_to_astc(
|
|
|
841
841
|
})
|
|
842
842
|
: null
|
|
843
843
|
if (preferred_content_use == "input") {
|
|
844
|
-
let children = label ? [label] : []
|
|
844
|
+
let children = variables_data_type_remaining?.attributes?.label ? [label] : []
|
|
845
845
|
for (let [key, val] of Object.entries(variables_data_type_remaining?.properties || {})) {
|
|
846
846
|
let property_children = []
|
|
847
847
|
property_children.push(
|